    html {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    body {
        margin: 0;
        overflow: hidden;
        background: url('/media/back.JPG');
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        font-family: 'Nunito', sans-serif;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    /* Loading Screen */
    .loading-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(248, 229, 216, 0.95);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .loading-content {
        background: linear-gradient(165deg, #fff 0%, #F8E5D8 100%);
        padding: 2rem;
        border-radius: 1.5rem;
        box-shadow: 0 20px 40px rgba(214, 75, 71, 0.15);
        text-align: center;
        border: 2px solid rgba(214, 75, 71, 0.2);
        max-width: 90%;
        width: 400px;
    }

    .loading-content h2 {
        color: #D64B47;
        font-size: 2rem;
        margin-bottom: 1.5rem;
        font-weight: bold;
        font-family: 'Nunito', sans-serif;
    }

    .start-game-btn {
        width: 100%;
        padding: 1rem;
        background: linear-gradient(135deg, #D64B47, #FF6B6B);
        color: white;
        border: none;
        border-radius: 1rem;
        font-size: 1.25rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 4px 12px rgba(214, 75, 71, 0.2);
        font-family: 'Nunito', sans-serif;
    }

    .start-game-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(214, 75, 71, 0.3);
        background: linear-gradient(135deg, #FF6B6B, #D64B47);
    }

    .start-game-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(214, 75, 71, 0.2);
    }

    .loading-spinner {
        width: 50px;
        height: 50px;
        border: 5px solid #F8E5D8;
        border-top: 5px solid #D64B47;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 20px auto;
    }

    .loading-content.error {
        color: #ff6b6b;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* Base layer */
    .background-layer {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 0;
    }

    /* Canvas styles */
    #gameCanvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('/media/back.JPG');
        z-index: 2;
    }

    /* Game UI */
    .game-ui {
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 3;
    }

    .game-ui #score,
    .game-ui #timer {
        position: fixed;
        top: 32px;
        padding: 16px 24px;
        font-family: 'Nunito', sans-serif;
        font-size: 28px;
        font-weight: bold;
        color: white;
        border-radius: 16px;
        letter-spacing: 1px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 4px 12px rgba(214, 75, 71, 0.2);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .game-ui #score {
        right: 32px;
        background: linear-gradient(135deg, #D64B47, #FF6B6B);
        animation: pulseScore 0.3s ease-out;
    }

    .game-ui #timer {
        left: 32px;
        background: linear-gradient(135deg, #D64B47, #FF6B6B);
        animation: pulseTimer 2s infinite;
    }

    /* Game Message */
    .game-message {
        font-family: 'Nunito', sans-serif;
        animation: scaleIn 0.3s ease-out;
        z-index: 4;
    }

    /* Game Over Message */
    .game-over-message {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 48px;
        font-weight: bold;
        text-align: center;
        background: linear-gradient(to bottom, #D64B47, #FF6B6B);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
        animation: gameOverAppear 0.5s ease-out;
        z-index: 1000;
    }

    /* Modal Window */
    .game-over-modal {
        position: fixed;
        inset: 0;
        background: rgba(248, 229, 216, 0.95);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        z-index: 5;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .modal-content {
        background: linear-gradient(165deg, #fff 0%, #F8E5D8 100%);
        padding: 2rem;
        border-radius: 1.5rem;
        box-shadow: 0 20px 40px rgba(214, 75, 71, 0.15);
        max-width: 32rem;
        width: 90%;
        border: 2px solid rgba(214, 75, 71, 0.2);
        margin: 0 1rem;
        overflow-y: auto;
        max-height: 90vh;
    }

    .modal-content h2 {
        color: #D64B47;
        text-align: center;
        font-size: 2rem;
        margin-bottom: 1.5rem;
        font-weight: bold;
        font-family: 'Nunito', sans-serif;
    }

    .modal-content .score {
        background: linear-gradient(135deg, #D64B47, #FF6B6B);
        padding: 1rem;
        border-radius: 1rem;
        color: white;
        text-align: center;
        font-size: 1.5rem;
        margin-bottom: 2rem;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
        box-shadow: 0 4px 12px rgba(214, 75, 71, 0.2);
    }

    .stats {
        background: rgba(255,255,255,0.7);
        padding: 1.5rem;
        border-radius: 1rem;
        margin-bottom: 1.5rem;
        border: 1px solid rgba(214, 75, 71, 0.1);
    }

    .stat-row {
        display: flex;
        align-items: center;
        padding: 1rem;
        border-radius: 1rem;
        margin-bottom: 0.75rem;
        background: rgba(255,255,255,0.8);
        transition: all 0.3s ease;
        border: 1px solid rgba(214, 75, 71, 0.1);
        position: relative;
        overflow: hidden;
    }

    .stat-row:last-child {
        margin-bottom: 0;
    }

    /* Price tag hover effect */
    .stat-row:hover .price-tag {
        transform: scale(1.05);
        box-shadow: 0 3px 6px rgba(214, 75, 71, 0.25);
    }

    .stat-row:hover,
    .stat-row:active {
        background: rgba(255,255,255,0.9);
        transform: translateX(5px);
        border-color: rgba(214, 75, 71, 0.3);
        box-shadow: 0 4px 12px rgba(214, 75, 71, 0.1);
    }

    .fruit-link {
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.25rem;
        color: #D64B47;
    }

    .fruit-info {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex: 1;
    }

    .fruit-details {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }

    .fruit-name {
        font-weight: bold;
        font-size: 1.1rem;
        color: #D64B47;
    }

    .shop-hint {
        font-size: 0.8rem;
        color: #FF6B6B;
        opacity: 0.7;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        animation: hintPulse 2s infinite;
        margin-top: 0.2rem;
    }

    .stat-row:hover .shop-hint,
    .stat-row:active .shop-hint {
        opacity: 1;
        transform: translateX(5px);
    }

    .fruit-icon {
        width: 48px;
        height: 48px;
        object-fit: contain;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
        transition: transform 0.3s ease;
    }

    .stat-row:hover .fruit-icon,
    .stat-row:active .fruit-icon {
        transform: scale(1.1);
    }

    .count {
        background: linear-gradient(135deg, #D64B47, #FF6B6B);
        min-width: 2rem;
        height: 2rem;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        border-radius: 0.5rem;
        padding: 0.3rem 0.6rem;
        font-weight: bold;
        color: white;
        box-shadow: 0 2px 4px rgba(214, 75, 71, 0.2);
        margin-left: 0.5rem;
    }

    .scissors-icon {
        font-size: 0.9rem;
        transform: rotate(-90deg);
    }

    .play-again {
        width: 100%;
        padding: 1rem;
        background: linear-gradient(135deg, #D64B47, #FF6B6B);
        color: white;
        border: none;
        border-radius: 1rem;
        font-size: 1.25rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 4px 12px rgba(214, 75, 71, 0.2);
        font-family: 'Nunito', sans-serif;
    }

    .play-again:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(214, 75, 71, 0.3);
        background: linear-gradient(135deg, #FF6B6B, #D64B47);
    }

    .play-again:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(214, 75, 71, 0.2);
    }

    /* Ripple effect */
    .stat-row::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: radial-gradient(circle, rgba(214, 75, 71, 0.2) 0%, transparent 60%);
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }

    .stat-row:active::before {
        width: 200%;
        height: 200%;
    }

    .price-tag {
        font-size: 0.95rem;
        font-weight: 600;
        color: #D64B47;
        background: linear-gradient(135deg, #FFE5D9, #FFFFFF, #FFE5D9);
        padding: 0.2rem 0.6rem;
        border-radius: 0.5rem;
        display: inline-block;
        position: relative;
        margin-top: 0.2rem;
        box-shadow: 0 2px 4px rgba(214, 75, 71, 0.15);
        border: 1px solid rgba(214, 75, 71, 0.2);
        animation: priceShine 3s infinite;
    }

    /* Стили для обертки промокодов на стартовом экране */
.promo-codes-wrapper {
    margin-top: 2rem;
    width: 100%;
    max-width: 400px;
}

/* Стили для списка промокодов */
.promo-codes-list {
    margin-top: 1rem;
}

/* Контейнер промокода с градиентным фоном */
.promo-code-container {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 1.5rem;
    border-radius: 1rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.25);
    animation: promoAppear 0.5s ease-out;
}

    /* Анимированный блик на промокоде */
    .promo-sparkle {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, 
            transparent 0%,
            rgba(255,255,255,0.2) 45%,
            rgba(255,255,255,0.4) 50%,
            rgba(255,255,255,0.2) 55%,
            transparent 100%);
        animation: sparkleMove 2s infinite linear;
        pointer-events: none;
    }

    /* Заголовок в контейнере промокода */
    .promo-code-container h3 {
        color: #800000;
        text-align: center;
        font-size: 1.4rem;
        margin: 0 0 1rem 0;
        text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
    }

    /* Сам промокод */
    .promo-code-value {
        background: white;
        color: #D64B47;
        font-size: 2rem;
        font-weight: bold;
        padding: 0.75rem;
        text-align: center;
        border-radius: 0.5rem;
        margin: 0.5rem 0;
        letter-spacing: 2px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border: 2px dashed #D64B47;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    /* Эффекты наведения на промокод */
    .promo-code-value:hover {
        transform: scale(1.02);
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    }

    .promo-code-value:active {
        transform: scale(0.98);
    }

    /* Детали промокода */
    .promo-details {
        text-align: center;
        color: #800000;
        margin-top: 0.75rem;
    }

    .promo-amount {
        font-size: 1.2rem;
        font-weight: bold;
        margin-bottom: 0.25rem;
    }

    .promo-expires {
        font-size: 0.9rem;
        opacity: 0.8;
    }

    /* Price shine animation */
    @keyframes priceShine {
        0% {
            background-position: -100px;
        }
        20% {
            background-position: 200px;
        }
        100% {
            background-position: 200px;
        }
    }
    /* Animations */
    @keyframes pulseScore {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }

    @keyframes pulseTimer {
        0% { opacity: 1; }
        50% { opacity: 0.8; }
        100% { opacity: 1; }
    }

    @keyframes scaleIn {
        from { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
        to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    }

    @keyframes gameOverAppear {
        from { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
        to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    }

    @keyframes hintPulse {
        0%, 100% {
            opacity: 0.7;
            transform: translateX(0);
        }
        50% {
            opacity: 1;
            transform: translateX(5px);
        }
    }

    @keyframes promoAppear {
        from {
            transform: translateY(-20px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes sparkleMove {
        0% {
            transform: translateX(-100%) rotate(45deg);
        }
        100% {
            transform: translateX(200%) rotate(45deg);
        }
    }

    /* Media Queries */
    @media screen and (max-width: 768px) {
        .game-ui #score,
        .game-ui #timer {
            font-size: 24px;
            padding: 12px 20px;
        }

        .modal-content {
            padding: 1.75rem;
        }

        .loading-content h2 {
            font-size: 1.75rem;
        }
    }

    @media screen and (max-width: 480px) {
        .game-ui #score,
        .game-ui #timer {
            font-size: 20px;
            padding: 10px 16px;
            top: 80px;
        }

        .game-ui #score {
            right: 16px;
        }

        .game-ui #timer {
            left: 16px;
        }

        .modal-content {
            padding: 1.25rem;
            margin: 0.5rem;
        }

        .stats {
            padding: 1rem;
        }

        .stat-row {
            padding: 0.75rem;
            margin-bottom: 0.5rem;
        }

        .fruit-name {
            font-size: 1rem;
        }

        .shop-hint {
            font-size: 0.75rem;
        }

        .fruit-icon {
            width: 40px;
            height: 40px;
        }

        .count {
            min-width: 1.75rem;
            height: 1.75rem;
            font-size: 0.9rem;
            padding: 0.25rem 0.5rem;
        }

        .modal-content h2 {
            font-size: 1.75rem;
        }

        .game-over-message {
            font-size: 36px;
        }

        .play-again {
            padding: 0.875rem;
            font-size: 1.15rem;
        }

        .loading-content {
            padding: 1.5rem;
        }

        .loading-content h2 {
            font-size: 1.5rem;
        }

        .loading-spinner {
            width: 40px;
            height: 40px;
            border-width: 4px;
        }

        .loading-content {
            padding: 1.5rem;
        }
        
        .loading-content h2 {
            font-size: 1.75rem;
        }
        
        .start-game-btn {
            padding: 0.875rem;
            font-size: 1.15rem;
        }
        .price-tag {
            font-size: 0.85rem;
            padding: 0.15rem 0.5rem;
        }
        
        .fruit-details {
            gap: 0.1rem;
        }

        .promo-code-container {
            padding: 1.25rem;
            margin: 1rem 0;
        }

        .promo-code-container h3 {
            font-size: 1.2rem;
        }

        .promo-code-value {
            font-size: 1.5rem;
            padding: 0.5rem;
        }

        .promo-amount {
            font-size: 1rem;
        }

        .promo-expires {
            font-size: 0.8rem;
        }
    }

    @media screen and (max-width: 320px) {
        .fruit-icon {
            width: 36px;
            height: 36px;
        }

        .fruit-name {
            font-size: 0.9rem;
        }
    }