/* Základní nastavení */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif; /* Modernější font pro text */
    background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    text-align: center;
}

h1 {
    font-family: 'Pacifico', cursive;
    color: #d32f2f;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Obrazovky */
.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    box-sizing: border-box;
}

.screen.active {
    display: flex;
    animation: fadeIn 0.8s ease-out;
}

/* Tlačítka */
button {
    padding: 15px 35px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#yesBtn, #startGameBtn {
    background: linear-gradient(45deg, #ff4d6d, #d32f2f);
    color: white;
}

#yesBtn:hover, #startGameBtn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4);
}

#noBtn {
    background-color: #e0e0e0;
    color: #555;
    position: relative;
    z-index: 100;
}

/* Gif a média */
.cat-gif {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-bottom: 25px;
    border: 3px solid white;
}

/* --- NOVÁ MINI HRA (Padající srdíčka) --- */
#game-area-container {
    width: 100%;
    height: 400px;
    border: 3px dashed #ffbdc5;
    border-radius: 15px;
    position: relative;
    overflow: hidden; /* Důležité: skryje srdíčka, co spadnou dolů */
    background: rgba(255, 255, 255, 0.5);
    margin-top: 20px;
}

#game-area {
    width: 100%;
    height: 100%;
    position: relative;
}

.falling-heart {
    position: absolute;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
    top: -50px; /* Začínají nad obrazovkou */
    /* Animace je definována v JS kvůli náhodné rychlosti */
}
/* Animace pádu */
@keyframes fallDown {
    to {
        transform: translateY(450px) rotate(360deg); /* Spadnou dolů a otočí se */
        opacity: 0;
    }
}

.score-board {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d32f2f;
}

/* --- NOVÝ LUXUSNÍ KUPÓN --- */
.coupon-wrapper {
    padding: 10px;
    perspective: 1000px;
}

.coupon {
    background: linear-gradient(to bottom right, #fffcf2, #fffaf0);
    border: 4px double #cfb53b; /* Zlatý dvojitý okraj */
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    color: #4a3f35;
    max-width: 100%;
}

/* Ozdobná stuha v rohu */
.ribbon {
    position: absolute;
    top: 20px;
    left: -35px;
    background: #d32f2f;
    color: white;
    padding: 5px 40px;
    transform: rotate(-45deg);
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

.coupon-content {
    padding: 30px 20px;
    border: 1px solid rgba(207, 181, 59, 0.3); /* Vnitřní tenký zlatý rámeček */
    margin: 5px;
    border-radius: 10px;
    background-image: radial-gradient(circle at center, rgba(207, 181, 59, 0.05) 0%, transparent 70%);
}

.coupon-header {
    font-family: 'Great Vibes', cursive; /* Elegantní psací písmo */
    font-size: 3rem;
    color: #d32f2f;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.coupon-body h2 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #333;
}

.restaurant-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #cfb53b; /* Zlatá barva pro jméno restaurace */
    margin-top: 0;
}

.divider {
    font-size: 1.5rem;
    color: #cfb53b;
    margin: 15px 0;
}

.details {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.5;
}

.coupon-footer {
    margin-top: 25px;
    border-top: 2px dashed rgba(207, 181, 59, 0.5);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
}

.barcode {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    font-weight: bold;
    color: #d32f2f;
}

/* Pomocné třídy */
.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
/* --- PEXESO STYLY --- */
#pexeso-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 sloupce */
    gap: 10px;
    width: 100%;
    max-width: 350px;
    margin: 20px auto;
    perspective: 1000px; /* Pro 3D efekt otáčení */
}

.card {
    background-color: transparent;
    height: 100px; /* Výška kartičky */
    cursor: pointer;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
}

/* Třída, která otočí kartu */
.card.flipped .card-inner {
    transform: rotateY(180deg);
}

/* Třída pro nalezené páry (aby bylo jasné, že jsou hotové) */
.card.matched .card-inner {
    transform: rotateY(180deg);
    box-shadow: 0 0 15px #4CAF50; /* Zelená záře */
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 2.5rem;
    border: 2px solid #ff4d6d;
}

/* Zadní strana (ta co je vidět nejdřív - otazník/vzor) */
.card-front {
    background-color: #ffbdc5;
    color: #d32f2f;
    font-size: 2rem;
}

/* Přední strana (obrázek po otočení) */
.card-back {
    background-color: white;
    transform: rotateY(180deg);
}