/* ============================================================
   RETROLOGIC — DARK SPACE THEME
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&family=Barlow+Condensed:wght@400;500;600;700&family=Inter:wght@400;600;700;800&family=Bungee&family=VT323&family=Permanent+Marker&family=Rajdhani:wght@500;700&display=swap');

:root {
  /* ── NEW DESIGN TOKENS ────────────────────────────── */
  --bg-black:    #03030d;
  --bg-navy:     #07091a;
  --panel-dark:  #080a18;
  --panel-raised:#0c1022;
  --panel-black: #05060d;

  --text-primary:   #f7f1ef;
  --text-secondary: #bbb8ca;
  --text-muted:     #9190a6;

  --neon-pink:    #ff2aa8;
  --hot-pink:     #ff167f;
  --deep-magenta: #9d126f;

  --electric-cyan: #00d9ff;
  --neon-blue:     #267dff;
  --violet:        #8b3dff;

  --sunset-orange: #ff6a24;
  --sunset-yellow: #ffc43d;
  --neon-green:    #52e58b;
  --warm-gold:     #dfa52e;

  --border-subtle: rgba(129, 141, 189, 0.22);
  --border-pink:   rgba(255, 42, 168, 0.72);
  --border-cyan:   rgba(0, 217, 255, 0.7);

  /* ── LEGACY ALIASES → remapped to new tokens ─────── */
  --bg:       var(--bg-navy);
  --panel:    var(--panel-raised);
  --panel2:   #131628;
  --panel3:   var(--panel-dark);
  --pink:     var(--neon-pink);
  --cyan:     var(--electric-cyan);
  --purple:   var(--violet);
  --yellow:   var(--sunset-yellow);
  --green:    var(--neon-green);
  --text:     var(--text-primary);
  --text2:    var(--text-secondary);
  --text3:    #b0adc2;
  --muted:    var(--text-muted);
  --line:     var(--border-subtle);
  --line2:    rgba(129,141,189,0.12);
  --white:    #ffffff;
  --card-bg:  var(--panel-raised);
  --card-border: var(--border-subtle);
}

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

/* ── FOCUS RINGS — keyboard-only, on-brand ───────────────── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Slightly tighter radius for pill/round buttons */
button:focus-visible,
.asb-nav-item:focus-visible,
.mm-item:focus-visible,
.ob-track-opt:focus-visible,
.cat:focus-visible,
.w-tile:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 8px;
}

html, body {
  width: 100%;
  /* Prevent Chrome for Android pull-to-refresh from firing mid-scroll */
  overscroll-behavior: none;
}

body {
  background:
    radial-gradient(circle at 65% 8%, rgba(87, 20, 125, 0.18), transparent 32%),
    radial-gradient(circle at 88% 50%, rgba(0, 124, 255, 0.08), transparent 25%),
    linear-gradient(180deg, #03030d 0%, #070716 55%, #03030b 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
p a, .card a, .feature-card a, section a:not(.btn):not(.button) { color: inherit !important; text-decoration: none !important; pointer-events: none !important; }

.pink  { color: var(--pink); }
.cyan  { color: var(--cyan); }

/* ── VHS TOP BAR ─────────────────────────────────────────── */
.vhs-top {
  height: 4px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan), var(--yellow), var(--pink));
  background-size: 400% 100%;
  animation: vhs 3s linear infinite;
}
@keyframes vhs { 0%{background-position:0%} 100%{background-position:400%} }

/* ── APP SHELL ───────────────────────────────────────────── */
#appShell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── STICKY HEADER SHELL ─────────────────────────────────── */
.sticky-header-shell { position: sticky; top: 0; z-index: 100; }

/* ── HEADER ──────────────────────────────────────────────── */
.header {
  background: rgba(5,7,28,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  position: relative;
}
.header-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(29,230,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,230,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(179,45,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.header-inner {
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.logo-block { display: flex; align-items: center; flex-shrink: 0; }
.logo-zoom-btn { background: transparent; border: none; cursor: pointer; padding: 0; border-radius: 50%; transition: transform .3s ease; }
.logo-zoom-btn.zoomed { transform: scale(5); z-index: 1000; position: relative; }
.logo-img { height: 72px; width: 72px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(255,47,143,0.4); box-shadow: 0 0 20px rgba(255,47,143,0.25); }

.header-center { flex: 1; overflow: hidden; }
.marquee-wrap { overflow: hidden; border-bottom: 1px solid rgba(255,216,77,0.15); padding-bottom: 6px; margin-bottom: 6px; }
.marquee-inner {
  display: inline-block; white-space: nowrap;
  font-family: 'VT323', monospace; font-size: 16px; color: #ffd84d; letter-spacing: 2px;
  animation: marquee 35s linear infinite;
}
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.header-tagline { margin-top: 4px; }
.ht-main { font-family: 'Permanent Marker', cursive; font-size: 15px; color: #ffd060; display: block; letter-spacing: 0.3px; }
.ht-sub { font-family: 'Manrope', sans-serif; font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }

.header-right-block { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.year-num { font-family: 'Bebas Neue', sans-serif; font-size: 42px; line-height: 1; letter-spacing: 3px; color: var(--purple); text-shadow: 0 0 20px rgba(179,45,255,0.5); }
.year-lbl { font-family: 'VT323', monospace; font-size: 13px; color: var(--muted); letter-spacing: 2px; }
.header-pills { display: flex; gap: 6px; }

.home-btn { background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: var(--muted); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 1px; padding: 5px 12px; border-radius: 8px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.home-btn:hover { background: rgba(255,255,255,0.12); color: var(--text); }

.voice-toggle-hdr { background: rgba(29,230,255,0.08); border: 1px solid rgba(29,230,255,0.25); color: var(--cyan); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 1px; padding: 5px 12px; border-radius: 8px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.voice-toggle-hdr:hover { background: rgba(29,230,255,0.16); }

.mission-btn { background: rgba(255,47,143,0.12); border: 1px solid rgba(255,47,143,0.35); color: var(--pink); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 1px; padding: 5px 12px; border-radius: 8px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.mission-btn:hover { background: rgba(255,47,143,0.22); box-shadow: 0 0 16px rgba(255,47,143,0.3); }

.stats-btn { background: rgba(255,216,77,0.08); border: 1px solid rgba(255,216,77,0.25); color: var(--yellow); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 1px; padding: 5px 12px; border-radius: 8px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.stats-btn:hover { background: rgba(255,216,77,0.16); }

/* ── CATEGORY BAR ─────────────────────────────────────────── */
.catbar {
  background: rgba(5,7,28,0.92);
  border-bottom: 1px solid var(--line);
  padding: 8px 28px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.cat-prefix { font-family: 'VT323', monospace; font-size: 16px; color: var(--muted); letter-spacing: 1px; margin-right: 4px; }
.cat { background: transparent; border: 1px solid rgba(255,255,255,0.12); color: var(--muted); border-radius: 8px; padding: 4px 14px; font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; cursor: pointer; transition: all .15s; }
.cat:hover, .cat.on { background: rgba(255,47,143,0.18); border-color: rgba(255,47,143,0.55); color: var(--text); }

/* ── LAYOUT ──────────────────────────────────────────────── */
.layout { display: flex; flex-direction: row; width: 100%; flex: 1 1 auto; min-height: 0; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  background: rgba(5,7,28,0.72);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}
.sb-section {}
.sb-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--cyan);
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
  margin-bottom: 8px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sb-hint { font-size: 10px; color: var(--muted); margin-bottom: 8px; font-style: italic; }
.sb-btn {
  background: transparent;
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 12px 12px;
  cursor: pointer;
  text-align: left;
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 4px;
}
.sb-btn:hover { background: rgba(255,47,143,0.10); border-color: rgba(255,47,143,0.35); }
.sb-em { font-size: 18px; flex-shrink: 0; }
.sb-name { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 13px; color: var(--text2); }
.sb-from { font-size: 11px; color: var(--muted); margin-top: 1px; }
.sb-stats { margin-top: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stat-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.stat-row:last-child { margin-bottom: 0; }
.stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--yellow); }
.hist-toggle-btn { background: rgba(255,47,143,0.08); border: 1px solid rgba(255,47,143,0.25); color: var(--pink); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 1px; padding: 3px 10px; border-radius: 6px; cursor: pointer; transition: all .15s; }
.hist-toggle-btn:hover { background: rgba(255,47,143,0.18); }

/* HISTORY */
.hist-item { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; margin-bottom: 5px; cursor: pointer; font-size: 11px; color: var(--muted); line-height: 1.4; transition: all .15s; }
.hist-item:hover { border-color: rgba(29,230,255,0.3); color: var(--text2); }

/* ── ICON QUOTE MODAL ────────────────────────────────────── */
.quote-modal { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(5,7,28,0.85); z-index: 100; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.quote-modal-inner { background: var(--panel2); border: 1px solid var(--line); border-radius: 20px; padding: 28px; max-width: 480px; width: 90%; box-shadow: 0 32px 80px rgba(0,0,0,0.5); position: relative; }
.qm-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.qm-emoji { font-size: 36px; }
.qm-name { font-family: 'Bebas Neue', sans-serif; font-size: 24px; color: var(--text); letter-spacing: 2px; line-height: 1; }
.qm-from { font-family: 'Manrope', sans-serif; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.qm-close { margin-left: auto; background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; color: var(--muted); font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.qm-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.qm-quote { font-family: 'Permanent Marker', cursive; font-size: 17px; color: var(--text); line-height: 1.6; margin-bottom: 20px; padding: 16px; background: rgba(255,255,255,0.04); border-radius: 10px; border-left: 3px solid var(--pink); }
.qm-actions { display: flex; gap: 10px; }
.qm-link { display: inline-flex; align-items: center; gap: 6px; background: #cc0000; color: white; border-radius: 8px; padding: 8px 16px; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 12px; text-decoration: none; transition: all .15s; }
.qm-link:hover { background: #ff0000; }
.qm-ask-btn { flex: 1; background: var(--pink); border: none; color: white; border-radius: 8px; padding: 8px 16px; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 13px; cursor: pointer; transition: all .15s; }
.qm-ask-btn:hover { opacity: 0.88; }

/* ── FEED COLUMN ─────────────────────────────────────────── */
.feed-col { flex: 1 1 0; width: 0; min-width: 0; display: flex; flex-direction: column; overflow-y: auto; }
.feed { flex: 1; padding: 24px 32px; display: flex; flex-direction: column; gap: 20px; }

/* ── INSPIRE BAR (wisdom quote) ──────────────────────────── */
.inspire-bar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 18px 28px;
}
.inspire-inner { display: flex; align-items: center; gap: 18px; }
.inspire-icon { font-size: 32px; flex-shrink: 0; }
.inspire-content { flex: 1; min-width: 0; }
.inspire-label { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 2px; color: var(--pink); text-transform: uppercase; margin-bottom: 5px; opacity: 0.8; }
.inspire-quote { font-family: 'Permanent Marker', cursive; font-size: 16px; color: var(--text); line-height: 1.5; margin-bottom: 4px; }
.inspire-source { font-family: 'VT323', monospace; font-size: 15px; color: var(--muted); letter-spacing: 1px; }

.inspire-controls { display:none; gap:6px; align-items:center; flex-shrink:0; }
.inspire-bar.audio-playing .inspire-controls { display:flex; }
.inspire-btn { background: rgba(255,47,143,0.10); border: 1px solid rgba(255,47,143,0.25); color: var(--pink); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.inspire-btn:hover { background: rgba(255,47,143,0.22); }
.inspire-pause { width: 36px; height: 36px; }
#inspireQuote { transition: opacity 0.3s ease; }

/* ── ONBOARDING TRACK PICKER ────────────────────────────────── */
.ob-track-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  width: 100%;
  margin-top: 16px;
}
.ob-track-opt {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 13px 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text2);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ob-track-opt:hover { background: rgba(255,47,143,0.1); border-color: rgba(255,47,143,0.4); color: #fff; }

/* ── GOAL MODAL ──────────────────────────────────────────── */
/* ── INTAKE MODAL (first-run routing) ──────────────────────── */
.intake-overlay {
  position: fixed; inset: 0; z-index: 9100;
  background: rgba(5,3,18,0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 1;
  transition: opacity 0.25s;
}
.intake-panel {
  background: rgba(14,10,36,0.98);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 36px 28px;
  max-width: 420px; width: 100%; text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
}
.intake-eyebrow {
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 11px; letter-spacing: 3px; color: var(--pink);
  margin-bottom: 10px;
}
.intake-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 26px;
  letter-spacing: 2px; color: #fff; line-height: 1.15;
  margin-bottom: 8px;
}
.intake-sub {
  font-family: 'Manrope', sans-serif; font-size: 13px;
  color: var(--muted); margin-bottom: 24px; line-height: 1.5;
}
.intake-options { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.intake-opt {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 13px 18px;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px;
  color: var(--text2); cursor: pointer; text-align: left;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  display: flex; align-items: center; gap: 12px;
}
.intake-opt:hover { background: rgba(255,47,143,0.1); border-color: rgba(255,47,143,0.4); color: #fff; }
.intake-opt-emoji { font-size: 20px; flex-shrink: 0; }
.intake-skip {
  font-family: 'Manrope', sans-serif; font-size: 12px; color: var(--muted);
  background: none; border: none; cursor: pointer; padding: 4px 8px;
  text-decoration: underline; transition: color 0.15s;
}
.intake-skip:hover { color: var(--text2); }

/* ── GRADUATION CARD (first-mission unlock moment) ─────────── */
.grad-card {
  background: linear-gradient(135deg, rgba(95,242,178,0.08) 0%, rgba(29,230,255,0.06) 100%);
  border: 1px solid rgba(95,242,178,0.3); border-radius: 16px;
  padding: 22px 24px; margin-bottom: 18px; position: relative; text-align: center;
}
.grad-dismiss {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; color: var(--muted);
  font-size: 14px; cursor: pointer; padding: 4px 6px; line-height: 1;
}
.grad-dismiss:hover { color: var(--text2); }
.grad-icon { font-size: 28px; margin-bottom: 8px; }
.grad-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 18px;
  letter-spacing: 2px; color: #5FF2B2; margin-bottom: 6px;
}
.grad-sub {
  font-family: 'Manrope', sans-serif; font-size: 12px;
  color: var(--muted); margin-bottom: 16px; line-height: 1.5;
}
.grad-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.grad-btn {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: 0.5px; padding: 8px 16px; border-radius: 8px;
  cursor: pointer; transition: all 0.15s;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  color: var(--text2);
}
.grad-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.grad-btn-primary {
  background: rgba(95,242,178,0.12); border-color: rgba(95,242,178,0.35);
  color: #5FF2B2;
}
.grad-btn-primary:hover { background: rgba(95,242,178,0.2); }

/* ── ASK BRIDGE PROMPT ─────────────────────────────────────── */
.ask-bridge {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 14px 20px; margin-top: 4px;
}
.ask-bridge-inner {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,47,143,0.06); border: 1px solid rgba(255,47,143,0.2);
  border-radius: 10px; padding: 12px 14px; flex-wrap: wrap;
}
.ask-bridge-text {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 12px;
  color: var(--text2); flex: 1; min-width: 0;
}
.ask-bridge-btn {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: 0.5px; padding: 7px 14px; border-radius: 8px;
  background: rgba(255,47,143,0.14); border: 1px solid rgba(255,47,143,0.35);
  color: var(--pink); cursor: pointer; white-space: nowrap;
  transition: background 0.15s;
}
.ask-bridge-btn:hover { background: rgba(255,47,143,0.22); }
.ask-bridge-close {
  background: none; border: none; color: var(--muted);
  font-size: 13px; cursor: pointer; padding: 2px 4px; flex-shrink: 0;
}
.ask-bridge-close:hover { color: var(--text2); }

.goal-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 99999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.goal-modal-inner { position: relative; background: var(--panel2); border: 1px solid rgba(108,255,141,0.3); border-radius: 20px; padding: 28px; max-width: 480px; width: 90%; }
.gm-x { position: absolute; top: 14px; right: 14px; background: none; border: none; color: rgba(255,255,255,0.4); font-size: 18px; cursor: pointer; line-height: 1; padding: 4px 6px; border-radius: 4px; transition: color .15s; }
.gm-x:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.gm-x:hover { color: #fff; }
.gm-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--green); letter-spacing: 2px; margin-bottom: 8px; }
.gm-sub { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.gm-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.gm-opt { background: rgba(108,255,141,0.06); border: 1px solid rgba(108,255,141,0.18); color: #b8f0c8; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 13px; padding: 12px; border-radius: 10px; cursor: pointer; transition: all .15s; text-align: center; }
.gm-opt:hover { background: rgba(108,255,141,0.16); border-color: var(--green); }
.gm-cancel { background: transparent; border: none; color: var(--muted); font-size: 13px; cursor: pointer; display: block; margin: 8px auto 0; }


/* ── WELCOME ─────────────────────────────────────────────── */
.welcome { padding: 48px 20px 40px; text-align: center; }
.welcome-glow { display: none; }
.welcome::before { display: none; }

/* Wordmark image — replaces CSS text title */
.welcome-title { margin-bottom: 0; }
.welcome-wordmark {
  display: block;
  margin: 0 auto 16px;
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  border-radius: 0;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), filter 0.22s ease;
  filter:
    drop-shadow(0 0 18px rgba(29,230,255,0.35))
    drop-shadow(0 0 50px rgba(29,230,255,0.15));
}
.welcome-wordmark:hover,
.welcome-wordmark:active {
  transform: scale(1.04);
  filter:
    drop-shadow(0 0 28px rgba(29,230,255,0.6))
    drop-shadow(0 0 70px rgba(255,216,77,0.3))
    drop-shadow(0 0 120px rgba(29,230,255,0.2));
}

/* Subtitle — cinematic chrome metallic treatment */
.welcome-sub {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(15px, 2.6vw, 22px);
  letter-spacing: 7px;
  background: linear-gradient(180deg,
    #ffffff    0%,
    #8cf5ff   20%,
    var(--cyan) 48%,
    #0b9ab5   78%,
    #e0faff  100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(29,230,255,0.5));
  margin-bottom: 24px;
}
.welcome-body { font-size: 15px; color: var(--text3); line-height: 1.8; max-width: 560px; margin: 0 auto 24px; }
.welcome-body strong { color: var(--text); font-weight: 600; }
.welcome-body em { color: var(--cyan); font-style: normal; font-weight: 500; }
.welcome-instruction { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 2px; color: var(--yellow); background: rgba(255,216,77,0.06); border: 1px solid rgba(255,216,77,0.2); border-radius: 8px; padding: 10px 20px; display: inline-block; margin-bottom: 24px; }
.welcome-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.w-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 14px;
  cursor: pointer;
  transition: all .2s;
  text-align: left;
}
.w-tile:hover { border-color: var(--pink); background: rgba(255,47,143,0.10); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(255,47,143,0.15); }
.tile-em { font-size: 26px; margin-bottom: 8px; }
.tile-lbl { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 13px; color: var(--cyan); letter-spacing: 0.5px; margin-bottom: 3px; }
.tile-inst { font-size: 11px; color: var(--pink); font-weight: 600; margin-bottom: 4px; }
.tile-hint { font-size: 10px; color: var(--muted); line-height: 1.4; }

/* ── Q BUBBLE ────────────────────────────────────────────── */
.q-wrap { display: flex; justify-content: flex-end; }
.q-bubble {
  background: rgba(255,47,143,0.12);
  border: 1px solid rgba(255,47,143,0.25);
  border-radius: 16px 16px 4px 16px;
  padding: 13px 18px;
  max-width: 72%;
  font-size: 15px;
  color: var(--text2);
  line-height: 1.6;
}
.q-bubble::before { content: 'YOU'; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 2px; color: rgba(255,47,143,0.90); display: block; margin-bottom: 5px; }

/* ── ANSWER CARD ─────────────────────────────────────────── */
.answer-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  position: relative;
}
.answer-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan));
}
/* ── ANSWER CARD HEADER — minimal synthwave reference card ── */
.ans-header {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 28px 28px 20px;
  background: linear-gradient(160deg, rgba(22,14,52,0.9) 0%, rgba(9,8,26,0.92) 100%);
  border-bottom: 1px solid var(--line);
}
.ans-header-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  color: #fff;
  letter-spacing: 3px;
  line-height: 1.05;
  margin-bottom: 9px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.ans-header-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
}
.ans-year-tag {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--yellow);
  letter-spacing: 0.8px;
}
.ans-dot-sep {
  font-size: 12px;
  color: rgba(255,255,255,0.22);
}
.ans-genre-tag {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--yellow);
  opacity: 0.78;
}
.ans-header-meta .type-pill { margin-left: 6px; }
.type-pill { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 1.5px; padding: 4px 12px; border-radius: 6px; }
.pill-movie { background: rgba(255,47,143,0.12); color: var(--pink); border: 1px solid rgba(255,47,143,0.3); }
.pill-music { background: rgba(179,45,255,0.12); color: var(--purple); border: 1px solid rgba(179,45,255,0.3); }
.pill-tv    { background: rgba(29,230,255,0.10); color: var(--cyan); border: 1px solid rgba(29,230,255,0.25); }
/* Single CTA action button */
.ans-cta-btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, rgba(255,45,107,0.13), rgba(122,45,255,0.13));
  border: 1px solid rgba(255,45,107,0.32);
  border-radius: 10px;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  margin-bottom: 16px;
  box-sizing: border-box;
}
.ans-cta-btn:hover {
  background: linear-gradient(135deg, rgba(255,45,107,0.26), rgba(122,45,255,0.26));
  border-color: rgba(255,45,107,0.55);
  transform: translateY(-1px);
}
/* Footer row: voice controls left, wordmark right */
.ans-header-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ans-wordmark {
  height: 17px;
  width: auto;
  opacity: 0.28;
  filter: grayscale(1) brightness(1.4);
  pointer-events: none;
  flex-shrink: 0;
}
.voice-controls { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.voice-play-btn { background: rgba(29,230,255,0.08); border: 1px solid rgba(29,230,255,0.25); color: var(--cyan); border-radius: 8px; padding: 6px 14px; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 1px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.voice-play-btn:hover { background: rgba(29,230,255,0.16); }
.voice-play-btn.playing { background: rgba(255,47,143,0.12); border-color: rgba(255,47,143,0.3); color: var(--pink); }
/* Legacy — unused with new layout but kept for graceful fallback */
.ans-icon { display: none; }
.ans-source { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--text); letter-spacing: 2px; }
.ans-meta { font-family: 'Manrope', sans-serif; font-size: 12px; color: var(--yellow); }

@media (max-width: 600px) {
  .ans-header { padding: 20px 18px 16px; }
  .ans-header-title { font-size: 24px; letter-spacing: 2px; }
  .voice-restart-btn { display: none; }
}
.ans-body { padding: 32px; display: flex; flex-direction: column; gap: 18px; }

/* Section labels */
.slbl { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px; display: block; }
.slbl-cyan   { color: var(--cyan); }
.slbl-pink   { color: var(--pink); }
.slbl-gold   { color: var(--yellow); }
.slbl-purple { color: var(--purple); }

/* Coaching check-in — appears before the 80s story */
.slbl-checkin { color: #5FF2B2; }
.coaching-checkin {
  background: linear-gradient(135deg, rgba(95,242,178,0.08), rgba(29,230,255,0.05));
  border: 1px solid rgba(95,242,178,0.28);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checkin-emotion {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.65;
  font-style: italic;
}
.checkin-question {
  font-size: 16px;
  color: #5FF2B2;
  font-weight: 600;
  line-height: 1.5;
  padding-left: 12px;
  border-left: 2px solid rgba(95,242,178,0.5);
}
.checkin-mirror {
  font-family: 'Permanent Marker', cursive;
  font-size: 18px;
  color: rgba(95,242,178,0.75);
  letter-spacing: 0.02em;
}
.checkin-divider {
  text-align: center;
  color: rgba(255,255,255,0.18);
  font-size: 10px;
  letter-spacing: 0.12em;
  font-family: 'Bebas Neue', sans-serif;
  padding: 2px 0;
}
.checkin-divider span { display: inline-block; }

/* Closing reflection — Voss "That's right" landing */
.closing-reflection {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 4px 4px;
  margin-top: 4px;
}
.closing-reflection-text {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  font-style: italic;
  line-height: 1.7;
  text-align: center;
  letter-spacing: 0.01em;
}

/* Scene setup */
.scene-setup-box { border-left: 3px solid rgba(29,230,255,0.35); padding-left: 16px; }
.scene-setup-text { font-size: 18px; color: var(--text3); line-height: 1.7; font-style: italic; }
.scene-setup-text em { color: var(--text2); font-style: normal; font-weight: 600; }

/* Scene story */
.scene-story-box { background: rgba(255,47,143,0.12); border: 1px solid rgba(255,47,143,0.30); border-radius: 14px; padding: 18px 20px; }
.scene-story-text { font-size: 18px; color: var(--text2); line-height: 1.7; }
.scene-story-text strong { color: var(--pink); font-weight: 700; }

/* The line */
.the-line-box { background: rgba(255,216,77,0.10); border: 1px solid rgba(255,216,77,0.30); border-radius: 14px; padding: 18px 22px; position: relative; overflow: hidden; }
.the-line-box::before { content: '❝'; position: absolute; top: -15px; left: 14px; font-size: 80px; color: rgba(255,216,77,0.08); font-family: Georgia, serif; }
.the-line-quote { font-family: 'Permanent Marker', cursive; font-size: 20px; color: var(--text); line-height: 1.5; position: relative; }
.the-line-attr { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 12px; color: var(--yellow); margin-top: 10px; letter-spacing: 1px; }

/* Music block */
.music-box { background: rgba(179,45,255,0.12); border-left: 3px solid rgba(179,45,255,0.5); border-radius: 0 10px 10px 0; padding: 14px 16px; }
.music-text { font-size: 14px; color: var(--text3); line-height: 1.8; font-style: italic; }
.music-text em { color: var(--purple); font-style: normal; font-weight: 600; }

/* Next block */
.next-box { background: rgba(29,230,255,0.10); border: 1px solid rgba(29,230,255,0.25); border-radius: 14px; padding: 16px 18px; }
.next-text { font-size: 15px; color: var(--text2); line-height: 1.9; }
.next-text em { color: var(--cyan); font-style: normal; font-weight: 700; }

/* Bridge */
.bridge-box { padding: 4px 0; }
.bridge-text { font-size: 18px; color: var(--text2); line-height: 1.7; }
.bridge-text em { color: var(--purple); font-style: normal; font-weight: 600; }
.bridge-text strong { color: var(--text); font-weight: 700; }

/* Rally */
.rally-box {
  background: linear-gradient(135deg, rgba(255,47,143,0.12), rgba(179,45,255,0.08));
  border: 2px solid rgba(255,47,143,0.4);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: visible;
  box-shadow: 0 0 40px rgba(255,47,143,0.15);
}
.rally-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--pink));
  animation: rallyshine 2s linear infinite;
  background-size: 200% 100%;
}
@keyframes rallyshine { 0%{background-position:0%} 100%{background-position:200%} }
.rally-box::after {
  content: '★ RETROLOGIC ★';
  position: absolute; top: 12px; right: 16px;
  font-family: 'Bebas Neue', sans-serif; font-size: 11px; letter-spacing: 3px;
  color: rgba(255,47,143,0.3);
}
.rally-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 4px;
  color: var(--pink);
  text-shadow: 0 0 20px rgba(255,47,143,0.5);
  margin-bottom: 12px;
  display: block;
}
.rally-text { font-size: 17px; color: var(--text2); line-height: 1.9; font-weight: 500; }
.rally-text em { color: #ff88bb; font-style: normal; font-weight: 700; }
.rally-text strong { color: var(--text); font-weight: 700; font-size: 18px; }

.uab-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; gap: 12px;
}
.uab-header .slbl {
  font-size: 15px;
  letter-spacing: 2px;
}
.approved-stamp-img {
  width: 84px; height: 84px; object-fit: contain; flex-shrink: 0;
  transform: rotate(10deg);
  opacity: 0.9;
}

/* Next steps */
.nextsteps-box {
  background: linear-gradient(135deg, rgba(108,255,141,0.08), rgba(29,230,255,0.05));
  border: 2px solid rgba(108,255,141,0.3);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(108,255,141,0.10);
}
.nextsteps-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--green));
  animation: homeworkshine 2s linear infinite;
  background-size: 200% 100%;
}
@keyframes homeworkshine { 0%{background-position:0%} 100%{background-position:200%} }
.nextsteps-box .slbl-gold {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px; letter-spacing: 4px;
  color: var(--green);
  text-shadow: 0 0 16px rgba(108,255,141,0.5);
  margin-bottom: 12px; display: block;
}
.nextsteps-text { font-size: 18px; color: #c8f0d8; line-height: 1.7; font-weight: 500; }
.nextsteps-text strong { color: var(--green); font-weight: 700; }
.nextsteps-text a { color: var(--cyan); font-weight: 700; border-bottom: 1px solid rgba(29,230,255,0.3); text-decoration: none; }
.nextsteps-text a:hover { color: var(--text); }

/* Footer buttons */
.ans-footer { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; background: rgba(255,255,255,0.02); }
.foot-btn { background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 6px 13px; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 1px; cursor: pointer; transition: all .15s; }
.foot-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.share-btn { background: rgba(255,47,143,0.08); border-color: rgba(255,47,143,0.25); color: var(--pink); }
.share-btn:hover { background: rgba(255,47,143,0.18); border-color: var(--pink); }
.rating-row { display: flex; flex-direction: column; gap: 10px; padding: 16px 0 0; border-top: 1px solid var(--line2); margin-top: 6px; width: 100%; }
.rating-label { font-family: 'Courier New', monospace; font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(200,200,232,0.80); margin: 0; }
.rating-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.rate-btn { min-height: 44px; padding: 8px 16px; border-radius: 10px; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: 0.3px; cursor: pointer; transition: all .18s; border: 1.5px solid; white-space: nowrap; }
.rate-love { color: #FF4FD8; background: rgba(255,79,216,0.08); border-color: rgba(255,79,216,0.35); }
.rate-love:hover { background: rgba(255,79,216,0.18); box-shadow: 0 0 18px rgba(255,79,216,0.35); border-color: #FF4FD8; }
.rate-love.selected { background: rgba(255,79,216,0.2); border-color: #FF4FD8; box-shadow: 0 0 22px rgba(255,79,216,0.4); }
.rate-more { color: #16B4D8; background: rgba(22,180,216,0.08); border-color: rgba(22,180,216,0.35); }
.rate-more:hover { background: rgba(22,180,216,0.18); box-shadow: 0 0 18px rgba(22,180,216,0.35); border-color: #16B4D8; }
.rate-more.selected { background: rgba(22,180,216,0.2); border-color: #16B4D8; box-shadow: 0 0 22px rgba(22,180,216,0.4); }
.rate-diff { color: #FFD84D; background: rgba(255,216,77,0.08); border-color: rgba(255,216,77,0.35); }
.rate-diff:hover { background: rgba(255,216,77,0.18); box-shadow: 0 0 18px rgba(255,216,77,0.35); border-color: #FFD84D; }
.rate-diff.selected { background: rgba(255,216,77,0.2); border-color: #FFD84D; box-shadow: 0 0 22px rgba(255,216,77,0.4); }
/* mission card feedback row */
.mc-feedback-row { margin-top: 20px; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,0.08); }
.mc-feedback-label { font-family: 'Courier New', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0 0 10px; }
.mc-feedback-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mc-rate-btn { min-height: 44px; padding: 8px 16px; border-radius: 10px; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: 0.3px; cursor: pointer; transition: all .18s; border: 1.5px solid; white-space: nowrap; }
.mc-rate-love { color: #FF4FD8; background: rgba(255,79,216,0.08); border-color: rgba(255,79,216,0.35); }
.mc-rate-love:hover { background: rgba(255,79,216,0.18); box-shadow: 0 0 18px rgba(255,79,216,0.35); border-color: #FF4FD8; }
.mc-rate-more { color: #16B4D8; background: rgba(22,180,216,0.08); border-color: rgba(22,180,216,0.35); }
.mc-rate-more:hover { background: rgba(22,180,216,0.18); box-shadow: 0 0 18px rgba(22,180,216,0.35); border-color: #16B4D8; }
.mc-rate-diff { color: #FFD84D; background: rgba(255,216,77,0.08); border-color: rgba(255,216,77,0.35); }
.mc-rate-diff:hover { background: rgba(255,216,77,0.18); box-shadow: 0 0 18px rgba(255,216,77,0.35); border-color: #FFD84D; }

/* Follow ups */
.followup-box { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.followup-lbl { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }
.fup-btns { display: flex; gap: 7px; flex-wrap: wrap; }
.fup-btn { background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--text3); border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer; font-family: 'Manrope', sans-serif; line-height: 1.4; transition: all .15s; font-weight: 500; }
.fup-btn:hover { border-color: var(--pink); color: var(--pink); }

/* LOADING */
.loading-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,0.3); }
.ldots { display: flex; align-items: center; gap: 10px; }
.ld { width: 11px; height: 11px; border-radius: 50%; animation: ldb 1.3s ease-in-out infinite; }
.ld:nth-child(1){ background: var(--pink); }
.ld:nth-child(2){ background: var(--purple); animation-delay: .22s; }
.ld:nth-child(3){ background: var(--cyan); animation-delay: .44s; }
@keyframes ldb { 0%,60%,100%{opacity:.2;transform:scale(.7)} 30%{opacity:1;transform:scale(1)} }
.ldtxt { font-family: 'VT323', monospace; font-size: 22px; color: var(--muted); letter-spacing: 1px; }
.ldtxt span { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.loader-mascot-img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; animation: loaderPulse 1.3s ease-in-out infinite; }
@keyframes loaderPulse { 0%,100%{opacity:.55;transform:scale(.92)} 50%{opacity:1;transform:scale(1.04)} }

/* MASCOT MOMENTS */
.mc-pumped-row { display: flex; justify-content: center; margin: 4px 0 14px; }
.mc-pumped-img { width: 84px; height: 84px; object-fit: contain; }
.mc-done-mascot { width: 200px; height: 200px; object-fit: contain; margin: 0 auto 6px; display: block; mix-blend-mode: screen; }
.streak-toast-row { display: flex; align-items: center; gap: 12px; }
.streak-toast-img { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.win-mascot-inline { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; margin-right: 6px; }
.streak-broken-toast-img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }

/* ── CHAT TOGGLE BUTTON ───────────────────────────────────── */
.chat-toggle-btn {
  width: 100%;
  background: rgba(255,47,143,0.06);
  border: none;
  border-top: 1px solid rgba(255,47,143,0.2);
  border-bottom: 1px solid var(--line2);
  color: var(--pink);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  padding: 10px 28px;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.chat-toggle-btn:hover { background: rgba(255,47,143,0.12); }
.chat-toggle-btn.open { background: rgba(255,47,143,0.10); border-bottom-color: transparent; }

/* ── INPUT AREA ───────────────────────────────────────────── */
.input-area {
  background: rgba(5,7,28,0.85);
  border-top: 1px solid var(--line);
  padding: 16px 28px 20px;
  backdrop-filter: blur(8px);
}
.input-label { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 2px; color: var(--yellow); opacity: 0.7; margin-bottom: 10px; }
.input-row { display: flex; gap: 12px; align-items: flex-end; }
.qinput {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  padding: 16px 20px;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  resize: none;
  min-height: 58px;
  max-height: 120px;
  line-height: 1.5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.03), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.qinput:focus { border-color: var(--pink); background: rgba(255,255,255,0.09); box-shadow: 0 0 0 4px rgba(255,45,107,0.15); }
.qinput::placeholder { color: var(--muted); }
@media (max-width: 600px) {
  .qinput { padding: 12px 12px; min-height: 52px; }
}
.sendbtn {
  background: linear-gradient(135deg, var(--pink), #cc1060);
  border: none;
  border-radius: 14px;
  padding: 0 24px;
  height: 52px;
  color: white;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(255,47,143,0.35);
}
.sendbtn:hover { box-shadow: 0 4px 30px rgba(255,47,143,0.5); transform: translateY(-1px); }
.sendbtn:disabled { background: rgba(255,255,255,0.08); box-shadow: none; cursor: not-allowed; color: var(--muted); transform: none; }
@keyframes shakeHint { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-6px)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} }
.shake-hint { animation: shakeHint 0.55s ease; border-color: var(--pink) !important; box-shadow: 0 0 0 2px rgba(255,47,143,0.35) !important; }
.input-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; flex-wrap: wrap; gap: 8px; }
.if-tip { font-size: 11px; color: var(--muted); }
.voice-mini { background: rgba(29,230,255,0.08); border: 1px solid rgba(29,230,255,0.3); color: var(--cyan); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 1px; padding: 5px 12px; border-radius: 8px; cursor: pointer; transition: all .15s; }
.voice-mini:hover { background: rgba(29,230,255,0.16); }
.voice-mini.off { border-color: rgba(255,47,143,0.3); color: rgba(255,47,143,0.7); background: rgba(255,47,143,0.06); }

/* ── MODE SELECTOR ───────────────────────────────────────── */
.mode-selector { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.angle-btn { background: rgba(255,47,143,0.08); border: 1px solid rgba(255,47,143,0.25); color: #ff88bb; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 1px; padding: 5px 12px; border-radius: 8px; cursor: pointer; transition: all .15s; }
.angle-btn:hover { border-color: rgba(255,47,143,0.6); box-shadow: 0 0 12px rgba(255,47,143,0.2); }
.angle-btn:disabled { opacity: 0.4; cursor: default; }
.switch-btn { background: rgba(179,45,255,0.08); border-color: rgba(179,45,255,0.3); color: #cc88ff; }
.switch-btn:hover { border-color: rgba(179,45,255,0.6); box-shadow: 0 0 12px rgba(179,45,255,0.25); }
.angle-hint { font-family: 'Manrope', sans-serif; font-size: 11px; color: var(--muted); font-style: italic; }
.mode-selector-legend { font-family: 'Manrope', sans-serif; font-size: 10.5px; color: var(--muted); margin-top: 2px; flex-basis: 100%; width: 100%; order: 99; }
.mode-selector-legend b { color: var(--text3); font-weight: 700; }

/* ── CHAT NAV ────────────────────────────────────────────── */
.chat-nav { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 20px; background: rgba(255,255,255,0.02); border-top: 1px solid var(--line2); }
.cn-btn { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 1px; color: var(--cyan); background: rgba(29,230,255,0.08); border: 1px solid rgba(29,230,255,0.25); border-radius: 8px; padding: 5px 14px; cursor: pointer; transition: all .15s; }
.cn-btn:hover:not(:disabled) { background: rgba(29,230,255,0.16); }
.cn-btn:disabled { opacity: 0.3; cursor: default; }
.cn-pos { font-family: 'Bebas Neue', sans-serif; font-size: 14px; color: var(--muted); min-width: 50px; text-align: center; }

/* ── STREAK BAR ──────────────────────────────────────────── */
/* ── MIXTAPE STREAK ─────────────────────────────────────────── */
.streak-bar {
  background: rgba(10,8,30,0.7);
  border-top: 1px solid rgba(255,200,60,0.18);
  border-bottom: 1px solid var(--line2);
  padding: 10px 20px;
  margin-top: 16px;
}
.streak-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Cassette shell */
.mixtape-cassette {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,200,60,0.07);
  border: 1px solid rgba(255,200,60,0.22);
  border-radius: 10px; padding: 6px 12px;
  flex-shrink: 0;
}
.mixtape-icon { font-size: 18px; }
.mixtape-count-wrap { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.mixtape-count { font-family: 'Bebas Neue', sans-serif; font-size: 26px; color: #ffc93c; line-height: 1; }
.mixtape-unit  { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 9px; letter-spacing: 2px; color: rgba(255,200,60,0.6); text-transform: uppercase; }

/* Track reel */
.mixtape-reel { display: flex; gap: 3px; align-items: center; }
.mixtape-track {
  width: 8px; height: 8px; border-radius: 2px;
  background: rgba(255,200,60,0.12); border: 1px solid rgba(255,200,60,0.2);
  transition: all .3s;
}
.mixtape-track.filled {
  background: #ffc93c;
  box-shadow: 0 0 5px rgba(255,200,60,0.5);
  border-color: #ffc93c;
}
.mixtape-track.freeze { background: #1de6ff; box-shadow: 0 0 5px rgba(29,230,255,0.5); border-color: #1de6ff; }

.mixtape-msg { font-size: 11px; color: rgba(255,200,60,0.75); font-style: italic; flex: 1; text-align: right; min-width: 0; }

/* Blank Cassette freeze button */
.blank-cassette-wrap { flex-shrink: 0; }
.streak-freeze-btn {
  font-family: 'Manrope', sans-serif; font-weight: 700;
  padding: 5px 11px 6px; border-radius: 9px;
  background: rgba(29,230,255,0.08); border: 1px solid rgba(29,230,255,0.28);
  color: var(--cyan); cursor: pointer; white-space: nowrap;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  transition: background 0.15s; text-align: left;
}
.streak-freeze-btn:hover { background: rgba(29,230,255,0.15); border-color: rgba(29,230,255,0.45); }
.streak-freeze-btn:disabled { opacity: 0.38; cursor: default; }
.sfb-top {
  font-size: 10px; letter-spacing: 1px; font-weight: 800;
  text-transform: uppercase; color: var(--cyan); line-height: 1.2;
}
.sfb-sub {
  font-size: 9px; letter-spacing: 0.2px; font-weight: 600;
  color: rgba(29,230,255,0.55); text-transform: none; line-height: 1.2;
}
.streak-freeze-btn:disabled .sfb-sub { color: rgba(255,255,255,0.25); }

@keyframes flamepulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.18)} }
/* Legacy refs kept for chat overlay compact mode */
.streak-count { font-family: 'Bebas Neue', sans-serif; font-size: 26px; color: #ffc93c; line-height: 1; }
.streak-flame  { font-size: 18px; }
.streak-label  { display: none; }
.streak-dots   { display: none; }
.streak-msg    { display: none; }
.interaction-counter { font-family: 'Bebas Neue', sans-serif; font-size: 16px; color: var(--muted); letter-spacing: 1px; margin-left: auto; }
.interaction-counter.warning { color: #ff8a00; }
.interaction-counter.danger { color: var(--pink); }

/* ── COSMETIC THEMES ─────────────────────────────────────────── */
/* Default theme uses existing :root vars. Theme overrides live here. */
html[data-rl-theme="neon-sunset"] {
  --pink: #ff6e27; --cyan: #ff2f8f; --purple: #ff6e27; --yellow: #ffd84d; --green: #6cff8d;
}
html[data-rl-theme="synthwave-teal"] {
  --pink: #00ffd5; --cyan: #1de6ff; --purple: #00ffd5; --yellow: #ffd84d; --green: #6cff8d;
}
html[data-rl-theme="arcade-gold"] {
  --pink: #ffd84d; --cyan: #ffc93c; --purple: #ffae00; --yellow: #ffd84d; --green: #6cff8d;
}
html[data-rl-theme="laser-purple"] {
  --pink: #d45cff; --cyan: #b32dff; --purple: #d45cff; --yellow: #ffd84d; --green: #6cff8d;
}
html[data-rl-theme="radical-red"] {
  --pink: #ff2020; --cyan: #ff6060; --purple: #ff2020; --yellow: #ffd84d; --green: #6cff8d;
}

/* ── COSMETIC UNLOCK PANEL ───────────────────────────────────── */
.cosmetic-panel {
  background: rgba(14,10,36,0.96);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 24px 20px;
}
.cosmetic-panel-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 18px;
  letter-spacing: 2px; color: var(--yellow); margin-bottom: 4px;
}
.cosmetic-panel-sub {
  font-family: 'Manrope', sans-serif; font-size: 11px;
  color: var(--muted); margin-bottom: 18px;
}
.cosmetic-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.cosmetic-swatch {
  border-radius: 12px; padding: 12px 8px;
  cursor: pointer; border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.15s;
  text-align: center; position: relative;
}
.cosmetic-swatch:hover { transform: scale(1.04); }
.cosmetic-swatch.active { border-color: #fff; }
.cosmetic-swatch.locked { opacity: 0.45; cursor: default; }
.cosmetic-swatch.locked:hover { transform: none; }
.cosmetic-swatch-name {
  font-family: 'Bebas Neue', sans-serif; font-size: 12px;
  letter-spacing: 1px; color: #fff; margin-top: 6px;
}
.cosmetic-swatch-req {
  font-family: 'Manrope', sans-serif; font-size: 9px;
  color: rgba(255,255,255,0.45); margin-top: 2px;
}
.cosmetic-swatch-lock { position: absolute; top: 6px; right: 6px; font-size: 10px; }

/* ── TAPE DECK (nightly content card) ───────────────────────── */
.tape-deck-card {
  background: linear-gradient(135deg, rgba(20,10,50,0.96) 0%, rgba(10,8,30,0.98) 100%);
  border: 1px solid rgba(179,45,255,0.25); border-radius: 16px;
  padding: 22px; margin-bottom: 18px; position: relative;
}
.tape-deck-label {
  font-family: 'Bebas Neue', sans-serif; font-size: 12px;
  letter-spacing: 3px; color: var(--purple); margin-bottom: 6px;
}
.tape-deck-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 20px;
  letter-spacing: 1.5px; color: #fff; margin-bottom: 12px;
}
.tape-deck-body {
  font-family: 'Manrope', sans-serif; font-size: 13px;
  color: var(--text2); line-height: 1.7;
}
.tape-deck-sig {
  font-family: 'Permanent Marker', cursive; font-size: 12px;
  color: var(--purple); margin-top: 14px; opacity: 0.8;
}

/* ── HIGH SCORE SOLO BOARD ───────────────────────────────────── */
.solo-score-board {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; overflow: hidden; margin-top: 16px;
}
.solo-score-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,216,77,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.solo-score-hdr-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 14px;
  letter-spacing: 2px; color: var(--yellow);
}
.solo-score-hdr-reset { font-family: 'Manrope', sans-serif; font-size: 10px; color: var(--muted); }
.solo-score-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.solo-score-row:last-child { border-bottom: none; }
.solo-score-row.current-week { background: rgba(255,216,77,0.06); }
.solo-score-week { font-family: 'Manrope', sans-serif; font-size: 11px; color: var(--muted); flex-shrink: 0; width: 56px; }
.solo-score-bar-wrap { flex: 1; height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.solo-score-bar { height: 100%; border-radius: 3px; background: var(--yellow); transition: width 0.5s; }
.solo-score-xp { font-family: 'Bebas Neue', sans-serif; font-size: 13px; color: var(--yellow); flex-shrink: 0; width: 60px; text-align: right; }

/* ══════════════════════════════════════════════════════════
   LOCKER NOTES — modal, tabs, entry list
   ══════════════════════════════════════════════════════════ */

.ln-overlay {
  position: fixed; inset: 0; z-index: 51000;
  background: rgba(5,7,28,0.88);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px 16px;
  opacity: 0; transition: opacity .22s ease;
}
.ln-overlay.ln-open { opacity: 1; }

.ln-card {
  background: #100c1a;
  border: 1px solid rgba(245,166,35,0.28);
  border-radius: 20px;
  padding: 22px 22px 18px;
  max-width: 460px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.65), 0 0 40px rgba(245,166,35,0.08);
  display: flex; flex-direction: column; gap: 14px;
  transform: translateY(10px); transition: transform .22s ease;
}
.ln-overlay.ln-open .ln-card { transform: translateY(0); }
.ln-card-full { max-width: 520px; }

/* Header */
.ln-hdr {
  display: flex; align-items: flex-start; justify-content: space-between;
}
.ln-hdr-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px; letter-spacing: 2.5px; color: #F5A623;
}
.ln-hdr-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 2px;
}
.ln-close-btn {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45); border-radius: 50%;
  width: 28px; height: 28px; cursor: pointer; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; flex-shrink: 0;
}
.ln-close-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* Tabs */
.ln-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.ln-tab {
  flex: 1; min-width: 120px;
  padding: 8px 12px; border-radius: 8px; cursor: pointer;
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.3px; transition: all .15s;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.4);
}
.ln-tab.ln-tab-active {
  background: rgba(245,166,35,0.12);
  border-color: rgba(245,166,35,0.35);
  color: #F5A623;
}

/* Panels */
.ln-panel { display: none; flex-direction: column; gap: 10px; }
.ln-panel.ln-panel-active { display: flex; }

/* Prompt box */
.ln-prompt-box {
  background: rgba(245,166,35,0.07);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 12px; padding: 14px 16px;
}
.ln-prompt-week {
  font-family: 'Manrope', sans-serif;
  font-size: 9px; font-weight: 800; letter-spacing: 2px;
  color: #F5A623; opacity: 0.8; margin-bottom: 6px;
}
.ln-prompt-text {
  font-family: 'Manrope', sans-serif;
  font-size: 14px; font-weight: 600; color: #fff; line-height: 1.55;
}

/* Free write hint */
.ln-free-hint {
  font-family: 'Manrope', sans-serif;
  font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.5; font-style: italic;
}

/* Textarea */
.ln-textarea {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 12px 14px;
  font-family: 'Manrope', sans-serif; font-size: 13px;
  color: #fff; line-height: 1.6; resize: vertical; min-height: 100px;
  transition: border-color .15s;
  /* iOS: prevent auto-zoom on focus (requires ≥16px) */
  -webkit-text-size-adjust: 100%;
}
.ln-textarea:focus {
  outline: none; border-color: rgba(245,166,35,0.45);
}
.ln-textarea::placeholder { color: rgba(255,255,255,0.25); }

/* Streak badge */
.ln-streak-badge {
  font-family: 'Manrope', sans-serif;
  font-size: 11px; font-weight: 700; color: #F5A623;
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 99px; padding: 4px 12px; align-self: flex-start;
}

/* Submit button */
.ln-submit-btn {
  background: linear-gradient(135deg, #E89B1F, #F5A623);
  border: none; border-radius: 10px; padding: 12px 18px;
  cursor: pointer; font-family: 'Manrope', sans-serif;
  font-weight: 800; font-size: 13px; letter-spacing: 0.5px;
  color: #1a0f00; transition: opacity .15s, transform .15s;
}
.ln-submit-btn:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.ln-submit-btn:disabled { opacity: 0.7; cursor: default; }

/* Entry list */
.ln-list-hdr {
  font-family: 'Manrope', sans-serif;
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  color: rgba(255,255,255,0.25); text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 12px;
}
.ln-list { display: flex; flex-direction: column; gap: 8px; }
.ln-entry-row {
  background: rgba(245,166,35,0.05);
  border: 1px solid rgba(245,166,35,0.15);
  border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.ln-entry-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ln-entry-type {
  font-family: 'Manrope', sans-serif;
  font-size: 11px; font-weight: 700; color: #F5A623;
}
.ln-entry-xp {
  font-family: 'Manrope', sans-serif;
  font-size: 10px; font-weight: 700; color: #F5A623;
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 99px; padding: 1px 7px;
}
.ln-entry-date {
  font-family: 'Manrope', sans-serif;
  font-size: 10px; color: rgba(255,255,255,0.28); margin-left: auto;
  font-family: monospace;
}
.ln-entry-text {
  font-family: 'Manrope', sans-serif;
  font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.55;
  white-space: pre-wrap;
}
.ln-empty {
  text-align: center; padding: 40px 20px;
  font-family: 'Manrope', sans-serif; font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.ln-share-btn {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 8px; padding: 7px 14px;
  background: rgba(29,230,255,0.07); border: 1px solid rgba(29,230,255,0.25);
  border-radius: 20px; cursor: pointer; touch-action: manipulation;
  font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 700;
  color: rgba(29,230,255,0.85); letter-spacing: 0.3px;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.ln-share-btn:hover, .ln-share-btn:active {
  background: rgba(29,230,255,0.14); border-color: rgba(29,230,255,0.5);
  transform: translateY(-1px);
}
.ln-share-nudge {
  display: block; width: 100%; margin-top: 10px;
  text-align: center; border-radius: 10px;
}

/* Footer */
.ln-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 12px;
}
.ln-view-all-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 700;
  color: rgba(245,166,35,0.6); transition: color .15s; padding: 0;
}
.ln-view-all-btn:hover { color: #F5A623; }
.ln-close-footer {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px; padding: 7px 16px; cursor: pointer;
  font-family: 'Manrope', sans-serif; font-size: 12px;
  color: rgba(255,255,255,0.45); transition: all .15s;
}
.ln-close-footer:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ══════════════════════════════════════════════════════════
   RECESS FEATURE — modal, nudge, toast
   ══════════════════════════════════════════════════════════ */

/* Overlay backdrop */
.recess-overlay {
  position: fixed; inset: 0; z-index: 51000;
  background: rgba(5,7,28,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px 16px;
  opacity: 0; transition: opacity .22s ease;
}
.recess-overlay.ro-open { opacity: 1; }

/* Card */
.recess-card {
  background: #0b1410;
  border: 1px solid rgba(0,212,160,0.28);
  border-radius: 20px;
  padding: 24px 24px 20px;
  max-width: 440px; width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 40px rgba(0,212,160,0.1);
  display: flex; flex-direction: column; gap: 12px;
  transform: translateY(10px); transition: transform .22s ease;
}
.recess-overlay.ro-open .recess-card { transform: translateY(0); }

/* Header */
.recess-card-hdr {
  display: flex; align-items: center; justify-content: space-between;
}
.recess-hdr-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px; letter-spacing: 2.5px; color: #00d4a0;
}
.recess-close-btn {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45); border-radius: 50%;
  width: 28px; height: 28px; cursor: pointer; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.recess-close-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* Prompt icon + title */
.recess-prompt-icon { font-size: 44px; line-height: 1; text-align: center; margin: 4px 0; }
.recess-prompt-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; letter-spacing: 2px; color: #fff;
  text-align: center; line-height: 1.1;
}

/* 80s reference */
.recess-ref {
  font-family: 'Manrope', sans-serif;
  font-size: 12px; color: rgba(255,255,255,0.45);
  text-align: center; line-height: 1.5; font-style: italic;
}

/* Action box — the key content */
.recess-action-box {
  background: rgba(0,212,160,0.07);
  border: 1px solid rgba(0,212,160,0.22);
  border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.recess-action-label {
  font-family: 'Manrope', sans-serif;
  font-size: 9px; font-weight: 800; letter-spacing: 2px;
  color: #00d4a0; opacity: 0.8;
}
.recess-action-text {
  font-family: 'Manrope', sans-serif;
  font-size: 14px; font-weight: 600; color: #fff; line-height: 1.5;
}

/* Science toggle */
.recess-sci-toggle {
  background: none; border: none; cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.35);
  padding: 0; align-self: flex-start;
  transition: color .15s;
}
.recess-sci-toggle:hover { color: rgba(255,255,255,0.6); }

.recess-sci-body {
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease;
}
.recess-sci-body.sci-open { max-height: 160px; }
.recess-sci-text {
  font-family: 'Manrope', sans-serif;
  font-size: 12px; color: rgba(255,255,255,0.4);
  line-height: 1.6; padding-top: 6px;
}

/* Footer buttons */
.recess-footer { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.recess-done-btn {
  flex: 1;
  background: linear-gradient(135deg, #00b38a, #00d4a0);
  border: none; border-radius: 10px;
  padding: 11px 16px; cursor: pointer;
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 13px; letter-spacing: 1px; color: #03160f;
  transition: opacity .15s, transform .15s;
  white-space: nowrap;
}
.recess-done-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.recess-done-badge {
  flex: 1; text-align: center;
  font-family: 'Manrope', sans-serif; font-size: 12px;
  color: #00d4a0; font-weight: 700;
}
.recess-next-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 10px 14px;
  cursor: pointer; font-family: 'Manrope', sans-serif;
  font-size: 12px; color: rgba(255,255,255,0.5);
  transition: all .15s; white-space: nowrap;
}
.recess-next-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Nudge toast */
.recess-nudge {
  position: fixed; bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 49000;
  background: #0b1410;
  border: 1px solid rgba(0,212,160,0.3);
  border-radius: 14px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 20px rgba(0,212,160,0.12);
  cursor: pointer; max-width: 300px; width: calc(100vw - 40px);
  opacity: 0; transition: opacity .3s ease, transform .3s ease;
}
.recess-nudge.rn-visible {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.rn-icon { font-size: 22px; flex-shrink: 0; }
.rn-body { flex: 1; }
.rn-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px; letter-spacing: 1.5px; color: #00d4a0;
}
.rn-action {
  font-family: 'Manrope', sans-serif;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.8);
  margin-top: 3px; line-height: 1.4;
}
.rn-tap {
  font-family: 'Manrope', sans-serif;
  font-size: 10px; color: rgba(0,212,160,0.7); margin-top: 4px; font-weight: 600;
}
.rn-dismiss {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.25); font-size: 12px;
  padding: 0 4px; flex-shrink: 0;
  transition: color .15s;
}
.rn-dismiss:hover { color: rgba(255,255,255,0.6); }

/* Completion toast */
.recess-toast {
  position: fixed; bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 53000;
  background: #00b38a; color: #03160f;
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 13px; letter-spacing: 0.5px;
  padding: 11px 22px; border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  opacity: 0; transition: opacity .3s ease, transform .3s ease;
  white-space: nowrap;
}
.recess-toast.rt-show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ── FLOATING ASK FAB ────────────────────────────────────── */
.ask-fab {
  display: block;
  background-image: url('/ask-retrologic-btn.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #d91010;
  border: none;
  border-radius: 22px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .15s, transform .15s, box-shadow .15s;
  margin: 12px auto 8px;
  /* Width fills container; height uses aspect-ratio so image never clips */
  width: min(420px, 96%);
  aspect-ratio: 3 / 1;
  height: auto;
  box-shadow: 0 4px 24px rgba(255,47,143,0.45);
  padding: 0;
  overflow: hidden;
}
.ask-fab:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,47,143,0.6);
}
/* Hide when chat panel or mission is open */
body.ask-panel-open .ask-fab { display: none; }
body.mission-open .ask-fab { display: none; }
body.progress-screen-open .ask-fab { display: none; }

/* When the Programs status bar injects its own "▶ Start Today's Mission" CTA,
   hide the hero card's duplicate Start Mission button */
#pgStatusBar:has(.pg-status-bar) + .dmc-action-row #dashStartMissionBtn { display: none; }

/* ── DASHBOARD PREMIUM TEASER ───────────────────────────────────────────────── */
.dash-premium-teaser {
  margin: 8px 0 0;
  border-radius: 16px;
  border: 1px solid rgba(255,216,77,0.18);
  background: linear-gradient(135deg, rgba(179,45,255,0.06) 0%, rgba(255,47,143,0.06) 100%);
  padding: 18px 18px 20px;
}
.dpt-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.dpt-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #FFD84D;
}
.dpt-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.dpt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dpt-tile {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 14px 14px 16px;
  text-align: left;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  touch-action: manipulation;
}
.dpt-tile:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,216,77,0.3);
}
.dpt-tile:active { transform: scale(0.98); }
.dpt-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dpt-tile-icon { font-size: 24px; line-height: 1; }
.dpt-preview-badge {
  font-size: 8px;
  font-weight: 800;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1.5px;
  color: #FFD84D;
  border: 1px solid rgba(255,216,77,0.4);
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1.5;
}
.dpt-tile-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #fff;
}
.dpt-tile-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255,255,255,0.45);
}
.dpt-tile-cta {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #FF2F8F;
  margin-top: 2px;
}
@media (max-width: 480px) {
  .dpt-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   PROGRESS SCREEN (Merge 5d)
   Full-screen overlay — same slide/fade pattern as chatOverlay
   ══════════════════════════════════════════════════════════════ */
#progressOverlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(5,7,28,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}
.progress-overlay-panel {
  background: #0e0f24;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,240,255,0.2), 0 0 40px rgba(0,240,255,0.08);
  /* clamp only applies on desktop; mobile media query overrides fully */
  width: min(clamp(480px, 70vw, 860px), calc(100% - 32px)); max-width: calc(100% - 32px);
  min-width: 0; /* prevent clamp minimum from breaking mobile */
  height: 92vh; max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden;
  overflow-x: hidden;
  box-sizing: border-box;
  transform: translateY(28px); opacity: 0;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.24s ease;
}
.progress-overlay-panel.panel-open { transform: translateY(0); opacity: 1; }
.progress-panel-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.progress-panel-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 2px;
  color: var(--cyan);
}
.progress-panel-close {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55); font-family: 'Rajdhani', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  padding: 6px 14px; border-radius: 6px; cursor: pointer;
  transition: background .15s, color .15s;
}
.progress-panel-close:hover { background: rgba(255,255,255,0.13); color: #fff; }
.progress-panel-body {
  flex: 1; overflow-y: auto; overflow-x: hidden; padding: 20px 24px 40px;
  display: flex; flex-direction: column; gap: 16px;
}
/* Scrollbar */
.progress-panel-body::-webkit-scrollbar { width: 4px; }
.progress-panel-body::-webkit-scrollbar-track { background: transparent; }
.progress-panel-body::-webkit-scrollbar-thumb { background: rgba(0,240,255,0.35); border-radius: 3px; }

/* ── Cards ─────────────────────────────────────────────── */
.prg-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 18px 20px;
}
.prg-section-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.prg-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px; letter-spacing: 2px; color: rgba(255,255,255,0.7);
}

/* ── 1. Level + XP card ────────────────────────────────── */
.prg-level-card {
  display: flex; align-items: center; gap: 20px;
  border-color: rgba(0,240,255,0.2);
}
.prg-level-ring {
  width: 88px; height: 88px; min-width: 88px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--cyan) 0 3%, #1e2240 3%);
  box-shadow: 0 0 20px rgba(0,240,255,0.2);
  flex-shrink: 0;
}
.prg-ring-inner {
  width: 70px; height: 70px; border-radius: 50%;
  background: #0e0f24;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.prg-ring-label {
  font-family: 'Rajdhani', sans-serif; font-size: 9px;
  letter-spacing: 2px; color: var(--muted); line-height: 1;
}
.prg-ring-num {
  font-family: 'Bebas Neue', sans-serif; font-size: 30px;
  color: var(--cyan); line-height: 1;
  text-shadow: 0 0 12px rgba(0,240,255,0.6);
}
.prg-xp-info { flex: 1; min-width: 0; }
.prg-xp-line {
  font-family: 'Rajdhani', sans-serif; font-size: 15px;
  color: var(--text); margin-bottom: 8px;
}
.prg-xp-of { color: var(--muted); font-size: 13px; }
.prg-xp-bar {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.07); overflow: hidden; margin-bottom: 6px;
}
.prg-xp-bar i { display: block; height: 100%; border-radius: 3px; background: var(--cyan); transition: width .4s; }
.prg-xp-next {
  font-family: 'Rajdhani', sans-serif; font-size: 11px;
  letter-spacing: 1px; color: var(--muted);
}
.prg-total-xp {
  font-family: 'Rajdhani', sans-serif; font-size: 12px;
  color: rgba(255,255,255,0.4); margin-top: 8px;
}

/* ── 2. Streak card ────────────────────────────────────── */
.prg-streak-card { border-color: rgba(255,216,77,0.15); }
.prg-streak-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.prg-streak-main { display: flex; align-items: center; gap: 10px; }
.prg-streak-icon { font-size: 24px; }
.prg-streak-num {
  font-family: 'Bebas Neue', sans-serif; font-size: 42px;
  color: var(--yellow); line-height: 1;
  text-shadow: 0 0 16px rgba(255,216,77,0.4);
}
.prg-streak-lbl {
  font-family: 'Rajdhani', sans-serif; font-size: 11px;
  letter-spacing: 2px; color: var(--muted); align-self: flex-end; padding-bottom: 6px;
}
.prg-streak-msg {
  font-family: 'VT323', monospace; font-size: 14px;
  color: var(--muted); letter-spacing: 1px;
}
/* Cassette wrap sits at full width in streak card */
.prg-cassette-wrap { width: 100%; }
.prg-cassette-wrap .streak-freeze-btn { width: 100%; }

/* ── 4. Weekly Recap card ──────────────────────────────── */
.prg-weekly-card { border-color: rgba(255,79,216,0.15); }
.prg-resets-lbl {
  font-family: 'VT323', monospace; font-size: 12px;
  color: var(--muted); letter-spacing: 1px;
}
.prg-weekly-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.prg-weekly-stat {
  background: rgba(255,255,255,0.04); border-radius: 8px;
  padding: 14px 12px; text-align: center;
}
.prg-weekly-val {
  font-family: 'Bebas Neue', sans-serif; font-size: 26px;
  color: var(--cyan); line-height: 1; margin-bottom: 4px;
}
.prg-weekly-lbl {
  font-family: 'Rajdhani', sans-serif; font-size: 10px;
  letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase;
}

/* ── 5. Badges card ────────────────────────────────────── */
.prg-badges-card { border-color: rgba(255,216,77,0.15); }
.prg-badge-tally {
  font-family: 'Bebas Neue', sans-serif; font-size: 16px;
  letter-spacing: 2px; color: var(--yellow);
}
.prg-badge-mini-row {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px;
}
.prg-badge-pip {
  font-size: 22px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  cursor: default;
}
.prg-pip-earned {
  background: rgba(255,216,77,0.1); border: 1px solid rgba(255,216,77,0.25);
}
.prg-pip-locked {
  font-size: 18px; color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
}
.prg-locker-btn {
  display: block; width: 100%; padding: 12px;
  background: linear-gradient(135deg, rgba(255,216,77,0.12), rgba(255,216,77,0.06));
  border: 1px solid rgba(255,216,77,0.3); border-radius: 8px;
  color: var(--yellow); font-family: 'Bebas Neue', sans-serif;
  font-size: 14px; letter-spacing: 2px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.prg-locker-btn:hover { background: rgba(255,216,77,0.2); border-color: rgba(255,216,77,0.5); }

/* ── Mobile ────────────────────────────────────────────── */
@media (max-width: 680px) {
  #progressOverlay { padding: 0; align-items: stretch; }
  .progress-overlay-panel {
    width: 100%; max-width: 100vw; min-width: 0; border-radius: 0;
    height: 100dvh; max-height: 100dvh;
  }
  /* Tighter horizontal padding so the 2-col grid never clips on narrow phones */
  .progress-panel-body { padding: 16px 10px 40px; }
  .prg-level-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .prg-level-ring { width: 72px; height: 72px; min-width: 72px; }
  .prg-ring-inner { width: 56px; height: 56px; }
  .prg-ring-num { font-size: 24px; }
  .prg-weekly-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  /* Storyline cards: tighter on mobile so they fit 2-col */
  .slp-card { padding: 12px 10px 10px; }
  .slp-cat-name { font-size: 20px; }
  .slp-level-badge { font-size: 10px; padding: 2px 8px; }
  .slp-xp-label { font-size: 8px; }
}
/* Single-column storylines on very narrow screens (< 400px) */
@media (max-width: 399px) {
  .slp-grid { grid-template-columns: 1fr; }
}

/* ── GUIDED MISSION 1 FOCUS MODE ──────────────────────────── */
/* Hide the hamburger + topbar brand during first-run mission focus */
body.mission-first-run .atb-hamburger { display: none !important; }
body.mission-first-run .app-sidebar   { display: none !important; }

/* Guide strip shown at the top of the mission card for gate-0 users */
.mc-guide-strip {
  background: linear-gradient(135deg, rgba(95,242,178,0.12), rgba(29,230,255,0.10));
  border: 1px solid rgba(95,242,178,0.28);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.mc-guide-icon { font-size: 22px; flex-shrink: 0; line-height: 1.2; }
.mc-guide-body { flex: 1; min-width: 0; }
.mc-guide-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #5FF2B2;
  margin: 0 0 3px;
}
.mc-guide-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  line-height: 1.45;
  margin: 0;
}
.mc-guide-steps {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.mc-guide-step {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .05em;
}
.mc-guide-step.done  { background: rgba(95,242,178,0.2);  color: #5FF2B2; border: 1px solid rgba(95,242,178,0.4); }
.mc-guide-step.now   { background: rgba(255,138,61,0.2);  color: #FF8A3D; border: 1px solid rgba(255,138,61,0.45); }
.mc-guide-step.later { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.12); }
.mc-guide-step-arr   { color: rgba(255,255,255,0.25); font-size: 10px; }

/* First-run post-completion nudge card */
.mc-first-run-finish {
  margin-top: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255,79,216,0.1), rgba(255,138,61,0.08));
  border: 1px solid rgba(255,79,216,0.3);
  border-radius: 12px;
  text-align: center;
}
.mc-first-run-finish-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #FF4FD8;
  margin: 0 0 4px;
}
.mc-first-run-finish-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 12px;
  line-height: 1.45;
}
.mc-first-run-log-btn {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: linear-gradient(135deg, #FF8A3D, #FF4FD8);
  color: #fff;
  font-family: 'Bungee', sans-serif;
  font-size: 14px;
  letter-spacing: .06em;
  transition: opacity .2s;
}
.mc-first-run-log-btn:hover { opacity: .88; }
/* Hide FAB on landing page (appShell hidden) — the button itself is inside appShell so it inherits display:none */

/* ── DAILY WISDOM — popup trigger bar ────────────────────── */
.daily-wisdom {
  background: rgba(29,230,255,0.04);
  border-top: 1px solid rgba(29,230,255,0.15);
  border-bottom: 1px solid var(--line);
}
/* Slim trigger button — full width, one line tall */
.dw-spark-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 22px;
  background: none; border: none; cursor: pointer;
  user-select: none; text-align: left;
  transition: background .15s;
}
.dw-spark-btn:hover { background: rgba(29,230,255,0.07); }
.dw-icon { font-size: 18px; flex-shrink: 0; }
.dw-spark-label { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 2px; color: var(--cyan); text-transform: uppercase; opacity: 0.9; }
.dw-spark-hint { font-family: 'Manrope', sans-serif; font-size: 10px; color: var(--muted); margin-left: auto; flex-shrink: 0; }
/* Popup overlay */
.dw-popup {
  display: none;
  position: fixed; inset: 0; z-index: 52000;
  background: rgba(5,7,28,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 24px 16px;
}
.dw-popup.dw-open { display: flex; }
.dw-popup-card {
  background: #0e0f24;
  border: 1px solid rgba(29,230,255,0.3);
  border-radius: 18px;
  padding: 24px 26px 22px;
  max-width: 480px; width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 40px rgba(29,230,255,0.12);
  display: flex; flex-direction: column; gap: 12px;
}
.dw-popup-hdr {
  display: flex; align-items: center; gap: 10px; margin-bottom: 4px;
}
.dw-popup-icon { font-size: 22px; flex-shrink: 0; }
.dw-popup-title { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 2px; color: var(--cyan); flex: 1; }
.dw-popup-close {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted); border-radius: 50%; width: 30px; height: 30px;
  cursor: pointer; font-size: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.dw-popup-close:hover { background: rgba(255,255,255,0.14); color: #fff; }
.dw-quote { font-family: 'Permanent Marker', cursive; font-size: 15px; color: var(--text); line-height: 1.5; }
.dw-source { font-family: 'VT323', monospace; font-size: 14px; color: var(--cyan); letter-spacing: 1px; opacity: 0.65; }
.dw-ask-btn { align-self: flex-start; background: rgba(29,230,255,0.16); border: 2px solid var(--cyan); color: var(--cyan); font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 13px; letter-spacing: 1px; padding: 9px 18px; border-radius: 10px; cursor: pointer; white-space: nowrap; transition: all .15s; box-shadow: 0 0 14px rgba(29,230,255,0.25); margin-top: 4px; }
.dw-ask-btn:hover { background: rgba(29,230,255,0.28); box-shadow: 0 0 20px rgba(29,230,255,0.4); transform: translateY(-1px); }

/* ── WEEKLY FEATURE (hidden from main, preserved for JS) ─── */
.weekly-feature { display: none; }
.wf-btn { display: none; }

/* ── STATS PANEL ─────────────────────────────────────────── */
.stats-panel { position: fixed; inset: 0; background: rgba(5,7,28,0.97); z-index: 99990; overflow-y: auto; backdrop-filter: blur(12px); }
/* ── Storylines Panel ── */
.slp-intro {
  font-family: 'Manrope', sans-serif; font-size: 13px; color: var(--muted);
  margin: 0 0 24px; line-height: 1.55;
}
.slp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 600px) {
  .slp-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .slp-cat-name { font-size: 20px; }
  .slp-card { padding: 14px 14px 12px; }
}
.slp-card {
  border-radius: 14px; padding: 18px 18px 16px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  /* Prevents grid item from overflowing its column on narrow screens */
  min-width: 0; box-sizing: border-box; overflow: hidden;
}
.slp-card:hover { transform: translateY(-2px); }
.slp-card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slp-cat-name {
  font-family: 'Barlow Condensed', 'Bebas Neue', sans-serif;
  font-size: 26px; font-weight: 900; letter-spacing: 1px; line-height: 1;
}
.slp-level-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  padding: 3px 12px; border-radius: 99px; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5); white-space: nowrap;
}
.slp-xp-label {
  font-family: 'Manrope', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: 0.5px; color: var(--muted); text-transform: uppercase;
}
.slp-bar-wrap {
  width: 100%; height: 6px; background: rgba(255,255,255,0.08);
  border-radius: 99px; overflow: hidden;
}
.slp-bar-fill {
  height: 100%; border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.34,1.2,0.64,1);
}
.slp-stats-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.slp-wins {
  font-family: 'Manrope', sans-serif; font-size: 11px; color: var(--muted);
  font-weight: 600;
}
.slp-ask-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 6px; border: none; cursor: pointer;
  background: rgba(255,255,255,0.09); color: var(--text);
  transition: background 0.15s ease;
}
.slp-ask-btn:hover { background: rgba(255,255,255,0.18); }

.sp-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.sp-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--yellow); letter-spacing: 3px; }
.sp-close { background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: var(--muted); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.sp-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.sp-body { padding: 28px; }
.sp-stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 32px; }
.sp-stat { background: rgba(255,216,77,0.05); border: 1px solid rgba(255,216,77,0.15); border-radius: 16px; padding: 18px; text-align: center; }
.sp-stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 48px; color: var(--yellow); line-height: 1; }
.sp-stat-label { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; font-family: 'Manrope', sans-serif; font-weight: 700; }
.sp-badges-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; margin-bottom: 14px; }
.sp-programs-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; margin-top: 32px; margin-bottom: 8px; }
.sp-programs-sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.sp-programs-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.badge-card { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; transition: all .2s; }
.badge-card.earned { border-color: var(--yellow); background: rgba(255,216,77,0.06); }
.badge-card.locked { opacity: 0.3; filter: grayscale(1); }
.badge-emoji { font-size: 32px; margin-bottom: 6px; }
.badge-name { font-size: 12px; font-weight: 600; color: var(--text2); margin-bottom: 3px; }
.badge-desc { font-size: 10px; color: var(--muted); line-height: 1.4; }

/* ── PROGRAMS BAR (legacy — kept for JS, hidden) ─────────── */
.programs-bar { display: none; }
.pb-btn { background: rgba(179,45,255,0.08); border: 1px solid rgba(179,45,255,0.25); color: var(--purple); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 1px; padding: 7px 14px; border-radius: 8px; cursor: pointer; transition: all .15s; }
.pb-btn:hover { background: rgba(179,45,255,0.18); border-color: var(--purple); box-shadow: 0 0 10px rgba(179,45,255,0.3); }
.pb-btn-done { background: rgba(95,242,178,0.08) !important; border-color: rgba(95,242,178,0.3) !important; color: #5FF2B2 !important; }
.pb-btn-done:hover { background: rgba(95,242,178,0.16) !important; border-color: #5FF2B2 !important; box-shadow: 0 0 10px rgba(95,242,178,0.25) !important; }
.pb-btn-replay { opacity: 0.7; }
.pb-btn-replay:hover { opacity: 1; }
.pg-all-caught-up { background: linear-gradient(135deg, rgba(255,216,77,0.05), rgba(95,242,178,0.03)); border: 1px solid rgba(255,216,77,0.2); border-radius: 16px; padding: 22px 18px 18px; text-align: center; margin-bottom: 8px; }
.pg-acu-medal { font-size: 40px; margin-bottom: 10px; }
.pg-acu-headline { font-family: monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.22em; color: #FFD84D; text-transform: uppercase; margin-bottom: 10px; }
.pg-acu-body { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.65; margin-bottom: 16px; }
.pg-acu-divider { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin-bottom: 14px; }
.pg-acu-s2-label { font-family: monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.15em; color: #5FF2B2; text-transform: uppercase; margin-bottom: 6px; }
.pg-acu-s2-body { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.6; margin-bottom: 14px; }
.pg-acu-replay-hint { font-size: 11px; color: rgba(255,255,255,0.3); margin-bottom: 14px; }
.badge-more-coming { grid-column: 1 / -1; border-top: 1px solid rgba(255,216,77,0.12); padding-top: 14px; margin-top: 4px; text-align: center; }
.badge-more-label { font-family: monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.15em; color: #5FF2B2; text-transform: uppercase; margin-bottom: 5px; }
.badge-more-sub { font-size: 12px; color: rgba(255,255,255,0.28); }

/* ── OUTSIDE ADVENTURES — real-world activity badges ───────── */
.sp-badges-hint { font-size: 11px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
.activity-badges { display: flex; flex-direction: column; gap: 10px; }
.ab-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  grid-template-rows: auto auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: start;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color .2s;
}
.ab-card--claimed {
  border-color: rgba(95,242,178,0.35);
  background: rgba(95,242,178,0.05);
}
.ab-emoji {
  grid-column: 1;
  grid-row: 1 / 3;
  font-size: 30px;
  line-height: 1;
  padding-top: 2px;
  text-align: center;
}
.ab-subtitle {
  grid-column: 2;
  grid-row: 1;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--yellow);
  text-transform: uppercase;
}
.ab-desc {
  grid-column: 2;
  grid-row: 2;
  font-size: 13px;
  color: rgba(255,255,255,0.88);
}
.ab-flavor {
  grid-column: 1 / 3;
  grid-row: 3;
  font-size: 11px;
  font-style: italic;
  color: rgba(255,255,255,0.60);
  line-height: 1.5;
  margin-top: 6px;
}
.ab-claim-btn {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  background: rgba(255,216,77,0.12);
  border: 1px solid rgba(255,216,77,0.3);
  border-radius: 8px;
  color: var(--yellow);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.ab-claim-btn:hover { background: rgba(255,216,77,0.22); border-color: rgba(255,216,77,0.55); }
.ab-earned-lbl {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #5FF2B2;
  white-space: nowrap;
}

/* ── MISSION CARD ─────────────────────────────────────────── */
/* ── MISSION CARD SHELL ──────────────────────────────────── */
#missionContainer { width: 100%; display: none; padding: 48px 24px; box-sizing: border-box; }
.mc-shell {
  max-width: 1200px; margin: 0 auto; position: relative;
  display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start;
}
.mc-close {
  position: fixed; top: 20px; right: 24px; z-index: 10;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; width: 38px; height: 38px;
  color: var(--muted); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.mc-close:hover { color: var(--text); background: rgba(255,255,255,0.15); }

/* ── HERO ART PANEL ──────────────────────────────────────── */
.mc-hero-art {
  position: sticky; top: 32px; width: 280px; min-height: 320px;
  border-radius: 0; border: none;
  background: transparent;
  box-shadow: none;
}
.logo-panel {
  background-color: #0D0D1A;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logo-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.logo-overlay img {
  max-width: 90vw; max-height: 90vh; object-fit: contain;
}
.logo-overlay-close {
  position: fixed; top: 20px; right: 24px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%; width: 42px; height: 42px;
  color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.logo-overlay-close:hover { background: rgba(255,255,255,0.22); }
.mc-sun {
  width: 220px; height: 220px; border-radius: 50%;
  margin: 70px auto 0;
  background: linear-gradient(180deg, #ffc83d, #ff3f8e);
  box-shadow: 0 0 80px rgba(255,63,142,0.45);
  position: relative; overflow: hidden;
}
.mc-sun::after {
  content: ''; position: absolute; left: 0; right: 0;
  top: 50%; height: 56%;
  background: repeating-linear-gradient(
    0deg, #0d0824 0px, #0d0824 4px, transparent 4px, transparent 10px
  );
}
.mc-grid-floor {
  position: absolute; left: -20%; right: -20%; bottom: -60px; height: 310px;
  background:
    linear-gradient(rgba(38,231,255,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,63,142,0.24) 1px, transparent 1px);
  background-size: 36px 36px;
  transform: perspective(320px) rotateX(62deg);
  box-shadow: inset 0 60px 90px rgba(255,63,142,0.16);
}
.mc-rad-badge {
  position: absolute; left: 28px; right: 28px; bottom: 34px;
  padding: 24px; border-radius: 24px;
  background: rgba(11,13,38,0.74); border: 1px solid rgba(255,63,142,0.5);
  color: var(--pink); font-family: 'Bebas Neue', sans-serif;
  font-size: 54px; letter-spacing: 2px; text-align: center;
  text-shadow: 0 0 30px rgba(255,63,142,0.5);
}

/* ── CONTENT CARD ────────────────────────────────────────── */
.mc-content-card {
  border-radius: 34px; padding: 42px;
  background: rgba(24,27,70,0.92); border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 28px 90px rgba(0,0,0,0.35);
}
.mc-kicker {
  margin: 0 0 12px; font-size: 12px; font-weight: 800;
  letter-spacing: 1.6px; text-transform: uppercase; color: rgba(200,200,232,0.80);
}
.mc-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 6vw, 68px); line-height: 0.92;
  letter-spacing: 1px; color: var(--text); margin: 0 0 24px;
}
.mc-memory-trigger {
  margin: 0 0 28px;
  padding: 16px 20px;
  border-left: 3px solid rgba(199,200,232,0.25);
  background: rgba(255,255,255,0.03);
  border-radius: 0 10px 10px 0;
}
.mc-memory-label {
  display: block;
  font-family: 'Courier New', monospace; font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 6px;
}
.mc-memory-text {
  font-style: italic; font-size: 16px; line-height: 1.6;
  color: rgba(199,200,232,0.65); margin: 0;
  font-family: 'Manrope', sans-serif;
}
.mc-label {
  margin: 0 0 10px; font-size: 12px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
}
.mc-pink { color: var(--pink); }
.mc-cyan { color: var(--cyan); }
.mc-gold { color: var(--yellow); }

/* ── LESSON BLOCKS ───────────────────────────────────────── */
.mc-lesson-block { padding: 28px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.mc-lesson-block:first-of-type { border-top: none; padding-top: 0; }
.mc-psych-block {
  background: linear-gradient(90deg, rgba(38,231,255,0.05), transparent);
  margin-inline: -18px; padding-inline: 18px; border-radius: 22px;
}
.mc-ref { font-size: 20px; font-weight: 800; color: var(--text); margin: 0 0 8px; }
.mc-body-text { font-size: 17px; line-height: 1.65; color: rgba(199,200,232,0.9); margin: 0; }
.mc-source-links { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mc-source-btn { display: inline-flex; align-items: center; gap: 5px; font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--pink); border: 1px solid rgba(255,47,143,0.35); background: rgba(255,47,143,0.06); padding: 6px 14px; border-radius: 8px; transition: background .15s; }
.mc-source-btn:hover { background: rgba(255,47,143,0.16); }

/* ── MISSION BLOCK ───────────────────────────────────────── */
.mc-mission-block {
  margin-top: 24px; padding: 28px; border-radius: 26px;
  background: rgba(16,19,58,0.9); border: 1px solid rgba(255,200,61,0.25);
}
.mc-mission-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mc-track-pill {
  padding: 6px 14px; border-radius: 999px;
  color: var(--yellow); background: rgba(255,200,61,0.1);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
}
.mc-actions { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mc-check {
  width: 100%; min-height: 62px;
  display: grid; grid-template-columns: 34px 1fr auto;
  align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid rgba(255,200,61,0.4); border-radius: 18px;
  background: rgba(255,255,255,0.04); cursor: pointer; text-align: left;
  color: var(--text); font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 600;
  transition: all .15s;
}
.mc-check:hover { transform: translateY(-2px); border-color: var(--yellow); box-shadow: 0 10px 28px rgba(255,200,61,0.12); }
.mc-check.is-checked { border-color: var(--yellow); background: rgba(255,200,61,0.08); }
.mc-checkbox {
  width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,200,61,0.15); border: 1.5px solid rgba(255,200,61,0.5);
  font-size: 13px; font-weight: 900; color: var(--yellow);
}
.mc-check.is-checked .mc-checkbox { background: var(--yellow); color: #1a1038; border-color: var(--yellow); }
.mc-action-label { flex: 1; font-size: 16px; }
.mc-mins { font-size: 12px; color: var(--yellow); font-weight: 800; white-space: nowrap; }

/* ── FREEZE FRAME ────────────────────────────────────────── */
.mc-freeze-frame {
  margin-top: 28px; padding: 26px; border-radius: 22px;
  background: rgba(34,38,93,0.8); border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid #00E5FF;
}
.mc-freeze-label {
  font-size: 11px; font-weight: 800; letter-spacing: 1.4px;
  text-transform: uppercase; color: rgba(200,200,232,0.5); margin-bottom: 10px;
}
.mc-freeze-quote {
  margin: 0; font-size: 22px; line-height: 1.45;
  font-weight: 700; font-style: italic; color: var(--text);
}

/* ── REWARD ROW ──────────────────────────────────────────── */
.mc-reward-row {
  margin-top: 18px; padding: 16px 22px; border-radius: 18px;
  background: rgba(255,200,61,0.1);
}
.mc-reward-badge {
  color: var(--yellow); font-weight: 900; font-size: 17px;
  font-family: 'Rajdhani', sans-serif; letter-spacing: 0.5px;
}

/* ── COMPLETE + ACTION BUTTONS ───────────────────────────── */
.mc-complete-btn {
  width: 100%; margin-top: 20px; min-height: 56px;
  background: linear-gradient(135deg, var(--pink), #ff7a3d);
  color: #fff; border: none; border-radius: 16px;
  font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 900;
  letter-spacing: 0.5px; cursor: pointer;
  box-shadow: 0 16px 38px rgba(255,63,142,0.28);
  transition: opacity .15s, transform .1s;
}
.mc-complete-btn:disabled { background: rgba(255,255,255,0.08); color: var(--muted); cursor: not-allowed; box-shadow: none; }
.mc-complete-btn:not(:disabled):hover { opacity: 0.88; }
.mc-complete-btn:not(:disabled):active { transform: scale(0.99); }
.mc-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.mc-btn-secondary {
  min-height: 52px; border-radius: 16px; font-family: 'Manrope', sans-serif;
  font-weight: 900; font-size: 13px; cursor: pointer;
  color: var(--cyan); background: rgba(38,231,255,0.08);
  border: 1px solid rgba(38,231,255,0.36); transition: background .15s;
}
.mc-btn-secondary:hover { background: rgba(38,231,255,0.15); }
.mc-actions-row--stacked {
  flex-direction: column !important;
  gap: 8px !important;
}
.mc-btn-ask-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  height: auto;
  background-image: url('/ask-retrologic-btn.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #d91010;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(255,47,143,0.4);
  transition: opacity .15s, transform .15s, box-shadow .15s;
}
.mc-btn-ask-img:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,47,143,0.55);
}
.mc-btn-ghost {
  min-height: 52px; border-radius: 16px; font-family: 'Manrope', sans-serif;
  font-weight: 900; font-size: 13px; cursor: pointer;
  color: var(--pink); background: transparent;
  border: 1px solid rgba(255,63,142,0.36); transition: background .15s;
}
.mc-btn-ghost:hover { background: rgba(255,63,142,0.08); }
.mc-result { margin-top: 16px; padding: 16px 22px; border-radius: 16px; background: rgba(255,200,61,0.08); }
.mc-xp { color: var(--yellow); font-weight: 900; font-size: 17px; font-family: 'Rajdhani', sans-serif; }
.mc-science-note { font-size: 13px; color: rgba(160,200,255,0.85); margin: 10px 0 0; font-style: italic; line-height: 1.5; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  #missionContainer { padding: 18px 18px 100px; }
  .mc-shell { grid-template-columns: 1fr; }
  .mc-hero-art { position: relative; top: 0; height: 260px; margin: 0 auto; width: 100%; }
  .mc-sun { width: 140px; height: 140px; margin-top: 30px; }
  .mc-rad-badge { font-size: 34px; padding: 14px; }
  .mc-content-card { padding: 26px; border-radius: 26px; }
  .mc-title { font-size: 38px; }
  .mc-kicker { text-align: center; }
  .mc-actions-row { grid-template-columns: 1fr; }
}
.mc-source-links { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* ── MISC UTILS ──────────────────────────────────────────── */
.voice-restart-btn { background: rgba(29,230,255,0.06); border: 1px solid rgba(29,230,255,0.2); color: var(--cyan); border-radius: 8px; padding: 6px 12px; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 1px; cursor: pointer; transition: all .15s; margin-left: 6px; white-space: nowrap; }
.voice-restart-btn:hover { background: rgba(29,230,255,0.14); }
/* ── COLLAPSIBLE ANSWER SECTIONS ────────────────── */
.collapsible-section { cursor: pointer; position: relative; }
.collapse-header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  user-select: none;
}
.collapse-header:hover { opacity: 0.85; }
.collapse-chevron {
  font-size: 10px; color: rgba(255,255,255,0.45);
  font-family: monospace; flex-shrink: 0;
  transition: transform 0.3s ease;
  display: inline-block;
}
.collapsible-section.collapsed .collapse-chevron { transform: rotate(-90deg); }
.collapse-body {
  overflow: hidden;
  max-height: 1000px;
  opacity: 1;
  transition: max-height 0.38s ease, opacity 0.28s ease;
}
.collapsible-section.collapsed .collapse-body { max-height: 0; opacity: 0; }
/* Full-response expand button — wraps the entire narrative below the coaching check-in */
.full-response-collapse > .collapse-body { max-height: 8000px; }
.full-response-hdr {
  margin-top: 10px; padding: 9px 14px;
  background: rgba(29,230,255,0.05);
  border: 1px solid rgba(29,230,255,0.22);
  border-radius: 8px;
  color: rgba(29,230,255,0.72);
  font-size: 11px; font-family: monospace; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.full-response-hdr:hover { background: rgba(29,230,255,0.10); border-color: rgba(29,230,255,0.42); color: var(--cyan); }

.tappable-section { cursor: pointer; position: relative; transition: box-shadow .15s; }
.tappable-section:hover { box-shadow: 0 0 0 2px rgba(29,230,255,0.25); border-radius: 10px; }

/* Shared "tap to hear" hint pill — absolutely positioned inside .chat-overlay-panel, never overlaps content */
.tap-hint-pill {
  position: absolute;
  top: 52px; right: 14px;
  background: rgba(14,15,36,0.93);
  color: var(--cyan);
  border: 1px solid rgba(29,230,255,0.35);
  font-family: 'Manrope', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 4px;
  white-space: nowrap; pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.tap-hint-pill.visible { opacity: 0.88; }
.section-speaking { box-shadow: 0 0 0 2px rgba(29,230,255,0.55) !important; }
.accuracy-note { font-size: 11px; color: var(--muted); font-style: italic; padding: 8px 24px; border-top: 1px solid var(--line); text-align: center; }

/* ── YT BAR ──────────────────────────────────────────────── */
.yt-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line2); }
.yt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-decoration: none; text-transform: uppercase; transition: all .2s; flex: 1; min-width: 180px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.yt-btn:hover { transform: translateY(-2px); }
.yt-song { background: linear-gradient(135deg, #cc0000, #880000); color: var(--white); border: 2px solid #ff3333; }
.yt-song:hover { box-shadow: 0 6px 25px rgba(255,0,0,0.4); }
.yt-movie { background: var(--panel); color: var(--text2); border: 2px solid rgba(255,255,255,0.15); }
.yt-movie:hover { box-shadow: 0 6px 25px rgba(100,100,255,0.25); border-color: rgba(179,45,255,0.5); }

/* ── BACK TO TOP / RETURN TO MISSION ─────────────────────── */
#backToTopBtn { position: fixed; bottom: 22px; right: 22px; z-index: 9999; width: 38px; height: 38px; border-radius: 50%; background: rgba(29,230,255,0.10); border: 1px solid rgba(29,230,255,0.4); color: var(--cyan); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 10px rgba(29,230,255,0.2); transition: background .15s; }
#backToTopBtn:hover { background: rgba(29,230,255,0.22); }
/* ── BACK TO MISSION BAR ─────────────────────────────────────
   This bar lives IN the normal document flow inside .chat-overlay-panel,
   between the cop-header and the catbar. Showing it pushes everything
   below it down — it can never overlap the catbar, input, or anything else.
   No position:fixed, no pixel offsets, no z-index battles. */
#returnToMissionBar {
  background: rgba(255,47,143,0.08);
  border-bottom: 1px solid rgba(255,47,143,0.25);
  padding: 6px 14px;
  flex-shrink: 0;
}
#returnToMissionBtn {
  background: transparent;
  border: 1px solid rgba(255,47,143,0.5);
  color: var(--pink);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
#returnToMissionBtn:hover { background: rgba(255,47,143,0.15); }

/* ── APP FOOTER ──────────────────────────────────────────── */
.app-footer { background: rgba(5,7,28,0.92); border-top: 1px solid var(--line); padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; }
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 3px; }
.footer-mid { font-family: 'VT323', monospace; font-size: 15px; color: var(--muted); letter-spacing: 1px; }
.footer-ver { font-family: 'VT323', monospace; font-size: 14px; color: rgba(255,255,255,0.2); letter-spacing: 1px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .feed { padding: 16px 18px; }
  .input-area { padding: 12px 16px 16px; }
  .header-center { display: none; }
  .inspire-bar { padding: 14px 18px; }
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
#landingPage {
  --midnight:      #17122F;
  --deep-purple:   #281B5B;
  --rad-blue:      #16B4D8;
  --neon-pink:     #FF4FD8;
  --sunset-orange: #FF8A3D;
  --arcade-yellow: #FFD84D;
  --mint-win:      #5FF2B2;
  --cream-bg:      #FFF4DC;
  --lp-white:      #FFFFFF;
  --soft-text:     #D9D6F5;
  --dark-text:     #1C1833;

  font-family: 'Manrope', sans-serif;
  background: var(--midnight);
  color: var(--lp-white);
  min-height: 100vh;
}

.lp-container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 24px; }

.lp-section-h { font-size: clamp(26px,3.5vw,42px); font-weight: 700; color: var(--lp-white); text-align: center; margin-bottom: 36px; line-height: 1.1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.lp-dark-h { color: var(--dark-text); }

.lp-btn-primary { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 32px; border: none; border-radius: 999px; font-family: 'Manrope', sans-serif; font-size: 17px; font-weight: 800; color: var(--lp-white); background: linear-gradient(135deg, var(--sunset-orange), var(--neon-pink)); box-shadow: 0 0 28px rgba(255,79,216,0.45), 0 4px 16px rgba(255,138,61,0.3); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; white-space: nowrap; }
.lp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(255,79,216,0.6), 0 6px 20px rgba(255,138,61,0.4); }
.lp-btn-lg { height: 64px; font-size: 20px; padding: 0 48px; }
.lp-btn-secondary { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px; border-radius: 999px; font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 800; color: #ffffff; background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.5); cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.lp-btn-secondary:hover { background: rgba(255,255,255,0.18); }
.lp-microcopy { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 16px; }

.lp-phone { background: #1a1038; border: 2px solid rgba(255,255,255,0.12); border-radius: 36px; padding: 6px; box-shadow: 0 32px 80px rgba(0,0,0,0.5); width: 300px; max-width: 100%; }
.lp-phone-lg { width: 360px; }
.lp-phone-inner { background: #100c24; border-radius: 30px; padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.lp-phone-notch { width: 60px; height: 6px; background: rgba(255,255,255,0.12); border-radius: 999px; margin: 0 auto 4px; }
.lp-phone-tag { font-family: 'Bungee', sans-serif; font-size: 10px; letter-spacing: 0.5px; color: var(--arcade-yellow); text-align: center; }
.lp-phone-card { background: linear-gradient(135deg,#281B5B,#1a1038); border: 1px solid rgba(255,79,216,0.25); border-radius: 16px; padding: 14px 14px 16px; }
.lp-pc-track { font-family: 'Bungee', sans-serif; font-size: 9px; letter-spacing: 1px; color: var(--neon-pink); margin-bottom: 6px; }
.lp-pc-title { font-size: 15px; font-weight: 800; color: var(--lp-white); margin-bottom: 6px; line-height: 1.2; }
.lp-pc-body { font-size: 12px; color: rgba(255,255,255,0.82); line-height: 1.5; }
.lp-phone-xp { font-family: 'Bungee', sans-serif; font-size: 11px; color: var(--arcade-yellow); text-align: center; }
.lp-phone-stamp { font-family: 'Bungee', sans-serif; font-size: 11px; color: var(--mint-win); text-align: center; }
.lp-phone-prog { display: flex; flex-direction: column; gap: 6px; }
.lp-prog-label { font-size: 11px; color: rgba(255,255,255,0.6); }
.lp-prog-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; }
.lp-prog-fill { height: 100%; background: linear-gradient(90deg,var(--rad-blue),var(--mint-win)); border-radius: 999px; }

.lp-topnav { background: rgba(23,18,47,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.07); position: sticky; top: 0; z-index: 100; }
.lp-topnav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 96px; display: flex; align-items: center; justify-content: space-between; }
.lp-topnav-logo { height: 90px; width: auto; object-fit: contain; border-radius: 0; mix-blend-mode: lighten; }
.lp-topnav-login { background: transparent; border: 1.5px solid rgba(255,255,255,0.55); border-radius: 999px; color: #ffffff; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700; padding: 7px 22px; cursor: pointer; transition: background 0.15s, border-color 0.15s; letter-spacing: 0.03em; }
.lp-topnav-login:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); }

.lp-hero { display: flex; align-items: center; padding: 60px 0 64px; background: radial-gradient(circle at 20% 20%,rgba(255,79,216,0.22) 0%,transparent 50%),radial-gradient(circle at 80% 30%,rgba(22,180,216,0.16) 0%,transparent 50%),linear-gradient(135deg,#17122F 0%,#281B5B 60%,#0d2a2e 100%); }
.lp-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.lp-hero-left { display: flex; flex-direction: column; align-items: flex-start; }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; background: rgba(255,216,77,0.12); border: 1.5px solid rgba(255,216,77,0.7); border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #FFD543; margin-bottom: 20px; box-shadow: 0 0 16px rgba(255,216,77,0.3), 0 0 32px rgba(255,216,77,0.12); }
.lp-h1 { font-size: clamp(36px,5vw,56px); font-weight: 700; color: var(--lp-white); line-height: 1.08; margin-bottom: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.lp-hero-sub { font-size: clamp(14px,1.4vw,16px); color: rgba(255,255,255,0.9); line-height: 1.6; margin-bottom: 28px; max-width: 480px; }
.lp-hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.lp-hero-right { display: flex; justify-content: center; align-items: center; }
.lp-logo-hero-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: clamp(258px,32.3vw,389px); height: clamp(258px,32.3vw,389px); flex-shrink: 0; overflow: visible; animation: lp-logo-float 4s ease-in-out infinite; filter: drop-shadow(0 0 40px rgba(255,79,216,0.3)) drop-shadow(0 0 80px rgba(22,180,216,0.15)); }
.lp-logo-hero-wrap::before { content: ''; position: absolute; inset: -18px; border-radius: 50%; background: conic-gradient(from 0deg,#FF4FD8,#16B4D8,#FFD84D,#FF8A3D,#FF4FD8); animation: lp-logo-spin 6s linear infinite; filter: blur(18px); opacity: 0.55; z-index: 0; }
.lp-logo-hero-img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity 0.3s; filter: drop-shadow(0 0 18px rgba(255,79,216,0.6)) drop-shadow(0 0 36px rgba(22,180,216,0.4)); transform: scale(1.46); }
.lp-logo-hero-img:hover { opacity: 0.92; }
@keyframes lp-logo-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes lp-logo-spin  { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.lp-missions { background: #ffffff; padding: 56px 0; }
.lp-mission-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.lp-mc { background: #ffffff; border: 1px solid #E8E4F5; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; min-height: 140px; box-sizing: border-box; cursor: pointer; transition: all 0.2s ease; }
.lp-mc:hover { border-color: rgba(255,79,216,0.3); box-shadow: 0 4px 20px rgba(255,79,216,0.1); transform: translateY(-2px); }
.lp-mc-icon { font-size: 26px; margin-bottom: 8px; }
.lp-mc-title { font-size: 16px; font-weight: 700; color: var(--dark-text); margin-bottom: 6px; }
.lp-mc-body { font-size: 13px; color: #666; line-height: 1.55; flex: 1; margin-top: 8px; text-decoration: none; }
.lp-mc-body a,
.lp-mc-body a:visited,
.mission-card p a,
.track-card p a { color: inherit; text-decoration: none; pointer-events: none; cursor: default; }
.mission-card a, .track-card a, .feature-card a, .card-description a,
section p a { color: inherit !important; text-decoration: none !important; pointer-events: none !important; cursor: default !important; }
p a:not(.btn):not(.button):not([class='cta']) { color: inherit; text-decoration: none; }

.lp-how { background: var(--deep-purple); padding: 56px 0; }
.lp-steps { display: flex; align-items: flex-start; gap: 0; }
.lp-step { flex: 1 1 0; min-width: 0; padding: 0 32px; text-align: center; }
.lp-step-num { font-family: 'Bungee', sans-serif; font-size: 40px; color: var(--arcade-yellow); margin-bottom: 16px; line-height: 1; }
.lp-step-title { font-size: 20px; font-weight: 700; color: var(--lp-white); margin-bottom: 12px; line-height: 1.2; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.lp-step-body { font-size: 14px; color: rgba(255,255,255,0.82); line-height: 1.65; }
.lp-step-arrow { font-size: 32px; color: rgba(255,255,255,0.4); padding-top: 12px; flex-shrink: 0; align-self: flex-start; margin-top: 44px; }

.lp-whats-inside { background: #ffffff; padding: 72px 0; border-top: 1px solid rgba(0,0,0,0.06); }
.lp-wi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 40px; }
.lp-wi-card { background: #f8f6ff; border: 1px solid #e8e4f5; border-radius: 16px; padding: 28px 24px; }
.lp-wi-emoji { font-size: 32px; margin-bottom: 12px; }
.lp-wi-title { font-size: 16px; font-weight: 700; color: #1C1833; margin-bottom: 8px; }
.lp-wi-body { font-size: 13px; color: #555; line-height: 1.6; }

.lp-preview { background: var(--midnight); padding: 56px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.lp-preview-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.lp-preview-sub { font-size: 18px; color: rgba(255,255,255,0.82); margin-top: -32px; margin-bottom: 48px; }

.lp-cta-final { background: radial-gradient(circle at 50% 40%,rgba(255,79,216,0.15) 0%,transparent 60%),var(--midnight); padding: 120px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.lp-cta-final-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.lp-final-h { font-size: clamp(40px,6vw,72px); font-weight: 700; color: var(--lp-white); margin-bottom: 16px; line-height: 1.05; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.lp-final-sub { font-size: 20px; color: rgba(255,255,255,0.82); margin-bottom: 44px; }

/* ── FEATURE TUTORIAL ANIMATION ──────────────────────────────── */
@keyframes featCardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── MINIMAL HERO (mobile-first, above-fold layout) ───────────── */
.lp-hero--minimal {
  min-height: calc(100dvh - 60px);
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  padding: 32px 0 40px;
}
.lp-hero-minimal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 24px;
}
.lp-hero--minimal .lp-h1 {
  font-size: clamp(56px, 14vw, 88px) !important;
  margin-bottom: 12px !important;
  line-height: 0.9 !important;
}
.lp-hero-hook {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  margin: 0 0 22px;
  line-height: 1.4;
}
.lp-phone-hero {
  width: 260px;
  margin: 0 0 24px;
}
.lp-testimonial-inline {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  margin-top: 14px;
  line-height: 1.5;
  max-width: 320px;
}
@media (max-width: 600px) {
  .lp-hero--minimal { padding: 20px 0 28px; min-height: calc(100dvh - 56px); min-height: calc(100vh - 56px); }
  .lp-phone-hero { width: 230px; }
  .lp-hero--minimal .lp-h1 { font-size: clamp(52px,18vw,72px) !important; }
}

.lp-footer { background: #0e0b1e; border-top: 1px solid rgba(255,255,255,0.05); padding: 28px 0; }
.lp-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.25); }
.lp-footer-links { display: flex; gap: 24px; }
.lp-footer-link { color: rgba(255,255,255,0.25); text-decoration: none; transition: color 0.15s; }
.lp-footer-link:hover { color: rgba(255,255,255,0.55); }

@media (max-width: 1024px) {
  .lp-hero { padding: 48px 0 56px; }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .lp-hero-left { align-items: center; }
  .lp-hero-right { justify-content: center; }
  .lp-mission-grid { grid-template-columns: repeat(2,1fr); }
  .lp-steps { flex-direction: column; gap: 40px; }
  .lp-step { padding: 0 16px; }
  .lp-step-arrow { display: none; }
}
@media (max-width: 600px) {
  .lp-hero { padding: 60px 0 72px; }
  .lp-missions,.lp-how,.lp-whats-inside,.lp-preview,.lp-cta-final { padding: 44px 0; }
  .lp-mission-grid { grid-template-columns: 1fr; }
  .lp-hero-btns { flex-direction: column; width: 100%; }
  .lp-btn-primary,.lp-btn-secondary { width: 100%; justify-content: center; }
  .lp-footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================================
   DASHBOARD LAYOUT — reference design
   ============================================================ */

#appShell {
  height: 100vh;
  height: 100dvh;
  /* iOS Safari pre-15.4: dvh not supported; -webkit-fill-available tracks the
     visual viewport (excluding address bar + keyboard) so layout never gets clipped */
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-layout {
  display: grid;
  grid-template-columns: 240px minmax(700px, 1fr) minmax(330px, 420px);
  min-height: 100vh;
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
}

.app-main {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── SIDEBAR ───────────────────────────────────────── */
.app-sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--panel-dark);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  min-height: 0;
}
.asb-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 10px 8px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}
.asb-brand-subtitle {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 9px;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  margin-top: 4px;
  padding-bottom: 4px;
}
.asb-tagline {
  font-family: 'Barlow Condensed', 'Bebas Neue', sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.88);
  text-align: center;
  padding: 10px 12px 16px;
  line-height: 1.4;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255,42,168,0.6), 0 0 24px rgba(255,42,168,0.2);
}
.asb-logo-img {
  width: 110px;
  height: 110px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(255,42,168,0.45));
}
.asb-brand-text { flex: 1; min-width: 0; }
.asb-brand-name { font-family: 'Bebas Neue', sans-serif; font-size: 17px; letter-spacing: 2px; line-height: 1; }
.asb-brand-sub { font-family: 'Rajdhani', sans-serif; font-size: 10px; color: var(--muted); letter-spacing: 1.5px; }
.asb-brand-tag { font-family: 'VT323', monospace; font-size: 10px; color: var(--yellow); margin-top: 2px; }
.asb-nav { padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.asb-nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
  transition: all .15s; user-select: none;
}
.asb-nav-item:hover { background: rgba(129,141,189,0.07); color: var(--text-secondary); }
.asb-nav-item.asb-active { background: rgba(255,42,168,0.14); color: var(--text-primary); border-left: 3px solid var(--neon-pink); padding-left: 7px; }
.asb-tm-btn { color: rgba(155,143,214,0.8); }
.asb-tm-btn:hover { background: rgba(155,143,214,0.1) !important; color: #9B8FD6 !important; }
.asb-tm-btn.asb-active { background: rgba(155,143,214,0.16) !important; border-left-color: #9B8FD6 !important; }
.asb-nav-icon { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.asb-nav-sub {
  font-family: 'Manrope', sans-serif; font-size: 10px; line-height: 1.3;
  color: var(--muted); padding: 0 10px 0 37px; margin-top: -2px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .18s ease, opacity .18s ease, padding .18s ease, margin .18s ease;
}
.asb-nav-item:hover + .asb-nav-sub,
.asb-nav-item.asb-active + .asb-nav-sub {
  max-height: 16px; opacity: 1; padding-bottom: 4px; margin-top: -2px;
}
.nav-locked {
  opacity: 0.38;
  position: relative;
  cursor: pointer !important;
  pointer-events: all !important;
}
a.nav-locked::after, button.nav-locked::after {
  content: '🔒';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  opacity: 1;
}
a.nav-locked:hover { opacity: 0.6; }
div.nav-locked { opacity: 0.22; pointer-events: none; }

/* Primary sidebar actions get extra emphasis */
.asb-nav-primary { font-size: 14.5px; font-weight: 800; }
.asb-nav-primary .asb-nav-icon { font-size: 16px; filter: drop-shadow(0 0 6px rgba(255,42,168,0.55)); }
.asb-nav-primary:hover { background: rgba(255,42,168,0.09); color: var(--text-primary); }
.asb-nav-primary:hover .asb-nav-icon { filter: drop-shadow(0 0 10px rgba(255,42,168,0.85)); }
.asb-nav-primary.asb-active .asb-nav-icon { filter: drop-shadow(0 0 12px rgba(255,42,168,0.9)); }
.asb-nav-arr { margin-left: auto; color: var(--muted); font-size: 14px; }
.asb-nav-divider { font-size: 9px; font-family: 'Bebas Neue', sans-serif; letter-spacing: 2px; color: var(--text-muted); opacity: 0.6; padding: 14px 14px 4px; }
.asb-approved {
  margin: 6px 10px 6px; padding: 14px 12px; text-align: center;
  background: rgba(255,42,168,0.07); border: 1px solid rgba(255,42,168,0.22); border-radius: 12px;
}
.asb-approved-title { font-family: 'Bebas Neue', sans-serif; font-size: 12px; letter-spacing: 1.5px; color: var(--pink); margin-bottom: 7px; }
.asb-approved-thumb { font-size: 28px; margin-bottom: 5px; }
.asb-approved-mascot {
  width: 80px; height: auto; object-fit: contain;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 10px rgba(255,42,168,0.45));
  margin: 0 auto 6px; display: block;
}
.asb-approved-msg { font-family: 'Manrope', sans-serif; font-size: 11px; color: var(--text3); line-height: 1.5; margin-bottom: 10px; }
.asb-badges-btn {
  background: linear-gradient(135deg, var(--neon-pink), var(--deep-magenta)); border: none; border-radius: 6px;
  padding: 7px 12px; color: #fff; font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 11px; letter-spacing: 1.5px; cursor: pointer; width: 100%;
}
.asb-footer-link { padding: 10px 14px 14px; font-family: 'Manrope', sans-serif; font-size: 11px; color: var(--text-muted); text-align: center; }
.asb-footer-link a { color: var(--electric-cyan); text-decoration: none; }

.asb-community-link { color: #a6a0ff; }
.asb-community-link:hover { background: rgba(88,101,242,0.14) !important; color: #ccc7ff !important; }
.asb-community-desc {
  font-family: 'Manrope', sans-serif; font-size: 10.5px; line-height: 1.4;
  color: var(--muted); padding: 0 14px 10px 37px; margin-top: -4px;
}

/* ── MOBILE SIDEBAR DRAWER ────────────────────────── */

/* Hamburger button — hidden on desktop */
.atb-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 8px;
  transition: background 0.15s;
}
.atb-hamburger:hover { background: rgba(255,255,255,0.08); }
.atb-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
/* Animate hamburger → X when sidebar is open */
#sidebarToggleBtn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#sidebarToggleBtn.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#sidebarToggleBtn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dim overlay behind open drawer */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  /* Show hamburger */
  .atb-hamburger { display: flex; }
  /* Hide leaderboard button — too wide for mobile topbar */
  #lbHeaderBtn { display: none !important; }

  /* Sidebar becomes a fixed off-screen drawer */
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 32px rgba(0,0,0,0.6);
  }
  .app-sidebar.sidebar-open {
    transform: translateX(0);
  }

  /* Lock body scroll when sidebar is open so background doesn't scroll under the overlay */
  body.sidebar-open { overflow: hidden; }

  /* Sidebar is position:fixed on mobile — collapse grid to 1 column
     so app-main spans the full viewport width */
  .app-layout { grid-template-columns: 1fr; }
  .app-right { display: none !important; }
  .app-main { min-width: 0; width: 100%; }

  /* Topbar: hamburger + title, compress actions row */
  .app-topbar { padding: 10px 14px; gap: 10px; }
  .atb-welcome { flex: 1; min-width: 0; }
  /* Constrain actions width so the welcome title doesn't get crowded;
     archetype badge wraps to a second row below the user chip */
  .atb-actions { flex-wrap: wrap; justify-content: flex-end; max-width: 110px; row-gap: 3px; column-gap: 4px; }
  #dashArchetypeBadge { flex-basis: 100%; display: flex; justify-content: flex-end; }
  .atb-title { font-size: 14px; letter-spacing: 0.5px; white-space: normal; overflow: visible; line-height: 1.2; max-width: 180px; }
  .atb-sub { display: none; }
  .atb-music-btn { display: none; }
  .atb-journey-btn { display: none; }
  /* Archetype badge: compact pill under the user chip on mobile */
  .atb-archetype-badge {
    padding: 3px 9px 3px 6px !important;
    border-radius: 14px !important;
  }
  .atb-arc-name { font-size: 10px !important; letter-spacing: 0.3px !important; }
  /* Shrink user chip slightly */
  .atb-user-chip { padding: 4px 8px 4px 4px; }
  .atb-user-lvl { font-size: 11px; }
  .atb-user-xp { font-size: 10px; }
}


/* ── TOP BAR ──────────────────────────────────────── */
.app-topbar {
  background: rgba(3,3,13,0.97); border-bottom: 1px solid var(--border-subtle);
  padding: 13px 22px; display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.atb-title { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 2px; color: var(--text-primary); line-height: 1; }
.atb-sub { font-family: 'Manrope', sans-serif; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.atb-actions { display: flex; align-items: center; gap: 9px; }
.atb-music-btn {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text2); font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 12px;
  padding: 6px 14px; border-radius: 20px; cursor: pointer; letter-spacing: 0.5px;
  transition: all 0.15s;
}
.atb-music-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.22); color: #fff; }
/* Soundtrack modal */
#soundtrackModal {
  position: fixed; inset: 0; z-index: 35000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.65); animation: stmBgIn 0.2s ease;
}
@keyframes stmBgIn { from { opacity: 0; } to { opacity: 1; } }
.stm-panel {
  width: 380px; max-width: calc(100vw - 32px);
  background: #161628;
  border: 1px solid rgba(255,79,216,0.28);
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(255,79,216,0.10), 0 24px 60px rgba(0,0,0,0.6);
  overflow: hidden; animation: stmUp 0.25s ease;
}
@keyframes stmUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.stm-header {
  display: flex; align-items: center; padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,79,216,0.05);
}
.stm-title {
  flex: 1; font-family: 'Bebas Neue', sans-serif;
  font-size: 17px; letter-spacing: 2px; color: #FF4FD8;
}
.stm-close-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.50); font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.stm-close-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.stm-body { padding: 14px 14px 12px; }
.stm-spotify-wrap iframe { border-radius: 10px; display: block; }
.stm-footer { margin-top: 10px; text-align: center; }
.stm-open-link {
  font-size: 11px; color: rgba(255,255,255,0.30);
  text-decoration: none; font-family: inherit; transition: color 0.15s;
}
.stm-open-link:hover { color: rgba(255,255,255,0.60); }
.atb-journey-btn {
  background: rgba(255,79,216,0.12); border: 1px solid rgba(255,79,216,0.3);
  color: #FF4FD8; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 12px;
  padding: 6px 14px; border-radius: 20px; cursor: pointer; letter-spacing: 0.5px;
  transition: background 0.2s, border-color 0.2s;
}
.atb-journey-btn:hover { background: rgba(255,79,216,0.22); border-color: rgba(255,79,216,0.5); }
.atb-archetype-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(155,143,214,0.12); border: 1px solid rgba(155,143,214,0.3);
  border-radius: 20px; padding: 5px 12px 5px 8px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.atb-archetype-badge:hover { background: rgba(155,143,214,0.22); border-color: rgba(155,143,214,0.5); }
.atb-arc-emoji { font-size: 16px; line-height: 1; }
.atb-arc-name  { font-size: 11px; font-weight: 700; color: #9B8FD6; font-family: 'Rajdhani', sans-serif; letter-spacing: 0.5px; white-space: nowrap; }
.atb-notif-btn {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text2); font-size: 14px; width: 34px; height: 34px;
  border-radius: 50%; cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center;
}
.atb-notif-count {
  position: absolute; top: -4px; right: -4px; background: var(--pink);
  color: #fff; font-size: 9px; font-weight: 700; padding: 1px 4px; border-radius: 8px;
}
.atb-user-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; padding: 4px 12px 4px 4px; cursor: pointer;
}
.atb-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,47,143,0.4); }
.atb-user-info { display: flex; flex-direction: column; line-height: 1.2; }
.atb-user-lvl { font-family: 'Bebas Neue', sans-serif; font-size: 12px; color: var(--pink); letter-spacing: 1px; }
.atb-user-xp { font-family: 'Rajdhani', sans-serif; font-size: 11px; color: var(--muted); }
.atb-chevron { color: var(--muted); font-size: 11px; }

/* ── DASHBOARD GRID ───────────────────────────────── */
.dash-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px 160px; }
.dash-grid { display: flex; gap: 14px; }
.dash-left { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dash-right { width: 270px; min-width: 270px; display: flex; flex-direction: column; gap: 12px; }
.dash-top-row { display: flex; gap: 12px; }

/* ── TODAY'S MISSION ──────────────────────────────── */
.dmc-card {
  flex: 2; background: linear-gradient(135deg,#110e28 0%,#1a0a2e 100%);
  border: 1px solid rgba(255,47,143,0.3); border-radius: 14px; padding: 18px 20px;
  position: relative; overflow: visible;
  box-shadow: 0 0 24px rgba(255,47,143,0.07), inset 0 0 30px rgba(255,47,143,0.02);
}
.dmc-card::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(90deg,rgba(255,47,143,0.04) 0%,transparent 60%); pointer-events:none;
}
.dmc-label-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.dmc-star { color: var(--yellow); font-size: 13px; }
.dmc-label { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 2px; color: var(--yellow); }
.dmc-body { display: flex; gap: 14px; align-items: flex-start; }
.dmc-text-side { flex: 1; }
.dmc-title { font-family: 'Bebas Neue', sans-serif; font-size: 21px; letter-spacing: 1px; color: #fff; line-height: 1.2; margin-bottom: 5px; }
.dmc-sub { font-family: 'Manrope', sans-serif; font-size: 12px; color: var(--text3); margin-bottom: 10px; }
.dmc-meta { display: flex; align-items: center; gap: 5px; font-family: 'Rajdhani', sans-serif; font-size: 11px; color: var(--muted); letter-spacing: 1px; margin-bottom: 14px; }
.dmc-dot { color: var(--muted); }
.dmc-start {
  background: linear-gradient(135deg,#ff2f8f,#c91060); border: none; border-radius: 8px;
  padding: 9px 18px; color: #fff; font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: 2px; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.dmc-start:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(255,47,143,0.4); }

/* ── MISSION ACTION ROW (Start + Need a Moment) ──
   These are two genuinely different choices (do the mission vs. take a
   beat first), so they get real breathing room between them plus an "or"
   divider, and Need a Moment gets its own bright, legible color instead
   of a near-invisible dark-on-dark outline. */
.dmc-action-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 2px;
}
.dmc-action-row > * { flex-shrink: 0; }
.dmc-action-row button.primary {
  height: 52px; padding: 0 36px; border: none; border-radius: 8px;
  background: var(--neon-pink);
  box-shadow:
    0 6px 20px rgba(255,42,168,0.55),
    0 2px 8px rgba(255,42,168,0.35),
    inset 0 1px 0 rgba(255,255,255,0.2);
  color: #fff; font-family: 'Barlow Condensed', 'Bebas Neue', sans-serif;
  font-weight: 700; font-style: normal;
  font-size: 20px; letter-spacing: 2px;
  cursor: pointer; white-space: nowrap;
  position: relative; z-index: 1;
  transition: transform 0.15s, box-shadow 0.15s;
}
.dmc-action-row button.primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(255,42,168,0.65),
    0 4px 12px rgba(255,42,168,0.45),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.dmc-action-divider {
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.3);
}
.nim-inline { position: relative; z-index: 2; }
.need-moment-btn {
  height: 52px; padding: 0 20px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.75); font-family: 'Barlow Condensed', 'Manrope', sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: 0.5px;
  cursor: pointer; white-space: nowrap;
  transition: all .2s;
}
.need-moment-btn:hover, .need-moment-btn.nim-btn-open {
  background: rgba(29,230,255,0.2);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 16px rgba(29,230,255,0.35);
}
.moment-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50000;
  display: flex;
  gap: 12px;
  background: #1f1840;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  min-width: 320px;
}
@media (max-width: 480px) {
  .dmc-action-row { flex-direction: column; align-items: stretch; }
  .need-moment-btn { width: 100%; height: 48px; text-align: center; }
  .moment-dropdown { position: static; transform: none; margin-top: 6px; min-width: 0; flex-direction: column; }
}

/* ── MOBILE DASHBOARD LAYOUT ───────────────────────────────────
   The dashboard is a two-column flex layout by default.
   On phones neither column has room — these rules reflow
   everything to a single scrollable vertical stack.          */
@media (max-width: 768px) {
  /* 1. Stack left + right columns vertically */
  .dash-grid  { flex-direction: column; }
  .dash-right { width: 100%; min-width: 0; }

  /* 2. Stack top-row cards (Today's Mission + Progress) */
  .dash-top-row { flex-direction: column; }

  /* 3. "Choose Your Focus" — 6 tiny tiles → 3 readable ones */
  .dfoc-grid { grid-template-columns: repeat(3, 1fr); }

  /* 4. Tighten scroll-area padding on narrow screens */
  .dash-scroll { padding: 10px; }

  /* 5. Hide decorative art column inside mission card to free width */
  .dmc-art { display: none; }

  /* 6. Mission card: let action row fill full width naturally */
  .dmc-action-row { flex-wrap: wrap; }
  .dmc-action-row button.primary { flex: 1 1 auto; min-width: 0; }
}

/* Extra-small phones (≤ 390px) */
@media (max-width: 390px) {
  .dash-scroll { padding: 8px; }
  .dfoc-grid { grid-template-columns: repeat(2, 1fr); }
  .dmc-title { font-size: 18px; }
  .atb-title { font-size: 14px; letter-spacing: 0.5px; }
}

.dmc-art {
  width: 100px; min-width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0;
}
.dmc-art-glow {
  position: absolute; inset: -10px;
  background: radial-gradient(circle,rgba(179,45,255,0.28) 0%,transparent 70%);
  border-radius: 50%; animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.6} 50%{opacity:1} }
.dmc-art-cabinet {
  font-size: 54px; z-index: 1; line-height: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.dmc-art-label {
  font-family: 'Bungee', sans-serif; font-size: 11px; letter-spacing: 0.1em; color: #FFD84D;
  background: transparent; white-space: nowrap; margin-bottom: 8px;
}

/* ── PROGRESS CARD ────────────────────────────────── */
.dpc-card {
  flex: 1; background: #141528; border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px; padding: 18px;
}
.dpc-label { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 2px; color: var(--muted); margin-bottom: 8px; }
.dpc-level-num { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 2px; color: var(--pink); line-height: 1; }
.dpc-xp-row { font-family: 'Rajdhani', sans-serif; font-size: 13px; color: var(--muted); margin: 4px 0 8px; }
.dpc-xp-bar { background: rgba(255,255,255,0.07); border-radius: 4px; height: 6px; overflow: hidden; margin-bottom: 14px; }
.dpc-xp-fill { height: 100%; background: linear-gradient(90deg,var(--pink),var(--purple)); border-radius: 4px; transition: width .5s ease; }
.dpc-stats-row { display: flex; gap: 10px; }
.dpc-stat { flex: 1; }
.dpc-stat-top { font-size: 16px; margin-bottom: 3px; }
.dpc-stat-lbl { font-family: 'Rajdhani', sans-serif; font-size: 9px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; margin-bottom: 2px; }
.dpc-stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: 1px; }
.dpc-stat-val.pink { color: var(--pink); }
.dpc-stat-val.yellow { color: var(--yellow); }

/* ── CHOOSE YOUR FOCUS ────────────────────────────── */
.dash-focus { background: #141528; border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 16px 18px; }
.dfoc-title { font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: 2px; color: var(--cyan); margin-bottom: 12px; }
.dfoc-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; }
.dfoc-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; padding: 12px 6px 10px; text-align: center;
  cursor: pointer; transition: all .15s;
}
.dfoc-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); border-color: rgba(255,255,255,0.16); }
.dfoc-icon { font-size: 22px; margin-bottom: 5px; font-weight: bold; line-height: 1; }
.dfoc-name { font-family: 'Bebas Neue', sans-serif; font-size: 12px; letter-spacing: 1.5px; color: #fff; margin-bottom: 2px; }
.dfoc-lvl { font-family: 'Manrope', sans-serif; font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.dfoc-bar { background: rgba(255,255,255,0.08); border-radius: 2px; height: 3px; overflow: hidden; }
.dfoc-fill { height: 100%; border-radius: 2px; }

/* ── YOUR JOURNEY ─────────────────────────────────── */
.dash-journey { background: #141528; border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 16px 18px; }
.djny-title { font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: 2px; color: var(--cyan); margin-bottom: 18px; }
.djny-track { display: flex; align-items: center; }
.djny-step { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; }
.djny-circle {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 13px; font-weight: 700;
  border: 2px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: var(--muted);
}
.done-circle { background: rgba(0,200,80,0.14); border-color: #00c850; color: #00c850; }
.active-circle { background: rgba(255,140,0,0.14); border-color: #ff8c00; color: #ff8c00; box-shadow: 0 0 10px rgba(255,140,0,0.28); }
.locked-circle { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.09); color: var(--muted); font-size: 11px; }
.djny-step-name { font-family: 'Bebas Neue', sans-serif; font-size: 10px; letter-spacing: 1px; color: var(--text2); text-align: center; }
.djny-step-sub { font-family: 'Manrope', sans-serif; font-size: 9px; color: var(--muted); text-align: center; }
.djny-connector { flex: 0 0 30px; height: 2px; background: rgba(255,255,255,0.09); margin-bottom: 20px; }
.done-conn { background: #00c850; }
.active-conn { background: #ff8c00; }

/* ── RIGHT COLUMN CARDS ───────────────────────────── */
.dws-card, .dun-card, .dmt-card, .dqa-card {
  background: #141528; border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 15px 16px;
}
.dws-label { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 2px; color: var(--yellow); text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.dws-star { color: var(--yellow); }
.dws-quote { font-family: 'Permanent Marker', cursive; font-size: 13px; color: var(--text2); line-height: 1.7; margin-bottom: 8px; font-style: italic; }
.dws-source { font-family: 'Rajdhani', sans-serif; font-size: 12px; color: var(--yellow); }
.dun-header-row, .dmt-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dun-label, .dmt-label { font-family: 'Bebas Neue', sans-serif; font-size: 13px; letter-spacing: 2px; color: #fff; }
.dun-view-all, .dmt-view-pl { background: none; border: none; color: var(--cyan); font-family: 'Rajdhani', sans-serif; font-size: 11px; letter-spacing: 1px; cursor: pointer; text-decoration: underline; }
.dun-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; padding: 9px 11px; cursor: pointer; transition: background .15s;
}
.dun-item:hover { background: rgba(255,255,255,0.08); }
.dun-item-icon { font-size: 18px; flex-shrink: 0; }
.dun-item-info { flex: 1; min-width: 0; }
.dun-item-name { font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 600; color: var(--text2); }
.dun-item-sub { font-family: 'Manrope', sans-serif; font-size: 10px; color: var(--muted); }
.dun-item-arr { color: var(--muted); font-size: 16px; }
.dmt-player-row { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.dmt-cover { width: 38px; height: 38px; background: rgba(255,47,143,0.14); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.dmt-track-info { flex: 1; min-width: 0; }
.dmt-track-name { font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 600; color: var(--text2); }
.dmt-artist { font-family: 'Manrope', sans-serif; font-size: 10px; color: var(--muted); }
.dmt-controls { display: flex; gap: 4px; flex-shrink: 0; }
.dmt-btn {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text2); border-radius: 50%; width: 26px; height: 26px; cursor: pointer; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}
.dmt-prog-bar { background: rgba(255,255,255,0.08); border-radius: 3px; height: 3px; overflow: hidden; margin-bottom: 4px; }
.dmt-prog-fill { height: 100%; background: linear-gradient(90deg,var(--pink),var(--cyan)); border-radius: 3px; }
.dmt-time-row { font-family: 'Rajdhani', sans-serif; font-size: 10px; color: var(--muted); text-align: right; }
.dqa-label { font-family: 'Bebas Neue', sans-serif; font-size: 13px; letter-spacing: 2px; color: #fff; margin-bottom: 10px; }
.dqa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.dqa-grid-6 { grid-template-columns: 1fr 1fr 1fr; }
.dqa-btn {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); border-radius: 10px;
  padding: 11px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: var(--text2); font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 600;
  transition: all .15s;
}
.dqa-btn:hover { background: rgba(255,47,143,0.09); border-color: rgba(255,47,143,0.28); color: #fff; }
.dqa-icon { font-size: 18px; }
.dqa-btn-levelup { flex-direction: column-reverse; }
.dqa-btn-levelup span:last-child { font-size: 13px; font-weight: 700; padding: 4px 0; }

/* ── RECENT WINS CARD ─────────────────────────────── */
.drw-card {
  background: #141528; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 14px 16px;
}
.drw-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drw-label { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.drw-view-all { background: transparent; border: 1px solid rgba(255,216,77,0.25); color: var(--yellow); font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 1px; padding: 4px 10px; border-radius: 6px; cursor: pointer; transition: all .15s; }
.drw-view-all:hover { background: rgba(255,216,77,0.1); }
.drw-list { display: flex; flex-direction: column; gap: 8px; }
.drw-empty { font-size: 12px; color: var(--muted); text-align: center; padding: 10px 0; font-style: italic; }
.drw-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 10px; }
.drw-item-icon { font-size: 16px; flex-shrink: 0; }
.drw-item-text { flex: 1; font-size: 12px; color: rgba(255,255,255,0.75); line-height: 1.4; }
.drw-item-xp { font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 700; color: var(--yellow); white-space: nowrap; flex-shrink: 0; }

/* ── XP BREAKDOWN CARD ───────────────────────────── */
.dxp-card {
  background: #141528; border: 1px solid rgba(255,216,77,0.12);
  border-radius: 14px; padding: 14px 16px;
}
.dxp-label { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }
.dxp-total-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.dxp-total-num { font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--yellow); line-height: 1; }
.dxp-total-tag { font-family: 'Rajdhani', sans-serif; font-size: 11px; color: var(--muted); letter-spacing: 1px; font-weight: 700; }
.dxp-rows { display: flex; flex-direction: column; gap: 7px; }
.dxp-row { display: flex; align-items: center; gap: 8px; }
.dxp-row-label { flex: 1; font-size: 12px; color: rgba(255,255,255,0.55); font-family: 'Manrope', sans-serif; }
.dxp-row-bar { flex: 2; height: 4px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; }
.dxp-row-fill { height: 100%; border-radius: 2px; transition: width .5s ease; }
.dxp-row-val { font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 700; color: var(--yellow); min-width: 40px; text-align: right; }

/* ── LOG A WIN MODAL ─────────────────────────────── */
#logWinModal {
  display: none; position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,0.78);
  align-items: center; justify-content: center;
}
#logWinModal.open { display: flex; }
.lwm-panel {
  background: linear-gradient(160deg, #14153a, #0d0e28);
  border: 1px solid rgba(255,47,143,0.25);
  border-radius: 24px; padding: 40px 36px 36px;
  max-width: 500px; width: calc(100% - 32px);
  position: relative;
  box-shadow: 0 0 80px rgba(255,47,143,0.14), 0 40px 100px rgba(0,0,0,0.55);
  max-height: 90vh; overflow-y: auto;
}
.lwm-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.55); font-size: 15px; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.lwm-close:hover { background: rgba(255,255,255,0.14); color: #fff; }
.lwm-header {
  font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 3px;
  color: #fff; margin: 0 0 8px;
}
.lwm-star { color: var(--pink); }
.lwm-sub {
  font-size: 14px; color: rgba(199,200,232,0.7); margin: 0 0 20px; line-height: 1.5;
}
.lwm-textarea {
  width: 100%; min-height: 100px; box-sizing: border-box;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 14px 16px; color: #e8e6ff;
  font-family: 'Manrope', sans-serif; font-size: 15px; line-height: 1.6;
  resize: vertical; outline: none; transition: border-color .2s;
  margin-bottom: 18px;
}
.lwm-textarea:focus { border-color: rgba(255,47,143,0.45); }
.lwm-textarea::placeholder { color: rgba(199,200,232,0.35); }
.lwm-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
}
.lwm-pill {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px; padding: 7px 14px;
  color: rgba(199,200,232,0.75); font-family: 'Manrope', sans-serif;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.lwm-pill:hover { background: rgba(255,79,216,0.1); border-color: rgba(255,79,216,0.35); color: #fff; }
.lwm-pill-active {
  background: rgba(255,79,216,0.18); border-color: #FF4FD8;
  color: #FF4FD8; box-shadow: 0 0 12px rgba(255,79,216,0.25);
}
.lwm-submit {
  width: 100%; height: 52px; border: none; border-radius: 12px;
  background: linear-gradient(135deg,#ff2f8f,#c91060);
  color: #fff; font-family: 'Bebas Neue', sans-serif; font-size: 20px;
  letter-spacing: 2px; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.lwm-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(255,47,143,0.45); }

/* confirmation screen */
#lwmConfirm {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 16px 0 8px;
}
.lwm-stamp {
  width: 9em; height: 9em; object-fit: contain;
  box-shadow: 0 0 30px rgba(255,47,143,0.35);
  transform: rotate(8deg);
  margin-bottom: 28px;
}
.lwm-confirm-msg {
  font-family: 'Rajdhani', sans-serif; font-size: 20px; font-weight: 700;
  color: #fff; margin: 0 0 12px; line-height: 1.4;
}
.lwm-xp {
  font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 2px;
  color: var(--pink); margin-bottom: 28px;
}
.lwm-back {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px; padding: 12px 32px;
  color: rgba(255,255,255,0.85); font-family: 'Manrope', sans-serif;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.lwm-back:hover { background: rgba(255,255,255,0.13); color: #fff; }

/* ── LOGO PULSE + MODAL ──────────────────────────── */
.asb-logo-pulse {
  cursor: pointer;
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
#logoModal {
  display: none; position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,0.75);
  align-items: center; justify-content: center;
}
#logoModal.open { display: flex; }
.lm-panel {
  background: linear-gradient(160deg, #14153a, #0d0e28);
  border: 1px solid rgba(255,47,143,0.3);
  border-radius: 28px; padding: 40px 36px 36px;
  max-width: 420px; width: calc(100% - 48px);
  max-height: 90vh; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; position: relative;
  box-shadow: 0 0 80px rgba(255,47,143,0.18), 0 0 40px rgba(29,230,255,0.1), 0 40px 100px rgba(0,0,0,0.5);
}
.lm-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.6); font-size: 16px; width: 34px; height: 34px;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.lm-close:hover { background: rgba(255,255,255,0.16); color: #fff; }
.lm-logo {
  width: 320px; height: auto; object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 0 20px rgba(255,47,143,0.65)) drop-shadow(0 0 50px rgba(29,230,255,0.3));
  margin-bottom: 20px;
}
.lm-headline {
  font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 3px;
  color: #fff; margin: 0 0 4px;
}
.lm-sub {
  font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--pink);
  margin: 0 0 20px;
}
.lm-body {
  font-size: 15px; line-height: 1.7; color: rgba(199,200,232,0.85);
  margin: 0 0 24px;
}
.lm-tag {
  font-family: 'VT323', monospace; font-size: 14px; letter-spacing: 2px;
  color: rgba(200,200,232,0.35);
}

/* ── FOOTER BAR ───────────────────────────────────── */
.app-footer-bar {
  background: rgba(0,0,0,0.25); border-top: 1px solid rgba(255,255,255,0.06);
  padding: 7px 22px; display: flex; justify-content: space-between; align-items: center;
  font-family: 'Rajdhani', sans-serif; font-size: 11px; letter-spacing: 1px; color: var(--muted); flex-shrink: 0;
}

/* ── CHAT OVERLAY ─────────────────────────────────── */
#chatOverlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(5,7,28,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}
.chat-overlay-panel {
  background: #0e0f24;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,79,216,0.35), 0 0 40px rgba(255,79,216,0.18), 0 0 80px rgba(255,79,216,0.08);
  width: clamp(540px, 78vw, 1100px); max-width: calc(100% - 32px);
  height: 92vh; max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden;
  position: relative;
  transform: translateY(28px); opacity: 0;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.24s ease;
}

/* Drag-to-resize grip */
.chat-resize-grip {
  position: absolute; bottom: 0; right: 0;
  width: 28px; height: 28px;
  cursor: nwse-resize;
  z-index: 20;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 5px;
  border-radius: 0 0 18px 0;
}
.chat-resize-grip::after {
  content: '';
  display: block;
  width: 12px; height: 12px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,79,216,0.5) 0px, rgba(255,79,216,0.5) 1.5px,
    transparent 1.5px, transparent 4px
  );
  border-radius: 1px;
}
.chat-resize-grip:hover::after { background: repeating-linear-gradient(
    -45deg,
    rgba(255,79,216,0.9) 0px, rgba(255,79,216,0.9) 1.5px,
    transparent 1.5px, transparent 4px
  );
}
.chat-overlay-panel.panel-open { transform: translateY(0); opacity: 1; }

/* ── MOBILE KEYBOARD FIX ──────────────────────────────────────
   On mobile, vh is fixed to the LAYOUT viewport (full screen height)
   so the panel's bottom gets buried under the native keyboard.
   dvh tracks the VISUAL viewport — it shrinks when the keyboard opens,
   keeping the textarea and send button always above the keys.
   Fallback: 100% on the flex-stretched overlay also works for older browsers. */
@media (max-width: 680px) {
  /* Remove padding so the panel can truly fill the screen edge-to-edge.
     The panel height is managed by JS (visualViewport) for keyboard awareness. */
  #chatOverlay {
    padding: 0;
    align-items: stretch;
  }
  .chat-overlay-panel {
    width: 100%;
    border-radius: 0;
    /* Initial height before keyboard opens — JS overrides this on resize */
    height: 100dvh;
    max-height: 100dvh;
    /* Fallback for browsers without dvh */
    height: 100vh;
    height: 100dvh;
  }
}
.cop-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,0.09); flex-shrink: 0;
}
.cop-title { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 2px; color: #fff; }
.cop-header-right { display: flex; align-items: center; gap: 8px; }
.cop-close {
  background: rgba(255,255,255,0.11); border: 1.5px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9); font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 13px; letter-spacing: 1.5px; padding: 0 16px; border-radius: 20px; cursor: pointer;
  min-height: 44px; display: flex; align-items: center; white-space: nowrap;
}
.chat-overlay-panel .feed {
  flex: 1; overflow-y: scroll;
  min-height: 0;
  padding: 24px;
  font-size: 16px; line-height: 1.75;
  scrollbar-width: auto;
  scrollbar-color: rgba(255,79,216,0.65) rgba(255,255,255,0.05);
}
.chat-overlay-panel .feed::-webkit-scrollbar { width: 8px; }
.chat-overlay-panel .feed::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 4px; margin: 4px 0; }
.chat-overlay-panel .feed::-webkit-scrollbar-thumb { background: rgba(255,79,216,0.65); border-radius: 4px; border: 1px solid rgba(255,79,216,0.2); }
.chat-overlay-panel .feed::-webkit-scrollbar-thumb:hover { background: rgba(255,79,216,0.9); }

/* Scroll affordance wrapper */
#feedWrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
#scrollHint {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(to top, #0e0f24 0%, transparent 100%);
  pointer-events: none;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px;
  transition: opacity 0.25s ease;
}
#scrollHint.hint-hidden { opacity: 0; }
#scrollChevron {
  color: rgba(255,216,77,0.85); font-size: 18px;
  animation: scrollBounce 1.3s infinite ease-in-out;
  line-height: 1;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* Shrink hero logo in overlay so tiles land above the fold */
.chat-overlay-panel .welcome-wordmark { max-width: 320px; max-height: none; margin-bottom: 12px; }
.chat-overlay-panel .welcome-sub { margin-bottom: 14px; }
.chat-overlay-panel .welcome-body { font-size: 14px; margin-bottom: 14px; }
.chat-overlay-panel .welcome-instruction { margin-bottom: 14px; }
/* Catbar wrap + collapse toggle */
.catbar-wrap { flex-shrink: 0; position: sticky; top: 0; z-index: 10; background: #0e0f24; }
.catbar-toggle {
  display: none;
  width: 100%; padding: 9px 16px;
  background: rgba(29,230,255,0.06);
  border: none; border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #1de6ff; font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 11px; letter-spacing: 1.8px;
  text-align: left; cursor: pointer; text-transform: uppercase;
}
.catbar-toggle:hover { background: rgba(29,230,255,0.12); }

.chat-overlay-panel .catbar {
  border-radius: 0; flex-shrink: 0;
  position: static; z-index: auto; background: #0e0f24;
}
/* On mobile, when the catbar is opened via the toggle, scroll it
   horizontally (like the example chips) instead of wrapping to
   multiple lines — prevents feedWrap from getting crushed. */
@media (max-width: 768px) {
  .chat-overlay-panel #catbarNav.catbar-open {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 12px;
  }
  .chat-overlay-panel #catbarNav.catbar-open::-webkit-scrollbar { display: none; }
}
.chat-overlay-panel .ans-footer {
  position: sticky; bottom: 0;
  background: #0e0f24;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px; z-index: 5;
}
.chat-overlay-panel .input-area { display: block !important; flex-shrink: 0; }
.chat-overlay-panel .streak-bar { flex-shrink: 0; }

/* Response content area — subtly lifted from panel base */
.chat-overlay-panel .ans-body {
  background: rgba(255,255,255,0.034);
  border-radius: 12px;
  margin: 0 -8px;
  padding: 16px 20px;
}

/* ── UNIFIED ACTION BOX ──────────────────────────────────── */
.unified-action-box {
  background: linear-gradient(135deg, rgba(255,47,143,0.08), rgba(255,47,143,0.04));
  border: 1.5px solid rgba(255,47,143,0.35);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: border-color .2s;
}
.unified-action-box:hover { border-color: rgba(255,47,143,0.6); }
.unified-action-box .rally-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text);
  margin-top: 8px;
  margin-bottom: 0;
}
.action-step-divider {
  border: none;
  border-top: 1px solid rgba(255,47,143,0.2);
  margin: 14px 0;
}
.action-step-label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 8px;
}
/* CHANGE 2: hide duplicate ask inputs when panel open */
body.ask-panel-open .dqa-card { opacity: 0.3; pointer-events: none; }

/* ── MISSION CONTAINER OVERLAY ────────────────────── */
#missionContainer {
  position: fixed; inset: 0; z-index: 600;
  overflow-y: auto; background: rgba(5,6,20,0.97);
}

/* ── LANDING: SCIENCE NOTE ───────────────────────── */
.lp-science-note {
  text-align: center; margin-top: 32px;
  font-size: 12px; color: rgba(255,255,255,0.6);
  font-style: italic; max-width: 560px; margin-left: auto; margin-right: auto;
  line-height: 1.6;
}

/* ── LANDING: COMING SOON CHIPS ──────────────────── */
.lp-chip-cs { position: relative; }
.lp-cs-badge {
  position: absolute; top: -10px; right: -6px;
  background: #ffd84d; color: #1a1038;
  font-size: 9px; font-weight: 800; font-family: 'Manrope', sans-serif;
  padding: 2px 6px; border-radius: 999px; letter-spacing: 0.5px;
  white-space: nowrap; pointer-events: none;
}

/* ── LANDING: TESTIMONIAL ────────────────────────── */
.lp-testimonial {
  background: #08061a;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 80px 0;
}
.lp-testimonial-inner { text-align: center; max-width: 680px; margin: 0 auto; padding: 0 24px; }
.lp-testimonial-quote {
  font-size: 22px; font-weight: 700; color: rgba(255,255,255,0.92);
  line-height: 1.5; margin-bottom: 20px;
  font-style: italic;
}
.lp-testimonial-attr {
  font-size: 14px; color: rgba(255,255,255,0.6);
  font-family: 'Rajdhani', sans-serif; letter-spacing: 1px;
}

/* ── DASHBOARD: NEED A MOMENT ────────────────────── */
.nim-wrap { padding: 0 0 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nim-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px; padding: 10px 28px;
  color: #c8c4f8; font-family: 'Manrope', sans-serif;
  font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 0 18px rgba(200,180,255,0.12);
  transition: all .2s;
}
.nim-btn:hover, .nim-btn-open {
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 28px rgba(200,180,255,0.25);
  border-color: rgba(255,255,255,0.28);
}
.nim-options {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.nim-opt {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 9px 18px;
  color: #a8d8ea; font-size: 13px; font-weight: 600;
  font-family: 'Manrope', sans-serif; text-decoration: none;
  transition: background .15s;
}
.nim-opt:hover { background: rgba(255,255,255,0.1); }
.nim-fire { color: #ffd84d; }

/* Cards inside .moment-dropdown */
.moment-dropdown .nim-opt {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  flex: 1;
  transition: background .15s;
  font-family: 'Manrope', sans-serif;
  text-align: left;
  text-decoration: none;
}
.moment-dropdown .nim-opt:hover { background: rgba(255,255,255,0.12); }
.nim-opt-title {
  font-size: 15px; font-weight: 700;
  font-family: 'Manrope', sans-serif; color: #fff;
}
.nim-opt-sub {
  font-size: 12px; font-weight: 400;
  font-family: 'Manrope', sans-serif; color: rgba(199,200,232,0.55);
}
.moment-dropdown .nim-fire .nim-opt-title { color: #ffd84d; }

/* ── SIDEBAR: MORE TOGGLE ────────────────────────── */
.asb-more-toggle {
  width: 100%; background: none; border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5); font-family: 'Bebas Neue', sans-serif;
  font-size: 12px; letter-spacing: 2px; text-align: left;
  padding: 12px 14px 8px; cursor: pointer;
  transition: color .15s;
  margin-top: 6px;
}
.asb-more-toggle:hover { color: rgba(255,255,255,0.8); }
.asb-more-section { padding-left: 0; border-top: none; }

/* ── MISSION CARD: SCIENCE NOTE ──────────────────── */
.mc-science-note {
  font-size: 12px; color: rgba(160,200,255,0.6);
  margin: 8px 0 0; font-style: italic; line-height: 1.5;
}

/* ── MISSION CARD: STICKY FOOTER ─────────────────── */
.mc-card { padding-bottom: 0 !important; }
.mc-sticky-footer {
  position: sticky; bottom: 0;
  background: linear-gradient(to top, rgba(10,8,30,1) 80%, rgba(10,8,30,0));
  padding: 16px 20px 20px; margin-top: 8px;
  display: flex; flex-direction: column; gap: 8px;
}

/* ── MISSION CARD: HERO ART ──────────────────────── */
.mc-hero-art {
  position: relative; height: 110px; overflow: hidden;
  margin: -24px -24px 20px; border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, #0d0824 0%, #1a0d3d 50%, #0f0c28 100%);
}
.mc-sun {
  position: absolute; left: 50%; top: 18px; transform: translateX(-50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(180deg, #ffd84d 0%, #ff6b00 55%, #c8004a 100%);
  box-shadow: 0 0 40px rgba(255,107,0,0.5);
  overflow: hidden;
}
.mc-sun::after {
  content: ''; position: absolute; left: 0; right: 0;
  top: 52%; height: 60%; background: repeating-linear-gradient(
    0deg, #0d0824 0px, #0d0824 3px, transparent 3px, transparent 8px
  );
}
.mc-grid-floor {
  position: absolute; bottom: 0; left: -10%; width: 120%; height: 48px;
  background: repeating-linear-gradient(
    90deg, rgba(255,47,143,0.35) 0px, rgba(255,47,143,0.35) 1px, transparent 1px, transparent 28px
  ),
  repeating-linear-gradient(
    0deg, rgba(255,47,143,0.35) 0px, rgba(255,47,143,0.35) 1px, transparent 1px, transparent 14px
  );
  transform: perspective(120px) rotateX(30deg); transform-origin: bottom;
}
.mc-rad-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 4px;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,47,143,0.7);
  text-shadow: 0 0 20px rgba(255,47,143,0.3);
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   RIGHT PANEL — app-right column
   ══════════════════════════════════════════════════════════════ */
.app-right {
  background: var(--panel-black);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  gap: 14px;
  padding: 16px 14px;
  min-height: 0;
}
.arp-card {
  background: linear-gradient(180deg, rgba(12, 15, 34, 0.97), rgba(5, 7, 18, 0.98));
  border: 1px solid rgba(108, 121, 170, 0.3);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035),
    0 12px 30px rgba(0,0,0,0.42);
  padding: 18px 16px;
}
.arp-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--electric-cyan);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.arp-label-gold { color: var(--yellow); }

/* Progress ring */
.arp-progress {
  text-align: center;
  background: linear-gradient(180deg, rgba(8,12,28,0.98), rgba(4,6,16,0.98));
  border-color: rgba(0,217,255,0.35);
  box-shadow:
    0 0 0 1px rgba(0,217,255,0.12),
    0 0 30px rgba(0,217,255,0.10),
    inset 0 1px 0 rgba(0,217,255,0.08),
    0 12px 30px rgba(0,0,0,0.5);
}
.arp-level-ring { display: flex; justify-content: center; margin-bottom: 12px; }
.arp-progress .donut {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--electric-cyan) 0 10%, #0e1428 10%);
  display: grid; place-items: center;
  box-shadow: 0 0 28px rgba(0,217,255,0.22);
}
.arp-donut-inner {
  background: var(--panel-dark);
  border-radius: 50%;
  width: 82px; height: 82px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.arp-level-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px; letter-spacing: 1.5px;
  color: var(--electric-cyan); font-style: normal;
  line-height: 1;
}
.arp-level-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px; color: var(--text-primary); font-style: normal;
  line-height: 1; margin-top: 2px;
}
.arp-xp-line {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; color: var(--text-primary); letter-spacing: 1px;
  margin-bottom: 8px;
}
.arp-xp-of { font-size: 13px; color: var(--text-muted); }
.arp-xp-bar { margin: 0 0 14px; }
.arp-stats-row {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 12px;
}
.arp-stat {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.arp-stat-divider { width: 1px; height: 36px; background: var(--border-subtle); }
.arp-stat-icon { font-size: 16px; }
.arp-stat-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; color: var(--text-primary); font-style: normal; line-height: 1;
}
.arp-stat-lbl {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 9px; letter-spacing: 1.5px; color: var(--text-muted);
  text-transform: uppercase;
}
.arp-next-lvl {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px; letter-spacing: 2px; color: var(--text-muted);
  text-transform: uppercase; margin-bottom: 10px;
}
.arp-detail-btn {
  width: 100%; background: none; border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 8px; color: var(--text-muted);
  font-family: 'Manrope', sans-serif; font-size: 11px; letter-spacing: 0.5px;
  cursor: pointer; transition: all .15s;
}
.arp-detail-btn:hover { border-color: var(--border-cyan); color: var(--electric-cyan); }

/* Achievement Shelf — live badge grid in right panel */
.las-grid { display: flex; flex-direction: column; gap: 5px; }
.las-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 9px; border-radius: 8px;
  transition: background .15s;
}
.las-earned {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.11);
}
.las-locked {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.04);
}
.las-emoji { font-size: 18px; line-height: 1; flex-shrink: 0; }
.las-locked .las-emoji { filter: grayscale(100%); opacity: 0.22; }
.las-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.las-name { font-size: 11px; font-weight: 700; letter-spacing: 0.2px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.las-earned .las-name { color: rgba(255,255,255,0.82); }
.las-locked .las-name { color: rgba(255,255,255,0.22); }
.las-desc { font-size: 10px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.las-earned .las-desc { color: rgba(255,255,255,0.38); }
.las-locked .las-desc { color: rgba(255,255,255,0.16); }
.las-tick { font-size: 10px; color: #5FF2B2; font-weight: 900; flex-shrink: 0; }

/* Now Playing */
.arp-now-playing .arp-label { margin-bottom: 10px; }

/* Wisdom */
.arp-wisdom-body { padding: 4px 0; }
.arp-quote {
  font-family: 'Permanent Marker', cursive;
  font-size: 16px; line-height: 1.5;
  color: var(--text-secondary); font-style: italic;
  border: none; padding: 0; margin: 0 0 10px;
}
.arp-wisdom-src { font-size: 12px; color: var(--text-muted); margin: 0; }

/* Wins */
.arp-wins-hdr {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.arp-wins-list p {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 8px 0; font-size: 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
}

/* ══════════════════════════════════════════════════════════════
   DESIGN SYSTEM REFRESH — new layout classes
   ══════════════════════════════════════════════════════════════ */

/* Layout helpers */
.grid { display: grid; gap: 26px; margin-bottom: 32px; }
.hero-grid { grid-template-columns: 1.4fr 0.9fr; }

/* Shared card base — kept deliberately light by default. Primary,
   high-priority sections (mission, level) opt into stronger framing
   below; secondary sections dial the weight back further so the page
   doesn't read as a wall of equally-loud boxes. */
.card {
  background: linear-gradient(180deg, rgba(12, 15, 34, 0.97), rgba(5, 7, 18, 0.98));
  border: 1px solid rgba(108, 121, 170, 0.3);
  border-radius: 12px;
  padding: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035),
    0 12px 30px rgba(0,0,0,0.42);
}

/* ── Mission card — full-width hero card with 80s background ── */
.mission {
  display: flex; gap: 18px; overflow: hidden; padding: 32px 36px 28px;
  border: 1px solid rgba(255,42,168,0.4);
  background: linear-gradient(160deg, #0e0520 0%, #1a0638 35%, #0b0e2a 70%, #060318 100%);
  box-shadow:
    0 0 0 1px rgba(255,42,168,0.12),
    0 0 60px rgba(255,42,168,0.18),
    0 0 120px rgba(139,61,255,0.10),
    inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  margin-bottom: 0;
  min-height: 260px;
  align-items: center;
}

/* Synthwave sunset background art layer */
.mission-bg-art {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background:
    /* orange sun glow */
    radial-gradient(circle 120px at 72% -10%, rgba(255,120,0,0.55) 0%, rgba(255,60,0,0.15) 50%, transparent 70%),
    /* sun halo */
    radial-gradient(ellipse 55% 45% at 72% 5%, rgba(255,80,0,0.25) 0%, transparent 65%),
    /* purple sky wash */
    radial-gradient(ellipse 70% 60% at 80% 0%, rgba(120,20,180,0.35) 0%, transparent 60%),
    /* magenta horizon bloom */
    linear-gradient(180deg, rgba(180,20,120,0.14) 0%, transparent 50%),
    /* left-side violet */
    linear-gradient(270deg, rgba(139,61,255,0.10) 0%, transparent 55%);
}
/* Neon grid horizon at bottom — right half only so it stays behind the mascot, not the buttons */
.mission-bg-art::before {
  content: '';
  position: absolute; bottom: 0; left: 45%; right: 0; height: 70px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 38px,
      rgba(255,42,168,0.18) 38px,
      rgba(255,42,168,0.18) 39px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 14px,
      rgba(255,42,168,0.12) 14px,
      rgba(255,42,168,0.12) 15px
    );
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
}
/* Pink-to-cyan neon horizon line — right half only */
.mission-bg-art::after {
  content: '';
  position: absolute; bottom: 69px; left: 45%; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--neon-pink) 25%, var(--violet) 55%, var(--electric-cyan) 80%, transparent 95%);
  box-shadow: 0 0 12px rgba(255,42,168,0.6), 0 0 24px rgba(139,61,255,0.3);
  opacity: 0.85;
}

.dash-hero-card { margin-bottom: 24px; }

.mission-label-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mission small {
  color: var(--cyan); letter-spacing: .22em; text-transform: uppercase;
  font-family: 'Bebas Neue', sans-serif; font-size: 13px; display: block; margin: 0;
}
.mission-num {
  font-family: 'Bebas Neue', sans-serif; font-size: 11px; letter-spacing: .18em;
  color: rgba(255,255,255,0.3); text-transform: uppercase;
  padding-left: 10px; border-left: 1px solid rgba(255,255,255,0.15);
}
.mission h2 {
  font-size: 52px; margin: 0 0 10px;
  font-family: 'Barlow Condensed', 'Bebas Neue', sans-serif;
  font-weight: 700; font-style: italic;
  letter-spacing: .02em; text-transform: uppercase; line-height: 1.05;
  color: #fff;
  text-shadow:
    0 0 8px rgba(255,42,168,1),
    0 0 20px rgba(255,42,168,0.7),
    0 0 50px rgba(255,42,168,0.35),
    0 0 90px rgba(0,217,255,0.2);
}
.mission-left { flex: 1; min-width: 0; position: relative; z-index: 1; }
.mission-sub { font-family: 'Manrope', sans-serif; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(255,255,255,0.55); letter-spacing: 1.5px; margin-bottom: 16px; text-transform: uppercase; font-family: 'Bebas Neue', sans-serif; }
.meta-dot { opacity: .4; }

/* Coach Boom mascot */
.mission-mascot {
  flex-shrink: 0; width: 240px; display: flex; align-items: flex-end;
  justify-content: center; position: relative; z-index: 1;
}
.mission-mascot-img {
  height: 280px; width: auto; object-fit: contain;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 24px rgba(255,42,168,0.6)) drop-shadow(0 0 48px rgba(0,217,255,0.3));
  animation: heroMascotFloat 3s ease-in-out infinite;
}
@keyframes heroMascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Legacy hero-art (now unused in favor of mascot) */
.hero-art { display: none; }

/* ── Level card — the other half of the primary focal pair, so it also
   keeps a defined border while the secondary cards below go borderless ── */
.level {
  border: 1px solid rgba(29,230,255,0.28);
  background: linear-gradient(180deg,rgba(16,26,40,0.9),rgba(10,14,28,0.9));
}
.level h3 { color: var(--cyan); letter-spacing: .12em; text-transform: uppercase; font-family: 'Bebas Neue', sans-serif; font-size: 11px; margin-bottom: 8px; }
.level h2 { font-size: 28px; margin: 0 0 4px; font-family: 'Bebas Neue', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--pink); }
.level p { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.bar { height: 10px; background: #0e1128; border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--neon-pink), var(--violet)); border-radius: 99px; }
.level-stats { display: flex; gap: 24px; margin-top: 4px; }
.level-stats div { flex: 1; }
.level-stats span { display: block; font-size: 9px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; font-family: 'Bebas Neue', sans-serif; margin-bottom: 4px; }
.level-stats b { display: block; font-size: 18px; color: var(--pink); font-family: 'Bebas Neue', sans-serif; letter-spacing: .04em; }

/* ── Focus Areas / Storylines — VHS cassette card style ─── */
.focus-section { margin: 0 0 28px; }
.focus-section-hdr {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.focus-label {
  font-family: 'Permanent Marker', cursive; font-size: 22px;
  color: var(--neon-pink); letter-spacing: 0.5px;
  font-style: normal; text-transform: none;
  text-shadow: 0 0 16px rgba(255,42,168,0.45);
}
.focus-view-all {
  font-family: 'Bebas Neue', sans-serif; font-size: 11px; letter-spacing: 1.5px;
  color: var(--cyan); text-transform: uppercase; background: none;
  border: 1px solid rgba(29,230,255,0.3); border-radius: 6px; padding: 5px 12px;
  cursor: pointer; transition: all .15s;
}
.focus-view-all:hover { background: rgba(29,230,255,0.08); }

/* ── STORYLINE CHIPS — 3×2 simple coloured cards ── */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ── Chip card (desktop + mobile base) ── */
.focus {
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  padding: 16px 10px;
  min-height: 100px;
  text-align: center;
  position: relative; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.focus::before, .focus::after { display: none; }
.focus:hover { transform: translateY(-3px) scale(1.02); }

/* ── Category-coloured border per chip ── */
.focus-love   { border-color: rgba(255,59,157,0.5); }
.focus-life   { border-color: rgba(46,204,106,0.5); }
.focus-money  { border-color: rgba(232,168,0,0.5); }
.focus-career { border-color: rgba(40,170,255,0.5); }
.focus-courage{ border-color: rgba(255,107,48,0.5); }
.focus-wisdom { border-color: rgba(200,64,200,0.5); }

/* ── Reel window — hidden ── */
.vhs-window { display: none; }
.vhs-reel   { display: none; }

/* ── Label area ── */
.vhs-label {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: none; box-shadow: none; margin: 0; padding: 0;
  width: 100%; position: relative; z-index: 1;
}
/* "VHS" micro-badge — hidden */
.vhs-brand { display: none; }
/* Category name */
.vhs-cat {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 900; font-size: 20px; letter-spacing: 2px; line-height: 1;
}
/* XP type label */
.vhs-xp {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 8px; font-weight: 600; letter-spacing: 0.5px;
  color: rgba(255,255,255,0.45); text-transform: uppercase; line-height: 1;
}
/* Thin colour accent bar */
.vhs-bar {
  width: 60%; height: 3px; border-radius: 2px; margin: 5px 0 3px;
}
.focus-love  .vhs-bar { background: #ff3b9d; box-shadow: 0 0 6px rgba(255,59,157,0.6); }
.focus-life  .vhs-bar { background: #2ecc6a; box-shadow: 0 0 6px rgba(46,204,106,0.6); }
.focus-money .vhs-bar { background: #e8a800; box-shadow: 0 0 6px rgba(232,168,0,0.6); }
.focus-career  .vhs-bar { background: #28aaff; box-shadow: 0 0 6px rgba(40,170,255,0.6); }
.focus-courage .vhs-bar { background: #ff6b30; box-shadow: 0 0 6px rgba(255,107,48,0.6); }
.focus-wisdom  .vhs-bar { background: #c840c8; box-shadow: 0 0 6px rgba(200,64,200,0.6); }
/* Level badge */
.vhs-lvl {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 0.4px;
  padding: 2px 10px; border-radius: 99px;
  color: #fff;
}

/* ── Hover glows ── */
.focus-love:hover   { box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 24px rgba(255,59,157,0.35);  border-color: rgba(255,59,157,0.7); }
.focus-life:hover   { box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 24px rgba(46,204,106,0.35);  border-color: rgba(46,204,106,0.7); }
.focus-money:hover  { box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 24px rgba(232,168,0,0.35);   border-color: rgba(232,168,0,0.7); }
.focus-career:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 24px rgba(40,170,255,0.35);  border-color: rgba(40,170,255,0.7); }
.focus-courage:hover{ box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 24px rgba(255,107,48,0.35);  border-color: rgba(255,107,48,0.7); }
.focus-wisdom:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 24px rgba(200,64,200,0.35);  border-color: rgba(200,64,200,0.7); }

/* ── Per-category name + badge colours ── */
.focus-love   .vhs-cat { color: #ff3b9d; }
.focus-love   .vhs-lvl { background: #ff3b9d; }
.focus-life   .vhs-cat { color: #2ecc6a; }
.focus-life   .vhs-lvl { background: #2ecc6a; color: #001a0d; }
.focus-money  .vhs-cat { color: #e8a800; }
.focus-money  .vhs-lvl { background: #e8a800; color: #1e1000; box-shadow: 0 0 8px rgba(232,168,0,0.6); }
.focus-career .vhs-cat { color: #0052a8; }
.focus-career .vhs-lvl { background: #28aaff; box-shadow: 0 0 8px rgba(40,170,255,0.6); }
.focus-courage .vhs-cat { color: #b03200; }
.focus-courage .vhs-lvl { background: #ff6b30; box-shadow: 0 0 8px rgba(255,107,48,0.6); }
.focus-wisdom .vhs-cat { color: #7a009a; }
.focus-wisdom .vhs-lvl { background: #c840c8; box-shadow: 0 0 8px rgba(200,64,200,0.6); }

/* ── Journey / Timeline ───────── */
.journey { margin-bottom: 56px; border: none; background: none; padding: 24px 0 0; box-shadow: none; border-top: 1px solid rgba(255,255,255,0.08); }
.journey h3 { font-family: 'Bebas Neue', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); font-size: 12px; margin-bottom: 18px; }
.timeline { display: grid; grid-template-columns: repeat(5,1fr); align-items: start; text-align: center; gap: 8px; }
.timeline > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.timeline b { margin: 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border: 3px solid #485064; border-radius: 50%; color: #8790ad; font-size: 15px; font-style: normal; }
.timeline span { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; font-family: 'Rajdhani', 'Manrope', sans-serif; color: var(--text); }
.timeline small { display: block; font-size: 11px; color: #a8afc9; }

/* Each of the 5 Hero's Journey steps gets its own brand-palette color, so
   they stay visually distinguishable at a glance in both the locked
   (not-yet-reached) and done/current (completed) states. */
.timeline > div:nth-child(1) { --step-color: 29,230,255; }   /* Ask the Coach — cyan */
.timeline > div:nth-child(2) { --step-color: 255,47,143; }   /* Mission — pink */
.timeline > div:nth-child(3) { --step-color: 255,216,77; }   /* Training Montage — gold (unchanged) */
.timeline > div:nth-child(4) { --step-color: 179,45,255; }   /* Level Up — purple */
.timeline > div:nth-child(5) { --step-color: 108,255,141; }  /* Inspire Others — green */

.timeline > div b { border-color: rgba(var(--step-color), 0.35); color: rgba(var(--step-color), 0.55); }
.timeline > div.done b,
.timeline > div.current b { border-color: rgb(var(--step-color)); color: rgb(var(--step-color)); }

/* ── Legacy XP donut (used in right panel) ─── */
.donut { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--pink) 0 100%,#2e3242 100%); margin: 0 auto 14px; transition: background .6s ease; }
.donut span { background: #111629; border-radius: 50%; width: 72px; height: 72px; display: grid; place-items: center; text-align: center; text-transform: uppercase; font-family: 'Bebas Neue', sans-serif; font-size: 10px; color: var(--muted); letter-spacing: 1px; }
.xp { list-style: none; padding: 0; margin: 0; }
.xp li { margin: 8px 0; color: #cbd3ec; font-size: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.xp li .xp-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.xp li span { flex: 1; }
.xp li b { font-size: 11px; }

/* Soundtrack widget (now in right panel) */
.soundtrack-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mini { padding: 18px 20px; }
.mini h3 { font-family: 'Bebas Neue', sans-serif; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }

/* ── Bottom Row — Quick Actions | Memory Machine | Achievement Shelf ── */
.dash-bottom-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
  align-items: start;
}
.dab-card {
  background: linear-gradient(180deg, rgba(12, 15, 34, 0.97), rgba(5, 7, 18, 0.98));
  border: 1px solid rgba(108, 121, 170, 0.3);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035),
    0 12px 30px rgba(0,0,0,0.42);
  padding: 20px;
}
.dab-label {
  font-family: 'Bebas Neue', sans-serif; font-size: 13px; letter-spacing: 2px;
  color: var(--neon-pink); text-transform: uppercase; font-style: italic;
  margin-bottom: 14px;
}

/* Quick Action grid — 4 icon buttons */
.dqa-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 10px;
}
.dqa-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.15); border-radius: 10px;
  padding: 18px 6px 14px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: all .18s; min-height: 76px; justify-content: center;
}
.dqa-btn:hover {
  background: rgba(255,42,168,0.13); border-color: rgba(255,42,168,0.45);
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,42,168,0.22);
}
.dqa-icon { font-size: 28px; line-height: 1; }
.dqa-name {
  font-family: 'Bebas Neue', sans-serif; font-size: 11px; letter-spacing: 1.2px;
  color: rgba(255,255,255,0.75); text-align: center;
}
.dqa-row-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.dqa-sm-btn {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 8px 6px;
  font-family: 'Bebas Neue', sans-serif; font-size: 10px; letter-spacing: 1px;
  color: rgba(255,255,255,0.6); cursor: pointer; transition: all .15s;
}
.dqa-sm-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Memory Machine */
.dab-memory-card { background: linear-gradient(180deg, var(--panel-dark), var(--panel-black)); }
.dab-memory-body {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 12px 0 16px; text-align: center;
}
.dab-tape-icon { font-size: 56px; line-height: 1; opacity: 0.85; }
.dab-memory-text {
  font-family: 'Manrope', sans-serif; font-size: 13px; line-height: 1.55;
  color: var(--text-secondary); margin: 0; text-align: center;
}
.dab-action-btn {
  width: 100%; background: rgba(0,217,255,0.05);
  border: 1px solid var(--border-subtle); border-radius: 8px;
  padding: 9px 12px;
  font-family: 'Bebas Neue', sans-serif; font-size: 11px; letter-spacing: 1.5px;
  color: var(--electric-cyan); cursor: pointer; transition: all .15s; text-align: center;
}
.dab-action-btn:hover { background: rgba(0,217,255,0.1); border-color: var(--border-cyan); }

/* Achievement Shelf */
.dab-badges-row {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 14px; padding: 10px 0;
}
.dab-badge {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  cursor: pointer; transition: all .2s;
}
.dab-badge:hover { transform: scale(1.15); }
.dab-badge-pink { border-color: rgba(255,42,168,0.55); box-shadow: 0 0 12px rgba(255,42,168,0.3); }
.dab-badge-gold { border-color: rgba(223,165,46,0.55); box-shadow: 0 0 12px rgba(223,165,46,0.3); }
.dab-badge-cyan { border-color: rgba(0,217,255,0.55); box-shadow: 0 0 12px rgba(0,217,255,0.3); }
.dab-badge-purple { border-color: rgba(139,61,255,0.55); box-shadow: 0 0 12px rgba(139,61,255,0.3); }
.dab-badge-green { border-color: rgba(82,229,139,0.55); box-shadow: 0 0 12px rgba(82,229,139,0.3); }

@keyframes rlWinPulse { 0%,100% { opacity:1; } 50% { opacity:0.7; } }

/* ── Responsive ───────────────────────────────────────── */
/* On screens too narrow for 3 columns, collapse to 2-col sidebar+content */
@media (max-width: 1280px) {
  .app-layout { grid-template-columns: 240px 1fr; }
  .app-right { display: none; }
  .dash-bottom-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .app-layout { grid-template-columns: 240px 1fr; }
  .focus-grid { grid-template-columns: repeat(3,1fr); }
  .dash-bottom-row { grid-template-columns: 1fr; }
}

/* ── MOBILE DASHBOARD — comprehensive stacking ─────────────── */
@media (max-width: 768px) {

  /* The ≤1280px block earlier in this file sets grid-template-columns: 240px 1fr.
     Because it appears later than the first 768px block it wins at mobile widths.
     Override here (also later) so phones always get a single full-width column. */
  .app-layout { grid-template-columns: 1fr !important; }
  .app-main   { min-width: 0 !important; width: 100% !important; }

  /* Reduce dashboard scroll padding — extra bottom clears the fixed ASK FAB */
  .dash-scroll { padding: 10px 10px calc(160px + env(safe-area-inset-bottom)); }

  /* Stack the two-column dash-grid layout */
  .dash-grid { flex-direction: column; gap: 10px; }
  .dash-right { width: 100%; min-width: 0; }

  /* Focus grid: 3 columns instead of 6 */
  .dfoc-grid { grid-template-columns: repeat(3,1fr); gap: 6px; }
  .dfoc-name { font-size: 10px; }
  .dfoc-icon { font-size: 18px; }

  /* Mission card: tighten up */
  .dmc-action-row { gap: 12px; }
  .dmc-action-row button.primary { height: 42px; font-size: 15px; }
  .need-moment-btn { height: 42px; font-size: 13px; }

  /* Hide the decorative joystick art on narrow phones — saves ~110px of width */
  .hero-art { display: none; }

  /* Hero grid (mission + level cards) stacks already at 900px,
     but ensure full width on small phones */
  .hero-grid { gap: 10px; }
  .card.mission, .card.level { padding: 14px; }

  /* XP bar card compact */
  .dpc-stats-row { gap: 6px; }

  /* Top bar adjustments: hide secondary actions to save space */
  .atb-journey-btn { display: none; }
  #lbHeaderBtn { display: none !important; }
  .atb-actions { gap: 6px; }

  /* Right column cards: stack & full width */
  .dash-right .dpc-card,
  .dash-right .dash-focus,
  .dash-right .dash-journey { border-radius: 10px; }

  /* Section headings: tighten letter-spacing for narrow screens */
  .dfoc-title, .djny-title { font-size: 13px; letter-spacing: 1.5px; }

  /* Journey tracker: shrink dots for narrow screens */
  .djny-circle { width: 28px; height: 28px; font-size: 11px; }
  .djny-step-name { font-size: 9px; }
  .djny-connector { flex: 0 0 20px; }

  /* A4: Kill Quick Actions grid on mobile — sidebar covers everything it does */
  .card.quick { display: none; }

  /* B5: Hide XP Breakdown card on mobile — accessible via "View XP Breakdown" button in Level card */
  .card.xp-card { display: none; }

  /* B5: Show the detail link button in Level card on mobile */
  .level-xp-detail-btn { display: inline-block; }

  /* C4/C5: Catbar collapses to a toggle button on mobile */
  .catbar-toggle { display: block; }
  #catbarNav { display: none; }
  #catbarNav.catbar-open { display: flex; flex-wrap: wrap; }

  /* P1 — Level card: hide secondary stats row on mobile so it stays compact.
     Training Montage streak + Next Level XP are visible in the mission card context;
     the full breakdown is behind "View XP Breakdown →". */
  .card.level .level-stats { display: none; }
  .card.level h3 { margin-bottom: 4px; }
  .card.level h2 { font-size: 22px; margin-bottom: 2px; }
  .card.level p { margin-bottom: 6px; }
  .card.level .bar { margin-bottom: 10px; }

  /* Storyline chips: compact sizing on mobile (base styles already handle chip look) */
  .focus-section { margin-bottom: 24px; }
  .focus-grid { gap: 8px !important; }
  .focus { min-height: 64px !important; padding: 10px 4px !important; }
  .vhs-cat { font-size: 14px !important; }
  .vhs-xp { font-size: 7px !important; }
  .vhs-bar { width: 50% !important; }
  .vhs-lvl { font-size: 8px !important; padding: 2px 7px !important; }

  /* Hero's Journey timeline: 5 fixed columns → horizontal scroll on mobile */
  .card.journey { padding: 16px 0 0; margin-bottom: 24px; }
  .timeline {
    display: flex !important;
    overflow-x: auto !important;
    gap: 12px !important;
    padding-bottom: 8px !important;
    scrollbar-width: none !important;
  }
  .timeline::-webkit-scrollbar { display: none !important; }
  .timeline > div { flex: 0 0 72px !important; min-width: 72px !important; }
  .timeline b { width: 38px !important; height: 38px !important; font-size: 13px !important; }
  .timeline span { font-size: 9px !important; }
  .timeline small { font-size: 9px !important; }

  /* Mission card: massive h2 (52px) is unreadable on narrow phones — scale down */
  .mission h2 { font-size: 26px !important; margin-bottom: 6px !important; }
  /* Hide Coach Boom mascot on mobile — it's 240px wide and squeezes the text */
  .mission-mascot { display: none !important; }
  .card.mission { overflow: hidden; }

  /* Header: keep the archetype badge inline so it doesn't add a second row */
  #dashArchetypeBadge { flex-basis: auto !important; }
  .atb-actions { flex-wrap: nowrap !important; max-width: none !important; gap: 6px; }
  .atb-title { max-width: 160px !important; font-size: 13px !important; white-space: normal !important; overflow: visible !important; line-height: 1.2 !important; }
}

/* ── LEVEL CARD: XP BREAKDOWN DETAIL LINK ───────── */
.level-xp-detail-btn {
  display: none;
  margin-top: 12px;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: rgba(255,255,255,0.55);
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  padding: 6px 12px; cursor: pointer; text-transform: uppercase;
  width: 100%; text-align: center;
  transition: border-color 0.2s, color 0.2s;
}
.level-xp-detail-btn:hover { border-color: #1de6ff; color: #1de6ff; }

/* ── MISSION CARD: MISSION HEADER ROW ────────────── */
.mc-mission-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mc-track-pill {
  font-size: 10px; font-weight: 700; font-family: 'Manrope', sans-serif;
  background: rgba(255,216,77,0.12); color: #ffd84d;
  border: 1px solid rgba(255,216,77,0.25); border-radius: 999px;
  padding: 2px 10px; letter-spacing: 1px; text-transform: uppercase;
}

/* ── MISSION CARD: FREEZE FRAME ──────────────────── */
.mc-freeze-frame {
  margin: 4px 0 10px; padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid #00E5FF;
  border-radius: 0 10px 10px 0;
}
.mc-freeze-label {
  font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(29,230,255,0.7); margin-bottom: 8px;
}
.mc-freeze-quote {
  margin: 0; font-style: italic;
  color: #d4d0f8; font-size: 15px; line-height: 1.6;
  font-family: 'Manrope', sans-serif; font-weight: 500;
}

/* ── SETTINGS DRAWER ─────────────────────────────── */
#settingsDrawer {
  position: fixed; top: 0; right: 0; height: 100vh;
  width: 300px; z-index: 30000;
  background: #161628; border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.25s ease;
}
#settingsDrawer.open { transform: translateX(0); }
.st-header {
  display: flex; align-items: center; padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07); flex-shrink: 0;
}
.st-title {
  flex: 1; font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; letter-spacing: 2px; color: #fff;
}
.st-close-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5); font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.st-close-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.st-body { flex: 1; overflow-y: auto; padding: 8px 0 24px; }
.st-section {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.st-section-last { border-bottom: none; }
.st-section-label {
  font-family: 'Bebas Neue', sans-serif; font-size: 12px;
  letter-spacing: 2px; color: rgba(255,255,255,0.4);
  text-transform: uppercase; margin-bottom: 12px;
}
.st-avatar-btn {
  width: 100%; padding: 11px 14px;
  background: rgba(255,79,216,0.08); border: 1px solid rgba(255,79,216,0.25);
  border-radius: 10px; color: var(--pink);
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: inherit; text-align: left; transition: all 0.15s;
}
.st-avatar-btn:hover { background: rgba(255,79,216,0.15); border-color: rgba(255,79,216,0.5); }
.st-size-row { display: flex; gap: 8px; }
.st-size-btn {
  flex: 1; padding: 9px 0;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: rgba(255,255,255,0.5);
  font-family: 'Bebas Neue', sans-serif; font-size: 16px;
  letter-spacing: 1px; cursor: pointer; transition: all 0.15s;
}
.st-size-btn:hover { border-color: var(--pink); color: #fff; }
.st-size-btn.active {
  background: rgba(255,79,216,0.15); border-color: var(--pink);
  color: var(--pink);
}
.st-accent-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.st-accent-swatch {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2.5px solid transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.st-accent-swatch:hover { transform: scale(1.1); }
.st-accent-swatch.active { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }
.st-check { color: #fff; font-size: 14px; font-weight: 800; }
.st-accent-name {
  font-size: 12px; color: rgba(255,255,255,0.4);
  font-family: 'Rajdhani', sans-serif; letter-spacing: 0.05em;
}
.st-reset-btn {
  background: transparent; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: rgba(255,255,255,0.3);
  font-size: 12px; cursor: pointer; padding: 8px 14px;
  font-family: inherit; transition: all 0.15s; width: 100%;
}
.st-reset-btn:hover { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.6); }
/* Legal footer links */
.st-legal-footer {
  flex-shrink: 0; padding: 12px 20px 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.st-legal-link {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 11px; color: rgba(255,255,255,0.28); padding: 4px 0;
  text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: rgba(255,255,255,0.15); transition: color 0.15s;
}
.st-legal-link:hover { color: rgba(255,255,255,0.55); }
.st-legal-sep { font-size: 11px; color: rgba(255,255,255,0.15); user-select: none; }
/* Legal modal (slides in from right, same geometry as settings drawer) */
#legalModal {
  position: fixed; inset: 0; z-index: 40000;
  display: flex; justify-content: flex-end;
  background: rgba(0,0,0,0.4); animation: lmBgIn 0.2s ease;
}
@keyframes lmBgIn { from { opacity: 0; } to { opacity: 1; } }
.lm-panel {
  width: 300px; height: 100vh;
  background: #161628; border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  animation: lmSlideIn 0.25s ease;
}
@keyframes lmSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.lm-header {
  display: flex; align-items: center; padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07); flex-shrink: 0;
}
.lm-title {
  flex: 1; font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; letter-spacing: 2px; color: #fff;
}
.lm-body { flex: 1; overflow-y: auto; padding: 24px 20px; }
.lm-p {
  font-size: 13px; color: rgba(255,255,255,0.70);
  line-height: 1.75; margin: 0 0 18px; font-family: 'Manrope', sans-serif;
}
.lm-p:last-child { margin-bottom: 0; }
/* Settings gear button */
.atb-settings-btn {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.atb-settings-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ── AVATAR BUTTON (topbar) ──────────────────────── */
.atb-avatar-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0; cursor: pointer; position: relative;
  border: 2px solid rgba(255,255,255,0.15);
  transition: transform 0.15s, border-color 0.15s;
}
.atb-avatar-btn:hover { transform: scale(1.1); border-color: rgba(255,79,216,0.6); }
#avatarFace { line-height: 1; pointer-events: none; }
#avatarBadgeOverlay {
  position: absolute; bottom: -4px; right: -4px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #0A0A14; border: 1.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; pointer-events: none;
}

/* ── AVATAR CUSTOMIZER MODAL ─────────────────────── */
.avc-panel {
  background: #161628; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  width: 100%; max-width: 440px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  max-height: 92vh; overflow: hidden;
  display: flex; flex-direction: column;
  box-sizing: border-box;
}
.avc-hdr {
  display: flex; align-items: center; padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0;
}
.avc-hdr-label {
  flex: 1; font-size: 11px; font-family: monospace;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.4); text-transform: uppercase;
}
.avc-x-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.avc-x-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.avc-preview-row {
  display: flex; align-items: center; gap: 20px;
  padding: 24px 20px 20px; flex-shrink: 0;
}
.avc-preview-wrap { flex-shrink: 0; }
.avc-preview-circle {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.12); position: relative;
  transition: background 0.2s;
}
.avc-preview-face { font-size: 40px; line-height: 1; }
.avc-preview-badge {
  position: absolute; bottom: -4px; right: -4px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #0A0A14; border: 2px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.avc-preview-copy { flex: 1; }
.avc-preview-title { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.avc-preview-sub {
  font-size: 11px; color: rgba(255,255,255,0.3); font-family: monospace;
}
.avc-tabs {
  display: flex; border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 20px; flex-shrink: 0;
}
.avc-tab {
  flex: 1; padding: 10px 0; background: none; border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.4); font-size: 12px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 6px; font-family: inherit; transition: all 0.15s;
}
.avc-tab.active { border-bottom-color: #FF4FD8; color: #fff; font-weight: 700; }
.avc-grid-wrap { padding: 16px 20px; overflow-y: auto; flex: 1; min-height: 0; }
.avc-face-grid  { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.avc-badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.avc-bg-grid    { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.avc-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 4px; border-radius: 10px; cursor: pointer; position: relative;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.15s; font-family: inherit;
}
.avc-item:hover:not(.lk) { background: rgba(255,79,216,0.08); border-color: rgba(255,79,216,0.3); transform: scale(1.04); }
.avc-item.sel { background: rgba(255,79,216,0.15); border-color: rgba(255,79,216,0.5); }
.avc-item.lk  { opacity: 0.35; cursor: not-allowed; }
.avc-item-emoji { font-size: 24px; line-height: 1; }
.avc-item-lbl   { font-size: 9px; color: rgba(255,255,255,0.5); line-height: 1; }
.avc-lock { position: absolute; top: 4px; right: 4px; font-size: 8px; }
.avc-sel-dot {
  position: absolute; top: 4px; left: 4px;
  width: 8px; height: 8px; border-radius: 50%; background: #FF4FD8;
}
.avc-bg-item .avc-bg-swatch {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15); flex-shrink: 0;
}
.avc-xp-hint {
  margin: 0 20px 0; padding: 8px 12px;
  background: rgba(255,215,0,0.06); border: 1px solid rgba(255,215,0,0.15);
  border-radius: 8px; font-size: 11px; color: rgba(255,215,0,0.8);
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.avc-save-wrap { padding: 16px 20px; flex-shrink: 0; }
.avc-save-btn {
  width: 100%; padding: 14px; background: linear-gradient(135deg,#FF8A3D,#FF4FD8);
  border: none; border-radius: 10px; color: #fff;
  font-size: 15px; font-weight: 800; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.avc-save-btn:hover { opacity: 0.88; }

/* ── MISSION CARD: REWARD ROW ────────────────────── */
.mc-reward-row { display: flex; justify-content: center; margin: 8px 0 12px; }
.mc-reward-badge {
  background: rgba(255,216,77,0.1); border: 1px solid rgba(255,216,77,0.3);
  border-radius: 999px; padding: 5px 16px;
  font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700;
  color: #ffd84d; letter-spacing: 0.5px;
}

/* ── PROGRESS SAVED TOAST ─────────────────────────── */
.rd-progress-toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: linear-gradient(135deg, #0d1f2d, #081820);
  border: 1px solid rgba(29,230,255,0.45);
  border-radius: 12px; padding: 13px 20px;
  display: flex; align-items: center; gap: 11px;
  font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 600;
  color: #fff; letter-spacing: 0.4px; max-width: 380px; z-index: 99999;
  opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none; box-shadow: 0 0 24px rgba(29,230,255,0.18);
}
.rd-progress-toast.rpt-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.rd-progress-toast .rpt-icon { font-size: 20px; flex-shrink: 0; }
.rd-progress-toast .rpt-msg { line-height: 1.4; }
.rd-progress-toast strong { color: #1DE6FF; }

/* ── DASHBOARD RESUME BANNER ──────────────────────── */
#resumeMissionBanner { margin-bottom: 10px; }
.resume-banner {
  display: flex; align-items: center; gap: 14px;
  width: 100%; background: rgba(29,230,255,0.07);
  border: 1px solid rgba(29,230,255,0.30);
  border-radius: 12px; padding: 13px 18px;
  cursor: pointer; font-family: inherit; text-align: left;
  transition: background 0.18s, border-color 0.18s;
}
.resume-banner:hover { background: rgba(29,230,255,0.13); border-color: rgba(29,230,255,0.55); }
.resume-icon { font-size: 22px; flex-shrink: 0; }
.resume-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.resume-title {
  font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: #1DE6FF;
}
.resume-sub {
  font-size: 13px; color: rgba(255,255,255,0.72);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.resume-arr { font-size: 22px; color: rgba(29,230,255,0.6); flex-shrink: 0; }

/* ── MISSION CARD: WELCOME BACK BANNER ───────────── */
.mc-resume-banner {
  display: flex; align-items: center; gap: 8px;
  background: rgba(29,230,255,0.08); border: 1px solid rgba(29,230,255,0.25);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 18px;
  font-size: 13px; font-weight: 600; color: #1DE6FF;
  font-family: 'Rajdhani', sans-serif; letter-spacing: 0.4px;
}
.mc-resume-icon { font-size: 18px; }

/* ── CRISIS RESPONSE CARD ─────────────────────────── */
.rl-crisis-card {
  border: 1px solid rgba(100,150,255,0.25) !important;
  background: linear-gradient(135deg, rgba(8,12,28,0.99), rgba(15,10,30,0.97)) !important;
}
.rl-crisis-hdr {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.rl-crisis-icon { font-size: 22px; }
.rl-crisis-title {
  font-family: 'Rajdhani', sans-serif; font-size: 16px; font-weight: 700;
  letter-spacing: 0.5px; color: rgba(255,255,255,0.85);
}
.rl-crisis-message {
  font-size: 15px; line-height: 1.75; color: #d8d8ec;
  font-family: 'Manrope', sans-serif; margin-bottom: 20px;
}
.rl-crisis-resources {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08);
}
.rl-crisis-link {
  display: block; padding: 13px 16px;
  background: rgba(100,150,255,0.07); border: 1px solid rgba(100,150,255,0.25);
  border-radius: 10px; color: #aac4ff; text-decoration: none;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: 0.3px; transition: background 0.18s, border-color 0.18s;
}
.rl-crisis-link:hover { background: rgba(100,150,255,0.15); border-color: rgba(100,150,255,0.5); }

/* ── KB TOOLKIT CARD ──────────────────────────────── */
.rl-toolkit-card {
  margin: 16px -24px 0;
  padding: 18px 24px;
  border-top: 1px solid rgba(179,45,255,0.22);
  border-bottom: 1px solid rgba(179,45,255,0.22);
  background: rgba(179,45,255,0.05);
}
.rl-toolkit-hdr { margin-bottom: 12px; }
.rl-toolkit-ack {
  font-size: 13px; color: rgba(255,255,255,0.55);
  font-style: italic; margin: 0 0 10px;
  font-family: 'Manrope', sans-serif;
}
.rl-toolkit-principle {
  font-size: 14px; line-height: 1.65; color: #dcdcf0;
  font-family: 'Manrope', sans-serif; margin: 0 0 14px;
}
.rl-toolkit-action-wrap {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 12px;
}
.rl-toolkit-action-lbl {
  display: block; font-family: 'Rajdhani', sans-serif; font-size: 11px;
  font-weight: 700; letter-spacing: 1.2px; color: var(--yellow); margin-bottom: 5px;
}
.rl-toolkit-action-text {
  font-size: 13px; line-height: 1.6; color: #fff;
  font-family: 'Manrope', sans-serif; margin: 0;
}
.rl-toolkit-source {
  font-size: 11px; color: rgba(255,255,255,0.35);
  font-family: 'Rajdhani', sans-serif; letter-spacing: 0.5px;
}
.rl-toolkit-logwin-btn {
  display: block; margin-top: 12px; width: 100%;
  background: rgba(95,242,178,0.1); border: 1px solid rgba(95,242,178,0.35);
  color: #5FF2B2; font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 9px 14px; border-radius: 8px; cursor: pointer; transition: all .15s;
}
.rl-toolkit-logwin-btn:hover {
  background: rgba(95,242,178,0.18); border-color: rgba(95,242,178,0.6);
  box-shadow: 0 0 12px rgba(95,242,178,0.2);
}

/* ── SOFT SUPPORT NUDGE (serious responses) ──────── */
.rl-soft-support {
  margin-top: 14px; padding: 10px 14px;
  background: rgba(100,150,255,0.06); border: 1px solid rgba(100,150,255,0.18);
  border-radius: 8px; font-size: 11px; color: rgba(255,255,255,0.45);
  font-family: 'Manrope', sans-serif; line-height: 1.6;
}
.rl-soft-link {
  color: rgba(130,180,255,0.75); text-decoration: none; font-weight: 700;
  border-bottom: 1px solid rgba(130,180,255,0.25); transition: color .15s;
}
.rl-soft-link:hover { color: rgba(130,180,255,1); }

/* ── FOUND FOR YOU + SAVE COLLECTION ─────────────── */
.found-for-you-strip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0 10px; gap: 10px;
}
.found-for-you-lbl {
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,216,77,0.7);
}
.save-collection-btn {
  background: none; border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.45); border-radius: 20px;
  padding: 4px 12px; font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 11px; letter-spacing: 0.05em; cursor: pointer;
  transition: all .18s; white-space: nowrap;
}
.save-collection-btn:hover {
  border-color: var(--pink); color: var(--pink);
  background: rgba(255,79,216,0.07);
}
.save-collection-btn--saved {
  border-color: rgba(95,242,178,0.4) !important; color: #5FF2B2 !important;
  background: rgba(95,242,178,0.07) !important; cursor: default;
}
.rl-save-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: #1a1a35; border: 1px solid rgba(255,79,216,0.4);
  color: #fff; font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 14px; letter-spacing: 1px; padding: 10px 22px;
  border-radius: 10px; z-index: 99999; white-space: nowrap;
  animation: fadeInUp .25s ease;
}

/* ── MOOD CHECK-IN ───────────────────────────────── */
.mood-checkin-strip {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 20px; margin: 0 0 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; text-align: center;
}
.mood-checkin-label {
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.mood-emoji-row { display: flex; gap: 8px; }
.mood-emoji-btn {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; width: 48px; height: 48px; font-size: 24px;
  cursor: pointer; transition: all .18s; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.mood-emoji-btn:hover {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3);
  transform: scale(1.12);
}
.mood-logged {
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: 0.06em; color: rgba(95,242,178,0.8);
}

/* ── COACH BOOM OVERLAY ───────────────────────────── */
.cb-overlay {
  position: fixed; inset: 0; z-index: 45000;
  background: rgba(5,7,20,0.93);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; transition: opacity 0.25s;
}
.cb-card {
  position: relative;
  background: linear-gradient(160deg, #0d0f1e 0%, #160f26 100%);
  border: 1px solid rgba(255,200,60,0.2);
  border-radius: 20px; width: 100%; max-width: 380px;
  box-shadow: 0 0 70px rgba(232,132,10,0.08);
  overflow: hidden; animation: cbSlideIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes cbSlideIn {
  from { opacity:0; transform:translateY(24px) scale(0.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
.cb-x-btn {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7); font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; font-family: inherit;
}
.cb-x-btn:hover { background: rgba(0,0,0,0.45); color: #fff; }
.cb-top-banner {
  background: linear-gradient(135deg, #d4770a 0%, #FFD84D 100%);
  padding: 22px 24px 18px; text-align: center;
}
.cb-char-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(0,0,0,0.18); border: 2px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 auto 10px;
}
.cb-name {
  font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 800;
  letter-spacing: 2.5px; color: rgba(0,0,0,0.6); text-transform: uppercase;
}
.cb-sublabel {
  font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px; color: rgba(0,0,0,0.38); margin-top: 2px;
}
.cb-body {
  padding: 22px 24px 20px;
}
.cb-message {
  font-size: 17px; line-height: 1.65; color: #f0f0ff;
  font-family: 'Manrope', sans-serif; font-weight: 500;
  margin: 0 0 18px; font-style: italic;
}
.cb-media-row { margin-bottom: 18px; }
.cb-media-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,216,77,0.1); border: 1px solid rgba(255,216,77,0.25);
  border-radius: 99px; padding: 5px 14px;
  font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 700;
  color: #FFD84D; letter-spacing: 0.4px;
}
.cb-actions { display: flex; flex-direction: column; gap: 10px; }
.cb-share-btn {
  width: 100%; padding: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px; color: rgba(255,255,255,0.8);
  font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: 0.5px; cursor: pointer; transition: all 0.15s;
}
.cb-share-btn:hover { background: rgba(255,255,255,0.11); }
.cb-done-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #d4770a, #FFD84D);
  border: none; border-radius: 10px; color: #1a0800;
  font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 800;
  letter-spacing: 0.5px; cursor: pointer; transition: opacity 0.15s, transform 0.15s;
}
.cb-done-btn:hover { opacity: 0.92; transform: translateY(-1px); }

/* ============================================================
   CHOOSE YOUR MISSION SECTION
   Scoped under .missions / .mission-card
   ============================================================ */

.missions-backdrop {
  background: #ffffff;
  width: 100%;
  padding: 40px 20px;
}

.missions {
  background: #12071f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 48px 40px;
  margin: 40px auto;
  max-width: 1200px;
}

.missions .section-header {
  text-align: center;
  margin-bottom: 36px;
}

.missions .section-header h2 {
  display: inline-block;
  position: relative;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 2px;
  color: #ffffff;
  margin: 0 0 10px 0;
  padding: 0 24px;
}

.missions .section-header h2::before,
.missions .section-header h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff3d9a);
}

.missions .section-header h2::before { right: 100%; }
.missions .section-header h2::after  { left: 100%; transform: scaleX(-1); }

.missions .section-header p {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #a9a4c0;
  margin: 0;
}

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

@media (max-width: 900px) {
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .mission-grid { grid-template-columns: 1fr; }
  .missions { padding: 32px 20px; }
}

.mission-card {
  position: relative;
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px 24px 28px 24px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.mission-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
}

.mission-card:focus-visible {
  outline: 2px solid #ff3d9a;
  outline-offset: 3px;
}

.mission-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid currentColor;
}

.mission-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 1px;
  margin: 0 0 10px 0;
}

.mission-tagline {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #e8e6f0;
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.mission-desc {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #8f8aa8;
  margin: 0;
  line-height: 1.5;
}

.mission-arrow {
  position: absolute;
  bottom: 22px;
  right: 22px;
  font-size: 14px;
  transition: transform 0.25s ease;
}

.mission-card:hover .mission-arrow {
  transform: translateX(4px);
}

.mission-card--love    { color: #ff5c8a; border-color: rgba(255, 92, 138, 0.45); box-shadow: 0 0 14px rgba(255, 92, 138, 0.25), 0 0 30px rgba(255, 92, 138, 0.10); }
.mission-card--life    { color: #ffb648; border-color: rgba(255, 182, 72, 0.45);  box-shadow: 0 0 14px rgba(255, 182, 72, 0.25),  0 0 30px rgba(255, 182, 72, 0.10); }
.mission-card--money   { color: #4ee08a; border-color: rgba(78, 224, 138, 0.45);  box-shadow: 0 0 14px rgba(78, 224, 138, 0.25),  0 0 30px rgba(78, 224, 138, 0.10); }
.mission-card--career  { color: #4ea8ff; border-color: rgba(78, 168, 255, 0.45);  box-shadow: 0 0 14px rgba(78, 168, 255, 0.25),  0 0 30px rgba(78, 168, 255, 0.10); }
.mission-card--courage { color: #b06bff; border-color: rgba(176, 107, 255, 0.45); box-shadow: 0 0 14px rgba(176, 107, 255, 0.25), 0 0 30px rgba(176, 107, 255, 0.10); }
.mission-card--health  { color: #37c4d9; border-color: rgba(55, 196, 217, 0.45);  box-shadow: 0 0 14px rgba(55, 196, 217, 0.25),  0 0 30px rgba(55, 196, 217, 0.10); }

.mission-card--love h3    { color: #ff5c8a; }
.mission-card--life h3    { color: #ffb648; }
.mission-card--money h3   { color: #4ee08a; }
.mission-card--career h3  { color: #4ea8ff; }
.mission-card--courage h3 { color: #b06bff; }
.mission-card--health h3  { color: #37c4d9; }

.mission-card--love:hover    { border-color: rgba(255, 92, 138, 0.8);  box-shadow: 0 0 20px rgba(255, 92, 138, 0.50), 0 0 50px rgba(255, 92, 138, 0.20); }
.mission-card--life:hover    { border-color: rgba(255, 182, 72, 0.8);   box-shadow: 0 0 20px rgba(255, 182, 72, 0.50),  0 0 50px rgba(255, 182, 72, 0.20); }
.mission-card--money:hover   { border-color: rgba(78, 224, 138, 0.8);   box-shadow: 0 0 20px rgba(78, 224, 138, 0.50),  0 0 50px rgba(78, 224, 138, 0.20); }
.mission-card--career:hover  { border-color: rgba(78, 168, 255, 0.8);   box-shadow: 0 0 20px rgba(78, 168, 255, 0.50),  0 0 50px rgba(78, 168, 255, 0.20); }
.mission-card--courage:hover { border-color: rgba(176, 107, 255, 0.8);  box-shadow: 0 0 20px rgba(176, 107, 255, 0.50), 0 0 50px rgba(176, 107, 255, 0.20); }
.mission-card--health:hover  { border-color: rgba(55, 196, 217, 0.8);   box-shadow: 0 0 20px rgba(55, 196, 217, 0.50),  0 0 50px rgba(55, 196, 217, 0.20); }

@media (prefers-reduced-motion: reduce) {
  .mission-card,
  .mission-card:hover,
  .mission-arrow,
  .mission-card:hover .mission-arrow {
    transition: none;
    transform: none;
  }
}

/* ============================================================
   CINEMATIC TYPOGRAPHY & SECTION POLISH
   Scoped to #landingPage — does not affect app dashboard
   ============================================================ */

/* ── Landing page body font ── */
#landingPage p,
#landingPage .lp-step-body,
#landingPage .lp-wi-body,
#landingPage .lp-science-note,
#landingPage .lp-preview-sub,
#landingPage .lp-microcopy,
#landingPage .lp-testimonial-quote,
#landingPage .lp-testimonial-attr {
  font-family: 'Manrope', sans-serif;
}

/* ── Cinematic section headings ── */
.lp-cinematic-h {
  font-family: 'Bebas Neue', sans-serif !important;
  letter-spacing: 5px !important;
  text-shadow:
    0 0 18px rgba(255, 47, 166, 0.45),
    0 0 30px rgba(0, 225, 255, 0.25);
}

/* Neon accent lines — removed from individual headings; now handled by .lp-section-header wrapper */
.lp-cinematic-h::before,
.lp-cinematic-h::after {
  content: none;
}

/* Dark-section headings: suppress glow (now only needed if outside a dark bg) */
.lp-dark-h.lp-cinematic-h {
  text-shadow: none;
  color: #1a0a2e;
}
.lp-dark-h.lp-cinematic-h::before,
.lp-dark-h.lp-cinematic-h::after {
  content: none;
}

/* ── Section header wrapper — full-width rule lines above + below ── */
.lp-section-header {
  position: relative;
  text-align: center;
  padding: 28px 0 32px;
  margin-bottom: 8px;
}
.lp-section-header::before,
.lp-section-header::after {
  content: '';
  display: block;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 47, 166, 0.75) 25%,
    rgba(0, 225, 255, 0.75) 75%,
    transparent 100%
  );
}
.lp-section-header::before {
  margin-bottom: 28px;
}
.lp-section-header::after {
  margin-top: 24px;
}

/* Inside the wrapper: zero out margins that assumed sibling layout */
.lp-section-header .lp-cinematic-h,
.lp-section-header .lp-final-h {
  margin: 0 0 10px 0;
}
.lp-section-header .lp-section-sub,
.lp-section-header .lp-final-sub {
  margin: 0;
}

/* Ensure dark headings inside a dark section render white */
.lp-whats-inside .lp-section-header .lp-dark-h.lp-cinematic-h {
  color: #fff;
  text-shadow:
    0 0 14px rgba(255, 40, 160, 0.35),
    0 0 30px rgba(0, 220, 255, 0.18);
}

/* ── Section subtitles ── */
.lp-section-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.60);
  text-align: center;
  margin: -18px 0 40px;
  letter-spacing: 0.3px;
}
.lp-section-sub--dark {
  color: rgba(40, 20, 60, 0.65);
}

/* ── Section gradient depth + scanlines ── */
.lp-how {
  background: linear-gradient(155deg, #1e0b35 0%, #0e1b40 55%, #0b0f28 100%) !important;
  position: relative;
  overflow: hidden;
}
.lp-preview {
  background: linear-gradient(155deg, #0b0f28 0%, #1e0b35 100%) !important;
  position: relative;
  overflow: hidden;
}

/* VHS scanline texture — CSS only, very subtle */
.lp-how::after,
.lp-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.035) 3px,
    rgba(0, 0, 0, 0.035) 4px
  );
  pointer-events: none;
  z-index: 0;
}
.lp-how .lp-container,
.lp-preview .lp-container {
  position: relative;
  z-index: 1;
}

/* ── Step copy in off-white ── */
.lp-how .lp-step-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: #f0ead6;
}
.lp-how .lp-step-body {
  color: rgba(240, 234, 214, 0.72);
}
.lp-how .lp-step-num {
  color: #ff2fa6;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
}
.lp-how .lp-science-note {
  color: rgba(240, 234, 214, 0.55);
}

/* ── Mission card typography upgrades ── */
.mission-card h3 {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 26px !important;
  letter-spacing: 3px !important;
  margin: 0 0 6px 0 !important;
}
.mission-tagline {
  font-family: 'Manrope', sans-serif !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}
.mission-desc {
  font-family: 'Manrope', sans-serif !important;
  font-size: 12.5px !important;
  line-height: 1.6 !important;
}

/* ── Choose Your Mission → match Feature Presentation dark theme ── */
.missions-backdrop {
  background: linear-gradient(155deg, #110828 0%, #0d1835 55%, #0a0f22 100%) !important;
  padding: 72px 20px !important;
  position: relative;
  overflow: hidden;
}
.missions-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.035) 3px,
    rgba(0,0,0,0.035) 4px
  );
  pointer-events: none;
  z-index: 0;
}
.missions {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 auto !important;
  position: relative;
  z-index: 1;
}
.missions .section-header h2 {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 64px !important;
  letter-spacing: 5px !important;
  font-weight: 400 !important;
  color: #fff !important;
  padding: 0 24px !important;
  text-shadow:
    0 0 14px rgba(255, 40, 160, 0.35),
    0 0 30px rgba(0, 220, 255, 0.18) !important;
}
.missions .section-header p {
  font-family: 'Manrope', sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.60) !important;
}

/* ── Yellowtail utility — apply sparingly as accent ── */
.accent-script {
  font-family: 'Yellowtail', cursive;
  font-size: 1.1em;
}

/* ============================================================
   HERO — cinematic typography + background polish
   ============================================================ */

/* Deeper gradient + ambient pink/cyan glows */
.lp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 14% 55%, rgba(255, 47, 166, 0.22) 0%, transparent 52%),
    radial-gradient(ellipse at 86% 32%, rgba(0, 225, 255, 0.14) 0%, transparent 48%),
    linear-gradient(140deg, #120b2e 0%, #1b1250 45%, #0b1c30 100%) !important;
}

/* VHS scanline texture */
.lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.030) 3px,
    rgba(0, 0, 0, 0.030) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* Neon divider line at the bottom edge of the hero */
.lp-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #ff2fa6 28%, #00e1ff 72%, transparent 100%);
  z-index: 10;
}

/* Ensure hero content sits above pseudo-elements */
.lp-hero .lp-container {
  position: relative;
  z-index: 1;
}

/* Badge */
.lp-badge {
  font-family: 'Manrope', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  color: #ffd35c !important;
  border-color: rgba(255, 211, 92, 0.75) !important;
}

/* Hero headline */
.lp-h1 {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: clamp(54px, 7vw, 104px) !important;
  line-height: 0.92 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: #FFF7E8 !important;
  font-weight: 400 !important;
  margin-bottom: 22px !important;
  text-shadow:
    0 0 18px rgba(255, 47, 166, 0.40),
    0 0 38px rgba(0, 225, 255, 0.22);
}

/* Yellowtail accent script */
.lp-hero-accent {
  font-family: 'Yellowtail', cursive;
  font-size: clamp(24px, 3vw, 40px);
  color: #ff4fb8;
  text-shadow: 0 0 18px rgba(255, 79, 184, 0.45);
  margin: 0 0 24px 0;
  line-height: 1.2;
}

/* Hero paragraph */
.lp-hero-sub {
  font-family: 'Manrope', sans-serif !important;
  font-size: 18px !important;
  line-height: 1.7 !important;
  max-width: 560px !important;
  color: rgba(255, 255, 255, 0.86) !important;
  margin-bottom: 32px !important;
}

/* ============================================================
   SECTION SEPARATION — neon dividers + alternating hues
   ============================================================ */

/* ── Neon gradient divider line at the top of every dark section ── */
.missions-backdrop::before,
.lp-how::before,
.lp-whats-inside::before,
.lp-preview::before,
.lp-testimonial::before,
.lp-cta-final::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #ff2fa6 28%,
    #00e1ff 72%,
    transparent 100%
  );
  z-index: 10;
}

/* lp-testimonial and lp-cta-final need position:relative for ::before to work */
.lp-testimonial {
  position: relative;
}
.lp-cta-final {
  position: relative;
}

/* ── Background alternation: warm-purple ↔ cool-navy ── */

/* missions-backdrop + lp-whats-inside: warm purple-violet */
.missions-backdrop {
  background: linear-gradient(155deg, #130a2e 0%, #100f38 55%, #0d0a28 100%) !important;
}
.lp-whats-inside {
  background: linear-gradient(155deg, #130a2e 0%, #100f38 55%, #0d0a28 100%) !important;
}

/* lp-how + lp-preview: cool midnight navy */
.lp-how {
  background: linear-gradient(155deg, #060d22 0%, #0b1535 55%, #07101e 100%) !important;
}
.lp-preview {
  background: linear-gradient(155deg, #060d22 0%, #0c1130 100%) !important;
}

/* lp-testimonial: deepest near-black with faint warm undertone */
.lp-testimonial {
  background: #09071c;
}

/* lp-cta-final: keep its pink radial glow but deepen the base */
.lp-cta-final {
  background: radial-gradient(
    circle at 50% 40%,
    rgba(255, 47, 166, 0.18) 0%,
    transparent 65%
  ),
  #0a0818 !important;
}

/* ============================================================
   FEATURE PRESENTATION — unified mission-card design system
   ============================================================ */

/* Section: dark background to match mission cards section */
.lp-whats-inside {
  background: linear-gradient(155deg, #110828 0%, #0d1835 55%, #0a0f22 100%) !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  position: relative;
  overflow: hidden;
}
.lp-whats-inside::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.035) 3px,
    rgba(0,0,0,0.035) 4px
  );
  pointer-events: none;
  z-index: 0;
}
.lp-whats-inside .lp-container {
  position: relative;
  z-index: 1;
}

/* Heading + subtitle: restore white text now that bg is dark */
.lp-whats-inside .lp-dark-h.lp-cinematic-h {
  color: #fff;
  text-shadow:
    0 0 14px rgba(255, 40, 160, 0.35),
    0 0 30px rgba(0, 220, 255, 0.18);
}
.lp-whats-inside .lp-section-sub--dark {
  color: rgba(255,255,255,0.58);
}

/* ── Feature card: full design-system match ── */
.lp-wi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.lp-wi-card {
  background: #1A102A !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 22px !important;
  padding: 28px !important;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 20px rgba(255,70,170,0.10);
  transition: all .28s ease;
  cursor: default;
}
.lp-wi-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Icon badge */
.lp-wi-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
  flex-shrink: 0;
  border: 1px solid #FF5AA5;
}

/* Card title */
.lp-wi-title {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 28px !important;
  letter-spacing: 1.5px !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  color: #fff !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.1 !important;
}

/* Card tagline (bold accent line) */
.lp-wi-tagline {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #FF5AA5;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Card body */
.lp-wi-body {
  font-family: 'Manrope', sans-serif !important;
  font-size: 13.5px !important;
  line-height: 1.65 !important;
  color: rgba(255,255,255,0.55) !important;
  flex: 1;
  margin-bottom: 20px !important;
}

/* Card arrow */
.lp-wi-arrow {
  display: block;
  text-align: right;
  font-size: 18px;
  font-weight: 700;
  opacity: 0.65;
  transition: opacity .2s ease, transform .2s ease;
  color: #FF5AA5;
}
.lp-wi-card:hover .lp-wi-arrow {
  opacity: 1;
  transform: translateX(5px);
}

/* ── Per-card accent colors ── */
.lp-wi-card--daily {
  box-shadow: 0 0 20px rgba(255,90,165,0.10);
}
.lp-wi-card--daily .lp-wi-badge {
  border-color: #FF5AA5;
  box-shadow: 0 0 12px rgba(255,90,165,0.35);
}
.lp-wi-card--daily .lp-wi-tagline,
.lp-wi-card--daily .lp-wi-arrow { color: #FF5AA5; }
.lp-wi-card--daily:hover {
  border-color: rgba(255,90,165,0.7) !important;
  box-shadow: 0 0 45px rgba(255,90,165,0.28);
}

.lp-wi-card--trapper {
  box-shadow: 0 0 20px rgba(255,199,58,0.10);
}
.lp-wi-card--trapper .lp-wi-badge {
  border-color: #FFC73A;
  box-shadow: 0 0 12px rgba(255,199,58,0.35);
}
.lp-wi-card--trapper .lp-wi-tagline,
.lp-wi-card--trapper .lp-wi-arrow { color: #FFC73A; }
.lp-wi-card--trapper:hover {
  border-color: rgba(255,199,58,0.7) !important;
  box-shadow: 0 0 45px rgba(255,199,58,0.28);
}

.lp-wi-card--breath {
  box-shadow: 0 0 20px rgba(48,232,255,0.10);
}
.lp-wi-card--breath .lp-wi-badge {
  border-color: #30E8FF;
  box-shadow: 0 0 12px rgba(48,232,255,0.35);
}
.lp-wi-card--breath .lp-wi-tagline,
.lp-wi-card--breath .lp-wi-arrow { color: #30E8FF; }
.lp-wi-card--breath:hover {
  border-color: rgba(48,232,255,0.7) !important;
  box-shadow: 0 0 45px rgba(48,232,255,0.28);
}

.lp-wi-card--rewind {
  box-shadow: 0 0 20px rgba(174,104,255,0.10);
}
.lp-wi-card--rewind .lp-wi-badge {
  border-color: #AE68FF;
  box-shadow: 0 0 12px rgba(174,104,255,0.35);
}
.lp-wi-card--rewind .lp-wi-tagline,
.lp-wi-card--rewind .lp-wi-arrow { color: #AE68FF; }
.lp-wi-card--rewind:hover {
  border-color: rgba(174,104,255,0.7) !important;
  box-shadow: 0 0 45px rgba(174,104,255,0.28);
}

.lp-wi-card--leaderboard {
  box-shadow: 0 0 20px rgba(77,255,157,0.10);
}
.lp-wi-card--leaderboard .lp-wi-badge {
  border-color: #4DFF9D;
  box-shadow: 0 0 12px rgba(77,255,157,0.35);
}
.lp-wi-card--leaderboard .lp-wi-tagline,
.lp-wi-card--leaderboard .lp-wi-arrow { color: #4DFF9D; }
.lp-wi-card--leaderboard:hover {
  border-color: rgba(77,255,157,0.7) !important;
  box-shadow: 0 0 45px rgba(77,255,157,0.28);
}

.lp-wi-card--ai {
  box-shadow: 0 0 20px rgba(68,168,255,0.10);
}
.lp-wi-card--ai .lp-wi-badge {
  border-color: #44A8FF;
  box-shadow: 0 0 12px rgba(68,168,255,0.35);
}
.lp-wi-card--ai .lp-wi-tagline,
.lp-wi-card--ai .lp-wi-arrow { color: #44A8FF; }
.lp-wi-card--ai:hover {
  border-color: rgba(68,168,255,0.7) !important;
  box-shadow: 0 0 45px rgba(68,168,255,0.28);
}

/* Responsive: 2-col on tablet */
@media (max-width: 900px) {
  .lp-wi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .lp-wi-grid { grid-template-columns: 1fr; }
}

/* ── COACH BOOM POP ────────────────────────────────────────────────────────── */
#boomPopOverlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 2, 16, 0.88);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
#boomPopOverlay.bpop-visible {
  opacity: 1;
}

#boomPopCard {
  text-align: center;
  max-width: 380px;
  transform: scale(0.82) translateY(16px);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#boomPopOverlay.bpop-visible #boomPopCard {
  transform: scale(1) translateY(0);
}

.bpop-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(255, 47, 166, 0.55));
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.bpop-label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #ff4fb8;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.bpop-quote {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 4vw, 30px);
  color: #FFF7E8;
  line-height: 1.18;
  letter-spacing: 1.5px;
  margin: 0 0 20px 0;
  text-shadow: 0 0 20px rgba(255, 47, 166, 0.35);
}

.bpop-dismiss {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── COACH BOOM — mission card presence upgrade ──────────────────────────── */
.mc-pumped-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 8px 0 16px;
  position: relative;
}

/* Soft radial glow behind him */
.mc-pumped-row::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 90px;
  background: radial-gradient(ellipse, rgba(255, 47, 166, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

/* Pulsing "TAP ME" hint under the mascot */
.mc-pumped-row::after {
  content: '💥 TAP COACH BOOM';
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: rgba(255, 79, 184, 0.8);
  animation: boomHintPulse 2.2s ease-in-out infinite;
  margin-top: 4px;
  z-index: 1;
}

@keyframes boomHintPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.97); }
  50%       { opacity: 1;   transform: scale(1.03); }
}

/* Bigger mascot + idle float */
.mc-pumped-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  cursor: pointer;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 14px rgba(255, 47, 166, 0.45));
  animation: boomFloat 3s ease-in-out infinite;
  transform-origin: bottom center;
}

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

/* Hover: wiggle + rise + intensify glow */
.mc-pumped-img:hover {
  animation: boomWiggle 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
  filter: drop-shadow(0 0 22px rgba(255, 47, 166, 0.8))
          drop-shadow(0 0 8px rgba(255, 211, 92, 0.35));
}

@keyframes boomWiggle {
  0%   { transform: translateY(0)    rotate(0deg)   scale(1);    }
  12%  { transform: translateY(-11px) rotate(-8deg) scale(1.08); }
  25%  { transform: translateY(-15px) rotate(7deg)  scale(1.13); }
  38%  { transform: translateY(-11px) rotate(-5deg) scale(1.1);  }
  52%  { transform: translateY(-13px) rotate(4deg)  scale(1.08); }
  65%  { transform: translateY(-8px)  rotate(-3deg) scale(1.05); }
  78%  { transform: translateY(-5px)  rotate(2deg)  scale(1.03); }
  90%  { transform: translateY(-2px)  rotate(-1deg) scale(1.01); }
  100% { transform: translateY(0)    rotate(0deg)   scale(1);    }
}

/* ── LOGO PANEL — atmosphere, glow & movement ─────────────────────────────── */
.logo-panel {
  background: radial-gradient(ellipse at 50% 60%, #1e0640 0%, #0D0D1A 70%) !important;
  position: relative;
}

/* Pulsing colour orb that breathes behind the logo */
.logo-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 58%,
      rgba(255, 47, 166, 0.22) 0%,
      rgba(0, 210, 255, 0.10) 45%,
      transparent 78%);
  animation: logoPanelGlow 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes logoPanelGlow {
  0%, 100% { opacity: 0.55; transform: scale(1);    }
  50%       { opacity: 1;    transform: scale(1.10); }
}

/* Logo image: gentle float + neon drop-shadow */
.logo-panel img {
  animation: logoFloat 5.5s ease-in-out infinite;
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(0 0 22px rgba(255, 47, 166, 0.45))
    drop-shadow(0 0 10px rgba(0, 200, 255, 0.22))
    drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px)  scale(1);    }
  50%       { transform: translateY(-7px) scale(1.025); }
}

/* ── LOGO PANEL — remove square bg + Y-axis spin (revision) ────────────────── */
/* Kill the rectangle that was created by the previous background override */
.logo-panel {
  background: transparent !important;
}

/* Logo: slow 3D coin-flip on Y axis + slightly larger + neon glow */
.logo-panel img {
  animation: logoCoinFlip 9s ease-in-out infinite !important;
  transform-style: preserve-3d;
}

@keyframes logoCoinFlip {
  0%,  36% { transform: scale(1.08) perspective(500px) rotateY(0deg); }
  64%, 100% { transform: scale(1.08) perspective(500px) rotateY(360deg); }
}

/* ── LOGO PANEL — stop spin, circular glow, hover-only effect (final) ──────── */
.logo-panel {
  background: transparent !important;
  overflow: visible !important;
}

/* Circular glow orb — no longer a rectangle */
.logo-panel::before {
  border-radius: 50% !important;
  inset: 8% 4% 8% 4% !important;
}

/* No auto-animation — hover triggers the effect instead */
.logo-panel img {
  animation: none !important;
  transform: scale(1.05);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.logo-panel:hover img {
  transform: scale(1.12) !important;
  filter:
    drop-shadow(0 0 30px rgba(255, 47, 166, 0.70))
    drop-shadow(0 0 14px rgba(0, 200, 255, 0.40))
    drop-shadow(0 8px 22px rgba(0, 0, 0, 0.60)) !important;
}

/* ============================================================
   MOBILE FIXES — ASK PANEL + MISSION MODAL  (≤ 680 px)
   Targets four issues seen on Android:
     1. Input area too tall → answer never visible / appears frozen
     2. Header title wraps → crowded top bar
     3. Mission task cards too tall → text wraps to 5 lines
     4. Mission Complete + Pass It Forward side-by-side → button text wraps
   ============================================================ */
@media (max-width: 680px) {

  /* ── 1a. Header: hide long suffix, shrink font → title stays one line ── */
  .cop-title-sub { display: none; }
  .cop-title { font-size: 14px; letter-spacing: 1px; }

  /* ── 1b. Reduce input-area padding ── */
  .chat-overlay-panel .input-area { padding: 8px 12px 10px !important; }

  /* ── 1c. Example chips — already nowrap globally; mobile tweak only ── */
  .examples { -webkit-overflow-scrolling: touch; padding-bottom: 2px; margin-bottom: 8px; }

  /* ── 1d. Hide keyboard-shortcut hint (meaningless on mobile) ── */
  .if-tip { display: none !important; }

  /* ── 1e. Hide mode-selector legend (saves ~20 px) ── */
  .mode-selector-legend { display: none !important; }

  /* ── 1f. Hide the entire input footer on mobile.
          Voice toggle is already in the header; mode-selector buttons
          are power-user features unnecessary on a small screen.
          This reclaims ~50–70 px of chrome height. ── */
  .chat-overlay-panel .input-footer { display: none !important; }

  /* ── 1g. Streak bar: tighter padding + single non-wrapping row.
           Only show flame + count + interaction counter; hide the
           week-dots, label, and message to prevent multi-row wrap. ── */
  .chat-overlay-panel .streak-bar { padding: 6px 12px !important; margin-top: 0 !important; }
  .chat-overlay-panel .streak-inner { flex-wrap: nowrap !important; gap: 8px !important; }
  .chat-overlay-panel .streak-dots   { display: none !important; }
  .chat-overlay-panel .streak-label  { display: none !important; }
  .chat-overlay-panel .streak-msg    { display: none !important; }
  /* Also hide the mixtape-specific classes that map to the same elements */
  .chat-overlay-panel .mixtape-reel  { display: none !important; }
  .chat-overlay-panel .mixtape-msg   { display: none !important; }

  /* ── 2. Ensure feed has enough minimum height to show answers ── */
  .chat-overlay-panel #feedWrap { min-height: 160px; }

  /* ── 3. Mission action cards: smaller so task text wraps less ── */
  .mc-check {
    min-height: 48px !important;
    padding: 10px 12px !important;
    gap: 10px !important;
    font-size: 14px !important;
  }
  .mc-action-label { font-size: 14px !important; line-height: 1.35; }
  .mc-checkbox { width: 26px !important; height: 26px !important; font-size: 12px !important; }
  .mc-mins { font-size: 11px !important; }

  /* ── 4. Mission complete buttons: stack vertically ── */
  .mc-final-btns { flex-direction: column !important; gap: 8px !important; }
  .mc-final-btns .mc-complete-btn {
    flex: none !important;
    width: 100% !important;
    margin-top: 0 !important;
  }
  .mc-final-btns button:last-child {
    flex: none !important;
    width: 100% !important;
    white-space: normal !important;
  }

  /* ── 5. Compact rating row inside chat panel (saves ~120px) ── */
  .chat-overlay-panel .rating-label { display: none; }
  .chat-overlay-panel .rating-row { padding: 8px 0 0; gap: 6px; }
  .chat-overlay-panel .rate-btn {
    min-height: 36px;
    padding: 5px 10px;
    font-size: 11px;
  }

  /* ── 6. Smaller streak count inside chat panel (saves ~10px) ── */
  .chat-overlay-panel .streak-count { font-size: 22px; }
}

/* ══════════════════════════════════════════════════════════════
   INTRO VIDEO OVERLAY
═══════════════════════════════════════════════════════════════ */
#introOverlay {
  position: fixed;
  inset: 0;
  /* Use dynamic viewport height so Android address bar doesn't clip the overlay */
  height: 100vh;
  height: 100dvh;
  z-index: 999999;
  background: #000;
  display: none; /* JS shows it on first visit only */
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#introVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

#introSkipBtn {
  position: absolute;
  bottom: max(28px, calc(12px + env(safe-area-inset-bottom, 0px)));
  right: 28px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.72);
  padding: 8px 18px 8px 14px;
  font-family: 'Bebas Neue', Rajdhani, sans-serif;
  font-size: 14px;
  letter-spacing: 1.5px;
  cursor: pointer;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  pointer-events: none; /* JS makes it visible after 1.5 s */
  opacity: 0;
}

#introSkipBtn:hover {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

/* ── Play/Pause toggle — bottom left ── */
#introPauseBtn {
  position: absolute;
  bottom: max(28px, calc(12px + env(safe-area-inset-bottom, 0px)));
  left: 28px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  opacity: 0;
  pointer-events: none;
}
#introPauseBtn:hover {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

/* ── Autoplay-blocked overlay — big center play button ── */
#introPlayOverlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.intro-big-play {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  font-family: 'Bebas Neue', Rajdhani, sans-serif;
  font-size: 22px;
  letter-spacing: 3px;
  padding: 18px 48px;
  cursor: pointer;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
}
.intro-big-play:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* ── PRESS START — appears when video ends, anchored to bottom ── */
#introPressStart {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 32px 28px max(44px, calc(28px + env(safe-area-inset-bottom, 0px)));
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.65) 65%, transparent 100%);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

/* ── Unmute button — top right corner ── */
#introUnmuteBtn {
  position: absolute;
  top: max(20px, env(safe-area-inset-top, 20px));
  right: 20px;
  z-index: 4;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.75);
  padding: 7px 14px;
  font-family: 'Bebas Neue', Rajdhani, sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  cursor: pointer;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
#introUnmuteBtn:hover,
#introUnmuteBtn.intro-unmuted {
  background: rgba(0, 0, 0, 0.75);
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.5);
}

/* ── Landscape on mobile: compact everything so it fits ── */
@media (max-height: 500px) and (orientation: landscape) {
  #introPressStart {
    padding: 10px 20px max(16px, calc(8px + env(safe-area-inset-bottom, 0px)));
    gap: 8px;
  }
  .intro-enter-btn {
    padding: 10px 28px;
  }
  .intro-enter-label {
    font-size: 20px;
    letter-spacing: 5px;
  }
  .intro-enter-sub {
    font-size: 10px;
    letter-spacing: 2.5px;
  }
  .intro-replay-btn {
    font-size: 10px;
  }
  #introSkipBtn {
    bottom: max(12px, calc(8px + env(safe-area-inset-bottom, 0px)));
    right: max(20px, calc(8px + env(safe-area-inset-right, 0px)));
    font-size: 12px;
    padding: 6px 14px;
  }
  #introPauseBtn {
    bottom: max(12px, calc(8px + env(safe-area-inset-bottom, 0px)));
    left: max(20px, calc(8px + env(safe-area-inset-left, 0px)));
    width: 34px;
    height: 34px;
  }
}
.intro-enter-btn {
  background: transparent;
  border: 2px solid rgba(255, 215, 0, 0.75);
  color: #ffd700;
  font-family: 'Bebas Neue', Rajdhani, sans-serif;
  cursor: pointer;
  border-radius: 8px;
  padding: 24px 56px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  animation: introBtnPulse 1.6s ease-in-out infinite;
}
.intro-enter-btn:hover {
  background: rgba(255, 215, 0, 0.12);
  border-color: #ffd700;
  animation: none;
  transform: scale(1.04);
}
.intro-enter-label {
  font-size: 38px;
  letter-spacing: 6px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.65);
}
.intro-enter-sub {
  font-size: 13px;
  letter-spacing: 3.5px;
  opacity: 0.65;
  text-transform: uppercase;
}
.intro-replay-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 14px;
  transition: color 0.2s;
}
.intro-replay-btn:hover { color: rgba(255, 255, 255, 0.72); }

@keyframes introBtnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);   border-color: rgba(255, 215, 0, 0.75); }
  50%       { box-shadow: 0 0 22px 4px rgba(255, 215, 0, 0.3); border-color: rgba(255, 215, 0, 1);  }
}

@keyframes introFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.intro-fading {
  animation: introFadeOut 0.7s ease forwards;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   PASS THE TAPE — Referral Modal (T003)
═══════════════════════════════════════════════════════════════ */
.ptt-panel {
  background: linear-gradient(135deg, #1a0a2e, #0a1a2e);
  border: 1.5px solid rgba(255,215,0,0.3);
  border-radius: 20px;
  max-width: 400px;
  width: 100%;
  padding: 32px 28px;
  position: relative;
  font-family: Rajdhani, sans-serif;
}
.ptt-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: rgba(255,255,255,0.35);
  font-size: 18px; cursor: pointer;
}
.ptt-icon { font-size: 36px; text-align: center; margin-bottom: 10px; }
.ptt-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px; letter-spacing: 2px;
  color: #FFD700; text-align: center; margin-bottom: 4px;
}
.ptt-sub {
  font-size: 13px; color: rgba(255,255,255,0.55);
  text-align: center; line-height: 1.5; margin-bottom: 18px;
}
.ptt-count {
  background: rgba(95,242,178,0.1);
  border: 1px solid rgba(95,242,178,0.3);
  border-radius: 8px; padding: 8px 12px;
  font-size: 12px; color: #5FF2B2;
  text-align: center; margin-bottom: 14px;
}
.ptt-url-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 10px 14px;
  font-family: monospace; font-size: 11px;
  color: rgba(255,255,255,0.6); word-break: break-all;
  line-height: 1.6; margin-bottom: 14px;
}
.ptt-share-btn {
  width: 100%;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border: none; border-radius: 10px;
  padding: 14px; color: #1a0a2e;
  font-family: Rajdhani, sans-serif; font-weight: 700;
  font-size: 15px; letter-spacing: 1px;
  cursor: pointer; margin-bottom: 8px; display: block;
}
.ptt-copy-btn {
  width: 100%;
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 10px; padding: 11px;
  color: #FFD700; font-family: Rajdhani, sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: 1px;
  cursor: pointer; display: block;
}

/* ══════════════════════════════════════════════════════════════
   CONTEXTUAL BRIDGE PROMPT (T010)
═══════════════════════════════════════════════════════════════ */
.context-bridge-prompt {
  margin: 16px 0 8px;
  animation: cbpSlideIn 0.4s ease;
}
@keyframes cbpSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cbp-inner {
  background: linear-gradient(135deg, rgba(95,242,178,0.07), rgba(29,230,255,0.05));
  border: 1px solid rgba(95,242,178,0.22);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.cbp-dismiss {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none;
  color: rgba(255,255,255,0.3); font-size: 14px; cursor: pointer;
}
.cbp-emoji { font-size: 22px; }
.cbp-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px; letter-spacing: 1.5px;
  color: #5FF2B2; opacity: 0.8;
}
.cbp-text {
  font-size: 13px; color: rgba(255,255,255,0.75);
  line-height: 1.45;
}
.cbp-btn {
  align-self: flex-start;
  background: rgba(95,242,178,0.15);
  border: 1px solid rgba(95,242,178,0.35);
  border-radius: 8px; padding: 7px 14px;
  color: #5FF2B2; font-family: Rajdhani, sans-serif;
  font-weight: 700; font-size: 12px; letter-spacing: 0.5px;
  cursor: pointer; margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════
   FIELD NOTES (T005)
═══════════════════════════════════════════════════════════════ */
.fn-panel {
  background: linear-gradient(135deg, #0d1a0d, #0a1a2e);
  border: 1.5px solid rgba(95,242,178,0.22);
  border-radius: 20px; max-width: 440px; width: 100%;
  padding: 28px; position: relative;
  font-family: Rajdhani, sans-serif;
  max-height: 88vh; overflow-y: auto;
}
.fn-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: rgba(255,255,255,0.35);
  font-size: 18px; cursor: pointer;
}
.fn-icon { font-size: 32px; text-align: center; margin-bottom: 8px; }
.fn-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; letter-spacing: 2px;
  color: #5FF2B2; text-align: center; margin-bottom: 4px;
}
.fn-sub {
  font-size: 12px; color: rgba(255,255,255,0.45);
  text-align: center; margin-bottom: 18px;
}
.fn-input-row { display: flex; gap: 8px; margin-bottom: 18px; }
.fn-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 10px 12px;
  color: #fff; font-family: Rajdhani, sans-serif;
  font-size: 13px; outline: none;
}
.fn-input:focus { border-color: rgba(95,242,178,0.4); }
.fn-add-btn {
  background: #5FF2B2; border: none; border-radius: 8px;
  padding: 10px 14px; color: #0a1a0d;
  font-family: Rajdhani, sans-serif; font-weight: 700;
  font-size: 13px; cursor: pointer; white-space: nowrap;
}
.fn-empty {
  text-align: center; padding: 24px;
  color: rgba(255,255,255,0.3); font-size: 13px; line-height: 1.6;
}
.fn-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fn-item-icon { font-size: 18px; flex-shrink: 0; }
.fn-item-body { flex: 1; }
.fn-item-text { font-size: 13px; color: #e8e8ff; line-height: 1.4; }
.fn-item-date {
  font-size: 10px; color: rgba(255,255,255,0.3);
  font-family: monospace; margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════
   DISCOVERY REEL (T006)
═══════════════════════════════════════════════════════════════ */
.dr-panel {
  background: linear-gradient(135deg, #0a0a1e, #0d0920);
  border: 1.5px solid rgba(29,230,255,0.22);
  border-radius: 20px; max-width: 440px; width: 100%;
  padding: 28px; position: relative;
  font-family: Rajdhani, sans-serif;
  max-height: 88vh; overflow-y: auto;
}
.dr-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: rgba(255,255,255,0.35);
  font-size: 18px; cursor: pointer;
}
.dr-icon { font-size: 32px; text-align: center; margin-bottom: 8px; }
.dr-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; letter-spacing: 2px;
  color: #1DE6FF; text-align: center; margin-bottom: 4px;
}
.dr-sub {
  font-size: 12px; color: rgba(255,255,255,0.45);
  text-align: center; margin-bottom: 18px; line-height: 1.5;
}
.dr-empty {
  text-align: center; padding: 24px;
  color: rgba(255,255,255,0.3); font-size: 13px; line-height: 1.6;
}
.dr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dr-item-emoji { font-size: 24px; flex-shrink: 0; }
.dr-item-body { flex: 1; }
.dr-item-title { font-size: 14px; color: #e8e8ff; font-weight: 600; }
.dr-item-meta { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.dr-item-date { font-size: 10px; color: rgba(255,255,255,0.25); font-family: monospace; }

/* ══════════════════════════════════════════════════════════════
   GRATITUDE CARD (T007)
═══════════════════════════════════════════════════════════════ */
.gc-panel {
  background: linear-gradient(135deg, #1a0015, #0a0a2e);
  border: 1.5px solid rgba(255,47,143,0.3);
  border-radius: 20px; max-width: 420px; width: 100%;
  padding: 28px; position: relative;
  font-family: Rajdhani, sans-serif;
}
.gc-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: rgba(255,255,255,0.35);
  font-size: 18px; cursor: pointer;
}
.gc-icon { font-size: 32px; text-align: center; margin-bottom: 8px; }
.gc-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px; letter-spacing: 2px;
  color: #FF2F8F; text-align: center; margin-bottom: 4px;
}
.gc-sub {
  font-size: 12px; color: rgba(255,255,255,0.45);
  text-align: center; margin-bottom: 18px; line-height: 1.5;
}
.gc-input {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 10px 12px;
  color: #fff; font-family: Rajdhani, sans-serif;
  font-size: 13px; outline: none; margin-bottom: 10px; display: block;
}
.gc-input:focus { border-color: rgba(255,47,143,0.4); }
.gc-textarea {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 10px 12px;
  color: #fff; font-family: Rajdhani, sans-serif;
  font-size: 13px; outline: none; resize: vertical;
  margin-bottom: 12px; display: block; line-height: 1.5;
}
.gc-textarea:focus { border-color: rgba(255,47,143,0.4); }
.gc-status {
  font-size: 12px; text-align: center;
  min-height: 18px; margin-bottom: 10px;
}
.gc-send-btn {
  width: 100%;
  background: linear-gradient(135deg, #FF2F8F, #c01a6a);
  border: none; border-radius: 10px;
  padding: 14px; color: #fff;
  font-family: Rajdhani, sans-serif; font-weight: 700;
  font-size: 15px; letter-spacing: 1px; cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════
   GUEST COACHES (T008)
═══════════════════════════════════════════════════════════════ */
.gco-panel {
  background: linear-gradient(135deg, #0a0a1a, #1a0a0e);
  border: 1.5px solid rgba(255,165,0,0.25);
  border-radius: 20px; max-width: 460px; width: 100%;
  padding: 28px; position: relative;
  font-family: Rajdhani, sans-serif;
  max-height: 88vh; overflow-y: auto;
}
.gco-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: rgba(255,255,255,0.35);
  font-size: 18px; cursor: pointer;
}
.gco-icon { font-size: 32px; text-align: center; margin-bottom: 8px; }
.gco-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; letter-spacing: 2px;
  color: #FFA500; text-align: center; margin-bottom: 4px;
}
.gco-sub {
  font-size: 12px; color: rgba(255,255,255,0.45);
  text-align: center; margin-bottom: 18px; line-height: 1.5;
}
.gco-card {
  border: 1px solid rgba(255,165,0,0.2);
  border-radius: 14px; padding: 16px;
  margin-bottom: 14px; background: rgba(255,255,255,0.03);
}
.gco-card-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.gco-card-emoji { font-size: 30px; }
.gco-card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; letter-spacing: 1.5px;
}
.gco-card-tagline {
  font-size: 11px; opacity: 0.6; letter-spacing: 0.5px;
}
.gco-card-bio {
  font-size: 13px; color: rgba(255,255,255,0.6);
  line-height: 1.5; margin-bottom: 12px;
}
.gco-missions { display: flex; flex-direction: column; gap: 8px; }
.gco-mission {
  background: rgba(255,255,255,0.04);
  border-radius: 8px; padding: 10px 12px;
}
.gco-mission-label {
  font-weight: 700; font-size: 13px;
  color: rgba(255,255,255,0.85); margin-bottom: 3px;
}
.gco-mission-desc {
  font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════
   SEASONAL DROP TOAST (T009)
═══════════════════════════════════════════════════════════════ */
.seasonal-drop-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 40000;
  background: linear-gradient(135deg, #1a0a2e, #0a1a0a);
  border: 1.5px solid rgba(255,215,0,0.4);
  border-radius: 16px; padding: 16px 20px;
  max-width: 320px;
  font-family: Rajdhani, sans-serif;
  display: flex; align-items: flex-start; gap: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  animation: sdt-in 0.5s ease;
}
@keyframes sdt-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sdt-emoji { font-size: 30px; flex-shrink: 0; }
.sdt-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px; letter-spacing: 1.5px;
  color: #FFD700; margin-bottom: 5px;
}
.sdt-body { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* ── IMAGE ZOOM LIGHTBOX ─────────────────────────────────────── */
#imgZoomOverlay {
  display: none;
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(0,0,0,0.88);
  align-items: center; justify-content: center;
  cursor: zoom-out;
  animation: imgzoom-in 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
#imgZoomOverlay.open { display: flex; }
@keyframes imgzoom-in {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
#imgZoomImg {
  max-width: min(88vw, 560px);
  max-height: 80vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 12px;
  filter:
    drop-shadow(0 0 40px rgba(255,47,143,0.8))
    drop-shadow(0 0 80px rgba(29,230,255,0.5))
    drop-shadow(0 0 120px rgba(255,216,77,0.25));
  pointer-events: none;
}
.imgzoom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  cursor: default;
}
.imgzoom-caption {
  max-width: min(88vw, 520px);
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  margin: 0;
  padding: 0 8px;
  animation: imgzoom-in 0.32s cubic-bezier(0.34,1.56,0.64,1) 0.1s both;
}
.imgzoom-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8); font-size: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
  touch-action: manipulation;
}
.imgzoom-close:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   iOS SAFARI FIXES
   -webkit-touch-callout: none is only true on iOS Safari, making
   this @supports block a reliable iOS-only selector.
   ═══════════════════════════════════════════════════════════════ */
@supports (-webkit-touch-callout: none) {
  /* Prevent iOS auto-zoom when tapping any input/textarea.
     iOS zooms whenever font-size < 16px on a focused field.
     We bump to 16px only on iOS so desktop/Android visuals are unchanged. */
  input, textarea, select,
  .qinput, .ln-textarea, .lwm-textarea, .gc-textarea, .fn-input {
    font-size: 16px !important;
  }

  /* Momentum (inertia) scrolling on all scrollable containers */
  .dash-scroll,
  .app-sidebar,
  .chat-overlay-panel .feed,
  .stats-panel,
  .lm-body,
  .st-body,
  .avc-grid-wrap,
  .feed-col {
    -webkit-overflow-scrolling: touch;
  }

  /* Prevent double-tap zoom on buttons and nav items */
  button, a, .asb-nav-item, .ex, .dqa-btn, .rate-btn, .mc-rate-btn {
    touch-action: manipulation;
  }
}

/* ════════════════════════════════════════════════════════
   SIMPLIFIED NAV — More menu, Mobile Bottom Nav, Onboarding
   ════════════════════════════════════════════════════════ */

/* ── Simplified sidebar — core 5 items ─────────────────── */
.asb-more-btn {
  margin-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 10px !important;
  color: rgba(255,255,255,0.5) !important;
}
.asb-more-btn:hover { color: var(--text-primary) !important; }

/* ── More Menu full-screen overlay ─────────────────────── */
#moreMenuOverlay {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(3,3,13,0.98);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
}
#moreMenuOverlay.open { transform: translateX(0); }
.mm-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  padding-top: max(18px, calc(18px + env(safe-area-inset-top)));
}
.mm-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 22px;
  letter-spacing: 2px; color: var(--text-primary);
}
.mm-close {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6); border-radius: 50%;
  width: 38px; height: 38px; cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; flex-shrink: 0;
}
.mm-section-label {
  font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 2px; color: var(--muted); padding: 14px 20px 6px;
  text-transform: uppercase;
}
.mm-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; padding: 8px 16px;
}
.mm-item {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 7px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 18px 10px; cursor: pointer;
  font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 700;
  color: var(--text-secondary); text-align: center; text-decoration: none;
  transition: all .15s; min-height: 78px;
  touch-action: manipulation;
}
.mm-item:hover, .mm-item:active {
  background: rgba(255,42,168,0.08); border-color: rgba(255,42,168,0.22);
  color: var(--text-primary);
}
.mm-icon { font-size: 26px; line-height: 1; }

/* ── Mobile Bottom Tab Bar ──────────────────────────────── */
#mobileBottomNav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(3,3,13,0.98);
  border-top: 1px solid var(--border-subtle);
  z-index: 900;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mbn-inner {
  display: flex; align-items: stretch; justify-content: space-around;
  height: 56px;
  padding-bottom: env(safe-area-inset-bottom);
}
.mbn-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.38); font-family: 'Manrope', sans-serif;
  font-size: 9px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  min-height: 48px; transition: color .15s; padding: 6px 2px;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.mbn-btn:active { background: rgba(255,255,255,0.04); }
.mbn-icon { font-size: 20px; line-height: 1; display: block; }
.mbn-btn.mbn-active { color: var(--neon-pink); }
.mbn-btn.mbn-active .mbn-icon {
  filter: drop-shadow(0 0 5px rgba(255,42,168,0.7));
}

/* Hide bottom nav when ask panel is open so input area is fully reachable */
body.ask-panel-open #mobileBottomNav { display: none !important; }

@media (max-width: 768px) {
  /* Show bottom tab bar */
  #mobileBottomNav { display: block; }
  .mbn-inner { height: 56px; }
  /* Add bottom padding so content isn't hidden under tab bar */
  .app-main { padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important; }
  /* Hide hamburger — bottom nav replaces it */
  .atb-hamburger { display: none !important; }
  /* Safe area for top bar */
  .app-topbar {
    padding-top: max(13px, calc(8px + env(safe-area-inset-top)));
  }
}

/* ── Collapsible "Progress & More" section (mobile) ─────── */
@media (max-width: 768px) {
  /* Mission card — ensure START MISSION button is large enough on touch */
  #dashStartMissionBtn {
    min-height: 52px;
    font-size: 16px !important;
  }
  /* Storyline grid — single column on phone */
  .focus-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  /* Quick action buttons — bigger tap area */
  .dqa-btn { min-height: 72px; }
}

@media (max-width: 480px) {
  .focus-grid { grid-template-columns: 1fr !important; }
}

/* ── Onboarding overlay ─────────────────────────────────── */
#onboardingOverlay {
  position: fixed; inset: 0; z-index: 30000;
  background: rgba(3,3,13,0.97);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  padding-top: max(20px, calc(20px + env(safe-area-inset-top)));
  padding-bottom: max(20px, calc(20px + env(safe-area-inset-bottom)));
}
.ob-card {
  width: 100%; max-width: 460px;
  background: #130e28;
  border: 1px solid rgba(255,42,168,0.28);
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 60px rgba(255,42,168,0.12), 0 30px 80px rgba(0,0,0,0.6);
}
.ob-step {
  flex-direction: column;
  display: none;
}
.ob-hero {
  padding: 30px 28px 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,42,168,0.06) 0%, transparent 100%);
}
.ob-emoji { font-size: 54px; margin-bottom: 10px; display: block; }
.ob-tag {
  display: inline-block;
  font-family: 'Manrope', sans-serif; font-size: 9px; font-weight: 800;
  letter-spacing: 2.5px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.ob-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 2px;
  color: var(--text-primary); margin: 0 0 10px; line-height: 1.1;
}
.ob-body {
  font-family: 'Manrope', sans-serif; font-size: 14px; line-height: 1.65;
  color: rgba(255,255,255,0.65);
}
.ob-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px 22px; border-top: 1px solid rgba(255,255,255,0.06);
  gap: 12px;
}
.ob-dots { display: flex; gap: 6px; align-items: center; }
.ob-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.14); transition: background .2s, transform .2s;
}
.ob-dot.active { background: var(--neon-pink); transform: scale(1.2); }
.ob-skip {
  background: none; border: none; color: rgba(255,255,255,0.28);
  font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 600;
  cursor: pointer; padding: 8px 4px; touch-action: manipulation;
}
.ob-skip:hover { color: rgba(255,255,255,0.5); }
.ob-next {
  background: linear-gradient(135deg, #ff2f8f, #cc1060);
  color: #fff; border: none; border-radius: 12px;
  padding: 12px 26px;
  font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 800;
  cursor: pointer; transition: all .15s; white-space: nowrap;
  touch-action: manipulation; min-height: 48px;
}
.ob-next:hover { opacity: 0.9; transform: translateY(-1px); }
.ob-science-note {
  display: flex; align-items: flex-start; gap: 9px; text-align: left;
  margin-top: 14px; padding: 11px 14px; border-radius: 10px;
  background: rgba(29,230,255,0.05); border: 1px solid rgba(29,230,255,0.14);
  font-family: 'Manrope', sans-serif; font-size: 11.5px; line-height: 1.65;
  color: rgba(255,255,255,0.5);
}
.ob-science-note strong { color: rgba(29,230,255,0.85); font-weight: 700; }
.ob-science-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

/* ═══════════════════════════════════════════════════════════
   THE LOCKER — .tl-* namespace
   ═══════════════════════════════════════════════════════════ */

/* ── Overlay ─────────────────────────────────────────────── */
.tl-overlay {
  position: fixed; inset: 0; z-index: 20000;
  background: rgba(5, 4, 18, 0.96);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 16px; overflow-y: auto;
  opacity: 0; transition: opacity 0.18s ease;
}

/* ── Panel ───────────────────────────────────────────────── */
.tl-panel {
  background: linear-gradient(160deg, #0d0a22 0%, #0a1428 100%);
  border: 1px solid rgba(255, 79, 216, 0.22);
  border-radius: 18px;
  width: 100%; max-width: 720px;
  display: flex; flex-direction: column;
  min-height: min(92vh, 700px);
  box-shadow: 0 0 60px rgba(255, 79, 216, 0.10), 0 0 120px rgba(22, 180, 216, 0.06);
  overflow: hidden;
  margin-bottom: 16px;
}

/* ── Header ──────────────────────────────────────────────── */
.tl-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 0;
}
.tl-header-left { display: flex; align-items: center; gap: 10px; }
.tl-header-icon { font-size: 22px; }
.tl-header-title {
  font-family: 'Bebas Neue', 'Bungee', sans-serif;
  font-size: 22px; letter-spacing: 2.5px;
  color: #fff; line-height: 1;
}
.tl-close-btn {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5); font-size: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s; flex-shrink: 0;
}
.tl-close-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* ── Tab bar ─────────────────────────────────────────────── */
.tl-tabs {
  display: flex; gap: 2px;
  padding: 14px 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.tl-tab-btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px 10px;
  background: none; border: none;
  color: rgba(255,255,255,0.38);
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer; border-radius: 8px 8px 0 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.tl-tab-btn:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.04); }
.tl-tab-btn.tl-tab-active {
  color: #FF4FD8;
  border-bottom-color: #FF4FD8;
  background: rgba(255,79,216,0.06);
}
.tl-tab-icon { font-size: 16px; line-height: 1; }
.tl-tab-label { font-size: 10px; }
@media (min-width: 400px) { .tl-tab-label { font-size: 11px; } }

/* ── Tab body ────────────────────────────────────────────── */
.tl-body {
  flex: 1; overflow-y: auto;
  padding: 16px 16px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,79,216,0.3) transparent;
}
.tl-body::-webkit-scrollbar { width: 4px; }
.tl-body::-webkit-scrollbar-track { background: transparent; }
.tl-body::-webkit-scrollbar-thumb { background: rgba(255,79,216,0.3); border-radius: 99px; }

/* ── Shared list wrapper ─────────────────────────────────── */
.tl-list { display: flex; flex-direction: column; gap: 8px; }

/* ── Empty state ─────────────────────────────────────────── */
.tl-empty {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 48px 24px 32px;
}
.tl-empty-icon { font-size: 42px; margin-bottom: 14px; }
.tl-empty-headline {
  font-family: 'Bebas Neue', sans-serif; font-size: 20px;
  letter-spacing: 1.5px; color: #fff; margin-bottom: 10px;
}
.tl-empty-body {
  font-family: 'Manrope', sans-serif; font-size: 13px; line-height: 1.7;
  color: rgba(255,255,255,0.45); max-width: 320px;
}

/* ── Error state ─────────────────────────────────────────── */
.tl-error {
  padding: 24px; text-align: center;
  font-family: 'Manrope', sans-serif; font-size: 13px;
  color: rgba(255,100,100,0.8);
}

/* ── Section header (Missions "View Full History" row) ───── */
.tl-section-header {
  display: flex; justify-content: flex-end;
  margin-bottom: 12px;
}
.tl-view-all-btn {
  background: rgba(255,79,216,0.10); border: 1px solid rgba(255,79,216,0.25);
  color: #FF4FD8; font-family: 'Manrope', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em;
  padding: 7px 14px; border-radius: 8px; cursor: pointer;
  transition: background 0.15s;
}
.tl-view-all-btn:hover { background: rgba(255,79,216,0.2); }

/* ── WINS TAB ────────────────────────────────────────────── */
.tl-win-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(255,216,77,0.06), rgba(255,216,77,0.02));
  border: 1px solid rgba(255,216,77,0.15); border-radius: 11px;
}
.tl-win-ico { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.tl-win-body { flex: 1; min-width: 0; }
.tl-win-text {
  font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600;
  color: #fff; line-height: 1.5; margin-bottom: 5px;
  word-break: break-word;
}
.tl-win-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tl-win-cat {
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: #FFD84D; background: rgba(255,216,77,0.12);
  border: 1px solid rgba(255,216,77,0.2); border-radius: 99px; padding: 2px 8px;
}
.tl-win-date { font-size: 11px; color: rgba(255,255,255,0.3); font-family: monospace; }
.tl-win-xp {
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  color: #5FF2B2; background: rgba(95,242,178,0.10);
  border: 1px solid rgba(95,242,178,0.18); border-radius: 99px; padding: 2px 8px;
}

/* ── MISSIONS TAB ────────────────────────────────────────── */
.tl-mission-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(255,79,216,0.06), rgba(22,180,216,0.03));
  border: 1px solid rgba(255,79,216,0.18); border-radius: 11px;
}
.tl-mission-check { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.tl-mission-body { flex: 1; min-width: 0; }
.tl-mission-title {
  font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700;
  color: #fff; line-height: 1.4; margin-bottom: 3px;
}
.tl-mission-ref {
  font-size: 11px; color: rgba(255,79,216,0.7); font-style: italic;
  margin-bottom: 5px; line-height: 1.4;
}
.tl-mission-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-mission-date { font-size: 11px; color: rgba(255,255,255,0.3); font-family: monospace; }
.tl-mission-xp {
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  color: #5FF2B2; background: rgba(95,242,178,0.10);
  border: 1px solid rgba(95,242,178,0.18); border-radius: 99px; padding: 2px 8px;
}

/* ── NOTES TAB ───────────────────────────────────────────── */
.tl-notes-addbar {
  display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.tl-notes-add-btn {
  background: rgba(245,166,35,0.09); border: 1px solid rgba(245,166,35,0.25);
  color: #F5A623; font-family: 'Manrope', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em;
  padding: 7px 14px; border-radius: 8px; cursor: pointer;
  transition: background 0.15s;
}
.tl-notes-add-btn:hover { background: rgba(245,166,35,0.18); }

.tl-note-item {
  padding: 12px 14px;
  background: rgba(245,166,35,0.05); border: 1px solid rgba(245,166,35,0.14);
  border-radius: 11px;
}
.tl-note-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 7px; gap: 8px;
}
.tl-note-label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #F5A623;
}
.tl-note-date { font-size: 10px; color: rgba(255,255,255,0.25); font-family: monospace; flex-shrink: 0; }
.tl-note-text {
  font-family: 'Manrope', sans-serif; font-size: 13px; line-height: 1.65;
  color: rgba(255,255,255,0.80); word-break: break-word;
}

/* ── BADGES TAB ──────────────────────────────────────────── */
.tl-badge-section { margin-bottom: 28px; }
.tl-badge-section:last-child { margin-bottom: 0; }
.tl-badge-section-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 2px;
  color: rgba(255,255,255,0.75); margin-bottom: 6px;
}
.tl-badge-hint {
  font-size: 12px; color: rgba(255,255,255,0.38); line-height: 1.6;
  margin-bottom: 10px; font-family: 'Manrope', sans-serif;
}
.tl-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 9px;
}
.tl-badge-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 14px 10px 10px;
  text-align: center; opacity: 0.45;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  transition: opacity 0.2s, border-color 0.2s;
}
.tl-badge-card.tl-badge-earned {
  opacity: 1;
  background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16);
}
.tl-badge-emoji { font-size: 26px; line-height: 1; margin-bottom: 2px; }
.tl-badge-name {
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 800;
  color: #fff; line-height: 1.3; letter-spacing: 0.02em;
}
.tl-badge-desc {
  font-size: 10px; color: rgba(255,255,255,0.45); line-height: 1.4;
  font-family: 'Manrope', sans-serif;
}
.tl-badge-lock { font-size: 12px; margin-top: 2px; }
.tl-badge-claimed {
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #5FF2B2; margin-top: 3px;
}
.tl-badge-claim-btn {
  margin-top: 5px; padding: 5px 10px;
  background: rgba(95,242,178,0.12); border: 1px solid rgba(95,242,178,0.25);
  border-radius: 7px; color: #5FF2B2;
  font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 700;
  cursor: pointer; transition: background 0.15s;
}
.tl-badge-claim-btn:hover { background: rgba(95,242,178,0.25); }

/* ── SAVED TAB ───────────────────────────────────────────── */
.tl-saved-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(179,45,255,0.05); border: 1px solid rgba(179,45,255,0.15);
  border-radius: 11px;
}
.tl-saved-emoji { font-size: 24px; flex-shrink: 0; }
.tl-saved-body { flex: 1; min-width: 0; }
.tl-saved-source {
  font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700;
  color: #fff; margin-bottom: 5px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tl-saved-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.tl-saved-pill {
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10); border-radius: 99px; padding: 2px 8px;
}
.tl-saved-type { color: #B32DFF; background: rgba(179,45,255,0.12); border-color: rgba(179,45,255,0.2); }
