/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: 
        linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.3) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 150"><path d="M0,150 L50,120 L100,135 L150,90 L200,127.5 L250,105 L300,142.5 L350,112.5 L400,132 L400,150 Z" fill="%23000000" opacity="0.3"/></svg>'),
        linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-repeat: no-repeat;
    background-position: bottom, bottom, center;
    background-size: 100% auto, 100% auto, 100% 100%;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: #fff;
}

/* Starry Night Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 40%, white, transparent),
        radial-gradient(1px 1px at 33% 60%, white, transparent),
        radial-gradient(2px 2px at 10% 80%, white, transparent);
    background-size: 200% 200%;
    animation: twinkle 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

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

/* Snowflakes Container */
.snowflakes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    user-select: none;
    pointer-events: none;
    will-change: transform, opacity;
    animation: snowfall linear infinite;
    animation-duration: var(--fall-duration, 15s);
    animation-delay: var(--fall-delay, 0s);
    animation-timing-function: linear;
    transform-origin: center center;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Smooth, natural falling motion with organic swaying and rotation */
@keyframes snowfall {
    0% {
        transform: translateY(-25vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    3% {
        opacity: 0.3;
    }
    5% {
        opacity: 1;
        transform: translateY(-20vh) translateX(calc(var(--sway-1, 0px) * 0.1)) rotate(calc(var(--rotation-total, 360) * 0.05deg));
    }
    10% {
        transform: translateY(-10vh) translateX(calc(var(--sway-1, 0px) * 0.2 + var(--sway-2, 0px) * 0.1)) rotate(calc(var(--rotation-total, 360) * 0.1deg));
    }
    15% {
        transform: translateY(0vh) translateX(calc(var(--sway-1, 0px) * 0.3 + var(--sway-2, 0px) * 0.2)) rotate(calc(var(--rotation-total, 360) * 0.15deg));
    }
    20% {
        transform: translateY(10vh) translateX(calc(var(--sway-1, 0px) * -0.2 + var(--sway-2, 0px) * 0.3)) rotate(calc(var(--rotation-total, 360) * 0.2deg));
    }
    25% {
        transform: translateY(20vh) translateX(calc(var(--sway-1, 0px) * -0.5 + var(--sway-2, 0px) * 0.4)) rotate(calc(var(--rotation-total, 360) * 0.25deg));
    }
    30% {
        transform: translateY(30vh) translateX(calc(var(--sway-1, 0px) * -0.7 + var(--sway-2, 0px) * 0.5)) rotate(calc(var(--rotation-total, 360) * 0.3deg));
    }
    35% {
        transform: translateY(40vh) translateX(calc(var(--sway-1, 0px) * -0.9 + var(--sway-2, 0px) * 0.4)) rotate(calc(var(--rotation-total, 360) * 0.35deg));
    }
    40% {
        transform: translateY(50vh) translateX(calc(var(--sway-1, 0px) * -0.8 + var(--sway-2, 0px) * 0.2)) rotate(calc(var(--rotation-total, 360) * 0.4deg));
    }
    45% {
        transform: translateY(60vh) translateX(calc(var(--sway-1, 0px) * -0.5 + var(--sway-2, 0px) * 0)) rotate(calc(var(--rotation-total, 360) * 0.45deg));
    }
    50% {
        transform: translateY(70vh) translateX(calc(var(--sway-1, 0px) * 0 + var(--sway-2, 0px) * -0.2)) rotate(calc(var(--rotation-total, 360) * 0.5deg));
    }
    55% {
        transform: translateY(80vh) translateX(calc(var(--sway-1, 0px) * 0.5 + var(--sway-2, 0px) * -0.4)) rotate(calc(var(--rotation-total, 360) * 0.55deg));
    }
    60% {
        transform: translateY(90vh) translateX(calc(var(--sway-1, 0px) * 0.8 + var(--sway-2, 0px) * -0.5)) rotate(calc(var(--rotation-total, 360) * 0.6deg));
    }
    65% {
        transform: translateY(100vh) translateX(calc(var(--sway-1, 0px) * 0.9 + var(--sway-2, 0px) * -0.4)) rotate(calc(var(--rotation-total, 360) * 0.65deg));
    }
    70% {
        transform: translateY(110vh) translateX(calc(var(--sway-1, 0px) * 0.7 + var(--sway-2, 0px) * -0.3)) rotate(calc(var(--rotation-total, 360) * 0.7deg));
    }
    75% {
        transform: translateY(120vh) translateX(calc(var(--sway-1, 0px) * 0.4 + var(--sway-2, 0px) * -0.2)) rotate(calc(var(--rotation-total, 360) * 0.75deg));
    }
    80% {
        transform: translateY(130vh) translateX(calc(var(--sway-1, 0px) * 0.1 + var(--sway-2, 0px) * -0.1)) rotate(calc(var(--rotation-total, 360) * 0.8deg));
    }
    85% {
        transform: translateY(140vh) translateX(calc(var(--sway-1, 0px) * -0.2 + var(--sway-2, 0px) * 0)) rotate(calc(var(--rotation-total, 360) * 0.85deg));
    }
    90% {
        transform: translateY(150vh) translateX(calc(var(--sway-1, 0px) * -0.3 + var(--sway-2, 0px) * 0.1)) rotate(calc(var(--rotation-total, 360) * 0.9deg));
    }
    95% {
        transform: translateY(160vh) translateX(calc(var(--sway-1, 0px) * -0.2 + var(--sway-2, 0px) * 0.1)) rotate(calc(var(--rotation-total, 360) * 0.95deg));
        opacity: 0.8;
    }
    97% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(170vh) translateX(0) rotate(calc(var(--rotation-total, 360) * 1deg));
        opacity: 0;
    }
}

/* City Silhouette - now combined with body background above */

/* Game Container */
.game-container {
    max-width: 100vw;
    min-height: 100vh;
    padding: 16px;
    position: relative;
    z-index: 1;
}

/* Header */
.game-header {
    position: relative;
    text-align: center;
    padding: 15px 10px;
    margin-bottom: 15px;
}

.game-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.mute-toggle-button {
    position: absolute;
    top: 6px;
    right: 0;
    background: rgba(139, 111, 71, 0.8);
    border: 2px solid rgba(107, 78, 55, 0.9);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.mute-toggle-button:hover {
    background: rgba(139, 111, 71, 1);
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.mute-toggle-button:active {
    transform: scale(0.95);
}

.mute-toggle-button.muted {
    background: rgba(107, 78, 55, 0.8);
    opacity: 0.7;
}

.mute-icon {
    font-size: 1.2rem;
    user-select: none;
    pointer-events: none;
}

/* Wooden Panel Base Style */
.wooden-panel {
    background: 
        linear-gradient(135deg, #8b6f47 0%, #6b4e37 50%, #5a3e2a 100%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.15) 2px,
            rgba(0, 0, 0, 0.15) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 8px,
            rgba(255, 255, 255, 0.03) 8px,
            rgba(255, 255, 255, 0.03) 10px
        );
    border-radius: 12px;
    padding: 24px 16px 16px 16px;
    margin-bottom: 16px;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    border: 2px solid #4a3a2a;
}

/* Snow Cap Effect - Using CSS clip-path with polygon for organic snow shapes */
.wooden-panel::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -2px;
    right: -2px;
    height: 14px;
    background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 50%, #e8e8e8 100%);
    clip-path: polygon(
        0% 60%, 2% 45%, 5% 50%, 8% 40%, 12% 55%, 15% 35%, 18% 50%, 22% 40%, 
        25% 60%, 28% 35%, 32% 50%, 35% 45%, 38% 55%, 42% 40%, 45% 50%, 48% 35%, 
        52% 60%, 55% 40%, 58% 50%, 62% 45%, 65% 55%, 68% 40%, 72% 50%, 75% 35%, 
        78% 55%, 82% 40%, 85% 50%, 88% 45%, 92% 60%, 95% 50%, 98% 55%, 100% 50%,
        100% 100%, 0% 100%
    );
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 1;
}

/* Intro Panel */
.intro-panel {
    text-align: center;
    position: relative;
    z-index: 2;
}

.panel-content {
    position: relative;
    z-index: 2;
    padding: 24px 0;
}

.intro-panel h2 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.intro-panel p {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #fff;
}

/* Game Area */
.game-area {
    display: flex;
    flex-direction: column;
}

/* Flow Info */
.flow-info {
    text-align: center;
}

.challenge-number {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.flow-name {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.challenge-description {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.4;
    opacity: 0.9;
}

.action-count {
    color: #ffd700;
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: 5px;
}

/* Flow Area Container */
.flow-area-container {
    min-height: 120px;
}

.flow-area-header {
    color: #ffd700;
    font-size: 1rem;
    margin-bottom: 10px;
    text-align: center;
}

.flow-area {
    display: flex;
    gap: 10px;
    justify-content: center;
    overflow-x: auto;
    min-height: 80px;
    align-items: center;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    transition: opacity 0.3s ease;
}

.flow-area.disabled {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.flow-area.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    pointer-events: none;
}

.flow-placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    text-align: center;
    width: 100%;
}

.flow-button {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    text-align: center;
    padding: 5px;
}

.flow-button.empty-slot {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    opacity: 0.6;
}

.flow-button .icon {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.flow-button.empty-slot .icon {
    opacity: 0.4;
}

.flow-button .label {
    font-size: 0.6rem;
    color: #fff;
}

.flow-button.empty-slot .label {
    opacity: 0.4;
}

/* Hints Panel */
.hints-panel {
    margin-bottom: 15px;
}

.hints-toggle {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid #4a3a2a;
    border-radius: 8px;
    padding: 10px;
    color: #ffd700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hints-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.hint-section {
    margin-bottom: 15px;
}

.hint-section h4 {
    color: #ffd700;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.hint-section p {
    color: #fff;
    line-height: 1.5;
    font-size: 0.85rem;
}

/* Button Grid */
.button-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    transition: opacity 0.3s ease;
}

.button-grid.disabled {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.button-grid.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    pointer-events: none;
}

.button-card {
    aspect-ratio: 1;
    background: 
        linear-gradient(135deg, #8b6f47 0%, #6b4e37 50%, #5a3e2a 100%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.15) 2px,
            rgba(0, 0, 0, 0.15) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 6px,
            rgba(255, 255, 255, 0.03) 6px,
            rgba(255, 255, 255, 0.03) 8px
        );
    border: 2px solid #4a3a2a;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    cursor: pointer;
    touch-action: manipulation;
    position: relative;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 80px;
    z-index: 2;
}

.button-card::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -2px;
    right: -2px;
    height: 10px;
    background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 50%, #e8e8e8 100%);
    clip-path: polygon(
        0% 55%, 3% 40%, 6% 50%, 10% 35%, 14% 55%, 18% 40%, 22% 50%, 26% 35%, 
        30% 55%, 34% 40%, 38% 50%, 42% 45%, 46% 55%, 50% 40%, 54% 50%, 58% 35%, 
        62% 55%, 66% 40%, 70% 50%, 74% 45%, 78% 55%, 82% 40%, 86% 50%, 90% 45%, 
        94% 60%, 97% 50%, 100% 55%, 100% 100%, 0% 100%
    );
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.button-card:active {
    transform: scale(0.95);
}

.button-card.selected {
    border-color: #ffd700;
    border-width: 3px;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: 
        linear-gradient(135deg, #9b7f57 0%, #7b5e47 50%, #6a4e3a 100%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.15) 2px,
            rgba(0, 0, 0, 0.15) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 6px,
            rgba(255, 255, 255, 0.05) 6px,
            rgba(255, 255, 255, 0.05) 8px
        );
    transform: scale(1.02);
}

.button-card.selected::before {
    background: linear-gradient(to bottom, #fff8dc 0%, #f0f0f0 50%, #e8e8e8 100%);
}

.button-card .icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.button-card .label {
    font-size: 0.7rem;
    color: #fff;
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
}

/* Messages Area */

.message {
    background: 
        linear-gradient(135deg, #8b6f47 0%, #6b4e37 50%, #5a3e2a 100%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px
        );
    border: 2px solid #4a3a2a;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    text-align: center;
    color: #fff;
    position: relative;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    white-space: pre-line;
    line-height: 1.6;
    z-index: 2;
}

.message::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -2px;
    right: -2px;
    height: 14px;
    background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 50%, #e8e8e8 100%);
    clip-path: polygon(
        0% 65%, 3% 50%, 6% 60%, 10% 45%, 14% 65%, 18% 50%, 22% 60%, 26% 45%, 
        30% 65%, 34% 50%, 38% 60%, 42% 55%, 46% 65%, 50% 50%, 54% 60%, 58% 45%, 
        62% 65%, 66% 50%, 70% 60%, 74% 55%, 78% 65%, 82% 50%, 86% 60%, 90% 55%, 
        94% 70%, 97% 60%, 100% 65%, 100% 100%, 0% 100%
    );
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.message.success {
    border-color: #4caf50;
    background: linear-gradient(135deg, #6b8e47 0%, #5a7e37 50%, #4a6e2a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.message-button {
    margin-top: 10px;
    width: auto;
    min-width: 200px;
}

.message.error {
    border-color: #f44336;
    background: linear-gradient(135deg, #8b4f47 0%, #6b3e37 50%, #5a2e2a 100%);
}

.message.festive {
    border-color: #ffd700;
    background: linear-gradient(135deg, #8b7f47 0%, #6b6e37 50%, #5a5e2a 100%);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.wooden-button {
    background: 
        linear-gradient(135deg, #8b6f47 0%, #6b4e37 50%, #5a3e2a 100%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px
        );
    border: 2px solid #4a3a2a;
    border-radius: 10px;
    padding: 12px 24px;
    color: #4caf50;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    touch-action: manipulation;
    position: relative;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.2s;
    min-height: 44px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-top: 12px;
}

.wooden-button::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -2px;
    right: -2px;
    height: 9px;
    background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 50%, #e8e8e8 100%);
    clip-path: polygon(
        0% 50%, 4% 35%, 8% 45%, 12% 30%, 16% 50%, 20% 35%, 24% 45%, 28% 40%, 
        32% 55%, 36% 35%, 40% 50%, 44% 40%, 48% 55%, 52% 35%, 56% 50%, 60% 40%, 
        64% 55%, 68% 35%, 72% 50%, 76% 45%, 80% 60%, 84% 45%, 88% 55%, 92% 50%, 
        96% 60%, 100% 55%, 100% 100%, 0% 100%
    );
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.wooden-button:active {
    transform: scale(0.95);
}

/* Confetti Container */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* Shake Animation */
.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.modal-content {
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2001;
}

.modal-message {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    padding: 0 8px;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.modal-button {
    width: 100%;
    margin-top: 0;
}

/* Video Modal */
.video-modal-content {
    max-width: 90vw;
    width: 100%;
    padding: 20px;
    position: relative;
}

.video-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #4a3a2a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2002;
    transition: background 0.2s, transform 0.2s;
    line-height: 1;
}

.video-close-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.video-close-button:active {
    transform: scale(0.95);
}

.video-player {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    background: #000;
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .game-title {
        font-size: 1.2rem;
    }
    
    .button-grid {
        gap: 8px;
    }
    
    .button-card {
        min-height: 70px;
    }
    
    .button-card .icon {
        font-size: 1.5rem;
    }
    
    .button-card .label {
        font-size: 0.65rem;
    }
    
    .modal-message {
        font-size: 1rem;
    }
}

