/* Tumbalo: colours sampled from the game's own screens (Store/screenshots, 2026-11-10). */
:root {
  --night: #090e1d;        /* the top strip */
  --felt: #1f2d55;         /* the table */
  --felt-deep: #141c36;
  --slot: #172447;         /* an empty slot on the felt */
  --wood: #b58952;         /* the rail's plywood */
  --wood-dark: #8b5b34;
  --frame: #af8252;        /* the chalkboards' frame */
  --brass: #e9c36a;        /* labels, the logo's gold */
  --brass-deep: #cc9e44;
  --chalkboard: #1e2623;
  --chalk-green: #72c67c;  /* TABLE CLEARED */
  --paper: #f3ead2;        /* cards and buttons */
  --paper-edge: #cfc3a6;
  --ink: #181818;
  --ink-soft: #4d4638;
  --chips: #508bdc;
  --chips-ink: #24569e;
  --mult: #dd5642;
  --mult-ink: #a3261a;
  --cream: #efe6d2;
  --cream-dim: #b9c0d6;
  --hazard: #f2c230;

  --slab: "Montagu Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --show: "Limelight", "Montagu Slab", Georgia, serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--slab);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--cream);
  background-color: var(--felt);
  /* the felt's dots */
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1.1px, transparent 1.6px);
  background-size: 22px 22px;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--paper); color: var(--ink); padding: 0.5rem 0.9rem; border-radius: 6px; z-index: 10;
}
.skip:focus { top: 1rem; }

/* Big headings only: Limelight, as on the game's boards. */
.show {
  font-family: var(--show);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
}

/* The rail's small brass labels (TRAY, PATRONS, MATCHES). */
.label {
  display: inline-block;
  background: var(--brass);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

/* A plywood frame with brass screws, as round the game's boards. */
.frame {
  padding: 10px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 5px 5px, #f3d98e 0 2px, #8a6a2c 2.2px 3px, transparent 3.4px) 0 0 / 10px 10px no-repeat,
    radial-gradient(circle at 5px 5px, #f3d98e 0 2px, #8a6a2c 2.2px 3px, transparent 3.4px) 100% 0 / 10px 10px no-repeat,
    radial-gradient(circle at 5px 5px, #f3d98e 0 2px, #8a6a2c 2.2px 3px, transparent 3.4px) 0 100% / 10px 10px no-repeat,
    radial-gradient(circle at 5px 5px, #f3d98e 0 2px, #8a6a2c 2.2px 3px, transparent 3.4px) 100% 100% / 10px 10px no-repeat,
    linear-gradient(180deg, #c99b5f, #9a6b3f);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.frame > img, .frame > a > img { border-radius: 3px; width: 100%; }

/* The game's tile buttons: cream, with a thick lower edge. */
.btn {
  display: inline-block;
  min-width: 15rem;
  padding: 0.7rem 1.6rem 0.75rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, #f8f1e2, var(--paper));
  border-radius: 12px;
  border-bottom: 7px solid var(--paper-edge);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}
.btn b { display: block; font-size: 1.45rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.2; }
.btn small { display: block; font-size: 0.9rem; color: var(--ink-soft); }
a.btn:hover { background: #fffaf0; }
a.btn:active { transform: translateY(4px); border-bottom-width: 3px; margin-bottom: 4px; }
.btn.is-off { cursor: default; }

/* A placeholder nobody can miss. Search the files for "PLACEHOLDER". */
.todo {
  display: inline-block;
  padding: 0.05em 0.5em;
  color: var(--ink);
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 10px, #f7d55c 10px 20px);
  border: 2px dashed var(--ink);
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9em;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--night) 0, rgba(9, 14, 29, 0.85) 38%, rgba(9, 14, 29, 0) 100%);
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.hero h1 { width: min(86%, 620px); margin: 0 auto; }
.hero h1 img { width: 100%; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55)); }
.pitch {
  max-width: 24em;
  margin: 1.4rem auto 0;
  font-size: clamp(1.35rem, 3.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
  color: #fff8e6;
  text-wrap: balance;
}
.sub { max-width: 34em; margin: 0.8rem auto 0; color: var(--cream-dim); text-wrap: balance; }
.cta { margin-top: 1.7rem; }
.cta .more { display: block; width: fit-content; margin: 1rem auto 0; font-size: 0.95rem; color: var(--brass); }
.hero .frame { margin-top: clamp(2rem, 5vw, 3rem); }

/* ---------- How it plays: the plywood rail ---------- */
.rail {
  color: var(--ink);
  background: var(--wood) url("../img/wood.webp") 0 0 / 560px 175px;
  border-top: 6px solid #6e4a2a;
  border-bottom: 6px solid #6e4a2a;
  box-shadow: inset 0 10px 18px -8px rgba(0, 0, 0, 0.45), inset 0 -10px 18px -8px rgba(0, 0, 0, 0.35);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.rail .show { color: #2a1c0e; margin-top: 0.6rem; }

.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .steps { grid-template-columns: 1fr 1fr; gap: 1.75rem; } }

.step {
  background: var(--paper);
  border-radius: 6px;
  border-bottom: 6px solid var(--paper-edge);
  box-shadow: 0 8px 16px rgba(40, 22, 6, 0.4);
  overflow: hidden;
}
.step a { display: block; background: var(--night); }
.step img { width: 100%; }
.step-text { padding: 1rem 1.2rem 1.2rem; }
.step h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; display: flex; align-items: center; gap: 0.6rem; }
.step p { margin-top: 0.5rem; color: #2b261d; }
/* the step's number, as a pip count on half a tile */
.num {
  flex: none; width: 1.9rem; height: 1.9rem; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-size: 1rem;
}
.chips { color: var(--chips-ink); font-weight: 700; }
.mult { color: var(--mult-ink); font-weight: 700; }

/* ---------- Gallery: a chalkboard ---------- */
.section { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.board {
  background: var(--chalkboard);
  border: 10px solid var(--frame);
  border-image: linear-gradient(180deg, #c99b5f, #9a6b3f) 1;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  padding: clamp(1.2rem, 4vw, 2.2rem);
}
.board .show { color: var(--chalk-green); }
.board .note { margin-top: 0.4rem; color: #aeb9b1; font-size: 0.95rem; }

.shots { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 540px) { .shots { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .shots { grid-template-columns: 1fr 1fr 1fr; } }
.shots a { display: block; text-decoration: none; border: 3px solid #3a4742; border-radius: 4px; overflow: hidden; background: var(--night); }
.shots a:hover, .shots a:focus-visible { border-color: var(--brass); }
.shots img { width: 100%; }
.shots span { display: block; padding: 0.45rem 0.7rem; font-size: 0.9rem; color: var(--cream); background: #151b19; }

/* ---------- About: a taped paper note ---------- */
.note-paper {
  position: relative;
  max-width: 42rem;
  margin-inline: auto;
  padding: clamp(1.6rem, 5vw, 2.6rem);
  color: var(--ink);
  background: var(--paper);
  border-radius: 3px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
  transform: rotate(-0.6deg);
}
.note-paper::before {
  content: "";
  position: absolute; top: -14px; left: 50%;
  width: 120px; height: 30px; margin-left: -60px;
  background: rgba(233, 195, 106, 0.85);
  transform: rotate(2deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.note-paper .show { font-size: clamp(1.6rem, 4.5vw, 2.2rem); color: #2a1c0e; }
.note-paper p { margin-top: 0.9rem; }

/* ---------- Footer ---------- */
.foot { background: var(--night); border-top: 6px solid var(--wood-dark); padding: 2.5rem 0 3rem; font-size: 0.95rem; color: var(--cream-dim); }
.foot-grid { display: grid; gap: 1.75rem; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot h2 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin-bottom: 0.5rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0.35rem 0; }
.foot a { color: var(--cream); text-underline-offset: 3px; }
.foot a:hover { color: var(--brass); }
.foot .logo-small { width: 170px; margin-bottom: 0.6rem; }
.legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid #243055; font-size: 0.85rem; }

/* ---------- Press kit ---------- */
.press-head { background: var(--night); padding: 1.5rem 0; border-bottom: 6px solid var(--wood-dark); }
.press-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.press-head img { width: 180px; }
.press-head a { color: var(--brass); }
.press h1 { color: var(--brass); }
.press h2.show { font-size: clamp(1.5rem, 4vw, 2rem); color: var(--chalk-green); margin: 2.6rem 0 0.9rem; }
.press p, .press ul { max-width: 46rem; }
.press p + p { margin-top: 0.8rem; }
.press li { margin: 0.3rem 0; }
.press .updated { color: var(--cream-dim); margin-top: 0.5rem; font-size: 0.95rem; }

.facts { background: var(--paper); color: var(--ink); border-radius: 6px; border-bottom: 6px solid var(--paper-edge); padding: 0.6rem 1.2rem; max-width: 46rem; margin: 0; }
.facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid #ddd2b6; }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: 0.1rem; } }

.press .art { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); max-width: none; }
.art li { margin: 0; }
.art a { display: block; text-decoration: none; background: var(--slot); border: 3px solid #2c3b6b; border-radius: 4px; overflow: hidden; }
.art a:hover, .art a:focus-visible { border-color: var(--brass); }
.art .pic { position: relative; aspect-ratio: 16 / 9; }
.art .pic img { position: absolute; inset: 0.8rem; width: calc(100% - 1.6rem); height: calc(100% - 1.6rem); object-fit: contain; }
.art .pic.full img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art span { display: block; padding: 0.45rem 0.7rem; font-size: 0.9rem; background: var(--night); }
