/* The pages around the table (home, fairness, terms, privacy): the table's own look (app.css):
   near-black, monospace, the green accent, thin borders, terminal-style lines. Phone first; a
   single column that never scrolls sideways. Nothing here comes from another site. */

:root {
  --bg: #0a0c0b;
  --text: #d9e1dc;
  --bright: #eef2ef;
  --dim: #8b988f;
  --faint: #5d6962;
  --line: #1f2923;
  --accent: #7ee2a8;
  --accent-bg: #111a15;
  --accent-ink: #06140c;
  --warn: #ff5d5d;
  --warn-bg: #2a1212;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 14px; line-height: 1.6; }
body { min-height: 100vh; min-height: 100dvh; -webkit-text-size-adjust: 100%; overflow-wrap: break-word; }
a { color: var(--accent); }
a:hover { color: #b6f3cf; }
a:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p, ul, ol { margin: 0; }
.dim { color: var(--dim); }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* The top line: ryvl:// (on the numbers page, "numbers" beside it). */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line); }
.brand { color: var(--accent); font-weight: 700; font-size: 16px; text-decoration: none; padding: 12px 0; }

section { padding: 36px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
section:last-of-type { border-bottom: none; }
h1 { font-size: 28px; line-height: 1.2; color: var(--bright); font-weight: 700; text-transform: none; letter-spacing: 0; }
h2 { font-size: 12px; color: var(--dim); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; }
h3 { font-size: 14px; color: var(--bright); font-weight: 700; }
.cursor { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .cursor { animation: blink 1.1s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

/* The home page (pass F1, the owner's go of 2026-11-08; pass F2, his of that evening): the headline, then
   the two ways to play as equals, each a box in one look with its one line and its button across it:
   today's Daily Deal (pass D5, one tap away), and a table of your own (friends by its link, bots in any
   empty seat, or both); then one line of what it promises. On a phone the boxes stack; from 768 wide
   they sit side by side, the same size, their buttons level. Nothing else to tap but the footer and the
   line's link to the known limits. */
.front-door { display: flex; flex-direction: column; gap: 14px; padding: 18px 0 28px; }
.front-door h1 { font-size: 24px; }
.cta { display: flex; align-items: center; justify-content: center; height: 52px; padding: 0 20px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; border: 1px solid var(--accent); }
.cta:hover { background: #b6f3cf; color: var(--accent-ink); }
.doors { margin-top: 4px; display: flex; flex-direction: column; gap: 14px; }
.door { border: 1px solid var(--accent); background: var(--accent-bg); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.door p { color: var(--bright); }
.door .cta { margin-top: auto; }
.promise { color: var(--dim); font-size: 12px; line-height: 1.6; padding-top: 6px; }

/* Reading pages (fairness, terms, privacy). */
.doc ul { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.doc code { color: var(--bright); font-family: inherit; overflow-wrap: anywhere; }
.badge { color: var(--accent); border: 1px solid var(--accent); padding: 0 6px; white-space: nowrap; }
.alarm { color: var(--warn); border: 1px solid var(--warn); background: var(--warn-bg); padding: 0 6px; white-space: nowrap; }

footer { border-top: 1px solid var(--line); padding: 20px 0 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; color: var(--dim); font-size: 12px; }
footer a { color: var(--dim); display: inline-flex; align-items: center; min-height: 44px; }
footer span { margin-right: auto; }

@media (min-width: 768px) {
  h1 { font-size: 40px; }
  section { padding: 56px 0; }
  .front-door { padding: 40px 0 48px; gap: 20px; }
  .front-door h1 { font-size: 40px; }
  .doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* The owner's numbers page (/numbers/<its link>, made by the server: src/server/numbers.ts): rows of
   a label and its number, and under a row, across the whole width, what it is made of. */
.figures { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; margin: 0; }
.figures dt { color: var(--dim); }
.figures dd { margin: 0; color: var(--bright); text-align: right; font-variant-numeric: tabular-nums; }
.figures dd.sub { grid-column: 1 / -1; color: var(--dim); font-size: 12px; text-align: left; padding: 0 0 6px 12px; }
