/* ═══════════════════════════════════════════════════
   KOBAÏAN APP v2 — Celestial Dark · Bolder Typography
   ═══════════════════════════════════════════════════ */

:root {
  --black:      #080406;
  --deep:       #0e0609;
  --surface:    #160b0f;
  --card:       #1e0e13;
  --card2:      #251219;
  --border:     #3a1820;
  --border2:    #522030;
  --red:        #c4141f;
  --red-mid:    #8c0e17;
  --red-dim:    #4a0810;
  --red-bright: #ff2535;
  --gold:       #d4954e;
  --gold-dim:   #7a5028;
  --gold-pale:  #e8c88a;
  --cream:      #f0e0c8;
  --body:       #cbb8be;
  --muted:      #7a5f68;
  --glow-red:   0 0 18px rgba(196,20,31,0.55), 0 0 50px rgba(196,20,31,0.2);
  --glow-gold:  0 0 12px rgba(212,149,78,0.45);
  --radius:     3px;
  --font-title: 'Cinzel Decorative', serif;
  --font-head:  'Cinzel', serif;
  --font-body:  'Raleway', sans-serif;
}

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

html, body {
  width: 100%; height: 100%;
  background: var(--black);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  overflow: hidden;
}

/* ── CANVASES ── */
#starfield, #planets {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#planets { z-index: 1; }

/* ── SCREENS ── */
.screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.screen.active {
  display: flex;
  animation: screenIn 0.4s ease;
}
@keyframes screenIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════
   INTRO
   ════════════════════════════════════ */
#screen-intro {
  justify-content: center;
  align-items: center;
  background: radial-gradient(ellipse at 50% 25%, #260810 0%, #100408 55%, #080305 100%);
}

.intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.5rem 1rem;
  max-width: 680px;
  width: 100%;
  animation: fadeUp 1.1s ease forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sigil {
  font-size: 1.8rem;
  color: var(--red);
  text-shadow: var(--glow-red);
  margin-bottom: 0.3rem;
  animation: pulseSigil 3.5s ease-in-out infinite;
}
@keyframes pulseSigil {
  0%,100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.2); opacity: 1; text-shadow: 0 0 28px rgba(255,37,53,0.95); }
}

.title-main {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 9vw, 5.2rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--cream);
  text-shadow: 0 0 35px rgba(196,20,31,0.75), 0 0 80px rgba(196,20,31,0.25);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.title-sub {
  font-family: var(--font-head);
  font-size: clamp(0.52rem, 1.6vw, 0.72rem);
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.divider-rune {
  color: var(--red-mid);
  letter-spacing: 0.3em;
  margin: 0.2rem 0 0.8rem;
  font-size: 0.85rem;
}

.intro-text {
  font-size: clamp(0.88rem, 1.9vw, 1rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 1.2rem;
}

.lang-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}
.lang-label {
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}
.lang-btn {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 0.32rem 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn:hover, .lang-btn.active {
  background: var(--red-dim);
  border-color: var(--red);
  color: var(--cream);
  box-shadow: 0 0 10px rgba(196,20,31,0.35);
}

/* Main menu */
.main-menu {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  max-width: 400px;
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: linear-gradient(135deg, var(--card2) 0%, var(--card) 100%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  color: var(--cream);
  font-family: var(--font-head);
  font-size: clamp(0.72rem, 1.8vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 0.85rem 1.3rem;
  cursor: pointer;
  transition: all 0.22s;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.menu-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(196,20,31,0.12), transparent);
  opacity: 0;
  transition: opacity 0.22s;
}
.menu-btn:hover::after { opacity: 1; }
.menu-btn:hover {
  border-left-color: var(--red-bright);
  box-shadow: var(--glow-red);
  transform: translateX(5px);
  color: #fff;
}
.menu-icon { font-size: 1rem; position: relative; z-index: 1; }
.menu-text  { position: relative; z-index: 1; }

.footer-credit {
  margin-top: 1.4rem;
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--red-mid);
}

/* ════════════════════════════════════
   SCREEN HEADER
   ════════════════════════════════════ */
.screen-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1.2rem;
  background: linear-gradient(180deg, rgba(14,6,9,0.98) 0%, rgba(14,6,9,0.7) 100%);
  border-bottom: 1px solid var(--border2);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.back-btn {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 0.38rem 0.8rem;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.back-btn:hover { border-color: var(--red); color: var(--cream); }

.screen-title {
  font-family: var(--font-title);
  font-size: clamp(0.85rem, 2.8vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cream);
  text-shadow: 0 0 16px rgba(196,20,31,0.4);
  flex: 1;
}

.header-action-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 0.38rem 0.9rem;
  cursor: pointer;
  transition: all 0.18s;
}
.header-action-btn:hover { border-color: var(--red); color: var(--cream); }

/* ════════════════════════════════════
   DICTIONARY
   ════════════════════════════════════ */
.dict-filter input {
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.38rem 0.8rem;
  outline: none;
  width: 160px;
  transition: border-color 0.18s;
}
.dict-filter input:focus { border-color: var(--red); }
.dict-filter input::placeholder { color: var(--muted); }

.dict-container {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1.2rem 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--red-mid) var(--deep);
}

.dict-header-row {
  display: grid;
  grid-template-columns: 190px 105px 1fr 1fr 105px;
  border-bottom: 2px solid var(--red-mid);
  padding: 0.5rem 0 0.4rem;
  position: sticky;
  top: 0;
  background: var(--deep);
  z-index: 5;
}
.dict-header-row .dict-col {
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
}

.dict-section-header {
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--red);
  text-transform: uppercase;
  border-bottom: 1px solid var(--red-dim);
  padding: 0.25rem 0;
  margin: 1rem 0 0.3rem;
}

.dict-entry {
  display: grid;
  grid-template-columns: 190px 105px 1fr 1fr 105px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.dict-entry:hover { background: rgba(196,20,31,0.06); }

.dict-col {
  padding: 0.5rem 0.6rem;
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.45;
  display: flex;
  align-items: center;
}
.dict-kobaian {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--cream);
  font-size: 0.97rem;
  font-weight: 600;
}
.dict-pos {
  color: var(--gold);
  font-size: 0.78rem;
  font-style: italic;
}
.dict-fr, .dict-en { color: var(--body); }
.dict-source {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
}
.dict-source.official { color: var(--gold-dim); font-weight: 600; }

/* ════════════════════════════════════
   CENTER CONTENT (shared)
   ════════════════════════════════════ */
.center-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 2rem;
}
.subheading {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ════════════════════════════════════
   PRACTICE
   ════════════════════════════════════ */
.choice-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.choice-btn {
  background: linear-gradient(135deg, var(--card2), var(--card));
  border: 1px solid var(--border2);
  border-top: 3px solid var(--red);
  color: var(--cream);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 1.6rem 2.8rem;
  cursor: pointer;
  transition: all 0.22s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  min-width: 170px;
}
.choice-btn:hover {
  border-top-color: var(--red-bright);
  box-shadow: var(--glow-red);
  transform: translateY(-4px);
  color: #fff;
}
.choice-flag { font-size: 2.2rem; }

.score-display {
  margin-left: auto;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
}
#score-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: var(--glow-gold);
}

.practice-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  gap: 1.8rem;
  overflow: hidden;
}

.kobaian-word-display {
  text-align: center;
  background: linear-gradient(160deg, var(--card2), var(--deep));
  border: 1px solid var(--border2);
  border-top: 3px solid var(--red);
  padding: 2rem 3rem;
  min-width: 300px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7), inset 0 1px 0 rgba(212,149,78,0.08);
}
.word-label {
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.kobaian-word {
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 700;
  color: var(--cream);
  text-shadow: 0 0 28px rgba(196,20,31,0.65);
  letter-spacing: 0.05em;
}
.word-pos {
  margin-top: 0.55rem;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--gold);
}

.choices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  width: 100%;
  max-width: 540px;
}
.choice-answer {
  background: linear-gradient(135deg, var(--card2), var(--card));
  border: 1px solid var(--border2);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 2vw, 1rem);
  font-weight: 500;
  padding: 1rem 1rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.35;
}
.choice-answer:hover:not(:disabled) {
  border-color: var(--red);
  background: var(--red-dim);
  box-shadow: 0 0 14px rgba(196,20,31,0.35);
  color: #fff;
}
.choice-answer.correct {
  border-color: #5cb85c;
  background: rgba(92,184,92,0.14);
  color: #a8d5a8;
  box-shadow: 0 0 14px rgba(92,184,92,0.3);
}
.choice-answer.wrong {
  border-color: var(--red-bright);
  background: rgba(196,20,31,0.22);
  color: #ff7070;
  animation: shake 0.38s ease;
}
.choice-answer:disabled { cursor: default; }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%,75%  { transform: translateX(-6px); }
  50%      { transform: translateX(6px); }
}

.feedback-msg {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  min-height: 1.5rem;
  text-align: center;
}
.feedback-msg.try-again  { color: var(--red-bright); }
.feedback-msg.correct-msg { color: #7ecb7e; }

/* ════════════════════════════════════
   PHRASE BUILDER
   ════════════════════════════════════ */
.phrase-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 0;
}

.phrase-display-area {
  background: linear-gradient(180deg, var(--surface) 0%, var(--deep) 100%);
  border-bottom: 2px solid var(--border2);
  padding: 1.1rem 1.4rem 0.8rem;
  flex-shrink: 0;
}

.phrase-display-label {
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.phrase-tokens {
  min-height: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.5rem 0;
}
.phrase-placeholder {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 400;
}
.phrase-token {
  background: var(--red-dim);
  border: 1px solid var(--red-mid);
  border-radius: 2px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.phrase-token:hover { background: rgba(196,20,31,0.4); border-color: var(--red-bright); }
.phrase-token-word {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
  font-style: italic;
  display: block;
}
.phrase-token-gloss {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--gold);
  display: block;
  line-height: 1.2;
}

.phrase-gloss {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  font-style: italic;
  min-height: 1.3rem;
  margin-top: 0.2rem;
}

.phrase-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.7rem;
}
.phrase-action-btn {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 0.36rem 0.85rem;
  cursor: pointer;
  transition: all 0.18s;
}
.phrase-action-btn:hover { border-color: var(--red); color: var(--cream); }

.phrase-copy-confirm {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #7ecb7e;
  min-height: 1.2rem;
  margin-top: 0.3rem;
  transition: opacity 0.4s;
}

/* Picker */
.phrase-picker {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.picker-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  padding: 0.55rem 1rem 0.45rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.picker-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.picker-tab:hover { border-color: var(--red-mid); color: var(--body); }
.picker-tab.active { background: var(--red-dim); border-color: var(--red); color: var(--cream); }

.picker-words {
  flex: 1;
  overflow-y: auto;
  padding: 0.7rem 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-content: flex-start;
  scrollbar-width: thin;
  scrollbar-color: var(--red-mid) var(--deep);
}

.picker-word-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.picker-word-btn:hover {
  border-color: var(--red);
  background: var(--red-dim);
}
.picker-word-main {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
  font-style: italic;
  display: block;
}
.picker-word-gloss {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gold);
  display: block;
  line-height: 1.25;
}

/* ════════════════════════════════════
   MYTHOLOGY
   ════════════════════════════════════ */
.myth-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border2);
  background: rgba(14,6,9,0.9);
  flex-shrink: 0;
}
.myth-nav-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.myth-nav-btn:hover { color: var(--body); border-bottom-color: var(--red-mid); }
.myth-nav-btn.active { color: var(--cream); border-bottom-color: var(--red); }

.myth-container {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--red-mid) var(--deep);
}

.myth-chapter {
  display: none;
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  animation: screenIn 0.35s ease;
}
.myth-chapter.active { display: block; }

.myth-chapter-header {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border2);
}
.myth-chapter-num {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--red-mid);
  line-height: 1;
  opacity: 0.55;
  flex-shrink: 0;
  text-shadow: 0 0 20px rgba(140,14,23,0.4);
}
.myth-chapter-titles {}
.myth-chapter-title {
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 0.2rem;
  text-shadow: 0 0 18px rgba(196,20,31,0.3);
}
.myth-chapter-sub {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--red-mid);
  text-transform: uppercase;
}

.myth-body p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--body);
  margin-bottom: 1.1rem;
}

.myth-body h3 {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--red);
  text-transform: uppercase;
  margin: 1.6rem 0 0.7rem;
}

.myth-body .kobaian-term {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--cream);
  font-weight: 600;
}

.myth-body .kobaian-gloss {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 400;
}

.myth-figure {
  background: linear-gradient(135deg, var(--card2), var(--card));
  border: 1px solid var(--border2);
  border-left: 3px solid var(--red);
  padding: 1rem 1.3rem;
  margin: 1.2rem 0;
}
.myth-figure-name {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.25rem;
}
.myth-figure-role {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.myth-figure-desc {
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--body);
}

.myth-quote {
  border-left: 2px solid var(--red-mid);
  padding: 0.6rem 1.1rem;
  margin: 1rem 0;
  font-style: italic;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
}
.myth-quote cite {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  font-size: 0.75rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--red-mid);
}

/* ════════════════════════════════════
   TOOLTIP
   ════════════════════════════════════ */
.tooltip {
  position: fixed;
  z-index: 9999;
  background: var(--card2);
  border: 1px solid var(--red);
  box-shadow: var(--glow-red);
  padding: 0.6rem 0.9rem;
  max-width: 250px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.14s;
}
.tooltip.visible { opacity: 1; }
.tooltip-word { font-family: var(--font-head); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; color: var(--red-bright); font-style: italic; margin-bottom: 0.15rem; }
.tooltip-pos  { color: var(--gold); font-size: 0.76rem; font-style: italic; margin-bottom: 0.25rem; }
.tooltip-en   { color: var(--cream); font-size: 0.88rem; font-weight: 500; }
.tooltip-fr   { color: var(--muted); font-size: 0.84rem; }

/* ════════════════════════════════════
   SCROLLBAR
   ════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: var(--red-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════ */
@media (max-width: 680px) {
  .dict-header-row,
  .dict-entry {
    grid-template-columns: 1fr 80px;
  }
  .dict-header-row .dict-col:nth-child(2),
  .dict-header-row .dict-col:nth-child(3),
  .dict-header-row .dict-col:nth-child(5) { display: none; }
  .dict-entry .dict-pos,
  .dict-entry .dict-fr,
  .dict-entry .dict-source { display: none; }
  .dict-entry .dict-en { grid-column: 2; font-size: 0.82rem; color: var(--muted); }

  .choices-grid { grid-template-columns: 1fr; }
  .kobaian-word-display { padding: 1.3rem 1.4rem; min-width: 260px; }
  .practice-container { gap: 1.2rem; padding: 1rem; }

  .phrase-layout { gap: 0; }
  .myth-chapter { padding: 1.2rem 1rem 2rem; }
  .myth-chapter-num { font-size: 2rem; }
}
