/* Lumi — demo English playground for children */

:root {
  --cream: #fff7ea;
  --cream-deep: #fbeeda;
  --ink: #2b2140;
  --ink-soft: #5b5170;
  --paper: #fffdf8;

  --orange: #f2860f;
  --sun: #ffc94d;

  --cyan: #0e9fb8;
  --cyan-tint: #dbf5fa;
  --purple: #6d3fd8;
  --purple-tint: #e9e2ff;
  --pink: #e0518f;
  --pink-tint: #ffe3ef;
  --green: #2f9e58;
  --green-tint: #dcf6e4;

  --deep: #33205c;
  --deep-2: #26174a;

  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 10px 0 rgba(43, 33, 64, 0.08);
  --shadow-lift: 0 14px 30px rgba(43, 33, 64, 0.16);

  --font-display: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN",
    Quicksand, "Segoe UI", Verdana, system-ui, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 88% -8%, #ffe9c6 0%, rgba(255, 233, 198, 0) 60%),
    radial-gradient(760px 420px at -6% 12%, #e7f7fb 0%, rgba(231, 247, 251, 0) 62%),
    var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  min-height: 100vh;
}

h1, h2, h3, .brand__name, .btn, .prompt {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0 0 .7rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--purple); text-underline-offset: 3px; }

img { max-width: 100%; }

:focus-visible {
  outline: 3px solid #1a1140;
  outline-offset: 3px;
}

.sr-only,
.search__label {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 40;
  background: var(--deep);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus-visible { top: 12px; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: .85rem clamp(1rem, 3vw, 2rem);
  background: rgba(255, 253, 248, .94);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--cream-deep);
}

.brand { display: flex; align-items: center; gap: .6rem; }
.brand__mark {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-size: 1.5rem; font-weight: 800; }
.brand__tag { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }

.search { position: relative; display: flex; align-items: center; }
.search input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: .7rem 3rem .7rem 1rem;
  background: #fff;
  border: 2.5px solid #e6d9c3;
  border-radius: 999px;
}
.search input::placeholder { color: #8d83a0; }
.search input:focus { border-color: var(--orange); outline-offset: 2px; }
.search__clear {
  position: absolute;
  right: .55rem;
  width: 32px; height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--cream-deep);
  cursor: pointer;
}
.search__clear::before {
  content: "✕";
  font-weight: 800;
  color: var(--ink);
}
.search__clear:hover { background: #f5dfb8; }

.headstats {
  display: flex;
  align-items: center;
  gap: .55rem;
  list-style: none;
  margin: 0; padding: 0;
}
.headstats li { flex: none; }

.lang {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .45rem .3rem .7rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--cream-deep);
  cursor: pointer;
}
.lang:hover { border-color: var(--orange); }
.lang:focus-within { border-color: var(--deep); box-shadow: 0 0 0 3px rgba(26, 17, 64, .5); }
.lang__icon { font-size: .95rem; line-height: 1; }
#lang-select {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  padding: .1rem 1.15rem .1rem 0;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6.2l4.5-4.7' fill='none' stroke='%232b2140' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 11px 8px;
}
#lang-select:focus-visible { outline: none; }
#lang-select option { color: var(--ink); background: #fff; }

.stat {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
}
.stat--streak { background: #ffe6cc; color: #7a3607; border: 2px solid #ffc79a; }
.stat--stars { background: #fff2c2; color: #6b4a00; border: 2px solid #ffd95e; }
.stat__icon { font-size: 1.05rem; }
.stat__unit { font-weight: 600; opacity: .85; }

.avatar {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  display: block;
}

/* ---------- layout ---------- */

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 1.8rem) clamp(1rem, 3vw, 2rem) 3rem;
}

.sidebar {
  position: sticky;
  top: 92px;
  background: var(--paper);
  border: 3px solid var(--cream-deep);
  border-radius: var(--radius-xl);
  padding: 1.15rem 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}

.sidebar__title {
  margin: 0 0 .7rem;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 800;
}

.sidebar__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.sidebar__nav a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .7rem;
  border-radius: var(--radius-md);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}
.sidebar__nav a:hover { background: var(--cream-deep); }
.sidebar__nav a[aria-current="true"] {
  background: var(--purple-tint);
  border-color: #cbb4ff;
  color: #2c1566;
}

.dot { width: 13px; height: 13px; border-radius: 50%; flex: none; }
.dot--orange { background: var(--orange); }
.dot--cyan { background: var(--cyan); }
.dot--purple { background: var(--purple); }
.dot--pink { background: var(--pink); }
.dot--green { background: var(--green); }

.sidebar__note {
  margin-top: 1rem;
  padding: .8rem .85rem;
  background: var(--cream);
  border-radius: var(--radius-md);
  font-size: .9rem;
  color: var(--ink-soft);
}

.main { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); min-width: 0; }

/* ---------- adventure banner ---------- */

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3.5vw, 2.3rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(115deg, #ff9d2f 0%, var(--sun) 62%, #ffd97a 100%);
  border: 4px solid #ffe1a6;
  box-shadow: var(--shadow-lift);
  color: #3a1d02;
  overflow: hidden;
}

.banner__eyebrow {
  margin: 0 0 .35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .84rem;
  color: #6b3400;
}
.banner__title {
  margin: 0 0 .5rem;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  color: #2b1400;
}
.banner__text {
  max-width: 46ch;
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: #40230a;
}
.banner__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 700;
}
.chip--light { background: rgba(255, 255, 255, .78); color: #4a2405; }

.banner__art { position: relative; width: 150px; height: 150px; flex: none; }
.bubble {
  position: absolute;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow);
}
.bubble--1 { width: 92px; height: 92px; font-size: 2.6rem; top: 0; right: 6px; }
.bubble--2 { width: 58px; height: 58px; font-size: 1.6rem; bottom: 8px; left: 0; }
.bubble--3 { width: 64px; height: 64px; font-size: 1.8rem; bottom: 26px; right: -6px; }

/* ---------- sections ---------- */

.section__head { margin-bottom: 1rem; }
.section__head h2,
.panel__head h2 {
  margin: 0 0 .25rem;
  font-size: clamp(1.55rem, 3.4vw, 2.05rem);
  font-weight: 800;
}
.section__hint, .panel__hint { margin: 0; color: var(--ink-soft); font-size: .98rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(.9rem, 2vw, 1.3rem);
}

.card {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 3px solid;
  box-shadow: var(--shadow);
  background: var(--paper);
}
.card__top { display: flex; align-items: center; gap: .6rem; }
.card__emoji { font-size: 1.7rem; line-height: 1; }
.card__title { margin: 0; font-size: 1.28rem; font-weight: 800; }
.card__blurb { margin: 0; font-size: .97rem; color: var(--ink-soft); }

.card--cyan { background: var(--cyan-tint); border-color: #8fdcea; }
.card--cyan .card__title { color: #06414d; }
.card--purple { background: var(--purple-tint); border-color: #c3b0f5; }
.card--purple .card__title { color: #2b1566; }
.card--pink { background: var(--pink-tint); border-color: #f7b6d1; }
.card--pink .card__title { color: #6a1138; }
.card--green { background: var(--green-tint); border-color: #a5e2ba; }
.card--green .card__title { color: #0f4423; }

.progress { display: grid; gap: .3rem; }
.progress__label {
  display: flex; justify-content: space-between;
  font-size: .86rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
}
.progress__track {
  height: 12px;
  background: rgba(255, 255, 255, .75);
  border: 2px solid rgba(43, 33, 64, .16);
  border-radius: 999px;
  overflow: hidden;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--accent, var(--purple));
  transition: width .35s ease;
}
.card--cyan { --accent: var(--cyan); }
.card--purple { --accent: var(--purple); }
.card--pink { --accent: var(--pink); }
.card--green { --accent: var(--green); }

.words { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.word {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .5rem;
  background: rgba(255, 255, 255, .8);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
}
.word__name { flex: 1; font-weight: 700; }
.word__cn { font-size: .86rem; color: var(--ink-soft); font-weight: 600; }
.word.is-learned { border-color: #7fd8a2; background: #f0fff5; }
.word.is-learned .word__name::after { content: " ✓"; color: var(--green); font-weight: 900; }

.icon-btn {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  font: inherit;
  font-size: 1rem;
  border: 2px solid rgba(43, 33, 64, .18);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--accent, var(--purple)); }
.icon-btn[aria-pressed="true"] { background: var(--green); border-color: #1f7d42; color: #fff; }

.tip {
  margin: .45rem 0 0;
  font-size: .9rem;
  color: #3b2d1a;
  background: rgba(255, 255, 255, .8);
  border-left: 4px solid var(--accent, var(--purple));
  padding: .45rem .6rem;
  border-radius: 0 12px 12px 0;
}

.empty, .notice {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--paper);
  border: 3px dashed #d9c8ad;
  border-radius: var(--radius-lg);
  color: var(--ink-soft);
  font-weight: 600;
}
.notice {
  border-style: solid;
  border-color: #ffd95e;
  background: #fff6d8;
  color: #583a04;
}

/* ---------- word of the day ---------- */

.wotd {
  padding: clamp(1.3rem, 3.5vw, 2rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, var(--deep) 0%, var(--deep-2) 100%);
  border: 4px solid #4c3486;
  box-shadow: var(--shadow-lift);
  color: #f6f1ff;
}
.wotd__eyebrow {
  margin: 0 0 .4rem;
  color: var(--sun);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .84rem;
}
.wotd__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .8rem; }
.wotd__word {
  margin: 0 0 .3rem;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 800;
  color: #fff;
}
.wotd__say { margin: 0; color: #a9d8ff; font-size: 1.1rem; font-weight: 700; }
.wotd__meaning, .wotd__example { margin: 0 0 .5rem; font-size: 1.05rem; }
.wotd__meaning strong, .wotd__example strong { color: #ffd97a; }
.wotd__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

.guide {
  margin-top: .9rem;
  padding: .7rem .9rem;
  background: rgba(255, 255, 255, .12);
  border: 2px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: #fff4d6;
}

/* ---------- panels ---------- */

.panel {
  padding: clamp(1.15rem, 3vw, 1.8rem);
  border-radius: var(--radius-xl);
  border: 3px solid;
  box-shadow: var(--shadow);
}
.panel__head { margin-bottom: 1rem; }
.panel--pink { background: var(--pink-tint); border-color: #f7b6d1; }
.panel--pink .panel__head h2, .panel--pink .prompt { color: #6a1138; }
.panel--pink .panel__hint { color: #7c3a58; }
.panel--green { background: var(--green-tint); border-color: #a5e2ba; }
.panel--green .panel__head h2 { color: #0f4423; }
.panel--green .panel__hint { color: #245c38; }

.prompt {
  margin: 0 0 .35rem;
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
  font-weight: 800;
}
.feedback {
  min-height: 1.5rem;
  margin: 0 0 .7rem;
  font-weight: 800;
  font-size: 1.02rem;
  color: #6a1138;
}
.feedback.is-good { color: #146b38; }
.feedback.is-bad { color: #9c1c46; }

.progressline {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-bottom: .6rem;
  font-size: .9rem; font-weight: 800;
  color: #7c3a58;
}

.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: .45rem;
  margin-bottom: 1rem;
}
.letter {
  aspect-ratio: 1 / 1;
  min-width: 44px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  background: #fff;
  border: 3px solid #f3c9dc;
  border-radius: 16px;
  cursor: pointer;
}
.letter:hover { transform: translateY(-2px); border-color: var(--pink); }
.letter.is-answer { background: #d3f6df; border-color: var(--green); color: #14512c; }
.letter.is-wrong { background: #ffe0e0; border-color: #d64545; color: #8b1a1a; }

.badges {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .7rem;
}
.badge {
  display: grid;
  gap: .15rem;
  padding: .8rem .9rem;
  background: rgba(255, 255, 255, .85);
  border: 3px solid #b9e6c6;
  border-radius: var(--radius-lg);
}
.badge__name { font-weight: 800; }
.badge__need { font-size: .88rem; color: #245c38; font-weight: 700; }
.badge.is-earned { border-color: var(--green); background: #cdefd9; }
.badge.is-earned .badge__name::before { content: "★ "; color: #187a3d; }
.badge:not(.is-earned) .badge__name::before { content: "☆ "; color: #7aa789; }

.danger-zone {
  padding-top: 1rem;
  border-top: 3px dashed #b9e6c6;
}
.tiny { margin: .5rem 0 0; font-size: .9rem; color: #245c38; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .75rem 1.4rem;
  font-size: 1.03rem;
  font-weight: 800;
  border-radius: 999px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }

.btn--dark { background: var(--deep); color: #fff; border-color: #241543; box-shadow: 0 6px 0 #1d1038; }
.btn--primary { background: var(--orange); color: #2b1400; border-color: #cf6f08; box-shadow: 0 5px 0 #cf6f08; }
.btn--danger { background: #c92f4b; color: #fff; border-color: #9c1f38; box-shadow: 0 5px 0 #9c1f38; }
.btn--ghost { background: #fff; color: var(--ink); border-color: #d9c8ad; }
.btn--ghost-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--outline-dark { background: #fff; color: #8a1834; border-color: #d6748c; }
.btn--listen { background: var(--sun); color: #3a2300; border-color: #e2a916; box-shadow: 0 5px 0 #e2a916; }
.btn[aria-pressed="true"] { background: var(--green); color: #fff; border-color: #1f7d42; box-shadow: 0 5px 0 #1f7d42; }
.btn--sm { padding: .45rem .9rem; font-size: .93rem; }

/* ---------- dialog ---------- */

dialog {
  width: min(560px, calc(100vw - 2rem));
  padding: 0;
  border: 4px solid var(--sun);
  border-radius: var(--radius-xl);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(43, 33, 64, .35);
}
dialog::backdrop { background: rgba(38, 23, 74, .6); }
dialog form { padding: clamp(1.2rem, 4vw, 1.8rem); }

.modal__eyebrow {
  margin: 0 0 .2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .82rem;
  color: var(--orange);
}
.modal__round { margin: 0; font-weight: 800; color: var(--ink-soft); }
.modal__question {
  margin: .6rem 0 1rem;
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  font-weight: 700;
  text-align: center;
  color: var(--ink-soft);
}
.modal__question.is-result {
  font-size: clamp(2.1rem, 7vw, 3rem);
  font-weight: 800;
  color: var(--deep);
  text-transform: capitalize;
}
.modal__word {
  display: block;
  margin-top: .2rem;
  font-size: clamp(2.1rem, 7vw, 3rem);
  font-weight: 800;
  color: var(--deep);
  text-transform: capitalize;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
  margin-bottom: .9rem;
}
.swatch {
  height: 78px;
  border-radius: var(--radius-lg);
  border: 4px solid #2b2140;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}
.swatch:hover { transform: translateY(-2px) scale(1.02); }
.swatch.is-correct { outline: 5px solid #2f9e58; outline-offset: 3px; }
.swatch.is-wrong { outline: 5px solid #c92f4b; outline-offset: 3px; opacity: .75; }
.swatch:disabled { cursor: default; }
.feedback--modal { text-align: center; min-height: 1.6rem; }
.modal__actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: .4rem; }
dialog h2 { margin-top: 0; font-size: 1.5rem; }

/* ---------- footer ---------- */

.foot {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.4rem clamp(1rem, 3vw, 2rem) 2.5rem;
  color: var(--ink-soft);
  font-size: .93rem;
  border-top: 3px solid var(--cream-deep);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .sidebar__nav ul { grid-auto-flow: column; grid-template-columns: none; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; }
  .sidebar__nav a { white-space: nowrap; }
  .sidebar__title { font-size: .92rem; }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand stats" "search search";
    row-gap: .7rem;
  }
  .brand { grid-area: brand; }
  .headstats { grid-area: stats; justify-content: flex-end; }
  .search { grid-area: search; }
  .stat--streak .stat__unit, .stat--stars .stat__unit { display: none; }
  .banner { flex-direction: column; align-items: flex-start; }
  .banner__art { width: 100%; height: 92px; display: flex; gap: .7rem; align-items: center; }
  .bubble { position: static; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .swatches { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .brand__tag { display: none; }
  .headstats { gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
  .lang { padding: .25rem .4rem .25rem .55rem; }
  .lang__icon { display: none; }
  #lang-select { font-size: .82rem; padding-right: 1rem; }
  .stat { padding: .3rem .6rem; font-size: .9rem; }
  .avatar { width: 38px; height: 38px; }
  .alphabet-grid { grid-template-columns: repeat(auto-fit, minmax(38px, 1fr)); }
  .letter { min-width: 38px; font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (prefers-contrast: more) {
  .card, .panel, .sidebar { border-width: 4px; }
  .section__hint, .panel__hint, .card__blurb { color: var(--ink); }
}
