:root {
  --ink: #141414; --white: #fff; --paper: #EFECE6; --line: #D6D2C9;
  --yellow: #FFC72C; --yellow-d: #F2B700; --red: #D21F26;
  --g1: #3A3A3A; --g2: #6A6A6A; --g3: #8C8C8C; --g4: #BDBDBD;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: Geologica, system-ui, sans-serif;
  --top: env(safe-area-inset-top, 0px); --bot: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--ink); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
code { font-family: var(--mono); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.screen { display: none; position: fixed; inset: 0; }
.s-start #start, .s-round #round, .s-result #result, .s-final #final { display: flex; }

.cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px; border: 0; border-radius: 6px; background: var(--yellow); color: var(--ink); font-size: 17px; font-weight: 600; text-decoration: none; }
.cta:hover:not(:disabled) { background: var(--yellow-d); }
.cta:disabled { background: #E4E2DD; color: var(--g2); }
.ghost { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; border: 0; border-radius: 6px; background: transparent; box-shadow: inset 0 0 0 2px var(--ink); font-size: 16px; font-weight: 600; text-decoration: none; color: var(--ink); }
.ghost.light { box-shadow: inset 0 0 0 2px var(--white); color: var(--white); }
.ghost:hover { background: rgba(20,20,20,.06); }
.link { border: 0; background: none; text-decoration: underline; font-size: 15px; padding: 8px; }
.icon { width: 44px; height: 44px; border: 0; border-radius: 6px; background: var(--white); color: var(--ink); font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.icon.dark { background: rgba(20,20,20,.72); color: var(--white); box-shadow: none; }
.fine { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.msg { margin: 0; font-size: 14px; color: var(--red); min-height: 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ── старт ── */
#start { flex-direction: column; background: var(--paper); overflow-y: auto; }
.hero { flex-shrink: 0; height: min(34vh, 300px); overflow: hidden; background: var(--paper); }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.start-body { display: flex; flex-direction: column; gap: 18px; padding: 22px 20px calc(22px + var(--bot)); max-width: 560px; width: 100%; margin: 0 auto; flex-grow: 1; }
.mark { margin: 0; font-size: 76px; font-weight: 900; letter-spacing: -.05em; line-height: .85; }
.mark .q { color: var(--red); }
.lead { margin: 0; font-size: 18px; font-weight: 300; line-height: 1.35; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 6px; background: var(--ink); border-radius: 3px; position: relative; }
.strip::before, .strip::after { content: ''; position: absolute; left: 6px; right: 6px; height: 4px; background: repeating-linear-gradient(90deg, var(--paper) 0 6px, transparent 6px 14px); opacity: .5; }
.strip::before { top: 2px; } .strip::after { bottom: 2px; }
.strip span { aspect-ratio: 4 / 3; margin: 4px 0; background: #2A2A2A; color: var(--g3); font-family: var(--mono); font-size: 10px; display: flex; flex-direction: column; justify-content: flex-end; padding: 5px; gap: 2px; }
.strip i { font-style: normal; color: var(--yellow); font-weight: 700; }
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rules li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; font-size: 15px; line-height: 1.4; }
.rules b { font-family: var(--mono); font-size: 13px; padding-top: 2px; }
.auth { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
#dev { display: flex; gap: 8px; }
#dev input { flex: 1; height: 54px; border: 2px solid var(--ink); border-radius: 6px; padding: 0 12px; font: inherit; }
#dev .cta { width: auto; padding: 0 18px; }
#widget { display: flex; justify-content: center; min-height: 48px; }

/* ── раунд ── */
#round { background: var(--ink); color: var(--white); }
.bar { position: absolute; left: 0; right: 0; top: 0; height: calc(52px + var(--top)); padding: var(--top) 16px 0; display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: var(--white); font-family: var(--mono); z-index: 5; }
.frame { font-size: 15px; } .frame b { font-weight: 700; } .frame em { font-style: normal; color: var(--g3); }
.sum { font-size: 13px; color: var(--g4); }
.timer { padding: 6px 10px; border-radius: 4px; background: var(--yellow); color: var(--ink); font-size: 15px; font-weight: 700; min-width: 54px; text-align: center; }
.timer.low { background: var(--red); color: var(--white); }
.progress { position: absolute; left: 0; right: 0; top: calc(52px + var(--top)); height: 3px; background: var(--g1); z-index: 5; }
.progress i { display: block; height: 3px; width: 100%; background: var(--yellow); transform-origin: left; }
.progress.low i { background: var(--red); }
.stage { position: absolute; left: 0; right: 0; top: calc(55px + var(--top)); bottom: calc(288px + var(--bot)); }
.media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #000; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
#zoom { position: absolute; right: 12px; top: 12px; }

.sheet { position: absolute; left: 0; right: 0; bottom: 0; height: calc(300px + var(--bot)); background: var(--white); color: var(--ink); border-radius: 12px 12px 0 0; display: flex; flex-direction: column; overflow: hidden; z-index: 4; transition: height .28s ease, border-radius .28s; }
.grip { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: #CFCFCF; margin: 8px 0 6px; flex-shrink: 0; }
.mapwrap { position: relative; flex: 1; min-height: 0; }
#map, #rmap { position: absolute; inset: 0; }
.open-map { position: absolute; inset: 0; border: 0; background: transparent; display: flex; align-items: flex-end; justify-content: flex-start; padding: 10px 12px; z-index: 2; }
.open-map span { padding: 6px 10px; border-radius: 4px; background: var(--ink); color: var(--white); font-size: 13px; }
.to-photo, .zoombtns, .pv, .pv-none { display: none; }
.panel { flex-shrink: 0; padding: 12px 16px calc(14px + var(--bot)); display: flex; flex-direction: column; gap: 10px; }
.coords, .hint { display: none; }
.coords { justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 600; }
.coords code { font-size: 13px; font-weight: 400; }
.hint { margin: 0; font-size: 14px; font-weight: 300; line-height: 1.4; }

/* видеоплеер */
.vp { position: absolute; inset: 0; background: #000; overflow: hidden; }
.vp video, .vp-poster, .vp-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.vp-bg { object-fit: cover; filter: blur(22px) brightness(.55); transform: scale(1.15); }
.vp-poster { transition: opacity .3s; }
.vp.ready .vp-poster { opacity: 0; pointer-events: none; }
.vp-big { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border: 0; border-radius: 50%; background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; transform: scale(.9); }
.vp-big svg { width: 34px; height: 34px; margin-left: 4px; }
.vp.is-paused:not(.is-loading) .vp-big { opacity: 1; pointer-events: auto; transform: none; }
.vp-spin { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 4px solid rgba(255,255,255,.25); border-top-color: var(--yellow); animation: spin .8s linear infinite; opacity: 0; pointer-events: none; }
.vp.is-loading .vp-spin { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.vp-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: var(--white); }
.vp-play, .vp-snd { flex-shrink: 0; height: 36px; min-width: 36px; padding: 0 8px; border: 0; border-radius: 6px; background: rgba(20,20,20,.7); color: var(--white); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; }
.vp-play svg, .vp-snd svg { width: 18px; height: 18px; }
.vp-snd.on { background: var(--yellow); color: var(--ink); }
.vp-mute { flex-shrink: 0; font-family: var(--mono); font-size: 11px; color: var(--g4); }
.vp-track { position: relative; flex: 1; height: 28px; cursor: pointer; touch-action: none; }
.vp-track::before, .vp-buf, .vp-pos { content: ''; position: absolute; left: 0; top: 12px; height: 4px; border-radius: 2px; }
.vp-track::before { right: 0; background: rgba(255,255,255,.28); }
.vp-buf { background: rgba(255,255,255,.45); width: 0; }
.vp-pos { background: var(--yellow); width: 0; }
.vp-knob { position: absolute; top: 7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(20,20,20,.5); left: 0; transition: transform .1s; }
.vp.scrub .vp-knob { transform: scale(1.35); }
.vp-time { flex-shrink: 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.full .vp video, .full .vp-poster { object-fit: contain; }
.cmp-a .vp-bar { padding-top: 16px; }
.cmp-a .vp-snd span, .cmp-a .vp-mute { display: none; }

/* карта раскрыта (телефон) */
.mapfull .sheet { height: calc(100% - 55px - var(--top)); border-radius: 0; }
.mapfull .grip, .mapfull .open-map { display: none; }
.mapfull .to-photo { display: flex; }
.mapfull .zoombtns { display: flex; }
.mapfull .coords { display: flex; }
.mapfull .hint { display: block; }
.mapfull .pv:not([hidden]), .mapfull .pv-none:not([hidden]) { display: flex; }

.to-photo { position: absolute; left: 12px; top: 12px; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 0; border-radius: 6px; background: var(--ink); color: var(--white); font-size: 13px; z-index: 2; }
.to-photo .thumb { width: 56px; height: 40px; border-radius: 3px; overflow: hidden; background: #333 center / cover; }
.zoombtns { position: absolute; right: 12px; top: 12px; flex-direction: column; gap: 6px; z-index: 2; }
.pv { position: absolute; left: 12px; bottom: 12px; width: 180px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--white); color: var(--ink); text-align: left; box-shadow: 0 4px 14px rgba(0,0,0,.35); flex-direction: column; z-index: 2; }
.pv:hover { box-shadow: 0 0 0 3px var(--yellow), 0 4px 14px rgba(0,0,0,.35); }
.pv-img { position: relative; display: block; height: 100px; overflow: hidden; background: #ddd; }
.pv-img iframe { position: absolute; left: 0; top: 0; width: 360px; height: 200px; border: 0; transform: scale(.5); transform-origin: 0 0; pointer-events: none; }
.tag360 { position: absolute; left: 6px; top: 6px; display: flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 4px; background: var(--ink); color: var(--white); font-family: var(--mono); font-size: 11px; }
.tag360 svg { width: 12px; height: 12px; stroke-width: 2.4; }
.pv-txt { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px 8px; }
.pv-txt b { font-size: 13px; font-weight: 600; }
.pv-txt small { font-family: var(--mono); font-size: 10px; color: var(--g2); }
.pv-none { position: absolute; left: 12px; bottom: 12px; max-width: 220px; padding: 8px 10px; border-radius: 6px; background: var(--ink); color: var(--white); font-size: 13px; line-height: 1.35; z-index: 2; }

/* маркеры */
.pin-guess { width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); border: 4px solid var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.4); cursor: grab; }
.pin-real { width: 30px; height: 40px; }
.pin-real svg { width: 30px; height: 40px; stroke: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.dist-chip { padding: 5px 9px; border-radius: 4px; background: var(--ink); color: var(--white); font-family: var(--mono); font-size: 14px; font-weight: 700; white-space: nowrap; pointer-events: none; }

/* ── оверлеи ── */
.overlay { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: var(--ink); color: var(--white); }
.overlay .bar, .overlay .progress { position: relative; top: 0; flex-shrink: 0; }
.overlay .progress { top: 0; }
.full .media { position: absolute; inset: 0; }
.full .media img, .full .media video { object-fit: contain; }
.full .close { position: absolute; right: 12px; top: calc(12px + var(--top)); }

.cmp { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cmp-a, .cmp-b { position: relative; overflow: hidden; }
.cmp-a { height: 34%; border-bottom: 4px solid var(--yellow); }
.cmp-b { flex: 1; }
.cmp.swapped { flex-direction: column-reverse; }
.cmp.swapped .cmp-a { flex: 1; height: auto; border-bottom: 0; border-top: 4px solid var(--yellow); }
.cmp.swapped .cmp-b { flex: none; height: 34%; }
.cmp-b iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lbl { position: absolute; left: 10px; top: 10px; padding: 4px 8px; border-radius: 4px; background: var(--ink); font-family: var(--mono); font-size: 11px; z-index: 1; pointer-events: none; }
.cmp-b .lbl { top: auto; bottom: 10px; }
.cmp-tip { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); padding: 6px 12px; border-radius: 16px; background: rgba(20,20,20,.75); font-size: 13px; white-space: nowrap; pointer-events: none; animation: fade 1s 4s forwards; }
@keyframes fade { to { opacity: 0; } }
#swap { position: absolute; right: 10px; top: calc(34% - 22px); z-index: 2; }
.cmp.swapped #swap { top: auto; bottom: calc(34% - 22px); }
.cmp-act { display: flex; gap: 10px; padding: 12px 16px calc(14px + var(--bot)); flex-shrink: 0; }
.cmp-act .ghost { flex: 1; height: 54px; }
.cmp-act .cta { flex: 1.4; }

/* ── итог раунда ── */
#result { flex-direction: column; background: var(--white); }
#result .bar { position: relative; flex-shrink: 0; }
.res-map { position: relative; height: 42%; flex-shrink: 0; }
.res-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 0; overflow-y: auto; }
.res-pts { display: flex; align-items: baseline; gap: 8px; }
.res-pts b { font-size: 84px; font-weight: 900; line-height: .85; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.res-pts span { font-family: var(--mono); font-size: 14px; color: var(--g2); }
.meter { height: 6px; background: var(--paper); margin-top: 8px; }
.meter i { display: block; height: 6px; width: 0; background: var(--yellow); transition: width .8s ease; }
.res-dist { margin: 4px 0 8px; font-family: var(--mono); font-size: 13px; color: var(--g2); }
.res-title { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 600; }
.res-title i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.res-date { font-size: 13px; color: var(--g2); }
.res-note { margin: 6px 0 0; font-size: 15px; font-weight: 300; line-height: 1.45; }
.foot { margin-top: auto; padding: 14px 20px calc(18px + var(--bot)); display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

/* ── финиш ── */
#final { flex-direction: column; background: var(--paper); overflow-y: auto; }
.fin-top { background: var(--ink); color: var(--white); padding: calc(24px + var(--top)) 20px 20px; display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.fin-k { font-size: 13px; color: var(--g4); }
.fin-total { display: flex; align-items: baseline; gap: 8px; }
.fin-total b { font-size: 76px; font-weight: 900; line-height: .9; letter-spacing: -.04em; }
.fin-total span { font-family: var(--mono); font-size: 13px; color: var(--g3); }
.fin-rank { margin: 0; font-size: 16px; font-weight: 300; }
.fin-rank b { color: var(--yellow); font-weight: 600; }
.fin-bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; margin-top: 10px; }
.fin-bars span { flex: 1; background: var(--g2); min-height: 3px; }
.fin-bars span.hi { background: var(--yellow); }
.board { padding: 18px 20px 0; }
.board h2 { margin: 0 0 8px; font-family: var(--mono); font-size: 12px; font-weight: 400; }
.board ol { margin: 0; padding: 0; list-style: none; }
.board li { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 12px; align-items: baseline; padding: 11px 8px; border-bottom: 1px solid var(--line); }
.board li.me { background: var(--yellow); font-weight: 600; }
.board .pl { font-family: var(--mono); font-size: 13px; }
.board .nm { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .tm { font-family: var(--mono); font-size: 12px; color: var(--g2); }
.board .sc { font-family: var(--mono); font-size: 15px; font-weight: 700; }
.board .empty { display: block; color: var(--g2); font-size: 15px; }
#board-more { margin-top: 10px; color: var(--g2); }

/* ── поделиться ── */
.overlay.paper { background: var(--paper); color: var(--ink); align-items: center; padding: calc(20px + var(--top)) 20px calc(18px + var(--bot)); gap: 16px; overflow-y: auto; }
#share-img { width: min(300px, 74vw); aspect-ratio: 9 / 16; box-shadow: 0 10px 30px rgba(20,20,20,.25); display: block; background: var(--ink); }
.share-txt { margin: 0; max-width: 340px; text-align: center; font-size: 14px; font-weight: 300; line-height: 1.4; }
.share-act { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 420px; margin-top: auto; align-items: center; }

.toast { position: fixed; left: 50%; bottom: calc(90px + var(--bot)); transform: translateX(-50%); z-index: 50; max-width: calc(100% - 32px); padding: 10px 14px; border-radius: 6px; background: var(--ink); color: var(--white); font-size: 14px; box-shadow: 0 0 0 2px var(--yellow); }

/* MapLibre: тише атрибуция */
.maplibregl-ctrl-attrib { font-size: 10px; }
.maplibregl-ctrl-bottom-right { z-index: 1; }

/* ── компьютер ── */
@media (min-width: 900px) and (hover: hover) {
  .stage { bottom: 0; }
  .stage .media img, .stage .media video, .stage .vp-poster { object-fit: contain; }
  .stage .vp-bar { right: 480px; }
  .sheet { left: auto; right: 20px; bottom: 20px; width: 440px; height: 380px; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.45); transition: width .2s ease, height .2s ease; }
  .sheet:hover, .sheet.hold { width: min(62vw, 980px); height: min(72vh, 760px); }
  .grip, .open-map, .to-photo { display: none !important; }
  .zoombtns { display: flex; }
  .pv:not([hidden]), .pv-none:not([hidden]) { display: flex; }
  .coords { display: flex; }
  .panel { flex-direction: row; align-items: center; gap: 14px; padding: 10px 12px; }
  .panel .coords { flex-direction: column; gap: 2px; font-size: 13px; }
  .panel .cta { width: auto; flex: 1; height: 48px; }
  .cmp { flex-direction: row; }
  .cmp-a { height: auto; flex: 1; border-bottom: 0; border-right: 4px solid var(--yellow); }
  .cmp-b { flex: 1.3; }
  .cmp.swapped { flex-direction: row-reverse; }
  .cmp.swapped .cmp-a { border-top: 0; border-right: 0; border-left: 4px solid var(--yellow); }
  .cmp.swapped .cmp-b { height: auto; flex: 1.3; }
  .cmp-a .media img, .cmp-a .media video { object-fit: contain; }
  #swap, .cmp.swapped #swap { top: 10px; bottom: auto; right: auto; left: calc(43% - 22px); }
  .cmp-act { justify-content: flex-end; }
  .cmp-act .ghost, .cmp-act .cta { flex: none; width: 240px; }
  #result { flex-direction: row; flex-wrap: wrap; }
  #result .bar { width: 100%; }
  .res-map { height: calc(100% - 52px); width: 62%; }
  #result .res-body, #result .foot { width: 38%; }
  #result .res-body { position: absolute; right: 0; top: 52px; bottom: 100px; padding: 32px; }
  #result .foot { position: absolute; right: 0; bottom: 0; padding: 20px 32px 28px; }
  #final .fin-top, #final .board, #final .foot { width: 100%; max-width: 640px; margin-left: auto; margin-right: auto; }
  #final .fin-top { border-radius: 0 0 8px 8px; }
}

/* ── движение ── */
.screen { animation: screen-in .28s ease both; }
@keyframes screen-in { from { opacity: 0; } }
.cta, .ghost, .icon, .pv { transition: transform .12s ease, background-color .15s, box-shadow .15s; }
.cta:active:not(:disabled), .ghost:active, .icon:active, .pv:active { transform: scale(.97); }
.cta:not(:disabled) { animation: cta-on .25s ease; }
@keyframes cta-on { from { transform: scale(.98); } }
.timer.low { animation: tick 1s ease-in-out infinite; }
@keyframes tick { 50% { transform: scale(1.08); } }
.sum.bump { animation: bump .45s ease; color: var(--yellow); }
@keyframes bump { 40% { transform: scale(1.25); } }
/* маркеры: анимируем scale/translate отдельно — transform занят позиционированием MapLibre */
.pin-guess.bounce { animation: pin-in .38s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pin-in { from { scale: .2; } }
.pin-real.drop svg { animation: drop .55s cubic-bezier(.3, 1.5, .6, 1) both; transform-origin: 50% 100%; }
@keyframes drop { 0% { transform: translateY(-60px) scaleY(1.1); opacity: 0; } 60% { transform: translateY(0) scaleY(.85); opacity: 1; } 100% { transform: none; } }
.pin-real.drop::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 16px; height: 6px; margin-left: -8px; border-radius: 50%; border: 2px solid var(--red); animation: ring .9s .35s ease-out both; }
@keyframes ring { from { scale: .3; opacity: 1; } to { scale: 4; opacity: 0; } }
.pin-real { position: relative; }
.dist-chip.pop { animation: pop .35s .15s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pop { from { scale: .3; opacity: 0; } }
/* итог раунда: текст выезжает лесенкой после раскрытия */
#result .res-body > *, #result .foot { opacity: 0; translate: 0 14px; transition: opacity .35s ease, translate .35s ease; }
#result.in .res-body > *, #result.in .foot { opacity: 1; translate: 0 0; }
#result.in .res-body > :nth-child(2) { transition-delay: .05s; }
#result.in .res-body > :nth-child(3) { transition-delay: .25s; }
#result.in .res-body > :nth-child(4) { transition-delay: .35s; }
#result.in .res-body > :nth-child(5) { transition-delay: .42s; }
#result.in .res-body > :nth-child(6) { transition-delay: .5s; }
#result.in .foot { transition-delay: .6s; }
.res-pts { flex-wrap: wrap; }
.res-badge { margin-left: auto; align-self: center; padding: 5px 10px; border-radius: 4px; background: var(--paper); font-style: normal; font-size: 14px; font-weight: 600; }
.res-badge.hot { background: var(--yellow); }
#result.in .res-badge { animation: pop .4s .9s cubic-bezier(.3, 1.6, .5, 1) both; }
/* финиш */
.fin-bars span { animation: bar-up .5s cubic-bezier(.3, 1.3, .5, 1) both; transform-origin: bottom; }
@keyframes bar-up { from { transform: scaleY(0); } }
.board li { animation: row-in .35s ease both; }
@keyframes row-in { from { opacity: 0; translate: 0 10px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
