/* =====================================================
   ULTIMATE MISSION - Complete UI Redesign
   Modern, sleek, game-like interface
   ===================================================== */

/* CSS Variables - Color Palette */
:root {
    /* Main colors */
    --bg-dark: #0d0d1a;
    --bg-medium: #1a1a2e;
    --bg-light: #252545;

    /* Accent colors */
    --pink: #ff2d75;
    --pink-glow: rgba(255, 45, 117, 0.4);
    --cyan: #00f5ff;
    --cyan-glow: rgba(0, 245, 255, 0.4);
    --gold: #ffd93d;
    --gold-glow: rgba(255, 217, 61, 0.4);
    --purple: #b14aed;

    /* UI colors */
    --text-white: #ffffff;
    --text-gray: #a0a0b0;
    --text-dark: #606070;

    /* Gradients */
    --gradient-pink: linear-gradient(135deg, #ff2d75 0%, #ff6b9d 100%);
    --gradient-cyan: linear-gradient(135deg, #00f5ff 0%, #00b8ff 100%);
    --gradient-gold: linear-gradient(135deg, #ffd93d 0%, #ffb347 100%);
    --gradient-dark: linear-gradient(180deg, #0d0d1a 0%, #1a1a2e 100%);

    /* Fonts */
    --font-pixel: 'Press Start 2P', monospace;
    --font-main: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* iOS Safe Area Support */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }

    #dialogue-container {
        padding-bottom: calc(15px + env(safe-area-inset-bottom));
    }

    .minigame-content {
        margin-bottom: env(safe-area-inset-bottom);
    }

    .btn-play, .btn-retry, .btn-replay {
        margin-bottom: env(safe-area-inset-bottom);
    }
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* =====================================================
   GAME WRAPPER - Main Container
   ===================================================== */
#game-wrapper {
    width: 100%;
    max-width: 900px;
    height: 100vh;
    max-height: 700px;
    position: relative;
    background: var(--bg-medium);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 45, 117, 0.3),
        0 0 60px rgba(255, 45, 117, 0.15),
        0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Screens */
.screen {
    position: absolute;
    inset: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.screen.active {
    display: flex;
    opacity: 1;
}

/* =====================================================
   TITLE SCREEN
   ===================================================== */
#title-screen {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    padding: 40px;
}

/* Animated background */
.stars-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 10% 20%, var(--cyan), transparent),
        radial-gradient(2px 2px at 30% 60%, var(--pink), transparent),
        radial-gradient(1px 1px at 50% 10%, white, transparent),
        radial-gradient(2px 2px at 70% 80%, var(--gold), transparent),
        radial-gradient(1px 1px at 90% 40%, white, transparent),
        radial-gradient(2px 2px at 15% 90%, var(--cyan), transparent),
        radial-gradient(1px 1px at 85% 15%, var(--pink), transparent);
    animation: starsFloat 20s linear infinite;
    opacity: 0.6;
}

@keyframes starsFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(1deg); }
}

.title-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.game-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.title-jb {
    font-family: var(--font-pixel);
    font-size: 42px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px var(--gold-glow));
    animation: titlePop 0.6s ease backwards;
}

.title-ultimate {
    font-family: var(--font-pixel);
    font-size: 28px;
    color: var(--pink);
    text-shadow: 0 0 30px var(--pink-glow);
    animation: titlePop 0.6s ease 0.1s backwards;
}

.title-mission {
    font-family: var(--font-pixel);
    font-size: 22px;
    color: var(--text-white);
    animation: titlePop 0.6s ease 0.2s backwards;
}

@keyframes titlePop {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.subtitle {
    font-size: 16px;
    color: var(--text-gray);
    font-style: italic;
    margin-top: 5px;
    animation: fadeIn 0.6s ease 0.3s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mascot container */
.mascot-container {
    width: 200px;
    height: 200px;
    margin: 20px 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 45, 117, 0.1) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mascotFloat 3s ease-in-out infinite;
}

@keyframes mascotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.mascot-container video {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 50%;
}

/* Play button */
.btn-play {
    font-family: var(--font-pixel);
    font-size: 14px;
    color: white;
    background: var(--gradient-pink);
    border: none;
    padding: 18px 50px;
    border-radius: var(--radius-xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    box-shadow:
        0 4px 15px var(--pink-glow),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.btn-play:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 8px 25px var(--pink-glow),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-play:active {
    transform: translateY(0) scale(0.98);
}

.btn-icon {
    font-size: 16px;
}

/* Instructions */
.instructions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 25px;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.instructions p {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Level Select */
.level-select {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.level-select-title {
    font-size: 11px;
    color: var(--text-gray);
    margin-bottom: 10px;
    font-family: var(--font-pixel);
}

.level-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.level-btn {
    padding: 8px 12px;
    font-size: 11px;
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--text-white);
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.level-btn:hover {
    background: var(--pink);
    border-color: var(--pink);
    transform: translateY(-2px);
}

/* =====================================================
   GAME SCREEN - HUD
   ===================================================== */
#game-screen {
    flex-direction: column;
    background: var(--bg-dark);
}

#hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 45, 117, 0.2);
    z-index: 100;
}

.hud-left, .hud-right {
    flex: 1;
}

.hud-right {
    display: flex;
    justify-content: flex-end;
}

.hud-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.gauge {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gauge-label {
    font-family: var(--font-pixel);
    font-size: 7px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hearts */
.hearts {
    display: flex;
    gap: 4px;
}

.heart {
    font-size: 22px;
    filter: drop-shadow(0 0 8px var(--pink-glow));
    transition: all 0.3s ease;
}

.heart.empty {
    filter: grayscale(1) opacity(0.2);
    transform: scale(0.85);
}

.heart.lost {
    animation: heartBreak 0.4s ease forwards;
}

@keyframes heartBreak {
    0% { transform: scale(1); }
    30% { transform: scale(1.4) rotate(15deg); }
    100% { transform: scale(0.85); filter: grayscale(1) opacity(0.2); }
}

/* Weirdness bar */
.weird-bar {
    width: 140px;
    height: 16px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.weird-fill {
    height: 100%;
    background: linear-gradient(90deg,
        var(--cyan) 0%,
        var(--gold) 50%,
        var(--pink) 100%);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 8px;
    position: relative;
}

.weird-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 50%);
    border-radius: 8px;
}

/* Location badge */
.location-badge {
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 217, 61, 0.3);
}

.location-icon {
    font-size: 14px;
}

.location-name {
    font-family: var(--font-pixel);
    font-size: 9px;
    color: var(--gold);
}

/* =====================================================
   GAME CANVAS - Scenes
   ===================================================== */
#game-canvas {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.game-scene {
    position: absolute;
    inset: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.game-scene.active {
    display: block;
    opacity: 1;
}

.scene-background {
    position: absolute;
    inset: 0;
}

/* =====================================================
   BAR SCENE
   ===================================================== */
.bar-background {
    background:
        linear-gradient(180deg,
            rgba(13, 5, 22, 0.6) 0%,
            rgba(26, 10, 46, 0.4) 30%,
            rgba(45, 16, 64, 0.5) 60%,
            rgba(26, 10, 46, 0.7) 100%),
        url('../images/bar-bg.jpg');
    background-size: cover;
    background-position: center;
}

/* Neon sign */
.neon-sign {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 35px;
    border: 3px solid var(--pink);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.6);
    box-shadow:
        0 0 20px var(--pink-glow),
        inset 0 0 20px rgba(255, 45, 117, 0.1);
}

.neon-text {
    font-family: var(--font-pixel);
    font-size: 16px;
    color: var(--pink);
    text-shadow:
        0 0 10px var(--pink),
        0 0 20px var(--pink),
        0 0 40px var(--pink);
    animation: neonFlicker 4s infinite;
}

@keyframes neonFlicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.6; }
    94% { opacity: 1; }
    96% { opacity: 0.7; }
    97% { opacity: 1; }
}

/* Disco ball */
.disco-ball {
    position: absolute;
    top: 80px;
    right: 120px;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%, #fff, #888, #444);
    border-radius: 50%;
    animation: spin 8s linear infinite;
    box-shadow:
        0 0 30px rgba(255, 255, 255, 0.3),
        inset -5px -5px 15px rgba(0, 0, 0, 0.3);
}

.disco-ball::before {
    content: '';
    position: absolute;
    inset: 5px;
    background:
        repeating-conic-gradient(
            from 0deg,
            transparent 0deg 10deg,
            rgba(255, 255, 255, 0.1) 10deg 20deg
        );
    border-radius: 50%;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Bar counter */
.bar-counter {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(180deg,
        #4a3020 0%,
        #2d1a10 50%,
        #1a0f08 100%);
    border-top: 4px solid #6a4a30;
}

.bar-counter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 217, 61, 0.5),
        transparent);
}

/* Bar stools */
.bar-stools {
    position: absolute;
    bottom: 40px;
    left: 80px;
    display: flex;
    gap: 100px;
}

.stool {
    width: 35px;
    height: 50px;
    background: var(--gradient-pink);
    border-radius: 20px 20px 5px 5px;
    position: relative;
    box-shadow: 0 5px 15px rgba(255, 45, 117, 0.3);
}

.stool::after {
    content: '';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 35px;
    background: #333;
    border-radius: 4px;
}

/* Bottles shelf */
.bottles-shelf {
    position: absolute;
    top: 90px;
    left: 40px;
    right: 40px;
    height: 130px;
    background: rgba(0, 0, 0, 0.4);
    border: 3px solid #3a2a1a;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 20px 30px;
}

.bottle {
    width: 28px;
    border-radius: 6px 6px 2px 2px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.bottle::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 18px;
    background: inherit;
    border-radius: 4px 4px 0 0;
}

.bottle::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 5px;
    right: 5px;
    height: 40%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.bottle.b1 { height: 65px; background: linear-gradient(180deg, var(--pink), #c22060); }
.bottle.b2 { height: 75px; background: linear-gradient(180deg, var(--gold), #cc9900); }
.bottle.b3 { height: 55px; background: linear-gradient(180deg, var(--cyan), #00b0cc); }
.bottle.b4 { height: 70px; background: linear-gradient(180deg, var(--purple), #8030b0); }
.bottle.b5 { height: 60px; background: linear-gradient(180deg, #3498db, #2070b0); }

/* Characters */
.characters {
    position: absolute;
    bottom: 170px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 80px;
}

.character {
    position: relative;
    width: 140px;
    height: 180px;
}

.jb-character video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.character-shadow {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.4) 0%, transparent 70%);
}

/* Girl sprite - using mascot image */
.girl-sprite {
    width: 100px;
    height: 160px;
    margin: 0 auto;
    position: relative;
    animation: girlIdle 2s ease-in-out infinite;
    background-image: url('https://assets.masco.dev/7fced6/jb-mascot-2a60/talk-to-a-blond-girl-e40f22a2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

@keyframes girlIdle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Reaction bubble */
.reaction-bubble {
    position: absolute;
    top: -30px;
    right: 0;
    background: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 22px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.reaction-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    border: 8px solid transparent;
    border-top-color: white;
}

.reaction-bubble.show {
    opacity: 1;
    transform: scale(1);
}

/* =====================================================
   STREET SCENE
   ===================================================== */
.street-background {
    background: linear-gradient(180deg,
        #050510 0%,
        #0a0a20 40%,
        #151530 100%);
}

.night-sky {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
}

.moon {
    position: absolute;
    top: 40px;
    right: 100px;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle at 35% 35%,
        #fffde7 0%,
        #ffd54f 50%,
        #ff8f00 100%);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(255, 213, 79, 0.4);
}

.buildings {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
}

.buildings .building {
    background: #0a0a1a;
    border: 2px solid #1a1a3a;
    position: relative;
}

.buildings .building.b1 { width: 140px; height: 220px; }
.buildings .building.b2 { width: 180px; height: 280px; }
.buildings .building.b3 { width: 120px; height: 200px; }

.sidewalk {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, #2a2a3a 0%, #1a1a2a 100%);
    border-top: 3px solid #3a3a4a;
}

/* =====================================================
   SALON SCENE
   ===================================================== */
.salon-background {
    background: linear-gradient(180deg,
        #1a0a05 0%,
        #2d1a10 40%,
        #3d2515 100%);
}

.salon-sign {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-pixel);
    font-size: 18px;
    color: var(--pink);
    text-shadow: 0 0 20px var(--pink-glow);
    padding: 10px 30px;
    border: 2px solid var(--pink);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.5);
}

.turkish-lamp {
    position: absolute;
    top: 80px;
    width: 70px;
    height: 90px;
    background: radial-gradient(ellipse at center,
        var(--gold) 0%,
        #cc8800 60%,
        #995500 100%);
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    box-shadow: 0 0 40px var(--gold-glow);
    animation: lampGlow 3s ease-in-out infinite;
}

.turkish-lamp.l1 { left: 80px; animation-delay: 0s; }
.turkish-lamp.l2 { right: 80px; animation-delay: 1.5s; }

@keyframes lampGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.salon-counter {
    position: absolute;
    bottom: 80px;
    left: 40px;
    right: 40px;
    height: 80px;
    background: linear-gradient(180deg, #5a4030 0%, #3d2a1a 100%);
    border: 4px solid #7a5a40;
    border-radius: var(--radius-md);
}

/* Mehmet sprite */
.mehmet-sprite {
    width: 80px;
    height: 160px;
    margin: 0 auto;
    position: relative;
}

.mehmet-sprite::before {
    content: '👨‍🍳';
    font-size: 100px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* =====================================================
   DIALOGUE SYSTEM - Complete Redesign
   ===================================================== */
#dialogue-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.95) 30%);
    z-index: 50;
}

.dialogue-box {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: linear-gradient(135deg,
        rgba(13, 13, 26, 0.98) 0%,
        rgba(26, 26, 46, 0.98) 100%);
    border: 2px solid rgba(255, 45, 117, 0.4);
    border-radius: var(--radius-lg);
    padding: 15px 20px;
    box-shadow:
        0 0 30px rgba(255, 45, 117, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.speaker-portrait {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--gold);
    flex-shrink: 0;
    background: var(--bg-dark);
    box-shadow: 0 0 15px var(--gold-glow);
}

.speaker-portrait video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dialogue-content {
    flex: 1;
    min-width: 0;
}

.speaker-name {
    font-family: var(--font-pixel);
    font-size: 10px;
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.speaker-name.speaker-jb {
    background: linear-gradient(90deg, #2196f3, #1976d2);
    color: white;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.4);
}

.speaker-name.speaker-lea {
    background: var(--gradient-pink);
    color: white;
    box-shadow: 0 2px 10px var(--pink-glow);
}

.speaker-name.speaker-mehmet {
    background: linear-gradient(90deg, #8d6e63, #6d4c41);
    color: var(--gold);
    box-shadow: 0 2px 10px rgba(141, 110, 99, 0.4);
}

.speaker-name.speaker-narrator {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    font-style: italic;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dialogue-text {
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--text-white);
    line-height: 1.7;
    min-height: 50px;
}

/* Choices */
.choices-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.choice-btn {
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(255, 45, 117, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: choiceFadeIn 0.3s ease forwards;
}

.choice-btn:nth-child(1) { animation-delay: 0s; }
.choice-btn:nth-child(2) { animation-delay: 0.1s; }
.choice-btn:nth-child(3) { animation-delay: 0.2s; }

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

.choice-btn::before {
    content: '▸';
    margin-right: 12px;
    color: var(--pink);
    transition: transform 0.2s;
}

.choice-btn:hover {
    background: var(--gradient-pink);
    border-color: var(--pink);
    transform: translateX(8px);
    box-shadow: 0 0 20px var(--pink-glow);
}

.choice-btn:hover::before {
    color: white;
    transform: translateX(4px);
}

/* =====================================================
   MINIGAMES
   ===================================================== */
.minigame-screen {
    justify-content: center;
    align-items: center;
}

.minigame-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.minigame-content {
    position: relative;
    z-index: 10;
    background: var(--gradient-dark);
    border: 2px solid var(--pink);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 0 40px var(--pink-glow);
    max-width: 550px;
    width: 90%;
}

.minigame-content h2 {
    font-family: var(--font-pixel);
    font-size: 16px;
    color: var(--gold);
    text-align: center;
    margin-bottom: 20px;
}

/* Negotiate minigame */
.negotiate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.battery-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pink);
    font-family: var(--font-pixel);
    font-size: 9px;
}

.battery-icon {
    width: 35px;
    height: 18px;
    border: 2px solid var(--pink);
    border-radius: 3px;
    padding: 2px;
    position: relative;
}

.battery-icon::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 4px;
    width: 3px;
    height: 8px;
    background: var(--pink);
    border-radius: 0 2px 2px 0;
}

.battery-level {
    width: 15%;
    height: 100%;
    background: var(--pink);
    border-radius: 1px;
    animation: batteryPulse 1s infinite;
}

@keyframes batteryPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-pixel);
    font-size: 12px;
    color: var(--gold);
}

.negotiate-characters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.mehmet-portrait {
    position: relative;
}

.mehmet-large {
    width: 90px;
    height: 110px;
    background: linear-gradient(180deg, #333 5%, #d4a574 25%, #f5f5f5 50%, #4a3728 100%);
    border-radius: var(--radius-md);
    border: 3px solid #5a4030;
}

.mood-indicator {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}

.negotiate-dialogue {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-md);
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.negotiate-dialogue p {
    font-size: 14px;
    color: var(--text-white);
    font-style: italic;
    line-height: 1.6;
}

.negotiate-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.negotiate-btn {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.negotiate-btn:hover {
    background: var(--gradient-pink);
    border-color: var(--pink);
    transform: translateX(5px);
}

/* Floor selection */
.floor-content {
    text-align: center;
}

.hint-text {
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 20px;
    font-size: 13px;
}

.floor-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.floor-btn {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px;
    color: var(--text-white);
    font-family: var(--font-pixel);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.floor-btn:hover {
    background: var(--gradient-cyan);
    border-color: var(--cyan);
    color: var(--bg-dark);
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--cyan-glow);
}

/* =====================================================
   GAME OVER
   ===================================================== */
#game-over-screen {
    justify-content: center;
    align-items: center;
    background: radial-gradient(ellipse at center, #2d0a1a 0%, #0d0d1a 100%);
}

.game-over-content {
    text-align: center;
    animation: shakeIn 0.5s ease;
}

@keyframes shakeIn {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-15px); }
    40% { transform: translateX(15px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
}

.game-over-title {
    font-family: var(--font-pixel);
    font-size: 32px;
    color: var(--pink);
    text-shadow: 0 0 30px var(--pink-glow);
    margin-bottom: 25px;
}

.game-over-mascot {
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
}

.game-over-mascot video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-over-reason {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
    font-style: italic;
    line-height: 1.6;
}

.btn-retry, .btn-replay {
    font-family: var(--font-pixel);
    font-size: 12px;
    color: white;
    background: var(--gradient-pink);
    border: none;
    padding: 16px 35px;
    border-radius: var(--radius-xl);
    cursor: pointer;
    box-shadow: 0 4px 15px var(--pink-glow);
    transition: all 0.3s ease;
}

.btn-retry:hover, .btn-replay:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--pink-glow);
}

/* =====================================================
   VICTORY
   ===================================================== */
#victory-screen {
    justify-content: center;
    align-items: center;
    background: radial-gradient(ellipse at center, #0a2d1a 0%, #0d0d1a 100%);
}

.victory-content {
    text-align: center;
    position: relative;
}

.victory-title {
    font-family: var(--font-pixel);
    font-size: 24px;
    color: var(--gold);
    text-shadow: 0 0 30px var(--gold-glow);
    margin-bottom: 20px;
    animation: victoryPulse 1s ease-in-out infinite;
}

@keyframes victoryPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.victory-mascot {
    width: 220px;
    height: 220px;
    margin: 0 auto 20px;
}

.victory-mascot video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.victory-text {
    font-size: 15px;
    color: var(--text-white);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Confetti */
.confetti-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(700px) rotate(720deg);
        opacity: 0;
    }
}

/* =====================================================
   TRANSITION
   ===================================================== */
#transition-screen {
    justify-content: center;
    align-items: center;
    background: var(--gradient-dark);
}

.transition-content {
    text-align: center;
}

.transition-mascot {
    width: 160px;
    height: 160px;
    margin: 0 auto 25px;
    animation: runAnim 0.5s ease-in-out infinite;
}

@keyframes runAnim {
    0%, 100% { transform: translateX(-25px) translateY(0); }
    25% { transform: translateX(-12px) translateY(-8px); }
    50% { transform: translateX(25px) translateY(0); }
    75% { transform: translateX(12px) translateY(-8px); }
}

.transition-mascot video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.transition-text {
    font-family: var(--font-pixel);
    font-size: 13px;
    color: var(--gold);
    text-shadow: 0 0 15px var(--gold-glow);
}

/* =====================================================
   MAZE SCENE
   ===================================================== */
.maze-background {
    background: linear-gradient(180deg, #050510 0%, #0a0a1a 100%);
}

.apartment-buildings {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.apartment {
    width: 160px;
    height: 260px;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1f 100%);
    border: 3px solid #2a2a4a;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.apartment:hover {
    border-color: var(--gold);
    box-shadow: 0 0 30px var(--gold-glow);
    transform: translateY(-8px);
}

.apartment-windows {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
}

.window {
    width: 32px;
    height: 40px;
    background: var(--gold);
    opacity: 0.15;
    border-radius: 2px;
}

.window.lit {
    opacity: 0.85;
    box-shadow: 0 0 12px var(--gold-glow);
    animation: windowGlow 3s infinite;
}

@keyframes windowGlow {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 0.6; }
}

/* Corridor scene */
.corridor-background {
    background: linear-gradient(180deg, #1a1a2e 0%, #252540 100%);
}

.doors-container {
    position: absolute;
    bottom: 140px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.door {
    width: 75px;
    height: 130px;
    background: linear-gradient(180deg, #5a4030 0%, #3d2a1a 100%);
    border: 4px solid #7a5a40;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.door:hover {
    background: linear-gradient(180deg, #7a5a40 0%, #5a4030 100%);
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.door-label {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-pixel);
    font-size: 18px;
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold-glow);
}

.door-knob {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-glow);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
    #game-wrapper {
        border-radius: 0;
        max-height: 100vh;
    }
}

@media (max-width: 600px) {
    .title-jb { font-size: 28px; }
    .title-ultimate { font-size: 20px; }
    .title-mission { font-size: 16px; }

    .mascot-container {
        width: 150px;
        height: 150px;
    }

    .mascot-container video {
        width: 120px;
        height: 120px;
    }

    #hud {
        flex-wrap: wrap;
        gap: 10px;
    }

    .hud-center {
        order: -1;
        flex: 100%;
        margin-bottom: 5px;
    }

    .dialogue-box {
        padding: 12px 15px;
    }

    .speaker-portrait {
        width: 55px;
        height: 55px;
    }

    .dialogue-text {
        font-size: 13px;
    }

    .choice-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* =====================================================
   MINI-JEU: MARCHE SOBRE (Drunk Walk)
   ===================================================== */
.drunk-content {
    max-width: 600px;
}

.minigame-instruction {
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
    margin-bottom: 20px;
}

.drunk-game-area {
    position: relative;
    height: 280px;
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a30 50%, #2a2a40 100%);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.street-view {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
}

.street-lane {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-pixel);
    font-size: 10px;
}

.left-danger, .right-danger {
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 45, 117, 0.2),
        rgba(255, 45, 117, 0.2) 10px,
        rgba(255, 45, 117, 0.1) 10px,
        rgba(255, 45, 117, 0.1) 20px
    );
    color: var(--pink);
}

.safe-zone {
    flex: 2;
    background: rgba(74, 222, 128, 0.1);
    border-left: 2px dashed rgba(74, 222, 128, 0.5);
    border-right: 2px dashed rgba(74, 222, 128, 0.5);
}

.balance-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
}

.balance-bar {
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-xl);
    display: flex;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.balance-zone {
    height: 100%;
}

.balance-zone.danger-left,
.balance-zone.danger-right {
    flex: 1;
    background: linear-gradient(90deg, rgba(255, 45, 117, 0.4), rgba(255, 45, 117, 0.2));
}

.balance-zone.danger-right {
    background: linear-gradient(90deg, rgba(255, 45, 117, 0.2), rgba(255, 45, 117, 0.4));
}

.balance-zone.safe {
    flex: 2;
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.2), rgba(74, 222, 128, 0.3), rgba(74, 222, 128, 0.2));
}

.balance-indicator {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 40px;
    background: var(--gold);
    border-radius: var(--radius-sm);
    box-shadow: 0 0 15px var(--gold-glow);
    transition: left 0.05s linear;
}

.drunk-character {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 140px;
    transition: transform 0.05s linear;
}

.drunk-character video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.drunk-companion {
    position: absolute;
    bottom: 90px;
    right: 40px;
    text-align: center;
}

.drunk-companion .girl-sprite {
    width: 60px;
    height: 100px;
}

.companion-bubble {
    background: white;
    color: #333;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
    position: relative;
    transition: color 0.3s;
}

.companion-bubble::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: white;
}

.drunk-progress {
    text-align: center;
}

.drunk-progress .progress-label {
    font-size: 11px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.drunk-progress .progress-bar {
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.drunk-progress .progress-fill {
    height: 100%;
    background: var(--gradient-cyan);
    transition: width 0.1s linear;
}

/* Touch controls for mobile */
.drunk-touch-controls {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 20px;
    margin-top: 10px;
}

.touch-btn {
    flex: 1;
    padding: 20px 10px;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.touch-left {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.touch-right {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.touch-btn:active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* Hide touch controls on desktop */
@media (min-width: 768px) and (hover: hover) {
    .drunk-touch-controls {
        display: none;
    }
}

/* =====================================================
   MINI-JEU: SERVICE PARFAIT (Tea Pour)
   ===================================================== */
.tea-content {
    max-width: 500px;
}

.tea-game-area {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 40px;
    padding: 30px;
    background: linear-gradient(180deg, #2d1f1a 0%, #1a1210 100%);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    min-height: 250px;
    position: relative;
}

.tea-pot {
    width: 100px;
    height: 80px;
    background: linear-gradient(180deg, #c9a86c 0%, #a08050 100%);
    border-radius: 50% 50% 20% 20%;
    position: relative;
    transform: rotate(-20deg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.tea-pot::before {
    content: '';
    position: absolute;
    right: -25px;
    top: 20px;
    width: 40px;
    height: 15px;
    background: #a08050;
    border-radius: 0 20px 20px 0;
}

.tea-pot::after {
    content: '';
    position: absolute;
    left: 10px;
    top: -15px;
    width: 20px;
    height: 20px;
    background: #a08050;
    border-radius: 50%;
}

.tea-stream {
    position: absolute;
    bottom: -50px;
    right: -10px;
    width: 8px;
    height: 0;
    background: linear-gradient(180deg, #8b4513, #d4a574);
    border-radius: 4px;
    transition: height 0.1s;
    opacity: 0;
}

.tea-stream.active {
    height: 60px;
    opacity: 1;
    animation: steamPour 0.3s ease-in-out infinite;
}

@keyframes steamPour {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(1.2); }
}

.tea-cup-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tea-cup {
    width: 70px;
    height: 80px;
    background: linear-gradient(180deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 5px 5px 35% 35%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tea-cup::before {
    content: '';
    position: absolute;
    right: -18px;
    top: 15px;
    width: 20px;
    height: 35px;
    border: 5px solid #e0e0e0;
    border-left: none;
    border-radius: 0 20px 20px 0;
}

.cup-pattern {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 15px;
    background: repeating-linear-gradient(
        90deg,
        #1e88e5,
        #1e88e5 5px,
        transparent 5px,
        transparent 10px
    );
    opacity: 0.3;
}

.tea-target-zone {
    position: absolute;
    left: 5px;
    right: 5px;
    background: rgba(74, 222, 128, 0.3);
    border: 2px dashed #4ade80;
    border-radius: 3px;
}

.tea-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #8b4513 0%, #d4a574 100%);
    transition: height 0.1s linear;
}

.cup-saucer {
    width: 90px;
    height: 12px;
    background: linear-gradient(180deg, #e0e0e0 0%, #bdbdbd 100%);
    border-radius: 50%;
    margin-top: -5px;
}

.mehmet-reaction {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: center;
}

.mehmet-face {
    font-size: 50px;
    transition: transform 0.3s;
}

.mehmet-comment {
    font-size: 12px;
    color: var(--text-white);
    margin-top: 8px;
    font-style: italic;
}

.tea-rounds {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.round-label {
    font-size: 12px;
    color: var(--text-gray);
}

.round-dots {
    display: flex;
    gap: 10px;
}

.round-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.round-dot.active {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
}

.round-dot.success {
    background: #4ade80;
    border-color: #4ade80;
}

.round-dot.fail {
    background: var(--pink);
    border-color: var(--pink);
}

/* =====================================================
   MINI-JEU: MEMORY INDICES
   ===================================================== */
.memory-content {
    max-width: 450px;
}

.memory-game-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
}

.phone-frame {
    width: 220px;
    height: 300px;
    background: #1a1a1a;
    border-radius: 25px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid #333;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #075e54 0%, #128c7e 100%);
    border-radius: 18px;
    overflow: hidden;
    padding: 15px;
}

.sms-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sms-message {
    animation: smsSlide 0.4s ease;
}

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

.sms-sender {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.sms-bubble {
    background: white;
    color: #333;
    padding: 10px 14px;
    border-radius: 15px 15px 15px 5px;
    font-size: 14px;
    max-width: 85%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sms-time {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
    margin-top: 4px;
}

.sms-hidden {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    padding: 50px 20px;
}

.memory-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    width: 100%;
}

.memory-choice-btn {
    background: rgba(26, 26, 46, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 15px;
    color: var(--text-white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.memory-choice-btn:hover {
    background: var(--gradient-cyan);
    border-color: var(--cyan);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.memory-timer {
    width: 100%;
}

.memory-timer .timer-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.memory-timer .timer-fill {
    height: 100%;
    background: var(--gradient-gold);
    transition: width 0.1s linear;
}

/* =====================================================
   MINI-JEU: STEALTH MODE
   ===================================================== */
.stealth-content {
    max-width: 650px;
}

.stealth-game-area {
    margin-bottom: 20px;
}

.corridor-view {
    position: relative;
    height: 300px;
    background: linear-gradient(180deg, #1a1a2e 0%, #252540 100%);
    border-radius: var(--radius-md);
    overflow: hidden;
    perspective: 500px;
}

.corridor-floor-3d {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, #3d3d5c 0%, #2a2a40 100%);
    transform: rotateX(60deg);
    transform-origin: bottom;
}

.corridor-walls-3d {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: repeating-linear-gradient(
        90deg,
        #2a2a40 0px,
        #2a2a40 150px,
        #333350 150px,
        #333350 152px
    );
}

.stealth-doors {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 0 30px;
}

.stealth-door {
    width: 55px;
    height: 100px;
    position: relative;
}

.stealth-door .door-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #5a4030 0%, #3d2a1a 100%);
    border: 3px solid #7a5a40;
    border-radius: 3px 3px 0 0;
    transition: transform 0.3s ease;
    transform-origin: left;
}

.stealth-door.open .door-frame {
    transform: perspective(200px) rotateY(-70deg);
}

.stealth-door .neighbor {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    opacity: 0;
    transition: opacity 0.3s;
}

.stealth-door.open .neighbor {
    opacity: 1;
}

.stealth-door.goal-door .door-frame {
    background: linear-gradient(180deg, #4a7c59 0%, #2d5a3a 100%);
    border-color: #6aa876;
}

.stealth-door .door-label {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-pixel);
    font-size: 10px;
    color: var(--gold);
}

.stealth-jb {
    position: absolute;
    bottom: 70px;
    width: 70px;
    height: 100px;
    transition: left 0.1s linear;
}

.stealth-jb video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.noise-meter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-md);
}

.noise-label {
    font-family: var(--font-pixel);
    font-size: 10px;
    color: var(--text-gray);
}

.noise-bar {
    flex: 1;
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.noise-fill {
    height: 100%;
    background: #4ade80;
    transition: width 0.1s, background-color 0.3s;
}

.noise-icon {
    font-size: 18px;
}

.stealth-progress {
    margin-top: 15px;
}

.stealth-progress .progress-bar {
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: visible;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.stealth-progress .progress-fill {
    height: 100%;
    background: var(--gradient-cyan);
    border-radius: var(--radius-xl);
    transition: width 0.1s linear;
}

.stealth-progress .progress-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    transition: left 0.1s linear;
}
