/* SurSur Pickle Hub, redesign mockup 2 (October 13, 2026).
   The page is a court: thick chalk lines frame the content, the colours are a
   real court's (blue service boxes, coral kitchen, green apron, yellow ball)
   on a deep night-sea blue, and the lettering is the chunky kind painted on a
   court wall. Bowlby One for display, Figtree for reading. */

:root {
  --night: #0d2545;
  --night-2: #123059;
  --night-3: #1b4179;
  --night-deep: #081730;
  --court: #2f7fd6;
  --court-2: #5ba0ea;
  --court-deep: #1f5fab;
  --coral: #f0633f;
  --coral-2: #f58a6c;
  --coral-deep: #bf4526;
  --green: #2fa85a;
  --green-deep: #1b7a3e;
  --ball: #ddf03e;
  --ball-deep: #a4b712;
  --chalk: #f7f1e1;
  --chalk-2: #ece3cb;
  --chalk-3: #d9cdad;
  --ink: #081730;
  --ink-2: #2c3e5c;
  --ink-3: #5b6b86;
  --sun: #ffb84d;

  --f-d: "Bowlby One", "Arial Black", Impact, sans-serif;
  --f-b: "Figtree", "Segoe UI", system-ui, sans-serif;

  --lw: 5px;            /* a court line */
  --r: 26px;
  --r-sm: 14px;
  --gut: clamp(1.1rem, 4.5vw, 3.5rem);
  --max: 1340px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --page: var(--night);  /* what sits behind a ticket notch */
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip;
  background: var(--night); color: var(--chalk);
  font-family: var(--f-b); font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* a little tooth over everything, so flat colour reads as painted, not filled */
body::before {
  content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 2000; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ball); outline-offset: 3px; border-radius: 6px; }
.t-chalk :focus-visible, .t-coral :focus-visible { outline-color: var(--court-deep); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - var(--gut) * 2, var(--max)); margin-inline: auto; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */
.d { font-family: var(--f-d); font-weight: 400; line-height: 1; letter-spacing: -0.012em; text-wrap: balance; overflow-wrap: anywhere; }
.d1 { font-size: clamp(3.1rem, 15.5vw, 5.2rem); line-height: 0.96; }
.d2 { font-size: clamp(2.3rem, 6.2vw, 5.4rem); line-height: 0.98; }
.d3 { font-size: clamp(1.55rem, 3vw, 2.5rem); line-height: 1.04; }
.d4 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.1; letter-spacing: 0; }
@media (min-width: 960px) { .d1 { font-size: clamp(4.6rem, 8.3vw, 8.8rem); } }
.lede { font-size: clamp(1.08rem, 1.35vw, 1.3rem); line-height: 1.5; max-width: 46ch; }
.soft { opacity: 0.78; }
.small { font-size: 0.92rem; }

/* ---------- surfaces ---------- */
.t-night { background: var(--night); color: var(--chalk); --page: var(--night); }
.t-deep { background: var(--night-deep); color: var(--chalk); --page: var(--night-deep); }
.t-chalk { background: var(--chalk); color: var(--ink); --page: var(--chalk); }
.t-court { background: var(--court); color: var(--chalk); --page: var(--court); }
.t-green { background: var(--green); color: var(--ink); --page: var(--green); }
.t-coral { background: var(--coral); color: var(--ink); --page: var(--coral); }
.sec { position: relative; padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.sec__head { display: grid; gap: 1.2rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 960px) { .sec__head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.sec__head .lede { justify-self: start; }

/* ---------- buttons: you can feel them press ---------- */
.btn {
  --bg: var(--ball); --fg: var(--ink); --edge: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 54px; padding: 0 1.6rem; border-radius: 999px;
  border: 3px solid var(--edge); background: var(--bg); color: var(--fg);
  font: 800 1.02rem/1 var(--f-b); white-space: nowrap; cursor: pointer;
  box-shadow: 0 5px 0 var(--edge);
  transition: transform 0.1s var(--ease), box-shadow 0.1s var(--ease), background-color 0.15s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--edge); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--edge); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: 0 5px 0 var(--edge); }
.btn--coral { --bg: var(--coral); }
.btn--chalk { --bg: var(--chalk); }
.btn--green { --bg: var(--green); }
.btn--blue { --bg: var(--court); --fg: var(--chalk); }
.btn--ink { --bg: var(--ink); --fg: var(--chalk); --edge: var(--ink); box-shadow: 0 5px 0 var(--ink-3); }
.btn--ink:hover { box-shadow: 0 7px 0 var(--ink-3); }
.btn--ghost { --bg: transparent; --fg: currentColor; --edge: currentColor; box-shadow: none; }
.btn--ghost:hover { box-shadow: none; background: color-mix(in srgb, currentColor 14%, transparent); }
.btn--ghost:active { transform: translateY(2px); }
.btn--sm { min-height: 42px; padding: 0 1.05rem; font-size: 0.92rem; box-shadow: 0 4px 0 var(--edge); }
.btn--sm:hover { box-shadow: 0 6px 0 var(--edge); }
.btn--lg { min-height: 62px; padding: 0 2rem; font-size: 1.12rem; }
.btn--wide { width: 100%; }

/* ---------- small parts ---------- */
.chip { display: inline-flex; align-items: center; gap: 0.4em; min-height: 30px; padding: 0 0.8em; border-radius: 999px; border: 2.5px solid currentColor; font-weight: 700; font-size: 0.86rem; white-space: nowrap; }
.chip--fill { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.chip--ball { background: var(--ball); color: var(--ink); border-color: var(--ink); }
.chip--coral { background: var(--coral); color: var(--ink); border-color: var(--ink); }
.chip--live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 var(--coral); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.pb { width: 1em; height: 1em; flex: none; }
.sticker {
  display: grid; place-items: center; text-align: center; aspect-ratio: 1; border-radius: 50%;
  background: var(--ball); color: var(--ink); border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--f-d); line-height: 0.95; transform: rotate(-11deg);
}
.sticker > span { display: block; }
.sticker small { display: block; font: 800 0.75rem/1.15 var(--f-b); }

/* ---------- nav: a chalk pill that floats over every colour ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 900;
  width: min(100% - 22px, 1180px); display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 8px 9px 8px 18px; background: var(--chalk); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 6px 0 var(--ink);
}
.nav__logo img { height: 42px; width: auto; }
.nav__links { display: none; gap: 0.15rem; }
.nav__links a { padding: 0.6rem 0.95rem; border-radius: 999px; font-weight: 700; font-size: 0.98rem; white-space: nowrap; transition: background-color 0.15s var(--ease); }
.nav__links a:hover { background: var(--chalk-2); }
.nav__links a[aria-current="page"] { background: var(--ink); color: var(--chalk); }
.nav__right { display: flex; align-items: center; gap: 0.5rem; }
.nav__login { display: none; font-weight: 700; padding: 0.6rem 0.8rem; white-space: nowrap; }
.tabs { display: none; }
@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__login { display: inline-block; }
}

/* ---------- hero: the night court ---------- */
.hero { position: relative; display: flex; flex-direction: column; padding-top: 104px; background: linear-gradient(180deg, var(--night-deep), var(--night) 46%); overflow: hidden; }
.hero__copy { position: relative; z-index: 3; padding-bottom: 1.4rem; order: 1; }
.hero__copy .lede { margin-top: 1.3rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }
.hero__stage { position: relative; z-index: 1; width: 100%; aspect-ratio: 1 / 0.98; order: 2; }
.hero__stage canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.hero__stage canvas:active { cursor: grabbing; }
.hero__stage.no-gl { background: radial-gradient(120% 80% at 70% 60%, var(--court-deep), var(--night-deep)); }
.hud { position: relative; z-index: 3; order: 3; width: min(100% - var(--gut) * 2, 430px); margin: -3.2rem auto 0; padding-bottom: 2.6rem; }
.hud__tag { display: inline-flex; align-items: center; gap: 0.5em; margin-bottom: 0.7rem; padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--ball); color: var(--ink); font-weight: 800; font-size: 0.95rem; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.hud__next { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.7rem; margin-top: 0.75rem; padding: 0.7rem 0.95rem; border-radius: var(--r-sm); background: var(--night-deep); border: 3px solid var(--night-3); font-size: 0.95rem; }
.hud__next b { font-family: var(--f-d); font-weight: 400; font-size: 1rem; color: var(--ball); }
.hud__next i { font-style: normal; opacity: 0.6; }
.hud__note { margin-top: 0.6rem; font-size: 0.92rem; min-height: 1.5em; opacity: 0.85; }
@media (min-width: 960px) {
  .hero { min-height: max(100vh, 720px); min-height: max(100svh, 720px); display: block; padding-top: 0; }
  .hero__stage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; aspect-ratio: auto; }
  .hero::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--night-deep) 88%, transparent) 0%, color-mix(in srgb, var(--night-deep) 55%, transparent) 30%, transparent 56%); }
  .hero__copy { position: relative; max-width: none; padding-top: clamp(8.5rem, 17vh, 12rem); padding-bottom: 0; pointer-events: none; }
  .hero__copy > * { pointer-events: auto; max-width: 47%; }
  .hero__copy .lede { max-width: 31ch; }
  .hud { position: absolute; right: var(--gut); top: 112px; margin: 0; padding: 0; width: min(430px, 33vw); }
}

/* the tape across the hero's bottom edge: the numbers, said once */
.tape { position: relative; z-index: 4; margin: -1.4rem -4vw 0; transform: rotate(-1.4deg); background: var(--ball); color: var(--ink); border-block: 4px solid var(--ink); overflow: hidden; }
.tape__row { display: flex; justify-content: center; gap: 2.2rem; padding: 0.7rem 0; white-space: nowrap; font-family: var(--f-d); font-size: clamp(1rem, 1.9vw, 1.5rem); }
.tape__row span { display: inline-flex; align-items: center; gap: 2.2rem; }
.tape__row .pb { width: 0.95em; height: 0.95em; }

/* ---------- the court card: a court seen from above, the score in the kitchen ---------- */
.cc { border: var(--lw) solid var(--chalk); border-radius: 20px; overflow: hidden; background: var(--court); color: var(--chalk); }
.cc__head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.5rem 0.85rem; background: var(--night-deep); font-weight: 800; font-size: 0.95rem; border-bottom: var(--lw) solid var(--chalk); }
.cc__head span { font-weight: 600; opacity: 0.8; font-size: 0.88rem; }
.cc__court { display: grid; grid-template-columns: minmax(0, 1fr) clamp(46px, 15%, 66px) 8px clamp(46px, 15%, 66px) minmax(0, 1fr); min-height: 108px; }
.cc__side { display: grid; grid-template-rows: 1fr 1fr; padding: 0; border: 0; background: none; color: inherit; text-align: left; min-width: 0; }
.cc__side span { display: flex; align-items: center; gap: 0.5em; padding: 0.4rem 0.75rem; font-weight: 800; font-size: 1rem; min-width: 0; }
.cc__side span b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cc__side span::before { content: ""; flex: none; width: 13px; height: 13px; border-radius: 50%; background: var(--coral); border: 2.5px solid var(--ink); }
.cc__side--b span { flex-direction: row-reverse; text-align: right; }
.cc__side--b span::before { background: var(--chalk); }
.cc__side span + span { border-top: 3px solid var(--chalk); }
.cc__kit { display: grid; place-items: center; background: var(--coral); color: var(--ink); font-family: var(--f-d); font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1; border-inline: 3px solid var(--chalk); font-variant-numeric: tabular-nums; }
.cc__net { background: repeating-linear-gradient(0deg, var(--ink) 0 5px, var(--chalk) 5px 8px); }
.cc--tap .cc__side { cursor: pointer; transition: background-color 0.15s var(--ease); }
.cc--tap .cc__side:hover, .cc--tap .cc__side:focus-visible { background: color-mix(in srgb, var(--ball) 34%, transparent); }
.cc--tap .cc__side:active { background: color-mix(in srgb, var(--ball) 60%, transparent); }
.cc.is-swap .cc__court { opacity: 0.55; }
.cc[data-won="a"] .cc__side--a, .cc[data-won="b"] .cc__side--b { background: color-mix(in srgb, var(--ball) 55%, transparent); color: var(--ink); }
.cc--free .cc__court { place-items: center; grid-template-columns: 1fr; padding: 1rem; font-weight: 700; }

/* ---------- who is open when ---------- */
.hours { border: var(--lw) solid var(--ink); border-radius: var(--r); background: var(--chalk); color: var(--ink); overflow: hidden; box-shadow: 9px 9px 0 var(--ink); }
.hours__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem; padding: 1rem 1.25rem; background: var(--ink); color: var(--chalk); }
.hours__top p { font-size: 0.95rem; opacity: 0.85; }
.hours__axis, .hrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem 1.25rem; padding: 0.9rem 1.25rem; align-items: center; }
.hours__axis { display: none; padding-block: 0.55rem; border-bottom: 3px solid var(--ink); background: var(--chalk-2); font-size: 0.82rem; font-weight: 700; }
.hours__ticks { position: relative; height: 1.2em; }
.hours__ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.hrow + .hrow { border-top: 3px solid var(--ink); }
.hrow { transition: background-color 0.15s var(--ease); }
a.hrow:hover { background: var(--chalk-2); }
.hrow__id { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo name chip" "logo town chip"; column-gap: 0.8rem; row-gap: 2px; align-items: center; min-width: 0; }
.hrow__logo { grid-area: logo; display: grid; place-items: center; width: 46px; height: 46px; }
.hrow__logo img { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; background: #fff; border: 2.5px solid var(--ink); }
.hrow__logo .pb { width: 34px; height: 34px; }
.hrow__id b { grid-area: name; align-self: end; font-family: var(--f-d); font-weight: 400; font-size: 1.12rem; line-height: 1.1; min-width: 0; overflow-wrap: anywhere; }
.hrow__id small { grid-area: town; align-self: start; font-size: 0.88rem; color: var(--ink-2); min-width: 0; }
.hrow__id .chip { grid-area: chip; }
.hrow__key { display: none; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.hrow__key span { display: inline-flex; align-items: center; gap: 0.4em; white-space: nowrap; }
.hrow__key i { width: 13px; height: 13px; border-radius: 4px; background: var(--court); border: 2.5px solid var(--ink); flex: none; }
.hrow__key i.hi { background: var(--coral); }
.hrow__key b { font-weight: 800; color: var(--ink); }
.hrow__track { position: relative; height: 46px; border-radius: 12px; background: repeating-linear-gradient(135deg, var(--chalk-2) 0 8px, var(--chalk-3) 8px 10px); border: 2.5px solid var(--ink); overflow: hidden; }
.hband { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding-inline: 0.6rem; font-weight: 800; font-size: 0.9rem; white-space: nowrap; overflow: hidden; background: var(--court); color: var(--chalk); }
.hband + .hband { border-left: 2.5px solid var(--ink); }
.hband--hi { background: var(--coral); color: var(--ink); }
.hnow { position: absolute; top: -2px; bottom: -2px; width: 4px; margin-left: -2px; background: var(--ball); box-shadow: 0 0 0 2.5px var(--ink); z-index: 2; }
@media (min-width: 860px) {
  .hours__axis { display: grid; }
  .hours__axis, .hrow { grid-template-columns: minmax(0, 430px) minmax(0, 1fr); }
}

/* ---------- venue cards: photos pinned to the wall ---------- */
.vcards { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 320px); gap: 1.3rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1.2rem var(--gut) 2.2rem; margin-inline: calc(var(--gut) * -1); scrollbar-width: none; }
.vcards::-webkit-scrollbar { display: none; }
.vcard { position: relative; display: block; scroll-snap-align: center; border: var(--lw) solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--ink); color: var(--chalk); box-shadow: 8px 8px 0 var(--ink); transform: rotate(var(--tilt, 0deg)) translateY(var(--drop, 0)); transition: transform 0.3s var(--ease); }
.vcard:nth-child(odd) { --tilt: -1.6deg; }
.vcard:nth-child(even) { --tilt: 1.3deg; --drop: 22px; }
@media (hover: hover) { .vcard:hover { transform: rotate(0deg) translateY(-6px); } }
.vcard__img { aspect-ratio: 3 / 3.7; width: 100%; object-fit: cover; }
.vcard__plate { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.6rem 1rem 1rem; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--ink) 92%, transparent) 46%); }
.vcard__plate h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
.vcard__plate p { font-size: 0.92rem; margin-top: 0.35rem; opacity: 0.88; }
.vcard__logo { position: absolute; left: 0.8rem; top: 0.8rem; width: 54px; height: 54px; border-radius: 14px; background: #fff; border: 3px solid var(--ink); object-fit: contain; }
.vcard .sticker { position: absolute; right: 0.9rem; top: 0.9rem; width: 92px; font-size: 1.3rem; }
@media (min-width: 1000px) { .vcards { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; padding-inline: 0; margin-inline: 0; } }

/* ---------- the plan: a section drawn as a court ---------- */
.plan { border: var(--lw) solid var(--chalk); border-radius: var(--r); overflow: hidden; }
.plan__kitchen { background: var(--coral); color: var(--ink); padding: clamp(1.2rem, 2.6vw, 2rem); border-bottom: var(--lw) solid var(--chalk); }
.plan__boxes { display: grid; grid-template-columns: minmax(0, 1fr); }
.plan__box { padding: clamp(1.3rem, 2.8vw, 2.2rem); min-width: 0; }
.plan__box + .plan__box { border-top: var(--lw) solid var(--chalk); }
.plan__box h3 { margin-bottom: 1.1rem; }
@media (min-width: 900px) { .plan__boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan__box + .plan__box { border-top: 0; border-left: var(--lw) solid var(--chalk); } }
.fixtures { display: grid; gap: 0.8rem; margin-top: 1.1rem; }
.fixture { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.4rem 1rem; align-items: center; padding: 0.85rem 1rem; background: var(--chalk); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--r-sm); box-shadow: 0 5px 0 var(--ink); }
.fixture__t { font-family: var(--f-d); font-size: 1.5rem; line-height: 1; white-space: nowrap; }
.fixture__t small { display: block; font: 700 0.8rem/1.2 var(--f-b); margin-top: 3px; color: var(--ink-2); }
.fixture h4 { font: 800 1.08rem/1.2 var(--f-b); }
.fixture p { font-size: 0.9rem; color: var(--ink-2); }
.fixture__end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
@media (min-width: 720px) { .fixture { grid-template-columns: auto minmax(0, 1fr) auto; } .fixture__end { grid-column: auto; justify-content: flex-end; } }
.steps { display: grid; gap: 1rem; counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.9rem; align-items: start; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--ball); color: var(--ink); border: 3px solid var(--ink); font-family: var(--f-d); font-size: 1.15rem; }
.steps b { display: block; font-size: 1.08rem; }
.steps span { opacity: 0.88; font-size: 0.98rem; }
.facts { display: grid; gap: 0.75rem; padding: 0; margin: 0; list-style: none; }
.facts li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.7rem; align-items: start; }
.facts .pb { width: 1.35rem; height: 1.35rem; margin-top: 0.15rem; }

/* ---------- clubs: the names do the talking ---------- */
.mq { overflow: hidden; white-space: nowrap; padding-block: 0.35rem; }
.mq__track { display: inline-flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.6rem); padding-right: clamp(1.4rem, 3vw, 2.6rem); animation: mq var(--dur, 70s) linear infinite; will-change: transform; }
.mq--rev .mq__track { animation-direction: reverse; }
.mq:hover .mq__track, .mq:focus-within .mq__track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq__item { display: inline-flex; align-items: center; gap: clamp(0.8rem, 1.6vw, 1.3rem); font-family: var(--f-d); font-size: clamp(2rem, 5.4vw, 4.6rem); line-height: 1.12; }
.mq__item img { width: 1.05em; height: 1.05em; border-radius: 50%; object-fit: cover; background: #fff; border: 4px solid var(--chalk); flex: none; }
.mq--line .mq__item span { color: var(--night-deep); -webkit-text-stroke: 5px var(--chalk); paint-order: stroke fill; }
.mq--coral .mq__item span { color: var(--coral); }
.mq__item:hover span { color: var(--ball); -webkit-text-stroke-color: var(--ball); }
.clubs__foot { display: grid; gap: 1.2rem 3rem; align-items: center; margin-top: clamp(2rem, 4vw, 3.4rem); }
@media (min-width: 900px) { .clubs__foot { grid-template-columns: minmax(0, 1fr) auto; } }

/* ---------- tournament formats ---------- */
.fmts { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .fmts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .fmts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fmt { display: flex; flex-direction: column; border: var(--lw) solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--bg, var(--court)); color: var(--fg, var(--chalk)); box-shadow: 8px 8px 0 var(--ink); }
.fmt svg { width: 100%; height: auto; aspect-ratio: 5 / 3.6; border-bottom: var(--lw) solid var(--ink); background: color-mix(in srgb, var(--ink) 16%, transparent); }
.fmt svg * { vector-effect: non-scaling-stroke; }
.fmt__body { padding: 1.1rem 1.2rem 1.35rem; }
.fmt__body p { margin-top: 0.5rem; font-size: 0.97rem; }
.fmts__note { margin-top: 2.2rem; font-weight: 700; font-size: 1.1rem; max-width: 60ch; }

/* ---------- owners and clubs: two sides of a net ---------- */
.split { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.split__half { padding: clamp(3.2rem, 7vw, 6rem) var(--gut); display: grid; align-content: start; gap: 1.2rem; }
.split__half .lede { max-width: 40ch; }
.split__net { height: 16px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, var(--chalk) 6px 10px); border-block: 4px solid var(--ink); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2em 0.5em; font-family: var(--f-d); font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; }
.price small { font: 800 1.05rem/1.2 var(--f-b); }
.split ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; max-width: 42ch; }
.split li { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr); gap: 0.65rem; }
.split li .pb { width: 1.25rem; height: 1.25rem; margin-top: 0.18rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); }
  .split__net { height: auto; background: repeating-linear-gradient(0deg, var(--ink) 0 6px, var(--chalk) 6px 10px); border-block: 0; border-inline: 4px solid var(--ink); }
  .split__half:first-child { padding-left: max(var(--gut), calc((100vw - var(--max)) / 2)); }
  .split__half:last-child { padding-right: max(var(--gut), calc((100vw - var(--max)) / 2)); padding-left: clamp(2rem, 5vw, 5rem); }
}

/* ---------- footer ---------- */
.foot { background: var(--night-deep); color: var(--chalk); padding: clamp(3.5rem, 7vw, 6rem) 0 2rem; overflow: hidden; }
.foot__big { display: block; width: min(100%, 1120px); height: auto; overflow: visible; }
.foot__big text { font-family: var(--f-d); font-size: 100px; letter-spacing: -0.012em; fill: var(--night-deep); stroke: var(--chalk); stroke-width: 5px; stroke-linejoin: round; paint-order: stroke; }
.foot__grid { display: grid; gap: 2rem; margin-top: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.foot__logo { display: inline-block; background: var(--chalk); border-radius: 18px; padding: 0.7rem 1rem; border: 3px solid var(--ink); }
.foot__logo img { height: 54px; width: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; font-weight: 700; }
.foot__links a { white-space: nowrap; padding-block: 0.25rem; border-bottom: 3px solid transparent; }
.foot__links a:hover { border-bottom-color: var(--ball); }
.foot__fine { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 3px solid color-mix(in srgb, var(--chalk) 22%, transparent); font-size: 0.88rem; opacity: 0.75; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: auto minmax(0, 1fr) auto; gap: 3rem; } }

/* ---------- inner page heads ---------- */
.phead { padding: clamp(8rem, 15vw, 11rem) 0 clamp(2.5rem, 5vw, 4rem); position: relative; }
.phead .lede { margin-top: 1.1rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.filter { min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 3px solid currentColor; background: transparent; font-weight: 700; }
.filter[aria-pressed="true"] { background: var(--ball); color: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }

/* courts directory rows */
.crows { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.crow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem 3.5rem; align-items: center; }
.crow__photo { position: relative; border: var(--lw) solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 10px 10px 0 var(--ink); transform: rotate(-1.4deg); background: var(--ink); }
.crow:nth-child(even) .crow__photo { transform: rotate(1.4deg); }
.crow__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.crow__photo .sticker { position: absolute; right: 1rem; bottom: 1rem; width: 108px; font-size: 1.55rem; }
.crow__photo .crow__logo { position: absolute; left: 1rem; top: 1rem; width: 68px; height: 68px; aspect-ratio: auto; border-radius: 18px; background: #fff; border: 3px solid var(--ink); object-fit: contain; }
.crow h2 { margin-bottom: 0.5rem; }
.crow__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 1.4rem 0; border: 3px solid var(--ink); border-radius: var(--r-sm); overflow: hidden; }
.crow__facts div { padding: 0.75rem 0.95rem; font-size: 0.92rem; color: var(--ink-2); }
.crow__facts div:nth-child(odd) { border-right: 3px solid var(--ink); }
.crow__facts div:nth-child(n + 3) { border-top: 3px solid var(--ink); }
.crow__facts b { display: block; font-family: var(--f-d); font-weight: 400; font-size: 1.2rem; line-height: 1.15; color: var(--ink); }
.crow__acts { display: flex; flex-wrap: wrap; gap: 0.7rem; }
@media (min-width: 900px) { .crow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .crow:nth-child(even) .crow__photo { order: 2; } }

/* ---------- one court ---------- */
.chero { position: relative; min-height: min(78vh, 720px); min-height: min(78svh, 720px); display: flex; align-items: flex-end; overflow: hidden; background: var(--night-deep); }
.chero > img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chero::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--night-deep) 55%, transparent) 0%, transparent 34%, color-mix(in srgb, var(--night-deep) 96%, transparent) 88%); }
.chero__in { position: relative; z-index: 2; padding-bottom: clamp(1.6rem, 4vw, 3rem); display: grid; gap: 1.2rem; }
.chero__id { display: flex; align-items: flex-end; gap: 1.1rem; }
.chero__id > img { width: clamp(64px, 9vw, 104px); height: clamp(64px, 9vw, 104px); border-radius: 22px; background: #fff; border: 4px solid var(--ink); object-fit: contain; flex: none; box-shadow: 5px 5px 0 var(--ink); }
.chero__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chero .sticker { position: absolute; z-index: 3; right: var(--gut); top: 104px; width: clamp(104px, 13vw, 156px); font-size: clamp(1.5rem, 2.6vw, 2.3rem); }
.factbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--chalk); color: var(--ink); border-block: var(--lw) solid var(--ink); }
.factbar div { padding: 1rem var(--gut); font-size: 0.92rem; color: var(--ink-2); }
.factbar div:nth-child(odd) { border-right: 3px solid var(--ink); }
.factbar div:nth-child(n + 3) { border-top: 3px solid var(--ink); }
.factbar b { display: block; font-family: var(--f-d); font-weight: 400; font-size: clamp(1.2rem, 2.1vw, 1.7rem); line-height: 1.12; color: var(--ink); }
@media (min-width: 900px) { .factbar { grid-template-columns: repeat(4, minmax(0, 1fr)); } .factbar div { border-top: 0 !important; border-right: 3px solid var(--ink); padding-inline: 1.5rem; } .factbar div:first-child { padding-left: max(var(--gut), calc((100vw - var(--max)) / 2)); } .factbar div:last-child { border-right: 0; } }
.cgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; align-items: start; }
.cgrid > * { min-width: 0; }
@media (min-width: 1000px) { .cgrid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; } .cgrid__side { position: sticky; top: 104px; } }
.block + .block { margin-top: clamp(2.2rem, 4vw, 3.2rem); }
.block h2 { margin-bottom: 0.9rem; }
.stage3d { position: relative; border: var(--lw) solid var(--chalk); border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 11; background: var(--night-deep); }
.stage3d canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.stage3d__hint { position: absolute; left: 0.9rem; top: 0.9rem; z-index: 2; pointer-events: none; }
.units { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
.unit { min-height: 46px; padding: 0 1.1rem; border-radius: 999px; border: 3px solid var(--chalk); background: transparent; color: var(--chalk); font-family: var(--f-d); font-size: 1rem; }
.unit[aria-pressed="true"] { background: var(--ball); color: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 var(--night-deep); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; padding: 0.4rem 0.4rem 1rem; }
.polaroid { background: var(--chalk); color: var(--ink); padding: 0.6rem 0.6rem 0.2rem; border-radius: 10px; box-shadow: 7px 7px 0 var(--night-deep); transform: rotate(-2deg); }
.polaroid:nth-child(even) { transform: rotate(1.8deg) translateY(14px); }
.polaroid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.polaroid figcaption { font-family: var(--f-d); font-size: 1.02rem; padding: 0.55rem 0.2rem 0.5rem; }
.amen { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 0; list-style: none; }
.amen li { display: inline-flex; align-items: center; gap: 0.55em; padding: 0.55rem 0.95rem; border-radius: 999px; border: 3px solid var(--chalk); font-weight: 700; }
.amen li b { font-weight: 800; color: var(--ball); }

/* the booking ticket */
.ticket { position: relative; background: var(--chalk); color: var(--ink); border: var(--lw) solid var(--ink); border-radius: var(--r); box-shadow: 10px 10px 0 var(--night-deep); }
.ticket__main { padding: 1.3rem 1.3rem 1.5rem; }
.ticket__main h2 { margin-bottom: 0.9rem; }
.ticket__tear { position: relative; border-top: 4px dashed var(--ink); }
.ticket__tear::before, .ticket__tear::after { content: ""; position: absolute; top: -18px; width: 32px; height: 32px; border-radius: 50%; background: var(--page); border: var(--lw) solid var(--ink); }
.ticket__tear::before { left: -21px; clip-path: inset(0 0 0 50%); }
.ticket__tear::after { right: -21px; clip-path: inset(0 50% 0 0); }
.ticket__stub { padding: 1.3rem; display: grid; gap: 0.55rem; }
.days { display: flex; gap: 0.45rem; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; min-width: 60px; padding: 0.5rem 0.55rem; border-radius: 14px; border: 3px solid var(--ink); background: var(--chalk); text-align: center; line-height: 1.1; }
.day small { display: block; font-weight: 700; font-size: 0.78rem; }
.day b { font-family: var(--f-d); font-weight: 400; font-size: 1.35rem; }
.day[aria-pressed="true"] { background: var(--ink); color: var(--chalk); box-shadow: 0 4px 0 var(--ink-3); }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; margin-top: 0.9rem; }
@media (min-width: 520px) { .slots { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.slot { display: grid; place-items: center; gap: 1px; min-height: 56px; padding: 0.3rem 0.2rem; border-radius: 12px; border: 3px solid var(--ink); background: var(--court); color: var(--chalk); font-weight: 800; font-size: 0.95rem; font-variant-numeric: tabular-nums; transition: transform 0.1s var(--ease); }
.slot small { font-weight: 700; font-size: 0.78rem; opacity: 0.9; }
.slot--hi { background: var(--coral); color: var(--ink); }
.slot:active { transform: translateY(3px); }
.slot[aria-pressed="true"] { background: var(--ball); color: var(--ink); box-shadow: 0 4px 0 var(--ink); transform: translateY(-2px); }
.slot:disabled { background: repeating-linear-gradient(135deg, var(--chalk-2) 0 7px, var(--chalk-3) 7px 9px); color: var(--ink-3); border-color: var(--ink-3); cursor: not-allowed; }
.key { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.8rem; font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.key i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 2.5px solid var(--ink); vertical-align: -2px; margin-right: 5px; }
.tline { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tline--total { font-family: var(--f-d); font-size: 1.7rem; line-height: 1.1; padding-top: 0.5rem; border-top: 3px solid var(--ink); margin-top: 0.2rem; }
.ticket__empty { font-weight: 700; }
dialog.pass { border: 0; padding: 0; background: transparent; max-width: min(94vw, 440px); overflow: visible; color: var(--ink); }
dialog.pass::backdrop { background: color-mix(in srgb, var(--night-deep) 78%, transparent); }
dialog.pass[open] { animation: pop 0.4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) rotate(-3deg); } to { opacity: 1; transform: none; } }
.pass .ticket { --page: #0a1c38; box-shadow: 10px 10px 0 var(--ink); }
.pass__code { font-family: var(--f-d); font-size: clamp(2.2rem, 9vw, 3rem); letter-spacing: 0.04em; line-height: 1; }

/* ---------- open play ---------- */
.fxs { display: grid; gap: 1.4rem; }
.fx { display: grid; grid-template-columns: minmax(0, 1fr); border: var(--lw) solid var(--chalk); border-radius: var(--r); overflow: hidden; background: var(--night-2); }
.fx__time { background: var(--coral); color: var(--ink); padding: 1.1rem 1.3rem; display: flex; align-items: baseline; gap: 0.7rem; border-bottom: var(--lw) solid var(--chalk); }
.fx__time b { font-family: var(--f-d); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; white-space: nowrap; }
.fx__time span { font-weight: 800; }
.fx__body { padding: 1.2rem 1.3rem; display: grid; gap: 0.6rem; min-width: 0; }
.fx__club { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.fx__club img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #fff; border: 2.5px solid var(--chalk); }
.fx__end { padding: 0 1.3rem 1.3rem; display: grid; gap: 0.8rem; align-content: center; }
.dots { display: flex; flex-wrap: wrap; gap: 5px; max-width: 16.5rem; }
.dots i { width: 15px; height: 15px; border-radius: 50%; border: 2.5px solid var(--chalk); }
.dots i.on { background: var(--ball); border-color: var(--ball); }
@media (min-width: 900px) { .fx { grid-template-columns: 230px minmax(0, 1fr) auto; } .fx__time { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.2rem; border-bottom: 0; border-right: var(--lw) solid var(--chalk); } .fx__end { padding: 1.2rem 1.4rem; justify-items: end; } }
.livebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem; padding: 1rem 1.3rem; border-radius: var(--r); background: var(--ball); color: var(--ink); border: var(--lw) solid var(--ink); box-shadow: 0 6px 0 var(--night-deep); font-weight: 700; margin-bottom: 2.4rem; }
.result { display: grid; gap: 1rem 2rem; align-items: center; padding: 1.4rem; border: var(--lw) solid var(--ink); border-radius: var(--r); background: var(--chalk); box-shadow: 9px 9px 0 var(--ink); }
.result__n { font-family: var(--f-d); font-size: clamp(3rem, 8vw, 5.5rem); line-height: 0.9; color: var(--court-deep); }
@media (min-width: 800px) { .result { grid-template-columns: auto minmax(0, 1fr) auto; } }

/* ---------- live board ---------- */
.lstage { position: relative; height: min(64vh, 620px); height: min(64svh, 620px); min-height: 380px; background: var(--night-deep); overflow: hidden; border-bottom: var(--lw) solid var(--chalk); }
.lstage canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.lstage__title { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 4rem 0 1.4rem; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--night-deep) 92%, transparent) 70%); pointer-events: none; }
.lstage__title .chip { margin-bottom: 0.7rem; background: var(--night-deep); }
.lcourts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
@media (min-width: 800px) { .lcourts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.upnext { display: grid; gap: 0.5rem 1.5rem; align-items: center; margin-top: 1.4rem; padding: 1.1rem 1.3rem; border-radius: var(--r); background: var(--ball); color: var(--ink); border: var(--lw) solid var(--ink); box-shadow: 0 6px 0 var(--night-deep); }
.upnext__vs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.9rem; font-weight: 800; font-size: 1.15rem; }
.upnext__vs i { font-style: normal; font-family: var(--f-d); font-size: 0.95rem; opacity: 0.65; }
@media (min-width: 800px) { .upnext { grid-template-columns: auto minmax(0, 1fr) auto; } }
.lgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.6rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 1000px) { .lgrid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3.5rem; } }
.queue { display: grid; gap: 0.5rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.queue li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; padding: 0.5rem 0.9rem 0.5rem 0.5rem; border-radius: 999px; border: 3px solid color-mix(in srgb, var(--chalk) 30%, transparent); font-weight: 700; }
.queue li b { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--night-3); font-family: var(--f-d); font-weight: 400; }
.queue li.is-next { border-color: var(--ball); }
.queue li.is-next b { background: var(--ball); color: var(--ink); }
.queue li span:last-child { font-size: 0.88rem; font-weight: 600; opacity: 0.75; font-variant-numeric: tabular-nums; }
.ladder { display: grid; gap: 0.45rem; margin-top: 1rem; }
.lrow { display: grid; grid-template-columns: 2.6rem minmax(0, 1.1fr) 4.2rem minmax(0, 1fr); gap: 0.8rem; align-items: center; padding: 0.55rem 0.9rem; border-radius: var(--r-sm); background: var(--night-2); font-weight: 700; }
.lrow__n { font-family: var(--f-d); font-size: 1.3rem; line-height: 1; }
.lrow--top { background: var(--chalk); color: var(--ink); }
.lrow--top .lrow__bar { background: var(--chalk-3); }
.lrow__wl { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lrow__bar { height: 12px; border-radius: 99px; background: var(--night-deep); overflow: hidden; }
.lrow__bar i { display: block; height: 100%; width: var(--pct); background: var(--court-2); border-radius: 99px; }
.lrow--top .lrow__bar i { background: var(--coral); }
.note { margin-top: 2.4rem; font-size: 0.92rem; opacity: 0.75; max-width: 70ch; }

/* ---------- host panel ---------- */
.desk__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.desk__acts { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ctl { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.ctl label { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.4rem 0.35rem 1rem; border-radius: 999px; border: 3px solid color-mix(in srgb, var(--chalk) 35%, transparent); font-weight: 700; font-size: 0.93rem; }
.ctl select { font: 800 0.93rem/1 var(--f-b); color: var(--ink); background: var(--chalk); border: 0; border-radius: 999px; padding: 0.55rem 0.8rem; min-height: 38px; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; margin-top: 2rem; align-items: start; }
.dgrid > * { min-width: 0; }
@media (min-width: 1000px) { .dgrid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2.6rem; } }
.hcourt + .hcourt { margin-top: 1.4rem; }
.hcourt__acts { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.75rem; }
.hcourt.is-armed .cc { border-color: var(--ball); box-shadow: 0 0 0 4px var(--ball); }
.hcourt__hint { margin-top: 0.6rem; font-weight: 700; color: var(--ball); min-height: 1.5em; }
.panel { border: var(--lw) solid color-mix(in srgb, var(--chalk) 30%, transparent); border-radius: var(--r); padding: 1.2rem; }
.panel + .panel { margin-top: 1.4rem; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.8rem; }
.roster { display: grid; gap: 0.1rem; }
.roster label { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; padding: 0.5rem 0.2rem; border-bottom: 2px solid color-mix(in srgb, var(--chalk) 14%, transparent); font-weight: 600; }
.roster input { width: 22px; height: 22px; accent-color: var(--ball); margin: 0; }
.roster small { font-variant-numeric: tabular-nums; opacity: 0.75; font-size: 0.86rem; }
.addrow { display: flex; gap: 0.5rem; margin-top: 1rem; }
.addrow input { flex: 1; min-width: 0; min-height: 50px; border-radius: 999px; border: 3px solid var(--chalk); background: transparent; color: var(--chalk); padding: 0 1.1rem; font: 600 1rem var(--f-b); }
.addrow input::placeholder { color: color-mix(in srgb, var(--chalk) 60%, transparent); }
.endbar { display: flex; justify-content: flex-end; margin-top: 2.4rem; }

/* ---------- motion: one entrance, on the hero ---------- */
.rise { opacity: 0; transform: translateY(26px); animation: rise 0.9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; opacity: 1; transform: none; }
  .mq { overflow-x: auto; }
  .mq__track, .chip--live::before { animation: none; }
  .btn, .vcard, .slot { transition: none; }
}

.mocknote { position: fixed; left: 12px; bottom: 12px; z-index: 950; pointer-events: none; padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--ink); color: var(--chalk); font-size: 0.78rem; font-weight: 700; opacity: 0.9; border: 2px solid var(--chalk); }

/* ---------- fitting long names ---------- */
.crow h2 { font-size: clamp(1.8rem, 3.8vw, 3.3rem); line-height: 1.02; }
.chero h1 { font-size: clamp(2.2rem, 6.6vw, 5.6rem); line-height: 0.98; }
.fx h3 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); }
.cgrid__side { order: -1; }
@media (min-width: 1000px) { .cgrid__side { order: 0; } }
.stack { display: grid; gap: 0.6rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.mt { margin-top: 1.2rem; }

/* host panel: the roster sits under the courts, two columns when there is room */
@media (min-width: 700px) { .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.6rem; } }
.dgrid aside { position: sticky; top: 104px; }
@media (max-width: 999px) { .dgrid aside { position: static; } }

.ctlbox { margin-top: 1.6rem; }
.ctlbox summary { display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 3px solid color-mix(in srgb, var(--chalk) 35%, transparent); font-weight: 800; cursor: pointer; list-style: none; }
.ctlbox summary::-webkit-details-marker { display: none; }
.ctlbox summary::after { content: "+"; font-family: var(--f-d); }
.ctlbox[open] summary::after { content: "−"; }
.ctlbox .ctl { margin-top: 0.9rem; }
@media (min-width: 700px) { .ctlbox summary { display: none; } .ctlbox .ctl { margin-top: 0; } }
.mocknote { left: auto; right: 12px; }

/* ==========================================================================
   Phones and small tablets. Not the desktop page stacked into one column:
   the five places sit in a tab bar under the thumb, the top bar scrolls away
   with the page, and each screen puts the thing you came to do first.
   ========================================================================== */
.bookbar, .snack { display: none; }

@media (max-width: 959px) {
  .nav { position: absolute; top: 10px; padding: 6px 7px 6px 14px; box-shadow: 0 5px 0 var(--ink); }
  .nav__logo img { height: 38px; }
  .nav__login { display: inline-block; padding: 0.5rem 0.45rem; font-size: 0.95rem; }

  .tabs {
    position: fixed; z-index: 900; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    max-width: 540px; margin-inline: auto;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 5px;
    background: var(--chalk); color: var(--ink); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 5px 0 var(--ink);
  }
  .tabs a { display: grid; justify-items: center; gap: 1px; padding: 6px 2px 5px; border-radius: 17px; border: 2.5px solid transparent; font-weight: 800; font-size: 0.75rem; line-height: 1.15; white-space: nowrap; transition: transform 0.1s var(--ease), background-color 0.15s var(--ease); }
  .tabs svg { width: 24px; height: 24px; }
  .tabs a[aria-current="page"] { background: var(--ball); border-color: var(--ink); }
  .tabs a:active { transform: translateY(2px); background: var(--chalk-2); }

  /* the note that this is a mockup lives in the footer here, not on top of the content */
  .mocknote { display: none; }
  .foot { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }

  /* a result gets an undo you can reach, for as long as it can still be undone */
  .snack.is-on, .bookbar.is-on {
    position: fixed; z-index: 880; left: 10px; right: 10px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); max-width: 540px; margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.5rem 0.55rem 0.5rem 1rem;
    background: var(--ink); color: var(--chalk); border: 3px solid var(--chalk); border-radius: 20px; box-shadow: 0 5px 0 var(--night-deep); line-height: 1.25;
    animation: pop 0.35s var(--ease);
  }
  .snack { font-weight: 700; font-size: 0.95rem; }
  .snack .btn, .bookbar .btn { flex: none; box-shadow: none; }
  .bookbar b { display: block; font-family: var(--f-d); font-weight: 400; font-size: 1.15rem; line-height: 1.1; }
  .bookbar small { display: block; font-size: 0.86rem; opacity: 0.85; margin-top: 3px; }
  .desk__acts #undo { display: none; }
}

@media (max-width: 859px) {
  /* no hour axis at this width, so each bar says its own hours underneath */
  .hrow__key { display: flex; }
  .hband span { display: none; }
  .hrow__track { height: 30px; border-radius: 10px; }
  .hrow__id { grid-template-areas: "logo name name" "logo town chip"; }
  .hrow__prov { display: none; }
  .hrow__id .chip { min-height: 26px; font-size: 0.8rem; }
}

@media (max-width: 759px) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { display: none; }

  .sec { padding-block: 3.4rem; }
  .sec__head { margin-bottom: 1.6rem; gap: 0.8rem; }
  .cc__court { grid-template-columns: minmax(0, 1fr) 46px 8px 46px minmax(0, 1fr); }
  .cc__side span { padding-inline: 0.55rem; gap: 0.4em; font-size: 0.95rem; }
  .cc__kit { font-size: 1.7rem; }
  .phead { padding: 6.2rem 0 2rem; }

  /* ----- home: the title, the court and the scoreboard on one screen ----- */
  .hero { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .hero__stage { grid-area: 1 / 1; order: 0; aspect-ratio: auto; height: clamp(410px, 59vh, 540px); height: clamp(410px, 59svh, 540px); }
  .hero__stage::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none; background: linear-gradient(180deg, color-mix(in srgb, var(--night-deep) 86%, transparent) 0%, color-mix(in srgb, var(--night-deep) 40%, transparent) 26%, transparent 46%, transparent 74%, var(--night) 100%); }
  .hero__copy { display: contents; }
  .hero__copy h1 { grid-area: 1 / 1; align-self: start; z-index: 3; margin: 84px var(--gut) 0; pointer-events: none; font-size: clamp(2.6rem, 13.4vw, 4rem); }
  .hud { grid-area: 2 / 1; order: 0; width: auto; max-width: none; margin: -3.6rem var(--gut) 0; padding-bottom: 0; }
  .hud__tag { font-size: 0.9rem; padding: 0.4rem 0.8rem; margin-bottom: 0.45rem; }
  .hud .cc__court { min-height: 96px; }
  .hud__next { margin-top: 0.6rem; padding: 0.55rem 0.9rem; }
  .hud__note { min-height: 0; margin-top: 0.5rem; }
  .hero__copy .lede { grid-area: 3 / 1; margin: 1.3rem var(--gut) 0; max-width: none; }
  .hero .hero__cta { grid-area: 4 / 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin: 1.2rem var(--gut) 3rem; }
  .hero .hero__cta .btn { padding-inline: 0.5rem; min-height: 56px; font-size: 1rem; }

  /* ----- photo cards and formats: a row you swipe, one card and a peek of the next ----- */
  .vcards { grid-auto-columns: 74%; gap: 1.1rem; padding-bottom: 2rem; }
  .vcard { box-shadow: 6px 6px 0 var(--ink); }
  .vcard__img { aspect-ratio: 3 / 3.5; }
  .vcard .sticker { width: 86px; font-size: 1.22rem; }
  .fmts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gut) * -1); padding: 0.3rem var(--gut) 1.3rem; scrollbar-width: none; }
  .fmts::-webkit-scrollbar { display: none; }
  .fmt { scroll-snap-align: center; box-shadow: 6px 6px 0 var(--ink); }
  .fmts__note { margin-top: 1rem; font-size: 1.02rem; }
  .hours { box-shadow: 6px 6px 0 var(--ink); }
  .hours__top { padding: 0.9rem 1rem; }
  .hrow { padding: 0.9rem 1rem; gap: 0.55rem; }
  .plan__box h3, .plan__kitchen h3 { font-size: 1.45rem; }
  .split__half { padding-block: 3rem; }

  /* ----- footer ----- */
  .foot { padding-top: 3rem; }
  .foot__grid { gap: 1.2rem; margin-top: 1.6rem; }
  .foot__logo img { height: 44px; }
  .foot__fine { margin-top: 1.5rem; }

  /* ----- courts ----- */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding: 4px var(--gut) 8px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .crows { gap: 3rem; }
  .crow { gap: 1.2rem; }
  .crow__photo { box-shadow: 7px 7px 0 var(--ink); }
  .crow__photo img { aspect-ratio: 16 / 11; }
  .crow__photo .sticker { width: 90px; font-size: 1.28rem; right: 0.8rem; bottom: 0.8rem; }
  .crow__photo .crow__logo { width: 54px; height: 54px; border-radius: 14px; left: 0.8rem; top: 0.8rem; }
  .crow__facts { margin: 1rem 0; }
  .crow__facts b { font-size: 1.06rem; }
  .crow__acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crow__acts .btn { padding-inline: 0.5rem; }

  /* ----- one court ----- */
  .chero { min-height: min(60vh, 500px); min-height: min(60svh, 500px); }
  .chero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--night-deep) 60%, transparent) 0%, transparent 22%, color-mix(in srgb, var(--night-deep) 66%, transparent) 46%, color-mix(in srgb, var(--night-deep) 97%, transparent) 82%); }
  .chero .sticker { top: 84px; width: 98px; font-size: 1.42rem; }
  .factbar div { padding-block: 0.8rem; }
  .ticket { box-shadow: 7px 7px 0 var(--night-deep); }
  .ticket__main { padding: 1.1rem 1.1rem 1.3rem; }
  .gallery { gap: 1rem; }

  /* ----- live board ----- */
  .lstage { height: clamp(400px, 58vh, 520px); height: clamp(400px, 58svh, 520px); min-height: 0; }
  .lstage__title h1 { font-size: 1.75rem; line-height: 1.02; }
  .lrow { grid-template-columns: 2.1rem minmax(0, 1.3fr) auto minmax(0, 0.8fr); gap: 0.6rem; padding-inline: 0.75rem; }

  /* ----- host panel: the courts come first, the rest is a thumb away ----- */
  .desk__top { align-items: flex-start; gap: 0.8rem; }
  .desk__title { font-size: 1.6rem; line-height: 1.04; }
  .desk__acts .btn { min-height: 38px; }
  .ctlbox { margin-top: 1rem; }
  .dgrid { margin-top: 0.4rem; gap: 1.6rem; }
  .hcourt__acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
  .hcourt__acts .btn { padding-inline: 0.2rem; font-size: 0.84rem; min-height: 40px; }
  .panel { padding: 1rem; }
}

/* ---------- Dink Rally (play.html): a game for the queue, Nov 10 2026 ---------- */
.gtop { padding: clamp(7.4rem, 13vw, 9.5rem) 0 1.4rem; }
.gtop .chip { margin-bottom: 0.8rem; }
.gtop__lede { margin-top: 0.9rem; }
.gpick { padding: 0.6rem 0 clamp(4rem, 8vw, 6rem); }
.gpick__card { padding: clamp(1.2rem, 3vw, 2rem); border-radius: var(--r); border: var(--lw) solid var(--chalk); background: var(--night-2); max-width: 900px; }
.gpick__card .soft { margin-top: 0.4rem; }
.gpick__h { margin-top: 1.8rem; font-family: var(--f-d); font-weight: 400; font-size: 1.1rem; }
.gnames { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 0.6rem; margin-top: 1rem; }
.gname { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; min-height: 58px; padding: 0.4rem 1rem 0.4rem 0.45rem; border-radius: 999px;
  border: 3px solid var(--ink); background: var(--chalk); color: var(--ink); font-weight: 800; font-size: 1.05rem; text-align: left; box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.1s var(--ease), box-shadow 0.1s var(--ease); }
.gname span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gname b { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--court); color: var(--chalk); font-family: var(--f-d); font-weight: 400; }
.gname small { font-size: 0.78rem; font-weight: 800; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--ball); border: 2px solid var(--ink); white-space: nowrap; }
button.gname:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
button.gname:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.gname.is-me { background: var(--ball); }
.gnames--off .gname { grid-template-columns: minmax(0, 1fr) auto; padding-left: 1rem; min-height: 46px; background: transparent; color: var(--chalk); border-color: color-mix(in srgb, var(--chalk) 35%, transparent); box-shadow: none; font-size: 0.98rem; }
.gnames--off .gname small { background: transparent; border-color: color-mix(in srgb, var(--chalk) 40%, transparent); color: var(--chalk); }

.gplay { padding: 0.4rem 0 clamp(4rem, 8vw, 6rem); }
.gplay__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
@media (min-width: 960px) { .gplay__grid { grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 2.6rem; align-items: start; } }
.gstage { display: grid; gap: 0.7rem; min-width: 0; }

/* your place in line, always in view while you play */
.gline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.6rem 0.9rem 0.6rem 0.6rem; border-radius: 22px;
  background: var(--chalk); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--night-deep); }
.gline.is-next { background: var(--ball); }
.gline__me { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.gline__me b { display: block; font-family: var(--f-d); font-weight: 400; font-size: 1.2rem; line-height: 1.1; overflow-wrap: anywhere; }
.gline__me span { display: block; font-weight: 700; font-size: 0.92rem; line-height: 1.25; }
.gline__me .gline__n { flex: none; display: grid; line-height: 1; place-items: center; min-width: 3rem; height: 3rem; padding: 0 0.4rem; border-radius: 999px; background: var(--coral); border: 3px solid var(--ink); font-family: var(--f-d); font-size: 1.25rem; }
.gline.is-next .gline__me .gline__n { background: var(--green); color: var(--chalk); }
.gline__end { display: grid; gap: 0.2rem; justify-items: end; text-align: right; }
.gline__t { font-size: 0.88rem; font-weight: 600; }
.gline__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.2rem 0.8rem; }
.gline__links button { background: none; border: 0; padding: 0.15rem 0; font-size: 0.84rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* the game: a court in a frame */
.gframe { position: relative; height: clamp(440px, calc(100vh - 290px), 700px); height: clamp(440px, calc(100svh - 290px), 700px); border-radius: var(--r); overflow: hidden; border: var(--lw) solid var(--chalk); background: var(--night-deep); box-shadow: 0 8px 0 var(--night-deep); }
.gframe canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.gframe canvas:focus-visible { outline: none; }
.gframe:has(canvas:focus-visible) { outline: 3px solid var(--ball); outline-offset: 3px; }
.ghud { position: absolute; top: 10px; right: 10px; bottom: auto; left: 10px; inset: 10px 10px auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; pointer-events: none; }
.ghud__score { display: grid; justify-items: center; min-width: 4.6rem; padding: 0.3rem 0.8rem 0.35rem; border-radius: 16px; background: var(--coral); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.ghud__score b { font-family: var(--f-d); font-weight: 400; font-size: 1.9rem; line-height: 1; }
.ghud__score span { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.ghud__balls { display: flex; gap: 4px; margin-top: 6px; margin-left: auto; padding: 5px 8px; border-radius: 999px; background: color-mix(in srgb, var(--night-deep) 75%, transparent); border: 2px solid color-mix(in srgb, var(--chalk) 40%, transparent); }
.ghud__balls span { width: 22px; height: 22px; }
.ghud__balls span.is-gone { opacity: 0.22; filter: grayscale(1); }
.ghud__mute { pointer-events: auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--chalk); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.ghud__mute svg { width: 22px; height: 22px; }
.ghud__mute:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

/* start and round over, over the court (centred with margins, so the pop animation can use transform) */
.gcard { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; margin: auto; height: fit-content; width: min(100% - 32px, 360px); display: grid; justify-items: center; gap: 0.7rem; text-align: center;
  padding: 1.3rem 1.2rem 1.4rem; border-radius: var(--r); background: var(--chalk); color: var(--ink); border: var(--lw) solid var(--ink); box-shadow: 0 8px 0 var(--ink); animation: pop 0.35s var(--ease); }
.gcard[hidden] { display: none; }
.gcard p { font-weight: 600; line-height: 1.4; }
.gcard__n { font-family: var(--f-d); font-size: 4.2rem; line-height: 0.9; color: var(--court-deep); }

.gside { display: grid; gap: 1.4rem; align-content: start; min-width: 0; }
.ghow, .gboard { padding: 1.2rem 1.3rem 1.3rem; border-radius: var(--r); border: 3px solid color-mix(in srgb, var(--chalk) 35%, transparent); background: var(--night-2); }
.ghow ol { display: grid; gap: 0.8rem; margin: 0.9rem 0 0.8rem; padding: 0; list-style: none; }
.ghow li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; align-items: start; line-height: 1.4; }
.ghow__dot { width: 16px; height: 16px; margin-top: 0.22em; border-radius: 50%; background: var(--chalk); border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--chalk); }
.ghow__dot--coral { background: var(--coral); }
.ghow__dot--ball { background: var(--ball); }
.gboard__list { display: grid; gap: 0.4rem; margin: 0.9rem 0 0; padding: 0; list-style: none; }
.gboard__list li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; padding: 0.35rem 0.9rem 0.35rem 0.35rem; border-radius: 999px; border: 2.5px solid color-mix(in srgb, var(--chalk) 25%, transparent); font-weight: 700; }
.gboard__list li span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gboard__list li b { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--night-3); font-family: var(--f-d); font-weight: 400; }
.gboard__list li span:last-child { font-family: var(--f-d); font-size: 1.15rem; }
.gboard__list li.is-me { border-color: var(--ball); }
.gboard__list li.is-empty { display: block; padding: 0.6rem 0.2rem; border: 0; font-weight: 600; opacity: 0.75; }
.gside .note { margin-top: 0; }

/* your court is ready */
.gcall { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--night-deep) 82%, transparent); }
.gcall[hidden] { display: none; }
.gcall__box { width: min(100%, 440px); display: grid; justify-items: center; gap: 0.8rem; text-align: center; padding: 1.6rem 1.3rem 1.3rem; border-radius: var(--r);
  background: var(--ball); color: var(--ink); border: var(--lw) solid var(--ink); box-shadow: 0 10px 0 var(--ink); animation: pop 0.4s var(--ease); }
.gcall__court { font-family: var(--f-d); font-size: clamp(2.2rem, 10vw, 3rem); line-height: 1; padding: 0.4rem 1.2rem 0.55rem; border-radius: 18px; background: var(--coral); border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.gcall__who { font-size: 1.1rem; font-weight: 600; line-height: 1.4; }
.gcall__who b { font-weight: 900; }

/* ---------- 2v2 Live (play.html), Nov 10 2026 ---------- */
/* the game page switches panels with the hidden attribute: it must win over their own display */
.is-game [hidden] { display: none !important; }
.gstatus { padding: 0.2rem 0 0.9rem; }
.gmodes { padding: 0.4rem 0 clamp(4rem, 8vw, 6rem); }
.gmodes__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
@media (min-width: 860px) { .gmodes__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.6rem; } }
.gmode { display: grid; justify-items: start; align-content: start; gap: 0.8rem; padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: var(--r); border: var(--lw) solid var(--chalk); background: var(--night-2); }
.gmode p { font-weight: 600; line-height: 1.45; max-width: 46ch; }
.gmode--live { background: var(--court); color: var(--ink); border-color: var(--ink); box-shadow: 0 8px 0 var(--night-deep); }
.gmode--live .d { color: var(--ink); }
.gmode--live .chip--fill { gap: 0.45em; }
.gdot { width: 9px; height: 9px; border-radius: 50%; background: var(--ball); box-shadow: 0 0 0 0 var(--ball); animation: ping 1.8s var(--ease) infinite; }
.gmode .btn:disabled { opacity: 0.5; }

.glive { padding: 0.2rem 0 clamp(4rem, 8vw, 6rem); }
.globby { display: grid; gap: 1.1rem; padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: var(--r); border: var(--lw) solid var(--chalk); background: var(--night-2); max-width: 760px; }
.globby__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.globby__teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.8rem; align-items: stretch; }
.globby__teams h3 { font-family: var(--f-d); font-weight: 400; font-size: 1.05rem; margin-bottom: 0.5rem; }
.globby__net { width: 6px; border-radius: 3px; background: repeating-linear-gradient(180deg, var(--chalk) 0 6px, transparent 6px 11px); opacity: 0.7; }
.gslots { display: grid; gap: 0.5rem; }
.gslot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 52px; padding: 0.4rem 0.9rem; border-radius: 16px; background: var(--chalk); color: var(--ink); border: 3px solid var(--ink); font-weight: 800; }
.gslot span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gslot small { flex: none; font-size: 0.75rem; padding: 0.1rem 0.5rem; border-radius: 999px; border: 2px solid var(--ink); }
.gslot.is-me { background: var(--ball); }
.gslot.is-open { background: transparent; color: var(--chalk); border: 3px dashed color-mix(in srgb, var(--chalk) 45%, transparent); font-weight: 700; opacity: 0.8; }
.globby__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }

.gstage--live { max-width: 520px; }
.gframe--live { display: flex; flex-direction: column; height: clamp(520px, calc(100vh - 230px), 780px); height: clamp(520px, calc(100svh - 230px), 780px); }
.gview { position: relative; flex: 1 1 auto; min-height: 0; }
.gview canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; cursor: grab; }
.gpad { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 8px 12px 10px; background: var(--night-deep); border-top: 3px solid var(--chalk); }
.gpad__move { display: flex; align-items: center; gap: 8px; }
.gshots { display: grid; grid-template-columns: repeat(2, auto); grid-template-rows: auto auto; gap: 6px 8px; align-items: center; justify-items: center; }
.gbtn { display: grid; place-items: center; border-radius: 50%; border: 3px solid var(--ink); font-family: var(--f-d); line-height: 1; letter-spacing: 0.01em; cursor: pointer;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; transition: transform 0.06s var(--ease), box-shadow 0.06s var(--ease), background-color 0.15s var(--ease); }
.gbtn.is-down { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink) !important; }
.gbtn--dink, .gbtn--drive { width: 62px; height: 62px; font-size: 0.82rem; box-shadow: 0 5px 0 var(--ink); }
.gbtn--dink { background: var(--green); color: var(--chalk); }
.gbtn--drive { background: var(--coral); color: var(--ink); }
.gbtn--lob, .gbtn--smash { width: 54px; height: 54px; font-size: 0.68rem; box-shadow: 0 4px 0 var(--ink); }
.gbtn--smash { font-size: 0.56rem; letter-spacing: -0.02em; }
.gbtn--lob { background: var(--court); color: var(--chalk); }
/* SMASH is dim until there is a high ball to take: then it lights up */
.gbtn--smash { background: var(--night-3); color: color-mix(in srgb, var(--chalk) 55%, transparent); border-color: color-mix(in srgb, var(--chalk) 35%, var(--ink)); }
.gbtn--smash.is-on { background: var(--ball); color: var(--ink); border-color: var(--ink); animation: smashglow 0.7s var(--ease) infinite alternate; }
@keyframes smashglow { from { box-shadow: 0 4px 0 var(--ink), 0 0 0 0 rgba(221,240,62,0.65); } to { box-shadow: 0 4px 0 var(--ink), 0 0 0 9px rgba(221,240,62,0); } }
.gpad.is-serve .gbtn--drive { background: var(--ball); animation: smashglow 0.7s var(--ease) infinite alternate; }
.gpad.is-serve .gbtn--lob, .gpad.is-serve .gbtn--dink, .gpad.is-serve .gbtn--smash { opacity: 0.35; }
.gbtn--dash { width: 48px; height: 48px; font-size: 0.62rem; background: var(--chalk); color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.gjoy { flex: none; position: relative; width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--chalk) 10%, transparent) 0 60%, transparent 61%), var(--night-2); border: 3px solid color-mix(in srgb, var(--chalk) 55%, transparent); }
.gjoy::before { content: ""; position: absolute; top: 10px; right: 10px; bottom: 10px; left: 10px; inset: 10px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--chalk) 30%, transparent); }
.gjoy i { width: 40px; height: 40px; border-radius: 50%; background: var(--chalk); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform 0.08s linear; pointer-events: none; }
.gjoy.is-on { border-color: var(--ball); }
.gjoy.is-on i { transition: none; background: var(--ball); }
.gscore2 { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.5rem; border-radius: 16px; background: var(--chalk); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.gscore2 span { display: flex; align-items: center; gap: 0.4rem; }
.gscore2 b { display: grid; place-items: center; min-width: 2.3rem; height: 2.3rem; padding: 0 0.3rem; border-radius: 12px; background: var(--coral); border: 2.5px solid var(--ink); font-family: var(--f-d); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.gscore2 span:last-child b { background: var(--chalk-2); }
.gscore2 small { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.1; }
.gscore2 i { font-style: normal; font-size: 0.72rem; font-weight: 800; opacity: 0.6; white-space: nowrap; }
.ghit { display: none; flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ball); color: var(--ink); border: 4px solid var(--ink); box-shadow: 0 7px 0 var(--ink); font-family: var(--f-d); font-size: 1.5rem;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; transition: transform 0.06s var(--ease), box-shadow 0.06s var(--ease); }
.ghit.is-down, .ghit:active { transform: translateY(6px); box-shadow: 0 1px 0 var(--ink); }
.glive__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 0.7rem; }
@media (hover: none) { .glive__foot .small { display: none; } }
@media (max-width: 959px) { .gframe--live { height: max(520px, calc(100vh - 205px)); height: max(520px, calc(100svh - 205px)); } }

/* 2v2 Live in 3D: the banner and the floating stick sit over the WebGL court */
.ghud__btns { display: flex; gap: 6px; align-items: center; pointer-events: auto; }
.ghud__cam { min-width: 52px; height: 44px; padding: 0 0.7rem; border-radius: 999px; background: var(--chalk); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font-family: var(--f-d); font-size: 0.78rem; }
.ghud__cam:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.g3-banner { position: absolute; left: 12px; right: 12px; top: 62px; display: grid; justify-items: center; gap: 4px; text-align: center; pointer-events: none; opacity: 0; transform: translateY(8px) scale(0.96); transition: opacity 0.18s var(--ease), transform 0.18s var(--ease); }
.g3-banner.is-on { opacity: 1; transform: none; }
.g3-banner b { font-family: var(--f-d); font-weight: 400; font-size: clamp(1.05rem, 4.6vw, 1.5rem); line-height: 1; color: var(--ball); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.g3-banner.is-bad b { color: var(--coral); }
.g3-banner.is-serve b, .g3-banner.is-note b { color: var(--chalk); }
.g3-banner.is-note b { font-size: 1.05rem; -webkit-text-stroke-width: 5px; }
.g3-banner span { font-weight: 800; font-size: 0.8rem; color: var(--chalk); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.g3-stick { position: absolute; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; display: grid; place-items: center; pointer-events: none; opacity: 0;
  background: rgba(247, 241, 225, 0.14); border: 3px solid rgba(247, 241, 225, 0.55); transition: opacity 0.12s; }
.g3-stick.is-on { opacity: 1; }
.g3-stick i { width: 44px; height: 44px; border-radius: 50%; background: var(--chalk); border: 3px solid var(--ink); }

.gwait { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(100% - 32px, 300px); margin: 0; padding: 0.9rem 1rem; border-radius: 18px; text-align: center;
  background: var(--chalk); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); font-weight: 800; line-height: 1.35; }
/* a tablet: the court in the middle, a little larger */
@media (min-width: 700px) and (max-width: 959px) { .gstage--live { max-width: 640px; margin-inline: auto; } .globby { margin-inline: auto; } }
@media (min-width: 960px) { .gstage--live { margin-inline: auto; } .globby { margin-inline: auto; } }
/* a phone turned sideways: the court takes the screen, the site's menus step aside, and the stick and
   shot buttons float over the two sides of the court like a game controller */
@media (orientation: landscape) and (max-height: 540px) {
  body.is-live .nav, body.is-live .tabs, body.is-live .gtop, body.is-live .foot, body.is-live .mocknote, body.is-live .glive__foot { display: none !important; }
  body.is-live .gstatus { padding: 6px 0 0; }
  body.is-live .gline { flex-wrap: nowrap; padding: 4px 10px 4px 4px; border-radius: 16px; box-shadow: none; gap: 0.6rem; }
  body.is-live .gline__me .gline__n { min-width: 2.2rem; height: 2.2rem; font-size: 1rem; }
  body.is-live .gline__me b { font-size: 1rem; }
  body.is-live .gline__me span { font-size: 0.82rem; }
  body.is-live .gline__links { display: none; }
  body.is-live .gline__t { font-size: 0.8rem; white-space: nowrap; }
  body.is-live .glive { padding: 6px 0 0; }
  body.is-live .gstage--live { max-width: none; }
  body.is-live .gframe--live { height: calc(100vh - 64px); height: calc(100svh - 64px); min-height: 260px; }
  body.is-live .gpad { position: absolute; top: auto; right: 0; bottom: 0; left: 0; inset: auto 0 0 0; background: none; border: 0; padding: 0 12px 10px; pointer-events: none; align-items: flex-end; }
  body.is-live .gpad > * { pointer-events: auto; }
  body.is-live .globby { padding: 0.9rem 1rem; gap: 0.6rem; }
}

/* the Live board's way in */
.gcta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.2rem; margin-top: 1.2rem; padding: 0.9rem 0.9rem 0.9rem 1.1rem; border-radius: 22px; background: var(--chalk); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--night-deep); }
.gcta b { display: block; font-family: var(--f-d); font-weight: 400; font-size: 1.15rem; line-height: 1.1; }
.gcta span { display: block; font-size: 0.92rem; font-weight: 600; margin-top: 2px; }
.gcta .btn .pb { width: 22px; height: 22px; }

/* while you play, the court gets the screen: the intro folds away */
body.is-playing .gtop__lede, body.is-playing .gtop .chip { display: none; }
body.is-playing .gtop { padding-top: clamp(6.2rem, 8.4vw, 7.2rem); padding-bottom: 0.8rem; }
body.is-playing .gtop .d2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
@media (max-width: 959px) {
  .gtop { padding-top: 6.2rem; }
  .gframe { height: max(420px, calc(100vh - 300px)); height: max(420px, calc(100svh - 300px)); }
  .gline__end { justify-items: start; text-align: left; }
  .gline__links { justify-content: flex-start; }
  .gplay { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}
