:root {
	/* Dstny: teal, orange and the dark navy from the original page */
	--ink: #f5f8f9;
	--ink-dim: rgba(245, 248, 249, .68);
	--ink-faint: rgba(245, 248, 249, .36);
	--line: rgba(245, 248, 249, .14);
	--teal: #1ba9b5;
	--teal-deep: #0b6770;
	--orange: #fe9305;
	--orange-deep: #bf6c00;
	--navy: #24213a;
	--font-ui: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
	margin: 0;
	overflow: hidden;
	font-family: var(--font-ui);
	color: var(--ink);
	background:
		radial-gradient(1100px 700px at 108% -14%, rgba(27, 169, 181, .34), transparent 62%),
		radial-gradient(900px 620px at -6% 112%, rgba(254, 147, 5, .16), transparent 60%),
		linear-gradient(180deg, #2f2b47, #1b1929);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}

h1, h2, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.sr-only {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip-path: inset(50%); white-space: nowrap;
}

.fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.fx-top { z-index: 50; }

/* ---------- Shell ---------- */

.app {
	position: relative; z-index: 1;
	height: 100vh; height: 100dvh;
	display: grid; grid-template-rows: auto minmax(0, 1fr);
	gap: clamp(8px, 1.5vh, 18px);
	padding:
		max(clamp(10px, 1.8vh, 22px), env(safe-area-inset-top))
		max(clamp(12px, 2vw, 32px), env(safe-area-inset-right))
		max(clamp(12px, 2.2vh, 28px), env(safe-area-inset-bottom))
		max(clamp(12px, 2vw, 32px), env(safe-area-inset-left));
}

.panel {
	background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
	border: 1px solid var(--line);
	border-radius: clamp(16px, 2vw, 28px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .07);
}

/* ---------- Header ---------- */

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }

.brand { display: flex; align-items: center; gap: clamp(12px, 1.4vw, 22px); margin-right: auto; }
.brand-logo { display: block; height: clamp(46px, 8.6vh, 96px); width: auto; margin-block: -.4vh; }
.brand-sep { width: 1px; height: clamp(22px, 4vh, 44px); background: var(--line); }
.brand h1 {
	font-family: var(--font-display); font-style: italic; font-weight: 600;
	font-size: clamp(24px, 4.2vh, 40px); line-height: 1; letter-spacing: -.01em;
}

.phase { display: flex; align-items: center; gap: 12px; }
.phase-label { font-size: clamp(11px, 1.5vh, 15px); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); white-space: nowrap; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span {
	display: block; padding: .5em 1.1em; border-radius: 999px;
	font-size: clamp(14px, 1.9vh, 20px); font-weight: 650; white-space: nowrap; color: var(--ink-dim);
	transition: background .2s, color .2s;
}
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--navy); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.seg input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

.tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tools-sep { width: 1px; height: clamp(22px, 3vh, 32px); background: var(--line); margin: 0 4px; }

.tool {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	--t: clamp(40px, 5vh, 54px);
	min-width: var(--t); height: var(--t); padding: 0; border-radius: 999px;
	border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
	color: var(--ink-dim); font-size: clamp(14px, 1.8vh, 19px); font-weight: 600; white-space: nowrap; cursor: pointer;
	text-decoration: none;
	transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.tool.has-label { padding: 0 1.1em 0 .9em; }
.tool:hover { background: rgba(255, 255, 255, .1); color: var(--ink); }
.tool:active { transform: scale(.95); }
.tool[aria-pressed="true"] { color: #ffb04a; border-color: rgba(254, 147, 5, .5); background: rgba(254, 147, 5, .13); }
.tool[aria-disabled="true"] { opacity: .35; cursor: default; pointer-events: none; }

.icon { width: clamp(18px, 2.4vh, 25px); height: clamp(18px, 2.4vh, 25px); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#soundBtn[aria-pressed="true"] .off, #soundBtn[aria-pressed="false"] .on { display: none; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Layout ---------- */

.layout {
	display: grid; min-height: 0;
	grid-template-columns: minmax(0, 1fr) clamp(300px, 31vw, 640px);
	gap: clamp(10px, 1.6vw, 28px);
}

/* ---------- Board ---------- */

.board-wrap { container-type: size; min-width: 0; min-height: 0; padding: clamp(10px, 1.6vw, 26px); }

.board {
	--gap: clamp(3px, 1cqmin, 12px);
	--s: min((100cqw - 9 * var(--gap)) / 10, (100cqh - 8 * var(--gap)) / 9);
	height: 100%;
	display: grid; grid-template-columns: repeat(10, var(--s)); grid-auto-rows: var(--s);
	gap: var(--gap); place-content: center;
}

.cell {
	position: relative; display: grid; place-items: center; border-radius: 50%;
	font-size: calc(var(--s) * .41); font-weight: 700; line-height: 1;
	font-variant-numeric: tabular-nums; letter-spacing: -.01em;
	color: var(--ink-faint);
	background: rgba(255, 255, 255, .025);
	box-shadow: inset 0 0 0 max(1px, calc(var(--s) * .022)) rgba(245, 248, 249, .13);
	transition: color .25s, background .25s;
	user-select: none;
}

.cell.is-drawn {
	color: #fff;
	background: radial-gradient(circle at 32% 26%, #6fdbe3 0%, #1ba9b5 30%, #0e8590 66%, #075a63 100%);
	box-shadow:
		inset 0 calc(var(--s) * -.06) calc(var(--s) * .12) rgba(0, 0, 0, .3),
		0 calc(var(--s) * .06) calc(var(--s) * .16) rgba(0, 0, 0, .4);
	text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.cell.is-latest {
	color: #2c1800;
	background: radial-gradient(circle at 32% 26%, #ffe6bd 0%, #ffb650 30%, #fe9305 64%, #c26d00 100%);
	box-shadow:
		inset 0 calc(var(--s) * -.06) calc(var(--s) * .12) rgba(120, 60, 0, .35),
		0 0 0 calc(var(--s) * .06) rgba(254, 147, 5, .3),
		0 0 calc(var(--s) * .7) rgba(254, 147, 5, .6);
	text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
	animation: cell-pop .55s cubic-bezier(.2, 1.5, .4, 1);
	z-index: 1;
}
.cell.is-latest::after {
	content: ""; position: absolute; inset: 0; border-radius: 50%;
	border: 2px solid var(--orange); opacity: 0;
	animation: ring 2.2s ease-out infinite;
}

@keyframes cell-pop { from { transform: scale(.4); } to { transform: scale(1); } }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.55); opacity: 0; } }

/* ---------- Stage ---------- */

.stage { container-type: size; min-width: 0; min-height: 0; }

.stage-inner {
	--hero: min(62cqw, 35cqh);
	height: 100%;
	display: flex; flex-direction: column; align-items: center; justify-content: space-between;
	gap: 1.6cqh;
	padding: clamp(12px, 3cqh, 30px) clamp(14px, 6cqw, 30px);
}

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }

.ornament { position: relative; width: var(--hero); height: var(--hero); margin-top: calc(var(--hero) * .1); }
.ornament::before {
	content: ""; position: absolute; left: 50%; top: -5.5%; width: 17%; height: 9%;
	transform: translateX(-50%); border-radius: 18% 18% 6% 6%;
	background: linear-gradient(90deg, #bf6c00, #ffcd85 35%, #fe9305 60%, #bf6c00);
	box-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}
.ornament::after {
	content: ""; position: absolute; left: 50%; top: -11.5%; width: 8%; height: 8%;
	transform: translateX(-50%); border-radius: 50%;
	border: max(2px, calc(var(--hero) * .012)) solid var(--orange);
}

.bauble {
	position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
	background: radial-gradient(circle at 30% 24%, #8ce8ee 0%, #22b4c0 28%, #0e8792 62%, #064c54 100%);
	box-shadow:
		inset 0 calc(var(--hero) * -.05) calc(var(--hero) * .12) rgba(0, 0, 0, .38),
		0 calc(var(--hero) * .07) calc(var(--hero) * .18) rgba(0, 0, 0, .5),
		0 0 calc(var(--hero) * .45) rgba(27, 169, 181, .32);
}
.bauble::after {
	content: ""; position: absolute; top: 6%; left: 13%; width: 36%; height: 22%;
	border-radius: 50%; transform: rotate(-30deg);
	background: radial-gradient(ellipse, rgba(255, 255, 255, .6), transparent 68%);
}

.disc {
	position: relative; width: 62%; aspect-ratio: 1; border-radius: 50%;
	display: grid; place-items: center;
	background: radial-gradient(circle at 36% 30%, #fff 0%, #f2f7f8 55%, #d3e1e4 100%);
	box-shadow: inset 0 calc(var(--hero) * -.02) calc(var(--hero) * .05) rgba(0, 0, 0, .14), 0 2px 8px rgba(0, 0, 0, .3);
	color: var(--navy); font-weight: 800; line-height: 1;
	font-size: calc(var(--hero) * .37); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.disc::before {
	content: ""; position: absolute; inset: 6%; border-radius: 50%;
	border: max(1.5px, calc(var(--hero) * .008)) solid rgba(14, 135, 146, .34);
}
.ornament.is-empty .disc { color: var(--orange); font-size: calc(var(--hero) * .26); }

.ornament.is-rolling .bauble { animation: rattle .26s linear infinite; }
.ornament.is-rolling .disc span { opacity: .5; filter: blur(calc(var(--hero) * .006)); }
.ornament.is-landing .bauble { animation: land .6s cubic-bezier(.2, 1.4, .4, 1); }

@keyframes rattle {
	0% { transform: translate(0, 0) rotate(0); }
	20% { transform: translate(-2.5%, 1.5%) rotate(-7deg); }
	40% { transform: translate(2%, -2%) rotate(5deg); }
	60% { transform: translate(-1.5%, -1%) rotate(-4deg); }
	80% { transform: translate(2.5%, 1.5%) rotate(6deg); }
	100% { transform: translate(0, 0) rotate(0); }
}
@keyframes land { 0% { transform: scale(.7); } 100% { transform: scale(1); } }

.words {
	margin-top: 1.6cqh;
	font-family: var(--font-display); font-style: italic;
	font-size: clamp(17px, 4.3cqh, 50px); line-height: 1.15;
}
.lingo {
	min-height: 1.5em; margin-top: .25em;
	font-size: clamp(11px, 2.1cqh, 23px); line-height: 1.5; font-weight: 700;
	letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	border: 0; border-radius: 999px; cursor: pointer; font-weight: 750; white-space: nowrap;
	transition: transform .12s, filter .15s, box-shadow .15s, opacity .2s, background .15s;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn[aria-disabled="true"] { opacity: .4; cursor: default; filter: saturate(.5); }
.btn[aria-disabled="true"]:active { transform: none; }

.actions { display: flex; gap: 10px; width: 100%; }
.actions .btn, .banko-actions .btn { height: clamp(50px, 10.5cqh, 108px); font-size: clamp(16px, min(3.3cqh, 5.4cqw), 36px); }

.draw {
	flex: 1; min-width: 0; padding: 0 1em; color: #2c1800;
	background: linear-gradient(180deg, #ffbd5c 0%, #fe9305 52%, #e58100 100%);
	box-shadow: 0 10px 26px rgba(254, 147, 5, .3), 0 2px 0 rgba(255, 255, 255, .45) inset, 0 -3px 0 rgba(140, 70, 0, .35) inset;
}
.draw:not([aria-disabled="true"]):hover { filter: brightness(1.06); transform: translateY(-1px); }
.banko {
	flex: none; padding: 0 1.1em; color: var(--ink);
	background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(245, 248, 249, .3);
}
.banko:not([aria-disabled="true"]):hover { background: var(--teal); box-shadow: inset 0 0 0 1.5px transparent, 0 8px 22px rgba(27, 169, 181, .4); }

.approve { color: #fff; background: linear-gradient(180deg, #1fb0bc, #0e8590); box-shadow: 0 8px 22px rgba(27, 169, 181, .35), 0 1px 0 rgba(255, 255, 255, .3) inset; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.approve:hover { filter: brightness(1.08); }
.ghost { color: var(--ink); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1.5px rgba(245, 248, 249, .25); }
.ghost:hover { background: rgba(255, 255, 255, .14); }

/* ---------- Banko check ---------- */

.banko-panel {
	width: 100%; text-align: center;
	padding: clamp(10px, 2cqh, 18px); border-radius: 22px;
	background: rgba(254, 147, 5, .13); border: 1px solid rgba(254, 147, 5, .45);
	animation: panel-in .3s cubic-bezier(.2, 1.3, .4, 1);
}
.banko-title { font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 4.4cqh, 46px); line-height: 1.1; outline: none; }
.banko-hint { margin-top: clamp(6px, 1.4cqh, 12px); font-size: clamp(12px, 2.2cqh, 22px); line-height: 1.3; color: var(--ink-dim); }
.banko-panel[data-check="ok"] { background: rgba(27, 169, 181, .2); border-color: rgba(111, 219, 227, .65); }
.banko-panel[data-check="ok"] .banko-hint { color: #8ce8ee; font-weight: 700; }
.banko-panel[data-check="no"] .banko-hint { color: #ffbd5c; font-weight: 700; }

.check-fields { display: flex; justify-content: center; gap: clamp(8px, 4cqw, 18px); margin-top: clamp(6px, 1.4cqh, 12px); }
.check-field {
	display: flex; align-items: center; gap: .6em; min-width: 0;
	font-size: clamp(11px, 1.7cqh, 16px); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
	color: var(--ink-dim); white-space: nowrap;
}
.check-field input {
	width: 3.6em; height: clamp(34px, 6.2cqh, 60px); padding: 0 .3em; border-radius: 12px;
	border: 1px solid var(--line); background: rgba(0, 0, 0, .32); color: var(--ink);
	font: inherit; font-size: clamp(16px, 2.9cqh, 28px); font-weight: 750; letter-spacing: 0; text-align: center;
	-moz-appearance: textfield; appearance: textfield;
}
.check-field input::-webkit-inner-spin-button, .check-field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.check-field input[type="text"] { width: 4.6em; text-transform: uppercase; letter-spacing: .06em; }

.mini-plate { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 3px; margin-top: clamp(6px, 1.4cqh, 12px); }
.mp {
	height: clamp(20px, 4.6cqh, 46px); display: grid; place-items: center; border-radius: 6px;
	font-size: clamp(11px, 2.4cqh, 24px); font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1;
	color: var(--ink-dim); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(245, 248, 249, .2);
}
.mp.is-blank { background: rgba(0, 0, 0, .2); box-shadow: none; }
.mp.is-hit { color: #fff; background: linear-gradient(180deg, #22b4c0, #0e8590); box-shadow: none; }
.mp.is-latest { color: #2c1800; background: linear-gradient(180deg, #ffbd5c, #fe9305); }
.mp.is-row { box-shadow: inset 0 0 0 2px #fff; }

/* The check needs room: shrink the ball and drop the previous-numbers strip while it is open. */
.stage-inner.is-checking { --hero: min(46cqw, 23cqh); }
.stage-inner.is-checking .recent, .stage-inner.is-checking .lingo { display: none; }
.banko-actions { display: flex; gap: 10px; margin-top: clamp(8px, 1.8cqh, 14px); }
.banko-actions .btn { flex: 1; padding: 0 .8em; height: clamp(46px, 8.5cqh, 88px); font-size: clamp(15px, min(2.8cqh, 4.6cqw), 28px); }
@keyframes panel-in { from { transform: scale(.94); opacity: 0; } }

/* ---------- Stats ---------- */

.stats { width: 100%; }
.stats-row { display: flex; justify-content: space-between; font-size: clamp(13px, 2.5cqh, 26px); color: var(--ink-dim); }
.stats-row b { color: var(--ink); font-weight: 750; font-variant-numeric: tabular-nums; font-size: 1.15em; }
.bar { height: clamp(6px, 1.1cqh, 12px); margin-top: .5em; border-radius: 99px; background: rgba(0, 0, 0, .35); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--orange)); transition: width .5s cubic-bezier(.3, 1, .4, 1); }

/* ---------- Recent ---------- */

.recent { width: 100%; }
.recent-title { font-size: clamp(11px, 1.7cqh, 17px); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.recent-list {
	--r: clamp(32px, 7cqh, 76px);
	display: flex; gap: calc(var(--r) * .18); margin-top: .5em; padding: 3px 2px;
	overflow-x: auto; scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, #000 78%, transparent);
	mask-image: linear-gradient(90deg, #000 78%, transparent);
}
.recent-list::-webkit-scrollbar { display: none; }
.recent-list:empty { display: none; }
.recent-list li {
	flex: none; width: var(--r); height: var(--r); border-radius: 50%;
	display: grid; place-items: center;
	font-size: calc(var(--r) * .42); font-weight: 700; font-variant-numeric: tabular-nums;
	color: var(--ink); background: rgba(255, 255, 255, .06);
	box-shadow: inset 0 0 0 1.5px rgba(245, 248, 249, .22);
}
.recent-list li:first-child { color: #fff; background: radial-gradient(circle at 32% 26%, #6fdbe3, #1ba9b5 34%, #0b6770); box-shadow: 0 3px 8px rgba(0, 0, 0, .35); }
.recent-list li:nth-child(n+5) { opacity: .75; }
.recent-list li:last-child { margin-right: calc(var(--r) * 1.2); }
.recent-empty { margin-top: .5em; height: calc(clamp(32px, 7cqh, 76px) + 6px); display: flex; align-items: center; font-size: clamp(13px, 2cqh, 19px); color: var(--ink-faint); }

/* ---------- Dialog & toast ---------- */

.dialog {
	width: min(420px, calc(100vw - 32px)); padding: 28px; border-radius: 24px;
	border: 1px solid var(--line); color: var(--ink);
	background: linear-gradient(180deg, #37335a, #25223b);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.dialog::backdrop { background: rgba(12, 11, 20, .72); backdrop-filter: blur(4px); }
.dialog[open] { animation: panel-in .25s cubic-bezier(.2, 1.3, .4, 1); }
.dialog h2 { font-family: var(--font-display); font-style: italic; font-size: 28px; font-weight: 600; }
.dialog p { margin-top: 10px; color: var(--ink-dim); line-height: 1.5; }
.dialog-actions { display: flex; gap: 10px; margin-top: 24px; }
.dialog-actions .btn { flex: 1; height: 50px; font-size: 16px; }

.toast {
	position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 60;
	max-width: calc(100vw - 32px); padding: 12px 22px; border-radius: 999px;
	font-size: 16px; font-weight: 600; text-align: center;
	color: var(--navy); background: var(--ink);
	box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
	transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
	transition: transform .3s cubic-bezier(.2, 1.2, .4, 1), opacity .25s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

.noscript { position: fixed; inset: auto 0 0 0; z-index: 70; padding: 14px; text-align: center; background: var(--teal-deep); color: #fff; }

/* ---------- Tighter header before it has to wrap ---------- */

@media (max-width: 1180px) { .phase-label { display: none; } }
@media (max-width: 1040px) {
	.tool.has-label span { display: none; }
	.tool.has-label { padding: 0; }
}

/* ---------- Narrow, portrait and very short screens: stack and scroll ---------- */

@media (max-width: 900px), (orientation: portrait), (max-height: 520px) {
	body { overflow: auto; }
	.app { height: auto; min-height: 100vh; min-height: 100dvh; grid-template-rows: auto auto; }
	.phase { order: 3; flex-basis: 100%; }
	.seg { flex: 1; }
	.seg label { flex: 1; text-align: center; }
	.layout { grid-template-columns: minmax(0, 1fr); }

	.stage { order: -1; container-type: inline-size; }
	.stage-inner {
		--hero: clamp(140px, 44cqw, 280px);
		height: auto; gap: 16px; padding: 18px;
	}
	.words { margin-top: 12px; font-size: clamp(20px, 5.5cqw, 32px); }
	.lingo { font-size: 13px; }
	.actions .btn { height: 60px; font-size: 19px; }
	.banko-title { font-size: 24px; }
	.banko-hint { font-size: 14px; }
	.stage-inner.is-checking { --hero: clamp(110px, 32cqw, 200px); }
	.check-field { font-size: 12px; }
	.check-field input { height: 44px; font-size: 18px; }
	.mp { height: 30px; font-size: 14px; }
	.banko-actions .btn { height: 54px; font-size: 17px; }
	.stats-row { font-size: 15px; }
	.bar { height: 8px; }
	.recent-title { font-size: 12px; }
	.recent-list { --r: 42px; }
	.recent-empty { height: 48px; font-size: 14px; }

	.board-wrap { container-type: inline-size; padding: 12px; }
	.board {
		--gap: clamp(3px, 1cqw, 10px);
		--s: calc((100cqw - 9 * var(--gap)) / 10);
		height: auto;
	}
}

@media (max-width: 520px) {
	.top { column-gap: 10px; }
	.brand-logo { height: 42px; margin-block: 0; }
	.brand-sep { display: none; }
	.brand h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.tools { gap: 5px; }
	.tool { --t: 36px; }
	.tools-sep { display: none; }
	.seg span { padding-inline: .4em; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
