/* ==========================================================================
   YOUR ROUND — the umbrella brand's own token set + brand-specific rules.
   Spec: the your-round-handoff design package (Main.html + README.md).

   Boozy Bingo is a game running under the Your Round company. Its own
   gameplay screens (host.html, player.html, bigscreen.html) keep Boozy
   Bingo's pink identity and are never touched by this file — the brand's
   own rule is that the house stays out of a game's colours. This file is
   for the company-level pages instead: signing up, signing in, running the
   account. Unlike a game skin, this brand does not vary — there is one
   Your Round, so unlike public/themes/*.css this defines its tokens once,
   fixed, rather than as a swappable skin another file could replace.

   Load order matters: this file is linked AFTER auth.css on every page
   that uses it, so its rules win the cascade tie on shared class names
   (.headline, .field-label, .eyebrow, .note) without needing higher
   specificity. Its :root block is the *only* source of the token set
   auth.css consumes on these pages — no /themes/*.css is loaded alongside
   it, so there is nothing for these tokens to conflict with.
   ------------------------------------------------------------------------ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Instrument+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* --- Surfaces ----------------------------------------------------------
     Publican (near-black) is the page itself; card panels sit one step up
     from it, and form fields recess back down to the page's own tone —
     matching the layered look every mockup in the handoff shares.        */
  --bg-deepest: #201417; /* Publican — the page                        */
  --bg-deep: #2b1c1f; /* card / panel surface                       */
  --bg-panel: #201417; /* recessed — form fields                     */
  --bg-panel-2: #241719; /* a second recessed tone, nested rows         */

  /* --- Accent --------------------------------------------------------- */
  --accent: #2fd9c4; /* Cheers Teal — the house colour, everywhere */
  --accent-bright: #ffc857; /* Round's On Me — a highlight only, never a base */
  --accent-deep: #16443d; /* muted teal, dashed-button hover fills       */

  /* --- Text ------------------------------------------------------------ */
  --text: #f6e9d8; /* Beer Mat — body text on the dark ground     */
  --text-dim: #ab9686; /* secondary text on dark                      */
  --ink: #201417; /* type ON an accent fill (a teal button, say) */

  /* --- Lines & status ---------------------------------------------------
     A fixed single-mode brand, so these are plain hex, not a spec-derived
     WCAG recalculation the way a light/dark game skin needs.            */
  --line: #3a2a2e;
  --line-strong: #4a2f34;
  --alert: #e2543f;
  --alert-text: #ffb4a3; /* readable on the pale alert wash, on this ground */

  /* --- Channel values, for colours used at partial opacity --------------
     --tint-rgb feeds every card's ambient wash and hairline border in
     auth.css — teal here, so those washes read as the same soft glow the
     mockups put behind every panel, rather than a neutral tint that would
     vanish against Publican. */
  --tint-rgb: 47, 217, 196;
  --alert-rgb: 226, 84, 63;

  /* --- Type --------------------------------------------------------------
     Three faces, three jobs — see the handoff's own README. Baloo 2 is
     reserved for the wordmark and a genuine headline moment; Instrument
     Sans is everything clicked or scanned; IBM Plex Mono is data and
     small-caps labels. auth.css's shared classes only know --font-display
     and --font-ui — the mono face is applied directly below, to the
     specific label/eyebrow/caption classes the handoff draws it on.     */
  --font-display: 'Baloo 2', sans-serif;
  --font-ui: 'Instrument Sans', sans-serif;

  /* --- Elevation ---------------------------------------------------------
     A plain dark lift, not a tint — the glow is spent on type, not on
     panel shadows (see the headline rule below, and the handoff's own
     "reserved for a genuine headline moment" rule). */
  --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);

  /* Platform pages, same as every game skin's own convention — nobody's
     uploaded venue logo belongs on a company-level screen. */
  --brand-logo-display: none;
}

/* ---------- the tally-mark texture ----------------------------------------
   One fixed pattern behind every full-page background in the handoff —
   copied verbatim from Main.html's own root div rather than re-drawn, so it
   stays pixel-identical to the source. Two offset copies of the same five
   strokes, dark and light, is what gives the embossed look without a
   second colourway. */
body {
  background-color: var(--bg-deepest);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg transform='translate(60,60) rotate(-14) translate(-25,-29)'%3E%3Cg transform='translate(1.6,1.8)' stroke='%23000000' stroke-opacity='0.4' stroke-width='4' stroke-linecap='round' fill='none'%3E%3Cline x1='9' y1='10' x2='7' y2='38'/%3E%3Cline x1='17' y1='8' x2='16' y2='39'/%3E%3Cline x1='25' y1='10' x2='24' y2='38'/%3E%3Cline x1='33' y1='8' x2='32' y2='39'/%3E%3Cline x1='5' y1='35' x2='36' y2='11' stroke-width='5'/%3E%3C/g%3E%3Cg transform='translate(-1.3,-1.5)' stroke='%23ffffff' stroke-opacity='0.22' stroke-width='4' stroke-linecap='round' fill='none'%3E%3Cline x1='9' y1='10' x2='7' y2='38'/%3E%3Cline x1='17' y1='8' x2='16' y2='39'/%3E%3Cline x1='25' y1='10' x2='24' y2='38'/%3E%3Cline x1='33' y1='8' x2='32' y2='39'/%3E%3Cline x1='5' y1='35' x2='36' y2='11' stroke-width='5'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(180,180) rotate(-14) translate(-25,-29)'%3E%3Cg transform='translate(1.6,1.8)' stroke='%23000000' stroke-opacity='0.4' stroke-width='4' stroke-linecap='round' fill='none'%3E%3Cline x1='9' y1='10' x2='7' y2='38'/%3E%3Cline x1='17' y1='8' x2='16' y2='39'/%3E%3Cline x1='25' y1='10' x2='24' y2='38'/%3E%3Cline x1='33' y1='8' x2='32' y2='39'/%3E%3Cline x1='5' y1='35' x2='36' y2='11' stroke-width='5'/%3E%3C/g%3E%3Cg transform='translate(-1.3,-1.5)' stroke='%23ffffff' stroke-opacity='0.22' stroke-width='4' stroke-linecap='round' fill='none'%3E%3Cline x1='9' y1='10' x2='7' y2='38'/%3E%3Cline x1='17' y1='8' x2='16' y2='39'/%3E%3Cline x1='25' y1='10' x2='24' y2='38'/%3E%3Cline x1='33' y1='8' x2='32' y2='39'/%3E%3Cline x1='5' y1='35' x2='36' y2='11' stroke-width='5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 240px 240px;
}

/* ---------- the neon glow ---------------------------------------------
   Baloo 2 lights up wherever the house is actually talking — a headline,
   never a whole paragraph. auth.css's .headline is the one shared class
   every pre-dashboard screen already uses for exactly that one line, so
   this overrides its colour and adds the glow rather than introducing a
   parallel class.

   The glow's tight inner ring is Beer Mat (#f6e9d8), hardcoded rather than
   a :root token: it's private to this one rule, nothing else in this file
   or auth.css reads it, and every registered game skin has to define
   whatever *is* a token here (see themeLibrary.test.ts's "sets every token
   the pages consume" check) — pointless for a value only Your Round uses. */
.headline {
  color: var(--accent);
  text-shadow:
    0 0 3px #f6e9d8,
    0 0 10px var(--accent),
    0 0 22px rgba(var(--tint-rgb), 0.5);
}
.headline span {
  color: var(--accent-bright);
  text-shadow: none; /* a highlighted word is gold, not a second glow colour */
}

/* ---------- data & small-caps labels ------------------------------------
   IBM Plex Mono everywhere the handoff draws it: field labels, the eyebrow
   line under a headline, and the small print under a form. Flat, never
   glowing — the mono face is data, not the voice. Same reasoning as the
   glow above for hardcoding rather than a --font-mono token: nothing but
   this rule reads it. */
.field-label,
.eyebrow,
.note {
  font-family: 'IBM Plex Mono', monospace;
}

/* ---------- the wordmark ------------------------------------------------
   Replaces the inline-SVG circular badge the game skins draw (a stand-in
   for a venue's own logo, which this brand never needs) with the real
   asset — "always use these image assets for the logo," per the handoff's
   own README. */
.your-round-logo {
  display: block;
  height: 96px;
  width: auto;
  margin: 0 auto;
}

/* ---------- pre-dashboard page layout ------------------------------------
   The handoff stacks a centred logo, the card, and a footer line as one
   group — auth.css's .card centres *itself* with margin:auto, which only
   works for a single flex child. This wraps all three so the group centres
   together; .card's own margin is zeroed so it stops fighting the stack
   for the centring. */
.your-round-stack {
  margin: auto;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.your-round-stack .card {
  margin: 0;
}
.your-round-footer {
  text-align: center;
  margin-top: 0;
  color: var(--text-dim);
}

/* ---------- topbar --------------------------------------------------------
   Replaces auth.css's .brand-left content (an inline-SVG badge + "Boozy
   Bingo" wordmark text) with the real Your Round logo image on every
   signed-in screen — the umbrella brand's own mark, not a stand-in for a
   venue's. .brand-page (the page name, e.g. "Dashboard") is kept: it
   still earns its place next to the logo the same way it always has. */
.your-round-topbar-logo {
  display: block;
  height: 40px;
  width: auto;
}
.your-round-venue-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
}
.your-round-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-bright);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  flex: none;
}

/* ---------- games row -----------------------------------------------------
   Boozy Bingo's pink is hardcoded, not a token: the house brand never
   lends its teal to a game and never borrows a game's colour back — see
   this file's own header comment and Main.html's "stays out of the games'
   own colours" rule. A game still to launch gets a dashed placeholder,
   never a second live colour it hasn't earned yet. */
.games-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.game-card {
  flex: 1 1 220px;
  border-radius: 14px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.game-card.live {
  background: #ff2d8e;
  color: #201417;
}
.game-card.soon {
  background: var(--bg-deep);
  border: 2px dashed var(--line-strong);
  opacity: 0.75;
  cursor: default;
}
.game-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  flex: none;
}
.game-card-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 19px;
}
.game-card-note {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.5;
}
.game-card-cta {
  margin-top: auto;
  background: #201417;
  color: var(--text);
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13.5px;
}
.game-card-soon-label {
  margin-top: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- stat rows -------------------------------------------------
   A .fact card that holds several small figures side by side — "players /
   nights / most-used skin" in one panel, rather than three separate fact
   cards for numbers that only mean something together. */
.stat-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.stat-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 22px;
  color: var(--accent);
}
.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ---------- venue rows (host-venues.html) --------------------------------
   One row per venue: name, a live/quiet status pill, its own week, and an
   action. Shared between "your venues" (switch) and "venues you've added"
   (reset login) — the two sections style identically; only the trailing
   action differs, set per row by the page's own script. */
.venue-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-deep);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 10px;
}
.venue-row-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
  background: var(--line-strong);
}
.venue-row-dot.live {
  background: var(--accent);
  box-shadow: 0 0 4px var(--accent), 0 0 10px rgba(var(--tint-rgb), 0.7);
}
.venue-row-info {
  flex: 1;
  min-width: 0;
}
.venue-row-name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
}
.venue-row-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.venue-row-stat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--text);
  flex: none;
  text-align: right;
}
.venue-row-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  flex: none;
  text-align: right;
  min-width: 88px;
}
.venue-row-status.live { color: var(--accent); }
.venue-row-status.quiet { color: var(--text-dim); }
.venue-row-action {
  flex: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.venue-row-action:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.venue-section-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 28px 0 12px;
}
.venue-section-title:first-of-type {
  margin-top: 0;
}
.venue-empty {
  font-size: 13px;
  color: var(--text-dim);
  padding: 18px 4px;
}

/* ---------- admin: search + toggle rows ----------------------------------
   SkinAccess.html's per-venue toggle, and a search input matching the
   text-input field styling already used everywhere else. */
.admin-search {
  width: 280px;
  height: 42px;
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--text);
}
.admin-search::placeholder {
  color: var(--text-dim);
}
.toggle-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.toggle-row:last-child {
  border-bottom: none;
}
.toggle-row-info {
  flex: 1;
}
.toggle-row-name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
}
.toggle-row-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}
.toggle-row-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  flex: none;
}
.toggle-switch {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  position: relative;
  flex: none;
  background: var(--line-strong);
  border: none;
  cursor: pointer;
  padding: 0;
}
.toggle-switch.on {
  background: var(--accent);
}
.toggle-switch-knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.15s ease;
}
.toggle-switch.on .toggle-switch-knob {
  transform: translateX(18px);
}

/* ---------- breadcrumb + tab strip (admin pages) ------------------------- */
.admin-crumb {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
}
.admin-crumb a {
  color: var(--text-dim);
}
.admin-crumb a:hover {
  color: var(--accent);
}
.admin-crumb .current {
  color: var(--text);
}
.admin-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.admin-tab {
  padding: 14px 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.admin-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---------- a plain filled action link/button, header-row scale --------- */
.your-round-cta {
  text-decoration: none;
  background: var(--accent);
  color: var(--ink);
  border: none;
  border-radius: 8px;
  padding: 13px 22px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-block;
}
.your-round-cta:hover {
  background: var(--accent-bright);
}
