/* style.css — 1021215 NUMBER_MEMORY (DigitSpan · 숫자 기억 폭 테스트)
   출발점: DesignKit kit-sketch (손그림 불규칙 모서리 · 손글씨 헤드라인 · 노트 감각)
   → 절제 변형 "연필 메모장": 평면 종이색 1장(질감·줄무늬 없음) + 잉크 1색, 유채색 0.
     손글씨는 제목·라벨·큰 숫자에만(본문은 산세리프), 카드는 불규칙 모서리 테두리만 — 그림자·회전·블러·그라디언트 없음.
     디자인 레퍼런스: behance.net(무드보드 — 메모 카드가 느슨하게 놓인 구성). */
:root {
  --paper: #fbfaf6; --card: #ffffff; --wash: #f2f0ea;
  --ink: #1e2024; --ink-2: #54575d; --ink-3: #8c8e92;
  --line: #dedbd2; --line-2: #bcb8ad;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Hiragino Sans', 'Noto Sans JP', 'PingFang SC', 'Noto Sans SC', 'Noto Sans Arabic', Roboto, 'Helvetica Neue', sans-serif;
  --digit: 'Klee One', 'Hiragino Sans', ui-rounded, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  /* 손글씨: 언어별로 바꾼다(아래 :lang). --hs = 글꼴마다 다른 시각 크기 보정, --hw = 제공 굵기 */
  --hand: 'Caveat', 'Klee One', cursive; --hs: 1.22; --hw: 700;
  /* 손그림 불규칙 모서리(kit-sketch) */
  --sk-1: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --sk-2: 15px 225px 15px 255px / 255px 15px 225px 15px;
  --sk-pill: 120px 18px 110px 18px / 18px 110px 18px 120px;
  --sk-circle: 48% 52% 50% 50% / 52% 48% 52% 48%;
  --bw: 1.5px;
  --w: 1000px; --col: 780px;
  color-scheme: light;
}
:root:lang(ko) { --hand: 'Gaegu', 'Klee One', cursive; --hs: 1.12; }
:root:lang(ja) { --hand: 'Klee One', cursive; --hs: .94; --hw: 600; }
:root:lang(zh) { --hand: 'Ma Shan Zheng', 'Klee One', cursive; --hs: 1.04; --hw: 400; }
:root:lang(ar) { --hand: 'Aref Ruqaa', 'Noto Naskh Arabic', serif; --hs: 1.02; }
:root[data-theme="dark"] {
  --paper: #18191b; --card: #1f2023; --wash: #27282b;
  --ink: #e8e6e1; --ink-2: #b0aea8; --ink-3: #7e7c77;
  --line: #36363a; --line-2: #55534f;
  color-scheme: dark;
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-style: wavy; }
button, select { font: inherit; color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px dashed var(--ink); outline-offset: 3px; }
.kick { font-family: var(--hand); font-weight: var(--hw); font-size: calc(1.08rem * var(--hs)); line-height: 1.25; color: var(--ink-2); }
.mono { font-family: var(--digit); font-weight: 600; font-variant-numeric: tabular-nums; }

/* 손으로 그은 짧은 밑줄(호) — 제목 공용 */
.col-h::after, .prose h2::after, .page-h::after, .prose h1::after {
  content: ''; display: block; width: 2.6em; height: .34em; margin-top: -.1em;
  border-bottom: 2px solid var(--ink); border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

/* ── header ── */
.mast { width: 100%; }
.mast-in { max-width: var(--w); margin: 0 auto; padding: 16px 16px 12px; display: flex; align-items: center; gap: 26px;
  border-bottom: var(--bw) dashed var(--line-2); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-n { display: inline-grid; place-items: center; width: 50px; height: 44px; border: var(--bw) solid var(--ink); border-radius: var(--sk-circle);
  font-family: var(--digit); font-weight: 600; font-size: .98rem; letter-spacing: -.02em; transform: rotate(-4deg); background: var(--card); }
.brand-t { font-family: var(--hand); font-weight: var(--hw); font-size: calc(1.3rem * var(--hs)); line-height: 1.1; }
.nav { display: flex; gap: 6px; }
.nav a { font-family: var(--hand); font-weight: var(--hw); font-size: calc(1.1rem * var(--hs)); line-height: 1.3; color: var(--ink-2); text-decoration: none;
  padding: 3px 12px; border: var(--bw) solid transparent; border-radius: var(--sk-pill); }
.nav a:hover { color: var(--ink); text-decoration: underline wavy; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.nav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); text-decoration: none; }
.mast-tools { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.lang { height: 34px; border: var(--bw) solid var(--line-2); border-radius: var(--sk-pill); background: var(--card); padding: 0 10px; font-size: .84rem; max-width: 124px; cursor: pointer; }
.theme-btn { width: 36px; height: 36px; border: var(--bw) solid var(--line-2); background: var(--card); border-radius: var(--sk-circle); display: grid; place-items: center; cursor: pointer; color: var(--ink); padding: 0; }
.theme-btn:hover, .lang:hover { border-color: var(--ink); }
@media (max-width: 720px) {
  .mast-in { flex-wrap: wrap; gap: 8px 12px; padding-top: 12px; padding-bottom: 8px; }
  .brand-n { width: 44px; height: 38px; font-size: .88rem; }
  .nav { order: 3; width: 100%; gap: 2px; overflow-x: auto; margin-inline-start: -12px; }
  .nav a { white-space: nowrap; }
}

/* ── tool ── */
.app { width: 100%; max-width: var(--col); margin: 0 auto; padding: 22px 16px 40px; flex: 1; }
.desk { display: flex; flex-direction: column; gap: 20px; }
.stage { background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--sk-1); padding: 16px 24px 24px; min-width: 0; display: flex; flex-direction: column; }
.st-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 30px; }
.st-bar .kick { font-family: var(--sans); font-weight: 600; font-size: .78rem; line-height: 1.4; color: var(--ink-2);
  padding: 3px 11px; border: 1px dashed var(--line-2); border-radius: var(--sk-pill); }
.st-bar .kick:empty { display: none; }
.st-mode { margin-inline-start: auto; }
.board { min-height: clamp(200px, 32vw, 280px); display: flex; align-items: center; justify-content: center; padding: 16px 0 12px; overflow: hidden; }
.digits { font-family: var(--digit); font-weight: 600; font-size: 120px; line-height: 1.05; letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: center; color: var(--ink); }
.digits.is-idle { color: var(--line-2); font-weight: 400; }
.digits.is-ready { font-family: var(--hand); font-weight: var(--hw); font-size: calc(clamp(1.7rem, 5vw, 2.4rem) * var(--hs)) !important; letter-spacing: 0; color: var(--ink-2); }
.stage[data-phase="show"] .digits { user-select: none; -webkit-user-select: none; }

.slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 100%; }
.slot { width: 1.12em; height: 1.34em; font-family: var(--digit); font-weight: 600; font-size: clamp(2rem, 6.4vw, 3.5rem); line-height: 1.3; text-align: center;
  border: var(--bw) solid var(--line); border-radius: var(--sk-1); font-variant-numeric: tabular-nums; }
.slot:nth-child(even) { border-radius: var(--sk-2); }
.slot.on { border-color: var(--ink-2); }
.slot.cur { border-color: var(--ink); border-style: dashed; }
.slots.dense { gap: 5px; }
.slots.dense .slot { font-size: clamp(1.3rem, 4vw, 2.2rem); }

.verdict { width: 100%; display: grid; gap: 10px; justify-items: center; }
.v-lab { margin: 0 0 6px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--hand); font-weight: var(--hw); font-size: calc(clamp(1.5rem, 4.2vw, 2.1rem) * var(--hs)); line-height: 1.2; }
.v-lab.bad { color: var(--ink-2); }
.v-mark { display: inline-grid; place-items: center; width: 1.45em; height: 1.35em; font-family: var(--sans); font-size: .7em; font-weight: 700;
  border: var(--bw) solid currentColor; border-radius: var(--sk-circle); }
.v-row { display: flex; align-items: baseline; gap: 14px; max-width: 100%; }
.v-row .kick { min-width: 4.5em; text-align: end; }
.v-d { display: flex; flex-wrap: wrap; gap: 2px 6px; font-family: var(--digit); font-size: clamp(1.6rem, 5vw, 2.5rem); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.25; }
.verdict.dense .v-d { font-size: clamp(1.1rem, 3.2vw, 1.7rem); }
.v-d .miss { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--ink-3); }

.final { display: grid; justify-items: center; gap: 8px; text-align: center; }
.final .kick { font-size: calc(1.25rem * var(--hs)); }
.final-n { display: inline-grid; place-items: center; min-width: 1.5em; padding: .12em .3em .08em; font-family: var(--digit); font-weight: 600;
  font-size: clamp(4.4rem, 16vw, 7.6rem); line-height: 1; font-variant-numeric: tabular-nums;
  border: 2px solid var(--ink); border-radius: var(--sk-circle); transform: rotate(-3deg); }
.final-sub { color: var(--ink-2); font-size: .95rem; max-width: 34em; }

.cue { margin: 0; min-height: 1.7em; text-align: center; color: var(--ink-2); font-size: .95rem; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 320px; margin: 16px auto 0; }
.key { height: 56px; border: var(--bw) solid var(--line-2); border-radius: var(--sk-1); background: var(--card); font-family: var(--digit); font-size: 1.6rem; font-weight: 600; color: var(--ink);
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; padding: 0; }
.key:nth-child(even) { border-radius: var(--sk-2); }
.key:hover { border-color: var(--ink); }
.key:active { background: var(--ink); color: var(--card); border-color: var(--ink); }
.key-fn { font-family: var(--sans); font-size: 1.2rem; color: var(--ink-2); }
.key-ok { font-family: var(--sans); font-size: .92rem; font-weight: 700; background: var(--ink); color: var(--card); border-color: var(--ink); }
.key-ok:hover { opacity: .88; }

.acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 22px; border: var(--bw) solid var(--ink); background: var(--card); color: var(--ink);
  border-radius: var(--sk-pill); font-family: var(--sans); font-size: .92rem; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.4; }
.btn:hover { background: var(--wash); text-decoration: none; }
.btn-ink { background: var(--ink); color: var(--card); min-width: 170px; font-family: var(--hand); font-weight: var(--hw); font-size: calc(1.3rem * var(--hs)); line-height: 1.2; }
.btn-ink:hover { background: var(--ink); opacity: .88; }
.btn-ink:disabled { opacity: .35; cursor: not-allowed; }
.btn-quiet { border-color: var(--line-2); color: var(--ink-2); }
.btn-s { min-height: 30px; padding: 3px 13px; font-size: .8rem; }
.st-fine { text-align: center; margin: 16px auto 0; max-width: 40em; }

/* 설정 — 점선 메모 카드 */
.setup { background: transparent; border: var(--bw) dashed var(--line-2); border-radius: var(--sk-2); padding: 18px 24px 20px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; align-items: start; }
.setup .col-h, .setup .note, .setup .rule { grid-column: 1 / -1; }
.setup.locked .opt { opacity: .45; }
.col-h { margin: 0 0 2px; font-family: var(--hand); font-weight: var(--hw); font-size: calc(1.55rem * var(--hs)); line-height: 1.15; color: var(--ink); }
.opt { display: grid; gap: 6px; transition: opacity .15s; }
.choice { display: flex; flex-wrap: wrap; gap: 6px; }
.ch { border: var(--bw) solid var(--line); border-radius: var(--sk-pill); background: var(--card); padding: 5px 14px; min-height: 36px; cursor: pointer; font-size: .9rem; color: var(--ink-2); }
.ch:nth-child(even) { border-radius: 18px 110px 18px 120px / 120px 18px 110px 18px; }
.ch:hover { border-color: var(--ink-2); }
.ch[aria-checked="true"] { border-color: var(--ink); background: var(--wash); color: var(--ink); font-weight: 700; }
.ch:disabled { opacity: .45; cursor: not-allowed; }
.opt[data-opt="sec"] .ch { font-family: var(--digit); font-weight: 600; font-variant-numeric: tabular-nums; padding: 5px 11px; }
#startLen { height: 38px; width: 92px; border: var(--bw) solid var(--line-2); border-radius: var(--sk-2); background: var(--card); padding: 0 10px; font-family: var(--digit); font-weight: 600; font-size: 1.05rem; cursor: pointer; }
.note { margin: 0; font-size: .9rem; color: var(--ink); background: var(--wash); padding: 9px 14px; border-radius: var(--sk-2); }
.rule { margin: 2px 0 0; padding-top: 12px; border-top: var(--bw) dashed var(--line); font-size: .88rem; color: var(--ink-2); }
.fine { font-size: .78rem; color: var(--ink-3); line-height: 1.6; }
.fine a { color: var(--ink-2); }

@media (max-width: 720px) {
  .app { padding-top: 16px; }
  .stage { padding: 14px 16px 20px; }
  .st-mode { margin-inline-start: 0; }
  .setup { padding: 16px 18px 18px; }
}
@media (max-width: 520px) {
  .setup { grid-template-columns: minmax(0, 1fr); }
  .key { height: 54px; }
}

/* ── records — 무드보드처럼 놓인 메모 카드 ── */
.records { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 18px; margin-top: 28px; }
.rec-col, .recent { background: var(--card); border: var(--bw) solid var(--line-2); border-radius: var(--sk-1); padding: 18px 20px 20px; min-width: 0; }
.rec-col:nth-child(2) { border-radius: var(--sk-2); }
.rec-col:nth-child(3) { grid-column: 1 / -1; }
.bests { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 6px; }
.bests div { display: grid; gap: 2px; justify-items: start; }
.bests dt { font-family: var(--hand); font-weight: var(--hw); font-size: calc(1.1rem * var(--hs)); line-height: 1.2; color: var(--ink-2); }
.bests dd { margin: 0; font-family: var(--digit); font-weight: 600; font-size: 3.2rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat { margin: 6px 0 0; font-size: .86rem; color: var(--ink-2); }
.chart { margin-top: 12px; height: 150px; }
.chart svg { width: 100%; height: 150px; display: block; overflow: visible; }
.chart .gl { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.chart .ax { stroke: var(--ink-2); stroke-width: 1.2; }
.chart .gt { fill: var(--ink-3); font-family: var(--digit); font-size: 11px; }
.chart .ln { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart .ln-bwd { stroke: var(--ink-2); stroke-dasharray: 5 4; }
.chart .pt-f { fill: var(--ink); }
.chart .pt-b { fill: var(--card); stroke: var(--ink-2); stroke-width: 1.4; }
.legend { margin: 8px 0 0; font-size: .8rem; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lg { display: inline-block; width: 20px; height: 0; border-top: 2px solid var(--ink); margin-inline-start: 8px; border-radius: 2px; }
.lg:first-child { margin-inline-start: 0; }
.lg-b { border-top: 2px dashed var(--ink-2); }
.empty { margin: 12px 0 0; font-family: var(--hand); font-weight: var(--hw); font-size: calc(1.08rem * var(--hs)); line-height: 1.35; color: var(--ink-3); }
.chart .empty { margin: 0; padding-top: 52px; text-align: center; }
.tbl-log { max-height: 250px; overflow-y: auto; }
.recent { margin-top: 18px; border-radius: var(--sk-2); }
.recent-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
@media (max-width: 720px) {
  .records { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 22px; }
  .rec-col, .recent { padding: 16px 16px 18px; }
  .recent { margin-top: 14px; }
}

/* 표 (도구·본문 공용) */
.tbl { overflow-x: auto; margin: 10px 0 16px; }
.tbl table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.tbl th, .tbl td { padding: 7px 10px; border-bottom: 1px dashed var(--line-2); text-align: start; vertical-align: top; }
.tbl thead th { font-size: .78rem; font-weight: 700; color: var(--ink-2); border-bottom: var(--bw) solid var(--ink); white-space: nowrap; }
.tbl td.mono { white-space: nowrap; }
.tbl .strong { font-size: 1.1rem; }
.tbl tr.bad td.mono:nth-child(4) { text-decoration: line-through; color: var(--ink-3); }
.res-c { text-align: center !important; }
.tbl th:first-child, .tbl td:first-child { padding-inline-start: 2px; }

/* ── ads (애드핏 규정: 래퍼에 radius·overflow 금지) ── */
.ad-wrap { margin: 28px auto 0; }
.ad-grid { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 672px; margin: 0 auto; }
.ad-grid[data-ad-layout="mixed"] { max-width: 760px; }
.ad-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
.ad-cell { min-height: 50px; max-width: 100%; }
.ad-pc { display: none; }
@media (min-width: 720px) { .ad-pc { display: flex; } .ad-mo { display: none; } }
.prose .ad-wrap { margin: 34px 0; }

/* ── content pages ── */
.page { width: 100%; max-width: 720px; margin: 0 auto; padding: 24px 16px 56px; flex: 1; }
.page.wide { max-width: 900px; }
.crumb { font-size: .82rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.crumb a { color: var(--ink-2); text-decoration: none; }
.crumb a:hover { text-decoration: underline wavy; }
.crumb .sep { color: var(--line-2); }
.prose { font-size: 1.03rem; line-height: 1.85; }
.art-kick { margin: 0 0 4px; }
.prose h1, .page-h { font-family: var(--hand); font-weight: var(--hw); font-size: calc(clamp(2.05rem, 5.6vw, 2.9rem) * var(--hs)); line-height: 1.12; margin: 0 0 18px; }
.prose h2 { font-family: var(--hand); font-weight: var(--hw); font-size: calc(1.6rem * var(--hs)); line-height: 1.2; margin: 46px 0 14px; }
.prose p { margin: 0 0 16px; }
.prose ul { list-style-type: '–  '; padding-inline-start: 1.3em; margin: 0 0 18px; }
.prose ol { padding-inline-start: 1.5em; margin: 0 0 18px; }
.prose ol ::marker { font-family: var(--digit); font-weight: 600; }
.prose li { margin: 5px 0; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--wash); padding: 1px 6px; border-radius: 6px; }
.lead { color: var(--ink-2); font-size: 1.13rem; line-height: 1.7; padding-bottom: 20px; margin-bottom: 26px; border-bottom: var(--bw) dashed var(--line-2); }
.pull { margin: 24px 0; padding: 14px 20px; background: var(--wash); border-radius: var(--sk-2);
  font-family: var(--hand); font-weight: var(--hw); font-size: calc(1.2rem * var(--hs)); line-height: 1.5; color: var(--ink); }
.cite { font-size: .8rem; line-height: 1.6; color: var(--ink-3); border-top: var(--bw) dashed var(--line); padding-top: 12px; margin-top: 38px; }
.refs { font-size: .9rem; color: var(--ink-2); }
.cta { margin-top: 32px; }
.faq { background: var(--card); border: var(--bw) solid var(--line-2); border-radius: var(--sk-1); padding: 12px 18px; margin: 10px 0; }
.faq:nth-of-type(even) { border-radius: var(--sk-2); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; gap: 10px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; font-family: var(--digit); font-weight: 600; color: var(--ink-2); flex: none; width: .8em; }
.faq[open] summary::before { content: '–'; }
.faq p { margin: 8px 0 2px; color: var(--ink-2); }
.mail { font-size: 1.05rem; }
.related { margin-top: 44px; padding: 16px 20px; border: var(--bw) dashed var(--line-2); border-radius: var(--sk-2); }
.related h2 { margin: 0 0 6px; font-size: calc(1.3rem * var(--hs)); }
.related h2::after { display: none; }
.related ul { margin: 0; }
.gindex { list-style: none; padding: 0; margin: 28px 0 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gi { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; height: 100%; padding: 18px 20px; background: var(--card);
  border: var(--bw) solid var(--line-2); border-radius: var(--sk-1); text-decoration: none; color: var(--ink); }
.gindex li:nth-child(even) .gi { border-radius: var(--sk-2); }
.gi:hover { border-color: var(--ink); text-decoration: none; }
.gi-n { grid-row: span 2; display: grid; place-items: center; width: 2.5rem; height: 2.3rem; font-family: var(--digit); font-weight: 600; font-size: 1rem;
  border: var(--bw) solid var(--ink); border-radius: var(--sk-circle); transform: rotate(-4deg); }
.gi-t { font-size: 1.06rem; font-weight: 700; line-height: 1.4; }
.gi-d { color: var(--ink-2); font-size: .9rem; line-height: 1.6; }
.gi:hover .gi-t { text-decoration: underline wavy; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width: 640px) { .gindex { grid-template-columns: minmax(0, 1fr); gap: 12px; } .gi { padding: 16px; } }
.nf { text-align: center; padding-top: 30px; }
.nf h1::after { margin-inline: auto; }
.nf-code { display: inline-block; font-family: var(--digit); font-weight: 600; font-size: 5.4rem; line-height: 1; margin: 0 0 18px; padding: .12em .35em;
  border: 2px solid var(--ink); border-radius: var(--sk-circle); transform: rotate(-3deg); }
.nf-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin-top: 26px; font-size: .88rem; }

/* ── footer ── */
.foot { margin-top: 36px; }
.foot-in { max-width: var(--w); margin: 0 auto; padding: 24px 16px 36px; display: grid; gap: 10px; justify-items: center; text-align: center;
  border-top: var(--bw) dashed var(--line-2); }
.foot-main, .foot-guides { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.foot-main a { font-family: var(--hand); font-weight: var(--hw); font-size: calc(1.1rem * var(--hs)); line-height: 1.4; color: var(--ink); text-decoration: none; }
.foot-guides a { color: var(--ink-2); text-decoration: none; font-size: .85rem; }
.foot a:hover { text-decoration: underline wavy; }
.foot .fine { margin: 6px 0 0; max-width: 46em; }
.copyright { margin: 0; font-size: .74rem; color: var(--ink-3); }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 12px); background: var(--ink); color: var(--card); padding: 9px 20px; border-radius: var(--sk-pill);
  font-size: .88rem; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 50; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast, .opt { transition: none; } }
