/* The Bull Run theme (2026-10)
   The game's own look: the logo's night navy and bull gold, newsprint cream, and Playfair Display
   (the Print era's headline face). Loaded only on The Bull Run pages (build.js extraHead), after
   style.css, and scoped to body.theme-br. */

body.theme-br {
  --blue: #9A6A12;            /* links */
  --br-night: #060C0E;
  --br-navy: #0C1A33;
  --br-gold: #E8B64C;
  --br-gold-deep: #B8862A;
  --br-cream: #F4ECD8;
  --br-green: #1F9D5C;
  --ink: #1F1A13;
  --ink-soft: #564C3C;
  --ink-faint: #8A7F6C;
  --bg: #FBF7EC;
  --bg-warm-start: #F4ECD8;
  --bg-warm-end: #EADBB8;
  --surface: #FFFDF7;
  --surface-soft: #F4ECD8;
  --border: rgba(31, 26, 19, 0.10);
  --shadow-soft: 0 14px 34px rgba(12, 26, 51, 0.18);
  --shadow-card: 0 10px 24px rgba(12, 26, 51, 0.10);
}
@media (prefers-color-scheme: dark) {
  body.theme-br {
    --blue: #E8B64C;
    --ink: #F4ECD8;
    --ink-soft: #C9BFA8;
    --ink-faint: #958A75;
    --bg: #080F14;
    --bg-warm-start: #0C1A33;
    --bg-warm-end: #16233A;
    --surface: #0F1A26;
    --surface-soft: #12202F;
    --border: rgba(232, 182, 76, 0.14);
    --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 10px 24px rgba(0, 0, 0, 0.4);
  }
}
body.theme-br h1, body.theme-br h2, body.theme-br h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  letter-spacing: -0.005em;
}
body.theme-br h3 { font-weight: 700; }
body.theme-br .eyebrow { background: rgba(232, 182, 76, 0.18); color: #7A5410; }
body.theme-br .btn-primary { background: linear-gradient(135deg, #F2CC72, var(--br-gold) 50%, #D29D33); color: #1F1A13; }
body.theme-br .feature-icon { background: linear-gradient(135deg, #F7E7BF, #EBCF8A); }
body.theme-br .legal-hero p.updated { color: #7A5410; }
body.theme-br .check-list li::before { background: var(--br-green); }
@media (prefers-color-scheme: dark) {
  body.theme-br .eyebrow, body.theme-br .legal-hero p.updated { background: rgba(232, 182, 76, 0.14); color: var(--br-gold); }
  body.theme-br .feature-icon { background: linear-gradient(135deg, #1B2A44, #263A5C); }
}

/* ---------- Phone frame for the 1080 x 2274 captures (status bar cropped) ---------- */

.br-phone {
  width: 260px; max-width: 100%; flex-shrink: 0;
  padding: 10px; border-radius: 40px; background: #05080B;
  box-shadow: 0 30px 60px rgba(6, 12, 14, 0.38), 0 0 0 1px rgba(232, 182, 76, 0.18);
}
.br-screen { position: relative; overflow: hidden; border-radius: 31px; background: #05080B; padding-top: 20px; }
.br-screen::before {
  content: ''; position: absolute; top: 6px; left: 50%;
  width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #1A1F24;
}
.br-screen img { display: block; width: 100%; height: auto; }

/* ---------- Hero: night sky and gold ---------- */

.br-hero {
  position: relative; overflow: hidden;
  padding: 72px 0 76px; color: #fff;
  background:
    radial-gradient(700px 420px at 78% 40%, rgba(232, 182, 76, 0.22), transparent 65%),
    radial-gradient(900px 500px at 10% 110%, rgba(31, 157, 92, 0.16), transparent 60%),
    linear-gradient(165deg, #10223F 0%, var(--br-navy) 45%, var(--br-night) 100%);
}
.br-hero::after {
  /* a faint skyline of the eras along the bottom */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: url("/assets/img/thebullrun/era-print.webp") left bottom / auto 100% repeat-x;
  opacity: 0.10; mix-blend-mode: screen; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent);
  mask-image: linear-gradient(to top, #000 30%, transparent);
}
.br-hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center;
}
@media (max-width: 900px) {
  .br-hero .wrap { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .br-hero .cta-row, .br-hero .pill-row { justify-content: center; }
  .br-hero .lede { margin-left: auto; margin-right: auto; }
}
.br-hero .br-logo { width: 116px; height: 116px; margin-bottom: 18px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.5)); }
@media (max-width: 900px) { .br-hero .br-logo { margin-left: auto; margin-right: auto; } }
.br-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.1rem); margin-bottom: 6px; }
.br-hero .tagline { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.6rem); color: var(--br-gold); margin-bottom: 16px; }
.br-hero .lede { color: rgba(255, 255, 255, 0.86); font-size: 1.08rem; max-width: 52ch; }
body.theme-br .br-hero .eyebrow { background: var(--br-gold); color: #1F1A13; }
.br-hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.br-hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.br-hero .pill { background: rgba(255, 255, 255, 0.08); border-color: rgba(232, 182, 76, 0.28); color: #F4ECD8; box-shadow: none; }

.br-hero-phones { position: relative; height: 560px; }
.br-hero-phones .br-phone { position: absolute; width: 240px; }
.br-hero-phones .br-phone.back { left: 50%; top: 34px; transform: translateX(-94%) rotate(-7deg); }
.br-hero-phones .br-phone.front { left: 50%; top: 0; transform: translateX(-10%) rotate(5deg); }
@media (max-width: 900px) { .br-hero-phones { height: 500px; } .br-hero-phones .br-phone { width: 210px; } }
@media (max-width: 480px) { .br-hero-phones { height: 410px; } .br-hero-phones .br-phone { width: 170px; } }

/* ---------- How it plays ---------- */

body.theme-br .intro { padding: 64px 0; }
body.theme-br .rule-num { background: linear-gradient(135deg, #F2CC72, var(--br-gold)); color: #1F1A13; font-family: 'Playfair Display', Georgia, serif; }

/* ---------- The five eras ---------- */

.br-eras { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1060px) { .br-eras { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .br-eras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .br-eras { grid-template-columns: minmax(0, 1fr); } }
.br-era {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 380px; padding: 20px 18px; border-radius: var(--radius-lg); color: #fff;
  background: var(--art) center top / cover no-repeat, var(--br-navy);
  box-shadow: var(--shadow-card);
}
.br-era::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,12,14,0) 30%, rgba(6,12,14,.78) 66%, rgba(6,12,14,.94) 100%);
}
.br-era > * { position: relative; }
.br-era .years { font-family: 'Poppins', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.br-era h3 { color: #fff; font-size: 1.45rem; margin: 4px 0 6px; }
.br-era p { color: rgba(255,255,255,.82); font-size: 0.9rem; margin: 0; }
.br-era.print h3 { font-family: 'Playfair Display', Georgia, serif; }
.br-era.broadcast h3 { font-family: 'Courier New', Courier, monospace; letter-spacing: .02em; }
.br-era.terminal h3 { font-family: 'VT323', monospace; font-weight: 400; font-size: 1.9rem; color: #39FF6A; }
.br-era.digital h3 { font-family: 'Poppins', sans-serif; font-weight: 700; }
.br-era.scifi h3 { font-family: 'Poppins', sans-serif; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9FF3FF; font-size: 1.2rem; }
.br-eras-note { margin-top: 22px; text-align: center; color: var(--ink-faint); font-size: 0.95rem; }

/* ---------- Spotlights: phone + copy ---------- */

.br-spotlight { display: grid; gap: 76px; }
.br-spot { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.br-spot:nth-child(even) .br-spot-visual { order: 2; }
.br-spot-visual {
  display: flex; justify-content: center; padding: 36px 16px;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--spot-bg, linear-gradient(135deg, var(--bg-warm-start), var(--bg-warm-end)));
}
.br-spot .br-phone { width: 250px; }
.br-spot h3 { font-size: 1.7rem; margin: 10px 0; }
.br-spot p { font-size: 1.05rem; }
.br-spot blockquote {
  margin: 18px 0 0; padding: 14px 18px; border-left: 4px solid var(--br-gold);
  background: var(--surface-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: 'Playfair Display', Georgia, serif; font-style: italic; color: var(--ink);
}
@media (max-width: 820px) {
  .br-spotlight { gap: 56px; }
  .br-spot { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .br-spot:nth-child(even) .br-spot-visual { order: 0; }
  .br-spot .br-phone { width: 220px; }
}
.spot-paper { --spot-bg: linear-gradient(135deg, #F4ECD8, #E3D2A8); }
.spot-green { --spot-bg: radial-gradient(500px 300px at 50% 40%, rgba(57,255,106,.18), transparent 70%), #05090A; }
.spot-walnut { --spot-bg: linear-gradient(135deg, #5A3B23, #2E1D10); }
.spot-digital { --spot-bg: linear-gradient(135deg, #1E3A5F, #5B2A6E 60%, #0F172A); }
.spot-future { --spot-bg: radial-gradient(500px 320px at 50% 30%, rgba(0,240,255,.22), transparent 70%), #03050C; }

/* ---------- Ways to play ---------- */

.br-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .br-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .br-modes { grid-template-columns: minmax(0, 1fr); } }
.br-mode {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 22px 24px; box-shadow: var(--shadow-card); border-top: 5px solid var(--br-gold);
}
.br-mode .mode-tag { background: rgba(232, 182, 76, 0.18); color: #7A5410; }
@media (prefers-color-scheme: dark) { .br-mode .mode-tag { color: var(--br-gold); } }
.br-mode h3 { font-size: 1.2rem; margin: 10px 0 6px; }
.br-mode p { font-size: 0.94rem; margin: 0; }

/* ---------- Endings band ---------- */

.br-endings {
  color: #F4ECD8;
  background: radial-gradient(900px 400px at 50% 0%, rgba(0, 240, 255, 0.12), transparent 70%),
              linear-gradient(180deg, var(--br-navy), var(--br-night));
}
.br-endings h2 { color: #fff; }
.br-endings .section-head p { color: rgba(244, 236, 216, 0.8); }
body.theme-br .br-endings .eyebrow { background: rgba(159, 243, 255, 0.14); color: #9FF3FF; }
.br-future-phones { display: flex; justify-content: center; gap: 28px; margin: 0 0 44px; flex-wrap: wrap; }
.br-future-phones .br-phone { width: 230px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 240, 255, 0.25); }
@media (max-width: 520px) { .br-future-phones .br-phone { width: 160px; } .br-future-phones { gap: 14px; } }
.br-ending-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .br-ending-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .br-ending-list { grid-template-columns: minmax(0, 1fr); } }
.br-ending { padding: 18px; border-radius: var(--radius-md); border: 1px solid rgba(232, 182, 76, 0.2); background: rgba(255, 255, 255, 0.04); }
.br-ending h3 { color: var(--br-gold); font-size: 1.1rem; margin: 0 0 6px; }
.br-ending p { color: rgba(244, 236, 216, 0.78); font-size: 0.9rem; margin: 0; }

.gallery-item .br-phone { width: 210px; margin: 0 auto 12px; padding: 8px; border-radius: 32px; box-shadow: 0 8px 18px rgba(6, 12, 14, 0.22); }
.gallery-item .br-screen { border-radius: 25px; padding-top: 16px; }
.gallery-item .br-screen::before { top: 4px; width: 8px; height: 8px; margin-left: -4px; }
