/* Илбирстин сапары / Trails of Kyrgyzstan. Game UI, kept separate from the site shell. */
:root { --forest: #19364b; --cream: #fff8e9; --gold: #ffce61; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #d3893c; outline-offset: 4px; }
button:active:not(:disabled) { transform: translateY(2px) scale(.98); }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
#load-error { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 30px; color: var(--cream); background: var(--forest); text-align: center; }
#load-error strong { font-size: 28px; }
#load-error p { max-width: 38ch; line-height: 1.6; font-size: 14px; }
#load-error button { background: var(--gold); color: var(--forest); border: 0; border-radius: 12px; padding: 15px 24px; font: 800 14px var(--sans); cursor: pointer; }
#load-error a { color: var(--cream); font-size: 13px; }
.overlay.hidden { visibility: hidden; pointer-events: none; }

/* The start screen is an expedition poster, with the existing painted mascot. */

/* Active play: fixed HUD panels leave the middle of the road unobstructed. */
#hud { padding: max(16px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left)); gap: 8px; }
.hud-pill { border: 1px solid #fff6df55; background: #19364bf5; color: #fff8e9; box-shadow: 0 3px 12px #18344912; border-radius: 14px; backdrop-filter: blur(8px); font-size: 13px; }
#hearts { color: #f4ba80; gap: 7px; }
#hearts .lost { opacity: .24; }
#btn-sound, #btn-pause, #btn-close-app { color: #fff1d3; border-radius: 50%; font-size: 16px; }
#score-pill { color: #fff8e9; gap: 14px; padding: 7px 14px 8px 8px; min-width: 120px; }
#score-pill small { display: block; color: #d7e4ea; font-size: 9px; letter-spacing: .08em; }
#score-pill b { font: 800 26px/1.08 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
#score-multiplier { background: #ffce61; color: #19364b; font-weight: 800; padding: 9px 7px; border-radius: 9px; }
#plume-pill { color: var(--cream); border-radius: 14px; }
#streak-pill, #mult-pill, #shield-pill, #fever-pill { display: none !important; }
#prompt { top: 80px; left: 25%; right: 25%; }
#prompt .label { font-size: 9px; color: #e4edf1; background: var(--forest); border-radius: 10px 10px 0 0; padding: 7px 14px; margin-bottom: 0; letter-spacing: .04em; text-transform: none; }
#prompt .word { background: var(--forest); color: var(--cream); font: 800 clamp(25px, 3.5vw, 40px)/1.2 var(--sans); padding: 6px 30px 12px; border: 0; border-radius: 13px; min-width: 180px; box-shadow: 0 5px 0 #10253599; }
.word-clock { width: 140px; height: 3px; margin: 10px auto 0; background: #19364b; overflow: hidden; border-radius: 4px; }
.word-clock i { display: block; height: 100%; background: #ffce61; transform-origin: left; }
#prompt .word.long-word { max-width: 100%; font-size: 28px; line-height: 1.05; padding: 4px 16px 8px; }
#prompt.gold .gold-tag { display: none; }
/* Золотое слово: тёмно-янтарная подпись на бледно-золотом фоне (контраст 5,8:1). */
#prompt.gold .label { color: #7a4a12; background: #f8e2a8; font-weight: 800; }
#answer-navigator { display: grid; top: 194px; width: min(620px, calc(100vw - 48px)); gap: 8px; }
.answer-option { min-height: 62px; padding: 12px 10px; border: 2px solid #fff6db; border-radius: 15px; background: #fff8e9f5; color: var(--forest); box-shadow: 0 4px 0 #62796255; font: 700 17px/1.2 var(--sans); }
.answer-option b { display: block; -webkit-line-clamp: unset; overflow: visible; font-family: var(--sans); font-size: inherit; line-height: 1.2; }
.answer-option[aria-pressed="true"] { border-color: #e7b35e; background: #f6d693; color: #1c374c; transform: translateY(-4px); box-shadow: 0 6px 0 #a57531; }
.answer-option.correct { background: #a2d1a9; color: #19364b; border-color: #428366; }
.answer-option.wrong { background: #e4a48a; color: #633726; }
#lane-guide { bottom: 12px; background: #19364bbd; padding: 7px 12px; }
#lane-guide span.active { background: var(--gold); }
#alt-guide { display: none !important; }
#keyboard-hint { position: fixed; bottom: 25px; left: 24px; z-index: 5; display: flex; gap: 12px; color: #fff8e9; background: #19364bf5; border: 1px solid #ffffff40; border-radius: 12px; padding: 8px 10px; font-size: 10px; }
#keyboard-hint span { display: flex; align-items: center; gap: 3px; }
#keyboard-hint kbd { display: inline-grid; place-items: center; width: 20px; height: 22px; background: #fff6dd; color: #19364b; border-radius: 5px; font: 12px var(--sans); }
/* Active effects use small peripheral indicators. */
#active-powers { position: absolute; bottom: calc(100% + 10px); right: 0; display: flex; align-items: center; justify-content: center; gap: 6px; width: max-content; max-width: calc(100vw - 24px); pointer-events: none; }
.power-chip { display: flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid #ffffff55; border-radius: 11px; background: #19364bf5; color: #fff8e9; white-space: nowrap; font-size: 11px; line-height: 1; }
.power-chip img, .power-chip svg, .power-chip i { flex: none; width: 24px; height: 24px; }
.power-chip i { display: grid; place-items: center; font: normal 800 17px var(--sans); color: var(--gold); }
.power-chip b { color: #ffce61; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 22px; text-align: right; }
#toast { bottom: 215px; max-width: min(620px, 88vw); font-size: 13px; background: #fffaf0; color: #202d3b; border: 2px solid #ffffff; box-shadow: 0 5px 20px #19364b30; }
#toast.good { background: #fffaf0; color: #202d3b; border-color: #74b782; }
#toast.bad { background: #fffaf0; color: #202d3b; border-color: #da775f; }
#toast .sub { opacity: 1; color: #394c59; }
#vignette { background: radial-gradient(ellipse, transparent 65%, #1e496419 100%); }
#coach { top: auto; bottom: 208px; max-width: min(490px, 90vw); }
#countdown { position: fixed; z-index: 15; inset: 0; display: grid; place-items: center; font: 800 clamp(70px, 15vw, 140px)/1 var(--sans); letter-spacing: -.08em; color: #fff1c7; text-shadow: 0 6px 0 #19364b, 0 8px 80px #19364b99; background: #1c374c15; pointer-events: none; }
#speed-lines { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0; box-shadow: inset 0 0 110px #ffcb6277; background: repeating-conic-gradient(from 0deg at 50% 47%, #fff2be22 0deg 1deg, transparent 1deg 16deg); mask-image: radial-gradient(ellipse, transparent 30%, #000 90%); transition: opacity .3s; }
body.boosting #speed-lines { opacity: 1; }
body.boosting #vignette { opacity: .12; }
body:not([data-phase="play"]) #keyboard-hint, body:not([data-phase="play"]) #active-powers { display: none; }

@media (max-width: 700px) {
  #hud { padding: max(10px, env(safe-area-inset-top)) 12px 0; gap: 5px; }
  .hud-group { gap: 5px; }
  #hearts { padding: 6px 9px; gap: 3px; font-size: 13px; }
  #btn-sound, #btn-pause, #btn-close-app { width: 44px; min-width: 44px; min-height: 44px; padding: 7px; }
  #plume-pill { padding: 6px 9px; gap: 3px; font-size: 11px; }
  #score-pill { min-width: 76px; gap: 6px; padding: 6px; }
  #score-pill b { font-size: 20px; }
  #score-multiplier { font-size: 10px; padding: 7px 4px; }
  #prompt { top: 125px; left: 10%; right: 10%; }
  #prompt .word { font-size: 29px; min-width: 170px; padding: 5px 20px 9px; }
  #prompt .word.long-word { font-size: 20px; }
  #prompt .label { font-size: 8px; padding: 5px 12px; }
  .word-clock { margin-top: 8px; }
  #answer-navigator { top: 213px; gap: 6px; width: calc(100vw - 24px); }
  .answer-option { min-height: 55px; border-radius: 11px; padding: 9px 5px; font-size: 13px; word-break: normal; overflow-wrap: anywhere; }
  #keyboard-hint { display: none !important; }
  #active-powers { left: 50%; right: auto; transform: translateX(-50%); }
  .power-chip { gap: 4px; padding: 5px 6px; font-size: 10px; }
  .power-chip img, .power-chip svg, .power-chip i { width: 22px; height: 22px; }
  .power-chip b { min-width: 20px; }
  #toast { bottom: 195px; font-size: 11px; padding: 10px 15px; }
  #coach { bottom: 192px; padding: 12px; }
  #coach-title { font-size: 14px; }
  #coach-sub { font-size: 11px; }
  #coach-keys { font-size: 10px; }
}
@media (orientation: landscape) and (max-height: 540px) {
  #hud { padding-top: 8px; }
  #keyboard-hint { display: none !important; }
  #prompt { top: 8px; left: 30%; right: 30%; }
  #prompt .word { font-size: 22px; min-width: 130px; padding: 3px 18px 6px; }
  #prompt .label { font-size: 7px; padding: 4px 6px; }
  #answer-navigator { top: 93px; width: 54vw; }
  .answer-option { font-size: 12px; min-height: 42px; padding: 6px; }
  #toast, #coach { bottom: 35px; max-width: 46vw; left: 37%; }
}
@media (min-width: 701px) and (max-width: 960px) and (min-height: 541px) {
  #prompt { left: 31%; right: 27%; }
  #prompt .word { min-width: 0; padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #speed-lines { display: none; }
}

/* Practice remains readable above the road, with no time limit on input. */
body.training #prompt, body.training #keyboard-hint { display: none !important; }
body.training #coach, body.training #coach.on {
  top: calc(80px + env(safe-area-inset-top)); bottom: auto; left: 24px; right: auto;
  width: min(440px, calc(100vw - 48px)); max-width: none; transform: none;
  padding: 16px; gap: 12px; border-radius: 16px; background: #19364bf5;
  color: #fff8e9; border: 1px solid #fff8e950; box-shadow: 0 4px 16px #19364b20;
  pointer-events: auto; text-align: left;
}
body.training #coach-badge { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; background: #ffce61; color: #19364b; font-size: 24px; }
body.training #coach-step { color: #d7e4ea; font-size: 10px; padding-right: 76px; }
body.training #coach-title { color: #fff8e9; font-size: 19px; margin-top: 6px; line-height: 1.25; }
body.training #coach-sub { display: block; color: #f4ecd9; font-size: 12px; line-height: 1.45; margin-top: 5px; }
body.training #coach-keys { display: inline-block; color: #19364b; background: #ffce61; padding: 6px 10px; border-radius: 7px; font-size: 12px; margin-top: 9px; }
#btn-skip-training { position: absolute; top: 5px; right: 8px; min-height: 36px; background: none; border: 0; color: #f4ecd9; font: 600 11px var(--sans); cursor: pointer; }
body[data-phase="paused"] #coach { display: none; }
.native-webview #btn-story { display: none; }
.gesture-help { display: none; }
html.mobile-input .gesture-help { display: block; margin: 12px 0 0; color: #394c59; font-size: 10px; line-height: 1.8; text-align: center; }
.gesture-help strong { font-weight: 750; }
html.mobile-input #keyboard-hint, html.mobile-input #lane-guide { display: none; }
/* Charge belongs to the HUD. The whole road remains a gesture surface. */
html.mobile-input .power-chip { padding: 4px 6px; gap: 4px; border-radius: 8px; }
html.mobile-input .power-chip > span { display: none; }
html.mobile-input .power-chip img, html.mobile-input .power-chip svg, html.mobile-input .power-chip i { width: 18px; height: 18px; }
html.mobile-input .power-chip b { min-width: 18px; font-size: 10px; }
html.mobile-input #speed-lines { background: none; mask-image: none; box-shadow: inset 0 0 38px #ffd68130; }
html.mobile-input #prompt { top: calc(174px + env(safe-area-inset-top)); }
@media (orientation: landscape) and (max-height: 540px) {
  html.mobile-input #prompt { top: max(8px, env(safe-area-inset-top)); }
  html.mobile-input body.training #coach { top: calc(66px + env(safe-area-inset-top)); }
  html.mobile-input .gesture-help { font-size: 9px; margin-top: 6px; }
}
/* Кнопка Söz стоит рядом с повтором забега, а не в самом низу итогов.
   В приложении итог обучения главнее: она первая и в основном цвете. */
@media (max-width: 700px) {
  body.training #coach, body.training #coach.on { left: 12px; width: calc(100vw - 24px); top: calc(74px + env(safe-area-inset-top)); padding: 12px; gap: 10px; }
  body.training #coach-title { font-size: 16px; }
  body.training #coach-badge { width: 32px; height: 32px; flex-basis: 32px; font-size: 22px; }
  .hud-pill, #coach { backdrop-filter: none; }
}
@media (orientation: landscape) and (max-height: 540px) {
  body.training #coach, body.training #coach.on { top: 72px; left: 12px; width: min(285px, 38vw); padding: 10px; }
  body.training #coach-badge { display: none; }
  body.training #coach-sub { font-size: 11px; }
  body.training #coach-title { font-size: 15px; }
  body.training #coach-keys { margin-top: 6px; font-size: 11px; }
}

/* Match the warm Söz app shell while keeping the mountain world as game art. */
@font-face {
  font-family: 'Charis SIL';
  src: url('./assets/fonts/charis-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --forest: #2d261f;
  --cream: #fbf8f1;
  --gold: #b75a35;
  --serif: 'Charis SIL', Charter, 'Iowan Old Style', Georgia, serif;
}
.gesture-help { display: none; }
html.mobile-input .gesture-help { color: var(--ink2); font-size: 13px; line-height: 1.45; }
.gesture-help__title { grid-column: 1 / -1; color: var(--ink); font-weight: 800; }

/* Controls and overlays use the same cream surfaces and terracotta accent. */
.hud-pill, .power-chip {
  border-color: #e9e1d6;
  background: #fffaf0f5;
  color: var(--ink);
}
#hearts { color: var(--terracotta); }
#btn-sound, #btn-pause, #btn-close-app, #score-pill, #plume-pill { color: var(--ink); }
#score-pill small { color: var(--muted); }
#score-multiplier { color: #fff; background: var(--terracotta); }
#prompt .label, #prompt .word { color: var(--ink); background: #fffaf0f5; }
#prompt .word { font-family: var(--serif); font-weight: 400; box-shadow: 0 5px 0 #2d261f24; }
.word-clock { background: #2d261f22; }
.word-clock i { background: var(--terracotta); }
.answer-option { border-color: #e9e1d6; background: #fffaf0f5; color: var(--ink); }
.answer-option[aria-pressed="true"] { border-color: var(--terracotta); background: #f6dfc9; color: var(--ink); }
body.training #coach, body.training #coach.on {
  color: var(--ink);
  background: #fffaf0f5;
  border-color: #e9e1d6;
}
body.training #coach-badge { color: #fff; background: var(--terracotta); }
body.training #coach-step, body.training #coach-sub, #btn-skip-training { color: var(--ink2); }
body.training #coach-title { color: var(--ink); font-family: var(--serif); font-weight: 400; }
body.training #coach-keys { color: #8f4123; background: #faf0e5; }
.btn-primary { background: var(--terracotta); color: #fff; }

/* Run progress stays at the edge; the road remains a full gesture surface. */
html, body { overscroll-behavior: none; }
.power-chip b, .power-chip i { color: #8f4123; }
#btn-skip-training { min-height: 44px; min-width: 88px; pointer-events: auto; }
.perfect-help { margin: 14px 0; font-size: 12px; line-height: 1.6; color: var(--ink2); }
#pause-overlay .sheet { max-height: calc(100dvh - 32px); overflow-y: auto; touch-action: pan-y; }
#graphics-error, .no-script { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); color: var(--ink); background: var(--cream); text-align: center; }
#graphics-error strong { font-size: 24px; }
#graphics-error p { max-width: 38ch; line-height: 1.6; font-size: 14px; }
#graphics-error button { min-height: 48px; background: var(--terracotta); color: #fff; border: 0; border-radius: 12px; padding: 12px 20px; font: 750 14px var(--sans); cursor: pointer; }
#load-error { background: var(--cream); color: var(--ink); }
#load-error button { background: var(--terracotta); color: #fff; }
#load-error a { color: var(--ink2); }
@media (orientation: landscape) and (max-height: 540px) {
  #pause-overlay .sheet { padding: 18px; }
  #pause-overlay .perfect-help { margin-block: 8px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  #speed-lines { display: none; }
}

/* Quiet play HUD: one row, plus bonuses only for the lifetime of their effect. */
#hud { padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); align-items: flex-start; }
#hud .hud-group { gap: 6px; align-items: center; }
#hud .hud-pill { backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 2px 5px #26383014; }
#hud #hearts { min-height: 36px; padding: 7px 10px; border-radius: 18px; gap: 5px; font-size: 13px; }
#hud #btn-pause, #hud #btn-close-app, #hud #btn-sound { width: 44px; height: 44px; min-height: 44px; padding: 0; }
#hud #score-pill { min-width: 78px; min-height: 44px; padding: 6px 11px; gap: 6px; border-radius: 15px; }
#hud #score-pill small { font-size: 8px; line-height: 1; letter-spacing: .03em; }
#hud #score-pill b { font-size: 23px; line-height: 1.12; }
#hud #score-multiplier { font-size: 11px; padding: 4px 5px; border-radius: 7px; }
#hud #btn-sound, #hud #plume-pill, #hud #goal-pill, #keyboard-hint, #lane-guide { display: none !important; }
#active-powers, html.mobile-input #active-powers {
  position: fixed; top: calc(64px + env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left));
  bottom: auto; right: auto; transform: none; width: max-content; max-width: calc(100vw - 24px);
  justify-content: flex-start; flex-wrap: wrap; gap: 5px; z-index: 5; pointer-events: none;
}
#active-powers .power-chip { min-height: 30px; padding: 4px 7px; border-radius: 10px; font-size: 10px; background: #fffaf0f5; color: var(--ink); }
#active-powers .power-chip > span { display: none; }
#active-powers .power-chip img, #active-powers .power-chip svg, #active-powers .power-chip i { width: 20px; height: 20px; }
#active-powers .power-chip b { min-width: 18px; color: #8f4123; font-size: 10px; }
#prompt, html.mobile-input #prompt { top: calc(106px + env(safe-area-inset-top)); left: 15%; right: 15%; }
/* main.js держит слово над карточками, пока они едут по тропе. */
#prompt { translate: 0 var(--prompt-shift, 0px); }
#prompt .label { font-size: 9px; padding: 5px 10px 2px; }
#prompt .word { min-width: 150px; padding: 2px 18px 8px; font-size: 30px; }
#prompt .word-clock { margin-top: 7px; }
#toast { top: calc(106px + env(safe-area-inset-top)); bottom: auto; max-width: calc(100vw - 28px); padding: 8px 13px; font-size: 12px; }
body.training #active-powers { display: none; }
@media (orientation: landscape) and (max-height: 540px) {
  #prompt, html.mobile-input #prompt { top: max(12px, env(safe-area-inset-top)); left: 30%; right: 30%; }
  #prompt .word { font-size: 24px; min-width: 0; }
  #prompt .label { font-size: 8px; }
  #toast { top: max(12px, env(safe-area-inset-top)); max-width: 42vw; }
}

/* Второй шанс: короткий словесный экзамен вместо экрана проигрыша. */
#revive-overlay .revive-sheet { max-width: 380px; padding: 20px 20px 14px; }
.revive-mascot { display: block; width: auto; height: 92px; margin: -2px auto 6px; object-fit: contain; }
#revive-overlay h1 { font-size: 30px; margin-bottom: 6px; }
#revive-overlay .tagline { margin-bottom: 12px; font-size: 13.5px; min-height: 2.9em; }
.revive-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.revive-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2d261f1f; transition: background .2s ease; }
.revive-dots i.done { background: var(--sage); }
.revive-word { font-family: var(--serif); font-size: 36px; line-height: 1.1; margin-bottom: 14px; color: var(--ink); overflow-wrap: anywhere; }
.revive-options { display: grid; gap: 8px; }
.revive-option {
  min-height: 52px; padding: 10px 14px; border-radius: 15px; cursor: pointer;
  border: 1.5px solid #2d261f2e; background: #fffaf0; color: var(--ink); font: 700 17px var(--sans);
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.revive-option:active { transform: scale(.98); }
.revive-option:disabled { cursor: default; }
.revive-option.good { background: var(--sage); border-color: var(--sage); color: #fff; }
.revive-option.bad { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
#btn-revive-skip { margin-top: 6px; }

/* Куржун: главный счёт забега — пойманные слова. */
#hud #kurjun-pill { min-height: 44px; padding: 6px 10px 6px 8px; gap: 5px; border-radius: 15px; color: var(--ink); }
#hud #kurjun-pill b { font: 800 19px/1 var(--sans); font-variant-numeric: tabular-nums; }
#kurjun-pill.pop { transform: scale(1.14); }

/* Плашка маршрута: кыргызское название зоны с переводом. Сбоку, а не по
   центру, и только на три секунды при входе в зону: в остальное время угол
   экрана свободен для обзора, особенно на маленьких телефонах. */
#route-pill {
  position: fixed; top: calc(64px + env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right));
  z-index: 5; pointer-events: none; display: flex; flex-direction: column; align-items: flex-end;
  padding: 4px 10px 5px; border-radius: 11px; background: #fffaf0f0; border: 1px solid #e8d8c4;
  box-shadow: 0 2px 5px #26383014; transform-origin: right center;
  opacity: 0; visibility: hidden;
}
#route-pill b { font: 400 15px/1.15 var(--serif); color: var(--ink); }
#route-pill span { font: 700 8px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #8f4123; }
#route-pill.fresh { animation: route-flash 3.4s ease both; }
@keyframes route-flash {
  0% { transform: translateX(14px); opacity: 0; visibility: visible; }
  10%, 82% { transform: none; opacity: 1; visibility: visible; }
  100% { transform: none; opacity: 0; visibility: hidden; }
}
body.training #route-pill, body[data-phase="start"] #route-pill { display: none; }
/* Вход из приложения: меню игры не показывается даже на время загрузки. */
html.autostart #start-overlay { visibility: hidden; opacity: 0; pointer-events: none; }

/* Слово дня: буквы одного слова собираются на тропе за день. */
.day-word {
  display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; min-height: 58px;
  padding: 9px 12px; border-radius: 16px; background: #fffaf0; border: 1px solid #e8d8c4; text-align: left;
}
.day-word:empty { display: none; }
.day-word__label { font: 700 9px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #8f4123; }
.day-word__tiles { display: flex; flex-wrap: wrap; gap: 3px; }
.day-word__tiles i {
  display: grid; place-items: center; width: 18px; height: 21px; border-radius: 5px;
  background: #2d261f12; font: 800 12px/1 var(--sans); font-style: normal; color: var(--ink);
}
.day-word__tiles i.got { background: #e5a335; color: #fff; }
.day-word small {
  font-size: 9.5px; line-height: 1.3; color: var(--ink2); overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
#day-word-result { margin: 12px 0; }


/* Пока игрок выбирает перевод, подсказки уходят вниз, под барса, и не
   накрывают слово с карточками. */
body.word-choice #toast { top: auto; bottom: calc(28px + env(safe-area-inset-bottom)); }
