/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(images/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(images/layers-2x.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(images/marker-icon.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}

:root {
  --table: #0c211b;
  --table-2: #12312a;
  --table-3: #1b443a;
  --line: rgba(244, 234, 213, 0.16);
  --mat: #f4ead5;
  --mat-2: #e8dbbf;
  --ink: #1c1a14;
  --ink-2: #5d5642;
  --chalk: #f4ead5;
  --chalk-2: #a9b8ab;
  --amber: #f2a900;
  --amber-2: #ffc943;
  --red: #e0492f;
  --green: #4fc98a;
  --green-ink: #1e7a4c;
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Segoe Print', cursive;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(120% 90% at 50% 0%, var(--table-2) 0%, var(--table) 62%);
  background-attachment: fixed;
  color: var(--chalk);
  font: 500 16px/1.4 var(--body);
  min-height: 100dvh;
  overflow-x: clip;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--amber-2); outline-offset: 2px; }
h1, h2, p { margin: 0; }
#app { display: flex; flex-direction: column; min-height: 100dvh; }
body.offline #app { opacity: 0.55; }
body.offline::after {
  content: 'Lost the connection. Reconnecting…';
  position: fixed; left: 50%; top: 10px; transform: translateX(-50%);
  background: var(--red); color: #fff; padding: 6px 14px; border-radius: 99px; font-weight: 700; z-index: 60; white-space: nowrap;
}

/* beer-mat card */
.mat {
  position: relative;
  background: var(--mat);
  color: var(--ink);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 14px 30px rgba(0, 0, 0, 0.35);
}
.mat::before {
  content: '';
  position: absolute; inset: 7px;
  border: 1.5px dashed rgba(28, 26, 20, 0.2);
  border-radius: 12px;
  pointer-events: none;
}
.mat > * { position: relative; }
.lab { display: block; font: 800 14px/1 var(--display); text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-2); margin-bottom: 8px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px; border-radius: 12px;
  font: 800 21px/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em;
  transition: transform 0.08s ease, filter 0.15s ease, opacity 0.15s ease;
}
.btn:active:not(:disabled) { transform: translateY(2px); }
.btn:disabled { opacity: 0.45; }
.btn-next { background: var(--amber); color: #241a00; box-shadow: 0 4px 0 #a87500; width: 100%; }
.btn-next:hover:not(:disabled) { filter: brightness(1.07); }
.btn-dark { background: var(--table); color: var(--chalk); }
.btn-ghost { color: var(--chalk-2); border: 1.5px solid var(--line); }
.btn-ghost-dark { color: var(--chalk); border: 1.5px solid var(--line); flex: 0 0 auto; }
.mat .btn-ghost-dark { color: var(--ink); border-color: rgba(28, 26, 20, 0.3); }
.btn-small { min-height: 38px; font-size: 16px; padding: 0 14px; }
.field {
  width: 100%; min-height: 54px; padding: 0 16px; border-radius: 12px;
  border: 2px solid rgba(28, 26, 20, 0.22); background: #fffaf0; color: var(--ink);
  font: 600 19px/1.2 var(--body);
}
.field::placeholder { color: #8d8571; font-weight: 500; }
.field:disabled { opacity: 0.65; }
.stage .field:focus, .home .field:focus { outline: 0; border-color: var(--amber); }

/* home */
.home { margin: auto; width: min(520px, 100%); padding: 28px 16px 40px; display: grid; gap: 22px; }
.logo h1 { font: 900 clamp(68px, 19vw, 100px)/0.85 var(--display); text-transform: uppercase; color: var(--amber-2); letter-spacing: -0.005em; }
.def { margin-top: 12px; font: 600 25px/1.1 var(--hand); color: var(--chalk); }
.def i { font-style: normal; color: var(--chalk-2); }
.home-card { display: grid; gap: 12px; }
.home-card .lab { margin: 6px 0 -4px; }
.avatars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.avatar { aspect-ratio: 1; border-radius: 10px; font-size: 25px; background: rgba(28, 26, 20, 0.07); }
.avatar.on { background: var(--table); box-shadow: 0 0 0 2px var(--amber); }
.sides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.side { min-height: 44px; border-radius: 10px; font: 800 16px/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; background: rgba(28, 26, 20, 0.07); color: var(--ink); }
.side.on { background: var(--table); color: var(--amber-2); }
.home-error { min-height: 0; color: #b52d15; font-weight: 600; font-size: 15px; }
.home-error:empty { display: none; }
.or { text-align: center; font: 600 22px/1 var(--hand); color: var(--ink-2); }
.join-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.join-row .btn { width: auto; }
.field-code { font: 800 27px/1 var(--display); letter-spacing: 0.2em; text-align: center; text-transform: uppercase; }

/* hud */
.hud { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
.hud-label { font: 800 15px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.07em; color: var(--chalk-2); min-width: 0; display: flex; gap: 6px; align-items: baseline; }
.hud-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-q { flex: 0 0 auto; color: var(--amber-2); }
.hud-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.hud-score { font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 4px; }
.hud-score b { font: 900 25px/1 var(--display); color: var(--amber-2); }
.hud-score span { font-size: 12px; color: var(--chalk-2); }
.hud-mute { width: 36px; height: 36px; border-radius: 8px; font-size: 16px; }

/* timer: a beer running out */
.timer { position: relative; height: 16px; background: rgba(0, 0, 0, 0.35); }
.timer-fill {
  position: absolute; inset: 0; transform-origin: left;
  background: linear-gradient(180deg, #ffe9ae 0 22%, var(--amber) 22% 100%);
}
.timer-text { position: absolute; right: 10px; top: -1px; font: 800 15px/18px var(--display); color: #fff; text-shadow: 0 0 3px rgba(0, 0, 0, 0.85), 0 1px 1px rgba(0, 0, 0, 0.7); font-variant-numeric: tabular-nums; }
.timer-urgent .timer-fill { background: linear-gradient(180deg, #ffc3b5 0 22%, var(--red) 22% 100%); }
.timer-idle { opacity: 0; height: 4px; }

/* stage */
.stage { flex: 1 0 auto; width: 100%; max-width: 760px; margin: 0 auto; padding: 18px 16px 12px; }
.stage-play.fmt-pin, .stage-reveal.fmt-pin { max-width: 980px; }
.play { display: flex; flex-direction: column; gap: 14px; animation: rise 0.28s ease-out; }
.play-center { min-height: 56dvh; justify-content: center; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.q-cat { font: 800 15px/1 var(--display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber-2); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.q-hard { font: 600 12px/1 var(--body); letter-spacing: 0.04em; text-transform: none; color: var(--chalk-2); border: 1px solid rgba(244, 234, 213, 0.25); border-radius: 99px; padding: 4px 8px; }
/* longest word */
.field-word { text-align: center; font-size: 22px; }
.opt-value { font: 800 17px/1.1 var(--display); letter-spacing: 0.02em; opacity: 0.85; }
.q-prompt { font: 800 clamp(29px, 6.2vw, 46px)/1.04 var(--display); color: var(--chalk); text-wrap: balance; }
.q-prompt-small { font-size: clamp(22px, 4.4vw, 30px); color: var(--chalk); }
.q-prompt-c { text-align: center; }
.q-status { min-height: 22px; color: var(--chalk-2); font-size: 15px; text-align: center; }
.blank { display: inline-block; padding: 0 10px; margin: 0 2px; border-bottom: 4px solid var(--amber); color: var(--amber-2); font-family: var(--hand); font-weight: 700; }

/* options */
.opts { display: grid; gap: 9px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  min-height: 62px; padding: 12px 14px; border-radius: 13px;
  background: var(--mat); color: var(--ink); font-weight: 600; font-size: 18px; line-height: 1.2;
  box-shadow: 0 3px 0 #bfae8b;
  transition: transform 0.08s ease, opacity 0.15s ease;
}
.opt:active:not(:disabled) { transform: translateY(2px); }
.opt:disabled { cursor: default; }
.opt-key { flex: 0 0 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font: 800 20px/1 var(--display); background: var(--table); color: var(--chalk); }
.opt-text { flex: 1; min-width: 0; }
.opt-picked { background: var(--amber-2); box-shadow: 0 3px 0 #a87500; }
.opt-dim { opacity: 0.5; }
.opt-own { opacity: 0.55; }
.opt-vote small { font: 600 18px/1 var(--hand); color: var(--ink-2); }
.opt-result { min-height: 54px; box-shadow: none; opacity: 0.68; }
.opt-right { background: var(--green); opacity: 1; box-shadow: 0 0 0 3px #bdf2d6; }
/* either/or: two big side-by-side mats */
.opts-2 { grid-template-columns: 1fr 1fr; }
.opts-2 .opt { min-height: 130px; flex-direction: column; justify-content: center; text-align: center; font-size: 21px; padding: 16px 12px; }
.opts-2 .opt-key { display: none; }
.opts-2 .opt-text { flex: 0 1 auto; overflow-wrap: anywhere; }
.opts-2 .opt-result { min-height: 110px; }

/* tune */
.tune { display: grid; gap: 14px; justify-items: center; padding: 18px; }
.eq { display: flex; align-items: flex-end; gap: 5px; height: 62px; width: 100%; justify-content: center; }
.eq i { flex: 1 1 0; max-width: 24px; height: 14%; background: rgba(28, 26, 20, 0.18); border-radius: 3px; transition: height 0.12s ease, background 0.12s ease; }
.eq i:nth-child(3n) { --h: 70%; }
.eq i.on { height: var(--h, 46%); background: var(--table-3); }
.eq i.hit { height: 100%; background: var(--red); }

/* swipe */
.swipe { min-height: 250px; display: flex; align-items: center; justify-content: center; text-align: center; touch-action: none; user-select: none; cursor: grab; transition: transform 0.2s ease; padding: 30px 26px; }
.swipe-result { cursor: default; touch-action: auto; min-height: 200px; flex-direction: column; gap: 14px; }
.swipe-text { font: 800 clamp(27px, 6vw, 40px)/1.08 var(--display); text-wrap: balance; }
.stamp { position: absolute !important; top: 16px; right: 16px; font: 900 27px/1 var(--display); text-transform: uppercase; padding: 5px 12px; border: 4px solid; border-radius: 8px; transform: rotate(-7deg); opacity: 0; }
.stamp-on { opacity: 1; }
.stamp-real { color: var(--green-ink); border-color: var(--green-ink); }
.stamp-bs { color: #b52d15; border-color: #b52d15; }
.stamp-big { position: static !important; font-size: 42px; animation: stamp 0.26s ease-out; }
@keyframes stamp { from { transform: scale(2.2) rotate(-7deg); opacity: 0; } to { transform: scale(1) rotate(-7deg); opacity: 1; } }
.swipe-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.swipe-btns.picked { opacity: 0.4; pointer-events: none; }
.btn-bs { background: var(--red); color: #fff; box-shadow: 0 4px 0 #8f2a16; min-height: 66px; font-size: 25px; }
.btn-real { background: var(--green); color: #06291a; box-shadow: 0 4px 0 #237a4f; min-height: 66px; font-size: 25px; }
.got-it { text-align: center; color: var(--chalk-2); }

/* duel */
.duel { display: grid; gap: 10px; }
.duel-card { display: grid; gap: 6px; place-items: center; min-height: 118px; padding: 14px; border-radius: 15px; background: var(--mat); color: var(--ink); font: 800 clamp(24px, 5.4vw, 33px)/1.04 var(--display); text-align: center; box-shadow: 0 4px 0 #bfae8b; }
.duel-done .duel-card:not(.duel-picked) { opacity: 0.45; }
.duel-picked { background: var(--amber-2); box-shadow: 0 4px 0 #a87500; }
.duel-vs { text-align: center; font: 700 24px/0.6 var(--hand); color: var(--chalk-2); }
.duel-result { opacity: 0.68; box-shadow: none; }
.duel-result b { font: 900 clamp(29px, 6vw, 40px)/1 var(--display); }
.duel-right { background: var(--green); opacity: 1; }
@media (min-width: 620px) { .duel { grid-template-columns: 1fr auto 1fr; align-items: center; } .duel-card { min-height: 190px; } }

/* closest */
.closest { display: grid; gap: 12px; }
.closest-row { display: flex; align-items: center; gap: 10px; }
.closest-unit { font: 800 19px/1 var(--display); text-transform: uppercase; color: var(--ink-2); flex: 0 1 auto; max-width: 40%; }
.field-num { font: 800 29px/1 var(--display); letter-spacing: 0.01em; flex: 1; min-width: 0; }
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; }
.slider::-webkit-slider-runnable-track { height: 10px; background: rgba(28, 26, 20, 0.2); border-radius: 5px; }
.slider::-moz-range-track { height: 10px; background: rgba(28, 26, 20, 0.2); border-radius: 5px; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: var(--table); border: 4px solid var(--amber); }
.slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--table); border: 4px solid var(--amber); }
.slider-ends { display: flex; justify-content: space-between; color: var(--ink-2); font-size: 13px; margin-top: -8px; font-variant-numeric: tabular-nums; }
.big-answer { text-align: center; display: flex; gap: 10px; justify-content: center; align-items: baseline; flex-wrap: wrap; animation: stamp2 0.3s ease-out; }
.big-answer b { font: 900 clamp(54px, 13vw, 88px)/0.95 var(--display); color: var(--amber-2); }
.big-answer span { font: 800 22px/1 var(--display); text-transform: uppercase; color: var(--chalk-2); }
.big-answer-name b { font-size: clamp(38px, 9vw, 64px); }
@keyframes stamp2 { from { transform: scale(1.35); opacity: 0; } to { transform: none; opacity: 1; } }
.nline { position: relative; height: 96px; margin: 2px 22px 6px; }
.nline-track { position: absolute; left: 0; right: 0; bottom: 14px; height: 4px; background: var(--line); border-radius: 2px; }
.nline-truth { position: absolute; bottom: 4px; width: 5px; height: 26px; margin-left: -2px; background: var(--amber-2); border-radius: 3px; }
.nline-pin { position: absolute; bottom: calc(26px + var(--lift)); transform: translateX(-50%); font-size: 21px; line-height: 1; }

/* order */
.sort { display: grid; gap: 8px; touch-action: none; }
.sort-row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 14px; background: var(--mat); color: var(--ink); border-radius: 12px; font-weight: 600; font-size: 17px; line-height: 1.15; cursor: grab; user-select: none; box-shadow: 0 3px 0 #bfae8b; }
.sort-grip { font: 800 22px/1 var(--display); color: var(--ink-2); flex: 0 0 auto; }
.sort-text { flex: 1; min-width: 0; }
.lifting { position: relative; z-index: 3; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45); cursor: grabbing; background: #fff6e2; }
.sort-locked { touch-action: auto; }
.sort-locked .sort-row { cursor: default; opacity: 0.8; }
.sort-result { box-shadow: none; }
.sort-locked .sort-right { background: var(--green); opacity: 1; }
.sort-locked .sort-wrong { opacity: 0.72; }
.sort-val { font: 800 17px/1 var(--display); color: var(--ink-2); text-align: right; flex: 0 1 44%; }
.axis { font: 800 13px/1 var(--display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--chalk-2); text-align: center; margin: -4px 0; }

/* map: Leaflet satellite (client/map.js) */
.map-holder { position: relative; border-radius: 14px; overflow: hidden; background: #0b1a22; border: 1.5px solid var(--line); isolation: isolate; }
.map { display: block; width: 100%; height: clamp(290px, 82vw, 58dvh); touch-action: none; cursor: crosshair; user-select: none; background: #0b1a22; }
.map-europe, .map-germany { height: clamp(320px, 112vw, 62dvh); }
.map-result .map { cursor: grab; height: clamp(240px, 70vw, 50dvh); }
.map.leaflet-container { font: 500 11px/1.3 var(--body); background: #0b1a22; outline: 0; }
.map .leaflet-control-attribution { background: rgba(11, 26, 34, 0.62); color: rgba(255, 250, 240, 0.78); padding: 1px 6px; border-top-left-radius: 6px; font-size: 9.5px; }
.map .leaflet-control-attribution a { color: inherit; }
.pin-icon, .guess-icon, .truth-icon { background: none; border: 0; }
.pin-icon svg { display: block; overflow: visible; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55)); animation: pinDrop 0.22s ease-out; }
@keyframes pinDrop { from { transform: translateY(-10px); opacity: 0.4; } }
.pin-shape { fill: var(--red); stroke: #fff; stroke-width: 2; }
.pin-eye { fill: #fff; }
.guess-badge { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mat); border: 2px solid var(--ink); font-size: 16px; line-height: 1; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
.guess-badge.guess-you { border: 3px solid var(--red); }
.truth-icon { display: grid; place-items: center; }
.truth-icon .truth-ring { position: absolute; inset: 0; border-radius: 50%; background: rgba(242, 169, 0, 0.28); border: 3px solid var(--amber); animation: pulse 1.5s ease-in-out infinite; }
.truth-icon .truth-dot { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--amber); border: 2px solid #241a00; }
@keyframes pulse { 50% { transform: scale(1.25); } }
.zooms { position: absolute; right: 8px; top: 8px; display: grid; gap: 6px; z-index: 1001; }
.zoom { width: 40px; height: 40px; border-radius: 9px; background: var(--table); color: var(--chalk); font: 800 25px/1 var(--display); }
.place { text-align: center; font: 900 clamp(28px, 7vw, 44px)/1 var(--display); color: var(--amber-2); text-transform: uppercase; }

/* clues */
.worth { align-self: flex-start; padding: 6px 12px; border-radius: 8px; background: var(--amber); color: #241a00; font: 800 18px/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.worth-locked { background: var(--green); color: #06291a; }
.clues { display: grid; gap: 7px; }
.clue { display: flex; gap: 11px; align-items: baseline; padding: 11px 14px; background: var(--mat); color: var(--ink); border-radius: 11px; font-weight: 600; font-size: 17px; line-height: 1.22; animation: rise 0.28s ease-out; }
.clue-n { font: 900 21px/1 var(--display); color: var(--ink-2); flex: 0 0 auto; }
.clue-career { font-weight: 700; }
.clues-all .clue { padding: 7px 12px; font-size: 15px; opacity: 0.84; animation: none; }
.guess-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.guess-row .btn { width: auto; }

/* wall */
.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tile { aspect-ratio: 1 / 0.84; padding: 3px; border-radius: 9px; background: var(--mat); color: var(--ink); font: 800 clamp(13px, 3.5vw, 21px)/1.02 var(--display); text-transform: uppercase; overflow-wrap: anywhere; box-shadow: 0 3px 0 #bfae8b; }
.tile-long { font-size: clamp(11px, 2.9vw, 18px); }
.tile-on { background: var(--table-3); color: var(--chalk); box-shadow: 0 0 0 3px var(--amber); }
.wall-banners { display: grid; gap: 6px; }
.wall-banners:empty { display: none; }
.banner { padding: 10px 12px; border-radius: 10px; color: #14110a; display: grid; gap: 2px; animation: rise 0.25s ease-out; }
.banner b { font: 800 19px/1.05 var(--display); text-transform: uppercase; }
.banner span { font-size: 14px; }
.wall-a { background: #f2c14e; }
.wall-b { background: #6fcfb3; }
.wall-c { background: #f0916f; }
.wall-d { background: #b6a4e8; }
.strikes { display: flex; align-items: center; gap: 7px; }
.strikes .lab { margin: 0; color: var(--chalk-2); }
.strike { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--chalk-2); }
.strike-on { background: var(--red); border-color: var(--red); }
.wall-actions { display: flex; gap: 8px; }
.wall-actions .btn-next { flex: 1; width: auto; }
.shake { animation: shake 0.34s ease; }
@keyframes shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(4px); } }

/* blitz */
.blitz-count { font: 800 25px/1 var(--display); color: var(--chalk-2); text-transform: uppercase; }
.blitz-count b { font-size: 58px; color: var(--amber-2); font-weight: 900; margin-right: 4px; }
.blitz-found { display: flex; flex-wrap: wrap; gap: 6px; }
.hit { padding: 6px 11px; border-radius: 8px; background: var(--mat); color: var(--ink); font-weight: 700; animation: rise 0.2s ease-out; }
.blitz-all { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.blitz-item { display: flex; justify-content: space-between; gap: 6px; padding: 7px 10px; border-radius: 8px; background: rgba(244, 234, 213, 0.1); font-size: 15px; font-weight: 600; }
.blitz-mine { background: var(--mat); color: var(--ink); }
.blitz-solo { box-shadow: 0 0 0 2px var(--amber); }

/* bluff reveal */
.bluff-rows { display: grid; gap: 8px; }
.bluff-row { padding: 12px 14px; background: var(--mat); color: var(--ink); border-radius: 12px; animation: rise 0.3s ease-out; }
.bluff-text { font: 800 25px/1.05 var(--display); }
.bluff-meta { color: var(--ink-2); font-size: 15px; margin-top: 3px; }
.bluff-meta b { color: var(--ink); }
.bluff-truth { background: var(--green); animation: stamp2 0.35s ease-out; }
.bluff-truth .bluff-meta { color: #063a24; }
.bluff-truth .bluff-text { font-size: 33px; }

/* wager */
.wager-kicker { text-align: center; font: 700 25px/1 var(--hand); color: var(--chalk-2); }
.wager-hint { text-align: center; font: 900 clamp(42px, 10vw, 72px)/0.95 var(--display); text-transform: uppercase; color: var(--amber-2); text-wrap: balance; }
.bet { display: grid; gap: 12px; }
.bet-amount { font: 900 66px/1 var(--display); text-align: center; font-variant-numeric: tabular-nums; }
.wager-rows { display: grid; gap: 8px; }
.wager-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; animation: rise 0.3s ease-out; color: var(--ink); }
.wager-right { background: var(--green); }
.wager-wrong { background: #eda898; }
.wager-who { flex: 1; min-width: 0; display: grid; }
.wager-who b { font: 800 21px/1 var(--display); }
.wager-who span { font-size: 14px; overflow-wrap: anywhere; }
.wager-stake { text-align: right; display: grid; font-variant-numeric: tabular-nums; }
.wager-stake b { font: 900 24px/1 var(--display); }
.wager-stake span { font-size: 14px; font-weight: 700; }

/* reveal common */
.story { display: grid; gap: 8px; margin-top: 2px; animation: rise 0.35s ease-out 0.1s both; }
.delta { font: 900 42px/1 var(--display); color: var(--chalk-2); }
.delta-up { color: var(--green); }
.delta-down { color: var(--red); }
.story-text { font: 700 clamp(24px, 4.8vw, 29px)/1.12 var(--hand); color: var(--chalk); }
.faces { display: inline-flex; gap: 2px; flex: 0 0 auto; }
.face { font-size: 18px; line-height: 1; }
.table { display: grid; gap: 3px; }
.trow { display: flex; align-items: center; gap: 9px; padding: 7px 11px; border-radius: 8px; background: rgba(244, 234, 213, 0.08); }
.trow-you { background: rgba(242, 169, 0, 0.2); }
.trow-face { font-size: 20px; flex: 0 0 auto; }
.trow-name { font-weight: 700; flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow-note { flex: 1; color: var(--chalk-2); font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.trow-pts { font: 800 19px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--green); flex: 0 0 auto; }
.accept { padding: 5px 9px; border-radius: 7px; font: 800 14px/1 var(--display); text-transform: uppercase; background: var(--amber); color: #241a00; flex: 0 0 auto; }

/* lobby */
.lobby { display: grid; gap: 22px; }
.lobby-code { text-align: center; display: grid; justify-items: center; gap: 4px; }
.code { font: 900 clamp(76px, 22vw, 118px)/0.95 var(--display); letter-spacing: 0.08em; margin-right: -0.08em; }
.lobby-link { color: var(--ink-2); font-size: 14px; margin-bottom: 8px; overflow-wrap: anywhere; }
.section-h { font: 800 20px/1 var(--display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--chalk-2); margin-bottom: 10px; }
.seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 7px; }
.seat { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: rgba(244, 234, 213, 0.09); border-radius: 10px; animation: rise 0.25s ease-out; }
.seat-face { font-size: 24px; }
.seat-name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-side { font: 800 13px/1 var(--display); padding: 3px 5px; border-radius: 4px; background: var(--mat); color: var(--ink); }
.seat-host { font: 600 18px/1 var(--hand); color: var(--amber-2); }
.seat-kick { width: 26px; height: 26px; border-radius: 6px; color: var(--chalk-2); font-size: 19px; line-height: 1; }
.lineup { margin: 0; padding: 0 0 0 28px; display: grid; gap: 2px; font: 800 21px/1.2 var(--display); color: var(--chalk); text-transform: uppercase; letter-spacing: 0.02em; }
.lineup li::marker { color: var(--amber); }
.bank-left { margin-top: 12px; color: var(--chalk-2); font-size: 14px; }
@media (min-width: 560px) { .lineup { grid-template-columns: 1fr 1fr; column-gap: 34px; } }

/* intro */
.intro { min-height: 60dvh; display: flex; flex-direction: column; justify-content: center; gap: 12px; animation: rise 0.3s ease-out; }
.intro-n { font: 800 21px/1 var(--display); text-transform: uppercase; letter-spacing: 0.12em; color: var(--chalk-2); }
.intro-title { font: 900 clamp(64px, 17vw, 124px)/0.86 var(--display); text-transform: uppercase; color: var(--amber-2); }
.intro-tag { font: 700 clamp(26px, 5vw, 33px)/1.1 var(--hand); color: var(--chalk); margin-bottom: 8px; }
.intro-how p { font-size: 17px; font-weight: 500; line-height: 1.38; }

/* standings */
.boardwrap, .final { display: grid; gap: 15px; position: relative; animation: rise 0.3s ease-out; }
.section-title { font: 900 clamp(50px, 13vw, 84px)/0.9 var(--display); text-transform: uppercase; color: var(--amber-2); }
.section-sub { font: 700 25px/1.1 var(--hand); color: var(--chalk); }
.board { display: grid; gap: 2px; padding: 16px; }
.brow { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 9px 13px; }
.brow + .brow { border-top: 1px solid rgba(28, 26, 20, 0.14); }
.brow-you .brow-name { color: #a24a00; }
.brow-rank { font: 900 27px/1 var(--display); width: 24px; color: var(--ink-2); text-align: center; }
.brow-face { font-size: 26px; }
.brow-mid { flex: 1; min-width: 0; display: grid; gap: 2px; }
.brow-name { font: 800 22px/1 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow-score { font: 900 27px/1 var(--display); font-variant-numeric: tabular-nums; }
.brow-bar { position: absolute; left: 9px; bottom: 5px; height: 4px; max-width: calc(100% - 18px); background: var(--amber); border-radius: 2px; transition: width 0.8s ease; }
.tallies { display: flex; flex-wrap: wrap; gap: 2px 7px; min-height: 18px; }
.tally { width: 26px; height: 20px; }
.tally path { fill: none; stroke: var(--ink); stroke-width: 2.3; stroke-linecap: round; }
.battle { display: grid; gap: 5px; }
.battle-head { display: flex; justify-content: space-between; align-items: baseline; font: 800 20px/1 var(--display); text-transform: uppercase; }
.battle-head small { font: 500 12px/1 var(--body); text-transform: none; color: var(--chalk-2); }
.battle-bar { height: 15px; border-radius: 8px; overflow: hidden; display: flex; background: #3f71c9; }
.battle-de { background: var(--amber); display: block; height: 100%; transition: width 0.8s ease; }
.battle-nums b { font-variant-numeric: tabular-nums; }

/* final */
.podium { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; align-items: end; margin-top: 8px; }
.pod { text-align: center; display: grid; gap: 3px; }
.pod-face { font-size: 44px; line-height: 1; }
.pod-name { font: 800 21px/1.05 var(--display); overflow-wrap: anywhere; }
.pod-score { font: 900 25px/1 var(--display); color: var(--amber-2); font-variant-numeric: tabular-nums; }
.pod-step { margin-top: 5px; background: var(--mat); color: var(--ink); font: 900 42px/1 var(--display); border-radius: 10px 10px 0 0; display: grid; place-items: center; }
.pod-1 .pod-step { height: 148px; background: var(--amber); }
.pod-2 .pod-step { height: 104px; }
.pod-3 .pod-step { height: 72px; }
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 9px; }
.award { padding: 18px; }
.award-title { font: 900 25px/1 var(--display); text-transform: uppercase; }
.award-who { font-weight: 700; margin-top: 5px; }
.award-line { font: 600 21px/1.05 var(--hand); color: var(--ink-2); }
.confetti { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 20; }
.confetti i { position: absolute; top: -24px; width: 13px; height: 13px; border-radius: 3px; background: var(--mat); animation: drop 3.4s ease-in forwards; transform: rotate(var(--r)); }
.confetti i:nth-child(3n) { background: var(--amber); }
.confetti i:nth-child(4n) { background: var(--green); }
@keyframes drop { to { top: 104%; transform: rotate(calc(var(--r) + 300deg)); opacity: 0.7; } }

/* remote + dock */
.remote { position: sticky; bottom: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; max-width: 760px; margin: 0 auto; padding: 22px 16px 8px; background: linear-gradient(to bottom, rgba(12, 33, 27, 0) 0, var(--table) 16px); }
.remote:empty { display: none; }
.remote .btn-next { flex: 1 1 200px; width: auto; }
.remote-wait { flex: 1 1 100%; text-align: center; color: var(--chalk-2); font: 700 21px/1 var(--hand); }
.reacts { display: flex; gap: 2px; flex: 1 1 100%; justify-content: center; }
.react { width: 44px; height: 44px; border-radius: 10px; font-size: 22px; }
.react:active { transform: scale(1.3); }
.dock { display: flex; gap: 6px; overflow-x: auto; padding: 7px 16px calc(9px + env(safe-area-inset-bottom)); background: rgba(0, 0, 0, 0.26); scrollbar-width: none; flex: 0 0 auto; }
.dock::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; padding: 4px 10px 4px 6px; border-radius: 99px; background: rgba(244, 234, 213, 0.09); font-size: 13px; position: relative; }
.chip-face { font-size: 16px; }
.chip-name { font-weight: 700; max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-meta { color: var(--chalk-2); font-variant-numeric: tabular-nums; }
.chip-you { box-shadow: 0 0 0 1.5px var(--amber) inset; }
.chip-off { opacity: 0.38; }
.chip-done { background: rgba(79, 201, 138, 0.25); }
.chip-done .chip-meta { color: var(--green); font-weight: 700; }
.chip-streak { font: 800 13px/1 var(--display); color: var(--amber-2); }

/* toasts + reactions */
#toasts { position: fixed; left: 0; right: 0; top: 62px; z-index: 50; display: grid; justify-items: center; gap: 6px; pointer-events: none; padding: 0 16px; }
.toast { padding: 9px 15px; border-radius: 10px; font-weight: 700; background: var(--table-3); color: var(--chalk); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); animation: rise 0.18s ease-out; text-align: center; max-width: 480px; }
.toast-good { background: var(--green); color: #06291a; }
.toast-bad { background: var(--red); color: #fff; }
.toast-miss { background: rgba(20, 40, 34, 0.95); color: var(--chalk-2); }
#float { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.floater { position: absolute; bottom: 90px; display: grid; justify-items: center; animation: floatup 2.3s ease-out forwards; }
.floater span { font-size: 42px; line-height: 1; }
.floater small { font-weight: 700; font-size: 12px; background: rgba(0, 0, 0, 0.5); padding: 1px 6px; border-radius: 6px; }
@keyframes floatup { from { transform: translateY(0) scale(0.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-40px) scale(1.1); } to { transform: translateY(-58vh) scale(1); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .confetti { display: none; }
}

/* usernames, lifetime rate, TV link */
.home-note { font-size: 13px; color: var(--ink-2); margin: 4px 0 0; text-align: center; }
.home-board, .tv-link { display: block; text-align: center; color: var(--amber-2); font-weight: 700; text-decoration: none; padding: 10px; }
.home-board:hover, .tv-link:hover { text-decoration: underline; }
.seat-rate { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.seat-rate b { font: 800 18px/1 var(--display); color: var(--ink); }
.custom-slot:empty { display: none; }

/* QA round 1 */
html, body { overflow-x: clip; }
.big-answer b { max-width: 100%; overflow-wrap: anywhere; }
.accept { min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; }
.seat-kick { width: 40px; height: 40px; }
.final-actions { display: grid; gap: 8px; margin-top: 8px; }

/* QA desktop round */
@media (min-width: 1100px) {
  .stage, .remote { max-width: 860px; }
}
.final { padding-bottom: 12px; }

/* satellite map sizes elsewhere */
.hotcold-map .map { height: clamp(260px, 84vw, 54dvh); }

/* language switch (client/i18n.js) */
.hud-lang { font: 800 13px/1 var(--display); letter-spacing: 0.06em; }
.home-lang { display: flex; justify-content: flex-end; margin-bottom: -14px; }
.lang-btn { min-width: 44px; height: 34px; padding: 0 10px; border-radius: 99px; border: 1.5px solid var(--line); background: transparent; color: var(--chalk); font: 800 13px/1 var(--display); letter-spacing: 0.08em; cursor: pointer; }
.lang-btn:hover { border-color: var(--amber); color: var(--amber); }

/* questions per type (client/counts.js) */
.cn { display: grid; gap: 12px; }
.cn-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cn-head .btn { width: auto; }
.cn-head .lab { margin-bottom: 0; }
.cn-sum { font: 800 20px/1.1 var(--display); color: var(--ink); margin-top: 2px; font-variant-numeric: tabular-nums; }
.cn-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.cn-chip { min-height: 36px; padding: 0 12px; border-radius: 99px; border: 1.5px solid rgba(28, 26, 20, 0.28); background: transparent; color: var(--ink); font: 700 14px/1 var(--body); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cn-chip:active { background: rgba(28, 26, 20, 0.08); }
.cn-list { display: grid; }
.cn-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; border-bottom: 1px dashed rgba(28, 26, 20, 0.18); }
.cn-row:last-child { border-bottom: 0; }
.cn-name { font: 600 15px/1.2 var(--body); color: var(--ink); min-width: 0; }
.cn-off .cn-name { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(28, 26, 20, 0.35); }
.cn-step { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.cn-btn { width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid rgba(28, 26, 20, 0.3); background: transparent; color: var(--ink); font: 800 22px/1 var(--display); cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.cn-btn:active:not(:disabled) { background: var(--ink); color: var(--mat); }
.cn-btn:disabled { opacity: 0.3; cursor: default; }
.cn-n { width: 46px; height: 44px; border: 0; border-bottom: 2px solid rgba(28, 26, 20, 0.25); border-radius: 0; background: transparent; text-align: center; font: 800 22px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; padding: 0; }
.cn-n:focus { outline: none; border-bottom-color: var(--amber); background: rgba(242, 169, 0, 0.12); }
.cn-off .cn-n { color: rgba(28, 26, 20, 0.4); }
.cn > .cn-foot { position: sticky; bottom: 0; z-index: 2; display: grid; gap: 10px; margin: 0 -14px -14px; padding: 12px 14px 14px; background: var(--mat-2); border-radius: 12px; box-shadow: 0 -8px 16px -10px rgba(28, 26, 20, 0.35); }
body:has(.cn-foot) .remote { display: none; }
.cn-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cn-actions .btn { width: auto; flex: 1 1 auto; min-height: 44px; }
.cn .btn-ghost { color: var(--ink); border: 1.5px solid rgba(28, 26, 20, 0.3); background: transparent; box-shadow: none; }

/* the table after every question + round strip (Louis 2026-11-06) */
.stand { margin-top: 18px; }
.stand-h { margin-bottom: 8px; }
.stand-list { display: grid; gap: 4px; }
.stand-row { display: grid; grid-template-columns: 20px auto 24px minmax(0, 1fr) auto auto auto; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: rgba(244, 234, 213, 0.07); font-variant-numeric: tabular-nums; }
.stand-moved { animation: stand-slide 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes stand-slide { from { transform: translateY(var(--from)); } to { transform: none; } }
.stand-you { box-shadow: 0 0 0 1.5px var(--amber) inset; }
.stand-rank { font: 900 20px/1 var(--display); color: var(--chalk-2); text-align: center; }
.stand-move { font: 800 12px/1 var(--display); letter-spacing: 0.02em; }
.stand-move.up { color: var(--green); }
.stand-move.down { color: var(--red); }
.stand-face { font-size: 19px; text-align: center; }
.stand-name { display: grid; font: 700 15px/1.15 var(--body); color: var(--chalk); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stand-run { font: 700 11px/1.2 var(--body); color: var(--amber-2); letter-spacing: 0.02em; }
.stand-time { justify-self: end; padding: 3px 6px; border-radius: 99px; font: 700 13px/1 var(--body); color: var(--chalk); background: rgba(244, 234, 213, 0.08); white-space: nowrap; }
.stand-miss { color: var(--chalk-2); background: transparent; }
.stand-fast { background: var(--amber); color: var(--ink); }
.stand-pts { justify-self: end; font: 800 17px/1 var(--display); color: var(--chalk-2); }
.stand-pts.plus { color: var(--green); }
.stand-gap { justify-self: end; font: 600 13px/1 var(--body); color: var(--chalk-2); white-space: nowrap; }
.stand-big .stand-row { grid-template-columns: 34px auto 40px minmax(0, 1fr) auto auto auto; padding: 12px 18px; gap: 12px; }
.stand-big .stand-rank { font-size: 32px; }
.stand-big .stand-face { font-size: 30px; }
.stand-big .stand-name { font-size: 26px; }
.stand-big .stand-time { font-size: 20px; padding: 5px 10px; }
.stand-big .stand-pts { font-size: 28px; }
.stand-big .stand-gap, .stand-big .stand-move { font-size: 18px; }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 4px 0 14px; }
.strip-cell { padding: 12px 14px; }
.strip-cell .lab { margin-bottom: 6px; }
.strip-name { font: 800 19px/1.1 var(--display); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-line { margin-top: 3px; font: 600 13px/1.2 var(--body); color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .stand-moved { animation: none; } }

/* home: bank card + matches + leaderboard (Louis 2026-11-06) */
.home-nav { display: grid; gap: 10px; }
.hb { display: grid; gap: 8px; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.hb-head { display: flex; justify-content: space-between; align-items: baseline; }
.hb-head .lab { margin: 0; }
.hb-go { font: 700 14px/1 var(--body); color: var(--green-ink); }
.hb-nums { display: flex; align-items: center; gap: 14px; min-height: 52px; }
.hb-big { display: grid; justify-items: start; }
.hb-big b { font: 900 44px/0.9 var(--display); font-variant-numeric: tabular-nums; }
.hb-big span { font: 700 11px/1.3 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.hb-lines { display: grid; gap: 2px; min-width: 0; font: 500 13px/1.3 var(--body); color: var(--ink-2); }
.hb-wait { font: 600 14px/1.3 var(--body); color: var(--ink-2); }
.hb-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hb-link { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); text-decoration: none; color: var(--chalk); min-height: 44px; }
.hb-link b { font: 800 20px/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; color: var(--amber-2); }
.hb-link span { font: 500 12.5px/1.25 var(--body); color: var(--chalk-2); }
.hb-link:hover { border-color: var(--amber); }

/* Custom round panel (host lobby). Uses the existing :root vars. */
.cr { width: 100%; }
.cr-add { width: 100%; }
.cr-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cr-tag { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; font: 800 18px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; color: var(--amber-2); }
.mat .cr-tag { color: var(--ink); }
.cr-edit { display: grid; gap: 8px; text-align: left; }
.cr-edit .lab { margin-bottom: 0; }
.cr-lab2 { margin-top: 6px; }
.cr-title { min-height: 48px; font-size: 18px; }
.cr-text {
  min-height: 160px; padding: 12px 14px; resize: vertical;
  font: 500 15px/1.45 ui-monospace, 'Cascadia Mono', Consolas, monospace;
  white-space: pre; overflow: auto;
}
.cr-text:focus, .cr-title:focus { outline: 0; border-color: var(--amber); }
.cr-hint { font: 600 14px/1.3 var(--body); color: var(--ink-2); }
.cr-status { display: grid; gap: 4px; }
.cr-err { font: 700 14px/1.3 var(--body); color: var(--red); }
.cr-ok { font: 800 16px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.05em; color: var(--green-ink); }
.cr-actions { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.cr-actions .btn-next { flex: 1; width: auto; box-shadow: 0 3px 0 #a87500; }
@media (max-width: 400px) { .cr-text { font-size: 14px; } }

.lb-wrap { max-width: 720px; margin: 0 auto; padding: 18px 16px 40px; display: grid; gap: 14px; }
.lb-back { color: var(--chalk-2); text-decoration: none; font: 600 15px/1 var(--body); justify-self: start; }
.lb-back:hover { color: var(--amber-2); }
.lb-title { margin: 0; font: 900 clamp(40px, 11vw, 64px)/0.95 var(--display); text-transform: uppercase; color: var(--chalk); letter-spacing: 0.01em; overflow-wrap: anywhere; }
.lb-card { padding: 12px 14px 8px; }
.lb-empty { margin: 18px 0; text-align: center; font: 700 22px/1.3 var(--hand); color: var(--ink-2); }

.st-stack { display: grid; gap: 14px; }
.st-stack > * { min-width: 0; }
.st-card { padding: 14px 16px 12px; }
.st-h { margin: 0 0 6px; font: 800 20px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-ink); }
.st-table { width: 100%; border-collapse: collapse; font: 500 15px/1.2 var(--body); color: var(--ink); }
.st-table th { padding: 6px 4px 8px; text-align: left; font: 700 11px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); border-bottom: 2px solid rgba(28, 26, 20, 0.25); }
.st-table td { padding: 9px 4px; border-top: 1px solid rgba(28, 26, 20, 0.14); }
.st-table tbody tr:first-child td { border-top: 0; }
.st-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-rank { width: 30px; font: 900 22px/1 var(--display); color: var(--ink-2); }
.st-board tbody tr:first-child .st-rank { color: var(--green-ink); }
.st-name { font: 800 21px/1.1 var(--display); max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; }
.st-name a { color: var(--ink); text-decoration: none; }
.st-name a:hover { color: var(--green-ink); text-decoration: underline; }
.st-strong { font: 900 24px/1 var(--display); }

.st-hero { display: grid; gap: 8px; }
.st-bigs { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px 8px; }
.st-big { display: grid; gap: 4px; }
.st-big b { font: 900 38px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); }
.st-big span { font: 600 11px/1.2 var(--body); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); }
.st-line { margin: 4px 0 0; font: 700 16px/1.3 var(--body); color: var(--ink); }
.st-note { margin: 8px 0 0; font: 500 13px/1.3 var(--body); color: var(--ink-2); }
.st-hero .st-note { margin: 0; }

.st-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.st-chip { padding: 6px 11px; border-radius: 999px; font: 700 14px/1 var(--body); color: var(--ink); background: var(--mat-2); border: 1px solid rgba(28, 26, 20, 0.22); }
.st-chip-win { background: var(--green-ink); border-color: var(--green-ink); color: var(--mat); }

.st-dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 9px 14px; font: 500 15px/1.3 var(--body); color: var(--ink); }
.st-dl dt { font: 700 12px/1.6 var(--body); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); }
.st-dl dd { margin: 0; }
@media (max-width: 420px) {
  .st-dl { grid-template-columns: 1fr; gap: 2px; }
  .st-dl dd { margin-bottom: 8px; }
}

.st-spark { display: block; width: 100%; height: 44px; margin-top: 8px; }
.st-spark rect { fill: var(--green-ink); }
.st-spark rect:last-child { fill: var(--amber); }

/* bank tracker (/bank, client/bank.js) */
.bk-sub { margin: 0 0 10px; }
.bk-bands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bk-band { display: grid; gap: 3px; align-content: start; padding: 10px 10px 9px; border-radius: 12px; border: 1.5px solid rgba(28, 26, 20, 0.18); }
.bk-band b { font: 900 36px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); }
.bk-band-name { font: 800 15px/1 var(--display); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink); }
.bk-band-meta { font: 500 12px/1.25 var(--body); color: var(--ink-2); }
.bk-short { border-color: var(--red); background: rgba(224, 73, 47, 0.07); }
.bk-short b { color: var(--red); }
.bk-flag { justify-self: start; margin-top: 3px; padding: 3px 6px; white-space: nowrap; letter-spacing: 0.03em !important; border-radius: 99px; background: var(--red); color: var(--mat); font: 800 11px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.bk-growth { display: block; width: 100%; height: 72px; margin: 4px 0 2px; }
.bk-g-total { fill: rgba(28, 26, 20, 0.16); }
.bk-g-left { fill: var(--green-ink); }
.bk-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; }
.bk-key.bk-g-total { background: rgba(28, 26, 20, 0.16); }
.bk-key.bk-g-left { background: var(--green-ink); }
.bk-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
@media (max-width: 380px) { .bk-band b { font-size: 30px; } }

/* lifetime board: sort chips, records, head to head (Louis 2026-11-06) */
.lb-sorts { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; margin: 0 -2px; scrollbar-width: none; }
.lb-sorts::-webkit-scrollbar { display: none; }
.lb-sort { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border-radius: 99px; border: 1.5px solid rgba(28, 26, 20, 0.25); background: transparent; color: var(--ink); font: 700 14px/1 var(--body); cursor: pointer; }
.lb-sort.on { background: var(--ink); border-color: var(--ink); color: var(--mat); }
.lb-recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.lb-rec { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid rgba(28, 26, 20, 0.16); }
.lb-rec-t { font: 700 11px/1.2 var(--body); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); }
.lb-rec-v { font: 900 24px/1.05 var(--display); color: var(--ink); }
.lb-rec-n a { font: 700 15px/1.2 var(--body); color: var(--green-ink); text-decoration: none; }
.lb-h2h td, .lb-h2h th { padding-left: 4px; padding-right: 4px; }
.lb-h2h-name { font: 800 17px/1.1 var(--display); white-space: nowrap; }
.lb-h2h-name a { color: var(--ink); text-decoration: none; }
.lb-h2h-cell { font-weight: 700; }
.lb-h2h-cell.up { color: var(--green-ink); background: rgba(30, 122, 76, 0.1); }
.lb-h2h-cell.down { color: var(--red); background: rgba(224, 73, 47, 0.07); }
.lb-h2h-self { background: rgba(28, 26, 20, 0.06); }
.lb-h2h-none { color: var(--ink-2); }
.lb-wrap > * { min-width: 0; }

/* /bank topic and type rows */
.bk-rows { display: grid; }
.bk-row { border-top: 1px solid rgba(28, 26, 20, 0.14); }
.bk-row:first-child { border-top: 0; }
.bk-row summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 2px 11px; cursor: pointer; list-style: none; }
.bk-row summary::-webkit-details-marker { display: none; }
.bk-row-title { font: 800 19px/1.1 var(--display); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-row-title::after { content: ' ▸'; font-size: 13px; color: var(--ink-2); }
.bk-row[open] .bk-row-title::after { content: ' ▾'; }
.bk-row-left { justify-self: end; font: 600 13px/1.2 var(--body); color: var(--ink-2); white-space: nowrap; }
.bk-row-left b { font: 900 22px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.bk-row-meta { grid-column: 1 / -1; font: 500 12.5px/1.2 var(--body); color: var(--ink-2); }
.bk-bar { grid-column: 1 / -1; height: 5px; margin-top: 4px; border-radius: 99px; background: rgba(28, 26, 20, 0.1); overflow: hidden; }
.bk-bar i { display: block; height: 100%; border-radius: 99px; background: var(--green-ink); }
.bk-split { display: grid; gap: 2px; padding: 0 2px 12px; }
.bk-split-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; gap: 8px; font: 500 14px/1.3 var(--body); color: var(--ink); }
.bk-split-n { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.bk-split-of { color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }

/* match history (/matches, client/matches.js) */
.mh-bar { display: flex; align-items: center; gap: 10px; }
.mh-bar .lab { margin: 0; color: var(--chalk-2); }
.mh-filter { flex: 1; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--table-2); color: var(--chalk); font: 600 16px/1 var(--body); }
.mh-card { display: grid; gap: 8px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.mh-top { display: flex; justify-content: space-between; gap: 10px; font: 600 13px/1.2 var(--body); color: var(--ink-2); }
.mh-when { font-weight: 700; color: var(--ink); }
.mh-win { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.mh-win .lab { margin: 0; }
.mh-win b { font: 900 26px/1 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-pts { margin-left: auto; font: 700 14px/1 var(--body); color: var(--green-ink); white-space: nowrap; }
.mh-table { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0; list-style: none; counter-reset: mh; font: 500 13.5px/1.3 var(--body); }
.mh-table li { counter-increment: mh; display: flex; gap: 5px; }
.mh-table li::before { content: counter(mh) '.'; color: var(--ink-2); }
.mh-table b { font-variant-numeric: tabular-nums; }
.mh-mix { display: flex; flex-wrap: wrap; gap: 4px; }
.mh-mix span { padding: 3px 8px; border-radius: 99px; background: rgba(28, 26, 20, 0.07); font: 600 11.5px/1.2 var(--body); color: var(--ink-2); }
.mh-sub { margin: 0 0 6px; }
.mh-stats td, .mh-stats th, .mh-rounds td, .mh-rounds th { padding-left: 4px; padding-right: 4px; white-space: nowrap; }
.mh-stats .st-name { font-size: 18px; max-width: 110px; }
.mh-line { display: block; width: 100%; height: 150px; margin: 4px 0 6px; background: linear-gradient(rgba(28, 26, 20, 0.06) 1px, transparent 1px) 0 0 / 100% 25%; }
.mh-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 600 13px/1.2 var(--body); }
.mh-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.mh-legend i { width: 12px; height: 4px; border-radius: 2px; }
.mh-round { font-weight: 700; }
.mh-best { font-weight: 800; color: var(--green-ink); }
.mh-qs { display: grid; }
.mh-q { border-top: 1px solid rgba(28, 26, 20, 0.14); }
.mh-q:first-child { border-top: 0; }
.mh-q summary { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 10px 2px; cursor: pointer; list-style: none; }
.mh-q summary::-webkit-details-marker { display: none; }
.mh-qn { font: 900 17px/1.2 var(--display); color: var(--ink-2); }
.mh-qp { font: 600 14.5px/1.3 var(--body); color: var(--ink); }
.mh-qgot { font: 800 15px/1.2 var(--display); color: var(--green-ink); white-space: nowrap; }
.mh-qbody { display: grid; gap: 8px; padding: 0 2px 12px 32px; }
.mh-qa { margin: 0; font: 700 15px/1.3 var(--body); }
.mh-qa .lab { display: inline; margin-right: 6px; }
.mh-qwho { display: flex; flex-wrap: wrap; gap: 4px; }
.mh-qwho > span { padding: 3px 8px; border-radius: 99px; font: 600 12.5px/1.2 var(--body); }
.mh-qwho .ok { background: rgba(30, 122, 76, 0.12); color: var(--green-ink); }
.mh-qwho .no { background: rgba(28, 26, 20, 0.06); color: var(--ink-2); }
.lobby-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 14px; }

.au-panel { display: grid; gap: 10px; width: 100%; max-width: 360px; padding: 14px 16px; border-radius: 14px; background: rgba(244, 234, 213, 0.07); border: 1px solid var(--line); color: var(--chalk); }
.au-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.au-who { font: 500 15px/1.2 var(--body); color: var(--chalk-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-who b { color: var(--chalk); font-weight: 800; }
.au-link { background: none; border: 0; padding: 4px 0; cursor: pointer; font: 700 14px/1 var(--body); color: var(--amber-2); text-decoration: underline; text-underline-offset: 3px; }
.au-link:hover { color: var(--amber); }
.au-tabs { display: flex; gap: 6px; }
.au-tab { flex: 1; padding: 9px 0 7px; cursor: pointer; background: none; border: 0; border-bottom: 3px solid transparent; font: 800 18px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--chalk-2); }
.au-tab.au-on { color: var(--chalk); border-bottom-color: var(--amber); }
.au-form { display: grid; gap: 8px; }
.au-input { width: 100%; padding: 12px 12px; border-radius: 10px; font: 600 16px/1.2 var(--body); color: var(--ink); background: var(--mat); border: 2px solid transparent; }
.au-input::placeholder { color: var(--ink-2); font-weight: 500; }
.au-input:focus { outline: none; border-color: var(--amber); }
.au-error { margin: 0; min-height: 0; font: 600 14px/1.3 var(--body); color: #ff9a85; }
.au-error:empty { display: none; }
.au-go { padding: 12px; cursor: pointer; border: 0; border-radius: 10px; font: 800 20px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); background: var(--amber); }
.au-go:hover:not(:disabled) { background: var(--amber-2); }
.au-go:disabled { opacity: 0.6; cursor: default; }
.au-hint { margin: 0; font: 500 13px/1.35 var(--body); color: var(--chalk-2); }

/* On the home page the panel sits on a cream mat: ink colours there, or the active tab vanishes cream-on-cream. */
.mat .au-panel { color: var(--ink); background: rgba(28, 26, 20, 0.04); border-color: rgba(28, 26, 20, 0.16); }
.mat .au-tab { color: var(--ink-2); }
.mat .au-tab.au-on { color: var(--ink); }
.mat .au-who, .mat .au-hint { color: var(--ink-2); }
.mat .au-who b { color: var(--ink); }

/* Spectator / TV screen. Everything is prefixed tv- and uses the :root tokens from styles.css. */
.tv { position: fixed; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, var(--table-2), var(--table) 70%); color: var(--chalk); font-family: var(--body); }
.tv-body { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 2vw 4vw 3vw; gap: 1.6vw; overflow: hidden; }
.tv-fresh { animation: tv-in 0.45s ease both; }
@keyframes tv-in { from { opacity: 0; transform: translateY(1.2vw); } to { opacity: 1; transform: none; } }

.tv-exit { position: fixed; right: 1.2vw; bottom: 0.8vw; font-size: max(12px, 0.9vw); color: var(--chalk-2); opacity: 0.55; text-decoration: none; z-index: 5; }
.tv-exit:hover { opacity: 1; }
.tv-status { position: fixed; left: 50%; top: 0.8vw; transform: translateX(-50%); padding: 0.3em 1em; border-radius: 99px; background: var(--amber); color: var(--ink); font-weight: 700; font-size: max(12px, 1vw); opacity: 0; transition: opacity 0.2s; z-index: 6; pointer-events: none; }
.tv-status-on { opacity: 1; }

.tv-top { display: flex; align-items: baseline; gap: 2vw; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--chalk-2); font-size: max(14px, 1.6vw); flex: none; }
.tv-brand { color: var(--amber); font-size: 1.3em; font-weight: 800; letter-spacing: 0.04em; }
.tv-top-round { flex: 1; }
.tv-top-code { margin-left: auto; }
.tv-top-q { color: var(--chalk); font-weight: 800; }

.tv-mat { background: var(--mat); color: var(--ink); border-radius: 1.2vw; box-shadow: 0 0.5vw 0 rgba(0, 0, 0, 0.25), 0 1.4vw 3vw rgba(0, 0, 0, 0.3); }
.tv-lab { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.14em; font-size: max(12px, 1.3vw); color: var(--ink-2); font-weight: 700; }
.tv-h { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.12em; font-size: max(14px, 1.5vw); color: var(--amber-2); margin: 0 0 1vw; }
.tv-title { font-family: var(--display); text-transform: uppercase; font-size: 6vw; line-height: 1; margin: 0; letter-spacing: 0.02em; }
.tv-sub { font-size: 2.2vw; color: var(--chalk-2); margin: 0; }
.tv-hand { font-family: var(--hand); color: var(--amber-2); font-size: 3vw; }
.tv-quiet { color: var(--chalk-2); font-size: 2vw; margin: 0; }
.tv-off { opacity: 0.45; }

/* lobby */
.tv-lobby { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 4vw; align-items: center; min-height: 0; }
.tv-codecard { padding: 3vw 2vw; text-align: center; transform: rotate(-1.2deg); }
.tv-code { font-family: var(--display); font-weight: 800; font-size: 15vw; line-height: 0.95; letter-spacing: 0.08em; color: var(--ink); padding-left: 0.08em; }
.tv-join { font-size: 1.9vw; color: var(--ink-2); margin-top: 1.2vw; word-break: break-all; }
.tv-lobby-side { display: flex; flex-direction: column; gap: 2.4vw; min-height: 0; }
.tv-names { display: flex; flex-wrap: wrap; gap: 1vw; }
.tv-name { display: flex; align-items: center; gap: 0.7vw; background: rgba(244, 234, 213, 0.1); border: 1px solid var(--line); border-radius: 99px; padding: 0.5vw 1.6vw 0.5vw 1vw; font-size: 2.4vw; animation: tv-in 0.4s ease both; }
.tv-name span { font-size: 1.2em; }
.tv-lineup { margin: 0; padding-left: 2.4vw; font-size: 1.8vw; color: var(--chalk-2); columns: 2; column-gap: 3vw; }
.tv-lineup li { margin-bottom: 0.4vw; }

/* intro */
.tv-intro { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1.6vw; max-width: 80vw; }
.tv-intro-n { font-family: var(--hand); color: var(--amber-2); font-size: 4vw; }
.tv-intro-title { font-family: var(--display); text-transform: uppercase; font-size: 10vw; line-height: 0.95; margin: 0; }
.tv-intro-tag { font-size: 2.6vw; color: var(--chalk-2); margin: 0; }
.tv-howto { padding: 2vw 2.6vw; font-size: 2.2vw; line-height: 1.35; max-width: 64vw; }
.tv-howto p { margin: 0.6vw 0 0; }

/* play */
.tv-play { flex: 1; display: flex; flex-direction: column; gap: 2vw; min-height: 0; }
.tv-qhead { flex: none; }
.tv-cat { display: flex; align-items: center; gap: 1.2vw; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 2vw; color: var(--amber-2); font-weight: 700; }
.tv-hard { font-size: 0.7em; letter-spacing: 0.1em; color: var(--chalk-2); border: 1px solid var(--line); border-radius: 99px; padding: 0.1em 0.8em; }
.tv-stack { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2vw; min-height: 0; }
.tv-prompt { font-family: var(--body); font-weight: 800; font-size: 5vw; line-height: 1.12; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
.tv-prompt-small { font-size: 3.4vw; }
.tv-card { padding: 3vw 3.4vw; font-size: 4.2vw; font-weight: 700; line-height: 1.2; align-self: center; max-width: 80vw; margin: auto; }
.tv-card p { margin: 0; }
.tv-clock { flex: none; display: flex; align-items: center; gap: 2vw; }
.tv-count { font-family: var(--display); font-weight: 800; font-size: 9vw; line-height: 1; min-width: 1.5em; color: var(--amber); font-variant-numeric: tabular-nums; }
.tv-count-urgent { color: var(--red); animation: tv-pulse 1s ease infinite; }
@keyframes tv-pulse { 50% { transform: scale(1.12); } }
.tv-bar { flex: 1; height: 1.2vw; background: rgba(244, 234, 213, 0.12); border-radius: 99px; overflow: hidden; }
.tv-bar i { display: block; height: 100%; background: var(--amber); transform-origin: left; border-radius: 99px; }

.tv-chips { flex: none; display: flex; flex-wrap: wrap; gap: 0.8vw; }
.tv-chip { display: flex; align-items: center; gap: 0.6vw; padding: 0.4vw 1.3vw 0.4vw 0.8vw; border-radius: 99px; border: 2px solid var(--line); color: var(--chalk-2); font-size: 1.8vw; transition: all 0.25s; }
.tv-chip-done { background: var(--green); border-color: var(--green); color: var(--ink); }
.tv-chip small { opacity: 0.8; font-size: 0.8em; }

.tv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4vw; }
.tv-opts-2 { grid-template-columns: 1fr 1fr; }
.tv-opt { position: relative; display: flex; align-items: center; gap: 1.4vw; background: var(--mat); color: var(--ink); border-radius: 1vw; padding: 1.4vw 1.8vw; font-size: 3vw; font-weight: 700; line-height: 1.15; }
.tv-opt-key { flex: none; display: grid; place-items: center; width: 4.4vw; height: 4.4vw; border-radius: 50%; background: var(--ink); color: var(--mat); font-family: var(--display); font-size: 2.6vw; }
.tv-opt-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tv-opt-value { font-family: var(--display); font-size: 2.4vw; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tv-opt-right { background: var(--green); box-shadow: 0 0 0 0.4vw var(--amber-2); }
.tv-opt-right .tv-opt-value { color: var(--ink); }
.tv-opt-dim { opacity: 0.35; }


.tv-clues { display: flex; flex-direction: column; gap: 1vw; }
.tv-clue { display: flex; gap: 1.4vw; align-items: center; background: var(--mat); color: var(--ink); border-radius: 1vw; padding: 1vw 1.6vw; font-size: 2.6vw; font-weight: 600; }
.tv-clue span { flex: none; display: grid; place-items: center; width: 3.6vw; height: 3.6vw; border-radius: 50%; background: var(--ink); color: var(--mat); font-family: var(--display); }
.tv-clue p { margin: 0; }
.tv-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1vw; }
.tv-tile { background: var(--mat); color: var(--ink); border-radius: 0.8vw; padding: 1.4vw 0.8vw; text-align: center; font-weight: 800; font-size: 2.2vw; text-transform: uppercase; overflow-wrap: anywhere; }
.tv-duel { display: flex; align-items: stretch; gap: 2vw; }
.tv-duelcard { flex: 1; padding: 2.4vw; font-size: 3.2vw; font-weight: 800; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 0.6vw; }
.tv-duelcard b { font-family: var(--display); font-size: 4vw; }
.tv-duel-right { background: var(--green); box-shadow: 0 0 0 0.4vw var(--amber-2); }
.tv-vs { align-self: center; font-family: var(--hand); font-size: 3vw; color: var(--amber-2); }
.tv-order { display: flex; flex-direction: column; gap: 0.8vw; }
.tv-orderitem { padding: 1vw 1.8vw; font-size: 2.6vw; font-weight: 700; display: flex; align-items: center; gap: 1.4vw; border-radius: 0.8vw; }
.tv-order-res .tv-orderitem b { flex: 1; }
.tv-order-res .tv-orderitem em { font-style: normal; font-family: var(--display); color: var(--ink-2); }
.tv-order-n { display: grid; place-items: center; width: 3.4vw; height: 3.4vw; border-radius: 50%; background: var(--ink); color: var(--mat); font-family: var(--display); }

/* reveal */
.tv-reveal { flex: 1; display: flex; flex-direction: column; gap: 1.8vw; min-height: 0; }
.tv-reveal > .tv-stack, .tv-reveal > .tv-order, .tv-reveal > .tv-groups, .tv-reveal > .tv-blitz { flex: 1; min-height: 0; }
.tv-answer { padding: 1.8vw 3vw 2.2vw; text-align: center; align-self: center; max-width: 92vw; transform: rotate(-0.8deg); }
.tv-answer-text { font-family: var(--display); font-weight: 800; font-size: 7.4vw; line-height: 1.02; text-transform: uppercase; overflow-wrap: anywhere; }
.tv-story { margin: 0; font-size: 1.8vw; color: var(--chalk-2); max-width: 80vw; line-height: 1.35; }
.tv-pins, .tv-words { display: flex; flex-wrap: wrap; gap: 1vw; justify-content: center; }
.tv-pin, .tv-word { display: flex; align-items: center; gap: 0.8vw; background: rgba(244, 234, 213, 0.1); border-radius: 99px; padding: 0.5vw 1.6vw 0.5vw 1vw; font-size: 2.2vw; }
.tv-pin em { font-style: normal; font-family: var(--display); color: var(--chalk-2); }
.tv-pin-win, .tv-word-win { background: var(--amber); color: var(--ink); }
.tv-pin-win em { color: var(--ink); }
.tv-word-bad { opacity: 0.5; text-decoration: line-through; }
.tv-word b { margin-left: 0.8vw; }
.tv-groups { display: grid; gap: 1vw; align-content: center; }
.tv-group { padding: 1.2vw 2vw; border-radius: 0.8vw; display: flex; flex-direction: column; gap: 0.3vw; color: var(--ink); font-size: 2.2vw; }
.tv-group b { font-family: var(--display); text-transform: uppercase; font-size: 2.6vw; }
.tv-group-0 { background: #f2c94c; } .tv-group-1 { background: #7fd1a0; } .tv-group-2 { background: #7fb3e8; } .tv-group-3 { background: #c79be0; }
.tv-blitz { display: flex; flex-wrap: wrap; gap: 0.8vw; align-content: center; }
.tv-blitz-item { background: var(--mat); color: var(--ink); border-radius: 0.6vw; padding: 0.4vw 1.2vw; font-size: 1.9vw; font-weight: 600; }
.tv-lies { display: flex; flex-direction: column; gap: 0.7vw; }
.tv-lie { display: flex; align-items: baseline; gap: 1.6vw; background: rgba(244, 234, 213, 0.1); border-radius: 0.8vw; padding: 0.7vw 1.6vw; font-size: 2.2vw; }
.tv-lie b { flex: 1; }
.tv-lie span, .tv-lie em { font-style: normal; color: var(--chalk-2); font-size: 0.85em; }

.tv-deltas { flex: none; display: flex; flex-wrap: wrap; gap: 1vw; }
.tv-delta { display: flex; align-items: center; gap: 0.8vw; background: var(--mat); color: var(--ink); border-radius: 99px; padding: 0.4vw 1.4vw 0.4vw 1vw; font-size: 2.2vw; animation: tv-in 0.4s ease both; }
.tv-delta em { font-style: normal; font-family: var(--display); font-weight: 800; color: var(--green-ink); font-size: 1.15em; }
.tv-delta-neg em { color: var(--red); }
.tv-nopoints { flex: none; font-family: var(--hand); font-size: 2.8vw; color: var(--chalk-2); }

/* standings, final */
.tv-board, .tv-final { flex: 1; display: flex; flex-direction: column; gap: 1.6vw; min-height: 0; overflow: hidden; }
.tv-standings { padding: 1vw 2vw; display: flex; flex-direction: column; gap: 0.4vw; overflow: hidden; }
.tv-row { position: relative; display: flex; align-items: center; gap: 1.6vw; padding: 0.7vw 0; font-size: 3.2vw; border-bottom: 1px dashed rgba(28, 26, 20, 0.2); z-index: 0; }
.tv-row:last-child { border-bottom: 0; }
.tv-rank { width: 3vw; font-family: var(--display); font-weight: 800; color: var(--ink-2); }
.tv-face { font-size: 1.1em; }
.tv-row-name { flex: 1; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-score { font-family: var(--display); font-weight: 800; font-size: 1.1em; font-variant-numeric: tabular-nums; }
.tv-rowbar { position: absolute; left: 0; bottom: 0; height: 0.35vw; background: var(--amber); border-radius: 99px; z-index: -1; transition: width 0.6s ease; }
.tv-podium { display: flex; justify-content: center; align-items: flex-end; gap: 2vw; flex: 1; min-height: 0; }
.tv-pod { display: flex; flex-direction: column; align-items: center; width: 22vw; text-align: center; }
.tv-pod-face { font-size: 6vw; line-height: 1; }
.tv-pod-name { font-weight: 800; font-size: 2.8vw; overflow-wrap: anywhere; }
.tv-pod-score { font-family: var(--display); font-size: 3vw; color: var(--amber-2); font-weight: 800; }
.tv-pod-step { width: 100%; margin-top: 0.8vw; background: var(--mat); color: var(--ink); border-radius: 0.8vw 0.8vw 0 0; font-family: var(--display); font-weight: 800; font-size: 5vw; padding: 0.4vw 0; }
.tv-pod-1 .tv-pod-step { height: 15vh; background: var(--amber); }
.tv-pod-2 .tv-pod-step { height: 10vh; }
.tv-pod-3 .tv-pod-step { height: 6vh; background: var(--mat-2); }
.tv-night { display: grid; grid-template-columns: repeat(auto-fit, minmax(22vw, 1fr)); gap: 1.2vw; flex: none; }
.tv-nightcard { padding: 1vw 1.4vw; }
.tv-night-title { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 1.8vw; color: var(--ink-2); font-weight: 700; }
.tv-night-line { font-size: 1.9vw; font-weight: 700; line-height: 1.2; margin-top: 0.3vw; }

.tv-gone { margin: auto; text-align: center; }
.tv-gone h1 { font-family: var(--display); font-size: 6vw; margin: 0 0 1vw; text-transform: uppercase; }
.tv-gone p { color: var(--chalk-2); font-size: 2vw; margin: 0; }

/* phone: stack and let the page scroll */
@media (max-width: 700px) {
  .tv { position: static; min-height: 100vh; overflow: visible; }
  .tv-body { padding: 16px; gap: 16px; overflow: visible; }
  .tv-exit { position: static; display: block; text-align: center; padding: 16px; font-size: 13px; }
  .tv-status { top: 8px; font-size: 12px; }
  .tv-top { font-size: 14px; gap: 10px; flex-wrap: wrap; }
  .tv-mat { border-radius: 14px; }
  .tv-lab, .tv-h, .tv-cat { font-size: 13px; }
  .tv-lobby { grid-template-columns: 1fr; gap: 24px; }
  .tv-codecard { padding: 20px 12px; }
  .tv-code { font-size: 26vw; }
  .tv-join { font-size: 14px; }
  .tv-name, .tv-chip, .tv-pin, .tv-word, .tv-delta { font-size: 16px; padding: 6px 14px 6px 10px; gap: 8px; }
  .tv-lineup { font-size: 15px; columns: 1; padding-left: 22px; }
  .tv-title { font-size: 40px; }
  .tv-sub, .tv-quiet { font-size: 16px; }
  .tv-hand { font-size: 22px; }
  .tv-intro-n { font-size: 26px; }
  .tv-intro-title { font-size: 48px; }
  .tv-intro-tag { font-size: 18px; }
  .tv-howto { font-size: 16px; padding: 16px; max-width: none; }
  .tv-intro { max-width: none; }
  .tv-play, .tv-reveal, .tv-stack { gap: 16px; }
  .tv-prompt { font-size: 26px; }
  .tv-prompt-small { font-size: 20px; }
  .tv-card { font-size: 24px; padding: 20px; max-width: none; }
  .tv-count { font-size: 56px; }
  .tv-bar { height: 8px; }
  .tv-opts { grid-template-columns: 1fr; gap: 8px; }
  .tv-opt { font-size: 18px; padding: 10px 12px; gap: 10px; border-radius: 10px; }
  .tv-opt-key { width: 30px; height: 30px; font-size: 18px; }
  .tv-opt-value { font-size: 16px; }
  .tv-chunk { font-size: 28vw; padding: 8px 20px; }
  .tv-chunk-small { font-size: 22vw; }
  .tv-clue { font-size: 16px; padding: 8px 12px; gap: 10px; }
  .tv-clue span, .tv-order-n { width: 26px; height: 26px; }
  .tv-wall { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tv-tile { font-size: 14px; padding: 10px 6px; }
  .tv-duel { flex-direction: column; gap: 8px; }
  .tv-duelcard { font-size: 20px; padding: 16px; }
  .tv-duelcard b { font-size: 24px; }
  .tv-vs { font-size: 20px; align-self: center; }
  .tv-orderitem { font-size: 16px; padding: 8px 12px; gap: 10px; }
  .tv-answer { padding: 14px 18px 18px; max-width: none; align-self: stretch; }
  .tv-answer-text { font-size: 38px; }
  .tv-story { font-size: 14px; max-width: none; }
  .tv-group { font-size: 15px; padding: 10px 12px; }
  .tv-group b { font-size: 18px; }
  .tv-blitz-item { font-size: 14px; padding: 4px 10px; }
  .tv-lie { font-size: 15px; padding: 8px 12px; flex-wrap: wrap; gap: 4px 10px; }
  .tv-nopoints { font-size: 20px; }
  .tv-standings { padding: 8px 14px; }
  .tv-row { font-size: 18px; gap: 10px; padding: 8px 0; }
  .tv-rank { width: 22px; }
  .tv-rowbar { height: 3px; }
  .tv-podium { gap: 8px; }
  .tv-pod { width: 30%; }
  .tv-pod-face { font-size: 34px; }
  .tv-pod-name { font-size: 15px; }
  .tv-pod-score { font-size: 17px; }
  .tv-pod-step { font-size: 24px; }
  .tv-pod-1 .tv-pod-step { height: 90px; } .tv-pod-2 .tv-pod-step { height: 60px; } .tv-pod-3 .tv-pod-step { height: 40px; }
  .tv-night { grid-template-columns: 1fr; }
  .tv-night-title { font-size: 13px; }
  .tv-night-line { font-size: 15px; }
  .tv-gone h1 { font-size: 34px; }
  .tv-gone p { font-size: 16px; }
}

/* QA desktop/TV round */
.tv-stack-map { flex: 1; min-height: 0; gap: 1vw; }
.tv-place { font-family: var(--display); font-weight: 800; font-size: 3.4vw; text-transform: uppercase; color: var(--amber-2); line-height: 1; }
.tv-map { flex: 1; min-height: 0; width: 100%; display: flex; justify-content: center; }
.tv-map .map { height: 52vh; width: 100%; cursor: default; }
.tv-pin-bad { opacity: 0.6; }
.tv-opt-faces { margin-left: auto; font-size: 2.2vw; letter-spacing: 0.1em; }
.tv-word s { text-decoration: line-through; }
.tv-word-bad { text-decoration: none; }
.tv-story { font-size: 2.4vw; color: var(--chalk); }
.tv-final { justify-content: space-between; }
.tv-podium { flex: 1 1 auto; align-items: flex-end; padding-top: 2vh; }
.tv-pod-step { display: flex; align-items: flex-start; justify-content: center; min-height: 7vw; box-sizing: border-box; }
.tv-pod-1 .tv-pod-step { height: 22vh; } .tv-pod-2 .tv-pod-step { height: 16vh; } .tv-pod-3 .tv-pod-step { height: 12vh; }
.tv-night-title { font-size: 1.5vw; }
.tv-night-line { font-size: 2.2vw; }
@media (max-width: 760px) {
  .tv-place { font-size: 22px; }
  .tv-opt-faces { font-size: 16px; }
  .tv-story { font-size: 15px; }
  .tv-pod-step { min-height: 40px; }
  .tv-pod-1 .tv-pod-step { height: 90px; } .tv-pod-2 .tv-pod-step { height: 60px; } .tv-pod-3 .tv-pod-step { height: 44px; }
  .tv-night-title { font-size: 13px; } .tv-night-line { font-size: 15px; }
}

/* Apex. Prefixed apex-; uses :root tokens from styles.css */
.apex-play, .apex-reveal { display: flex; flex-direction: column; gap: 14px; }
.apex-sub { text-align: center; color: var(--chalk-2); font: 600 15px/1.2 var(--body); letter-spacing: 0.04em; text-transform: uppercase; min-height: 18px; margin-top: 4px; }
.apex-mat { padding: 10px; background: var(--mat); }
.apex-stage { position: relative; width: 100%; aspect-ratio: 1; }
.apex-play .apex-stage, .apex-reveal .apex-stage { width: min(100%, max(320px, calc(100dvh - 340px))); margin: 0 auto; }
.apex-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); font: 500 20px var(--hand); text-align: center; padding: 20px; }
.apex-svg { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.apex-kerb { stroke: var(--ink); stroke-width: 36; }
.apex-asphalt { stroke: #6b6452; stroke-width: 26; }
.apex-centre { stroke: rgba(244, 234, 213, 0.5); stroke-width: 2; stroke-dasharray: 10 10; }
.apex-dir { fill: var(--mat); stroke: var(--ink); stroke-width: 2; }
.apex-mk circle { stroke: var(--ink); stroke-width: 5; fill: var(--amber); }
.apex-mk text { font: 800 24px var(--display); fill: #fff; pointer-events: none; }
.apex-mk-pending circle { fill: var(--amber); animation: apex-pop 0.25s ease-out; }
.apex-mk-locked circle { fill: var(--green-ink); }
.apex-mk-p circle { r: 15; }
.apex-mk-you circle { r: 22; stroke: var(--amber); stroke-width: 6; }
.apex-mk-win circle { stroke: var(--amber); stroke-width: 6; }
.apex-gap { stroke: var(--red); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 2 14; opacity: 0.9; }
.apex-flag line { stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.apex-flag path { fill: var(--amber); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.apex-flag circle { fill: var(--ink); }
@keyframes apex-pop { from { transform: scale(0.4); } }
.apex-lock { min-height: 64px; font-size: 26px; border-radius: 16px; }
.apex-lock:disabled { background: var(--table-3); color: var(--chalk-2); box-shadow: none; }

.apex-truth { text-align: center; padding: 14px 18px; }
.apex-truth-n { font: 800 clamp(36px, 11vw, 60px)/1 var(--display); color: var(--ink); text-transform: uppercase; }
.apex-list { display: grid; gap: 8px; }
.apex-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 12px; background: rgba(244, 234, 213, 0.07); font-variant-numeric: tabular-nums; }
.apex-row b { font: 700 16px var(--body); }
.apex-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 15px var(--display); color: #fff; background: var(--table-3); }
.apex-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apex-win { background: rgba(242, 169, 0, 0.16); }
.apex-win .apex-name { color: var(--amber-2); }
.apex-you .apex-name::after { content: ' (you)'; color: var(--chalk-2); font-weight: 500; }
.apex-none { opacity: 0.55; }

/* TV */
.apex-tv { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4vw; text-align: center; min-height: 0; }
.apex-tv-big { font: 800 min(6.5vw, 10vh)/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--amber); }
.apex-tv-body { display: flex; gap: 3vw; align-items: center; justify-content: center; width: 100%; }
.apex-tv-map { width: min(44vw, 50vh); flex: none; }
.apex-tv-list { display: grid; gap: 0.8vw; min-width: 24vw; text-align: left; }
.apex-tv-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1vw; align-items: center; font-size: 1.9vw; padding: 0.5vw 1vw; border-radius: 1vw; background: rgba(244, 234, 213, 0.07); }
.apex-tv-row .apex-dot { width: 2.6vw; height: 2.6vw; font-size: 1.5vw; }
.apex-tv-chips { display: flex; flex-wrap: wrap; gap: 1vw; justify-content: center; }
.apex-tv-chip { display: flex; gap: 0.7vw; align-items: center; padding: 0.5vw 1.2vw; border-radius: 99px; background: rgba(244, 234, 213, 0.08); font-size: 1.8vw; }
.apex-tv-chip b { color: var(--chalk-2); font-weight: 600; }
.apex-tv-chip.apex-done { background: rgba(79, 201, 138, 0.2); }
.apex-tv-chip.apex-done b { color: var(--green); }
.apex-tv-face { font-size: 2.2vw; }

/* Bid War. Prefix bw-; uses :root tokens from styles.css. */
.bw { display: grid; gap: 12px; align-content: start; }
.bw-head { padding: 16px 18px; }
.bw-prompt { font: 800 clamp(25px, 6vw, 34px)/1.05 var(--display); text-transform: uppercase; margin: 2px 0 4px; text-wrap: balance; }
.bw-sub { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.bw-body { display: grid; gap: 12px; }
.bw-auction { text-align: center; padding: 14px 18px 16px; }
.bw-bid-n, .bw-count { font: 800 76px/0.95 var(--display); color: var(--ink); }
.bw-count span { font-size: 40px; color: var(--ink-2); }
.bw-bid-who { font: 600 22px/1.1 var(--hand); color: var(--ink-2); min-height: 24px; margin-top: 2px; }
.bw-clock { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.bw-clock-bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(28, 26, 20, 0.14); overflow: hidden; }
.bw-clock-bar i { display: block; height: 100%; background: var(--green-ink); transition: width 0.2s linear; }
.bw-clock b { font: 800 20px/1 var(--display); min-width: 2.2em; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.bw-clock-low .bw-clock-bar i { background: var(--red); }
.bw-clock-low b { color: var(--red); }
.bw-controls { display: grid; gap: 10px; }
.bw-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bw-plus { min-height: 64px; font-size: 26px; }
.bw-custom-row { display: flex; gap: 10px; }
.bw-custom-row .field { flex: 1; min-width: 0; }
.bw-go { width: auto; min-width: 96px; }
.bw-pass { min-height: 48px; }
.bw-note { text-align: center; color: var(--chalk-2); min-height: 20px; }
.bw-passed { text-align: center; color: var(--chalk-2); font-size: 14px; }
.bw-entry { display: flex; gap: 10px; }
.bw-entry .field { flex: 1; min-width: 0; }
.bw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bw-chip { background: var(--mat); color: var(--ink); font: 700 17px/1 var(--body); padding: 9px 13px; border-radius: 99px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); animation: bw-in 0.3s ease both; }
.bw-chip-hit { background: var(--green); color: #06291a; }
.bw-chip-miss { background: rgba(244, 234, 213, 0.12); color: var(--chalk-2); box-shadow: none; }
.bw-empty { color: var(--chalk-2); font: 600 22px/1 var(--hand); }
.bw-result { text-align: center; padding: 16px 18px; }
.bw-res-n { font: 800 64px/1 var(--display); }
.bw-res-n span { font-size: 34px; color: var(--ink-2); }
.bw-res-text { font: 600 22px/1.15 var(--hand); }
.bw-res-win .bw-res-n { color: var(--green-ink); }
.bw-res-fail .bw-res-n { color: var(--red); }
.bw-all { display: grid; gap: 8px; }
.bw-all-l { font: 800 14px/1 var(--display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--chalk-2); }
@keyframes bw-in { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }

/* TV */
.bw-tv { flex: 1; display: flex; flex-direction: column; gap: 1.6vw; min-height: 0; }
.bw-tv-top { display: grid; gap: 0.4vw; }
.bw-tv-prompt { font: 800 4.2vw/1.02 var(--display); text-transform: uppercase; margin: 0; color: var(--chalk); text-wrap: balance; }
.bw-tv-mid { display: grid; justify-items: center; gap: 0.6vw; text-align: center; }
.bw-tv-big { font: 800 14vw/0.9 var(--display); color: var(--amber-2); }
.bw-tv-big span { font-size: 6vw; color: var(--chalk-2); }
.bw-tv-line { font: 700 3vw/1.1 var(--display); color: var(--chalk); margin: 0; text-transform: uppercase; letter-spacing: 0.03em; }
.bw-tv-win { color: var(--green); }
.bw-tv-fail { color: var(--red); }
.bw-tv-clock { font: 800 3.4vw/1 var(--display); color: var(--chalk-2); font-variant-numeric: tabular-nums; }
.bw-tv-low { color: var(--red); }
.bw-tv-chips { display: flex; flex-wrap: wrap; gap: 0.8vw; justify-content: center; }
.bw-tv-chip { background: rgba(244, 234, 213, 0.12); color: var(--chalk-2); font: 700 2.1vw/1 var(--body); padding: 0.7vw 1.4vw; border-radius: 99px; animation: bw-in 0.3s ease both; }
.bw-tv-hit { background: var(--green); color: #06291a; }

@media (min-width: 700px) {
  .bw { max-width: 560px; margin: 0 auto; width: 100%; }
}

/* Blind Rank. Prefix br-. Uses tokens from styles.css. */
.br { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 560px; margin: 0 auto; }
.br-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.br-axis { font: 800 15px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.br-clock { font: 800 20px/1 var(--display); color: var(--chalk); }
.br-card { text-align: center; padding: 18px 16px 20px; }
.br-item { font: 800 clamp(34px, 9vw, 52px)/1 var(--display); text-transform: uppercase; color: var(--ink); text-wrap: balance; animation: br-in 0.3s ease both; }
.br-wait { font-size: clamp(22px, 6vw, 30px); color: var(--ink-2); animation: none; }
@keyframes br-in { from { opacity: 0; transform: translateY(-8px) scale(0.97); } to { opacity: 1; transform: none; } }
.br-slots { display: flex; flex-direction: column; gap: 9px; }
.br-slot {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 8px 14px;
  border-radius: 14px; text-align: left; font: 700 18px/1.1 var(--body);
  background: rgba(244, 234, 213, 0.07); color: var(--chalk-2); border: 2px dashed var(--line);
}
.br-slot.br-open { background: var(--mat); color: var(--ink); border: 2px solid transparent; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); cursor: pointer; }
.br-slot.br-open:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.br-slot.br-locked { background: var(--mat-2); color: var(--ink); border: 2px solid rgba(28, 26, 20, 0.25); opacity: 0.92; }
.br-slot:disabled { cursor: default; }
.br-num { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 20px/1 var(--display); background: var(--table); color: var(--chalk); }
.br-open .br-num { background: var(--amber); color: #241a00; }
.br-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.br-open .br-name { font-weight: 600; color: var(--ink-2); }
.br-locked .br-name { font: 800 24px/1 var(--display); text-transform: uppercase; }
.br-end { position: absolute; right: 12px; top: 6px; font: 800 11px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); opacity: 0.75; }
.br-lock { flex: 0 0 18px; height: 14px; margin-top: 6px; border-radius: 3px; background: var(--ink-2); position: relative; }
.br-lock::before { content: ''; position: absolute; left: 3px; top: -9px; width: 8px; height: 9px; border: 3px solid var(--ink-2); border-bottom: 0; border-radius: 7px 7px 0 0; }
.br-hint { text-align: center; color: var(--chalk-2); font-size: 14px; min-height: 18px; }

.br-truth { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.br-truth li { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px dashed rgba(28, 26, 20, 0.2); }
.br-truth li:last-child { border-bottom: 0; }
.br-truth i, .br-chips i { font: 800 18px/1 var(--display); font-style: normal; color: var(--ink-2); width: 18px; }
.br-tl { flex: 1; font: 800 24px/1 var(--display); text-transform: uppercase; }
.br-truth b { font: 700 18px/1 var(--hand); color: var(--ink); }
.br-boards { display: flex; flex-direction: column; gap: 10px; }
.br-board { background: rgba(244, 234, 213, 0.07); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.br-board.br-win { border-color: var(--amber); background: rgba(242, 169, 0, 0.1); }
.br-bhead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.br-pname { font: 800 20px/1 var(--display); text-transform: uppercase; color: var(--chalk); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-inv { font-size: 14px; color: var(--chalk-2); }
.br-star { font: 800 20px/1 var(--display); color: #241a00; background: var(--amber); border-radius: 99px; padding: 4px 10px; }
.br-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.br-chips li { display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; font: 700 14px/1 var(--body); }
.br-chips i { color: inherit; opacity: 0.7; width: auto; font-size: 15px; }
.br-ok { background: rgba(79, 201, 138, 0.2); color: var(--green); }
.br-miss { background: rgba(224, 73, 47, 0.18); color: #ff9c88; }

/* TV */
.br-tv { display: flex; flex-direction: column; gap: 2vw; flex: 1; min-height: 0; }
.br-tv-prompt { font: 800 4.4vw/1 var(--display); color: var(--chalk); text-transform: uppercase; }
.br-tv-prompt small { display: block; margin-top: 0.6vw; font-size: 1.7vw; letter-spacing: 0.1em; color: var(--amber); }
.br-tv-prog { display: grid; grid-template-columns: repeat(auto-fill, minmax(22vw, 1fr)); gap: 1.4vw; }
.br-tv-p { display: flex; align-items: center; gap: 1.2vw; padding: 1vw 1.4vw; border-radius: 1vw; background: rgba(244, 234, 213, 0.07); border: 2px solid var(--line); }
.br-tv-p .br-pname { font-size: 2.2vw; }
.br-pips { display: flex; gap: 0.5vw; }
.br-pips i { width: 1.6vw; height: 1.6vw; border-radius: 50%; border: 2px solid var(--chalk-2); }
.br-pips i.on { background: var(--amber); border-color: var(--amber); }
.br-tv-cols { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3vw; min-height: 0; }
.br-tv-truth { list-style: none; margin: 0; padding: 1.4vw 1.8vw; background: var(--mat); color: var(--ink); border-radius: 1.2vw; display: flex; flex-direction: column; gap: 0.7vw; }
.br-tv-truth li { display: flex; align-items: baseline; gap: 1vw; font: 800 2.6vw/1.1 var(--display); text-transform: uppercase; }
.br-tv-truth i { font-style: normal; color: var(--ink-2); width: 2vw; }
.br-tv-truth span { flex: 1; }
.br-tv-truth b { font: 700 2.1vw/1 var(--hand); text-transform: none; }
.br-tv-players { display: flex; flex-direction: column; gap: 1vw; }
.br-tv-players .br-tv-p { flex-wrap: wrap; }
.br-tv-players .br-win { border-color: var(--amber); background: rgba(242, 169, 0, 0.12); }
.br-tv-row { display: flex; gap: 0.5vw; flex-wrap: wrap; flex: 1; }
.br-tv-row em { font: 700 1.5vw/1 var(--body); font-style: normal; padding: 0.4vw 0.8vw; border-radius: 0.6vw; }
.br-tv-p .br-inv { font-size: 1.6vw; }

@media (min-width: 900px) {
  .br { max-width: 640px; }
}

/* Compass. Prefixed compass-; uses :root tokens from styles.css */
.compass-play, .compass-reveal { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.compass-route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; text-align: center; }
.compass-end { display: grid; gap: 2px; min-width: 0; }
.compass-end b { font: 800 clamp(22px, 7vw, 30px)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.compass-arrow { font: 800 28px/1 var(--display); color: var(--amber); }
.compass-dialwrap { display: flex; justify-content: center; }
.compass-dial { width: min(86vw, 340px); aspect-ratio: 1; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; outline: none; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.4)); }
.compass-dial:focus-visible .compass-rim { stroke: var(--amber-2); stroke-width: 4; }
.compass-dial:active { cursor: grabbing; }
.compass-face { fill: var(--mat); }
.compass-rim { fill: none; stroke: #bfae8b; stroke-width: 2; }
.compass-tick { stroke: rgba(28, 26, 20, 0.45); stroke-width: 1.4; }
.compass-tick-major { stroke: var(--ink); stroke-width: 3; }
.compass-card { font: 800 24px var(--display); fill: var(--ink); }
.compass-card-n { fill: var(--red); }
.compass-head { fill: var(--amber); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.compass-tail { fill: var(--ink); }
.compass-hub { fill: var(--amber); stroke: var(--ink); stroke-width: 4; }
.compass-locked .compass-dial { opacity: 0.6; cursor: default; }
.compass-read { text-align: center; font: 800 30px/1 var(--display); letter-spacing: 0.04em; min-height: 30px; color: var(--chalk); }
.compass-lock { min-height: 56px; font-size: 22px; }

.compass-truth { text-align: center; padding: 16px; }
.compass-truth-n { font: 800 clamp(44px, 14vw, 72px)/1 var(--display); color: var(--ink); }
.compass-truth-sub { font: 600 14px var(--body); color: var(--ink-2); margin-top: 4px; }
.compass-globebox { display: flex; justify-content: center; }
.compass-globe { width: min(94vw, 460px); height: auto; display: block; touch-action: none; }
.compass-halo { fill: rgba(242, 169, 0, 0.06); stroke: rgba(244, 234, 213, 0.12); }
.compass-sea { stroke: rgba(244, 234, 213, 0.3); stroke-width: 1.5; }
.compass-grat { fill: none; stroke: rgba(244, 234, 213, 0.08); stroke-width: 1; }
.compass-land path { fill: #c9bd9b; stroke: #2a6a66; stroke-width: 0.5; }
.compass-route-line { fill: none; stroke: var(--amber); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 2 9; }
.compass-guess { fill: none; stroke-width: 3.5; stroke-linecap: round; opacity: 0.85; }
.compass-me { stroke-width: 5; opacity: 1; }
.compass-won { stroke-width: 5; opacity: 1; }
.compass-tip { stroke: #0c211b; stroke-width: 1.5; }
.compass-tag { font: 700 17px var(--body); fill: var(--chalk); paint-order: stroke; stroke: #0c211b; stroke-width: 4px; stroke-linejoin: round; }
.compass-pin { stroke: #0c211b; stroke-width: 3; }
.compass-pin-a { fill: var(--chalk); }
.compass-pin-b { fill: var(--amber); }
.compass-place { font: 800 26px var(--display); letter-spacing: 0.03em; fill: var(--chalk); paint-order: stroke; stroke: #0c211b; stroke-width: 5px; stroke-linejoin: round; text-transform: uppercase; }

.compass-list { display: grid; gap: 8px; }
.compass-row { display: grid; grid-template-columns: 12px auto 1fr auto; gap: 8px; align-items: center; }
.compass-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--table-3); }
.compass-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compass-num { display: grid; text-align: right; line-height: 1.15; }
.compass-num b { font: 800 20px var(--display); }
.compass-num span { font-size: 12px; color: var(--chalk-2); }
.compass-win .compass-name { color: var(--amber-2); }
.compass-none { opacity: 0.55; }

.compass-tv { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.compass-tv-route { display: flex; gap: 22px; align-items: center; font: 800 clamp(34px, 5vw, 72px)/1 var(--display); text-transform: uppercase; }
.compass-tv-route span { color: var(--amber); }
.compass-tv-dial { width: min(46vh, 520px); }
.compass-tv-dial .compass-dial { width: 100%; cursor: default; }
.compass-tv-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.compass-tv-chip { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--table-2); border: 1.5px solid var(--line); font-size: 22px; }
.compass-tv-chip b { font: 700 14px var(--body); color: var(--chalk-2); text-transform: uppercase; letter-spacing: 0.08em; }
.compass-done { border-color: var(--green); }
.compass-done b { color: var(--green); }
.compass-tv-face { font-size: 28px; }
.compass-tv-reveal { flex-direction: row; align-items: center; justify-content: center; gap: 48px; text-align: left; }
.compass-tv-globe { flex: 0 0 min(66vh, 46vw); }
.compass-tv-side { display: grid; gap: 14px; min-width: 0; }
.compass-tv-big { font: 800 clamp(64px, 9vw, 132px)/0.95 var(--display); color: var(--amber); }
.compass-tv-sub { font: 600 22px var(--body); color: var(--chalk-2); }
.compass-tv-list { display: grid; gap: 8px; }
.compass-tv-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; font-size: 26px; }
.compass-tv-row b { font: 800 30px var(--display); }
.compass-tv-err { font-size: 18px; color: var(--chalk-2); min-width: 90px; text-align: right; }
.compass-tv-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
@media (max-width: 800px) { .compass-tv-reveal { flex-direction: column; } .compass-tv-globe { flex-basis: auto; width: 100%; } }
.compass-end .lab { color: var(--chalk-2); }

/* Hot & Cold. Prefix hotcold-. Uses tokens from styles.css. */
.hotcold { --hc: transparent; display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 640px; margin: 0 auto; }
.hotcold-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hotcold-map-name { font: 800 15px/1.1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.hotcold-count { font: 700 18px/1 var(--hand); color: var(--chalk-2); margin-right: auto; margin-left: 4px; }
.hotcold-clock { font: 800 20px/1.1 var(--display); color: var(--chalk); text-align: right; }
.hotcold-clock b { font-weight: 800; font-variant-numeric: tabular-nums; }
.hotcold-prompt { text-align: center; }

/* the map: border flashes in the colour of the latest hint */
.hotcold-map { touch-action: none; transition: box-shadow 0.3s; box-shadow: 0 0 0 0 transparent; }
.hotcold-map .map { max-height: 54dvh; }
.hotcold-flash { animation: hotcold-flash 0.9s ease-out; }
@keyframes hotcold-flash {
  0% { box-shadow: 0 0 0 5px var(--hc), 0 0 28px 6px var(--hc); }
  100% { box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent; }
}
.hotcold-off .hotcold-map .map { cursor: not-allowed; opacity: 0.85; }
.hotcold-zooms { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 1001; }
.hotcold-zoom { width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgba(244, 234, 213, 0.92); color: var(--ink); font: 800 24px/1 var(--display); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); cursor: pointer; }
.hotcold-zoom:active { transform: translateY(1px); }
.hotcold-dot circle { vector-effect: non-scaling-stroke; }

/* hint panel: cooldown ring, big word, recent hints */
.hotcold-panel { display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'ring read' 'hist hist'; align-items: center; gap: 10px 16px; padding: 14px 16px; }
.hotcold-ring { grid-area: ring; position: relative; width: 56px; height: 56px; display: grid; place-items: center; }
.hotcold-ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.hotcold-ring-bg { fill: none; stroke: rgba(28, 26, 20, 0.14); stroke-width: 5; }
.hotcold-ring-arc { fill: none; stroke: var(--table); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.hotcold-ring i { width: 14px; height: 14px; border-radius: 50%; background: var(--table); transition: background 0.2s, transform 0.2s; }
.hotcold-cool .hotcold-ring-arc { animation: hotcold-ring var(--cd, 1200ms) linear forwards; }
.hotcold-cool i { background: rgba(28, 26, 20, 0.25); transform: scale(0.7); }
.hotcold-ready i { animation: hotcold-ready 0.4s ease-out; }
@keyframes hotcold-ring { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes hotcold-ready { 0% { transform: scale(1.9); background: var(--amber); } 100% { transform: scale(1); } }
.hotcold-shake { animation: hotcold-shake 0.3s; }
@keyframes hotcold-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.hotcold-read { grid-area: read; min-width: 0; }
.hotcold-word { font: 900 clamp(38px, 11vw, 60px)/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.01em; color: var(--ink); min-height: 1em; transform-origin: left center; }
.hotcold-w-wait { color: var(--ink-2); }
.hotcold-w-burning { color: #d11a12; text-shadow: 0 0 18px rgba(229, 35, 27, 0.35); }
.hotcold-w-hotter { color: #d9531a; }
.hotcold-w-same { color: #a97d0a; }
.hotcold-w-colder { color: #2468b4; }
.hotcold-w-start { color: var(--ink-2); }
.hotcold-w-found { color: #1c8c52; }
.hotcold-pop { animation: hotcold-pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1); }
.hotcold-w-burning.hotcold-pop { animation: hotcold-pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1), hotcold-burn 0.5s ease-in-out 0.5s 3; }
@keyframes hotcold-pop { 0% { transform: scale(0.55) rotate(-3deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes hotcold-burn { 50% { transform: scale(1.07); } }
.hotcold-sub { font: 700 20px/1.1 var(--hand); color: var(--ink-2); margin-top: 4px; }
.hotcold-hist { grid-area: hist; display: flex; gap: 6px; flex-wrap: wrap; min-height: 14px; }
.hotcold-chip { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 250, 240, 0.9); }
.hotcold-status { min-height: 22px; }

/* reveal */
.hotcold-truth { padding: 14px 16px; }
.hotcold-place { font: 900 clamp(30px, 8vw, 46px)/1 var(--display); text-transform: uppercase; color: var(--ink); overflow-wrap: anywhere; }
.hotcold-legend { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font: 700 13px/1 var(--body); color: var(--chalk-2); }
.hotcold-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hotcold-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.hotcold-rows { display: flex; flex-direction: column; gap: 6px; }
.hotcold-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name star' 'km np'; gap: 2px 10px; padding: 10px 14px; border-radius: 12px; background: rgba(244, 234, 213, 0.08); color: var(--chalk); }
.hotcold-row.hotcold-win { background: var(--mat); color: var(--ink); box-shadow: 0 3px 0 #bfae8b; }
.hotcold-pname { grid-area: name; font: 800 20px/1.1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.hotcold-km { grid-area: km; font-size: 14px; font-variant-numeric: tabular-nums; opacity: 0.85; }
.hotcold-np { grid-area: np; font: 700 16px/1 var(--hand); opacity: 0.75; text-align: right; }
.hotcold-star { grid-area: star; font: 900 22px/1 var(--display); color: #1c8c52; text-align: right; }

/* tv */
.hotcold-tv { max-width: 1100px; gap: 18px; text-align: center; }
.hotcold-tv-map { font: 800 clamp(18px, 2vw, 26px)/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.hotcold-tv-title { font: 900 clamp(64px, 9vw, 130px)/0.9 var(--display); text-transform: uppercase; color: var(--chalk); }
.hotcold-tv-ask { font: 700 clamp(26px, 3.2vw, 44px)/1.1 var(--hand); color: var(--chalk-2); }
.hotcold-tv-found { font: 900 clamp(36px, 5vw, 70px)/1 var(--display); text-transform: uppercase; color: #5fe39a; animation: hotcold-pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1); }
.hotcold-tv-rows { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hotcold-tv-p { display: flex; flex-direction: column; gap: 4px; min-width: 160px; padding: 12px 18px; border-radius: 14px; background: rgba(244, 234, 213, 0.1); color: var(--chalk); }
.hotcold-tv-p.hotcold-on { background: var(--mat); color: var(--ink); }
.hotcold-tv-p .hotcold-pname { font-size: clamp(20px, 2.2vw, 30px); }
.hotcold-tv-p .hotcold-np { text-align: center; font-size: clamp(18px, 1.8vw, 24px); }
.hotcold-tv.hotcold-rev { text-align: left; max-width: 1200px; }
.hotcold-tv.hotcold-rev { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: 'top top' 'map truth' 'map rows' 'legend rows'; grid-template-rows: auto auto 1fr auto; gap: 10px 22px; align-items: start; }
.hotcold-tv.hotcold-rev .hotcold-top { grid-area: top; }
.hotcold-tv.hotcold-rev .hotcold-truth { grid-area: truth; }
.hotcold-tv.hotcold-rev .hotcold-map { grid-area: map; }
.hotcold-tv.hotcold-rev .hotcold-legend { grid-area: legend; justify-content: flex-start; }
.hotcold-tv.hotcold-rev .hotcold-rows { grid-area: rows; }
.hotcold-tv.hotcold-rev .hotcold-map .map { max-height: calc(100dvh - 190px); }
.hotcold-tv.hotcold-rev .hotcold-place { font-size: clamp(28px, 3.4vw, 44px); }
.hotcold-tv.hotcold-rev .hotcold-clock { font-size: 26px; }
.hotcold-tv.hotcold-rev .hotcold-pname { font-size: 26px; }
.hotcold-tv.hotcold-rev .hotcold-km { font-size: 18px; }

@media (prefers-reduced-motion: reduce) {
  .hotcold-pop, .hotcold-flash, .hotcold-shake, .hotcold-ready i, .hotcold-w-burning.hotcold-pop { animation: none; }
}

/* Jigsaw: blank map + draggable shape tray, reveal outlines */
.jg-holder { position: relative; border-radius: 14px; overflow: hidden; background: #0a3346; border: 1.5px solid var(--line); }
.jg-svg { display: block; width: 100%; height: auto; max-height: 66dvh; touch-action: none; user-select: none; -webkit-user-select: none; }
.jg-result .jg-svg { max-height: 52dvh; }
.jg-sphere { fill: #0a3346; }
.jg-land { fill: #d9cca9; stroke: none; }
.jg-borders { fill: none; stroke: rgba(28, 26, 20, 0.5); stroke-width: 0.6; vector-effect: non-scaling-stroke; }

.jg-tray-bg { fill: #0c211b; }
.jg-tray-edge { stroke: var(--amber); stroke-width: 2; stroke-dasharray: 8 7; opacity: 0.7; }
.jg-tray-hint { font: 800 15px var(--display); letter-spacing: 0.1em; text-transform: uppercase; fill: rgba(255, 255, 255, 0.35); }

.jg-piece { cursor: grab; }
.jg-piece.jg-drag { cursor: grabbing; filter: drop-shadow(0 6px 5px rgba(0, 0, 0, 0.4)); }
.jg-shape { fill: rgba(242, 169, 0, 0.86); stroke: #241a00; stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.jg-hit { fill: transparent; stroke: transparent; stroke-width: 22; vector-effect: non-scaling-stroke; pointer-events: all; }
.jg-locked .jg-piece { cursor: default; }
.jg-locked .jg-shape { fill: rgba(242, 169, 0, 0.62); }

.jg-true { fill: rgba(242, 169, 0, 0.22); stroke: var(--amber); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.jg-truth-dot { fill: var(--amber); stroke: #241a00; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.jg-drop { --c: 152; fill: hsla(var(--c), 70%, 45%, 0.3); stroke: hsl(var(--c), 70%, 32%); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.jg-drop.jg-you { stroke: var(--red); stroke-width: 3; }
.jg-link { stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 4 4; opacity: 0.7; vector-effect: non-scaling-stroke; }
.jg-face-bg { fill: var(--mat); stroke: var(--ink); stroke-width: 2; }
.jg-face-you { stroke: var(--red); stroke-width: 4; }
.jg-face-t { font-size: 15px; }

.jg-status { min-height: 1.2em; }
.jg-lock { margin-top: 10px; }

.jg-rows { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.jg-row { --c: 152; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--mat); color: var(--ink); font-weight: 600; box-shadow: 0 3px 0 #bfae8b; }
.jg-row.jg-win { background: var(--amber-2); box-shadow: 0 3px 0 #a87500; }
.jg-swatch { flex: 0 0 12px; height: 12px; border-radius: 4px; background: hsl(var(--c), 70%, 42%); }
.jg-av { font-size: 20px; line-height: 1; }
.jg-pname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jg-me { outline: 2px solid var(--red); outline-offset: -2px; }
.jg-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; margin-top: 8px; font: 700 13px/1.2 var(--body); color: var(--chalk-2); }
.jg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.jg-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.jg-key-true { background: rgba(242, 169, 0, 0.22); border: 2px solid var(--amber); }
.jg-key-drop { background: hsla(152, 70%, 45%, 0.3); border: 2px solid hsl(152, 70%, 32%); }
.jg-key-you { background: hsla(152, 70%, 45%, 0.3); border: 2px solid var(--red); }
.jg-off { flex: 0 0 auto; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }
.jg-off b { font: 800 19px var(--display); color: var(--ink); }
.jg-star { font-size: 20px; color: #7a4f00; }

.jg-big .jg-svg { max-height: 56dvh; }
.jg-big .jg-row { font-size: clamp(18px, 2vw, 26px); padding: 12px 18px; }
.jg-big .jg-off b { font-size: clamp(22px, 2.4vw, 32px); }
@media (min-width: 900px) {
  .jg-big { max-width: 1100px; margin: 0 auto; }
  .jg-big .jg-rows { grid-template-columns: 1fr 1fr; }
}

/* Kickoff Clock. Prefixed ko-; uses :root tokens from styles.css */
.ko-play, .ko-reveal { display: flex; flex-direction: column; gap: 16px; }
.ko-event { font: 700 13px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-2); text-align: center; margin-bottom: 8px; }
.ko-city { color: var(--amber); white-space: nowrap; }

.ko-mat { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 14px 18px; }
.ko-zone { font: 700 12px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }

.ko-clock { width: min(78vw, 320px); height: auto; aspect-ratio: 1; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.ko-live { cursor: grab; }
.ko-live.ko-drag-hour, .ko-live.ko-drag-min { cursor: grabbing; }
.ko-rim { fill: var(--table-3); }
.ko-dial { fill: #fbf5e6; stroke: #bfae8b; stroke-width: 2; }
.ko-tick { stroke: rgba(28, 26, 20, 0.35); stroke-width: 1.4; stroke-linecap: round; }
.ko-tick-big { stroke: var(--ink); stroke-width: 3.4; }
.ko-num { font: 800 25px/1 var(--display); fill: var(--ink); }
.ko-hand { stroke-linecap: round; transition: stroke 0.15s; }
.ko-hour { stroke: var(--ink); stroke-width: 11; }
.ko-min { stroke: var(--green-ink); stroke-width: 7; }
.ko-drag-hour .ko-hour { stroke: var(--amber); }
.ko-drag-min .ko-min { stroke: var(--amber); }
.ko-grab { fill: rgba(242, 169, 0, 0.0); stroke: rgba(242, 169, 0, 0.5); stroke-width: 2; stroke-dasharray: 3 4; }
.ko-clock:not(.ko-live) .ko-grab, .ko-off .ko-grab { display: none; }
.ko-hub { fill: var(--amber); stroke: var(--ink); stroke-width: 3; }
.ko-pin { fill: var(--ink); }
.ko-off { opacity: 0.55; }

.ko-big { display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ko-time { font: 800 clamp(52px, 17vw, 76px)/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.ko-ap { font: 800 26px/1 var(--display); color: var(--green-ink); }
.ko-24 { flex-basis: 100%; text-align: center; font: 500 22px/1 var(--hand); color: var(--ink-2); }

.ko-ampm { display: flex; gap: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 2px var(--ink); }
.ko-seg { appearance: none; border: 0; min-width: 88px; min-height: 48px; font: 800 22px/1 var(--display); letter-spacing: 0.06em; background: transparent; color: var(--ink); cursor: pointer; }
.ko-seg.ko-on { background: var(--ink); color: var(--mat); }
.ko-seg:disabled { cursor: default; }
.ko-lock { min-height: 64px; font-size: 28px; border-radius: 16px; }
.ko-lock:disabled { background: var(--table-3); color: var(--chalk-2); box-shadow: none; }

/* Reveal */
.ko-truth { text-align: center; padding: 16px 14px 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ko-truth-clock .ko-clock { width: min(46vw, 190px); }
.ko-truth-n { font: 800 clamp(54px, 18vw, 84px)/1 var(--display); color: var(--ink); }
.ko-truth-n small, .ko-tv-big small { font-size: 0.38em; margin-left: 8px; color: var(--green-ink); }
.ko-truth-sub { font: 500 24px/1 var(--hand); color: var(--ink-2); display: flex; gap: 10px; align-items: center; justify-content: center; }
.ko-daytag { font: 800 13px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: var(--amber); color: var(--ink); }
.ko-truth-from { font-size: 14px; color: var(--ink-2); }
.ko-rows { display: grid; gap: 8px; }
.ko-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(244, 234, 213, 0.1); }
.ko-win { background: var(--amber); color: var(--ink); }
.ko-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ko-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ko-you .ko-name::after { content: ' (you)'; font-weight: 500; opacity: 0.7; }
.ko-num2 { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.ko-num2 b { font: 800 24px/1 var(--display); }
.ko-num2 span { font-size: 13px; color: var(--chalk-2); }
.ko-win .ko-num2 span { color: var(--ink-2); }
.ko-none { opacity: 0.55; }

/* TV */
.ko-tv { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4vw; text-align: center; min-height: 0; }
.ko-tv-ask { font: 800 7vw/1 var(--display); text-transform: uppercase; color: var(--amber); }
.ko-tv-date { font: 500 3vw/1 var(--hand); color: var(--chalk-2); }
.ko-tv-ask2 { font: 700 3.4vw/1.1 var(--display); color: var(--chalk); }
.ko-tv-clock .ko-clock { width: 22vw; max-height: 36vh; width: min(22vw, 36vh); }
.ko-tv-top { display: flex; align-items: center; gap: 4vw; }
.ko-tv-big { font: 800 13vw/1 var(--display); color: var(--chalk); display: flex; flex-direction: column; align-items: center; gap: 1vw; }
.ko-tv-big small { color: var(--amber); }
.ko-tv-big .ko-daytag { font-size: max(14px, 1.6vw); }
.ko-tv-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2vw; }
.ko-tv-chip { display: flex; align-items: center; gap: 0.8vw; padding: 0.6vw 1.4vw; border-radius: 99px; background: rgba(244, 234, 213, 0.1); font-size: max(14px, 2vw); }
.ko-tv-chip b { color: var(--chalk-2); font-weight: 600; }
.ko-tv-chip.ko-done { background: rgba(79, 201, 138, 0.25); }
.ko-tv-chip.ko-done b { color: var(--green); }
.ko-tv-face { font-size: 1.2em; }
.ko-tv-list { display: grid; gap: 0.6vw; min-width: 50vw; }
.ko-tv-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 1.4vw; align-items: baseline; font-size: max(16px, 2.4vw); padding: 0.4vw 1.6vw; border-radius: 1vw; background: rgba(244, 234, 213, 0.08); text-align: left; }
.ko-tv-row b { font-family: var(--display); font-size: 1.2em; }
.ko-tv-err { color: var(--chalk-2); min-width: 6em; text-align: right; }
.ko-tv-row.ko-win { background: var(--amber); color: var(--ink); }
.ko-tv-row.ko-win .ko-tv-err { color: var(--ink-2); }

/* Lights Out. Prefixed lt-; uses :root tokens from styles.css */
.lt-play, .lt-reveal { display: flex; flex-direction: column; gap: 14px; }
.lt-gantry { display: flex; justify-content: center; padding: 2px 0; }
.lt-bar { display: flex; gap: clamp(5px, 1.8vw, 14px); padding: 14px clamp(8px, 2.5vw, 20px); border-radius: 16px; background: linear-gradient(#26262a, #131316); box-shadow: 0 0 0 3px #08080a, 0 8px 0 #050506, 0 18px 30px rgba(0, 0, 0, 0.5); max-width: 100%; }
.lt-col { display: flex; flex-direction: column; gap: clamp(8px, 2.4vw, 14px); padding: clamp(5px, 1.6vw, 10px); border-radius: 12px; background: #0a0a0c; box-shadow: inset 0 2px 6px #000; }
.lt-lamp { position: relative; width: clamp(36px, 11.5vw, 64px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #3a1512, #1a0807 70%); box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.8), 0 0 0 3px #1c1c20; }
.lt-glow { position: absolute; inset: 0; border-radius: 50%; opacity: 0; background: radial-gradient(circle at 42% 34%, #ffb3a3 0%, #ff4a2c 28%, #e0200c 62%, #8f0f04 100%); box-shadow: 0 0 18px 4px rgba(255, 64, 32, 0.75), 0 0 46px 10px rgba(255, 64, 32, 0.4); }
.lt-glow.lt-on { opacity: 1; }
.lt-big .lt-lamp { width: clamp(70px, 9vw, 150px); }
.lt-big .lt-bar { padding: 28px 36px; gap: 26px; }
.lt-big .lt-col { gap: 22px; padding: 14px; }
.lt-tv .lt-glow { animation-name: lt-glow-on, lt-glow-off; animation-duration: 1ms, 1ms; animation-timing-function: steps(1, end); animation-fill-mode: both, forwards; }
@keyframes lt-glow-on { from { opacity: 0; } to { opacity: 1; } }
@keyframes lt-glow-off { from { opacity: 1; } to { opacity: 0; } }

.lt-call { text-align: center; font: 900 clamp(36px, 12vw, 64px)/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--amber-2); min-height: 1em; }
.lt-pad { display: block; width: 100%; min-height: 42vh; border-radius: 22px; border: 0; font: 900 clamp(34px, 11vw, 60px)/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; transition: background 0.08s; }
.lt-pad-wait { background: var(--table-3); color: var(--chalk-2); box-shadow: inset 0 0 0 3px var(--line); }
.lt-pad-out { background: var(--green); color: #07281a; box-shadow: 0 6px 0 var(--green-ink), 0 0 40px rgba(79, 201, 138, 0.5); }
.lt-pad-done { background: var(--table-3); color: var(--chalk-2); box-shadow: none; }
.lt-pad-jump { background: var(--red); color: #fff; box-shadow: 0 6px 0 #8f2a18; }
.lt-pad:disabled { opacity: 0.85; }

.lt-top { text-align: center; padding: 16px; }
.lt-hold { font: 800 clamp(44px, 14vw, 76px)/1 var(--display); color: var(--ink); }
.lt-fast { font: 700 16px var(--body); color: var(--ink-2); margin-top: 6px; }
.lt-board { display: grid; gap: 8px; }
.lt-row { display: grid; grid-template-columns: 26px 28px 1fr auto 56px; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(244, 234, 213, 0.08); color: var(--chalk); }
.lt-pos { font: 800 18px var(--display); color: var(--chalk-2); text-align: center; }
.lt-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-time { font: 800 22px var(--display); letter-spacing: 0.02em; }
.lt-gap { font: 700 14px var(--body); color: var(--chalk-2); text-align: right; }
.lt-win { background: rgba(242, 169, 0, 0.18); box-shadow: inset 0 0 0 2px var(--amber); }
.lt-win .lt-name, .lt-win .lt-time { color: var(--amber-2); }
.lt-jump .lt-time { color: var(--red); font-size: 16px; letter-spacing: 0.08em; }
.lt-none { opacity: 0.55; }
.lt-none .lt-time { font-size: 15px; font-weight: 600; }
.lt-you { outline: 2px solid var(--chalk-2); outline-offset: -2px; }

.lt-tv { display: flex; flex-direction: column; align-items: center; gap: 4vh; }
.lt-tv-board { width: min(900px, 90vw); }
.lt-tv-board .lt-row { padding: 16px 22px; grid-template-columns: 44px 52px 1fr auto 90px; }
.lt-tv-board .lt-name, .lt-tv-board .lt-pos { font-size: 30px; }
.lt-tv-board .lt-time { font-size: 40px; }
.lt-tv-board .lt-gap { font-size: 24px; }
.lt-tv-chips { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.lt-tv-chip { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: rgba(244, 234, 213, 0.1); color: var(--chalk-2); font: 700 22px var(--body); }
.lt-tv-chip b { font: 800 18px var(--display); text-transform: uppercase; letter-spacing: 0.06em; }
.lt-tv-chip.lt-done { background: rgba(79, 201, 138, 0.2); color: var(--green); }
.lt-tv-face { font-size: 28px; }
@media (min-width: 900px) { .lt-pad { min-height: 34vh; } }

/* Name Chain. Uses :root tokens from styles.css. Phone first. */
.nc { display: flex; flex-direction: column; gap: 12px; }
.nc .lab { margin-bottom: 0; }
.nc-prompt { margin: 0; font: 800 26px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.nc-top { display: flex; gap: 12px; align-items: stretch; }
.nc-letterwrap { flex: 1; min-width: 0; }
.nc-letter { background: var(--table); color: var(--chalk); border-radius: 14px; padding: 10px 14px 6px; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.nc-lab { font: 800 13px/1 var(--display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--chalk-2); }
.nc-letter b { font: 900 72px/0.95 var(--display); color: var(--amber-2); text-transform: uppercase; }
.nc-clock { flex: 0 0 96px; background: var(--ink); color: var(--chalk); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.nc-clock span { font: 800 12px/1 var(--display); text-transform: uppercase; letter-spacing: 0.12em; color: var(--chalk-2); }
.nc-secs { font: 900 58px/1 var(--display); font-variant-numeric: tabular-nums; }
.nc-urgent { color: var(--red); animation: nc-pulse 0.5s ease-in-out infinite alternate; }
@keyframes nc-pulse { from { transform: scale(1); } to { transform: scale(1.12); } }
.nc-status { font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); }
.nc-status.mine { color: var(--green-ink); }
.nc-status.out { color: var(--red); }
.nc-mine { box-shadow: 0 0 0 3px var(--amber), 0 14px 30px rgba(0, 0, 0, 0.35); }
.nc-form { display: flex; flex-direction: column; gap: 10px; }
.nc-form[hidden], .nc-clock[hidden] { display: none; }
.nc-input { font-size: 22px; min-height: 56px; }
.nc-chainwrap { max-height: 190px; overflow-y: auto; }
.nc-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nc-chip { display: inline-flex; flex-direction: column; background: var(--mat-2); border-radius: 9px; padding: 4px 10px 5px; line-height: 1.1; }
.nc-chip b { font: 800 18px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.nc-who { font: 600 12px/1 var(--hand); color: var(--ink-2); font-size: 15px; }
.nc-chip.now { background: var(--amber); color: #241a00; }
.nc-empty { font: 600 22px/1.1 var(--hand); color: var(--ink-2); }
.nc-seats { display: flex; flex-wrap: wrap; gap: 6px; }
.nc-seat { font: 800 14px/1 var(--display); text-transform: uppercase; letter-spacing: 0.05em; padding: 7px 10px; border-radius: 99px; background: rgba(28, 26, 20, 0.08); color: var(--ink); }
.nc-seat.on { background: var(--table); color: var(--amber-2); }
.nc-seat.out { opacity: 0.5; text-decoration: line-through; }
.nc-out .nc-letter b { color: var(--chalk-2); }

/* reveal */
.nc-win { font: 900 34px/1 var(--display); text-transform: uppercase; color: var(--green-ink); }
.nc-sub { margin-top: 6px; }
.nc-outs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nc-out-head b { font: 800 18px/1 var(--display); text-transform: uppercase; }
.nc-out-head i { font-style: normal; font-weight: 700; }
.nc-L { display: inline-block; font: 900 20px/1 var(--display); background: var(--table); color: var(--amber-2); border-radius: 6px; padding: 2px 8px; }
.nc-sugg { font: 600 21px/1.2 var(--hand); color: var(--ink-2); margin-top: 3px; }
.nc-sg { display: inline-block; margin: 2px 6px 0 0; padding: 0 8px; border-radius: 7px; background: var(--mat-2); color: var(--ink); font: 700 16px/1.5 var(--body); }

/* tv */
.nc-tv { display: flex; flex-direction: column; gap: 1.6vw; flex: 1; min-height: 0; }
.nc-tv-prompt { margin: 0; font: 800 3.4vw/1 var(--display); text-transform: uppercase; color: var(--chalk); letter-spacing: 0.02em; }
.nc-tv-main { display: flex; gap: 1.6vw; align-items: stretch; }
.nc-tv-turn { flex: 1; padding: 1.6vw 2vw; display: flex; flex-direction: column; gap: 0.6vw; min-width: 0; }
.nc-tv-name { font: 900 6vw/1 var(--display); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-tv-letter { flex: 0 0 22vw; background: var(--table-3); border-radius: 1.2vw; padding: 1.2vw 1.6vw; display: flex; flex-direction: column; justify-content: center; }
.nc-tv-lab { font: 800 1.3vw/1 var(--display); text-transform: uppercase; letter-spacing: 0.12em; color: var(--chalk-2); }
.nc-tv-letter b { font: 900 12vw/0.9 var(--display); color: var(--amber-2); text-transform: uppercase; }
.nc-tv-clock { flex: 0 0 18vw; background: var(--ink); border-radius: 1.2vw; display: flex; align-items: center; justify-content: center; }
.nc-tv-secs { font: 900 13vw/1 var(--display); font-variant-numeric: tabular-nums; color: var(--chalk); }
.nc-tv-secs.nc-urgent { color: var(--red); }
.nc-tv-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0.7vw; overflow-y: auto; flex: 1; min-height: 0; }
.nc-tv-chip { background: var(--mat); color: var(--ink); border-radius: 0.8vw; padding: 0.4vw 1vw; display: flex; flex-direction: column; line-height: 1.05; }
.nc-tv-chip b { font: 800 2.2vw/1.05 var(--display); text-transform: uppercase; }
.nc-tv-who { font: 600 1.5vw/1 var(--hand); color: var(--ink-2); }
.nc-tv-chip.now { background: var(--amber); }
.nc-tv-empty { font: 600 2.6vw/1 var(--hand); color: var(--chalk-2); }
.nc-tv-seats { display: flex; flex-wrap: wrap; gap: 0.5vw; }
.nc-tv-seat { font: 800 1.4vw/1 var(--display); text-transform: uppercase; letter-spacing: 0.05em; padding: 0.5vw 0.9vw; border-radius: 99px; background: rgba(28, 26, 20, 0.1); }
.nc-tv-seat.on { background: var(--table); color: var(--amber-2); }
.nc-tv-seat.out { opacity: 0.45; text-decoration: line-through; }
.nc-tv-rev { padding: 2vw 2.6vw; display: flex; flex-direction: column; gap: 1vw; overflow: hidden; }
.nc-tv-rev .nc-prompt { font-size: 2.6vw; }
.nc-tv-rev .nc-win { font-size: 4.4vw; }
.nc-tv-rev .nc-chip b { font-size: 1.8vw; }
.nc-tv-rev .nc-who { font-size: 1.3vw; }
.nc-tv-rev .nc-out-head { font-size: 1.7vw; }
.nc-tv-rev .nc-out-head b { font-size: 1.9vw; }
.nc-tv-rev .nc-sugg { font-size: 2vw; }
.nc-tv-rev .nc-sg { font-size: 1.5vw; }
.nc-tv-rev .nc-lab, .nc-tv-rev .lab { font-size: 1.3vw; }

@media (min-width: 900px) { .nc .nc-chainwrap { max-height: 260px; } }
@media (prefers-reduced-motion: reduce) { .nc-urgent { animation: none; } }

/* North Up. Prefix nu-. Uses tokens from styles.css. */
.nu { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 520px; margin: 0 auto; }
.nu-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.nu-name { font: 800 18px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.nu-clock { font: 800 20px/1 var(--display); color: var(--chalk); }
.nu-spun { font: 700 14px/1 var(--body); color: var(--chalk-2); }
.nu-card { padding: 14px 14px 12px; text-align: center; }
.nu-svg { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.nu-svg.nu-drag { cursor: grabbing; }
.nu-svg.nu-locked { cursor: default; }
.nu-ring { fill: rgba(28, 26, 20, 0.04); stroke: rgba(28, 26, 20, 0.28); stroke-width: 1.2; stroke-dasharray: 3 3; }
.nu-tick { stroke: rgba(28, 26, 20, 0.35); stroke-width: 0.9; }
.nu-tick-major { stroke: var(--ink-2); stroke-width: 1.6; }
.nu-shape { fill: var(--table-3); stroke: var(--table); stroke-width: 1.2; stroke-linejoin: round; }
.nu-locked .nu-shape { fill: var(--table-2); }
.nu-arrow { fill: var(--amber); stroke: #a87500; stroke-width: 1; stroke-linejoin: round; }
.nu-true { fill: rgba(27, 68, 58, 0.55); stroke: var(--table); stroke-width: 1.4; stroke-linejoin: round; }
.nu-try { fill: none; stroke-width: 1.1; opacity: 0.55; stroke-linejoin: round; }
.nu-try-win { opacity: 0.95; stroke-width: 1.8; }
.nu-read { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 6px; }
.nu-read .lab { margin: 0; }
.nu-read b { font: 800 26px/1 var(--display); color: var(--ink); min-width: 56px; text-align: left; }
.nu-nudge { display: flex; gap: 10px; }
.nu-step { flex: 1; min-height: 44px; font-size: 18px; color: var(--chalk); border-color: rgba(244, 234, 213, 0.55); background: rgba(244, 234, 213, 0.1); }
.nu-plus { font: 800 18px/1 var(--display); font-style: normal; margin-left: 8px; color: #241a00; }
.nu-lock { min-height: 52px; }
.nu-status { text-align: center; color: var(--chalk-2); font-size: 14px; min-height: 18px; }
.nu-legend { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 8px; font: 600 13px/1 var(--body); color: var(--ink-2); }
.nu-key-true, .nu-key-try { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.nu-key-true { background: rgba(27, 68, 58, 0.7); }
.nu-key-try { border: 2px solid transparent; background: linear-gradient(var(--mat, #f4ead5), var(--mat, #f4ead5)) padding-box, conic-gradient(#c0392b, #2471a3, #8e44ad, #d68910, #148f77, #c0392b) border-box; margin-left: 10px; }
.nu-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.nu-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 12px; background: rgba(244, 234, 213, 0.07); color: var(--chalk); }
.nu-row b { font: 800 20px/1 var(--display); margin-left: auto; white-space: nowrap; }
.nu-win { background: var(--amber); color: #241a00; }
.nu-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; background: var(--line); }
.nu-pname { font-weight: 700; overflow-wrap: anywhere; }

.nu-tv { max-width: 1100px; gap: 14px; }
.nu-tv-name { font: 900 clamp(36px, min(5vw, 8dvh), 72px)/1 var(--display); text-transform: uppercase; color: var(--amber-2); }
.nu-tv-name small { display: block; margin-top: 8px; font: 600 clamp(18px, 2vw, 26px)/1.2 var(--body); color: var(--chalk-2); text-transform: none; }
.nu-tv-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.nu-tv .nu-card { max-width: 640px; }
.nu-tv .nu-svg { max-width: 560px; max-height: calc(100dvh - 330px); cursor: default; }
.nu-tv .nu-card { margin: 0 auto; width: 100%; }
.nu-tv-in { font: 800 clamp(24px, 3vw, 40px)/1 var(--display); color: var(--chalk); text-align: center; }
.nu-tv .nu-row { font-size: clamp(20px, 2.2vw, 30px); min-height: 56px; }
.nu-tv .nu-row b { font-size: clamp(24px, 2.6vw, 36px); }
@media (max-width: 760px) { .nu-tv-cols { grid-template-columns: 1fr; } }

/* Number Line. Prefix numline-. Uses tokens from styles.css. */
.numline { --nl0: var(--amber); --nl1: #3f8fd6; --nl2: #c2456f; display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 620px; margin: 0 auto; }
.numline-c0 { --nl: var(--nl0); --nl-ink: #241a00; }
.numline-c1 { --nl: var(--nl1); --nl-ink: #fff; }
.numline-c2 { --nl: var(--nl2); --nl-ink: #fff; }
.numline-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.numline-unit { font: 800 15px/1.1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.numline-clock { font: 800 20px/1 var(--display); color: var(--chalk); }
.numline-prompt { text-align: center; }
.numline-card { padding: 14px 4px 6px; overflow: visible; }
.numline-card > .lab { padding: 0 14px; }

/* axis */
.numline-axis { position: relative; width: 100%; user-select: none; -webkit-user-select: none; }
.numline-line { position: absolute; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--ink); }
.numline-tick { position: absolute; width: 2px; height: 9px; margin-left: -1px; background: var(--ink); opacity: 0.7; }
.numline-tick-end { height: 17px; opacity: 1; width: 3px; margin-left: -1.5px; }
.numline-tl { position: absolute; transform: translateX(-50%); font: 700 13px/1 var(--body); color: var(--ink-2); white-space: nowrap; }
.numline-tl-end { font: 800 17px/1 var(--display); color: var(--ink); letter-spacing: 0.02em; }
.numline-tl-min { transform: translateX(-50%); }
.numline-stem { position: absolute; width: 2px; margin-left: -1px; background: var(--nl); opacity: 0.85; }
.numline-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--nl); box-shadow: 0 0 0 3px var(--mat); }
.numline-badge {
  position: absolute; margin-left: -34px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 6px 0 3px; box-sizing: border-box;
  background: var(--nl); color: var(--nl-ink); border-radius: 15px; font: 800 15px/1 var(--display); letter-spacing: 0.02em;
  box-shadow: 0 2px 0 rgba(28, 26, 20, 0.35); outline-offset: 3px; white-space: nowrap;
}
.numline-badge .numline-bl { width: 20px; height: 20px; line-height: 20px; border-radius: 50%; text-align: center; background: rgba(255, 255, 255, 0.28); font-size: 13px; flex: 0 0 20px; }
.numline-badge-live { cursor: grab; touch-action: none; z-index: 2; }
.numline-badge-live:focus-visible { outline: 3px solid var(--ink); }
.numline-dragging { transform: scale(1.12); box-shadow: 0 6px 0 rgba(28, 26, 20, 0.3); z-index: 5; cursor: grabbing; }
.numline-tip {
  position: absolute; bottom: calc(100% + 8px); max-width: 230px; padding: 5px 9px; border-radius: 8px; background: var(--ink); color: var(--mat);
  font: 600 13px/1.2 var(--body); font-style: normal; white-space: normal; width: max-content; pointer-events: none;
}

/* tray */
.numline-traywrap { display: flex; flex-direction: column; gap: 6px; }
.numline-lab { color: var(--chalk-2); margin: 0; }
.numline-tray { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: var(--table-2); box-shadow: inset 0 0 0 2px var(--line); }
.numline-chip {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px 6px 7px; border-radius: 26px; background: var(--mat); color: var(--ink);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transition: opacity 0.12s;
}
.numline-cl { flex: 0 0 32px; height: 32px; line-height: 32px; border-radius: 50%; text-align: center; background: var(--nl); color: var(--nl-ink); font: 800 17px/32px var(--display); }
.numline-ct { flex: 1; min-width: 0; font: 700 16px/1.15 var(--body); }
.numline-cv { flex: 0 0 auto; font: 800 18px/1 var(--display); color: var(--ink-2); }
.numline-placed { opacity: 0.62; box-shadow: none; }
.numline-held { opacity: 0.35; }
.numline-locked .numline-chip, .numline-locked .numline-badge-live { cursor: default; }
.numline-hint { text-align: center; font: 700 18px/1.2 var(--hand); color: var(--chalk-2); }
.numline-lock:disabled { opacity: 0.55; box-shadow: none; }
.numline-ghost {
  position: fixed; z-index: 1000; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; max-width: 80vw; pointer-events: none;
  padding: 5px 12px 5px 5px; border-radius: 24px; background: var(--mat); color: var(--ink); font: 700 15px/1.15 var(--body);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

/* reveal */
.numline-rev .numline-card { padding-bottom: 12px; }
.numline-legend { display: flex; flex-direction: column; gap: 6px; padding: 4px 14px 4px; margin-top: 4px; }
.numline-lrow { display: flex; align-items: center; gap: 10px; }
.numline-lrow .numline-cl { flex: 0 0 26px; height: 26px; font: 800 14px/26px var(--display); }
.numline-ll { flex: 1; font: 600 15px/1.2 var(--body); color: var(--ink); }
.numline-lv { font: 800 20px/1 var(--display); color: var(--ink); }
.numline-rows { display: flex; flex-direction: column; gap: 10px; }
.numline-row { padding: 10px 14px 10px; border-radius: 14px; background: var(--table-2); box-shadow: inset 0 0 0 2px var(--line); color: var(--chalk); }
.numline-win { box-shadow: inset 0 0 0 2px var(--amber); background: var(--table-3); }
.numline-rhead { display: flex; align-items: baseline; gap: 10px; }
.numline-pname { font: 800 20px/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.numline-off { flex: 1; font: 700 14px/1 var(--body); color: var(--chalk-2); }
.numline-star { font: 800 20px/1 var(--display); color: var(--amber); }
.numline-mini { position: relative; height: 44px; margin: 0 14px; }
.numline-mini-line { position: absolute; left: 0; right: 0; top: 22px; height: 3px; margin-top: -1px; border-radius: 2px; background: var(--chalk-2); opacity: 0.55; }
.numline-mini-truth { position: absolute; top: 12px; width: 4px; height: 20px; margin-left: -2px; border-radius: 2px; background: var(--nl); box-shadow: 0 0 0 2px var(--table-2); }
.numline-mini-link { position: absolute; top: 21px; height: 4px; background: var(--nl); opacity: 0.7; }
.numline-mini-dot { position: absolute; top: 9px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: var(--nl); color: var(--nl-ink); font: 800 14px/26px var(--display); text-align: center; box-shadow: 0 0 0 3px var(--table-2); }
.numline-misses { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font: 600 13px/1 var(--body); color: var(--chalk-2); }
.numline-misses span { display: inline-flex; align-items: center; gap: 6px; }
.numline-misses .numline-cl { flex: 0 0 20px; height: 20px; font: 800 12px/20px var(--display); }

/* tv */
.numline-tv { display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: 1180px; margin: 0 auto; --nl0: var(--amber); --nl1: #3f8fd6; --nl2: #c2456f; }
.numline-tv-prompt { font: 800 clamp(34px, 4.4vw, 62px)/1.05 var(--display); color: var(--chalk); text-align: center; text-wrap: balance; }
.numline-tv-card { padding: 28px 16px 18px; }
.numline-tv .numline-tl { font-size: 18px; }
.numline-tv .numline-tl-end { font-size: 24px; }
.numline-tv .numline-badge { font-size: 22px; border-radius: 22px; }
.numline-tv .numline-badge .numline-bl { width: 28px; height: 28px; line-height: 28px; flex-basis: 28px; font-size: 17px; }
.numline-tv .numline-ll { font-size: 24px; }
.numline-tv .numline-lv { font-size: 32px; }
.numline-tv .numline-lrow .numline-cl { flex-basis: 36px; height: 36px; line-height: 36px; font-size: 20px; }
.numline-tv .numline-legend { gap: 10px; padding-top: 14px; }
.numline-tv-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.numline-tv-prog { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.numline-tv-p { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: var(--table-2); color: var(--chalk-2); }
.numline-tv-p .numline-pname { color: var(--chalk); }
.numline-tick-s { font: 700 16px/1 var(--hand); }
.numline-on { background: var(--table-3); box-shadow: inset 0 0 0 2px var(--green); }
.numline-on .numline-tick-s { color: var(--green); }
.numline-tv .numline-row { font-size: 1.1em; }

/* Outline: silhouette card + 2x2 options */
.ol-card { padding: 10px; margin: 6px 0 12px; display: grid; place-items: center; }
.ol-svg { width: 100%; height: auto; max-height: 40dvh; display: block; }
.ol-shape { fill: #2a2418; stroke: #2a2418; stroke-width: 1; stroke-linejoin: round; }
.ol-track-bed { fill: none; stroke: rgba(28, 26, 20, 0.16); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.ol-track { fill: none; stroke: #2a2418; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.ol-fail { min-height: 120px; }
.ol-opts { grid-template-columns: 1fr 1fr; }
.ol-opt { min-height: 64px; font-size: 17px; }
.ol-opt .opt-text { overflow-wrap: anywhere; }
.ol-name { font: 800 clamp(26px, 6vw, 40px)/1 var(--display); text-align: center; color: var(--chalk); margin: 0 0 12px; letter-spacing: 0.02em; }
.ol-faces { display: flex; flex-wrap: wrap; gap: 4px; flex-basis: 100%; }
.ol-face { display: inline-flex; align-items: center; gap: 4px; font: 600 13px/1 var(--body); background: rgba(28, 26, 20, 0.12); padding: 3px 7px 3px 4px; border-radius: 99px; }
.ol-face b { font-size: 15px; }
.ol-face i { font-style: normal; }
.ol-opt.opt-result { flex-wrap: wrap; }
.ol-big .ol-svg { max-height: 46dvh; }
.ol-big .ol-opt { font-size: clamp(20px, 2.4vw, 30px); min-height: 84px; }
@media (min-width: 900px) {
  .ol-big { max-width: 1100px; margin: 0 auto; }
  .ol-big .ol-opts { grid-template-columns: repeat(4, 1fr); }
}

/* Scatter. Prefix sc-. Uses tokens from styles.css. */
.sc { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 560px; margin: 0 auto; }
.sc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sc-kicker { font: 800 15px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.sc-clock { font: 800 20px/1 var(--display); color: var(--chalk); }
.sc-season { font: 600 20px/1 var(--hand); color: var(--chalk-2); }
.sc-card { text-align: center; padding: 14px 14px 14px; }
.sc-target { font: 900 clamp(34px, 10vw, 54px)/0.95 var(--display); text-transform: uppercase; color: var(--ink); text-wrap: balance; }
.sc-sub { margin-top: 6px; font: 600 22px/1 var(--hand); color: var(--ink-2); }
.sc-mat { padding: 8px; }
.sc-svg { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.sc-svg.sc-off { cursor: default; }
.sc-plot { fill: #fffaf0; stroke: rgba(28, 26, 20, 0.35); stroke-width: 1.2; }
.sc-grid { stroke: rgba(28, 26, 20, 0.12); stroke-width: 1; stroke-dasharray: 3 3; }
.sc-tick { font: 600 9.5px var(--body); fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.sc-axis { font: 800 11px var(--display); letter-spacing: 0.09em; text-transform: uppercase; fill: var(--ink); }
.sc-dot { fill: var(--ink); fill-opacity: 0.78; stroke: #fffaf0; stroke-width: 1.2; }
.sc-dot-t { fill: var(--amber); fill-opacity: 1; stroke: var(--ink); stroke-width: 1.6; }
.sc-halo { fill: rgba(242, 169, 0, 0.28); stroke: var(--amber); stroke-width: 1.5; }
.sc-name { font: 700 9.5px var(--body); fill: var(--ink); paint-order: stroke; stroke: #fffaf0; stroke-width: 2.6px; stroke-linejoin: round; pointer-events: none; }
.sc-name-t { font: 900 11.5px var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.sc-pin line { stroke: var(--table); stroke-width: 2.2; stroke-linecap: round; }
.sc-pin-ring { fill: rgba(242, 169, 0, 0.22); stroke: var(--table); stroke-width: 2; }
.sc-pin-dot { fill: var(--table); }
.sc-pin-live .sc-pin-ring { fill: rgba(242, 169, 0, 0.35); }
.sc-pin-locked .sc-pin-ring { fill: var(--table); }
.sc-pin-locked line { stroke: var(--table); }
.sc-pin-locked .sc-pin-dot { fill: var(--amber-2); }
.sc-note { text-align: center; color: var(--chalk-2); font-size: 14px; min-height: 18px; }
.sc-lock { min-height: 56px; }
.sc-lock:disabled { opacity: 0.5; }

.sc-link { stroke: var(--c); stroke-width: 1.4; stroke-dasharray: 3 3; opacity: 0.7; }
.sc-tap-c { fill: var(--c); stroke: #fffaf0; stroke-width: 1.6; }
.sc-tap-win .sc-tap-c { stroke: var(--amber); stroke-width: 2.4; }
.sc-tap-i { font: 800 9px var(--display); fill: #fff; pointer-events: none; }
.sc-cap { text-align: center; color: var(--chalk-2); font-size: 13px; }
.sc-res { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sc-res li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: rgba(244, 234, 213, 0.07); border: 1.5px solid var(--line); }
.sc-res li.sc-win { border-color: var(--amber); background: rgba(242, 169, 0, 0.1); }
.sc-res li.sc-none { opacity: 0.55; }
.sc-badge { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 16px/1 var(--display); font-style: normal; background: var(--c, #5d5642); color: #fff; }
.sc-pn { font: 800 20px/1 var(--display); text-transform: uppercase; color: var(--chalk); flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-near { flex: 1; min-width: 0; font-size: 12.5px; color: var(--chalk-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-off-n { font: 700 20px/1 var(--hand); color: var(--chalk); white-space: nowrap; margin-left: auto; }
.sc-near + .sc-off-n { margin-left: 0; }
.sc-plus { font: 800 20px/1 var(--display); font-style: normal; color: var(--amber-2); }

/* TV */
.sc-tv { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 1180px; margin: 0 auto; }
.sc-tv-head { display: flex; align-items: baseline; gap: 18px; }
.sc-tv-head small { font: 800 28px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.sc-tv-it { font: 900 clamp(40px, min(7vw, 11dvh), 92px)/0.95 var(--display); text-transform: uppercase; color: var(--chalk); }
.sc-tv-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
.sc-tv .sc-res li { padding: 12px 16px; }
.sc-tv .sc-pn { font-size: 30px; }
.sc-tv .sc-off-n { font-size: 28px; }
.sc-tv-prog { display: flex; flex-direction: column; gap: 10px; }
.sc-tv-p { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1.5px dashed var(--line); color: var(--chalk-2); }
.sc-tv-p b { font: 700 26px/1 var(--hand); }
.sc-tv-p.sc-in { border: 1.5px solid var(--green); background: rgba(79, 201, 138, 0.14); color: var(--green); }
.sc-tv .sc-mat { display: flex; justify-content: center; }
.sc-tv .sc-svg { width: auto; max-width: 100%; max-height: calc(100dvh - 260px); }
.sc-tv .sc-res { gap: 6px; }
.sc-tv .sc-res li { padding: 8px 14px; }
.sc-tv .sc-near { font-size: 14px; white-space: normal; }
@media (max-width: 760px) { .sc-tv-cols { grid-template-columns: 1fr; } }

/* Slice. Prefixed slice-; uses :root tokens from styles.css */
.slice-play, .slice-reveal { display: flex; flex-direction: column; gap: 16px; }
.slice-asof { text-align: center; color: var(--chalk-2); font-size: 14px; margin-top: 4px; }
.slice-mat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 12px 16px; }
.slice-svg { width: min(100%, 340px); height: auto; display: block; user-select: none; -webkit-user-select: none; cursor: grab; }
.slice-locked { cursor: default; }
.slice-rim { fill: #d9c9a3; }
.slice-disc { fill: #fbf5e4; stroke: rgba(28, 26, 20, 0.35); stroke-width: 2; }
.slice-tick { stroke: rgba(28, 26, 20, 0.4); stroke-width: 2; }
.slice-wedge { fill: var(--amber); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.slice-true { fill: var(--amber); }
.slice-edge { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.slice-edge-true { stroke-width: 3; }
.slice-knob { fill: var(--ink); stroke: #fbf5e4; stroke-width: 4; cursor: grab; outline: none; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.35)); }
.slice-knob:focus-visible { stroke: var(--amber-2); }
.slice-locked .slice-knob { fill: #6b6556; cursor: default; }
.slice-locked .slice-wedge { fill: #c9a24a; }
.slice-read { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.slice-num { font: 800 clamp(56px, 20vw, 88px)/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.slice-hint { font: 600 22px/1.1 var(--hand); color: var(--ink-2); margin-top: 2px; }
.slice-lock { min-height: 64px; font-size: 28px; border-radius: 16px; }

.slice-truth { text-align: center; padding: 16px; }
.slice-truth-n { font: 800 clamp(48px, 16vw, 84px)/1 var(--display); color: var(--ink); }
.slice-truth .slice-asof { color: var(--ink-2); }
.slice-pie-wrap { display: flex; justify-content: center; }
.slice-pie-wrap .slice-svg { cursor: default; }
.slice-gtick { stroke: var(--chalk-2); stroke-width: 3; stroke-linecap: round; }
.slice-gdot { fill: #7d8f84; stroke: #fbf5e4; stroke-width: 2; }
.slice-gtick.slice-gyou, .slice-gdot.slice-gyou { stroke: #2f7de0; }
.slice-gdot.slice-gyou { fill: #2f7de0; stroke: #fbf5e4; }
.slice-gtick.slice-gwin { stroke: var(--green); }
.slice-gdot.slice-gwin { fill: var(--green); stroke: #fbf5e4; }
.slice-truedot { fill: var(--ink); stroke: #fbf5e4; stroke-width: 3; }
.slice-list { display: grid; gap: 8px; }
.slice-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(244, 234, 213, 0.08); font-variant-numeric: tabular-nums; }
.slice-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slice-guess { font: 800 22px/1 var(--display); }
.slice-off { color: var(--chalk-2); font-size: 14px; min-width: 4.6em; text-align: right; }
.slice-win { background: var(--amber); color: var(--ink); }
.slice-win .slice-off { color: var(--ink-2); }
.slice-you .slice-name::after { content: ' (you)'; font-weight: 500; opacity: 0.7; }
.slice-none { opacity: 0.55; }

/* TV */
.slice-tv { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4vw; min-height: 0; padding: 0 3vw; }
.slice-tv-pie { flex: 0 0 38vw; }
.slice-tv-pie .slice-svg { width: 100%; max-width: 62vh; cursor: default; }
.slice-tv-side { display: flex; flex-direction: column; gap: 1.6vw; min-width: 0; flex: 1; }
.slice-tv-big { font: 800 12vw/1 var(--display); color: var(--chalk); }
.slice-tv-chips { display: flex; flex-wrap: wrap; gap: 1.2vw; }
.slice-tv-chip { display: flex; align-items: center; gap: 0.8vw; padding: 0.6vw 1.4vw; border-radius: 99px; background: rgba(244, 234, 213, 0.1); font-size: max(14px, 2vw); }
.slice-tv-chip b { color: var(--chalk-2); font-weight: 600; }
.slice-tv-chip.slice-done { background: rgba(79, 201, 138, 0.25); }
.slice-tv-chip.slice-done b { color: var(--green); }
.slice-tv-face { font-size: 1.2em; }
.slice-tv-list { display: grid; gap: 0.8vw; }
.slice-tv-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 1.4vw; align-items: baseline; font-size: max(16px, 2.4vw); padding: 0.4vw 1.6vw; border-radius: 1vw; background: rgba(244, 234, 213, 0.08); }
.slice-tv-row b { font-family: var(--display); font-size: 1.2em; }
.slice-tv-err { color: var(--chalk-2); min-width: 5em; text-align: right; }
.slice-tv-row.slice-win { background: var(--amber); color: var(--ink); }
.slice-tv-row.slice-win .slice-tv-err { color: var(--ink-2); }
@media (max-width: 700px) { .slice-tv { flex-direction: column; } .slice-tv-pie { flex-basis: auto; width: 70vw; } }

/* Snake Draft: seat colours stay readable on both the cream mat and the green table */
.sd-c0 { --sd: #e0492f; } .sd-c1 { --sd: #4a95e8; } .sd-c2 { --sd: #3fb97a; } .sd-c3 { --sd: #e69a10; }
.sd-c4 { --sd: #a574e0; } .sd-c5 { --sd: #2bb5bb; } .sd-c6 { --sd: #e0609a; } .sd-c7 { --sd: #a3b13a; }

.sd-play { display: flex; flex-direction: column; gap: 12px; }
.sd-stat { font: 700 15px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber-2); margin-top: 6px; }
.sd-body { display: flex; flex-direction: column; gap: 12px; }

.sd-timer { display: flex; align-items: center; gap: 10px; }
.sd-timer-track { flex: 1; height: 10px; border-radius: 99px; background: rgba(244, 234, 213, 0.12); overflow: hidden; }
.sd-timer-fill { height: 100%; background: var(--amber); transform-origin: left; border-radius: 99px; }
.sd-timer-num { min-width: 1.6em; text-align: right; font: 800 28px/1 var(--display); color: var(--amber); font-variant-numeric: tabular-nums; }
.sd-urgent .sd-timer-fill { background: var(--red); }
.sd-urgent .sd-timer-num { color: var(--red); }

.sd-banner { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(244, 234, 213, 0.08); border: 1px solid var(--line); }
.sd-banner-me { background: var(--amber); border-color: var(--amber); color: #241a00; }
.sd-banner-text { font: 800 26px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.sd-meta { font: 700 14px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; white-space: nowrap; }
.sd-picking { font: 600 18px/1.1 var(--body); text-transform: none; letter-spacing: 0; opacity: 0.85; }
.sd-who { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.sd-who::before { content: ''; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--sd, var(--amber)); flex: none; }
.sd-who i { font-style: normal; }
.sd-next { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 14px; color: var(--chalk-2); }
.sd-next-lab { font: 800 13px/1 var(--display); text-transform: uppercase; letter-spacing: 0.1em; }

.sd-pool { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sd-card {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 54px; padding: 8px 12px; text-align: left; border: 0; border-radius: 10px;
  background: var(--mat); color: var(--ink); font: 700 17px/1.15 var(--body);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); transition: transform 0.08s ease, opacity 0.2s ease;
}
.sd-card:disabled { cursor: default; }
button.sd-card:not(:disabled):active { transform: translateY(2px); }
.sd-card.sd-sel { background: var(--amber-2); box-shadow: 0 3px 0 #a87500, 0 0 0 3px var(--amber); }
.sd-card.sd-taken { background: transparent; color: var(--chalk-2); box-shadow: none; border: 1.5px dashed var(--sd, var(--line)); }
.sd-card.sd-taken .sd-card-name { text-decoration: line-through; text-decoration-color: var(--sd); text-decoration-thickness: 2px; }
.sd-card-by { font: 800 12px/1 var(--display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--sd); }
.sd-confirm:disabled { opacity: 0.4; }

.sd-rosters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sd-roster { padding: 8px 10px; border-radius: 10px; background: rgba(244, 234, 213, 0.07); border: 1.5px solid var(--line); border-top: 4px solid var(--sd, var(--line)); }
.sd-roster-turn { background: rgba(242, 169, 0, 0.14); border-color: var(--amber); border-top-color: var(--sd, var(--amber)); }
.sd-roster-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; margin-bottom: 4px; }
.sd-roster-head em { font: 400 18px/1 var(--hand); color: var(--amber-2); }
.sd-roster ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sd-slot { font-size: 14px; color: rgba(244, 234, 213, 0.3); min-height: 19px; }
.sd-slot-full { color: var(--chalk); font-weight: 700; }

/* reveal (cream mat, so seat colours darken) */
.sd-reveal { display: flex; flex-direction: column; gap: 14px; }
.mat .sd-c0, .mat.sd-c0 { --sd: #c43a22; } .mat .sd-c1 { --sd: #2a6fc0; } .mat .sd-c2 { --sd: #1e8a54; } .mat .sd-c3 { --sd: #b87800; }
.mat .sd-c4 { --sd: #7a44b8; } .mat .sd-c5 { --sd: #138a90; } .mat .sd-c6 { --sd: #b4366f; } .mat .sd-c7 { --sd: #6f7a2a; }
.sd-board, .sd-poolrev { display: flex; flex-direction: column; gap: 4px; }
.sd-row { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid rgba(28, 26, 20, 0.12); }
.sd-row-name { display: flex; align-items: center; gap: 8px; font: 800 22px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.sd-row-name em { font: 400 24px/1 var(--hand); color: var(--green-ink); text-transform: none; letter-spacing: 0; }
.sd-row-total { font: 800 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.sd-row-picks { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.sd-row-win .sd-row-total { color: var(--green-ink); }
.sd-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sd, var(--ink-2)); display: inline-block; flex: none; }
.sd-note { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.sd-prow { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; padding: 5px 0; border-bottom: 1px dotted rgba(28, 26, 20, 0.2); }
.sd-prow-name { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; }
.sd-prow-val { font: 800 20px/1 var(--display); font-variant-numeric: tabular-nums; }
.sd-prow-by { grid-column: 1 / -1; font: 700 12px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.sd-prow-left { opacity: 0.55; }

/* TV */
.sd-tv { flex: 1; display: flex; flex-direction: column; gap: 1.4vw; min-height: 0; }
.sd-tv-prompt { font: 800 3.6vw/1.1 var(--display); text-transform: uppercase; margin: 0; }
.sd-tv-turn { display: flex; align-items: baseline; gap: 1.2vw; font: 800 4vw/1.1 var(--display); text-transform: uppercase; }
.sd-tv-turn .sd-picking { font-size: 2.4vw; }
.sd-tv-pick { margin-left: auto; font-size: 1.8vw; letter-spacing: 0.12em; color: var(--chalk-2); }
.sd-tv .sd-timer-num { font-size: 4.6vw; }
.sd-tv .sd-timer-track { height: 1vw; }
.sd-tv-main { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2vw; min-height: 0; align-items: start; }
.sd-tv-poolgrid { grid-template-columns: repeat(3, 1fr); gap: 0.8vw; }
.sd-tv .sd-card { min-height: 5vw; padding: 0.7vw 1.1vw; font-size: 1.9vw; border-radius: 0.8vw; }
.sd-tv-rosters { grid-template-columns: repeat(2, 1fr); gap: 0.8vw; }
.sd-tv .sd-roster { padding: 0.7vw 1vw; border-radius: 0.8vw; }
.sd-tv .sd-roster-head { font-size: 1.7vw; margin-bottom: 0.3vw; }
.sd-tv .sd-roster-head em { font-size: 1.8vw; }
.sd-tv .sd-slot { font-size: 1.5vw; min-height: 1.8vw; }
.sd-tv-cols { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 2vw; min-height: 0; align-items: start; }
.sd-tv .sd-row-name { font-size: 2.6vw; }
.sd-tv .sd-row-total { font-size: 3.2vw; }
.sd-tv .sd-row-name em { font-size: 2.8vw; }
.sd-tv .sd-prow-name { font-size: 1.8vw; }
.sd-tv .sd-prow-val { font-size: 2.2vw; }
.sd-tv .mat { padding: 1.6vw 2vw; }

@media (min-width: 760px) {
  .sd-pool { grid-template-columns: repeat(4, 1fr); }
  .sd-play, .sd-reveal { max-width: 900px; margin: 0 auto; width: 100%; }
}

/* Speedo: car-style gauge on a beer mat. */
.speedo { display: grid; gap: 14px; max-width: 560px; margin: 0 auto; width: 100%; }
.speedo-top { display: flex; justify-content: space-between; align-items: center; font: 800 15px/1 var(--display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--chalk-2); }
.speedo-clock b { color: var(--amber-2); font-size: 20px; }
.speedo-prompt { text-align: center; }
.speedo-card { display: grid; gap: 10px; padding: 14px 14px 18px; justify-items: center; }
.speedo-dial { width: 100%; max-width: 380px; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; outline: none; display: block; }
.speedo-dial:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; border-radius: 50%; }
.speedo-locked .speedo-dial { cursor: default; }
.speedo-bezel { fill: #2a261c; }
.speedo-plate { fill: #17140e; }
.speedo-rail { fill: none; stroke: rgba(244, 234, 213, 0.22); stroke-width: 1.5; }
.speedo-rail-mph { stroke: rgba(242, 169, 0, 0.35); }
.speedo-tick { stroke: rgba(244, 234, 213, 0.6); stroke-width: 1.4; stroke-linecap: round; }
.speedo-tick-major { stroke: var(--chalk); stroke-width: 2.6; }
.speedo-tick-mph { stroke: var(--amber); stroke-width: 2; }
.speedo-tick-thin { stroke-width: 1; opacity: 0.7; }
.speedo-num { fill: var(--chalk); font: 800 15px var(--display); letter-spacing: 0.02em; }
.speedo-num-mph { fill: var(--amber-2); font-size: 12px; }
.speedo-unit { fill: var(--chalk-2); font: 800 11px var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.speedo-unit-mph { fill: var(--amber); }
.speedo-needle { --speedo-c: var(--red); }
.speedo-needle-me { transition: transform 0.05s linear; }
.speedo-blade { stroke: var(--speedo-c); stroke-width: 3.2; stroke-linecap: round; }
.speedo-tip { fill: var(--speedo-c); }
.speedo-needle-me .speedo-blade { stroke-width: 4; filter: drop-shadow(0 0 3px rgba(224, 73, 47, 0.6)); }
.speedo-needle-p { opacity: 0.8; }
.speedo-needle-win { opacity: 1; }
.speedo-needle-win .speedo-blade { stroke-width: 4.4; }
.speedo-needle-truth { --speedo-c: var(--green); }
.speedo-needle-truth .speedo-blade { stroke-width: 4.8; filter: drop-shadow(0 0 4px rgba(79, 201, 138, 0.8)); }
.speedo-needle-truth .speedo-tip { r: 4.6; }
.speedo-hub { fill: #3b3527; stroke: var(--chalk); stroke-width: 1.5; }
.speedo-hub-dot { fill: var(--amber); }
.speedo-readwrap { min-height: 52px; display: grid; place-items: center; }
.speedo-read { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); color: var(--ink); }
.speedo-read b { font-weight: 800; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.speedo-read .speedo-read-mph { color: #a87500; font-size: 32px; }
.speedo-read-u { font: 800 15px var(--display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.speedo-read i { font-style: normal; color: var(--ink-2); font-size: 26px; }
.speedo-idle .speedo-read { opacity: 0.4; }
.speedo-hint { text-align: center; color: var(--chalk-2); font-size: 15px; }
.speedo-locked .speedo-hint { visibility: hidden; }
.speedo-lock { min-height: 56px; }
.speedo-truth { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 10px; font-family: var(--display); color: var(--ink); }
.speedo-truth .lab { flex: 0 0 100%; text-align: center; margin: 0; }
.speedo-truth b { font-size: 34px; font-weight: 800; color: var(--green-ink); line-height: 1; }
.speedo-truth span:not(.lab) { font: 700 17px var(--body); color: var(--ink-2); }
.speedo-truth i { font-style: normal; color: var(--ink-2); }
.speedo-rows { display: grid; gap: 8px; }
.speedo-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 2px 10px; align-items: center; padding: 11px 14px; border-radius: 12px; background: rgba(244, 234, 213, 0.08); border: 1.5px solid var(--line); color: var(--chalk); }
.speedo-win { background: rgba(79, 201, 138, 0.14); border-color: var(--green); }
.speedo-swatch { width: 14px; height: 14px; border-radius: 50%; grid-row: span 2; }
.speedo-pname { font: 800 20px var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.speedo-guess { font: 700 15px var(--body); color: var(--chalk); text-align: right; }
.speedo-off { grid-column: 2 / 3; font: 600 14px var(--body); color: var(--chalk-2); }
.speedo-star { grid-column: 3; grid-row: 2; justify-self: end; font: 800 20px var(--display); color: var(--green); }
/* tv */
.speedo-tv { display: grid; gap: 14px; padding: 4px 0; }
.speedo-tv-prompt { font: 800 clamp(34px, 4.4vw, 60px)/1.04 var(--display); color: var(--chalk); text-align: center; text-wrap: balance; }
.speedo-tv-body { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.speedo-tv .speedo-dial { max-width: 560px; max-height: calc(100dvh - 410px); }
.speedo-tv-prog { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.speedo-tv-p { display: flex; gap: 10px; align-items: baseline; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--line); color: var(--chalk-2); }
.speedo-on { border-color: var(--green); color: var(--chalk); }
.speedo-tick-s { font: 600 14px var(--body); color: var(--chalk-2); }
.speedo-on .speedo-tick-s { color: var(--green); }
@media (min-width: 900px) {
  .speedo-tv-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .speedo-tv-rev .speedo-pname { font-size: 26px; }
  .speedo-tv-rev .speedo-guess { font-size: 18px; }
}

/* Stopwatch. Prefixed sw-; uses :root tokens from styles.css */
.sw-play, .sw-reveal { display: flex; flex-direction: column; gap: 18px; }
.sw-dialbox { display: flex; justify-content: center; padding: 6px 0; }
.sw-dial { position: relative; width: min(64vw, 260px); aspect-ratio: 1; border-radius: 50%; background: var(--mat); box-shadow: 0 6px 0 #bfae8b, 0 16px 30px rgba(0, 0, 0, 0.4); }
.sw-ring { position: absolute; inset: 9px; border-radius: 50%; border: 3px dashed rgba(28, 26, 20, 0.22); }
.sw-hand { position: absolute; left: 50%; top: 14%; width: 6px; height: 36%; margin-left: -3px; border-radius: 3px; background: var(--ink); transform-origin: 50% 100%; }
.sw-hub { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px var(--ink); }
.sw-idle .sw-hand { opacity: 0.35; }
.sw-running .sw-ring { animation: sw-pulse 1.6s ease-in-out infinite; }
.sw-running .sw-hand { animation: sw-spin 7.3s linear infinite; }
.sw-running .sw-hub { animation: sw-beat 1.6s ease-in-out infinite; }
.sw-stopped { opacity: 0.6; }
@keyframes sw-spin { to { transform: rotate(360deg); } }
@keyframes sw-pulse { 50% { border-color: rgba(242, 169, 0, 0.9); inset: 4px; } }
@keyframes sw-beat { 50% { transform: scale(1.25); } }
.sw-btn { min-height: 96px; font-size: 38px; border-radius: 18px; }
.sw-btn-running { background: var(--red); color: #fff; box-shadow: 0 5px 0 #8f2a18; }
.sw-btn-stopped { background: var(--table-3); color: var(--chalk-2); box-shadow: none; }

.sw-truth { text-align: center; padding: 18px; }
.sw-truth-n { font: 800 clamp(48px, 16vw, 84px)/1 var(--display); color: var(--ink); }
.sw-chart { position: relative; display: grid; gap: 10px; padding: 4px 0; }
.sw-truth-line { position: absolute; top: 0; bottom: 0; width: 0; border-left: 3px dashed var(--amber); z-index: 2; pointer-events: none; }
.sw-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'who num' 'track track'; gap: 4px 10px; align-items: center; }
.sw-who { grid-area: who; display: flex; align-items: center; gap: 8px; min-width: 0; }
.sw-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-track { grid-area: track; height: 18px; border-radius: 9px; background: rgba(244, 234, 213, 0.1); overflow: hidden; }
.sw-bar { height: 100%; border-radius: 9px; background: var(--chalk-2); transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sw-win .sw-bar { background: var(--amber); }
.sw-win .sw-name { color: var(--amber-2); }
.sw-you .sw-name::after { content: ' (you)'; color: var(--chalk-2); font-weight: 500; }
.sw-num { grid-area: num; display: flex; gap: 8px; align-items: baseline; font-variant-numeric: tabular-nums; }
.sw-num b { font: 800 22px/1 var(--display); }
.sw-num span { color: var(--chalk-2); font-size: 14px; }
.sw-none { opacity: 0.55; }

/* TV */
.sw-tv { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vw; text-align: center; min-height: 0; }
.sw-tv-stop { font: 800 9vw/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--amber); }
.sw-tv-dial .sw-dial { width: 18vw; }
.sw-tv-big { font: 800 14vw/1 var(--display); color: var(--chalk); }
.sw-tv-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2vw; }
.sw-tv-chip { display: flex; align-items: center; gap: 0.8vw; padding: 0.6vw 1.4vw; border-radius: 99px; background: rgba(244, 234, 213, 0.1); font-size: max(14px, 2vw); }
.sw-tv-chip b { color: var(--chalk-2); font-weight: 600; }
.sw-tv-chip.sw-done { background: rgba(79, 201, 138, 0.25); }
.sw-tv-chip.sw-done b { color: var(--green); }
.sw-tv-face { font-size: 1.2em; }
.sw-tv-list { display: grid; gap: 0.8vw; min-width: 50vw; }
.sw-tv-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 1.4vw; align-items: baseline; font-size: max(16px, 2.6vw); padding: 0.4vw 1.6vw; border-radius: 1vw; background: rgba(244, 234, 213, 0.08); text-align: left; }
.sw-tv-row b { font-family: var(--display); font-size: 1.2em; }
.sw-tv-err { color: var(--chalk-2); min-width: 5em; text-align: right; }
.sw-tv-row.sw-win { background: var(--amber); color: var(--ink); }
.sw-tv-row.sw-win .sw-tv-err { color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .sw-running .sw-hand, .sw-running .sw-ring, .sw-running .sw-hub { animation: none; } }

.tl { display: grid; gap: 12px; width: 100%; max-width: 560px; margin: 0 auto; }
.tl-status { display: flex; justify-content: space-between; align-items: baseline; color: var(--chalk-2); font: 700 16px/1 var(--body); }
.tl-status-main { letter-spacing: 0.02em; }
.tl-status-score { font: 800 22px/1 var(--display); color: var(--amber-2); letter-spacing: 0.04em; text-transform: uppercase; }
.tl-flash { padding: 10px 14px; border-radius: 12px; font: 700 16px/1.2 var(--body); }
.tl-flash-right { background: var(--green); color: #05301d; }
.tl-flash-wrong { background: var(--red); color: #fff; }

.tl-current { padding: 14px 16px; position: sticky; top: 8px; z-index: 2; background: var(--amber-2); box-shadow: 0 4px 0 #a87500; border-radius: 14px; }
.tl-current-k { font: 700 13px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: #5a4300; }
.tl-current-label { font: 800 clamp(26px, 6.5vw, 36px)/1.05 var(--display); color: var(--ink); margin-top: 6px; text-wrap: balance; }

.tl-rail { position: relative; display: grid; gap: 6px; padding-left: 22px; }
.tl-rail::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--line); }

.tl-card { display: flex; align-items: center; gap: 14px; background: var(--mat); color: var(--ink); border-radius: 12px; padding: 10px 14px; min-height: 56px; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.28); position: relative; }
.tl-card::before { content: ''; position: absolute; left: -20px; top: 50%; width: 13px; height: 13px; margin-top: -6px; border-radius: 50%; background: var(--table-3); border: 3px solid var(--chalk-2); }
.tl-year { flex: 0 0 auto; min-width: 64px; font: 800 28px/1 var(--display); letter-spacing: 0.02em; color: var(--green-ink); }
.tl-label { flex: 1; min-width: 0; font: 600 17px/1.2 var(--body); text-wrap: balance; }
.tl-card-anchor { outline: 2px dashed var(--amber); outline-offset: -4px; }

.tl-gap { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; width: 100%; background: transparent; color: var(--chalk-2); border: 2px dashed var(--line); border-radius: 12px; font: 700 15px/1 var(--body); cursor: pointer; transition: background 0.12s, border-color 0.12s; }
.tl-gap-plus { font: 800 24px/1 var(--display); color: var(--amber); }
.tl-gap:hover:not(:disabled), .tl-gap:focus-visible { border-color: var(--amber); background: rgba(242, 169, 0, 0.12); color: var(--chalk); outline: none; }
.tl-gap:active:not(:disabled) { background: rgba(242, 169, 0, 0.28); }
.tl-gap:disabled { opacity: 0.45; cursor: default; }

.tl-reveal-k { font: 800 clamp(24px, 5vw, 34px)/1 var(--display); color: var(--chalk); letter-spacing: 0.03em; text-transform: uppercase; }
.tl-rail-final { gap: 8px; }
.tl-scores { padding: 6px 14px; border-radius: 14px; }
.tl-score { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(28, 26, 20, 0.2); color: var(--ink); }
.tl-score:last-child { border-bottom: 0; }
.tl-score-name { flex: 1; font: 800 22px/1 var(--display); letter-spacing: 0.02em; }
.tl-score-n { font: 700 16px/1 var(--body); color: var(--ink-2); }
.tl-score-flag { font: 800 15px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; background: var(--amber); color: #241a00; padding: 4px 8px; border-radius: 6px; }
.tl-score-win .tl-score-name { color: var(--green-ink); }
.tl-none { color: var(--chalk-2); font: 600 16px/1.2 var(--body); text-align: center; }

.tl-tv { max-width: none; gap: 28px; }
.tl-tv-line { display: flex; gap: 14px; flex-wrap: wrap; }
.tl-tv-card { flex: 1 1 150px; background: var(--mat); color: var(--ink); border-radius: 14px; padding: 16px 18px; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3); }
.tl-tv-card .tl-year { font-size: clamp(36px, 4vw, 56px); }
.tl-tv-card .tl-label { margin-top: 6px; font-size: clamp(16px, 1.6vw, 22px); }
.tl-tv-players { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.tl-tv-player { background: var(--table-2); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--chalk); display: grid; gap: 6px; }
.tl-tv-player.tl-score-win { border-color: var(--amber); background: var(--table-3); }
.tl-tv-name { font: 800 clamp(24px, 2.6vw, 38px)/1 var(--display); letter-spacing: 0.02em; }
.tl-tv-n { font: 800 clamp(30px, 3.4vw, 48px)/1 var(--display); color: var(--amber-2); }
.tl-tv-sub { font: 600 clamp(15px, 1.4vw, 20px)/1 var(--body); color: var(--chalk-2); }
.tl-tv-bar { height: 8px; border-radius: 4px; background: rgba(244, 234, 213, 0.12); overflow: hidden; }
.tl-tv-bar-fill { height: 100%; background: var(--green); transition: width 0.3s; }
.tl-tv-done .tl-tv-bar-fill { background: var(--amber); }

/* Tug of War. Prefix tug-. Uses tokens from styles.css. */
.tug { --tug-a-col: var(--amber); --tug-d-col: #b9ae93; --tug-b-col: #6fb0e4; display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 560px; margin: 0 auto; }
.tug-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tug-scope { font: 800 15px/1.1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.tug-clock, .tug-asof { font: 800 20px/1 var(--display); color: var(--chalk); }
.tug-asof { font-size: 14px; color: var(--chalk-2); font-weight: 600; letter-spacing: 0.04em; }
.tug-prompt { text-align: center; }
.tug-card { padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 14px; }

.tug-names { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tug-side { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; font: 800 clamp(20px, 6vw, 28px)/1 var(--display); text-transform: uppercase; color: var(--ink); }
.tug-side b { overflow-wrap: anywhere; font-weight: 800; }
.tug-side-b { justify-content: flex-end; text-align: right; }
.tug-side-d { flex: 0 0 auto; justify-content: center; font: 700 17px/1 var(--hand); text-transform: none; color: var(--ink-2); }
.tug-dot { flex: 0 0 14px; height: 14px; border-radius: 50%; }
.tug-dot-a { background: var(--tug-a-col); }
.tug-dot-b { background: var(--tug-b-col); }

/* the draggable track */
.tug-track {
  --tug-a: 34%; --tug-ab: 66%;
  position: relative; height: 64px; margin: 6px 14px; border-radius: 12px; touch-action: none; cursor: ew-resize; user-select: none; -webkit-user-select: none;
  box-shadow: inset 0 0 0 2px rgba(28, 26, 20, 0.25);
}
.tug-fill { position: absolute; top: 0; bottom: 0; }
.tug-fill-a { left: 0; width: var(--tug-a); background: var(--tug-a-col); border-radius: 12px 0 0 12px; }
.tug-fill-d { left: var(--tug-a); width: calc(var(--tug-ab) - var(--tug-a)); background: var(--tug-d-col); }
.tug-fill-b { left: var(--tug-ab); right: 0; background: var(--tug-b-col); border-radius: 0 12px 12px 0; }
.tug-track:not(:has(.tug-fill-d)) .tug-fill-b { left: var(--tug-a); }
.tug-handle {
  position: absolute; top: -8px; bottom: -8px; width: 44px; margin-left: -22px; display: flex; align-items: center; justify-content: center; gap: 3px;
  background: var(--ink); border: 0; border-radius: 12px; padding: 0; cursor: ew-resize; touch-action: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); outline-offset: 3px;
}
.tug-handle i { width: 3px; height: 26px; border-radius: 2px; background: var(--mat); opacity: 0.85; }
.tug-handle-1 { left: var(--tug-a); }
.tug-handle-2 { left: var(--tug-ab); }
.tug-handle:focus-visible { outline: 3px solid var(--amber); }
.tug-locked .tug-handle { opacity: 0.55; box-shadow: none; }
.tug-locked .tug-track { cursor: default; }

.tug-reads { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.tug-read { display: flex; flex-direction: column; flex: 1; gap: 2px; }
.tug-read-d { align-items: center; }
.tug-read-b { align-items: flex-end; }
.tug-pct { font: 800 clamp(34px, 10vw, 46px)/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.tug-read span { font: 700 16px/1 var(--hand); color: var(--ink-2); }
.tug-hint { text-align: center; color: var(--chalk-2); font-size: 14px; }
.tug-lock { width: 100%; min-height: 52px; }
.tug-lock:disabled { opacity: 0.6; }

/* static bars (reveal, tv) */
.tug-bar { display: flex; width: 100%; height: 44px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(28, 26, 20, 0.2); }
.tug-seg { display: grid; place-items: center; font: 800 18px/1 var(--display); color: #241a00; min-width: 0; overflow: hidden; }
.tug-seg-a { background: var(--tug-a-col); }
.tug-seg-d { background: var(--tug-d-col); }
.tug-seg-b { background: var(--tug-b-col); }
.tug-bar-truth { height: 58px; }
.tug-bar-truth .tug-seg { font-size: 24px; }
.tug-bar-guess { height: 28px; border-radius: 8px; }
.tug-bar-guess .tug-seg { font-size: 14px; }
.tug-record { display: flex; justify-content: space-between; gap: 8px; font: 700 20px/1 var(--hand); color: var(--ink-2); }
.tug-record b { font: 800 22px/1 var(--display); color: var(--ink); }

.tug-rows { display: flex; flex-direction: column; gap: 10px; }
.tug-row { background: rgba(244, 234, 213, 0.07); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.tug-row.tug-win { border-color: var(--amber); background: rgba(242, 169, 0, 0.1); }
.tug-rhead { display: flex; align-items: center; gap: 10px; }
.tug-pname { font: 800 20px/1 var(--display); text-transform: uppercase; color: var(--chalk); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tug-off { font-size: 14px; color: var(--chalk-2); }
.tug-star { font: 800 20px/1 var(--display); color: #241a00; background: var(--amber); border-radius: 99px; padding: 4px 10px; }

/* TV */
.tug-tv { display: flex; flex-direction: column; gap: 2vw; flex: 1; min-height: 0; --tug-a-col: var(--amber); --tug-d-col: #b9ae93; --tug-b-col: #6fb0e4; }
.tug-tv-scope { font: 800 1.9vw/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.tug-tv-versus { display: flex; align-items: baseline; justify-content: center; gap: 3vw; font: 800 6.4vw/1 var(--display); text-transform: uppercase; color: var(--chalk); }
.tug-tv-versus i { font: 700 3vw/1 var(--hand); font-style: normal; color: var(--chalk-2); text-transform: none; }
.tug-tv-a { border-bottom: 0.7vw solid var(--tug-a-col); }
.tug-tv-b { border-bottom: 0.7vw solid var(--tug-b-col); }
.tug-tv-ask { text-align: center; font: 700 2.6vw/1.2 var(--hand); color: var(--chalk-2); }
.tug-tv-prog { display: grid; grid-template-columns: repeat(auto-fill, minmax(22vw, 1fr)); gap: 1.4vw; }
.tug-tv-p { display: flex; align-items: center; gap: 1.2vw; padding: 1vw 1.4vw; border-radius: 1vw; background: rgba(244, 234, 213, 0.07); border: 2px solid var(--line); }
.tug-tv-p .tug-pname { font-size: 2.2vw; }
.tug-tick { font-size: 1.6vw; color: var(--chalk-2); }
.tug-tv-p.tug-on { border-color: var(--green); }
.tug-tv-p.tug-on .tug-tick { color: var(--green); }
.tug-tv-truth { background: var(--mat); color: var(--ink); border-radius: 1.2vw; padding: 1.6vw 2vw; display: flex; flex-direction: column; gap: 1.2vw; }
.tug-tv-truth .tug-side { font-size: 3vw; }
.tug-tv-truth .tug-bar-truth { height: 5vw; }
.tug-tv-truth .tug-seg { font-size: 2.6vw; }
.tug-tv-truth .tug-record { font-size: 2vw; }
.tug-tv-truth .tug-record b { font-size: 2.6vw; }
.tug-tv-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(34vw, 1fr)); gap: 1.2vw; }
.tug-tv-rows .tug-pname { font-size: 2vw; }
.tug-tv-rows .tug-off { font-size: 1.6vw; }
.tug-tv-rows .tug-bar-guess { height: 2.2vw; }
.tug-tv-rows .tug-seg { font-size: 1.3vw; }

@media (min-width: 900px) {
  .tug { max-width: 640px; }
}
