/* Guild Beacon: "heralds and beacons". Ivory paper, ink outlines with a printed offset shadow,
   heraldic colours (gules, azure, or, vert, purpure, sable). The game cabinets are dark so the symbols glow. */
:root {
  --paper: #f4eee1;
  --paper-2: #ebe2cd;
  --paper-3: #fbf8f1;
  --ink: #1d1b18;
  --ink-2: #4b453c;
  --red: #d2432c;
  --red-dk: #b3361f;
  --blue: #2e4fa3;
  --gold: #e3a92d;
  --green: #3e7a4a;
  --purple: #5b3a86;
  --night: #15130f;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 5px 5px 0 var(--ink);
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--red-dk); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; font-variation-settings: 'SOFT' 30, 'WONK' 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 46px; padding: .6em 1.15em; border: 2px solid var(--ink); border-radius: 6px;
  background: var(--paper-3); color: var(--ink); font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--go { background: var(--red-dk); color: #fff; }
.btn--go:hover { color: #fff; }
.btn--warn { color: var(--red-dk); border-color: var(--red-dk); box-shadow: 3px 3px 0 var(--red-dk); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: 3px 3px 0 var(--ink); }

/* kicker: a small ink ribbon */
.kicker { display: inline-block; margin: 0 0 .9em; padding: .28em 1.1em; background: var(--ink); color: var(--paper); font: 700 .78rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%, 9px 50%); }

/* header */
.mast { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 3px double var(--ink); }
.strip { background: var(--ink); color: var(--paper); font-size: .84rem; }
.strip .wrap { display: flex; gap: 10px; align-items: center; min-height: 32px; }
.badge18 { background: var(--red); color: #fff; font-weight: 800; padding: 0 .45em; border-radius: 3px; }
.bar { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.45rem/1 var(--display); white-space: nowrap; }
.logo svg { width: 36px; height: 40px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: .5em .7em; border-radius: 4px; }
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); }
.purse { display: inline-flex; align-items: center; gap: 8px; padding: .38em .8em; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper-3); color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; box-shadow: 2px 2px 0 var(--ink); }
.purse:hover { color: var(--ink); }
.roundel { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); }
.lvl { font-size: .82rem; padding-left: 8px; border-left: 2px solid var(--ink); }
.menu-btn { display: none; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); background: var(--paper-3); font: 700 1rem var(--body); border-radius: 6px; cursor: pointer; color: var(--ink); }

/* hero */
.hero { padding: 56px 0 70px; border-bottom: 2px solid var(--ink); background: linear-gradient(180deg, var(--paper) 0, var(--paper) 70%, var(--paper-2) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 13ch; }
.lead { font-size: 1.2rem; line-height: 1.55; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .95rem; color: var(--ink-2); }
.hero-facts b { display: block; font: 800 1.6rem/1.1 var(--display); color: var(--red-dk); }

/* the banner rail: six pennants under two gilded rods */
.rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 18px; padding-top: 14px; position: relative; }
.rail::before, .rail::after { content: ""; position: absolute; left: -10px; right: -10px; height: 10px; background: var(--gold); border: 2px solid var(--ink); border-radius: 6px; z-index: 1; }
.rail::before { top: 6px; }
.rail::after { top: calc(50% + 2px); }
.pennant { --tilt: calc((var(--i) - 2.5) * .5deg); display: flex; flex-direction: column; background: var(--ink); padding: 3px; text-decoration: none; color: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 91%, 0 100%); transform: rotate(var(--tilt)); transform-origin: 50% 0; transition: transform .35s ease; position: relative; z-index: 2; }
.pennant:hover, .pennant:focus-visible { transform: rotate(calc(var(--tilt) * -3)); color: var(--paper); }
.pennant-top, .pennant-name { background: color-mix(in srgb, var(--c) 82%, #000); color: #fff; font: 700 .74rem/1.25 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 7px 8px; text-align: center; }
.pennant-img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.pennant-name { font: 800 .98rem/1.15 var(--display); text-transform: none; letter-spacing: 0; padding: 9px 8px 26px; }
.pennant[style*="#e3a92d;--k"] .pennant-name, .pennant[style*="#e3a92d;--k"] .pennant-top { background: var(--c); color: var(--ink); }

/* sections */
.sec { padding: 76px 0; }
.sec--tight { padding: 44px 0; }
.sec--band { background: var(--paper-2); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0 24px; margin-bottom: 26px; }
.sec-head .kicker { grid-column: 1 / -1; justify-self: start; }
.sec-head h2 { margin: 0; }
.more { font-weight: 700; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two--wide { grid-template-columns: 1.1fr 1fr; }
.note { font-size: .92rem; color: var(--ink-2); max-width: 80ch; margin-top: 14px; }

/* game cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.cards--small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.card { background: var(--paper-3); border: 2px solid var(--ink); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-art { display: block; border-bottom: 2px solid var(--ink); overflow: hidden; }
.card-art img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .4s ease; }
.card:hover .card-art img { transform: scale(1.03); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h2, .card-body h3 { font-size: 1.4rem; margin: 0 0 .35em; }
.card-body h2 a, .card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h2 a:hover, .card-body h3 a:hover { color: var(--red-dk); }
.shelf-tag { display: flex; align-items: center; gap: 8px; margin: 0 0 .6em; font: 700 .78rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.banner--sm { width: 18px; height: 26px; flex: none; }
.chips { list-style: none; margin: 4px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { border: 1.5px solid var(--ink); border-radius: 999px; padding: .1em .65em; font-size: .82rem; font-weight: 600; background: var(--paper); }
.card-foot { margin: auto 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.card-foot .btn { min-height: 42px; font-size: .95rem; }
.ret { font-size: .85rem; color: var(--ink-2); }
.cards--small .card-body { padding: 14px 16px 16px; }
.cards--small .card-body h3 { font-size: 1.2rem; }
.cards--small .card-body > p:not(.shelf-tag):not(.card-foot) { font-size: .95rem; }
.cards--small .ret { display: none; }

/* pick-by list */
.picks { list-style: none; margin: 0; padding: 0; border: 2px solid var(--ink); background: var(--paper-3); box-shadow: var(--shadow); }
.picks li { display: grid; grid-template-columns: 150px 1fr; gap: 2px 16px; padding: 14px 18px; border-bottom: 1.5px solid var(--ink); }
.picks li:last-child { border-bottom: 0; }
.pick-kind { grid-row: span 2; font: 700 .76rem/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--red-dk); padding-top: 4px; }
.picks a { font: 800 1.12rem/1.2 var(--display); color: var(--ink); }
.pick-what { color: var(--ink-2); font-size: .95rem; }

/* coin ledger and the ridge of beacons */
.ledger { list-style: none; margin: 22px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ledger li { border: 2px solid var(--ink); background: var(--paper-3); padding: 12px 14px; }
.ledger b { display: block; font: 800 1.7rem/1.1 var(--display); color: var(--red-dk); }
.ledger span { font-size: .93rem; color: var(--ink-2); }
.gift-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.gift-row span { font-size: .92rem; color: var(--ink-2); }
.ridge { margin: 0; border: 2px solid var(--ink); background: linear-gradient(180deg, #1f2a4f 0, #3a3f6b 55%, #c9774a 100%); box-shadow: var(--shadow); }
.ridge svg { display: block; width: 100%; height: auto; }
.ridge .hill { fill: #2f5a3a; stroke: var(--ink); stroke-width: 3; }
.ridge .bowl { fill: #6b6458; stroke: var(--ink); stroke-width: 2.5; }
.ridge .legs { stroke: var(--ink); stroke-width: 3; fill: none; }
.ridge .flame { fill: #3b3a45; stroke: none; opacity: .55; transition: fill .5s, opacity .5s; }
.ridge .lit .flame { fill: var(--red); stroke: var(--gold); stroke-width: 3; opacity: 1; filter: drop-shadow(0 0 6px rgba(240, 180, 60, .85)); }
.ridge .lit .bowl { fill: var(--gold); }
.ridge figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding: 10px 14px; background: var(--ink); color: var(--paper); font-size: .95rem; }
.ridge figcaption b { color: var(--gold); }

/* house rules */
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rules li { background: var(--paper-3); border: 2px solid var(--ink); border-top-width: 10px; padding: 18px; }
.rules li:nth-child(1) { border-top-color: var(--red); }
.rules li:nth-child(2) { border-top-color: var(--blue); }
.rules li:nth-child(3) { border-top-color: var(--gold); }
.rules li:nth-child(4) { border-top-color: var(--green); }
.rules h3 { font-size: 1.2rem; }
.rules p { margin: 0; font-size: .97rem; }

/* faq */
.faq details { border: 2px solid var(--ink); background: var(--paper-3); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 14px 18px; font: 700 1.05rem/1.35 var(--body); list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font: 800 1.4rem var(--display); color: var(--red-dk); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; }

/* inner pages */
.inner-hero { padding: 54px 0 40px; background: var(--paper-2); border-bottom: 2px solid var(--ink); }
.inner-hero h1 { max-width: 20ch; }
.prose { max-width: 78ch; }
.prose h2 { margin-top: 1.3em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .55em; }
.credit-list { list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.credit-list li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
.credit-list .thumb { border: 2px solid var(--ink); }
.credit-list span { display: block; color: var(--ink-2); font-size: .95rem; }

/* filters and the facts table */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { min-height: 42px; padding: 0 16px; border: 2px solid var(--ink); background: var(--paper-3); border-radius: 999px; font: 600 .95rem var(--body); cursor: pointer; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.empty { font-weight: 600; }
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); background: var(--paper-3); }
.facts-table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .95rem; }
.facts-table th, .facts-table td { padding: 10px 12px; border-bottom: 1px solid #c9bea4; text-align: left; vertical-align: top; }
.facts-table thead th { background: var(--ink); color: var(--paper); font-weight: 700; }
.facts-table thead a { color: var(--paper); }
.facts-table tbody th { font-weight: 700; white-space: nowrap; }

/* game page */
.game-hero { padding: 26px 0 30px; border-top: 12px solid var(--c); background: var(--paper); }
.crumbs { font-size: .9rem; color: var(--ink-2); margin-bottom: 16px; }
.game-title { display: flex; align-items: flex-start; gap: 18px; }
.game-title .banner { width: 56px; height: 78px; flex: none; }
.game-title h1 { margin: 0; }
.game-title .kicker { margin-bottom: .5em; }
.game-hero .lead { margin-top: 16px; }
.stage-sec { padding: 6px 0 40px; }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; align-items: start; }
.cab { background: var(--night); color: var(--paper); border: 3px solid var(--ink); outline: 4px solid var(--gold); outline-offset: -10px; padding: 18px 18px 14px; box-shadow: 7px 7px 0 var(--ink); }
.cab-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 6px 6px 10px; font-size: .9rem; }
.cab-name { font: 700 .95rem/1.3 var(--display); color: var(--gold); }
.cab-free, .cab-mult { background: var(--gold); color: var(--ink); font-weight: 800; padding: 0 .55em; border-radius: 3px; }
.cab-window { position: relative; display: flex; justify-content: center; background: #0d0c0a; border: 2px solid #4a3f2a; border-radius: 4px; padding: 6px; }
.cab-window canvas { display: block; max-width: 100%; }
.cab-cover { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; background: rgba(13, 12, 10, .88); font-weight: 600; }
.cab-msg { min-height: 3.1em; margin: 10px 6px; font-size: .98rem; }
.cab-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 6px; }
.cost { display: flex; align-items: center; gap: 10px; }
.cost button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); background: transparent; color: var(--paper); font: 700 1.4rem/1 var(--body); cursor: pointer; }
.cost button:disabled { opacity: .35; cursor: not-allowed; }
.cost b { display: block; font: 800 1.35rem/1.1 var(--display); color: var(--gold); text-align: center; min-width: 4ch; }
.cost small { display: block; font-size: .78rem; color: #cfc6b2; text-align: center; }
.spin { min-width: 150px; min-height: 60px; padding: 0 26px; border-radius: 999px; border: 3px solid var(--gold); background: var(--red-dk); color: #fff; font: 800 1.25rem/1 var(--display); cursor: pointer; box-shadow: 0 4px 0 #6d1f10; }
.spin:hover { background: var(--red); }
.spin:active { transform: translateY(3px); box-shadow: 0 1px 0 #6d1f10; }
.spin:disabled { opacity: .5; cursor: not-allowed; }
.cab-stats { display: flex; gap: 18px; margin: 0; }
.cab-stats dt { font-size: .78rem; color: #cfc6b2; }
.cab-stats dd { margin: 0; font: 800 1.15rem/1.2 var(--display); color: var(--paper); }
.cab-note { margin: 10px 6px 4px; font-size: .82rem; color: #cfc6b2; }
.facts { border: 2px solid var(--ink); background: var(--paper-3); padding: 18px 18px 8px; box-shadow: var(--shadow); }
.facts h2 { font-size: 1.3rem; }
.facts dl { margin: 0; }
.facts dl div { display: grid; grid-template-columns: 1fr 1.1fr; gap: 8px; padding: 7px 0; border-top: 1px solid #c9bea4; font-size: .92rem; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 16px 50px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--red-dk); color: #fff; border: 2px solid var(--ink); font: 800 1rem/30px var(--display); text-align: center; }
.world { margin: 20px 0 0; border: 2px solid var(--ink); background: var(--paper-3); box-shadow: var(--shadow); }
.world img { border-bottom: 2px solid var(--ink); }
.world figcaption { padding: 14px 16px; font-size: .95rem; }
.paygrid ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.paygrid li { display: flex; gap: 14px; align-items: center; background: var(--paper-3); border: 2px solid var(--ink); padding: 10px 12px; }
.paygrid img { width: 72px; height: 72px; background: var(--night); border-radius: 6px; padding: 6px; flex: none; }
.paygrid b { display: block; font: 800 1.05rem/1.2 var(--display); }
.paygrid span { display: block; font-size: .92rem; }
.paygrid small { display: block; font-size: .82rem; color: var(--ink-2); margin-top: 2px; }

/* your card */
.cardstats { margin: 0 0 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cardstats div { border: 2px solid var(--ink); background: var(--paper-3); padding: 10px 14px; }
.cardstats dt { font-size: .85rem; color: var(--ink-2); }
.cardstats dd { margin: 0; font: 800 1.35rem/1.2 var(--display); }
.panel { margin-top: 26px; border: 2px solid var(--ink); background: var(--paper-3); padding: 20px; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.35rem; margin-top: 1em; }
.panel h2:first-child { margin-top: 0; }
.pause-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pause-state { font-weight: 700; }
select { font: 600 1rem var(--body); min-height: 42px; padding: 0 10px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 6px; }

/* footer */
.foot { background: var(--ink); color: var(--paper); padding: 56px 0 30px; margin-top: 20px; }
.foot a { color: var(--paper); }
.foot a:hover { color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.foot-logo { display: flex; align-items: center; gap: 10px; font: 800 1.5rem/1 var(--display); }
.foot-logo svg { width: 34px; height: 38px; }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; align-content: start; }
.fine { margin-top: 32px; padding-top: 18px; border-top: 1px solid #4b453c; font-size: .86rem; color: #cfc6b2; }

/* gate, modal, cookie notice, toast, back to top */
.gate, .modal { position: fixed; inset: 0; z-index: 90; background: rgba(29, 27, 24, .78); display: flex; align-items: center; justify-content: center; padding: 16px; }
.gate-box, .modal-box { background: var(--paper); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); max-width: 470px; width: 100%; padding: 28px 26px; text-align: center; }
.gate-badge { width: 82px; height: 82px; margin: 0 auto 14px; border-radius: 50%; background: var(--red-dk); color: #fff; border: 3px solid var(--ink); outline: 3px solid var(--gold); display: flex; align-items: center; justify-content: center; font: 800 1.7rem var(--display); }
.gate-actions, .modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.gate-sorry { margin-top: 16px; font-weight: 700; color: var(--red-dk); }
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 440px; background: var(--paper-3); border: 2px solid var(--ink); box-shadow: var(--shadow); padding: 16px 18px; transform: translateY(140%); transition: transform .35s ease; }
.cookie.show { transform: none; }
.cookie p { font-size: .92rem; }
.cookie-actions { display: flex; gap: 10px; }
.toast { position: fixed; top: 112px; left: 50%; transform: translate(-50%, -20px); z-index: 70; margin: 0; background: var(--ink); color: var(--paper); border: 2px solid var(--gold); padding: 10px 18px; border-radius: 6px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: var(--gold); color: var(--ink); font: 800 1.2rem var(--body); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; box-shadow: 2px 2px 0 var(--ink); }
.to-top.show { opacity: 1; pointer-events: auto; }
body.cookie-open .to-top { bottom: var(--cookie-h, 16px); }

@media (max-width: 1080px) {
  .rules { grid-template-columns: repeat(2, 1fr); }
  .stage { grid-template-columns: 1fr; }
  .facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
}
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--paper); border-bottom: 3px double var(--ink); padding: 10px 20px 16px; }
  .nav.open { display: flex; }
  .purse { margin-left: auto; }
  .bar { position: relative; gap: 12px; }
  .hero-grid, .two, .two--wide { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .sec-head { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .strip { font-size: .76rem; }
  .bar { min-height: 60px; }
  .logo { font-size: 1.15rem; }
  .logo svg { width: 28px; height: 31px; }
  .purse { padding: .3em .6em; font-size: .9rem; }
  .lvl { display: none; }
  .hero { padding: 34px 0 48px; }
  .rail { gap: 28px 10px; }
  .pennant-top { font-size: .6rem; padding: 5px 4px; }
  .pennant-name { font-size: .8rem; padding: 7px 4px 20px; }
  .sec { padding: 52px 0; }
  .cards { grid-template-columns: 1fr; }
  .ledger, .cardstats { grid-template-columns: 1fr 1fr; }
  .rules { grid-template-columns: 1fr; }
  .picks li { grid-template-columns: 1fr; }
  .pick-kind { grid-row: auto; }
  .facts dl { grid-template-columns: 1fr; }
  .cab { padding: 12px 10px 10px; outline-offset: -7px; outline-width: 3px; }
  .cab-bar { justify-content: center; }
  .spin { min-width: 0; flex: 1 1 100%; order: -1; }
  .foot-grid { grid-template-columns: 1fr; }
  .credit-list li { grid-template-columns: 90px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .pennant, .pennant:hover { transform: none; }
}
.ridge .star { fill: #f4eee1; opacity: .8; }
.two > * { min-width: 0; }
