/* Crumble Bridge site tokens: the game's own (scripts/look.gd, docs/style.md), so a page and the
   game look one woodblock print. Every page: the Prussian blue sky graded down the page (bokashi),
   paper cartouches with a sumi key line and a printed shadow, vermilion seal buttons, washi grain. */
@font-face { font-family: "Potta One"; src: url("/fonts/PottaOne.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("/fonts/ZenKakuGothicNew-Medium.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("/fonts/ZenKakuGothicNew-Bold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("/fonts/ZenKakuGothicNew-Black.ttf") format("truetype"); font-weight: 800 900; font-display: swap; }
:root {
  /* The sky (bokashi, top to horizon) and the sea */
  --indigo: #0c1630; --sky-1: #16295a; --sky-2: #23417a; --sky-3: #3a5e98; --sea: #17366b; --sea-line: #2c568f; --foam: #eef2f0;
  /* Paper and ink */
  --paper: #f1e6ce; --paper-deep: #e2d2ae; --paper-shade: #d3bf96;
  --sumi: #1d1a16; --sumi-dim: #54493b; --sumi-faint: #86786a;
  --shu: #c8361f; --shu-hi: #f05a3c; --shu-deep: #8f2414; --gold: #e8b84a; --gold-deep: #a8761c; --crimson: #a8241a;
  --rock: #66695f; --rock-dark: #34362f; --moss: #6f8a4a;
  /* Over the sky: paper letters */
  --ink: #f6eedc; --ink-dim: #e4dac4;
  /* The eight seats' pigments (Look.PLAYER) */
  --p0: #ee8a2a; --p1: #7cc3ec; --p2: #2fae7e; --p3: #f4cb3a; --p4: #9d86ec; --p5: #e2492d; --p6: #f29cc0; --p7: #f3ebdc;
  /* Older names, for anything that still reads them */
  --bg-top: var(--indigo); --bg-low: var(--sky-3); --panel: var(--paper); --row: var(--paper-deep); --edge: var(--sumi);
  --ink-faint: #8d9ab7; --on-light: var(--sumi); --accent: var(--gold); --accent-low: var(--gold-deep); --danger: var(--shu-hi);
  --stone: var(--rock); --scrim: rgba(8, 14, 32, .74);
  --r-s: 3px; --r-m: 4px; --r-l: 6px;
  --shadow: 6px 6px 0 rgba(12, 22, 48, .6);   /* a card's printed shadow: a second block, offset */
  --font: "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-display: "Potta One", "Zen Kaku Gothic New", system-ui, sans-serif;
  /* Paper letters on the sky: a sumi edge all round and a printed shadow down and right */
  --edge-text: -1.5px -1.5px 0 var(--sumi), 1.5px -1.5px 0 var(--sumi), -1.5px 1.5px 0 var(--sumi), 1.5px 1.5px 0 var(--sumi),
    0 1.5px 0 var(--sumi), 0 -1.5px 0 var(--sumi), 1.5px 0 0 var(--sumi), -1.5px 0 0 var(--sumi), 3px 3px 0 var(--sumi);
  /* Washi: sumi specks and long fibres, for paper (an SVG noise filter, no image files) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .16 .9 0 0 0 -.36'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02 .3' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .4 0 0 0 0 .25 1.2 0 0 0 -.68'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  /* The sky's grain: pale fibres and specks over the blue */
  --grain-sky: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02 .3' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .91 0 0 0 0 .82 .6 0 0 0 -.36'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='t'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .91 0 0 0 0 .82 .5 0 0 0 -.22'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23t)'/%3E%3C/svg%3E");
  /* A gold cloud band (kasumi): scallops along the top, sumi edges; repeat it along x */
  --cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='30' viewBox='0 0 64 30'%3E%3Crect x='0' y='12' width='64' height='15' fill='%23e8b84a'/%3E%3Ccircle cx='16' cy='13' r='9' fill='%23e8b84a'/%3E%3Ccircle cx='48' cy='14' r='7' fill='%23e8b84a'/%3E%3Cpath d='M7.6 10.5A9 9 0 0 1 24.4 10.5M41.4 11.6A7 7 0 0 1 54.6 11.6' fill='none' stroke='%231d1a16' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M0 27H64' stroke='%231d1a16' stroke-width='2.4'/%3E%3Cpath d='M4 20H60' stroke='%23f1e6ce' stroke-opacity='.4' stroke-width='1.6'/%3E%3C/svg%3E");
}
/* The one backdrop: the bokashi sky down the whole page, its grain over it (not
   background-attachment: fixed, which iOS ignores and a long page cuts short) */
html { min-height: 100dvh; background: var(--grain-sky), var(--indigo) linear-gradient(var(--indigo), var(--sky-1) 30%, var(--sky-2) 72%, var(--sky-3));
  color: var(--ink); font-family: var(--font); font-weight: 500; }
/* A paper cartouche: washi, a sumi key line, its printed shadow */
.paper { color: var(--sumi); background: var(--grain), var(--paper); border: 3px solid var(--sumi); border-radius: var(--r-l); box-shadow: var(--shadow); }
/* A gold cloud band between parts of a page */
.cloud { display: block; height: 30px; width: min(100%, 720px); margin: 0 auto; border: 0; border-radius: 15px;
  background: var(--cloud) repeat-x left center / auto 100%; filter: drop-shadow(3px 3px 0 rgba(12, 22, 48, .55)); }
/* The seal: vermilion, paper letters, a sumi edge, a paper line inside like a hanko's frame; a
   press stamps it down onto its printed shadow */
.nb-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 400 clamp(1.25rem, 3vw, 1.6rem)/1.05 var(--font-display);
  letter-spacing: .02em; color: var(--paper); background: var(--shu); border: 3px solid var(--sumi); border-radius: var(--r-m); padding: .68em 1.35em .72em;
  text-decoration: none; cursor: pointer; text-shadow: 2px 2px 0 var(--shu-deep);
  box-shadow: inset 0 0 0 3px var(--shu), inset 0 0 0 5px rgba(241, 230, 206, .55), 5px 5px 0 var(--sumi);
  transition: transform .08s, box-shadow .08s; -webkit-tap-highlight-color: transparent; }
.nb-btn:hover { background: #d43d24; }
.nb-btn:active { transform: translate(4px, 4px); box-shadow: inset 0 0 0 3px var(--shu), inset 0 0 0 5px rgba(241, 230, 206, .55), 1px 1px 0 var(--sumi); }
.nb-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
/* A secondary button: paper, sumi letters, the same stamp */
.nb-btn.quiet { color: var(--sumi); background: var(--grain), var(--paper); text-shadow: none; font-family: var(--font); font-weight: 900;
  box-shadow: 5px 5px 0 var(--sumi); }
.nb-btn.quiet:hover { background: var(--grain), #f7eedb; }
.nb-btn.quiet:active { transform: translate(4px, 4px); background: var(--grain), var(--paper-shade); box-shadow: 1px 1px 0 var(--sumi); }
.nb-btn.quiet:focus-visible { outline-color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .nb-btn { transition: none; } }
