:root,
html[data-theme="light"] {
  --bg: #ffffff;
  --text: #111111;
  --header: #ffffff;
  --banner: #0a0a0a;
  --button: #111111;
  --accent: #f5c518;
  --muted: #5e594f;
  --line: #e2ddd3;
  --card: #ffffff;
  --input-bg: #ffffff;
  --vod-bg: #ffffff;
  --rgl: #e10600;
  --heart-a: #3ad0e8;
  --heart-b: #ff4db8;
  --radius: 6px;
  --shadow: 0 16px 40px rgba(22, 21, 19, 0.08);
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Bebas Neue", "Arial Black", Impact, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1180px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0b0b0c;
  --text: #f4f1ea;
  --header: #0b0b0c;
  --banner: #000000;
  --button: #f5c518;
  --accent: #f5c518;
  --muted: #b7b3a8;
  --line: #2a2a2c;
  --card: #141416;
  --input-bg: #111111;
  --vod-bg: #0c0c0e;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}
.skip:focus {
  left: 8px;
  z-index: 80;
  background: var(--accent);
  color: #111;
  padding: 8px 12px;
}

.ticker {
  background: var(--banner);
  color: #f4f1ea;
  overflow: hidden;
  border-bottom: 1px solid #3a3208;
}
.ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: ticker 42s linear infinite;
  padding: 0.55rem 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d7c27a;
}
.ticker-track span { white-space: nowrap; }
.ticker-track b { color: var(--accent); font-weight: 500; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.promo {
  background: var(--accent);
  color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.promo a { text-decoration: underline; text-underline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 11, 12, 0.92);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
  line-height: 1;
}
.brand-mark {
  font-family: var(--display);
  font-size: 2.15rem;
  letter-spacing: 0.04em;
}
.brand-brack { color: var(--accent); }
.brand-sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  transform: translateY(-2px);
}
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}
.pixel-heart {
  width: 14px;
  height: 12px;
  display: inline-grid;
  grid-template-columns: repeat(7, 2px);
  grid-template-rows: repeat(6, 2px);
  margin-left: 2px;
}
.pixel-heart i:nth-child(1) { grid-area: 1 / 2 / 2 / 4; background: var(--heart-a); }
.pixel-heart i:nth-child(2) { grid-area: 1 / 5 / 2 / 7; background: var(--heart-b); }
.pixel-heart i:nth-child(3) { grid-area: 2 / 1 / 4 / 8; background: linear-gradient(90deg, var(--heart-a) 50%, var(--heart-b) 50%); }
.pixel-heart i:nth-child(4) { grid-area: 4 / 2 / 5 / 7; background: linear-gradient(90deg, var(--heart-a) 50%, var(--heart-b) 50%); }
.pixel-heart i:nth-child(5) { grid-area: 5 / 3 / 6 / 6; background: linear-gradient(90deg, var(--heart-a) 50%, var(--heart-b) 50%); }
.pixel-heart i:nth-child(6) { grid-area: 6 / 4 / 7 / 5; background: var(--heart-b); }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.nav a {
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 4px;
  color: var(--muted);
}
.nav a:hover,
.nav a.is-active { color: var(--text); background: rgba(245, 197, 24, 0.14); }
.nav-drop { position: relative; }
.nav-drop-btn {
  background: none;
  border: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  border-radius: 4px;
}
.nav-drop-btn:hover { color: var(--text); background: rgba(245, 197, 24, 0.14); }
.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--header);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.35rem;
  z-index: 50;
  box-shadow: var(--shadow);
}
.nav-drop:hover .nav-drop-menu,
.nav-drop.is-open .nav-drop-menu { display: grid; }
.nav-drop-menu a { display: block; }
/* Contact / CTA header link. Matches the other nav links by default
   (transparent, no box). Header & Footer can override via --nav-cta-*. */
.nav a.nav-cta,
.nav-cta {
  background: var(--nav-cta-bg, transparent);
  color: var(--nav-cta-text, #b7b3a8);
  border: var(--nav-cta-border, 0);
  box-shadow: none;
  margin-left: 0.4rem;
}
.nav a.nav-cta:hover,
.nav a.nav-cta.is-active,
.nav-cta:hover,
.nav-cta.is-active {
  color: var(--nav-cta-hover, #fff);
  background: var(--nav-cta-hover-bg, rgba(245, 197, 24, 0.14));
}
html[data-theme="light"] .nav a.nav-cta,
html[data-theme="light"] .nav-cta {
  color: var(--nav-cta-text, #111111);
  background: var(--nav-cta-bg, transparent);
  border: var(--nav-cta-border, 0);
  box-shadow: none;
}
html[data-theme="light"] .nav a.nav-cta:hover,
html[data-theme="light"] .nav a.nav-cta.is-active,
html[data-theme="light"] .nav-cta:hover,
html[data-theme="light"] .nav-cta.is-active {
  color: var(--nav-cta-hover, #111111);
  background: var(--nav-cta-hover-bg, rgba(245, 197, 24, 0.14));
}
.theme-toggle {
  margin-left: 0.35rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
html[data-theme="dark"] .theme-icon-moon { display: none; }
html[data-theme="light"] .theme-icon-sun { display: none; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.page-main { padding-bottom: 4rem; }

.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: #0a0a0a center/cover no-repeat;
  min-height: 100%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.55) 48%, rgba(11,11,12,0.96) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.45), transparent 58%);
}
.hero-inner { position: relative; z-index: 1; padding: 5.8rem 0 3.4rem; }
.kicker {
  font-family: var(--mono);
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 1rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: 0.01em;
  margin: 0 0 1.1rem;
  max-width: 14ch;
  white-space: pre-line;
}
.hero .lede {
  max-width: 38rem;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin: 0 0 1.8rem;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--accent); color: #111; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.45); color: #fff; }
.btn-outline:hover { background: #fff; color: #111; }
.btn-dark { background: var(--accent); color: #111; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }

.section { padding: 4.4rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}
.section h2 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 0.95;
}
.section .sub { color: var(--muted); max-width: 36rem; margin: 0.4rem 0 0; }

.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  min-height: 100%;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { border-color: var(--accent); }
.card-img {
  aspect-ratio: 16/10;
  min-height: 180px;
  background: #111 center/cover no-repeat;
  position: relative;
}
.is-placeholder { position: relative; }
.hero-bg.is-placeholder { position: absolute; }
.ph-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  background: rgba(11, 11, 12, 0.9);
  color: #f5c518;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  border-left: 3px solid #f5c518;
}
.hero-bg .ph-badge { left: 1.25rem; bottom: 1.25rem; }
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.sponsor-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: grid;
  gap: 0.45rem;
  align-content: start;
  text-decoration: none;
  min-height: 140px;
}
.sponsor-card:hover { border-color: var(--accent); }
.sponsor-card img {
  max-height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 0.3rem;
}
.sponsor-card strong { font-size: 1rem; }
.sponsor-card span { color: var(--muted); font-size: 0.88rem; }
.card-body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.card h3 { margin: 0; font-size: 1.22rem; }
.card p { margin: 0; color: var(--muted); flex: 1; }
.card .more { font-weight: 700; font-size: 0.88rem; color: var(--accent); }

.live-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 1rem; }
.twitch-frame {
  position: relative;
  aspect-ratio: 16/9;
  min-height: 240px;
  background: #0e0e10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.twitch-frame iframe,
.twitch-frame .offline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.offline {
  display: grid;
  place-items: center;
  text-align: center;
  color: #eee;
  padding: 1.5rem;
  background: #111 center/cover no-repeat;
}
.offline strong {
  font-family: var(--display);
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  display: block;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--rgl);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  width: max-content;
}
.side-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.side-panel h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.03em;
}
.vod-list {
  display: grid;
  gap: 0.45rem;
  max-height: 340px;
  overflow: auto;
}
.vod-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.65rem;
  align-items: center;
  text-align: left;
  background: var(--vod-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.35rem;
  cursor: pointer;
  color: inherit;
  width: 100%;
}
.vod-item:hover, .vod-item.is-on { border-color: var(--accent); }
.vod-item strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.25;
}
.vod-item small { display: block; color: var(--muted); font-size: 0.72rem; margin-top: 0.15rem; }
.vod-thumb {
  width: 88px;
  height: 50px;
  border-radius: 8px;
  background: #111 center/cover no-repeat;
}
.vod-live { background: var(--rgl); }

.league-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: center;
}
.league-photo {
  border-radius: var(--radius);
  min-height: 340px;
  background: #111 center/cover no-repeat;
  border: 1px solid var(--line);
}
.rgl-lockup { width: min(280px, 70%); height: auto; margin-bottom: 0.8rem; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.product:hover { border-color: var(--accent); }
.product-img {
  aspect-ratio: 1;
  min-height: 180px;
  background: #111 center/cover no-repeat;
  position: relative;
}
.product-body { padding: 0.95rem 1rem 1.1rem; }
.product h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.price { font-weight: 700; color: var(--accent); }
.tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.tag.fundraiser { color: #7ec8ff; font-weight: 700; }

.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.event-card {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}
.event-card:hover { border-color: var(--accent); }
.event-date {
  background: #111;
  color: #fff;
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.7rem 0.4rem;
}
.event-date .mon {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}
.event-date .day {
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1;
}
.event-type {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cal {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.cal th {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem;
  color: var(--muted);
}
.cal td {
  vertical-align: top;
  height: 7.2rem;
  width: 14.28%;
  border-top: 1px solid var(--line);
  padding: 0.45rem;
}
.cal .num { font-weight: 700; font-size: 0.85rem; }
.cal a {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  line-height: 1.25;
  background: rgba(245, 197, 24, 0.18);
  border-radius: 6px;
  padding: 0.2rem 0.35rem;
  text-decoration: none;
}
.cal .muted { color: #5c5c60; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; background: var(--card); }
table.data th,
table.data td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
table.data th {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.founders { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.4rem; align-items: start; }
.founders img { width: 100%; border-radius: var(--radius); object-fit: cover; max-height: 620px; }
.bio { margin: 0 0 1.2rem; }
.bio h3 { margin: 0 0 0.25rem; }

.form { display: grid; gap: 0.85rem; max-width: 34rem; }
label { font-size: 0.85rem; font-weight: 650; display: grid; gap: 0.35rem; }
input, textarea, select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: var(--input-bg);
  color: var(--text);
}
.hp { position: absolute; left: -9999px; }

.page-hero { padding: 2.6rem 0 0.4rem; }
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  margin: 0;
  line-height: 0.9;
  letter-spacing: 0.02em;
  white-space: pre-line;
}
.ridg-preview-banner {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #f5c518;
  color: #111;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.8rem;
}
.crumbs { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.6rem; }

.notice {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.notice.warn { border-color: var(--accent); color: var(--text); }

.site-footer {
  background: #050505;
  color: #eee;
  padding: 3rem 0 1.4rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: #ddd; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer h4 {
  margin: 0 0 0.7rem;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #222;
  color: #9a9a9a;
  font-size: 0.82rem;
}
.socials { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.socials a {
  border: 1px solid #333;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
}

.prose { max-width: 44rem; }
.prose h2 {
  font-family: var(--display);
  font-size: 2.1rem;
  letter-spacing: 0.03em;
  margin: 1.6rem 0 0.5rem;
}
.prose p { color: var(--muted); }
.split-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }

html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.92);
}
html[data-theme="light"] .btn-ghost:hover { background: #fff; }

@media (max-width: 960px) {
  .cards-3,
  .live-grid,
  .league-split,
  .founders,
  .product-grid,
  .event-grid,
  .foot-grid,
  .split-copy { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--header);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1rem 1rem;
    align-items: stretch;
  }
  .nav-drop-menu { position: static; box-shadow: none; border: 0; }
  .nav-toggle { display: block; }
  .header-inner { position: relative; }
  .cal td { height: auto; }
  .hero { min-height: 72vh; }
}
@media (max-width: 560px) {
  .product-grid,
  .event-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 5.4rem 1fr; }
}
