/* L2OKO - site styles, design «Снежная ночь» (design/DESIGN_SYSTEM.md, tokens in css/tokens.css, loaded first).
   Sections: legacy aliases, base, page shell (scene cap, snow), header, buttons, panels, hero, board, top windows,
   today, rows, finder, ads, tiles, side boxes, seo, facts + footer, shared page parts, forms, tables, feedback,
   motion, responsive, captcha and consent. */

/* ---------- legacy aliases: page css files written for the old theme use these names ---------- */
:root {
  --bg: var(--night-1);
  --shell: transparent;
  --panel-2: #13233a;
  --row-hi: var(--row-hover);
  --muted: var(--text-2);
  --dim: var(--text-3);
  --fire-1: var(--fire);
  --fire-2: #f08a2c;
  --fire-3: var(--fire-fill);
  --gold-2: #c99a3a;
  --bronze: #b8913f;
  --green-1: var(--green-fill);
  --green-2: var(--green);
  --rail-w: var(--rail);
  --shell-w: var(--wrap);
  --stone: none;
  --c-tl: none; --c-tr: none; --c-bl: none; --c-br: none;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--night-1); }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font: 400 var(--fs-body)/var(--lh-body) var(--f-text);
  overflow-x: clip;
  background: linear-gradient(180deg, var(--night-0) 0, var(--night-1) 640px, var(--night-2) 55%, var(--night-3) 100%) var(--night-1);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--fire-edge); outline-offset: 2px; }
.main:focus { outline: none; }
::selection { background: rgba(255, 140, 50, .4); color: #fff; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-2); background: var(--fire-fill); color: #fff; font: 500 14px var(--f-ui); text-transform: uppercase; }
.skip:focus { top: 12px; }

/* ---------- page shell ---------- */
/* Paid «wallpaper» placement only: a fixed picture under the night gradient, its side fields are links. */
.wall { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.wall img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .55; }
.wall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 10, 22, 0) 0, rgba(5, 10, 22, .9) calc(50% - var(--wrap) / 2), rgba(5, 10, 22, .9) calc(50% + var(--wrap) / 2), rgba(5, 10, 22, 0) 100%); }
.wall-link { position: fixed; top: 0; bottom: 0; z-index: 3; width: calc((100vw - var(--wrap)) / 2); }
.wall-link-l { left: 0; }
.wall-link-r { right: 0; }
.shell { position: relative; z-index: 2; isolation: isolate; display: flex; flex-direction: column; min-height: 100vh; }
.main { position: relative; z-index: 1; display: block; flex: 1 0 auto; padding-top: calc(var(--hdr-h) + 14px); padding-bottom: 40px; }
.main > :not(.hero) { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.main > .hero-h1-m { display: none; }
.page-home .main { padding-top: 0; }
.hero { z-index: 1; }
.main > :not(.hero) { position: relative; z-index: 2; }   /* panels paint over the hero picture that runs on under them */
.chrome-bare .main { padding-top: 0; }
/* Inner pages: a landscape band under the header (hero-landscape, or ads-cover, or the server banner). */
.scene-cap { position: absolute; z-index: 0; inset: 0 0 auto 0; height: 440px; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 45%, transparent 100%); }
.scene-cap img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.scene-cap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 10, 22, .82) 0, rgba(5, 10, 22, .45) 45%, rgba(5, 10, 22, .15) 100%), linear-gradient(180deg, rgba(5, 10, 22, .55) 0, rgba(5, 10, 22, 0) 30%); }
.cap-ads img { object-position: 70% 40%; }
.cap-server img { object-position: 62% 22%; }
.page-error .scene-cap { height: 100vh; max-height: 760px; }
/* Snow at the bottom of every site page: the picture reaches 220px up under the last panels. */
.snowfoot { position: relative; z-index: 0; margin-top: auto; padding: 120px 0 0; }
.snow-img { position: absolute; z-index: -1; inset: -220px 0 0 0; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 260px); mask-image: linear-gradient(180deg, transparent 0, #000 260px); }
.snow-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.snowfoot > :not(.snow-img) { position: relative; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- header ---------- */
.hdr {
  position: absolute; z-index: 20; inset: 0 0 auto 0; height: var(--hdr-h);
  display: flex; align-items: center; gap: 18px;
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  background: linear-gradient(180deg, rgba(3, 7, 15, .78) 0, rgba(3, 7, 15, .35) 70%, rgba(3, 7, 15, 0) 100%);
}
.hdr::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(140, 186, 230, .22) 20%, rgba(140, 186, 230, .22) 80%, transparent); }
.hdr-bare { position: relative; justify-content: space-between; height: 60px; background: #08101e; }
.logo { position: relative; display: flex; align-items: center; flex: none; }
.logo img { width: 190px; height: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .7)); }
.logo:focus-visible { outline-offset: 4px; }
.logo-glow {
  position: absolute; left: 47.2%; top: 50%; width: 24%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 196, 92, .9) 0%, rgba(255, 128, 24, .4) 35%, rgba(255, 90, 0, 0) 68%);
  mix-blend-mode: screen; opacity: .22; transform: translate(-50%, -50%); animation: eye 6s ease-in-out infinite;
}
.hdr-nav { display: flex; align-self: stretch; margin-left: 10px; min-width: 0; }
.hdr-nav-in { display: flex; align-items: stretch; gap: 4px; }
.nav-tab {
  position: relative; display: flex; align-items: center; padding: 0 16px;
  font: 500 var(--fs-nav)/1 var(--f-ui); text-transform: uppercase; letter-spacing: var(--track-caps); color: var(--text-2);
  transition: color var(--t-fast);
}
.nav-tab::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 16px; height: 2px; border-radius: 2px; background: var(--fire); box-shadow: 0 0 10px rgba(255, 157, 69, .55); transform: scaleX(0); transition: transform var(--t-med) var(--ease); }
.nav-tab:hover { color: var(--text); }
.nav-tab.is-on { color: var(--text); }
.nav-tab.is-on::after { transform: none; }
.hdr-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang { display: flex; gap: 2px; margin-right: 4px; }
.lang-btn { min-width: 34px; height: 30px; display: grid; place-items: center; font: 500 13px/1 var(--f-ui); letter-spacing: .06em; color: var(--text-2); border: 1px solid transparent; border-radius: var(--r-1); transition: color var(--t-fast), border-color var(--t-fast); }
.lang-btn:hover { color: var(--text); }
.lang-btn.is-on { color: var(--gold); border-color: rgba(242, 200, 91, .55); background: rgba(242, 200, 91, .06); }
.hdr-search, .hdr-cab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: var(--r-2); color: var(--text); font: 500 14px/1 var(--f-text); border: 1px solid transparent; transition: background-color var(--t-fast), border-color var(--t-fast); }
.hdr-search { width: 40px; padding: 0; justify-content: center; }
.hdr-cab { border-color: var(--line-2); background: rgba(8, 17, 31, .45); }
.hdr-cab .i { color: var(--text-2); }
.hdr-search:hover, .hdr-cab:hover, .hdr-cab.is-on { border-color: var(--edge-hi); background: rgba(24, 48, 80, .55); }
.hdr-cab.is-on .i, .hdr-cab:hover .i { color: var(--fire); }
.hdr-cab-t { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr-bare-r { display: flex; align-items: center; gap: 12px; }

/* ---------- buttons and links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--r-2); border: 1px solid var(--line-2);
  font: 500 15px/1 var(--f-ui); text-transform: uppercase; letter-spacing: var(--track-caps); white-space: nowrap; user-select: none;
  color: var(--text); background: rgba(8, 17, 31, .45);
  transition: background var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.btn .i { width: 16px; height: 16px; }
.btn:hover { border-color: var(--edge-hi); background: rgba(24, 48, 80, .6); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-busy, .btn[aria-disabled="true"] { opacity: .45; filter: saturate(.4); box-shadow: none; pointer-events: none; }
.btn-fire { color: #fff; background: var(--fire-grad); border-color: #c8661a #a64a08 #8e3f06; box-shadow: inset 0 1px 0 rgba(255, 214, 170, .45), 0 2px 8px rgba(0, 0, 0, .35); text-shadow: 0 1px 0 rgba(70, 25, 0, .55); }
.btn-fire:hover { background: var(--fire-grad-hover); border-color: #d87425 #a64a08 #8e3f06; box-shadow: inset 0 1px 0 rgba(255, 220, 180, .55), var(--fire-glow), 0 2px 8px rgba(0, 0, 0, .35); }
.btn-fire:active { box-shadow: inset 0 2px 6px rgba(80, 30, 0, .55); }
.btn-fire:focus-visible { outline-color: #ffd2a6; }
.btn-line { color: var(--fire); border-color: rgba(255, 157, 69, .7); background: rgba(8, 17, 31, .35); }
.btn-line:hover { color: #fff; border-color: var(--fire-edge); background: rgba(184, 83, 10, .25); }
.btn-ghost { background: transparent; }
.btn-danger { color: #fff; background: var(--red-fill); border-color: #c9483b; }
.btn-danger:hover { background: #b33d31; border-color: #e0574a; }
.btn-ok { color: #fff; background: var(--green-fill); border-color: var(--green-edge); }
.btn-ok:hover { background: #218c4d; border-color: var(--green); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-xl { height: 52px; padding: 0 34px; font-size: 19px; gap: 12px; }
.btn-xl .i { width: 18px; height: 18px; }
.btn-block { display: flex; width: 100%; }
.link-btn, .link-more, .slide-more {
  display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--text-2);
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
.link-btn { padding: 6px 0; }
.link-btn .i, .link-more .i { width: 14px; height: 14px; }
.link-btn:hover, .link-more:hover { color: var(--fire); }
.slide-more { color: var(--text); text-decoration: underline; text-decoration-color: rgba(238, 243, 250, .35); text-underline-offset: 6px; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.slide-more:hover { color: var(--fire); text-decoration-color: var(--fire); }
.prose a, .a { color: var(--fire); text-decoration: underline; text-decoration-color: rgba(255, 157, 69, .45); text-underline-offset: 3px; }
.prose a:hover, .a:hover { text-decoration-color: currentColor; }

/* ---------- panels ---------- */
.frame {
  position: relative; border-radius: var(--r-3);
  background: var(--panel); border: 1px solid var(--edge); border-top-color: var(--edge-hi);
  box-shadow: var(--inner-hi), var(--rim-glow), var(--shadow-panel);
  -webkit-backdrop-filter: blur(6px) saturate(1.1); backdrop-filter: blur(6px) saturate(1.1);
}
.frame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 120px at 0 0, rgba(150, 200, 255, .07), transparent 70%); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .frame { background: var(--panel-solid); } }
.frame > .ph:first-child, .frame > header:first-child { border-radius: var(--r-3) var(--r-3) 0 0; }
.ph { position: relative; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; background: var(--panel-head); border-bottom: 1px solid var(--line-2); }
.ph-title { display: flex; align-items: center; gap: 12px; min-width: 0; font: 600 var(--fs-h2)/1.1 var(--f-ui); text-transform: uppercase; letter-spacing: .03em; color: var(--text); }
.ph-title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-ico { width: 22px; height: 22px; color: var(--text); }
.ph-ico-fire { color: var(--fire); }
.cnt { margin-left: auto; display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; font: 500 15px/1 var(--f-ui); font-variant-numeric: tabular-nums; color: var(--text); background: var(--plate); border: 1px solid var(--line-2); border-radius: var(--r-1); }

/* ---------- hero: the top places. The box is --hero-h tall, each picture is --scene-h tall and runs on under the panels. ---------- */
.hero { position: relative; height: var(--hero-h); overflow-x: clip; }
.hero-track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity var(--t-slow) ease, visibility 0s linear var(--t-slow); }
.slide.is-on { opacity: 1; visibility: visible; z-index: 1; transition: opacity var(--t-slow) ease, visibility 0s; }
.slide-art { position: absolute; inset: 0 0 auto 0; height: var(--scene-h); pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 60%, transparent 100%); }
.slide-art picture, .slide-art img { width: 100%; height: 100%; }
.slide-art img { object-fit: cover; object-position: 62% 22%; transform-origin: 70% 30%; }
.slide.is-on .slide-art img, .slide.is-leaving .slide-art img { animation: drift var(--hero-every) linear both; }
.slide-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 22, .80) 0, rgba(5, 10, 22, .55) 30%, rgba(5, 10, 22, 0) 58%),
    linear-gradient(180deg, rgba(5, 10, 22, .55) 0, rgba(5, 10, 22, 0) 16%, rgba(11, 18, 34, 0) 45%, rgba(11, 18, 34, .45) 70%);
}
.slide-body {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: calc(var(--hdr-h) - 24px) max(var(--gutter), calc((100% - var(--wrap)) / 2)) 64px;
}
.slide-body > * { max-width: 640px; }
.slide-kicker { margin-bottom: 10px; font: 500 13px/1 var(--f-ui); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--text-2); text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.slide-name { font: 900 var(--fs-hero)/1 var(--f-title); letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
.slide-name a, .slide-name > span {
  background: var(--gold-title); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold);
  filter: drop-shadow(0 2px 0 rgba(60, 35, 0, .8)) drop-shadow(0 6px 18px rgba(0, 0, 0, .6));
}
.slide-name a:hover { filter: drop-shadow(0 2px 0 rgba(60, 35, 0, .8)) drop-shadow(0 0 18px rgba(255, 200, 100, .35)); }
.slide-name.n-m { font-size: calc(var(--fs-hero) * .84); }
.slide-name.n-l { font-size: calc(var(--fs-hero) * .7); }
.slide-name.n-xl { font-size: calc(var(--fs-hero) * .58); }
.slide-line { margin-top: 12px; font: 500 15px/1.35 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--text); text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.slide-free .slide-line { color: var(--gold); }
.slide-free .slide-name { background: var(--gold-title); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold); filter: drop-shadow(0 2px 0 rgba(60, 35, 0, .8)) drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); }
.slide-text { margin-top: 10px; color: var(--text-2); text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.slide-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.slide-facts li { height: 30px; padding: 0 14px; display: inline-flex; align-items: center; font: 500 14px/1 var(--f-text); color: var(--text); background: rgba(8, 17, 31, .62); border: 1px solid var(--line-2); border-radius: 15px; }
.slide-cta { display: flex; align-items: center; gap: 22px; margin-top: 24px; }
.hero-foot { position: absolute; z-index: 3; inset: auto 0 10px 0; height: 52px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
.hero-h1 { padding-bottom: 14px; font: 500 13px/1.2 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.hero-h1 b { color: var(--text); font-weight: 500; }
.hero-tabs { display: flex; gap: 4px; margin-left: auto; }
.hero-tab {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: calc((var(--rail) - 4px) / 2); height: 44px; padding: 0 12px;
  font: 500 15px/1 var(--f-ui); text-transform: uppercase; letter-spacing: var(--track-caps); color: var(--text-2);
  background: rgba(13, 26, 46, .78); border: 1px solid var(--edge); border-radius: var(--r-2);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: color var(--t-fast), background-color var(--t-fast);
}
.hero-tab span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-tab .i { width: 16px; height: 16px; color: var(--gold); }
.hero-tab:hover { color: var(--text); }
.hero-tab[aria-selected="true"] { color: var(--text); background: rgba(23, 48, 77, .94); border-color: var(--edge-hi); }
.hero-tab[aria-selected="true"] .i { color: var(--fire); }
.hero-tab:focus-visible { outline-offset: -3px; }
.hero-bar { position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: rgba(255, 157, 69, .22); transform-origin: left; }
.hero-tab[aria-selected="true"] .hero-bar { background: var(--fire); }
.hero.is-running .hero-tab[aria-selected="true"] .hero-bar { animation: bar var(--hero-every) linear both; }
.hero.is-paused .hero-bar { animation-play-state: paused !important; }

/* ---------- board ---------- */
.board { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail); grid-template-areas: "main finder" "main side"; grid-template-rows: auto 1fr; gap: var(--gap); align-items: start; }
.board-main { grid-area: main; display: grid; gap: var(--gap); min-width: 0; }
.board-finder { grid-area: finder; min-width: 0; }
.board-side { grid-area: side; display: grid; gap: var(--gap); min-width: 0; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }

/* ---------- two top windows above the lists ---------- */
.topwins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.topwin { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 10px 14px; }
.topwin.t-top { border-top-color: var(--fire-edge); }
.topwin-a { position: static; display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.topwin-a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.topwin-art { display: none; }
.topwin-ava { position: relative; z-index: 2; flex: none; width: 58px; height: 58px; border-radius: var(--r-2); overflow: hidden; border: 1px solid var(--line-2); }
.topwin-ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.topwin-body { position: relative; z-index: 2; display: grid; gap: 6px; min-width: 0; flex: 1; }
.topwin-tag { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--fire); }
.t-vip .topwin-tag { color: var(--gold); }
.topwin-tag .i { width: 14px; height: 14px; }
.topwin-name { font: 600 20px/1.05 var(--f-ui); text-transform: uppercase; letter-spacing: .02em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topwin.t-vip .topwin-name { color: var(--gold); }
.topwin-a:hover .topwin-name { color: var(--fire); }
.topwin-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.topwin-facts i:last-child:not(:first-child) { border: 0; background: none; padding: 0 2px; }
.topwin-facts i { font-style: normal; height: 24px; padding: 0 9px; display: inline-flex; align-items: center; font-size: 13px; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 12px; background: rgba(8, 17, 31, .5); }
.topwin-play { position: relative; z-index: 3; height: 34px; padding: 0 14px; font-size: 13px; }
.topwin-free { justify-content: space-between; color: var(--text-2); }
.topwin-free .topwin-name { color: var(--gold); font-size: 18px; }
.topwin-note { font-size: 13px; color: var(--text-2); }
.topwin-free .btn { position: relative; z-index: 2; flex: none; }

/* ---------- today ---------- */
.today-head { display: flex; align-items: center; gap: 16px; min-height: 58px; padding: 0 16px; background: var(--panel-head); border-bottom: 1px solid var(--line-2); border-radius: var(--r-3) var(--r-3) 0 0; }
.today-title { display: flex; align-items: center; gap: 12px; font: 600 var(--fs-h2)/1 var(--f-ui); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.today-title .i { width: 22px; height: 22px; }
.today-date { font: 500 15px/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.today-next { margin-left: auto; display: flex; align-items: baseline; gap: 12px; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.today-clock { font: 600 var(--fs-clock)/1 var(--f-ui); letter-spacing: .04em; color: var(--fire); font-variant-numeric: tabular-nums; min-width: 5ch; }
/* the first three of today are cards (li.row.tcard in the same list, so the filters work unchanged) */
.rows.rows-today { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; padding: 12px 12px 0; }
.rows-today > .row:not(.tcard) { grid-column: 1 / -1; margin: 0 -12px; }
.rows-today > .tcard { margin-bottom: 12px; }
.rows-today > .tcard + .row:not(.tcard) { border-top: 1px solid var(--line); }
.tcard { position: relative; display: flex; min-width: 0; border-radius: var(--r-2); background: var(--row); border: 1px solid var(--line-2); transition: border-color var(--t-fast), background-color var(--t-fast); }
.tcard:hover { border-color: var(--edge-hi); background: var(--row-hover); }
.tcard.t-top { border-color: rgba(255, 157, 69, .55); box-shadow: inset 0 2px 0 var(--fire); }
.tcard.t-divine { border-color: rgba(242, 200, 91, .6); box-shadow: inset 0 2px 0 var(--gold); }
.tcard-a { flex: 1; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 10px; }
.tcard-a:focus-visible { outline-offset: -2px; }
.tcard-ava { display: block; width: 112px; height: 112px; border-radius: var(--r-1); overflow: hidden; background: var(--plate); }
.tcard-ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.tcard-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.tcard-name { display: flex; align-items: center; gap: 6px; min-width: 0; font: 600 19px/1.05 var(--f-ui); text-transform: uppercase; letter-spacing: .02em; }
.tcard-name .row-title { font: inherit; letter-spacing: inherit; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.05; }
.tcard.t-vip .row-title { color: var(--gold); }
.tcard-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.tcard-facts i { font-style: normal; height: 24px; padding: 0 9px; display: inline-flex; align-items: center; font-size: 13px; color: var(--text); border: 1px solid var(--line-2); border-radius: 12px; background: rgba(8, 17, 31, .5); }
.tcard-when { font-size: 13px; color: var(--text-2); }
.tcard-clock { margin-top: auto; font: 600 26px/1 var(--f-ui); letter-spacing: .04em; color: var(--fire); font-variant-numeric: tabular-nums; }
.tcard-clock.is-live { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; height: 30px; padding: 0 12px; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--green-fill); border: 1px solid var(--green-edge); border-radius: var(--r-1); }

/* ---------- rows ---------- */
.rows { list-style: none; display: block; }
.row { position: relative; min-width: 0; }
.rows > .row:not(.tcard) + .row:not(.tcard) { border-top: 1px solid var(--line); }
.row-a {
  position: relative; display: grid; align-items: center;
  grid-template-columns: 22px 48px minmax(0, 1fr) 46px 80px minmax(56px, auto);
  grid-template-areas: "n ava name rate chr date";
  column-gap: 8px; height: var(--row-h); padding: 0 12px;
  background: var(--row); transition: background-color var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast);
}
.rows > .row:nth-child(even) > .row-a { background: var(--row-alt); }
.row-a:hover { background: var(--row-hover) !important; box-shadow: inset 2px 0 0 var(--fire); }
.row-a:focus-visible { outline-offset: -2px; }
.rows > .row:last-child > .row-a { border-radius: 0 0 var(--r-3) var(--r-3); }
.rows:has(+ .list-empty:not([hidden])) > .row:last-child > .row-a, .rows:has(~ .more:not([hidden])) > .row:last-child > .row-a { border-radius: 0; }
.row-n { grid-area: n; font: 500 14px/1 var(--f-ui); color: var(--text-3); text-align: center; font-variant-numeric: tabular-nums; }
.ava { grid-area: ava; display: block; width: 48px; height: 32px; border-radius: var(--r-1); overflow: hidden; background: var(--plate); }
.ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.ava-wide { width: 56px; height: 34px; }
.row-name { grid-area: name; display: flex; align-items: center; gap: 7px; min-width: 0; }
.row-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 var(--fs-row)/1.15 var(--f-ui); text-transform: uppercase; letter-spacing: .03em; color: var(--text); }
.crown { width: 16px; height: 16px; flex: none; color: var(--fire); }
.badge-vip { flex: none; display: inline-grid; place-items: center; height: 20px; padding: 0 6px; font: 600 12px/1 var(--f-ui); letter-spacing: .06em; color: var(--gold); border: 1px solid rgba(242, 200, 91, .7); border-radius: 3px; }
.row-rate { grid-area: rate; font: 500 14px/1 var(--f-ui); color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-chr { grid-area: chr; font: 400 13px/1.2 var(--f-text); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate { grid-area: date; justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; min-width: 56px; padding: 0 8px; font: 500 15px/1 var(--f-ui); color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; background: var(--plate); border: 1px solid var(--line-2); border-radius: var(--r-1); }
.plate-obt { min-width: 76px; font-size: 13px; }
.plate-today { min-width: 60px; color: #fff; background: var(--green-fill); border-color: var(--green-edge); }
.plate-today.is-live { letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #c9ffd9; animation: live 1.6s ease-in-out infinite; }
.row-today .row-a { grid-template-columns: 56px minmax(0, 1fr) 46px 80px minmax(60px, auto); grid-template-areas: "ava name rate chr date"; }
.row.t-vip .row-title { color: var(--gold); }
/* paid rows: deep fills so white text keeps 4.5:1 */
.row.t-top .row-a { background: var(--fire-grad) !important; box-shadow: inset 0 1px 0 var(--fire-edge); }
.row.t-top .row-a:hover { background: var(--fire-grad-hover) !important; box-shadow: inset 0 1px 0 var(--fire-edge), inset 2px 0 0 #fff; }
.row.t-divine .row-a { background: var(--gold-grad) !important; box-shadow: inset 0 1px 0 var(--gold-edge); }
.row.t-divine .row-a:hover { filter: brightness(1.06); box-shadow: inset 0 1px 0 var(--gold-edge), inset 2px 0 0 #fff; }
.t-top .row-a:focus-visible, .t-divine .row-a:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.row.t-top .row-n, .row.t-divine .row-n, .row.t-top .row-chr, .row.t-divine .row-chr, .row.t-top .row-title, .row.t-divine .row-title, .row.t-top .row-rate, .row.t-divine .row-rate { color: #fff; }
.row.t-top .crown, .row.t-divine .crown { color: #fff3dc; }
.row.t-top .plate, .row.t-divine .plate { background: rgba(20, 8, 0, .5); border-color: rgba(255, 255, 255, .22); color: #fff; }
.row.t-top .plate-today, .row.t-divine .plate-today { background: var(--green-fill); border-color: var(--green-edge); }
.rows > .row + .row.t-top, .rows > .row + .row.t-divine, .rows > .row.t-top + .row, .rows > .row.t-divine + .row { border-top-color: rgba(0, 0, 0, .35); }
/* marked rows (law 38-FZ): the chronicle moves up, the «Реклама» marker sits under it in the same column */
.row[data-admark] .row-chr { align-self: start; padding-top: 7px; }


/* list states */
.row.is-extra[hidden] { display: none; }
.list-empty { padding: 16px; font-size: 14px; color: var(--text-2); }
.more {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 40px;
  font: 500 13px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--text-2);
  border-top: 1px solid var(--line); border-radius: 0 0 var(--r-3) var(--r-3); transition: color var(--t-fast), background-color var(--t-fast);
}
.more:hover { color: var(--text); background: rgba(24, 48, 80, .35); }
.more .i { width: 14px; height: 14px; transition: transform var(--t-med); }
.more[aria-expanded="true"] .i { transform: rotate(180deg); }
.more-n { color: var(--text); }

/* ---------- finder ---------- */
.finder-toggle { display: none; }
.finder-body { padding: 14px 12px 16px; }
.q { position: relative; display: block; }
.q .i { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--text-2); pointer-events: none; }
.q input { width: 100%; height: 42px; padding: 0 12px 0 38px; font-size: 15px; color: var(--text); background: var(--plate); border: 1px solid var(--line-2); border-radius: var(--r-1); -webkit-appearance: none; appearance: none; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.q input::placeholder { color: var(--text-3); }
.q input:hover { border-color: var(--edge-hi); }
.q input:focus { outline: none; border-color: var(--fire); box-shadow: 0 0 0 3px rgba(255, 157, 69, .18); }
.fh { margin: 16px 0 8px; font: 600 15px/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.chips { display: grid; gap: 6px; }
.chips-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chips-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chip {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 36px; padding: 8px 6px 2px;
  font: 500 13px/1.05 var(--f-ui); letter-spacing: .01em; text-transform: uppercase; color: var(--text); text-align: center;
  background: rgba(8, 17, 31, .6); border: 1px solid var(--line-2); border-radius: var(--r-1);
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), opacity var(--t-fast);
}
.chip .i { width: 14px; height: 14px; color: var(--steel-2); }
.chip-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-n { position: absolute; top: 2px; right: 4px; font: 400 12px/1 var(--f-text); color: var(--text-3); font-variant-numeric: tabular-nums; }
.chip.is-long { grid-column: span 2; }
.chips-feat .chip { justify-content: flex-start; gap: 4px; padding-inline: 6px 4px; text-transform: none; font: 500 12px/1.05 var(--f-text); letter-spacing: -.01em; text-align: left; }
.chips-feat .chip .i { width: 13px; height: 13px; }
.chips-feat .chip.is-long { grid-column: auto; }
.chip:hover { border-color: var(--edge-hi); background: var(--row-hover); }
.chip[aria-pressed="true"] { color: #fff; border-color: var(--fire); background: rgba(184, 83, 10, .32); box-shadow: inset 0 0 0 1px rgba(255, 157, 69, .25); }
.chip[aria-pressed="true"] .chip-n, .chip[aria-pressed="true"] .i { color: var(--fire-edge); }
.chip.is-zero:not([aria-pressed="true"]) { opacity: .45; }
.chip.is-zero:not([aria-pressed="true"]):hover { border-color: var(--line-2); background: rgba(8, 17, 31, .6); }
.finder-foot { display: grid; gap: 8px; margin-top: 16px; }
.finder-show { width: 100%; }
.finder-links { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; }
.finder-found { font: 500 13px/1 var(--f-ui); color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.fcount { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; font: 600 12px/1 var(--f-text); color: #fff; background: var(--fire-fill); border-radius: 11px; }

/* ---------- ads ---------- */
.ad-tag { position: absolute; left: 8px; top: 8px; z-index: 4; padding: 3px 6px; font: 500 10px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); background: rgba(8, 17, 31, .75); border-radius: 3px; }
.ad-side { padding: 0; overflow: hidden; }
.ad-side .adb { display: none; position: relative; }
.ad-side .adb.is-on { display: block; animation: fade-in .7s ease both; }
.adb img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.adb::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5, 10, 22, 0) 40%, rgba(5, 10, 22, .65) 62%, rgba(5, 10, 22, .92) 100%); }
.adb-text { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 12px; }
.adb-name { font: 900 40px/.95 var(--f-title); text-transform: uppercase; letter-spacing: .01em; background: var(--gold-title); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold); filter: drop-shadow(0 2px 0 rgba(60, 35, 0, .8)) drop-shadow(0 4px 10px rgba(0, 0, 0, .7)); }
.adb-facts { display: flex; align-items: center; gap: 10px; margin-top: 12px; font: 500 15px/1 var(--f-ui); letter-spacing: .1em; color: var(--text); text-transform: uppercase; text-shadow: 0 1px 2px #000; }
.adb-facts i { width: 4px; height: 4px; background: var(--gold); transform: rotate(45deg); }
.adb-when { margin-top: 8px; font: 500 13px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); text-shadow: 0 1px 2px #000; }
.adb-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; height: 36px; padding: 0 20px; font: 500 14px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: #fff; border-radius: var(--r-2); background: var(--fire-grad); border: 1px solid #c8661a; box-shadow: inset 0 1px 0 rgba(255, 214, 170, .45); }
.adb-cta .i { width: 13px; height: 13px; }
.adb:hover .adb-cta { background: var(--fire-grad-hover); box-shadow: inset 0 1px 0 rgba(255, 220, 180, .55), var(--fire-glow); }
/* own placement «Your server here» (not an ad, no marker) */
.ad-free { position: relative; display: block; overflow: hidden; color: var(--text-2); }
.ad-free-side { aspect-ratio: 3 / 4; }
.ad-free-side > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 0; }
.ad-free-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(5, 10, 22, .8) 0, rgba(5, 10, 22, .35) 55%, rgba(5, 10, 22, 0) 80%), linear-gradient(180deg, rgba(5, 10, 22, 0) 50%, rgba(5, 10, 22, .9) 100%); }
.ad-free-art { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: flex-end; padding: 30px 18px 18px; text-align: right; }
.ad-free-t { font: 900 30px/1.02 var(--f-title); text-transform: uppercase; max-width: 8em; background: var(--gold-title); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold); filter: drop-shadow(0 2px 0 rgba(60, 35, 0, .8)) drop-shadow(0 4px 10px rgba(0, 0, 0, .7)); }
.ad-free-s { margin-top: 12px; max-width: 13em; font: 500 13px/1.4 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--text); text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.ad-free-art .btn { margin-top: auto; align-self: stretch; }
.ad-free-side:hover .btn-fire { background: var(--fire-grad-hover); box-shadow: inset 0 1px 0 rgba(255, 220, 180, .55), var(--fire-glow); }
.ad-size { font: 500 13px/1 var(--f-ui); letter-spacing: .1em; color: var(--text-3); white-space: nowrap; }
.ad-free-wide { display: flex; align-items: center; gap: 24px; min-height: 120px; margin-top: var(--gap); padding: 18px 28px; text-align: left; }
.ad-free-wide:hover { border-color: var(--edge-hi); }
.ad-free-body { display: grid; gap: 4px; margin-right: auto; }
.ad-free-body b { font: 600 18px/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .03em; color: var(--text); }
.ad-free-body span { font-size: 14px; }
.ad-wide { display: block; margin-top: var(--gap); padding: 0; overflow: hidden; }
.ad-wide img { width: 100%; height: auto; aspect-ratio: 1280 / 120; object-fit: cover; }

/* ---------- tiles: free / premium / guides ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.tile { display: grid; grid-template-columns: 52px minmax(0, 1fr) 16px; align-items: center; gap: 14px; min-height: 84px; padding: 14px 16px; transition: border-color var(--t-fast), transform var(--t-fast); }
.tile:hover { border-color: var(--edge-hi); transform: translateY(-1px); }
.tile-ico { width: 52px; height: 52px; color: var(--gold); }
.tile-t { display: block; font: 600 16px/1.1 var(--f-ui); text-transform: uppercase; letter-spacing: .03em; color: var(--text); }
.tile-t b { color: var(--gold); font-weight: 600; }
.tile-s { display: block; margin-top: 5px; font-size: 13px; line-height: 1.35; color: var(--text-2); }
.tile > .i:last-child { color: var(--text-2); }
.tile:hover > .i:last-child { color: var(--fire); }
.tile > .tile-ico { color: var(--gold); }

/* ---------- side boxes ---------- */
.addbox-in { display: grid; gap: 12px; padding: 14px 16px 16px; }
.addbox-in p { font-size: 14px; color: var(--text-2); }
.addbox-in .link-more { justify-self: center; }

/* ---------- seo text ---------- */
.seo { margin-top: var(--gap); padding: 22px 26px; }
.seo h2 { font: 600 20px/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 10px; }
.seo p { max-width: 92ch; color: var(--text-2); font-size: 14px; }
.seo p + p { margin-top: 8px; }

/* ---------- facts strip (home) and footer, both on the snow ---------- */
.facts { display: flex; align-items: flex-start; gap: 28px; padding: 18px 26px; margin-bottom: 18px; }
.facts .btn, .facts .soc { align-self: center; }
.fact { display: grid; justify-items: center; gap: 6px; padding: 0 20px; }
.fact + .fact { border-left: 1px solid var(--line-2); }
.fact-n { font: 600 40px/1 var(--f-ui); color: var(--fire); font-variant-numeric: tabular-nums; }
.fact-l { font: 500 12px/1.25 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); text-align: center; max-width: 11em; }
.facts .btn { margin-left: auto; }
.soc { display: flex; gap: 8px; }
.soc a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--text); background: rgba(8, 17, 31, .6); border: 1px solid var(--line-2); transition: border-color var(--t-fast), color var(--t-fast); }
.soc a:hover { color: var(--fire); border-color: var(--fire); }
.ftr { margin-bottom: 26px; padding: 18px 24px; border-radius: var(--r-3); background: rgba(13, 26, 46, .88); border: 1px solid var(--edge); border-top-color: var(--edge-hi); box-shadow: var(--inner-hi), var(--shadow-panel); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ftr-top { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; }
.ftr-logo img { width: 130px; }
.ftr-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ftr-nav a, .ftr-contacts a { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.ftr-nav a:hover, .ftr-contacts a:hover { color: var(--text); }
.ftr-contacts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-left: auto; }
.ftr-contacts a { display: inline-flex; align-items: center; gap: 6px; }
.ftr-contacts .i { width: 16px; height: 16px; }
.ftr-note { margin-top: 12px; font-size: 13px; color: var(--text-3); }

/* ---------- shared page parts (inner pages) ---------- */
.crumbs { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; font: 500 13px/1.3 var(--f-ui); text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--fire); }
.crumbs span[aria-hidden] { color: var(--text-3); }
.page-head { position: relative; margin-top: 8px; margin-bottom: 24px; padding: 18px 0 8px; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.page-head.frame::before { display: none; }
.page-head > * { max-width: 900px; }
.page-head h1 { font: 600 var(--fs-h1)/1.1 var(--f-ui); text-transform: uppercase; letter-spacing: .03em; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.page-head p { margin-top: 10px; max-width: 80ch; font-size: 16px; color: var(--text); text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail); gap: var(--gap); align-items: start; }
.stack { display: grid; gap: var(--gap); min-width: 0; }
.stack > *, .layout-2 > *, .frame { min-width: 0; }
.box { padding: 18px 20px; }
.box-h { font: 600 var(--fs-h3)/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 12px; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.prose { color: var(--text); font-size: 16px; line-height: 1.65; }
.prose > * + * { margin-top: .9em; }
.prose h2 { font: 600 22px/1.25 var(--f-ui); text-transform: uppercase; letter-spacing: .02em; color: var(--text); margin-top: 1.5em; }
.prose h3 { font: 600 18px/1.3 var(--f-ui); text-transform: uppercase; color: var(--text); margin-top: 1.2em; }
.prose p, .prose li { color: #dde6f1; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--fire); }
.prose blockquote { margin: 0; padding: 6px 0 6px 16px; border-left: 3px solid var(--steel); color: var(--text-2); }
.prose code { font: 13.5px/1.4 ui-monospace, Consolas, monospace; background: var(--plate); border: 1px solid var(--line-2); border-radius: 3px; padding: 1px 5px; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-2); border: 1px solid var(--line-2); }
.prose strong { color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; font: 600 12px/1 var(--f-text); white-space: nowrap; border: 1px solid currentColor; border-radius: 11px; color: var(--text-2); }
.pill-pending, .pill-new, .pill-in_progress { color: var(--fire); background: rgba(255, 157, 69, .1); }
.pill-published, .pill-paid, .pill-ok { color: var(--green); background: rgba(95, 211, 138, .1); }
.pill-rejected, .pill-blocked { color: var(--red); background: rgba(255, 122, 107, .1); }
.pill-draft { color: var(--text-2); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line-2); }
.tab { position: relative; height: 42px; padding: 0 14px; font: 500 14px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"], .tab.is-on { color: var(--text); }
.tab[aria-selected="true"]::after, .tab.is-on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--fire); }
.tab:disabled { opacity: .45; cursor: not-allowed; }
.tab:focus-visible { outline-offset: -2px; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 34px 20px; text-align: center; color: var(--text-2); }
.empty-ico { width: 34px; height: 34px; color: var(--steel-2); }
.err { position: relative; margin: 60px auto 40px; max-width: 640px; padding: 30px; text-align: center; display: grid; justify-items: center; gap: 14px; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.err.frame::before { display: none; }
.err-code { font: 900 120px/1 var(--f-title); background: var(--gold-title); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold); filter: drop-shadow(0 3px 0 rgba(60, 35, 0, .8)) drop-shadow(0 8px 20px rgba(0, 0, 0, .7)); }
.err-title { font: 600 26px/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .03em; text-shadow: 0 2px 6px rgba(0, 0, 0, .7); }
.err-text { color: var(--text); max-width: 46ch; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2, .span-all { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.label, .field > label { font: 500 13px/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.req { color: var(--fire); }
.input, .select, .textarea {
  width: 100%; min-width: 0; height: 42px; padding: 0 12px;
  font: 400 15px/1.3 var(--f-text); color: var(--text);
  background: var(--plate); border: 1px solid var(--line-2); border-radius: var(--r-1);
  -webkit-appearance: none; appearance: none; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--edge-hi); }
.textarea { height: auto; min-height: 130px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23b3c2d5' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.select option { background: var(--panel-solid); color: var(--text); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--fire); box-shadow: 0 0 0 3px rgba(255, 157, 69, .18); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 122, 107, .15); }
.input:disabled, .select:disabled, .textarea:disabled { opacity: .5; background: var(--row-alt); cursor: not-allowed; }
input[type="date"].input, input[type="time"].input { color-scheme: dark; }
.help { font-size: 13px; line-height: 1.45; color: var(--text-3); }
.field-err { font-size: 13px; color: var(--red); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; line-height: 1.4; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; margin-top: 1px; -webkit-appearance: none; appearance: none; background: var(--plate); border: 1px solid var(--line-2); border-radius: 3px; display: grid; place-items: center; cursor: pointer; transition: background-color var(--t-fast), border-color var(--t-fast); }
.check input:hover { border-color: var(--edge-hi); }
.check input:checked { background: var(--fire-fill); border-color: var(--fire); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.check input[type="radio"] { border-radius: 50%; }
.check input[type="radio"]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.check input:focus-visible { outline: 2px solid var(--fire-edge); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.code-box { display: block; width: 100%; padding: 10px 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; font: 12.5px/1.5 ui-monospace, Consolas, monospace; color: #dde6f1; background: var(--plate); border: 1px solid var(--line-2); border-radius: var(--r-1); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 10px 12px; text-align: left; white-space: nowrap; font: 500 12px/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); background: var(--row-alt); border-bottom: 1px solid var(--line-2); }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover td { background: var(--row-hover); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- feedback ---------- */
.note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; font-size: 14px; color: var(--text); background: var(--row); border: 1px solid var(--line-2); border-radius: var(--r-2); }
.note .i { margin-top: 1px; }
.note-ok { border-color: rgba(95, 211, 138, .45); background: rgba(95, 211, 138, .07); }
.note-ok .i { color: var(--green); }
.note-err { border-color: rgba(255, 122, 107, .45); background: rgba(255, 122, 107, .07); }
.note-err .i { color: var(--red); }
.note-info { border-color: rgba(140, 196, 255, .4); }
.note-info .i { color: var(--info); }
.toast-box { position: fixed; left: 50%; bottom: 20px; z-index: 90; display: grid; gap: 8px; transform: translateX(-50%); width: min(92vw, 440px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 14px; color: var(--text); background: var(--panel-solid); border: 1px solid var(--edge); border-radius: var(--r-2); box-shadow: var(--shadow-pop); animation: toast-in .25s ease-out both; }
.toast-box + .toast-box { bottom: 76px; }
.toast-ok { border-color: rgba(95, 211, 138, .55); }
.toast-ok .i { color: var(--green); }
.toast-err { border-color: rgba(255, 122, 107, .55); }
.toast-err .i { color: var(--red); }
dialog.dlg { width: min(94vw, 560px); padding: 0; color: var(--text); background: var(--panel-solid); border: 1px solid var(--edge); border-radius: var(--r-3); box-shadow: var(--shadow-pop); }
dialog.dlg::backdrop { background: var(--overlay); }
.dlg-in { padding: 18px 20px 20px; display: grid; gap: 14px; }

/* ---------- motion ---------- */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.035); } }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes eye { 0%, 100% { opacity: .18; } 50% { opacity: .34; } }
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes go-live { from { box-shadow: 0 0 0 0 rgba(95, 211, 138, .6); } to { box-shadow: 0 0 0 10px rgba(95, 211, 138, 0); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes row-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.just-live { animation: go-live .9s ease-out 1; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .hdr { gap: 10px; }
  .nav-tab { padding: 0 12px; font-size: 15px; }
  .nav-tab::after { left: 12px; right: 12px; }
  .hdr-cab-t { display: none; }
  .hdr-cab { width: 40px; padding: 0; justify-content: center; }
  .rows.rows-today { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-a { grid-template-columns: 20px 36px minmax(0, 1fr) 42px 70px minmax(54px, auto); column-gap: 7px; padding: 0 10px; }
  .row-today .row-a { grid-template-columns: 40px minmax(0, 1fr) 42px 70px minmax(58px, auto); }
  .ava { width: 36px; height: 30px; }
  .ava-wide { width: 40px; height: 30px; }
}
@media (max-width: 1099px) {
  .hdr-add-t { display: none; }
  .hdr-search { display: none; }
  .hdr-add { width: 40px; padding: 0; }
  .board { grid-template-columns: minmax(0, 1fr); grid-template-areas: "finder" "main" "side"; grid-template-rows: none; }
  .board-side { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
  .finder-toggle { display: flex; align-items: center; gap: 10px; width: 100%; height: 52px; padding: 0 16px; font: 600 17px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .04em; color: var(--text); }
  .finder-toggle .i { width: 20px; height: 20px; color: var(--fire); }
  .finder-chev { margin-left: auto; transition: transform var(--t-med); color: var(--text-2) !important; }
  .finder-toggle[aria-expanded="true"] .finder-chev { transform: rotate(180deg); }
  .ph-finder { display: none; }
  .finder-body { display: none; border-top: 1px solid var(--line-2); }
  .finder.is-open .finder-body { display: block; }
  .chips-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chips-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .layout-2 { grid-template-columns: minmax(0, 1fr); }
  .row-chr { display: none; }
  .row-a { grid-template-columns: 22px 48px minmax(0, 1fr) 46px minmax(56px, auto); grid-template-areas: "n ava name rate date"; }
  .row-today .row-a { grid-template-columns: 56px minmax(0, 1fr) 46px minmax(60px, auto); grid-template-areas: "ava name rate date"; }
}
@media (max-width: 899px) {
  .cols, .topwins { grid-template-columns: minmax(0, 1fr); }
  .rows.rows-today { grid-template-columns: minmax(0, 1fr); }
  .facts { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 699px) {
  body { font-size: 14.5px; }
  .hdr { flex-wrap: wrap; align-content: flex-start; gap: 0 6px; padding-top: 8px; }
  .logo img { width: 124px; }
  .hdr-nav { order: 3; flex: 1 0 100%; height: 40px; margin: 4px -8px 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hdr-nav::-webkit-scrollbar { display: none; }
  .nav-tab { padding: 0 10px; font-size: 14px; white-space: nowrap; }
  .nav-tab::after { left: 10px; right: 10px; bottom: 6px; }
  .hdr-tools { gap: 4px; }
  .lang { margin-right: 0; }
  .lang-btn { min-width: 30px; height: 36px; }
  .hdr-search { display: none; }
  .hdr-cab, .hdr-add { width: 40px; height: 40px; }
  .hdr-bare { flex-wrap: nowrap; height: 56px; padding-top: 0; }
  .slide-art img { object-position: 72% 30%; }
  .slide-art::after { background: linear-gradient(180deg, rgba(5, 10, 22, .6) 0, rgba(5, 10, 22, .1) 25%, rgba(5, 10, 22, .6) 55%, rgba(11, 18, 34, .7) 80%); }
  .slide-body { justify-content: flex-end; padding-bottom: 66px; }
  .slide-line { font-size: 12px; letter-spacing: .14em; }
  .slide-facts li { height: 28px; padding: 0 11px; font-size: 13.5px; }
  .slide-cta { gap: 16px; margin-top: 18px; }
  .slide-cta .btn-xl { height: 48px; padding: 0 26px; font-size: 17px; }
  .hero-foot { height: 46px; }
  .hero-h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero-tabs { flex: 1; }
  .hero-tab { flex: 1; width: auto; min-width: 0; height: 42px; font-size: 14px; }
  .main > .hero-h1-m { display: block; margin-top: 14px; margin-bottom: 4px; font: 500 12px/1.3 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
  .board-side { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .board-side > * { width: 100%; max-width: 360px; }
  .ph { min-height: 48px; }
  .today-head { flex-wrap: wrap; gap: 4px 12px; padding: 10px 14px; }
  .today-next { margin-left: 0; flex-basis: 100%; }
  .tcard-a { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .tcard-ava { width: 76px; height: 76px; }
  .tcard-clock { font-size: 22px; }
  .row-a, .row-today .row-a {
    grid-template-columns: 18px 44px minmax(0, 1fr) auto minmax(58px, auto);
    grid-template-areas: "n ava name rate date" "n ava chr rate date";
    grid-template-rows: 18px 16px; row-gap: 2px; align-content: center; column-gap: 8px; padding: 0 10px;
  }
  .row-today .row-a { grid-template-columns: 44px minmax(0, 1fr) auto minmax(58px, auto); grid-template-areas: "ava name rate date" "ava chr rate date"; }
  .ava, .ava-wide { width: 44px; height: 36px; }
  .row-name { align-self: end; }
  .row-chr, .row[data-admark] .row-chr { display: block; align-self: start; padding-top: 0; font-size: 12px; line-height: 16px; }
  .row-rate { font-size: 13.5px; }
  .chips-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chips-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip { min-height: 40px; }
  .topwin { flex-wrap: wrap; }
  .topwin-play { width: 100%; height: 40px; }
  .facts { gap: 14px 0; padding: 16px 10px; }
  .fact { flex: 1 1 0; min-width: 0; padding: 0 6px; }
  .fact-n { font-size: 30px; }
  .fact-l { letter-spacing: .06em; }
  .facts .btn { margin: 0; flex-basis: 100%; }
  .soc { flex-basis: 100%; justify-content: center; }
  .ad-free-wide { flex-direction: column; align-items: flex-start; text-align: left; min-height: 0; padding: 18px; gap: 12px; }
  .ad-free-body { margin: 0; }
  .seo { padding: 18px 16px; }
  .ftr { padding: 18px 16px; }
  .ftr-contacts { margin-left: 0; }
  .page-head h1 { font-size: var(--fs-h1); }
  .form-grid, .form-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .box { padding: 16px; }
  .btn-sm { height: 38px; }
  .more { height: 44px; }
  .ph-title > span { white-space: normal; }
  .scene-cap { height: 360px; }
  .scene-cap::after { background: linear-gradient(180deg, rgba(5, 10, 22, .85) 0, rgba(5, 10, 22, .7) 150px, rgba(5, 10, 22, .35) 260px, rgba(5, 10, 22, .2) 100%); }
  .err-code { font-size: 84px; }
}
@media (max-width: 400px) {
  .logo img { width: 112px; }
  .slide-name, .slide-name.n-m { font-size: 40px; }
}

/* ---------- reduced motion (tokens.css switches all animations off; these keep the static state right) ---------- */
@media (prefers-reduced-motion: reduce) {
  .slide.is-on .slide-art img, .logo-glow, .dot { animation: none !important; }
  .hero-bar { display: none; }
}

/* ---------- captcha and consent (stage 2, shared by forms) ---------- */
.cap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cap-img { width: 150px; height: 48px; border: 1px solid var(--line-2); border-radius: var(--r-1); }
.cap-input { width: 150px; height: 42px; text-transform: uppercase; letter-spacing: .12em; }
.cap-input::placeholder { text-transform: none; letter-spacing: 0; font-size: 13px; }
.consent { font-size: 13.5px; color: var(--text-2); }
.consent a { color: var(--fire); }
