/* luckybeacon.rentals. One sheet for every page. The ground and the ink are the seal's:
   navy and cream. Sizes and spaces come from 313, 131, 33, 11. */
:root {
  /* Two colours and a size are the whole theme (theme.js sets them for whoever chose their own);
     the rest is worked out from them. */
  --ground: #0b0b0c;
  --ink: #e8d29a;
  --scale: 1;
  --deep: color-mix(in srgb, var(--ground) 80%, #000);
  --faint: color-mix(in srgb, var(--ink) 62%, transparent);
  --line: color-mix(in srgb, var(--ink) 20%, transparent);
  --gold: #c9a24a;
  --gold-hi: #f1d58a;
  --green: #0a7a43;
  --shine: linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, #8c6a24);
  --wide: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; font-size: calc(100% * var(--scale)); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--ground); color: var(--ink); font: 400 1rem/1.5 var(--body); }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

.top { display: flex; align-items: center; gap: 11px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.home { display: block; flex: none; width: 33px; height: 33px; background: var(--gold); -webkit-mask: url(/seal.svg) center / contain no-repeat; mask: url(/seal.svg) center / contain no-repeat; }
.mark { font: 600 0.82rem/1 var(--wide); letter-spacing: 0.16em; text-transform: uppercase; }
@media (max-width: 560px) { .mark { display: none; } }
.sections { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 3px 13px; margin-left: auto; font: 400 0.66rem/1 var(--wide); letter-spacing: 0.08em; text-transform: uppercase; }
.sections a { color: var(--faint); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.sections a:hover, .sections a[aria-current='page'] { color: var(--ink); }
.sections a[aria-current='page'] { border-bottom-color: var(--ink); }
.sections a.in::after { content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 5px; border-radius: 50%; background: var(--ink); vertical-align: middle; }

/* Theme: its key is the last word of the top line, and its settings open under that line. */
.sections .theme-key { font-size: inherit; letter-spacing: inherit; padding: 6px 0; border-bottom-color: transparent; }
.sections .theme-key[aria-expanded='true'] { color: var(--ink); border-bottom-color: var(--ink); }
.theme { border-bottom: 1px solid var(--line); background: var(--deep); padding: 11px 16px; }
.theme .in { max-width: 777px; margin: 0 auto; }
.theme .row + .row { margin-top: 8px; }
.theme .swatch { width: 22px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 50%; overflow: hidden; }
.theme .swatch[aria-pressed='true'] { border-color: var(--ink); outline: 1px solid var(--ink); outline-offset: 2px; }
.theme input[type='color'] { width: 33px; height: 22px; padding: 0; border: 1px solid var(--line); background: none; }
.theme input[type='range'] { width: 131px; }
.theme canvas { width: 80px; height: 60px; border: 1px solid var(--line); background: var(--ground); image-rendering: pixelated; }
.theme .note { margin: 8px 0 0; font-size: 0.75rem; }

main { flex: 1; width: 100%; max-width: 777px; margin: 0 auto; padding: 22px 16px 33px; }
h1 { margin: 0 0 11px; font: 600 1.32rem/1.2 var(--wide); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
@supports (-webkit-background-clip: text) or (background-clip: text) { h1 { background: var(--shine); -webkit-background-clip: text; background-clip: text; color: transparent; } }
h2 { font: 600 0.95rem/1.3 var(--wide); letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; }
h2.section { margin: 33px 0 11px; padding-top: 11px; border-top: 1px solid var(--line); }
.numeral { font-family: var(--wide); color: var(--gold); letter-spacing: 0.12em; }
.numeral.big { font-size: 1.6rem; margin: 0 0 11px; }
.lede { margin: 0 0 16px; max-width: 60ch; }
.note { margin: 16px 0 0; max-width: 60ch; color: var(--faint); font-size: 0.875rem; }

.hero { display: flex; justify-content: center; padding: 11px 0 22px; }
.seal { width: min(321px, 72vw); color: var(--gold); line-height: 0; }
.seal .shamrock g { fill: var(--green); }
.seal .shamrock > path { stroke: var(--green); }
.motto { margin: 18px 0 4px; font: italic 500 1.5rem/1.2 var(--serif); text-align: center; }
.lede.center { text-align: center; margin: 0 auto 11px; }
.open { margin: 4px 0 0; font-size: 0.85rem; color: var(--faint); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: center; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 30%, transparent); }
.seal svg { width: 100%; height: auto; display: block; }
.parts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.parts a { display: grid; grid-template-columns: 7.7em 1fr; gap: 11px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.parts b { font: 400 0.72rem/1.2 var(--wide); letter-spacing: 0.08em; text-transform: uppercase; }
.parts span { color: var(--faint); font-size: 0.92rem; overflow-wrap: anywhere; }
.parts a:hover span { color: var(--ink); }

.panel { border: 1px solid var(--line); background: var(--deep); padding: 13px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; }
.row + .row, .row + .status, .status + .row, .words + .row, video + .row { margin-top: 11px; }
.grow { flex: 1 1 131px; display: flex; min-width: 0; }
.grow input { width: 100%; }
label { font-size: 0.8rem; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; }
input[type='text'], select { font: inherit; font-size: 0.875rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 3px 2px; min-width: 0; }
select option { color: #111; background: #fff; }
input[type='checkbox'] { accent-color: var(--ink); margin: 0; }
input[type='text']:focus, select:focus { border-bottom-color: var(--ink); outline: none; }
input::placeholder { color: var(--faint); opacity: 0.7; }
button, .key { font: 400 0.62rem/1 var(--wide); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 5px 1px; cursor: pointer; text-decoration: none; }
button:hover, .key:hover, button[aria-pressed='true'] { color: var(--ink); border-bottom-color: var(--ink); }
.key.gold, button.gold { color: var(--gold); border-bottom-color: var(--gold); }
.key.gold:hover, button.gold:hover:not(:disabled) { color: var(--gold-hi); border-bottom-color: var(--gold-hi); }
button:disabled { opacity: 0.4; cursor: default; }
input[type='range'] { accent-color: var(--ink); height: 13px; margin: 0; }
.time { font: 400 0.75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--faint); min-width: 5.5ch; text-align: right; }
.status { margin: 11px 0 0; font-size: 0.85rem; color: var(--faint); min-height: 1.3em; }
.status:empty { display: none; }

.peers, .log { list-style: none; margin: 11px 0 0; padding: 0; font-size: 0.85rem; }
.peers:empty, .log:empty { display: none; }
.peers li { display: flex; flex-wrap: wrap; gap: 3px 11px; padding: 5px 0; border-top: 1px solid var(--line); }
.peers .id, .log .id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.peers .way { color: var(--faint); }
.log { max-height: 13.1em; overflow: auto; border-top: 1px solid var(--line); padding-top: 5px; }
.log li { padding: 1px 0; overflow-wrap: anywhere; }
.log .id { color: var(--faint); margin-right: 6px; }
.log .sys { color: var(--faint); }

.words { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.words span { color: var(--faint); transition: color 0.13s; }
.words span.said { color: var(--ink); }
.words span.now { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; }

.screen { padding: 0 0 13px; }
.screen video { display: block; width: 100%; height: auto; background: #000; cursor: pointer; }
.screen .row, .screen .status { padding: 0 13px; }
video::cue { font: 400 0.9rem/1.3 ui-sans-serif, system-ui, sans-serif; color: #e8d29a; background: rgba(11, 11, 12, 0.85); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 13px; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--faint); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 420px) {
  .sections { gap: 3px 10px; font-size: 0.58rem; letter-spacing: 0.05em; }
  .parts a { grid-template-columns: 6.2em 1fr; }
}
@media (prefers-reduced-motion: reduce) { .words span { transition: none; } }

/* Audio: the text, while it is being changed. */
.text { display: block; width: 100%; min-height: 7em; resize: vertical; font: inherit; font-size: 1.05rem; line-height: 1.6; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 0; padding: 8px; }
.text:focus { border-color: var(--ink); outline: none; }
.words span { cursor: pointer; }
.words + .row, .text + .words + .row { margin-top: 11px; }

/* ---- The home page's game mode (src/game.js): the seal on a plane of its own, over the page. ---- */
.play-key { display: block; margin: 8px auto 0; }
.hero { flex-direction: column; align-items: center; }
body.playing { overflow: hidden; }
body.playing main > .parts, body.playing .foot { opacity: 0.16; transition: opacity 0.3s; }
body.playing[data-mode] main > .parts, body.playing[data-mode] .foot, body.playing[data-mode] .play-key { opacity: 0; }
.arena { --blaze: #ed4b4b; --glass: color-mix(in srgb, var(--deep) 78%, transparent); --wall: color-mix(in srgb, var(--ink) 22%, transparent); position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.plane { position: fixed; inset: 0; width: 100vw; height: 100dvh; pointer-events: none; }
.baseline { position: absolute; left: 0; right: 0; bottom: 0; height: 0; }
.thing { position: absolute; left: 0; top: 0; z-index: 4; display: flex; align-items: center; justify-content: center; touch-action: none; -webkit-user-select: none; user-select: none; cursor: grab; transform-origin: center; pointer-events: auto; border-radius: 50%; color: var(--ink); line-height: 0; }
.thing svg { width: 100%; height: 100%; display: block; pointer-events: none; }
.thing.dragging { cursor: grabbing; }
.thing:focus, .thing:focus-visible { outline: 0; }
.keys .thing:focus { outline: 1px solid var(--ink); outline-offset: 6px; }
.thing.hit { animation: hit 0.4s ease-out; }
.thing.safe { opacity: 0.5; }
@keyframes hit { 0%, 40% { filter: brightness(2.2) saturate(0); } 20% { filter: brightness(0.4); } }
/* Four small handles about the seal, where the corners of its square would be drawn in onto the ring. */
.resize-handle { position: absolute; width: 28px; height: 28px; padding: 0; background: transparent; border: 0; color: var(--ink); z-index: 5; touch-action: none; transform: scale(var(--inverse-scale, 1)); transform-origin: center; opacity: 0.55; }
.resize-handle::after { content: ''; display: block; position: absolute; left: 11px; top: 11px; width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; background: var(--ground); }
.resize-handle:hover, .resize-handle:focus-visible { opacity: 1; border: 0; }
.resize-handle[data-corner='tl'] { left: calc(14.6% - 14px); top: calc(14.6% - 14px); cursor: nwse-resize; }
.resize-handle[data-corner='tr'] { right: calc(14.6% - 14px); top: calc(14.6% - 14px); cursor: nesw-resize; }
.resize-handle[data-corner='br'] { right: calc(14.6% - 14px); bottom: calc(14.6% - 14px); cursor: nwse-resize; }
.resize-handle[data-corner='bl'] { left: calc(14.6% - 14px); bottom: calc(14.6% - 14px); cursor: nesw-resize; }
body[data-mode] .resize-handle { display: none; }

/* The panel follows the seal. Its keys are small and quiet, like the rest of the page's. */
.dock { position: fixed; left: 50%; top: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 16px); padding: 8px 10px 7px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); pointer-events: auto; z-index: 30; }
.dock::before { content: ''; position: absolute; width: 1px; height: var(--stem, 12px); background: var(--line); top: calc(-1 * var(--stem, 12px)); left: var(--stem-x, 50%); }
.dock.edge-docked::before { display: none; }
.dock.above::before { top: auto; bottom: calc(-1 * var(--stem, 12px)); }
.dock.catching { transition: left 0.28s ease-out, top 0.28s ease-out; }
.controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 9px; max-width: min(100%, 560px); margin: 0 auto 6px; }
.controls button { min-width: 22px; min-height: 26px; padding: 4px 1px; font-size: 0.58rem; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.controls button:disabled { opacity: 0.32; cursor: default; }
.geometry { font: 400 0.625rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); text-align: center; overflow-wrap: anywhere; }
.route { display: inline-block; list-style: none; margin: 0; padding: 0; text-align: left; max-width: 100%; }
.route:has(.stop:only-child) { text-align: center; }
.geometry input { box-sizing: content-box; width: 5ch; padding: 0; margin: 0; border: 0; border-bottom: 1px dotted var(--faint); border-radius: 0; background: none; color: inherit; font: inherit; text-align: center; }
.geometry input:focus { outline: 0; border-bottom: 1px solid var(--blaze); }
@media (pointer: coarse) { .geometry input:focus { font-size: 16px; } }
.pin, .drop, .route-bar button { min-width: 1.5rem; min-height: 1.5rem; padding: 0 0.4em; font: inherit; letter-spacing: 0; text-transform: none; touch-action: manipulation; }
.stop { padding: 1px 0; }
.stop.current .pin { color: var(--ground); background: var(--ink); border-bottom-color: var(--ink); }
.drop { border-bottom-color: transparent; }
.route-bar { display: flex; justify-content: center; gap: 11px; margin-top: 4px; }
@media (max-width: 560px) { .route.many .derived { display: none; } }
.score { letter-spacing: 0.02em; }

/* The court and what plays in it. */
.court, .rival, .puck { position: absolute; left: 0; top: 0; pointer-events: none; }
.court { border: 0 solid var(--wall); border-width: 0 1px; }
.court::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: repeating-linear-gradient(90deg, var(--wall) 0 8px, transparent 8px 16px); }
.court .goal { display: none; position: absolute; left: 50%; width: var(--mouth); height: 9px; margin-left: calc(var(--mouth) / -2); border: 1px solid var(--faint); }
.court .goal.top { top: -9px; border-bottom: 0; }
.court .goal.bottom { bottom: -9px; border-top: 0; }
.court .ring { display: none; position: absolute; border: 1px solid var(--faint); border-radius: 50%; }
body[data-mode='hockey'] .court { background: linear-gradient(90deg, var(--wall) calc(50% - var(--mouth) / 2), transparent 0 calc(50% + var(--mouth) / 2), var(--wall) 0) top / 100% 1px no-repeat, linear-gradient(90deg, var(--wall) calc(50% - var(--mouth) / 2), transparent 0 calc(50% + var(--mouth) / 2), var(--wall) 0) bottom / 100% 1px no-repeat; }
body[data-mode='hockey'] .court .goal { display: block; }
.rival { border: 1px solid var(--faint); will-change: transform; }
body[data-mode='hockey'] .rival { border-radius: 50%; border-color: var(--ink); box-shadow: inset 0 0 0 6px var(--line); }
.puck { border-radius: 50%; background: var(--blaze); box-shadow: 0 0 0 1px var(--ink); will-change: transform; }
body[data-mode='frogger'] .court { --rest: color-mix(in srgb, var(--ink) 7%, transparent); background: linear-gradient(var(--rest), var(--rest)) top / 100% var(--lane) no-repeat, linear-gradient(var(--rest), var(--rest)) bottom / 100% var(--lane) no-repeat, repeating-linear-gradient(180deg, transparent 0 calc(var(--lane) - 1px), var(--line) calc(var(--lane) - 1px) var(--lane)); }
body[data-mode='frogger'] .court::before, body[data-mode='invaders'] .court::before, body[data-mode='snake'] .court::before, body[data-mode='asteroids'] .court::before, body[data-mode='marbles'] .court::before { display: none; }
.car { position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--faint); border-radius: 2px; background: var(--glass); color: var(--faint); font: 400 0.625rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.03em; white-space: nowrap; pointer-events: none; will-change: transform; }
.car::after { content: ''; position: absolute; right: 3px; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: var(--blaze); }
.car.west::after { right: auto; left: 3px; }
.fleet, .shot, .bomb, .link, .rock, .flame, .nose, .marble { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.invader { position: absolute; color: var(--ink); }
.invader svg { display: block; width: 100%; height: 100%; overflow: visible; fill: var(--glass); stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; }
.invader .flap { fill: none; }
.fleet.beat .flap.a, .fleet:not(.beat) .flap.b { display: none; }
.invader.flagged::after { content: ''; position: absolute; right: -2px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--blaze); box-shadow: 0 0 0 1px var(--ink); }
.invader.gone { animation: read 0.16s ease-out forwards; }
.shot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--blaze); box-shadow: 0 0 0 1px var(--ink); }
.bomb { width: 22px; margin: -5px 0 0 -11px; color: var(--ink); font: 500 0.625rem/10px ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
@keyframes read { to { opacity: 0; transform: scale(1.6); } }
body[data-mode='snake'] .court { border-width: 1px; }
.link { border: 1px solid var(--faint); border-radius: 50%; background: var(--glass); }
body[data-mode='snake'], body[data-mode='asteroids'], body[data-mode='marbles'] { touch-action: none; }
body[data-mode='asteroids'] .court { border-color: transparent; }
.nose { width: 0; height: 0; margin: -4px 0 0 -3px; border-left: 7px solid var(--ink); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.rock { display: grid; place-items: center; }
.rock svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--glass); stroke: var(--faint); stroke-width: 1.1; stroke-linejoin: round; animation: drift 14s linear infinite; }
.rock span { position: relative; color: var(--ink); font: 400 0.5625rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.02em; white-space: nowrap; }
.flame { width: 16px; height: 6px; margin: -3px 0 0 -8px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--blaze)); }
@keyframes drift { to { transform: rotate(360deg); } }
body[data-mode='marbles'] .court { border-color: transparent; }
body[data-mode='marbles'] .court .ring { display: block; }
.marble { border-radius: 50%; border: 1px solid var(--ink); background: radial-gradient(circle at 35% 30%, var(--ink) 0 12%, var(--blaze) 14% 100%); }
.marble.gone { transition: opacity 0.25s, transform 0.25s; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .thing.hit, .rock svg, .invader.gone { animation: none; } .dock.catching, .marble.gone { transition: none; } }

/* The twelve round games' pieces. */
body[data-x] .court::before { display: none; }
body[data-x] { touch-action: none; }
.aimline, .stone, .ringmark, .ball, .pocket, .brick, .paddle, .bumper, .rail, .flipper, .planet, .dot, .moon, .rivaldisc, .wall, .hole, .flag, .beam, .boat, .water, .ripple, .isle, .meter { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.aimline { height: 0; border-top: 1px dashed var(--ink); transform-origin: 0 0; }
.ringmark { border: 1px solid var(--faint); border-radius: 50%; display: flex; align-items: flex-start; justify-content: center; color: var(--faint); font: 400 0.5625rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.stone, .ball, .rivaldisc, .dot, .moon, .bumper, .planet, .pocket, .hole, .isle { border-radius: 50%; }
.stone { border: 1px solid var(--ink); }
.stone.mine { background: var(--ink); box-shadow: inset 0 0 0 5px var(--ground); }
.stone.theirs { background: var(--blaze); box-shadow: inset 0 0 0 5px var(--ground); }
.ball { display: grid; place-items: center; background: var(--blaze); border: 1px solid var(--ink); color: #fff; font: 600 0.5rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.pocket, .hole { background: #000; opacity: 0.55; border: 1px solid var(--line); }
.brick { display: grid; place-items: center; border: 1px solid var(--faint); background: var(--glass); color: var(--ink); font: 400 0.5rem/1 var(--wide); letter-spacing: 0.06em; overflow: hidden; }
.paddle { height: 8px; background: var(--ink); border-radius: 4px; }
.bumper { border: 1px solid var(--ink); box-shadow: inset 0 0 0 5px var(--line); }
.bumper.lit { background: var(--blaze); }
.rail { height: 0; border-top: 2px solid var(--faint); transform-origin: 0 0; }
.flipper { height: 7px; margin-top: 0; background: var(--ink); border-radius: 4px; transform-origin: 0 50%; }
.planet { background: radial-gradient(circle at 35% 30%, var(--ink), var(--faint) 70%); }
.dot { background: var(--blaze); box-shadow: 0 0 0 1px var(--ink); }
.moon { background: var(--faint); border: 1px solid var(--ink); }
.rivaldisc { border: 1px solid var(--ink); box-shadow: inset 0 0 0 8px var(--line); background: var(--glass); }
.wall { background: var(--faint); }
.flag { width: 2px; height: 18px; margin: -18px 0 0 -1px; background: var(--ink); }
.flag::after { content: ''; position: absolute; left: 2px; top: 0; border-left: 10px solid var(--blaze); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.beam { transform-origin: 0 50%; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 42%, transparent), transparent 85%); clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.boat { width: 0; height: 0; margin: -5px 0 0 -7px; border-left: 14px solid var(--faint); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.boat.lit { border-left-color: var(--ink); }
.boat.away { opacity: 0.4; }
.water { background: linear-gradient(color-mix(in srgb, var(--ink) 14%, transparent), transparent); border-top: 1px solid var(--faint); }
.ripple { width: 24px; height: 6px; border: 1px solid var(--ink); border-radius: 50%; opacity: 0.6; }
.isle { background: color-mix(in srgb, var(--ink) 16%, var(--ground)); border: 1px solid var(--faint); }
.meter { height: 4px; background: var(--blaze); box-shadow: 0 0 0 1px var(--ink); }
/* On a phone a game keeps the court: while one is on, the panel shows only its own key, Reset and Done. */
@media (max-width: 640px) { body[data-mode] .controls button:not([aria-pressed='true']):not([data-action='reset']):not([data-action='leave']) { display: none; } }

/* Video: the crawl. The narration's words go up the picture and away into the distance, the
   word being said held a third of the way up. */
.frame { position: relative; container-type: inline-size; background: #000; line-height: 0; }
.frame video { display: block; width: 100%; height: auto; transition: filter 0.4s; }
.frame.narrated video { filter: brightness(0.5); }
.frame:fullscreen { display: flex; align-items: center; justify-content: center; }
.frame:fullscreen video { width: 100%; height: 100%; object-fit: contain; }
.crawl { position: absolute; inset: 0; overflow: hidden; perspective: 320px; pointer-events: none; line-height: 1.5; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 42%); mask-image: linear-gradient(to bottom, transparent 0, #000 42%); }
.crawl .tilt { position: absolute; left: 14%; right: 14%; top: 0; bottom: 0; transform: rotateX(27deg); transform-origin: 50% 100%; }
.crawl-text { position: absolute; left: 0; right: 0; top: 100%; font: 600 clamp(14px, 4.6cqw, 46px)/1.45 var(--body); letter-spacing: 0.01em; text-align: justify; hyphens: auto; color: var(--ink); text-shadow: 0 0 0.4em var(--ground), 0 0 0.12em #000; will-change: transform; }
.crawl-text span { opacity: 0.62; transition: opacity 0.2s; }
.crawl-text span.said { opacity: 0.86; }
.crawl-text span.now { opacity: 1; }
.screen .text { margin-top: 11px; }
.frame + .text { width: calc(100% - 26px); margin: 11px 13px 0; }
@media (prefers-reduced-motion: reduce) { .crawl-text span { transition: none; } }

/* ---- XXI Beacon: the suite, the booking, the partner, the story, the docs and the brand. ---- */
.lede { font-size: 1.02rem; }
.small { font-size: 0.8rem; color: var(--faint); margin: 6px 0; }
.note.small { font-size: 0.78rem; }
.panel + .panel { margin-top: 11px; }
.step { display: flex; align-items: baseline; gap: 9px; }
.step .numeral { font-size: 0.8rem; }
.suite-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 11px; flex-wrap: wrap; }
.suite-head .numeral { margin: 0; font-size: 2.1rem; line-height: 1; background: var(--shine); -webkit-background-clip: text; background-clip: text; color: transparent; }
.suite-head h2 { margin: 6px 0 2px; }
.sub { margin: 0; color: var(--faint); font: italic 500 1rem/1.3 var(--serif); }
.avail { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--faint); margin: 4px 0 0; }
.spec { margin: 13px 0; display: grid; gap: 0; }
.spec div { display: grid; grid-template-columns: 7.7em 1fr; gap: 11px; padding: 7px 0; border-top: 1px solid var(--line); }
.spec dt { font: 600 0.66rem/1.6 var(--wide); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.spec dd { margin: 0; font-size: 0.92rem; }
.pillars, .years, .steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pillars li, .years li { display: grid; grid-template-columns: 7.7em 1fr; grid-template-rows: auto auto; column-gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.pillars .numeral, .years .numeral { grid-row: span 2; font-size: 0.85rem; padding-top: 2px; }
.years li { grid-template-columns: 9.3em 1fr; }
.pillars b, .years b { font: 600 0.8rem/1.3 var(--wide); letter-spacing: 0.06em; text-transform: uppercase; }
.pillars span:not(.numeral), .years span:not(.numeral) { color: var(--faint); font-size: 0.92rem; margin-top: 3px; }
.steps { counter-reset: s; }
.steps li { counter-increment: s; padding: 8px 0 8px 2.2em; border-bottom: 1px solid var(--line); position: relative; font-size: 0.92rem; }
.steps li::before { content: counter(s, upper-roman); position: absolute; left: 0; font-family: var(--wide); color: var(--gold); font-size: 0.75rem; top: 10px; }

/* Booking. */
.book input[type='date'], .book input[type='email'], .book input[type='tel'] { font: inherit; font-size: 0.875rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 3px 2px; min-width: 0; color-scheme: dark; }
.book input:focus { border-bottom-color: var(--gold); outline: none; }
label.grow { flex-direction: column; align-items: stretch; gap: 2px; }
label.block { display: flex; flex-direction: column; gap: 4px; margin-bottom: 11px; }
.text.short { min-height: 3.3em; font-size: 0.92rem; }
.cal-head { justify-content: space-between; }
.months { font: 600 0.72rem/1 var(--wide); letter-spacing: 0.1em; text-transform: uppercase; }
.cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(231px, 1fr)); gap: 11px 21px; margin: 7px 0 11px; }
.month h3 { margin: 0 0 6px; font: 600 0.68rem/1 var(--wide); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.month .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.month .dow { font-size: 0.6rem; color: var(--faint); text-align: center; padding-bottom: 3px; }
.month button.d { font: 400 0.78rem/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); border: 1px solid transparent; padding: 7px 0; text-align: center; }
.month button.d:hover:not(:disabled) { border-color: var(--line); }
.month button.d:disabled { color: var(--faint); opacity: 0.35; text-decoration: line-through; text-decoration-color: var(--line); }
.month button.d.past { text-decoration: none; }
.month button.d.in { background: color-mix(in srgb, var(--gold) 16%, transparent); }
.month button.d.end { background: var(--gold); color: #0b0b0c; }
.xv { list-style: none; margin: 6px 0; padding: 0; }
.xv li { display: flex; flex-wrap: wrap; gap: 6px 11px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.xv li input[type='date'] { width: 9.5em; }
.lines { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 6px 0; }
.lines td, .lines th { padding: 6px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: top; }
.lines td:last-child, .lines tfoot td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 11px; }
.lines tfoot th, .lines tfoot td { font: 600 0.8rem/1.4 var(--wide); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); border-top-color: var(--gold); }
button.gold { font-size: 0.72rem; padding: 7px 2px; }

/* The owner's desk. */
.bookings { list-style: none; margin: 8px 0 0; padding: 0; }
.bookings li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.86rem; }
.bookings .head { display: flex; flex-wrap: wrap; gap: 4px 11px; align-items: baseline; }
.bookings .ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--gold); }
.bookings .st { font: 600 0.6rem/1 var(--wide); letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 5px; border: 1px solid var(--line); }
.bookings .st.confirmed, .bookings .st.paid { border-color: var(--green); color: color-mix(in srgb, var(--green) 50%, var(--ink)); }
.bookings .more { color: var(--faint); margin: 3px 0; }

/* Docs. */
.doc { font-size: 0.96rem; }
.doc .crumb { font-size: 0.75rem; color: var(--faint); margin: 0 0 11px; }
.doc h2 { font-size: 1.15rem; color: var(--gold); margin: 0 0 11px; }
.doc h3 { font: 600 0.82rem/1.3 var(--wide); letter-spacing: 0.08em; text-transform: uppercase; margin: 22px 0 7px; }
.doc h4 { font-size: 0.9rem; margin: 15px 0 5px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 3px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.86rem; margin: 9px 0; }
.doc th, .doc td { text-align: left; padding: 5px 7px 5px 0; border-top: 1px solid var(--line); vertical-align: top; }
.doc th { font: 600 0.62rem/1.4 var(--wide); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.doc blockquote { margin: 11px 0; padding: 3px 0 3px 13px; border-left: 2px solid var(--gold); font: italic 500 1.1rem/1.4 var(--serif); }
.doc code { font-size: 0.85em; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 21px 0; }

/* Brand. */
.marks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(171px, 1fr)); gap: 11px; }
.marks li.wide { grid-column: 1 / -1; }
.marks a { display: flex; flex-direction: column; gap: 3px; text-decoration: none; border: 1px solid var(--line); padding: 11px; background: #0b0b0c; }
.marks a:hover { border-color: var(--gold); }
.marks img { width: 100%; height: auto; display: block; margin-bottom: 6px; }
.marks li.wide img { max-height: 111px; object-fit: contain; }
.marks b { font: 600 0.66rem/1.3 var(--wide); letter-spacing: 0.08em; text-transform: uppercase; color: #e8d29a; }
.marks span { font-size: 0.75rem; color: color-mix(in srgb, #e8d29a 62%, transparent); }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(131px, 1fr)); gap: 11px; }
.swatches li { display: flex; flex-direction: column; gap: 2px; font-size: 0.78rem; }
.swatches b { font: 600 0.66rem/1.3 var(--wide); letter-spacing: 0.08em; text-transform: uppercase; }
.swatches span { color: var(--faint); }
.sw { display: block; height: 55px; border: 1px solid var(--line); margin-bottom: 5px; }
.sw.onyx { background: #0b0b0c; } .sw.gold { background: linear-gradient(135deg, #f1d58a, #c9a24a 45%, #8c6a24); } .sw.champagne { background: #e8d29a; } .sw.green { background: #0a7a43; } .sw.parchment { background: #f4eedf; }
.specimen { margin: 7px 0; }
.specimen.display { font: 600 1.6rem/1.2 var(--wide); letter-spacing: 0.12em; color: var(--gold); }
.specimen.serif { font: italic 500 1.6rem/1.2 var(--serif); }
.specimen.sans { font-size: 1.1rem; }
.taglines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.taglines li { padding: 9px 0; border-bottom: 1px solid var(--line); font: italic 500 1.2rem/1.3 var(--serif); }

/* ---- Styles (Theme, Style): XXI, the seal, is the house style; Hairline, Federal and Fintech are
   ChatGPT's concepts (resources/brand/chatgpt). theme.js sets <html data-style>. ---- */
.seal .mark, .thing .mark { display: none; }
html:not([data-style]) .m-classic, html[data-style='classic'] .m-classic,
html[data-style='hairline'] .m-hairline, html[data-style='federal'] .m-federal, html[data-style='fintech'] .m-fintech { display: block; }
html[data-style='federal'] .not-federal, html:not([data-style='federal']) .only-federal { display: none; }
.mark { font-weight: 500; letter-spacing: 0.2em; }

/* Hairline: ChatGPT's seal. Finer rules, lighter capitals. */
html[data-style='hairline'] { --line: color-mix(in srgb, var(--ink) 13%, transparent); }
html[data-style='hairline'] h1 { font-weight: 500; letter-spacing: 0.16em; }
html[data-style='hairline'] h2, html[data-style='hairline'] .parts b, html[data-style='hairline'] .spec dt { font-weight: 500; letter-spacing: 0.14em; }

/* Federal: an engraved certificate. Ink on parchment, double rules, deep gold, the motto in Latin. */
html[data-style='federal'] { --gold: #8c6a24; --gold-hi: #8c6a24; --shine: none; }
html[data-style='federal'] h1 { background: none; color: var(--ink); -webkit-background-clip: border-box; background-clip: border-box; font-weight: 500; letter-spacing: 0.14em; }
html[data-style='federal'] .suite-head .numeral { background: none; color: var(--gold); }
html[data-style='federal'] .panel { background: transparent; border: 3px double color-mix(in srgb, var(--ink) 40%, transparent); }
html[data-style='federal'] .lede { font: 500 1.18rem/1.45 var(--serif); }
html[data-style='federal'] .seal { width: min(377px, 80vw); color: var(--ink); }
html[data-style='federal'] .home { background: var(--ink); }
html[data-style='federal'] .top, html[data-style='federal'] .foot { border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
html[data-style='federal'] .book input[type='date'], html[data-style='federal'] .book input[type='email'], html[data-style='federal'] .book input[type='tel'] { color-scheme: light; }
html[data-style='federal'] .month button.d.end { color: #f4eedf; background: var(--ink); }
html[data-style='federal'] .month button.d.in { background: color-mix(in srgb, var(--ink) 10%, transparent); }

/* Fintech: ChatGPT's monoline XXI. Thin, open, nothing gilded. */
html[data-style='fintech'] { --shine: none; --line: color-mix(in srgb, var(--ink) 12%, transparent); }
html[data-style='fintech'] h1 { background: none; color: var(--gold); -webkit-background-clip: border-box; background-clip: border-box; font-weight: 500; letter-spacing: 0.24em; }
html[data-style='fintech'] h2, html[data-style='fintech'] .parts b, html[data-style='fintech'] .spec dt, html[data-style='fintech'] .numeral { font-weight: 500; letter-spacing: 0.2em; }
html[data-style='fintech'] .suite-head .numeral { background: none; color: var(--gold); }
html[data-style='fintech'] .motto { font: 500 0.95rem/1.4 var(--wide); letter-spacing: 0.28em; text-transform: uppercase; }
html[data-style='fintech'] .panel { background: transparent; }

/* Find: the map of clovers. */
.find-head { justify-content: space-between; }
.want { width: 55px; height: 55px; border: 1px solid var(--gold); background: var(--deep); }
.map { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; margin: 8px 0; border: 1px solid var(--line); touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.map .piece { transition: opacity 0.2s; }
.map .piece.miss { animation: miss 0.6s ease-out; }
.map .piece.found { filter: drop-shadow(0 0 3px #f1d58a) drop-shadow(0 0 7px #c9a24a); }
@keyframes miss { 0%, 100% { opacity: 1; } 30% { opacity: 0.15; } 60% { opacity: 0.6; } }
.proofs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(151px, 1fr)); gap: 11px; }
