:root {
  --bg: #0d0e10;
  --surface: #1b1e24;
  --surface-2: #111318;
  --primary: #ffb800;
  --secondary: #00c2ff;
  --text: #ffffff;
  --muted: #949eae;
  --border: rgba(255, 255, 255, 0.55);
  --clip: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%, 0 22px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.02) 12%, transparent 12%, transparent 88%, rgba(255, 255, 255, 0.02) 88%),
    linear-gradient(60deg, rgba(255, 255, 255, 0.018) 12%, transparent 12%, transparent 88%, rgba(255, 255, 255, 0.018) 88%),
    radial-gradient(circle at 50% 0%, rgba(255, 184, 0, 0.14), transparent 30rem),
    var(--bg);
  background-size: 130px 130px, 130px 130px, auto, auto;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(13, 14, 16, 0.92);
  border-bottom: 2px solid var(--border);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-weight: 900;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.tournament-brand-logo {
  height: 42px;
  filter: drop-shadow(0 0 10px rgba(255, 184, 0, 0.42));
}

.rgb-brand-logo {
  height: 30px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.16));
}

.brand-x {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 800;
  border: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-color: var(--primary);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - 82px);
  padding: clamp(120px, 16vw, 220px) clamp(18px, 5vw, 72px) clamp(42px, 7vw, 82px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 14, 16, 0.18) 0%, rgba(13, 14, 16, 0.28) 36%, rgba(13, 14, 16, 0.7) 72%, rgba(13, 14, 16, 0.96) 100%),
    linear-gradient(90deg, rgba(255, 184, 0, 0.16), rgba(0, 194, 255, 0.13)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.035) 12%, transparent 12%, transparent 88%, rgba(255, 255, 255, 0.035) 88%),
    linear-gradient(60deg, rgba(255, 255, 255, 0.025) 12%, transparent 12%, transparent 88%, rgba(255, 255, 255, 0.025) 88%),
    radial-gradient(circle at 28% 24%, rgba(255, 184, 0, 0.22), transparent 28rem),
    radial-gradient(circle at 76% 32%, rgba(0, 194, 255, 0.2), transparent 30rem);
  background-size: auto, auto, 130px 130px, 130px 130px, auto, auto;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: min(28vh, 260px);
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.035) 12%, transparent 12%, transparent 88%, rgba(255, 255, 255, 0.035) 88%),
    linear-gradient(60deg, rgba(255, 255, 255, 0.025) 12%, transparent 12%, transparent 88%, rgba(255, 255, 255, 0.025) 88%),
    linear-gradient(90deg, rgba(255, 184, 0, 0.13), rgba(0, 194, 255, 0.11)),
    linear-gradient(180deg, transparent 0%, var(--bg) 94%);
  background-size: 130px 130px, 130px 130px, auto, auto;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(13, 14, 16, 0.18), rgba(13, 14, 16, 0.18)),
    url("https://img.youtube.com/vi/rK0_e5PxOhw/maxresdefault.jpg") center top / cover no-repeat,
    var(--bg);
}

.hero-video iframe {
  position: absolute;
  top: 44%;
  left: 50%;
  width: max(120vw, 213.34vh);
  height: max(67.5vw, 120vh);
  border: 0;
  transform: translate(-50%, -50%);
}

.hero-content,
.hero-side {
  position: relative;
  z-index: 1;
}

.hero h1,
.page-title h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-lockup {
  display: grid;
  grid-template-columns: minmax(360px, 0.62fr) minmax(420px, 1fr);
  grid-template-areas:
    "title logo"
    "actions logo";
  column-gap: clamp(54px, 8vw, 140px);
  row-gap: 22px;
  align-items: center;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding-top: 34vh;
}

.hero-lockup > div {
  grid-area: title;
}

.hero-lockup .hero-actions {
  grid-area: actions;
}

.hero-logo {
  grid-area: logo;
  display: block;
  width: min(560px, 36vw);
  align-self: center;
  justify-self: end;
  filter:
    drop-shadow(0 0 24px rgba(255, 184, 0, 0.42))
    drop-shadow(0 0 18px rgba(0, 194, 255, 0.28));
}

.hero-copy p,
.page-title p,
.feature-card p,
.rule-list p,
.info-panel li {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-top: 20px;
  font-size: 1.04rem;
}

.hero-copy p { margin: 0; }

.intro-section {
  margin-top: -1px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(255, 184, 0, 0.12), transparent 32rem),
    radial-gradient(circle at top right, rgba(0, 194, 255, 0.1), transparent 30rem);
}

.intro-copy h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.intro-side {
  display: grid;
  gap: 18px;
  align-self: stretch;
  align-content: center;
}

.tournament-logo {
  display: block;
  width: min(100%, 480px);
  margin: 0 auto;
  filter:
    drop-shadow(0 0 16px rgba(255, 184, 0, 0.36))
    drop-shadow(0 0 18px rgba(0, 194, 255, 0.22));
}

.eyebrow,
.panel-label {
  margin: 0 0 14px;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: var(--text);
  background: transparent;
  border: 2px solid var(--border);
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
}

.button.primary {
  color: #12100a;
  background: var(--primary);
  border-color: var(--primary);
}

.button.secondary { border-color: var(--secondary); }

.countdown-panel,
.feature-card,
.form-panel,
.info-panel,
.rule-list article {
  position: relative;
  overflow: hidden;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(165, 170, 178, 0.03) 32%, transparent 32%),
    linear-gradient(180deg, rgba(27, 30, 36, 0.98), rgba(12, 13, 16, 0.98));
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  clip-path: var(--clip);
}

.countdown-panel {
  border-color: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 0 0 1px rgba(255, 184, 0, 0.24);
}

.countdown-panel::after,
.feature-card::after,
.form-panel::after,
.info-panel::after,
.rule-list article::after {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  clip-path: polygon(50% 0, 100% 34%, 100% 100%, 0 100%, 0 34%);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.countdown div {
  padding: 18px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.countdown strong { display: block; color: var(--primary); font-size: 2.2rem; }
.countdown span { color: var(--muted); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; }

.section,
.page-shell {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2,
.feature-card h2,
.feature-card h3,
.rule-list h2 {
  margin: 0 0 12px;
  text-transform: uppercase;
}

.card-grid,
.contact-grid,
.rule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rule-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.conduct-section {
  margin-top: clamp(42px, 7vw, 76px);
}

.conduct-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(165, 170, 178, 0.03) 32%, transparent 32%),
    linear-gradient(180deg, rgba(27, 30, 36, 0.98), rgba(12, 13, 16, 0.98));
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  clip-path: var(--clip);
}

.conduct-panel h3 {
  margin: 34px 0 12px;
  color: var(--secondary);
  text-transform: uppercase;
}

.conduct-panel p,
.conduct-panel li {
  color: var(--muted);
  line-height: 1.75;
}

.conduct-panel p {
  margin: 0 0 14px;
}

.conduct-panel ul {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding-left: 22px;
}

.conduct-panel strong {
  color: var(--text);
}

.sponsor-section {
  background:
    linear-gradient(90deg, rgba(255, 184, 0, 0.08), rgba(0, 194, 255, 0.06)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.02) 12%, transparent 12%, transparent 88%, rgba(255, 255, 255, 0.02) 88%),
    linear-gradient(60deg, rgba(255, 255, 255, 0.018) 12%, transparent 12%, transparent 88%, rgba(255, 255, 255, 0.018) 88%);
  background-size: auto, 130px 130px, 130px 130px;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sponsor-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(165, 170, 178, 0.03) 32%, transparent 32%),
    linear-gradient(180deg, rgba(27, 30, 36, 0.98), rgba(12, 13, 16, 0.98));
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  clip-path: var(--clip);
}

.sponsor-card span {
  display: block;
  margin-bottom: 28px;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sponsor-card img {
  display: block;
  width: min(320px, 100%);
  height: 70px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 24px;
}

.sponsor-card p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.details-section {
  background: var(--bg);
}

.details-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.details-tabs button {
  min-height: 54px;
  padding: 0 24px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid var(--secondary);
  font: inherit;
  font-weight: 900;
}

.details-tabs button.active {
  color: var(--primary);
  border-color: var(--primary);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 5vw, 58px) 28px;
}

.detail-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: var(--text);
}

.detail-icon svg {
  display: block;
  width: 58px;
  height: 58px;
  overflow: visible;
}

.detail-item h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.detail-item p {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.25;
}

.schools-section {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.02) 12%, transparent 12%, transparent 88%, rgba(255, 255, 255, 0.02) 88%),
    linear-gradient(60deg, rgba(255, 255, 255, 0.018) 12%, transparent 12%, transparent 88%, rgba(255, 255, 255, 0.018) 88%),
    var(--bg);
  background-size: 130px 130px, 130px 130px, auto;
}

.school-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.school-card {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 230px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(165, 170, 178, 0.03) 32%, transparent 32%),
    linear-gradient(180deg, rgba(27, 30, 36, 0.98), rgba(12, 13, 16, 0.98));
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  clip-path: var(--clip);
}

.school-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 3rem;
  font-weight: 900;
  border: 2px dashed rgba(255, 255, 255, 0.18);
}

.school-logo-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 16px;
  background: rgba(13, 14, 16, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.14);
}

.school-logo-wrap img {
  display: block;
  width: 100%;
  max-width: 190px;
  max-height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 184, 0, 0.18));
}

.school-card span {
  position: relative;
  z-index: 1;
  justify-self: center;
  max-width: 100%;
  padding: 10px 22px;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--primary);
  font-weight: 900;
}

.bracket-section {
  background:
    linear-gradient(90deg, rgba(255, 184, 0, 0.07), rgba(0, 194, 255, 0.05)),
    var(--bg);
}

.bracket-board {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.86fr;
  gap: 18px;
  align-items: center;
}

.bracket-round {
  display: grid;
  gap: 16px;
}

.bracket-round h3 {
  margin: 0;
  color: var(--primary);
  text-transform: uppercase;
}

.bracket-match {
  display: grid;
  gap: 2px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(165, 170, 178, 0.03) 32%, transparent 32%),
    linear-gradient(180deg, rgba(27, 30, 36, 0.98), rgba(12, 13, 16, 0.98));
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  clip-path: var(--clip);
}

.bracket-match span {
  padding: 12px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 900;
}

.final-match {
  border-color: var(--secondary);
}

.bracket-embed {
  overflow: auto;
  min-height: min(980px, 86vh);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(165, 170, 178, 0.03) 32%, transparent 32%),
    linear-gradient(180deg, rgba(27, 30, 36, 0.98), rgba(12, 13, 16, 0.98));
  border: 2px solid var(--border);
  border-top-color: var(--primary);
}

.bracket-embed iframe {
  display: block;
  width: 100%;
  height: min(980px, 86vh);
  min-height: 780px;
  border: 0;
}

.registration-layout {
  display: grid;
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
  gap: 20px;
  margin-top: 26px;
}

.hubspot-form-panel {
  min-height: 520px;
}

.hs-form-frame {
  position: relative;
  z-index: 1;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--text);
  background: #0b0c0e;
  border: 2px solid rgba(255, 255, 255, 0.24);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 2px solid rgba(255, 255, 255, 0.18);
}

.site-footer a { color: var(--primary); font-weight: 800; }

.powered-by {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.powered-by img {
  display: block;
  width: min(220px, 42vw);
  height: auto;
  max-height: 36px;
  object-fit: contain;
}

@media (max-width: 820px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-footer { align-items: center; flex-direction: column; }
  .intro-section,
  .registration-layout,
  .card-grid,
  .sponsor-grid,
  .details-grid,
  .school-grid,
  .bracket-board,
  .contact-grid,
  .rule-list { grid-template-columns: 1fr; }
  .bracket-embed,
  .bracket-embed iframe { min-height: 720px; height: 78vh; }
  .detail-item { grid-template-columns: 58px minmax(0, 1fr); }
  .hero {
    min-height: calc(100vh - 104px);
    padding-top: 100px;
  }
  .hero-lockup {
    grid-template-areas:
      "logo"
      "title"
      "actions";
    grid-template-columns: 1fr;
    padding-top: 30vh;
  }
  .hero-lockup .hero-actions { grid-area: actions; }
  .hero-logo {
    width: min(260px, 62vw);
    justify-self: start;
  }
  .intro-side { align-self: auto; }
  .tournament-logo { max-width: 360px; }
  .powered-by { justify-content: center; }
  .tournament-brand-logo { height: 38px; }
  .rgb-brand-logo { height: 28px; }
}

/* Keep the supplied event lockup intact alongside the tournament branding. */
.brand {
  flex-wrap: wrap;
  max-width: 100%;
}

.site-header {
  flex-wrap: wrap;
}


.rage-footer-logo {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}


/* Event branding belongs with the registration countdown. */
.countdown-event {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 0 12px 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.rage-countdown-logo {
  display: block;
  width: min(190px, 100%);
  height: auto;
  object-fit: contain;
}

.countdown-panel {
  border-top: 3px solid #8b1df2;
  background: radial-gradient(ellipse at top, rgba(139, 29, 242, 0.12), transparent 65%),
    linear-gradient(145deg, #1a1c22, #0c0d10);
}

.countdown-panel > .panel-label {
  position: relative;
  text-align: center;
  margin: 0 0 20px;
  letter-spacing: 0.1em;
}

.countdown-panel > p:last-child {
  margin: 20px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.countdown-panel .countdown {
  position: relative;
  gap: 12px;
}

.countdown-panel .countdown div {
  text-align: center;
  min-width: 0;
  border-radius: 4px;
}

.countdown-panel .countdown strong {
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin-bottom: 6px;
}

@media (max-width: 480px) {
  .countdown-panel { padding: 24px; }
  .rage-countdown-logo { width: min(160px, 100%); }
}
