/* lenkaxemroxyn.com — koinobori: cloth carp on one bamboo pole in a spring sky.
   Mobile-first in px (frames «/ mobile», 360). From 1024 px the desktop frame (1368) in `u`:
   rail 216 px + column 1152 u, --u = column / 1152, at most 1 px. `Nu` → calc(N*var(--u)) (lenkaxemroxyn.com.css.py).
   Devices: gradient-fields (five cloth bands, ±18 %) and duotone-halftone (9 px dot raster, dot 2.4 → 0). */
:root {
  --ink: #0E2340; --ink2: #3A4B66; --sky: #BFE0F4; --sky2: #E6F2F8; --haze: #F6F9F3; --cloth: #FFFDF6; --paper: #F7F5EC;
  --navy: #13294B; --gold: #F2C230; --bamboo: #B89B52; --bambooD: #8C7434; --seam: #9FB3C8;
  --k0: #1B1F2A; --k1: #E0412F; --k2: #2F6FD6; --k3: #3A9A5B; --k4: #F08A24; --k5: #E86FA0;
  --disp: 'Darumadrop One', 'Trebuchet MS', sans-serif;
  --text: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 12px;
  --s: 1px;              /* hero scene unit (carps) */
  --k: 1;
  /* Figma note «Движение»: strips drift 4–12 px on scroll, tails flutter in a 3 s loop, card hover lifts 6 px, chevron 4 px */
  --tail-loop: 3s; --lift: 6px; --chev-shift: 4px;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M0,3.5 Q3,1 6,3.5 Q9,6 12,3.5' fill='none' stroke='black' stroke-width='2.5'/%3E%3C/svg%3E");
  --sky-fill: radial-gradient(45% 60% at 82% 5%, rgba(255,255,255,.55), rgba(255,255,255,0)), linear-gradient(180deg, var(--sky) 0, var(--sky2) 55%, var(--haze) 100%);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--haze); color: var(--ink); font: 400 15px/1.6 var(--text); overflow-x: clip; }
img, svg, picture { display: block; max-width: none; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--k2); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--cloth); padding: 10px 14px; border-radius: var(--r); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- shared UI ---------- */
.chev { width: 14px; height: 14px; flex: none; }
.chip { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--cloth); border: 1.2px solid rgba(14,35,64,.35);
  font: 700 12px/1.3 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* button underline: text over a wavy streamer line */
.btn { display: inline-flex; flex-direction: column; gap: 4px; padding: 6px 0 4px; text-decoration: none; color: var(--ink); background: none; border: 0; cursor: pointer;
  font: 800 18px/1.25 var(--text); }
.btn .bl { display: inline-flex; align-items: center; gap: 8px; }
.btn::after { content: ''; display: block; height: 7px; background: var(--ln, var(--k1)); -webkit-mask: var(--wave) repeat-x 0 50% / 12px 7px; mask: var(--wave) repeat-x 0 50% / 12px 7px; }
.btn .chev { transition: transform .2s ease; }
.btn:hover .chev, .btn:focus-visible .chev { transform: translateX(var(--chev-shift)); }
.dot, .ld, .gd { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.ld, .gd { width: 14px; height: 14px; border: 2px solid var(--gold); }
.gd { width: 12px; height: 12px; }
/* duotone-halftone: a 9 px dot raster that fades out */
.dots { position: absolute; pointer-events: none; background: radial-gradient(circle, var(--dc, var(--sky)) 2.4px, transparent 2.7px) 0 0 / 9px 9px; }
h2 { font: 400 34px/1.04 var(--disp); letter-spacing: -.01em; }
.lead { color: var(--ink2); font-size: 15px; line-height: 1.6; margin-top: 20px; }

/* ---------- shell: pole column (rail) + page ---------- */
.rail { position: relative; z-index: 5; display: flex; align-items: center; height: 64px; padding: 0 16px 0 26px; background: var(--cloth);
  border-bottom: 1.5px dashed var(--seam); }
.rail .pole, .rail .rw, .rail .dm, .gxn { display: none; }
.idx { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.lw { width: 28px; height: 28px; }
.bn { font: 400 15px/1.2 var(--disp); }
.nv { display: flex; gap: 2px; }
.nv a { display: flex; align-items: center; min-height: 44px; padding: 0 5px; font: 600 12px/1 var(--text); text-decoration: none; }
.nv a[aria-current] { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.nv .nd { display: none; }
.page { position: relative; }
/* the thin pole along the left edge (sidebar-anchored at 360) */
.page::before { content: ''; position: absolute; z-index: 3; left: 2px; top: 0; bottom: 0; width: 8px; border-radius: 4px;
  background: repeating-linear-gradient(180deg, transparent 0 146px, var(--bambooD) 146px 150px) 0 120px / 100% calc(100% - 140px) no-repeat,
    linear-gradient(90deg, var(--bambooD), #E3CF8E 35%, var(--bamboo) 70%, var(--bambooD)); }
main { display: block; }
.sec { position: relative; overflow: hidden; padding: 56px 18px 56px 28px; }
.in { position: relative; z-index: 1; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--sky-fill); padding: 72px 18px 20px 22px; }
.stm { position: absolute; pointer-events: none; }
.stm img { width: 100%; height: auto; }
.stm-h { left: 8px; top: 16px; width: calc(360 * var(--s)); }
.htx { position: relative; z-index: 2; }
.hero h1 { font: 400 42px/.98 var(--disp); letter-spacing: -.01em; max-width: 316px; }
.sf { color: var(--ink2); font-size: 15px; line-height: 1.55; max-width: 300px; margin-top: 14px; }
.hrow .btn { margin-top: 14px; justify-self: start; }
.carps { position: relative; z-index: 1; margin-top: 34px; --dx: 16; --gap: 10; }
.carps li { --l: var(--Lm); --hh: var(--Hm); position: relative; height: calc(var(--hh) * var(--s)); margin-bottom: calc(var(--gap) * var(--s));
  transform: translateY(calc(var(--py, 0) * var(--d) * 1px)); }
.carps .rope { position: absolute; left: -14px; top: calc(var(--hh) * .3 * var(--s)); width: calc(var(--dx) * var(--s) + 18px); height: calc(var(--hh) * .2 * var(--s));
  background: linear-gradient(to top right, transparent calc(50% - .9px), var(--ink2) 50%, transparent calc(50% + .9px)); }
.cp { position: absolute; top: 0; left: calc(var(--dx) * var(--s)); width: calc((var(--l) + var(--hh) * .32) * var(--s)); height: 100%; display: block; text-decoration: none; color: var(--ink); }
.cp .bd, .cp .bd img { position: absolute; left: calc(var(--hh) * .32 * var(--s)); top: 0; width: calc(var(--l) * var(--s)); height: calc(var(--hh) * var(--s)); }
.cp .bd img { left: 0; }
.tw { position: absolute; top: 0; left: calc((var(--hh) * .32 + var(--l) * .85) * var(--s)); width: calc(var(--l) * .15 * var(--s)); height: 100%; transform-origin: 0 50%; }
.tw .tl { width: 100%; height: 100%; }
.tw .td { display: none; }
.cp .col { position: absolute; left: calc(var(--hh) * .5456 * var(--s)); top: calc((var(--hh) * .06 - 8) * var(--s)); width: calc(var(--hh) * .484 * var(--s));
  height: calc((var(--hh) * .88 + 16) * var(--s)); border-radius: 50%; background: var(--cd); }
.cp .rg { position: absolute; left: calc(-5 * var(--s)); top: calc((var(--hh) * .06 - 5) * var(--s)); width: calc((var(--hh) * .88 + 10) * var(--s)); height: calc((var(--hh) * .88 + 10) * var(--s));
  border-radius: 50%; background: var(--gold); box-shadow: 0 2px 4px rgba(14,35,64,.1); }
.cp .cv { position: absolute; left: 0; top: calc(var(--hh) * .06 * var(--s)); width: calc(var(--hh) * .88 * var(--s)); height: calc(var(--hh) * .88 * var(--s));
  border-radius: 50%; border: 3px solid var(--cloth); object-fit: cover; }
.tag { position: absolute; left: calc(var(--hh) * 1.8 * var(--s)); top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: calc(7 * var(--s)) calc(12 * var(--s)); background: var(--cloth); border: 1.2px dashed var(--ink); border-radius: var(--r); transition: background-color .2s; }
.tag b { font: 400 calc(15 * var(--s))/1.2 var(--disp); }
.tag small { display: none; }
.tag .chev { width: 12px; height: 12px; transition: transform .2s; }
.cp:hover .tag, .cp:focus-visible .tag { background: var(--sky2); }
.cp:hover .tag .chev, .cp:focus-visible .tag .chev { transform: translateX(var(--chev-shift)); }
.cp:focus-visible { outline: 0; }
.cp:focus-visible .tag { outline: 3px solid var(--k2); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .tw { animation: flutter var(--tail-loop) ease-in-out infinite; animation-delay: calc(var(--i) * -.45s); }
}
@keyframes flutter { 0%, 100% { transform: skewY(0) scaleY(1); } 30% { transform: skewY(-5deg) scaleY(.92); } 65% { transform: skewY(4deg) scaleY(1.04); } }

/* ---------- U: every key on one board ---------- */
.su { background: var(--paper); }
.udots { --dc: var(--sky); right: 0; top: 0; width: 260px; height: 160px; -webkit-mask: linear-gradient(225deg, #000 10%, transparent 80%); mask: linear-gradient(225deg, #000 10%, transparent 80%); }
.kbd { display: none; }
.klist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.key { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 8px; min-height: 52px; background: var(--cloth); border: 1.4px dashed var(--ink);
  border-radius: var(--r); box-shadow: 0 4px 0 rgba(14,35,64,.12); }
.key b { font: 700 18px/1.1 var(--text); }
.key.sm b { font-size: 13px; }
.kd { display: flex; gap: 3px; }
.kd .sp { width: 6px; }
.act { display: block; margin-top: 6px; font-size: 13px; color: var(--ink2); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 20px; }
.legend li { display: flex; align-items: center; gap: 8px; font: 700 14px/1.2 var(--text); }

/* ---------- G: numbered list in pole order ---------- */
.sg { background: radial-gradient(45% 60% at 82% 5%, rgba(255,255,255,.55), rgba(255,255,255,0)), linear-gradient(180deg, var(--sky2) 0, var(--sky2) 55%, var(--haze) 100%); }
.gl { margin-top: 20px; }
.gl li { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1.4px dashed var(--seam); }
.gl li:first-child { border-top: 1.4px dashed var(--seam); }
.gl .n { flex: none; width: 26px; font: 400 34px/1 var(--disp); }
.gc { flex: none; width: 88px; height: 88px; border-radius: var(--r); border: 3px solid var(--c); box-shadow: 0 6px 14px rgba(14,35,64,.14); object-fit: cover; }
.gt { flex: 1; min-width: 0; display: grid; gap: 6px; }
.gt h3 { font: 400 21px/1.15 var(--disp); }
.gt h3 a { text-decoration: none; }
.gt h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gt p { font-size: 13px; color: var(--ink2); line-height: 1.5; }
.gt .chips { display: grid; justify-items: start; gap: 6px; }
.gl > li > .btn { display: none; }

/* ---------- N: update months ---------- */
.sn { background: var(--cloth); }
.chk { margin-top: 14px; font: 700 14px/1.4 var(--text); }
.nt { width: 100%; margin-top: 20px; border-collapse: separate; border-spacing: 0; border: 1.4px dashed var(--ink); border-radius: var(--r); overflow: hidden; }
.nt tr { background: var(--bf); }
.nt th, .nt td { padding: 14px 18px; text-align: left; font: 700 14px/1.3 var(--text); }
.nt th { display: flex; align-items: center; gap: 10px; }
.nt td { font-weight: 600; font-size: 13px; color: var(--ink2); text-align: right; white-space: nowrap; }

/* ---------- M: steps hanging from one rope ---------- */
.smt { background: var(--sky2); }
.mdots { --dc: var(--sky); left: 0; bottom: 0; width: 220px; height: 140px; -webkit-mask: linear-gradient(45deg, #000 10%, transparent 80%); mask: linear-gradient(45deg, #000 10%, transparent 80%); }
.steps { position: relative; margin-top: 20px; display: grid; gap: 20px; }
.steps::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--ink2); }
.steps li { position: relative; margin-left: 30px; padding: 18px; background: var(--cloth); border: 1.4px dashed var(--ink); border-radius: var(--r); box-shadow: 0 8px 18px rgba(14,35,64,.1); }
.steps li::before { content: ''; position: absolute; left: -27px; top: 12px; width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 3px solid var(--gold); }
.steps h3 { font: 400 20px/1.15 var(--disp); }
.steps p { margin-top: 8px; font-size: 14px; color: var(--ink2); }

/* ---------- P: one game up close ---------- */
.spf { background: linear-gradient(180deg, var(--p1), var(--p2)); }
.motif { position: absolute; z-index: 0; right: -5px; top: 10px; opacity: .5; }
.motif img { width: 200px; height: auto; }
.pw { display: grid; gap: 20px; }
.pcard { border: 1.6px dashed var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 0 14px 30px rgba(14,35,64,.16); background: var(--cloth); }
.pc { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.pb { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; background: var(--bf); }
.pt { font: 400 22px/1.15 var(--disp); }
.ptx { display: grid; gap: 18px; justify-items: start; }
.ptx p:not(.chips) { color: var(--ink2); font-size: 15px; }
.ptx .chips { gap: 8px; }

/* ---------- inner page head ---------- */
.ph { position: relative; overflow: hidden; background: var(--sky-fill); padding: 28px 18px 36px 28px; }
.ph.withcarp { padding-bottom: 96px; }
.stm-p { right: 5px; top: 18px; width: calc(200px * var(--k)); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 8px; font: 600 13px/1.5 var(--text); color: var(--ink2); }
.crumbs li + li::before { content: '›'; margin-right: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.ph h1, .gtx h1 { font: 400 40px/.98 var(--disp); letter-spacing: -.01em; margin-top: 12px; }
.ph .lead { margin-top: 12px; }
.ph .in, .ghd .in { position: relative; z-index: 2; }
.hcarp { position: absolute; z-index: 1; left: 16px; bottom: 22px; }
.hcarp img { width: calc(330px * var(--k)); height: auto; }

/* ---------- games: masonry of cover-whole cards ---------- */
.smas { background: var(--paper); }
.mas { display: grid; gap: 24px; }
.card { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--cloth); border: 1.4px dashed var(--ink); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 6px 14px rgba(14,35,64,.1); transition: transform .2s ease, box-shadow .2s ease; }
.cb { position: relative; height: 220px; overflow: hidden; }
.cc { width: 100%; height: 100%; object-fit: cover; }
.cdots { --dc: var(--c); right: 0; top: 0; width: 150px; height: 110px; opacity: .9; -webkit-mask: linear-gradient(225deg, #000 5%, transparent 75%); mask: linear-gradient(225deg, #000 5%, transparent 75%); }
.cbd { flex: 1; display: grid; align-content: start; gap: 8px; padding: 14px 16px; background: var(--bf); transition: color .2s; }
.cbd h2 { font: 400 22px/1.15 var(--disp); }
.cbd h2 a { text-decoration: none; }
.cbd h2 a::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.ctl { font: 600 13px/1.4 var(--text); }
.one { font-size: 14px; color: var(--ink2); line-height: 1.5; }
.rd { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1.3 var(--text); }
.rd .chev { width: 13px; height: 13px; transition: transform .2s ease; }
/* hover / focus (frame «Tile hover»): the cloth band takes the carp colour, the card lifts 6 px, the tail chevron moves 4 px */
.mas li:hover .card, .mas li:focus-within .card { transform: translateY(calc(-1 * var(--lift))); box-shadow: 0 18px 30px rgba(14,35,64,.22); }
.mas li:hover .cbd, .mas li:focus-within .cbd { background: var(--bh); color: var(--cloth); }
.mas li.dk:hover .cbd, .mas li.dk:focus-within .cbd { color: var(--ink); }
.mas li:hover .one, .mas li:focus-within .one { color: inherit; }
.mas li:hover .rd .chev, .mas li:focus-within .rd .chev { transform: translateX(var(--chev-shift)); }
.mas li:focus-within .card { outline: 3px solid var(--k2); outline-offset: 3px; }
.cbd h2 a:focus-visible { outline: 0; }
@media (prefers-reduced-motion: reduce) { .card, .cbd, .chev { transition: none !important; } }

/* ---------- guide ---------- */
.ghd { position: relative; overflow: hidden; background: var(--sky-fill); padding: 24px 18px 110px 28px; }
.gtop { display: grid; gap: 16px; margin-top: 14px; }
.gcv { width: 100%; height: auto; aspect-ratio: 1; max-width: 380px; border-radius: var(--r); border: 4px solid var(--c); box-shadow: 0 16px 30px rgba(14,35,64,.2); object-fit: cover; }
.gtx { display: grid; gap: 14px; justify-items: start; }
.gch { background: var(--cl); }
.gtx h1 { margin-top: 0; }
.sum { color: var(--ink2); font-size: 15px; }
.meta { font: 600 13px/1.4 var(--text); color: var(--ink2); }
.ftl { font: 700 12px/1.3 var(--text); letter-spacing: .06em; text-transform: uppercase; }
.facts { display: grid; gap: 10px; width: 100%; }
.facts div, .kcard dl div { min-width: 0; }
.facts div { padding: 8px 12px; border-radius: var(--r); background: var(--cloth); border: 1.2px dashed var(--ink); }
.facts dt { font: 700 12px/1.3 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.facts dd { font: 600 14px/1.4 var(--text); }
.ghd .hcarp { bottom: 26px; }
.sacc { background: var(--cloth); }
.acc { max-width: 900px; border-bottom: 1.4px dashed var(--seam); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary h2 { font-size: 22px; }
.acc summary .chev { width: 18px; height: 18px; transition: transform .2s ease; }
.acc[open] summary .chev { transform: rotate(90deg); }
.acc summary:hover h2 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ab { display: grid; gap: 14px; padding-bottom: 18px; max-width: 760px; }
.ab p, .ab dd { color: var(--ink2); font-size: 15px; }
.kl { font: 700 13px/1.3 var(--text); letter-spacing: .06em; text-transform: uppercase; }
.keys { display: grid; gap: 6px; }
.keys li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink2); }
.kc { flex: none; padding: 6px 12px; border-radius: var(--r); background: var(--paper); border: 1.2px dashed var(--ink); font: 700 14px/1.2 var(--text); color: var(--ink); }
.cl { display: grid; gap: 10px; }
.cl li { display: flex; gap: 10px; align-items: baseline; }
.cl .chev { width: 12px; height: 12px; color: var(--k1); transform: translateY(1px); }
.ab .cl li { color: var(--ink2); }
.faq { display: grid; gap: 12px; }
.faq dt { font-weight: 700; }
.sim { margin-top: 24px; padding-bottom: 20px; }
.sim h2 { font-size: 22px; }
.sim ul { display: grid; gap: 16px; margin-top: 14px; }
.sim a { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: var(--r); background: var(--paper); border: 1.2px dashed var(--ink); text-decoration: none; }
.sim a:hover { background: var(--sky2); }
.sim .sc { width: 64px; height: 64px; border-radius: var(--r); object-fit: cover; }
.sim a > span { flex: 1; display: grid; gap: 2px; }
.sim b { font: 700 16px/1.25 var(--text); }
.sim small { font-size: 13px; color: var(--ink2); }
.sim a .chev { width: 13px; height: 13px; transition: transform .2s; }
.sim a:hover .chev, .sim a:focus-visible .chev { transform: translateX(var(--chev-shift)); }
.where { display: grid; gap: 10px; justify-items: start; padding: 18px; border-radius: var(--r); background: var(--paper); border: 1.6px dashed var(--seam); }
.where h2 { font-size: 20px; }
.where p { font-size: 15px; color: var(--ink2); }
.where .btn { font-size: 15px; }

/* ---------- about ---------- */
.sab { background: var(--cloth); padding-top: 18px; padding-bottom: 18px; }
.arow { display: grid; gap: 8px; padding: 18px 0; border-bottom: 1.4px dashed var(--seam); }
.arow h2 { display: flex; align-items: center; gap: 12px; font-size: 21px; }
.arow div { display: grid; gap: 8px; }
.arow p { color: var(--ink2); }
.sk { background: radial-gradient(45% 60% at 82% 5%, rgba(255,255,255,.55), rgba(255,255,255,0)), linear-gradient(180deg, var(--sky2) 0, var(--sky2) 55%, var(--haze) 100%); }
.kcard { display: grid; gap: 14px; max-width: 760px; padding: 20px 18px; border-radius: var(--r); background: var(--cloth); border: 1.4px dashed var(--ink); box-shadow: 0 10px 24px rgba(14,35,64,.1); }
.kcard h2 { font-size: 30px; }
.kcard > p { color: var(--ink2); }
.kcard .cl li { font-size: 15px; }
.kcard dl { display: grid; gap: 10px; }
.kcard dl div { display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: baseline; }
.kcard dt { font: 700 13px/1.3 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.kcard dd { font: 600 15px/1.4 var(--text); overflow-wrap: anywhere; }

/* ---------- legal ---------- */
.slg { background: var(--cloth); }
.slg .in { display: grid; gap: 18px; max-width: 760px; }
.ldots { --dc: var(--sky); right: 0; top: 0; width: 160px; height: 140px; -webkit-mask: linear-gradient(225deg, #000 10%, transparent 80%); mask: linear-gradient(225deg, #000 10%, transparent 80%); }
.lsec h2 { display: flex; align-items: center; gap: 10px; font-size: 21px; }
.lsec h2 .chev { color: var(--c); }
.lsec p { margin-top: 8px; color: var(--ink2); font-size: 15px; }
.lq { font: 600 14px/1.5 var(--text); }

/* ---------- footer: navy band with streamer stripes ---------- */
.ft { position: relative; z-index: 4; background: var(--navy); color: var(--cloth); }
.fst, .cst { display: flex; height: 10px; }
.fst i, .cst i { flex: 1; background: var(--c); }
.fb { position: relative; overflow: hidden; padding: 36px 18px 28px 30px; display: grid; gap: 26px; }
.fdots { --dc: #24406B; right: 10px; top: 20px; width: 200px; height: 220px; }
.fcols { position: relative; display: grid; gap: 22px; }
.fc1 { display: grid; gap: 10px; }
.flogo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 24px/1.2 var(--disp); }
.fw { width: 38px; height: 38px; }
.fc1 p { color: #D5DEEA; font-size: 15px; }
.fc h2 { font: 700 12px/1.3 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.fc ul { display: grid; gap: 2px; margin-top: 6px; }
.fc li { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.fc a, .fck { display: inline-flex; align-items: center; min-height: 32px; color: var(--cloth); text-decoration: none; }
.fc a:hover, .fck:hover { text-decoration: underline; text-underline-offset: 3px; }
.fck { padding: 0; background: none; border: 0; font: inherit; cursor: pointer; }
.fdis { position: relative; padding-top: 26px; border-top: 1px solid #3A5580; font-size: 13px; color: #B9C6D8; }

/* ---------- cookie (frames «Cookie» 500 / «Cookie / mobile» 330) ---------- */
.cookie { position: fixed; z-index: 40; right: 15px; bottom: 15px; width: min(330px, calc(100vw - 30px)); max-height: calc(100vh - 30px); overflow: auto; display: grid; gap: 14px;
  padding: 20px; background: var(--cloth); border: 1.4px dashed var(--ink); border-radius: var(--r); box-shadow: 0 18px 40px rgba(14,35,64,.18); }
.cookie[hidden] { display: none; }
.cst { height: 8px; border-radius: 4px; overflow: hidden; }
.ckt { display: flex; align-items: center; gap: 12px; }
.ckw { width: 36px; height: 36px; flex: none; }
.cookie h2 { font-size: 21px; line-height: 1.15; }
.cookie p { font-size: 15px; color: var(--ink2); }
.cookie .btn { font-size: 16px; }
.ck-acts { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ck-manage { display: grid; gap: 8px; padding: 12px; border-radius: var(--r); background: var(--paper); border: 1.2px dashed var(--seam); font-size: 14px; }
.ck-manage[hidden] { display: none; }
.ck-manage label { display: flex; gap: 8px; align-items: center; }
.ck-manage .btn { justify-self: start; }

/* ---------- 600–1023: the mobile layout, wider; hero scene scales ---------- */
@media (min-width: 600px) {
  :root { --k: 1.2; }
  .hero { --s: 1.4px; padding-top: 118px; }
  .hero h1 { font-size: 56px; max-width: 560px; }
  .sf { max-width: 520px; font-size: 17px; }
  .hcarp img { width: 460px; }
  .stm-p { width: 280px; }
  .ph h1, .gtx h1 { font-size: 56px; }
  .klist { grid-template-columns: repeat(3, 1fr); }
  .gtop { grid-template-columns: 260px 1fr; align-items: start; }
  .facts { grid-template-columns: 1fr 1fr; }
  .mas { grid-template-columns: 1fr 1fr; }
  .pw { grid-template-columns: 300px 1fr; align-items: center; gap: 40px; }
  .motif img { width: 320px; }
  .fcols { grid-template-columns: 1fr 1fr; }
  .sim ul { grid-template-columns: 1fr 1fr; }
  .cookie { right: 24px; bottom: 24px; width: 452px; padding: 28px; }
  .cookie h2 { font-size: 26px; }
  .kcard { padding: 28px 30px; }
  .kcard dl div { grid-template-columns: 150px 1fr; }
}

/* ---------- desktop 1024+: the 1368 frame — pole column 216 px + column 1152 u ---------- */
@media (min-width: 1024px) {
  :root { --u: min(1px, (100vw - 216px) / 1152); }
  body { font-size: calc(18*var(--u)); }
  .shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); }
  /* pole column: sticky index list */
  .rail { display: block; height: auto; padding: 100px 0 40px 20px; border-bottom: 0; border-right: 1.6px solid var(--seam); }
  .rail .pole { display: block; position: absolute; left: 200px; top: 70px; bottom: 0; width: 14px; border-radius: 7px;
    background: repeating-linear-gradient(180deg, transparent 0 146px, var(--bambooD) 146px 150px) 0 120px / 100% calc(100% - 140px) no-repeat,
      linear-gradient(90deg, var(--bambooD), #E3CF8E 35%, var(--bamboo) 70%, var(--bambooD)); }
  .rail .rw { display: block; position: absolute; left: 155px; top: 14px; width: 64px; height: 64px; }
  .idx { position: sticky; top: 24px; display: block; width: 164px; }
  .logo { display: grid; gap: 2px; }
  .lw { display: none; }
  .bn { font-size: 18px; }
  .rail .dm { display: block; font-size: 12px; color: var(--ink2); }
  .nv { display: grid; gap: 6px; margin-top: 30px; }
  .nv a { gap: 10px; min-height: 0; padding: 6px 10px; border-radius: var(--r); font-size: 16px; line-height: 1.4; }
  .nv a[aria-current] { background: var(--sky2); text-decoration: none; }
  .nv .nd { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--cloth); border: 1.5px solid var(--ink); }
  .nv a[aria-current] .nd { background: var(--k1); }
  .nv a:hover { background: var(--sky2); }
  .gxn { display: block; margin-top: 30px; }
  .gx { display: grid; gap: 6px; }
  .gx a { display: flex; align-items: center; gap: 10px; padding: 4px 10px; border-radius: var(--r); font-size: 14px; line-height: 1.3; text-decoration: none; }
  .gx a[aria-current] { background: var(--sky2); font-weight: 700; }
  .gx a:hover { background: var(--sky2); }
  .page::before { display: none; }

  .sec { padding: calc(96*var(--u)) calc(80*var(--u)) calc(96*var(--u)) calc(70*var(--u)); }
  .in { max-width: calc(1002*var(--u)); }
  h2 { font-size: calc(56*var(--u)); }
  .lead { font-size: calc(18*var(--u)); max-width: calc(620*var(--u)); margin-top: calc(28*var(--u)); }

  /* hero (pages.js hero: 1180 tall, h1 at 136, carps from the pole) */
  .hero { --s: var(--u); min-height: calc(1180*var(--u)); padding: calc(136*var(--u)) calc(80*var(--u)) calc(40*var(--u)) calc(70*var(--u)); }
  .stm-h { left: calc(-2*var(--u)); top: calc(46*var(--u)); width: calc(1368*var(--u)); }
  .hero h1 { font-size: calc(84*var(--u)); max-width: calc(900*var(--u)); }
  .hrow { display: grid; grid-template-columns: calc(520*var(--u)) auto; column-gap: calc(54*var(--u)); align-items: start; margin-top: calc(20*var(--u)); }
  .sf { font-size: calc(19*var(--u)); max-width: none; margin-top: 0; }
  .hrow .btn { margin-top: calc(8*var(--u)); }
  .carps { margin: calc(34*var(--u)) 0 0 calc(-70*var(--u)); --dx: 22; --gap: 12; }
  .carps li { --l: var(--L); --hh: var(--H); }
  .carps .rope { left: 0; width: calc(var(--dx) * var(--s) + calc(4*var(--u))); }
  .tw .td { display: block; }
  .tw .tm { display: none; }
  .tag { padding: calc(7 * var(--s)) calc(12 * var(--s)); }
  .tag b { font-size: calc(20*var(--u)); }
  .tag small { display: block; font: 700 calc(12*var(--u))/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
  .big .tag { padding: calc(10*var(--u)) calc(16*var(--u)); }
  .big .tag b { font-size: calc(26*var(--u)); }

  /* U: the keyboard (unit 76) */
  .udots { width: calc(640*var(--u)); height: calc(300*var(--u)); }
  .kbd { display: block; position: relative; height: calc(330*var(--u)); margin-top: calc(28*var(--u)); }
  .klist { display: none; }
  .kbd > li { position: absolute; }
  .kbd .key { left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); height: calc(66*var(--u)); min-height: 0; padding: calc(8*var(--u)); }
  .kbd .key b { font-size: calc(18*var(--u)); }
  .kbd .key.sm b { font-size: calc(13*var(--u)); }
  .kbd .mouse, .kbd .tap { display: flex; flex-direction: column; align-items: center; gap: calc(10*var(--u)); background: var(--cloth); border: 1.4px dashed var(--ink); }
  .kbd .mouse { left: calc(690*var(--u)); top: 0; width: calc(150*var(--u)); height: calc(220*var(--u)); padding: calc(26*var(--u)) calc(18*var(--u)); border-radius: calc(70*var(--u)); }
  .kbd .mouse b { font: 700 calc(13*var(--u))/1.2 var(--text); }
  .kbd .tap { left: calc(870*var(--u)); top: calc(40*var(--u)); width: calc(130*var(--u)); height: calc(130*var(--u)); padding: calc(36*var(--u)) calc(10*var(--u)); border-radius: 50%; background: var(--sky2); gap: calc(8*var(--u)); }
  .kbd .tap b { font: 700 calc(18*var(--u))/1.2 var(--text); }
  .legend { gap: calc(10*var(--u)) calc(22*var(--u)); margin-top: calc(28*var(--u)); }

  /* G */
  .gl { margin-top: calc(28*var(--u)); }
  .gl li { gap: calc(28*var(--u)); padding: calc(22*var(--u)) 0; }
  .gl .n { width: calc(52*var(--u)); font-size: calc(64*var(--u)); }
  .gc { width: calc(132*var(--u)); height: calc(132*var(--u)); }
  .gt h3 { font-size: calc(30*var(--u)); }
  .gt p { font-size: calc(16*var(--u)); }
  .gt .chips { display: flex; }
  .gl > li > .btn { display: inline-flex; flex: none; }

  /* N */
  .nw { display: flex; gap: calc(64*var(--u)); align-items: center; }
  .nl { flex: none; width: calc(380*var(--u)); }
  .nl .lead { max-width: calc(360*var(--u)); margin-top: calc(14*var(--u)); }
  .nt { flex: 1; margin-top: 0; }
  .nt th { font-size: calc(17*var(--u)); }
  .nt td { font-size: calc(16*var(--u)); }

  /* M: four steps on one horizontal rope */
  .mdots { width: calc(520*var(--u)); height: calc(260*var(--u)); }
  .steps { grid-template-columns: repeat(4, 1fr); gap: calc(20*var(--u)); margin-top: calc(28*var(--u)); padding-top: calc(30*var(--u)); align-items: start; }
  .steps::before { left: 0; right: 0; top: calc(14*var(--u)); bottom: auto; width: auto; height: 2px; }
  .steps li { margin-left: 0; margin-top: calc(var(--i) * calc(0*var(--u))); }
  .steps li:nth-child(even) { margin-top: calc(18*var(--u)); }
  .steps li::before { left: calc(50% - calc(8*var(--u))); top: calc(-23*var(--u)); }
  .steps li:nth-child(even)::before { top: calc(-41*var(--u)); }
  .steps h3 { font-size: calc(24*var(--u)); }
  .steps p { font-size: calc(15*var(--u)); }

  /* P */
  .motif { right: auto; left: calc(592*var(--u)); top: calc(30*var(--u)); }
  .motif img { width: calc(900*var(--u)); }
  .pw { grid-template-columns: calc(420*var(--u)) 1fr; gap: calc(64*var(--u)); }
  .pt { font-size: calc(26*var(--u)); }
  .ptx p:not(.chips) { font-size: calc(18*var(--u)); }

  /* inner page head */
  .ph { padding: calc(56*var(--u)) calc(80*var(--u)) calc(72*var(--u)) calc(70*var(--u)); }
  .ph.withcarp { padding-bottom: calc(170*var(--u)); }
  .stm-p { right: auto; left: calc(684*var(--u)); top: calc(18*var(--u)); width: calc(520*var(--u)); }
  .ph h1, .gtx h1 { font-size: calc(84*var(--u)); }
  .ph h1 { margin-top: calc(18*var(--u)); }
  .ph .lead { max-width: calc(640*var(--u)); margin-top: calc(18*var(--u)); }
  .hcarp { left: calc(22*var(--u)); bottom: calc(36*var(--u)); }
  .hcarp img { width: calc(1180*var(--u)); }

  /* games: masonry 3 columns (pages.js covers 380 / 280) */
  .mas { grid-template-columns: repeat(3, 1fr); gap: calc(24*var(--u)); align-items: start; }
  .mas li:nth-child(5) { margin-top: calc(-100*var(--u)); }
  .cb { height: calc(var(--ch) * var(--u)); }
  .cbd { padding: calc(18*var(--u)) calc(20*var(--u)); }
  .cbd h2 { font-size: calc(28*var(--u)); }
  .one { font-size: calc(15*var(--u)); }

  /* guide */
  .ghd { padding: calc(44*var(--u)) calc(80*var(--u)) calc(190*var(--u)) calc(70*var(--u)); }
  .gtop { grid-template-columns: calc(380*var(--u)) minmax(0, 1fr); gap: calc(48*var(--u)); margin-top: calc(18*var(--u)); }
  .gcv { max-width: none; }
  .sum { font-size: calc(18*var(--u)); }
  .facts { grid-template-columns: repeat(auto-fill, calc(196*var(--u))); }
  .ghd .hcarp { bottom: calc(44*var(--u)); }
  .ghd .hcarp img { width: calc(1240*var(--u)); }
  .acc { max-width: calc(900*var(--u)); }
  .acc summary { padding: calc(22*var(--u)) 0; }
  .acc summary h2 { font-size: calc(30*var(--u)); }
  .ab { max-width: calc(760*var(--u)); }
  .ab p, .ab dd { font-size: calc(18*var(--u)); }
  .sim { margin-top: calc(36*var(--u)); padding-bottom: calc(28*var(--u)); }
  .sim h2 { font-size: calc(30*var(--u)); }
  .sim ul { display: flex; flex-wrap: wrap; gap: calc(16*var(--u)); }
  .where { max-width: calc(760*var(--u)); padding: calc(24*var(--u)) calc(28*var(--u)); }
  .where h2 { font-size: calc(24*var(--u)); }

  /* about */
  .sab { padding-top: calc(28*var(--u)); padding-bottom: calc(28*var(--u)); }
  .arow { grid-template-columns: calc(380*var(--u)) 1fr; gap: calc(40*var(--u)); padding: calc(28*var(--u)) 0; }
  .arow h2 { font-size: calc(26*var(--u)); }
  .kcard { padding: calc(32*var(--u)) calc(36*var(--u)); }
  .kcard h2 { font-size: calc(44*var(--u)); }

  /* legal */
  .slg .in { gap: calc(26*var(--u)); max-width: calc(760*var(--u)); }
  .ldots { width: calc(420*var(--u)); height: calc(360*var(--u)); }
  .lsec h2 { font-size: calc(28*var(--u)); }
  .lsec p { font-size: calc(18*var(--u)); }

  /* footer (pages.js footer: band [56, 80, 40, LX = 216 + 70]) */
  .fb { padding: calc(56*var(--u)) calc(80*var(--u)) calc(40*var(--u)) calc(216px + calc(70*var(--u))); gap: calc(36*var(--u)); }
  .fdots { right: calc(40*var(--u)); width: calc(520*var(--u)); }
  .fcols { display: flex; gap: calc(48*var(--u)); }
  .fc1 { width: calc(340*var(--u)); }
  .fcols > .fc:nth-child(2) { width: calc(130*var(--u)); }
  .fcols > .fc:nth-child(3) { width: calc(150*var(--u)); }
  .fcols > .fc:nth-child(4) { width: calc(240*var(--u)); }
  .fdis { padding-top: calc(36*var(--u)); }

  .cookie { width: 500px; }
}

/* social icons */
.soc{display:inline-flex;align-items:center;gap:8px;vertical-align:middle;list-style:none}
.soc .soc-a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-height:0;padding:0;border:0;border-radius:50%;color:inherit;background:none;text-decoration:none;opacity:.85;transition:opacity .2s,transform .2s}
.soc .soc-a:hover{opacity:1;transform:translateY(-1px)}
.soc .soc-a:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.soc .soc-a svg{width:20px;height:20px;fill:currentColor;display:block}
.soc .soc-a:first-child{margin-left:-10px}
.soc-row{margin:16px 0 8px}
