/* ============================================================
   Y3K Digital Retro Pop - Design System
   白地 × ネオンカラー × 黒い太い縁取り × 幾何学図形
   ============================================================ */

:root {
  /* Neon palette */
  --neon-pink: #FF3DCB;
  --neon-cyan: #00E0FF;
  --neon-yellow: #FFE600;
  --neon-lime: #B6FF3D;
  --neon-orange: #FF7A00;
  --neon-purple: #B14BFF;

  /* Base */
  --bg: #FFFFFF;
  --ink: #0A0A0A;
  --paper: #FAFAF7;
  --paper-2: #F2F0E8;
  --shadow: 6px 6px 0 0 var(--ink);
  --shadow-sm: 3px 3px 0 0 var(--ink);
  --shadow-lg: 10px 10px 0 0 var(--ink);
  --border: 3px solid var(--ink);
  --border-thick: 4px solid var(--ink);

  /* Type */
  --font-sans: 'Inter', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* dotted background pattern */
body {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.08) 1px, transparent 0);
  background-size: 22px 22px;
  min-height: 100vh;
}

/* ===== Layout ===== */
.app-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 18px 80px;
}

/* ===== Top bar ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 12px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  background: var(--neon-yellow);
  border: var(--border-thick);
  padding: 8px 14px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transform: rotate(-1deg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo .logo-dot {
  display: inline-block;
  width: 12px; height: 12px;
  background: var(--neon-pink);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.lang-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--neon-cyan);
  border: 3px solid var(--ink);
  padding: 4px 10px;
  box-shadow: var(--shadow-sm);
}

/* ===== Hero card ===== */
.hero {
  background: var(--bg);
  border: var(--border-thick);
  box-shadow: var(--shadow-lg);
  padding: 28px 26px;
  position: relative;
  margin-bottom: 32px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: var(--neon-pink);
  border: var(--border-thick);
  border-radius: 50%;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 100px; height: 100px;
  background: var(--neon-lime);
  border: var(--border-thick);
  transform: rotate(45deg);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero p { margin: 4px 0; }
.hero .subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--neon-yellow);
  display: inline-block;
  border: 2px solid var(--ink);
  padding: 3px 8px;
  margin-bottom: 8px;
}

/* ===== Chapter card (one per chapter on home) ===== */
.chapter-card {
  background: var(--bg);
  border: var(--border-thick);
  box-shadow: var(--shadow);
  padding: 22px 22px;
  margin-bottom: 18px;
  position: relative;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.chapter-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}
.chapter-card .era {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--neon-cyan);
  border: 2px solid var(--ink);
  padding: 3px 8px;
  display: inline-block;
}
.chapter-card h2 {
  font-family: var(--font-display);
  margin: 10px 0 4px;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.chapter-card .title-af {
  font-style: italic;
  color: #555;
  font-size: 14px;
  margin-bottom: 8px;
}
.chapter-card .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #555;
  margin-top: 10px;
}
.chapter-card .progress-bar {
  margin-top: 12px;
  height: 14px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}
.chapter-card .progress-bar > div {
  background: var(--neon-lime);
  height: 100%;
  width: 0%;
  border-right: 2px solid var(--ink);
}
.chapter-card .locked-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--ink);
  color: #fff;
  padding: 3px 8px;
}

/* ===== Part headings (chapter groups) ===== */
.part-heading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 30px 0 10px;
  padding: 8px 14px;
  display: inline-block;
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  transform: rotate(-1deg);
}
.part-heading.part-1 { background: var(--neon-lime); }
.part-heading.part-2 { background: var(--neon-pink); color: var(--ink); }
.part-heading.part-3 { background: var(--neon-cyan); }
.part-note {
  font-size: 13.5px;
  border-left: 4px solid var(--ink);
  background: var(--paper-2);
  padding: 8px 12px;
  margin: 0 0 14px 4px;
  line-height: 1.7;
}

/* Locked chapter card */
.chapter-card.locked {
  opacity: 0.6;
  cursor: not-allowed;
}
.chapter-card.locked:hover {
  transform: none;
  box-shadow: var(--shadow);
}

/* ===== Top nav ===== */
.topnav {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-link {
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.08s;
}
.nav-link:hover { transform: translate(-1px, -1px); }

/* ===== Roster page ===== */
.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.stats-card {
  border: var(--border-thick);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}
.stats-card.wide { grid-column: span 1; }
.stats-card h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  margin: 0 0 8px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  padding: 2px 6px;
  display: inline-block;
}
.stats-card .big-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}
.stats-card .big-num span {
  font-size: 14px;
  margin-left: 4px;
  font-weight: 400;
}
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.bar-label { width: 44px; flex-shrink: 0; }
.bar-fill {
  height: 22px;
  border: 2px solid var(--ink);
  padding: 0 8px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 12px;
  min-width: 28px;
  box-sizing: border-box;
}
.group-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.group-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  border: 2px solid var(--ink);
  background: var(--bg);
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.group-chip b {
  background: var(--neon-yellow);
  border: 2px solid var(--ink);
  padding: 0 5px;
  font-size: 11px;
}

/* roster sections per chapter */
.roster-section { margin-bottom: 28px; }
.part-heading.roster-h {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper-2);
  transform: none;
}
.era-mini {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--ink);
  color: #fff;
  padding: 2px 6px;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.roster-tile {
  border: var(--border-thick);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.roster-tile::before {
  content: '';
  position: absolute;
  top: -14px; right: -14px;
  width: 40px; height: 40px;
  background: var(--accent);
  border: 3px solid var(--ink);
  border-radius: 50%;
  z-index: 0;
}
.rt-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.rt-avatar {
  width: 44px; height: 44px;
  border: var(--border-thick);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
}
.rt-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
}
.rt-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #555;
}
.rt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.rt-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  border: 2px solid var(--ink);
  padding: 1px 6px;
  background: var(--paper);
}
.rt-perspective {
  font-size: 13.5px;
  background: var(--neon-yellow);
  border: 2px solid var(--ink);
  padding: 6px 8px;
  margin: 0 0 8px;
  line-height: 1.5;
}
.rt-bio {
  font-size: 12.5px;
  margin: 0 0 6px;
  line-height: 1.6;
  color: #222;
}
.rt-reality {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--paper-2);
  border-left: 3px solid var(--ink);
  padding: 4px 6px;
  margin: 4px 0 0;
  color: #444;
}
.rt-recur {
  font-family: var(--font-mono);
  font-size: 11px;
  margin: 6px 0 0;
  color: var(--ink);
  background: var(--neon-cyan);
  border: 2px solid var(--ink);
  padding: 2px 6px;
  display: inline-block;
}

@media (max-width: 700px) {
  .stats-panel { grid-template-columns: 1fr; }
}

/* ===== Grammar page ===== */
.legend-panel {
  border: var(--border-thick);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
  margin-bottom: 24px;
}
.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 4px 0;
}
.legend-title {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--ink);
  color: #fff;
  padding: 2px 8px;
  margin-right: 4px;
}
.legend-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  border: 2px solid var(--ink);
  background: var(--bg);
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.legend-chip b {
  background: var(--ink);
  color: #fff;
  padding: 0 5px;
  font-size: 10.5px;
}

.grammar-section { margin-bottom: 30px; }
.theme-note {
  font-size: 13.5px;
  border-left: 4px solid var(--neon-orange);
  background: var(--paper-2);
  padding: 8px 12px;
  margin: 0 0 14px 4px;
  line-height: 1.6;
}

.g-block { margin-bottom: 14px; }
.g-block-h {
  font-family: var(--font-mono);
  font-size: 12px;
  margin: 0 0 8px;
  display: inline-block;
  background: var(--neon-yellow);
  border: 2px solid var(--ink);
  padding: 3px 8px;
  letter-spacing: 0.04em;
}
.g-block-h.alt { background: var(--paper-2); }

.g-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.g-card {
  border: var(--border-thick);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.g-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 36px; height: 36px;
  background: var(--lv-color);
  border-left: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.g-card-h {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.g-level {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 11px;
  background: var(--lv-color, var(--neon-yellow));
  border: 2px solid var(--ink);
  padding: 1px 6px;
}
.g-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  padding: 1px 6px;
}
.g-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  margin: 4px 0 6px;
  padding-right: 30px;
  line-height: 1.3;
}
.g-summary {
  font-size: 12.5px;
  margin: 0 0 8px;
  line-height: 1.65;
  color: #222;
}
.g-example {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 6px 8px;
  margin-top: 6px;
}
.g-example-af {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  display: block;
  line-height: 1.5;
}
.g-example-ja {
  font-size: 12px;
  color: #333;
  margin-top: 2px;
}
.g-example-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #555;
  margin-top: 4px;
  background: var(--paper-2);
  padding: 3px 6px;
  border-left: 3px solid var(--ink);
}

.g-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.g-pill {
  font-size: 12px;
  border: 2px solid var(--ink);
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.g-pill b {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--ink);
  color: #fff;
  padding: 0 5px;
}
.g-pill-light {
  background: var(--bg);
  border-width: 2px;
  border-style: dashed;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: var(--border-thick);
  background: var(--bg);
  color: var(--ink);
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  letter-spacing: 0.02em;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 0 var(--ink); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }
.btn-pink  { background: var(--neon-pink); color: var(--ink); }
.btn-cyan  { background: var(--neon-cyan); }
.btn-lime  { background: var(--neon-lime); }
.btn-yellow { background: var(--neon-yellow); }
.btn-ink   { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* ===== Scene (novel) panel ===== */
.scene-wrap {
  background: var(--bg);
  border: var(--border-thick);
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: hidden;
  margin-bottom: 20px;
}
.scene-header {
  background: var(--paper-2);
  border-bottom: var(--border-thick);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
}
.scene-progress {
  display: inline-flex;
  gap: 4px;
}
.scene-progress .pip {
  width: 10px; height: 10px;
  border: 2px solid var(--ink);
  background: var(--bg);
}
.scene-progress .pip.done { background: var(--neon-lime); }
.scene-progress .pip.current { background: var(--neon-pink); }
.scene-body { padding: 22px 22px 18px; min-height: 260px; }

/* Character */
.character {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.character .avatar {
  width: 52px; height: 52px;
  border: var(--border-thick);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: var(--shadow-sm);
}
.character .nameplate {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}
.character .role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #555;
  display: block;
}

/* Dialogue bubble */
.bubble {
  border: var(--border-thick);
  background: var(--paper);
  padding: 16px 16px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.bubble .text-ja {
  font-size: 16.5px;
  line-height: 1.85;
  margin: 0;
}
.bubble .text-af {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  background: var(--neon-yellow);
  border: 2px solid var(--ink);
  padding: 6px 10px;
  display: inline-block;
  margin-top: 12px;
}
.bubble .ipa {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #444;
  margin-top: 4px;
  display: block;
}
.bubble .note {
  margin-top: 12px;
  font-size: 13px;
  background: var(--paper-2);
  border-left: 4px solid var(--ink);
  padding: 6px 10px;
}

/* Info card */
.info-card { padding: 6px 0; }
.info-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 14px;
  display: inline-block;
  background: var(--neon-lime);
  border: var(--border-thick);
  padding: 4px 12px;
  box-shadow: var(--shadow-sm);
}
.info-card .item {
  border: var(--border-thick);
  background: var(--bg);
  margin-bottom: 8px;
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: minmax(120px, 32%) 1fr;
  gap: 12px;
  align-items: start;
}
.info-card .item .label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  background: var(--paper-2);
  padding: 2px 6px;
  border: 2px solid var(--ink);
  align-self: start;
}
.info-card .item .value { font-weight: 700; }
.info-card .item .note { display: block; font-weight: 400; font-size: 12.5px; color: #555; margin-top: 2px; }
.info-card .footer {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #555;
  margin-top: 8px;
}

/* Exercise */
.exercise {
  background: var(--bg);
}
.exercise .ex-type {
  font-family: var(--font-mono);
  font-size: 12px;
  display: inline-block;
  border: 2px solid var(--ink);
  padding: 2px 8px;
  background: var(--neon-cyan);
  margin-bottom: 8px;
}
.exercise .prompt {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 4px 0 12px;
  font-weight: 700;
  line-height: 1.5;
}
.exercise .hint {
  font-size: 13px;
  background: var(--paper-2);
  border-left: 4px solid var(--neon-orange);
  padding: 6px 10px;
  margin-bottom: 14px;
}
.exercise .typing-input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 22px;
  border: var(--border-thick);
  background: var(--paper);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  outline: none;
}
.exercise .typing-input:focus {
  background: var(--bg);
  box-shadow: var(--shadow);
}

/* Arrange exercise */
.arrange-target {
  min-height: 56px;
  border: var(--border-thick);
  background: var(--paper);
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.arrange-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.token {
  font-family: var(--font-mono);
  font-size: 16px;
  border: 3px solid var(--ink);
  background: var(--bg);
  padding: 6px 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  user-select: none;
  transition: transform 0.08s;
}
.token:hover { transform: translate(-1px, -1px); }
.token.placed { background: var(--neon-yellow); }
.token.in-pool { background: var(--bg); }

/* Feedback */
.feedback {
  margin-top: 14px;
  border: var(--border-thick);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.feedback.ok    { background: var(--neon-lime); }
.feedback.bad   { background: var(--neon-pink); color: var(--ink); }
.feedback .label {
  font-family: var(--font-mono);
  font-weight: 700;
  display: inline-block;
  border: 2px solid var(--ink);
  padding: 1px 6px;
  background: var(--bg);
  margin-right: 6px;
}
.feedback .expl { margin-top: 8px; font-size: 14px; }

/* Footer of scene */
.scene-footer {
  border-top: var(--border-thick);
  background: var(--paper-2);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* Outro */
.outro {
  text-align: center;
  padding: 30px 16px;
}
.outro h2 {
  font-family: var(--font-display);
  display: inline-block;
  background: var(--neon-pink);
  border: var(--border-thick);
  padding: 8px 16px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
.outro .preview {
  margin-top: 16px;
  border: var(--border-thick);
  background: var(--paper);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}

/* Character roster (chapter selection) */
.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.roster .ch-mini {
  border: 3px solid var(--ink);
  background: var(--bg);
  padding: 10px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 10px;
  align-items: center;
}
.roster .ch-mini .av {
  width: 38px; height: 38px;
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.roster .ch-mini .nm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
}
.roster .ch-mini .rl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #555;
}

/* Misc */
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
}
.kbd-tip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #555;
  margin-top: 6px;
}

/* References */
.references {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #555;
  border-top: 2px dashed var(--ink);
  padding-top: 12px;
}
.references h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 13px; color: var(--ink); }
.references ul { margin: 0; padding-left: 18px; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .app-container { padding: 14px 12px 60px; }
  .hero { padding: 22px 18px; }
  .hero::before { width: 100px; height: 100px; }
  .hero::after { width: 70px; height: 70px; }
  .info-card .item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .scene-body { padding: 16px 14px; }
  .bubble { padding: 12px; }
  .bubble .text-af { font-size: 16px; }
  .exercise .typing-input { font-size: 18px; }
  .token { font-size: 14px; padding: 5px 10px; }
  .scene-footer { flex-direction: column; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
