/* Пульт «Искры» на телефоне. Пользуются в том числе старшие: крупный текст, большие кнопки, понятные подписи.
   Плавность: двигаются только transform и opacity, тяжёлое размытие — лишь на узких панелях. */
:root {
  --bg: #f4f4f7;
  --bg-elev: #ffffff;
  --bg-elev-2: #ebebf0;
  --fg: #111114;
  --fg-2: #4d4d58;
  --fg-3: #84848f;
  --line: rgba(0, 0, 0, .09);
  --chip: rgba(0, 0, 0, .06);
  --chip-on-bg: #111114;
  --chip-on-fg: #ffffff;
  --accent: #111114;
  --accent-fg: #ffffff;
  --link: #007aff;
  --ok: #1a8f4c;
  --warn: #b25e00;
  --warn-bg: #fff3e0;
  --danger: #d0281c;
  --bar: rgba(246, 246, 249, .92);
  --scrim: rgba(0, 0, 0, .38);
  --shadow: 0 10px 30px rgba(0, 0, 0, .14);
  --sk: rgba(0, 0, 0, .07);
  --img-bg: #dcdce3;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --tabs-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b10;
    --bg-elev: #17171f;
    --bg-elev-2: #22222c;
    --fg: #f5f5f7;
    --fg-2: #b9b9c4;
    --fg-3: #85858f;
    --line: rgba(255, 255, 255, .09);
    --chip: rgba(255, 255, 255, .09);
    --chip-on-bg: #f5f5f7;
    --chip-on-fg: #111114;
    --accent: #f5f5f7;
    --accent-fg: #0b0b10;
    --link: #0a84ff;
    --ok: #30d158;
    --warn: #ffb340;
    --warn-bg: rgba(255, 179, 64, .12);
    --danger: #ff5a4f;
    --bar: rgba(13, 13, 18, .9);
    --scrim: rgba(0, 0, 0, .55);
    --shadow: 0 10px 30px rgba(0, 0, 0, .55);
    --sk: rgba(255, 255, 255, .07);
    --img-bg: #1e1e27;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); }
body {
  font: 17px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overscroll-behavior: none;
  -webkit-user-select: none; user-select: none; overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  touch-action: manipulation; -webkit-touch-callout: none; }
input { font: inherit; color: inherit; -webkit-user-select: text; user-select: text; }
img { display: block; }
svg { display: block; }
[hidden] { display: none !important; }

/* --- раскладка: вкладки, у каждой стопка страниц */
#app { position: fixed; inset: 0; overflow: hidden; }
#views { position: absolute; inset: 0; }
.view { position: absolute; inset: 0; display: none; }
.view.on { display: block; }
.page {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; background: var(--bg);
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding-bottom: calc(var(--tabs-h) + var(--safe-b) + 24px);
  transition: transform .36s var(--ease);
}
.view.has-mini .page { padding-bottom: calc(var(--tabs-h) + var(--safe-b) + 96px); }
.page.enter { transform: translate3d(100%, 0, 0); }
.page.under { transform: translate3d(-22%, 0, 0); pointer-events: none; }
.page.under::after { content: ''; position: fixed; inset: 0; background: var(--scrim); opacity: .5; }
.view.fade { animation: fade .18s ease; }
@keyframes fade { from { opacity: .4; } to { opacity: 1; } }

/* --- шапка страницы */
.hdr {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px;
  min-height: calc(56px + var(--safe-t)); padding: var(--safe-t) 12px 0 16px;
  background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
}
.hdr.plain { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hdr h1 { flex: 1; margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr .small { font-size: 19px; font-weight: 700; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; flex: none; color: var(--fg); }
.icon-btn:active { background: var(--chip); }
.icon-btn svg { width: 26px; height: 26px; }
.back { margin-left: -8px; }
.status-dot { width: 10px; height: 10px; border-radius: 5px; background: var(--fg-3); flex: none; }
.status-dot.on { background: var(--ok); }

/* --- нижние вкладки */
#tabs {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabs-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--bar); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--fg-3);
  font-size: 12.5px; font-weight: 600; letter-spacing: .1px; }
.tab svg { width: 28px; height: 28px; }
.tab.on { color: var(--fg); }
.tab:active svg { transform: scale(.9); }
.tab svg { transition: transform .12s ease; }

/* --- мини-плеер над вкладками */
#mini {
  position: absolute; left: 10px; right: 10px; bottom: calc(var(--tabs-h) + var(--safe-b) + 8px); z-index: 19;
  display: flex; align-items: center; gap: 12px; height: 68px; padding: 8px 8px 8px 8px; border-radius: 18px;
  background: var(--bg-elev); box-shadow: var(--shadow); border: 1px solid var(--line);
  transform: translate3d(0, 0, 0); transition: transform .3s var(--ease), opacity .2s;
}
#mini.hide { transform: translate3d(0, 130%, 0); opacity: 0; pointer-events: none; }
#mini .thumb { width: 84px; height: 50px; border-radius: 10px; object-fit: cover; background: var(--img-bg); flex: none; }
#mini .txt { flex: 1; min-width: 0; }
#mini .t { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mini .s { font-size: 14px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mini .bar { position: absolute; left: 16px; right: 16px; bottom: 3px; height: 3px; border-radius: 2px; background: var(--chip); overflow: hidden; }
#mini .bar i { display: block; height: 100%; width: 0; background: var(--link); border-radius: 2px; }
.round-btn { width: 52px; height: 52px; border-radius: 26px; display: grid; place-items: center; flex: none;
  background: var(--chip); color: var(--fg); transition: transform .12s ease; }
.round-btn:active { transform: scale(.92); }
.round-btn svg { width: 26px; height: 26px; }
.round-btn.accent { background: var(--accent); color: var(--accent-fg); }

/* --- общие блоки */
.sec-title { margin: 22px 16px 10px; font-size: 21px; font-weight: 800; letter-spacing: -.2px; }
.muted { color: var(--fg-2); }
.small-text { font-size: 15px; color: var(--fg-3); }
.pad { padding: 0 16px; }
.banner { margin: 12px 16px; padding: 14px 16px; border-radius: 16px; background: var(--warn-bg); color: var(--fg); font-size: 16px; }
.banner b { display: block; margin-bottom: 4px; color: var(--warn); }
.banner .btn { margin-top: 12px; }
.empty { padding: 48px 28px; text-align: center; color: var(--fg-2); }
.empty .big { font-size: 22px; font-weight: 800; color: var(--fg); margin-bottom: 8px; }
.empty svg { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--fg-3); }

.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 20px;
  border-radius: 16px; background: var(--chip); color: var(--fg); font-size: 17px; font-weight: 700; transition: transform .12s ease, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.primary { background: var(--accent); color: var(--accent-fg); }
.btn.danger { color: var(--danger); }
.btn.busy { opacity: .6; pointer-events: none; }
.btn span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-row .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 16px; }
.btn[disabled] { opacity: .45; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* капсулы: разделы, сезоны, площадки поиска */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 40px; padding: 0 18px; border-radius: 20px; background: var(--chip); font-size: 16px; font-weight: 600;
  white-space: nowrap; scroll-snap-align: start; transition: background .15s, color .15s, transform .12s; }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--chip-on-bg); color: var(--chip-on-fg); }

/* ряды карточек: прокрутка вбок с прилипанием */
.row { margin-bottom: 6px; }
.scroller { display: grid; grid-auto-flow: column; gap: 12px; overflow-x: auto; padding: 2px 16px 8px; scrollbar-width: none;
  scroll-snap-type: x mandatory; scroll-padding: 0 16px; overscroll-behavior-x: contain; }
.scroller::-webkit-scrollbar { display: none; }
.card { width: 132px; scroll-snap-align: start; text-align: left; transition: transform .12s ease; }
.card:active { transform: scale(.96); }
.card .pic { position: relative; width: 100%; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--img-bg); }
.card.wide { width: 248px; }
.card.wide .pic { aspect-ratio: 16 / 9; }
.card.avatar { width: 96px; text-align: center; }
.card.avatar .pic { aspect-ratio: 1; border-radius: 50%; }
.pic img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.pic img.ok { opacity: 1; }
.pic .noimg { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; text-align: center;
  font-size: 13px; color: var(--fg-3); }
.card .t { margin-top: 7px; font-size: 15px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.card.novideo .pic img, .li.novideo .thumb img { opacity: .35; }
.card.leaving, .li.leaving { opacity: 0; transform: scale(.9); transition: opacity .25s, transform .25s; }
.card .s { margin-top: 2px; font-size: 13.5px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .35); }
.prog i { display: block; height: 100%; background: var(--link); }
.badge { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 700;
  background: rgba(0, 0, 0, .7); color: #fff; }
.badge.score { color: #4cd964; }
.badge.score.mid { color: #e4e4ea; }
.badge.score.bad { color: #ff6b5e; }
.badge.dur { left: auto; right: 6px; top: auto; bottom: 6px; }
.badge.live { background: #ff3b30; }
.check { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0, 0, 0, .65); color: #fff; }
.check svg { width: 15px; height: 15px; }

/* заготовки, пока грузится */
.sk { background: var(--sk); border-radius: 12px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
.sk-line { height: 14px; margin: 8px 0; }

/* списки: история, результаты поиска, серии */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 14px; padding: 10px 16px; min-height: 76px; text-align: left; width: 100%; }
.li:active { background: var(--chip); }
.li .thumb { position: relative; width: 116px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--img-bg); flex: none; }
.li .thumb.poster { width: 60px; aspect-ratio: 2 / 3; }
.li .thumb img { width: 100%; height: 100%; object-fit: cover; }
.li .body { flex: 1; min-width: 0; }
.li .t { font-size: 17px; font-weight: 650; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.li .s { margin-top: 3px; font-size: 14.5px; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.li .end { flex: none; color: var(--fg-3); }
.li .end svg { width: 22px; height: 22px; }
.li.current .t { color: var(--link); }
.li.watched .thumb img { opacity: .55; }
.ep-num { font-weight: 800; color: var(--fg-2); margin-right: 4px; }

/* поле поиска */
.search-box { position: relative; margin: 6px 16px 10px; }
.search-box input { width: 100%; height: 52px; padding: 0 48px 0 48px; border-radius: 16px; border: 0; outline: none;
  background: var(--chip); font-size: 18px; }
.search-box input::placeholder { color: var(--fg-3); }
.search-box .ico { position: absolute; left: 14px; top: 14px; width: 24px; height: 24px; color: var(--fg-3); }
.search-box .clear { position: absolute; right: 6px; top: 4px; }

/* карточка тайтла */
.hero { position: relative; margin: 0 0 4px; aspect-ratio: 16 / 10; max-height: 52vh; width: 100%; overflow: hidden; background: var(--img-bg); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, var(--bg) 100%); }
.hero.poster img { object-position: center 20%; }
.page.title-page .hdr { position: absolute; left: 0; right: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }
.page.title-page .hdr .icon-btn { color: #fff; background: rgba(0, 0, 0, .35); }
.t-head { padding: 0 16px; margin-top: -40px; position: relative; z-index: 1; }
.t-head h2 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 850; letter-spacing: -.4px; }
.t-head .alt { margin-top: 4px; font-size: 15px; color: var(--fg-3); }
.t-head .meta { margin-top: 8px; font-size: 15px; color: var(--fg-2); }
.t-head .meta .sc { font-weight: 800; color: var(--ok); }
.t-actions { padding: 16px 16px 4px; display: flex; flex-direction: column; gap: 10px; }
.desc { margin: 12px 16px 0; font-size: 16px; line-height: 1.5; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden; }
.desc.full { -webkit-line-clamp: unset; display: block; }
.more-link { margin: 4px 16px 0; color: var(--link); font-size: 16px; font-weight: 600; }

/* пульт */
.remote { padding: 8px 20px 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.dpad { position: relative; width: min(78vw, 300px); aspect-ratio: 1; border-radius: 50%; background: var(--bg-elev);
  box-shadow: inset 0 0 0 1px var(--line); display: grid; grid-template-columns: 1fr 1.1fr 1fr; grid-template-rows: 1fr 1.1fr 1fr; }
.dpad button { display: grid; place-items: center; color: var(--fg-2); border-radius: 22px; transition: background .1s, transform .1s; }
.dpad button svg { width: 34px; height: 34px; }
.dpad button:active, .dpad button.pressed { background: var(--chip); color: var(--fg); }
.dpad .ok { grid-area: 2 / 2; border-radius: 50%; margin: 6px; background: var(--chip); color: var(--fg); font-size: 20px; font-weight: 800; }
.dpad .ok:active, .dpad .ok.pressed { background: var(--accent); color: var(--accent-fg); transform: scale(.96); }
.dpad .up { grid-area: 1 / 2; } .dpad .left { grid-area: 2 / 1; } .dpad .right { grid-area: 2 / 3; } .dpad .down { grid-area: 3 / 2; }
.keys { width: 100%; max-width: 380px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.key { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 72px; border-radius: 18px;
  background: var(--bg-elev); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; color: var(--fg-2);
  transition: transform .1s, background .1s; }
.key svg { width: 28px; height: 28px; color: var(--fg); }
.key:active, .key.pressed { transform: scale(.95); background: var(--chip); }
.vol { width: 100%; max-width: 380px; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 22px;
  background: var(--bg-elev); box-shadow: inset 0 0 0 1px var(--line); }
.vol .round-btn { width: 60px; height: 60px; border-radius: 18px; }
.vol .val { flex: 1; text-align: center; }
.vol .val b { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vol .val span { font-size: 14px; color: var(--fg-3); }
.text-send { width: 100%; max-width: 380px; display: flex; gap: 10px; }
.text-send input { flex: 1; min-width: 0; height: 54px; padding: 0 16px; border-radius: 16px; border: 0; outline: none; background: var(--chip); font-size: 17px; }
.text-send .btn { width: auto; }
.hint { font-size: 14px; color: var(--fg-3); text-align: center; max-width: 360px; margin: -10px auto 0; }

/* «Сейчас играет» */
.np { padding: 0 20px calc(24px + var(--safe-b)); }
.np .art { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--img-bg); margin-top: 6px; }
.np .art img { width: 100%; height: 100%; object-fit: cover; }
.np .art .state { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; font-weight: 700; }
.np h2 { margin: 18px 0 2px; font-size: 24px; line-height: 1.2; font-weight: 850; }
.np .sub { font-size: 16px; color: var(--fg-2); }
.seek { position: relative; margin: 22px 0 6px; height: 34px; touch-action: none; }
.seek .track { position: absolute; left: 0; right: 0; top: 15px; height: 6px; border-radius: 3px; background: var(--chip); }
.seek .fill { position: absolute; left: 0; top: 15px; height: 6px; border-radius: 3px; background: var(--fg); width: 0; }
.seek .thumb { position: absolute; top: 5px; width: 26px; height: 26px; margin-left: -13px; border-radius: 13px; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.35); left: 0; transition: transform .12s; }
.seek.drag .thumb { transform: scale(1.2); }
.seek .bubble { position: absolute; top: -28px; transform: translateX(-50%); padding: 3px 9px; border-radius: 8px; background: var(--fg);
  color: var(--bg); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .15s; }
.seek.drag .bubble { opacity: 1; }
.times { display: flex; justify-content: space-between; font-size: 14px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.transport { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 8px; }
.transport .round-btn { width: 58px; height: 58px; border-radius: 29px; background: transparent; }
.transport .round-btn:active { background: var(--chip); }
.transport .round-btn svg { width: 32px; height: 32px; }
.transport .play { width: 84px; height: 84px; border-radius: 42px; background: var(--fg); color: var(--bg); }
.transport .play:active { background: var(--fg); }
.transport .play svg { width: 40px; height: 40px; }
.transport .round-btn[disabled] { opacity: .3; }
.np .btn { margin-top: 10px; }

/* листы снизу */
.scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); opacity: 0; transition: opacity .3s ease; }
.scrim.on { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 24px 24px 0 0; padding-bottom: calc(16px + var(--safe-b));
  transform: translate3d(0, 100%, 0); transition: transform .38s var(--ease); box-shadow: 0 -10px 40px rgba(0,0,0,.25); }
.sheet.on { transform: translate3d(0, 0, 0); }
.sheet.full { top: calc(var(--safe-t) + 10px); max-height: none; }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--fg-3); opacity: .5; margin: 8px auto 4px; }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 20px; }
.sheet-head h3 { flex: 1; margin: 0; font-size: 20px; font-weight: 800; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 0 20px; text-align: left; font-size: 17px; }
.opt:active { background: var(--chip); }
.opt svg { width: 24px; height: 24px; flex: none; color: var(--fg-2); }
.opt .on-mark { margin-left: auto; color: var(--link); }
.opt.danger { color: var(--danger); }
.opt.danger svg { color: var(--danger); }
.toggle { position: relative; width: 52px; height: 32px; border-radius: 16px; background: var(--chip); flex: none; margin-left: auto; transition: background .2s; }
.toggle::after { content: ''; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 13px; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.toggle.on { background: var(--ok); }
.toggle.on::after { transform: translateX(20px); }

/* тосты */
#toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--safe-b) + 92px); z-index: 60; transform: translate3d(-50%, 20px, 0);
  max-width: calc(100vw - 40px); padding: 12px 20px; border-radius: 22px; background: var(--fg); color: var(--bg); font-size: 16px;
  font-weight: 600; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
#toast.on { opacity: 1; transform: translate3d(-50%, 0, 0); }

/* экран подключения */
.gate { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 32px; text-align: center; background: var(--bg); }
.gate .logo { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow); }
.gate h1 { margin: 6px 0 0; font-size: 26px; font-weight: 850; }
.gate p { margin: 0; font-size: 17px; color: var(--fg-2); max-width: 340px; }
.gate .btn { max-width: 320px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3.5px solid var(--chip); border-top-color: var(--fg); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn .spinner { width: 22px; height: 22px; border-width: 3px; border-color: rgba(128,128,128,.35); border-top-color: currentColor; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (min-width: 700px) {
  .page > *, .np { max-width: 680px; margin-left: auto; margin-right: auto; }
  .page > .hdr { max-width: none; }
}
