/* onthetablevr.com, every page: the shared shell in the Broadcast look (B3, the 2026-11-22 refresh): the top bar and its menu,
   the footer, and the store's "Coming soon" dialog (js/store.js). Loaded after the page's own stylesheet (site.css on the older
   pages, b3.css on the new ones), so these class rules win; its colors are its own (--sh-*), so the shell looks the same over
   either. Barlow Condensed caps for the bar, menu and footer, Inter for reading (both self hosted, SIL OFL, licenses in fonts/).
   The bar is fixed on the older pages (their content leaves room for it) and sticky on the new ones (body.b3). */

@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-600.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-700.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-800.ttf) format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --sh-side: #070c1e; --sh-side-line: #121b3c; --sh-box: #0a1129; --sh-line: #22336a; --sh-outline: #2b3a6e;
  --sh-text: #eaf0ff; --sh-soft: #c7d0ee; --sh-mut-3: #aeb9db; --sh-mut-2: #8d9ac3; --sh-dim: #7f8dba;
  --sh-cyan: #2ee6f6; --sh-cyan-hi: #8cf3fa; --sh-cyan-ink: #04121a; --sh-orange: #ff7a1a; --sh-bad: #ff8fa3; --sh-good: #7ef0b0;
  --sh-green: #3be38b;
  --sh-stripe: linear-gradient(90deg, #ff7a1a 0 28%, #2ee6f6 28% 100%);
  --sh-cond: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --sh-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sh-gut: 16px;
}
@media (min-width: 720px) { :root { --sh-gut: 32px; } }
@media (min-width: 1100px) { :root { --sh-gut: 56px; } }
.bar [hidden], .foot [hidden] { display: none !important; }

/* ───────── The top bar: the mark and wordmark, the LIVE light, the menu, the store button; a menu button below 1400 px ───────── */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(7, 12, 30, 0.97); border-bottom: 1px solid var(--sh-side-line); font-family: var(--sh-ui); transition: background-color .3s ease; }
.b3 .bar { position: sticky; }
/* Over the homepage's hero it's clear until the page scrolls (site.js adds .solid) */
.bar[data-over-hero]:not(.solid):not(.menu-open) { background: linear-gradient(180deg, rgba(5, 9, 20, 0.86), rgba(5, 9, 20, 0)); border-bottom-color: transparent; }
.bar-in { display: flex; align-items: center; gap: 16px; min-height: 68px; width: min(1400px, calc(100% - 2 * var(--sh-gut))); margin-inline: auto; }
/* The lockup is one piece (the owner, 2026-11-22), in the bar and the footer alike: the top of the mark (its ball, 4.6 of its 64 units
   down) level with the top of the "ON THE" capitals, and the bottom of the table's base (54.7 of 64) on the baseline of "TABLE". The
   footer's "A BeepBoop Studios game" hangs below it and never moves the mark. Measured in Chrome with Barlow Condensed at these
   sizes (within 0.01 px; the phones' smaller mark, below, the same way): "ON THE"'s line is closed up so the baseline of "TABLE"
   comes the art's height (50.1 of 64) under the capitals' top, and the mark moves up to meet them. Only the spacing changed: the
   mark's art and the words' sizes are as they were. "ON THE" is centered over "TABLE" (the owner, 2026-11-25): the letters' ink,
   not the boxes (letter-spacing leaves a space after each line's last letter, and the ™ doesn't count), so "ON THE" moves in
   6.786px over a 24px "TABLE" (its ink 48.11 px wide, TABLE's 61.49) and 2.88px over the phones' 21px one (TABLE's ink 53.80),
   measured from the letters' outlines and in Edge at 30 times the size. Change a size here and these numbers need measuring again */
.bar .brand, .foot .brand { display: inline-flex; align-items: flex-start; gap: 12px; flex: none; color: var(--sh-text); text-decoration: none; }
.bar .brand:hover, .foot .brand:hover { color: var(--sh-text); }
.bar .brand-mark, .foot .brand-mark { display: block; width: 40px; height: 40px; flex: none; margin-top: -1.875px; }
.bar .brand-word, .foot .brand-word { display: grid; text-transform: uppercase; }
.bar .brand-word .w1, .foot .brand-word .w1 { padding-left: 6.786px; font: 700 12px/11.3125px var(--sh-cond); letter-spacing: 0.3em; color: var(--sh-cyan); }
.bar .brand-word .w2, .foot .brand-word .w2 { font: 800 24px/1 var(--sh-cond); letter-spacing: 0.08em; }
.bar .tm, .foot .tm { font-size: 0.42em; font-weight: 800; letter-spacing: 0; margin-left: 1px; vertical-align: top; position: relative; top: 0.15em; }
/* The LIVE light (js/live.js, the owner 2026-11-22): who's online now, next to the mark, to /online. Hidden until the count comes,
   and while the owner's switch is off, the call fails or nobody's online. The pulse stops with reduced motion; "ONLINE" goes where
   the bar is tight, and on phones only the light and the number stay */
.bar-live {
  display: inline-flex; align-items: center; gap: 8px; flex: none; margin-left: 18px; padding: 7px 12px 7px 10px;
  background: rgba(59, 227, 139, 0.08); box-shadow: inset 0 0 0 1px rgba(59, 227, 139, 0.28); color: var(--sh-text); text-decoration: none;
  font: 800 14px/1 var(--sh-cond); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
.bar-live:hover { background: rgba(59, 227, 139, 0.14); color: #fff; }
.bar-live:focus-visible { outline: 2px solid var(--sh-cyan); outline-offset: 2px; }
.bar-live[aria-current] { box-shadow: inset 0 0 0 1px rgba(59, 227, 139, 0.6); }
.bar-live .live-pip { display: inline-block; flex: none; width: 9px; height: 9px; margin-right: 2px; border-radius: 50%; background: var(--sh-green); box-shadow: 0 0 10px var(--sh-green); animation: live-pulse 1.8s ease-out infinite; }
.bar-live .bl-n { color: #fff; font-variant-numeric: tabular-nums; }
.bar-live .bl-o { color: var(--sh-mut-3); }
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 227, 139, 0.6), 0 0 10px var(--sh-green); }
  70% { box-shadow: 0 0 0 9px rgba(59, 227, 139, 0), 0 0 10px var(--sh-green); }
  100% { box-shadow: 0 0 0 0 rgba(59, 227, 139, 0), 0 0 10px var(--sh-green); }
}
@media (prefers-reduced-motion: reduce) { .bar-live .live-pip { animation: none; } }
.links { display: flex; align-items: center; margin: 0 0 0 auto; }
.links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; color: var(--sh-mut-3); text-decoration: none; font: 700 15px/1 var(--sh-cond); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.links a:hover, .links a[aria-current] { color: #fff; }
.links a[aria-current]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 5px; height: 3px; background: var(--sh-stripe); }
.links .ext::after { content: "\2197"; margin-left: 4px; font-size: 12px; color: var(--sh-dim); }
.links .nav-soon { margin-left: 6px; padding: 3px 5px 2px; background: var(--sh-cyan); color: #05222a; font: 800 10.5px/1 var(--sh-cond); letter-spacing: 0.1em; text-transform: uppercase; }
/* Just wide enough for the whole menu: the tabs a little closer, and the LIVE light without its "ONLINE" */
@media (min-width: 1401px) and (max-width: 1540px) {
  .links a { padding: 0 8px; letter-spacing: 0.08em; }
  .links a[aria-current]::after { left: 8px; right: 8px; }
  .bar-live .bl-o { display: none; }
}
/* With Discord in the menu too (site.js DISCORD_INVITE), "ONLINE" goes at every width the whole menu shows, and the tabs close up
   once more where it's tightest */
@media (min-width: 1401px) { .bar:has(.links [data-discord]:not([hidden])) .bar-live .bl-o { display: none; } }
@media (min-width: 1401px) and (max-width: 1460px) {
  .bar:has(.links [data-discord]:not([hidden])) .links a { padding: 0 6px; letter-spacing: 0.07em; }
  .bar:has(.links [data-discord]:not([hidden])) .links a[aria-current]::after { left: 6px; right: 6px; }
}
/* The store button: cyan, its bottom-right corner cut, the price after a rule */
.bar-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: none; min-height: 38px; margin-left: 10px; padding: 0 22px 0 14px;
  border: 1px solid var(--sh-cyan); background: var(--sh-cyan); color: var(--sh-cyan-ink); cursor: pointer;
  font: 800 14px/1 var(--sh-cond); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); transition: background-color .15s ease, border-color .15s ease;
}
.bar-go:hover { background: var(--sh-cyan-hi); border-color: var(--sh-cyan-hi); color: var(--sh-cyan-ink); }
.bar-go:focus-visible { outline: 2px solid var(--sh-cyan-ink); outline-offset: -5px; }
.bar-go .price { margin-left: 4px; padding-left: 14px; border-left: 2px solid rgba(4, 18, 26, 0.3); font-weight: 800; }
.menu-btn { display: none; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--sh-outline); border-radius: 0; background: transparent; cursor: pointer; place-items: center; color: var(--sh-soft); }
.menu-btn svg { display: block; width: 20px; height: 20px; }
.menu-btn:hover { color: #fff; border-color: var(--sh-cyan); }
.menu-btn[aria-expanded="true"] { color: #fff; border-color: var(--sh-cyan); background: rgba(46, 230, 246, 0.1); }
.menu-btn .i-x, .menu-btn[aria-expanded="true"] .i-menu { display: none; }
.menu-btn[aria-expanded="true"] .i-x { display: block; }
/* The full menu needs about 1400 px (with Tournaments and the LIVE light, 2026-11-22): below that, the menu button opens it as a
   panel under the bar */
@media (max-width: 1400px) {
  .links { display: none; }
  .menu-btn { display: grid; }
  .bar-go { margin-left: auto; }
  .bar.menu-open .links {
    position: absolute; top: 100%; left: 0; right: 0; display: grid; align-content: start; margin: 0;
    max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain;
    padding: 6px max(var(--sh-gut), calc((100% - 1400px) / 2)) 18px; background: var(--sh-side); border-bottom: 1px solid var(--sh-side-line);
    box-shadow: 0 28px 48px rgba(0, 0, 0, 0.55);
  }
  .bar.menu-open .links::before { content: ""; position: absolute; left: 0; top: -1px; width: min(420px, 50%); height: 3px; background: var(--sh-stripe); }
  .bar.menu-open .links a { min-height: 54px; padding: 0 2px; border-top: 1px solid var(--sh-side-line); font-size: 19px; }
  .bar.menu-open .links a:first-child { border-top: 0; }
  .bar.menu-open .links a[aria-current] { color: var(--sh-cyan); }
  .bar.menu-open .links a[aria-current]::after { display: none; }
}
@media (max-width: 560px) {
  .bar-in { gap: 10px; }
  .bar-go { padding-inline: 12px; letter-spacing: 0.06em; }
  /* phones: the LIVE light as a bare light and number, so the menu button always fits */
  .bar-live { gap: 6px; margin-left: 4px; padding: 4px 2px; background: none; box-shadow: none; }
  .bar-live .bl-w { display: none; }
  .bar-live[aria-current] { box-shadow: none; }
}
@media (max-width: 420px) {
  .bar .brand-mark { width: 34px; height: 34px; margin-top: -3.463px; }
  .bar .brand-word .w1 { padding-left: 2.88px; line-height: 6.6156px; }
  .bar .brand-word .w2 { font-size: 21px; }
  /* with the LIVE light, a little closer, so everything fits down to 360 px */
  .bar-in { gap: 8px; }
  .bar-live { gap: 5px; margin-left: 4px; padding-inline: 0; }
  .bar-go { gap: 8px; padding-inline: 10px; }
  .bar-go .price { padding-left: 10px; }
}
@media (max-width: 390px) {
  .bar-go { gap: 6px; letter-spacing: 0.03em; }
  .bar-go .price { padding-left: 7px; }
}
/* the narrowest phones (360 px): the store button a size smaller, so a three-digit count still fits */
@media (max-width: 374px) {
  .bar-go { padding-inline: 8px; font-size: 13px; }
}
@media (max-width: 359px) {
  .bar .brand-word { display: none; }
}

/* ───────── The footer: the stripe along its top, the mark, the links, the legal line ───────── */
.foot { position: relative; margin-top: 0; background: var(--sh-side); border-top: 1px solid var(--sh-side-line); font-family: var(--sh-ui); }
.foot::before { content: ""; position: absolute; left: 0; top: -1px; width: min(420px, 50%); height: 4px; background: var(--sh-stripe); }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 22px 48px; width: min(1240px, calc(100% - 2 * var(--sh-gut))); margin-inline: auto; padding: 40px 0 46px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 4px; margin: 0; }
.foot-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; color: var(--sh-mut-3); text-decoration: none; font: 700 14px/1 var(--sh-cond); letter-spacing: 0.12em; text-transform: uppercase; }
.foot-links a:hover { color: #fff; }
.foot-legal { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid var(--sh-side-line); font-size: 13px; line-height: 1.55; color: var(--sh-mut-2); }
.foot .brand-sub { display: block; margin-top: 3px; font: 500 13px/1.3 var(--sh-ui); letter-spacing: 0; text-transform: none; color: var(--sh-mut-2); }
@media (min-width: 861px) { .foot-links a { padding: 0 8px; letter-spacing: 0.1em; } }
@media (max-width: 860px) {
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-content: flex-start; margin-left: -10px; }
}

/* ───────── "Coming soon to the Meta Horizon Store" (js/store.js, while the store buttons wait for the release) ───────── */
html.cs-open { overflow: hidden; }
.cs {
  width: min(520px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0;
  border: 1px solid var(--sh-line); border-radius: 0; background: var(--sh-box); color: var(--sh-text); font: 400 16px/1.55 var(--sh-ui); overflow: auto;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.cs::backdrop { background: rgba(3, 6, 14, 0.82); }
.cs-in { position: relative; padding: 30px 28px 28px; }
.cs-in::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--sh-stripe); }
.cs-x { position: absolute; right: 8px; top: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--sh-mut-3); cursor: pointer; }
.cs-x svg { width: 20px; height: 20px; }
.cs-x:hover { color: #fff; }
.cs-x:focus-visible, .cs-go:focus-visible, .cs a:focus-visible { outline: 2px solid var(--sh-cyan); outline-offset: 2px; }
.cs-title { margin: 0; padding-right: 48px; font: 800 clamp(28px, 6vw, 36px)/0.98 var(--sh-cond); letter-spacing: 0.01em; text-transform: uppercase; color: var(--sh-text); }
.cs-line { margin: 12px 0 0; color: var(--sh-mut-3); font-size: 16px; }
.cs-form { display: grid; gap: 10px; margin-top: 20px; }
.cs-label { font: 700 14px/1.2 var(--sh-cond); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sh-soft); }
.cs-input { width: 100%; min-height: 50px; margin: 0; padding: 0 14px; border: 1px solid var(--sh-line); border-radius: 0; background: #050914; color: var(--sh-text); font: 400 16px/1.2 var(--sh-ui); }
.cs-input::placeholder { color: var(--sh-dim); }
.cs-input:focus { outline: none; border-color: var(--sh-cyan); box-shadow: 0 0 0 3px rgba(46, 230, 246, 0.16); }
.cs-input[aria-invalid="true"] { border-color: var(--sh-bad); }
.cs-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--sh-mut-3); }
.cs-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sh-cyan); }
.cs-check input[aria-invalid="true"] { outline: 2px solid var(--sh-bad); outline-offset: 2px; }
.cs-check a, .cs-nojs a { color: var(--sh-cyan); }
.cs-err { margin: 0; font-size: 14px; color: var(--sh-bad); }
.cs-err:empty { display: none; }
.cs-go {
  justify-self: start; display: inline-flex; align-items: center; min-height: 50px; margin-top: 6px; padding: 0 34px 0 22px; border: 0; border-radius: 0;
  background: var(--sh-cyan); color: var(--sh-cyan-ink); cursor: pointer; font: 800 17px/1 var(--sh-cond); letter-spacing: 0.1em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.cs-go:hover { background: var(--sh-cyan-hi); }
.cs-go[disabled] { opacity: 0.6; cursor: progress; }
.cs-status { min-height: 1.5em; margin: 0; font-size: 15px; color: var(--sh-mut-3); }
.cs-status.is-ok { color: var(--sh-good); }
.cs-status.is-error { color: var(--sh-bad); }
.cs.is-done .cs-form > :not(.cs-status) { display: none; }
.cs.is-done .cs-status { font-size: 17px; }
.cs-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 420px) { .cs-in { padding: 26px 18px 22px; } }
