/* One system for every page. Colors: the night ground in three steps (ground, surface, raised), lines in two (line, edge),
   text in three (text, soft, faint), one accent (brass: its deep, its tint for what is chosen, its line), good and late;
   red is for what kills, so nothing is red. Veils sit over the game, scrims behind dialogs. Filled gold is the one thing to
   do next on a page; what is chosen has a brass outline on the tint; everything else is quiet. Serif only names pages, panels
   and mazes. Type 13 14 16 20 26 34 44 56. Space 4 8 12 16 24 32 48. Corners: 4 small marks, 8 controls, 12 panels, round.
   Borders are 1px: line between things, edge round what can be pressed, brass round what is chosen. Icons are drawn in lines
   on a grid of 24 with a stroke of 2, at 20px beside words and 24px alone. Nothing to press is lower than 44.
   Frames: what stands alone and large (a panel, a dialog) sits in the brass frame; what repeats in a list or grid (a card,
   a row, a field) and what is pressed has the 1px line. */
:root {
  --panel-frame: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2248%22 height=%2248%22 viewBox=%220 0 48 48%22%3E%3Crect x=%221%22 y=%221%22 width=%2246%22 height=%2246%22 rx=%226%22 fill=%22none%22 stroke=%22%237d6233%22 stroke-width=%222%22/%3E%3Crect x=%221.5%22 y=%221.5%22 width=%2245%22 height=%2245%22 rx=%225.5%22 fill=%22none%22 stroke=%22%23c9a868%22 stroke-opacity=%22.35%22 stroke-width=%221%22/%3E%3Crect x=%224.5%22 y=%224.5%22 width=%2239%22 height=%2239%22 rx=%223%22 fill=%22none%22 stroke=%22%23b18a45%22 stroke-opacity=%22.22%22 stroke-width=%221%22/%3E%3Cg transform=%22rotate%280 24 24%29%22%3E%3Cpath d=%22M3.5 12V6.5a3 3 0 0 1 3-3H12%22 fill=%22none%22 stroke=%22%23c9a868%22 stroke-opacity=%22.75%22 stroke-width=%221%22/%3E%3Ccircle cx=%227%22 cy=%227%22 r=%221.1%22 fill=%22%23c9a868%22 fill-opacity=%22.8%22/%3E%3C/g%3E%3Cg transform=%22rotate%2890 24 24%29%22%3E%3Cpath d=%22M3.5 12V6.5a3 3 0 0 1 3-3H12%22 fill=%22none%22 stroke=%22%23c9a868%22 stroke-opacity=%22.75%22 stroke-width=%221%22/%3E%3Ccircle cx=%227%22 cy=%227%22 r=%221.1%22 fill=%22%23c9a868%22 fill-opacity=%22.8%22/%3E%3C/g%3E%3Cg transform=%22rotate%28180 24 24%29%22%3E%3Cpath d=%22M3.5 12V6.5a3 3 0 0 1 3-3H12%22 fill=%22none%22 stroke=%22%23c9a868%22 stroke-opacity=%22.75%22 stroke-width=%221%22/%3E%3Ccircle cx=%227%22 cy=%227%22 r=%221.1%22 fill=%22%23c9a868%22 fill-opacity=%22.8%22/%3E%3C/g%3E%3Cg transform=%22rotate%28270 24 24%29%22%3E%3Cpath d=%22M3.5 12V6.5a3 3 0 0 1 3-3H12%22 fill=%22none%22 stroke=%22%23c9a868%22 stroke-opacity=%22.75%22 stroke-width=%221%22/%3E%3Ccircle cx=%227%22 cy=%227%22 r=%221.1%22 fill=%22%23c9a868%22 fill-opacity=%22.8%22/%3E%3C/g%3E%3C/svg%3E");
  --ground: #0a1422; --sunk: #0a1525; --surface: #0f1c30; --surface-up: #16263f; --raised: #1b2c48; --raised-up: #263c60;
  --line: #33455f; --line-faint: #33455f88; --edge: #5f7598; --edge-up: #869cc0; --ring: #ffffff55;
  --text: #f4ead6; --soft: #b4bfd0; --faint: #8f9bb0;
  --brass: #e9cd92; --brass-light: #f8e8bd; --deep: #b18a45; --ink: #211704; --tint: #b18a4530; --brass-line: #b18a4599;
  --good: #7fd07a; --late: #f0b45f; --late-ground: #5a3b12;
  --wash: #ffffff12; --veil: #0a1220d8; --veil-light: #0a1220a8; --scrim: #040a14b8; --scrim-light: #040a1460;
  --shadow: 0 8px 32px #0008; --shadow-small: 0 2px 10px #0007;
  --corner-small: 4px; --corner: 8px; --corner-panel: 12px; --round: 999px;
  --night: linear-gradient(#142440, #0b1626); --frame: linear-gradient(#fbe9b8, #d0a558 30%, #8d6528 55%, #dcb668 78%, #a67a36); --gold: linear-gradient(#f6e3ae, #d9b467 55%, #c59a4c); --gold-up: linear-gradient(#fff0c6, #e7c67c 55%, #d3a95a);
  --l: env(safe-area-inset-left, 0px); --r: env(safe-area-inset-right, 0px); --t: env(safe-area-inset-top, 0px); --b: env(safe-area-inset-bottom, 0px);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif; --sans: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --rose: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2246%22 height=%2246%22 viewBox=%220 0 46 46%22%3E%3Cg transform=%22rotate(0 23 23)%22%3E%3Cg fill=%22none%22 stroke=%22%23c9a15a%22 stroke-width=%221.3%22%3E%3Cpath d=%22M8.5 42V30c0-4 2.6-5 5-6.5M42 8.500H30c-4 0-5 2.600-6.500 5M8.500 20.500V8.500H20.500%22/%3E%3Ccircle cx=%2215%22 cy=%2215%22 r=%225.600%22 fill=%22%230c1726%22/%3E%3Cpath d=%22M15 9.400V20.600M9.400 15H20.600M11 11l8 8M19 11l-8 8%22 stroke-width=%22.8%22/%3E%3C/g%3E%3Ccircle cx=%2215%22 cy=%2215%22 r=%221.700%22 fill=%22%23f1dba8%22/%3E%3C/g%3E%3C/svg%3E") 0 0, url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2246%22 height=%2246%22 viewBox=%220 0 46 46%22%3E%3Cg transform=%22rotate(90 23 23)%22%3E%3Cg fill=%22none%22 stroke=%22%23c9a15a%22 stroke-width=%221.3%22%3E%3Cpath d=%22M8.5 42V30c0-4 2.6-5 5-6.5M42 8.500H30c-4 0-5 2.600-6.500 5M8.500 20.500V8.500H20.500%22/%3E%3Ccircle cx=%2215%22 cy=%2215%22 r=%225.600%22 fill=%22%230c1726%22/%3E%3Cpath d=%22M15 9.400V20.600M9.400 15H20.600M11 11l8 8M19 11l-8 8%22 stroke-width=%22.8%22/%3E%3C/g%3E%3Ccircle cx=%2215%22 cy=%2215%22 r=%221.700%22 fill=%22%23f1dba8%22/%3E%3C/g%3E%3C/svg%3E") 100% 0, url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2246%22 height=%2246%22 viewBox=%220 0 46 46%22%3E%3Cg transform=%22rotate(180 23 23)%22%3E%3Cg fill=%22none%22 stroke=%22%23c9a15a%22 stroke-width=%221.3%22%3E%3Cpath d=%22M8.5 42V30c0-4 2.6-5 5-6.5M42 8.500H30c-4 0-5 2.600-6.500 5M8.500 20.500V8.500H20.500%22/%3E%3Ccircle cx=%2215%22 cy=%2215%22 r=%225.600%22 fill=%22%230c1726%22/%3E%3Cpath d=%22M15 9.400V20.600M9.400 15H20.600M11 11l8 8M19 11l-8 8%22 stroke-width=%22.8%22/%3E%3C/g%3E%3Ccircle cx=%2215%22 cy=%2215%22 r=%221.700%22 fill=%22%23f1dba8%22/%3E%3C/g%3E%3C/svg%3E") 100% 100%, url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2246%22 height=%2246%22 viewBox=%220 0 46 46%22%3E%3Cg transform=%22rotate(270 23 23)%22%3E%3Cg fill=%22none%22 stroke=%22%23c9a15a%22 stroke-width=%221.3%22%3E%3Cpath d=%22M8.5 42V30c0-4 2.6-5 5-6.5M42 8.500H30c-4 0-5 2.600-6.500 5M8.500 20.500V8.500H20.500%22/%3E%3Ccircle cx=%2215%22 cy=%2215%22 r=%225.600%22 fill=%22%230c1726%22/%3E%3Cpath d=%22M15 9.400V20.600M9.400 15H20.600M11 11l8 8M19 11l-8 8%22 stroke-width=%22.8%22/%3E%3C/g%3E%3Ccircle cx=%2215%22 cy=%2215%22 r=%221.700%22 fill=%22%23f1dba8%22/%3E%3C/g%3E%3C/svg%3E") 0 100%;
  --notch: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2260%22 height=%2260%22 viewBox=%220 0 60 60%22%3E%3ClinearGradient id=%22g%22 x2=%220%22 y2=%221%22%3E%3Cstop stop-color=%22%2316233a%22/%3E%3Cstop offset=%221%22 stop-color=%22%230c1726%22/%3E%3C/linearGradient%3E%3Cpath d=%22M8.2 1.2H51.8Q51.8 8.2 58.8 8.2V51.8Q51.8 51.8 51.8 58.8H8.2Q8.2 51.8 1.2 51.8V8.2Q8.2 8.2 8.2 1.2z%22 fill=%22url(%23g)%22 stroke=%22%23c39a55%22 stroke-width=%221.8%22/%3E%3Cpath d=%22M11.6 4.6H48.4Q48.4 11.6 55.4 11.6V48.4Q48.4 48.4 48.4 55.4H11.6Q11.6 48.4 4.6 48.4V11.6Q11.6 11.6 11.6 4.6z%22 fill=%22none%22 stroke=%22%238a6a35%22 stroke-width=%22.8%22/%3E%3C/svg%3E"); --notch-up: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2260%22 height=%2260%22 viewBox=%220 0 60 60%22%3E%3ClinearGradient id=%22g%22 x2=%220%22 y2=%221%22%3E%3Cstop stop-color=%22%2322345a%22/%3E%3Cstop offset=%221%22 stop-color=%22%23132440%22/%3E%3C/linearGradient%3E%3Cpath d=%22M8.2 1.2H51.8Q51.8 8.2 58.8 8.2V51.8Q51.8 51.8 51.8 58.8H8.2Q8.2 51.8 1.2 51.8V8.2Q8.2 8.2 8.2 1.2z%22 fill=%22url(%23g)%22 stroke=%22%23f1dba8%22 stroke-width=%221.8%22/%3E%3Cpath d=%22M11.6 4.6H48.4Q48.4 11.6 55.4 11.6V48.4Q48.4 48.4 48.4 55.4H11.6Q11.6 48.4 4.6 48.4V11.6Q11.6 11.6 11.6 4.6z%22 fill=%22none%22 stroke=%22%23c39a55%22 stroke-width=%22.8%22/%3E%3C/svg%3E"); --notch-gold: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2260%22 height=%2260%22 viewBox=%220 0 60 60%22%3E%3ClinearGradient id=%22g%22 x2=%220%22 y2=%221%22%3E%3Cstop stop-color=%22%23f3dda6%22/%3E%3Cstop offset=%221%22 stop-color=%22%23c2954c%22/%3E%3C/linearGradient%3E%3Cpath d=%22M8.2 1.2H51.8Q51.8 8.2 58.8 8.2V51.8Q51.8 51.8 51.8 58.8H8.2Q8.2 51.8 1.2 51.8V8.2Q8.2 8.2 8.2 1.2z%22 fill=%22url(%23g)%22 stroke=%22%23fff0c4%22 stroke-width=%221.8%22/%3E%3Cpath d=%22M11.6 4.6H48.4Q48.4 11.6 55.4 11.6V48.4Q48.4 48.4 48.4 55.4H11.6Q11.6 48.4 4.6 48.4V11.6Q11.6 11.6 11.6 4.6z%22 fill=%22none%22 stroke=%22%238a6429%22 stroke-width=%22.8%22/%3E%3C/svg%3E"); --notch-gold-up: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2260%22 height=%2260%22 viewBox=%220 0 60 60%22%3E%3ClinearGradient id=%22g%22 x2=%220%22 y2=%221%22%3E%3Cstop stop-color=%22%23fff0c8%22/%3E%3Cstop offset=%221%22 stop-color=%22%23d6ab5f%22/%3E%3C/linearGradient%3E%3Cpath d=%22M8.2 1.2H51.8Q51.8 8.2 58.8 8.2V51.8Q51.8 51.8 51.8 58.8H8.2Q8.2 51.8 1.2 51.8V8.2Q8.2 8.2 8.2 1.2z%22 fill=%22url(%23g)%22 stroke=%22%23fffbe8%22 stroke-width=%221.8%22/%3E%3Cpath d=%22M11.6 4.6H48.4Q48.4 11.6 55.4 11.6V48.4Q48.4 48.4 48.4 55.4H11.6Q11.6 48.4 4.6 48.4V11.6Q11.6 11.6 11.6 4.6z%22 fill=%22none%22 stroke=%22%238a6429%22 stroke-width=%22.8%22/%3E%3C/svg%3E");
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html:has(> body:not(.bare)) { scrollbar-gutter: stable; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; min-height: 100dvh; background: var(--ground); color: var(--text); font: 400 16px/1.45 var(--sans); }
body:not(.bare)::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(#0a1422a8, #0a1422d0), url(art/ui/back.webp) center / cover, var(--ground); }
body:has(.home)::before { background: linear-gradient(#0a142266, #0a1422b8), url(art/ui/back.webp) center / cover, var(--ground) !important; }
#app { min-height: 100dvh; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font: 600 14px/1.4 var(--sans); color: var(--soft); }
p { margin: 0; max-width: 68ch; } a { color: var(--brass); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; } dialog:focus-visible { outline: none; }
button, input, select { font: inherit; color: inherit; } button { cursor: pointer; } button:disabled { cursor: default; }
.quiet { color: var(--soft); } .sorry { color: var(--late); } .sorry:empty { display: none; } .ahead, .yes { color: var(--good); } .behind { color: var(--late); }
small { display: block; color: var(--soft); font-size: 14px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
::selection { background: var(--brass-line); } * { scrollbar-color: var(--line) transparent; scrollbar-width: thin; }

/* buttons: one gold, quiet ones, and words */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 4px 16px; border: 1px solid var(--edge); border-radius: var(--corner); background: var(--raised); color: var(--text); font: 600 16px/1.2 var(--sans); text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s, filter .12s; }
.button:hover { background: var(--raised-up); border-color: var(--edge-up); } .button:active { filter: brightness(.9); } .button .icon { color: var(--brass); }
.button.on { border-color: var(--brass); background: var(--tint); }
.button.main { border-color: var(--brass-light); background: var(--gold); color: var(--ink); box-shadow: inset 0 0 0 2px var(--brass), inset 0 0 0 3px var(--deep), var(--shadow-small); } .button.main .icon { color: inherit; } .button.main:hover { background: var(--gold-up); }
.button:disabled, .button.main:disabled { border-color: var(--line); background: var(--sunk); color: var(--faint); box-shadow: none; } .button:disabled .icon { color: inherit; }
.button.big, .button.framed { border: 0 solid transparent; border-width: 4px 12px; border-image: var(--notch) 14 fill / 13px; border-radius: 0; background: none; box-shadow: none; padding: 0 16px; font-family: var(--serif); } .button.big:hover, .button.framed:hover { border-image-source: var(--notch-up); background: none; }
.button.main.big { border-image-source: var(--notch-gold); background: none; box-shadow: none; filter: drop-shadow(0 3px 8px #0009); } .button.main.big:hover { border-image-source: var(--notch-gold-up); background: none; } .button.big:disabled { border-image-source: var(--notch); background: none; filter: grayscale(.8) opacity(.75); }
.button.big { min-height: 60px; font-size: 20px; gap: 12px; } .button.main.big { font-family: var(--serif); }
.text-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px; border: 0; border-radius: var(--corner); background: none; color: var(--soft); font: 400 16px/1.2 var(--sans); text-decoration: none; } .text-button:hover { color: var(--text); background: var(--wash); } .text-button .icon { color: var(--brass); } .text-button.on { color: var(--brass); } .text-button:not(.on)[aria-pressed] .icon { color: var(--soft); }
.bare-button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--corner); background: none; color: var(--soft); } .bare-button:hover { color: var(--text); background: var(--wash); } .bare-button .icon { width: 20px; height: 20px; color: var(--brass); } .players .bare-button .icon { color: inherit; } .bare-button:hover .icon { color: var(--brass-light); } .back .icon { color: var(--brass); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .row h2 { margin-right: 8px; }
input[type=text], input[type=search], select { min-height: 44px; padding: 4px 12px; border: 1px solid var(--edge); border-radius: var(--corner); background: var(--sunk); max-width: 100%; }
/* Our own chevron, with room round it: the browser's sits against the edge. */
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23b4bfd0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; cursor: pointer; } select:hover { border-color: var(--text); } input[type=text]:focus, input[type=search]:focus { outline: 2px solid var(--brass); outline-offset: -1px; } ::placeholder { color: var(--faint); opacity: 1; }
input[type=range] { accent-color: var(--brass); min-height: 32px; }
input[type=checkbox] { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--brass); }
input[role=switch] { appearance: none; position: relative; width: 48px; height: 28px; margin: 0; flex: none; border: 1px solid var(--edge); border-radius: var(--round); background: var(--sunk); cursor: pointer; transition: background .15s; } input[role=switch]::before { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--soft); transition: transform .15s; } input[role=switch]:checked { background: var(--deep); border-color: var(--brass); } input[role=switch]:checked::before { transform: translateX(20px); background: var(--brass-light); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--corner-panel); color: var(--soft); font-size: 14px; white-space: nowrap; }
kbd { padding: 0 8px; border: 1px solid var(--line); border-radius: var(--corner-small); background: var(--sunk); color: var(--soft); font: 400 14px/1.6 var(--sans); }

/* the bar over every page */
header { display: flex; align-items: center; gap: 8px; min-height: calc(72px + var(--t)); padding: calc(8px + var(--t)) calc(24px + var(--r)) 8px calc(24px + var(--l)); width: 100%; max-width: 1248px; margin: 0 auto; }
header .lead { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; } header h1 { line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emblem { display: flex; border-radius: 50%; } .emblem svg { width: 56px; height: 56px; transition: transform .5s; } a.emblem:hover svg { transform: rotate(15deg); }
.back { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 12px 0 8px; margin-left: -8px; border: 0; border-radius: var(--corner); background: none; color: var(--soft); text-decoration: none; flex: none; } .back:hover { color: var(--text); background: var(--wash); } .back + h1 { padding-left: 16px; border-left: 1px solid var(--line); }
header .me { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 4px; max-width: 220px; border: 0; border-radius: var(--round); background: none; } header .me b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } header .me:hover { background: var(--wash); } header .gearbox .icon { width: 24px; height: 24px; }
.offline { font-size: 14px; color: var(--late); border: 1px dashed currentColor; border-radius: var(--corner); padding: 2px 8px; }
main:not(.bare) { flex: 1; width: 100%; max-width: 1248px; margin: 0 auto; padding: 8px calc(24px + var(--r)) calc(32px + var(--b)) calc(24px + var(--l)); display: flex; flex-direction: column; gap: 16px; }
.avatar { display: inline-block; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--edge); background: radial-gradient(var(--raised), var(--ground)); overflow: hidden; } .avatar svg { width: 100%; height: 100%; display: block; } .avatar.big { width: 64px; height: 64px; }
.dot { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--ring); vertical-align: -1px; } .dot.big { width: 26px; height: 26px; }
.who { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; } a.who:hover { text-decoration: underline; }

.panel { position: relative; border: 0; border-radius: 7px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); }
/* the brass frame, drawn over whatever the panel holds so pictures flush to its edges sit inside it */
.panel::before { content: ""; position: absolute; z-index: 3; inset: 0; border: 14px solid transparent; border-image: var(--panel-frame) 14 / 14px; pointer-events: none; }
.none::before { display: none; }
.headline::before { content: ""; position: absolute; z-index: 1; left: 12px; right: 12px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--brass), transparent); pointer-events: none; }
.sheetlike { padding: 24px 32px 32px; width: 100%; display: grid; gap: 16px; align-content: start; grid-template-columns: minmax(0, 1fr); } .p-settings .sheetlike, .p-profile .sheetlike, .p-u .sheetlike { max-width: 880px; margin: 0 auto; }
.headrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 44px; } /* A link in a heading row: no box on hover, and its end in line with the end of the x on the rows below. */
.headrow > .text-button { margin-left: auto; margin-right: 0; padding-inline: 0 12px; } .headrow > .text-button:hover { background: none; text-decoration: underline; text-underline-offset: 4px; } .headrow small { font-size: 16px; }
.flash { position: fixed; z-index: 20; left: 50%; top: calc(16px + var(--t)); transform: translateX(-50%); max-width: 84vw; padding: 12px 24px; border: 1px solid var(--deep); border-radius: var(--corner); background: var(--surface-up); box-shadow: var(--shadow); }
.state { white-space: nowrap; color: var(--soft); font-size: 14px; } .state::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; border: 1.5px solid currentColor; vertical-align: 1px; } .state.yes { color: var(--good); } .state.yes::before { background: currentColor; }
.none { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 32px 16px; border: 1px dashed var(--line); border-radius: var(--corner-panel); background: var(--sunk); color: var(--soft); } .none h1, .none h2 { color: var(--text); }
.waits { opacity: .6; min-height: 40px; }

/* home */
.home { flex: 1; display: grid; gap: 24px; align-content: center; justify-items: center; grid-template-columns: minmax(0, 1fr); padding-bottom: 48px; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; width: 100%; max-width: 1120px; }
.door { position: relative; display: grid; align-content: end; justify-items: center; text-align: center; min-height: min(440px, 58dvh); padding: 24px 32px 40px; border: 4px solid transparent; border-radius: var(--corner-panel); background: var(--night) padding-box, var(--frame) border-box; box-shadow: 0 0 0 1px var(--ground), 0 12px 40px #000b; color: var(--text); text-decoration: none; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.door::before { content: ""; position: absolute; z-index: 1; inset: 5px; border: 1px solid var(--brass-line); border-radius: var(--corner); pointer-events: none; } .door::after { content: ""; position: absolute; z-index: 1; inset: 0; background: var(--rose); background-repeat: no-repeat; pointer-events: none; }
.door:hover, .door:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--ground), 0 0 36px var(--brass-line), 0 16px 44px #000c; }
.door .art { position: absolute; inset: 0; background: center top / cover; transition: transform .6s; } .door .art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 44px 6px #0a1422e0; background: linear-gradient(#0a142200 35%, #0a1422c0 62%, #0a1422f0 82%); } .door:hover .art { transform: scale(1.04); }
.medal { position: relative; display: grid; place-items: center; width: 128px; height: 128px; margin-bottom: 16px; border: 4px solid transparent; border-radius: 50%; background: var(--night) padding-box, var(--frame) border-box; box-shadow: inset 0 0 0 4px var(--ground), inset 0 0 0 5px var(--deep), var(--shadow); color: var(--brass-light); } .medal .icon { width: 60px; height: 60px; } .door.first .medal { background: var(--gold) padding-box, var(--frame) border-box; box-shadow: inset 0 0 0 4px var(--brass), inset 0 0 0 5px var(--deep), var(--shadow); color: var(--ink); } .door.first:hover .medal { background: var(--gold-up) padding-box, var(--frame) border-box; }
.door b { position: relative; font: 600 44px/1.15 var(--serif); text-shadow: 0 2px 8px #000; } .door .say { position: relative; color: var(--text); font-size: 16px; }
.rule { position: relative; width: min(220px, 70%); height: 1px; margin: 16px 0; background: linear-gradient(90deg, transparent, var(--deep) 30%, var(--deep) 70%, transparent); } .rule::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -5px; border: 1.5px solid var(--brass); background: var(--ground); transform: rotate(45deg); }
.home .button.framed { min-height: 64px; min-width: 240px; font-size: 20px; gap: 16px; } .home .framed .icon { width: 24px; height: 24px; }
.live { position: absolute; z-index: 1; right: 38px; top: 26px; padding: 4px 12px; border-radius: var(--round); background: var(--veil); color: var(--good); font-size: 14px; font-weight: 600; } .live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: currentColor; }

/* lobby, create: what is played stands in a panel of its own on the right, its button at the foot */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 368px; gap: 24px; align-items: start; }
.match { padding: 16px; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); } .split > .match { position: sticky; top: 8px; }
.mazeview { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); } .banner { position: relative; margin: -16px -16px 0; min-height: 136px; padding: 16px; display: grid; align-content: end; border-radius: calc(var(--corner-panel) - 1px) calc(var(--corner-panel) - 1px) 0 0; background: linear-gradient(#0a142210 10%, #0f1c30e6 78%, #0f1c30), var(--art, none) center / cover, var(--theme) center / cover; } .banner .about { color: var(--soft); font-size: 14px; } .banner h1, .banner h2 { font-size: 26px; text-shadow: 0 1px 6px #000; } .banner a { color: inherit; }
.mazeview > .under { position: absolute; right: 12px; top: 12px; z-index: 2; } .mazeview > .under .button { background: var(--surface); } .mapbox:empty { display: none; } .map { height: 112px; padding: 12px; border-radius: var(--corner); background: var(--sunk); display: grid; place-items: center; } .map canvas { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.sets { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); } .set { border: 0; margin: 0; padding: 0; min-width: 0; } .set legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--soft); } .set > small { margin-top: 8px; }
.set.said { display: flex; gap: 12px; align-items: flex-start; } .set.said b { font-weight: 600; } .set.said .icon { color: var(--brass); margin-top: 2px; }
.halves { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: var(--corner-panel); background: var(--sunk); } .halves label { cursor: pointer; } .halves input { position: absolute; opacity: 0; pointer-events: none; } .halves span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid transparent; border-radius: var(--corner); color: var(--soft); } .halves label:hover span { color: var(--text); background: var(--wash); } .halves input:checked + span { color: var(--text); font-weight: 600; background: var(--tint); border-color: var(--brass); } .halves input:checked + span .icon { color: var(--brass); } .halves input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.act { display: grid; gap: 8px; } .act small { text-align: center; } .act small:empty { display: none; } .act .big { width: 100%; } .split > .match > .act { position: sticky; bottom: 0; z-index: 2; margin: -8px -16px -16px; padding: 8px 16px 16px; border-radius: 0 0 7px 7px; background: var(--surface); } .act .row > * { flex: 1; justify-content: center; }
.lobby { grid-template-areas: "crowd match" "talk match"; grid-template-rows: auto 1fr; gap: 16px 24px; } .crowd { grid-area: crowd; } .talk { grid-area: talk; min-height: 240px; display: flex; flex-direction: column; } .lobby > .match { grid-area: match; } .lobby > .panel { min-width: 0; }
.people { padding: 8px 16px 16px 24px; } .players { list-style: none; margin: 0; padding: 0; max-height: 400px; overflow: auto; } .players li { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 8px 8px 0; border-top: 1px solid var(--line-faint); } .players .avatar { width: 44px; height: 44px; } .players .set-go .avatar { border-color: var(--good); } .players li > div { min-width: 0; margin-right: auto; } .players b { display: flex; align-items: center; gap: 8px; font-weight: 600; } .players b span { overflow-wrap: anywhere; } .players b .icon { color: var(--brass); } .players .away { opacity: .6; } .players:has(.out) li:not(:has(.out)) { padding-right: 56px; } .players .empty { color: var(--soft); } .players li:has(.out) { padding-right: 0; }
.invite { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px 12px 24px; border-top: 1px solid var(--line); background: var(--sunk); border-radius: 0 0 calc(var(--corner-panel) - 1px) calc(var(--corner-panel) - 1px); } .invite > div { margin-right: auto; } .invite b { font: 600 26px/1.2 var(--serif); letter-spacing: .12em; user-select: all; -webkit-user-select: all; color: var(--brass); }
.last { padding: 12px 24px; border-bottom: 1px solid var(--line); } .last h2 { font: 600 14px/1.4 var(--sans); color: var(--soft); } .last ol { list-style: none; margin: 4px 0 0; padding: 0; } .last li { display: flex; align-items: center; gap: 8px; min-height: 32px; } .last li > i:not(.dot) { font-style: normal; color: var(--brass); width: 1em; } .last li b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .last .mine b { font-weight: 600; } .last li span:not(.dot) { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines-of-chat { flex: 1; min-height: 96px; max-height: 320px; overflow: auto; padding: 12px 24px; overflow-wrap: anywhere; } .lines-of-chat p { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; } .lines-of-chat span { min-width: 0; } .lines-of-chat b { display: block; font-weight: 600; font-size: 14px; color: var(--soft); }
.talk .say { position: relative; margin: 0 16px 16px; } .talk .say input { width: 100%; padding-right: 48px; } .talk .say .bare-button { position: absolute; right: 0; top: 0; }
.inside { flex: 1; }

/* picking a maze */
.picker { display: flex; flex-direction: column; gap: 16px; min-height: 0; } .find { display: flex; gap: 8px; } .seek { position: relative; flex: 1; min-width: 0; } .seek input { width: 100%; padding-left: 40px; } .seek .icon { position: absolute; left: 12px; top: 12px; color: var(--soft); } .scroller > .button { margin: 16px auto; display: flex; }
/* a maze's card: a panel like the others, its picture flush at the top and its name under it */
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.pick, .own { display: grid; grid-template-rows: auto 1fr; align-content: start; min-width: 0; padding: 0 0 12px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--corner-panel); background: var(--surface); box-shadow: var(--shadow-small); color: var(--text); text-align: center; transition: border-color .18s, transform .18s; }
.pick:hover, .own:has(> .card:hover) { border-color: var(--edge); transform: translateY(-2px); } .pick.on { border-color: var(--brass-line); box-shadow: 0 0 0 1px var(--brass-line), var(--shadow-small); } .pick.on .plaque b { color: var(--brass); }
.pic { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sunk); border-bottom: 1px solid var(--line-faint); }
.pic > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; } :is(.pick:hover, .card:hover) .pic > img { transform: scale(1.04); }
.pic::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 70%, #0f1c3066); }
.pic > .plan { min-height: 0; padding: 12px; background: none; object-fit: contain; }
.tick { position: absolute; z-index: 1; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; display: none; place-items: center; background: var(--brass); color: var(--ink); } .tick .icon { width: 16px; height: 16px; } .pick.on .tick { display: grid; }
.plaque { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 12px 12px 0; min-width: 0; }
.plaque b, .plaque h3 { font: 600 20px/1.2 var(--serif); color: var(--text); overflow-wrap: anywhere; margin: 0; } .plaque small { font-size: 14px; } .plaque .dot { width: 8px; height: 8px; margin-right: 8px; }

/* join */
.narrow { width: 100%; max-width: 800px; margin: 0 auto; display: grid; gap: 24px; } .bycode { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 24px; }
.codebox { display: flex; gap: 8px; } .codebox input.code { width: 176px; min-height: 56px; font: 600 26px var(--serif); letter-spacing: .12em; text-transform: uppercase; text-align: center; } .codebox .button { min-height: 56px; min-width: 96px; }
.rooms { display: grid; gap: 8px; margin-top: 8px; } .room { display: grid; grid-template-columns: minmax(0, 1fr) auto 132px 96px; gap: 8px 24px; align-items: center; min-height: 72px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--corner-panel); background: var(--surface); color: inherit; text-decoration: none; transition: border-color .12s, background .12s; } .room:hover { border-color: var(--edge); background: var(--surface-up); } .room b { font: 600 20px/1.25 var(--serif); overflow-wrap: anywhere; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; color: var(--soft); font-size: 14px; } .facts span { display: inline-flex; gap: 8px; align-items: center; } .facts .icon { color: var(--brass); }

/* what is inside a panel */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; } .cards:has(> .none) { grid-template-columns: minmax(0, 1fr); } .own { grid-template-rows: auto auto; } .own > .row { justify-content: space-between; margin: 8px 12px 0; padding: 8px 0 0; border-top: 1px solid var(--line-faint); text-align: left; }
.card { display: grid; color: inherit; text-decoration: none; } .card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.plan { width: 100%; height: 100%; min-height: 112px; object-fit: cover; background: var(--sunk); display: block; } .plan.drawn { object-fit: contain; padding: 8px; }
.mazepage .times-of { padding: 16px 24px 24px; min-width: 0; } .mazepage .headrow { margin-bottom: 16px; } .mazepage .headrow h2 { margin-right: auto; } .desc { white-space: pre-wrap; overflow-wrap: anywhere; }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; } .times > div { padding: 12px 16px; border-radius: var(--corner); background: var(--sunk); } .times dt { color: var(--soft); font-size: 14px; } .times dd { margin: 0; font: 600 26px/1.3 var(--serif); font-variant-numeric: tabular-nums; } .times a { font-size: 14px; display: inline-block; padding: 4px 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; } .tabs button { border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; padding: 4px 16px; min-height: 44px; color: var(--soft); white-space: nowrap; flex: none; } .tabs button:hover { color: var(--text); } .tabs button.on { border-color: var(--brass); color: var(--text); font-weight: 600; } .tabs button:focus-visible { outline-offset: -3px; }
.board { width: 100%; border-collapse: collapse; } .board td { padding: 8px 12px; height: 48px; border-bottom: 1px solid var(--line-faint); } .board tr:last-child td { border-bottom: 0; } .board .place { width: 3em; color: var(--brass); text-align: right; font: 600 20px var(--serif); } .board .time { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; } .board .time small { font-weight: 400; } .board .far { color: var(--soft); } .board .acts { text-align: right; white-space: nowrap; } .board .acts a { display: inline-block; padding: 8px 0; } .board .acts a + a { margin-left: 16px; } .board .mine { background: var(--tint); } .board .gap td { color: var(--soft); text-align: center; padding: 2px; height: 24px; }
.two { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(300px, 1.2fr); gap: 32px; } .glass { position: relative; min-height: 320px; border: 1px solid var(--line); border-radius: var(--corner-panel); overflow: hidden; background: var(--sunk); } .glass canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .25s; } .glass.there canvas { opacity: 1; } .glass > i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--gold); transition: width .2s; } .glass.there > i { display: none; }
.field { display: grid; gap: 8px; margin-bottom: 24px; color: var(--soft); font-size: 14px; } .field input { color: var(--text); font-size: 16px; max-width: 320px; }
.swatches, .choice { display: flex; flex-wrap: wrap; gap: 8px; } .swatches button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ring); padding: 0; } .swatches .on { outline: 2px solid var(--brass); outline-offset: 2px; }
.choice button, .binds button { min-height: 44px; padding: 4px 16px; border: 1px solid var(--line); border-radius: var(--corner); background: var(--sunk); color: var(--text); } .choice button:hover, .binds button:hover { border-color: var(--edge); } .choice .on, .binds .on { border-color: var(--brass); background: var(--tint); font-weight: 600; }
.lines { display: grid; } .lines label { min-height: 56px; border-bottom: 1px solid var(--line-faint); } .lines label:last-child { border: 0; } .lines label:not(.check) { display: grid; grid-template-columns: 200px minmax(0, 1fr) 4em; gap: 16px; align-items: center; } .lines select { grid-column: 2 / 4; } .lines output { text-align: right; color: var(--soft); font-variant-numeric: tabular-nums; } .check { display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 44px; } .resets { margin-top: 16px; } .resets .text-button { margin-left: -12px; }
.devices { display: grid; gap: 32px; } .devices h3, .devices summary { display: flex; align-items: center; gap: 12px; min-height: 44px; font: 600 20px/1.2 var(--serif); color: var(--text); } .devices h3 .icon { color: var(--brass); } .devices h4 { margin: 24px 0 8px; font: 600 14px/1.4 var(--sans); color: var(--soft); } .devices .chip { font: 400 14px/1.4 var(--sans); } .devices section:first-child .chip { border-color: var(--brass); color: var(--text); }
.others { border-top: 1px solid var(--line); } .others:empty { display: none; } .others details { border-bottom: 1px solid var(--line); } .devices summary { min-height: 56px; font: 400 16px/1.2 var(--sans); color: var(--soft); cursor: pointer; list-style: none; } summary::-webkit-details-marker { display: none; } .devices summary:hover, .others [open] summary { color: var(--text); } .opens { margin-left: auto; } [open] > summary .opens { transform: rotate(180deg); } .others details > div { padding-bottom: 16px; }
.binds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr) 132px); gap: 8px 16px; align-items: center; } .binds > :nth-child(4n + 3) { padding-left: 16px; } .binds button { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fail { display: grid; gap: 16px; justify-items: start; } #fail { position: fixed; inset: auto 20px 20px; padding: 12px 16px; border-radius: var(--corner); background: var(--late-ground); }
dialog { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); } dialog::backdrop { background: var(--scrim); animation: none; } dialog form { display: grid; gap: 16px; } dialog label { display: grid; gap: 8px; } dialog .check { display: flex; } dialog.ask .row { justify-content: flex-end; } dialog .shut { position: absolute; right: 12px; top: 12px; z-index: 3; }
dialog.panel { padding: 0; overflow: hidden; background: var(--surface); } dialog[open].page, dialog[open].choose { display: flex; } dialog.page { width: 800px; } dialog.page:has(.settings) { height: 720px; } dialog.choose { width: 840px; height: 720px; } dialog > .inner { flex: 1; min-width: 0; overflow: auto; } dialog .named { padding: 24px 64px 0 32px; } dialog.page .panel { border: 0; background: none; box-shadow: none; padding-top: 16px; } dialog.page .panel::before { display: none; } dialog.choose > .inner { display: flex; flex-direction: column; gap: 16px; padding: 24px 24px 0; overflow: hidden; } dialog.choose h2 { font-size: 26px; padding-right: 48px; } dialog .scroller { flex: 1; overflow: auto; padding: 4px 4px 24px; margin: 0 -4px; } dialog .picker { flex: 1; } dialog.ranks > .inner { padding: 4px 8px 24px; overflow: auto; } dialog.ranks .times-of { border: 0; background: none; box-shadow: none; padding: 12px 16px; } dialog.ranks .times-of::before { display: none; } dialog.ranks .headrow { margin-bottom: 16px; } dialog.ranks .headrow h2 { width: 100%; } dialog.ask { padding: 24px; min-width: min(400px, 100%); } .p-room dialog .mytimes { display: none; } .bare dialog { font-weight: 400; touch-action: auto; user-select: text; -webkit-user-select: text; }

/* the game */
body.bare { overflow: hidden; position: fixed; inset: 0; background: var(--ground); font-weight: 600; touch-action: none; overscroll-behavior: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.bare header { display: none; } #app:has(> main.bare) { display: block; } .bare .inside { display: none; } body.bare main:not(.bare) { max-width: none; padding: 0; margin: 0; display: block; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; } .watching #c { cursor: default; }
.hud { position: fixed; pointer-events: none; } #tl, #tr { top: calc(12px + var(--t)); padding: 8px 16px; border-radius: var(--corner-panel); background: var(--veil); box-shadow: inset 0 0 0 1px var(--brass-line), var(--shadow-small); } #tl { left: calc(12px + var(--l)); } #tr { right: calc(12px + var(--r)); text-align: right; min-width: 92px; } .touch #tr, .watching #tr { right: calc(70px + var(--r)); } #tl:not(:has(> :not(:empty))), #tr:not(:has(> :not(:empty))) { display: none; }
#time { font-size: 26px; line-height: 1.2; font-variant-numeric: tabular-nums; } #best, #deaths { color: var(--soft); font-weight: 400; font-size: 14px; font-variant-numeric: tabular-nums; } #diff { font-size: 16px; font-variant-numeric: tabular-nums; }
#toast { border: 1px solid var(--brass-line); left: 50%; top: 14%; transform: translateX(-50%); width: max-content; max-width: 84vw; text-align: center; padding: 8px 16px; border-radius: var(--corner); background: var(--veil); font-size: 16px; opacity: 0; transition: opacity .2s; } #toast.on { opacity: 1; }
#task { top: calc(12px + var(--t)); left: 50%; transform: translateX(-50%); width: max-content; max-width: 46vw; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--corner); background: var(--veil); text-align: center; font-variant-numeric: tabular-nums; } #task:empty { display: none; } #task.on { border-color: var(--brass); color: var(--brass); font: 600 20px/1.2 var(--serif); }
#fps { right: calc(14px + var(--r)); bottom: calc(6px + var(--b)); font-size: 13px; color: var(--soft); text-shadow: 0 1px 3px #000; }
#left { left: calc(12px + var(--l)); top: calc(84px + var(--t)); } .places { list-style: none; margin: 0; padding: 8px; background: var(--veil); box-shadow: inset 0 0 0 1px var(--brass-line); border-radius: var(--corner); min-width: 190px; counter-reset: p; font-size: 14px; } .places:empty { display: none; } .places li { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: var(--corner-small); counter-increment: p; } .places li::before { content: counter(p); color: var(--brass); width: 1em; } .places b { font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .places span { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; color: var(--soft); } .places .me { background: var(--tint); max-width: none; } .places .out { opacity: .5; }
#splits { right: calc(12px + var(--r)); top: calc(130px + var(--t)); padding: 12px 16px; background: var(--veil); border-radius: var(--corner); font-weight: 400; font-size: 14px; max-width: calc(100vw - 24px); } #splits b { color: var(--brass); } #splits td { padding: 1px 8px 1px 0; } #splits td + td { text-align: right; font-variant-numeric: tabular-nums; min-width: 56px; } #splits .now { color: var(--brass); }
#b-menu { display: none; position: fixed; right: calc(12px + var(--r)); top: calc(12px + var(--t)); width: 48px; height: 48px; padding: 0; place-items: center; border: 1px solid var(--brass-line); border-radius: var(--corner); background: var(--veil); color: var(--brass); } #b-menu .icon { width: 24px; height: 24px; } .touch #b-menu, .watching #b-menu { display: grid; }
#pad { display: none; } .touch #pad { display: flex; gap: 12px; position: fixed; left: calc(16px + var(--l)); right: calc(16px + var(--r)); bottom: calc(16px + var(--b)); pointer-events: none; } .watching #pad { display: none !important; }
#pad button { pointer-events: auto; width: 64px; height: 64px; border-radius: 50%; padding: 0; font-size: 14px; touch-action: none; border: 1px solid var(--brass-line); background: var(--veil-light); } #pad button.down, #pad button.on { background: var(--brass); color: var(--ground); }
#stick { position: fixed; left: 0; top: 0; width: 0; height: 0; pointer-events: none; } #stick::before, #stick > i { content: ""; position: absolute; border-radius: 50%; border: 2px solid #f4ecd8aa; background: var(--scrim-light); } #stick::before { left: -54px; top: -54px; width: 108px; height: 108px; } #stick > i { left: -26px; top: -26px; width: 52px; height: 52px; background: #f4ecd866; } #stick::after { content: ""; position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%; border: 1px dashed #f4ecd866; }
#menu, #over { position: fixed; inset: 0; display: grid; place-items: center; padding: calc(16px + var(--t)) calc(16px + var(--r)) calc(16px + var(--b)) calc(16px + var(--l)); background: var(--scrim); z-index: 5; overflow: auto; touch-action: pan-y; } #over { background: var(--scrim-light); z-index: 4; }
.sheet { width: min(440px, 100%); padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; font-weight: 400; max-height: 100%; overflow: auto; background: var(--surface); } .sheet h3 { margin-bottom: 4px; } .sheet h3 small { display: inline; font-weight: 400; }
.items { display: grid; border: 1px solid var(--line); border-radius: var(--corner); overflow: hidden; } .item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 12px; border: 0; background: var(--surface-up); text-align: left; font-size: 16px; font-weight: 400; } .item + .item { border-top: 1px solid var(--line); } .item:hover { background: var(--raised-up); } .item:focus-visible { outline-offset: -2px; } .item .icon { color: var(--brass); } .item kbd { margin-left: auto; } .ends { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; } .menu .ends { justify-content: space-between; margin: 0 -8px -8px; }
.steps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; } .steps button { min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--corner); background: var(--sunk); font-variant-numeric: tabular-nums; } .steps button:hover { border-color: var(--edge); } .steps [aria-current=true] { border-color: var(--brass); background: var(--tint); font-weight: 600; }
.grand { border: 2px solid transparent; background: var(--night) padding-box, var(--frame) border-box; box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px var(--brass-line), var(--shadow); } .grand::before { display: none; }
.results { width: min(560px, 100%); } .results .own { display: grid; grid-template-rows: none; justify-items: center; gap: 4px; text-align: center; padding: 8px 0; overflow: visible; } .results .own > small { font: 600 20px var(--serif); color: var(--brass); } .huge { font: 600 56px/1.05 var(--serif); font-variant-numeric: tabular-nums; } .news { color: var(--soft); } .links { display: flex; justify-content: center; } .links:empty { display: none; } .results .ends { gap: 8px 12px; } .results .ends .button { flex: 1 1 200px; } .results .ends > :is(.text-button, small) { flex: 1 0 100%; justify-content: center; text-align: center; } .scroll { max-height: 38vh; overflow: auto; } .scroll { border-block: 1px solid var(--line-faint); } .scroll .board td { padding: 4px 8px; } .scroll .board .place { width: 2.2em; text-align: center; } :is(.hud, #pad, #b-menu):has(~ #over:not([hidden])) { visibility: hidden; }
@media (max-height: 560px) { .results { gap: 8px; padding: 16px; } .results .own { padding: 0; } .huge { font-size: 44px; } .results .ends .button { min-height: 52px; flex-basis: 140px; padding: 0 8px; } .results .ends > :is(.text-button, small) { flex: 1 0 100%; } }
@media (max-height: 560px) and (min-width: 640px) { .results:has(.scroll) { width: min(840px, 100%); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 24px; overflow: hidden; } .results:has(.scroll) .own { align-content: center; } .results .scroll { grid-area: 1 / 2 / 3 / 3; align-self: center; border: 0; max-height: calc(100vh - 72px - var(--t) - var(--b)); } .results:has(.scroll) .ends { grid-area: 2 / 1; } }
.count { position: fixed; left: 50%; top: 34%; transform: translate(-50%, -50%); font: 600 110px var(--serif); color: var(--brass); text-shadow: 0 2px 20px #000; pointer-events: none; animation: tick .5s ease-out; } @keyframes tick { from { scale: 1.5; opacity: 0; } }
.watchbar, .playbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--b)); padding: 12px 16px; border-radius: var(--corner-panel); background: var(--veil); border: 1px solid var(--deep); } .watchbar { display: flex; align-items: center; gap: 12px; } .playbar { width: min(980px, calc(100vw - 24px)); display: grid; gap: 8px; } .playbar output { font-variant-numeric: tabular-nums; min-width: 4.5em; } .playbar .check { font-weight: 400; } .scrub { position: relative; padding-top: 12px; } .scrub input { width: 100%; margin: 0; touch-action: none; display: block; } .marksbar { position: absolute; left: 8px; right: 8px; top: 0; height: 12px; } .marksbar button { position: absolute; width: 10px; height: 12px; margin-left: -5px; padding: 0; border: 0; background: linear-gradient(90deg, transparent 4px, var(--brass) 4px 6px, transparent 6px); }
.marks { position: fixed; inset: 0; pointer-events: none; overflow: hidden; } .glass .marks { position: absolute; } .marks > * { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; } .tag { font-size: 13px; padding: 0 8px; border-radius: var(--corner-small); background: var(--veil-light); border-bottom: 2px solid var(--c); } .sign { font-size: 16px; color: var(--c); text-shadow: 0 0 3px #000, 0 0 3px #000; }

/* Create lobby: the chosen maze is the page's ground, live (pages/backdrop.ts). No panels over it: the list on the left, what
   is chosen on the right, the world between. Brass is a line, a word or the needle under a choice; the one filled gold is
   the button. */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--ground); }
.backdrop > .still, .backdrop > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.backdrop > .still { background: center / cover no-repeat; } .backdrop:not(:has(> canvas)) { background: none; } .backdrop:not(:has(> canvas))::after { display: none; }   /* the last page's, still seen under it, is taken up */
.backdrop > canvas { opacity: 0; transition: opacity .3s; } .backdrop > canvas.on { transition-duration: .6s; } .backdrop > canvas.on { opacity: 1; }
.backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0a1422e8 0%, #0a1422d0 28%, #0a142200 46%), linear-gradient(270deg, #0a1422ec 0%, #0a1422d8 30%, #0a142200 48%), linear-gradient(#0a1422b8 0%, #0a142200 16%, #0a142200 80%, #0a1422c8 100%); }
body:has(.making:not([hidden]))::before { display: none; } #app:has(.making:not([hidden])) :is(main, header) { max-width: 1480px; }   /* on a wide screen the columns stay near the world between them */
.making { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr) minmax(300px, 380px); gap: 24px 48px; align-items: start; min-height: calc(100dvh - 120px); }
.making .choosing { min-width: 0; } .making .scroller { display: grid; gap: 16px; }
.making .seen { align-self: stretch; display: flex; align-items: flex-end; justify-content: center; }
.making .side { position: sticky; top: 8px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.caps { font: 600 11px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--deep); }
.ticks { display: block; height: 6px; background: linear-gradient(var(--brass-line), var(--brass-line)) bottom / 100% 1px no-repeat, repeating-linear-gradient(90deg, #b18a4555 0 1px, transparent 1px 8px) bottom / 100% 4px no-repeat, repeating-linear-gradient(90deg, #b18a4599 0 1px, transparent 1px 40px) bottom / 100% 6px no-repeat; }
.ruler { display: block; height: 5px; background: linear-gradient(#b18a4588, #b18a4588) bottom / 100% 1px no-repeat, repeating-linear-gradient(90deg, var(--deep) 0 1px, transparent 1px 5px) bottom / 100% 5px no-repeat; }
/* the list: a picture, the name, how many steps and where, and a rule as long as the maze */
.picks.rows { display: flex; flex-direction: column; gap: 2px; }
.pick.row { grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: none; align-items: center; gap: 14px; margin: 0 -8px; padding: 6px 8px; border: 0; border-radius: var(--corner-small); background: none; box-shadow: none; text-align: left; transform: none; }
.pick.row:hover { background: var(--wash); transform: none; } .pick.row.on { background: #e9cd9214; box-shadow: none; } .pick.row.on .says b { color: var(--brass); }
.pick.row .pic { width: 96px; border-radius: 3px; border: 0; box-shadow: 0 0 0 1px var(--line); } .pick.row.on .pic { box-shadow: 0 0 0 2px var(--brass); } .pick.row .pic::after { display: none; } .pick.row .pic > .plan { padding: 4px; }
.pick.row .says { display: grid; gap: 4px; min-width: 0; } .pick.row .says b { font: 600 20px/1.15 var(--serif); color: var(--text); overflow-wrap: anywhere; } .pick.row .says small { font-size: 13px; color: var(--faint); }
.making .find { gap: 12px; } .making .seek input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; } .making .find select { border-color: transparent; background-color: transparent; }
/* what is chosen */
.making .chosen { min-height: 241px; }   /* its room kept while it is fetched: nothing below it moves */
.about { display: grid; gap: 16px; } .about .title { display: grid; gap: 6px; } .about h2 { margin: 0; font: 600 44px/1.05 var(--serif); text-wrap: balance; }
.gauge { display: flex; align-items: center; gap: 24px; min-height: 160px; } .gauge .facts { display: grid; gap: 8px; font-size: 15px; color: var(--soft); } .gauge .facts b { color: var(--text); font-variant-numeric: tabular-nums; } .gauge .text-button { padding-inline: 0; color: var(--brass); font-weight: 600; }
.dial { flex: none; width: 160px; height: 160px; } .dial svg { display: block; width: 100%; height: 100%; }
.dial .rim { fill: #0a1422aa; stroke: var(--deep); stroke-width: 1; } .dial .minutes { fill: none; stroke: #b18a4588; stroke-width: 6; } .dial .steps { fill: none; stroke: var(--brass); stroke-width: 12; } .dial .inner { fill: none; stroke: var(--line); stroke-width: 1; }
.dial text { text-anchor: middle; } .dial .label { fill: var(--deep); font: 600 10px var(--sans); letter-spacing: 2.2px; } .dial .time { fill: var(--text); font: 600 34px var(--serif); }
/* a choice is a word, with a needle under the one taken */
.making .sets { gap: 20px; } .making .set legend { margin-bottom: 4px; font: 600 11px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--deep); }
.making .halves { display: flex; gap: 32px; padding: 0; border: 0; background: none; } .making .halves .icon { display: none; }
.making .halves span { position: relative; justify-content: flex-start; min-height: 44px; padding-bottom: 6px; border: 0; border-radius: 0; background: none; color: var(--faint); font-size: 18px; font-weight: 500; }
.making .halves label:hover span { background: none; color: var(--text); } .making .halves input:checked + span { background: none; color: var(--text); font-weight: 500; }
.making .halves input:checked + span::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 28px; height: 2px; background: var(--brass); } .making .halves input:checked + span::before { content: ""; position: absolute; left: -3px; bottom: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.making .set small { color: var(--soft); font-size: 14px; }
.making .act .big { min-height: 56px; width: 100%; border: 0; border-image: none; border-radius: 4px; background: var(--brass); color: var(--ink); font: 600 21px var(--serif); filter: none; box-shadow: inset 0 0 0 1px #fff7, 0 0 0 1px var(--deep), 0 8px 24px #0008; }
.making .act .big:hover { background: var(--brass-light); border-image: none; } .making .act .big:disabled { background: var(--sunk); color: var(--faint); box-shadow: 0 0 0 1px var(--line); }
/* the steps along the bottom */
.stops { user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: pointer; position: sticky; bottom: 24px; display: flex; align-items: flex-start; width: min(440px, 100%); }
.stop { display: grid; justify-items: center; gap: 6px; width: 32px; min-height: 44px; padding: 4px 0; border: 0; background: none; color: var(--soft); cursor: pointer; font: 600 13px var(--serif); }
.stop > i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--deep); background: #0a1422aa; } .stop.past > i, .stop.on > i { background: var(--brass); box-shadow: none; } .stop.on { color: var(--brass); } .stop:hover { color: var(--text); }
.leg { flex: 1; height: 1px; margin-top: 9px; background: #b18a4566; } .leg > i { display: block; height: 1px; width: 0; background: var(--brass); }
.track { position: relative; width: 100%; height: 40px; cursor: pointer; background: linear-gradient(#b18a4588, #b18a4588) 0 8px / 100% 1px no-repeat, repeating-linear-gradient(90deg, var(--deep) 0 1px, transparent 1px calc((100% - 1px) / var(--n))) 0 4px / 100% 9px no-repeat; }
.track small { position: absolute; top: 18px; transform: translateX(-50%); font: 600 13px var(--serif); color: var(--soft); }
.track .needle { position: absolute; top: 0; width: 2px; height: 14px; margin-left: -1px; background: var(--brass); } .track .needle::after { content: ""; position: absolute; left: -3px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
/* On a wide screen the lobby is the window's height and does not scroll: the list scrolls in its column, and the side in its own. */
/* a lobby, laid out as Create lobby: who is in it and what they say where the list of mazes is */
.gathered .who { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.gathered .people { padding: 0; } .gathered .players { max-height: none; } .gathered .players li { min-height: 56px; }
.gathered .invite { padding: 12px 0; border: 0; border-block: 1px solid var(--line); border-radius: 0; background: none; }
.gathered .last { padding: 0 0 12px; }
.gathered .chat { display: flex; flex-direction: column; gap: 8px; min-height: 160px; padding: 12px; border: 1px solid var(--line); border-radius: var(--corner); background: #0a1422b0; } .gathered .chat h2 { margin: 0; font: 600 11px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--deep); } .gathered .lines-of-chat > .quiet { margin: auto 0 0; color: var(--faint); font-size: 14px; }
.gathered .lines-of-chat { flex: 1; min-height: 0; padding: 0; max-height: 320px; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: #b18a4566 transparent; } .gathered .chat .say { position: relative; } .gathered .chat .say input { width: 100%; padding-right: 48px; } .gathered .chat .say .bare-button { position: absolute; right: 0; top: 0; }
.gathered .chosen { display: grid; gap: 4px; } .gathered .chosen .change { justify-self: start; padding-inline: 0; color: var(--brass); font-weight: 600; }
.making .act { display: grid; gap: 8px; } .making .act small { color: var(--soft); font-size: 14px; } .making .act small:empty { display: none; }
.making .act .big:not(.main) { background: none; color: var(--text); box-shadow: inset 0 0 0 1px var(--brass-line); } .making .act .big:not(.main):hover { background: var(--wash); }
@media (min-width: 761px) {
  .making { height: calc(100dvh - 112px); min-height: 420px; align-items: stretch; }
  .making .choosing { display: flex; flex-direction: column; min-height: 0; } .making .choosing > .picker { flex: 1; min-height: 0; }
  .making .scroller { flex: 1; min-height: 0; overflow: hidden auto; align-content: start; padding: 4px 6px 4px 12px; margin: -4px 0 -4px -12px; scrollbar-width: thin; scrollbar-color: #b18a4566 transparent; }
  .gathered .who { min-height: 0; overflow: hidden auto; padding: 4px 6px 4px 12px; margin: -4px 0 -4px -12px; scrollbar-width: thin; scrollbar-color: #b18a4566 transparent; } .gathered .chat { flex: 1 1 0; min-height: 220px; } .gathered .lines-of-chat { max-height: none; }
  .making .side { position: static; min-height: 0; overflow: hidden auto; padding: 4px 8px 4px 12px; margin: -4px -8px -4px -12px; scrollbar-width: thin; scrollbar-color: #b18a4566 transparent; }
}
@media (min-width: 1900px) { #app:has(.making:not([hidden])) { zoom: 1.2; min-height: calc(100dvh / 1.2); } .making { height: calc(100dvh / 1.2 - 112px); } }
@media (min-width: 2400px) { #app:has(.making:not([hidden])) { zoom: 1.4; min-height: calc(100dvh / 1.4); } .making { height: calc(100dvh / 1.4 - 112px); } }
@media (max-width: 1000px) { .making { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) minmax(280px, 320px); gap: 16px 24px; } }
@media (max-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; } .lobby { gap: 16px; } .door b { font-size: 34px; } .room { grid-template-columns: minmax(0, 1fr) auto auto 88px; gap: 8px 16px; } }
@media (max-width: 760px) {
  .making { grid-template-columns: minmax(0, 1fr); gap: 16px; min-height: 0; padding-bottom: 88px; } .making .seen { order: -2; height: 30vh; } .making .side { order: -1; position: static; gap: 16px; }
  .making .stops { position: static; } .backdrop::after { background: linear-gradient(#0a1422b8 0%, #0a142200 16%); } main:has(.making:not([hidden])) { background: linear-gradient(#0a142200 0, #0a142200 calc(30vh - 56px), #0a1422e0 calc(30vh + 40px)); }
  .making .chosen { min-height: 183px; } .about h2 { font-size: 34px; } .gauge { min-height: 112px; gap: 16px; } .dial { width: 112px; height: 112px; } .making .halves { gap: 20px; }
  .making .act { position: fixed; z-index: 4; left: 0; right: 0; bottom: 0; padding: 12px calc(16px + var(--r)) calc(12px + var(--b)) calc(16px + var(--l)); background: linear-gradient(#0a142200, #0a1422e0 40%); } .gathered .act:has(small:not(:empty)) { padding-top: 28px; background: linear-gradient(#0a142200, #0a1422f0 28px); } .gathered .act small { text-align: center; } .making.gathered { padding-bottom: 120px; } .gathered:has(.say input:focus) .act { display: none; }   /* the keyboard is up: what is written is not hidden under it */
  .panel::before { border-width: 10px; border-image-width: 10px; }
  header { min-height: calc(60px + var(--t)); padding: calc(4px + var(--t)) calc(12px + var(--r)) 4px calc(16px + var(--l)); gap: 4px; } .emblem svg { width: 44px; height: 44px; } header h1 { font-size: 20px; } .back span { display: none; } .back { padding: 0; } .back + h1 { padding-left: 4px; border: 0; } header:has(.back) .me { padding: 0 4px; } header:has(.back) .me b { display: none; }
  main:not(.bare) { padding: 4px calc(12px + var(--r)) calc(16px + var(--b)) calc(12px + var(--l)); } .home { padding-bottom: 16px; gap: 12px; } .doors, .two, .split, .lobby { grid-template-columns: minmax(0, 1fr); } .doors { gap: 16px; } .two { gap: 24px; }
  .door { min-height: 0; padding: 32px 24px 32px; } .medal { width: 88px; height: 88px; margin-bottom: 8px; } .medal .icon { width: 40px; height: 40px; } .rule { margin: 12px 0; } .home .button.framed { min-height: 56px; }
  .split > .match { position: relative; top: auto; } .lobby { grid-template-areas: "crowd" "match" "talk"; grid-template-rows: none; } .people { padding: 4px 8px 8px 16px; } .invite { padding: 12px 16px; } .last, .lines-of-chat { padding-left: 16px; padding-right: 16px; } .talk { min-height: 200px; }
  .split > .match > .act { position: fixed; z-index: 4; margin: 0; border-radius: 0; left: 0; right: 0; bottom: 0; padding: 8px calc(12px + var(--r)) calc(12px + var(--b)) calc(12px + var(--l)); background: var(--surface); border-top: 1px solid var(--line); } body:has(.split > .match > .act):not(:has(.mazepage)) main:not(.bare) { padding-bottom: calc(120px + var(--b)); } .split.mazepage > .match > .act { position: static; margin: 0; padding: 0; background: none; border: 0; } .mazepage > .match, .making > .match { order: -1; }
  .banner { min-height: 112px; } .making .mapbox { display: none; } .making .banner { min-height: 88px; } .making .sets { grid-template-columns: 1fr 1fr; gap: 12px; } .making .halves { grid-template-columns: 1fr; } .picks { grid-template-columns: 1fr 1fr; gap: 8px; } .plaque b, .plaque h3 { font-size: 16px; } .plaque small { font-size: 13px; }
  .bycode { grid-template-columns: minmax(0, 1fr); padding: 16px; } .codebox input.code { flex: 1; min-width: 0; } .room { grid-template-columns: minmax(0, 1fr) auto; } .room .facts { grid-column: 1; } .room .state { grid-column: 1; grid-row: 3; } .room .button { grid-column: 2; grid-row: 1 / 4; }
  .sheetlike { padding: 16px; } .glass { min-height: 240px; } .cards { grid-template-columns: minmax(0, 1fr); } .board td { padding: 8px 8px; } .board .far { display: none; } .board .acts a + a { margin-left: 8px; } .mazepage .times-of { padding: 12px 12px 16px; } .lines label:not(.check) { grid-template-columns: 112px 1fr 3.4em; gap: 8px; } .lines label:has(> select):not(.check) { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 8px 0; } .lines select { grid-column: 1; } .binds { grid-template-columns: 1.4fr 1fr; gap: 8px; font-size: 14px; } .binds > :nth-child(4n + 3) { padding-left: 0; } .binds button { padding: 4px 8px; white-space: normal; } .tabs button { padding: 4px 12px; }
  .steps { grid-template-columns: repeat(5, 1fr) !important; } .sheet { padding: 16px; } dialog.page, dialog.choose { width: 100vw; max-width: none; height: 100dvh !important; max-height: none; margin: 0; border: 0; border-radius: 0; } dialog .named { padding: calc(16px + var(--t)) 64px 0 16px; } dialog .shut { top: calc(8px + var(--t)); right: 8px; } dialog.choose > .inner { padding: calc(16px + var(--t)) 16px 0; }
}
@media (max-height: 620px) and (min-width: 761px) { .split .mapbox { display: none; } .banner { min-height: 80px; } .door { min-height: 0; padding: 24px 24px 24px; } .medal { width: 84px; height: 84px; margin-bottom: 8px; } .medal .icon { width: 38px; height: 38px; } .rule { margin: 8px 0; } .door b { font-size: 26px; } .home { gap: 8px; padding-bottom: 0; } header { min-height: calc(56px + var(--t)); padding-top: calc(4px + var(--t)); padding-bottom: 4px; } .emblem svg { width: 44px; height: 44px; } }
@media (max-width: 760px) and (orientation: landscape) { .doors { grid-template-columns: 1fr 1fr; } .door { min-height: 0; align-content: start; padding: 16px 24px 24px; } .door b { font-size: 26px; } .medal { width: 64px; height: 64px; } .medal .icon { width: 30px; height: 30px; } .door .say { font-size: 14px; } }
@media (max-width: 720px), (max-height: 500px) {
  .bare { font-size: 14px; } #time { font-size: 20px; } #tl { max-width: 44vw; } #toast { font-size: 16px; top: calc(164px + var(--t)); } #task { top: calc(98px + var(--t)); max-width: 72vw; } body:has(#task:not(:empty)) #left { top: calc(164px + var(--t)); } #left { top: calc(86px + var(--t)); } .places { min-width: 150px; font-size: 13px; } .places b { max-width: 84px; } .playbar .row { gap: 8px; } .playbar .button { padding: 4px 12px; } .count { font-size: 80px; } #splits { top: calc(104px + var(--t)); font-size: 13px; }
}
@media (max-height: 500px) { #task { top: calc(12px + var(--t)); max-width: 46vw; } #toast { top: calc(84px + var(--t)); } body:has(#task:not(:empty)) #left { top: calc(86px + var(--t)); } .touch #pad { flex-direction: column; right: auto; gap: 8px; } .touch #pad button { width: 54px; height: 54px; } .touch:has(.places li) #pad { left: auto; right: calc(16px + var(--r)); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.notice { position: fixed; left: 50%; top: calc(64px + var(--t)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-radius: var(--corner); background: var(--veil); border-bottom: 2px solid var(--brass-line); font-size: 16px; } .notice[hidden] { display: none; } .places .dead { opacity: .75; } .places .dead b { text-decoration: line-through; }
#wait { position: fixed; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 12px; background: var(--ground); color: var(--soft); pointer-events: none; }
#wait canvas { position: static; width: auto; height: auto; max-width: 80vw; max-height: 70vh; }
#wait div { width: min(240px, 60vw); height: 4px; background: var(--raised); }
#wait p { margin: 0; padding: 0 24px; min-height: 3em; text-align: center; }
#wait i { display: block; height: 100%; width: 0; background: var(--brass); transition: width 0.2s; }
.panel.account { max-width: 880px; margin-inline: auto; } .account { display: grid; gap: 24px; } .account section { display: grid; gap: 12px; justify-items: start; } .account section > * { margin: 0; max-width: 100%; } .account .whose { display: flex; gap: 12px; align-items: center; } .account .invite { border: 1px solid var(--line); border-radius: var(--corner-panel); justify-content: space-between; } .account strong, .account .code { font: 600 26px var(--serif); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; } .account .invite + p { margin: 12px 0 0; } .account .row { display: flex; flex-wrap: wrap; gap: 12px; } .account input { min-width: 0; width: 220px; }

/* Pages in the lobby's way (`.flat`): no boxes over the art. Names in serif, labels in small spaced capitals, brass for a
   line or a word or the needle under a choice, and the one gold thing a page has to do. */
.flat { width: 100%; max-width: 1180px; margin-inline: auto; }
.flat .caps { display: block; }
.flat .headrow { min-height: 32px; } .flat .headrow h2 { font-size: 26px; }
.flat .quiet { color: var(--soft); }
.flat input[type=text], .flat input:not([type]) { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding-inline: 0; font-size: 18px; } .flat input[type=text]:focus { border-bottom-color: var(--brass); outline: none; }
.flat .button.main.big, .flat .act .big.main { min-height: 56px; border: 0; border-image: none; border-radius: 4px; background: var(--brass); color: var(--ink); font: 600 21px var(--serif); filter: none; box-shadow: inset 0 0 0 1px #fff7, 0 0 0 1px var(--deep), 0 8px 24px #0008; padding: 0 28px; }
.flat .button.main.big:hover { background: var(--brass-light); } .flat .button.main.big:disabled { background: var(--sunk); color: var(--faint); box-shadow: 0 0 0 1px var(--line); }
.flat .text-button { color: var(--brass); font-weight: 600; padding-inline: 0; } .flat .text-button:hover { background: none; text-decoration: underline; text-underline-offset: 4px; }
/* a choice is a word, with a needle under the one taken */
.flat .choice { gap: 8px 28px; }
.flat .choice button { position: relative; min-height: 40px; padding: 0 0 6px; border: 0; border-radius: 0; background: none; color: var(--faint); font: 500 17px var(--sans); }
.flat .choice button:hover { color: var(--text); border: 0; } .flat .choice .on { color: var(--text); background: none; font-weight: 500; }
.flat .choice .on::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 28px; height: 2px; background: var(--brass); } .flat .choice .on::before { content: ""; position: absolute; left: -3px; bottom: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.flat .field { gap: 10px; margin-bottom: 28px; } .flat .field input { max-width: 360px; }
.flat .swatches .on { outline-color: var(--brass); }
.flat .board td { border-bottom-color: var(--line-faint); } .flat .board .mine { background: #e9cd9214; }
.flat .tabs { gap: 24px; } .flat .tabs button { padding: 4px 0; font-size: 15px; } .flat .tabs button.on { font-weight: 500; }
.flat .times-of { padding: 0; background: none; box-shadow: none; } .flat .times-of::before { display: none; }

/* the maze's own page: what it is on the left, as the lobby's right side is, its times beside */
.flat.mazepage { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.mazepage .side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.mazepage .title { display: grid; gap: 6px; } .mazepage .title h2 { font: 600 44px/1.05 var(--serif); } .mazepage .by { margin: 4px 0 0; color: var(--soft); font-size: 15px; }
.mazepage .map { height: 120px; border-radius: 4px; background: #0a142299; box-shadow: inset 0 0 0 1px var(--line); }
.mazepage .times { gap: 24px; } .mazepage .times > div { padding: 0; background: none; } .mazepage .times dt { font: 600 11px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--deep); } .mazepage .times dd { font-size: 30px; }
.mazepage .act { display: grid; gap: 12px; } .mazepage .act .big { width: 100%; } .mazepage .links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; } .mazepage .links .text-button[aria-pressed] { color: var(--soft); } .mazepage .links .text-button.on { color: var(--brass); }
.mazepage .version { color: var(--faint); }
.mazepage > .times-of .headrow { margin-bottom: 8px; }

/* Join lobby */
.flat.joining { max-width: 880px; gap: 40px; }
.joining .bycode { padding: 0 0 32px; border-bottom: 1px solid var(--line); } .joining .bycode .caps { margin-bottom: 8px; }
.joining .codebox { gap: 16px; align-items: center; } .joining .codebox input.code { width: 200px; min-height: 56px; border: 0; border-bottom: 1px solid var(--brass-line); font-size: 30px; text-align: left; letter-spacing: .2em; }
.joining .codebox .button.big { min-width: 120px; }
.joining .headrow { margin-bottom: 8px; } .joining .headrow small { color: var(--soft); }
.joining .rooms { gap: 0; margin: 0; } .joining .room { border: 0; border-bottom: 1px solid var(--line-faint); border-radius: 0; background: none; padding: 12px 0; } .joining .room:hover { background: none; } .joining .room:hover b { color: var(--brass); }
.joining .room .button { border: 0; background: none; color: var(--brass); font-weight: 600; justify-self: end; padding: 0; min-height: 0; box-shadow: none; }
.joining .none { padding: 24px 0; border: 0; background: none; display: grid; justify-items: start; gap: 4px; }

/* oneself, someone else, an account */
.flat.sheetlike { padding: 8px 0 32px; gap: 24px; background: none; box-shadow: none; } .flat.sheetlike::before { display: none; }
.flat .two { gap: 48px; } .flat .glass { border-radius: 4px; }
.flat .mytimes h2, .flat.sheetlike > h2 { font-size: 26px; }
.flat.account h2 { font-size: 26px; } .flat.account .row { gap: 16px; align-items: center; }

/* Home: the two doors, and building as a word beneath */
.home .text-button.build { min-height: 48px; font-size: 18px; color: var(--brass); font-weight: 600; } .home .text-button.build:hover { background: none; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 760px) {
  .flat.mazepage { grid-template-columns: minmax(0, 1fr); gap: 32px; } .mazepage .title h2 { font-size: 34px; }
  .joining .bycode { grid-template-columns: minmax(0, 1fr); } .joining .codebox input.code { flex: 1; width: auto; min-width: 0; }
  .joining .room { grid-template-columns: minmax(0, 1fr) auto; }
  .flat .two { grid-template-columns: minmax(0, 1fr); gap: 24px; } .flat.sheetlike { padding: 0 0 24px; }
  .flat .choice { gap: 4px 20px; }
}
.mazepage .links { justify-content: flex-start; } .mazepage .links > * { flex: none; justify-content: flex-start; }

/* Dialogs in the lobby's way: a solid night ground under a brass hairline, no frame; inside, the flat rules hold. */
dialog.panel { border: 1px solid var(--brass-line); border-radius: 6px; background: #0b1524; box-shadow: 0 0 0 1px #0008, 0 24px 64px #000c; }
dialog.panel::before { display: none; }
dialog .named h2, dialog.choose h2 { font-size: 30px; }
dialog.page .flat.sheetlike { padding: 16px 32px 32px; gap: 20px; }
dialog.choose > .inner.flat { max-width: none; } dialog.ranks .flat .times-of { padding: 12px 16px; }
.flat select { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background-color: transparent; padding-left: 0; } .flat select:focus { border-bottom-color: var(--brass); outline: none; }
dialog.choose .seek .icon { left: 0; } dialog.choose .seek input { padding-left: 30px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; font-size: 17px; } dialog.choose .seek input:focus { border-bottom-color: var(--brass); outline: none; }
/* settings: what a part is called in small capitals, keys as words over a line, the one taken on a brass line */
.flat .devices h4, .flat .account h3 { margin: 0; font: 600 11px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--deep); }
.flat .devices h4 { margin: 24px 0 8px; } .flat .devices .chip { border-color: var(--brass-line); }
.flat .binds button { min-height: 44px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding-inline: 0; } .flat .binds button:hover { border-bottom-color: var(--edge); } .flat .binds .on { border-bottom-color: var(--brass); background: none; color: var(--brass); }
.flat .lines label { border-bottom-color: var(--line-faint); }
.flat .resets .text-button { margin-left: 0; }
.flat .account .button { min-height: 44px; padding-inline: 0; border: 0; background: none; box-shadow: none; color: var(--brass); font-weight: 600; } .flat .account .button:hover { background: none; text-decoration: underline; text-underline-offset: 4px; }
.flat .account section > div:empty { display: none; } .flat .account .resets .text-button { color: var(--soft); font-weight: 400; } .flat .account .resets .text-button:hover { color: var(--text); }
.flat .account .invite { padding: 12px 0; border: 0; border-block: 1px solid var(--line); border-radius: 0; background: none; } .flat .account .row { gap: 16px; align-items: center; }
/* asking for a name: the label in capitals, a line to write on, Save the one gold thing */
dialog.ask { padding: 28px 32px 24px; min-width: min(420px, 100%); } dialog.ask form { gap: 20px; } dialog.ask label { gap: 10px; } dialog.ask .row { gap: 24px; align-items: center; } dialog.ask .button.main { min-width: 104px; }
/* what went wrong: words on a brass line over the world, or on the page in serif with the way home */
.flash { border: 0; border-radius: 4px; background: #0b1524f2; box-shadow: inset 0 0 0 1px var(--brass-line), 0 12px 32px #000b; padding: 12px 24px 12px 28px; font-size: 15px; } .flash::before { content: ""; position: absolute; left: 12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--brass); }
.fail.flat { justify-items: start; gap: 12px; } .fail.flat .sorry { font: 600 26px/1.25 var(--serif); }
@media (max-width: 760px) {
  dialog.page, dialog.choose { border: 0; border-radius: 0; }
  dialog.page .flat.sheetlike { padding: 8px 16px 24px; }
  dialog.ask { padding: 24px 20px 16px; }
  .flash { top: calc(68px + var(--t)); width: max-content; max-width: calc(100vw - 32px); }
}

/* In play, as the dialogs are: the menu and the results on a night ground under a brass hairline, no frame; groups as
   rows over lines, what a group is called in spaced capitals, steps as numbers over a line; one gold action. */
.sheet.panel, .sheet.grand { border: 1px solid var(--brass-line); border-radius: 6px; background: #0b1524; box-shadow: 0 0 0 1px #0008, 0 24px 64px #000c; }
.sheet.panel::before { display: none; }
.sheet { gap: 20px; padding: 28px 32px 24px; }
.sheet h3 { margin: 0 0 6px; font: 600 11px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--deep); } .sheet h3 small { margin-left: 8px; letter-spacing: normal; text-transform: none; font-size: 13px; color: var(--soft); }
.sheet .items { border: 0; border-radius: 0; border-top: 1px solid var(--line-faint); } .sheet .item { background: none; padding-inline: 0; border-bottom: 1px solid var(--line-faint); } .sheet .item + .item { border-top: 0; } .sheet .item:hover { background: none; color: var(--brass-light); }
.sheet .item kbd { background: none; border-color: var(--line); color: var(--soft); }
.sheet .steps { gap: 4px 12px; } .sheet .steps button { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: var(--soft); font: 500 17px var(--sans); } .sheet .steps button:hover { color: var(--text); border-bottom-color: var(--edge); } .sheet .steps [aria-current=true] { border-bottom: 2px solid var(--brass); background: none; color: var(--brass); font-weight: 600; }
.sheet .button.main.big { min-height: 56px; border: 0; border-image: none; border-radius: 4px; background: var(--brass); color: var(--ink); font: 600 21px var(--serif); filter: none; box-shadow: inset 0 0 0 1px #fff7, 0 0 0 1px var(--deep), 0 8px 24px #0008; padding: 0 28px; }
.sheet .button.main.big:hover { background: var(--brass-light); }
.sheet .button.big:not(.main) { min-height: 56px; border: 0; border-image: none; border-radius: 4px; background: none; color: var(--text); font: 600 19px var(--serif); filter: none; box-shadow: inset 0 0 0 1px var(--brass-line); padding: 0 24px; } .sheet .button.big:not(.main):hover { background: var(--wash); }
.sheet .text-button { min-height: 44px; color: var(--brass); font-weight: 600; padding-inline: 0; } .sheet .text-button:hover { background: none; text-decoration: underline; text-underline-offset: 4px; }
.menu .ends { margin: 4px 0 0; }
.results .own > small { font: 600 11px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--deep); margin-bottom: 4px; }
.results .own { border: 0; border-radius: 0; background: none; box-shadow: none; padding: 4px 0 8px; } .results .links { gap: 24px; } .results .acts a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brass); font-weight: 600; text-decoration: none; } .results .acts a:hover { text-decoration: underline; text-underline-offset: 4px; } .results .board .mine { background: #e9cd9214; } .results .scroll { border-block-color: var(--line-faint); }
/* what is told while running: words over the world, shaded so they read on a bright floor too */
#tl, #tr { padding: 4px 8px; border-radius: 0; background: none; box-shadow: none; text-shadow: 0 1px 2px #000, 0 0 10px #000c, 0 0 20px #0008; }
#tl > :first-child { font: 600 18px/1.25 var(--serif); } #tr #time { font-family: var(--serif); } #best, #deaths { color: #d9dfe9; }
#b-menu { border: 0; border-radius: 6px; background: #0b1524cc; box-shadow: inset 0 0 0 1px var(--brass-line), 0 8px 24px #0008; }
#toast { border: 0; border-radius: 4px; background: #0b1524e6; box-shadow: inset 0 0 0 1px var(--brass-line), 0 12px 32px #000b; }
/* one's own mazes: the page as the lobby's, New maze the gold thing, nothing yet in words */
.building .headrow .button.main.big { min-height: 52px; font-size: 19px; gap: 10px; }
.flat .none { justify-items: start; text-align: left; padding: 8px 0; border: 0; border-radius: 0; background: none; } .flat .none h2 { font-size: 26px; }
.building .own > .row .text-button { min-height: 40px; }
.players .empty { color: var(--soft); border-top: 1px solid var(--line-faint); background: none; }
/* what an arena asks, a crash, and a run watched again: words on a night ground under a brass hairline */
#task { border: 0; border-radius: 4px; background: #0b1524e6; box-shadow: inset 0 0 0 1px var(--line), 0 12px 32px #000b; } #task.on { box-shadow: inset 0 0 0 1px var(--brass), 0 12px 32px #000b; }
#fail { inset: auto 20px calc(20px + var(--b, 0px)); border-radius: 4px; background: #0b1524f2; box-shadow: inset 0 0 0 1px var(--late), 0 12px 32px #000b; color: var(--text); padding: 12px 20px; }
.watchbar, .playbar { border: 0; border-radius: 6px; background: #0b1524e6; box-shadow: inset 0 0 0 1px var(--brass-line), 0 12px 32px #000b; }
:is(.playbar, .watchbar) .button { min-height: 44px; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--brass); font-weight: 600; padding: 0 8px; } :is(.playbar, .watchbar) .button:hover { background: none; text-decoration: underline; text-underline-offset: 4px; }
.playbar select { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background-color: transparent; } .playbar select:focus { border-bottom-color: var(--brass); outline: none; }
.playbar .who { font: 600 17px var(--serif); }
@media (max-width: 760px) {
  .sheet { padding: 20px 20px 16px; gap: 16px; }
  #tl > :first-child { font-size: 16px; }
}
