/* kit.css — Black English UI kit, style "Fight Night". v1 · 14.10.2026.
 *
 * Spec: docs/brand/VISUAL-KIT.md (materials, motion, haptics), docs/GAME-UI.md (sizes per layout).
 * Include after the page's own <style>:
 *   <link rel="stylesheet" href="assets/ui/glass.css">   copy of LIB glass.css 1–118 (.glass primitive)
 *   <link rel="stylesheet" href="assets/ui/kit.css">
 *   <script src="assets/ui/glass-tier.js" defer></script> copy of LIB: data-glass-tier = solid | frost | lens
 *   <script src="assets/ui/kit.js" defer></script>        haptics, roll-up, shard burst, lazy loops, flows
 * Demo of every component: assets/ui/demo.html.
 *
 * Rules kept here:
 * - Glass material lives on ::before (z-index -1 inside an isolated element), the chrome rim on ::after.
 *   A panel that hosts a `mix-blend-mode: screen` loop (answer plates with fire) must not be isolated:
 *   .be-glass--open (kit.js adds it when it finds plates inside; :has() does the same in CSS). Otherwise the
 *   loop blends with the half-transparent tint only and leaves a dark rectangle. Wrap direct text in elements there.
 * - Loops animate only transform and opacity. One-off effects may touch filter or background-position.
 * - html[data-fx="lite"] (kit.js: reduced motion, weak phone, save-data) and prefers-reduced-motion
 *   keep colour, check mark, cross and stamp; drop loops, blur, shake, sweeps, flicker.
 * - Red (#C8102E) only for errors; gold is reward and the main action; ember for streak and BLAZIN'.
 */

/* ── 1. Tokens ───────────────────────────────────────────────────────────── */

/* Same values as :root in say-less/index.html. :where() gives zero specificity, so the page always wins. */
:where(:root) {
  --asphalt: #0B0B0C; --panel: #17171B; --panel-2: #202026;
  --chrome-lo: #8A9097; --chrome-hi: #E6E9EC;
  --gold-dk: #8C6A1E; --gold: #D4A63A; --gold-hi: #F5D27A;
  --red: #C8102E; --red-text: #FF5C70; --ember: #FF5A1F; --amber: #F2A33A;
  --ink: #F7F7F5; --muted: #A3A9B0; --line: #34363D;
  --edge: linear-gradient(135deg, #E6E9EC 0%, #8A9097 30%, #3D4148 52%, #C9CDD2 78%, #8A9097 100%);
  --edge-gold: linear-gradient(135deg, #F5D27A 0%, #8C6A1E 40%, #D4A63A 66%, #F5D27A 100%);
  --edge-red: linear-gradient(135deg, #FF5C70, #C8102E 55%, #7A0A1C);
  --gold-fill: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 3px), linear-gradient(100deg, #8C6A1E 0%, #D4A63A 26%, #F5D27A 50%, #D4A63A 74%, #8C6A1E 100%);
  --gold-bar: linear-gradient(90deg, #8C6A1E, #D4A63A 45%, #F5D27A);
  --font-display: "Anton", "Sofia Sans Extra Condensed", Impact, "Arial Narrow", sans-serif;
  --font-cond: "Sofia Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --skew: -12deg;
}

:root {
  /* dark outline for gold numbers on fire or a flash (text-shadow: works on every engine, unlike paint-order on HTML text) */
  --be-outline: 2px 2px 0 #0B0B0C, -2px 2px 0 #0B0B0C, 2px -2px 0 #0B0B0C, -2px -2px 0 #0B0B0C, 0 2px 0 #0B0B0C, 0 -2px 0 #0B0B0C, 2px 0 0 #0B0B0C, -2px 0 0 #0B0B0C;
  /* glass: variable names from LIB glass.css, Fight Night values */
  --glass-tint: rgba(23, 23, 27, .58);
  --glass-tint-2: rgba(17, 17, 20, .84);
  --glass-tint-video: rgba(11, 11, 12, .62);
  --glass-blur: 14px; --glass-blur-2: 20px; --glass-sat: 135%;
  --glass-border: rgba(230, 233, 236, .10);
  --rim-light: rgba(230, 233, 236, .34); --rim-dark: rgba(0, 0, 0, .55);
  --lens-scale: 36; --lens-band: .38;
  --solid: #17171B; --solid-2: #111114;
  --radius-lg: 6px;
  --shadow-md: 0 8px 22px rgba(0, 0, 0, .5); --shadow-lg: 0 18px 44px rgba(0, 0, 0, .6);
  /* light */
  --spec-gold: linear-gradient(105deg, transparent 30%, rgba(245, 210, 122, .26) 45%, rgba(255, 255, 255, .30) 50%, rgba(245, 210, 122, .18) 55%, transparent 70%);
  --neon-gold: 0 0 2px #FFF4D6, 0 0 6px #F5D27A, 0 0 16px rgba(255, 90, 31, .55);
  --neon-red: 0 0 2px #FFD6DB, 0 0 6px #FF2A3D, 0 0 18px rgba(200, 16, 46, .6);
  --be-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .16 0 0 0 -.05'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  --be-wear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='70'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -4 3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
  /* motion */
  --t-press: 110ms; --t-state: 180ms; --t-in: 220ms; --t-out: 150ms;
  --ease-snap: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.2, 1.5, .4, 1);
  /* layout m (phone) */
  --safe-t: max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px));
  --safe-b: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --hud-h: 72px;
  --plate-h: 72px; --cut: 13px; --key: 36px; --key-fs: 22px; --plate-gap: 8px;
  --plate-en: 23px; --plate-pr: 13px; --plate-ru: 12px;
  --btn-h: 52px;
}
@media (min-width: 1024px) and (hover: hover) { :root { --glass-blur: 22px; --glass-blur-2: 32px; } }
@media (min-width: 1024px) and (min-height: 600px) {
  :root { --hud-h: 64px; --plate-h: 84px; --cut: 16px; --key: 44px; --key-fs: 26px; --plate-gap: 10px;
          --plate-en: clamp(24px, 1.75vw, 30px); --plate-pr: 15px; --plate-ru: 14px; --btn-h: 56px; }
}
@media (min-width: 1600px) and (min-height: 900px) { :root { --plate-h: 96px; } }

/* Text materials (VISUAL-KIT 2.3, 2.4) */
.be-chrome-text, .be-gold-text {
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 0 #000);
}
.be-chrome-text { background-image: linear-gradient(180deg, #FFF 0%, #E6E9EC 40%, #8A9097 54%, #C9CDD2 72%, #F2F4F6 100%); }
.be-gold-text { background-image: linear-gradient(180deg, #FFF4D6 0%, #F5D27A 30%, #D4A63A 58%, #8C6A1E 78%, #E8BE5A 100%);
  filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 10px rgba(245, 210, 122, .32)); }
.be-eyebrow { margin: 0; font: 800 14px/1.1 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); }
.be-pr { font: 500 13px/1.3 var(--font-body); font-style: normal; text-transform: none; letter-spacing: 0; color: #B4B9BF; }

/* ── 2. Glass: smoked liquid glass, chrome rim, gold sweep ────────────────── */

.be-glass, .be-btn--icon, .be-chip { position: relative; isolation: isolate; color: var(--ink);
  /* Material variables are set per element, never inherited: without this reset a chip inside a dense or gold
     panel picked up the panel's 20–32 px blur, tint and rim (QA 14.10). Modifiers below come later and win. */
  --be-tint: initial; --be-blur: initial; --be-shadow: initial; --be-rim: initial; --be-rim-o: initial; }
.be-glass { border-radius: 10px; }
/* Open panel: no own stacking context, so a screen-blended loop inside sees the real picture behind the glass.
   The material is then a positioned layer painted first; element children are lifted above it (zero specificity). */
.be-glass--open { isolation: auto; }
.be-glass:has(.be-plate-slot) { isolation: auto; }   /* separate rule: :has() is unforgiving in a list */
:where(.be-glass--open, .be-glass:has(.be-plate-slot)) > :where(:not(.be-shine)) { position: relative; }

.be-glass::before, .be-btn--icon::before, .be-chip::before {
  content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(230, 233, 236, .08), transparent 46%),
    var(--be-grain), var(--be-tint, var(--glass-tint));
  -webkit-backdrop-filter: blur(var(--be-blur, var(--glass-blur))) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--be-blur, var(--glass-blur))) saturate(var(--glass-sat));
  box-shadow: inset 0 1px 0 var(--rim-light), inset 0 -1px 0 var(--rim-dark), var(--be-shadow, var(--shadow-md));
}
/* Chrome rim: a 1px ring cut out with a mask (border-image does not follow border-radius). */
.be-glass::after, .be-btn--icon::after, .be-chip::after {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: var(--be-rim, var(--edge)); opacity: var(--be-rim-o, .7);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.be-glass--open::before { z-index: auto; }
.be-glass:has(.be-plate-slot)::before { z-index: auto; }
.be-glass--dense { --be-tint: var(--glass-tint-2); --be-blur: var(--glass-blur-2); --be-shadow: var(--shadow-lg); }
.be-glass--gold { --be-rim: var(--edge-gold); --be-rim-o: 1; }
.be-glass--red { --be-rim: var(--edge-red); --be-rim-o: 1; }
/* Over a playing video: no blur (it would be recomputed every frame), darker tint + rim + grain.
   .be-glass--video on a glass element, or .be-on-video on any container (a scene, the plates panel over the clip),
   switches every glass inside it; МИССИЯ ПРОЙДЕНА always has two loops underneath, so it does this by itself.
   A dense panel keeps its denser tint (.84) without the blur. */
:is(.be-glass, .be-btn--icon, .be-chip).be-glass--video::before,
:is(.be-on-video, .be-glass--video, .be-passed) :is(.be-glass, .be-btn--icon, .be-chip)::before {
  -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--be-grain), var(--be-tint, var(--glass-tint-video)); }
/* Glass on glass does not blur twice: a chip or icon button inside a glass panel already sits on blurred, tinted
   ground, a second backdrop pass costs a full repaint and changes nothing visible. The lens tier below still applies. */
.be-glass :is(.be-glass, .be-btn--icon, .be-chip)::before { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Forced opaque panel (what every glass becomes on the solid tier). */
.be-glass--solid::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--be-grain), var(--solid); }

/* Gold specular sweep: kit.js injects <i class="be-shine"> and adds .is-in when the element is first seen. */
.be-shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.be-shine::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 70%;
  background: var(--spec-gold); transform: translateX(-110%);
}
.is-in > .be-shine::before { animation: be-sweep .9s linear .1s 1 both; }
[data-shine="loop"].is-in > .be-shine::before { animation: be-sweep-loop 5s linear .4s infinite both; }
@media (hover: hover) and (pointer: fine) {
  .be-glass:hover > .be-shine::before, .be-btn:hover > .be-shine::before { animation: be-sweep-hover .9s linear 1 both; }
}
@keyframes be-sweep { from { transform: translateX(-110%); } to { transform: translateX(250%); } }
@keyframes be-sweep-hover { from { transform: translateX(-110%); } to { transform: translateX(250%); } }
@keyframes be-sweep-loop { 0% { transform: translateX(-110%); } 18%, 100% { transform: translateX(250%); } }

/* Tiers. lens: only after glass-tier.js wrote --lens-filter inline (the var without a value would drop the blur). */
html[data-glass-tier="lens"] :is(.be-glass, .be-btn--icon, .be-chip)[data-lens][style*="--lens-filter"]::before {
  backdrop-filter: var(--lens-filter) blur(var(--be-blur, var(--glass-blur))) saturate(var(--glass-sat));
}
html[data-glass-tier="solid"] :is(.be-glass, .be-btn--icon, .be-chip)::before,
html[data-fx="lite"] :is(.be-glass, .be-btn--icon, .be-chip)::before {
  -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--be-grain), var(--solid);
}
html[data-glass-tier="solid"] .be-glass--dense::before, html[data-fx="lite"] .be-glass--dense::before { background: var(--be-grain), var(--solid-2); }
/* Own rule, without data-glass-tier: works even when the script did not load (VISUAL-KIT 4.2). */
@media (prefers-reduced-transparency: reduce) {
  :is(.be-glass, .be-btn--icon, .be-chip)::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--solid); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :is(.be-glass, .be-btn--icon, .be-chip)::before { background: var(--be-grain), var(--solid); }
}
@media (forced-colors: active) {
  :is(.be-glass, .be-btn--icon, .be-chip)::before { background: Canvas; backdrop-filter: none; }
  :is(.be-glass, .be-btn--icon, .be-chip)::after { background: CanvasText; opacity: 1; }
}

/* ── 3. Buttons ──────────────────────────────────────────────────────────── */

.be-btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 calc(var(--btn-h) * .5 + 6px); border: 0; background: none; color: var(--ink);
  font: italic 900 21px/1 var(--font-cond); letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-press) var(--ease-snap), filter var(--t-state);
}
.be-btn--block { display: flex; width: 100%; }
/* Slanted shape: ::before = edge, ::after = fill, .be-shine = sweep. Text stays upright. */
.be-btn:not(.be-btn--icon)::before, .be-btn:not(.be-btn--icon)::after, .be-btn:not(.be-btn--icon) > .be-shine {
  content: ""; position: absolute; border-radius: 3px; transform: skewX(var(--skew)); pointer-events: none;
}
.be-btn:not(.be-btn--icon)::before { inset: 0; z-index: -3; background: var(--btn-edge, var(--edge)); box-shadow: var(--btn-glow, 0 8px 18px rgba(0, 0, 0, .5)); }
.be-btn:not(.be-btn--icon)::after { inset: 1.5px; z-index: -2; background: var(--btn-fill); }
.be-btn:not(.be-btn--icon) > .be-shine { inset: 1.5px; z-index: -1; }
.be-btn:active { transform: translateY(1px) scale(.97); }
.be-btn:focus-visible { outline: none; }
.be-btn:not(.be-btn--icon):focus-visible::before { background: var(--gold-hi); box-shadow: 0 0 0 2px rgba(245, 210, 122, .35), 0 0 18px rgba(245, 210, 122, .45); }
.be-btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }

.be-btn--gold {
  color: var(--asphalt); text-shadow: 0 1px 0 rgba(255, 244, 214, .6);
  --btn-edge: linear-gradient(180deg, #FFFFFF, #E6E9EC 30%, #8A9097 60%, #C9CDD2);
  --btn-fill: linear-gradient(180deg, rgba(255, 244, 214, .55), rgba(245, 210, 122, .25) 38%, rgba(140, 106, 30, .30) 100%),
              url("kit/gold-liquid.webp") 50% 40% / cover, var(--gold-fill);
  --btn-glow: 0 0 0 1px rgba(0, 0, 0, .7), 0 10px 26px rgba(0, 0, 0, .55), 0 0 26px rgba(255, 90, 31, .22);
}
.be-btn--chrome {
  color: var(--chrome-hi); text-shadow: 0 2px 0 #000;
  --btn-fill: linear-gradient(180deg, rgba(52, 53, 60, .92), rgba(18, 18, 21, .96)), url("../bg/metal.webp") 0 0 / 256px, var(--panel);
}
/* chrome-grey #C9CDD2, not --muted: the ghost button often lies on a busy map or poster and read as disabled there */
.be-btn--ghost { --btn-edge: transparent; --btn-fill: transparent; --btn-glow: none; color: #C9CDD2; text-shadow: 0 2px 0 #000, 0 0 10px #000, 0 0 18px rgba(0, 0, 0, .9);
  font-style: normal; font-weight: 700; font-size: 17px; letter-spacing: .08em; padding: 0 10px; }
.be-btn--ghost::after { inset: auto 10px 10px !important; height: 2px; transform: scaleX(0) !important; transform-origin: left;
  background: var(--gold-hi) !important; transition: transform var(--t-state) var(--ease-snap); }
@media (hover: hover) and (pointer: fine) {
  .be-btn--chrome:hover::before { background: linear-gradient(#FFF, #E6E9EC); }
  .be-btn--gold:hover { filter: brightness(1.06) saturate(1.05); }
  .be-btn--ghost:hover { color: #FFFFFF; }
  .be-btn--ghost:hover::after { transform: scaleX(1) !important; }
}

/* Round glass icon button (pause, sound, share…): 48px touch area, generated 3D icon inside. */
.be-btn--icon {
  width: 48px; height: 48px; min-height: 0; padding: 0; border-radius: 50%; --be-rim-o: .85;
  transition: transform var(--t-press) var(--ease-snap);
}
.be-btn--icon img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .7)); }
.be-btn--icon:active { transform: scale(.94); }
.be-btn--icon:focus-visible { --be-rim: var(--gold-hi); --be-rim-o: 1; }
.be-btn--icon.is-on { --be-rim: var(--edge-gold); --be-rim-o: 1; --be-tint: rgba(42, 35, 20, .72); }

/* Chips: МЕДЛЕННЕЕ, ЕЩЁ РАЗ, EN. Glass pill; on = gold. */
.be-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; margin: 4px 0; padding: 0 16px; border: 0; border-radius: 20px;
  background: none; font: 800 16px/1 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--chrome-hi);
  cursor: pointer; -webkit-tap-highlight-color: transparent; --be-rim-o: .6;
  transition: transform var(--t-press) var(--ease-snap), color var(--t-state);
}
/* 28 px is the floor for a generated render (VISUAL-KIT: smaller turns to mush); the negative margin keeps the pill 40 px */
.be-chip img { width: 28px; height: 28px; margin: -4px -2px -4px -6px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); }
.be-chip:active { transform: scale(.96); }
.be-chip.is-on { color: var(--asphalt); --be-rim: var(--edge-gold); --be-rim-o: 1; }
.be-chip.is-on::before { background: var(--gold-fill); -webkit-backdrop-filter: none; backdrop-filter: none; transition: background var(--t-state); }

/* Key caps: visible on the desktop layout or after the first key press (html[data-input="keys"]). */
.be-key {
  display: none; min-width: 26px; height: 22px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 4px;
  font: 400 12px/1 var(--font-display); letter-spacing: .04em; font-style: normal; color: var(--chrome-hi); text-shadow: none;
  background: linear-gradient(#26272C, #141417) padding-box, var(--edge) border-box; border: 1px solid transparent;
  box-shadow: 0 2px 0 #000, inset 0 1px 0 rgba(255, 255, 255, .12);
}
html[data-input="keys"] .be-key { display: inline-flex; }
@media (min-width: 1024px) and (min-height: 600px) { .be-key { display: inline-flex; } }
.be-btn--gold .be-key { color: var(--gold-hi); }

/* ── 4. Answer plate: slanted battle-menu plate ───────────────────────────── */

.be-plates { display: grid; gap: var(--plate-gap); }
/* The slot hosts the fire loop as a SIBLING of the plate: the plate is a stacking context (isolation),
   a child video with `screen` would only see the plate and draw a black square. */
.be-plate-slot { position: relative; }
.be-plate-slot::before { /* ember glow under the burning plate */
  content: ""; position: absolute; left: 0; right: 0; top: -40%; bottom: -40%; pointer-events: none; opacity: 0;   /* never wider than the plate: no page overflow */
  background: radial-gradient(50% 50% at 50% 55%, rgba(255, 90, 31, .42), rgba(255, 90, 31, .12) 55%, transparent 72%);
}
.be-plate-slot.is-fire::before { opacity: 1; animation: be-ember 1.6s ease-in-out infinite alternate; }
@keyframes be-ember { from { opacity: .5; } to { opacity: 1; } }
/* blazin-flames-1x1: base line at 2/3 of the frame, flames span 17–89% of its width. The wrapper is exactly as wide
   as the plate and clips the empty sides (no page overflow); the video inside is 1/.72 of the plate, moved left
   by 17% of itself, squashed to --fire-ar (3.3: flames rise ≈ 30% of the plate width; less = taller). The base hides 6 px
   under the plate, which is painted after it. No transform, mask or opacity on the wrapper: `screen` must reach the picture. */
.be-plate__fire { position: absolute; left: 0; width: 100%; bottom: calc(100% - 6px); aspect-ratio: var(--fire-ar, 3.3); max-height: calc(var(--plate-h) * 1.3);
  overflow: hidden; pointer-events: none; display: none; }   /* a wide desktop plate gets lower, wider flames, not a wall of fire.
   width: 100%, not right: 0 — with an auto width the max-height would be transferred through the ratio and narrow the box */
.be-plate__fire video {
  position: absolute; left: -23.6%; top: 0; width: 138.9%; height: 150%; object-fit: fill; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, transparent 4%, #000 36%); mask-image: linear-gradient(180deg, transparent 4%, #000 36%);
}
.be-plate-slot.is-fire .be-plate__fire { display: block; }

.be-plate {
  --plate-edge: var(--edge);
  --plate-fill: linear-gradient(180deg, rgba(40, 40, 46, .92), rgba(13, 13, 16, .96)), url("../bg/metal.webp") 0 0 / 256px, var(--panel);
  position: relative; isolation: isolate; display: grid; grid-template-columns: var(--key) minmax(0, 1fr) auto; align-items: center; gap: 12px;
  width: 100%; min-height: var(--plate-h); margin: 0; padding: 8px calc(var(--cut) + 14px) 8px calc(var(--cut) + 4px);
  border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer;
  font: italic 900 var(--plate-en)/1.04 var(--font-cond); letter-spacing: .01em; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55));
  transition: transform var(--t-press) var(--ease-snap), opacity var(--t-state), filter var(--t-state);
}
.be-plate::before, .be-plate::after, .be-plate > .be-shine {
  content: ""; position: absolute; pointer-events: none; border-radius: 0;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
}
.be-plate::before { inset: 0; z-index: -3; background: var(--plate-edge); transition: background var(--t-state); }
.be-plate::after { inset: 2px; z-index: -2; background: var(--plate-fill); }
.be-plate > .be-shine { inset: 2px; z-index: -1; overflow: hidden; }
.be-plate__key {
  position: relative; z-index: 0; display: grid; place-items: center; width: var(--key); height: var(--key);
  font: 400 var(--key-fs)/1 var(--font-display); font-style: normal; color: var(--asphalt);
}
.be-plate__key::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(var(--skew)); border-radius: 2px;
  background: linear-gradient(160deg, #F5D27A, #D4A63A 45%, #8C6A1E);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 1px rgba(0, 0, 0, .65);
}
.be-plate__text { min-width: 0; overflow-wrap: anywhere; text-wrap: balance; }
.be-plate__text > b { display: block; font-weight: 900; text-shadow: 0 2px 0 rgba(0, 0, 0, .65); }
.be-plate__pr { display: block; margin-top: 4px; font: 500 var(--plate-pr)/1.25 var(--font-body); font-style: normal; text-transform: none; letter-spacing: 0; color: #B4B9BF; text-wrap: pretty; }
.be-plate__ru { display: none; margin-top: 3px; font: 500 var(--plate-ru)/1.3 var(--font-body); font-style: normal; text-transform: none; letter-spacing: 0; color: var(--muted); }
.is-revealed .be-plate__ru { display: block; }
.be-plate[data-len="long"] { font-size: calc(var(--plate-en) - 4px); line-height: 1.1; }
.be-plate__mark { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.4); }
.be-plate:is(.is-right, .is-wrong) .be-plate__mark { opacity: 1; transform: none; transition: transform .28s var(--ease-spring) .05s, opacity .12s; }

@media (hover: hover) and (pointer: fine) {
  .be-plate:not([disabled]):hover { --plate-edge: linear-gradient(#FFF, #E6E9EC); transform: translateY(-2px);
    filter: drop-shadow(0 0 9px rgba(230, 233, 236, .3)) drop-shadow(0 8px 12px rgba(0, 0, 0, .55)); }
}
.be-plate:focus-visible { outline: none; --plate-edge: var(--gold-hi); filter: drop-shadow(0 0 10px rgba(245, 210, 122, .45)); }
.be-plate:not([disabled]):active { transform: translateY(1px) scale(.99); }
.be-plate[disabled] { cursor: default; }

/* picked: chrome, for 200 ms before the check */
.be-plate.is-picked, .be-plate[aria-pressed="true"] {
  --plate-edge: linear-gradient(180deg, #FFFFFF, #E6E9EC 50%, #C9CDD2);
  --plate-fill: linear-gradient(180deg, rgba(70, 71, 80, .94), rgba(26, 26, 30, .96)), url("../bg/metal.webp") 0 0 / 256px, var(--panel-2);
  filter: drop-shadow(0 0 10px rgba(230, 233, 236, .42)) drop-shadow(0 6px 10px rgba(0, 0, 0, .55));
}
/* right: liquid gold (generated style master) + gold edge + check; fire on the slot */
.be-plate.is-right {
  color: var(--asphalt);
  --plate-edge: linear-gradient(135deg, #FFF4D6, #F5D27A 30%, #D4A63A 62%, #FFE7A8);
  --plate-fill: linear-gradient(180deg, rgba(255, 240, 196, .50), rgba(245, 210, 122, .30) 42%, rgba(140, 106, 30, .40)),
                url("kit/gold-liquid.webp") 50% 40% / cover, var(--gold-fill);
  filter: drop-shadow(0 0 1px rgba(245, 210, 122, .9)) drop-shadow(0 0 12px rgba(255, 90, 31, .6)) drop-shadow(0 0 28px rgba(255, 90, 31, .25));
}
.be-plate.is-right .be-plate__text > b { text-shadow: 0 1px 0 rgba(255, 244, 214, .55); }
/* small dark text on liquid gold: the specular streak behind it ate the transcription on desktop, a light lip under it holds it */
.be-plate.is-right .be-plate__pr, .be-plate.is-right .be-plate__ru { color: rgba(11, 11, 12, .86); font-weight: 600; text-shadow: 0 1px 0 rgba(255, 240, 196, .5); }
.be-plate:is(.is-right, .is-wrong) .be-plate__key { color: var(--gold-hi); }
.be-plate:is(.is-right, .is-wrong) .be-plate__key::before { background: var(--asphalt); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }
.be-plate.is-right.is-fresh { animation: be-plate-win .34s var(--ease-spring); }
.be-plate.is-right.is-fresh > .be-shine::before { animation: be-sweep .7s linear .08s 1 both; }
@keyframes be-plate-win { from { transform: scale(1.05); } }
/* right answer revealed after a wrong pick: gold and check, no fire (fire is the reward) */
.be-plate.is-right.is-quiet { filter: drop-shadow(0 0 1px rgba(245, 210, 122, .85)) drop-shadow(0 0 10px rgba(212, 166, 58, .35)); }
/* wrong: red + cross + shake */
.be-plate.is-wrong {
  color: #fff;
  --plate-edge: var(--edge-red);
  --plate-fill: linear-gradient(180deg, rgba(211, 32, 61, .96), rgba(142, 10, 32, .97)), url("../bg/metal.webp") 0 0 / 256px;
  filter: drop-shadow(0 0 10px rgba(200, 16, 46, .45)) drop-shadow(0 6px 10px rgba(0, 0, 0, .55));
}
.be-plate.is-wrong .be-plate__pr, .be-plate.is-wrong .be-plate__ru { color: rgba(255, 255, 255, .86); }
.be-plate.is-wrong.is-fresh { animation: be-shake .28s ease-in-out; }
@keyframes be-shake { 0%, 100% { transform: translateX(0); } 17% { transform: translateX(-6px); } 33% { transform: translateX(6px); }
  50% { transform: translateX(-5px); } 67% { transform: translateX(4px); } 83% { transform: translateX(-2px); } }
.be-plate.is-dim { opacity: .45; }

/* Stamp: ВЕРНО +20 XP, BLAZIN' x3. Same fonts as the brand, worn edge. */
.be-stamps { position: relative; z-index: 2; display: flex; justify-content: flex-end; align-items: center; gap: 12px; min-height: 44px; padding-right: 6px; }   /* above the fire */
.be-stamp {
  display: inline-block; padding: 2px 12px 0; border: 3px solid currentColor; border-radius: 4px; transform: rotate(-6deg);
  font: italic 900 26px/1.1 var(--font-cond); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-hi);
  text-shadow: 0 0 12px rgba(245, 210, 122, .35); background: rgba(11, 11, 12, .55);
  -webkit-mask-image: var(--be-wear); mask-image: var(--be-wear); -webkit-mask-size: 140px 70px; mask-size: 140px 70px;
}
.be-stamp--xp { border: 0; padding: 0; background: none; transform: rotate(4deg); font: 400 28px/1 var(--font-display); color: var(--gold-hi);
  text-shadow: var(--be-outline), 0 0 16px rgba(255, 90, 31, .75); }
.be-stamp--fire { color: var(--ember); text-shadow: 0 0 14px rgba(255, 90, 31, .65); }
.be-stamps .be-stamp:not(.is-in) { visibility: hidden; }   /* a stamp exists only after the answer */
.be-stamp.is-in { animation: be-slam .34s var(--ease-spring) both; }
.be-stamp--xp.is-in { animation-name: be-slam-xp; animation-delay: .14s; }
@keyframes be-slam { from { transform: scale(1.9) rotate(-14deg); opacity: 0; } to { transform: rotate(-6deg); opacity: 1; } }
@keyframes be-slam-xp { from { transform: scale(1.9) rotate(12deg); opacity: 0; } to { transform: rotate(4deg); opacity: 1; } }

/* ── 5. HUD: RESPECT, BLAZIN', streak flame, XP ───────────────────────────── */

.be-hud {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "bars stats";
  align-items: center; gap: 10px 14px; min-height: var(--hud-h); padding: calc(var(--safe-t) + 10px) 14px 10px;
  background: linear-gradient(180deg, rgba(11, 11, 12, .88), rgba(11, 11, 12, .55) 70%, rgba(11, 11, 12, 0));
  border-radius: 0;
}
/* On the phone the HUD lies over video: a gradient, not glass (GAME-UI 3.3). Glass comes back on desktop. */
.be-hud.be-glass::before, .be-hud.be-glass::after, .be-hud > .be-shine { display: none; }
.be-hud__id, .be-hud__tools { display: none; }
.be-hud__bars { grid-area: bars; display: grid; gap: 8px; min-width: 0; }
.be-hud__row { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 8px; }
.be-hud__label {
  display: inline-block; font: 400 18px/1 var(--font-display); letter-spacing: .02em; white-space: nowrap; transform: skewX(-8deg);
  color: var(--chrome-hi); text-shadow: 0 2px 0 #000;
}
.be-hud__label--blaze { color: var(--gold-hi); }
.be-hud__label--blaze b { font-weight: 400; color: var(--ink); }
.be-hud__label--blaze.is-hot b { color: var(--ember); text-shadow: 0 0 10px rgba(255, 90, 31, .75), 0 2px 0 #000; }
.be-hud__stats { grid-area: stats; display: grid; justify-items: end; gap: 4px; font-variant-numeric: tabular-nums; }
.be-hud__sub { font: 700 12px/1 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
/* Desktop: one glass row across the screen — rank and mission · RESPECT and BLAZIN' · streak and XP · tools. */
@media (min-width: 1024px) and (min-height: 600px) {
  .be-hud { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "id bars stats tools"; gap: 0 24px;
    padding: 8px 10px 8px 12px; background: none; border-radius: 12px; }
  .be-hud.be-glass::before, .be-hud.be-glass::after { display: block; }
  .be-hud__id { grid-area: id; display: flex; align-items: center; gap: 10px; min-width: 0; }
  .be-hud__rank { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .7)); }
  .be-hud__rankname { display: block; font: 400 17px/1 var(--font-display); letter-spacing: .08em; color: var(--chrome-hi); }
  .be-hud__mission { display: block; margin-top: 4px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font: 800 14px/1.1 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .be-hud__bars { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 20px; }
  .be-hud__row { grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  .be-hud__stats { grid-auto-flow: column; align-items: center; gap: 18px; }
  .be-hud__sub { display: none; }
  .be-hud__tools { grid-area: tools; display: flex; gap: 8px; }
  .be-hud__tools .be-btn--icon { width: 44px; height: 44px; }
  .be-hud__tools .be-btn--icon img { width: 28px; height: 28px; }
}

/* RESPECT meter: liquid-gold loop revealed by two opposite translations (no width animation). */
.be-meter {
  position: relative; display: block; height: 14px; overflow: hidden; transform: skewX(var(--skew)); border-radius: 2px;
  border: 1px solid transparent; background: linear-gradient(#0E0E10, #0E0E10) padding-box, var(--edge) border-box;
}
.be-meter__fill, .be-meter__gold { position: absolute; inset: 0; transition: transform .3s var(--ease-snap); }
.be-meter__fill { overflow: hidden; transform: translateX(calc((var(--p, 0) - 1) * 100%)); }
.be-meter__gold { transform: translateX(calc((1 - var(--p, 0)) * 100%)); background: var(--gold-bar); }
.be-meter__gold video, .be-meter__gold img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the generated loop is deep amber; a screen-blended gold wash lifts it to the brand gold of the reference */
.be-meter__gold::after { content: ""; position: absolute; inset: 0; mix-blend-mode: screen;
  background: linear-gradient(180deg, rgba(255, 236, 170, .75) 0%, rgba(245, 210, 122, .38) 45%, rgba(212, 166, 58, .22) 100%); }
.be-meter__fill::after { /* hot leading edge */
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 3px;
  background: #FFF4D6; box-shadow: 0 0 8px 2px rgba(245, 210, 122, .85);
}
.be-meter--timer .be-meter__gold { background: linear-gradient(90deg, #8C6A1E, #D4A63A 60%, #F5D27A); }
.be-meter--timer.is-hot .be-meter__gold { background: linear-gradient(90deg, #B8380E, #FF5A1F 60%, #FFB070); }
.be-meter--timer.is-last .be-meter__gold { background: linear-gradient(90deg, #7A0A1C, #C8102E 60%, #FF5C70); }

/* BLAZIN' meter: six ember segments; hot = heat runs along them. */
.be-blaze { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; height: 14px; transform: skewX(var(--skew)); }
.be-blaze i { position: relative; border-radius: 1px; background: #1C1D22; box-shadow: inset 0 0 0 1px #34363C; }
.be-blaze i.on { background: linear-gradient(180deg, #FFB070, #FF5A1F 55%, #B8380E); box-shadow: 0 0 8px rgba(255, 90, 31, .7); }
.be-blaze i.on::after { content: ""; position: absolute; inset: -3px; border-radius: 3px; box-shadow: 0 0 12px 3px rgba(255, 120, 40, .95); opacity: 0; }
.be-blaze.is-hot i.on::after { animation: be-heat 1.1s ease-in-out infinite alternate; }
.be-blaze.is-hot i:nth-child(2)::after { animation-delay: .09s; } .be-blaze.is-hot i:nth-child(3)::after { animation-delay: .18s; }
.be-blaze.is-hot i:nth-child(4)::after { animation-delay: .27s; } .be-blaze.is-hot i:nth-child(5)::after { animation-delay: .36s; }
.be-blaze.is-hot i:nth-child(6)::after { animation-delay: .45s; }
@keyframes be-heat { to { opacity: 1; } }

/* Streak flame: generated 3D flame with an idle flicker (slow, under 1 Hz: no strobing). */
.be-streak { display: inline-flex; align-items: center; gap: 2px; font: 400 28px/1 var(--font-display); color: var(--muted); }
.be-streak__flame { position: relative; display: inline-block; width: 30px; height: 34px; }
.be-streak__flame img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 90%; }
.be-streak__flame::before { content: ""; position: absolute; inset: -40% -50% -10%; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 90, 31, .55), rgba(255, 90, 31, 0)); }
.be-streak.is-lit { color: var(--gold-hi); text-shadow: 0 0 12px rgba(245, 210, 122, .35), 0 2px 0 #000; }
.be-streak.is-lit .be-streak__flame img { animation: be-flicker 2.6s ease-in-out infinite; }
.be-streak.is-lit .be-streak__flame::before { animation: be-glow 1.9s ease-in-out infinite alternate; }
.be-streak:not(.is-lit) .be-streak__flame img { filter: grayscale(1) brightness(.5); }
@keyframes be-flicker {
  0%, 100% { transform: scale(1, 1) skewX(0deg); } 22% { transform: scale(1.02, 1.07) skewX(-2.5deg); }
  46% { transform: scale(.98, .96) skewX(1.5deg); } 71% { transform: scale(1.03, 1.09) skewX(-1deg); }
}
@keyframes be-glow { from { opacity: .45; } to { opacity: 1; } }

/* XP: gold Anton, tabular digits; kit.js rolls the number. */
.be-xp { font: 400 22px/1 var(--font-display); letter-spacing: .02em; white-space: nowrap; font-variant-numeric: tabular-nums;
  color: var(--gold-hi); text-shadow: 0 2px 0 #000; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .be-xp { background: linear-gradient(180deg, #FFF4D6 0%, #F5D27A 30%, #D4A63A 60%, #8C6A1E 100%); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 2px 0 #000); }
}
.be-xp b { font-weight: 400; display: inline-block; transition: transform .2s var(--ease-spring); }
.be-xp .is-rolling { transform: scale(1.12); }

/* ── 6. Toast ───────────────────────────────────────────────────────────── */

.be-toasts { position: fixed; z-index: 60; left: 0; right: 0; top: calc(var(--safe-t) + var(--hud-h) + 6px); display: grid; justify-items: center;
  gap: 8px; padding: 0 12px; pointer-events: none; }
.be-toast {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; width: min(380px, 100%); padding: 10px 16px 10px 10px;
  border-radius: 12px; pointer-events: auto; --be-tint: var(--glass-tint-2); --be-blur: var(--glass-blur-2);
}
.be-toasts .be-toast { animation: be-toast-in var(--t-in) var(--ease-spring) backwards; }
.be-toasts .be-toast.is-out { animation: be-toast-out var(--t-out) ease-in forwards; }
@keyframes be-toast-in { from { transform: translateY(-110%) scale(.96); opacity: 0; } }
@keyframes be-toast-out { to { transform: translateY(-60%) scale(.96); opacity: 0; } }
@media (min-width: 1024px) and (min-height: 600px) {
  .be-toasts { top: auto; left: auto; bottom: 24px; right: 24px; justify-items: end; padding: 0; }
  .be-toasts .be-toast { animation-name: be-toast-in-d; }
  .be-toasts .be-toast.is-out { animation-name: be-toast-out-d; }
}
@keyframes be-toast-in-d { from { transform: translateX(40px) scale(.96); opacity: 0; } }
@keyframes be-toast-out-d { to { transform: translateX(30px); opacity: 0; } }
.be-toast__icon { position: relative; width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .7)); }
/* fire well: an opaque dark coin under the blazin loop, so `screen` has something to blend with in a fixed toast */
.be-toast__well { position: relative; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 14px rgba(255, 90, 31, .5); }
.be-toast__well video, .be-toast__well img { position: absolute; left: -30%; top: -48%; width: 160%; height: 160%; object-fit: cover; mix-blend-mode: screen; }
.be-toast__title { display: block; font: italic 900 21px/1.05 var(--font-cond); letter-spacing: .04em; text-transform: uppercase; color: var(--chrome-hi); }
.be-toast__text { display: block; margin-top: 2px; font: 500 14px/1.3 var(--font-body); color: var(--muted); }
.be-toast--gold { --be-rim: var(--edge-gold); --be-rim-o: 1; }
.be-toast--gold .be-toast__title { color: var(--gold-hi); text-shadow: 0 0 12px rgba(245, 210, 122, .35); }
.be-toast--fire { --be-rim: linear-gradient(135deg, #FFB070, #FF5A1F 45%, #8C6A1E); --be-rim-o: 1; }
.be-toast--fire .be-toast__title { color: var(--ember); text-shadow: 0 0 12px rgba(255, 90, 31, .55); }
.be-toast--warn { --be-rim: linear-gradient(135deg, #F2A33A, #8C6A1E); --be-rim-o: 1; }
.be-toast--warn .be-toast__title { color: var(--amber); }
.be-toast--error { --be-rim: var(--edge-red); --be-rim-o: 1; }
.be-toast--error .be-toast__title { color: var(--red-text); }

/* ── 7. Sheet: bottom sheet on the phone, centred window on desktop ───────── */

.be-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(5, 5, 6, .6); opacity: 0; pointer-events: none; transition: opacity var(--t-in); }
.be-scrim.is-open { opacity: 1; pointer-events: auto; }
.be-sheet {
  position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto; overscroll-behavior: contain;
  padding: 10px 16px calc(var(--safe-b) + 16px); border-radius: 18px 18px 0 0;
  --be-tint: var(--glass-tint-2); --be-blur: var(--glass-blur-2); --be-shadow: 0 -12px 40px rgba(0, 0, 0, .6);
  transform: translateY(105%); visibility: hidden;
  transition: transform var(--t-out) ease-in, visibility 0s linear var(--t-out);
}
.be-sheet.is-open { transform: none; visibility: visible; transition: transform .26s var(--ease-snap); }
.be-sheet--static { position: relative; z-index: auto; left: auto; right: auto; bottom: auto; transform: none; visibility: visible; max-height: none; overflow: visible; transition: none; }
.be-sheet__grab { display: block; width: 44px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: linear-gradient(90deg, #8A9097, #E6E9EC, #8A9097); opacity: .8; }
.be-sheet__title { margin: 0 0 4px; font: italic 900 28px/1 var(--font-cond); text-transform: uppercase; letter-spacing: .02em; }
.be-sheet__lead { margin: 0 0 14px; color: var(--muted); font: 400 15px/1.45 var(--font-body); }
.be-sheet__menu { display: grid; gap: 10px; }
@media (min-width: 1024px) and (min-height: 600px) {
  .be-sheet:not(.be-sheet--static) { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, calc(100vw - 48px)); max-height: 80vh;
    padding: 24px 28px 26px; border-radius: 14px; transform: translate(-50%, -46%) scale(.97); opacity: 0;
    transition: transform var(--t-out) ease-in, opacity var(--t-out), visibility 0s linear var(--t-out); }
  .be-sheet:not(.be-sheet--static).is-open { transform: translate(-50%, -50%); opacity: 1; transition: transform var(--t-in) var(--ease-snap), opacity var(--t-in); }
  .be-sheet:not(.be-sheet--static) .be-sheet__grab { display: none; }
}

/* ── 8. Badge (medal), rank emblem ───────────────────────────────────────── */

.be-badge { display: grid; justify-items: center; align-content: start; gap: 8px; width: var(--size, 96px); margin: 0; padding: 0; border: 0;
  background: none; color: var(--ink); text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.be-badge__art { position: relative; width: var(--size, 96px); aspect-ratio: 1; }
.be-badge__art img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .65)); }
/* glint that follows the medal's own shape (mask = the medal picture, set as --img) */
.be-badge__art::after, .be-rank__emblem::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .7) 48%, rgba(245, 210, 122, .45) 53%, transparent 62%) 160% 0 / 260% 100% no-repeat;
  -webkit-mask: var(--img) center / contain no-repeat; mask: var(--img) center / contain no-repeat; mix-blend-mode: soft-light;
}
.be-badge.is-in .be-badge__art::after { animation: be-glint .9s ease-out calc(var(--i, 0) * 70ms + .45s) 1 both; }
@keyframes be-glint { 0% { opacity: 1; background-position: 160% 0; } 100% { opacity: 1; background-position: -60% 0; } }
.be-badge.is-in .be-badge__art img { animation: be-pop .52s var(--ease-spring) calc(var(--i, 0) * 70ms) backwards; }
@keyframes be-pop { 0% { transform: scale(.3) rotate(-24deg); opacity: 0; } 60% { transform: scale(1.12) rotate(4deg); opacity: 1; } 100% { transform: none; } }
.be-badge__name { font: 800 14px/1.1 var(--font-cond); letter-spacing: .06em; text-transform: uppercase; color: var(--chrome-hi); }
.be-badge.is-new .be-badge__art::before { content: ""; position: absolute; inset: -14%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 90, 31, .45), rgba(245, 210, 122, .15) 60%, transparent); animation: be-glow 1.6s ease-in-out infinite alternate; }
.be-badge.is-new .be-badge__name { color: var(--gold-hi); }
.be-badge.is-locked { cursor: default; }
.be-badge.is-locked .be-badge__art img:not(.be-badge__lock) { filter: grayscale(1) brightness(.34) contrast(1.15) drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.be-badge.is-locked .be-badge__art::after { display: none; }
.be-badge.is-locked .be-badge__name { color: #6E737A; }
.be-badge__art .be-badge__lock { position: absolute; right: -2%; bottom: -2%; width: 40%; height: 40%; object-fit: contain; filter: drop-shadow(0 3px 4px #000); }

.be-rank { display: grid; justify-items: center; gap: 12px; margin: 0; }
.be-rank__emblem { position: relative; width: var(--size, 150px); aspect-ratio: 1; }
.be-rank__emblem::before { content: ""; position: absolute; left: 18%; right: 18%; bottom: -2%; height: 9%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .8), transparent); }
.be-rank__emblem img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .6)); }
.be-rank.is-in .be-rank__emblem::after { animation: be-glint 1.1s ease-out .3s 1 both; }
.be-rank--float .be-rank__emblem img { animation: be-float 3s ease-in-out infinite alternate; }
.be-rank--float .be-rank__emblem::before { animation: be-shadow 3s ease-in-out infinite alternate; }
@keyframes be-float { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@keyframes be-shadow { from { transform: scaleX(1); opacity: 1; } to { transform: scaleX(.86); opacity: .7; } }
/* engraved name plate: brushed chrome (gold for Champ and Svoy), letters cut into the metal */
.be-rank__plate { position: relative; isolation: isolate; display: grid; justify-items: center; gap: 3px; min-width: 76%; max-width: 100%; padding: 7px 18px 6px; text-align: center; }
.be-rank__plate::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(var(--skew)); border-radius: 3px;
  background: linear-gradient(180deg, #F6F7F8 0%, #D5D8DC 38%, #9AA0A7 52%, #C9CDD2 70%, #EEF0F2 100%) padding-box, linear-gradient(#5A5F66, #2A2D32) border-box;
  border: 1px solid transparent; box-shadow: 0 6px 14px rgba(0, 0, 0, .55), inset 0 1px 0 #fff; }
.be-rank--gold .be-rank__plate::before { background: linear-gradient(180deg, #FFF0C4 0%, #F5D27A 35%, #B8892C 55%, #E2B54E 75%, #FBE3A0 100%) padding-box, linear-gradient(#8C6A1E, #3A2806) border-box; }
.be-engraved { font: 400 clamp(19px, 5.4vw, 24px)/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: #2B2E33;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .45); }
.be-rank--gold .be-engraved { color: #3A2806; text-shadow: 0 1px 0 rgba(255, 246, 214, .75), 0 -1px 0 rgba(58, 40, 6, .5); }
.be-rank__pr { font: 500 11px/1.2 var(--font-body); color: #3F444B; white-space: nowrap; }
.be-rank--gold .be-rank__pr { color: #4A3508; }
.be-rank.is-locked .be-rank__emblem img { filter: grayscale(1) brightness(.35) drop-shadow(0 8px 12px rgba(0, 0, 0, .6)); animation: none; }
.be-rank.is-locked .be-rank__emblem::after { display: none; }

/* Desktop tilt (kit.js [data-tilt]): perspective set on the element, angles in --rx / --ry. */
[data-tilt] { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--ease-snap); }
[data-tilt].is-tilting { transition: transform .06s linear; }

/* ── 9. Mission card ─────────────────────────────────────────────────────── */

.be-mission-card {
  position: relative; display: grid; align-content: end; overflow: hidden; border-radius: 12px; background: var(--asphalt);
  aspect-ratio: 9 / 16; max-height: 100%; isolation: isolate; color: var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
}
.be-mission-card::after { /* chrome rim on top of everything */
  content: ""; position: absolute; inset: 0; z-index: 3; padding: 1px; border-radius: inherit; pointer-events: none; background: var(--edge); opacity: .75;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.be-mission-card__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.be-mission-card__shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 11, 12, .82), rgba(11, 11, 12, 0) 26%, rgba(11, 11, 12, .1) 42%, rgba(11, 11, 12, .92) 70%, #0B0B0C); }
.be-mission-card > .be-shine { z-index: 2; border-radius: inherit; }
.be-mission-card > .be-shine::before { width: 55%; background: linear-gradient(105deg, transparent 25%, rgba(245, 210, 122, .14) 42%, rgba(255, 255, 255, .22) 50%, rgba(245, 210, 122, .1) 58%, transparent 75%); }
.be-mission-card.is-in > .be-shine::before { animation-delay: .35s; }
.be-mission-card__body { display: grid; gap: 10px; padding: 18px 18px 18px; }
.be-mission-card__title { margin: 0; font: italic 900 46px/.92 var(--font-cond); letter-spacing: .01em; text-transform: uppercase; }
.be-mission-card__en { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.be-mission-card__en b { font: 400 21px/1 var(--font-display); letter-spacing: .04em; color: var(--chrome-hi); }
.be-mission-card__meta { margin: 0; font: 600 14px/1.3 var(--font-body); color: var(--muted); }
.be-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 4px 0 2px; }
.be-facts dt { font: 800 14px/1.35 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi); }
.be-facts dd { margin: 0; font: 400 15px/1.4 var(--font-body); color: var(--ink); }
.be-hero { display: flex; align-items: center; gap: 12px; }
.be-hero__ava { width: 48px; height: 48px; flex: none; border-radius: 6px; object-fit: cover; object-position: 50% 18%;
  border: 1.5px solid transparent; background: linear-gradient(#111, #111) padding-box, var(--edge) border-box; box-shadow: 0 4px 10px rgba(0, 0, 0, .6); }
.be-hero__tag { display: block; font: 800 15px/1.1 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--tag, var(--chrome-hi)); }
.be-hero__line { display: block; margin-top: 3px; font: 500 14px/1.35 var(--font-body); color: var(--ink); }
/* entrance: card slides up, then the lines of the body follow one by one */
.be-mission-card.is-in { animation: be-card-in .46s var(--ease-snap) backwards; }
.be-mission-card.is-in .be-mission-card__body > * { animation: be-line-in .36s var(--ease-snap) backwards; animation-delay: calc(.12s + var(--i, 0) * 60ms); }
@keyframes be-card-in { from { transform: translateY(28px) scale(.98); opacity: 0; } }
@keyframes be-line-in { from { transform: translateX(-18px); opacity: 0; } }
@media (min-width: 1024px) and (min-height: 600px) {
  .be-mission-card { aspect-ratio: 16 / 9; align-content: center; }
  .be-mission-card__shade { background: linear-gradient(90deg, rgba(11, 11, 12, .94) 0%, rgba(11, 11, 12, .8) 34%, rgba(11, 11, 12, 0) 62%),
    linear-gradient(180deg, rgba(11, 11, 12, .5), transparent 25% 75%, rgba(11, 11, 12, .6)); }
  .be-mission-card__body { width: min(46%, 520px); padding: 32px 36px; gap: 12px; }
  .be-mission-card__title { font-size: 60px; }
}

/* ── 10. MISSION PASSED (МИССИЯ ПРОЙДЕНА) ─────────────────────────────────── */

.be-passed {
  position: relative; isolation: isolate; display: grid; grid-template-rows: auto auto 1fr auto; align-content: start; gap: 14px;
  overflow: hidden; min-height: 640px; padding: 26px 16px calc(var(--safe-b) + 18px); background: var(--asphalt); color: var(--ink);
}
.be-passed--overlay { position: fixed; inset: 0; z-index: 50; min-height: 0; overflow: auto; }
/* bg (club loop or the hero's reaction), shade, then the burst intro and its seamless loop in `screen` */
.be-passed__bg, .be-passed__burst { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.be-passed__bg { z-index: -4; opacity: .55; }
.be-passed__shade { position: absolute; inset: 0; z-index: -3; background: radial-gradient(70% 45% at 50% 28%, rgba(11, 11, 12, 0), rgba(11, 11, 12, .7)), linear-gradient(180deg, rgba(11, 11, 12, .2), rgba(11, 11, 12, .55) 45%, rgba(11, 11, 12, .92) 80%); }
.be-passed__burst { z-index: -2; mix-blend-mode: screen; transform: translateY(-14%); }
.be-passed__intro { opacity: 0; }
.be-passed__loop { opacity: 1; transition: opacity .2s; }
.be-passed.is-run .be-passed__intro { opacity: 1; }
.be-passed.is-run:not(.is-looping) .be-passed__loop { opacity: 0; transition: none; }
.be-passed__head { position: relative; display: grid; justify-items: center; gap: 6px; padding-top: 34px; text-align: center; }
/* dark band between the flash and the words: gold on a gold burst is unreadable without it */
.be-passed__head::before { content: ""; position: absolute; z-index: -1; left: -12%; right: -12%; top: 12%; bottom: -16%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 52%, rgba(8, 8, 9, .86), rgba(8, 8, 9, .62) 52%, rgba(8, 8, 9, 0) 78%); }
.be-passed__stamp {
  margin: 0; font: italic 900 56px/.9 var(--font-cond); letter-spacing: .01em; text-transform: uppercase; transform: rotate(-2deg);
  -webkit-text-stroke: 1.5px rgba(40, 26, 4, .95); filter: drop-shadow(0 3px 0 #000) drop-shadow(0 0 16px rgba(0, 0, 0, .9));
  -webkit-mask-image: var(--be-wear); mask-image: var(--be-wear); -webkit-mask-size: 280px 140px; mask-size: 280px 140px;
}
.be-passed__respect { margin: 0; display: flex; align-items: baseline; gap: 10px; font: 400 32px/1 var(--font-display); letter-spacing: .04em; }
.be-passed__respect span { color: var(--chrome-hi); text-shadow: 0 2px 0 #000, 0 0 12px rgba(0, 0, 0, .9); }
.be-passed__respect b { font-weight: 400; color: var(--gold-hi); text-shadow: var(--be-outline), 0 0 18px rgba(245, 210, 122, .5); font-variant-numeric: tabular-nums; }
.be-stars { display: flex; justify-content: center; gap: 8px; filter: drop-shadow(0 0 8px rgba(245, 210, 122, .35)) drop-shadow(0 2px 0 #000); }
.be-stars i { --star: polygon(50% 0%, 61.8% 35%, 98% 35.4%, 69% 57.4%, 79.4% 92%, 50% 71%, 20.6% 92%, 31% 57.4%, 2% 35.4%, 38.2% 35%);
  position: relative; display: inline-block; width: var(--star-size, 34px); height: var(--star-size, 34px); clip-path: var(--star);
  background: linear-gradient(180deg, #6A6F76, #2A2D32); }
.be-stars i::before { content: ""; position: absolute; inset: 12%; clip-path: var(--star); background: #1C1D22; }
.be-stars i.on { background: linear-gradient(180deg, #FFFFFF, #E6E9EC 45%, #8A9097); }
.be-stars i.on::before { inset: 9%; background: linear-gradient(180deg, #FFF4D6 0%, #F5D27A 35%, #D4A63A 62%, #8C6A1E 100%); }
.be-stars--xs { --star-size: 11px; gap: 1px; filter: drop-shadow(0 1px 0 #000); }
.be-passed__rows { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 8px 16px; align-self: start; margin: 8px 0 0; padding: 16px 18px; }
.be-passed__rows dt { font: 500 15px/1.35 var(--font-body); color: var(--ink); }
.be-passed__rows dd { margin: 0; justify-self: end; font: 400 20px/1.1 var(--font-display); letter-spacing: .03em; color: var(--gold-hi); white-space: nowrap; }
.be-passed__rows .be-passed__review { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid rgba(230, 233, 236, .12); }
.be-passed__review b { font: 400 18px/1.2 var(--font-display); letter-spacing: .03em; color: var(--chrome-hi); }
.be-passed__next { display: none; }
.be-passed__actions { display: grid; gap: 10px; align-self: end; }
/* Sequence (kit.js UI.passed.play): arming hides, then stamp slams on the flash (0.6 s), RESPECT rolls, stars one by one, rows follow. */
.be-passed.is-arming :is(.be-passed__stamp, .be-passed__respect, .be-stars i, .be-passed__rows, .be-passed__next, .be-passed__actions) { opacity: 0; }
.be-passed.is-stamped .be-passed__stamp { animation: be-passed-slam .6s var(--ease-spring) both; }
.be-passed.is-stamped .be-passed__respect { animation: be-fade-up .3s var(--ease-snap) .25s both; }
.be-stars i { display: inline-block; }
.be-stars i.is-in { animation: be-star .3s var(--ease-spring) both; }
.be-passed.is-rows :is(.be-passed__rows, .be-passed__next, .be-passed__actions) { animation: be-fade-up .34s var(--ease-snap) both; }
.be-passed.is-rows .be-passed__next { animation-delay: .1s; } .be-passed.is-rows .be-passed__actions { animation-delay: .2s; }
@keyframes be-passed-slam { 0% { transform: scale(1.4) rotate(-4deg); opacity: 0; } 55% { opacity: 1; } 100% { transform: rotate(-2deg); opacity: 1; } }
@keyframes be-fade-up { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes be-star { from { transform: scale(2) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 1024px) and (min-height: 600px) {
  .be-passed { aspect-ratio: 16 / 9; min-height: 0; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto;
    grid-template-areas: "head head" "rows next" "act act"; gap: 18px 28px; padding: 30px 48px 34px; }
  .be-passed__burst { transform: translateY(-22%); }
  .be-passed__head { grid-area: head; padding-top: 18px; }
  .be-passed__stamp { font-size: 86px; }
  .be-passed__respect { font-size: 40px; }
  .be-passed__rows { grid-area: rows; margin: 0; align-self: stretch; }
  .be-passed__next { grid-area: next; display: grid; align-self: stretch; align-content: end; gap: 6px; padding: 18px; overflow: hidden; border-radius: 10px; }
  .be-passed__actions { grid-area: act; display: flex; justify-content: center; gap: 22px; }
}
.be-passed__next-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(6px) brightness(.5); transform: scale(1.1); border-radius: inherit; }
.be-passed__next .be-eyebrow, .be-passed__next p { position: relative; margin: 0; }

/* ── 11. Season map and pins ─────────────────────────────────────────────── */

.be-map { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 1170 / 2080; background: #05070A; }
.be-map__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.be-map::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 60px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(230, 233, 236, .14); }
@media (min-width: 1024px) and (min-height: 600px) { .be-map { aspect-ratio: 3 / 2; } }
/* Route between pins: the generated neon line stretched and rotated by kit.js */
.be-route { position: absolute; height: 18px; margin-top: -9px; transform-origin: 0 50%; pointer-events: none;
  background: url("map/route.webp") center / 100% 100% no-repeat; }
.be-route.is-next { opacity: .45; -webkit-mask: repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 18px); mask: repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 18px); }

.be-pin {
  --pin: 40px; --ring: #8A9097;
  position: absolute; left: var(--x); top: var(--y); width: var(--pin); height: var(--pin); margin: calc(var(--pin) / -2) 0 0 calc(var(--pin) / -2);
  padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-state) var(--ease-spring);
}
@media (min-width: 1024px) and (min-height: 600px) { .be-pin { --pin: 48px; left: var(--xd, var(--x)); top: var(--yd, var(--y)); } }
.be-pin::before { content: ""; position: absolute; inset: -5px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(36, 37, 42, .92), rgba(8, 8, 9, .96));
  box-shadow: 0 0 0 1.5px var(--ring), 0 6px 14px rgba(0, 0, 0, .75); }
.be-pin > img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .8)); }
.be-pin__num { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 9px); padding: 2px 5px 1px; border-radius: 2px; white-space: nowrap;
  font: 400 12px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--chrome-hi); background: rgba(11, 11, 12, .86); box-shadow: 0 0 0 1px rgba(230, 233, 236, .14); }
/* Anton has no Cyrillic: «БОСС» falls back to Sofia, upper case keeps the two faces the same height */
.be-pin__stars { display: block; margin-top: 2px; font: 400 9px/1 var(--font-display); letter-spacing: 1px; color: var(--gold-hi); }
.be-pin.is-done { --ring: var(--gold); }
.be-pin.is-done::before { box-shadow: 0 0 0 1.5px var(--gold-hi), 0 0 12px rgba(245, 210, 122, .45), 0 6px 14px rgba(0, 0, 0, .75); }
.be-pin.is-done .be-pin__num { color: var(--asphalt); background: linear-gradient(180deg, #F5D27A, #D4A63A); }
/* stars on the gold label: earned = solid asphalt, missing = faint. Gold stars on gold read inverted (QA 14.10). */
.be-pin.is-done .be-stars--xs { filter: none; }
.be-pin.is-done .be-stars--xs i { background: rgba(11, 11, 12, .28); }
.be-pin.is-done .be-stars--xs i.on { background: #0B0B0C; }
.be-pin.is-done .be-stars--xs i::before { display: none; }
.be-pin.is-today { --ring: var(--ember); z-index: 2; }
.be-pin.is-today::before { box-shadow: 0 0 0 2px var(--ember), 0 0 18px rgba(255, 90, 31, .75), 0 6px 14px rgba(0, 0, 0, .75); }
.be-pin__pulse { position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ember); opacity: 0; pointer-events: none; }
.be-pin.is-today .be-pin__pulse { animation: be-pulse 1.8s ease-out infinite; }
.be-pin.is-today .be-pin__pulse + .be-pin__pulse { animation-delay: .9s; }
@keyframes be-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.3); opacity: 0; } }
.be-pin__flag { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -10px); padding: 3px 8px 2px; white-space: nowrap; border-radius: 2px;
  font: italic 900 13px/1 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--asphalt); background: linear-gradient(180deg, #FFB070, #FF5A1F); box-shadow: 0 0 12px rgba(255, 90, 31, .6); }
.be-pin.is-next::before { box-shadow: 0 0 0 1.5px var(--chrome-hi), 0 6px 14px rgba(0, 0, 0, .75); }
.be-pin.is-next > img { filter: brightness(.75) drop-shadow(0 3px 3px rgba(0, 0, 0, .8)); }
.be-pin.is-locked { cursor: not-allowed; }
.be-pin.is-locked > img { filter: grayscale(1) brightness(.32); }
/* The lock is a direct child img too: `.be-pin > img` (full size, relative) and the locked darkening used to win over
   .be-pin__lock, so the lock sat under the pin as a big dark block over the day number (QA 14.10). Higher specificity,
   top-right corner, stays bright: a gold lock is the message. */
.be-pin > .be-pin__lock, .be-pin.is-locked > .be-pin__lock { position: absolute; right: -10px; top: -8px; width: 22px; height: 22px;
  object-fit: contain; filter: drop-shadow(0 2px 2px #000); }
.be-pin--boss { --pin: 56px; border-radius: 8px; }
@media (min-width: 1024px) and (min-height: 600px) { .be-pin--boss { --pin: 72px; } }
.be-pin--boss::before { inset: -4px; border-radius: 10px; background: linear-gradient(#0B0B0C, #0B0B0C) padding-box, linear-gradient(135deg, #F5D27A, #8C6A1E 45%, #C8102E 70%, #F5D27A) border-box;
  border: 2px solid transparent; box-shadow: var(--neon-red), 0 6px 14px rgba(0, 0, 0, .75); }
.be-pin--boss > img { border-radius: 6px; object-fit: cover; object-position: 50% 15%; }
.be-pin--boss .be-pin__num { color: #fff; background: linear-gradient(180deg, #C8102E, #7A0A1C); }
@media (hover: hover) and (pointer: fine) { .be-pin:not(.is-locked):hover { transform: scale(1.12); z-index: 3; } }
.be-pin:focus-visible { outline: none; }
.be-pin:focus-visible::before { box-shadow: 0 0 0 3px var(--gold-hi), 0 0 16px rgba(245, 210, 122, .6); }

/* ── 12. Skeleton loaders: wet-asphalt shimmer ───────────────────────────── */

.be-skel { position: relative; overflow: hidden; display: block; border-radius: 4px; background: var(--be-grain), linear-gradient(180deg, #19191D, #121215); }
.be-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 15%, rgba(230, 233, 236, .05) 35%, rgba(245, 210, 122, .11) 50%, rgba(230, 233, 236, .05) 65%, transparent 85%);
  animation: be-skel 1.5s ease-in-out infinite; }
@keyframes be-skel { to { transform: translateX(100%); } }
.be-skel--line { height: 12px; border-radius: 2px; }
.be-skel--title { height: 26px; width: 70%; }
.be-skel--plate { height: var(--plate-h); border-radius: 0; clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); }
.be-skel--circle { border-radius: 50%; aspect-ratio: 1; }
.be-skel--card { aspect-ratio: 16 / 9; border-radius: 10px; }

/* ── 13. Shard burst canvas (kit.js UI.burst) ────────────────────────────── */

.be-burst { position: fixed; inset: 0; z-index: 70; width: 100%; height: 100%; pointer-events: none; }

/* ── 14. Lite mode and reduced motion ────────────────────────────────────── */
/* Loops off, videos show their poster (kit.js does not load them), no shake / sweep / float / pop.
   Colours, check, cross and the stamp itself stay: the player must still see right and wrong. */
html[data-fx="lite"] .be-shine, html[data-fx="lite"] .be-plate__fire, html[data-fx="lite"] .be-plate-slot::before { display: none !important; }
html[data-fx="lite"] .be-blaze i::after, html[data-fx="lite"] .be-streak__flame img, html[data-fx="lite"] .be-streak__flame::before,
html[data-fx="lite"] .be-pin__pulse, html[data-fx="lite"] .be-rank__emblem img, html[data-fx="lite"] .be-rank__emblem::before,
html[data-fx="lite"] .be-badge__art::before, html[data-fx="lite"] .be-skel::after { animation: none !important; }
html[data-fx="lite"] :is(.be-plate.is-fresh, .be-badge.is-in .be-badge__art img, .be-mission-card.is-in, .be-mission-card.is-in .be-mission-card__body > *,
  .be-stamp.is-in, .be-passed.is-stamped .be-passed__stamp, .be-passed.is-stamped .be-passed__respect, .be-stars i.is-in,
  .be-passed.is-rows .be-passed__rows, .be-passed.is-rows .be-passed__next, .be-passed.is-rows .be-passed__actions) {
  animation: be-fade .12s linear both !important; }
html[data-fx="lite"] .be-badge__art::after, html[data-fx="lite"] .be-rank__emblem::after { animation: none !important; opacity: 0; }
html[data-fx="lite"] .be-plate-slot.is-fire .be-plate.is-right { filter: drop-shadow(0 0 1px rgba(245, 210, 122, .9)) drop-shadow(0 0 10px rgba(255, 90, 31, .5)); }
html[data-fx="lite"] [data-tilt] { transform: none !important; }
@keyframes be-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .be-shine::before, .be-blaze i::after, .be-streak__flame img, .be-pin__pulse, .be-rank__emblem img, .be-rank__emblem::before, .be-skel::after,
  .be-plate.is-fresh, .be-badge__art img, .be-badge__art::after, .be-mission-card, .be-mission-card__body > *, .be-stamp, .be-passed__stamp { animation: none !important; }
  /* the same without kit.js (it maps reduced motion to lite, CSS is the safety net): no endless glow, no flying in */
  .be-plate-slot::before, .be-badge__art::before, .be-streak__flame::before, .be-toasts .be-toast, .be-stars i.is-in,
  .be-passed__respect, .be-passed__rows, .be-passed__next, .be-passed__actions { animation: none !important; }
  .be-plate__fire { display: none !important; }
  [data-tilt] { transform: none !important; }
}
/* The on-state of a chip is information (which filter is active), not decoration: gold on every tier and in lite. */
html .be-chip.is-on::before { background: var(--gold-fill); -webkit-backdrop-filter: none; backdrop-filter: none; }
