/* Cards Down. One stylesheet for the landing page and the room.
   Layout: the room is a full-viewport app (bar, then table + side panel) whose
   table grows to whatever space is left; below 900px it stacks and scrolls. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #F2F4EF; --surface: #FFFFFF; --surface-2: #E7ECE5; --ink: #14201B; --muted: #56665E; --line: #D2D9D1;
  --felt: #21614A; --felt-2: #153F31; --rail: #3A2A1F; --on-felt: #ECF3EE; --on-felt-dim: #B7CDBF;
  --card: #FBFAF5; --card-ink: #18221E; --card-line: #D9D5C8; --back: #6E2A25;
  --brass: #A8731A; --on-brass: #1C1407; --accent-ink: #21614A;
  --warn: #B8402E; --good: #2D7A4C; --amber: #B7791F;
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --shadow: 0 1px 2px rgba(20,32,27,.06), 0 12px 32px -12px rgba(20,32,27,.18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1210; --surface: #131B18; --surface-2: #1A2420; --ink: #E3EBE6; --muted: #94A49C; --line: #25312C;
    --felt: #1D5240; --felt-2: #0F2C22; --rail: #1E1510; --on-felt: #ECF3EE; --on-felt-dim: #A9C1B3;
    --card: #F0EDE4; --card-ink: #18221E; --card-line: #C9C4B6; --back: #6A2723;
    --brass: #D8A445; --on-brass: #1C1407; --accent-ink: #D8A445;
    --warn: #E3735F; --good: #62C08A; --amber: #E0A84A;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1210; --surface: #131B18; --surface-2: #1A2420; --ink: #E3EBE6; --muted: #94A49C; --line: #25312C;
  --felt: #1D5240; --felt-2: #0F2C22; --rail: #1E1510; --on-felt: #ECF3EE; --on-felt-dim: #A9C1B3;
  --card: #F0EDE4; --card-ink: #18221E; --card-line: #C9C4B6; --back: #6A2723;
  --brass: #D8A445; --on-brass: #1C1407; --accent-ink: #D8A445;
  --warn: #E3735F; --good: #62C08A; --amber: #E0A84A;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box }
[hidden] { display: none !important }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased }
h1, h2, h3 { font-family: var(--f-display); margin: 0; letter-spacing: -.02em; text-wrap: balance }
p { margin: 0 }
a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: 3px }
button, input { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 6px }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums }
.eyebrow { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
.kbd { font-family: var(--f-mono); font-size: .76em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: var(--surface) }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }

/* Wordmark */
.mark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; text-decoration: none; white-space: nowrap }
.mark svg { width: 26px; height: 26px; flex: none }

/* Controls */
.btn { appearance: none; cursor: pointer; font-weight: 600; font-size: .85rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); white-space: nowrap }
.btn:hover { border-color: var(--muted) }
.btn.primary { background: var(--brass); color: var(--on-brass); border-color: transparent }
.btn.primary:hover { filter: brightness(1.06) }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px }
.seg button { appearance: none; border: 0; background: none; cursor: pointer; font-size: .8rem; font-weight: 500; padding: 5px 11px; border-radius: 999px; color: var(--muted) }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12) }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); cursor: pointer; white-space: nowrap }
.switch input { appearance: none; width: 32px; height: 18px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); position: relative; cursor: pointer; margin: 0; transition: background .2s }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s }
.switch input:checked { background: var(--felt); border-color: var(--felt) }
.switch input:checked::after { transform: translateX(14px); background: var(--on-felt) }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 500 }
.field input[type="text"] { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; font-size: 1rem; width: 100% }
.field input[type="text"]:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: transparent }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 999px; font-size: .85rem; transition: .25s; pointer-events: none; z-index: 50 }
.toast.show { opacity: 1; transform: translate(-50%, 0) }

/* ---------- Playing cards ---------- */
.pc { width: var(--cw); aspect-ratio: 5 / 7; perspective: 600px; position: relative }
.pc-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3,.7,.2,1) calc(var(--i, 0) * 70ms), opacity .25s }
.pc .face { position: absolute; inset: 0; border-radius: calc(var(--cw) * .12); backface-visibility: hidden; -webkit-backface-visibility: hidden }
.pc .back { background: repeating-linear-gradient(45deg, transparent 0 4px, color-mix(in srgb, var(--brass) 45%, transparent) 4px 5px), repeating-linear-gradient(-45deg, transparent 0 4px, color-mix(in srgb, var(--brass) 45%, transparent) 4px 5px), var(--back); border: 2px solid var(--card); box-shadow: 0 3px 8px -2px rgba(0,0,0,.5) }
.pc .front { background: var(--card); color: var(--card-ink); border: 1px solid var(--card-line); transform: rotateY(180deg); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: calc(var(--cw) * .44); box-shadow: 0 3px 8px -2px rgba(0,0,0,.4) }
.pc .front svg { width: 52%; height: auto }
.pc.empty .pc-in { opacity: 0 }
.pc.empty::before { content: ""; position: absolute; inset: 0; border: 1.5px dashed var(--muted); border-radius: calc(var(--cw) * .12); opacity: .55 }
.pc.empty.thinking::after { content: "···"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 700; letter-spacing: 1px; animation: think 1.4s infinite }
.pc.up .pc-in { transform: rotateY(180deg) }
.pc.out .front { outline: 3px solid var(--warn); outline-offset: 2px }
@keyframes think { 50% { opacity: .25 } }

/* ---------- Room ---------- */
body.room { height: 100dvh; display: flex; flex-direction: column; overflow: hidden }
.bar { display: flex; align-items: center; gap: 10px 18px; padding-block: 10px; border-bottom: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; padding-top: max(10px, env(safe-area-inset-top, 0px)) }
.bar .rname { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0 }
.bar .rname span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.conn { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 20%, transparent) }
.conn.live { background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 20%, transparent) }
.connmsg { font-size: .8rem; color: var(--amber) }
.bar .spacer { flex: 1 }
.timer { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 6px }
.youbtn { display: inline-flex; align-items: center; gap: 8px }
.youbtn .av { width: 22px; height: 22px; font-size: .7rem }

.app { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px }
.stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: radial-gradient(120% 80% at 50% 40%, color-mix(in srgb, var(--felt) 7%, var(--bg)), var(--bg)) }
.table { position: relative; flex: 1; min-height: 300px; overflow: clip; container-type: size; --cw: clamp(30px, min(12.5cqh, 5.6cqw), 86px) }
.felt { position: absolute; inset: 16% 11%; border-radius: 999px; background: radial-gradient(ellipse at 50% 38%, var(--felt) 0%, var(--felt-2) 85%); box-shadow: inset 0 0 0 9px var(--rail), inset 0 0 0 10px color-mix(in srgb, var(--brass) 70%, transparent), inset 0 8px 30px rgba(0,0,0,.35), 0 20px 40px -20px rgba(0,0,0,.45); transition: box-shadow .6s }
.felt.agree { box-shadow: inset 0 0 0 9px var(--rail), inset 0 0 0 10px var(--brass), inset 0 0 60px color-mix(in srgb, var(--brass) 45%, transparent), 0 0 0 6px color-mix(in srgb, var(--brass) 25%, transparent), 0 20px 40px -20px rgba(0,0,0,.45) }
.center { position: absolute; inset: 16% 11%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: clamp(4px, 1.4cqh, 12px); padding: 0 16%; color: var(--on-felt) }
.center .title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.2rem, min(6cqh, 4cqw), 3rem); line-height: 1 }
.center .label { appearance: none; border: 0; background: transparent; box-sizing: border-box; width: min(100%, 30ch); text-align: center; font-size: clamp(.8rem, min(2.4cqh, 1.6cqw), 1.1rem); color: var(--on-felt); border-bottom: 1px dashed color-mix(in srgb, var(--on-felt) 30%, transparent); padding: 3px 4px; border-radius: 0 }
.center .label::placeholder { color: var(--on-felt-dim); opacity: .8 }
.center .label:focus { outline: none; border-bottom-color: var(--brass) }
.center .status { font-size: clamp(.75rem, min(2.1cqh, 1.4cqw), 1rem); color: var(--on-felt-dim); min-height: 1.4em }
.center .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; margin-top: 4px }
.go { appearance: none; border: 0; cursor: pointer; background: var(--brass); color: var(--on-brass); font-weight: 600; font-size: clamp(.8rem, min(2.2cqh, 1.3cqw), 1rem); padding: clamp(7px, 1.6cqh, 12px) clamp(16px, 2.4cqw, 26px); border-radius: 999px; box-shadow: 0 4px 14px -4px rgba(0,0,0,.5) }
.go:hover { filter: brightness(1.07) }
.go:focus-visible { outline: 2px solid var(--on-felt); outline-offset: 3px }
.go .kbd { background: transparent; border-color: color-mix(in srgb, var(--on-brass) 35%, transparent); margin-left: 7px; color: var(--on-brass) }
.ghost { appearance: none; cursor: pointer; background: transparent; color: var(--on-felt); border: 1px solid color-mix(in srgb, var(--on-felt) 35%, transparent); font-size: clamp(.75rem, min(2cqh, 1.2cqw), .92rem); padding: 6px 14px; border-radius: 999px }
.ghost:hover { border-color: var(--on-felt) }

.seat { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; transition: left .4s, top .4s }
.who { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px 2px 2px; font-size: clamp(.68rem, 1.6cqh, .86rem); font-weight: 500; white-space: nowrap; max-width: 150px; box-shadow: 0 2px 6px -2px rgba(0,0,0,.2) }
.who .nm { overflow: hidden; text-overflow: ellipsis }
.av { width: clamp(18px, 3.4cqh, 26px); height: clamp(18px, 3.4cqh, 26px); border-radius: 50%; display: grid; place-items: center; font-size: .8em; font-weight: 600; background: var(--surface-2); color: var(--ink); flex: none }
.seat.me .av, .youbtn .av { background: var(--brass); color: var(--on-brass) }
.seat.me .who { border-color: var(--brass) }

.hand { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(6px, .8vw, 12px); padding: 10px 16px max(18px, env(safe-area-inset-bottom, 0px)) }
.hc { appearance: none; cursor: pointer; position: relative; width: clamp(40px, 4.2vw, 72px); aspect-ratio: 5 / 7; background: var(--card); color: var(--card-ink); border: 1px solid var(--card-line); border-radius: 9px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: clamp(1rem, 1.8vw, 1.75rem); box-shadow: 0 2px 0 var(--card-line), 0 6px 14px -8px rgba(0,0,0,.4); transition: transform .18s, box-shadow .18s, opacity .2s; padding: 0 }
.hc .ix { position: absolute; font-family: var(--f-body); font-weight: 600; font-size: clamp(.5rem, .65vw, .7rem); line-height: 1 }
.hc .ix.tl { top: 5px; left: 6px }
.hc .ix.br { bottom: 5px; right: 6px; transform: rotate(180deg) }
.hc svg { width: 50%; height: auto }
.hc:hover:not(:disabled) { transform: translateY(-4px) }
.hc[aria-pressed="true"] { transform: translateY(-12px); box-shadow: 0 0 0 3px var(--brass), 0 14px 22px -10px rgba(0,0,0,.5) }
.hc[aria-pressed="true"]:hover { transform: translateY(-12px) }
.hc:disabled { cursor: default; opacity: .45 }
.hc[aria-pressed="true"]:disabled { opacity: 1 }
.watching { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; color: var(--muted); font-size: .92rem; flex-wrap: wrap }

.side { border-left: 1px solid var(--line); background: var(--surface); padding: 16px 18px max(16px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; min-width: 0; overflow-y: auto }
.side h3 { font-family: var(--f-mono); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px }
.side h3 .acts { display: flex; gap: 6px }
.side h3 button { appearance: none; cursor: pointer; font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: .76rem; color: var(--ink); padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface) }
.side h3 button.danger { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, transparent) }
.plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .88rem }
.plist li { display: flex; justify-content: space-between; gap: 8px }
.plist li .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.chk { font-family: var(--f-mono); font-size: .75rem; flex: none }
.chk.y { color: var(--good) }
.chk.n { color: var(--muted) }
.note { color: var(--muted); font-size: .82rem }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden }
.stat { background: var(--surface); padding: 10px 12px }
.stat .l { font-size: .72rem; color: var(--muted) }
.stat .v { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums; line-height: 1.15 }
.hist { display: flex; flex-direction: column; gap: 7px }
.hrow { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; font-size: .8rem }
.hrow .val { font-family: var(--f-display); font-weight: 700; text-align: right; display: flex; justify-content: flex-end }
.hrow .val svg { width: 16px; height: 16px }
.hrow .barw { position: relative; height: 24px; border-radius: 6px; background: var(--surface-2) }
.hrow .fill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--felt) }
.hrow.top .fill { background: var(--brass) }
.hrow .names { position: absolute; left: 8px; right: 6px; top: 50%; transform: translateY(-50%); color: var(--on-felt); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500 }
.hrow.top .names { color: var(--on-brass) }
.prompt { font-size: .88rem; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent) }
.prompt.ok { background: color-mix(in srgb, var(--brass) 14%, var(--surface)); border-color: color-mix(in srgb, var(--brass) 45%, transparent) }
.log { border-top: 1px solid var(--line); padding-top: 14px }
.log .day { font-size: .74rem; color: var(--muted); margin: 10px 0 2px }
.log .day:first-of-type { margin-top: 0 }
.lg { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 4px 0; font-size: .86rem }
.lg .n { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); min-width: 58px }
.lg .lb { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.lg .est { font-family: var(--f-display); font-weight: 700; min-width: 28px; height: 28px; padding: 0 6px; display: grid; place-items: center; border-radius: 7px; background: var(--surface-2) }
.lg.split .est { box-shadow: inset 0 0 0 1.5px var(--warn) }
.keys { margin-top: auto; font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; padding-top: 8px }

dialog { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); padding: 26px; width: min(420px, calc(100vw - 32px)); box-shadow: var(--shadow) }
dialog::backdrop { background: color-mix(in srgb, var(--felt-2) 55%, transparent); backdrop-filter: blur(3px) }
dialog form { display: flex; flex-direction: column; gap: 16px }
dialog h2 { font-size: 1.5rem }
dialog .row { display: flex; justify-content: flex-end; gap: 10px }
dialog .checkline { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer }
dialog .checkline input { margin-top: 4px; accent-color: var(--felt) }

@media (max-width: 1100px) { .app { grid-template-columns: minmax(0, 1fr) 290px } }
@media (max-width: 900px) {
  body.room { height: auto; min-height: 100dvh; overflow: visible }
  .app { display: block }
  .table { flex: none; height: min(64vh, 560px); min-height: 330px }
  .felt, .center { inset: 19% 9% }
  .center { padding: 0 11% }
  .side { border-left: 0; border-top: 1px solid var(--line); overflow: visible }
  .keys, .timer .lbl { display: none }
}
@media (max-width: 560px) {
  .bar .seg, .bar .switch .txt { display: none }
  /* Keep the middle of the table clear of the side seats' name tags. */
  .center { padding: 0 21% }
}

/* ---------- Landing ---------- */
body.home { min-height: 100dvh; display: flex; flex-direction: column }
.home .top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: max(20px, env(safe-area-inset-top, 0px)) 20px; max-width: 1480px; width: 100%; margin: 0 auto }
.home main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px 72px; align-items: center; max-width: 1480px; width: 100%; margin: 0 auto; padding-block: 24px 48px }
.home h1 { font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: .95; font-weight: 800 }
.home h1 em { font-style: normal; color: var(--accent-ink) }
.home .lede { font-size: 1.15rem; max-width: 50ch; margin-top: 20px; color: var(--muted) }
.home form { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; max-width: 520px }
.home .slugrow { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow) }
.home .slugrow:focus-within { outline: 2px solid var(--brass) }
.home .slugrow .pre { font-family: var(--f-mono); font-size: .9rem; color: var(--muted); padding: 0 0 0 16px; display: flex; align-items: center; white-space: nowrap }
.home .slugrow input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--f-mono); font-size: 1rem; padding: 16px 8px 16px 2px }
.home .slugrow input:focus { outline: none }
.home .slugrow button { border-radius: 0; padding: 0 22px; font-size: .95rem }
.home .help { font-size: .84rem; color: var(--muted) }
.home .recent { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.home .recent a { font-family: var(--f-mono); font-size: .85rem; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none }
.home .recent a:hover { border-color: var(--muted) }
.fan { position: relative; aspect-ratio: 1.15; width: 100%; max-width: 640px; justify-self: center; container-type: inline-size }
.fan .felt { inset: 8% 0 }
.fan .fc { position: absolute; left: 50%; top: 50%; width: 21cqw; aspect-ratio: 5 / 7; border-radius: 2.4cqw; background: var(--card); color: var(--card-ink); border: 1px solid var(--card-line); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 9cqw; box-shadow: 0 10px 30px -10px rgba(0,0,0,.55); transform-origin: 50% 120%; transform: translate(-50%, -58%) rotate(var(--r)) }
.fan .fc.down { background: repeating-linear-gradient(45deg, transparent 0 5px, color-mix(in srgb, var(--brass) 45%, transparent) 5px 6px), repeating-linear-gradient(-45deg, transparent 0 5px, color-mix(in srgb, var(--brass) 45%, transparent) 5px 6px), var(--back); border: 3px solid var(--card) }
.home .facts { max-width: 1480px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); padding-block: 8px max(28px, env(safe-area-inset-bottom, 0px)) }
.home .facts div { padding: 18px 24px 0 0; display: flex; flex-direction: column; gap: 4px }
.home .facts b { font-family: var(--f-display); font-size: 1.05rem }
.home .facts span { color: var(--muted); font-size: .9rem; max-width: 42ch }
@media (max-width: 860px) {
  .home main { grid-template-columns: 1fr }
  .fan { max-width: 420px; order: -1 }
  .home .facts { grid-template-columns: 1fr }
}

/* 404 */
.lost { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 24px }
.lost h1 { font-size: clamp(2rem, 5vw, 3.4rem) }
.lost p { color: var(--muted); margin: 12px 0 22px }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important }
}
