/* «Дружина» site — light fairy-tale palette: Rubik body, Yeseva One display titles in a refined gold gradient. */
:root {
  --bg: #ffffff; --paper: #ffffff; --soft: #f5f7fa; --ink: #1f2430; --muted: #5d6573;
  --gold: #ffce54; --gold-d: #c98a1b; --outline: #2a1406; --red: #b3261e; --red-d: #8a1a14;
  --line: #e6e9ef; --shadow: 0 6px 22px rgba(20, 30, 50, .10);
  --display: 'Yeseva One', Georgia, 'Times New Roman', serif;
  --gold-grad: linear-gradient(180deg, #f3c552 0%, #d99a2b 48%, #9c5c14 100%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 Rubik, system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* display titles: Yeseva One, gold gradient fill, thin warm edge + soft glow (no fat outline) */
.title { font-family: var(--display); font-weight: 400; letter-spacing: .015em; line-height: 1.1; color: var(--gold-d);
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(120, 66, 10, .45)) drop-shadow(0 4px 14px rgba(217, 154, 43, .28)); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 30px; border-radius: 14px; background: linear-gradient(#d23a2f, var(--red-d));
  color: #fff; font-weight: 700; font-size: 19px; text-decoration: none; border: 2px solid var(--gold); box-shadow: 0 5px 0 #5c110c, var(--shadow); }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(2px); box-shadow: 0 3px 0 #5c110c; }
.note { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }

section { padding: 56px 0; }
h2.title { font-size: clamp(34px, 8.5vw, 52px); text-align: center; margin: 0 0 28px; }
.card { display: grid; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 25%; background: #eef1f5; }
.card div { padding: 18px 20px 22px; }
.card h3 { margin: 0 0 6px; font-size: 22px; color: var(--red-d); }
.card p { margin: 0; color: var(--muted); }

footer { background: var(--soft); color: var(--muted); border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: center; text-align: center; }
footer a { color: var(--red-d); }
.age { display: inline-block; border: 2px solid var(--gold-d); color: var(--gold-d); border-radius: 8px; padding: 0 7px; font-weight: 700; }

/* text pages (privacy / terms / 404) */
.doc { max-width: 780px; }
.doc h1 { color: var(--red-d); font-size: clamp(26px, 6vw, 34px); line-height: 1.2; }
.doc h2 { font-size: 20px; margin-top: 1.6em; color: var(--red-d); }
.doc table { border-collapse: collapse; width: 100%; background: var(--paper); }
.doc td, .doc th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.draft { background: #fff8e1; border: 1px dashed var(--gold-d); border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.nf { text-align: center; padding: 18vh 16px; }
.nf .title { font-size: 110px; margin: 0; }

/* top nav */
.topnav { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 0 var(--line), 0 4px 14px rgba(20,30,50,.06); }
.topnav .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-top: 8px; padding-bottom: 8px; }
.topnav .brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.topnav .brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--gold-d); }
.topnav .brand span { font-family: var(--display); font-size: 25px; line-height: 1; letter-spacing: .02em; color: var(--red-d); padding-bottom: 2px; }
.topnav .links { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 -8px; }
.topnav .links a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 5px 8px; border-radius: 9px; white-space: nowrap; }
.topnav .links a:hover { background: var(--soft); }
.topnav .links a.on { background: var(--gold); color: var(--outline); }
@media (min-width: 760px) { .topnav .links { margin: 0 0 0 auto; } }
/* Language switch RU / EN (partials/head.ejs): styled like the nav links; next to the brand on phones, after the links on desktop. */
.topnav .langs { order: 1; margin-left: auto; display: inline-flex; gap: 2px; }
.topnav .links { order: 2; }
.topnav .langs a, .topnav .langs b { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 5px 8px; border-radius: 9px; white-space: nowrap; }
.topnav .langs a:hover { background: var(--soft); }
.topnav .langs b { background: var(--gold); color: var(--outline); }
@media (min-width: 760px) { .topnav .links { order: 0; } .topnav .langs { order: 0; margin-left: 0; padding-left: 8px; border-left: 1.5px solid var(--line); } }

/* encyclopedia */
.page { padding-top: 26px; padding-bottom: 48px; }
.page > h1.title { font-size: clamp(36px, 9vw, 54px); margin: 0 0 8px; }
.lead { color: var(--muted); max-width: 46em; margin: 0 0 22px; }
.muted { color: var(--muted); }
.crumbs { margin: 0 0 12px; }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 18px 0; box-shadow: var(--shadow); }
.box h2 { margin: 0 0 8px; font-size: 21px; color: var(--red-d); }
.box p { margin: 6px 0; }
.num { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--gold); color: var(--outline); font-weight: 900; font-size: .85em; }
.rar { display: inline-block; padding: 0 7px; border-radius: 7px; background: var(--rc, #888); color: #fff; font-weight: 900; font-size: 13px; line-height: 1.6; text-shadow: 0 1px 1px rgba(0,0,0,.4); vertical-align: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chips a { padding: 6px 12px; border-radius: 20px; border: 2px solid var(--rc, var(--gold-d)); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; background: var(--paper); }
.chips a.on { background: var(--rc, var(--gold)); color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.4); }
.chips a:first-child.on { color: var(--outline); text-shadow: none; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.hcard { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #eef1f5; border: 3px solid var(--rc); text-decoration: none; color: #fff; box-shadow: var(--shadow); }
.hcard img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.hcard .rar { position: absolute; top: 6px; left: 6px; }
.hcard .hname { position: absolute; left: 0; right: 0; bottom: 22px; padding: 18px 8px 0; font-weight: 700; font-size: 16px; line-height: 1.2; background: linear-gradient(transparent, rgba(20,10,4,.85) 40%); text-shadow: 0 1px 2px #000; }
.hcard .hmeta { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 8px 4px; font-size: 12px; background: rgba(20,10,4,.85); color: #f3e6c8; }
.hcard:hover { transform: translateY(-2px); }
.noart { display: grid; place-items: center; aspect-ratio: 3 / 4; font-size: 48px; color: var(--gold); }
.hero-page { display: grid; gap: 22px; }
.hero-page .art img { width: 100%; border-radius: 18px; border: 4px solid var(--rc); box-shadow: var(--shadow); }
.hero-page h1.title { font-size: clamp(34px, 9vw, 52px); margin: 0; }
.htitle { margin: 4px 0 10px; font-weight: 700; color: var(--red-d); font-size: 19px; }
.tags { margin: 0 0 12px; }
.stars { color: var(--gold-d); letter-spacing: 1px; }
.el { font-weight: 700; color: var(--ink); border-bottom: 3px solid var(--ec); }
.lore { margin: 0; padding: 4px 16px; border-left: 4px solid var(--gold); font-style: italic; color: var(--muted); }
.lore p { margin: 6px 0; }
.eras { display: grid; gap: 18px; }
.era img { aspect-ratio: 16 / 9; }
.era h2 { margin: 0 0 4px; font-size: 22px; color: var(--red-d); }
.era p { margin: 4px 0; color: var(--ink); }
.era p.muted { color: var(--muted); }
.tscroll { overflow-x: auto; }
.tbl { border-collapse: collapse; width: 100%; font-size: 15px; }
.tbl th, .tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl th { color: var(--muted); font-weight: 700; font-size: 13px; }
.tbl td:nth-child(n+2), .tbl th:nth-child(n+2) { text-align: right; }
.tbl small { display: block; color: var(--muted); font-size: 13px; }
.bosses { display: grid; gap: 18px; }
.boss .bimg { background: radial-gradient(circle at 50% 60%, #ffffff, #e9edf3 75%); display: grid; place-items: center; padding: 16px; }
.boss .bimg img { width: auto; max-height: 240px; aspect-ratio: auto; background: none; object-fit: contain; }
.boss h2 { margin: 0; font-size: 24px; color: var(--red-d); }
.moves { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.igrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.item { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 12px; border: 1px solid var(--line); border-left: 5px solid var(--rc); background: #fff; }
.item img { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 8px; background: #eef1f5; }
.item .d, .item .st { display: block; font-size: 14px; line-height: 1.4; }
.item .st { margin-top: 3px; color: var(--ink); }
@media (min-width: 760px) {
  .hero-page { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .eras { grid-template-columns: 1fr 1fr; }
  .bosses { grid-template-columns: repeat(3, 1fr); }
  .hgrid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}

/* ───────────── home page ───────────── */
.eyebrow { margin: 0 0 6px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
.eyebrow::before, .eyebrow::after { content: "◆"; font-size: 8px; vertical-align: 2px; margin: 0 10px; color: var(--gold-d); }
.lead.center { text-align: center; margin: -12px auto 28px; }
.more { font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* top: airy sky, hero trio, logo */
.top { position: relative; overflow: hidden; background: linear-gradient(180deg, #bfe0ff 0, #def0ff 22%, #f4f9ff 38%, #fff 46%); }
.sky { position: absolute; left: 0; right: 0; top: 0; height: 470px; pointer-events: none; overflow: hidden;
  -webkit-mask: linear-gradient(#000 65%, transparent); mask: linear-gradient(#000 65%, transparent); }
.sky i { position: absolute; display: block; }
.rays { left: 50%; top: 24%; width: 1400px; height: 1400px; margin: -700px 0 0 -700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 170, .95) 0, rgba(255, 226, 140, .55) 12%, rgba(255, 255, 255, 0) 38%),
    repeating-conic-gradient(rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, .5) 4deg, rgba(255, 255, 255, 0) 9deg, rgba(255, 255, 255, 0) 18deg);
  -webkit-mask: radial-gradient(circle, #000 0, rgba(0,0,0,.45) 18%, transparent 38%); mask: radial-gradient(circle, #000 0, rgba(0,0,0,.45) 18%, transparent 38%);
  animation: spin 120s linear infinite; }
.cloud { border-radius: 50%; background: radial-gradient(closest-side, #fff 30%, rgba(255,255,255,.7) 60%, rgba(255,255,255,0)); animation: drift 38s ease-in-out infinite alternate; }
.c1 { width: 420px; height: 120px; left: -120px; top: 54%; }
.c2 { width: 360px; height: 100px; right: -100px; top: 38%; animation-duration: 46s; animation-direction: alternate-reverse; }
.c3 { width: 520px; height: 140px; left: 30%; top: 72%; opacity: .9; animation-duration: 54s; }
.spark { left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px 2px rgba(255, 220, 120, .9), 0 0 14px 4px rgba(255, 255, 255, .7); opacity: 0; animation: twinkle 4.2s ease-in-out var(--d) infinite; }
.top-in { position: relative; display: grid; padding-top: 6px; padding-bottom: 8px; }
.stage { position: relative; height: 410px; margin: 0 -16px; }
.halo { position: absolute; left: 50%; bottom: 40px; width: 380px; height: 380px; margin-left: -190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 110, .55), rgba(255, 214, 110, 0) 68%); }
.stage img, .stage picture { position: absolute; bottom: 0; }
.stage img { height: 100%; width: auto; max-width: none; }
.stage .c-m { left: 50%; height: 100%; transform: translateX(-50%); z-index: 2; }
.stage .c-m img { position: static; } /* без filter: drop-shadow+mask на GPU рисовал рамку вокруг картинки */
.stage .c-l, .stage .c-r { height: 74%; bottom: 30px; z-index: 1; }
.stage .c-l { left: 50%; margin-left: -190px; }
.stage .c-r { left: 50%; margin-left: -5px; }
.stage img { -webkit-mask: linear-gradient(#000 82%, transparent 98%); mask: linear-gradient(#000 82%, transparent 98%); }
.pitch { position: relative; z-index: 4; text-align: center; margin-top: -54px; }
.kicker { display: inline-block; margin: 0 0 8px; padding: 4px 12px; border-radius: 99px; background: #fff; border: 1px solid #f0dcae;
  color: var(--red-d); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 2px 10px rgba(201, 138, 27, .15); }
.logo { margin: 0; font-size: clamp(64px, 18vw, 106px); letter-spacing: .01em; line-height: 1; padding-bottom: .06em; }
.top .sub { margin: 2px 0 0; font-size: clamp(15px, 4vw, 19px); font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--red-d); }
.top .sub::before, .top .sub::after { content: ""; display: inline-block; width: 28px; height: 2px; margin: 0 12px; vertical-align: 5px; background: linear-gradient(90deg, transparent, var(--gold-d)); }
.top .sub::after { background: linear-gradient(90deg, var(--gold-d), transparent); margin-left: 4px; }
.top .tag { margin: 14px auto 22px; max-width: 32em; color: var(--muted); }
.acts { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: center; }
.btn-store svg { flex: 0 0 auto; }
.btn-ghost { font-weight: 700; color: var(--ink); text-decoration: none; padding: 12px 18px; border-radius: 14px; border: 2px solid #d7dde7; background: rgba(255,255,255,.8); }
.btn-ghost:hover { border-color: var(--gold-d); }

/* counters */
.stats { list-style: none; margin: 6px 0 0; padding: 14px 6px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; background: #fff;
  border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgba(20, 30, 50, .08); }
.stats li { text-align: center; padding: 8px 4px; }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1.05;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold-d); }
.stats span { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* roster strip */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sec-head .eyebrow, .sec-head h2.title { text-align: left; }
.sec-head .eyebrow::before { display: none; }
.sec-head .eyebrow::after { margin-right: 0; }
.sec-head h2.title { margin-bottom: 10px; }
.arrows { display: none; gap: 8px; margin-bottom: 18px; }
.arrows button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 28px; line-height: 1;
  cursor: pointer; box-shadow: var(--shadow); padding-bottom: 4px; }
.arrows button:hover { border-color: var(--gold-d); color: var(--red-d); }
.roster, .timeline { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; overscroll-behavior-x: contain;
  padding: 6px 16px 20px; margin: 0; list-style: none; scrollbar-width: none; -ms-overflow-style: none; }
.roster::-webkit-scrollbar, .timeline::-webkit-scrollbar { display: none; }
.roster > *, .timeline > * { scroll-snap-align: start; }
.rcard { position: relative; flex: 0 0 142px; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #eef1f5; border: 3px solid var(--rc);
  box-shadow: 0 6px 16px rgba(20, 30, 50, .12); color: #fff; text-decoration: none; transition: transform .2s; }
.rcard:hover { transform: translateY(-3px); }
.rcard img { width: 100%; height: 100%; object-fit: cover; }
.rcard .rar { position: absolute; top: 6px; left: 6px; }
.rname { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 8px 7px; font-weight: 700; font-size: 14px; line-height: 1.2;
  background: linear-gradient(rgba(20, 10, 4, 0), rgba(20, 10, 4, .85) 50%); text-shadow: 0 1px 2px #000; }
.more-card { display: grid; place-items: center; text-align: center; border-color: var(--gold-d); background: linear-gradient(160deg, #fff7df, #ffe6a6); }
.more-card span { font-family: var(--display); font-size: 20px; line-height: 1.25; color: var(--red-d); }

/* features with phones */
.feats { background: linear-gradient(180deg, #fff 0, #f3f7fc 18%, #f3f7fc 82%, #fff 100%); }
.feat { display: grid; gap: 26px; align-items: center; margin: 0 auto 48px; max-width: 980px; }
.feat:last-child { margin-bottom: 0; }
.phone { position: relative; z-index: 0; width: 220px; margin: 0 auto; padding: 9px; border-radius: 36px; background: linear-gradient(145deg, #3a4150, #161a22);
  box-shadow: 0 14px 30px rgba(20, 30, 50, .20), inset 0 0 0 1.5px rgba(255, 255, 255, .14); }
.phone img { width: 100%; aspect-ratio: 9 / 16; border-radius: 28px; object-fit: cover; background: #222; }
.ftext h3 { margin: 6px 0 8px; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 6.5vw, 34px); line-height: 1.15; color: var(--red-d); }
.ftext p { margin: 0 0 12px; color: var(--muted); }
.ficon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; font-size: 24px; color: var(--outline);
  background: linear-gradient(145deg, #ffe08a, #f2b233); box-shadow: 0 6px 16px rgba(201, 138, 27, .35); }
.ticks { list-style: none; margin: 0 0 14px; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin: 6px 0; font-weight: 700; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; color: #fff; background: var(--red); }

/* eras timeline */
.eras-sec .lead { margin-bottom: 16px; }
.ecard { position: relative; flex: 0 0 236px; }
.ecard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; box-shadow: 0 8px 20px rgba(20, 30, 50, .16); background: #e9edf3; }
.ecard::after { content: ""; position: absolute; left: 18px; right: -12px; top: calc(236px * 9 / 16 + 21px); height: 2px; z-index: -1;
  background: repeating-linear-gradient(90deg, var(--gold-d) 0 6px, transparent 6px 11px); }
.ecard:last-child::after { right: 50%; }
.timeline { position: relative; z-index: 0; }
.enum { position: relative; display: grid; place-items: center; width: 38px; height: 38px; margin-top: 2px; border-radius: 50%; border: 3px solid #fff;
  font-family: var(--display); font-size: 15px; color: var(--outline); background: linear-gradient(145deg, #ffe08a, #e6a933); box-shadow: 0 3px 8px rgba(201, 138, 27, .4); }
.etitle { display: block; margin-top: 6px; font-weight: 700; line-height: 1.3; }
.eras-sec .more { display: inline-block; margin-top: 4px; }

/* lair teaser */
.lair-sec { background: radial-gradient(ellipse at 80% 20%, #ffe8d6 0, rgba(255, 232, 214, 0) 55%), linear-gradient(160deg, #f4f0ff 0%, #fff6ef 100%); }
.lair { display: grid; gap: 28px; align-items: center; }
.ltext { text-align: center; }
.ltext p:not(.eyebrow) { color: var(--muted); margin: 0 auto 18px; max-width: 30em; }
.tiers { display: flex; justify-content: center; align-items: flex-end; gap: 5px; height: 46px; margin: 0 0 24px; }
.tiers i { width: 14px; border-radius: 4px; background: linear-gradient(#ffd36b, #e0702a); }
.tiers i:nth-child(n+6) { background: linear-gradient(#f07a4a, #a3201a); }
.tiers i:nth-child(n+9) { background: linear-gradient(#b65cff, #4a1a8a); }
.tiers i:nth-child(1) { height: 30%; } .tiers i:nth-child(2) { height: 37%; } .tiers i:nth-child(3) { height: 44%; } .tiers i:nth-child(4) { height: 51%; }
.tiers i:nth-child(5) { height: 58%; } .tiers i:nth-child(6) { height: 65%; } .tiers i:nth-child(7) { height: 72%; } .tiers i:nth-child(8) { height: 79%; }
.tiers i:nth-child(9) { height: 88%; } .tiers i:nth-child(n+10) { height: 100%; }
.bosses-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bcard { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 6px 12px; border-radius: 18px; background: rgba(255, 255, 255, .85);
  border: 1px solid #ece4f5; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .2s; }
.bcard:hover { transform: translateY(-3px); }
.bcard img { width: 100%; height: 130px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(40, 20, 60, .25)); }
.bcard b { margin-top: 6px; font-family: var(--display); font-weight: 400; font-size: 16px; line-height: 1.2; color: var(--red-d); }
.bcard small { display: none; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 3px; }

/* final call */
.final { position: relative; overflow: hidden; text-align: center; padding: 72px 0 80px;
  background: radial-gradient(ellipse at 50% 115%, #ffd98a 0, rgba(255, 217, 138, 0) 60%), linear-gradient(#fff, #fff7e8); }
.final .wrap { position: relative; z-index: 1; max-width: 620px; }
.final p { margin: 0 0 24px; color: var(--muted); }
.final .f-l, .final .f-r { display: none; position: absolute; bottom: -10px; height: 360px; width: auto; max-width: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translateX(80px); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }

@media (min-width: 560px) {
  .rcard { flex-basis: 160px; }
  .bcard small { display: block; }
}
@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(4, 1fr); padding: 18px 10px; }
  .stats li + li { border-left: 1px solid var(--line); }
  .stats b { font-size: 54px; }
  .arrows { display: flex; }

  .rcard { flex-basis: 176px; }
  .ecard { flex-basis: 280px; }
  .ecard::after { top: calc(280px * 9 / 16 + 21px); }
  .feat { grid-template-columns: 300px 1fr; gap: 64px; }
  .feat.rev { grid-template-columns: 1fr 300px; }
  .feat.rev .phone { order: 2; }
  .phone { width: 260px; }
  .lair { grid-template-columns: 1fr 1.25fr; gap: 40px; }
  .ltext { text-align: left; }
  .ltext .eyebrow, .ltext h2.title { text-align: left; }
  .ltext .eyebrow::before { display: none; }
  .ltext .eyebrow::after { margin-right: 0; }
  .tiers { justify-content: flex-start; }
  .bcard img { height: 190px; }
  .bcard b { font-size: 19px; }
}
@media (min-width: 900px) {
  .top { background: linear-gradient(180deg, #bfe0ff 0%, #def0ff 38%, #f6faff 72%, #fff 90%); }
  .top-in { grid-template-columns: 1fr 1fr; align-items: center; min-height: 600px; padding-top: 0; }
  .pitch { order: -1; margin-top: 0; text-align: left; padding: 40px 24px 60px 0; }
  .acts { justify-content: flex-start; }
  .top .tag { margin-left: 0; }
  .top .sub::before { display: none; }
  .stage { height: 600px; margin: 0; }
  .halo { width: 560px; height: 560px; margin-left: -280px; bottom: 60px; }
  .stage .c-m { left: 57%; }
  .stage .c-l { margin-left: -250px; }
  .stage .c-r { margin-left: 30px; }
  .stage .c-l, .stage .c-r { height: 76%; bottom: 40px; }
  .sky { height: auto; bottom: 0; -webkit-mask: none; mask: none; }
  .rays { left: 72%; top: 34%; }
  .final .f-l, .final .f-r { display: block; }
  .final .f-l { left: max(0px, calc(50% - 600px)); }
  .final .f-r { right: max(0px, calc(50% - 600px)); }
}
@media (prefers-reduced-motion: reduce) {
  .rays, .cloud, .spark { animation: none !important; }
  .spark { opacity: .8; }
  .rcard, .bcard { transition: none; }
}

/* лента героев: автопрокрутка без привязки к карточкам + мягкое затухание по краям */
.roster.auto { scroll-snap-type: none; scroll-behavior: auto; }
/* ленты героев и эпох — в той же колонке, что и контент (не на всю ширину окна), мягкие края */
.roster, .timeline { max-width: 1100px; margin-left: auto; margin-right: auto; }
.roster, .timeline { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }

/* ───────────── «Вести» (/news, блок на главной) ───────────── */
.ngrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ncard { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .2s; }
.ncard:hover { transform: translateY(-3px); }
.nimg { display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(160deg, #fff7df, #ffe6a6); }
.nimg img { width: 100%; height: 100%; object-fit: cover; }
.nimg i { font-style: normal; font-size: 40px; color: var(--gold-d); }
.nbody { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 18px; }
.nmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 14px; color: var(--muted); }
.ntag { display: inline-block; padding: 1px 10px; border-radius: 99px; background: var(--kc, var(--red)); color: #fff; font-weight: 700; font-size: 13px; line-height: 1.6;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.npin { font-size: 13px; }
.ntitle { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.2; color: var(--red-d); }
.nsum { color: var(--muted); font-size: 15px; line-height: 1.5; }
.npager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; font-weight: 700; }
.npager a { text-decoration: none; padding: 8px 14px; border-radius: 12px; border: 2px solid #d7dde7; color: var(--ink); background: #fff; }
.npager a:hover { border-color: var(--gold-d); }
.news-sec { padding-top: 40px; padding-bottom: 8px; }
.news-sec .sec-head { margin-bottom: 8px; }
.news-sec .sec-head .more { margin-bottom: 22px; white-space: nowrap; }
.npost { max-width: 780px; }
.npost h1.title { font-size: clamp(32px, 8vw, 48px); margin: 8px 0 10px; }
.nlead { font-size: 19px; color: var(--muted); margin: 0 0 18px; }
.ncover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); background: #eef1f5; margin: 0 0 8px; }
.nbody-text h2 { font-size: 22px; color: var(--red-d); margin: 1.4em 0 .4em; }
.nbody-text ul, .nbody-text ol { padding-left: 24px; }
.nbody-text li { margin: 4px 0; }
.nhero { display: flex; align-items: center; gap: 14px; margin: 22px 0 6px; padding: 10px 16px 10px 10px; border-radius: 16px; border: 1px solid #f0dcae;
  background: linear-gradient(160deg, #fff, #fff7df); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.nhero img { width: 64px; height: 84px; object-fit: cover; border-radius: 10px; border: 2px solid var(--kc); flex: 0 0 auto; }
.nhero > span:not(.ngo) { display: flex; flex-direction: column; line-height: 1.3; }
.nhero small { color: var(--muted); font-size: 13px; }
.nhero b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--red-d); }
.nhero .ngo { margin-left: auto; font-size: 26px; color: var(--gold-d); }
.nplay { margin: 26px 0 0; }
.nmore { padding: 44px 0 0; }
.nmore h2.title { text-align: left; font-size: clamp(28px, 7vw, 38px); margin-bottom: 18px; }
@media (min-width: 760px) { .news-sec .ngrid, .nmore .ngrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 759px) {
  /* главная, телефон: компактные строки вместо высоких карточек */
  .news-sec .ngrid { gap: 10px; }
  .news-sec .ncard { flex-direction: row; border-radius: 14px; }
  .news-sec .nimg { flex: 0 0 112px; aspect-ratio: auto; min-height: 100%; }
  .news-sec .nbody { padding: 10px 12px 12px; gap: 3px; min-width: 0; }
  .news-sec .ntitle { font-size: 18px; }
  .news-sec .nsum { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .news-sec .nmeta { font-size: 13px; }
}
.doc td.price-cell { text-align: right; white-space: nowrap; font-weight: 700; }
/* web shop (T12 skeleton) */
.shop .lede { color: var(--muted); font-size: 18px; }
.shop-soon { display: grid; gap: 6px; padding: 16px 20px; border-radius: 16px; background: #f3fbf8; border: 1px solid #bfe6da; margin: 18px 0 8px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.shop-item { position: relative; display: grid; gap: 8px; align-content: start; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.shop-item h3 { margin: 0; font-size: 20px; }
.shop-grant { margin: 0; font-weight: 700; font-size: 17px; }
.shop-desc { margin: 0; color: var(--muted); font-size: 15px; }
.shop-badge { position: absolute; top: -10px; right: 14px; padding: 3px 10px; border-radius: 12px; background: var(--gold); color: var(--outline); font-weight: 800; font-size: 12px; }
.shop-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.shop-price { font-size: 22px; font-weight: 800; white-space: nowrap; }
.shop-btn { padding: 10px 20px; font-size: 16px; }
.shop-btn[disabled] { filter: grayscale(.8); opacity: .55; cursor: not-allowed; }
.shop-legal { color: var(--muted); font-size: 14px; margin-top: 26px; }
/* телефон: шапка — лого слева, RU/EN справа, пункты меню отдельной строкой по центру; основные блоки по центру */
@media (max-width: 759px) {
  .topnav .wrap { justify-content: space-between; gap: 6px 10px; }
  .topnav .langs { order: 1; margin-left: 0; }
  .topnav .links { order: 2; flex: 1 0 100%; justify-content: center; margin: 0; gap: 2px 0; }
  .topnav .links a { font-size: 14px; padding: 5px 7px; }
  .page h1, .page > h2, .page .lede, .doc h1 { text-align: center; }
  .shop-soon { text-align: center; }
  .page .lead { text-align: center; }
  .page .chips { justify-content: center; }
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .shop-item { text-align: center; justify-items: center; padding: 18px 10px 12px; gap: 6px; }
  .shop-item h3 { font-size: 16px; }
  .shop-grant { font-size: 15px; }
  .shop-desc { font-size: 13px; }
  .shop-badge { right: 50%; transform: translateX(50%); white-space: nowrap; font-size: 11px; }
  .shop-buy { flex-direction: column; gap: 8px; width: 100%; }
  .shop-price { font-size: 20px; }
  .shop-btn { width: 100%; padding: 9px 10px; }
  .shop-legal { text-align: center; }
}
.shop h2 { margin: 30px 0 16px; }
.shop .shop-login { margin: 0; }
.shop-soon { margin: 12px 0 0; }

/* download page (T13, views/site/download.ejs): one centered column, mobile-first */
.dl-col { max-width: 560px; margin: 0 auto; text-align: center; }
.dl-icon { width: 88px; height: 88px; margin: 6px auto 10px; border-radius: 22px; box-shadow: var(--shadow); }
.dl .dl-col > h1.title { font-size: clamp(34px, 8.5vw, 48px); margin: 0 0 6px; }
.dl .lead.center { margin: 0 auto 22px; }
.dl-acts { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dl-main { width: 100%; max-width: 360px; }
.dl-store { display: inline-block; }
.dl-store.off { color: var(--muted); border-style: dashed; cursor: default; }
.dl-soon { display: grid; gap: 4px; padding: 16px 20px; border-radius: 16px; background: #f3fbf8; border: 1px solid #bfe6da; }
.dl-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; text-align: left; margin-top: 22px; }
.dl-meta div { min-width: 0; }
.dl-meta dt { font-size: 13px; color: var(--muted); }
.dl-meta dd { margin: 0; font-weight: 700; }
.dl-meta dd small { font-weight: 400; color: var(--muted); }
.dl-meta .sha { grid-column: 1 / -1; }
.dl-meta code { display: block; font: 500 12.5px/1.45 ui-monospace, Consolas, monospace; word-break: break-all; background: var(--soft); border-radius: 8px; padding: 6px 8px; }
.dl-notes, .dl-howto { text-align: left; }
.dl-notes p { white-space: pre-line; }
.dl-howto ol { margin: 6px 0 8px; padding-left: 22px; }
.dl-howto li { margin: 6px 0; }
.dl-howto .muted { font-size: 14px; }
.dl-vk { margin: 18px 0 0; font-weight: 700; }
/* шапка: общий арт троицы (Снегурочка, Добрыня, Жар-птица) вместо трёх вырезок; края растворяются в небо страницы */
.stage .trio { position: absolute; left: 50%; bottom: 0; height: 100%; transform: translateX(-50%); z-index: 2; }
.stage .trio img { position: static; height: 100%; width: auto; max-width: none;
  -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, rgba(0,0,0,.6) 78%, transparent 100%);
          mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, rgba(0,0,0,.6) 78%, transparent 100%); }
.stage .halo { display: none; }
@media (min-width: 900px) {
  .stage .trio { left: 55%; height: 112%; bottom: -4%; }
  .stage .trio img { -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 46%, #000 34%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.15) 80%, transparent 96%);
                             mask: radial-gradient(ellipse 50% 50% at 50% 46%, #000 34%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.15) 80%, transparent 96%); }
}
/* подвал всегда у низа окна, даже на коротких страницах */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > footer { margin-top: auto; }

/* web shop: purchase by player ID / gift (T12) */
.shop-who { display: grid; gap: 14px; padding: 18px 20px; border-radius: 18px; background: #f3fbf8; border: 1px solid #bfe6da; margin: 18px 0 8px; }
.shop-modes { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-mode { padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.shop-mode.on { border-color: var(--gold-d); box-shadow: 0 0 0 2px var(--gold) inset; }
.shop-idform { display: grid; gap: 6px; }
.shop-idform label, .shop-found label { font-weight: 700; }
.shop-idrow { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-who input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); min-width: 0; }
.shop-idrow input { flex: 1 1 180px; max-width: 260px; }
.shop-found { display: grid; gap: 10px; }
.shop-found label { display: grid; gap: 4px; max-width: 420px; font-weight: 400; color: var(--muted); }
.shop-q { font-weight: 700; }
.shop-gift { display: grid; gap: 10px; }
.shop-link { justify-self: start; background: none; border: 0; padding: 0; color: var(--gold-d); font: inherit; text-decoration: underline; cursor: pointer; }
.shop-err { color: var(--red); font-weight: 700; }
.shop-status { display: grid; gap: 6px; padding: 20px; border-radius: 18px; background: #f3fbf8; border: 1px solid #bfe6da; margin: 18px 0; font-size: 17px; }
.shop-status b { font-size: 20px; }
.shop-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #bfe6da; border-top-color: var(--gold-d); animation: shopspin 1s linear infinite; }
.shop-spin[hidden] { display: none; }
@keyframes shopspin { to { transform: rotate(360deg); } }
.shop-return .btn { text-decoration: none; }
.shop-who [hidden] { display: none !important; }
