/* Black English — «Сезон 1»: layout of the game screens on top of the UI kit (say-less/assets/ui/kit.css).
   The kit owns the materials (smoked glass, chrome, liquid gold, ember) and the components (plates, HUD, pins,
   mission card, МИССИЯ ПРОЙДЕНА). This file places them: the phone (Telegram, portrait) and the computer (from
   1024×600: a game screen with side rails) — docs/GAME-UI.md. Always dark. */

:root {
  --top: calc(env(safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --bot: env(safe-area-inset-bottom, 0px);
  --rail: clamp(300px, 26vw, 460px);   /* the answers' column: 22 signs of English in one line at 1440 (GAME-UI 6.2) */
  --gap: 24px;
  --tint: #8A9097;
  --sub-ru: 20px;
  color-scheme: dark;
}
/* In Telegram's full screen the WebView may report env() as 0 and give the device inset only as
   --tg-safe-area-inset-*: take the larger of the two, never their sum. */
@supports (padding: max(1px, 2px)) {
  :root {
    --top: calc(max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px));
    --bot: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--asphalt); }
body { overscroll-behavior: none; }
.be {
  position: fixed; inset: 0; overflow: hidden;
  background: var(--asphalt); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.be [hidden] { display: none !important; }
/* zero specificity: a plain button inherits the page's font, but the kit's .be-btn / .be-btn--gold / .be-plate / .be-chip
   (one class each) keep their own condensed italic and dark-on-gold text — «.be button» outranked them all */
:where(.be) :where(button) { font: inherit; color: inherit; cursor: pointer; }
.be button:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.be :is(.be-btn, .be-plate, .be-pin):focus-visible { outline: none; }
.be p, .be h2, .be h3, .be dl, .be ul, .be ol { margin: 0; }
.be ul, .be ol { padding: 0; list-style: none; }
.be img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scr { position: absolute; inset: 0; overflow: hidden; background: var(--asphalt); }
.lbl { font: 800 13px/1.2 var(--font-cond); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
/* the sound of English (PRONUNCIATION.md): never capitals, never italics */
.be-pr, .pr-i, .sub-pr, .sc-pron, .be-plate__pr { text-transform: none !important; font-style: normal !important; }
.be-pr { display: block; margin-top: 2px; font: 500 14px/1.3 var(--font-body); color: #B4B9BF; }
.pr-i { font: 500 .92em/1.3 var(--font-body); color: #C9B57E; white-space: normal; }
.be-key { vertical-align: middle; }
.be-plate.is-ru .be-plate__text > b { font-size: .9em; }
.be-plate-slot.is-gone { display: none; }

/* ============================== splash ============================== */
.splash { background: var(--asphalt) center / cover no-repeat; }
.splash-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,11,12,.9) 0%, rgba(11,11,12,.5) 26%, rgba(11,11,12,0) 46%, rgba(11,11,12,0) 56%, rgba(11,11,12,.8) 80%, rgba(11,11,12,.97) 100%); }
.splash-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%;
  padding: calc(9vh + var(--top)) 20px calc(80px + var(--bot)); background: none; border: 0; color: var(--ink); text-align: center; }
.splash-mark { display: block; width: min(92%, 520px); line-height: 0; }
.splash-mark img { display: block; width: 100%; height: auto; transform: rotate(-4deg); mix-blend-mode: screen; }
.splash-mark-text { display: none; }
.splash-mark.noimg .splash-mark-text { display: inline-block; font: italic 400 clamp(2.8rem, 14vw, 4.4rem)/1 var(--font-display); text-transform: uppercase;
  background: linear-gradient(180deg, #E6E9EC 0%, #B8BEC5 45%, #8A9097 55%, #D7DBDF 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 var(--gold-dk)) drop-shadow(0 0 18px rgba(0,0,0,.8)); transform: rotate(-4deg); }
.splash-slogan { font: italic 800 1.5rem/1.2 var(--font-cond); letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 2px 8px #000; transform: rotate(-4deg); }
.splash-season { font: 800 14px/1.3 var(--font-cond); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 6px #000; }
.splash-start:focus-visible { outline: none; }
.splash-start:focus-visible .splash-press { animation: none; color: #FFF4D6; }
.splash-press { margin-top: auto; padding: 10px 18px; font: 900 1.4rem/1 var(--font-cond); letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-hi); text-shadow: 0 0 16px rgba(245,210,122,.6), 0 2px 0 #000; animation: press 1.4s ease-in-out infinite; }
@keyframes press { 50% { opacity: .35; } }
.dev-credit { font: 600 13px/1.3 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.dev-credit span { color: var(--chrome-lo); }
.dev-credit b { color: var(--gold); font-weight: 600; }
/* what this is, for someone from an ad (F123); the cities never break inside */
.splash-what { max-width: 32ch; font: 600 15px/1.35 var(--font-body); color: var(--ink); text-shadow: 0 2px 6px #000; text-align: center; }
.splash-season .nw { white-space: nowrap; }
/* the intro (F073) */
.splash-video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; background: var(--asphalt); }
.splash-video[hidden] { display: none; }
.splash-video::cue { font-family: "Golos Text", "Segoe UI", sans-serif; font-weight: 700; font-size: 20px; line-height: 1.3; color: #fff; background: rgba(11,11,12,.6); text-shadow: 0 0 3px #000, 0 2px 4px #000; }
.splash.playing .splash-start, .splash.playing .splash-credit, .splash.playing .splash-shade { opacity: 0; pointer-events: none; }
.splash-skip { position: absolute; z-index: 2; top: calc(var(--top) + 14px); right: 16px; padding: 8px 14px; border: 1px solid rgba(230,233,236,.3); border-radius: 3px;
  background: rgba(20,20,24,.85); color: var(--ink); font: 800 1rem/1 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; }
.splash-skip[hidden] { display: none; }
@media (min-aspect-ratio: 3 / 4) { .splash-video { object-fit: contain; } }
.splash-credit { position: absolute; left: 50%; bottom: calc(18px + var(--bot)); transform: translateX(-50%); margin: 0; white-space: nowrap; pointer-events: none; }

/* ============================== season map: phone ============================== */
.map { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  background: radial-gradient(120% 60% at 50% 0%, #17171C, #0B0B0C 70%); }
.mtop { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; padding: calc(var(--top) + 10px) 12px 8px;
  background: linear-gradient(180deg, rgba(11,11,12,.96), rgba(11,11,12,.7)); }
.mtop-brand { display: none; }
.mtop-rank { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 0; background: none; border: 0; text-align: left; }
.mtop-rank img { width: 42px; height: 42px; flex: none; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0,0,0,.7)); }
.mtop-rank > span { min-width: 0; }
.mtop-rank b { display: block; white-space: nowrap; font: 400 18px/1 var(--font-display); letter-spacing: .07em; color: var(--chrome-hi); text-shadow: 0 2px 0 #000; }
.mtop-rank small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; margin-top: 4px; overflow: hidden;
  font: 800 12px/1.1 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mtop-stats { display: flex; align-items: center; gap: 10px; flex: none; }
/* the streak and the XP never read as one number («🔥1 456 XP», F071): a thin rule between them */
.mtop-stats .be-xp { padding-left: 10px; border-left: 1px solid rgba(230,233,236,.22); }
.mtop-stats .be-streak { font-size: 22px; }
.mtop-stats .be-streak__flame { width: 24px; height: 28px; }
.mtop-stats .be-xp { font-size: 17px; }
.mtop-frz { display: inline-flex; align-items: center; gap: 2px; font: 400 15px/1 var(--font-display); color: #CFE6F2; }
.mtop-frz img { width: 24px; height: 24px; object-fit: contain; }
.mtop .be-btn--icon { width: 42px; height: 42px; }
.mtop .be-btn--icon img { width: 28px; height: 28px; }

.mbody { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; min-height: 0; }
.mlist { display: none; }
.mstage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.mcities { display: flex; gap: 6px; padding: 2px 12px 8px; }
.mcity { flex: 1 1 0; min-width: 0; display: flex; align-items: baseline; justify-content: center; gap: 5px; height: 38px; padding: 0 6px; border: 0; border-radius: 19px; white-space: nowrap; overflow: hidden;
  background: rgba(23,23,27,.86); box-shadow: inset 0 0 0 1px rgba(230,233,236,.14);
  font: 800 15px/38px var(--font-cond); letter-spacing: .06em; text-transform: uppercase; color: var(--chrome-hi); }
.mcity small { font: 400 12px/1 var(--font-display); letter-spacing: .04em; color: var(--muted); }
.mcity.on { color: var(--asphalt); background: var(--gold-fill); box-shadow: 0 0 14px rgba(245,210,122,.3); }
.mcity.on small { color: rgba(11,11,12,.7); }
.mview { position: relative; overflow: auto; overscroll-behavior: contain; padding: 0 12px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mview::-webkit-scrollbar { display: none; }
.mview .be-map { width: 100%; border-radius: 14px; }
.be-map.gmap--atlanta, .be-map.gmap--houston { aspect-ratio: 1 / 1; }
.gmap-label { position: absolute; left: 12px; top: 10px; z-index: 1; pointer-events: none;
  font: 800 15px/1 var(--font-cond); letter-spacing: .24em; text-transform: uppercase; color: var(--chrome-hi);
  text-shadow: 0 2px 0 #000, 0 0 12px rgba(0,0,0,.9); }
.gmap--miami:not(.gmap--inset) > .gmap-label { display: none; }
.gmap-insets, .gmap-legend { display: none; }
/* the pin of the selected mission (strip / list) */
.be-pin.is-sel { z-index: 4; }
/* every mission's number and stars stay readable over a neighbour's icon (F025): the labels sit above all the pins of
   their map, the «Сегодня» flag above the icons but under the neighbours' numbers; today's pin and the selected one no
   longer lift their whole button (icon and flag) over the others. The map is its own stacking layer (its insets and
   legend stay on top of Miami's labels). */
.be-map { isolation: isolate; }
.be-pin.is-today, .be-pin.is-sel { z-index: auto; }
.be-pin__flag { z-index: 1; }
.be-pin__num { z-index: 2; }
.be-pin.is-sel .be-pin__num { z-index: 3; }
.be-pin.is-sel::before { box-shadow: 0 0 0 2px var(--gold-hi), 0 0 18px rgba(245,210,122,.7), 0 6px 14px rgba(0,0,0,.75); }
.be-pin.is-open > img { filter: brightness(.9) drop-shadow(0 3px 3px rgba(0,0,0,.8)); }
.be-pin.is-final { --pin: 64px; }
.be-pin.is-final::before { background: linear-gradient(#0B0B0C, #0B0B0C) padding-box, linear-gradient(135deg, #FFF4D6, #F5D27A 35%, #8C6A1E 65%, #F5D27A) border-box; box-shadow: var(--neon-gold), 0 6px 14px rgba(0,0,0,.75); }
.be-pin.is-final .be-pin__num { color: var(--asphalt); background: linear-gradient(180deg, #F5D27A, #D4A63A); }
/* boss pins carry the emblem of the rank they give (Contender, Champ, «Свой») */
.be-pin > .pin-emblem { position: absolute; right: -14px; bottom: -6px; width: 30px; height: 30px; object-fit: contain; border-radius: 0;
  filter: drop-shadow(0 2px 3px #000); }
.be-pin.is-done > .pin-emblem { filter: drop-shadow(0 0 6px rgba(245,210,122,.7)); }
.gmap--inset .be-pin > .pin-emblem { width: 20px; height: 20px; right: -9px; bottom: -4px; }

.mstrip { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 8px 12px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mstrip::-webkit-scrollbar { display: none; }
.mstrip-cell { flex: none; width: min(280px, calc(100vw - 72px)); scroll-snap-align: center; }
.mrow { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 84px;
  padding: 10px 12px; border: 0; border-radius: 12px; text-align: left; color: var(--ink);
  background: linear-gradient(180deg, rgba(36,37,42,.92), rgba(15,15,18,.96)); box-shadow: inset 0 0 0 1px rgba(230,233,236,.12), 0 8px 20px rgba(0,0,0,.5);
  transition: transform var(--t-press, 110ms), box-shadow .18s; }
.mrow:active { transform: scale(.98); }
.mrow.is-sel { box-shadow: inset 0 0 0 1.5px var(--gold-hi), 0 0 18px rgba(245,210,122,.25), 0 8px 20px rgba(0,0,0,.5); }
.mrow.s-today:not(.is-sel) { box-shadow: inset 0 0 0 1.5px var(--ember), 0 0 16px rgba(255,90,31,.25), 0 8px 20px rgba(0,0,0,.5); }
.mrow.s-paywall, .mrow.s-later, .mrow.s-tomorrow { color: #9AA0A7; }
.mrow-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 10px; background: radial-gradient(circle at 50% 35%, #26272C, #0E0E10); box-shadow: inset 0 0 0 1px rgba(230,233,236,.14); }
.mrow-ico img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0,0,0,.7)); }
.mrow-ico .mrow-face { width: 50px; height: 50px; border-radius: 9px; object-fit: cover; object-position: 50% 15%; }
.mrow.boss .mrow-ico { background: linear-gradient(#0B0B0C, #0B0B0C) padding-box, linear-gradient(135deg, #F5D27A, #8C6A1E 45%, #C8102E 70%, #F5D27A) border-box; border: 1.5px solid transparent; }
.mrow.s-paywall .mrow-ico img, .mrow.s-later .mrow-ico img { filter: grayscale(1) brightness(.4); }
.mrow-body { min-width: 0; display: grid; gap: 2px; }
.mrow-num { font: 800 12px/1.1 var(--font-cond); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.mrow-title { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; font: italic 900 20px/1.05 var(--font-cond); text-transform: uppercase; letter-spacing: .01em; }
.mrow-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 12px/1.2 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--tag, var(--muted)); }
.mrow-st { display: grid; justify-items: end; }
.mrow-st .be-stars { --star-size: 15px; gap: 2px; }
.mrow-today { padding: 3px 7px 2px; border-radius: 2px; font: italic 900 12px/1 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--asphalt); background: linear-gradient(180deg, #FFB070, #FF5A1F); }
.mrow-lock svg { width: 18px; height: 18px; fill: var(--gold); }
.mrow-hint { font: 400 13px/1 var(--font-display); color: var(--chrome-hi); }
.mcta { padding: 2px 16px 10px; }
.be.tg-main .mcta, .be.tg-main .mc-actions .be-btn--gold { display: none; }
.gnav { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px 6px calc(4px + var(--bot));
  background: linear-gradient(180deg, #141418, #0B0B0C); border-top: 1px solid #2E3137; box-shadow: 0 -1px 0 rgba(230,233,236,.06), 0 -14px 30px rgba(0,0,0,.6); }
.gnav button { position: relative; display: grid; justify-items: center; gap: 4px; padding: 9px 2px 10px; background: none; border: 0; color: var(--muted);
  font: 800 13.5px/1 var(--font-cond); text-transform: uppercase; letter-spacing: .06em; }
.gnav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gnav button.on { color: var(--gold-hi); text-shadow: 0 0 12px rgba(245,210,122,.45); }
.gnav button.on::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 3px; height: 3px; border-radius: 2px; background: var(--gold-bar); box-shadow: 0 0 10px rgba(245,210,122,.7); }

/* ============================== mission card: phone ============================== */
.card { background: #000; }
.card-bg { display: none; }
.card .mc { position: absolute; inset: 0; aspect-ratio: auto; max-height: none; border-radius: 0; align-content: end; box-shadow: none; }
.card .mc::after { display: none; }
.mc-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.card .be-mission-card__shade { background: linear-gradient(180deg, rgba(11,11,12,.75), rgba(11,11,12,0) 18%, rgba(11,11,12,0) 30%, rgba(11,11,12,.88) 52%, #0B0B0C 70%); }
.mc-x { position: absolute; z-index: 4; top: calc(var(--top) + 10px); right: 12px; }
.mc-x svg { width: 22px; height: 22px; }
.mc-body { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: calc(var(--top) + 30vh) 16px calc(var(--bot) + 16px); scrollbar-width: none; }
.mc-body::-webkit-scrollbar { display: none; }
.mc .be-mission-card__title { font-size: clamp(38px, 11vw, 52px); }
.mc .be-pr { font-size: 14px; }
.mc .be-facts dd { font-size: 15px; }
.mc-people { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.mc-people .be-hero__ava { width: 42px; height: 42px; }
.mc-people .be-hero__tag { font-size: 14px; }
.mc-people .be-hero__line { margin-top: 1px; font-size: 12.5px; color: var(--muted); }
.mc-phrases { border-radius: 10px; background: rgba(23,23,27,.72); box-shadow: inset 0 0 0 1px rgba(230,233,236,.12); }
.mc-phrases summary { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 14px; cursor: pointer; list-style: none;
  font: 800 14px/1 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); }
.mc-phrases summary::-webkit-details-marker { display: none; }
.mc-phrases summary svg { width: 20px; height: 20px; transition: transform .2s; }
.mc-phrases[open] summary svg { transform: rotate(180deg); }
.mc-phrases ul { display: grid; gap: 10px; padding: 2px 14px 14px; }
.mc-phrases li { display: grid; gap: 1px; }
.mc-phrases li b { font: italic 900 19px/1.1 var(--font-cond); text-transform: uppercase; color: var(--chrome-hi); }
.mc-ru { font: 400 14px/1.35 var(--font-body); color: var(--ink); }
.mc-light { justify-self: start; margin-top: 3px; padding: 2px 6px 1px; border-radius: 2px; font: 800 11px/1.1 var(--font-cond); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--asphalt); background: #3DDC97; }
.mc-light.l-С { background: #F2A33A; } .mc-light.l-П { background: #FF5C70; }
.mc-radar { display: none; }
.mc-actions { display: grid; gap: 6px; justify-items: center; margin-top: 4px; }
.mc-load { height: 3px; margin: 2px 0 0; overflow: hidden; border-radius: 2px; background: rgba(230,233,236,.08); }
.mc-load i { display: block; width: 30%; height: 100%; background: var(--gold-bar); animation: load 1.2s ease-in-out infinite; }
.mc-load.is-ready i { width: 100%; animation: none; }
.mc-load.is-fail i { width: 100%; animation: none; background: var(--red); }
@keyframes load { from { transform: translateX(-110%); } to { transform: translateX(340%); } }

/* ============================== radar (GAME-UI 6.7) ============================== */
.radar { position: relative; width: 200px; aspect-ratio: 1; margin: 4px auto 6px; border-radius: 50%; overflow: hidden; background: #071419;
  box-shadow: 0 0 0 2px #8A9097, 0 0 0 4px #0B0B0C, 0 0 0 5px rgba(230,233,236,.35), 0 10px 24px rgba(0,0,0,.6); }
.radar-map { position: absolute; inset: 0; background-repeat: no-repeat; filter: saturate(.85); }
.radar::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(230,233,236,.55) 0 1deg, transparent 1deg 15deg); -webkit-mask: radial-gradient(closest-side, transparent 90%, #000 91%); mask: radial-gradient(closest-side, transparent 90%, #000 91%); }
.radar::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 50%; box-shadow: inset 0 0 30px rgba(0,0,0,.85); }
.radar-sweep { position: absolute; inset: 0; z-index: 1; border-radius: 50%; background: conic-gradient(from 0deg, rgba(245,210,122,.2), transparent 22%); animation: sweep 6s linear infinite; }
@keyframes sweep { to { transform: rotate(1turn); } }
.radar-me { position: absolute; z-index: 2; left: 50%; top: 50%; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-bottom: 16px solid #fff; transform: translate(-50%, -60%); filter: drop-shadow(0 0 4px rgba(0,0,0,.9)) drop-shadow(0 0 6px rgba(245,210,122,.7)); }
.radar-n { position: absolute; z-index: 2; top: 6px; left: 50%; transform: translateX(-50%); font: 900 13px/1 var(--font-cond); color: var(--chrome-hi); text-shadow: 0 1px 0 #000; }
.radar--sm { width: 110px; }
.radar-where { text-align: center; font: 800 13px/1.2 var(--font-cond); letter-spacing: .18em; text-transform: uppercase; color: var(--chrome-hi); }
html[data-fx="lite"] .radar-sweep { display: none; }

/* ============================== episode player: phone ============================== */
.ep { background: #000; }
.ep-bg { display: none; }
.ep-left { display: none; }
.ep-slot { position: absolute; inset: 0; overflow: hidden; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.ep.answering .ep-slot { transform: translateY(-9%); }
.ep-poster, .ep-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ep-video { opacity: 0; transition: opacity .15s; }
.ep-video.on { opacity: 1; }
.ep-portrait { position: absolute; inset: 0; display: grid; place-items: center; background: #0B0B0C; }
.ep-portrait .por-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: brightness(.55) saturate(.9); }
.por-card { position: relative; display: grid; justify-items: center; gap: 12px; margin-top: -18vh; }
.por-face { width: 156px; height: 156px; border-radius: 12px; object-fit: cover; object-position: 50% 15%; border: 3px solid transparent;
  background: linear-gradient(#111, #111) padding-box, var(--edge-gold) border-box; box-shadow: 0 0 22px rgba(212,166,58,.35), 0 18px 40px rgba(0,0,0,.7); }
.por-name { font: 900 20px/1 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--tag, var(--chrome-hi)); text-shadow: 0 2px 0 #000, 0 0 12px rgba(0,0,0,.9); }
.ep-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,11,12,.72) 0%, rgba(11,11,12,0) 18%, rgba(11,11,12,0) 44%, rgba(11,11,12,.55) 62%, rgba(11,11,12,.94) 84%); }
.ep.card-mode .ep-poster, .ep.card-mode .ep-video, .ep.card-mode .ep-portrait { filter: blur(10px) brightness(.45); }
/* the next poster still on its way: the last hero blurred out, never sharp under this speaker's name (F024) */
.ep-poster.is-loading { filter: blur(18px) brightness(.4); }
.ep-bar { display: none; }

/* HUD over the video: a gradient, not glass (kit); a third column for the pause button */
.ehud.be-hud { position: absolute; z-index: 6; left: 0; right: 0; top: 0; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "bars stats pause" "where where where";
  padding: calc(var(--top) + 8px) 12px 10px; gap: 6px 10px; }
.ehud .be-hud__row { grid-template-columns: 78px minmax(0, 1fr); }
.ehud .be-hud__label { font-size: 15px; }
.ehud .be-hud__stats { gap: 3px; }
.ehud .be-streak { font-size: 19px; }
.ehud .be-streak__flame { width: 20px; height: 24px; }
.ehud .be-xp { font-size: 16px; }
.ehud-where { grid-area: where; justify-self: start; display: inline-flex; align-items: center; gap: 2px; margin: -2px 0 0; padding: 4px 8px 3px; border: 0; border-radius: 12px;
  background: rgba(11,11,12,.55); box-shadow: inset 0 0 0 1px rgba(230,233,236,.14); text-align: left; color: var(--chrome-hi) !important; }
.ehud-where svg { width: 15px; height: 15px; }
.ehud-where .weak { margin-left: 6px; padding: 1px 5px; border-radius: 2px; background: var(--amber); color: var(--asphalt); }
.ehud-pause { grid-area: pause; align-self: start; width: 44px !important; height: 44px !important; }
.ehud .be-btn--icon svg { width: 20px; height: 20px; fill: var(--chrome-hi); }
.ehud .be-btn--icon b { font: 400 20px/1 var(--font-display); color: var(--chrome-hi); }
.hud-boss { display: none !important; }
.ehud.is-boss .hud-boss { display: grid !important; }
.ehud.is-boss .hud-blazerow { display: none; }
/* boss row (GAME-UI 3.3 «БОСС · ЯМИ  # # #»): «БОСС» on a red chip like the boss pin's number, the name whole beside it
   in white heavy italic Sofia (Anton has no Cyrillic; a second line before it is ever cut), the gold life chips at the
   right end, over the meter's end */
.ehud.is-boss .hud-boss { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.hud-bossname { display: flex; align-items: center; gap: 6px; min-width: 0; transform: none; white-space: normal; text-shadow: none; }
.hud-bosstag { flex: none; padding: 3px 6px 2px; border-radius: 2px; transform: skewX(var(--skew)); background: linear-gradient(180deg, #C8102E, #7A0A1C);
  box-shadow: inset 0 0 0 1px rgba(255,92,112,.55), 0 2px 0 #000; font: 800 11px/1 var(--font-cond); font-style: normal; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; }
.hud-bosstag.is-final { background: var(--gold-fill); box-shadow: inset 0 0 0 1px rgba(245,210,122,.75), 0 2px 0 #000; color: var(--asphalt); }
.hud-bossnm { min-width: 0; font: italic 900 19px/1 var(--font-cond); letter-spacing: .05em; text-transform: uppercase; color: var(--ink);
  text-shadow: 0 2px 0 #000, 0 0 10px rgba(0,0,0,.6); }
.lives { display: flex; gap: 5px; }
.lives i { width: 17px; height: 17px; color: #3A3B42; }
.lives i svg { width: 100%; height: 100%; fill: currentColor; }
.lives i.on { color: var(--gold-hi); filter: drop-shadow(0 0 5px rgba(245,210,122,.6)); }
.be-meter.flash-good { animation: flashGood .6s ease-out; }
.be-meter.flash-bad { animation: flashBad .6s ease-out; }
@keyframes flashGood { 30% { box-shadow: 0 0 0 2px rgba(245,210,122,.9), 0 0 18px rgba(255,90,31,.7); } }
@keyframes flashBad { 30% { box-shadow: 0 0 0 2px rgba(200,16,46,.95), 0 0 16px rgba(200,16,46,.7); } }

.ep-unmute { position: absolute; z-index: 7; left: 50%; top: calc(var(--top) + 96px); transform: translateX(-50%); white-space: nowrap; }
.ep-unmute svg { width: 18px; height: 18px; fill: currentColor; }

/* the stack under the thumb: name, subtitles, chips, task, timer, stamp, plates, coach */
.ep-lower { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 8px;
  max-height: calc(100% - var(--top) - 80px); padding: 0 12px calc(var(--bot) + 12px); }
.ep-says, .ep-act { display: contents; }
.ep-hero, .ep-listen { display: none; }
.ep-name { order: 1; }
.subs { order: 2; }
.ep-skip { order: 3; align-self: flex-end; margin: -2px 0 0; }
.ep-skip svg { width: 18px; height: 18px; }
.ep-tools { order: 4; display: flex; flex-wrap: wrap; gap: 0 8px; }
.ep-tools .be-chip { height: 36px; margin: 0; padding: 0 12px; font-size: 14px; }
.ep-tools .be-chip img { width: 26px; height: 26px; }
.ep-task { order: 5; }
.ep-timer { order: 6; }
.ep-stamp { order: 7; }
.ep-opts { order: 8; }
.coach { order: 9; }
.ep-next { order: 10; }
.np { display: inline-block; font: 900 15px/1 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--tag, var(--chrome-hi)); text-shadow: 0 2px 0 #000, 0 0 10px rgba(0,0,0,.9); }
.subs { display: grid; gap: 4px; min-height: 26px; }
/* light frames (a white shirt under the lines, F104): a soft dark bed under the subtitles on the phone */
.ep-lower .subs:not(:empty) { margin: 0 -12px; padding: 6px 12px; background: radial-gradient(farthest-side at 50% 50%, rgba(11,11,12,.62), rgba(11,11,12,.38) 70%, rgba(11,11,12,0)); }
/* the card's «МИССИЯ 01 · НЕДЕЛЯ 1» on a sunset: a dark chip, as on the result (F104) */
.mc-body > .be-eyebrow:first-child { justify-self: start; width: fit-content; padding: 5px 10px 4px; border-radius: 3px; background: rgba(11,11,12,.72); }
.sub-ru { font: 700 var(--sub-ru)/1.3 var(--font-body); color: #fff; -webkit-text-stroke: 3px #000; paint-order: stroke fill; text-shadow: 0 2px 4px #000; }
.sub-en { font: 600 16px/1.3 var(--font-body); color: #C9CDD2; -webkit-text-stroke: 2px #000; paint-order: stroke fill; text-shadow: 0 2px 4px #000; }
.sub-pr { margin-top: -2px; font: 500 14px/1.3 var(--font-body); color: var(--muted); -webkit-text-stroke: 2px #000; paint-order: stroke fill; }
.ep-task .task-txt { font: 800 16px/1.2 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 2px 0 #000; }
.ep-timer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ep-timer .be-meter { height: 12px; }
.timer-s { font: 400 18px/1 var(--font-display); color: var(--gold-hi); font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
.ep-stamp { position: relative; height: 0; z-index: 3; }
.ep-stamp .be-stamps { position: absolute; right: 4px; bottom: 6px; }
.ep-stamp .be-stamp { font-size: 22px; }
.ep-stamp .be-stamp--xp { font-size: 24px; }
.boss-why { display: block; padding: 8px 12px; border-radius: 6px; background: rgba(122,10,28,.92); box-shadow: 0 0 0 1px #C8102E, 0 8px 20px rgba(0,0,0,.5);
  font: 600 15px/1.35 var(--font-body); color: #fff; overflow-wrap: anywhere; animation: whyIn .18s ease-out both; }
.boss-why .pr-i { color: #FFD9A0; }
/* the замер: «Ответ принят» / «ДО: 2 из 4» in chrome — no gold, nothing right or wrong in the замер «до» (F004) */
.be-stamp.be-stamp--measure { color: var(--chrome-hi); font-size: 20px; text-shadow: 0 0 10px rgba(230,233,236,.25); }
/* missed boss rounds: the result's «Разбор раундов» and the rematch card (F010) */
.miss { display: grid; gap: 2px; margin-top: 8px; text-align: left; }
.miss + .miss { padding-top: 8px; border-top: 1px solid rgba(230,233,236,.08); }
.miss-line { font: 500 14px/1.35 var(--font-body); color: var(--muted); }
.miss-right b { font: 400 18px/1.2 var(--font-display); letter-spacing: .03em; color: var(--chrome-hi); }
.miss-right .be-pr { display: inline; }
.miss-why { font: 400 14px/1.4 var(--font-body); color: #FFB3BD; }
.miss-why .pr-i { color: #FFD9A0; }
.rm-miss { display: grid; justify-self: stretch; max-height: 38vh; overflow: auto; padding: 4px 2px; }
.ep-stamp.has-why { height: auto; }
@keyframes whyIn { from { opacity: 0; transform: translateY(6px); } }
.ep-opts { --plate-gap: 8px; }
.ep-opts .be-plate-slot { animation: plateIn .32s cubic-bezier(.2,.9,.3,1) both; }
.ep-opts .be-plate-slot:nth-child(2) { animation-delay: .06s; } .ep-opts .be-plate-slot:nth-child(3) { animation-delay: .12s; } .ep-opts .be-plate-slot:nth-child(4) { animation-delay: .18s; }
.ep.judged .ep-opts .be-plate-slot, .ep.solved .ep-opts .be-plate-slot { animation: none; }
@keyframes plateIn { from { transform: translateX(28px); opacity: 0; } }
.ep:not(.answering) .ep-opts:empty, .ep:not(.answering):not(.solved):not(.judged) .ep-opts { display: none; }
.coach { display: grid; gap: 10px; padding: 14px; border-radius: 12px; }
/* a right answer's «why» (F101): one compact line block, no button */
.coach.coach--right { padding: 10px 12px; }
.coach--right .coach-why { font-size: 15px; line-height: 1.35; }
.coach--right .coach-tag { display: block; margin-bottom: 3px; color: var(--gold); }
.coach-head, .sc-head { display: flex; align-items: center; gap: 12px; }
.coach-ava { width: 52px; height: 52px; flex: none; border-radius: 8px; object-fit: cover; object-position: 50% 15%; border: 1.5px solid transparent;
  background: linear-gradient(#111, #111) padding-box, var(--edge-gold) border-box; }
.coach-who { display: grid; gap: 2px; flex: 1; min-width: 0; }
.coach-tag { font: 700 12px/1.1 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.coach-why { font: 400 16.5px/1.45 var(--font-body); color: var(--ink); -webkit-user-select: text; user-select: text; }
.coach .be-chip { height: 36px; margin: 0; padding: 0 12px; font-size: 14px; }

/* cards inside the episode: the mission title card, explain / speak, rematch */
.ep-card { position: absolute; z-index: 8; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); display: grid; gap: 12px; max-height: calc(100% - var(--top) - 100px);
  overflow: auto; padding: 20px 18px; border-radius: 14px; }
.daycard { left: 0; right: 0; top: 0; bottom: 0; transform: none; max-height: none; place-content: center; justify-items: center; text-align: center; border-radius: 0;
  background: radial-gradient(70% 45% at 50% 42%, rgba(255,90,31,.14), rgba(11,11,12,0) 70%), rgba(11,11,12,.55); cursor: pointer; }
.dc-season { font: 800 13px/1.3 var(--font-cond); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.dc-day { font: italic 900 22px/1 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--chrome-hi); }
.dc-day b { font: 400 64px/1 var(--font-display); font-style: normal; color: var(--gold-hi); text-shadow: 0 0 22px rgba(245,210,122,.5), 0 3px 0 #000; vertical-align: -10px; }
.dc-title { font: italic 900 clamp(40px, 12vw, 70px)/.95 var(--font-cond); text-transform: uppercase; animation: titleIn .5s cubic-bezier(.2,1.4,.4,1) both; }
.dc-en b { font: 400 20px/1 var(--font-display); letter-spacing: .05em; color: var(--chrome-hi); }
.dc-load { width: 160px; height: 3px; margin-top: 10px; overflow: hidden; border-radius: 2px; background: rgba(230,233,236,.1); }
.dc-load i { display: block; width: 40%; height: 100%; background: var(--gold-bar); animation: load 1.2s ease-in-out infinite; }
.dc-hint { font: 600 13px/1.2 var(--font-body); color: var(--muted); }
@keyframes titleIn { from { transform: scale(1.3); opacity: 0; letter-spacing: .1em; } }
.sc-en { font: italic 900 30px/1.05 var(--font-cond); text-transform: uppercase; color: var(--chrome-hi); }
.sc-pron { margin-top: -6px; font: 500 16px/1.3 var(--font-body); color: #C9B57E; }
.sc-ru { font: 600 17px/1.35 var(--font-body); color: var(--ink); }
.sc-text { font: 400 16px/1.5 var(--font-body); color: var(--ink); -webkit-user-select: text; user-select: text; }
.sc-text.dim { color: var(--muted); font-size: 14.5px; }
.sc-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 10px; margin-top: 4px; }
.sc-actions .be-chip { margin: 0; }
.rematch { justify-items: center; text-align: center; }
.rm-stamp { color: #FF5C70 !important; font-size: 34px !important; text-shadow: 0 0 14px rgba(200,16,46,.6) !important; }
.ep.card-mode .ep-lower { visibility: hidden; }
.ep.has-portrait .ep-name { display: none; }
/* a card (Разбор, Скажи сам) has the speaker in its own head: no second name plate under it (F069) */
.ep.card-mode .ep-name { visibility: hidden; }
/* phone: the «ВЕРНО +20 XP» stamp lands where the task line is — the answered task steps aside for it (F068) */
.ep.solved .ep-task { visibility: hidden; }
.ep-tap { position: absolute; z-index: 9; inset: 0; display: grid; place-items: center; border: 0; background: rgba(11,11,12,.7); }
.ep-tap span { font: 900 24px/1 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 0 16px rgba(245,210,122,.6); animation: press 1.4s ease-in-out infinite; }

/* overlays: pause (the pause is the map, GAME-UI 4.12), the «ЦЕЛЬ» sheet, keys */
.ov { position: absolute; z-index: 10; inset: 0; display: flex; align-items: flex-end; background: rgba(5,5,6,.62); }
.ov-box { width: 100%; max-height: 88%; overflow: auto; overscroll-behavior: contain; padding: 10px 16px calc(var(--bot) + 16px); border-radius: 18px 18px 0 0; }
.ov-body { display: grid; gap: 12px; }
.ov-grid { display: grid; gap: 14px; }
.ov-menu { display: grid; gap: 10px; }
.ov-map { display: none; }
.ov-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 14px; border: 0; border-radius: 10px; text-align: left;
  background: rgba(36,37,42,.7); box-shadow: inset 0 0 0 1px rgba(230,233,236,.1); font: 800 17px/1.2 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--chrome-hi); }
.ov-row small { display: block; margin-top: 2px; font: 500 12.5px/1.2 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.sw { position: relative; flex: none; width: 46px; height: 26px; border-radius: 13px; background: #2A2B31; box-shadow: inset 0 0 0 1px #4A4D55; transition: background .18s; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(#E6E9EC, #8A9097); transition: transform .18s; }
.sw.on { background: var(--gold-fill); }
.sw.on::after { transform: translateX(20px); background: linear-gradient(#fff, #F5D27A); }
.ov-note { font: 500 13px/1.3 var(--font-body); color: var(--muted); text-align: center; }

/* the mission brief (left rail on the computer, the «ЦЕЛЬ» sheet on the phone) */
.brief-head { display: grid; gap: 4px; }
.brief-head h3 { font: italic 900 34px/.95 var(--font-cond); text-transform: uppercase; }
.brief-head .be-mission-card__en b { font: 400 17px/1 var(--font-display); letter-spacing: .04em; color: var(--chrome-hi); }
.brief-meta { font: 500 13.5px/1.35 var(--font-body); color: var(--muted); }
.brief-sec { display: grid; gap: 8px; }
.beats { display: grid; gap: 5px; counter-reset: b; }
.beats li { position: relative; display: flex; justify-content: space-between; gap: 8px; padding-left: 24px; font: 800 15px/1.3 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: #6E737A; }
.beats li b { font: 400 14px/1.3 var(--font-display); letter-spacing: .04em; }
.beats li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px #4A4D55; }
.beats li.done, .beats li.part { color: var(--chrome-hi); }
.beats li.done::before { background: var(--chrome-fill, linear-gradient(#E6E9EC, #8A9097)); box-shadow: none; }
.beats li.part::before { box-shadow: inset 0 0 0 1.5px var(--chrome-hi); }
.beats li.now { color: var(--gold-hi); text-shadow: 0 0 10px rgba(245,210,122,.35); }
.beats li.now::before { background: var(--gold-fill); box-shadow: 0 0 10px rgba(245,210,122,.6); clip-path: polygon(0 0, 100% 50%, 0 100%); border-radius: 0; }
.brief-ph > summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.brief-ph > summary::-webkit-details-marker { display: none; }
.brief-ph > summary b { font: 400 13px/1 var(--font-display); letter-spacing: .04em; color: var(--chrome-hi); }
.brief-ph > summary svg { width: 16px; height: 16px; margin-left: auto; transition: transform .2s; }
.brief-ph[open] > summary { margin-bottom: 8px; }
.brief-ph[open] > summary svg { transform: rotate(180deg); }
.phrases { display: grid; gap: 6px; }
.phrases .ph { display: grid; gap: 1px; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: rgba(36,37,42,.55); text-align: left; color: var(--ink); }
.phrases .ph[disabled] { cursor: default; }
.phrases .ph b { font: italic 900 17px/1.1 var(--font-cond); text-transform: uppercase; color: var(--chrome-hi); }
.phrases .ph .be-pr { font-size: 13px; }
.ph-ru { font: 400 13px/1.3 var(--font-body); color: var(--muted); }
.phrases li.locked span { display: flex; flex-wrap: wrap; gap: 6px; }
.phrases li.locked i { padding: 4px 7px 3px; border-radius: 6px; background: rgba(36,37,42,.45); font: 400 13px/1 var(--font-display); font-style: normal; letter-spacing: .2em; color: #565A62; }
.phrases li.locked small { display: block; margin-top: 4px; font: 500 12px/1.3 var(--font-body); color: #6E737A; }
@media (hover: hover) and (pointer: fine) { .phrases .ph:not([disabled]):hover { box-shadow: inset 0 0 0 1px rgba(230,233,236,.4); } }

.rank-up { position: absolute; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: radial-gradient(60% 50% at 50% 45%, rgba(255,90,31,.18), rgba(5,5,6,.92) 70%); }
.ru-box { display: grid; justify-items: center; gap: 16px; text-align: center; }
/* the ceremony never lies on the result's numbers (F118): the result is dimmed and blurred, the rank has its own block */
.rank-up { background: radial-gradient(60% 50% at 50% 45%, rgba(255,90,31,.2), rgba(5,5,6,.94) 70%), rgba(5,5,6,.78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ru-box { padding: 22px 28px 24px; border-radius: 16px; background: rgba(11,11,12,.82); box-shadow: 0 0 0 1px rgba(230,233,236,.14), 0 30px 80px rgba(0,0,0,.7); }
/* the burst behind the result fades out at its lower edge instead of cutting the picture in a straight line (F121) */
.res .be-passed__burst { -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 96%); mask-image: linear-gradient(180deg, #000 62%, transparent 96%); }

/* ============================== МИССИЯ ПРОЙДЕНА ============================== */
.result { overflow: auto; overscroll-behavior: contain; }
.res.be-passed { min-height: 100%; padding-top: calc(var(--top) + 18px); }
/* the mission's name over the burst: a dark chip, or the flash eats it */
.res .be-passed__head .be-eyebrow { position: relative; z-index: 1; margin-bottom: 4px; padding: 5px 12px 4px; border-radius: 3px; color: var(--chrome-hi);
  background: rgba(8,8,9,.74); box-shadow: inset 0 0 0 1px rgba(230,233,236,.16), 0 4px 14px rgba(0,0,0,.6); text-shadow: 0 1px 0 #000; }
.res .res-art { opacity: .38; filter: saturate(.85); }
.res .be-passed__rows dt.res-rank { color: var(--muted); }
.res .be-passed__review p { margin-top: 6px; }
.res .be-passed__review .be-pr { display: inline; }
/* «Сегодня выучил» (F011): the day's phrases as the brief's .phrases rows; a tap plays the phrase */
.res-learn .lbl b { margin-left: 6px; font: 400 13px/1 var(--font-display); letter-spacing: .04em; color: var(--chrome-hi); }
.res-learn .phrases { margin-top: 8px; }
.res .res-learn .ph { position: relative; padding-right: 40px; }
.res .res-learn .ph b { font: italic 900 17px/1.1 var(--font-cond); letter-spacing: 0; }
.res .res-learn .ph .be-pr { display: block; }
.res-learn .ph.is-missed { box-shadow: inset 3px 0 0 rgba(255,59,79,.55); }
/* a phrase with its recording shows a speaker (the result, the «Цель» rail, the mission card: F114) */
.ph-snd { position: absolute; top: 50%; right: 10px; width: 22px; height: 22px; transform: translateY(-50%); color: var(--chrome-hi); opacity: .8; }
.ph-snd svg { width: 100%; height: 100%; fill: currentColor; }
.phrases .ph:not([disabled]) { position: relative; padding-right: 40px; }
.mc-ph { position: relative; display: grid; gap: 1px; width: 100%; margin: 0; padding: 0 36px 0 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mc-ph .ph-snd { right: 2px; }
@media (min-width: 1024px) and (min-height: 600px) { .res-learn .phrases { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.res-badges { grid-column: 1 / -1; display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid rgba(230,233,236,.12); }
.res-badge-row { display: flex; flex-wrap: wrap; gap: 12px; }
.res-badge-row .be-badge__name { font-size: 12px; }
.res .be-passed__next { display: grid; position: relative; align-content: end; gap: 4px; min-height: 130px; padding: 14px 16px; overflow: hidden; border-radius: 12px; }
.res-next-title { position: relative; font: italic 900 26px/1 var(--font-cond); text-transform: uppercase; }
.res-next-teaser { position: relative; font: 400 14.5px/1.4 var(--font-body); color: var(--ink); }
.res-next-when { position: relative; display: inline-flex; align-items: center; gap: 6px; font: 800 13px/1.2 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.res-next-when svg { width: 14px; height: 14px; fill: currentColor; }
.res-cert { justify-items: start; }
.res-cert-ico { position: relative; width: 76px; height: 76px; }
.be.tg-main .res .be-passed__actions > .be-btn--gold, .be.tg-main .res .be-passed__actions > [data-act=replay-day] { display: none; }

/* ============================== the season offer ============================== */
.pay { display: grid; place-items: center; overflow: auto; padding: calc(var(--top) + 16px) 14px calc(var(--bot) + 16px);
  background: radial-gradient(80% 50% at 50% 0%, rgba(212,166,58,.16), transparent 70%), var(--asphalt); }
.pay-wrap { position: relative; display: grid; gap: 14px; width: min(520px, 100%); padding: 26px 20px 20px; border-radius: 16px; }
.pay-x { position: absolute !important; top: 10px; right: 10px; }
.pay-x svg { width: 22px; height: 22px; }
.pay-cast { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.pay-hero { position: relative; display: grid; justify-items: center; gap: 4px; }
.pay-hero img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; object-position: 50% 15%; border: 2px solid transparent;
  background: linear-gradient(#111, #111) padding-box, linear-gradient(135deg, #F5D27A, #8C6A1E 45%, #C8102E 70%, #F5D27A) border-box; }
.pay-hero.final img { width: 66px; height: 66px; background: linear-gradient(#111, #111) padding-box, var(--edge-gold) border-box; }
.pay-hero small { font: 700 11px/1 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pay-title { font: italic 900 40px/.95 var(--font-cond); text-transform: uppercase; }
.pay-list { display: grid; gap: 8px; }
.pay-list li { position: relative; padding-left: 20px; font: 400 15px/1.4 var(--font-body); }
.pay-list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold); }
.pay-price { display: grid; gap: 2px; }
.pay-price b { font: italic 900 30px/1 var(--font-cond); color: var(--gold-hi); }
.pay-price span { font: 600 13px/1.3 var(--font-body); color: var(--muted); }

.toast { position: fixed; z-index: 60; left: 50%; top: calc(var(--top) + 80px); transform: translateX(-50%); max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 10px;
  background: rgba(17,17,20,.94); box-shadow: inset 0 0 0 1px rgba(245,210,122,.6); font: 600 15px/1.35 var(--font-body); text-align: center; }

/* compact phones (GAME-UI 3.1: below 760 px the stack gets tighter) */
@media (max-height: 760px) {
  .be { --plate-h: 62px; --plate-en: 20px; --plate-gap: 6px; --sub-ru: 18px; }
  .ep-lower { gap: 6px; }
  .ep-tools .be-chip { height: 32px; font-size: 13px; }
  .ehud .be-hud__row { gap: 6px; }
}
@media (max-height: 640px) {
  .ehud.be-hud { padding-bottom: 6px; }
  .ep.answering .ep-slot { transform: translateY(-14%); }
}

/* ============================== the computer: a game screen (GAME-UI §4, from 1024×600) ============================== */
@media (min-width: 1024px) and (min-height: 600px) {
  :root { --sub-ru: clamp(20px, 1.6vw, 26px); }
  /* splash: the 9:16 intro poster whole in the middle (cropped to 16:9 it showed a hoodie and a zipper, no face),
     over a blurred, darkened copy of itself */
  .splash { isolation: isolate; background-size: 0 0; }
  .splash::before, .splash::after { content: ""; position: absolute; pointer-events: none; background-image: inherit; background-repeat: no-repeat; }
  .splash::before { inset: -60px; z-index: -2; background-position: center; background-size: cover; filter: blur(30px) brightness(.32) saturate(1.1); }
  .splash::after { z-index: -1; top: 0; bottom: 0; right: 7vw; height: 100%; aspect-ratio: 9 / 16; background-position: center; background-size: cover;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .splash-shade { background: linear-gradient(90deg, rgba(11,11,12,.88) 0%, rgba(11,11,12,.55) 42%, rgba(11,11,12,0) 62%),
    linear-gradient(180deg, rgba(11,11,12,.4), rgba(11,11,12,0) 22% 70%, rgba(11,11,12,.8)); }
  /* a title screen: the brand on the left, the hero on the right — the wordmark no longer lies across his face */
  .splash-start { justify-content: center; align-items: flex-start; gap: 14px; padding: 0 max(44%, calc(100% - 820px)) 40px 7vw; text-align: left; }
  .splash-mark { width: min(100%, 640px); }
  .splash-mark img { transform-origin: 0 50%; }
  .splash-slogan { font-size: 2rem; transform-origin: 0 50%; }
  .splash-season { font-size: 15px; }
  .splash-press { margin-top: 36px; }
  .splash-credit { left: 7vw; transform: none; }
  /* map */
  .map { grid-template-rows: 64px minmax(0, 1fr); background: radial-gradient(90% 70% at 60% 30%, #15161B, #0B0B0C 75%); }
  .gnav { display: none; }
  .mtop { gap: 22px; padding: 0 22px; border-bottom: 1px solid rgba(230,233,236,.08); background: rgba(11,11,12,.92); }
  .mtop-brand { display: flex; align-items: center; gap: 26px; }
  .mtop-mark { font: italic 400 26px/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
  .mtop-nav { display: flex; gap: 4px; }
  .mtop-nav button { padding: 10px 14px; border: 0; background: none; font: 800 17px/1 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .mtop-nav button.on { color: var(--gold-hi); box-shadow: inset 0 -3px 0 var(--gold); }
  .mtop-nav button:hover { color: var(--chrome-hi); }
  .mtop-rank { flex: 0 1 auto; margin-left: auto; }
  .mtop-stats { gap: 16px; }
  .mbody { grid-template-columns: 360px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 14px 20px; padding: 16px 22px 18px; }
  .mlist { display: grid; grid-row: 1 / 3; align-content: start; gap: 10px; overflow: auto; padding: 14px; border-radius: 14px; }
  .mlist-tabs { display: flex; gap: 6px; }
  .mlist-tabs button { flex: 1; height: 36px; border: 0; border-radius: 18px; background: rgba(36,37,42,.8); box-shadow: inset 0 0 0 1px rgba(230,233,236,.12);
    font: 400 16px/36px var(--font-display); letter-spacing: .04em; color: var(--chrome-hi); }
  .mlist-tabs button:last-child { flex: 1.8; font: 800 14px/36px var(--font-cond); letter-spacing: .12em; text-transform: uppercase; }
  .mlist-tabs button.on { color: var(--asphalt); background: var(--gold-fill); }
  .mlist-week { font: 800 14px/1.3 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .mlist-week b { color: var(--chrome-hi); }
  .mlist-rows { display: grid; gap: 8px; }
  .mlist .mrow { min-height: 72px; grid-template-columns: 46px minmax(0, 1fr) auto; }
  .mlist .mrow-ico { width: 46px; height: 46px; }
  .mlist .mrow-ico img { width: 40px; height: 40px; }
  .mlist .mrow-ico .mrow-face { width: 44px; height: 44px; }
  .mlist .mrow-title { font-size: 19px; }
  @media (hover: hover) and (pointer: fine) { .mrow:hover { box-shadow: inset 0 0 0 1px rgba(230,233,236,.45), 0 8px 20px rgba(0,0,0,.5); transform: translateX(2px); } }
  .mstage { grid-column: 2; grid-template-rows: minmax(0, 1fr); }
  .mcities, .mstrip { display: none; }
  .mview { display: grid; place-items: center; overflow: hidden; padding: 0; }
  .mview > .be-map { width: min(100%, calc((100vh - 64px - 34px - 76px) * 1.5)); border-radius: 16px; }
  .gmap-insets { position: absolute; z-index: 3; right: 1.6%; top: 3.5%; width: 17%; display: grid; gap: 14px; }
  .gmap--inset { border-radius: 10px; box-shadow: 0 0 0 1.5px rgba(230,233,236,.55), 0 14px 30px rgba(0,0,0,.6); }
  .gmap--inset .be-pin { --pin: 26px; }
  .gmap--inset .be-pin--boss { --pin: 36px; }
  .gmap--inset .be-pin__num { font-size: 10px; transform: translate(-50%, 6px); padding: 1px 3px 0; }
  .gmap--inset .be-pin__flag { font-size: 10px; transform: translate(-50%, -6px); padding: 2px 5px 1px; }
  .gmap--inset .gmap-label { font-size: 12px; left: 8px; top: 7px; }
  /* the week chosen in the list (2 — Atlanta, 3 — Houston) opens its inset large over Miami's right side, bigger
     pins and numbers; the other inset stays small under it (GAME-UI 4.8, F026) */
  .gmap-insets .gmap--inset.is-focus { width: 230%; margin-left: -130%; box-shadow: 0 0 0 2px var(--chrome-hi), 0 0 22px rgba(230,233,236,.35), 0 18px 40px rgba(0,0,0,.7); }
  .gmap--inset.is-focus .be-pin { --pin: 34px; }
  .gmap--inset.is-focus .be-pin--boss { --pin: 46px; }
  .gmap--inset.is-focus .be-pin__num { font-size: 12.5px; transform: translate(-50%, 7px); padding: 2px 4px 1px; }
  .gmap--inset.is-focus .be-pin__flag { font-size: 11px; }
  .gmap--inset.is-focus .be-pin > .pin-emblem { width: 24px; height: 24px; right: -11px; bottom: -5px; }
  .gmap--inset.is-focus .gmap-label { font-size: 14px; }
  .gmap-legend { position: absolute; z-index: 3; right: 1.6%; bottom: 3%; width: 17%; display: block; padding: 10px 12px; border-radius: 10px;
    font: 700 12.5px/1.25 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--chrome-hi); }
  /* folded on a low window (game.js): a small chip that covers no inset (F026) */
  .gmap-legend:not([open]) { width: auto; padding: 7px 12px; }
  .gmap-legend summary { list-style: none; cursor: pointer; font: 800 12px/1.2 var(--font-cond); letter-spacing: .16em; color: var(--gold); }
  .gmap-legend summary::-webkit-details-marker { display: none; }
  .gmap-legend span { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
  .gmap-legend small { display: block; }
  .gmap-legend small { margin-top: 4px; font: 500 11px/1.25 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--muted); }
  .lg { width: 10px; height: 10px; border-radius: 50%; }
  .lg-done { background: #F5D27A; } .lg-today { background: #FF5A1F; box-shadow: 0 0 6px #FF5A1F; } .lg-next { background: #E6E9EC; } .lg-lock { background: #3A3D44; } .lg-boss { background: #C8102E; }
  .mcta { grid-column: 2; display: flex; justify-content: center; padding: 0; }
  .mcta .be-btn { width: min(460px, 100%); }
  .be.tg-main .mcta { display: flex; }

  /* mission card: a window over the blurred map */
  .card { display: grid; place-items: center; padding: 24px; background: #050506; }
  .card-bg { display: block; position: absolute; inset: -30px; background: center / cover no-repeat; filter: blur(14px) brightness(.32) saturate(.9); }
  .card .mc { position: relative; inset: auto; width: min(1200px, 100%, calc((100vh - 48px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 14px; align-content: center;
    box-shadow: 0 30px 80px rgba(0,0,0,.75), 0 0 0 1px rgba(230,233,236,.2); }
  .card .mc::after { display: block; }
  .mc-art { object-position: 70% 30%; }
  .card .be-mission-card__shade { background: linear-gradient(90deg, rgba(11,11,12,.95) 0%, rgba(11,11,12,.86) 36%, rgba(11,11,12,0) 64%), linear-gradient(180deg, rgba(11,11,12,.45), transparent 22% 76%, rgba(11,11,12,.6)); }
  .mc-body { width: min(48%, 560px); max-height: 100%; padding: 30px 34px; gap: 12px; }
  .mc .be-mission-card__title { font-size: clamp(48px, 4.6vw, 72px); }
  .mc-x { top: 14px; right: 14px; }
  .mc-radar { display: block; position: absolute; right: 22px; bottom: 18px; }
  .mc-radar .radar--sm { width: 120px; }
  .mc-actions { grid-template-columns: auto auto; justify-content: start; gap: 18px; }
  .mc-actions .be-btn--gold { width: auto; min-width: 280px; }

  /* the game screen: HUD across, left rail (goal), the 9:16 slot in the middle, right rail (answers) */
  .ep { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr) var(--rail); grid-template-rows: 64px minmax(0, 1fr) auto;
    grid-template-areas: "hud hud hud" "left stage right" "left says right"; column-gap: var(--gap); row-gap: 12px; padding: 12px 16px 16px; background: #050506; }
  .ep-bg { display: block; position: absolute; inset: 0; z-index: 0; overflow: hidden; }
  .ep-bg-img { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(22px) brightness(.42) saturate(1.05); transform: scale(1.04); }
  .ep-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 45%, rgba(11,11,12,.1), rgba(11,11,12,.7)); }
  .ehud.be-hud { position: relative; grid-area: hud; z-index: 3; left: auto; right: auto; top: auto; min-height: 64px;
    grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "id bars stats tools"; padding: 8px 10px 8px 14px; gap: 0 22px; }
  .ehud .be-hud__row { grid-template-columns: auto minmax(0, 1fr); }
  .ehud .be-hud__label { font-size: 17px; }
  .ehud.is-boss .hud-boss { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }   /* the lives right after the name */
  .hud-bossnm { font-size: 22px; }
  .hud-bosstag { font-size: 12px; }
  .ehud .be-streak { font-size: 24px; }
  .ehud .be-streak__flame { width: 24px; height: 28px; }
  .ehud .be-xp { font-size: 20px; }
  .ehud-pause, .ehud-where { display: none !important; }
  .ehud .be-hud__stats { gap: 18px; }
  .ehud .be-hud__tools .be-btn--icon svg { width: 20px; height: 20px; }
  .ep-left { display: flex; flex-direction: column; gap: 16px; grid-area: left; grid-row: 2 / 4; z-index: 2; min-height: 0; overflow: auto; padding: 18px 18px 14px; border-radius: 14px; transition: opacity .3s; }
  .ep-left .be-facts dd { font-size: 14.5px; }
  .ep-left .brief-radar { margin-top: auto; padding-top: 4px; }
  /* GAME-UI 4.4: the column never scrolls during a question — game.js fitLeft() folds the phrases first, then the radar
     gets smaller (160, 120 px), then it goes; the goal and the mission's progress always stay */
  .ep-left.fit-1 .radar { width: 160px; }
  .ep-left.fit-2 { gap: 12px; }
  .ep-left.fit-2 .radar { width: 120px; }
  .ep-left.fit-3 .brief-radar { display: none; }
  /* a low window (1280×620, F072): the goal and the stake shrink so «Ход миссии» fits whole */
  .ep-left.fit-4 { gap: 10px; padding-top: 14px; padding-bottom: 10px; }
  .ep-left.fit-4 .brief-meta { display: none; }
  .ep-left.fit-4 .brief-head h3 { font-size: 26px; }
  .ep-left.fit-4 .be-facts { gap: 4px 10px; }
  .ep-left.fit-4 .be-facts dd { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; font-size: 13.5px; line-height: 1.32; }
  .ep-left.fit-4 .beats { gap: 2px; }
  .ep-left.fit-4 .beats li { font-size: 13.5px; line-height: 1.25; }
  .ep-left.fit-4 .beats li::before { top: 2px; width: 12px; height: 12px; }
  .ep-left.fit-5 .be-facts dd { -webkit-line-clamp: 2; line-clamp: 2; }
  .ep-left.fit-5 .be-mission-card__en { display: none; }
  .ep-slot { position: relative; inset: auto; grid-area: stage; z-index: 1; justify-self: center; align-self: center; height: 100%; max-height: 1280px; aspect-ratio: 9 / 16; transform: none !important;
    clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px);
    box-shadow: 0 0 0 1px rgba(230,233,236,.5); filter: drop-shadow(0 0 30px color-mix(in srgb, var(--tint) 45%, transparent)); }
  .ep-slot.shake { animation: shake .2s ease-in-out; }
  @keyframes shake { 25% { translate: -4px 0; } 75% { translate: 4px 0; } }
  .ep-shade { background: linear-gradient(180deg, rgba(11,11,12,.3), rgba(11,11,12,0) 16%, rgba(11,11,12,0) 70%, rgba(11,11,12,.6)); }
  .ep-bar { display: block; position: absolute; left: 0; right: 0; z-index: 2; height: 7%; background: #000; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
  .ep-bar--t { top: 0; transform: translateY(-101%); }
  .ep-bar--b { bottom: 0; transform: translateY(101%); }
  .ep.is-cut.is-talking .ep-bar { transform: none; }
  .ep.is-cut.is-talking .ep-left, .ep.is-cut.is-talking .ep-act, .ep.is-cut.is-talking .ehud { opacity: .55; }
  .ep-unmute { top: 92px; }
  .ep-lower { display: contents; }
  .ep-says { display: grid; grid-area: says; z-index: 2; justify-items: center; gap: 6px; max-width: 920px; justify-self: center; text-align: center; padding: 10px 18px 12px; border-radius: 12px;
    background: radial-gradient(closest-side, rgba(11,11,12,.55), rgba(11,11,12,0)); }
  .ep-says .ep-skip { justify-self: center; }
  .ep-act { display: flex; flex-direction: column; grid-area: right; grid-row: 2 / 4; z-index: 2; gap: 12px; min-height: 0; overflow: auto; padding: 18px 16px; border-radius: 14px;
    background: linear-gradient(180deg, rgba(23,23,27,.82), rgba(13,13,16,.9)); box-shadow: inset 0 1px 0 rgba(230,233,236,.18), 0 0 0 1px rgba(230,233,236,.12), 0 18px 44px rgba(0,0,0,.55);
    -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15); transition: opacity .3s; }
  .ep-hero { display: block; padding-bottom: 10px; border-bottom: 1px solid rgba(230,233,236,.1); }
  .ep-hero .be-hero__ava { width: 56px; height: 56px; }
  .ep-listen { display: none; align-items: center; gap: 4px; height: 26px; }
  .ep-listen span { margin-right: 8px; font: 800 14px/1 var(--font-cond); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
  .ep-listen i { width: 4px; height: 6px; border-radius: 2px; background: var(--gold); animation: eq .9s ease-in-out infinite alternate; }
  .ep-listen i:nth-child(3) { animation-delay: .15s; } .ep-listen i:nth-child(4) { animation-delay: .3s; } .ep-listen i:nth-child(5) { animation-delay: .1s; }
  .ep-listen i:nth-child(6) { animation-delay: .25s; } .ep-listen i:nth-child(7) { animation-delay: .4s; } .ep-listen i:nth-child(8) { animation-delay: .05s; }
  @keyframes eq { to { height: 22px; } }
  .ep.is-talking:not(.answering) .ep-listen { display: flex; }
  .ep-name { text-align: center; }
  .np { font-size: 17px; }
  .subs { justify-items: center; }
  .ep-lower .subs:not(:empty) { margin: 0; padding: 0; background: none; }   /* the says block has its own bed */
  .sub-en { font-size: clamp(17px, 1.25vw, 19px); }
  .sub-pr { font-size: clamp(15px, 1.05vw, 16px); }
  .ep-act .ep-task .task-txt { font-size: 18px; }
  .ep-stamp { height: auto; min-height: 0; }
  .ep-stamp .be-stamps { position: static; justify-content: flex-start; min-height: 0; }
  .ep-stamp:empty { display: none; }
  .boss-why { position: static; }
  .ep-opts { --plate-h: 84px; --plate-en: clamp(24px, 1.75vw, 30px); --plate-pr: 15px; --plate-ru: 14px; --key: 44px; --key-fs: 26px; --cut: 16px; --plate-gap: 10px; }
  /* the English gets the plate's width (22 signs in one line, the sound in one line): ✓ / ✗ take the place of the
     number on the gold key instead of a column of their own, so the text does not re-wrap when the answer is judged */
  .ep-opts .be-plate { grid-template-columns: var(--key) minmax(0, 1fr); padding-right: calc(var(--cut) + 10px); }
  .ep-opts .be-plate__mark { position: absolute; z-index: 1; left: calc(var(--cut) + 4px + (var(--key) - 26px) / 2); top: 50%; margin-top: -13px; }
  .ep-opts .be-plate:is(.is-right, .is-wrong) .be-plate__key { color: transparent; }
  .ep-opts .be-plate.is-right .be-plate__mark { color: var(--gold-hi); }
  .ep-opts .be-plate.is-wrong .be-plate__mark { color: #FF8A99; }
  /* the sound is always shown whole (PRONUNCIATION.md, F029): it wraps onto a second line, never an ellipsis */
  .ep-opts .be-plate__pr { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
  .ep-tools { gap: 6px 8px; }
  .ep-tools .be-chip { height: 38px; font-size: 14px; }
  .coach { padding: 14px; }
  .coach-why { font-size: 17px; }
  .ep-next { margin-top: 4px; }
  /* «Дальше» never below the rail's edge: it sticks to the bottom of the answers' column (F028) */
  .ep-act > .ep-next { position: sticky; bottom: 0; z-index: 3; flex: none; box-shadow: 0 -14px 24px rgba(13,13,16,.9); }
  /* the column scrolls rather than squeezing its pieces into each other (the stamp lay on the first plate, F028) */
  .ep-act > * { flex-shrink: 0; }
  .ep-card { grid-area: stage; position: relative; z-index: 4; left: auto; right: auto; top: auto; transform: none; align-self: center; justify-self: center; width: min(620px, 100%); max-height: 100%; }
  .daycard { grid-area: 2 / 1 / 4 / 4; width: 100%; height: 100%; }
  .ep.card-mode .ep-lower { visibility: visible; }
  .ep.solved .ep-task { visibility: visible; }   /* the stamp has its own row in the rail */
  .ep.card-mode .ep-opts, .ep.card-mode .ep-tools, .ep.card-mode .ep-task { display: none; }
  .ov { align-items: center; justify-content: center; }
  .ov-box { width: min(920px, calc(100% - 48px)); max-height: 86%; padding: 24px 26px; border-radius: 16px; }
  .ov-box .be-sheet__grab { display: none; }
  .ov-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
  .ov-map { display: grid; gap: 14px; }
  .ov[data-kind="brief"] .ov-box { width: min(560px, calc(100% - 48px)); }
  /* a result taller than the window starts at its top and scrolls down to the buttons — centring pushed its head above
     the window where no scroll could reach it (F027); auto margins still centre a short one */
  .result { display: grid; justify-items: center; align-items: start; padding: 20px; }
  .res.be-passed { width: min(1360px, 100%); height: auto; min-height: min(760px, 100%); aspect-ratio: auto; margin: auto 0; border-radius: 16px; padding: 26px 42px 30px;
    overflow: clip; box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(230,233,236,.14); }
  .res .be-passed__next { min-height: 0; align-self: stretch; }
  .res .be-passed__actions .be-btn { width: auto; min-width: 240px; }
  .be.tg-main .res .be-passed__actions > .be-btn--gold, .be.tg-main .res .be-passed__actions > [data-act=replay-day] { display: inline-flex; }
  .pay-wrap { width: min(620px, 100%); padding: 34px 34px 28px; }
  .toast { top: auto; bottom: 24px; left: auto; right: 24px; transform: none; }
}
/* a laptop with browser bars (1280×620) and the small screens (1024×768, 1280×800): four plates with their meanings
   after the answer must fit without scrolling the rail (F028) */
@media (min-width: 1024px) and (min-height: 600px) and (max-height: 820px) {
  .res.be-passed { padding: 16px 34px 0; gap: 12px 26px; }
  .res .be-passed__head { padding-top: 4px; }
  .res .be-passed__stamp { font-size: 62px; }
  .res .be-passed__respect { font-size: 32px; }
  .res .be-passed__rows { padding: 12px 16px; gap: 6px 14px; }
  .res .be-passed__actions { position: sticky; bottom: 0; z-index: 2; margin: 0 -34px; padding: 18px 34px 16px;
    background: linear-gradient(180deg, rgba(11,11,12,0), rgba(11,11,12,.94) 38%); }
  .ep-stamp .be-stamp { font-size: 19px; }
  .ep-stamp .be-stamp--xp { font-size: 21px; }
  .ep-stamp .be-stamps { min-height: 30px; }
  .ep-opts { --plate-h: 62px; --plate-en: 19px; --plate-pr: 13px; --plate-ru: 12.5px; --key: 34px; --key-fs: 20px; --plate-gap: 7px; }
  .ep-act { gap: 8px; padding: 12px 14px; }
  .ep-hero { padding-bottom: 6px; }
  .ep-hero .be-hero__ava { width: 44px; height: 44px; }
  .ep-tools .be-chip { height: 34px; }
}
/* a very low window (1280×620): the speaker's row leaves the rail while the plates are up — the name plate under the
   picture says who it is (F028) */
@media (min-width: 1024px) and (min-height: 600px) and (max-height: 700px) {
  .ep.answering .ep-hero { display: none; }
  /* the mission card fits a 1280×620 window without scrolling, «На карту» on one line (F119) */
  .mc-body { padding: 22px 30px; gap: 8px; }
  .mc .be-mission-card__title { font-size: clamp(40px, 3.6vw, 56px); }
  .mc-actions .be-btn--gold { min-width: 240px; }
  .mc-actions .be-btn--ghost { white-space: nowrap; }
}
@media (min-width: 1600px) and (min-height: 900px) {
  .ep-opts { --plate-h: 96px; --plate-en: 28px; --plate-pr: 16px; }
}

/* reduced motion: nothing flies in (the kit does the same for its own pieces) */
@media (prefers-reduced-motion: reduce) {
  .ep-slot, .ep-bar, .ep-opts .be-plate-slot, .dc-title, .mc-load i, .dc-load i, .radar-sweep, .ep-listen i, .splash-press { animation: none !important; transition: none !important; }
}
html[data-fx="lite"] .ep-opts .be-plate-slot, html[data-fx="lite"] .dc-title, html[data-fx="lite"] .ep-listen i { animation: none !important; }
html[data-fx="lite"] .ep-bg-img { filter: brightness(.35); }
/* the map pin's hover card on a computer (GAME-UI 4.8, F120) */
.pin-tip { position: fixed; z-index: 30; display: grid; gap: 3px; width: 320px; padding: 0 14px 12px; border-radius: 12px; overflow: hidden; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(230,233,236,.16), 0 20px 50px rgba(0,0,0,.7); }
.pin-tip[hidden] { display: none; }
.pin-tip-art { margin: 0 -14px 6px; aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 40%, #26272C, #0E0E10); }
.pin-tip-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pin-tip-title { font: italic 900 22px/1.05 var(--font-cond); text-transform: uppercase; color: var(--chrome-hi); }
.pin-tip-who { font: 700 12px/1.2 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--tag, var(--muted)); }
.pin-tip-st { margin-top: 3px; font: 600 13px/1.3 var(--font-body); color: var(--muted); }
