:root {
  --bg: #02040a;
  --bg-elev: rgba(8, 12, 26, 0.94);
  --bg-card: rgba(8, 12, 28, 0.97);
  --bg-card-hover: rgba(12, 20, 42, 0.99);
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #ffffff;
  --muted: #b7c7e2;
  --lime: #b6ff00;
  --lime-2: #6dff3b;
  --cyan: #00cfff;
  --blue: #009bff;
  --magenta: #ff009c;
  --danger: #ff5d78;
  --ok: #6dff3b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --display: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --neon: "Orbitron", "Rajdhani", system-ui, sans-serif;
  --rgb: linear-gradient(120deg, #ff009c, #009bff, #00cfff, #b6ff00, #ff009c);
  --rgb-border: linear-gradient(135deg, #ff009c, #009bff 28%, #00cfff 55%, #b6ff00 78%, #ff009c);
  --focus: #b6ff00;
  --glow-m: rgba(255, 0, 156, 0.55);
  --glow-b: rgba(0, 155, 255, 0.55);
  --glow-c: rgba(0, 207, 255, 0.5);
  --glow-g: rgba(182, 255, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(980px 520px at 6% -10%, rgba(255, 0, 156, 0.34), transparent 58%),
    radial-gradient(920px 500px at 98% -4%, rgba(0, 155, 255, 0.36), transparent 55%),
    radial-gradient(860px 460px at 50% 108%, rgba(0, 207, 255, 0.22), transparent 58%),
    radial-gradient(720px 380px at 78% 62%, rgba(182, 255, 0, 0.18), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #010309 0%, var(--bg) 40%, #04070f 100%);
  background-size: auto, auto, auto, auto, 44px 44px, 44px 44px, auto;
  background-attachment: fixed;
  animation: neon-drift 14s ease-in-out infinite alternate;
}
body::before {
  content: "";
  position: fixed;
  inset: -20% -10%;
  pointer-events: none;
  z-index: 0;
  background:
    conic-gradient(from 0deg at 30% 20%, rgba(255,0,156,0.12), rgba(0,155,255,0.1), rgba(0,207,255,0.1), rgba(182,255,0,0.1), rgba(255,0,156,0.12));
  filter: blur(60px);
  opacity: 0.55;
  animation: rgb-orbit 28s linear infinite;
}
body > * { position: relative; z-index: 1; }
@keyframes neon-drift {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  }
  to {
    background-position: 40px -30px, -50px 20px, 20px 40px, -30px -20px, 0 0, 0 0, 0 0;
  }
}

img { max-width: 100%; height: auto; display: block; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--lime); }

h1, h2, h3, .brand-title, .footer-brand, .panel-title, .hero-title {
  font-family: var(--display);
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--lime);
  color: #06100a;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

@keyframes border-shift {
  to { background-position: 220% 0; }
}
@keyframes rgb-shift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
@keyframes rgb-glow-pulse {
  from { box-shadow: 0 0 18px rgba(255,0,156,0.28), 0 0 34px rgba(0,155,255,0.22); }
  to { box-shadow: 0 0 26px rgba(0,207,255,0.4), 0 0 42px rgba(182,255,0,0.28); }
}
@keyframes pulse {
  50% { opacity: 0.35; }
}
@keyframes rgb-orbit {
  to { transform: rotate(360deg); }
}
@keyframes sheen-sweep {
  0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  18% { opacity: 0.55; }
  42% { opacity: 0.2; }
  100% { transform: translateX(140%) skewX(-18deg); opacity: 0; }
}
@keyframes rgb-border-glow {
  0% { box-shadow: 0 0 0 1px rgba(255,0,156,0.35), 0 0 22px rgba(255,0,156,0.22), 0 12px 30px rgba(0,0,0,0.35); }
  33% { box-shadow: 0 0 0 1px rgba(0,155,255,0.45), 0 0 28px rgba(0,155,255,0.28), 0 12px 30px rgba(0,0,0,0.35); }
  66% { box-shadow: 0 0 0 1px rgba(182,255,0,0.4), 0 0 28px rgba(0,207,255,0.26), 0 12px 30px rgba(0,0,0,0.35); }
  100% { box-shadow: 0 0 0 1px rgba(255,0,156,0.35), 0 0 22px rgba(255,0,156,0.22), 0 12px 30px rgba(0,0,0,0.35); }
}

.wrap {
  width: min(1160px, calc(100% - 1.5rem));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(1.35);
  background: rgba(2, 4, 10, 0.9);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #ff009c, #009bff, #00cfff, #b6ff00, #ff009c) 1;
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.7rem 0 0.35rem;
}
.header-nav-row {
  padding: 0 0 0.75rem;
}
.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  width: 100%;
}
.brand-logo-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #000;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 86% 100%, 0 100%);
  box-shadow: 0 0 0 1px rgba(182, 255, 0, 0.45), 0 0 18px rgba(0, 155, 255, 0.25);
}
.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  background: #000;
  display: block;
}
.brand-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(0.95rem, 2.5vw, 1.35rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
  max-width: none;
  text-shadow: 0 0 22px rgba(0, 155, 255, 0.45), 0 0 8px rgba(182, 255, 0, 0.2);
}
.primary-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  width: 100%;
  padding: 0.35rem;
  border-radius: 14px;
  background: rgba(4, 8, 18, 0.96);
  border: 1px solid transparent;
  background-image: linear-gradient(rgba(4,8,18,0.96), rgba(4,8,18,0.96)), var(--rgb-border);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: auto, 240% 240%;
  animation: border-shift 10s linear infinite;
  box-shadow: inset 0 0 0 1px rgba(0, 207, 255, 0.14), 0 0 28px rgba(255, 0, 156, 0.16);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.nav-btn {
  font-family: var(--neon);
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0.62rem 0.55rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  transition: color 0.18s, background 0.18s, box-shadow 0.18s, border-color 0.18s;
  white-space: normal;
  line-height: 1.15;
  text-align: center;
}
.nav-btn:hover {
  color: var(--text);
  border-color: rgba(0, 207, 255, 0.45);
  background:
    linear-gradient(rgba(8,12,24,0.9), rgba(8,12,24,0.9)) padding-box,
    var(--rgb-border) border-box;
  background-size: auto, 220% 220%;
  animation: border-shift 8s linear infinite;
  box-shadow: 0 0 16px rgba(0, 155, 255, 0.2);
}
.nav-btn.is-active {
  color: #061018;
  background-image: linear-gradient(120deg, #ff009c, #009bff 35%, #00cfff 65%, #b6ff00);
  background-size: 220% 100%;
  box-shadow: 0 0 28px rgba(0, 207, 255, 0.55), 0 0 40px rgba(182, 255, 0, 0.3);
  animation: border-shift 8s linear infinite, rgb-glow-pulse 3.2s ease-in-out infinite alternate;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 0 0.35rem;
}
.hero-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem 1.6rem;
  align-items: center;
  padding: 1.35rem 1.25rem 1.3rem;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  background:
    linear-gradient(145deg, rgba(8, 14, 30, 0.96), rgba(4, 8, 18, 0.94)) padding-box,
    var(--rgb-border) border-box;
  border: 2px solid transparent;
  border-width: 3px;
  background-size: auto, 280% 280%;
  animation: border-shift 9s linear infinite, rgb-border-glow 8s ease-in-out infinite;
  box-shadow: var(--shadow), 0 0 64px rgba(0, 155, 255, 0.32), 0 0 88px rgba(255, 0, 156, 0.22);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    repeating-linear-gradient(-32deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 14px),
    radial-gradient(circle at 16% 22%, rgba(0, 155, 255, 0.3), transparent 42%),
    radial-gradient(circle at 84% 18%, rgba(255, 0, 156, 0.24), transparent 40%),
    radial-gradient(circle at 72% 88%, rgba(182, 255, 0, 0.16), transparent 46%),
    conic-gradient(from 160deg at 50% 50%, rgba(255,0,156,0.07), rgba(0,155,255,0.07), rgba(182,255,0,0.07), rgba(255,0,156,0.07));
  animation: neon-drift 18s ease-in-out infinite alternate, rgb-shift 22s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.hero-panel > * { position: relative; z-index: 1; }
.hero-crest-col,
.hero-copy-col { position: relative; z-index: 1; }

.hero-crest-wrap {
  position: relative;
  width: clamp(170px, 24vw, 220px);
  height: clamp(170px, 24vw, 220px);
  border-radius: 4px;
  background: #000;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  box-shadow: 0 0 0 1px rgba(182, 255, 0, 0.4), 0 0 28px rgba(0, 155, 255, 0.28);
}
.hero-crest {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
  object-position: center;
  background: #000;
  display: block;
}

.hero-title {
  margin: 0 0 0.7rem;
  display: grid;
  gap: 0.35rem;
}
.hero-line-main {
  font-family: var(--neon);
  font-size: clamp(1.55rem, 5vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--rgb);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: border-shift 8s linear infinite;
  filter: drop-shadow(0 0 22px rgba(0, 155, 255, 0.45)) drop-shadow(0 0 10px rgba(255, 0, 156, 0.35));
}
.hero-line-sub {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.6vw, 1.55rem);
  color: var(--text);
  letter-spacing: 0.01em;
  text-shadow: 0 0 20px rgba(255, 0, 156, 0.18);
}
.hero-lead {
  margin: 0 0 0.9rem;
  color: var(--muted);
  max-width: 54ch;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
}
.hero-features {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.hero-features li {
  margin: 0;
  font-family: var(--neon);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8f4ff;
  padding: 0.42rem 0.75rem;
  background: rgba(4, 8, 18, 0.85);
  border: 1px solid transparent;
  background-image:
    linear-gradient(rgba(4, 8, 18, 0.92), rgba(4, 8, 18, 0.92)),
    var(--rgb-border);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  box-shadow: 0 0 14px rgba(0, 207, 255, 0.12);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-note {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.05rem;
  backdrop-filter: blur(10px);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(59, 157, 255, 0.08);
}
.hero-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: var(--rgb-border);
  background-size: 200% 200%;
}
.hero-note p {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  padding-left: 0.7rem;
}
.hero-note p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }

/* ---------- Views / panels ---------- */
.view { display: none; padding: 0.85rem 0 2.5rem; }
.view.is-visible { display: block; }

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.75rem;
}
.panel-title {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: var(--neon);
  background: var(--rgb);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: border-shift 8s linear infinite;
  filter: drop-shadow(0 0 16px rgba(0,155,255,0.35));
}
.panel-title::selection { color: #fff; background: rgba(0,155,255,0.35); -webkit-text-fill-color: #fff; }
.panel-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 56ch;
}

.toolbar {
  background: var(--bg-elev);
  border: 1px solid transparent;
  background-image:
    linear-gradient(rgba(10,16,32,0.92), rgba(10,16,32,0.92)),
    var(--rgb-border);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: auto, 240% 240%;
  animation: border-shift 9s linear infinite;
  border-radius: 4px;
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(12px);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  box-shadow: inset 0 0 0 1px rgba(0, 207, 255, 0.14), 0 10px 28px rgba(0,0,0,0.28), 0 0 28px rgba(255,0,156,0.12);
}
.toolbar-block + .toolbar-block { margin-top: 0.85rem; }
.toolbar-label {
  margin: 0 0 0.45rem;
  font-family: var(--neon);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.league-tabs,
.card-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip {
  border: 1px solid var(--line);
  background: rgba(16, 24, 42, 0.85);
  color: var(--text);
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, color 0.15s;
}
.chip:hover { border-color: rgba(46, 247, 255, 0.45); color: #fff; }
.chip.is-active {
  color: #061018;
  border-color: transparent;
  background: linear-gradient(120deg, #ff009c, #009bff 40%, #00cfff 70%, #b6ff00);
  background-size: 220% 100%;
  animation: border-shift 8s linear infinite;
  box-shadow: 0 0 20px rgba(0, 155, 255, 0.55), 0 0 28px rgba(182, 255, 0, 0.25);
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: end;
}
.field {
  display: grid;
  gap: 0.28rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.field.grow { flex: 1 1 220px; }
.field-action { min-width: max-content; }
.field-spacer { visibility: hidden; }
.field input,
.field select {
  background: rgba(5, 8, 18, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.58rem 0.72rem;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 2.55rem;
}
.field input:hover,
.field select:hover { border-color: rgba(59, 157, 255, 0.45); }

.field input:focus,
.field select:focus,
.btn:focus-visible,
.chip:focus-visible,
.nav-btn:focus-visible,
[data-jump-view]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn {
  border: 1px solid var(--line);
  background: rgba(16, 24, 42, 0.95);
  border-radius: 11px;
  padding: 0.62rem 1rem;
  cursor: pointer;
  font-weight: 700;
  min-height: 2.55rem;
  transition: filter 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.btn:hover { background: var(--bg-card-hover); border-color: rgba(59, 157, 255, 0.35); }
.btn-primary {
  background: linear-gradient(120deg, #ff009c, #009bff 45%, #00cfff 75%, #b6ff00);
  background-size: 200% 100%;
  border: none;
  color: #061018;
  font-family: var(--neon);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 0 26px rgba(255, 0, 156, 0.42), 0 0 40px rgba(0, 207, 255, 0.25);
  animation: border-shift 7s linear infinite;
}
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-secondary {
  background: rgba(6, 10, 22, 0.92);
  border: 1px solid transparent;
  background-image: linear-gradient(rgba(6,10,22,0.94), rgba(6,10,22,0.94)), var(--rgb-border);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: auto, 220% 220%;
  animation: border-shift 10s linear infinite;
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 207, 255, 0.18);
}
.btn-secondary:hover {
  border-color: rgba(125, 255, 74, 0.55);
  color: var(--lime);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(59, 157, 255, 0.4);
  color: var(--cyan);
}
.btn-ghost:hover { border-color: var(--cyan); color: #fff; }
.btn-danger {
  background: rgba(255, 93, 120, 0.12);
  border-color: rgba(255, 93, 120, 0.42);
  color: #ffb0bd;
}
.btn-danger:hover { background: rgba(255, 93, 120, 0.2); }

.status-line {
  margin: 0.8rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(5, 8, 18, 0.45);
  border: 1px dashed rgba(255,255,255,0.08);
  min-height: 1.2em;
}

/* ---------- Grids / cards ---------- */
.games-grid,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 0.9rem;
}

.game-card,
.card-tile,
.empty-state,
.error-state {
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 1rem 1.05rem;
  background-image: linear-gradient(var(--bg-card), var(--bg-card)), var(--rgb-border);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: auto, 260% 260%;
  animation: border-shift 10s linear infinite, rgb-border-glow 9s ease-in-out infinite;
  box-shadow: 0 12px 30px rgba(0,0,0,0.32), 0 0 24px rgba(0,155,255,0.12);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.game-card::before,
.card-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #ff009c, #009bff, #00cfff, #b6ff00, #ff009c);
  background-size: 220% 100%;
  animation: border-shift 7s linear infinite;
  opacity: 1;
  z-index: 2;
}
.game-card::after,
.card-tile::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
  animation: sheen-sweep 7.5s ease-in-out infinite;
  z-index: 1;
}
.game-card[data-status="live"]::before {
  background: linear-gradient(90deg, transparent, rgba(255,93,120,0.85), transparent);
  opacity: 1;
}
.game-card[data-status="final"]::before {
  background: linear-gradient(90deg, transparent, rgba(158,172,198,0.55), transparent);
}
.game-card:hover,
.card-tile:hover {
  background-image: linear-gradient(var(--bg-card-hover), var(--bg-card-hover)), var(--rgb-border);
  box-shadow: 0 0 0 1px rgba(0, 207, 255, 0.5), 0 0 34px rgba(255, 0, 156, 0.22), 0 16px 36px rgba(0,0,0,0.4);
  transform: translateY(-3px);
}

.game-top {
  display: flex;
  justify-content: space-between;
  gap: 0.55rem;
  align-items: start;
  margin-bottom: 0.8rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--display);
}
.badge-live {
  background: rgba(255, 93, 120, 0.16);
  color: #ffc0cb;
  border-color: rgba(255, 93, 120, 0.5);
  box-shadow: 0 0 14px rgba(255, 93, 120, 0.22);
}
.badge-live::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
  animation: pulse 1.4s ease-in-out infinite;
}
.badge-upcoming {
  background: rgba(59, 157, 255, 0.14);
  color: #b4dcff;
  border-color: rgba(59, 157, 255, 0.42);
}
.badge-final {
  background: rgba(147, 160, 184, 0.14);
  color: #c5cfe0;
  border-color: rgba(147, 160, 184, 0.3);
}

.meta-right {
  text-align: right;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.team-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.4rem 0;
}
.team-row + .team-row { border-top: 1px solid rgba(255,255,255,0.06); }
.team-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}
.team-name {
  font-weight: 800;
  color: #fff;
  font-size: 1.02rem;
  text-shadow: 0 0 10px rgba(0,155,255,0.15);
}
.team-score {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  min-width: 1.5ch;
  text-align: right;
}
.team-row.is-winner .team-name,
.team-row.is-winner .team-score {
  color: var(--lime);
  text-shadow: 0 0 12px rgba(125, 255, 74, 0.28);
}

.game-foot {
  margin-top: 0.85rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: grid;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: baseline;
}
.meta-label {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.odds-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.odds-pill {
  background: rgba(5, 8, 18, 0.72);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.5rem 0.45rem;
  text-align: center;
}
.odds-pill strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1.25;
  word-break: break-word;
}
.odds-pill span {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.2rem;
  font-weight: 700;
}
.provider {
  font-size: 0.75rem;
  color: var(--cyan);
}
.game-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.card-tile {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.9rem;
  align-items: start;
}
.card-art {
  width: 96px;
  aspect-ratio: 63 / 88;
  object-fit: cover;
  border-radius: 10px;
  background: #0a101c;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}
.card-art.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.4rem;
}
.card-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--text);
}
.card-meta { margin: 0; font-size: 0.84rem; color: var(--muted); }
.price-line {
  margin: 0.45rem 0;
  font-weight: 750;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}
.note-price {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.5rem;
}
.note-price input {
  width: 7rem;
  background: rgba(5, 8, 18, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
}

.empty-state,
.error-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.2rem 1.2rem;
  color: var(--text);
}
.empty-state::before,
.error-state::before { display: none; }
.empty-state p,
.error-state p { margin: 0 0 0.45rem; }
.empty-state .muted,
.error-state .muted { margin-bottom: 0.75rem; }
.error-state {
  border-color: rgba(255, 93, 120, 0.4);
  color: #ffc2c8;
  background: rgba(40, 14, 22, 0.55);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(125,255,74,0.4), rgba(59,157,255,0.5), rgba(255,61,240,0.4)) 1;
  background: rgba(3, 5, 12, 0.94);
  padding: 1.5rem 0 1.15rem;
  margin-top: 0.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1.1rem 1.4rem;
  font-size: 0.88rem;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}
.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  background: #000;
}
.footer-brand {
  margin: 0;
  font-size: 1.05rem;
}
.footer-blurb { margin: 0; line-height: 1.45; }
.site-footer h3 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}
.site-footer ul {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--muted);
}
.site-footer li + li { margin-top: 0.3rem; }
.footer-copy {
  margin: 1rem auto 0;
  font-size: 0.82rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}



/* ---------- Visual strip / gallery ---------- */
.visual-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0.35rem 0 1rem;
}
.visual-card {
  margin: 0;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    var(--rgb-border) border-box;
  border: 1px solid transparent;
  background-size: auto, 220% 220%;
  animation: border-shift 8s linear infinite, rgb-border-glow 10s ease-in-out infinite;
  border-radius: var(--radius);
  overflow: hidden;
  border-width: 2px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.3), 0 0 34px rgba(0, 155, 255, 0.18);
}
.visual-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: #000;
}
.visual-card-wide img { aspect-ratio: 16 / 10; max-height: 280px; width: 100%; object-fit: cover; }
.visual-card figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.55rem 0.75rem 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.visual-card figcaption span {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}
.visual-card figcaption a { color: var(--muted); }
.visual-card figcaption a:hover { color: var(--lime); }
.firearms-visual { margin: 0 0 1rem; max-width: 420px; }
.dealer-finder { margin-bottom: 1rem; }

@media (max-width: 720px) {
  .visual-strip { grid-template-columns: 1fr; }
  .firearms-visual { max-width: none; }
}

/* ---------- Laws directory ---------- */
.laws-directory { margin-bottom: 1rem; }
.laws-subhead {
  margin: 1rem 0 0.55rem;
  font-size: 1.05rem;
  color: var(--lime);
}
.state-picker-row { margin-bottom: 0.75rem; }
.laws-details {
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  background: rgba(5, 8, 18, 0.45);
}
.laws-details + .laws-details { margin-top: 0.5rem; }
.laws-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--cyan);
  font-family: var(--display);
  letter-spacing: 0.04em;
}
.laws-link-list {
  margin: 0.65rem 0 0.25rem;
  padding-left: 1.1rem;
  columns: 2;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.laws-link-list li { break-inside: avoid; margin: 0.28rem 0; }
@media (max-width: 720px) {
  .laws-link-list { columns: 1; }
}

/* ---------- Firearms education ---------- */
.firearms-banner {
  background: rgba(8, 12, 26, 0.96);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  background-image: linear-gradient(rgba(8,12,26,0.96), rgba(8,12,26,0.96)), var(--rgb-border);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: auto, 240% 240%;
  animation: border-shift 12s linear infinite;
  box-shadow: 0 0 24px rgba(0, 207, 255, 0.14);
}
.firearms-banner p { margin: 0; font-size: 0.9rem; color: var(--text); }
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.edu-card {
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  background-image: linear-gradient(var(--bg-card), var(--bg-card)), var(--rgb-border);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: auto, 240% 240%;
  animation: border-shift 11s linear infinite;
  box-shadow: 0 12px 28px rgba(0,0,0,0.3), 0 0 22px rgba(0,207,255,0.12);
}
.edu-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  color: #fff;
  background: var(--rgb);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: border-shift 9s linear infinite;
}
.edu-card ol,
.edu-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text);
  font-size: 0.92rem;
}
.edu-card li + li { margin-top: 0.4rem; }
.firearms-resources .resource-intro { margin: 0 0 0.75rem; font-size: 0.88rem; }
.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.resource-list .btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  line-height: 1.3;
  min-height: auto;
  padding: 0.75rem 1rem;
}
.resource-note { margin: 0.85rem 0 0; font-size: 0.82rem; }


/* ---------- Live sports news ---------- */
.live-news {
  margin-bottom: 1.25rem;
  padding: 1rem 1.05rem 1.05rem;
  background: var(--bg-elev);
  border: 1px solid transparent;
  background-image:
    linear-gradient(rgba(10,16,32,0.94), rgba(10,16,32,0.94)),
    var(--rgb-border);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: auto, 240% 240%;
  animation: border-shift 10s linear infinite;
  border-radius: 4px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  box-shadow: inset 0 0 0 1px rgba(0, 207, 255, 0.12), 0 10px 28px rgba(0,0,0,0.28), 0 0 24px rgba(255,0,156,0.1);
}
.live-news-head { margin-bottom: 0.85rem; }
.live-news-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.35rem;
}
.live-news-badge { flex: 0 0 auto; }
.live-news-title-row .panel-title { margin: 0; }
.live-news-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  margin-top: 0.65rem;
}
.live-news-controls .status-line { margin: 0; flex: 1 1 220px; }
.news-list {
  display: grid;
  gap: 0.7rem;
}
.news-item {
  padding: 0.8rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}
.news-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}
.news-league {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b4dcff;
}
.news-source {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.news-headline {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.25;
  font-family: var(--display);
  text-transform: none;
  letter-spacing: 0.01em;
}
.news-headline a {
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 14px rgba(0,155,255,0.28);
}
.news-headline a:hover,
.news-headline a:focus-visible {
  color: #b6ff00;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.news-desc {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.4;
}
.news-meta {
  margin: 0;
  font-size: 0.78rem;
}
.news-credit {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
}
.news-warning {
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 93, 120, 0.4);
  background: rgba(255, 93, 120, 0.1);
  color: #ffc0cb;
  font-size: 0.84rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-panel { grid-template-columns: 1fr; text-align: left; }
  .hero-crest-col { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .odds-block { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap { width: min(1160px, calc(100% - 1.1rem)); }
  .header-top { padding: 0.55rem 0 0.25rem; }
  .header-nav-row { padding: 0 0 0.65rem; }
  .brand-title { font-size: 0.98rem; }
  .primary-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 12px;
  }
  .nav-btn { font-size: 0.78rem; padding: 0.58rem 0.35rem; }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-crest-wrap {
    width: 170px;
    height: 170px;
  }
  .hero-line-main { font-size: clamp(1.45rem, 7.2vw, 2rem); }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .card-tile { grid-template-columns: 72px 1fr; }
  .card-art { width: 72px; }
  .brand-logo-wrap,
  .brand-logo { width: 52px; height: 52px; border-radius: 12px; }
  .brand-title { font-size: 0.9rem; max-width: none; }
  .header-inner { overflow: hidden; }
  .hero-pills li { font-size: 0.72rem; }
  .field { flex: 1 1 140px; }
  .team-score { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  body { background-attachment: scroll; }
  body::before { display: none; }
  .panel-title,
  .grad-phrase,
  .hero-line-main,
  .edu-card h3 {
    background: none;
    color: var(--cyan);
    -webkit-text-fill-color: var(--cyan);
    filter: none;
  }
  .live-news { animation: none; }
  .game-card:hover,
  .card-tile:hover,
  .btn-primary:hover { transform: none; }
}

@media (max-width: 720px) {
  body::before { opacity: 0.35; filter: blur(48px); }
  .game-card::after,
  .card-tile::after { animation-duration: 10s; }
}
