/* LUNE — moonlight on paper: cream ink over night, a little gold. */
:root {
  --ink: #23212b;
  --ink-soft: #6a6474;
  --paper: rgba(250, 246, 240, 0.95);
  --paper-solid: #faf6f0;
  --cream: #fbf3e8;
  --moon: #fff3e2;
  --gold: #c9a35a;
  --gold-soft: #f0d6a2;
  --ember: #f0935a;
  --wren: #6cc7dd;
  --night: #0d1024;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--night); overflow: hidden; color: var(--cream); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------------------------------------------------------------- screens */
.screen { position: fixed; inset: 0; display: none; z-index: 10; }
.screen.show { display: flex; animation: fadein .9s ease both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.panel-screen { align-items: center; justify-content: center; background: rgba(8, 9, 22, 0.64); z-index: 30; }

/* ---------------------------------------------------------------- loading: a sky for two (ui/loading.js)
   Everything that moves is drawn on the one canvas; the words only fade (opacity, on the compositor). */
#loading { align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 42%, #1c2146 0%, #0b0d1e 72%); z-index: 50; cursor: none; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
#loading.show { animation: fadein .5s ease both; }
#loading.boot { cursor: default; }
#loading.opening { background: transparent; pointer-events: none; }
#loading.opening .dream-top, #loading.opening .dream-bottom { opacity: 0; transition: opacity .45s ease; }
#loadingCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dream-top { position: absolute; left: 16px; right: 16px; top: max(7vh, 30px); text-align: center; pointer-events: none; }
.dream-top .chapter { font-family: var(--serif); font-size: 13px; letter-spacing: .34em; text-transform: uppercase; color: rgba(255, 243, 226, .6); min-height: 18px; }
.dream-top .line { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 2vw, 22px); color: rgba(255, 246, 234, .86); margin-top: 10px; min-height: 28px; text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }
.dream-bottom { position: absolute; left: 16px; right: 16px; bottom: max(8vh, 28px); text-align: center; pointer-events: none; }
.dream-bottom .hintline { font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.8vw, 20px); letter-spacing: .02em; color: rgba(255, 246, 234, .84); min-height: 26px; transition: opacity .45s ease; text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }
.dream-bottom .subhint { font-size: 12px; letter-spacing: .08em; color: rgba(255, 243, 226, .44); margin-top: 10px; min-height: 16px; transition: opacity .45s ease; }
.dream-bottom .out { opacity: 0; }
#loading.boot .dream-bottom { display: none; }

/* ---------------------------------------------------------------- title */
#title { align-items: center; padding: 0 clamp(24px, 8vw, 130px); background: linear-gradient(90deg, rgba(10, 10, 28, 0.62) 0%, rgba(10, 10, 28, 0.2) 42%, rgba(10, 10, 28, 0) 68%); }
.title-col { max-width: 520px; }
.logo { position: relative; display: inline-block; margin: 0 0 0 -10px; line-height: 0; }
.logo-svg { width: clamp(260px, 30vw, 420px); height: auto; overflow: visible; }
.logo-ink { position: relative; }
.logo-layer { position: absolute; left: 0; top: 0; pointer-events: none; will-change: opacity, transform; }
.logo-glow { opacity: .45; animation: inkbreath 7s ease-in-out infinite; }
.logo-halo { opacity: .38; animation: halo 6s ease-in-out infinite; transform-origin: 87.11% 52.86%; }
@keyframes inkbreath { 0%, 100% { opacity: .32; } 50% { opacity: .6; } }
@keyframes halo { 0%, 100% { opacity: .26; transform: scale(.94); } 50% { opacity: .52; transform: scale(1.06); } }
.tagline { font-family: var(--serif); font-style: italic; font-size: 19px; margin: 6px 0 38px 4px; opacity: .78; letter-spacing: .05em; }
.menu { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.menu button { position: relative; font-family: var(--serif); font-size: 22px; padding: 7px 0 7px 28px; color: #fff8f0; opacity: .8; text-align: left; transition: opacity .3s, transform .3s; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.menu button span { display: block; font-family: var(--sans); font-size: 12.5px; opacity: .6; margin-top: 2px; letter-spacing: .03em; }
.menu button::before { content: ''; position: absolute; left: 4px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--moon); box-shadow: 0 0 12px 3px rgba(255, 230, 190, .55); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .3s; }
.menu button:hover, .menu button:focus-visible { opacity: 1; transform: translateX(4px); outline: none; }
.menu button:hover::before, .menu button:focus-visible::before { opacity: 1; transform: scale(1); }
.foot { position: absolute; bottom: 22px; left: clamp(24px, 8vw, 130px); font-size: 12px; opacity: .5; letter-spacing: .05em; }

/* ---------------------------------------------------------------- panels */
.panel { background: var(--paper); color: var(--ink); border-radius: 20px; padding: 30px 34px 26px; width: min(440px, 92vw); box-shadow: 0 24px 70px rgba(0,0,0,.45); max-height: 88vh; }
.panel.wide { width: min(720px, 94vw); }
.panel.wider { width: min(880px, 95vw); }
.panel.scroll { overflow-y: auto; }
.panel h2 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 32px; margin: 0 0 14px; }
.panel p { line-height: 1.55; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.row { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; align-items: center; }
.row.left { justify-content: flex-start; margin-top: 10px; }
.primary, .ghost-btn { position: relative; padding: 11px 22px; border-radius: 999px; font-weight: 600; letter-spacing: .02em; transition: transform .15s; }
/* the hover shadow is its own layer: only its opacity animates */
.primary::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 6px 18px rgba(0,0,0,.2); opacity: 0; transition: opacity .2s; pointer-events: none; }
.primary:hover::after { opacity: 1; }
.primary { background: var(--ink); color: var(--paper-solid); }
.primary:hover { transform: translateY(-1px); }
.primary:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; }
.ghost-btn { border: 1.5px solid rgba(35, 33, 43, .25); }
.ghost-btn:hover { border-color: var(--ink); }
.ghost-btn.small { padding: 6px 14px; font-size: 13px; }
.panel .menu button { color: var(--ink); text-shadow: none; font-size: 20px; }
.panel .menu button::before { background: var(--gold); box-shadow: none; }
.panel .menu.stacked { margin: 6px 0 14px; }

/* chapters */
.chapter-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.chapter-list button { position: relative; text-align: left; padding: 14px 16px; border-radius: 14px; background: rgba(35,33,43,.05); color: var(--ink); transition: transform .2s; }
.chapter-list button::after, .diff-list button::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(201, 163, 90, .16); opacity: 0; transition: opacity .2s; pointer-events: none; }
.chapter-list button:hover:not(:disabled)::after, .diff-list button:hover::after, .diff-list button:focus-visible::after { opacity: 1; }
.chapter-list button:hover:not(:disabled) { transform: translateY(-1px); }
.chapter-list button:disabled { opacity: .35; cursor: default; }
.chapter-list .n { font-family: var(--serif); font-size: 13px; letter-spacing: .25em; color: var(--ink-soft); }
.chapter-list .t { font-family: var(--serif); font-size: 20px; font-style: italic; margin-top: 2px; }

/* join slots */
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.slot { border-radius: 14px; padding: 18px; border: 2px dashed rgba(35,33,43,.2); }
.slot .who { font-family: var(--serif); font-size: 26px; font-style: italic; }
.slot .dev { margin: 6px 0 10px; font-weight: 600; color: var(--ink-soft); }
.slot .keys { font-size: 12px; color: var(--ink-soft); line-height: 1.7; }
.slot.ember.ready { border: 2px solid var(--ember); background: rgba(240, 147, 90, .08); }
.slot.wren.ready { border: 2px solid var(--wren); background: rgba(108, 199, 221, .1); }
.slot.ready .dev { color: var(--ink); }

/* lobby */
.roomcode { font-family: ui-monospace, Menlo, monospace; font-size: 40px; letter-spacing: .24em; padding: 10px 18px; background: rgba(35,33,43,.06); border-radius: 12px; display: inline-block; user-select: all; }
.codein { font-family: ui-monospace, Menlo, monospace; font-size: 24px; letter-spacing: .2em; text-transform: uppercase; width: 160px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid rgba(35,33,43,.25); background: rgba(255,255,255,.7); color: var(--ink); }
details.invite { margin-top: 18px; }
details.invite summary { cursor: pointer; font-weight: 600; color: var(--ink-soft); }
details.invite textarea { width: 100%; height: 76px; font-family: ui-monospace, Menlo, monospace; font-size: 11px; border-radius: 10px; border: 1.5px solid rgba(35,33,43,.2); padding: 10px; resize: none; background: rgba(255,255,255,.6); color: var(--ink); word-break: break-all; margin-top: 8px; }
.status { margin-top: 12px; font-size: 14px; color: var(--ink-soft); min-height: 20px; }
.status.ok { color: #3c7d4a; }
.status.err { color: #b0442c; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: rgba(35,33,43,.07); padding: 1px 6px; border-radius: 6px; }

/* settings */
.tabs { display: flex; gap: 6px; margin: 4px 0 18px; flex-wrap: wrap; }
.tabs button { padding: 7px 16px; border-radius: 999px; border: 1.5px solid rgba(35,33,43,.2); font-size: 14px; }
.tabs button.on { background: var(--ink); color: var(--paper-solid); border-color: var(--ink); }
.form { display: grid; grid-template-columns: 1fr auto; gap: 12px 18px; align-items: center; }
.form h3 { grid-column: 1 / -1; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; margin: 12px 0 0; border-bottom: 1px solid rgba(35,33,43,.12); padding-bottom: 6px; }
.form label { font-size: 15px; }
.form label small { display: block; color: var(--ink-soft); font-size: 12px; }
.form input[type=range] { width: 220px; accent-color: var(--ink); }
.form select { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1.5px solid rgba(35,33,43,.25); background: #fff; color: var(--ink); }
.form input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--ink); }
.form .val { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 13px; margin-left: 8px; min-width: 72px; display: inline-block; }
/* key bindings */
.binds { width: 100%; border-collapse: collapse; font-size: 14px; }
.binds th { text-align: left; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 17px; padding: 6px 6px 8px; border-bottom: 1px solid rgba(35,33,43,.14); }
.binds td { padding: 4px 6px; border-bottom: 1px solid rgba(35,33,43,.06); vertical-align: middle; }
.binds td.act { color: var(--ink); }
.binds td.act small { display: block; color: var(--ink-soft); font-size: 11.5px; }
.bind { min-width: 92px; padding: 5px 10px; margin: 2px 2px; border-radius: 8px; background: rgba(35,33,43,.06); border: 1.5px solid rgba(35,33,43,.12); font-size: 13px; font-weight: 600; color: var(--ink); }
.bind:hover { border-color: var(--ink); }
.bind.empty { color: var(--ink-soft); font-weight: 400; }
.bind.listening { background: var(--ink); color: var(--paper-solid); animation: pulse 1s ease-in-out infinite; }
.bind.conflict { border-color: #c4532f; background: rgba(196, 83, 47, .1); }
@keyframes pulse { 50% { opacity: .65; } }
.bind-note { min-height: 20px; font-size: 13px; margin: 10px 0 0; color: var(--ink-soft); }
.bind-note.warn { color: #b0442c; }
.pad-ref { margin-top: 16px; font-size: 13px; color: var(--ink-soft); line-height: 1.7; }
kbd { font-family: var(--sans); font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(35,33,43,.08); border: 1px solid rgba(35,33,43,.18); border-bottom-width: 2px; }

/* ---------------------------------------------------------------- HUD */
#hud { position: fixed; inset: 0; pointer-events: none; display: none; z-index: 20; }
#hud.show { display: block; }
#hud .view { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; }
#hud.split #hud0 { width: 50%; }
#hud.split #hud1 { left: 50%; width: 50%; }
#hud:not(.split) #hud1 { display: none; }
.prompt { position: absolute; left: 50%; bottom: 17%; transform: translate(-50%, 8px); display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(12, 12, 26, 0.42); color: #fff8ef; font-family: var(--serif); font-size: 18px; opacity: 0; transition: opacity .3s, transform .3s; white-space: nowrap; background: rgba(12, 12, 26, 0.58); }
.prompt.show { opacity: 1; transform: translate(-50%, 0); }
.prompt .key, .hint .key { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 9px; background: rgba(255, 246, 236, .92); color: var(--ink); font-family: var(--sans); font-weight: 700; font-size: 13px; }
.prompt .hold { font-family: var(--sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.hint { position: absolute; left: 50%; bottom: 7%; transform: translate(-50%, 8px); display: flex; align-items: center; gap: 10px; color: rgba(255, 248, 239, .88); font-size: 14px; letter-spacing: .02em; opacity: 0; transition: opacity .6s, transform .6s; text-shadow: 0 1px 8px rgba(0,0,0,.5); white-space: nowrap; }
.hint.show { opacity: 1; transform: translate(-50%, 0); }
.hint .key { height: 26px; min-width: 26px; font-size: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.card { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); max-width: min(560px, 80%); text-align: center; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.5; color: #fff8ef; text-shadow: 0 2px 14px rgba(0,0,0,.5); opacity: 0; transition: opacity .8s; }
.card.show { opacity: 1; }
.partner { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity .4s; will-change: transform; }
.partner.show { opacity: 1; }
.partner .chip { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border-radius: 999px; background: rgba(12,12,26,.42); font-size: 12px; font-weight: 600; white-space: nowrap; }
.partner .chip i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.partner .arrow { position: absolute; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid currentColor; }
#toasts { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.toast { padding: 8px 18px; border-radius: 999px; background: rgba(12,12,26,.45); color: #fff8ef; font-family: var(--serif); font-style: italic; font-size: 17px; animation: toast 4.3s ease both; background: rgba(12, 12, 26, .6); }
@keyframes toast { 0% { opacity: 0; transform: translateY(-8px); } 10%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; } }
#chapterCard { position: absolute; left: 0; right: 0; top: 36%; text-align: center; opacity: 0; transition: opacity 1.6s ease; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
#chapterCard.show { opacity: 1; }
#chapterCard .num { font-family: var(--serif); font-size: 16px; letter-spacing: .5em; color: rgba(255, 243, 226, .7); }
#chapterCard .name { font-family: var(--serif); font-style: italic; font-size: clamp(38px, 5.4vw, 66px); color: #fff8ef; margin: 8px 0 12px; }
#chapterCard .line { font-family: var(--serif); font-size: 18px; color: rgba(255, 246, 234, .8); }
#banner { position: absolute; left: 0; right: 0; top: 30%; text-align: center; opacity: 0; transition: opacity 1.2s; text-shadow: 0 2px 24px rgba(0,0,0,.5); }
#banner.show { opacity: 1; }
#banner .big { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 4vw, 46px); color: #fff8ef; }
#banner .small { font-family: var(--serif); font-size: 17px; color: rgba(255, 246, 234, .8); margin-top: 8px; }
#letterbox i { position: absolute; left: 0; right: 0; height: 10vh; background: #05060d; transform: scaleY(0); transition: transform 1.6s ease; }
#letterbox i:first-child { top: 0; transform-origin: top; } #letterbox i:last-child { bottom: 0; transform-origin: bottom; }
#hud.cinematic #letterbox i { transform: scaleY(1); }
#hud.cinematic .prompt, #hud.cinematic .hint, #hud.cinematic .partner, #hud.cinematic #toasts { opacity: 0 !important; }
#endCard { position: absolute; left: 0; right: 0; bottom: 18vh; text-align: center; opacity: 0; transition: opacity 1.8s ease; }
#endCard.show { opacity: 1; }
#endCard .big { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.6vw, 44px); color: #fff8ef; text-shadow: 0 2px 26px rgba(0,0,0,.5); }
#endCard .small { font-family: var(--serif); font-size: 17px; color: rgba(255, 246, 234, .82); margin-top: 10px; }
#skipHint { position: absolute; right: 26px; bottom: calc(10vh + 16px); font-size: 13px; color: rgba(255,248,239,.6); opacity: 0; transition: opacity .8s; }
#skipHint.show { opacity: 1; }
#skipHint kbd { background: rgba(255,248,239,.15); border-color: rgba(255,248,239,.3); color: #fff8ef; }
#clickToPlay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; padding: 18px 30px; border-radius: 16px; background: rgba(12,12,26,.55); font-family: var(--serif); font-size: 22px; display: none; pointer-events: auto; cursor: pointer; }
#clickToPlay.show { display: block; }
#clickToPlay small { display: block; font-family: var(--sans); font-size: 12px; opacity: .6; margin-top: 6px; }

/* lives: a small moon for each life, top right */
#lives { position: absolute; top: 16px; right: 18px; display: none; flex-direction: column; align-items: flex-end; gap: 6px; padding: 8px 12px 8px 14px; border-radius: 14px; background: rgba(12, 12, 26, .5); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
#lives.show { display: flex; }
#lives .lv { display: flex; align-items: center; gap: 7px; font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(255, 248, 239, .85); }
#lives .lv .nm { margin-right: 3px; }
#lives .lv i { width: 15px; height: 15px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor, inset -3px -2px 0 rgba(0,0,0,.18); transition: opacity .6s, transform .6s; }
#lives .lv i.off { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .35; transform: scale(.82); }
#lives .lv i.pop { animation: lifepop 1.4s ease both; }
#lives .lv.ember i { color: var(--ember); }
#lives .lv.wren i { color: var(--wren); }
@keyframes lifepop { 0% { transform: scale(1.9); opacity: 1; } 40% { transform: scale(1.2); opacity: .9; } 100% { transform: scale(.82); opacity: .35; } }
/* a wanderer lost: the line written across that view */
.death { position: absolute; left: 0; right: 0; top: 60%; text-align: center; opacity: 0; transition: opacity 1.2s ease, transform 3s ease; transform: scale(.97); pointer-events: none; }
.death.show { opacity: 1; transform: scale(1.02); }
.death .big { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 4.4vw, 56px); color: #fff4e8; text-shadow: 0 0 34px var(--glow, rgba(255,200,160,.55)), 0 2px 18px rgba(0,0,0,.6); }
.death .small { font-family: var(--serif); font-size: clamp(14px, 1.4vw, 18px); color: rgba(255, 244, 232, .78); margin-top: 12px; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
#hud.split .death .big { font-size: clamp(24px, 2.8vw, 40px); }
#gameOver { position: absolute; left: 0; right: 0; top: 40%; text-align: center; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
#gameOver.show { opacity: 1; }
#gameOver .big { font-family: var(--serif); font-style: italic; font-size: clamp(34px, 5vw, 64px); color: #fff8ef; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
#gameOver .small { font-family: var(--serif); font-size: 18px; letter-spacing: .12em; color: rgba(255, 246, 234, .75); margin-top: 14px; }
/* difficulty */
.diff-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.diff-list button { position: relative; display: flex; flex-direction: column; justify-content: flex-start; text-align: left; padding: 16px; border-radius: 14px; background: rgba(35,33,43,.05); color: var(--ink); transition: transform .2s; border: 1.5px solid transparent; }
.diff-list button:hover, .diff-list button:focus-visible { transform: translateY(-1px); outline: none; }
.diff-list button.on { border-color: var(--gold); }
.diff-list .t { font-family: var(--serif); font-size: 22px; font-style: italic; }
.diff-list .m { display: flex; gap: 5px; margin: 7px 0 9px; min-height: 13px; }
.diff-list .m i { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px rgba(201,163,90,.6); }
.diff-list .m b { font-size: 15px; line-height: 12px; color: var(--gold); }
.diff-list .d { font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }
.diff-desc { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-soft); margin-top: -6px; }
.danger { color: #b0442c !important; border-color: rgba(176, 68, 44, .45) !important; }
.danger.armed { background: #b0442c; color: #fff !important; }
/* pause: the auto-fullscreen box */
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 2px 0 12px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin-top: 2px; flex: none; }
.check small { display: block; color: var(--ink-soft); font-size: 12px; margin-top: 2px; line-height: 1.4; }

@media (max-width: 640px) {
  .slots { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}
