/* ========================================
   Tech Future Adventure — Styles
   Gen Z Edition — Dark Neon, Mobile-First
   ======================================== */

:root {
    --navy: #1B3A6B;
    --navy-dark: #090f1e;
    --navy-mid: #0f2040;
    --teal: #1D9E75;
    --teal-light: #25C98F;
    --yellow: #FFC857;
    --orange: #FF8C42;
    --white: #FFFFFF;
    --sky: #DFF4FF;
    --green-soft: #B8E986;
    --red: #E85D75;
    --purple: #9B59B6;
    --gray: #8899AA;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.055);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html, body {
    width: 100%; height: 100%;
    overflow: hidden;
    font-family: var(--font-body);
    background: var(--navy-dark);
    color: var(--white);
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#game-wrapper {
    position: relative;
    width: 100vw; height: 100vh;
    overflow: hidden;
}

#game-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

#game-container canvas {
    display: block;
}

/* Subtle vignette over the playfield — adds depth & focuses the eye center-screen */
#game-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse 115% 100% at 50% 42%, transparent 58%, rgba(3, 7, 16, 0.52) 100%);
}

/* ======== SCREENS ======== */
.screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.screen.active { display: flex; }
.hidden { display: none !important; }

/* Scrollable screens must NOT center vertically — flex centering makes
   overflowing content unreachable above the scroll area */
#result-screen,
#character-screen,
#howto-screen {
    justify-content: flex-start;
}

/* ======== MENU SCREEN ======== */
#menu-screen {
    background: radial-gradient(ellipse 120% 80% at 50% -10%, #16305c 0%, var(--navy-dark) 65%);
    overflow: hidden;
}

#menu-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(29, 158, 117, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 158, 117, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.menu-bg-particles {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    overflow: hidden;
}
.menu-bg-particles .particle {
    position: absolute;
    opacity: 0.1;
    animation: floatUp 8s linear infinite;
}
@keyframes floatUp {
    0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.1; }
    90%  { opacity: 0.1; }
    100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

.menu-content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    align-items: center; gap: 18px;
    padding: 24px 20px;
    text-align: center;
    animation: fadeInUp 0.55s ease-out both;
    width: 100%; max-width: 340px;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.menu-logo {
    display: flex; flex-direction: column;
    align-items: center; gap: 6px;
}

.logo-icon {
    font-size: 52px;
    animation: logoPulse 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 18px rgba(255, 200, 87, 0.55));
}
@keyframes logoPulse {
    0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 18px rgba(255,200,87,0.5)); }
    50%       { transform: scale(1.09); filter: drop-shadow(0 0 32px rgba(255,200,87,0.85)); }
}

.game-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 8vw, 52px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 45%, var(--teal-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-tagline {
    font-size: clamp(13px, 3.5vw, 17px);
    color: var(--sky);
    font-weight: 600;
    letter-spacing: 0.2px;
}
.game-tagline-si {
    font-size: clamp(12px, 3vw, 14px);
    color: var(--yellow);
    opacity: 0.8;
}
.institution-line {
    font-size: 12px;
    color: var(--gray);
}
.institution-line strong { color: var(--teal-light); }

.social-proof {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 200, 87, 0.07);
    border: 1px solid rgba(255, 200, 87, 0.22);
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 12px;
    color: var(--yellow);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.menu-buttons {
    display: flex; flex-direction: column;
    gap: 10px; width: 100%;
}
.menu-footer {
    font-size: 11px;
    color: var(--gray);
    line-height: 1.6;
    opacity: 0.65;
    max-width: 280px;
}

/* ======== BUTTONS ======== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 15px 24px;
    border: none; border-radius: 14px;
    font-family: var(--font-heading);
    font-size: 15px; font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.18s ease,
                background 0.18s ease;
    text-decoration: none;
    color: var(--white);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    letter-spacing: 0.15px;
}
.btn:active { transform: scale(0.95) !important; }

.btn-primary {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
    box-shadow: 0 4px 22px rgba(29,158,117,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 28px rgba(29,158,117,0.55);
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.22);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.18);
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 4px 22px rgba(37,211,102,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37,211,102,0.5);
}

.btn-glow { animation: btnGlow 2.5s ease-in-out infinite alternate; }
@keyframes btnGlow {
    from { box-shadow: 0 4px 22px rgba(29,158,117,0.45); }
    to   { box-shadow: 0 4px 38px rgba(29,158,117,0.8), 0 0 80px rgba(29,158,117,0.18); }
}

.btn-whatsapp-glow { animation: btnWhatsappGlow 2.5s ease-in-out infinite alternate; }
@keyframes btnWhatsappGlow {
    from { box-shadow: 0 4px 22px rgba(37,211,102,0.45); }
    to   { box-shadow: 0 4px 38px rgba(37,211,102,0.85), 0 0 80px rgba(37,211,102,0.25); }
}

.btn-back {
    position: absolute; top: 16px; left: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--white);
    padding: 10px 18px; border-radius: 20px;
    font-family: var(--font-body);
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    z-index: 5;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.2s;
    touch-action: manipulation;
}
.btn-back:hover { background: rgba(255,255,255,0.14); }

/* ======== CHARACTER SELECT ======== */
#character-screen {
    background: radial-gradient(ellipse 120% 80% at 50% -10%, #16305c 0%, var(--navy-dark) 65%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.screen-inner {
    width: 100%; max-width: 520px;
    padding: 64px 20px 32px;
    display: flex; flex-direction: column;
    align-items: center; gap: 20px;
}
.screen-title {
    font-family: var(--font-heading);
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 800;
    color: var(--yellow);
    letter-spacing: -0.3px;
}
.character-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px; width: 100%;
}
.char-card {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 18px 8px 14px;
    display: flex; flex-direction: column;
    align-items: center; gap: 10px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    touch-action: manipulation;
}
.char-card:hover { border-color: var(--teal); background: rgba(29,158,117,0.08); transform: scale(1.02); }
.char-card.selected {
    border-color: var(--yellow);
    background: rgba(255,200,87,0.08);
    box-shadow: 0 0 28px rgba(255,200,87,0.22), inset 0 0 24px rgba(255,200,87,0.05);
    transform: scale(1.03);
}
.char-card:active { transform: scale(0.96); }
.char-preview {
    width: 72px; height: 96px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}
.char-name {
    font-size: 13px; font-weight: 700;
    color: var(--sky);
    letter-spacing: 0.2px;
}
.color-pickers { width: 100%; }
.color-group { margin-bottom: 14px; }
.color-group label {
    font-size: 11px; color: var(--gray);
    margin-bottom: 8px; display: block;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.color-row { display: flex; gap: 10px; flex-wrap: wrap; }
.color-swatch {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    touch-action: manipulation;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.color-swatch:hover { transform: scale(1.18); }
.color-swatch:active { transform: scale(0.9); }
.color-swatch.selected {
    border-color: var(--white);
    box-shadow: 0 0 14px rgba(255,255,255,0.5), 0 2px 8px rgba(0,0,0,0.35);
    transform: scale(1.12);
}

/* ======== HOW TO PLAY ======== */
#howto-screen {
    background: radial-gradient(ellipse 120% 80% at 50% -10%, #16305c 0%, var(--navy-dark) 65%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.howto-content {
    display: flex; flex-direction: column;
    gap: 10px; width: 100%;
}
.howto-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 14px 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.howto-icon { font-size: 26px; flex-shrink: 0; }
.howto-item p { font-size: 14px; color: var(--sky); line-height: 1.5; font-weight: 500; }
.howto-section {
    background: rgba(29,158,117,0.07);
    border: 1px solid rgba(29,158,117,0.22);
    border-radius: 16px; padding: 14px 16px;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.howto-section h3 {
    font-family: var(--font-heading);
    font-size: 15px; color: var(--teal-light);
    margin-bottom: 6px; font-weight: 700;
}
.howto-section p { font-size: 13px; color: var(--sky); }

/* ======== GAME HUD ======== */
#game-hud {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 15;
    pointer-events: none;
    font-family: var(--font-heading);
}
.hud-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px 6px;
    background: linear-gradient(180deg, rgba(9,15,30,0.88) 0%, transparent 100%);
}
.hud-left, .hud-center, .hud-right {
    display: flex; flex-direction: column;
    gap: 2px;
}
.hud-left  { align-items: flex-start; }
.hud-center { align-items: center; flex: 1; }
.hud-right { align-items: flex-end; }

.hud-hearts { font-size: 17px; letter-spacing: 1px; line-height: 1; }
.hud-score {
    font-size: 20px; font-weight: 900; line-height: 1;
    color: var(--yellow);
    text-shadow: 0 0 14px rgba(255,200,87,0.55);
}
.hud-score.pop,
#hud-score.pop { display: inline-block; animation: scorePop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes scorePop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}
.hud-score-label {
    font-size: 9px; font-weight: 700; letter-spacing: 1.2px;
    color: rgba(255,200,87,0.5); text-transform: uppercase;
    line-height: 1;
}
.hud-zone {
    font-size: 9px; font-weight: 700;
    color: var(--sky); opacity: 0.7;
    letter-spacing: 0.8px; line-height: 1;
    text-transform: uppercase;
}
.hud-cats {
    display: flex; gap: 3px;
}
.cat-icon {
    display: flex; align-items: center; gap: 2px;
    background: rgba(0,0,0,0.55);
    border-radius: 7px; padding: 3px 5px;
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 11px;
}
.cat-icon span {
    font-family: var(--font-heading);
    font-weight: 800; font-size: 10px;
    color: var(--yellow);
}

/* Progress bar */
#hud-progress {
    height: 3px;
    background: rgba(255,255,255,0.07);
    overflow: visible;
    position: relative;
}
#hud-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal) 0%, #6EF5C2 50%, var(--yellow) 100%);
    transition: width 0.9s ease;
    box-shadow: 0 0 8px rgba(37,201,143,0.7), 0 0 2px rgba(255,200,87,0.5);
    position: relative;
    min-width: 0%;
    max-width: 100%;
}
#hud-progress-fill::after {
    content: '';
    position: absolute;
    right: -2px; top: -2px; bottom: -2px;
    width: 6px;
    background: white;
    opacity: 0.7;
    border-radius: 50%;
    filter: blur(2px);
}

/* ======== MOBILE CONTROLS ======== */
#mobile-controls {
    position: absolute;
    bottom: 60px; left: 0; right: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 14px 20px;
    pointer-events: none;
    background: none;
}

.ctrl-left-group {
    display: flex;
    gap: 14px;
    pointer-events: all;
    align-items: flex-end;
}
.ctrl-right-group {
    pointer-events: all;
    align-items: flex-end;
    display: flex;
}

.ctrl-btn {
    width: 78px; height: 78px;
    border-radius: 20px;
    border: 2.5px solid rgba(255,255,255,0.22);
    background: rgba(9, 15, 30, 0.82);
    color: var(--white);
    font-size: 30px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: all 0.08s ease;
    touch-action: none;
    box-shadow: 0 6px 28px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.12);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    overflow: hidden;
}
.ctrl-btn::before {
    content: '';
    position: absolute;
    inset: 0; border-radius: 20px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1), transparent 60%);
    pointer-events: none;
}
.ctrl-btn:active,
.ctrl-btn.pressed {
    background: rgba(29,158,117,0.75);
    border-color: var(--teal-light);
    transform: scale(0.92);
    box-shadow: 0 2px 12px rgba(29,158,117,0.65), 0 0 28px rgba(37,201,143,0.4);
}

.ctrl-jump {
    width: 96px; height: 96px;
    font-size: 36px;
    border-radius: 24px;
    background: rgba(29,158,117,0.32);
    border-color: rgba(37,201,143,0.5);
    box-shadow: 0 6px 32px rgba(29,158,117,0.5), inset 0 1px 0 rgba(255,255,255,0.14);
}
.ctrl-jump::before {
    border-radius: 24px;
}
.ctrl-jump.pressed,
.ctrl-jump:active {
    background: rgba(37,201,143,0.78);
    transform: scale(0.9);
    box-shadow: 0 2px 12px rgba(37,201,143,0.65), 0 0 36px rgba(37,201,143,0.5);
}

/* ======== WARNING TEXT ======== */
#warning-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 25;
    font-family: var(--font-heading);
    font-size: clamp(16px, 5vw, 26px);
    font-weight: 900;
    color: var(--orange);
    text-shadow: 0 2px 14px rgba(0,0,0,0.85);
    pointer-events: none;
    animation: warnPop 1.2s ease-out forwards;
    letter-spacing: -0.3px;
}
@keyframes warnPop {
    0%   { transform: translate(-50%,-50%) scale(0.3); opacity: 0; }
    25%  { transform: translate(-50%,-55%) scale(1.18); opacity: 1; }
    100% { transform: translate(-50%,-72%) scale(0.85); opacity: 0; }
}

/* ======== ACHIEVEMENT POPUP ======== */
#achievement-popup {
    position: absolute;
    top: 58px; left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: none;
    background: rgba(9, 15, 30, 0.93);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255,200,87,0.38);
    border-radius: 30px;
    padding: 9px 20px;
    font-family: var(--font-heading);
    font-size: 13px; font-weight: 800;
    color: var(--yellow);
    text-align: center;
    box-shadow: 0 4px 28px rgba(255,200,87,0.28);
    white-space: nowrap;
    pointer-events: none;
}
#achievement-popup.show {
    display: block;
    animation: achievePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes achievePop {
    0%   { transform: translateX(-50%) scale(0.4) translateY(-8px); opacity: 0; }
    60%  { transform: translateX(-50%) scale(1.06) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) scale(1)   translateY(0); opacity: 1; }
}

/* ======== RESULT SCREEN ======== */
#result-screen {
    background: radial-gradient(ellipse 120% 80% at 50% -10%, #16305c 0%, var(--navy-dark) 65%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 30;
}
.result-scroll {
    width: 100%; max-width: 520px;
    padding: 28px 16px 56px;
    margin: 0 auto;
    display: flex; flex-direction: column;
    align-items: center; gap: 14px;
    position: relative;
}
.confetti-container {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
    overflow: hidden;
}
.confetti-piece {
    position: absolute; top: -20px;
    animation: confettiFall linear forwards;
}
@keyframes confettiFall {
    0%   { opacity: 1; }
    100% { transform: translateY(105vh) rotate(900deg); opacity: 0; }
}

/* Result header card */
.result-header {
    text-align: center; z-index: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px 20px 18px;
    width: 100%;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 36px rgba(0,0,0,0.32);
}
.result-header canvas {
    width: 80px; height: 107px;
    margin-bottom: 12px;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45));
    animation: charBounce 1s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.3s;
}
@keyframes charBounce {
    from { transform: translateY(-20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.result-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(22px, 6vw, 30px);
    font-weight: 900;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.result-sub { font-size: 13px; color: var(--sky); margin-top: 6px; opacity: 0.8; }

.result-path {
    text-align: center;
    background: linear-gradient(135deg, rgba(29,158,117,0.14), rgba(255,200,87,0.07));
    border: 2px solid rgba(29,158,117,0.38);
    border-radius: 20px; padding: 20px 16px;
    width: 100%; z-index: 1;
    box-shadow: 0 0 32px rgba(29,158,117,0.14);
    animation: fadeInUp 0.5s ease-out both 0.5s;
}
.result-label {
    font-size: 10px; color: var(--gray);
    margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700;
}
.result-title {
    font-family: var(--font-heading);
    font-size: clamp(18px, 5vw, 26px);
    font-weight: 900;
    color: var(--yellow);
    letter-spacing: -0.3px;
}

.result-banner-img-box {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    border: 1px solid var(--glass-border);
    z-index: 1;
    animation: fadeInUp 0.5s ease-out both 0.4s;
}

.result-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

.result-stats {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 16px;
    z-index: 1;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: fadeInUp 0.5s ease-out both 0.7s;
}
.result-stats-title {
    text-align: center;
    font-size: 21px;
    font-weight: 900;
    color: var(--yellow);
    margin-bottom: 16px;
    font-family: var(--font-heading);
    letter-spacing: -0.3px;
    text-shadow: 0 0 14px rgba(255,200,87,0.45);
}
.stat-bars { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.stat-bar-row { display: flex; align-items: center; gap: 8px; }
.stat-bar-label { font-size: 15px; width: 28px; text-align: center; }
.stat-bar-track {
    flex: 1; height: 22px;
    background: rgba(255,255,255,0.06);
    border-radius: 11px; overflow: hidden;
}
.stat-bar-fill {
    height: 100%; border-radius: 11px;
    transition: width 1s cubic-bezier(0.34, 1.1, 0.64, 1);
    display: flex; align-items: center;
    padding-left: 10px; font-size: 11px; font-weight: 800;
    min-width: 28px;
}
.stat-bar-fill.cat-ict { background: linear-gradient(90deg, #4A90D9, #67B7F7); }
.stat-bar-fill.cat-eng { background: linear-gradient(90deg, var(--orange), #FFB347); }
.stat-bar-fill.cat-sci { background: linear-gradient(90deg, var(--purple), #C39BD3); }
.stat-bar-fill.cat-bio { background: linear-gradient(90deg, var(--teal), var(--green-soft)); }
.stat-bar-fill.cat-inn { background: linear-gradient(90deg, var(--yellow), #FFE08A); color: #333; }
.stat-summary {
    display: flex; justify-content: space-around;
    font-size: 12px; color: var(--gray);
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.stat-summary strong { color: var(--white); font-weight: 700; }

.result-advice {
    width: 100%; z-index: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 16px 18px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: fadeInUp 0.5s ease-out both 0.85s;
}
.advice-en { font-size: 14px; color: var(--sky); line-height: 1.65; margin-bottom: 10px; }
.advice-si { font-size: 13px; color: var(--yellow); line-height: 1.65; opacity: 0.85; }

.result-cta-msg { text-align: center; z-index: 1; padding: 0 8px; }
.result-cta-msg p { font-size: 13px; color: var(--sky); line-height: 1.65; }

/* ======== FLYER SECTION ======== */
.flyer-section {
    width: 100%; z-index: 1;
    background: linear-gradient(135deg, #0f2040, #162b52, var(--navy-dark));
    border: 2px solid rgba(255,200,87,0.45);
    border-radius: 24px;
    padding: 24px 18px;
    text-align: center;
    box-shadow: 0 0 44px rgba(255,200,87,0.09), inset 0 0 44px rgba(29,158,117,0.04);
}
.flyer-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    color: var(--white);
    padding: 5px 18px; border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 12px; font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    box-shadow: 0 4px 14px rgba(29,158,117,0.42);
}
.flyer-inst {
    font-family: var(--font-heading);
    font-size: 22px; font-weight: 900;
    color: var(--yellow);
    margin-bottom: 8px;
    text-shadow: 0 0 22px rgba(255,200,87,0.3);
}
.flyer-tagline { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.flyer-desc { font-size: 13px; color: var(--sky); margin-bottom: 14px; line-height: 1.55; opacity: 0.85; }
.flyer-subjects {
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: 6px;
    margin-bottom: 14px;
}
.flyer-subjects span {
    background: rgba(255,255,255,0.06);
    padding: 5px 12px; border-radius: 20px;
    font-size: 11px; color: var(--sky);
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 600;
}
.flyer-highlights {
    list-style: none; text-align: left;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; margin-bottom: 16px;
}
.flyer-highlights li {
    font-size: 12px; color: var(--sky);
    padding-left: 18px; position: relative; line-height: 1.4;
}
.flyer-highlights li::before {
    content: '✓'; position: absolute;
    left: 0; color: var(--teal-light); font-weight: 800;
}
.flyer-bottom {
    font-size: 14px; font-weight: 700;
    color: var(--teal-light); margin-bottom: 6px;
}
.flyer-location { font-size: 12px; color: var(--gray); }

/* ======== CTA BUTTONS ======== */
.result-ctas {
    width: 100%; z-index: 1;
    display: flex; flex-direction: column;
    gap: 10px;
}
.result-ctas .btn { width: 100%; }

/* ======== LEAD FORM ======== */
.lead-form-section {
    width: 100%; z-index: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px 18px;
    text-align: center;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.lead-form-section h3 {
    font-family: var(--font-heading);
    font-size: 18px; font-weight: 800;
    color: var(--teal-light);
    margin-bottom: 6px; letter-spacing: -0.3px;
}
.lead-form-section > p {
    font-size: 13px; color: var(--gray);
    margin-bottom: 16px; line-height: 1.5;
}
#lead-form { display: flex; flex-direction: column; gap: 10px; }
#lead-form input, #lead-form select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
#lead-form input:focus, #lead-form select:focus {
    border-color: var(--teal);
    background: rgba(29,158,117,0.06);
}
#lead-form input::placeholder { color: var(--gray); }
#lead-form select { color: var(--gray); cursor: pointer; }
#lead-form select option { background: #0f2040; color: var(--white); }
#lead-form .btn { margin-top: 4px; }
#form-success {
    margin-top: 14px;
    background: rgba(29,158,117,0.11);
    border: 1px solid rgba(37,201,143,0.28);
    border-radius: 14px; padding: 18px;
}
#form-success p { font-size: 15px; color: var(--teal-light); font-weight: 700; line-height: 1.6; }

/* ======== RESULT COLUMNS (desktop 2-col) ======== */
.result-cols {
    width: 100%;
    display: flex; flex-direction: column;
    gap: 14px;
}
.result-col {
    display: flex; flex-direction: column;
    gap: 14px;
    min-width: 0;
}

/* ======== REWARD FORM (marketing) ======== */
.reward-banner {
    display: flex; align-items: center; gap: 14px;
    text-align: left;
    background: linear-gradient(135deg, rgba(255,200,87,0.13), rgba(29,158,117,0.1));
    border: 1.5px solid rgba(255,200,87,0.4);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 0 28px rgba(255,200,87,0.12);
}
.reward-icon {
    font-size: 34px;
    filter: drop-shadow(0 0 12px rgba(255,200,87,0.6));
    animation: logoPulse 2.5s ease-in-out infinite;
}
.reward-kicker {
    font-family: var(--font-heading);
    font-size: 10px; font-weight: 800;
    letter-spacing: 1.4px;
    color: var(--yellow);
    margin-bottom: 3px;
}
.reward-text h3 {
    font-family: var(--font-heading);
    font-size: 16px; font-weight: 800;
    color: var(--white);
    line-height: 1.3;
    letter-spacing: -0.2px;
    margin: 0;
}
.form-sub {
    font-size: 13px; color: var(--sky);
    margin-bottom: 10px; line-height: 1.55;
}
.urgency-pill {
    display: inline-block;
    background: rgba(232,93,117,0.12);
    border: 1px solid rgba(232,93,117,0.4);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px; font-weight: 700;
    color: #FF9DAE;
    margin-bottom: 16px;
    animation: urgencyBlink 2.4s ease-in-out infinite;
}
@keyframes urgencyBlink {
    0%, 100% { box-shadow: 0 0 0 rgba(232,93,117,0); }
    50%      { box-shadow: 0 0 16px rgba(232,93,117,0.35); }
}
.field-label {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 12px; font-weight: 700;
    color: var(--sky);
    letter-spacing: 0.4px;
    text-align: left;
    margin-top: 4px;
}
.subject-count {
    font-size: 11px; font-weight: 800;
    color: var(--gray);
    background: rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 3px 10px;
    transition: all 0.25s;
}
.subject-count.complete {
    color: #06281c;
    background: var(--teal-light);
    box-shadow: 0 0 12px rgba(37,201,143,0.5);
}
.subject-chips {
    display: flex; flex-wrap: wrap;
    gap: 8px;
}
.chip {
    border: 1.5px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.05);
    color: var(--sky);
    border-radius: 22px;
    padding: 10px 16px;
    font-family: var(--font-heading);
    font-size: 13px; font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--teal-light); }
.chip:active { transform: scale(0.93); }
.chip.on {
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    border-color: var(--teal-light);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(29,158,117,0.45);
    transform: scale(1.04);
}
.form-error {
    background: rgba(232,93,117,0.12);
    border: 1px solid rgba(232,93,117,0.42);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px; font-weight: 700;
    color: #FF9DAE;
    animation: warnShakeX 0.4s ease;
}
@keyframes warnShakeX {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-3px); }
}
.btn-submit-lead { width: 100%; font-size: 16px; padding: 17px 24px; }
.trust-line {
    font-size: 11px; color: var(--gray);
    margin-top: 4px;
}

/* ======== RESULT SCREEN — DESKTOP ======== */
@media (min-width: 900px) {
    .result-scroll {
        max-width: 1060px;
        padding: 36px 28px 64px;
    }
    .result-cols {
        flex-direction: row;
        align-items: flex-start;
        gap: 18px;
    }
    .result-col { flex: 1; }
    .lead-form-section {
        max-width: 620px;
        margin: 0 auto;
        padding: 30px 28px;
    }
    .result-ctas {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .result-header { padding: 28px 24px 22px; }
    .result-banner-img-box {
        max-width: 620px;
    }
}

/* ======== SCREEN SHAKE ======== */
@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-5px); }
    40%       { transform: translateX(5px); }
    60%       { transform: translateX(-3px); }
    80%       { transform: translateX(3px); }
}
.shake { animation: screenShake 0.35s ease-out; }

/* ======== RESPONSIVE ======== */
@media (max-width: 380px) {
    .ctrl-btn  { width: 70px; height: 70px; font-size: 26px; }
    .ctrl-jump { width: 86px; height: 86px; font-size: 32px; }
    .ctrl-left-group { gap: 10px; }
    #mobile-controls { bottom: 50px; padding: 12px 14px; }
    .hud-cats { gap: 2px; }
    .cat-icon { padding: 2px 4px; font-size: 10px; }
}
@media (max-width: 480px) {
    .ctrl-btn  { width: 74px; height: 74px; font-size: 28px; }
    .ctrl-jump { width: 90px; height: 90px; font-size: 34px; }
    .ctrl-left-group { gap: 12px; }
    .flyer-highlights { grid-template-columns: 1fr; }
    
    /* Optimize stage card overlay for small devices */
    .stage-card-box {
        padding: 20px 16px;
        border-radius: 20px;
    }
    .stage-card-title {
        font-size: 24px;
    }
    .stage-card-mission-box {
        padding: 10px;
        gap: 10px;
        margin-bottom: 16px;
    }
    .mission-icon-box {
        font-size: 24px;
    }
    .mission-text-desc {
        font-size: 12px;
    }
}
@media (min-width: 769px) {
    #mobile-controls { display: none !important; }
}
@media (max-height: 500px) {
    .menu-content { gap: 10px; }
    .logo-icon { font-size: 32px; }
    .game-title { font-size: 26px; }
    .social-proof { display: none; }
}
@media (max-height: 600px) and (orientation: landscape) {
    .ctrl-btn  { width: 58px; height: 58px; font-size: 22px; border-radius: 14px; }
    .ctrl-jump { width: 68px; height: 68px; font-size: 26px; border-radius: 16px; }
    #mobile-controls { bottom: 20px; }
    .hud-bar { padding: 5px 10px 4px; }
}

/* ======== BGM, OVERLAYS & OVERHAULED HUD ======== */

/* Watermark */
.game-watermark {
    position: absolute;
    bottom: 12px; right: 12px;
    z-index: 5;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--white);
    opacity: 0.25;
    pointer-events: none;
}

/* Overhauled HUD Panels */
.hud-panel {
    position: absolute;
    background: rgba(9, 15, 30, 0.72);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    pointer-events: all;
}
.hud-panel-title {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.8px;
    color: var(--gray);
    display: block;
    margin-bottom: 3px;
    text-transform: uppercase;
}

/* Position HUD Panels */
.health-panel {
    top: 16px; left: 16px;
    min-width: 150px;
    border-color: rgba(232, 93, 117, 0.3);
}
.health-panel .hud-hearts {
    font-size: 32px;
    line-height: 1.1;
    display: flex;
    gap: 7px;
    filter: drop-shadow(0 2px 8px rgba(232, 93, 117, 0.45));
}
.center-panel {
    top: 16px; left: 50%;
    transform: translateX(-50%);
    text-align: center;
    min-width: 180px;
    border-color: rgba(255, 200, 87, 0.3);
}
.hud-score-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}
.hud-score-row span#hud-score {
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 900;
    line-height: 1;
    color: var(--yellow);
    text-shadow: 0 0 22px rgba(255, 200, 87, 0.55), 0 2px 4px rgba(0,0,0,0.6);
}
.hud-score-unit {
    font-size: 13px;
    font-weight: 800;
    color: var(--yellow);
    opacity: 0.7;
}
.center-panel .hud-zone {
    font-size: 10px;
    font-weight: 800;
    color: var(--yellow);
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    margin-top: 2px;
}

.collectible-panel {
    top: 16px; right: 16px;
    max-width: 320px;
}
.collectible-panel .hud-cats {
    display: flex;
    gap: 8px;
}
.collectible-panel .cat-icon {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--sky);
}
.collectible-panel .cat-label {
    font-size: 9px;
    font-weight: 800;
    opacity: 0.7;
}

/* Progress Panel (Left side) */
.progress-panel {
    position: absolute;
    top: 110px; left: 16px;
    background: rgba(9, 15, 30, 0.72);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    width: 140px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: all;
}
.progress-label {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.8px;
    color: var(--gray);
}
.progress-panel #hud-progress {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}
.progress-panel #hud-progress-fill {
    border-radius: 3px;
    /* We'll color-code it dynamically in JS */
}
.progress-val {
    font-size: 11px;
    font-weight: 800;
    color: var(--white);
    text-align: right;
}

/* Pause Button (HUD) */
.btn-pause-hud {
    position: absolute;
    top: 110px; right: 16px;
    width: 40px; height: 40px;
    background: rgba(9, 15, 30, 0.72);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.btn-pause-hud:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}
.btn-pause-hud:active {
    transform: scale(0.95);
}

/* Compact HUD on mobile screens — keep big hearts/score readable without crowding and prevent overlaps */
@media (max-width: 768px) {
    /* ROW 1: top: 12px */
    .health-panel {
        top: 12px;
        left: 12px;
        min-width: unset;
        width: auto;
        padding: 4px 8px;
        border-color: rgba(232, 93, 117, 0.3);
    }
    .health-panel .hud-hearts {
        font-size: 20px;
        gap: 4px;
    }
    .health-panel .hud-panel-title {
        display: none;
    }

    .center-panel {
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        min-width: 110px;
        padding: 4px 10px;
        border-color: rgba(255, 200, 87, 0.3);
    }
    .hud-score-row span#hud-score {
        font-size: 26px;
    }
    .hud-score-unit {
        font-size: 10px;
    }
    .center-panel .hud-zone {
        font-size: 8px;
        margin-top: 1px;
        letter-spacing: 0.5px;
    }

    /* Pause button goes to top-right in Row 1 */
    .btn-pause-hud {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        font-size: 14px;
        padding: 0;
        margin: 0;
    }

    /* ROW 2: top: 56px */
    .collectible-panel {
        top: 56px;
        left: 12px;
        right: 12px;
        width: calc(100% - 24px);
        max-width: unset;
        padding: 4px 8px;
        border-color: rgba(255, 255, 255, 0.1);
    }
    .collectible-panel .hud-panel-title {
        display: none;
    }
    .collectible-panel .hud-cats {
        display: flex;
        justify-content: space-between;
        width: 100%;
        gap: 4px;
    }
    .collectible-panel .cat-icon {
        padding: 3px 6px;
        font-size: 11px;
        border-radius: 6px;
        flex: 1;
        justify-content: center;
        gap: 3px;
    }
    .collectible-panel .cat-label {
        display: none;
    }

    /* ROW 3: top: 96px (below collectibles) */
    .progress-panel {
        top: 96px;
        left: 12px;
        width: calc(100% - 24px);
        max-width: unset;
        padding: 5px 10px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .progress-label {
        display: none; /* Hide to save space */
    }
    .progress-panel #hud-progress {
        flex: 1;
        height: 8px;
        border-radius: 4px;
        margin: 0;
    }
    .progress-val {
        font-size: 11px;
        font-weight: 800;
        min-width: 30px;
        text-align: right;
    }

    /* Controls already positioned with bottom: 60px */
}

/* Pause Screen Modal */
#pause-screen {
    background: rgba(9, 15, 30, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
}
.pause-content {
    background: rgba(15, 32, 64, 0.65);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 32px 40px;
    text-align: center;
    max-width: 380px; width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: fadeInUp 0.4s ease-out;
}
.pause-title {
    font-family: var(--font-heading);
    font-size: 28px; font-weight: 900;
    color: var(--yellow);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}
.pause-sub {
    font-size: 13px;
    color: var(--sky);
    margin-bottom: 24px;
    opacity: 0.8;
}
.pause-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Stage Card Overlay */
#stage-card-overlay {
    background: rgba(9, 15, 30, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 90;
}
.stage-card-box {
    background: linear-gradient(135deg, rgba(15, 32, 64, 0.8) 0%, rgba(9, 15, 30, 0.95) 100%);
    border: 2px solid rgba(37, 201, 143, 0.3);
    border-radius: 28px;
    padding: 36px;
    max-width: 440px; width: 90%;
    box-shadow: 0 0 40px rgba(37, 201, 143, 0.22);
    text-align: center;
    animation: zoomCard 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes zoomCard {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.stage-card-sub {
    font-size: 12px; font-weight: 900;
    letter-spacing: 2px;
    color: var(--teal-light);
    margin-bottom: 8px;
    text-transform: uppercase;
}
.stage-card-title {
    font-family: var(--font-heading);
    font-size: 32px; font-weight: 900;
    color: var(--white);
    letter-spacing: -0.5px;
}
.stage-card-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal-light), transparent);
    margin: 18px 0;
}
.stage-card-mission-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    text-align: left;
    margin-bottom: 24px;
}
.mission-icon-box {
    font-size: 32px;
}
.mission-text-header {
    font-size: 10px; font-weight: 900;
    color: var(--gray);
    letter-spacing: 1px;
}
.mission-text-desc {
    font-size: 14px; font-weight: 600;
    color: var(--sky);
    line-height: 1.4;
}

/* Floating popups for +10 score */
.score-popup-text {
    font-family: var(--font-heading);
    font-size: 22px; font-weight: 900;
    color: var(--yellow);
    text-shadow: 0px 0px 4px rgba(0,0,0,0.8);
    pointer-events: none;
}

/* Red damage overlay flash */
.damage-flash-overlay {
    position: absolute;
    inset: 0;
    background: rgba(232, 93, 117, 0.35);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.damage-flash-overlay.active {
    opacity: 1;
}

/* Mobile controls updates */
#mobile-controls {
    pointer-events: none;
}
#mobile-controls .ctrl-btn {
    border: 2.5px solid rgba(37, 201, 143, 0.3);
    background: rgba(9, 15, 30, 0.82);
    box-shadow: 0 6px 28px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.12);
}
#mobile-controls .ctrl-btn:active,
#mobile-controls .ctrl-btn.pressed {
    background: rgba(37, 201, 143, 0.65);
    border-color: var(--teal-light);
    box-shadow: 0 0 24px rgba(37, 201, 143, 0.5), 0 0 8px rgba(37, 201, 143, 0.3);
}

/* Tutorial Panel */
.tutorial-panel {
    position: absolute;
    bottom: 110px; left: 50%;
    transform: translateX(-50%);
    background: rgba(9, 15, 30, 0.82);
    border: 1.5px solid var(--teal-light);
    border-radius: 16px;
    padding: 12px 20px;
    display: flex;
    gap: 16px;
    z-index: 12;
    pointer-events: none;
    box-shadow: 0 4px 24px rgba(37, 201, 143, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.5s ease;
}
.tut-step {
    font-size: 12px;
    font-weight: 700;
    color: var(--sky);
    opacity: 0.9;
    transition: opacity 0.3s, color 0.3s;
}
.tut-step.completed {
    opacity: 0.35;
    color: var(--gray);
    text-decoration: line-through;
}
