
/* Ball Breakers — brand system for hi-fi pages */
:root {
  --bg: #070210;
  --bg-2: #0f041c;
  --purple: #1a0830;
  --purple-2: #2e1050;
  --purple-3: #4a1a7a;
  --purple-4: #7a2fb0;
  --purple-chrome: #b070d8;
  --purple-glow: rgba(122, 47, 176, 0.6);
  --pink: #c04de8;
  --pink-2: #9a2fc8;
  --pink-chrome: #d090e8;
  --text: #efe0ff;
  --text-mute: #a088b8;
  --text-dim: #6a4f8a;
  --line: rgba(255,255,255,0.07);
  --line-2: rgba(122,47,176,0.35);
}
.bb-site *{ box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
/* Sunburst background — radiating lines from bottom center */
.bb-site .sunburst {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 100%, var(--purple-3) 0%, var(--purple) 35%, var(--bg-2) 70%, var(--bg) 100%);
}
.bb-site .sunburst::before {
  content: ''; position: absolute; left: 50%; bottom: -40%;
  width: 180%; height: 180%; transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 100%,
    transparent 0deg,
    rgba(255,255,255,0.04) 2deg,
    transparent 4deg,
    transparent 10deg,
    rgba(255,255,255,0.035) 12deg,
    transparent 14deg,
    transparent 20deg,
    rgba(255,255,255,0.04) 22deg,
    transparent 24deg,
    transparent 30deg,
    rgba(255,255,255,0.03) 32deg,
    transparent 34deg,
    transparent 40deg);
  mix-blend-mode: screen;
}
.bb-site .sunburst::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, transparent 30%, rgba(18,8,24,0.6) 80%);
}
/* Horizon floor grid */
.bb-site .floor-grid {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background-image:
    linear-gradient(to right, rgba(157,76,192,0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(157,76,192,0.18) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(65deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, black, transparent);
  -webkit-mask-image: linear-gradient(to top, black, transparent);
}
/* Buttons */
.bb-site .btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Bungee', sans-serif; font-size: 16px; letter-spacing: 2px;
  padding: 16px 28px; border: none; cursor: pointer;
  text-transform: uppercase; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  position: relative;
}
.bb-site .btn-primary {
  background: linear-gradient(180deg, #d18ce8 0%, #9d4cc0 50%, #5a2589 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -2px 0 rgba(0,0,0,0.3),
    0 0 24px rgba(157,76,192,0.55),
    0 4px 0 #3a1560;
}
.bb-site .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -2px 0 rgba(0,0,0,0.3), 0 0 36px rgba(157,76,192,0.8), 0 6px 0 #3a1560;
}
.bb-site .btn-primary:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -2px 0 rgba(0,0,0,0.3), 0 0 18px rgba(157,76,192,0.4), 0 0 0 #3a1560;
}
.bb-site .btn-ghost {
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border: 2px solid var(--purple-4);
  box-shadow: 0 0 0 1px rgba(157,76,192,0.2), inset 0 0 20px rgba(157,76,192,0.1);
}
.bb-site .btn-ghost:hover {
  background: rgba(157,76,192,0.1);
  box-shadow: 0 0 0 1px rgba(157,76,192,0.4), inset 0 0 30px rgba(157,76,192,0.2);
}
/* Steam pill */
.bb-site .steam-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 2px; color: var(--text-mute);
  font-family: 'JetBrains Mono', monospace; text-transform: uppercase;
}
/* Panels */
.bb-site .panel {
  background: linear-gradient(180deg, rgba(58,27,94,0.55) 0%, rgba(20,10,36,0.85) 100%);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  position: relative;
  backdrop-filter: blur(4px);
}
/* LED dot grid for HUD panels */
.bb-site .led-grid {
  background-image: radial-gradient(circle, rgba(157,76,192,0.28) 1px, transparent 1.5px);
  background-size: 10px 10px;
}
/* Jumbotron — LED board behind hero */
.bb-site .jumbotron {
  position: absolute;
  border: 4px solid var(--purple-4);
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(157,76,192,0.22), transparent 70%),
    #080310;
  box-shadow:
    inset 0 0 0 3px #1a0630,
    inset 0 0 80px rgba(157,76,192,0.35),
    0 0 60px rgba(157,76,192,0.55),
    0 0 120px rgba(157,76,192,0.25),
    0 30px 80px rgba(0,0,0,0.7);
}
.bb-site .jumbotron::before {
  /* LED dot matrix — stronger */
  content: ''; position: absolute; inset: 10px;
  background-image: radial-gradient(circle, rgba(196,136,224,0.45) 1.3px, transparent 1.8px);
  background-size: 14px 14px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0.9;
  mix-blend-mode: screen;
}
.bb-site .jumbotron::after {
  /* scanlines */
  content: ''; position: absolute; inset: 10px;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(0,0,0,0.3) 3px, rgba(0,0,0,0.3) 4px);
  border-radius: 4px;
  pointer-events: none;
}
.bb-site .jumbotron-frame {
  /* chrome rail border around jumbotron */
  position: absolute; inset: -14px;
  border: 3px solid var(--purple-chrome);
  border-radius: 14px;
  box-shadow:
    inset 0 0 0 3px #0a0412,
    inset 0 2px 0 rgba(255,255,255,0.1),
    0 0 30px rgba(196,136,224,0.5);
  pointer-events: none;
}
/* Mono tag */
.bb-site .mono-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--purple-chrome); opacity: 0.9;
}
/* Section heading */
.bb-site .section-kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--purple-4); letter-spacing: 4px; text-transform: uppercase;
}
.bb-site .section-title {
  font-family: 'Bungee', sans-serif; font-size: 56px; letter-spacing: 0.02em;
  color: #fff; line-height: 1; margin: 8px 0 16px;
  text-shadow: 0 0 20px rgba(157,76,192,0.4);
}
.bb-site .section-sub {
  font-size: 18px; color: var(--text-mute); max-width: 600px; line-height: 1.5;
}
/* Utility scanlines overlay */
.bb-site .scanlines::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(255,255,255,0.025) 2px, rgba(255,255,255,0.025) 3px);
  mix-blend-mode: overlay;
}
/* Ticker */
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.bb-site .ticker { overflow: hidden; white-space: nowrap; }
.bb-site .ticker-track { display: inline-block; animation: ticker-scroll 40s linear infinite; }
/* LED flicker */
@keyframes led-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
  52% { opacity: 1; }
  96% { opacity: 0.95; }
}
.bb-site .led { animation: led-flicker 3s infinite; }
/* Card hover tilt */
.bb-site .card-tilt { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.bb-site .card-tilt:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(157,76,192,0.3); border-color: var(--purple-4); }
/* Top nav */
.bb-site .nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 48px;
  background: rgba(14,5,22,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bb-site .nav-logo { display: inline-flex; align-items: center; }
.bb-site .nav-logo img { height: 56px; filter: drop-shadow(0 0 12px rgba(176,112,216,0.55)); }
.bb-site .nav-links { display: flex; gap: 32px; }
.bb-site .nav-links a { color: var(--text-mute); text-decoration: none; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; font-weight: 500; }
.bb-site .nav-links a:hover { color: var(--purple-chrome); }


/* ---- theme additions: hero logo sizing, grid classes, responsiveness ---- */
.bb-site .bb-hero-logo { width: min(74%, 700px); height: auto !important; max-width: 90%; max-height: 100%; object-fit: contain; }
.bb-site .jumbotron-wrap { position: relative; max-width: 1200px; margin: 80px auto 0; aspect-ratio: 16 / 7; }
.bb-site .bb-grid-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.bb-site .bb-grid-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 40px; }
.bb-site .bb-grid-replays { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; grid-template-rows: 280px 280px; }
.bb-site .bb-grid-replays .bb-hero-clip { grid-row: 1 / span 2; }
.bb-site .bb-grid-community { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; max-width: 1400px; margin: 0 auto; }

@media (max-width: 980px) {
  .bb-site .bb-pad { padding-left: 18px !important; padding-right: 18px !important; padding-top: 64px !important; padding-bottom: 64px !important; }
  .bb-site .bb-hero { min-height: auto !important; padding: 40px 16px 56px !important; }
  .bb-site .jumbotron-wrap { margin-top: 28px !important; }
  .bb-site .nav { padding: 14px 18px !important; }
  .bb-site .nav-links { display: none !important; }
  .bb-site .section-title { font-size: 34px !important; }
  .bb-site .bb-grid-modes { grid-template-columns: 1fr !important; }
  .bb-site .bb-grid-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .bb-site .bb-grid-replays { grid-template-columns: 1fr !important; grid-template-rows: auto !important; }
  .bb-site .bb-grid-replays > * { min-height: 220px !important; }
  .bb-site .bb-grid-replays .bb-hero-clip { grid-row: auto !important; }
  .bb-site .bb-grid-community { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  .bb-site *, .bb-site *::before, .bb-site *::after { animation: none !important; }
}

/* ---- mobile: let the jumbotron reflow instead of overlapping ---- */
@media (max-width: 760px) {
  .bb-site .jumbotron-wrap { aspect-ratio: auto !important; min-height: 0 !important; margin-top: 24px !important; }
  .bb-site .jumbotron { position: relative !important; inset: auto !important; padding: 56px 14px 18px !important; }
  .bb-site .bb-jt-top,
  .bb-site .bb-jt-center,
  .bb-site .bb-jt-bottom {
    position: static !important; inset: auto !important;
    top: auto !important; right: auto !important; bottom: auto !important; left: auto !important;
  }
  .bb-site .bb-jt-top { flex-wrap: wrap !important; gap: 8px !important; }
  .bb-site .bb-jt-center { padding: 20px 6px !important; }
  .bb-site .bb-jt-center > div:first-child { flex: none !important; }
  .bb-site .bb-jt-bottom { margin-top: 16px !important; flex-wrap: wrap !important; }
  .bb-site .bb-jt-bottom > div { min-width: 46% !important; }
  .bb-site .bb-hero-logo { width: 88% !important; }
  .bb-site .bb-hero-tagline { font-size: 13px !important; letter-spacing: 2px !important; }
  .bb-site .section-title { font-size: 30px !important; }
  .bb-site .bb-grid-stats { grid-template-columns: 1fr 1fr !important; }
  .bb-site .bb-hud-corner { display: none !important; }
}
