/*
  render-the-arena-classic.css — "The Arena Classic" (SKIN-G05) Render layer
  token map aligned to BU-CORE-UIUX-001 §4.1, 2026-07-03
  ===========================================================================
  Fires when data-theme="the-arena-classic". ARENA/GAMIFIED category
  (student-facing only per BUP-UI-THEME-001 Rule 2). Phase 2 target.

  SOURCING CLASS: [AUTHORED PROPOSAL -- pending owner approval; no source
  values existed]. BUP-UI-SKIN-002 SKIN-G05 (lines 74-78) describes this
  skin only in prose: "Bold color blocks, high-contrast borders, fight-stat
  readouts... bold, punchy, nostalgic." No hex values exist. This file
  authors a high-contrast yellow-on-black accent (retro arcade cabinet
  register) kept structurally identical to Fight Night's shape per R-S7-10.

  Contrast check (WCAG AA, BUP-UI-SKIN-001 L-9): text-primary #fff9e6 on
  canvas #0a0a0a = ~18.7:1. text-secondary #e0c869 on canvas = ~12.4:1 --
  passes 4.5:1 minimum.
  ===========================================================================
*/

:root[data-theme="the-arena-classic"] {
  --theme-bg-canvas: #0a0a0a;
  --theme-bg-surface: rgba(255, 214, 0, 0.05);
  --theme-bg-frosted: var(--theme-bg-surface); /* alias — dialect has no distinct frosted-fill token; §4.1 requires this name, value derived from bg-surface */
  --theme-bg-card: rgba(255, 214, 0, 0.09);
  --theme-x-bg-sunken: #0a0a0a;
  --theme-border-inactive: rgba(255, 214, 0, 0.18);
  --theme-border-active: #ffd600;

  --theme-text-main: #fff9e6;
  --theme-x-text-secondary: #e0c869;
  --theme-text-muted: #a89a55;
  --theme-x-text-inverse: #0a0a0a;
  --theme-x-text-disabled: #5c5540;

  --theme-accent-primary: #ffd600;
  --theme-accent-secondary: var(--theme-accent-primary); /* alias — no distinct secondary accent hue exists in sources; §4.1 requires this name */
  --theme-x-accent-hover: #ffe74d;
  --theme-x-accent-active: #d1b000;
  --theme-x-accent-disabled: rgba(255, 214, 0, 0.35);
  --theme-x-accent-text: #0a0a0a;
  --theme-x-focus-ring: #ffd600;

  --theme-state-healthy: #4dd65c;
  --theme-state-warning: #ffd600;
  --theme-state-error: #ff3b3b;
  --theme-x-state-info: #4d9fff;

  --theme-x-elevation-1: 0 1px 2px rgba(0, 0, 0, 0.5);
  --theme-x-elevation-2: 0 0 0 2px rgba(255, 214, 0, 0.4);
  --theme-x-elevation-3: 0 0 20px rgba(255, 214, 0, 0.5);
  --theme-accent-glow: 0 0 20px rgba(255, 214, 0, 0.5); /* derived — same glow value as --theme-x-elevation-3 (measured/authored glow shadow); §4.1 requires this name */
  --theme-accent-glow-secondary: 0 0 20px rgba(255, 214, 0, 0.5); /* derived — no distinct secondary glow exists in sources; aliased to primary glow value */
  --theme-x-glass-tint: rgba(255, 214, 0, 0.05);
  --theme-backdrop-blur: 8px;

  --theme-x-font-family-base: var(--structure-font-family);
  --theme-x-font-size-sm: 0.875rem;
  --theme-x-font-size-base: 1rem;
  --theme-x-font-size-lg: 1.25rem;
  --theme-x-font-size-xl: 1.75rem;
  --theme-x-line-height-base: 1.5;
  --theme-x-space-unit: 0.5rem;
}

/* Structural selector list mirrors render-greyscale-skeleton.css / render-fight-night.css
   1:1 (R-S7-10 / D-S07-FW-01: structure never forks per skin — value-only skin). */
:root[data-theme="the-arena-classic"] body {
  background-color: var(--theme-bg-canvas);
  color: var(--theme-text-main);
}

:root[data-theme="the-arena-classic"] a {
  color: var(--theme-text-main);
}

:root[data-theme="the-arena-classic"] h1,
:root[data-theme="the-arena-classic"] h2,
:root[data-theme="the-arena-classic"] h3,
:root[data-theme="the-arena-classic"] h4,
:root[data-theme="the-arena-classic"] h5,
:root[data-theme="the-arena-classic"] h6 {
  color: var(--theme-text-main);
}

:root[data-theme="the-arena-classic"] p,
:root[data-theme="the-arena-classic"] li {
  color: var(--theme-x-text-secondary);
}

:root[data-theme="the-arena-classic"] .bu-panel {
  background-color: var(--theme-bg-surface);
  border: 1px solid var(--theme-border-inactive);
  border-top: 2px solid var(--theme-border-active);
  border-bottom: 2px solid var(--theme-border-active);
  box-shadow: var(--theme-x-elevation-2);
  backdrop-filter: blur(var(--theme-backdrop-blur));
  -webkit-backdrop-filter: blur(var(--theme-backdrop-blur));
  color: var(--theme-text-main);
}

:root[data-theme="the-arena-classic"] .bu-rail {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--theme-border-inactive);
  color: var(--theme-text-main);
}

:root[data-theme="the-arena-classic"] .bu-soffit {
  border-top: 1px solid var(--theme-border-inactive);
  color: var(--theme-text-muted);
  font-size: var(--structure-text-sm, 0.875rem);
}

:root[data-theme="the-arena-classic"] .bu-soffit a {
  color: var(--theme-text-muted);
}

:root[data-theme="the-arena-classic"] .bu-soffit a:hover {
  color: var(--theme-text-main);
}

:root[data-theme="the-arena-classic"] .bu-brick {
  color: var(--theme-x-text-secondary);
}

:root[data-theme="the-arena-classic"] .bu-badge-tag {
  background-color: var(--theme-bg-card);
  border: 1px solid var(--theme-border-active);
  color: var(--theme-text-main);
}

:root[data-theme="the-arena-classic"] .bu-control {
  background-color: var(--theme-bg-surface);
  border-color: var(--theme-border-active);
  color: var(--theme-text-main);
}

:root[data-theme="the-arena-classic"] .bu-control:hover {
  background-color: var(--theme-x-accent-hover);
  color: var(--theme-x-text-inverse);
}

:root[data-theme="the-arena-classic"] .bu-control:focus-visible {
  outline: 2px solid var(--theme-x-focus-ring);
  outline-offset: 2px;
}

:root[data-theme="the-arena-classic"] .bu-btn {
  background-color: rgba(255, 214, 0, 0.14);
  border-top: 2px solid var(--theme-border-active);
  border-bottom: 2px solid var(--theme-border-active);
  border-left-color: transparent;
  border-right-color: transparent;
  color: var(--theme-x-accent-text);
}

:root[data-theme="the-arena-classic"] .bu-btn:hover {
  background-color: rgba(255, 214, 0, 0.24);
  border-top-color: var(--theme-x-accent-hover);
  border-bottom-color: var(--theme-x-accent-hover);
}

:root[data-theme="the-arena-classic"] .bu-btn:disabled {
  background-color: rgba(255, 214, 0, 0.05);
  border-top-color: var(--theme-x-accent-disabled);
  border-bottom-color: var(--theme-x-accent-disabled);
  color: var(--theme-x-text-disabled);
}

:root[data-theme="the-arena-classic"] .bu-btn-secondary {
  background-color: transparent;
  border-color: var(--theme-border-active);
  color: var(--theme-text-main);
}

:root[data-theme="the-arena-classic"] .bu-btn-secondary:hover {
  border-color: var(--theme-x-accent-hover);
  color: var(--theme-x-accent-hover);
}

/* PG-035 demo skin switcher active-selection state (D-S07-SKIN-02 switcher UI). */
:root[data-theme="the-arena-classic"] .bu-btn-secondary.is-active {
  background-color: var(--theme-accent-primary);
  border-color: var(--theme-accent-primary);
  color: var(--theme-x-accent-text);
}

:root[data-theme="the-arena-classic"] .bu-btn:focus-visible,
:root[data-theme="the-arena-classic"] .bu-btn-secondary:focus-visible {
  outline: 2px solid var(--theme-x-focus-ring);
  outline-offset: 2px;
}

:root[data-theme="the-arena-classic"] .bu-gate {
  background-color: var(--theme-x-glass-tint);
  backdrop-filter: blur(var(--theme-backdrop-blur));
}

/* Brand lockup accent: the "UP" half of BELT|UP carries the accent hue, the
   rest inherits .bu-nav-brand's text colour. Uniform across every skin per
   D-S07-SKIN-02 (no partial-skin fallthrough) — added 2026-08-21 when an audit
   found this styled in only 2 of 20 skins. Uses the standard accent token, NOT
   the lighter hover tone. */
:root[data-theme="the-arena-classic"] .bu-nav-brand span {
  color: var(--theme-accent-primary);
}

/* ==== #234 CONSTRUCTION FAMILY BEGIN ==== (SYNTHWAVE GRID, family 6 of 8) ====
   Skin "the-arena-classic" belongs to the SYNTHWAVE GRID construction family. Colour variants of one
   family share this construction and differ only in the variables above. */
/* family variables: derived from this skin's own palette; contrast pairs verified >= 4.5:1 (fill/ink), >= 3:1 (edge, focus) against the canvas */
:root[data-theme="the-arena-classic"] {
  --fam-edge: #ffd600;
  --fam-hi: #ffe74d;
  --fam-hov: #ffe74d;
  --fam-fill: #ffd600;
  --fam-ink: #0a0a0a;
  --fam-deep: #6b5a00;
  --fam-focus: #ffe74d;
  --fam-glow: color-mix(in srgb, #ffd600 55%, transparent);
  --theme-state-error: #ff5151; /* AA repair (>= 4.7:1 on canvas, surface and card), hue kept semantic */
}

/* ===========================================================================
   CONSTRUCTION FAMILY 6 of 8 — SYNTHWAVE GRID  [#234 / R-0823-01 / R-0823-02]
   Reference: six-terminals.html 05 "Synthwave Grid -- gold on black, angular".
   Frame strategy: a heavy 2px outline on an ANGULAR plate (opposite corners
   cut larger than Crystal Gate and on the other diagonal: top-right and
   bottom-left), a ruled grid etched into the plate, and a hexagon-chip
   cluster. The outline pseudo carries the same clip as the plate.
   Light source: neon edge (inset glow) + ruled header with bloom.
   Palette discipline: one saturated hue on pure black.
   Type: bold, wide-tracked uppercase, display-weight headings.
   NOTE: no backdrop-filter on the clipped plate (#228).
   [PILLAR-1: Von Restorff -- the one saturated hue on black makes the call to
   action the most distinct object on the page.]
   =========================================================================== */
:root[data-theme="the-arena-classic"] body {
  background-image:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--fam-edge) 9%, transparent) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--fam-edge) 9%, transparent) 0 1px, transparent 1px 36px);
  background-size: 100% 100%;
}
:root[data-theme="the-arena-classic"] .bu-panel {
  border: 0;
  border-radius: 0;
  isolation: isolate;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background-color: var(--theme-bg-canvas);
  background-image:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--fam-edge) 14%, transparent) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--fam-edge) 14%, transparent) 0 1px, transparent 1px 30px),
    linear-gradient(color-mix(in srgb, var(--theme-bg-canvas) 88%, transparent), color-mix(in srgb, var(--theme-bg-canvas) 88%, transparent));
  box-shadow: none;
}
/* grid strokes are kept at 14% of the accent: thin, low-contrast lines that
   never cut through body text legibility (the reference runs them at ~13%). */
:root[data-theme="the-arena-classic"] .bu-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  box-shadow: inset 0 0 0 2px var(--fam-edge), inset 0 0 40px color-mix(in srgb, var(--fam-edge) 18%, transparent);
}
/* hexagon chip, bottom-right (reference .s5__hex) */
:root[data-theme="the-arena-classic"] .bu-panel::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: 14px;
  width: 13px;
  height: 15px;
  pointer-events: none;
  background: var(--fam-edge);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  opacity: 0.6;
}
:root[data-theme="the-arena-classic"] .bu-panel > .bu-reveal:first-child {
  border-bottom: 2px solid var(--fam-edge);
  box-shadow: 0 6px 10px -8px var(--fam-glow);
  padding-bottom: 0.6rem;
}
:root[data-theme="the-arena-classic"] h1, :root[data-theme="the-arena-classic"] h2, :root[data-theme="the-arena-classic"] h3 { font-weight: 700; overflow-wrap: break-word; }
:root[data-theme="the-arena-classic"] .bu-panel h2, :root[data-theme="the-arena-classic"] .bu-panel h3, :root[data-theme="the-arena-classic"] .bu-panel-title, :root[data-theme="the-arena-classic"] .bu-panel-headline {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 14px color-mix(in srgb, var(--fam-edge) 80%, transparent);
}
:root[data-theme="the-arena-classic"] .bu-panel-sublabel, :root[data-theme="the-arena-classic"] .bu-badge-tag, :root[data-theme="the-arena-classic"] .bu-metric-label, :root[data-theme="the-arena-classic"] .bu-panel-footnote {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 600;
  font-size: var(--structure-text-xs, 0.75rem);
  color: var(--fam-hi);
}
:root[data-theme="the-arena-classic"] .bu-badge-tag { background: transparent; border: 0; border-top: 2px solid var(--fam-edge); border-radius: 0; padding: 0.2rem 0.5rem; }
:root[data-theme="the-arena-classic"] .bu-rail { border-bottom: 2px solid var(--fam-edge); box-shadow: 0 8px 14px -12px var(--fam-glow); }
:root[data-theme="the-arena-classic"] .bu-nav-links a { font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: var(--structure-text-sm, 0.875rem); }
:root[data-theme="the-arena-classic"] .bu-nav-links a:hover, :root[data-theme="the-arena-classic"] .bu-nav-links a.active { color: var(--fam-hi); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: var(--fam-edge); }
/* angular buttons: top-right and bottom-left corners cut; outline drawn inside */
:root[data-theme="the-arena-classic"] .bu-btn {
  background: var(--fam-fill);
  border: 0;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  color: var(--fam-ink);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: none;
}
:root[data-theme="the-arena-classic"] .bu-btn:hover { background: var(--fam-hov); color: var(--fam-ink); }
:root[data-theme="the-arena-classic"] .bu-btn:focus-visible, :root[data-theme="the-arena-classic"] .bu-btn-secondary:focus-visible { outline-offset: -5px; outline-color: var(--fam-focus); }
:root[data-theme="the-arena-classic"] .bu-btn-secondary {
  background: transparent;
  border: 0;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  box-shadow: inset 0 0 0 2px var(--fam-edge);
  color: var(--fam-hi);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
:root[data-theme="the-arena-classic"] .bu-btn-secondary:hover { background: color-mix(in srgb, var(--fam-edge) 20%, transparent); color: var(--fam-hi); box-shadow: inset 0 0 0 2px var(--fam-hi); }
:root[data-theme="the-arena-classic"] .bu-btn-secondary.is-active { background: var(--fam-fill); color: var(--fam-ink); }
:root[data-theme="the-arena-classic"] .bu-control, :root[data-theme="the-arena-classic"] .bu-field input[type="text"], :root[data-theme="the-arena-classic"] .bu-field input[type="email"], :root[data-theme="the-arena-classic"] .bu-field input[type="tel"],
:root[data-theme="the-arena-classic"] .bu-field input[type="password"], :root[data-theme="the-arena-classic"] .bu-field input[type="number"], :root[data-theme="the-arena-classic"] .bu-field select, :root[data-theme="the-arena-classic"] .bu-field textarea,
:root[data-theme="the-arena-classic"] input.bu-input, :root[data-theme="the-arena-classic"] select.bu-input, :root[data-theme="the-arena-classic"] textarea.bu-input {
  background: var(--theme-bg-canvas);
  border: 2px solid var(--fam-edge);
  border-radius: 0;
  color: var(--theme-text-main);
}
:root[data-theme="the-arena-classic"] .bu-control:hover, :root[data-theme="the-arena-classic"] .bu-field input:hover, :root[data-theme="the-arena-classic"] .bu-field select:hover, :root[data-theme="the-arena-classic"] .bu-field textarea:hover { border-color: var(--fam-hi); background: var(--theme-bg-canvas); color: var(--theme-text-main); }
:root[data-theme="the-arena-classic"] .bu-table th, :root[data-theme="the-arena-classic"] .bu-table td { border-bottom: 1px solid color-mix(in srgb, var(--fam-edge) 35%, transparent); }
:root[data-theme="the-arena-classic"] .bu-table th { text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700; border-bottom: 2px solid var(--fam-edge); }

/* --- shared floors every family honours (state tokens, focus, option list) --- */
:root[data-theme="the-arena-classic"] .bu-field select option,
:root[data-theme="the-arena-classic"] select.bu-input option {
  background-color: var(--theme-bg-canvas);
  color: var(--theme-text-main);
}
:root[data-theme="the-arena-classic"] .bu-btn:focus-visible,
:root[data-theme="the-arena-classic"] .bu-btn-secondary:focus-visible,
:root[data-theme="the-arena-classic"] .bu-control:focus-visible,
:root[data-theme="the-arena-classic"] .bu-field input:focus-visible,
:root[data-theme="the-arena-classic"] .bu-field select:focus-visible,
:root[data-theme="the-arena-classic"] .bu-field textarea:focus-visible,
:root[data-theme="the-arena-classic"] .bu-input:focus-visible,
:root[data-theme="the-arena-classic"] .bu-nav-links a:focus-visible,
:root[data-theme="the-arena-classic"] .bu-tab-btn:focus-visible {
  outline: 2px solid var(--fam-focus);
  outline-offset: 2px;
}
:root[data-theme="the-arena-classic"] .bu-btn:disabled,
:root[data-theme="the-arena-classic"] .bu-btn-secondary:disabled {
  background: transparent;
  border-color: var(--theme-x-accent-disabled);
  color: var(--theme-x-text-disabled);
  box-shadow: none;
  filter: none;
}
:root[data-theme="the-arena-classic"] .bu-status-dot.is-healthy { background: var(--theme-state-healthy); }
:root[data-theme="the-arena-classic"] .bu-status-dot.is-warning,
:root[data-theme="the-arena-classic"] .bu-status-dot.is-alert { background: var(--theme-state-warning); }
:root[data-theme="the-arena-classic"] .bu-status-dot.is-error { background: var(--theme-state-error); }
:root[data-theme="the-arena-classic"] .bu-field-error { color: var(--theme-state-error); }
/* --- overlay / scroll-container panels (Admin drawers, slide-outs, the report widget) ---
   A family frame is drawn on pseudo-elements and a plate that would scroll away with the
   content, and some panel margins would leave a closed drawer peeking in. Overlay panels
   therefore get a solid attached fill, one plain outline, no pseudo frame, no clip. */
:root[data-theme="the-arena-classic"] .bu-drawer, :root[data-theme="the-arena-classic"] .bu-slideout-content, :root[data-theme="the-arena-classic"] .bu-report-widget-panel {
  clip-path: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background-color: var(--theme-bg-canvas);
  background-image: linear-gradient(var(--theme-bg-surface), var(--theme-bg-surface));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  border: 1px solid var(--fam-edge);
  box-shadow: none;
  isolation: auto;
}
:root[data-theme="the-arena-classic"] .bu-drawer::before, :root[data-theme="the-arena-classic"] .bu-drawer::after,
:root[data-theme="the-arena-classic"] .bu-slideout-content::before, :root[data-theme="the-arena-classic"] .bu-slideout-content::after,
:root[data-theme="the-arena-classic"] .bu-report-widget-panel::before, :root[data-theme="the-arena-classic"] .bu-report-widget-panel::after { content: none; }

@media (prefers-reduced-motion: reduce) {
  :root[data-theme="the-arena-classic"] .bu-btn, :root[data-theme="the-arena-classic"] .bu-btn-secondary { transition: none; transform: none; }
}
:root[data-reduced-motion="true"][data-theme="the-arena-classic"] .bu-btn,
:root[data-reduced-motion="true"][data-theme="the-arena-classic"] .bu-btn-secondary { transition: none; transform: none; }
/* ==== #234 CONSTRUCTION FAMILY END ==== */
