/* =========================================================================
   Sports Bar RELOAD — Студентски град, София
   Design system: taken from the bar's own sign.
   Ground: the logo's black plate. Surface: chalkboard. Accent: the flame
   gradient off "feel the flame". Torn edges echo the sign's ragged frame.
   Mobile-first. Media queries at 640 / 900 / 1200.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Colour — the sign first, the room second */
  --felt-900: #0B0B0C; /* the logo's black plate — page ground */
  --felt-800: #141418; /* cards, lifted surfaces */
  --felt-700: #1D1E23; /* hovers */
  --felt-600: #33363E; /* hairlines on hover */

  --deep: #0C2E3E;     /* pool-felt blue, now a guest and not the host */
  --deep-2: #10425A;

  --chalk: #F1EDE2; /* warm chalk white */
  --chalk-70: rgba(241, 237, 226, 0.70);
  --chalk-45: rgba(241, 237, 226, 0.45);
  --chalk-18: rgba(241, 237, 226, 0.18);
  --chalk-08: rgba(241, 237, 226, 0.08);

  --flame: #FF6B1A;      /* straight off the logo */
  --flame-hot: #FFB020;
  --flame-gold: #FFC72C; /* the gold tip of "feel the flame" */
  --flame-grad: linear-gradient(100deg, #FF3D00 0%, #FF8A00 48%, #FFC72C 100%);
  --flame-ink: #190800;  /* legible on every stop of that gradient */

  /* The sign's ragged frame, reused as a section edge */
  --tear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='22' viewBox='0 0 220 22'%3E%3Cpath fill='%23000' d='M0 22 L220 22 L220 11 L212 15 L203 6 L192 11 L181 3 L169 16 L157 8 L148 14 L136 2 L124 12 L113 5 L101 17 L92 7 L80 13 L68 4 L59 16 L47 6 L38 12 L26 3 L17 14 L9 5 L0 11 Z'/%3E%3C/svg%3E");
  --tear-h: 22px;

  --board: #123529; /* the chalkboard / pitch green */
  --board-line: rgba(241, 237, 226, 0.22);

  /* Type */
  --font-display: "Unbounded", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", ui-monospace, monospace;

  --step-xl: clamp(2.35rem, 7.2vw, 5.5rem);
  --step-xxl: clamp(2.6rem, 8vw, 6rem);
  --step-l: clamp(1.9rem, 5vw, 3.25rem);
  --step-m: clamp(1.5rem, 4vw, 2.25rem);
  --step-s: clamp(1.15rem, 2.6vw, 1.4rem);
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-mono: 0.6875rem;

  /* Space */
  --gap: 1.75rem;
  --section-y: clamp(5rem, 12vw, 10rem);
  --wrap: 1240px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.25, 1);
  --dur: 0.45s;
}

/* -------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--felt-900);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Felt weave: a barely-there texture so the ground reads as cloth, not flat ink */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(255, 107, 26, 0.16), transparent 72%),
    radial-gradient(ellipse 60% 40% at 85% 12%, rgba(16, 66, 90, 0.30), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 3px);
}

img { max-width: 100%; height: auto; display: block; }

/* A component's own display rule must never beat the hidden attribute. */
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--flame-hot);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--flame); color: #fff; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 200;
  background: var(--flame);
  color: #fff;
  padding: 0.7rem 1.1rem;
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.75rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------------------
   3. Shared type utilities
   ------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flame-hot);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
}
.eyebrow::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background-image: var(--flame-grad);
  flex: none;
}
.eyebrow--chalk { color: var(--chalk-45); }
.eyebrow--chalk::before { background: var(--chalk-45); }

.lede {
  font-size: clamp(1.0625rem, 0.98rem + 0.45vw, 1.3125rem);
  line-height: 1.72;
  color: var(--chalk-70);
  max-width: 58ch;
}

.title-xl { font-size: var(--step-xl); text-transform: uppercase; font-weight: 900; letter-spacing: -0.03em; }
.title-l  { font-size: var(--step-l); text-transform: uppercase; letter-spacing: -0.025em; }
.title-m  { font-size: var(--step-m); }
.title-s  { font-size: var(--step-s); letter-spacing: -0.02em; }

.flame-text { color: var(--flame); }


/* -------------------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 1.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              color 0.18s var(--ease), border-color 0.18s var(--ease);
  background: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--flame {
  background-image: var(--flame-grad);
  color: var(--flame-ink);
  border-color: transparent;
  box-shadow: 0 14px 34px -16px rgba(255, 107, 26, 0.85);
}
.btn--flame:hover {
  filter: brightness(1.1);
  box-shadow: 0 18px 40px -16px rgba(255, 140, 0, 0.95);
}

.btn--ghost { border-color: var(--chalk-18); color: var(--chalk); }
.btn--ghost:hover { border-color: var(--chalk); background: var(--chalk-08); }

.btn--block { width: 100%; }

/* -------------------------------------------------------------------------
   5. Header / navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--chalk-08);
  transition: padding 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-stuck { background: rgba(11, 11, 12, 0.95); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

/* The real sign, knocked out of its black plate (img/logo-mark.png) */
.brand { display: flex; align-items: center; flex: none; }
.brand__img {
  width: clamp(108px, 12vw, 134px);
  height: auto;
  display: block;
  transition: transform 0.3s var(--ease);
}
.brand:hover .brand__img { transform: rotate(-1.2deg) scale(1.03); }
.brand--lg .brand__img { width: clamp(170px, 20vw, 215px); }
/* The brand and the toggle sit above the open mobile panel so the close
   control is always reachable. */
.site-header .brand { position: relative; z-index: 101; }
.nav-toggle {
  --bar: var(--chalk);
  position: relative;
  z-index: 101;
  width: 44px; height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--chalk-18);
  border-radius: 2px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--bar);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--felt-900);
  padding: 6rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.28s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  overflow-y: auto;
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; }

.nav__list { list-style: none; display: flex; flex-direction: column; }

.nav__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--chalk-08);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--chalk-70);
  transition: color 0.2s var(--ease), padding-left 0.25s var(--ease);
}
.nav__link:hover { color: var(--chalk); padding-left: 0.5rem; }
.nav__link[aria-current="page"] { color: var(--flame); }
.nav__num {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: var(--chalk-45);
  flex: none;
}

.nav__cta { margin-top: 1.75rem; }

.nav__aside {
  margin-top: auto;
  padding-top: 2rem;
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk-45);
  display: grid;
  gap: 0.4rem;
}

/* Desktop CTA hidden on mobile, mobile CTA lives inside the panel */
.header__cta { display: none; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav {
    position: static;
    transform: none;
    visibility: visible;
    opacity: 1;
    background: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    overflow: visible;
    margin-left: auto;
    margin-right: 1.5rem;
  }
  .nav__list { flex-direction: row; gap: 0.35rem; }
  .nav__link {
    display: block;
    padding: 0.45rem 0.8rem;
    border: 0;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    border-radius: 2px;
  }
  .nav__link:hover { padding-left: 0.8rem; background: var(--chalk-08); }
  .nav__link[aria-current="page"] { background: var(--chalk-08); }
  .nav__num, .nav__cta, .nav__aside { display: none; }
  .header__cta { display: inline-flex; padding: 0.85rem 1.4rem; font-size: 0.6875rem; }
}

body.nav-locked { overflow: hidden; }

/* The mobile panel is position:fixed inside the header. A backdrop-filter on
   an ancestor makes that ancestor the containing block for fixed children,
   which would trap the panel inside the header bar — so drop the filter for
   as long as the menu is open and let the header go solid instead. */
body.nav-locked .site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--felt-900);
}

/* -------------------------------------------------------------------------
   6. Section scaffolding
   ------------------------------------------------------------------------- */
.section { padding-block: var(--section-y); position: relative; z-index: 1; }
.section--tight { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--hairline { border-top: 1px solid var(--chalk-08); }

/* A raised panel looks torn out and laid on the black, the way the sign is */
.section--raised {
  background: var(--deep);
  margin-block: clamp(1.5rem, 4vw, 3rem);
}
.section--raised::before,
.section--raised::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--tear-h);
  /* the SVG is only a shape here; the mask paints it in the panel's colour */
  -webkit-mask-image: var(--tear);
  mask-image: var(--tear);
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: 220px var(--tear-h);
  mask-size: 220px var(--tear-h);
  background: var(--deep);
  pointer-events: none;
}
.section--raised::before { top: calc(1px - var(--tear-h)); }
.section--raised::after { bottom: calc(1px - var(--tear-h)); transform: scaleY(-1); }

.section-head { margin-bottom: clamp(2.75rem, 6.5vw, 5rem); }
.section-head .lede { margin-top: 1.5rem; }

@media (min-width: 900px) {
  .section-head--split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 4.5rem;
    align-items: end;
  }
  .section-head--split .lede { margin-top: 0; }
}

/* -------------------------------------------------------------------------
   7. THE BOARD — the signature device
   A chalkboard fixture list. Used for tonight's screens, the champions wall,
   the tournament calendar and the 404. Everything else stays quiet.
   ------------------------------------------------------------------------- */
.board {
  background-color: var(--board);
  background-image:
    radial-gradient(ellipse 120% 80% at 20% 0%, rgba(255, 255, 255, 0.07), transparent 60%),
    repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 7px);
  border: 1px solid rgba(241, 237, 226, 0.14);
  border-radius: 3px;
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.45),
    0 26px 60px -30px rgba(0, 0, 0, 0.85);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
/* Chalk dust in the tray */
.board::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--chalk-18) 20%, var(--chalk-18) 80%, transparent);
}

.board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid var(--board-line);
  margin-bottom: 0.5rem;
}
.board__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chalk);
  margin: 0;
}
.board__date {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-45);
}

.board__rows { list-style: none; }

.board__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.85rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px dashed var(--board-line);
  font-family: var(--font-mono);
}
.board__row:last-child { border-bottom: 0; }

.board__time {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--flame-gold);
  font-variant-numeric: tabular-nums;
  grid-row: span 2;
}
.board__fixture {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--chalk);
  letter-spacing: -0.01em;
}
.board__meta {
  grid-column: 2;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chalk-45);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
}
.board__screen { color: var(--chalk-70); }

.board__foot {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--board-line);
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-45);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}
.board__foot strong { color: var(--chalk); font-weight: 700; }
.board__free { color: var(--flame-gold); }

@media (min-width: 640px) {
  .board { padding: 2.4rem; }
  .board__row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .board__time { grid-row: auto; }
  .board__meta { grid-column: auto; justify-content: flex-end; text-align: right; }
}

/* Chalk-in reveal (JS adds .is-chalked) */
.board--animate .board__row,
.board--animate .board__foot {
  opacity: 0;
  transform: translateY(8px);
}
.board--animate.is-chalked .board__row,
.board--animate.is-chalked .board__foot {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.board--animate.is-chalked .board__row:nth-child(1) { transition-delay: 0.12s; }
.board--animate.is-chalked .board__row:nth-child(2) { transition-delay: 0.24s; }
.board--animate.is-chalked .board__row:nth-child(3) { transition-delay: 0.36s; }
.board--animate.is-chalked .board__row:nth-child(4) { transition-delay: 0.48s; }
.board--animate.is-chalked .board__row:nth-child(5) { transition-delay: 0.60s; }
.board--animate.is-chalked .board__foot { transition-delay: 0.72s; }

/* -------------------------------------------------------------------------
   8. Hero
   ------------------------------------------------------------------------- */
.hero {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: var(--section-y);
  position: relative;
  z-index: 1;
}
.hero__grid {
  display: grid;
  gap: clamp(2.75rem, 6vw, 4.5rem);
  margin-top: clamp(2.25rem, 5vw, 3.75rem);
}

.hero__title { margin-bottom: 0; max-width: 18ch; }
.hero__title em {
  font-style: normal;
  display: block;
  color: var(--flame); /* fallback wherever background-clip:text is unsupported */
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero__title em,
  .flame-text {
    background-image: var(--flame-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.hero__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 3.25rem;
  background: var(--chalk-08);
  border: 1px solid var(--chalk-08);
}
.hero__stat { background: var(--felt-900); padding: 1.35rem 1.35rem; }
.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--chalk);
}
.hero__stat span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chalk-45);
}

@media (min-width: 640px) {
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    align-items: start;
    gap: 4rem;
  }
  .hero__title { max-width: 20ch; }
}

/* -------------------------------------------------------------------------
   9. Tables / games list
   ------------------------------------------------------------------------- */
.games { list-style: none; display: grid; gap: 1px; background: var(--chalk-08); border-block: 1px solid var(--chalk-08); }

.game {
  background: var(--felt-900);
  display: grid;
  gap: 1.5rem;
  padding: 2.25rem 0;
  position: relative;
  transition: background-color 0.3s var(--ease);
}
.game:hover { background: var(--felt-800); }

.game__media {
  order: -1;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 2px;
  background: var(--felt-700);
}
.game__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
  transition: transform 0.7s var(--ease), filter 0.4s var(--ease);
}
.game:hover .game__media img { transform: scale(1.05); filter: saturate(1) contrast(1.05); }

.game__body { display: grid; gap: 0.95rem; align-content: start; }
.game__index {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: var(--flame);
}
.game__name { font-size: clamp(1.4rem, 4vw, 2rem); text-transform: uppercase; letter-spacing: -0.035em; }
.game__text { color: var(--chalk-70); font-size: 0.9375rem; }

.game__spec {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 0.35rem;
}
.game__spec li {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-70);
  border: 1px solid var(--chalk-18);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

@media (min-width: 760px) {
  .game {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4.5rem;
    align-items: center;
    padding: 3.5rem 0;
  }
  .game__media { grid-area: 1 / 1; aspect-ratio: 4 / 3; }
  .game__body { grid-area: 1 / 2; }
  .game:nth-child(even) .game__media { grid-area: 1 / 2; }
  .game:nth-child(even) .game__body { grid-area: 1 / 1; }
}

/* -------------------------------------------------------------------------
   10. Champions wall — the record the bar actually keeps
   ------------------------------------------------------------------------- */
.wall {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.5rem;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(1.25rem, calc(50vw - var(--wrap) / 2));
  /* without this, mandatory snapping aligns card 1 to the scrollport edge and
     silently eats the left gutter on load */
  scroll-padding-inline: max(1.25rem, calc(50vw - var(--wrap) / 2));
  scrollbar-width: thin;
  scrollbar-color: var(--felt-600) transparent;
  cursor: grab;
  list-style: none;
}
.wall.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.wall::-webkit-scrollbar { height: 6px; }
.wall::-webkit-scrollbar-track { background: var(--chalk-08); }
.wall::-webkit-scrollbar-thumb { background: var(--felt-600); }

.season {
  flex: 0 0 min(78vw, 275px);
  scroll-snap-align: start;
  background: var(--chalk);
  color: #14212B;
  border-radius: 2px;
  padding: 1.1rem 1.15rem 1.25rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.9);
  transform: rotate(-1.1deg);
  transition: transform 0.3s var(--ease);
  user-select: none;
}
.season:nth-child(even) { transform: rotate(1.3deg); }
.season:hover { transform: rotate(0deg) translateY(-8px); }

.season__no {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: #7A8A94;
}
.season__years {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}
.season__sport {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: #14212B;
  padding: 0.3rem 0.55rem;
  justify-self: start;
  border-radius: 2px;
}
.season__champ {
  margin-top: 0.35rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(20, 33, 43, 0.2);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}
.season__prize {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: #C1440E;
  font-weight: 700;
}
.season--now { background-image: var(--flame-grad); color: var(--flame-ink); }
.season--now .season__no { color: rgba(25, 8, 0, 0.6); }
.season--now .season__sport { background: var(--flame-ink); color: var(--flame-gold); }
.season--now .season__champ { border-top-color: rgba(25, 8, 0, 0.3); }
.season--now .season__prize { color: var(--flame-ink); }

.wall-hint {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-45);
  margin-top: 0.5rem;
}

/* -------------------------------------------------------------------------
   11. Cards (what we organise, event listings, about values)
   ------------------------------------------------------------------------- */
.cards { list-style: none; display: grid; gap: 1.75rem; }
@media (min-width: 700px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--felt-800);
  border: 1px solid var(--chalk-08);
  border-radius: 3px;
  padding: 2.25rem 2rem;
  display: grid;
  gap: 0.9rem;
  align-content: start;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: var(--felt-600); transform: translateY(-4px); }
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background-image: var(--flame-grad);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.card:hover::before { transform: scaleY(1); }

.card__tag {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--flame);
}
.card__title { font-size: 1.25rem; letter-spacing: -0.03em; }
.card__text { color: var(--chalk-70); font-size: 0.9375rem; }

.card__list { list-style: none; display: grid; gap: 0.45rem; margin-top: 0.35rem; }
.card__list li {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--chalk-70);
  padding-left: 1.1rem;
  position: relative;
}
.card__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--flame);
}

.card--media { padding: 0; }
.card--media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card--media .card__inner { padding: 2rem 1.85rem 2.1rem; display: grid; gap: 0.9rem; }

/* -------------------------------------------------------------------------
   12. Fixture table (sports events page)
   ------------------------------------------------------------------------- */
.fixtures { display: grid; gap: 3rem; }

.fixture-day__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flame);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--chalk-18);
  margin-bottom: 0.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.fixture-day__label span { color: var(--chalk-45); font-weight: 500; }

.fixture-list { list-style: none; }
.fixture {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1.1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--chalk-08);
  align-items: baseline;
}
.fixture__time {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--flame-gold);
  font-variant-numeric: tabular-nums;
  grid-row: span 2;
}
.fixture__name { font-weight: 500; letter-spacing: -0.01em; }
.fixture__comp {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-45);
}
.fixture__where {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-70);
  border: 1px solid var(--chalk-18);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  justify-self: start;
  grid-column: 2;
  margin-top: 0.35rem;
}
@media (min-width: 700px) {
  .fixture { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
  .fixture__time { grid-row: auto; }
  .fixture__comp { grid-column: 2; }
  .fixture__where { grid-column: 3; margin-top: 0; justify-self: end; }
}

/* -------------------------------------------------------------------------
   13. Gallery strip
   ------------------------------------------------------------------------- */
.strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.strip__item { overflow: hidden; border-radius: 2px; aspect-ratio: 1 / 1; background: var(--felt-700); }
.strip__item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75); transition: transform 0.8s var(--ease), filter 0.4s var(--ease); }
.strip__item:hover img { transform: scale(1.06); filter: saturate(1); }
.strip__item--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (min-width: 760px) {
  .strip { grid-template-columns: repeat(4, 1fr); }
  .strip__item--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
}

/* -------------------------------------------------------------------------
   14. Reservation CTA band + form
   ------------------------------------------------------------------------- */
.band {
  background-image: var(--flame-grad);
  color: var(--flame-ink);
  position: relative;
  margin-block: clamp(1.5rem, 4vw, 3rem);
}
.band::before,
.band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--tear-h);
  background-image: var(--flame-grad);
  -webkit-mask-image: var(--tear);
  mask-image: var(--tear);
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: 220px var(--tear-h);
  mask-size: 220px var(--tear-h);
  pointer-events: none;
}
.band::before { top: calc(1px - var(--tear-h)); }
.band::after { bottom: calc(1px - var(--tear-h)); transform: scaleY(-1); }
.band__inner {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(4rem, 9vw, 6.5rem);
}
.band__title { font-size: clamp(1.85rem, 6vw, 3.25rem); text-transform: uppercase; letter-spacing: -0.04em; }
.band__text { color: rgba(25, 8, 0, 0.78); max-width: 46ch; margin-top: 1.3rem; }
.band .btn--ghost { border-color: rgba(25, 8, 0, 0.35); color: var(--flame-ink); }
.band .btn--ghost:hover { background: var(--flame-ink); color: var(--flame-gold); border-color: var(--flame-ink); }
.band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 900px) {
  .band__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 4.5rem; }
}

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .form__row--2 { grid-template-columns: repeat(2, 1fr); } }

.field { display: grid; gap: 0.45rem; }
.field__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chalk-70);
}
.field__label .req { color: var(--flame); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--felt-900);
  border: 1px solid var(--chalk-18);
  border-radius: 2px;
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 0.9rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--felt-600); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--flame);
  background: #101015;
  outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--chalk-45); }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--chalk-45) 50%),
                    linear-gradient(135deg, var(--chalk-45) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: #FF6B6B; }
.field__error {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: #FF8A8A;
  min-height: 0;
}

.form__note {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: var(--chalk-45);
}
.form__note a { color: var(--chalk-70); text-decoration: underline; text-underline-offset: 3px; }

.form-success {
  border: 1px solid var(--flame);
  background: rgba(255, 90, 31, 0.1);
  border-radius: 3px;
  padding: 1.5rem;
  display: grid;
  gap: 0.6rem;
}
.form-success__title { font-size: 1.25rem; text-transform: uppercase; letter-spacing: -0.03em; }

/* -------------------------------------------------------------------------
   15. Prose (about / privacy)
   ------------------------------------------------------------------------- */
.prose { max-width: 68ch; display: grid; gap: 1.35rem; }
.prose h2 {
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: -0.025em;
  margin-top: 2.5rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.0625rem; letter-spacing: -0.02em; margin-top: 1rem; }
.prose p { color: var(--chalk-70); }
.prose ul { list-style: none; display: grid; gap: 0.6rem; }
.prose ul li { position: relative; padding-left: 1.35rem; color: var(--chalk-70); }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  background-image: var(--flame-grad);
}
.prose a { color: var(--flame); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--chalk); font-weight: 700; }

.toc {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--chalk-08);
  background: var(--felt-800);
  border-radius: 3px;
}
.toc a {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--chalk-70);
  text-decoration: none;
}
.toc a:hover { color: var(--flame); }

/* -------------------------------------------------------------------------
   16. Page hero (inner pages)
   ------------------------------------------------------------------------- */
.page-hero {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--chalk-08);
}
.page-hero__title { margin-bottom: 1.25rem; }
.page-hero .title-xl { font-size: clamp(2.1rem, 5.4vw, 4rem); }
@media (min-width: 900px) {
  .page-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 4.5rem;
    align-items: end;
  }
}

.crumb {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chalk-45);
  margin-bottom: 1.1rem;
}
.crumb a:hover { color: var(--flame); }

/* -------------------------------------------------------------------------
   17. 404
   ------------------------------------------------------------------------- */
.miss { min-height: 68vh; display: grid; align-content: center; padding-block: var(--section-y); }
.miss__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 26vw, 16rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px var(--chalk-18);
  margin-bottom: 1.5rem;
}
.miss__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .miss__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 4rem; align-items: center; }
}

/* -------------------------------------------------------------------------
   18. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: #08080A;
  border-top: 1px solid var(--chalk-08);
  padding-block: clamp(4rem, 9vw, 6rem) 2.5rem;
  position: relative;
  z-index: 1;
}
.footer__grid { display: grid; gap: 3rem; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; } }

.footer__heading {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flame-hot);
  margin-bottom: 1.25rem;
}
.footer__list { list-style: none; display: grid; gap: 0.55rem; }
.footer__list a, .footer__list span { color: var(--chalk-70); font-size: 0.9375rem; }
.footer__list a:hover { color: var(--chalk); }

.footer__hours { display: grid; gap: 0.5rem; }
.footer__hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--chalk-70);
  border-bottom: 1px dotted var(--chalk-08);
  padding-bottom: 0.4rem;
}
.footer__hours b { color: var(--chalk); font-weight: 500; }

.footer__blurb { color: var(--chalk-45); font-size: 0.9375rem; max-width: 34ch; margin-top: 1rem; }

.footer__bottom {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--chalk-08);
  display: grid;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk-45);
}
.footer__bottom a:hover { color: var(--flame); }
@media (min-width: 700px) {
  .footer__bottom { grid-template-columns: 1fr auto; align-items: center; }
}

.social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.social a {
  width: 40px; height: 40px;
  display: grid;
  place-content: center;
  border: 1px solid var(--chalk-18);
  border-radius: 2px;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.social a:hover { background-image: var(--flame-grad); border-color: transparent; color: var(--flame-ink); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* -------------------------------------------------------------------------
   19. Page transitions (Swup) + motion preferences
   ------------------------------------------------------------------------- */
.transition-fade {
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
  opacity: 1;
}
html.is-animating .transition-fade { opacity: 0; transform: translateY(10px); }

.route-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--flame);
  z-index: 300;
  transition: width 0.3s var(--ease), opacity 0.3s var(--ease);
  opacity: 0;
}
.route-bar.is-loading { width: 70%; opacity: 1; }
.route-bar.is-done { width: 100%; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .board--animate .board__row,
  .board--animate .board__foot { opacity: 1; transform: none; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* Print — the fixture board should survive being printed and pinned up */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .band, .nav, .route-bar { display: none; }
  .board { background: #fff; color: #000; border: 1px solid #000; box-shadow: none; }
  .board__title, .board__fixture, .board__foot strong { color: #000; }
  .board__time { color: #000; }
}

/* -------------------------------------------------------------------------
   20. Standings table
   The one place in the site where a number really is a rank.
   ------------------------------------------------------------------------- */
.standings-wrap {
  overflow-x: auto;
  border: 1px solid var(--chalk-08);
  border-radius: 3px;
  background: var(--felt-900);
}

.standings {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-family: var(--font-mono);
}
.standings th {
  text-align: left;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chalk-45);
  padding: 1.05rem 1.15rem;
  border-bottom: 2px solid var(--chalk-18);
  white-space: nowrap;
}
.standings td {
  padding: 1.05rem 1.15rem;
  border-bottom: 1px solid var(--chalk-08);
  font-size: 0.875rem;
  color: var(--chalk-70);
  font-variant-numeric: tabular-nums;
}
.standings tbody tr:last-child td { border-bottom: 0; }
.standings tbody tr { transition: background-color 0.2s var(--ease); }
.standings tbody tr:hover { background: var(--felt-800); }

.standings td:nth-child(2) {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--chalk);
  letter-spacing: 0;
}
.standings th:nth-child(3), .standings td:nth-child(3),
.standings th:nth-child(4), .standings td:nth-child(4) { text-align: right; }

.standings__pos {
  width: 3rem;
  font-weight: 700;
  color: var(--chalk-45) !important;
}
.standings__pos--lead { color: var(--flame-hot) !important; }
.standings__pts { font-weight: 700; color: var(--chalk) !important; }

/* -------------------------------------------------------------------------
   21. Two-column page layout (reservations, privacy)
   ------------------------------------------------------------------------- */
.res-layout { display: grid; gap: clamp(3rem, 7vw, 5rem); align-items: start; }
.res-aside { display: grid; gap: 1.75rem; }

@media (min-width: 1000px) {
  .res-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); }
  .res-aside { position: sticky; top: 6.5rem; }
}

/* -------------------------------------------------------------------------
   22. Form extras
   ------------------------------------------------------------------------- */
.field__opt {
  color: var(--chalk-45);
  letter-spacing: 0.1em;
  text-transform: none;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--chalk-70);
}
.check input {
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0.15rem 0 0;
  border: 1px solid var(--chalk-18);
  border-radius: 2px;
  background: var(--felt-900);
  display: grid;
  place-content: center;
  cursor: pointer;
  flex: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.check input::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.18s var(--ease);
}
.check input:checked { background: var(--flame); border-color: var(--flame); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check input:hover { border-color: var(--felt-600); }
.check a { color: var(--flame); text-decoration: underline; text-underline-offset: 3px; }

.field--check.field--invalid .check input { border-color: #FF6B6B; }

/* Date and time inputs keep their native pickers legible on a dark ground */
.field input[type="date"]::-webkit-calendar-picker-indicator,
.field input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.55);
  cursor: pointer;
}
.field input[type="date"]:hover::-webkit-calendar-picker-indicator { filter: invert(1) opacity(0.9); }

/* -------------------------------------------------------------------------
   23. Links inside the board (404)
   ------------------------------------------------------------------------- */
.board__fixture a {
  color: var(--chalk);
  text-decoration: underline;
  text-decoration-color: var(--board-line);
  text-underline-offset: 4px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.board__fixture a:hover { color: var(--flame-hot); text-decoration-color: var(--flame-hot); }
