/* English–Burmese Glossary · Grade 4 — © 2026 Laitei (laitei.dev) */

/* ------------------------------------------------------------- tokens -- */
:root {
  --bg: #f6f5ff;
  --surface: #ffffff;
  --surface-2: #efedff;
  --ink: #1e1b4b;
  --muted: #66638c;
  --line: #e1def5;
  --brand: #5b4bdb;
  --brand-ink: #ffffff;
  --midnight: #14113f;
  --sun: #ffc53d;
  --shadow: 0 1px 2px rgba(30, 27, 75, .06), 0 8px 24px -12px rgba(30, 27, 75, .18);
  --shadow-up: 0 2px 4px rgba(30, 27, 75, .08), 0 18px 34px -14px rgba(30, 27, 75, .28);

  --c0: #5b4bdb; --c1: #0e9f8e; --c2: #f0545b;
  --c3: #d97706; --c4: #2e86de; --c5: #d6458f;

  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-my: "Padauk", "Noto Sans Myanmar", "Myanmar Text", "Pyidaungsu", sans-serif;
  --font-ipa: "Charis SIL", "Noto Sans", "Segoe UI", "DejaVu Sans", serif;

  --radius: 18px;
  --wrap: 1180px;
  --header-h: 64px;
  --controls-h: 118px;
}
:root[data-theme="dark"] {
  --bg: #0f0d2e;
  --surface: #1a1747;
  --surface-2: #231f58;
  --ink: #eeecff;
  --muted: #a9a5d4;
  --line: #2f2b6a;
  --brand: #8b7dff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-up: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 34px -14px rgba(0, 0, 0, .7);
  --c0: #8b7dff; --c1: #2fc9b6; --c2: #ff7a80;
  --c3: #f5a43a; --c4: #5aa7f5; --c5: #f07db4;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0f0d2e; --surface: #1a1747; --surface-2: #231f58; --ink: #eeecff;
    --muted: #a9a5d4; --line: #2f2b6a; --brand: #8b7dff;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-up: 0 2px 4px rgba(0,0,0,.35), 0 18px 34px -14px rgba(0,0,0,.7);
    --c0: #8b7dff; --c1: #2fc9b6; --c2: #ff7a80;
    --c3: #f5a43a; --c4: #5aa7f5; --c5: #f07db4;
  }
}

/* -------------------------------------------------------------- base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.my { font-family: var(--font-my); line-height: 1.9; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .15s;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ------------------------------------------------------------ top bar -- */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  position: relative; width: 34px; height: 34px; border-radius: 10px; background: var(--brand);
  color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1.1rem;
}
.brand-mark i { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.brand-name { font-weight: 900; font-size: 1.3rem; letter-spacing: -.01em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: var(--ink); transition: transform .15s, background .15s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .i-sun { display: block; }
  :root[data-theme="auto"] .i-moon { display: none; }
}

/* --------------------------------------------------------------- hero -- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 85% -10%, #3a2fa6 0%, transparent 70%),
    radial-gradient(700px 500px at -5% 110%, #0b6f67 0%, transparent 65%),
    var(--midnight);
}
.hero-bg i { position: absolute; border-radius: 50%; }
.hero-bg i:nth-child(1) { width: 380px; height: 380px; right: -110px; top: -120px; background: rgba(91, 75, 219, .45); }
.hero-bg i:nth-child(2) { width: 300px; height: 300px; left: -90px; bottom: -110px; background: rgba(14, 159, 142, .38); }
.hero-bg i:nth-child(3) { width: 150px; height: 150px; right: 9%; bottom: -50px; background: rgba(240, 84, 91, .4); }
.hero-bg i:nth-child(4) { width: 54px; height: 54px; left: 6%; top: 36px; background: var(--sun); }
.hero-in {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding-block: clamp(48px, 9vw, 96px);
}
.badge {
  display: inline-block; background: var(--sun); color: var(--midnight); font-weight: 900;
  letter-spacing: .16em; text-transform: uppercase; font-size: .8rem; padding: 7px 16px; border-radius: 999px;
}
.hero h1 {
  margin-top: 18px; font-weight: 900; line-height: .98; letter-spacing: -.02em;
  font-size: clamp(3rem, 8.2vw, 5.6rem);
}
.hero h1 em { font-style: normal; color: var(--sun); }
.hero-my { margin-top: 14px; font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 700; }
.lede { margin-top: 12px; max-width: 34em; color: #cfcbf7; font-size: 1.1rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800;
  padding: 13px 22px; border-radius: 14px; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sun { background: var(--sun); color: var(--midnight); box-shadow: 0 10px 24px -10px rgba(255, 197, 61, .8); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-solid { background: var(--brand); color: #fff; border: 0; cursor: pointer; }
.stats { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.stats > div { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 12px 20px; min-width: 112px; }
.stats dt { font-weight: 900; font-size: 1.7rem; line-height: 1.1; }
.stats dd { color: #cfcbf7; font-size: .85rem; font-weight: 600; }

.hero-tiles { position: relative; height: 340px; }
.tile {
  position: absolute; width: 112px; height: 112px; border-radius: 28px; display: grid; place-items: center;
  font-weight: 900; font-size: 3.6rem; color: #fff; box-shadow: 6px 8px 0 rgba(8, 6, 32, .55);
  animation: bob 6s ease-in-out infinite;
}
.tile.my { font-family: var(--font-my); font-size: 3.4rem; }
.t1 { background: #f0545b; left: 4%; top: 6%; --r: -8deg; transform: rotate(var(--r)); }
.t2 { background: #fff; color: #5b4bdb; left: 38%; top: 0; --r: 6deg; animation-delay: -1.2s; }
.t3 { background: #d97706; left: 70%; top: 10%; --r: -5deg; animation-delay: -2.4s; }
.t4 { background: #fff; color: #0e9f8e; left: 14%; top: 52%; --r: 5deg; animation-delay: -3.6s; }
.t5 { background: #0e9f8e; left: 52%; top: 56%; --r: -7deg; animation-delay: -4.8s; }
.t2, .t3, .t4, .t5 { transform: rotate(var(--r)); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-12px) rotate(var(--r)); } }

/* ------------------------------------------------------------ controls -- */
.controls {
  position: sticky; top: var(--header-h); z-index: 40; padding: 14px 0 10px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.search-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search {
  flex: 1 1 280px; display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 2px solid var(--line); border-radius: 16px; padding: 0 14px; height: 50px; color: var(--muted);
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); color: var(--brand); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1rem; height: 100%; font-family: var(--font), var(--font-my); }
.search input::placeholder { color: var(--muted); opacity: .9; }
.search input::-webkit-search-cancel-button { display: none; }
.clear { border: 0; background: var(--surface-2); color: var(--muted); width: 26px; height: 26px; border-radius: 50%; font-size: 1.1rem; line-height: 1; }
.seg { display: inline-flex; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 3px; }
.seg button { border: 0; background: transparent; width: 40px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px; border-radius: 16px;
  border: 2px solid var(--line); background: var(--surface); font-weight: 700; color: var(--ink);
}
.chip b { background: var(--surface-2); border-radius: 999px; padding: 1px 9px; font-size: .85rem; }
.chip[aria-pressed="true"] { border-color: var(--sun); background: color-mix(in srgb, var(--sun) 22%, var(--surface)); }
.chip svg { color: #e5a400; }

.rail { display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.rail::-webkit-scrollbar { display: none; }
.rail button {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; border: 0; font-weight: 800; font-size: .9rem;
  background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--c); scroll-snap-align: center;
  transition: transform .12s, background .12s, color .12s;
}
.rail button:hover:not(:disabled) { transform: translateY(-2px); }
.rail button.on { background: var(--c); color: #fff; box-shadow: 0 6px 14px -6px var(--c); }
.rail button:disabled { opacity: .35; cursor: default; }

/* ------------------------------------------------------------- results -- */
.glossary { padding-bottom: 40px; }
.status { margin: 18px 2px 4px; color: var(--muted); font-weight: 600; min-height: 1.5em; }
section.letter-block { scroll-margin-top: calc(var(--header-h) + var(--controls-h) + 6px); margin-top: 22px; }
.letter-head {
  --c: var(--c0); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between;
  background: var(--c); color: #fff; border-radius: 22px; padding: 14px 26px; min-height: 84px;
}
:root[data-theme="dark"] .letter-head { color: #14113f; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .letter-head { color: #14113f; } }
.letter-head::before, .letter-head::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.letter-head::before { width: 130px; height: 130px; right: -30px; top: -60px; }
.letter-head::after { width: 90px; height: 90px; right: 120px; bottom: -50px; background: rgba(255, 255, 255, .1); }
.letter-head h2 { font-weight: 900; font-size: 3rem; line-height: 1; letter-spacing: -.01em; }
.letter-head span { font-weight: 800; position: relative; z-index: 1; }

.cards { display: grid; gap: 14px; margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  --c: var(--c0); position: relative; background: var(--surface); border-radius: var(--radius); padding: 16px 16px 14px 22px;
  box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .18s, box-shadow .18s;
}
.card::before { content: ""; position: absolute; left: 8px; top: 14px; bottom: 14px; width: 5px; border-radius: 5px; background: var(--c); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.card-top { display: flex; align-items: flex-start; gap: 8px; }
.word { font-weight: 900; font-size: 1.4rem; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ipa { font-family: var(--font-ipa); color: var(--muted); font-size: .98rem; margin-top: 2px; }
.mean { margin-top: 6px; font-family: var(--font-my); font-size: 1.12rem; line-height: 1.95; }
.mean .note { color: var(--muted); font-size: .92rem; margin-left: .35em; }
.actions { margin-left: auto; display: flex; gap: 4px; flex: 0 0 auto; }
.mini {
  width: 34px; height: 34px; border-radius: 10px; border: 0; background: color-mix(in srgb, var(--c) 14%, var(--surface));
  color: var(--c); display: grid; place-items: center; transition: transform .12s, background .12s;
}
.mini:hover { background: color-mix(in srgb, var(--c) 26%, var(--surface)); }
.mini:active { transform: scale(.9); }
.mini.fav[aria-pressed="true"] { background: var(--sun); color: #7a4a00; }
.mini.speaking { background: var(--c); color: #fff; }
.mark { background: color-mix(in srgb, var(--sun) 55%, transparent); color: inherit; border-radius: 4px; padding: 0 1px; }

/* list view */
.results[data-view="list"] .cards { grid-template-columns: 1fr; gap: 8px; }
.results[data-view="list"] .card {
  display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(110px, .8fr) 2.4fr auto; align-items: center; gap: 14px;
  padding-block: 10px; border-radius: 14px;
}
.results[data-view="list"] .card-top { display: contents; }
.results[data-view="list"] .actions { grid-column: 4; grid-row: 1; }
.results[data-view="list"] .word { font-size: 1.2rem; }
.results[data-view="list"] .ipa, .results[data-view="list"] .mean { margin: 0; }
.results[data-view="list"] .card:hover { transform: none; }

.empty { text-align: center; padding: 70px 20px; }
.empty-art { font-size: 3rem; }
.empty h3 { font-size: 1.5rem; font-weight: 900; margin-top: 8px; }
.empty p { color: var(--muted); margin: 6px 0 18px; }

/* ----------------------------------------------------------- flashcards -- */
.practice { padding: 70px 0 80px; background: linear-gradient(180deg, var(--bg), var(--surface-2)); }
.sec-head { text-align: center; margin-bottom: 26px; }
.eyebrow { display: block; color: var(--brand); font-weight: 900; letter-spacing: .18em; text-transform: uppercase; font-size: .8rem; }
.sec-head h2, .dl-copy h2 { font-weight: 900; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; line-height: 1.1; margin-top: 4px; }
.sub { color: var(--muted); font-size: 1.15rem; }
.deck-controls { display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: center; align-items: center; margin-bottom: 26px; }
.field { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); }
.field select {
  appearance: none; height: 44px; padding: 0 40px 0 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366638c' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
  color: var(--ink); font-weight: 700;
}
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.knob { width: 46px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch input:checked + .knob { background: var(--brand); }
.switch input:checked + .knob::after { transform: translateX(20px); }
.switch input:focus-visible + .knob { outline: 3px solid var(--brand); outline-offset: 3px; }

.fc-stage { display: flex; align-items: center; justify-content: center; gap: 14px; }
.fc-nav {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface);
  font-size: 1.9rem; line-height: 1; font-weight: 700; color: var(--brand); box-shadow: var(--shadow); transition: transform .12s;
}
.fc-nav:hover { transform: scale(1.08); }
.fc-scene { perspective: 1400px; width: min(560px, 100%); }
.fc-card { position: relative; height: 340px; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1); cursor: pointer; border-radius: 30px; }
.fc-card.flipped { transform: rotateY(180deg); }
.fc-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 30px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; overflow: hidden;
  box-shadow: var(--shadow-up);
}
.fc-face::before, .fc-face::after { content: ""; position: absolute; border-radius: 50%; }
.fc-face::before { width: 190px; height: 190px; right: -60px; top: -70px; background: rgba(255, 255, 255, .13); }
.fc-face::after { width: 120px; height: 120px; left: -40px; bottom: -50px; background: rgba(255, 255, 255, .09); }
.fc-front { background: linear-gradient(145deg, var(--fc, var(--c0)), color-mix(in srgb, var(--fc, var(--c0)) 70%, #14113f)); color: #fff; }
.fc-back { background: var(--surface); border: 2px solid var(--line); transform: rotateY(180deg); }
.fc-face > * { position: relative; z-index: 1; }
.fc-word { font-weight: 900; font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.fc-ipa { font-family: var(--font-ipa); font-size: 1.25rem; opacity: .8; margin-top: 8px; }
.fc-my { font-family: var(--font-my); font-weight: 700; font-size: clamp(1.7rem, 6vw, 2.4rem); line-height: 1.8; }
.fc-note { font-family: var(--font-my); color: var(--muted); font-size: 1.05rem; margin-top: 4px; }
.fc-back .fc-ipa { color: var(--muted); opacity: 1; }
.fc-back .fc-word { font-size: 1.7rem; color: var(--fc, var(--brand)); margin-bottom: 8px; }
.fc-tap { position: absolute !important; bottom: 14px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.fc-speak {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 9px 18px;
  background: rgba(255, 255, 255, .2); color: #fff; font-weight: 800; backdrop-filter: blur(4px);
}
.fc-speak:hover { background: rgba(255, 255, 255, .32); }
.fc-meta { max-width: 560px; margin: 22px auto 0; text-align: center; }
.progress { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c0), var(--c5)); border-radius: 99px; transition: width .3s; }
#fcCount { margin-top: 10px; font-weight: 800; }
.hint { color: var(--muted); font-size: .9rem; margin-top: 4px; }
kbd { font: 700 .8rem var(--font); background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; }

/* ------------------------------------------------------------- download -- */
.download { padding: 80px 0; background: var(--midnight); color: #fff; position: relative; overflow: hidden; }
.download::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(91, 75, 219, .35); right: -120px; top: -160px; }
.dl-in { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 70px); align-items: center; }
.book { perspective: 900px; }
.book-cover {
  width: 220px; aspect-ratio: 210 / 297; border-radius: 6px 16px 16px 6px; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px;
  background: radial-gradient(circle at 90% 0, #3a2fa6, #14113f 70%); border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: -10px 0 0 -4px #0b0928, 24px 30px 50px -12px rgba(0, 0, 0, .7); transform: rotateY(-16deg) rotate(-2deg); transition: transform .4s;
}
.book:hover .book-cover { transform: rotateY(-6deg) rotate(0); }
.book-badge { align-self: flex-start; background: var(--sun); color: var(--midnight); font-size: .62rem; font-weight: 900; letter-spacing: .15em; padding: 3px 9px; border-radius: 99px; }
.book-cover strong { font-weight: 900; font-size: 1.9rem; line-height: 1; letter-spacing: -.02em; margin-top: auto; }
.book-cover em { font-style: normal; color: var(--sun); }
.book-cover small { font-family: var(--font-my); color: #cfcbf7; }
.dl-copy .eyebrow { color: var(--sun); }
.dl-copy p { color: #cfcbf7; margin-top: 12px; max-width: 36em; font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 16px 0 26px; display: grid; gap: 6px; }
.ticks li { padding-left: 28px; position: relative; font-weight: 600; }
.ticks li::before { content: "✓"; position: absolute; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--c1); color: #fff; font-size: .75rem; display: grid; place-items: center; top: 3px; }

/* --------------------------------------------------------------- footer -- */
.footer { background: #0c0a2c; color: #b9b5e6; padding: 36px 0; }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; }
.footer .brand { color: #fff; }
.footer p { font-size: .92rem; }
.footer a { color: var(--sun); font-weight: 700; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .fine { margin-left: auto; opacity: .7; }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--brand); color: #fff; font-size: 1.3rem; font-weight: 800; box-shadow: var(--shadow-up);
}
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 60;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: .92rem; transition: .25s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ----------------------------------------------------------- responsive -- */
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-tiles { height: 220px; order: -1; }
  .tile { width: 76px; height: 76px; border-radius: 20px; font-size: 2.4rem; }
  .tile.my { font-size: 2.3rem; }
  .dl-in { grid-template-columns: 1fr; justify-items: start; }
  .nav a { padding: 8px 10px; font-size: .88rem; }
  .results[data-view="list"] .card { grid-template-columns: 1fr auto; row-gap: 2px; }
  .results[data-view="list"] .actions { grid-column: 2; grid-row: 1 / span 3; }
  .results[data-view="list"] .word, .results[data-view="list"] .ipa, .results[data-view="list"] .mean { grid-column: 1; }
  :root { --controls-h: 170px; }
}
@media (max-width: 520px) {
  .nav { display: none; }
  .topbar-in { justify-content: space-between; }
  .fc-nav { width: 42px; height: 42px; }
  .fc-card { height: 320px; }
  .footer .fine { margin-left: 0; }
  .chip { height: 44px; }
  .search { height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .topbar, .controls, .hero, .practice, .download, .footer, .to-top, .actions { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
}
