/* PRISM LIGHT: the keeper's log by lamplight. Night navy, the lamp's brass and cream, the red of a day-mark band, the game's chart lettering (IM Fell English SC) and a book face (Cormorant Garamond). */
:root {
  --bg: #0b1424; --panel: #111d33; --panel-2: #0c1628; --line: #2c3d5a; --ink: #f3ead6; --muted: #98a4b8; --gold: #ffd77a; --gold-d: #c8963c; --red: #c8392b; --cyan: #6fd8ff; --paper: #f3ead6;
  --display: "Cormorant Garamond", Georgia, serif; --chart: "IM Fell English SC", Georgia, serif; --cond: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif; --mono: "IBM Plex Mono", "Lucida Console", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px); --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-tap-highlight-color: transparent; }
body { touch-action: none; user-select: none; -webkit-user-select: none; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
a { color: var(--gold); }
#app-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.eyebrow { margin: 0 0 .4rem; font: 600 .74rem var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.micro { font: 600 .62rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.gold { color: var(--gold); }

/* the loader, in this machine's colours */
.pl-boot { --tl-bg: #0b1424; --tl-bg-2: #111d33; --tl-ink: #f3ead6; --tl-muted: #98a4b8; --tl-line: #2c3d5a; --tl-accent: #ffd77a; --tl-accent-2: #c8392b; --tl-lamp: #ffd77a; --tl-bad: #ff5a4a; }
.pl-boot h1 { font-family: var(--chart); font-weight: 400; font-style: normal; letter-spacing: .04em; font-size: clamp(2.8rem, 8vw, 4.8rem); line-height: .95; color: var(--gold); }
.pl-boot h1 em { color: var(--ink); font-style: normal; }
.pl-boot .tl-field .sea { fill: none; stroke: #4a6a8a; stroke-width: 2; }
.pl-boot .tl-field .ship { fill: #f3ead6; opacity: .85; }
.pl-boot .tl-field .lens { fill: #ffd77a; stroke: #c8963c; }
.pl-boot .tl-field .beam { transform-origin: 100px 300px; animation: pl-sweep 6s ease-in-out infinite alternate; }
.pl-boot .tl-field .lane { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 8 6; opacity: .5; }
@keyframes pl-sweep { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }

/* buttons: black keys with a gold edge */
.btn { position: relative; min-height: 46px; padding: 0 18px; border: 1px solid #3c5070; border-radius: 2px; cursor: pointer;
  background: var(--panel); color: var(--ink); font: 400 1.12rem var(--chart); letter-spacing: .06em; transition: transform .12s, background .12s, border-color .12s; }
.btn:hover, .btn:focus-visible { background: #1a2a46; border-color: var(--gold); outline: none; transform: translateY(-1px); }
.btn.primary { background: linear-gradient(#fff0c4, var(--gold) 45%, var(--gold-d)); border-color: var(--gold); color: #1a1206; box-shadow: 0 0 28px rgba(255,215,122,.35); }
.btn.primary:hover, .btn.primary:focus-visible { background: linear-gradient(#fff0c4, #ffd27a 45%, var(--gold)); }
.btn.ghost { background: transparent; color: #c8d0dc; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.chip { min-width: 42px; min-height: 42px; border: 1px solid var(--line); border-radius: 50%; background: rgba(11,20,36,.8); color: var(--ink); cursor: pointer; font-size: 1rem; }
.chip[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.chip:focus-visible { outline: 2px solid var(--gold); }

/* top bar */
.topbar { position: fixed; z-index: 20; top: calc(var(--st) + 10px); left: calc(var(--sl) + 12px); right: calc(var(--sr) + 12px); display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; text-decoration: none; color: var(--gold); font: 400 1.1rem var(--chart); letter-spacing: .08em; padding: 4px 14px; border-radius: 999px; background: rgba(11,20,36,.82); border: 1px solid var(--line); }
.brand b { color: var(--ink); font-weight: 400; }
.brand .edition { color: var(--muted); }
.brand-mark { width: 20px; height: 20px; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); background: conic-gradient(from 30deg, #ffd77a 0 60deg, #ff7a3c 0 120deg, #6fd8ff 0 180deg, #b493ff 0 240deg, #8ef05c 0 300deg, #b46cff 0); }
.top-actions { display: flex; gap: 8px; }
body[data-screen="loading"] .topbar { display: none; }

/* a panel: the log's night page, a red-and-cream day-mark rule down the side */
.panel { position: relative; color: var(--ink); background: linear-gradient(160deg, rgba(255,215,122,.07), transparent 40%), rgba(12,22,40,.95);
  border: 1px solid #2c3d5a; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.panel::before { content: ''; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 2px; background: repeating-linear-gradient(var(--red) 0 22px, var(--paper) 22px 44px); }

/* screens */
.screen { position: fixed; inset: 0; z-index: 10; display: grid; place-items: end start; padding: calc(var(--st) + 64px) calc(var(--sr) + 16px) calc(var(--sb) + 18px) calc(var(--sl) + 16px); overflow-y: auto; pointer-events: none; }
.screen > * { pointer-events: auto; }
.intro-card { position: relative; width: min(620px, 100%); padding: 20px 24px 18px; }
.intro-card h1 { margin: 0 0 .1rem; font: 400 clamp(3rem, 9vw, 5rem)/.95 var(--chart); letter-spacing: .03em; color: var(--gold);
  background: linear-gradient(#fff6dc, var(--gold) 55%, var(--gold-d)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 18px rgba(255,215,122,.35)); }
.intro-card .vs { margin: 0 0 .6rem; font: 600 .82rem var(--mono); letter-spacing: .2em; color: #e8806e; }
.intro-copy { margin: 0 0 .8rem; font: 600 1.14rem/1.5 var(--display); color: #d8dce4; }
.intro-copy i { font-style: normal; color: var(--gold); }
.forms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 .9rem; }
.forms div { padding: 8px 12px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel-2); }
.forms b { display: block; font: 400 1.1rem var(--chart); letter-spacing: .04em; color: var(--gold); }
.forms div:last-child b { color: var(--cyan); }
.forms span { font: .82rem/1.45 var(--sans); color: #b4bccb; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.intro-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: .8rem; font: .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.intro-meta strong { color: var(--ink); font: 400 1rem var(--mono); letter-spacing: .04em; text-transform: none; }

/* HUD: the score readout, the night card and its clock, the lens, the ship, what is on the water */
.hud { position: fixed; z-index: 12; left: calc(var(--sl) + 12px); top: calc(var(--st) + 62px); display: grid; gap: 7px; width: min(320px, calc(100vw - 24px)); pointer-events: none; }
.hud-score { display: grid; grid-template-columns: 1fr auto; padding: 6px 12px 8px; border-radius: 3px; background: rgba(10,18,32,.93); border: 1px solid #2c3d5a; }
.hud-score .micro { grid-column: 1 / -1; }
.hud-score strong { font: 400 2rem/1 var(--mono); letter-spacing: .06em; color: var(--gold); text-shadow: 0 0 12px rgba(255,215,122,.45); font-variant-numeric: tabular-nums; }
.hud-ball { align-self: end; font: .9rem var(--mono); color: #c8d0dc; }
.hud-round { display: grid; gap: 2px; padding: 7px 12px 9px; background: rgba(10,18,32,.93); border: 1px solid #2c3d5a; border-left: 4px solid var(--red); border-radius: 2px; }
.hud-round strong { display: flex; justify-content: space-between; gap: 8px; font: 400 1.1rem/1.1 var(--chart); letter-spacing: .03em; color: var(--paper); }
.hud-round .clock { font: 600 .9rem var(--mono); color: var(--gold); }
.hud-round > span { font: 500 .86rem/1.35 var(--cond); letter-spacing: .01em; color: #c8d0dc; }
.lens-chip { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; padding: 5px 10px; background: rgba(10,18,32,.93); border: 1px solid #2c3d5a; border-radius: 2px; }
.lens-chip i { width: 18px; height: 18px; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); background: var(--c); box-shadow: 0 0 12px var(--c); transition: transform .38s; }
.lens-chip.is-turning i { transform: rotate(60deg); }
.lens-chip b { font: 400 1.05rem var(--chart); color: var(--c); }
.lens-chip span { font: 500 .74rem/1.25 var(--cond); color: #b4bccb; }
.lens-chip.is-focus { border-color: var(--c); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 40%, transparent); }
.ship-bar { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 6px 10px 7px; background: rgba(10,18,32,.93); border: 1px solid #2c3d5a; border-radius: 2px; }
.ship-bar b { font: 600 1.05rem var(--display); color: var(--paper); }
.ship-bar .pips { display: flex; gap: 3px; align-items: center; }
.ship-bar .pips i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #ffd77a88; background: transparent; }
.ship-bar .pips i.on { background: #ffd77a; box-shadow: 0 0 6px #ffd77a; }
.ship-bar[data-state="bearing"] .pips i { background: #8ef0b0; border-color: #8ef0b0; }
.ship-bar[data-state="lost"] { border-color: var(--red); } .ship-bar[data-state="lost"] .pips i { border-color: #ff6a5a; animation: pl-blink .5s steps(2) infinite; }
.ship-bar > span:last-child { grid-column: 1 / -1; font: 500 .8rem var(--cond); color: #c8d0dc; }
.hud-water { display: flex; flex-wrap: wrap; gap: 5px; }
.hud-water span { padding: 2px 8px 3px; border-radius: 2px; font: 600 .72rem var(--mono); letter-spacing: .06em; background: rgba(10,18,32,.9); border: 1px solid var(--c); color: var(--c); }
@keyframes pl-blink { 50% { opacity: .35; } }
.hud-tags { font: 600 .82rem/1.4 var(--mono); letter-spacing: .06em; color: var(--gold); text-shadow: 0 1px 3px #000; padding: 0 4px; }
.hud-log { font: 500 .74rem var(--mono); letter-spacing: .06em; color: var(--muted); padding: 0 4px; text-shadow: 0 1px 3px #000; }

/* the radio: who is talking, the line typing out */
.radio { position: fixed; z-index: 13; left: 50%; bottom: calc(var(--sb) + 108px); transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); padding: 8px 14px 10px; border-radius: 3px; background: rgba(10,18,32,.94); border: 1px solid #2c3d5a; pointer-events: none; opacity: 0; transition: opacity .3s; }
.radio.is-on { opacity: 1; }
.radio b { display: block; font: 600 .72rem var(--mono); letter-spacing: .2em; color: #8ab4ff; }
.radio[data-who="keeper"] b { color: var(--gold); } .radio[data-who="ship"] b { color: #8ef0b0; }
.radio span { display: block; font: 600 1.08rem/1.4 var(--display); color: #e2e6ee; min-height: 1.45em; }

/* a picture from the game, slid in at the side */
.pin { position: fixed; z-index: 14; right: calc(var(--sr) + 14px); bottom: calc(var(--sb) + 20px); width: min(260px, 44vw); margin: 0; padding: 6px 6px 8px; background: #0c1628; border: 1px solid var(--gold-d); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.6); pointer-events: none; transform-origin: right bottom; }
.pin img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #111d33; }
.pin b { display: block; margin-top: 5px; font: 400 1rem var(--chart); letter-spacing: .04em; color: var(--gold); }
.pin span { display: block; font: .84rem/1.35 var(--sans); color: #c8d0dc; }
.pin.is-in { animation: pl-pin 3.6s ease-out both; }
@keyframes pl-pin { 0% { opacity: 0; transform: translateX(40px); } 10% { opacity: 1; transform: none; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateX(20px); } }

.toasts { position: fixed; z-index: 13; right: calc(var(--sr) + 14px); top: calc(var(--st) + 64px); display: grid; gap: 6px; justify-items: end; pointer-events: none; }
.toast { padding: 4px 12px 5px; border-radius: 2px; background: rgba(10,18,32,.94); border: 1px solid #2c3d5a; color: var(--ink); font: .86rem var(--mono); transition: opacity .5s, transform .5s; }
.toast.big { background: var(--gold); border-color: var(--gold); color: #1a1206; }
.toast.jackpot { background: var(--red); border-color: var(--red); color: #fff; }
.toast.hit { background: #2a1010; border-color: var(--red); color: #ffb0a0; }
.toast.warn { background: #c8301a; border-color: #c8301a; color: #fff; }
.toast.next { background: var(--paper); border-color: var(--paper); color: #1a1410; }
.toast.is-gone { opacity: 0; transform: translateX(20px); }

.callout { position: fixed; z-index: 14; left: 50%; top: 30%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; text-align: center; pointer-events: none; width: min(92vw, 760px); }
.callout span { font: 600 .8rem var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); text-shadow: 0 1px 3px #000; }
.callout strong { font: 400 clamp(2.6rem, 9vw, 5rem)/.95 var(--chart); letter-spacing: .02em; color: var(--paper); text-shadow: 0 0 24px rgba(255,215,122,.55), 0 2px 18px rgba(0, 0, 0, .8); }
.callout em { font: 600 1.2rem var(--display); font-style: normal; color: var(--paper); text-shadow: 0 1px 4px #000; }
.callout.is-in { animation: pl-callout 2.2s ease-out both; }
@keyframes pl-callout { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); } 10% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }

.bonus { position: fixed; z-index: 15; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 24px)); padding: 16px 20px 16px 24px; }
#bonus-list { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; gap: 2px; }
#bonus-list li { display: flex; justify-content: space-between; font: .95rem/1.7 var(--mono); color: #d8dce4; animation: pl-in .3s ease-out both; }
#bonus-list b { color: var(--gold); font-weight: 400; }
.bonus-total { margin: 0; text-align: right; font: 1rem var(--mono); color: var(--muted); } .bonus-total strong { color: var(--gold); font: 400 1.6rem var(--mono); }
@keyframes pl-in { from { opacity: 0; transform: translateX(-10px); } }

/* touch pads */
.controls { position: fixed; z-index: 16; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr minmax(60px, 12vw) minmax(76px, 15vw) minmax(60px, 12vw) 1fr; gap: 8px; padding: 8px calc(var(--sr) + 8px) calc(var(--sb) + 8px) calc(var(--sl) + 8px); pointer-events: none; }
.pad { pointer-events: auto; min-height: 84px; border: 1px solid rgba(60,80,112,.7); border-radius: 4px; background: rgba(12,22,40,.38); color: var(--ink); display: grid; place-items: center; align-content: center; gap: 2px; font: 800 1.4rem var(--sans); touch-action: none; opacity: .6; transition: opacity .2s, background .1s; }
.pad kbd { font: 600 .6rem var(--mono); letter-spacing: .12em; opacity: .75; }
.pad.is-down { background: rgba(255,215,122,.3); border-color: var(--gold); opacity: .95; }
.pad-c b, .pad-n b, .pad-lb b { font: 600 .82rem var(--mono); letter-spacing: .1em; }
.pad-n, .pad-lb { color: var(--gold); }
.pad .charge { width: 70%; height: 5px; border-radius: 3px; background: rgba(246,239,226,.2); overflow: hidden; }
.pad .charge i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
@media (pointer: fine) { .controls { opacity: 0; pointer-events: none; } .controls .pad { pointer-events: none; } }

/* the modal */
.modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: calc(var(--st) + 16px) 16px calc(var(--sb) + 16px); background: rgba(6,10,20,.74); overflow-y: auto; }
.sheet { position: relative; width: min(700px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px 28px; }
.modal.is-wide .sheet { width: min(1080px, 100%); }
.sheet h2 { margin: 0 0 .6rem; font: 400 clamp(1.9rem, 5vw, 2.7rem)/1.05 var(--chart); letter-spacing: .02em; color: var(--gold); }
.sheet p, .sheet li { font: .95rem/1.6 var(--sans); color: #c8d0dc; }
.sheet p b, .sheet li b { color: var(--ink); }
.close { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.6rem; cursor: pointer; }
.menu.row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.rules { padding-left: 1.1rem; margin: 0; display: grid; gap: .5rem; }
.rules > li > b:first-child { color: var(--gold); }
.moves { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: .4rem 0 .2rem; padding: 0; list-style: none; }
.moves li { padding: 5px 9px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel-2); font: .85rem/1.35 var(--cond) !important; font-weight: 500 !important; }
.moves li { display: grid; gap: 1px; }
.moves li b { color: var(--gold); font: 400 .95rem var(--chart) !important; letter-spacing: .04em; }
.gallery { list-style: none; padding: 0; margin: .6rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; padding: 6px 6px 8px; background: var(--panel-2); border: 1px solid var(--line); }
.gallery img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #111d33; }
.gallery figcaption { margin-top: 6px; font: .8rem/1.35 var(--sans); color: #c8d0dc; }
.gallery figcaption b { display: block; font: 400 .95rem var(--chart); letter-spacing: .06em; color: var(--gold); }
.settings { display: grid; gap: .5rem; }
.check, .range { display: flex; align-items: center; gap: .6rem; font: .95rem var(--sans); color: #d8dce4; min-height: 34px; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); }
.range input { flex: 1; accent-color: var(--gold); }
.sources { font-size: .84rem !important; }
.results-line { font-size: 1.02rem; }
.results-best { color: var(--muted); }

body[data-screen="inspect"] .intro, body[data-screen="inspect"] .hud { display: none; }
#inspect-back { position: fixed; z-index: 20; left: 50%; bottom: calc(var(--sb) + 20px); transform: translateX(-50%); }

@media (max-width: 640px) {
  .screen { place-items: end center; padding-top: calc(var(--st) + 56px); }
  .intro-card { padding: 14px 14px 14px 18px; }
  .forms span { font-size: .76rem; }
  .hud { top: calc(var(--st) + 56px); width: min(250px, 64vw); }
  .hud-score strong { font-size: 1.5rem; }
  /* on a phone the HUD keeps the numbers, the lens and the ship and drops the brief, so the top of the table shows */
  .hud { gap: 5px; width: min(220px, 58vw); }
  .hud-round { padding: 4px 10px 5px; }
  .hud-round strong { font-size: .92rem; }
  .hud-round > span { display: none; }
  .lens-chip span, .hud-log { display: none; }
  .ship-bar > span:last-child { display: none; }
  .toasts { top: auto; bottom: calc(var(--sb) + 104px); }
  .radio { bottom: auto; top: calc(var(--st) + 206px); padding: 5px 10px 6px; } .radio span { font-size: .9rem; }  /* under the HUD, never over the flippers */
  .pin { width: min(200px, 56vw); bottom: calc(var(--sb) + 180px); }
  .sheet { padding: 18px 16px 18px 20px; }
  .brand { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { .callout.is-in, .pin.is-in, .pl-boot .tl-field .beam, .ship-bar .pips i, #bonus-list li { animation: none; } .lens-chip i { transition: none; } }

/* phones on their side: a short, wide screen. The pads move into the two bottom corners so the middle of
   the screen, where the table and its flippers are, stays clear; the HUD drops its brief; the voices move
   up beside the brand; the title card drops its two explainer boxes so the start button shows without a scroll. */
@media (orientation: landscape) and (max-height: 500px) {
  .controls { grid-template-columns: minmax(132px, 21vw) 1fr minmax(132px, 21vw); grid-auto-rows: auto; align-items: end; gap: 6px; }
  .controls .pad { min-height: 64px; }
  .pad-l { grid-column: 1; grid-row: 3; } .pad-r { grid-column: 3; grid-row: 3; }
  .pad-c { grid-column: 3; grid-row: 2; min-height: 46px !important; }
  .pad-lb { grid-column: 1; grid-row: 2; min-height: 46px !important; } .pad-n { grid-column: 3; grid-row: 1; min-height: 46px !important; }
  .hud { top: calc(var(--st) + 56px); gap: 4px; width: min(280px, 34vw); }
  .hud-score { padding: 4px 10px 5px; } .hud-score strong { font-size: 1.4rem; }
  .hud-log { display: none; }
  .hud-round > span, .lens-chip span, .ship-bar > span:last-child { display: none; } .hud-round { padding: 4px 10px 5px; } .hud-round strong { font-size: .95rem; }
  .radio { bottom: auto; top: calc(var(--st) + 8px); width: min(380px, 44vw); padding: 5px 10px 6px; }
  .radio span { font-size: .9rem; }
  .callout { top: 36%; }
  .pin { top: calc(var(--st) + 60px); bottom: auto; width: min(170px, 22vw); }
  .screen { place-items: start start; padding-top: calc(var(--st) + 58px); }
  .intro-card { width: min(720px, 100%); padding: 12px 18px 12px 20px; }
  .intro-card h1 { font-size: 2.6rem; }
  .intro-copy { font-size: .98rem; line-height: 1.4; margin-bottom: .5rem; }
  .forms { display: none; }
}
/* settings: the checkbox keeps its size beside a two-line label, and each row is a comfortable tap */
.check { min-height: 40px; } .check input { flex: none; }
/* touch screens: the pads are what a thumb is aiming at, so they are solid and plainly labelled; the
   keyboard hints mean nothing on a phone and go */
@media (pointer: coarse) {
  .controls .pad { opacity: 1; background: rgba(12,22,40,.88); border: 1.5px solid rgba(255,215,122,.55); box-shadow: 0 6px 18px rgba(0,0,0,.45); text-shadow: 0 1px 2px rgba(0,0,0,.8); }
  .controls .pad kbd { display: none; }
  .controls .pad > span:not(.charge) { font-size: 2rem; line-height: 1; color: #fff; }
  .controls .pad b { font-size: .98rem !important; letter-spacing: .12em; color: var(--gold); }
  .controls .pad .charge { height: 7px; }
  .controls .pad.is-down { background: rgba(255,215,122,.3); border-color: var(--gold); }
}

/* the Feel button makes four in the top bar: on a phone the edition number gives way */
@media (max-width: 440px) { .brand .edition { display: none; } .brand { white-space: nowrap; } }
@media (max-width: 380px) { .top-actions { gap: 5px; } .top-actions .chip { min-width: 36px; min-height: 36px; font-size: .9rem; } .brand { padding: 4px 10px; } }
