/* Georgian Roots — shared design system. Owner: DESIGN worker.
   Sibling of the French book site "Le verbe ne décide pas": white paper, black ink, 2px outlines,
   pill buttons, pastel season backgrounds, Hanson for Latin display, Golos Text for text,
   Noto Sans Georgian for Georgian. 8px module. Mobile first, light theme only.
   Reference: 11_Site/_research/STYLE.md */

/* ---------- fonts (self-hosted; Google Fonts link injected by site.js loads the same families) ---------- */
@font-face { font-family: 'Hanson'; src: url('fonts/HansonBold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

@font-face { font-family: 'Golos Text Local'; font-weight: 400; font-display: swap; src: url('fonts/golos-text-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Golos Text Local'; font-weight: 500; font-display: swap; src: url('fonts/golos-text-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Golos Text Local'; font-weight: 700; font-display: swap; src: url('fonts/golos-text-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Golos Text Local'; font-weight: 400; font-display: swap; src: url('fonts/golos-text-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Golos Text Local'; font-weight: 500; font-display: swap; src: url('fonts/golos-text-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Golos Text Local'; font-weight: 700; font-display: swap; src: url('fonts/golos-text-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: 'Noto Sans Georgian Local'; font-weight: 400; font-display: swap; src: url('fonts/noto-sans-georgian-georgian-400-normal.woff2') format('woff2'); unicode-range: U+0589,U+10A0-10FF,U+1C90-1CBA,U+1CBD-1CBF,U+205A,U+2D00-2D2F,U+2E31; }
@font-face { font-family: 'Noto Sans Georgian Local'; font-weight: 500; font-display: swap; src: url('fonts/noto-sans-georgian-georgian-500-normal.woff2') format('woff2'); unicode-range: U+0589,U+10A0-10FF,U+1C90-1CBA,U+1CBD-1CBF,U+205A,U+2D00-2D2F,U+2E31; }
@font-face { font-family: 'Noto Sans Georgian Local'; font-weight: 700; font-display: swap; src: url('fonts/noto-sans-georgian-georgian-700-normal.woff2') format('woff2'); unicode-range: U+0589,U+10A0-10FF,U+1C90-1CBA,U+1CBD-1CBF,U+205A,U+2D00-2D2F,U+2E31; }
@font-face { font-family: 'Noto Sans Georgian Local'; font-weight: 800; font-display: swap; src: url('fonts/noto-sans-georgian-georgian-800-normal.woff2') format('woff2'); unicode-range: U+0589,U+10A0-10FF,U+1C90-1CBA,U+1CBD-1CBF,U+205A,U+2D00-2D2F,U+2E31; }

/* ---------- tokens ---------- */
:root {
  --u: 8px;
  --ink: #000; --paper: #fff; --grey: #555; --muted: #333;
  /* outlines are light grey (Nelli, 09.10): black stays for text and filled primary buttons */
  --line-c: #DADAD7; --hair-c: #E6E6E3; --line-on-ink: rgba(255, 255, 255, .32);
  /* accents from the French book */
  --red: #C83C1E; --green: #146E32; --blue: #143CAA;
  --red-text: #B0341A; /* darker red for text on pastel backgrounds (≥4.5:1) */
  /* season pastels */
  --spring: #F0FBEE; --summer: #F8FCC0; --latesummer: #FFF2D1;
  --autumn: #FDE5C7; --autumnwinter: #FEF7ED; --winter: #CAE9FA;

  --f-ka: 'Noto Sans Georgian', 'Noto Sans Georgian Local', 'Golos Text', 'Golos Text Local', system-ui, sans-serif;
  --f-text: 'Golos Text', 'Golos Text Local', 'Noto Sans Georgian', 'Noto Sans Georgian Local', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-display: 'Hanson', 'Golos Text', 'Golos Text Local', 'Noto Sans Georgian', 'Noto Sans Georgian Local', system-ui, sans-serif;
  --w-light: 400;

  --line: 2px solid var(--line-c);
  --hair: 1px solid var(--hair-c);
  --r-card: 24px; --r-sm: 16px; --r-pill: 999px;
  --max: 1120px; --measure: 680px;
  --gutter: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font-family: var(--f-text); font-weight: 500; font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
#main { flex: 1 0 auto; outline: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul.plain, ol.plain { list-style: none; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled, [aria-disabled='true'] { cursor: default; }
[lang='ka']:not(html), .ka { font-family: var(--f-ka); }
[data-site-link][hidden], [data-site-link-box][hidden] { display: none !important; } /* empty Site.links entry */
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
[tabindex='-1']:focus { outline: none; }

.skip-link { position: absolute; left: 8px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: var(--r-pill); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 8px; }

/* ---------- type ---------- */
.display, .h1, .h2, .h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.01em; overflow-wrap: break-word; }
.h1 { font-size: clamp(40px, 10vw, 96px); line-height: .95; }
.h2 { font-size: clamp(30px, 7vw, 56px); line-height: 1; }
.h3 { font-size: 22px; line-height: 1.1; }
/* Hanson has no Cyrillic or Georgian: in RU / KA, display titles use the text faces (as in the RU edition of the French book) */
html[lang='ru'] .h1, html[lang='ru'] .h2, html[lang='ru'] .h3 { font-family: var(--f-text); letter-spacing: -.025em; }
html[lang='ka'] .h1, html[lang='ka'] .h2, html[lang='ka'] .h3 { font-family: var(--f-ka); font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.ka-display { font-family: var(--f-ka); font-weight: 800; letter-spacing: -.01em; line-height: 1.05; }
.latin-display { font-family: var(--f-display) !important; } /* force Hanson for a Latin title on RU/KA pages */

.kicker { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.kicker-line::after { content: ''; flex: none; width: 48px; height: 2px; background: currentColor; }
html[lang='ka'] .kicker { letter-spacing: .04em; font-size: 13px; }
.lead { font-size: 20px; line-height: 1.5; font-weight: var(--w-light); max-width: var(--measure); }
.prose { max-width: var(--measure); display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.55; }
.muted { color: var(--muted); font-weight: var(--w-light); }
.small { font-size: 14px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.num { font-family: var(--f-display); font-weight: 700; font-size: clamp(40px, 11vw, 72px); line-height: .9; font-variant-numeric: tabular-nums; }
.c-red { color: var(--red-text); } .c-green { color: var(--green); } .c-blue { color: var(--blue); }
.hl { color: var(--blue); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: 56px var(--gutter); }
.section > .in, .section-in { max-width: var(--max); margin-inline: auto; display: flex; flex-direction: column; gap: 32px; }
.section + .section { border-top: var(--line); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.rule { border: 0; border-top: var(--line); margin: 0; }
.rule-hair { border: 0; border-top: var(--hair); margin: 0; }
@media (min-width: 720px) {
  .section { padding: 88px var(--gutter); }
  .section > .in, .section-in { gap: 48px; }
  .grid { gap: 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 24px; border: var(--line); border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink); font-weight: 700; font-size: 18px; line-height: 1.1; text-align: center; text-decoration: none;
  transition: background .15s, color .15s, transform .1s;
}
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (hover: hover) {
  .btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .btn-primary:hover:not(:disabled) { background: var(--paper); color: var(--ink); border-color: var(--line-c); }
}
.btn-ghost { border-color: transparent; background: transparent; padding: 0 16px; }
.btn-ghost:hover:not(:disabled) { border-color: var(--line-c); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-wide { width: 100%; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .35; }
.btn .arrow { display: inline-block; transition: transform .15s; }
@media (hover: hover) { .btn:hover .arrow { transform: translateX(3px); } }
.bg-ink .btn { border-color: var(--line-on-ink); }
.icon-btn {
  width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  border: var(--line); border-radius: 50%; background: transparent;
}
@media (hover: hover) { .icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); } }

/* ---------- pills, tags, segmented ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border: var(--line); border-radius: var(--r-pill); background: var(--paper);
  font-size: 14px; font-weight: 700; line-height: 1.1; text-decoration: none; color: var(--ink); white-space: nowrap;
}
button.pill, a.pill { min-height: 44px; transition: background .12s, color .12s; }
@media (hover: hover) { button.pill:hover, a.pill:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); } }
.pill.on, .pill[aria-pressed='true'], .pill[aria-selected='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill-dashed { border-style: dashed; border-color: #B9B9B5; background: transparent; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border: 1.5px solid var(--line-c); border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; background: rgba(255,255,255,.7); white-space: nowrap;
}
.tag-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tag-red { border-color: var(--red); color: var(--red-text); }
.tag-green { border-color: var(--green); color: var(--green); }
.tag-blue { border-color: var(--blue); color: var(--blue); }
html[lang='ka'] .tag { letter-spacing: .02em; text-transform: none; }

.stack > .seg, .in > .seg, .section-in > .seg { align-self: flex-start; }
.seg { display: inline-flex; border: var(--line); border-radius: var(--r-pill); background: var(--paper); overflow: hidden; max-width: 100%; }
.seg-btn { min-height: 40px; padding: 0 14px; border: 0; background: transparent; font-weight: 700; font-size: 14px; white-space: nowrap; flex: 1 1 auto; }
.seg-btn + .seg-btn { border-left: var(--line); }
@media (hover: hover) { .seg-btn:hover:not(.on) { background: #eee; } }
.seg-btn.on { background: var(--ink); color: var(--paper); }
.seg-btn:focus-visible { outline-offset: -5px; border-radius: var(--r-pill); }
.seg-btn.ka { font-family: var(--f-ka); }
.seg-sm .seg-btn { min-width: 44px; padding: 0 10px; }

/* ---------- cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 24px; border: var(--line); border-radius: var(--r-card); background: var(--paper); color: var(--ink);
}
.card-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 5.5vw, 30px); line-height: 1.05; }
html[lang='ru'] .card-title { font-family: var(--f-text); letter-spacing: -.02em; }
html[lang='ka'] .card-title { font-family: var(--f-ka); font-weight: 800; }
.card-text { font-size: 16px; font-weight: var(--w-light); line-height: 1.4; }
.card-media { margin: -24px -24px 0; border-bottom: var(--line); border-radius: calc(var(--r-card) - 2px) calc(var(--r-card) - 2px) 0 0; overflow: hidden; background: rgba(255,255,255,.55); }
.card-media img, .card-media svg { width: 100%; display: block; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
a.card, .card-link { text-decoration: none; transition: background .15s, color .15s, transform .1s; }
@media (hover: hover) { a.card:hover, .card-link:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); } }
a.card:active { transform: translateY(1px); }
.card-flat { border-radius: 0; border-width: 0; border-top: var(--line); padding: 16px 0 0; background: transparent; }
.card-dashed { border-style: dashed; border-color: #B9B9B5; background: transparent; }
.notice { border: var(--line); border-radius: var(--r-sm); padding: 16px 20px; background: var(--summer); font-weight: 500; }
.notice-error { background: #fbe3dd; border-color: var(--red); }
.shot { background: var(--paper); border: var(--hair); box-shadow: var(--shadow); }

/* stats row (as on the French landing) */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: var(--line); }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 16px 0; border-bottom: var(--hair); min-width: 0; container-type: inline-size; }
.stat .num { font-size: clamp(26px, 14cqi, 72px); }
.stat:nth-child(2n) { padding-left: 16px; border-left: var(--hair); }
.stat-l { font-size: 14px; font-weight: 500; line-height: 1.35; }
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat, .stat:nth-child(2n) { padding: 16px 20px; border-left: var(--hair); border-bottom: 0; }
  .stat:first-child { border-left: 0; padding-left: 0; }
}

/* root icon (from data/icons.json via Site.icon) */
.root-icon { width: 48px; height: 48px; flex: none; display: block; }
.root-icon.lg { width: 96px; height: 96px; }
.root-icon.sm { width: 28px; height: 28px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 0 20px; border: var(--line); border-radius: var(--r-pill); background: var(--paper);
  font-size: 17px; font-weight: 500; appearance: none; -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #767676; font-weight: 400; }
.textarea { min-height: 120px; padding: 14px 20px; border-radius: var(--r-sm); resize: vertical; line-height: 1.4; }
.select {
  padding-right: 48px; font-weight: 700; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M2 2l6 6 6-6' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px center;
}
.input-search {
  padding-left: 48px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") no-repeat 18px center;
}
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline-offset: 2px; border-radius: var(--r-pill); }
.textarea:focus-visible { border-radius: var(--r-sm); }
.input.is-ok { border-color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.input.is-no { border-color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 500; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }

/* answer feedback colours shared by games */
.is-right { background: var(--green) !important; border-color: var(--green) !important; color: #fff !important; }
.is-wrong { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; }

/* loading */
.loading { display: flex; align-items: center; gap: 12px; padding: 24px 0; font-weight: 700; }
.loading::before { content: ''; width: 20px; height: 20px; border: 3px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- header ---------- */
#site-header { flex: none; }
.site-head { border-bottom: var(--line); background: var(--paper); }
.sh-in {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding: 10px var(--gutter);
  display: grid; align-items: center; gap: 8px 12px;
  grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: 'brand lang lang' 'nav nav coffee';
}
.sh-brand { grid-area: brand; display: flex; flex-direction: column; gap: 4px; white-space: nowrap; min-width: 0; text-decoration: none; color: var(--ink); padding: 4px 0; }
.sh-ka { font-family: var(--f-ka); font-weight: 800; font-size: 17px; line-height: 1.1; letter-spacing: -.005em; }
.sh-en { font-family: var(--f-display); font-weight: 700; font-size: 13px; line-height: 1; letter-spacing: .02em; }
.sh-nav { grid-area: nav; display: flex; align-items: center; gap: 0 18px; min-width: 0; flex-wrap: wrap; }
.sh-link {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
html[lang='ka'] .sh-link { letter-spacing: .02em; font-size: 14px; text-transform: none; }
.sh-link.on { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 7px; }
@media (hover: hover) { .sh-link:not(.on):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; } }
.sh-lang { grid-area: lang; justify-self: end; }
.sh-coffee {
  grid-area: coffee; justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 16px; border: var(--line); border-radius: var(--r-pill);
  background: var(--summer); color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: none;
  transition: background .15s, color .15s;
}
@media (hover: hover) { .sh-coffee:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); } }
.sh-coffee .cup { flex: none; }
@media (max-width: 479px) {
  .sh-coffee { padding: 0; width: 44px; }
  .sh-coffee-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 479px) { .sh-lang .seg-btn { min-width: 40px; padding: 0 8px; } }
@media (max-width: 374px) { .sh-nav { gap: 0 14px; } .sh-link { letter-spacing: .04em; } .sh-ka { font-size: 16px; } .sh-en { font-size: 12px; } }
@media (min-width: 900px) {
  .sh-in { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: 'brand nav lang coffee'; gap: 8px 24px; padding-block: 12px; }
  .sh-nav { gap: 0 28px; margin-left: 24px; }
  .sh-ka { font-size: 22px; }
  .sh-en { font-size: 14px; }
}

/* ---------- footer ---------- */
#site-footer { flex: none; }
.site-foot { background: var(--ink); color: var(--paper); padding: 56px var(--gutter) calc(40px + env(safe-area-inset-bottom)); margin-top: 0; }
.sf-in { max-width: var(--max); margin-inline: auto; display: flex; flex-direction: column; gap: 24px; }
.sf-title { display: flex; flex-direction: column; gap: 14px; color: var(--paper); text-decoration: none; align-self: flex-start; }
.sf-ka { font-family: var(--f-ka); font-weight: 800; font-size: clamp(32px, 8vw, 56px); line-height: 1.05; }
.sf-en { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 5vw, 32px); line-height: 1; }
.sf-about { max-width: 560px; font-weight: var(--w-light); line-height: 1.5; color: #e6e6e6; }
.sf-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.sf-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 20px; border: 2px solid var(--line-on-ink); border-radius: var(--r-pill);
  color: var(--paper); font-size: 15px; font-weight: 700; text-decoration: none; transition: background .15s, color .15s;
}
@media (hover: hover) { .sf-link:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); } }
.sf-link:focus-visible { outline-color: var(--summer); }
.sf-link[data-placeholder] { border-style: dashed; }
.ext { font-weight: 500; opacity: .6; font-size: .9em; }
.sf-small { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.22); font-size: 13px; color: #d6d6d6; font-weight: var(--w-light); }

/* ---------- season backgrounds (sections, cards, whole pages; after components so they win) ---------- */
.bg-paper { background: var(--paper); }
.bg-spring { background: var(--spring); } .bg-summer { background: var(--summer); } .bg-latesummer { background: var(--latesummer); }
.bg-autumn { background: var(--autumn); } .bg-autumnwinter { background: var(--autumnwinter); } .bg-winter { background: var(--winter); }
.bg-ink { background: var(--ink); color: var(--paper); }
body.bg-spring, body.bg-summer, body.bg-latesummer, body.bg-autumn, body.bg-autumnwinter, body.bg-winter { background-attachment: scroll; }

/* ---------- light-grey outlines for page-level styles (games, paths) ----------
   Those pages set black borders in their own <style>; "body ." outranks a single class there, while their coloured
   state rules (.x.is-right, .x:disabled, …) still win. Selection rings (box-shadow) stay black on purpose. */
body .an-badge, body .pv-center, body .pv-cmp-i, body .rd-w, body .rd-root, body .rd-sw,
body .pv-node, body .pv-map, body .pv-meter, body .pv-flag, body .pv-fin-box, body .pv-card, body .pv-c-x, body .pv-c-ico { border-color: var(--line-c); }
body .an-legend, body .pv-c-nav { border-top-color: var(--line-c); }
body .pv-legend th { border-bottom-color: var(--line-c); }
body .gb-hint, body .bd-slot { border-color: #B9B9B5; }
body .pg-toast { border-color: var(--line-on-ink); }
body .pv-node.is-sel { border-color: var(--ink); }

/* ---------- utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.hide-mobile { display: none; }
@media (min-width: 720px) { .hide-mobile { display: initial; } .hide-desktop { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-head, .site-foot, .skip-link { display: none; }
}
