:root {
  --ink: #f2ead8;
  --muted: #b9ae97;
  --moss: #6f8a4a;
  --gold: #e3b766;
  --stone: rgba(24, 23, 20, 0.82);
  --line: rgba(227, 183, 102, 0.35);
  --red: #e0795e;
  --serif: "Spectral", Georgia, serif;
  --display: "Cinzel", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #10110e; color: var(--ink); font: 16px/1.5 var(--serif); overflow: hidden; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
button { font: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; }
.hud-left { position: absolute; top: 18px; left: 22px; max-width: 34vw; text-shadow: 0 1px 3px #000; }
.here-label, .goal-label, .group-label { font: 600 12px var(--serif); letter-spacing: .02em; color: var(--muted); }
#here { font: 700 24px/1.15 var(--display); }
#visited { color: var(--muted); font-size: 14px; margin-top: 2px; }
#meter { margin-top: 6px; color: var(--gold); font-weight: 600; }
/* inventory: the stopwatch is held by default; the flashlight reveals the trail */
#inventory { position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; pointer-events: auto; }
.slot { position: relative; width: 92px; height: 78px; display: grid; place-items: center; gap: 0; padding: 8px 4px 6px; background: rgba(18, 17, 14, .78);
  border: 1px solid rgba(227,183,102,.25); border-radius: 4px; color: var(--muted); }
.slot svg { width: 30px; height: 30px; }
.slot span { font-size: 13px; font-variant-numeric: tabular-nums; }
.slot kbd { position: absolute; top: 4px; left: 6px; border: 0; padding: 0; font-size: 11px; }
.slot.on { border-color: var(--gold); color: var(--ink); background: rgba(40, 34, 22, .88); box-shadow: 0 0 0 1px var(--gold) inset; }
/* flashlight battery: a thin bar along the bottom of its slot */
.slot .battery { position: absolute; left: 8px; right: 8px; bottom: 5px; height: 3px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.slot .battery b { display: block; height: 100%; width: 100%; background: var(--gold); }
.slot .battery.low b { background: var(--red); }
.slot .battery.flat b { background: var(--red); opacity: .5; }
#slotTime { font: 700 15px var(--display); color: var(--ink); }
#slotTime.penalty { color: var(--red); }
/* the loading screen sits low over a slow panorama of the first room as its doorways open */
#loading { place-items: end center; padding-bottom: 9vh;
  background: linear-gradient(to top, rgba(16,17,14,.88), rgba(16,17,14,.2) 42%, rgba(16,17,14,0) 60%),
              radial-gradient(ellipse at center, rgba(16,17,14,0) 50%, rgba(16,17,14,.6)); }
.loading-panel { text-align: center; max-width: 480px; background: rgba(22, 22, 18, 0.78); }
.bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; margin: 20px 0 12px; }
.bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s ease; }
#loadText { color: var(--muted); margin: 0; }
.goal-card { position: absolute; top: 16px; right: 18px; width: 300px; display: flex; gap: 12px; background: var(--stone);
  border: 1px solid var(--line); padding: 10px 12px; border-radius: 3px; }
.goal-card img { width: 64px; height: 64px; object-fit: cover; border-radius: 2px; background: #333; flex: none; }
.goal-card img[src=""] { display: none; }
#goalTitle { font: 700 17px/1.2 var(--display); color: var(--gold); }
#goalLine { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#crosshair { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: rgba(255,255,255,.7); box-shadow: 0 0 4px #000; }
#prompt { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); background: var(--stone); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 3px; font-size: 15px; white-space: nowrap; }
#prompt b { color: var(--gold); font-family: var(--display); }
#peek { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); width: min(560px, 90vw); background: var(--stone);
  border: 1px solid var(--line); padding: 14px 18px; border-radius: 3px; }
#peek h3 { margin: 0 0 4px; font: 700 18px var(--display); color: var(--gold); }
#peek p { margin: 0; font-size: 15px; }
#hintPanel { position: absolute; right: 18px; top: 120px; width: 300px; background: var(--stone); border: 1px solid var(--line); padding: 12px; border-radius: 3px; pointer-events: auto; }
.hint-title { font: 700 16px var(--display); margin-bottom: 8px; }
#hintPanel button { display: flex; width: 100%; align-items: center; gap: 10px; text-align: left; background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: var(--ink); padding: 8px 10px; margin-bottom: 6px; border-radius: 2px; }
#hintPanel button span { margin-left: auto; color: var(--red); font-size: 14px; }
kbd { font: 600 12px var(--serif); border: 1px solid var(--muted); border-radius: 3px; padding: 0 5px; color: var(--muted); }
.hint-foot { font-size: 12px; color: var(--muted); }
#fps { position: absolute; right: 16px; bottom: 12px; min-width: 64px; padding: 3px 10px 4px; text-align: right; background: rgba(12,10,8,.55); border-radius: 4px;
  font: 500 13px var(--serif); color: rgba(242,234,216,.75); font-variant-numeric: tabular-nums; }
#fps b { font-size: 20px; font-weight: 600; color: #f2ead8; margin-right: 2px; }
#fps small { font-size: 12px; opacity: .8; }
#fps.slow b { color: var(--red); }
#toast { position: absolute; left: 50%; top: 28px; transform: translateX(-50%); background: var(--stone); border: 1px solid var(--gold); padding: 8px 16px; border-radius: 3px; font-size: 16px; }
.keys { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 13px; color: rgba(242,234,216,.6); text-shadow: 0 1px 2px #000; white-space: nowrap; }
#fade { position: fixed; inset: 0; background: #c9c8bd; opacity: 0; pointer-events: none; transition: opacity .42s ease; display: grid; place-items: center;
  font: 700 34px var(--display); color: #2a2a24; text-align: center; padding: 20px; }
#fade.on { opacity: 1; }

/* ---------- screens ---------- */
.screen { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at center, rgba(16,17,14,.45), rgba(16,17,14,.88)); overflow-y: auto; }
.screen.opaque { background: #10110e; }
.screen[hidden], #hud[hidden] { display: none; }
.panel { width: min(720px, 100%); background: rgba(22, 22, 18, 0.9); border: 1px solid var(--line); padding: 30px 34px; border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); }
h1 { font: 700 clamp(44px, 7vw, 72px)/1 var(--display); margin: 0 0 10px; letter-spacing: .03em; color: var(--gold); }
h2 { font: 700 30px var(--display); margin: 0 0 10px; }
.tag { font-size: 18px; color: var(--muted); margin: 0 0 22px; max-width: 54ch; }
.big { background: var(--gold); color: #1d1a12; border: 0; padding: 12px 26px; font: 700 18px var(--display); border-radius: 3px; }
.big:hover { background: #f0c97e; }
.group { margin-top: 22px; }
.diffs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.diffs button, .pair button, .share button { background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--ink); padding: 10px 8px; border-radius: 3px; font-weight: 600; }
.diffs button:hover, .pair button:hover { border-color: var(--gold); }
.diffs small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.pair { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 8px; margin-top: 6px; }
input, select { font: inherit; background: rgba(0,0,0,.35); color: var(--ink); border: 1px solid var(--line); border-radius: 3px; padding: 9px 10px; width: 100%; }
.ac { position: relative; }
.sugg { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; background: #1d1c18; border: 1px solid var(--line); display: none; max-height: 260px; overflow-y: auto; }
.sugg div { padding: 7px 10px; cursor: pointer; }
.sugg div small { color: var(--muted); }
.sugg div:hover, .sugg div.on { background: rgba(227,183,102,.15); }
.foot { margin-top: 24px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.foot input { width: 160px; margin-left: 6px; padding: 5px 8px; }
#world { margin-left: auto; }
.link { background: none; border: 0; color: var(--gold); padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.error { margin-top: 14px; color: var(--red); }
/* pause: the maze stays behind, too dim and soft to study while the clock is stopped */
#paused { background: rgba(14, 14, 11, .72); backdrop-filter: blur(18px) saturate(.6); -webkit-backdrop-filter: blur(18px) saturate(.6); }
.pause-panel { width: min(560px, 100%); padding: 28px 30px 22px; }
.pause-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.pause-head h2 { margin: 0; }
.pause-time { text-align: right; }
.pause-time span { display: block; font: 700 30px/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.pause-time small, .pause-run small { font-size: 13px; color: var(--muted); }
.pause-run { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 16px 0 20px; }
.pause-run b { display: block; font: 700 18px/1.25 var(--display); margin: 2px 0; }
.pause-run span { font-size: 14px; color: var(--muted); }
.pause-goal { display: flex; gap: 10px; align-items: flex-start; }
.pause-goal img { width: 52px; height: 52px; object-fit: cover; border-radius: 2px; border: 1px solid var(--line); }
.pause-goal img[src=""] { display: none; }
.pause-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.pause-actions #resume { grid-column: 1 / -1; padding: 14px; font-size: 20px; }
.big.secondary.quiet { color: var(--muted); border-color: rgba(185,174,151,.45); }
.big.secondary.quiet.confirm { color: var(--red); border-color: var(--red); }
.pause-keys { margin: 18px 0 0; font-size: 13px; color: var(--muted); line-height: 1.9; }
.pause-keys kbd { margin: 0 1px; }
@media (max-width: 520px) { .pause-run, .pause-actions { grid-template-columns: 1fr; } }
.credit { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.credit a { color: var(--muted); text-underline-offset: 2px; }
.play-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.prerun-panel { text-align: center; }
.from-to { font: 500 26px/1.35 var(--display); }
.from-to b { color: var(--gold); font-weight: 700; }
.pre-goal { display: flex; gap: 14px; align-items: flex-start; text-align: left; margin: 20px 0; }
.pre-goal img { width: 110px; height: 110px; object-fit: cover; border-radius: 3px; flex: none; }
.pre-goal img[src=""] { display: none; }
.pre-goal p { margin: 0; color: var(--muted); }
.pre-opt { font-size: 18px; margin-bottom: 18px; }
.hint-small { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.result-time { font: 700 64px/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.result-sub { color: var(--muted); margin: 6px 0 18px; }
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.map-views { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.map-views button { background: rgba(255,255,255,.04); border: 0; color: var(--muted); padding: 4px 10px; font: 600 12px var(--serif); }
.map-views button + button { border-left: 1px solid var(--line); }
.map-views button[aria-pressed="true"] { background: var(--gold); color: #1d1a12; }
.map-views button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.rg { display: block; width: 100%; height: 100%; user-select: none; }
.rg-edge { stroke: #8a7556; stroke-width: 1.5; stroke-dasharray: 4 4; }
.rg-edge.on { stroke: #c0801c; stroke-width: 3.5; stroke-dasharray: none; stroke-linecap: round; }
.rg-arrowhead { fill: #c0801c; }
.rg-node { cursor: grab; }
.rg-node circle { fill: #e2d6b8; stroke: #8a7556; stroke-width: 1.5; }
.rg-node.on circle { fill: #cdb98a; stroke: #6b5a3c; stroke-width: 2; }
.rg-node.start circle { fill: #2f6b3a; stroke: #ece2c8; stroke-width: 2.5; }
.rg-node.goal circle { fill: #e3c27a; stroke: #b0761c; stroke-width: 2.5; }
.rg-node.stop circle { fill: #ece2c8; stroke: #a8341f; stroke-width: 3; }
.rg-label { font: 12px var(--serif); text-anchor: middle; fill: #7a6a4e; paint-order: stroke; stroke: #ece2c8; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.rg-node.on .rg-label, .rg-node.start .rg-label, .rg-node.goal .rg-label, .rg-node.stop .rg-label { fill: #3a2f1e; font-weight: 600; }
.rg-icon { font-size: 12px; text-anchor: middle; pointer-events: none; }
.route-map { position: relative; height: min(46vh, 420px); margin: 6px 0 18px; border: 1px solid var(--line); border-radius: 3px; background: #ece2c8; overflow: hidden; touch-action: none; }
.route-map:empty { display: none; }
.route-map canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.route-map canvas:active { cursor: grabbing; }
.rm-labels { position: absolute; inset: 0; pointer-events: none; }
.rm-label { position: absolute; left: 0; top: 0; white-space: nowrap; font: 600 12px var(--serif); color: #3a2f1e; text-shadow: 0 0 3px #ece2c8, 0 0 3px #ece2c8, 0 0 2px #ece2c8; }
.rm-label.side { font-weight: 400; font-size: 11px; color: #7a6a4e; }
.rm-label.mark { font-weight: 700; color: #6e4510; }
.rm-label.north { font: 700 15px var(--display); color: #4a3d28; }
.rm-compass { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #8a7556; background: rgba(236,226,200,.85); pointer-events: none; }
.rm-compass span { position: absolute; left: 50%; top: 1px; transform: translateX(-50%); font: 700 11px var(--display); color: #a8341f; }
.rm-compass::after { content: ''; position: absolute; left: 50%; top: 14px; width: 2px; height: 11px; margin-left: -1px; background: #4a3d28; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips a { color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 3px; padding: 3px 8px; font-size: 14px; background: rgba(255,255,255,.04); }
.chips a:hover { border-color: var(--gold); }
.chips a.closer { border-left: 4px solid #6aaa64; } .chips a.same { border-left: 4px solid #c9b458; } .chips a.further { border-left: 4px solid var(--red); }
.share { display: flex; gap: 10px; align-items: stretch; margin-bottom: 16px; }
.share pre { flex: 1; margin: 0; background: rgba(0,0,0,.35); border: 1px solid var(--line); padding: 10px; border-radius: 3px; white-space: pre-wrap; font: 15px var(--serif); }
.board { margin: 6px 0 0; padding-left: 26px; max-height: 220px; overflow-y: auto; }
.board li { padding: 3px 0; }
.board li.me { color: var(--gold); font-weight: 600; }
.board span { color: var(--muted); }
@media (max-width: 720px) {
  .diffs { grid-template-columns: 1fr 1fr; }
  .pair, .paths { grid-template-columns: 1fr; }
  .goal-card { width: 200px; } .hud-left { max-width: 45vw; } #here { font-size: 18px; }
}

/* ---------- start screen ---------- */
/* one centred column: the name, three equal ways to play side by side, then how it works */
#title { place-items: start center; padding: 6vh 24px 32px; }
.start { width: min(1080px, 100%); }
.intro { text-align: center; margin-bottom: 30px; }
.intro h1 { margin-bottom: 8px; }
.intro .tag { margin: 0 auto; max-width: 58ch; color: var(--ink); opacity: .85; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.card { background: rgba(22, 22, 18, 0.92); border: 1px solid var(--line); border-radius: 4px; padding: 20px 22px; }
.mode { display: flex; flex-direction: column; gap: 14px; min-height: 290px; }
.mode-body { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.mode .big { width: 100%; padding: 12px 14px; font-size: 17px; }
.card-label { font: 600 13px var(--serif); color: var(--muted); display: flex; justify-content: space-between; gap: 10px;
  border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.card-label span:first-child { color: var(--ink); font: 700 15px var(--display); }
.daily { border-color: var(--gold); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.daily-pair { font: 600 21px/1.3 var(--display); }
.daily-pair b { color: var(--gold); font-weight: 700; }
.mode-note { color: var(--muted); font-size: 14px; margin: 0; }
.daily-next { font-size: 13px; font-variant-numeric: tabular-nums; }
.big.secondary { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.big.secondary:hover { background: rgba(227,183,102,.12); }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.seg button { background: transparent; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); padding: 9px 4px; font-weight: 600; }
.seg button:nth-child(2n) { border-right: 0; }
.seg button:nth-child(n + 3) { border-bottom: 0; }
.seg button[aria-checked="true"] { background: rgba(227,183,102,.16); color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); }
.field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.field input, .field select { padding: 7px 10px; }
.how { list-style: none; counter-reset: step; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how li { counter-increment: step; position: relative; padding-left: 42px; color: var(--muted); font-size: 15px; }
.how li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold);
  color: var(--gold); font: 700 14px/26px var(--display); text-align: center; }
.how b { color: var(--ink); font-weight: 600; }
.controls { color: var(--muted); font-size: 14px; line-height: 2; text-align: center; margin: 20px 0 0; }
.controls kbd, .how kbd { margin: 0 1px; }
.start .foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.start .credit { margin-top: 10px; }
@media (max-width: 900px) {
  .modes, .how { grid-template-columns: 1fr; }
  .mode { min-height: 0; }
  #title { padding-top: 24px; }
}


/* ---------- leaderboards ---------- */
.board-panel { width: min(860px, 100%); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 14px; overflow-x: auto; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 8px 14px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); }
.day-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.day-nav[hidden] { display: none; }
.day-nav > div { flex: 1; text-align: center; }
.day-nav b { display: block; font: 700 18px var(--display); }
.day-nav span { color: var(--muted); font-size: 14px; }
.day-step { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--gold); font-size: 20px; line-height: 1; }
.day-step:disabled { opacity: .3; cursor: default; }
.table-wrap { max-height: min(52vh, 460px); overflow: auto; border: 1px solid var(--line); border-radius: 3px; }
.table-wrap.short { max-height: 230px; margin-top: 6px; }
.lb { width: 100%; border-collapse: collapse; font-size: 15px; }
.lb th { position: sticky; top: 0; background: #1d1c18; text-align: left; font: 600 12px var(--serif); color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.lb td { padding: 7px 10px; border-bottom: 1px solid rgba(227,183,102,.1); vertical-align: middle; }
.lb tr:last-child td { border-bottom: 0; }
.lb .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb th.num { text-align: right; }
.lb .dim, .lb small { color: var(--muted); }
.lb td.empty { color: var(--muted); text-align: center; padding: 22px; }
.lb tr.me td { background: rgba(227,183,102,.12); }
.lb .you { font-size: 11px; color: #1d1a12; background: var(--gold); border-radius: 2px; padding: 0 5px; margin-left: 4px; font-weight: 700; vertical-align: 1px; }
.medal { display: inline-block; width: 22px; height: 22px; border-radius: 50%; text-align: center; font: 700 12px/22px var(--display); color: #1d1a12; }
.medal.m1 { background: var(--gold); } .medal.m2 { background: #c7c3b8; } .medal.m3 { background: #c08a5a; }
.tag-daily, .tag-custom, .tag-diff { font-size: 11px; font-weight: 700; border: 1px solid var(--line); border-radius: 2px; padding: 0 5px; color: var(--muted); }
.tag-daily { color: var(--gold); border-color: var(--gold); }
.board-note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.rank-line { font-size: 18px; margin: -6px 0 14px; }
.rank-line b { color: var(--gold); font-family: var(--display); }
.name-claim { margin: 0 0 16px; padding: 12px 14px; border: 1px dashed var(--gold); border-radius: 3px; }
.name-claim[hidden] { display: none; }
.name-claim label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.name-claim div { display: flex; gap: 8px; }
.name-claim .big { padding: 8px 18px; font-size: 16px; }
.quiet-link { color: var(--muted); }

.notice { margin-top: 14px; padding: 10px 14px; border: 1px solid var(--red); border-radius: 3px; color: var(--ink); background: rgba(224,121,94,.12); font-size: 15px; }
.notice[hidden] { display: none; }
#nogl[hidden] { display: none; }
@media (max-width: 600px) {
  .lb { font-size: 14px; } .lb th, .lb td { padding: 6px 7px; }
  .board-panel, .panel { padding: 22px 18px; }
  .result-time { font-size: 48px; }
}
.lb .rank { width: 46px; text-align: center; font-variant-numeric: tabular-nums; }
.lb th.rank { text-align: center; }
.mode-note b { color: var(--gold); }
.pre-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pre-actions #shuffle[hidden] { display: none; }
.pre-actions #shuffle:disabled { opacity: .5; cursor: progress; }
#preBack { margin-top: 12px; font-size: 14px; }
.card-label .dice { padding: 0; font-size: 13px; text-decoration: none; }
.card-label .dice:hover { text-decoration: underline; }
.field[hidden] { display: none; }
.screen > * { min-width: 0; max-width: 100%; }
