/* SlotGig: a printed slot guide.
   Newsprint paper, two inks (black and a ticket red), Clarendon headlines (Besley),
   a newspaper grotesk for figures and controls (Schibsted Grotesk).
   Rules carry meaning: the thick-and-thin rule opens a page or a new entry,
   a 2px rule opens a section, hairlines separate rows. */

@font-face { font-family: "Besley"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/besley-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Besley"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/besley-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Besley"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/besley-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Besley"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/besley-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Besley"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/besley-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Besley"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/besley-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Besley"; font-style: normal; font-weight: 900; font-display: swap;
  src: url("fonts/besley-latin-900-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Besley"; font-style: normal; font-weight: 900; font-display: swap;
  src: url("fonts/besley-latin-ext-900-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/schibsted-grotesk-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/schibsted-grotesk-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #E9E8E1;   /* newsprint */
  --stock: #F6F5EF;   /* card stock for forms you fill in */
  --ink: #000;
  --ink-2: #4A4943;   /* secondary text */
  --hair: #A8A69C;    /* row rules */
  --red: #C8102E;     /* second ink */
  --red-deep: #9E0C24;
  --serif: "Besley", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
}
[hidden] { display: none !important; }
.card-line dd, .fig b { font-variant-numeric: tabular-nums; }
img { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.visually-hidden { position: absolute !important; 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: 10; }
.skip:focus { left: 8px; }

/* Thick-and-thin rule: opens the page and every new entry. */
.mast, .foot { position: relative; }
.mast { border-bottom: 5px solid var(--ink); margin-bottom: 7px; }
.mast::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; border-bottom: 1px solid var(--ink); }

/* ---------- Masthead ---------- */
.mast-row { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 8px 28px; padding-top: 22px; padding-bottom: 14px; }
.logo { font: 900 2.6rem/0.9 var(--serif); letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.mast-tag { margin: 0; font: 400 1rem/1.3 var(--serif); font-style: italic; color: var(--ink-2); padding-bottom: 3px; }
.mast-nav { display: flex; gap: 22px; padding-bottom: 2px; }
.mast-nav a { font-weight: 700; text-decoration: none; padding-bottom: 2px; border-bottom: 3px solid transparent; }
.mast-nav a[aria-current="page"] { border-bottom-color: var(--red); }

/* ---------- Page openers ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 22px 0 0; padding: 0; font-size: 0.875rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--hair); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.front { padding-top: 40px; padding-bottom: 8px; }
.front h1 { font-weight: 900; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 0.98; letter-spacing: -0.02em; max-width: 14ch; }
.lead { font: 400 1.3125rem/1.5 var(--serif); max-width: 46ch; margin: 18px 0 0; }
.front .lead { color: var(--ink-2); }

/* ---------- Provider index (top of every catalogue) ---------- */
.index { margin-top: 34px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.index ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.index li { border-right: 1px solid var(--hair); }
.index a { display: block; padding: 9px 14px; font-size: 0.9375rem; font-weight: 700; text-decoration: none; }
.index li:first-child a { padding-left: 0; }
.index a span { font-weight: 400; color: var(--ink-2); margin-left: 3px; }
.index a[aria-current="page"] { color: var(--red); }
.index a[aria-current="page"] span { color: var(--red); }

.tools { display: flex; flex-wrap: wrap; align-items: end; gap: 16px 32px; padding: 20px 0 24px; }
.field { display: grid; gap: 4px; }
.field > span { font-size: 0.8125rem; font-weight: 700; }
.field input, .field select {
  font: 400 1.25rem/1.2 var(--serif); color: var(--ink); background: transparent;
  border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 6px 2px; min-width: 0;
}
.field-search { flex: 1 1 280px; max-width: 420px; }
.field-search input { width: 100%; }
.field select { padding-right: 26px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: linear-gradient(45deg, transparent 50%, var(--ink) 50%) right 10px center / 6px 6px no-repeat,
              linear-gradient(-45deg, transparent 50%, var(--ink) 50%) right 4px center / 6px 6px no-repeat; }
.field input::placeholder { color: var(--ink-2); opacity: 0.7; }

/* ---------- Contact sheet of games ---------- */
.sheet {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); border-left: 1px solid var(--ink);
}
.sheet-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.entry { display: flex; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.entry[hidden] { display: none; }
.entry-link { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 14px 14px 16px; text-decoration: none; color: var(--ink); }
.entry-link:hover { color: var(--ink); }
.entry-link:focus-visible { outline-offset: -4px; }
.entry-art { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: var(--ink); outline: 1px solid var(--ink); }
.entry-prov { margin-top: 12px; font-size: 0.8125rem; color: var(--ink-2); }
.entry-name { font: 700 1.3125rem/1.12 var(--serif); margin: 2px 0 10px; overflow-wrap: anywhere; }
.entry-link:hover .entry-name { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.entry-figs { margin-top: auto; display: grid; grid-template-columns: auto auto auto; justify-content: space-between; gap: 6px 10px; padding-top: 8px; border-top: 1px solid var(--hair); font-size: 0.8125rem; line-height: 1.25; }
.fig { min-width: 0; }
.fig-k { display: block; color: var(--ink-2); font-size: 0.75rem; }
.fig b { font: 700 0.9375rem/1.2 var(--serif); white-space: nowrap; }
.fig-players { grid-column: 1 / -1; }
.fig-players .fig-k { display: inline; margin-right: 4px; }
.fig-score b { color: var(--red); }
.fig-score.is-empty b { color: var(--ink-2); }
.fig[hidden] { display: none; }
.empty { padding: 28px 0; font: 400 1.25rem var(--serif); }

/* ---------- Home shelves ---------- */
.shelf { margin-top: 52px; }
.shelf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; padding-bottom: 12px; }
.shelf-head h2 { font-weight: 900; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1; letter-spacing: -0.01em; }
.shelf-head p { margin: 0; font-size: 0.9375rem; color: var(--ink-2); }
.all-row { margin-top: 28px; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Studios list (home) ---------- */
.studios { margin-top: 72px; }
.sheet-h { margin-top: 30px; }
.studios > h2, .related > h2, .sheet-h { font-weight: 900; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1; letter-spacing: -0.01em; padding-bottom: 12px; }
.studio-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 2px solid var(--ink); }
.studio-list li { padding: 16px 0 18px; border-bottom: 1px solid var(--hair); }
.studio-list a { font: 700 1.375rem/1.2 var(--serif); text-decoration: none; }
.studio-list a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.studio-count { display: block; font-size: 0.875rem; color: var(--ink-2); margin-top: 2px; }
.studio-list p { margin: 8px 0 0; font: 400 1rem/1.5 var(--serif); max-width: 60ch; }

/* ---------- Game page ---------- */
.game-head { padding-top: 26px; padding-bottom: 24px; }
.game-head h1 { font-weight: 900; font-size: clamp(2.75rem, 7.6vw, 6rem); line-height: 0.95; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.game-head h1.is-long { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1; }
.byline { margin: 16px 0 0; font-size: 0.9375rem; color: var(--ink-2); }
.byline a { color: var(--red); font-weight: 700; text-decoration: none; }
.byline a:hover { text-decoration: underline; }

/* The demo sits on a black plate with a halftone screen behind the cover. */
.stage-band { background: var(--ink); color: var(--paper); padding: 22px 0; }
.stage {
  position: relative; aspect-ratio: 16 / 9; max-height: 78vh; margin: 0 auto; overflow: hidden; isolation: isolate;
  background: #000 radial-gradient(circle, #2a2a27 1.1px, transparent 1.3px) 0 0 / 7px 7px;
}
.stage-cover {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  gap: 18px; padding: 20px; text-align: center;
}
.stage-art { display: block; width: min(440px, 52vw); height: auto; aspect-ratio: 4 / 3; object-fit: contain; outline: 1px solid #55544e; background: #000; }
.stage-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }

.btn {
  display: inline-block; font: 700 1.125rem/1 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
  padding: 15px 24px; border: 2px solid currentColor; border-radius: 0; background: transparent; color: inherit;
}
.btn-play { background: var(--red); border-color: var(--red); color: #fff; }
.btn-play:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.btn-real { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-real:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-quiet { font-size: 0.9375rem; padding: 9px 14px; color: var(--paper); border-width: 1px; }
.btn-quiet:hover { color: #fff; }

.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.stage:fullscreen { aspect-ratio: auto; max-height: none; }
.stage.is-max { position: fixed; inset: 0; z-index: 1000; width: 100vw; height: 100vh; height: 100dvh; aspect-ratio: auto; max-height: none; }
.no-scroll, .no-scroll body { overflow: hidden; }
.stage-loading { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; background: rgba(0, 0, 0, 0.88); color: var(--paper); }
.stage-loading p { margin: 0; max-width: 46ch; }
.stage-slow { font-size: 0.9375rem; color: #bdbbb2; }
.stage-slow a { color: #fff; font-weight: 700; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #44433e; border-top-color: var(--red); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-exit { position: absolute; top: 12px; right: 12px; z-index: 3; font: 700 0.9375rem var(--sans); color: var(--paper); background: #000; border: 1px solid var(--paper); padding: 8px 14px; cursor: pointer; }
.stage-bar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.stage-bar:has(> :not([hidden])) { padding-top: 14px; }
.stage-bar .btn-real { font-size: 1rem; padding: 10px 16px; }

/* Card line: the game's key figures in one ruled row, like a race card. */
.card-line {
  display: grid; grid-template-columns: 1.3fr; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column;
  margin: 0; border-bottom: 2px solid var(--ink);
}
.card-line > div { padding: 14px 14px 16px; border-right: 1px solid var(--hair); min-width: 0; }
.card-line > div:first-child { padding-left: 0; }
.card-line > div:last-child { border-right: 0; }
.card-line dt { font-size: 0.8125rem; color: var(--ink-2); }
.card-line dt a { text-decoration-color: var(--hair); }
.card-line dd { margin: 4px 0 0; font: 700 1.125rem/1.2 var(--serif); overflow-wrap: break-word; }
.card-line dd b { font-weight: 900; }
.card-line small { font: 400 0.875rem var(--sans); color: var(--ink-2); margin-left: 2px; }
.cl-score dd b { font-size: 2.6rem; line-height: 0.9; color: var(--red); }
.cl-players dd b { font-size: 2.6rem; line-height: 0.9; }
.cl-note, .cl-tally { display: block; margin: 6px 0 0; font: 400 0.8125rem/1.3 var(--sans); color: var(--ink-2); }

.game-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-top: 40px; padding-bottom: 32px; align-items: start; }

/* Review text */
.prose { max-width: 680px; font: 400 1.125rem/1.68 var(--serif); }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose a { text-decoration-color: var(--red); }
.review-title { font-weight: 900; font-size: clamp(1.9rem, 3.2vw, 2.4rem); line-height: 1.05; }
.prose .lead { font-size: 1.3125rem; margin: 16px 0 26px; max-width: none; }
.prose h3 { font-weight: 700; font-size: 1.375rem; line-height: 1.2; margin: 28px 0 10px; }
.part { margin-top: 44px; padding-top: 14px; border-top: 2px solid var(--ink); }
.part > h2 { font-weight: 900; font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.08; margin-bottom: 14px; }
.part > section > h3:first-child { margin-top: 18px; }
section[aria-labelledby], h2[id], h3[id] { scroll-margin-top: 20px; }

.contents { margin: 0 0 8px; padding: 12px 0 14px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-family: var(--sans); }
.contents h3 { font: 700 0.875rem var(--sans); margin: 0 0 6px; }
.contents ul { columns: 2; column-gap: 28px; list-style: none; margin: 0; padding: 0; }
.contents li { margin: 0; break-inside: avoid; font-size: 0.9375rem; line-height: 1.6; }
.contents a { text-decoration: none; }
.contents a:hover { text-decoration: underline; }

.balance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.balance h3 { font: 700 1rem var(--sans); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.balance ul { list-style: none; padding: 0; margin: 0; }
.balance li { position: relative; padding: 8px 0 8px 22px; border-bottom: 1px solid var(--hair); margin: 0; font-size: 1.0625rem; line-height: 1.45; }
.balance li::before { position: absolute; left: 0; top: 7px; font: 900 1.125rem/1.3 var(--sans); }
.pros li::before { content: "+"; color: var(--red); }
.cons li::before { content: "\2212"; }

.verdict p:first-of-type { font-size: 1.3125rem; line-height: 1.55; }

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 0; font: 700 1.125rem/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--sans); color: var(--red); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { margin: 0 0 16px; }

.sources { margin-top: 40px; padding-top: 12px; border-top: 1px solid var(--ink); font: 400 0.875rem/1.55 var(--sans); color: var(--ink-2); }
.sources summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.sources a { overflow-wrap: anywhere; }

/* ---------- Sidebar ---------- */
.side { display: grid; gap: 36px; }
.side h2 { font-weight: 900; font-size: 1.5rem; line-height: 1.1; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.side table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.side th, .side td { text-align: left; vertical-align: top; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.side th { font-weight: 400; color: var(--ink-2); padding-right: 12px; width: 42%; }
.side td { font-weight: 700; overflow-wrap: anywhere; }
.side td small { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.8125rem; margin-top: 2px; }

/* The ballot: a slip you mark with a cross. */
.ballot { background: var(--stock); border: 2px solid var(--ink); padding: 18px 18px 16px; }
.ballot h2 { border-bottom: 0; padding-bottom: 0; }
.ballot[hidden] { display: none; }
.ballot-help { margin: 6px 0 14px; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }
.ballot-boxes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ballot-boxes label { position: relative; display: grid; place-items: center; aspect-ratio: 1; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; }
.ballot-boxes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.box-n { font: 900 1.5rem/1 var(--serif); }
.ballot-boxes label:hover { background: #fff; }
.ballot-boxes label:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.mark { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); fill: none; stroke: var(--red); stroke-width: 4.5; stroke-linecap: round; opacity: 0; pointer-events: none; }
.mark path { stroke-dasharray: 70; stroke-dashoffset: 70; }
.ballot-boxes label:has(input:checked) .mark { opacity: 1; }
.ballot-boxes label:has(input:checked) .mark path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.32s ease-out; }
.ballot-boxes label:has(input:checked) .box-n { opacity: 0.35; }
.ballot-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.75rem; color: var(--ink-2); }
.ballot-tally { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--hair); font-size: 0.875rem; color: var(--ink-2); }
.ballot-tally b { color: var(--ink); }
.ballot-msg { margin: 6px 0 0; font-size: 0.875rem; font-weight: 700; min-height: 1.3em; }
.ballot-msg.is-error { color: var(--red); }
.ballot.is-off .ballot-boxes { opacity: 0.45; pointer-events: none; }

.scorecard td { white-space: nowrap; }
.bar { display: inline-block; vertical-align: middle; width: 54px; height: 8px; margin-right: 8px; border: 1px solid var(--ink);
  background: linear-gradient(90deg, var(--ink) var(--f), transparent var(--f)); }
.scorecard tr.total th, .scorecard tr.total td { border-bottom: 2px solid var(--ink); color: var(--ink); font-weight: 700; }
.scorecard tr.total td { color: var(--red); }
.note { margin: 10px 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-2); }

.more ul { list-style: none; margin: 0; padding: 0; }
.more li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 0.9375rem; }
.more li a { font-weight: 700; text-decoration: none; }
.more li a:hover { text-decoration: underline; }
.more li span { color: var(--ink-2); white-space: nowrap; }
.all-link { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 0.9375rem; text-decoration-color: var(--red); }

.related { margin-top: 48px; margin-bottom: 16px; }

/* ---------- Provider pages ---------- */
.prov-head { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 40px; align-items: end; padding-top: 30px; }
.prov-head h1 { font-weight: 900; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 0.98; letter-spacing: -0.02em; }
.prov-head .lead { max-width: 52ch; }
.prov-facts { margin: 0; border-top: 2px solid var(--ink); }
.prov-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.prov-facts dt { color: var(--ink-2); font-size: 0.9375rem; }
.prov-facts dd { margin: 0; font-weight: 700; text-align: right; }
.prov-body { padding-top: 56px; }
.compare { margin-top: 40px; }
.table-scroll { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.ledger thead th { text-align: left; font-size: 0.8125rem; font-weight: 700; padding: 8px 12px 8px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.ledger tbody th, .ledger td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.ledger tbody th { font-weight: 700; }
.ledger tbody th a { text-decoration: none; }
.ledger tbody th a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.ledger tbody th small { display: block; font-weight: 400; color: var(--ink-2); margin-top: 2px; max-width: 70ch; }
.ledger .num { text-align: right; padding-right: 24px; }
.ledger td:nth-child(2) { font-weight: 700; }
.prov-table td:nth-child(2) { font-weight: 400; }

.notfound { padding-bottom: 80px; }
.notfound .btn { margin-top: 18px; }

/* ---------- Footer ---------- */
.foot { margin-top: 80px; border-top: 1px solid var(--ink); }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 5px solid var(--ink); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; padding-top: 40px; padding-bottom: 24px; }
.logo-small { font-size: 1.9rem; }
.foot-about p { margin: 14px 0 0; max-width: 54ch; font-size: 0.9375rem; }
.foot .quiet { color: var(--ink-2); font-size: 0.875rem; }
.age { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--red); border-radius: 50%; color: var(--red); font: 900 0.875rem/1 var(--sans); margin-right: 6px; vertical-align: middle; }
.foot-h { font: 700 0.875rem var(--sans); margin-bottom: 8px; }
.foot-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.foot-list li { padding: 5px 0; border-bottom: 1px solid var(--hair); break-inside: avoid; font-size: 0.9375rem; }
.foot-list a { text-decoration: none; font-weight: 700; }
.foot-list span { color: var(--ink-2); }
.foot-base { padding-top: 14px; padding-bottom: 28px; font-size: 0.8125rem; color: var(--ink-2); }

/* ---------- Narrower screens ---------- */
@media (max-width: 1080px) {
  .card-line { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row; }
  .card-line > div { border-bottom: 1px solid var(--hair); }
  .card-line > div:nth-child(4n) { border-right: 0; }
  .card-line > div:nth-child(4n + 1) { padding-left: 0; }
  .game-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
}
@media (max-width: 860px) {
  .mast-row { grid-template-columns: 1fr auto; }
  .mast-tag { grid-column: 1 / -1; grid-row: 2; }
  .game-body, .prov-head { grid-template-columns: minmax(0, 1fr); }
  .side { max-width: 560px; }
  .studio-list { grid-template-columns: minmax(0, 1fr); }
  .sheet-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .logo { font-size: 2.1rem; }
  .mast-row { padding-top: 16px; }
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-link { padding: 10px 10px 12px; }
  .entry-name { font-size: 1.0625rem; }
  .entry-figs { gap: 4px 8px; }
  .fig b { font-size: 0.875rem; }
  .card-line { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; }
  .card-line > div { border-right: 1px solid var(--hair); }
  .card-line > div:nth-child(4n) { border-right: 1px solid var(--hair); }
  .card-line > div:nth-child(2n) { border-right: 0; padding-right: 0; }
  .card-line > div:nth-child(2n + 1) { padding-left: 0; }
  .card-line > div:nth-child(4n + 1) { padding-left: 0; }
  .stage { aspect-ratio: 3 / 4; max-height: none; }
  .stage-art { width: min(320px, 82vw); }
  .stage-actions { flex-direction: column; align-items: stretch; width: min(320px, 100%); }
  .contents ul, .foot-list { columns: 1; }
  .balance { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .prose { font-size: 1.0625rem; }
  .prose .lead, .lead { font-size: 1.1875rem; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .tools { gap: 14px 20px; }
  .index ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .index li { flex: none; }
  .index a { padding: 9px 12px; font-size: 0.875rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .stage-band, .ballot, .tools, .index, .mast-nav { display: none; }
}

/* Bilingual navigation and popular slots */
.mast-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 12px 24px; }
.language-nav { display: flex; gap: 0; border: 1px solid var(--ink); align-self: center; font-size: .8125rem; line-height: 1.2; }
.language-nav a { padding: 8px 10px; text-decoration: none; white-space: nowrap; }
.language-nav a + a { border-left: 1px solid var(--ink); }
.language-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.language-nav a:hover { background: var(--red); color: #fff; }
.popular-notes { margin-top: 14px; max-width: 76ch; font-size: .875rem; color: var(--ink-2); }
.popular-notes summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.popular-notes p { margin: 10px 0; }
.popular-notes ul { padding-left: 20px; }
.provider-notes { margin-top: 36px; max-width: var(--wrap); }
.provider-notes p { max-width: 70ch; }
html[lang="de"] .entry-figs { grid-template-columns: minmax(0,auto) minmax(0,auto) minmax(0,auto); }
html[lang="de"] .fig b { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 760px) { .mast-actions { justify-content: flex-start; gap: 12px 20px; } .mast-nav { gap: 18px; } }
@media (max-width: 640px) { .mast-row { grid-template-columns: 1fr; align-items: start; } .mast-actions { grid-column: 1; grid-row: 2; justify-content: space-between; } .mast-tag { grid-row: 3; } }
@media (max-width: 420px) { .mast-actions { width: 100%; justify-content: space-between; } .language-nav a { padding: 8px; } }
