/* == OVERHAULED MINION ADVENTURE THEME == */

:root {
    --minion-yellow: #FFD700;
    --minion-yellow-dark: #E6C200;
    --minion-blue: #1976D2;
    --minion-blue-dark: #1565C0;
    --acc-red: #E53935;
    
    --font-ui: 'Nunito', sans-serif;
    --font-head: 'Fredoka', cursive;
    
    --cursor-url: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" style="font-size: 24px"><text y="24">🍌</text></svg>'), auto;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.theme-minion {
    background-color: #080a12;
    background-image: 
        radial-gradient(circle at 20% 10%, rgba(138, 43, 226, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 156, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 60% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: #f0f0f0;
    font-family: var(--font-ui);
    cursor: var(--cursor-url) !important;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 60px 0; /* Ensures the terminal can scroll fully if it exceeds the screen height */
}

/* DYNAMIC BACKGROUND LAYER */
.dynamic-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 1; overflow: hidden;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.guessing-mark {
    position: absolute; 
    font-family: var(--font-head);
    font-weight: 900;
    color: #FFF;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 30px rgba(138, 43, 226, 0.5);
    pointer-events: none;
    will-change: transform, left, top;
}

/* FART GAS / BANANA FRENZY DISTRACTIONS */
.fart-gas {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle, rgba(162, 255, 0, 0.4) 0%, rgba(56, 128, 0, 0.7) 100%);
    opacity: 0; pointer-events: none; z-index: 999;
    filter: blur(20px);
}
.banana-frenzy-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(120deg, rgba(255, 255, 0, 0.4), rgba(255, 0, 0, 0.4), rgba(0, 255, 255, 0.4));
    opacity: 0; pointer-events: none; z-index: 2;
    animation: rainbowShift 2s linear infinite;
}
@keyframes rainbowShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* MAIN CONSOLE BODY (HACKER HYBRID TERMINAL) */
.console-body {
    background: #111; 
    padding: 30px; 
    padding-top: 50px; /* Space for hazard bar */
    border-radius: 12px;
    border: 3px solid #333;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.8),
        inset 0 0 20px rgba(0,255,156,0.1);
    position: relative;
    width: 100%; max-width: 900px;
    z-index: 10;
    margin: 40px 20px;
    opacity: 0; /* Handled by GSAP intro */
    overflow: hidden;
}

/* Hazard Tape Header */
.console-body::before {
    content: '⚠️ GRU_LAB_DECODER_v4.0 ⚠️';
    position: absolute; top: 0; left: 0; width: 100%; height: 30px;
    background: repeating-linear-gradient(
        45deg,
        var(--minion-yellow), var(--minion-yellow) 15px,
        #000 15px, #000 30px
    );
    border-bottom: 2px solid #00FF9C;
    font-family: var(--font-crt, 'Courier New', monospace);
    font-size: 14px;
    font-weight: 900;
    color: #FFF;
    text-shadow: 1px 1px 0px #000;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 2px;
    z-index: 5;
}

/* PANELS */
.display-panel {
    background: rgba(255, 255, 255, 0.95);
    border: 8px solid #222;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(0,0,0,0.1);
}

/* SCREENS */
.screen { display: none; }
.screen.active { display: block; animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.9) translateY(30px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* TYPOGRAPHY */
.bounce-text {
    font-family: var(--font-head); font-size: 4rem; color: var(--minion-blue-dark);
    text-align: center; margin-bottom: 20px;
    text-transform: uppercase; text-shadow: 2px 2px 0px #FFF;
}
.lab-text {
    font-size: 1.5rem; font-weight: 700; color: #555; leading-trim: 1.5;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* CHUNKY BUTTONS */
.minion-chunky-btn {
    font-family: var(--font-head); font-size: 1.8rem; font-weight: 700;
    padding: 15px 40px; border: 4px solid #222; border-radius: 50px;
    cursor: var(--cursor-url) !important; text-transform: uppercase;
    box-shadow: 0 8px 0 #222; position: relative; overflow: hidden;
    transition: transform 0.1s; margin: 10px;
}
.minion-chunky-btn:active { transform: translateY(8px); box-shadow: 0 0 0 #222; }
.btn-red { background: var(--acc-red); color: #FFF; }
.btn-yellow { background: var(--minion-yellow); color: #222; }
.btn-blue { background: var(--minion-blue); color: #FFF; }

.abort-link {
    display: inline-block; margin-top: 20px;
    font-weight: 700; color: rgba(255,255,255,0.7); text-decoration: none;
    font-size: 1.2rem; transition: color 0.3s;
}
.abort-link:hover { color: #FFF; }

/* DASHBOARD */
.dashboard {
    display: flex; justify-content: space-between; margin-bottom: 20px;
    background: #222; padding: 20px; border-radius: 20px; border: 4px solid #000;
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.8); color: #FFF;
}
.dash-panel { text-align: center; }
.dash-panel .label {
    display: block; font-size: 1rem; color: #BBB; margin-bottom: 5px; font-weight: 900;
}
.zone-name, .timer {
    font-family: var(--font-head); font-size: 2rem; color: var(--minion-yellow);
}
.time-panel .timer { color: var(--acc-red); }
.odometer { font-family: var(--font-head); font-size: 2.2rem; font-weight: 900; letter-spacing: 2px; }

/* COMBO METER */
.combo-container {
    background: rgba(0,0,0,0.5); 
    padding: 15px; border-radius: 8px; margin-bottom: 20px;
    border: 2px solid #333; position: relative; overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}
.combo-label { 
    font-family: var(--font-crt, 'Courier New', monospace); 
    font-size: 1.1rem; 
    display: flex; justify-content: space-between; margin-bottom: 10px; 
    font-weight: 900; 
    color: #00FF9C; 
    text-shadow: 0 0 5px rgba(0,255,156,0.5);
}
.combo-bar-bg { 
    width: 100%; height: 12px; 
    background: #111; 
    border-radius: 6px; overflow: hidden; 
    border: 1px solid #444; 
}
.combo-bar-fill { 
    width: 0%; height: 100%; 
    background: var(--minion-yellow); 
    transition: width 0.3s ease; 
    box-shadow: 0 0 10px var(--minion-yellow);
}
.frenzy-alert {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); color: var(--minion-yellow);
    display: flex; align-items: center; justify-content: center; 
    font-family: var(--font-crt, monospace);
    font-weight: 900; font-size: 1.5rem; opacity: 0; pointer-events: none;
    text-shadow: 0 0 10px var(--minion-yellow);
}

/* GAMEPLAY VIEWPORT (HACKER/MINION HYBRID TERMINAL) */
.scanner-container {
    width: 100%; position: relative; margin-bottom: 40px;
}

.brand-progress {
    position: absolute; top: -15px; left: 20px; z-index: 20;
    background: rgba(0,0,0,0.9);
    border: 1px solid var(--minion-yellow);
    padding: 5px 10px;
    border-radius: 4px;
    color: #00FF9C;
    font-family: var(--font-crt, 'Courier New', monospace);
    font-size: 1rem; font-weight: 900;
    box-shadow: 0 0 10px rgba(255,215,0,0.3);
}

.crt-display {
    background: #050505;
    border-radius: 8px; padding: 30px; min-height: 280px;
    position: relative; overflow: hidden;
    border: 2px solid #00FF9C;
    box-shadow: 
        inset 0 0 40px rgba(0, 255, 156, 0.1),
        0 0 20px rgba(0, 255, 156, 0.3);
    display: flex; align-items: center; justify-content: center;
}

/* Glowing Animated Scanlines */
.crt-display::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 255, 156, 0.05) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.04), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.04));
    background-size: 100% 4px, 6px 100%; z-index: 10; pointer-events: none;
    animation: scanlinesAnim 10s linear infinite;
}

@keyframes scanlinesAnim {
    0% { background-position: 0 0; }
    100% { background-position: 0 100vh; }
}
#logo-container { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; height: 260px;}
#logo-image { 
    width: 200px; height: 200px; 
    object-fit: contain; /* Prevents Favicons from stretching or scaling disproportionately */
    transition: filter 0.3s, transform 0.3s; 
}
.decoder-beam {
    position: absolute; top: -10%; left: 50%; width: 10px; height: 120%;
    background: #00E676; box-shadow: 0 0 20px #00E676, 0 0 40px #00E676;
    opacity: 0; pointer-events: none; z-index: 30; transform: translateX(-50%);
    border-radius: 10px;
}

/* INPUT CONSOLE */
.input-console {
    display: flex; margin-top: 30px; gap: 15px;
}
.minion-input {
    flex-grow: 1; 
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 255, 156, 0.4);
    border-radius: 50px;
    color: #00FF9C;
    font-family: var(--font-crt, 'Courier New', monospace); 
    font-size: 1.5rem; 
    font-weight: 900;
    padding: 15px 30px;
    outline: none; 
    text-align: center; 
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.5);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.minion-input::placeholder { color: rgba(0, 255, 156, 0.4); text-transform: uppercase; }
.minion-input:focus { 
    border-color: #00FF9C; 
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 156, 0.3), inset 0 0 10px rgba(0, 255, 156, 0.1);
}

.feedback-msg {
    text-align: center; font-family: var(--font-head); font-size: 1.5rem;
    margin-top: 15px; color: #888; text-transform: uppercase;
}

/* RESULTS & EFFECTS */
.brand-name-reveal { color: #222; font-family: var(--font-head); font-size: 2rem; }
.final-stats { display: flex; justify-content: space-around; margin: 30px 0; background: #F5F5F5; border-radius: 20px; padding: 20px; border: 4px solid #222;}
.f-stat { display: flex; flex-direction: column; }
.f-stat .lbl { font-size: 1.2rem; color: #555; font-weight: 700; }
.f-stat .val { font-size: 4rem; color: var(--minion-blue); font-family: var(--font-head); }
.rank-stamp h2 { font-size: 2.5rem; color: var(--acc-red); border: 4px dashed var(--acc-red); padding: 15px; display: inline-block; transform: rotate(-5deg); border-radius: 15px; }

.leaderboard-container { margin-top: 20px; max-height: 250px; overflow-y: auto; overflow-x: hidden; text-align: left; color: #333;}
#leaderboard-list { list-style: none; padding: 0; margin:0;}
#leaderboard-list li {
    font-size: 1.5rem; display: flex; justify-content: space-between;
    border-bottom: 2px dashed #CCC; padding: 15px 10px; font-weight: 700;
}

/* ==================================================
   INTRO / OUTRO GSAP ELEMENTS (FULL SCREEN)
   ================================================= */

/* CURTAINS */
.intro-curtain {
    position: fixed; top: 0; width: 50vw; height: 100vh;
    background-color: var(--minion-yellow); z-index: 10000;
    border: 10px solid #222;
}
.intro-curtain.left { left: 0; border-right: none; }
.intro-curtain.right { right: 0; border-left: none; }

/* THE GIANT EYE (REALISTIC MULTI-LAYERED) */
.giant-minion-eye-container {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 10001;
}

/* STRAP */
.goggle-strap {
    position: absolute; top: 50%; left: -60vw; width: 120vw; height: 70px;
    background: repeating-linear-gradient(90deg, #111, #111 5px, #222 5px, #222 10px);
    transform: translateY(-50%); z-index: -1;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8), inset 0 5px 10px rgba(255,255,255,0.1);
    border-top: 2px solid #333; border-bottom: 3px solid #000;
}

/* GOGGLE METAL FRAME */
.goggle-frame {
    width: 320px; height: 320px;
    background: conic-gradient(from 0deg, #aaa, #ddd, #eee, #aaa, #777, #aaa);
    border-radius: 50%; position: relative;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.9), 
        inset 0 15px 15px rgba(255,255,255,0.8), 
        inset 0 -15px 25px rgba(0,0,0,0.7);
    border: 5px solid #555;
}

/* THE WET EYEBALL */
.eyeball {
    width: 240px; height: 240px;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #f4f4f4 40%, #e0c0c0 80%, #aa5555 100%);
    border-radius: 50%; position: relative;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

/* IRIS */
.iris {
    width: 120px; height: 120px;
    background: radial-gradient(circle at center, #6d4c41 0%, #3e2723 60%, #1a1005 100%);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.8), inset 0 0 15px rgba(0,0,0,0.6);
}

/* IRIS TEXTURE (LINES) */
.iris::before {
    content: ''; position: absolute; width: 100%; height: 100%;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(255,255,255,0.1) 0deg, transparent 5deg, rgba(0,0,0,0.1) 10deg);
}

/* PUPIL */
.pupil {
    width: 50px; height: 50px; background: #000; border-radius: 50%;
    position: relative; z-index: 2;
}

/* CATCHLIGHT (Reflection) */
.catchlight {
    position: absolute; top: 10px; left: 10px;
    width: 15px; height: 15px; background: rgba(255,255,255,0.9);
    border-radius: 50%; box-shadow: 0 0 5px rgba(255,255,255,0.8);
}
.catchlight::after {
    content: ''; position: absolute; top: 20px; left: 15px;
    width: 8px; height: 8px; background: rgba(255,255,255,0.6);
    border-radius: 50%;
}


/* CLOSING SPLASH (HACKER SUCCESS) */
.outro-splash {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #050505; z-index: 9999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    box-shadow: inset 0 0 50px rgba(0,255,156,0.2);
}
.outro-text {
    font-family: var(--font-crt, monospace); font-size: 6rem; color: #00FF9C;
    text-transform: uppercase; text-shadow: 0 0 20px #00FF9C, 0 0 40px rgba(0,255,156,0.5);
    text-align: center; line-height: 1.2;
}

@media(max-width: 600px) {
    .display-panel { padding: 20px; }
    .input-console { flex-direction: column; }
    .bounce-text { font-size: 2.5rem; }
    .dashboard { flex-direction: column; gap: 15px;}
}
