/* ─────────────────────────────────────────────
   CYBER TANOD — COLORFUL RETRO ARCADE
   ───────────────────────────────────────────── */

:root {
  --bg:        #f0f4ff;
  --bg2:       #dbe7ff;
  --bg3:       #eef5ff;
  --cyan:      #00d8ff;
  --cyan-dim:  #009ac8;
  --blue:      #3b82f6;
  --pink:      #ff2d95;
  --pink-dim:  #c41a72;
  --purple:    #8b5cf6;
  --orange:    #f59e0b;
  --orange-dim:#ea580c;
  --gold:      #facc15;
  --gray:      #475569;
  --red:       #ef4444;
  --red-dim:   #b91c1c;
  --green:     #22c55e;
  --lime:      #a3e635;
  --white:     #0f172a;
  --white-dim: #334155;
  --font-pixel: 'Press Start 2P', monospace;
  --font-mono:  'Share Tech Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%; overflow: hidden;
  min-width: 0;
  background: var(--bg3);
  color: var(--white);
  font-family: var(--font-mono);
}

/* ── CRT EFFECTS ── */
#scanlines {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
}
#crt-vignette {
  position: fixed; inset: 0; z-index: 9997; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 65%, rgba(0,0,0,0.12) 100%);
}
#app {
  position: fixed; inset: 0; overflow: hidden;
  min-width: 0;
  max-width: 100vw;
  background: transparent;
}

.retro-btn {
  width: min(100%, 250px);
  min-width: 0;
  margin: 0 auto;
  display: block;
}

/* ── GENERATED BACKGROUND ── */
#app::before {
  content: '';
  position: absolute; inset: -5%; pointer-events: none; z-index: 0;
  background: url('background.png') center/cover no-repeat;
  filter: blur(12px) brightness(1.5) opacity(0.18);
}

/* ── RAINBOW BORDER UTIL ── */
.rainbow-border {
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.rainbow-border::before {
  content:'';
  position:absolute; inset:-3px;
  background: linear-gradient(135deg, var(--blue), var(--lime), var(--pink), var(--cyan));
  border-radius: inherit;
  z-index:-1;
}

/* ── COMMON RETRO ELEMENTS ── */
.retro-btn {
  font-family: var(--font-pixel);
  font-size: 14px;
  padding: 14px 28px;
  border: 3px solid;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.1s;
  text-transform: uppercase;
  position: relative;
  background: transparent;
}
.retro-btn:active { transform: translate(2px, 2px); }

.btn-primary {
  color: var(--white);
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), 4px 4px 0 var(--cyan-dim);
}
.btn-primary:hover { box-shadow: 0 2px 4px rgba(0,0,0,0.1), 4px 4px 0 var(--cyan-dim); filter: brightness(1.15); }

.btn-danger {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), 4px 4px 0 var(--red-dim);
}
.btn-danger:hover { box-shadow: 0 2px 4px rgba(0,0,0,0.1), 4px 4px 0 var(--red-dim); filter: brightness(1.15); }

.btn-warning {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), 4px 4px 0 var(--orange);
}
.btn-warning:hover { box-shadow: 0 2px 4px rgba(0,0,0,0.1), 4px 4px 0 var(--orange); filter: brightness(1.15); }

.btn-secondary {
  color: var(--gold);
  background: transparent;
  border-color: var(--gold);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), 4px 4px 0 var(--orange-dim);
}
.btn-secondary:hover { box-shadow: 0 2px 4px rgba(0,0,0,0.1), 4px 4px 0 var(--orange-dim); }

.btn-safe {
  color: var(--white);
  background: var(--lime);
  border-color: var(--lime);
  font-size: 18px; padding: 18px 36px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), 4px 4px 0 var(--green);
}
.btn-safe:hover { box-shadow: 0 2px 4px rgba(0,0,0,0.1), 4px 4px 0 var(--green); filter: brightness(1.1); }

.btn-unsafe {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  font-size: 18px; padding: 18px 36px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), 4px 4px 0 var(--red-dim);
}
.btn-unsafe:hover { box-shadow: 0 2px 4px rgba(0,0,0,0.1), 4px 4px 0 var(--red-dim); filter: brightness(1.1); }

.btn-pink {
  color: var(--white);
  background: var(--pink);
  border-color: var(--pink);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), 4px 4px 0 var(--pink-dim);
}
.btn-pink:hover { box-shadow: 0 2px 4px rgba(0,0,0,0.1), 4px 4px 0 var(--pink-dim); filter: brightness(1.1); }

.btn-choice {
  color: var(--white);
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--cyan);
  font-size: 13px;
  padding: 16px 20px;
  width: 100%;
  text-align: left;
  box-shadow: 2px 2px 0 var(--cyan-dim);
}
.btn-choice:hover { background: rgba(140, 190, 214, 0.08); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

/* Password option cards (darker background for strong contrast) */
.pw-option {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border-radius: 6px;
  border: 3px solid rgba(255,255,255,0.04);
  background: linear-gradient(180deg, rgba(45,42,38,0.95), rgba(45,42,38,0.88));
  color: var(--bg3);
  font-family: var(--font-mono);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.36), 0 2px 4px rgba(0,0,0,0.1);
}
.pw-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.42), 0 2px 4px rgba(0,0,0,0.1);
  background: linear-gradient(180deg, rgba(45,42,38,0.98), rgba(30,28,25,0.92));
}
.pw-option:focus { outline: none; box-shadow: 0 0 2px 4px rgba(0,0,0,0.1); }

/* JS toggled states */
.pw-option.correct {
  border-color: var(--green);
  background: linear-gradient(90deg, rgba(157,193,131,0.12), rgba(157,193,131,0.04));
  box-shadow: 0 8px 26px rgba(157,193,131,0.18);
}
.pw-option.wrong {
  border-color: var(--red);
  background: linear-gradient(90deg, rgba(153, 122, 141,0.08), rgba(153, 122, 141,0.02));
  box-shadow: 0 8px 26px rgba(153, 122, 141,0.12);
}


/* ── CURSOR BLINK ── */
.cursor-blink {
  color: var(--pink);
  animation: blink 0.8s step-end infinite;
  font-family: var(--font-mono);
  font-size: 24px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ════════════════════════════════════
   BOOT SCREEN
   ════════════════════════════════════ */
#boot-screen {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, var(--bg2) 0%, var(--bg) 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
#boot-content {
  width: 90%; max-width: 860px;
  display: flex; flex-direction: column; gap: 24px; align-items: flex-start;
}
#boot-logo {
  font-family: var(--font-mono);
  font-size: clamp(8px, 1.2vw, 14px);
  color: var(--pink);
  text-shadow: none;
  white-space: pre;
  line-height: 1.4;
}
.boot-subtitle {
  font-family: var(--font-pixel);
  font-size: clamp(10px, 1.5vw, 16px);
  color: var(--gold);
  text-shadow: none;
  letter-spacing: 4px;
  margin-top: -10px;
}
#boot-log {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.6vw, 16px);
  color: var(--green);
  line-height: 2;
  min-height: 120px;
  text-shadow: none;
}
#boot-log .log-line { display: block; animation: fadein 0.2s; }
@keyframes fadein { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
#boot-bar-wrap { display: flex; align-items: center; gap: 16px; width: 100%; }
#boot-bar {
  flex: 1; height: 22px;
  border: 3px solid var(--pink);
  background: rgba(0,0,0,0.06);
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#boot-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange));
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: width 0.1s;
}
#boot-bar-label {
  font-family: var(--font-pixel);
  font-size: 11px; color: var(--pink);
  min-width: 140px;
  text-shadow: none;
}

/* ════════════════════════════════════
   TEAM ENTRY
   ════════════════════════════════════ */
#team-entry {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, var(--bg2) 0%, var(--bg) 100%);
  z-index: 90;
}
#team-entry-box {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  border: 4px solid transparent;
  padding: 50px 60px;
  background: linear-gradient(rgba(255,255,255,0.96), rgba(255,255,255,0.96)) padding-box,
              linear-gradient(135deg,var(--pink),var(--orange),var(--gold),var(--lime),var(--cyan),var(--blue),var(--purple),var(--pink)) border-box;
  max-width: 620px; width: 90%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0,0,0,0.1);
}
.retro-tag {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--white-dim);
  letter-spacing: 2px;
}
.team-entry-title {
  font-family: var(--font-pixel);
  font-size: clamp(16px, 3vw, 26px);
  color: var(--white);
  text-shadow: none;
  text-align: center;
  line-height: 1.6;
}
.input-row {
  display: flex; align-items: center; gap: 8px;
  border-bottom: 3px solid var(--pink);
  padding-bottom: 8px; width: 100%;
  box-shadow: 0 4px 12px rgba(200,162,200, 0.15);
}
.prompt {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--pink);
  text-shadow: none;
  white-space: nowrap;
}
#team-name-input {
  flex: 1;
  background: transparent;
  border: none; outline: none;
  color: var(--gold);
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2.5vw, 22px);
  letter-spacing: 3px;
  text-transform: uppercase;
  caret-color: var(--pink);
}
#team-name-input::placeholder { color: var(--gray); opacity: 0.6; }
.enter-hint {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--white-dim);
  animation: blink 1.5s step-end infinite;
}

/* ════════════════════════════════════
   CHARACTER SELECT SCREEN
   ════════════════════════════════════ */
#char-select {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, var(--bg2) 0%, var(--bg) 100%);
  z-index: 85;
}
#char-select-box {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  border: 4px solid transparent;
  padding: 40px 40px;
  background: linear-gradient(rgba(255,255,255,0.96), rgba(255,255,255,0.96)) padding-box,
              linear-gradient(135deg,var(--pink),var(--orange),var(--gold),var(--lime),var(--cyan),var(--blue),var(--purple),var(--pink)) border-box;
  max-width: 1100px; width: 95%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0,0,0,0.1);
}
.char-select-title {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2.5vw, 22px);
  color: var(--white);
  text-shadow: none;
  text-align: center;
  letter-spacing: 3px;
}
.char-hint { order: 99; }
#char-options {
  display: flex; gap: 40px; justify-content: center; flex-wrap: nowrap; overflow-x: auto; padding: 8px 6px;
  -webkit-overflow-scrolling: touch;
}
.char-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 26px 36px;
  border: 3px solid var(--pink)55;
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 260px; flex: 0 0 260px;
}
.char-card:hover {
  border-color: var(--pink);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(200,162,200, 0.15);
  transform: translateY(-4px);
}
.char-emoji {
  font-size: 140px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)) drop-shadow(0 4px 6px rgba(0,0,0,0.1));
  animation: float-bob 2s ease-in-out infinite;
}
.char-name {
  font-family: var(--font-pixel);
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--gold);
  text-shadow: none;
  letter-spacing: 2px;
}
.char-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--white-dim);
  letter-spacing: 3px;
}
.char-hint {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--white-dim);
  animation: blink 1.5s step-end infinite;
  text-align: center;
}

/* Sprite overrides */
.char-img img { width: 140px; height: 140px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); transition: transform 0.2s; }
.char-card:hover .char-img img { transform: scale(1.1); filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }
#active-tanod-display {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--gold);
  text-shadow: none;
  margin: 6px 0;
}
#tanod-emoji-disp img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }

/* ════════════════════════════════════
   INTRO COMIC
   ════════════════════════════════════ */
#intro-comic {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, var(--bg2) 0%, var(--bg) 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 80;
}
#comic-container {
  width: 90%; max-width: 820px;
  border: 4px solid var(--pink);
  padding: 40px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}
.comic-panel {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  min-height: 320px; justify-content: center;
}
.comic-speaker {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--pink);
  text-shadow: none;
  letter-spacing: 3px;
}
.comic-art {
  font-size: 90px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)) drop-shadow(0 4px 6px rgba(0,0,0,0.1));
  animation: float-bob 2s ease-in-out infinite;
}
@keyframes float-bob {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.comic-bubble {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--white);
  text-align: center;
  line-height: 1.7;
  border: 3px solid var(--pink)44;
  padding: 20px 30px;
  background: rgba(200,162,200, 0.04);
  max-width: 600px;
  border-radius: 2px;
}
.comic-beat {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--white-dim);
}
#comic-timer-bar {
  margin-top: 20px;
  height: 8px;
  background: rgba(0,0,0,0.06);
  border: 2px solid var(--pink)44;
  width: 100%;
  border-radius: 2px;
}
#comic-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  width: 100%;
  transition: width linear;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ════════════════════════════════════
   GAME SCREEN LAYOUT
   ════════════════════════════════════ */
#game-screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: transparent;
}

/* ── TOP BAR ── */
#top-bar {
  height: 72px;
  background: linear-gradient(90deg, var(--bg2) 0%, var(--bg) 50%, var(--bg3) 100%);
  border-bottom: 3px solid transparent;
  display: flex; align-items: center;
  padding: 0 20px; gap: 20px;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
#top-bar::after {
  content:'';
  position:absolute; bottom:-3px; left:0; right:0; height:3px;
  background: linear-gradient(90deg, var(--blue), var(--lime), var(--pink), var(--cyan));
}
.top-label {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--white-dim);
  letter-spacing: 2px;
  margin-right: 6px;
}
#top-team {
  display: flex; align-items: center;
  min-width: 180px;
}
#disp-team {
  font-family: var(--font-pixel);
  font-size: clamp(11px, 1.6vw, 16px);
  color: var(--gold);
  text-shadow: none;
  letter-spacing: 2px;
}
#top-xp {
  flex: 1;
  display: flex; flex-direction: column; gap: 4px;
}
#xp-row {
  display: flex; align-items: center; gap: 12px;
}
#disp-xp {
  font-family: var(--font-pixel);
  font-size: 20px;
  color: var(--gold);
  text-shadow: none;
  min-width: 60px;
}
.tier-badge {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--white);
  background: var(--cyan);
  padding: 4px 10px;
  letter-spacing: 1px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#xp-bar-wrap {
  height: 14px;
  background: rgba(0,0,0,0.08);
  border: 2px solid rgba(200,162,200, 0.3);
  border-radius: 2px;
  overflow: hidden;
}
#xp-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange), var(--gold));
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: width 0.4s ease;
}
#top-streak {
  display: flex; align-items: center; gap: 6px;
  min-width: 120px;
}
#disp-streak {
  font-family: var(--font-pixel);
  font-size: 24px;
  color: var(--orange);
  text-shadow: none;
}
.streak-fire { font-size: 22px; }

/* ── GAME BODY ── */
#game-body {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* ── WORLD MAP VIEW ── */
#world-map-view {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}
#map-background {
  position: absolute; inset: 0;
  background: url('worldmap2.png') center/cover no-repeat;
  background-size: cover;
  filter: brightness(1.3) contrast(1.1) saturate(0.9);
  z-index: 1;
}
#map-paths {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2; pointer-events: none;
}
.map-path {
  stroke: var(--pink); stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0.5;
  animation: march 1s linear infinite reverse;
}
@keyframes march { to { stroke-dashoffset: 8; } }

#map-nodes {
  position: absolute; inset: 0;
  z-index: 3;
}
.map-node {
  position: absolute;
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid var(--pink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-pixel);
  font-size: 14px; color: var(--white);
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  text-shadow: none;
}
.map-node:hover {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.1);
  background: rgba(255, 255, 255, 1);
}
.map-node.completed {
  border-color: var(--green); color: var(--green);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.1);
}
.map-node.locked {
  border-color: var(--gray); color: var(--gray);
  box-shadow: none; cursor: not-allowed;
  opacity: 0.7; filter: grayscale(1);
}
.map-node.locked:hover { transform: translate(-50%, -50%); background: rgba(255, 255, 255, 0.5); box-shadow: none; }
.map-node.boss-node { width: 64px; height: 64px; font-size: 18px; border-color: var(--red); color: var(--red); box-shadow: 0 4px 15px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.1); }
.map-node.boss-node:hover:not(.locked) { box-shadow: 0 6px 20px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.1); background: rgba(255, 255, 255, 1); border-color: var(--orange); }

#player-sprite {
  position: absolute;
  width: 64px; height: 64px;
  transform: translate(-50%, -100%); /* anchor at bottom center */
  z-index: 4;
  pointer-events: none;
  transition: left 0.3s linear, top 0.3s linear;
}
#player-sprite img {
  width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
  animation: idle-bounce 1s infinite alternate;
}
@keyframes idle-bounce { 100% { transform: translateY(-4px); } }

#interaction-prompt {
  position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-pixel); font-size: 16px; color: var(--gold);
  text-shadow: none; z-index: 5;
  background: rgba(255, 255, 255, 0.95); padding: 12px 24px; border: 3px solid var(--gold);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  animation: pulse-glow 1s infinite alternate;
}

#world-map-hint {
  position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-pixel); font-size: 14px; color: var(--white);
  text-shadow: none; z-index: 5;
  background: rgba(255, 255, 255, 0.9); padding: 8px 16px; border: 2px solid var(--pink);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* ── TASK OVERLAY (MAIN AREA) ── */
#main-area {
  position: absolute; inset: 0;
  z-index: 60;
  background: var(--bg3);
  overflow: hidden;
}

/* ── LEVEL SPLASH TRANSITION ── */
#level-splash {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, var(--bg2) 0%, var(--bg) 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
}
#splash-inner {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
#splash-lvl {
  font-family: var(--font-pixel);
  font-size: clamp(11px, 1.4vw, 15px);
  color: var(--white-dim);
  letter-spacing: 4px;
}
#splash-name {
  font-family: var(--font-pixel);
  font-size: clamp(22px, 4.5vw, 44px);
  color: var(--pink);
  text-shadow: none;
  animation: pulse-glow 0.8s ease-in-out infinite alternate;
}
#splash-name.boss-splash { color: var(--red); text-shadow: none; }
@keyframes pulse-glow {
  from { filter: brightness(1); }
  to   { filter: brightness(1.4) saturate(1.5); }
}
#splash-desc {
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.9vw, 20px);
  color: var(--white);
  max-width: 500px;
  line-height: 1.6;
}
#splash-count {
  font-family: var(--font-pixel);
  font-size: clamp(40px, 7vw, 70px);
  color: var(--gold);
  text-shadow: none;
  min-width: 80px; min-height: 80px;
  animation: pop-in 0.3s ease;
}
@keyframes pop-in {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── LEVEL CONTENT CONTAINER ── */
#level-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  padding: 20px;
  overflow: hidden;
}

/* ══════════════════════════════════════
   LEVEL 1 — CONVEYOR BELT (NEW DESIGN)
   ══════════════════════════════════════ */
.level-header {
  font-family: var(--font-pixel);
  font-size: clamp(11px, 1.8vw, 17px);
  color: var(--white);
  text-align: center;
  text-shadow: none;
  letter-spacing: 2px;
}
.level-timer-bar {
  height: 16px;
  border: 2px solid var(--white)22;
  background: rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.level-timer-bar-fill {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  transition: width linear;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#belt-new-wrap {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; gap: 10px;
}
#belt-top-bar {
  display: flex; flex-direction: column; gap: 6px;
}
#belt-score-info {
  display: flex; justify-content: space-between; align-items: center;
}
#belt-timer-row {
  display: flex; align-items: center; gap: 12px;
}
#belt-timer-track {
  flex: 1; height: 18px;
  background: rgba(0,0,0,0.06);
  border: 2px solid var(--lime);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#belt-timer-fill {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: width 1s linear;
}
#belt-timer-label {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--gold);
  text-shadow: none;
  min-width: 80px;
  text-align: right;
}
#belt-dots-row {
  display: flex; gap: 10px; justify-content: center; align-items: center;
}
.belt-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--pink);
  background: transparent;
  transition: all 0.2s;
}
.belt-dot.active { background: var(--pink); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.belt-dot.done   { background: var(--lime); border-color: var(--lime); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

#belt-arena {
  flex: 1;
  background: var(--bg3);
  border: 3px solid var(--pink)44;
  position: relative;
  overflow: hidden;
  min-height: 250px;
}
#belt-camera {
  position: absolute;
  inset: 0;
  perspective: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#belt-scene {
  width: 320px;
  height: 800px;
  transform-style: preserve-3d;
  transform: rotateX(65deg) translateY(-50px);
  position: relative;
}
#belt-track {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: rgba(240, 235, 255, 0.8);
  border-left: 4px solid var(--pink);
  border-right: 4px solid var(--pink);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), inset 0 2px 4px rgba(0,0,0,0.1);
  background-image:
    linear-gradient(to top, transparent 0%, var(--bg3) 80%),
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 38px,
      rgba(200,162,200, 0.3) 38px, rgba(200,162,200, 0.3) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 38px,
      rgba(200,162,200, 0.1) 38px, rgba(200,162,200, 0.1) 40px
    );
  background-position: 0 0, 0 0, 0 0;
  animation: belt-scroll-3d 1.5s linear infinite;
  z-index: 0;
}
@keyframes belt-scroll-3d {
  from { background-position: 0 0, 0 -40px, 0 0; }
  to   { background-position: 0 0, 0 0, 0 0; }
}
#belt-dir-left {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-pixel);
  font-size: clamp(7px, 1vw, 10px);
  color: var(--lime);
  text-shadow: none;
  letter-spacing: 1px;
  z-index: 2;
  line-height: 1.6;
}
#belt-dir-right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-pixel);
  font-size: clamp(7px, 1vw, 10px);
  color: var(--purple);
  text-shadow: none;
  letter-spacing: 1px;
  z-index: 2;
  line-height: 1.6;
  text-align: right;
}
#belt-packet-card {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 3px solid var(--pink);
  background: rgba(255, 255, 255, 0.95);
  padding: 18px 32px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.1);
  animation: packet-pulse 1.4s ease-in-out infinite;
  min-width: 220px;
  text-align: center;
  transform-origin: bottom center;
}
@keyframes packet-pulse {
  0%,100% { box-shadow: 0 4px 15px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.1); }
  50%     { box-shadow: 0 6px 20px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.1); }
}
.packet-label {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--pink);
  letter-spacing: 3px;
  opacity: 0.85;
}
.packet-name {
  font-family: var(--font-pixel);
  font-size: clamp(13px, 2.2vw, 22px);
  color: var(--white);
  letter-spacing: 1px;
}
.packet-arrow {
  font-size: 18px;
  color: var(--pink);
  text-shadow: none;
  animation: bounce-down 0.9s ease-in-out infinite;
}
@keyframes bounce-down {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(5px); }
}
@keyframes packet-roll-3d {
  from { transform: translateX(-50%) translateY(-100px) rotateX(-65deg); opacity: 0; }
  10%  { opacity: 1; }
  to   { transform: translateX(-50%) translateY(500px) rotateX(-65deg); opacity: 1; }
}
#belt-packet-card.packet-rolling {
  animation: packet-roll-3d 5s linear forwards, packet-pulse 1.4s ease-in-out infinite;
}
#belt-action-buttons {
  display: flex; gap: 16px;
}
.belt-action-btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 20px;
  border: 3px solid;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.12s;
  font-family: inherit;
}
.belt-action-btn:hover  { transform: translateY(-3px); filter: brightness(1.05); }
.belt-action-btn:active { transform: translateY(1px); }
.share-btn   { border-color: var(--lime);   box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.share-btn:hover   { box-shadow: 0 2px 4px rgba(0,0,0,0.1);   background: rgba(157, 193, 131, 0.08); }
.private-btn { border-color: var(--purple); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.private-btn:hover { box-shadow: 0 2px 4px rgba(0,0,0,0.1); background: rgba(200,162,200, 0.08); }
.btn-arrow-big { font-family: var(--font-pixel); font-size: clamp(18px, 3vw, 28px); }
  .share-btn   .btn-arrow-big { color: var(--lime);   text-shadow: none; }
  .private-btn .btn-arrow-big { color: var(--purple); text-shadow: none; }
.btn-action-label {
  font-family: var(--font-pixel);
  font-size: clamp(11px, 1.7vw, 17px);
  color: var(--white);
  letter-spacing: 1px;
}
.btn-key-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--white-dim);
}
#belt-hint {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.4vw, 15px);
  color: var(--white-dim);
  text-align: center;
}

/* ══════════════════════════════════════
   LEVEL 2 — SPOT THE PHISH
   ══════════════════════════════════════ */
#phish-wrap {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; gap: 12px;
}
#phish-email-container {
  flex: 1;
  border: 3px solid var(--orange)bb;
  background: rgba(255, 255, 255, 0.95);
  padding: 16px;
  position: relative;
  overflow: auto;
  font-family: var(--font-mono);
  box-shadow: 0 4px 15px rgba(210, 180, 140, 0.1);
}
.phish-email-header {
  border-bottom: 2px solid var(--orange)44;
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.phish-field { font-size: clamp(24px, 3.5vw, 42px); margin-bottom: 12px; color: var(--white); }
.phish-label { color: var(--orange); }
.phish-body { font-size: clamp(24px, 3.5vw, 42px); line-height: 1.6; color: var(--white); }
.phish-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
#phish-email-container .phish-clickable {
  border-bottom: none;
  padding: 2px 4px;
  color: inherit;
  background: transparent;
  display: inline;
}
#phish-email-container .phish-clickable:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--gold);
}
#phish-email-container .phish-clickable.is-link {
  color: var(--blue);
  text-decoration: underline;
}
#phish-email-container .phish-clickable.is-link:hover {
  color: var(--gold);
  background: rgba(176, 224, 230, 0.08);
}
#phish-email-container .phish-clickable.found {
  background: rgba(157,193,131, 0.15);
  border: 1px solid var(--green);
  color: var(--green);
  text-decoration: line-through;
}
#phish-email-container .phish-clickable.wrong {
  background: rgba(153, 122, 141, 0.15);
  border: 1px solid var(--red);
  color: var(--red);
  animation: shake 0.3s;
}
.phish-clickable.found { background: rgba(210, 180, 140, 0.15); border-color: var(--orange); color: var(--gold); text-decoration: line-through; }
.phish-clickable.wrong { animation: shake 0.3s; }
.phish-btn-area { display: flex; justify-content: space-between; align-items: center; }
#phish-found-count { font-family: var(--font-pixel); font-size: 12px; color: var(--gold); }
#phish-round-info { font-family: var(--font-pixel); font-size: 11px; color: var(--white-dim); }

/* ══════════════════════════════════════
   LEVEL 3 — PASSWORD MCQ
   ══════════════════════════════════════ */
#pw-wrap {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; gap: 16px;
}
#pw-round-info {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--white-dim);
  text-align: center;
}
#pw-question {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2vw, 20px);
  color: var(--white);
  text-align: center;
}
#pw-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
}
.pw-option {
  font-family: var(--font-pixel);
  font-size: clamp(12px, 1.8vw, 16px);
  color: var(--white);
  background: rgba(255, 255, 255, 0.75);
  border: 3px solid var(--gold)66;
  padding: 20px;
  cursor: pointer;
  text-align: center;
  transition: all 0.12s;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 1px;
  word-break: break-all;
}
.pw-option:hover { border-color: var(--gold); background: rgba(168, 165, 166, 0.08); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.pw-option.correct { border-color: var(--green); background: rgba(157,193,131, 0.15); color: var(--green); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.pw-option.wrong { border-color: var(--red); background: rgba(153, 122, 141, 0.15); color: var(--red); animation: shake 0.3s; }
#pw-feedback {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--white-dim);
  text-align: center;
  min-height: 30px;
}

/* ══════════════════════════════════════
   LEVEL 4 — SPEED ROUND
   ══════════════════════════════════════ */
#speed-wrap {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-around; gap: 10px;
}
#speed-counter {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--white-dim);
}
#speed-scenario {
  font-family: var(--font-mono);
  font-size: clamp(18px, 3vw, 28px);
  color: var(--white);
  text-align: center;
  line-height: 1.6;
  max-width: 800px;
  border: 3px solid var(--lime)aa;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 15px rgba(157, 193, 131, 0.1);
}
#speed-scenario .scenario-icon { font-size: 52px; display: block; margin-bottom: 12px; }
#speed-buttons { display: flex; gap: 30px; }
#speed-multiplier {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--orange);
  text-shadow: none;
}

/* ══════════════════════════════════════
   LEVEL 5 — URL INSPECTOR
   ══════════════════════════════════════ */
/* ══════════════════════════════════════
   LEVEL 5 — URL INSPECTOR
   ══════════════════════════════════════ */
#url-wrap {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; gap: 16px;
  align-items: center; justify-content: space-around;
}
#url-browser-frame {
  width: 100%;
  border: 3px solid var(--cyan)bb;
  background: var(--bg3);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
#url-browser-titlebar {
  background: var(--bg2);
  padding: 8px 14px;
  display: flex; gap: 8px; align-items: center;
}
.browser-dot { width: 12px; height: 12px; border-radius: 50%; }
.bd-red { background: var(--red); }
.bd-yellow { background: var(--gold); }
.bd-green { background: var(--green); }
#url-browser-bar {
  background: var(--bg2);
  border: 2px solid var(--cyan)88;
  padding: 8px 14px;
  margin: 10px 14px;
  font-family: var(--font-mono);
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--cyan-dim);
  letter-spacing: 1px;
  text-shadow: none;
}
#url-browser-content {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--white-dim);
  min-height: 80px;
  display: flex; align-items: center; justify-content: center;
}
#url-question { font-family: var(--font-pixel); font-size: 14px; color: var(--white); text-align: center; }
#url-buttons { display: flex; gap: 30px; }
#url-counter { font-family: var(--font-pixel); font-size: 12px; color: var(--white-dim); }

/* ══════════════════════════════════════
   LEVEL 6 — SCAM INBOX MEMORY
   ══════════════════════════════════════ */
#memory-wrap {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; gap: 14px;
}
#memory-flash-area {
  flex: 1;
  border: 3px solid var(--blue)aa;
  background: rgba(255, 255, 255, 0.95);
  padding: 16px;
  font-family: var(--font-mono);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(176, 224, 230, 0.1);
}
.memory-email-block { margin-bottom: 14px; border-bottom: 1px solid var(--blue)33; padding-bottom: 12px; }
.memory-email-block:last-child { border-bottom: none; }
.memory-email-field { font-size: clamp(18px, 2.4vw, 26px); color: var(--white); margin-bottom: 6px; }
.memory-email-body  { font-size: clamp(18px, 2.4vw, 26px); color: var(--white-dim); line-height: 1.6; }
.mem-label { color: var(--blue); }
#memory-phase-label {
  font-family: var(--font-pixel);
  font-size: clamp(16px, 2vw, 22px);
  color: var(--gold);
  text-align: center;
  text-shadow: none;
}
#memory-questions { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.mem-q-item {
  display: flex; align-items: center; justify-content: space-between;
  border: 2px solid var(--blue)88;
  background: rgba(176, 224, 230,0.08);
  padding: 12px 16px;
}
.mem-q-text { font-family: var(--font-mono); font-size: clamp(18px, 2.4vw, 26px); color: var(--white); flex: 1; }
.mem-q-buttons { display: flex; gap: 10px; }
.mem-btn {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 1.8vw, 18px);
  padding: 10px 20px;
  border: 2px solid;
  cursor: pointer;
  background: transparent;
}
.mem-btn-true { color: var(--green); border-color: var(--green); }
.mem-btn-true:hover { background: rgba(157,193,131, 0.08); }
.mem-btn-false { color: var(--red); border-color: var(--red); }
.mem-btn-false:hover { background: rgba(153, 122, 141, 0.08); }
.mem-btn.answered { opacity: 0.5; cursor: default; pointer-events: none; }
.mem-btn.correct-ans { background: rgba(157,193,131, 0.15); }
.mem-btn.wrong-ans { background: rgba(153, 122, 141, 0.15); }

/* ══════════════════════════════════════
   LEVEL 7 — SAFE PROFILE
   ══════════════════════════════════════ */
#profile-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding-bottom: 4px;
}

/* SMARTPHONE CONTAINER MOCKUP */
#phone-container {
  width: 500px;
  max-width: 95vw;
  flex: 1;
  min-height: 0;
  background: var(--bg3);
  border: 12px solid var(--gray);
  border-radius: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.1), 
    0 0 2px 4px rgba(0,0,0,0.1),
    0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  margin: 0 auto;
}

#phone-notch {
  width: 150px;
  height: 22px;
  background: var(--gray);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

#phone-status-bar {
  height: 28px;
  padding: 6px 20px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--white-dim);
  background: rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 5;
}

#phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 14px 24px 14px;
  overflow-y: auto;
  gap: 16px;
  background: radial-gradient(circle at top, var(--bg2) 0%, var(--bg) 100%);
  scrollbar-width: thin;
  scrollbar-color: var(--purple)44 transparent;
}

#phone-screen::-webkit-scrollbar {
  width: 6px;
}
#phone-screen::-webkit-scrollbar-track {
  background: transparent;
}
#phone-screen::-webkit-scrollbar-thumb {
  background: var(--purple)44;
  border-radius: 3px;
}

/* Home Indicator */
#phone-home-indicator {
  width: 120px;
  height: 4px;
  background: var(--white-dim);
  border-radius: 2px;
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.35;
  z-index: 10;
  pointer-events: none;
}

/* Phone App Header styles */
.phone-app-header {
  border-bottom: 2px solid rgba(230, 230, 250, 0.25);
  padding-bottom: 10px;
  margin-bottom: 4px;
  text-align: left;
}
.phone-app-title {
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--gold);
  text-shadow: none;
}
.phone-app-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--white-dim);
  margin-top: 4px;
}

/* FLEX VERTICAL OPTIONS FEED */
#profile-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.profile-field {
  border: 2px solid var(--purple)33;
  background: rgba(230, 230, 250, 0.03);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 12px;
}

.profile-field:hover {
  border-color: var(--purple);
  background: rgba(230, 230, 250, 0.08);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.profile-field.public {
  border-color: var(--lime)88;
  background: rgba(173, 223, 173, 0.04);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.profile-field.public:hover {
  border-color: var(--lime);
  background: rgba(173, 223, 173, 0.08);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-field.private {
  border-color: var(--red)88;
  background: rgba(153, 122, 141, 0.04);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.profile-field.private:hover {
  border-color: var(--red);
  background: rgba(153, 122, 141, 0.08);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pf-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
}

.pf-name-large {
  font-family: var(--font-mono);
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: bold;
  color: var(--white);
  letter-spacing: 0.5px;
}

.pf-subheading {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--white-dim);
  margin-top: 3px;
  line-height: 1.3;
}

/* CUSTOM NEON TOGGLE SWITCH */
.toggle-switch-container {
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.toggle-label-text {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.5px;
  color: var(--gray);
  transition: all 0.15s ease;
  cursor: pointer;
}

.toggle-label-text.private-label.active {
  color: var(--red);
  text-shadow: none;
}

.toggle-label-text.public-label.active {
  color: var(--lime);
  text-shadow: none;
}

.custom-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 24px;
  cursor: pointer;
  border-radius: 24px;
  transition: all 0.2s;
}

.custom-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.05);
  border: 2px solid var(--gray);
  border-radius: 24px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-slider::before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--white-dim);
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Unset / Initial Switch state */
.custom-switch.unset .custom-slider::before {
  left: 17px; /* Middle position */
  background-color: var(--gray);
}

/* Private Switch State */
.custom-switch.private-state .custom-slider {
  border-color: var(--red);
  background-color: rgba(153, 122, 141, 0.15);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.custom-switch.private-state .custom-slider::before {
  left: 3px;
  background-color: var(--red);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Public Switch State */
.custom-switch.public-state .custom-slider {
  border-color: var(--lime);
  background-color: rgba(157, 193, 131, 0.15);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.custom-switch.public-state .custom-slider::before {
  left: 31px;
  background-color: var(--lime);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Submits & Score rows */
#profile-submit-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  width: 100%;
}

#profile-score {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--white-dim);
  text-shadow: none;
}

/* ══════════════════════════════════════
   LEVEL 8 — BOSS LEVEL
   ══════════════════════════════════════ */
#boss-wrap {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; gap: 14px;
  align-items: center;
}
#boss-header {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2.2vw, 20px);
  color: var(--red);
  text-shadow: none;
  text-align: center;
  animation: pulse-glow 0.6s ease-in-out infinite alternate;
}
#boss-step-indicator {
  display: flex; gap: 16px;
  font-family: var(--font-pixel);
  font-size: 11px;
}
.boss-step-dot {
  color: var(--gray); padding: 6px 14px;
  border: 2px solid var(--gray)55;
}
.boss-step-dot.active { color: var(--orange); border-color: var(--orange); text-shadow: none; box-shadow: 0 4px 10px rgba(210, 180, 140, 0.15); }
.boss-step-dot.done   { color: var(--lime);   border-color: var(--lime);   text-shadow: none; }
#boss-content {
  flex: 1; width: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-around;
  border: 3px solid var(--red)bb;
  background: rgba(153, 122, 141,0.06);
  padding: 20px;
  box-shadow: 0 4px 20px rgba(153, 122, 141, 0.1);
}
#boss-breach {
  position: absolute; inset: 0;
  background: rgba(153, 122, 141,0.95);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  font-family: var(--font-pixel);
  font-size: clamp(36px, 7vw, 72px);
  color: var(--white);
  text-shadow: none;
  animation: shake 0.3s;
  flex-direction: column;
  gap: 20px;
}
#boss-breach-subtitle {
  font-size: clamp(13px, 1.8vw, 18px);
  color: rgba(255,255,255,0.88);
}

/* ══════════════════════════════════════
   FEEDBACK OVERLAY
   ══════════════════════════════════════ */
#feedback-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 60;
}
#feedback-box {
  border: 4px solid;
  padding: 36px 48px;
  background: rgba(255, 255, 255, 0.98);
  text-align: center;
  display: flex; flex-direction: column; gap: 14px;
  max-width: 520px; width: 90%;
  animation: slide-in 0.2s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
#feedback-box.correct-fb { border-color: var(--green); box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.1); }
#feedback-box.wrong-fb   { border-color: var(--red);  box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.1); animation: shake 0.3s; }
@keyframes slide-in { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#fb-icon  { font-size: 60px; }
#fb-title {
  font-family: var(--font-pixel);
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--white);
}
#fb-msg {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--white-dim);
  line-height: 1.6;
}
#fb-count {
  font-family: var(--font-pixel);
  font-size: 24px;
  color: var(--white-dim);
}

/* ── MAIN MENU SCREEN ── */
#main-menu-screen {
  position: absolute; inset: 0;
  display: flex; justify-content: center; align-items: center;
  z-index: 50; background: rgba(245, 245, 220, 0.9);
}
#main-menu-box {
  width: 90%; max-width: 500px;
  background: rgba(255, 255, 255, 0.95); border: 2px solid var(--pink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0,0,0,0.1); padding: 40px; text-align: center;
}

/* ── XP FLOAT ── */
#xp-float {
  position: absolute;
  font-family: var(--font-pixel);
  font-size: clamp(22px, 4vw, 38px);
  color: var(--gold);
  text-shadow: none;
  pointer-events: none;
  z-index: 999;
  animation: float-up 1.2s ease-out forwards;
}
@keyframes float-up {
  from { transform: translateY(0) scale(1); opacity: 1; }
  to   { transform: translateY(-120px) scale(1.2); opacity: 0; }
}

/* ── SCREEN FLASH ── */
#screen-flash {
  position: absolute; inset: 0; pointer-events: none;
  z-index: 998; opacity: 0;
}
#screen-flash.flash-green {
  background: 
    linear-gradient(to right, rgba(157,193,131, 0.8) 0%, transparent 25%),
    linear-gradient(to left, rgba(157,193,131, 0.8) 0%, transparent 25%),
    linear-gradient(to bottom, rgba(157,193,131, 0.8) 0%, transparent 25%),
    linear-gradient(to top, rgba(157,193,131, 0.8) 0%, transparent 25%);
  animation: flash-fade 1.5s cubic-bezier(0.15, 0.85, 0.45, 1) forwards;
}
#screen-flash.flash-red {
  background: 
    linear-gradient(to right, rgba(239, 68, 68, 0.85) 0%, transparent 25%),
    linear-gradient(to left,  rgba(239, 68, 68, 0.85) 0%, transparent 25%),
    linear-gradient(to bottom,rgba(239, 68, 68, 0.85) 0%, transparent 25%),
    linear-gradient(to top,   rgba(239, 68, 68, 0.85) 0%, transparent 25%);
  animation: flash-fade 1.5s cubic-bezier(0.15, 0.85, 0.45, 1) forwards;
}
@keyframes flash-fade {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* ── SHAKE ── */
@keyframes shake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-8px); }
  40%  { transform: translateX(8px); }
  60%  { transform: translateX(-6px); }
  80%  { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

/* ════════════════════════════════════
   FINAL SCORE SCREEN
   ════════════════════════════════════ */
#final-screen {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, var(--bg2) 0%, var(--bg) 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
#final-box {
  width: 90%; max-width: 720px;
  border: 4px solid transparent;
  background: linear-gradient(rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97)) padding-box,
              linear-gradient(135deg,var(--gold),var(--orange),var(--pink),var(--purple),var(--blue),var(--cyan),var(--green),var(--gold)) border-box;
  padding: 44px 50px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}
.final-header {
  font-family: var(--font-pixel);
  font-size: clamp(16px, 2.8vw, 26px);
  color: var(--gold);
  text-shadow: none;
  text-align: center;
  letter-spacing: 3px;
  animation: pulse-glow 1s ease-in-out infinite alternate;
}
#final-team {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2.5vw, 22px);
  color: var(--pink);
  letter-spacing: 3px;
  text-shadow: none;
}
#final-badge { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#final-badge-icon { font-size: 80px; filter: drop-shadow(0 4px 10px rgba(168, 165, 166, 0.3)); animation: float-bob 2s ease-in-out infinite; }
#final-badge-label {
  font-family: var(--font-pixel);
  font-size: clamp(13px, 1.9vw, 18px);
  color: var(--gold);
  text-shadow: none;
  text-align: center;
}
#final-xp {
  font-family: var(--font-pixel);
  font-size: clamp(26px, 5.5vw, 52px);
  color: var(--gold);
  text-shadow: none;
}
#final-xp-bar-wrap {
  width: 100%; height: 26px;
  border: 3px solid rgba(168, 165, 166, 0.5);
  background: rgba(0,0,0,0.06);
  border-radius: 2px;
  overflow: hidden;
}
#final-xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange), var(--gold));
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: width 1.5s ease;
  width: 0%;
}
#final-quote {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--white);
  text-align: center;
  line-height: 1.7;
  border: 2px solid rgba(200,162,200, 0.25);
  padding: 14px 20px;
  background: rgba(200,162,200, 0.04);
}
.final-footer-note {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--white-dim);
  text-align: center;
  letter-spacing: 2px;
}

/* Timer color shifts */
.timer-yellow .level-timer-bar-fill { background: var(--gold) !important; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.timer-red    .level-timer-bar-fill { background: var(--red)  !important; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

/* Utility */
.hidden { display: none !important; }

/* ════════════════════════════════════
   LEVEL RECAP SCREEN
   ════════════════════════════════════ */
#level-recap {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, var(--bg2) 0%, var(--bg) 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 70;
}
#recap-box {
  width: 100%; height: 100%;
  max-width: none;
  max-height: none;
  border: 4px solid transparent;
  background: linear-gradient(rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97)) padding-box,
              linear-gradient(135deg,var(--cyan),var(--purple),var(--pink),var(--orange),var(--gold),var(--lime),var(--cyan)) border-box;
  padding: 30px;
  display: flex; flex-direction: column; align-items: center; gap: 15px;
  box-shadow: none;
  position: relative;
  border-radius: 0;
  box-sizing: border-box;
}
#recap-title {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2.2vw, 20px);
  color: var(--gold);
  text-shadow: none;
  text-align: center;
  letter-spacing: 2px;
}
#recap-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.8vw, 16px);
  color: var(--white-dim);
  text-align: center;
  margin-bottom: 5px;
}
#recap-scroll-area {
  width: 100%;
  flex: 1;
  overflow: hidden;
  padding-right: 0;
  margin-bottom: 10px;
  border: 2px solid rgba(200,162,200, 0.25);
  background: rgba(0, 0, 0, 0.02);
  border-radius: 4px;
  display: flex;
}
/* custom scrollbar */
#recap-scroll-area::-webkit-scrollbar {
  width: 8px;
}
#recap-scroll-area::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
}
#recap-scroll-area::-webkit-scrollbar-thumb {
  background: var(--pink)44;
  border-radius: 4px;
}
#recap-scroll-area::-webkit-scrollbar-thumb:hover {
  background: var(--pink);
}

#recap-list {
  display: flex;
  flex-wrap: wrap;
  align-content: stretch;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 12px;
  padding: 12px;
  box-sizing: border-box;
}
.recap-item {
  border: 2px solid rgba(140, 190, 214, 0.3);
  background: rgba(140, 190, 214, 0.04);
  padding: 14px 18px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  flex: 1 1 250px;
  min-height: 0;
  overflow: hidden;
  justify-content: center;
}
#recap-continue-btn {
  margin-top: auto;
}
.recap-item:hover {
  border-color: var(--cyan);
  background: rgba(140, 190, 214, 0.08);
  box-shadow: 0 4px 12px rgba(140, 190, 214, 0.15);
}
.recap-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.recap-question {
  font-family: var(--font-pixel);
  font-size: clamp(10px, 1.4vw, 13px);
  color: var(--white);
  line-height: 1.4;
}
.recap-badge {
  font-family: var(--font-pixel);
  font-size: 8px;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.recap-badge.private {
  background: rgba(153, 122, 141, 0.12);
  color: var(--red);
  border: 1px solid var(--red);
}
.recap-badge.share, .recap-badge.public, .recap-badge.safe {
  background: rgba(157,193,131, 0.12);
  color: var(--green);
  border: 1px solid var(--green);
}
.recap-badge.unsafe, .recap-badge.fake {
  background: rgba(153, 122, 141, 0.12);
  color: var(--red);
  border: 1px solid var(--red);
}
.recap-subtext-box {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.6vw, 15px);
  color: var(--green);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: rgba(157,193,131, 0.08);
  border-left: 3px solid var(--green);
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
  text-align: left;
}
.recap-icon {
  font-size: 14px;
  line-height: 1.5;
}

/* ════════════════════════════════════
   OPTIONS MODAL
   ════════════════════════════════════ */
#options-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  display: none; /* JS sets to flex when open */
}
#options-box {
  width: 90%;
  max-width: 480px;
  border: 3px solid transparent;
  background: linear-gradient(rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.98)) padding-box,
              linear-gradient(135deg, var(--cyan), var(--purple), var(--pink), var(--cyan)) border-box;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0,0,0,0.1);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  animation: slide-in 0.2s ease;
  border-radius: 2px;
}
#options-title {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2.5vw, 20px);
  color: var(--cyan-dim);
  text-shadow: none;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 28px;
}
.options-section {
  width: 100%;
  border: 2px solid var(--purple)44;
  background: rgba(230, 230, 250,0.04);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.options-section-label {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--white-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--purple)33;
  padding-bottom: 6px;
}
.options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.options-row-label {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.6vw, 15px);
  color: var(--white);
  flex: 1;
}
.options-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.options-row-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--white-dim);
  opacity: 0.7;
}

/* ── Neon Toggle Switch ── */
.opt-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.opt-toggle-label {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--white-dim);
  letter-spacing: 1px;
  min-width: 22px;
  text-align: right;
  transition: color 0.2s;
}
.opt-switch {
  position: relative;
  width: 52px;
  height: 26px;
  border-radius: 26px;
  background: rgba(0, 0, 0, 0.05);
  border: 2px solid var(--gray);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  flex-shrink: 0;
}
.opt-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white-dim);
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
/* Active (ON) state — cyan by default */
.opt-switch.opt-switch--active {
  border-color: var(--cyan);
  background: rgba(140, 190, 214, 0.15);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.opt-switch.opt-switch--active .opt-switch-knob {
  left: 29px;
  background: var(--cyan);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Gold variant (unlock) */
.opt-switch--gold.opt-switch--active {
  border-color: var(--gold);
  background: rgba(168, 165, 166, 0.15);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.opt-switch--gold.opt-switch--active .opt-switch-knob {
  background: var(--gold);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Red variant (reset) */
.opt-switch--red.opt-switch--active {
  border-color: var(--red);
  background: rgba(153, 122, 141, 0.15);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.opt-switch--red.opt-switch--active .opt-switch-knob {
  background: var(--red);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Label colour follows toggle state */
.opt-switch.opt-switch--active + .opt-toggle-label,
.opt-toggle-wrap:has(.opt-switch--active) .opt-toggle-label {
  color: var(--cyan);
}
.opt-switch--gold.opt-switch--active ~ .opt-toggle-label {
  color: var(--gold);
}
.opt-switch--red.opt-switch--active ~ .opt-toggle-label {
  color: var(--red);
}
 
/* DEV MODE section accent border */
#dev-mode-section .options-section {
  border-color: var(--gold)66;
  background: rgba(168, 165, 166, 0.04);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
 
/* DEV MODE ACTIVE badge */
#dev-mode-badge {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--gold);
  background: rgba(168, 165, 166, 0.1);
  border: 2px solid var(--gold)88;
  padding: 5px 14px;
  letter-spacing: 2px;
  text-shadow: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  align-self: flex-start;
  animation: pulse-glow 1s ease-in-out infinite alternate;
}


/* ════════════════════════════════════
   MEDIA QUERIES (RESPONSIVE DESIGN)
   ════════════════════════════════════ */

/* ---- 1920x1080 (Large Desktop) ---- */
@media (min-width: 1900px) {
  #team-entry-box, #char-select-box, #comic-container {
    transform: scale(1.1);
  }
  .menu-title {
    font-size: 42px !important;
  }
  .menu-options .retro-btn {
    width: 300px !important;
    font-size: 16px;
  }
}

/* ---- 1366x768 (Standard Laptop) ---- */
@media (max-width: 1366px) {
  #main-menu-box {
    width: min(92%, 460px);
    padding: 34px 24px;
  }
  .menu-title {
    font-size: 30px !important;
  }
  .menu-options .retro-btn {
    width: 100% !important;
    max-width: 240px;
  }
  #team-entry-box {
    padding: 40px 50px;
  }
  #team-name-input {
    min-width: 0;
  }
  #char-options {
    gap: 20px;
  }
  .char-card {
    min-width: 220px;
    flex: 0 0 220px;
    padding: 20px 24px;
  }
  #comic-container {
    padding: 30px;
  }
  #recap-scroll-area {
    overflow-y: auto;
    display: block;
    padding-right: 8px;
  }
  #recap-list {
    height: auto;
  }
}

/* ---- 1024x768 (Tablets / Small Laptops) ---- */
@media (max-width: 1024px) {
  .menu-title {
    font-size: 28px !important;
  }
  #top-bar {
    padding: 0 10px;
    gap: 10px;
  }
  #disp-team {
    font-size: 12px !important;
  }
  #disp-xp {
    font-size: 16px;
  }
  #disp-streak {
    font-size: 20px;
  }
  #char-select-box {
    width: 95%;
  }
  #boot-content {
    width: 95%;
  }
}

/* ---- 800x600 (Small Tablets / Old Monitors) ---- */
@media (max-width: 800px) {
  #team-entry-box {
    padding: 30px 20px;
  }
  .team-entry-title {
    font-size: 18px;
  }
  .menu-options .retro-btn {
    width: 220px !important;
    font-size: 12px;
  }
  .char-card {
    min-width: 180px;
    flex: 0 0 180px;
    padding: 15px 20px;
  }
  .comic-art {
    font-size: 70px;
  }
  .comic-bubble {
    font-size: 16px;
  }
}

/* ---- Mobile Use (Smartphones, max-width: 600px) ---- */
@media (max-width: 600px) {
  .menu-title {
    font-size: 24px !important;
  }
  .menu-subtitle {
    font-size: 14px !important;
  }
  .menu-options .retro-btn {
    width: 100% !important;
    max-width: 280px;
  }
  #team-entry-box, #char-select-box, #comic-container, #options-box {
    padding: 20px 15px;
    width: 95%;
  }
  .input-row {
    flex-direction: column;
    align-items: stretch;
  }
  #team-name-input {
    text-align: center;
    font-size: 16px;
    padding: 5px 0;
  }
  .prompt {
    display: none;
  }
  #top-bar {
    flex-wrap: wrap;
    height: auto;
    padding: 10px;
    justify-content: center;
    gap: 10px;
  }
  #top-team, #top-streak {
    min-width: auto;
  }
  #top-xp {
    width: 100%;
    order: 3;
    margin-top: 5px;
  }
  #boot-logo {
    font-size: 6px;
    overflow-x: hidden;
  }
  #char-options {
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
  }
  .char-card {
    width: 100%;
    max-width: 260px;
    min-width: unset;
    flex: unset;
  }
  .comic-panel {
    min-height: 250px;
  }
  .comic-art {
    font-size: 60px;
  }
  .comic-bubble {
    font-size: 14px;
    padding: 15px;
  }
  #options-box {
    padding: 20px 15px;
  }
  .options-row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .options-row-label {
    text-align: center;
  }
  #splash-name {
    font-size: 24px;
  }
  #splash-count {
    font-size: 40px;
  }
}

