* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0a3d20 0%, #1a6b3f 40%, #2d8f5a 100%);
    font-family: 'Roboto', 'Segoe UI', 'Arial', sans-serif;
    min-height: 100vh;
    padding: 10px;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 80px;
}

#falling-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10070;
}

/* ========== СЧЁТЧИК ЛЯГУШЕК (СЛЕВА ВВЕРХУ) ========== */
.frog-counter {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #ffd966;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.counter-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    animation: iconHop 0.5s infinite alternate;
}

@keyframes iconHop {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-3px); }
}

.frog-counter span {
    font-size: 20px;
    font-weight: bold;
    color: #ffd966;
    font-family: 'Nunito Sans', sans-serif;
}

.counter-text {
    font-size: 16px !important;
    color: #c8e6b5 !important;
}

@media (max-width: 480px) {
    .frog-counter { top: 5px; left: 5px; padding: 5px 10px; }
    .counter-icon { width: 20px; height: 20px; }
    .frog-counter span { font-size: 14px; }
    .counter-text { font-size: 12px !important; }
}

/* ========== НОВАЯ КНОПКА СТАРТА ПО ЦЕНТРУ ПОД ФОТО ========== */
.main-frog-wrapper {
    text-align: center;
    margin: 15px auto 30px auto;
    padding: 12px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.start-game-btn {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    border: none;
    border-radius: 60px;
    padding: 12px 24px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: pulseBtn 1.5s infinite;
    width: auto;
    min-width: 200px;
}

.start-game-btn:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #f39c12, #f1c40f);
}

.start-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.start-game-btn span {
    font-size: 18px;
    font-weight: bold;
    color: white;
    font-family: 'Nunito Sans', sans-serif;
}

.start-game-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    animation: none;
}

@keyframes pulseBtn {
    0% { transform: scale(1); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); }
    50% { transform: scale(1.02); box-shadow: 0 5px 25px rgba(243, 156, 18, 0.6); }
    100% { transform: scale(1); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); }
}

@media (max-width: 480px) {
    .start-game-btn { padding: 10px 18px; min-width: 160px; }
    .start-icon { width: 24px; height: 24px; }
    .start-game-btn span { font-size: 14px; }
}

/* ========== ЗАГОЛОВОК ========== */
.header {
    text-align: center;
    margin-bottom: 15px;
}

h1 {
    text-align: center;
    margin: 8px 0;
    font-weight: 800;
    line-height: 1.25;
}

.h1-line1 {
    display: block;
    font-size: 0.7em;
    background: linear-gradient(135deg, #ffd966, #ffb347, #ff8c00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 3px;
    white-space: nowrap;
}

.h1-line2 {
    display: block;
    font-size: 0.55em;
    background: linear-gradient(135deg, #c8e6b5, #81c784, #4caf50);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

@media (min-width: 480px) {
    .h1-line1 { font-size: 0.85em; }
    .h1-line2 { font-size: 0.7em; }
}
@media (min-width: 768px) {
    .h1-line1 { font-size: 1em; }
    .h1-line2 { font-size: 0.85em; }
}

/* ========== ЛЕТАЮЩИЕ ЛЯГУШКИ ========== */
.flying-frog {
    position: fixed;
    cursor: pointer;
    z-index: 9999;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    transition: all 0.05s linear;
}

.flying-frog img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.flying-frog:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px gold);
}

@keyframes catchFlashAnim {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; filter: brightness(1.5); }
    100% { transform: scale(0); opacity: 0; }
}

.flying-frog.caught {
    animation: catchFlashAnim 0.2s ease forwards;
    pointer-events: none;
}

/* ========== СВЕЧЕНИЕ ФОТО ПРИ ЛОВЛЕ ========== */
.photo-item {
    transition: all 0.3s ease;
}

@keyframes photoFlash {
    0% { filter: drop-shadow(0 0 0px gold); }
    50% { filter: drop-shadow(0 0 30px #ffd700) brightness(1.2); transform: scale(1.03); }
    100% { filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2)); transform: scale(1); }
}

.photo-item.flash {
    animation: photoFlash 0.4s ease;
}

/* ========== МАЛЕНЬКИЕ ИКОНКИ ========== */
.small-mask-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@media (max-width: 768px) {
    .small-mask-icon {
        width: 18px;
        height: 18px;
    }
}

/* ========== ФОНОВЫЕ ЛЯГУШКИ PNG ========== */
.bg-frog {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
    animation: floatFrogBg 20s infinite ease-in-out;
}

.bg-frog img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bg-frog-1 { top: 2%; left: 3%; width: 120px; height: 120px; animation-duration: 18s; }
.bg-frog-2 { top: 8%; right: 2%; width: 140px; height: 140px; animation-duration: 22s; animation-delay: -2s; }
.bg-frog-3 { bottom: 5%; left: 2%; width: 110px; height: 110px; animation-duration: 20s; animation-delay: -5s; }
.bg-frog-4 { bottom: 12%; right: 3%; width: 130px; height: 130px; animation-duration: 25s; animation-delay: -8s; }
.bg-frog-5 { top: 30%; left: 1%; width: 100px; height: 100px; animation-duration: 17s; animation-delay: -3s; }
.bg-frog-6 { top: 50%; right: 1%; width: 125px; height: 125px; animation-duration: 21s; animation-delay: -10s; }
.bg-frog-7 { bottom: 30%; left: 4%; width: 115px; height: 115px; animation-duration: 19s; animation-delay: -15s; }
.bg-frog-8 { top: 65%; right: 4%; width: 135px; height: 135px; animation-duration: 23s; animation-delay: -7s; }
.bg-frog-9 { top: 80%; left: 10%; width: 105px; height: 105px; animation-duration: 16s; animation-delay: -12s; }
.bg-frog-10 { bottom: 50%; right: 12%; width: 120px; height: 120px; animation-duration: 24s; animation-delay: -4s; }
.bg-frog-11 { top: 15%; left: 20%; width: 95px; height: 95px; animation-duration: 20s; animation-delay: -18s; }
.bg-frog-12 { bottom: 18%; left: 25%; width: 110px; height: 110px; animation-duration: 22s; animation-delay: -6s; }

@keyframes floatFrogBg {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-30px) rotate(10deg) scale(1.05); }
    50% { transform: translateY(0px) rotate(0deg) scale(1); }
    75% { transform: translateY(25px) rotate(-8deg) scale(0.95); }
}

/* ========== ФОНОВЫЕ ЗВЁЗДОЧКИ PNG ========== */
.bg-star-img {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
    animation: floatStarBg 15s infinite ease-in-out;
}

.bg-star-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bg-star-img-1 { top: 5%; left: 15%; width: 55px; height: 55px; animation-duration: 14s; }
.bg-star-img-2 { top: 20%; right: 10%; width: 45px; height: 45px; animation-duration: 18s; animation-delay: -3s; }
.bg-star-img-3 { bottom: 8%; left: 20%; width: 50px; height: 50px; animation-duration: 16s; animation-delay: -6s; }
.bg-star-img-4 { bottom: 20%; right: 15%; width: 40px; height: 40px; animation-duration: 20s; animation-delay: -2s; }
.bg-star-img-5 { top: 40%; left: 8%; width: 48px; height: 48px; animation-duration: 13s; animation-delay: -9s; }
.bg-star-img-6 { top: 55%; right: 8%; width: 52px; height: 52px; animation-duration: 17s; animation-delay: -5s; }
.bg-star-img-7 { bottom: 40%; left: 12%; width: 42px; height: 42px; animation-duration: 19s; animation-delay: -11s; }
.bg-star-img-8 { top: 75%; right: 18%; width: 46px; height: 46px; animation-duration: 15s; animation-delay: -8s; }
.bg-star-img-9 { top: 85%; left: 30%; width: 38px; height: 38px; animation-duration: 21s; animation-delay: -4s; }
.bg-star-img-10 { bottom: 65%; right: 25%; width: 44px; height: 44px; animation-duration: 16s; animation-delay: -13s; }

@keyframes floatStarBg {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(20deg); }
}

@media (max-width: 768px) {
    .bg-frog-1, .bg-frog-5, .bg-frog-9 { width: 80px; height: 80px; opacity: 0.2; }
    .bg-frog-2, .bg-frog-6, .bg-frog-10 { width: 95px; height: 95px; opacity: 0.2; }
    .bg-frog-3, .bg-frog-7, .bg-frog-11 { width: 75px; height: 75px; opacity: 0.2; }
    .bg-frog-4, .bg-frog-8, .bg-frog-12 { width: 90px; height: 90px; opacity: 0.2; }
    .bg-star-img-1, .bg-star-img-2, .bg-star-img-3, .bg-star-img-4,
    .bg-star-img-5, .bg-star-img-6, .bg-star-img-7, .bg-star-img-8,
    .bg-star-img-9, .bg-star-img-10 {
        width: 30px; height: 30px; opacity: 0.25;
    }
}

/* ========== КНОПКА СКРОЛЛА ========== */
.scroll-top {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.scroll-top:hover {
    transform: scale(1.05);
}

.scroll-frog-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.scroll-top.rotating .scroll-frog-img {
    animation: scrollRotate 2s linear infinite;
}

@keyframes scrollRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (min-width: 768px) {
    .scroll-top { width: 55px; height: 55px; bottom: 20px; right: 20px; }
    .scroll-frog-img { width: 38px; height: 38px; }
}

/* ========== ГАЛЕРЕЯ ========== */
.gallery {
    column-count: 2;
    column-gap: 12px;
    margin: 20px 0;
}
@media (min-width: 768px) { 
    .gallery { column-count: 3; column-gap: 15px; } 
}

.photo-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.frog-mask-wrapper {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: visible;
}

.frog-mask-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
    transform-origin: center center;
}

.photo-item:hover .frog-mask-img {
    transform: scale(1.05);
}

.photo-item .caption {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    padding: 5px 12px;
    opacity: 0;
    transition: opacity 0.2s;
    font-family: 'Roboto', 'Segoe UI', 'Arial', sans-serif;
    color: #f9f1d9 !important;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    width: auto;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

.photo-item:hover .caption {
    opacity: 1;
}

@media (max-width: 480px) {
    .photo-item .caption {
        font-size: 9px;
        padding: 4px 8px;
        bottom: 6px;
    }
}

/* ========== ГЛАВНОЕ ФОТО (с исправленным позиционированием внутри маски) ========== */
.main-frog-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}
@media (min-width: 480px) { .main-frog-container { max-width: 360px; } }
@media (min-width: 768px) { .main-frog-container { max-width: 400px; } }

.main-frog-face { 
    position: relative; 
    width: 100%;
    overflow: visible;
}

.main-frog-face .frog-mask-wrapper {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    -webkit-mask-image: url('images/frog-mask3.png');
    mask-image: url('images/frog-mask3.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    overflow: visible;
}

.main-frog-img {
    width: 95%;
    height: 95%;
    object-fit: cover;
    object-position: center -12%;
    margin-left: 13dzpx;
    display: block;
}

.main-frog-eyes {
    position: absolute;
    top: 5%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 35%;
    pointer-events: none;
}
.main-eye {
    font-size: 28px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
    animation: blink 3s infinite;
}
@media (min-width: 768px) { .main-eye { font-size: 40px; } }
@keyframes blink { 0%, 90%, 100% { opacity: 1; transform: scale(1); } 95% { opacity: 0.2; transform: scale(0.7); } }

.frog-leg {
    position: absolute;
    font-size: 30px;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.2));
}
.frog-leg.left-leg.top { top: -12px; left: -12px; transform: rotate(-30deg); }
.frog-leg.right-leg.top { top: -12px; right: -12px; transform: rotate(30deg); }
.frog-leg.left-leg.bottom { bottom: -15px; left: -8px; transform: rotate(20deg); }
.frog-leg.right-leg.bottom { bottom: -15px; right: -8px; transform: rotate(-20deg); }
@media (min-width: 768px) {
    .frog-leg { font-size: 45px; }
    .frog-leg.left-leg.top { top: -20px; left: -20px; }
    .frog-leg.right-leg.top { top: -20px; right: -20px; }
    .frog-leg.left-leg.bottom { bottom: -25px; left: -15px; }
    .frog-leg.right-leg.bottom { bottom: -25px; right: -15px; }
}
.main-frog-caption {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #ffd966;
    text-shadow: 1px 1px 0 #2d5a27;
}

/* ========== ПОЗДРАВЛЕНИЕ С МАСКОЙ frog-mask2.png НА ФОНЕ ========== */
.message-wrapper {
    position: relative;
    margin: 30px 0;
    overflow: hidden;
    border-radius: 35px;
}

.message-bg-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/frog-mask2.png');
    background-size: 1300px 1300px;
    background-position: center;
    pointer-events: none;
    z-index: 0;
    border-radius: 35px;
}

.message-bg-mask-2 {
    background-size: 150px 150px;
    background-position: 30% 40%;
    opacity: 0.1;
    transform: rotate(15deg);
}

.message-bg-mask-3 {
    background-size: 200px 200px;
    background-position: 70% 60%;
    opacity: 0.12;
    transform: rotate(-10deg);
}

.message {
    position: relative;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 35px;
    padding: 22px 20px;
    text-align: center;
    z-index: 2;
}

.message p {
    font-size: 1.9em;
    font-weight: bold;
    line-height: 1.6;
    color: #82a711;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin: 10px auto;
    font-family: "IBM Plex Mono", monospace;
    max-width: 880px;
    width: 100%;
    text-align: center;
    display: block;
}

.message-stars-top,
.message-stars-bottom {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .message { padding: 18px 15px; }
    .message p { font-size: 0.8em; line-height: 1.5; margin: 8px auto; max-width: 280px; }
    .message-stars-top, .message-stars-bottom { gap: 5px; }
    .message-bg-mask { background-size: 1200px 1200px; }
}

@media (max-width: 480px) {
    .message p { font-size: 0.75em; max-width: 240px; }
    .message-bg-mask { background-size: 400px 400px; padding: 600px; padding-right: 120px;}
}

/* ========== АСТРОЛОГИЯ (красивое оформление) ========== */
.horoscope {
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.85), rgba(45, 35, 70, 0.9));
    backdrop-filter: blur(8px);
    border-radius: 35px;
    padding: 25px 20px;
    margin: 30px 0;
    border: 2px solid #b39ddb;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(179, 157, 219, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.horoscope:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 35px rgba(179, 157, 219, 0.6);
}

.horoscope::before {
    content: "✨";
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 80px;
    opacity: 0.1;
    pointer-events: none;
}

.horoscope::after {
    content: "✨";
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 80px;
    opacity: 0.1;
    pointer-events: none;
}

.horoscope-title {
    font-size: 22px;
    font-weight: bold;
    color: #ffd966;
    margin-bottom: 18px;
    text-shadow: 2px 2px 0 #2d5a27;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 1px;
}

.horoscope-text p {
    font-size: 1em;
    line-height: 1.6;
    margin: 12px 0;
    color: #f9f1d9;
}

.horoscope-text strong { 
    color: #c8e6b5;
    text-shadow: 1px 1px 0 #2d5a27;
}

@media (max-width: 768px) {
    .horoscope {
        padding: 18px 15px;
        margin: 20px 0;
    }
    .horoscope-title {
        font-size: 18px;
        gap: 8px;
    }
    .horoscope-text p {
        font-size: 0.85em;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .horoscope {
        padding: 15px 12px;
        margin: 15px 0;
    }
    .horoscope-title {
        font-size: 16px;
    }
    .horoscope-text p {
        font-size: 0.8em;
    }
}

/* ========== КНОПКА НАЖМИ ========== */
#partyButton {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: #ffffff;
    border: none;
    padding: 15px 25px;
    font-size: 18px;
    border-radius: 60px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px auto;
    transition: all 0.2s;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 120px;
}

.party-btn-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

#partyButton span {
    font-size: 16px;
}

#partyButton:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #f39c12, #f1c40f);
}

@media (max-width: 480px) {
    #partyButton { padding: 12px 20px; min-width: 100px; }
    .party-btn-img { width: 40px; height: 40px; }
    #partyButton span { font-size: 14px; }
}

/* ========== ОСТАЛЬНЫЕ СТИЛИ ========== */
.container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 8px;
}

.stars-around {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
}

/* ========== КОНФЕТТИ ========== */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd700;
    opacity: 0.8;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* ========== ПАДАЮЩИЕ ЛЯГУШКИ PNG (ПОВЕРХ ОТКРЫТКИ) ========== */
.falling-frog-celebrate {
    position: fixed;
    pointer-events: none;
    z-index: 10080;
    animation: frogFall linear forwards;
}

@keyframes frogFall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.falling-frog-celebrate img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========== ФИНАЛЬНОЕ ПОЗДРАВЛЕНИЕ (увеличенное фото) ========== */
.final-congrats {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 3px solid #ffd700;
    border-radius: 30px;
    padding: 20px 25px;
    text-align: center;
    z-index: 10050;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    animation: zoomIn 0.5s ease;
    max-width: 85%;
    width: 420px;
}

@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.final-congrats .win-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 30px;
    margin: 10px auto;
    border: 3px solid #ffd700;
    display: block;
}

.final-congrats h2 {
    font-size: 24px;
    color: #ffd700;
    font-family: 'Nunito Sans', sans-serif;
    margin-bottom: 10px;
}

.final-congrats p {
    font-size: 15px;
    color: white;
    font-family: 'Nunito Sans', sans-serif;
    margin: 8px 0;
}

.final-congrats .frog-celebrate {
    font-size: 45px;
    margin: 10px 0;
    animation: bounce 0.5s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0px); }
    to { transform: translateY(-10px); }
}

.close-final {
    background: #ffd700;
    color: #0a3d20;
    border: none;
    padding: 10px 25px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    font-family: 'Nunito Sans', sans-serif;
    transition: transform 0.2s;
}

.close-final:hover {
    background: #ffed4a;
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .final-congrats {
        padding: 15px 20px;
        width: 90%;
        max-width: 340px;
    }
    .final-congrats h2 {
        font-size: 20px;
    }
    .final-congrats p {
        font-size: 13px;
    }
    .final-congrats .win-photo {
        width: 130px;
        height: 130px;
    }
    .final-congrats .frog-celebrate {
        font-size: 35px;
    }
    .close-final {
        padding: 8px 20px;
        font-size: 14px;
    }
}