/*
  FaceOff — design tokens.

  Token system:
    Color    — stage-black background, spotlight-gold primary, two duel
               accents (challenger-magenta / contender-cyan) used together
               only where two sides are literally being compared (hero,
               battle cards) — this is the brand's signature, not a global
               gradient.
    Type     — "Anton" (condensed display, used sparingly for headlines/
               wordmark — poster/marquee energy), "Inter" (body, everywhere
               else), "JetBrains Mono" (scores, timers, vote counts — gives
               live numbers a broadcast-scoreboard feel).
    Layout   — diagonal "split stage" divider behind the hero, the one
               place we spend visual boldness. Everything else stays a
               quiet, disciplined Bootstrap dark theme.

  This file EXTENDS Bootstrap via CSS variables/utility classes. It does
  not replace Bootstrap's grid, components, or responsive system.
*/

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/anton-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/inter-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

:root,
[data-bs-theme="dark"] {
  --fo-stage: #0e1015;
  --fo-stage-raised: #161922;
  --fo-spotlight: #ffb627;
  --fo-spotlight-dim: #cf9114;
  --fo-challenger: #ff3d6e;
  --fo-contender: #2dd4c4;
  --fo-ink: #f4f3f0;
  --fo-ink-muted: #a6a9b4;
  --fo-border: #262a35;

  --bs-body-bg: var(--fo-stage);
  --bs-body-color: var(--fo-ink);
  --bs-border-color: var(--fo-border);
  --bs-primary: var(--fo-spotlight);
  --bs-primary-rgb: 255, 182, 39;
  --bs-link-color: var(--fo-spotlight);
  --bs-link-hover-color: var(--fo-spotlight-dim);
  --bs-secondary-bg: var(--fo-stage-raised);
  --bs-tertiary-bg: var(--fo-stage-raised);
}

[data-bs-theme="light"] {
  --fo-stage: #f7f6f3;
  --fo-stage-raised: #ffffff;
  --fo-spotlight: #b9790a;
  --fo-spotlight-dim: #8f5e07;
  --fo-challenger: #d6285a;
  --fo-contender: #0e8f81;
  --fo-ink: #14151a;
  --fo-ink-muted: #5b5e68;
  --fo-border: #e1ded6;

  --bs-body-bg: var(--fo-stage);
  --bs-body-color: var(--fo-ink);
  --bs-border-color: var(--fo-border);
  --bs-primary: var(--fo-spotlight);
  --bs-primary-rgb: 185, 121, 10;
  --bs-link-color: var(--fo-spotlight);
  --bs-link-hover-color: var(--fo-spotlight-dim);
  --bs-secondary-bg: var(--fo-stage-raised);
  --bs-tertiary-bg: var(--fo-stage-raised);
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.fo-display {
  font-family: "Anton", "Inter", sans-serif;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.05;
}

.fo-mono {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

/* Signature element: the split-stage hero. Two spotlight cones converge
   on a diagonal seam — the literal shape of a face-off. */
.fo-hero {
  position: relative;
  overflow: hidden;
  background: var(--fo-stage);
  border-bottom: 1px solid var(--fo-border);
}

.fo-hero::before,
.fo-hero::after {
  content: "";
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  opacity: 0.55;
}

.fo-hero::before {
  background: radial-gradient(ellipse at 15% 30%, var(--fo-challenger) 0%, transparent 55%);
  clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%);
}

.fo-hero::after {
  background: radial-gradient(ellipse at 85% 70%, var(--fo-contender) 0%, transparent 55%);
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 42% 100%);
}

.fo-hero__content {
  position: relative;
  z-index: 1;
}

.fo-navbar {
  background: var(--fo-stage-raised);
  border-bottom: 1px solid var(--fo-border);
}

.fo-wordmark {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.fo-wordmark__accent {
  color: var(--fo-spotlight);
}

/* Mobile bottom nav — fixed, always-available core actions (Section 4) */
.fo-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: var(--fo-stage-raised);
  border-top: 1px solid var(--fo-border);
  padding-bottom: env(safe-area-inset-bottom);
}

.fo-bottom-nav .nav-link {
  color: var(--fo-ink-muted);
  font-size: 0.7rem;
  text-align: center;
}

.fo-bottom-nav .nav-link.active {
  color: var(--fo-spotlight);
}

.fo-bottom-nav i {
  font-size: 1.15rem;
  display: block;
}

@media (min-width: 768px) {
  .fo-bottom-nav {
    display: none;
  }
}

main {
  padding-bottom: 4.5rem;
}

@media (min-width: 768px) {
  main {
    padding-bottom: 0;
  }
}

.fo-card {
  background: var(--fo-stage-raised);
  border: 1px solid var(--fo-border);
}

/* Respect reduced motion (Section 37) */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Visible keyboard focus everywhere (Section 37) — never rely on Bootstrap's
   default alone since it can be too subtle on a dark stage background. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid var(--fo-spotlight);
  outline-offset: 2px;
}
