/* GRAVETIDE website and forum: one set of tokens (owner, 2026-10-18). The art is the site kit (site/img, cut from the
   ChatGPT sheets by tools/site/slice_kit.py) over the near-black blue of the game's night sea. */
:root {
  --bg: #07090f;
  --bg2: #0b0f1a;
  --card: #0e1320;
  --card2: #121a2b;
  --line: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.14);
  --gold1: #f5c451;
  --gold2: #e0a83a;
  --gold: linear-gradient(180deg, var(--gold1), var(--gold2));
  --ice: #8cc3e8;
  --text: #ddd6c6;
  --muted: #8f99a8;
  --red: #c4554a;
  --r: 18px;
  --r-lg: 24px;
  --display: 'Cormorant SC', 'Cormorant Garamond', Georgia, serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Geologica', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--sans); font-variant-numeric: lining-nums;
  background-image: radial-gradient(1200px 600px at 15% -10%, rgba(60, 100, 160, 0.16), transparent 60%), radial-gradient(900px 600px at 100% 30%, rgba(200, 150, 60, 0.06), transparent 60%);
  overflow-x: hidden;
}
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: url(/site/img/tex/wood.webp) 0 0 / 420px repeat; opacity: 0.05; pointer-events: none; }
img { max-width: 100%; display: block; }
a { color: var(--ice); text-decoration: none; }
a:hover { color: #c6e3f7; }
h1, h2, h3 { font-variant-numeric: lining-nums; font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: 0.02em; }
h2 { font-size: clamp(30px, 4vw, 52px); color: #efe4c8; }
h3 { font-size: clamp(22px, 2.4vw, 30px); color: #efe4c8; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.kicker { flex-wrap: wrap; font: 600 12px/1.4 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--ice); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.kicker img { width: 18px; height: 18px; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: #c9c2b2; max-width: 680px; }
.muted { color: var(--muted); }
.gold { color: var(--gold1); }
.center { text-align: center; }
.sec { padding: 72px 0; }

/* ---- buttons: the brass and oak plates of the kit, their ends never stretched */
.btn-gold, .btn-oak {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 34px;
  font: 700 15px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
  border-style: solid; border-color: transparent; background: none; transition: filter 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-gold { color: #2a1a06; text-shadow: 0 1px 0 rgba(255, 240, 200, 0.5); border-width: 0 26px; border-image: url(/site/img/ui/btn_gold.webp) 0 64 fill / 0 26px stretch; }
.btn-gold:hover { color: #2a1a06; border-image-source: url(/site/img/ui/btn_gold_hot.webp); filter: drop-shadow(0 0 14px rgba(245, 196, 81, 0.45)); transform: translateY(-1px); }
.btn-oak { color: #f0e2c0; text-shadow: 0 1px 2px #000; border-width: 0 22px; border-image: url(/site/img/ui/btn_oak.webp) 0 56 fill / 0 22px stretch; }
.btn-oak:hover { color: #fff3d6; filter: brightness(1.18) drop-shadow(0 0 10px rgba(140, 195, 232, 0.25)); transform: translateY(-1px); }
.btn-gold.sm, .btn-oak.sm { min-height: 40px; padding: 0 20px; font-size: 13px; }
.btn-gold.lg { min-height: 62px; padding: 0 44px; font-size: 17px; border-width: 0 30px; border-image-width: 0 30px; }
/* «Play with VK» (owner, 2026-10-25: «логотип вк вверху переделать в стиле игры»): VK's mark alone in one colour — the
   plate's dark ink on the brass buttons; in the header a round brass-ringed button, Telegram's twin */
.vk-mark { flex: none; display: block; width: 22px; height: 22px; }
.btn-gold .vk-mark { filter: drop-shadow(0 1px 0 rgba(255, 240, 200, 0.55)); }
.btn-gold.lg .vk-mark { width: 26px; height: 26px; }
:focus-visible { outline: 2px solid var(--gold1); outline-offset: 3px; border-radius: 6px; }

/* ---- header: a glass pill. The links that do not fit leave the bar for the burger's drawer (site.js, priority+);
   exactly one link is lit — the page's own: a hover only warms the words, it never draws a second pill */
.hdr { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 16px; pointer-events: none; }
.hdr-pill {
  position: relative; pointer-events: auto; max-width: 1360px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 6px 10px 6px 18px;
  border-radius: 999px; background: rgba(9, 13, 22, 0.62); border: 1px solid var(--line2); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.hdr-logo { flex: none; }
.hdr-logo img { height: 66px; margin: -12px 0 -14px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7)); }
.hdr-nav { display: flex; gap: 2px; flex: 1 1 0; min-width: 0; justify-content: center; overflow: hidden; }
.hdr-nav a, .hdr-drawer nav a { flex: none; display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; color: #cfc8b8; font-weight: 500; font-size: 15px; white-space: nowrap; transition: color 0.2s; }
.hdr-nav a img, .hdr-drawer nav a img { flex: none; width: 22px; height: 22px; filter: drop-shadow(0 1px 2px #000); transition: filter 0.2s; }
.hdr-nav a:hover, .hdr-drawer nav a:hover { color: #fff3d6; }
.hdr-nav a:hover img, .hdr-drawer nav a:hover img { filter: drop-shadow(0 1px 2px #000) drop-shadow(0 0 6px rgba(245, 196, 81, 0.45)); }
.hdr-nav a.on, .hdr-drawer nav a.on { color: var(--gold1); background: rgba(245, 196, 81, 0.1); box-shadow: inset 0 0 0 1px rgba(245, 196, 81, 0.25); }
.hdr-nav a.off { display: none; }
.hdr-end { flex: none; display: flex; align-items: center; gap: 8px; }
/* the round buttons: a dark well in a brass ring, the glyph ivory-brass; a hover lights the ring */
.hdr-lang, .hdr-soc, .hdr-burger {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; color: #e6d3a3; cursor: pointer;
  background: radial-gradient(circle at 50% 35%, #182033, #0a0e17 72%); border: 1px solid rgba(245, 196, 81, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.08), 0 2px 6px rgba(0, 0, 0, 0.45); font: 600 12px var(--sans); letter-spacing: 0.06em;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.hdr-soc svg { width: 20px; height: 20px; filter: drop-shadow(0 1px 1px #000); }
.hdr-lang:hover, .hdr-soc:hover, .hdr-burger:hover, .hdr.open .hdr-burger { color: var(--gold1); border-color: rgba(245, 196, 81, 0.75); box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.1), 0 0 12px rgba(245, 196, 81, 0.35); }
.hdr-burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.hdr-burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.hdr.more .hdr-burger { display: flex; }
/* the burger's drawer: on a wide screen only the links the bar let go, on a phone all of them and the play buttons */
.hdr-drawer { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: min(300px, 100%); padding: 10px; border-radius: 22px; background: rgba(9, 13, 22, 0.95); border: 1px solid var(--line2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.hdr.open .hdr-drawer { display: block; max-height: calc(100svh - 96px); overflow-y: auto; overscroll-behavior: contain; }
.hdr-drawer nav { display: flex; flex-direction: column; gap: 2px; }
.hdr-drawer nav a { padding: 11px 16px; font-size: 16px; }
.hdr-drawer nav a:not(.more) { display: none; }
.hdr-drawer-play { display: none; gap: 10px; margin-top: 8px; padding: 12px 4px 4px; border-top: 1px solid var(--line2); }
.hdr-drawer-play a { padding: 0 20px; font-size: 14px; }

/* ---- hero: the art fading into the page, then a clear gap before the content */
.hero { position: relative; min-height: min(62vh, 640px); display: flex; align-items: flex-end; padding: 140px 0 40px; margin-bottom: 40px; isolation: isolate; }
.hero.mini { min-height: 360px; padding-bottom: 20px; }
.hero.tall { min-height: min(94vh, 980px); padding-bottom: 90px; }
.hero-art { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(to bottom, #000 45%, rgba(0, 0, 0, 0.55) 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 45%, rgba(0, 0, 0, 0.55) 72%, transparent 100%); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 9, 15, 0.85), rgba(7, 9, 15, 0.25) 55%, transparent); }
.hero h1 { font-size: clamp(40px, 5.6vw, 84px); max-width: 19ch; background: linear-gradient(180deg, #fff1c9 0%, var(--gold1) 45%, #b98228 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.85)); padding-bottom: 6px; }
.hero .lead { margin-top: 18px; text-shadow: 0 2px 10px #000; }
/* the home page's trailer (tools/site/trailer.mjs): the poster under the film, a darkening from above, the page's own
   colour from below and a vignette, so the text stays readable and the film melts into the page */
.hero-film picture, .hero-film .hero-vid { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero-film .hero-vid { object-fit: cover; object-position: center 40%; opacity: 0; transition: opacity 0.9s ease; }
.hero-film .hero-vid.on { opacity: 1; }
.hero-film img { object-position: center 40%; }
@media (prefers-reduced-motion: reduce) { .hero-film .hero-vid { display: none; } }
.hero-film::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 58%, rgba(7, 9, 15, 0.45) 100%), linear-gradient(180deg, rgba(7, 9, 15, 0.35) 0%, rgba(7, 9, 15, 0.08) 26%, rgba(7, 9, 15, 0.12) 58%, rgba(7, 9, 15, 0.6) 84%, var(--bg) 100%); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; align-items: center; }

/* ---- section heads */
.sec-head { text-align: center; margin: 0 auto 48px; max-width: 760px; }
.sec-head .kicker { justify-content: center; }
.sec-head .divider { width: auto; height: 46px; max-width: 70%; object-fit: contain; margin: 18px auto 0; opacity: 0.9; }
.sec-head .lead { margin: 18px auto 0; }

/* ---- panels: dark wood and brass */
.panel { position: relative; background: linear-gradient(180deg, rgba(18, 25, 40, 0.94), rgba(11, 15, 25, 0.97)), url(/site/img/tex/wood.webp) 0 0 / 360px; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04); }

/* ---- stats */
.statbar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: -10px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(245, 196, 81, 0.18); background: linear-gradient(180deg, rgba(14, 19, 32, 0.9), rgba(9, 12, 20, 0.95)), url(/site/img/tex/wood.webp) 0 0 / 360px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.statbar-i { padding: 22px 12px; text-align: center; border-left: 1px solid var(--line); }
.statbar-i:first-child { border-left: 0; }
.statbar-i b { font-variant-numeric: lining-nums; display: block; font: 700 clamp(28px, 3.2vw, 44px)/1 var(--display); background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.statbar-i span { display: block; margin-top: 6px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ice); }

/* ---- features */
.feats { display: grid; gap: 64px; }
.feat { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.feat.flip .feat-art { order: 2; }
.feat-art { position: relative; border-radius: var(--r); aspect-ratio: 3 / 2; }
.feat-art > img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); border: 1px solid rgba(245, 196, 81, 0.18); }
.corner { position: absolute; width: 74px; height: 74px; background-size: contain; background-repeat: no-repeat; pointer-events: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7)); }
.corner.tl { top: -12px; left: -12px; background-image: url(/site/img/ui/corner_tl.webp); }
.corner.tr { top: -12px; right: -12px; background-image: url(/site/img/ui/corner_tr.webp); }
.corner.bl { bottom: -12px; left: -12px; background-image: url(/site/img/ui/corner_bl.webp); }
.corner.br { bottom: -12px; right: -12px; background-image: url(/site/img/ui/corner_br.webp); }
.feat-ico { width: 64px; height: 64px; margin-bottom: 14px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6)); }
.feat-txt h3 { margin-bottom: 14px; font-size: clamp(26px, 2.8vw, 38px); }
.feat-txt p { color: #c4bdae; font-size: 17px; }

/* ---- the parchment band */
.band { position: relative; isolation: isolate; }
.band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg), rgba(7, 9, 15, 0.82) 18%, rgba(7, 9, 15, 0.82) 82%, var(--bg)), url(/site/img/tex/parchment.webp) 0 0 / 520px; opacity: 0.9; }

/* ---- creature cards */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, calc((100% - 5 * 18px) / 6)); gap: 18px; overflow-x: auto; padding: 10px 4px 28px; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.strip::-webkit-scrollbar { display: none; }
.strip > * { scroll-snap-align: start; }
.ccard { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; color: var(--text); transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s; }
.ccard[hidden] { display: none; }
.ccard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--tint) 55%, transparent); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 28px color-mix(in srgb, var(--tint) 22%, transparent); color: var(--text); }
.ccard-art { position: relative; aspect-ratio: 1; display: grid; place-items: end center; padding: 12px 10px 0; background: radial-gradient(70% 60% at 50% 70%, color-mix(in srgb, var(--tint) 30%, transparent), transparent 70%), linear-gradient(180deg, #111829, #0a0e18); }
.ccard-art img { position: absolute; left: 6%; right: 6%; bottom: 0; width: 88%; height: 92%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.7)); transition: transform 0.45s var(--ease); }
.ccard:hover .ccard-art img { transform: scale(1.06); }
.tier-coin { position: absolute; z-index: 2; top: 10px; left: 10px; width: 46px; height: 46px; display: grid; place-items: center; padding: 0 0 1px 1px; background: url(/site/img/ui/coin.webp) center / contain no-repeat; color: #2a1a06; font: 700 19px/1 var(--sans); font-variant-numeric: lining-nums tabular-nums; text-shadow: 0 1px 0 rgba(255, 235, 190, 0.65); filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.6)); }
.ccard-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent); }
.ccard-name { font: 700 19px/1.15 var(--display); color: var(--gold1); min-height: 2.3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard-grp { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ccard-grp img { width: 16px; height: 16px; }
.ccard-stats { display: flex; gap: 12px; margin-top: auto; padding-top: 6px; font-size: 13px; color: #c8c0b0; }

/* ---- the bestiary's filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(14, 19, 32, 0.8); color: #cfc8b8; font: 500 14px var(--sans); cursor: pointer; transition: all 0.2s; }
.chip img { width: 18px; height: 18px; }
.chip i { font-style: normal; color: var(--muted); font-size: 12px; }
.chip:hover { border-color: color-mix(in srgb, var(--tint, var(--gold1)) 60%, transparent); color: #fff; }
.chip.on { color: #2a1a06; background: var(--gold); border-color: transparent; font-weight: 600; }
.chip.on i { color: rgba(42, 26, 6, 0.7); }
.filters2 { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; margin-bottom: 36px; }
.search { display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 48px; width: min(420px, 100%); border-radius: 999px; background: rgba(14, 19, 32, 0.9); border: 1px solid var(--line2); }
.search input { flex: 1; background: none; border: 0; color: var(--text); font: 400 15px var(--sans); outline: none; min-width: 0; }
.search:focus-within { border-color: rgba(245, 196, 81, 0.5); box-shadow: 0 0 0 4px rgba(245, 196, 81, 0.08); }
.tiers { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.coinbtn { display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0 0 1px 1px; border: 0; cursor: pointer; background: url(/site/img/ui/coin_iron.webp) center / contain no-repeat; color: #e6dcc6; font: 700 17px/1 var(--sans); font-variant-numeric: lining-nums tabular-nums; text-shadow: 0 1px 2px #000; transition: transform 0.2s; }
.coinbtn:hover { transform: scale(1.08); }
.coinbtn[aria-pressed='true'] { background-image: url(/site/img/ui/coin_hot.webp); color: #2a1a06; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---- a creature's page */
.cdet { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.cdet-art { position: sticky; top: 100px; }
.stage { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); background: radial-gradient(60% 55% at 50% 72%, color-mix(in srgb, var(--tint) 34%, transparent), transparent 72%), linear-gradient(180deg, #121a2c, #090c15); border: 1px solid var(--line); overflow: hidden; }
.stage::after { content: ''; position: absolute; left: 15%; right: 15%; bottom: 9%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent); }
.pose { position: absolute; inset: 6% 8% 8%; width: 84%; height: 86%; object-fit: contain; object-position: bottom; z-index: 1; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.7)); }
.pose.p1 { animation: breath 2.6s ease-in-out infinite alternate; opacity: 0; }
/* A figure's poses at one height (owner, 2026-10-21; shared/src/data/framefit.ts): a box round the poses as fitted,
   contained in the picture, its foot on the picture's; each pose set in it by per cent (inline). */
.fitbox { container-type: size; }
.fitstage { position: absolute; z-index: 1; left: 50%; bottom: var(--fb, 8%); transform: translateX(-50%); width: min(var(--fw, 84cqw), calc(86cqh * var(--r))); aspect-ratio: var(--r); }
.fitstage > img { position: absolute; max-width: none; object-fit: fill; }
@keyframes breath { 0%, 40% { opacity: 0; } 60%, 100% { opacity: 1; } }
.poses { display: flex; align-items: center; gap: 10px; margin-top: 14px; overflow-x: auto; }
.poses span { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ice); margin-right: 6px; }
.poses img { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: var(--card); border: 1px solid var(--line); padding: 4px; }
.cdet-name { font-size: clamp(38px, 5vw, 64px); background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 16px; }
.lore { font: italic 500 21px/1.5 var(--serif); color: #d6ccb4; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin: 26px 0 30px; background: var(--card); }
.stats .stat { box-shadow: 0 0 0 1px var(--line); }
.stats .stat { padding: 14px 16px; background: var(--card); }
.stat span { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ice); }
.stat b { font-variant-numeric: lining-nums; display: block; font: 700 24px/1.2 var(--display); color: #f2e6c8; margin-top: 2px; }
.stats.mini { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 14px 0; border-radius: 12px; }
.stats.mini .stat { padding: 8px 10px; }
.stats.mini .stat b { font-size: 18px; }
.stats.mini .stat span { font-size: 9px; letter-spacing: 0.08em; line-height: 1.25; min-height: 2.5em; }
.cdet-info h3, .capcard h3 { margin: 26px 0 12px; font-size: 26px; }
.abil { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.abil li { position: relative; padding: 12px 16px 12px 20px; border-radius: 14px; background: rgba(14, 19, 32, 0.8); border: 1px solid var(--line); }
.abil li::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--gold); }
.abil b { display: block; color: var(--gold1); font-weight: 600; }
.abil span { color: #c4bdae; font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 12px; border-radius: 999px; font-size: 13px; background: rgba(140, 195, 232, 0.08); color: var(--ice); border: 1px solid rgba(140, 195, 232, 0.2); }
.chiplink { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line2); color: var(--gold1); font-weight: 500; }
.chiplink img { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; background: #0a0e18; }
.back { margin-top: 36px; }

/* ---- a portrait in its ring (shared/src/data/portraitfit.ts avatarHtml, the game's own; owner, 2026-10-26: «все лица
   должны находиться четко во фрейме»): a square box that never shrinks; the hole, the portrait (its background, the face
   in the middle) and the ring are shares of its side, so they grow and shrink together at every size */
.pav { position: relative; display: inline-block; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: none; vertical-align: middle; line-height: 1; }
.pav.pav { flex: none !important; box-sizing: border-box !important; width: var(--pav, 48px) !important; height: var(--pav, 48px) !important; min-width: var(--pav, 48px) !important; min-height: var(--pav, 48px) !important; max-width: none !important; max-height: none !important; aspect-ratio: 1 !important; }
.pav > .pav-face { position: absolute; box-sizing: border-box; border-radius: 50%; background-color: #0a0e18; background-repeat: no-repeat; box-shadow: inset 0 0 calc(var(--pav, 48px) * 0.03) rgba(0, 0, 0, 0.45); }
.pav > .pav-ring { position: absolute; z-index: 1; display: block; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; pointer-events: none; filter: drop-shadow(0 calc(var(--pav, 48px) * 0.03) calc(var(--pav, 48px) * 0.05) rgba(0, 0, 0, 0.7)); }
.pav.pav-rim > .pav-face { box-shadow: 0 0 0 2px color-mix(in srgb, var(--tint, var(--gold2)) 80%, transparent), 0 3px 8px rgba(0, 0, 0, 0.6), inset 0 0 calc(var(--pav, 48px) * 0.03) rgba(0, 0, 0, 0.45); }
.pav.pav-bare > .pav-face { box-shadow: 0 0 0 2px color-mix(in srgb, var(--tint, var(--gold2)) 80%, transparent), 0 3px 8px rgba(0, 0, 0, 0.6); }
.pav > :not(.pav-face):not(.pav-ring) { z-index: 2; }

/* ---- captains */
.capstrip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; color: var(--text); }
.cap b { font: 700 20px/1.1 var(--display); color: var(--gold1); margin-top: 8px; }
.cap i { font-style: normal; font-size: 13px; color: var(--muted); }
.cap-ring { --pav: 150px; display: block; transition: transform 0.3s var(--ease); }
.cap:hover .cap-ring { transform: translateY(-4px); }
.cap-ring.big { --pav: 140px; position: absolute; left: -20px; bottom: -20px; }
.caps { display: grid; gap: 40px; }
.capcard { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; padding: 36px; scroll-margin-top: 110px; }
.capcard.flip .capcard-art { order: 2; }
.capcard-art { position: relative; min-height: 380px; border-radius: var(--r); background: radial-gradient(60% 60% at 50% 70%, rgba(245, 196, 81, 0.16), transparent 70%), #0a0e18; border: 1px solid var(--line); }
.capcard-art .fig { position: absolute; inset: 4% 8% 2%; width: 84%; height: 94%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.7)); }
.capcard h2 { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.epithet { font: italic 600 22px var(--serif); color: #d6ccb4; margin: 4px 0 16px; }
.passive { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin: 18px 0; border-radius: 14px; background: rgba(245, 196, 81, 0.07); border: 1px solid rgba(245, 196, 81, 0.2); }
.passive img { width: 28px; height: 28px; flex: none; }
.passive b { display: block; color: var(--gold1); }
.passive span { color: #c4bdae; font-size: 15px; }

/* ---- the fleet */
.ships { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.ship { display: flex; flex-direction: column; overflow: hidden; transition: transform 0.3s var(--ease), border-color 0.3s; }
.ship:hover { transform: translateY(-3px); border-color: rgba(245, 196, 81, 0.3); }
.ship.prem { border-color: rgba(245, 196, 81, 0.28); box-shadow: 0 0 30px rgba(245, 196, 81, 0.07); }
.ship-art { position: relative; height: 150px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 50%, #15304a, #070b14 75%), url(/site/img/tex/wood.webp) 0 0 / 300px; }
.ship-art img { position: absolute; left: 50%; top: 50%; height: 560px; width: auto; max-width: none; transform: translate(-50%, -50%) rotate(90deg) scale(0.44); transform-origin: center; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.85)); transition: transform 0.6s var(--ease); }
.ship:hover .ship-art img { transform: translate(-47%, -50%) rotate(90deg) scale(0.46); }
.ship-txt { padding: 16px 18px 18px; min-width: 0; }
.ship h3 { font-size: 24px; }
.ship .muted { font-size: 14px; margin: 6px 0 0; }
.trait { font-size: 14px; color: #c4bdae; margin: 0; }
.trait img { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.trait b { color: var(--gold1); }
.badge { display: inline-block; vertical-align: middle; padding: 3px 10px; border-radius: 999px; font: 600 10px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.badge.gold { background: var(--gold); color: #2a1a06; }

/* ---- the call to action */
.cta-band { margin: 40px 0 0; padding: 70px 0; background: linear-gradient(180deg, transparent, rgba(245, 196, 81, 0.05) 50%, transparent); }
.cta-in { display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; padding: 34px 40px; border-radius: var(--r-lg); border: 1px solid rgba(245, 196, 81, 0.22); background: linear-gradient(180deg, rgba(18, 25, 40, 0.95), rgba(10, 14, 23, 0.98)), url(/site/img/tex/wood.webp) 0 0 / 360px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.cta-in p { margin: 10px 0 0; color: #c4bdae; }
/* the final call's plates in one column of one width: play, play with VK, the forum */
.cta-in .hero-cta { display: grid; gap: 14px; margin-top: 0; }
.spin { width: 110px; height: 110px; animation: spin 24s linear infinite; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.7)); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- footer */
.ftr { margin-top: 80px; padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 14, 23, 0.6), #05070b); }
.ftr-in { display: grid; justify-items: center; text-align: center; gap: 14px; }
.ftr-in img { height: 80px; width: auto; opacity: 0.9; }
.ftr p { color: var(--muted); max-width: 560px; margin: 0; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; }
.ftr nav a { color: #cfc8b8; }
.ftr small { color: #5d6675; }

/* ---- reveal on scroll (site.js adds .in) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .spin, .pose.p1 { animation: none; }
  .ccard, .ccard img, .btn-gold, .btn-oak { transition: none; }
}

/* ---- phones and tablets */
@media (max-width: 1100px) {
  .capstrip { grid-template-columns: repeat(3, 1fr); }
  .statbar { grid-template-columns: repeat(3, 1fr); }
  .statbar-i:nth-child(4) { border-left: 0; }
  .statbar-i:nth-child(n + 4) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hdr { top: 8px; padding: 0 8px; }
  .hdr-pill { gap: 8px; padding: 4px 6px 4px 12px; justify-content: space-between; }
  .hdr-end { margin-left: auto; gap: 6px; }
  .hdr-logo img { height: 38px; }
  .hdr-nav, .hdr-soc { display: none; }
  .hdr-burger { display: flex; }
  .hdr-drawer { left: 0; width: auto; }
  .hdr.open .hdr-drawer { max-height: calc(100svh - 76px); }
  .hdr-drawer nav a:not(.more) { display: flex; }
  .hdr-drawer-play { display: grid; }
  .feat, .feat.flip, .cdet, .capcard { grid-template-columns: 1fr; gap: 26px; }
  .feat.flip .feat-art, .capcard.flip .capcard-art { order: 0; }
  .cdet-art { position: static; }
  .cta-in { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .sec { padding: 52px 0; }
  .feats { gap: 52px; }
  .corner { width: 54px; height: 54px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .hero { padding-top: 110px; min-height: 54vh; }
  .hero.tall { min-height: 88vh; padding-bottom: 60px; }
  .hero-cta .btn-gold, .hero-cta .btn-oak { width: 100%; }
  .hero-cta .btn-gold.lg { padding: 0 10px; letter-spacing: 0.08em; }
  .cta-in { padding: 28px 16px; }
  .cta-in .hero-cta { width: 100%; }
  .hdr-end .btn-gold { display: none; }
  .cgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .strip { grid-auto-columns: 46%; }
  .ccard-name { font-size: 17px; }
  .capstrip { grid-template-columns: repeat(2, 1fr); }
  .cap-ring { --pav: 120px; }
  .statbar { grid-template-columns: repeat(2, 1fr); }
  .statbar-i:nth-child(odd) { border-left: 0; }
  .statbar-i:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats.mini { grid-template-columns: repeat(3, 1fr); }
  .ships { grid-template-columns: 1fr; }
  .capcard { padding: 20px; }
  .capcard-art { min-height: 300px; }
}

/* ---- the features as full-width banners that slide over one another as the page scrolls (site.js sets --p: how far
   the next banner has come over this one) */
.feats-head { padding-bottom: 8px; }
.trailer { position: relative; max-width: 960px; margin: 28px auto 0; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(245, 196, 81, 0.28); background: #05070c; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stack { position: relative; }
.bnr { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 84px 14px 14px; display: flex; }
.bnr-card {
  position: relative; flex: 1; overflow: hidden; border-radius: 28px; isolation: isolate;
  border: 1px solid rgba(245, 196, 81, 0.22); box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.75), 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: scale(calc(1 - 0.07 * var(--p, 0))); transform-origin: 50% 0; filter: brightness(calc(1 - 0.6 * var(--p, 0))); will-change: transform, filter;
}
.bnr-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.12 - 0.12 * var(--e, 1))); transition: none; }
.bnr-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 9, 15, 0.94) 0%, rgba(7, 9, 15, 0.7) 34%, rgba(7, 9, 15, 0.1) 66%, transparent), linear-gradient(0deg, rgba(7, 9, 15, 0.85), transparent 45%); }
.bnr.flip .bnr-shade { background: linear-gradient(270deg, rgba(7, 9, 15, 0.94) 0%, rgba(7, 9, 15, 0.7) 34%, rgba(7, 9, 15, 0.1) 66%, transparent), linear-gradient(0deg, rgba(7, 9, 15, 0.85), transparent 45%); }
.bnr .corner { width: 96px; height: 96px; }
.bnr .corner.tl { top: 16px; left: 16px; }
.bnr .corner.tr { top: 16px; right: 16px; }
.bnr .corner.bl { bottom: 16px; left: 16px; }
.bnr .corner.br { bottom: 16px; right: 16px; }
.bnr-txt { position: absolute; left: 0; right: 0; bottom: clamp(48px, 11vh, 120px); }
.bnr-in { max-width: 720px; }
.bnr-in p:not(.kicker) { max-width: 600px; }
.bnr.flip .bnr-in { margin-left: auto; }
.bnr-txt .kicker img { width: 28px; height: 28px; filter: drop-shadow(0 2px 4px #000); }
.bnr-txt h3 { font-size: clamp(34px, 4.6vw, 68px); margin: 6px 0 18px; background: linear-gradient(180deg, #fff1c9, var(--gold1) 50%, #b98228); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.9)); }
.bnr-txt p:not(.kicker) { font-size: clamp(16px, 1.4vw, 20px); color: #ddd5c3; text-shadow: 0 2px 8px #000; }
@media (max-width: 900px) {
  .bnr { padding: 70px 8px 8px; }
  .bnr-card { border-radius: 22px; }
  .bnr .corner { width: 60px; height: 60px; }
  .bnr-shade, .bnr.flip .bnr-shade { background: linear-gradient(0deg, rgba(7, 9, 15, 0.96) 0%, rgba(7, 9, 15, 0.82) 42%, rgba(7, 9, 15, 0.1) 75%, transparent); }
  .bnr.flip .bnr-in { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bnr { position: relative; height: auto; min-height: 86vh; }
  .bnr-card { transform: none; filter: none; }
  .bnr-art { transform: none; }
}

/* kit pictures keep their proportions in any box */
img[src*="/site/img/ico/"], img[src*="/site/img/rank/"], img[src*="/site/img/medal/"] { object-fit: contain; }

/* ---- the captains' page: two columns of upright cards (owner: «в два ряда») */
.caps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.capcard, .capcard.flip { grid-template-columns: 1fr; gap: 0; padding: 0; overflow: hidden; }
.capcard.flip .capcard-art { order: 0; }
.capcard-art { min-height: 0; height: 340px; border-radius: 0; border: 0; border-bottom: 1px solid rgba(245, 196, 81, 0.18); background: radial-gradient(55% 70% at 50% 85%, rgba(245, 196, 81, 0.2), transparent 70%), linear-gradient(180deg, #121a2c, #0a0e18); }
.capcard-art .fig { inset: 6% 10% 0; width: 80%; height: 94%; }
.capcard .cap-ring.big { --pav: 120px; left: 20px; bottom: -14px; z-index: 2; }
.capcard-txt { padding: 30px 28px 28px; }
.capcard h2 { font-size: clamp(30px, 2.8vw, 42px); }
.capcard .abil { gap: 8px; }
@media (max-width: 900px) {
  .caps { grid-template-columns: 1fr; }
  .capcard-art { height: 300px; }
  .capcard .cap-ring.big { --pav: 100px; }
  .capcard-txt { padding: 26px 18px 20px; }
}

/* ---- the abilities' own icons from the game, in brass frames */
.abil li.ico { display: flex; gap: 14px; align-items: flex-start; padding: 12px 16px 12px 12px; }
.abil li.ico::before { display: none; }
.abil-ico { flex: none; width: 52px; height: 52px; padding: 2px; border-radius: 12px; background: linear-gradient(180deg, #e9c46a, #8a6424); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 240, 200, 0.6); }
.abil-ico img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.abil-tx { min-width: 0; }
.passive .abil-ico { width: 48px; height: 48px; }
.passive > img { display: none; }

/* ---- the footer's legal line (the shop's terms and refunds) */
.ftr nav.ftr-legal a { color: var(--muted); font-size: 13px; }
.ftr nav.ftr-legal a:hover { color: var(--ice); }
.ftr p.ftr-req { font-size: 12.5px; line-height: 1.6; color: #6f7888; max-width: 640px; }
.ftr p.ftr-req a { color: var(--muted); }
.ftr p.ftr-req a:hover { color: var(--ice); }
/* seven links in the pill (the rating and the shop joined, 2026-10-20): tighter before links leave for the drawer */
@media (max-width: 1240px) and (min-width: 901px) {
  .hdr-pill { gap: 10px; padding-left: 14px; }
  .hdr-nav a { padding: 9px 10px; gap: 6px; font-size: 14px; }
  .hdr-nav a img { width: 18px; height: 18px; }
}
