/* Sky City Sports — Bold stadium energy (dark + light themes) */
:root {
  --bg: #07090F;
  --bg-2: #0E1320;
  --bg-3: #161D2E;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.18);
  --text: #F4F6FB;
  --text-dim: #9AA3B8;
  --text-faint: #5B6479;
  --accent: #D4FF3A;       /* neon lime */
  --accent-2: #FF3D71;     /* hot pink for accents */
  --accent-ink: #07090F;
  --nav-bg: rgba(7,9,15,0.7);
  --card-overlay: rgba(7,9,15,0.7);
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-glow: 0 0 0 1px rgba(212,255,58,0.35), 0 10px 40px -10px rgba(212,255,58,0.4);
  --font-display: "Anton", "Bebas Neue", "Impact", system-ui, sans-serif;
  --font-sans: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* Light theme — clean stadium / newspaper-sport */
html[data-theme="light"] {
  --bg: #F4F2EC;
  --bg-2: #FFFFFF;
  --bg-3: #EAE6DC;
  --line: rgba(7,9,15,0.10);
  --line-strong: rgba(7,9,15,0.22);
  --text: #0A0E1A;
  --text-dim: #5B6479;
  --text-faint: #8A93A8;
  --accent: #0A0E1A;       /* ink on light = primary */
  --accent-2: #FF6A1A;     /* signal orange */
  --accent-ink: #FFFFFF;
  --nav-bg: rgba(244,242,236,0.8);
  --card-overlay: rgba(255,255,255,0.85);
}
html[data-theme="light"] ::selection { background: var(--accent-2); color: #fff; }
html[data-theme="light"] .logo-mark { background: var(--accent-2); }
html[data-theme="light"] .logo-mark::after { background: var(--bg); }
html[data-theme="light"] .tcard-image .date-day { color: var(--accent-2); }
html[data-theme="light"] .tcard-prize { color: var(--accent-2); }
html[data-theme="light"] .hero-title .accent { color: var(--accent-2); }
html[data-theme="light"] .hero-title .stroke { -webkit-text-stroke: 2px var(--text); }
html[data-theme="light"] .hero-stat .num .accent { color: var(--accent-2); }
html[data-theme="light"] .eyebrow { color: var(--accent-2); }
html[data-theme="light"] .countdown .num { color: var(--accent-2); }
html[data-theme="light"] .sport-card img { filter: grayscale(0.4) brightness(0.85); }
html[data-theme="light"] .sport-card::after { background: linear-gradient(180deg, transparent 35%, rgba(10,14,26,0.85) 100%); }
html[data-theme="light"] .sport-card .info { color: #fff; }
html[data-theme="light"] .sport-card .num { color: var(--accent-2); }
html[data-theme="light"] .sport-card .arrow { color: #fff; border-color: rgba(255,255,255,0.5); }
html[data-theme="light"] .sport-card:hover .arrow { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }
html[data-theme="light"] .footer-mega { background: linear-gradient(180deg, var(--text) 0%, transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"] .cta-strip { background: var(--text); color: var(--bg); }
html[data-theme="light"] .cta-strip .btn-dark { background: var(--accent-2); color: #fff; }
html[data-theme="light"] .cta-strip-deco { -webkit-text-stroke: 2px rgba(255,255,255,0.18); }
html[data-theme="light"] .schedule-day .day-tag { color: var(--accent-2); }
html[data-theme="light"] .detail-meta-row .val.prize { color: var(--accent-2); }
html[data-theme="light"] .organizer-avatar { color: #fff; }
html[data-theme="light"] .level.active { color: var(--accent-2); border-color: var(--accent-2); }
html[data-theme="light"] .pick.active { background: rgba(230,57,70,0.06); border-color: var(--accent-2); }
html[data-theme="light"] .total .amt { color: var(--accent-2); }
html[data-theme="light"] .total .amt span { color: var(--text) !important; }
html[data-theme="light"] .btn-primary { background: var(--accent-2); color: #fff; }
html[data-theme="light"] .btn-primary:hover { background: #C92A36; }
html[data-theme="light"] .btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
html[data-theme="light"] .nav-links a.active::after { background: var(--accent-2); }
html[data-theme="light"] .grid-bg { background-image: linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px); }
html[data-theme="light"] .hero-bg::after {
  background:
    linear-gradient(90deg,
      var(--bg) 0%,
      var(--bg) 30%,
      rgba(244,242,236,0.75) 55%,
      rgba(244,242,236,0.35) 78%,
      transparent 100%),
    linear-gradient(180deg, transparent 55%, rgba(244,242,236,0.5) 100%);
}
html[data-theme="light"] .detail-hero-bg::after {
  background:
    linear-gradient(180deg, rgba(244,242,236,0.3) 0%, rgba(244,242,236,0.7) 60%, var(--bg) 100%),
    linear-gradient(90deg, rgba(244,242,236,0.6) 0%, transparent 60%);
}
html[data-theme="light"] .featured,
html[data-theme="light"] .register-panel { background: rgba(255,255,255,0.92); }
html[data-theme="light"] .tcard-image::after { background: linear-gradient(180deg, rgba(10,14,26,0.05) 40%, rgba(10,14,26,0.85) 100%); }
html[data-theme="light"] .tcard-image .sport-tag { background: rgba(10,14,26,0.7); color: #fff; border-color: transparent; }
html[data-theme="light"] .tcard-image .date-day { color: #FFE066; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Layout ---------- */
.container { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.88;
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 20px; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.logo-mark {
  width: 28px; height: 28px; position: relative;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.logo-mark::after {
  content: ""; position: absolute; inset: 6px;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.nav-links {
  display: flex; gap: 40px;
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-cta .btn-sm { padding: 12px 20px; font-size: 12px; letter-spacing: 0.14em; }
.nav-links a { color: var(--text-dim); transition: color .15s; position: relative; padding: 4px 0;}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--accent);
}
.nav-cta {
  display: flex; align-items: center; gap: 12px;
}

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
}
.nav-toggle .bar {
  position: relative;
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  transition: background .15s;
}
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--text);
  transition: transform .2s, top .2s;
}
.nav-toggle .bar::before { top: -6px; }
.nav-toggle .bar::after  { top: 6px; }
.nav-toggle.open .bar { background: transparent; }
.nav-toggle.open .bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open .bar::after  { top: 0; transform: rotate(-45deg); }
.nav-cta-mobile { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform .12s ease, background .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #E1FF66; }
.btn-ghost { color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 14px; font-size: 11px; }
.btn-arrow::after {
  content: "→"; font-size: 14px; transition: transform .15s;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- Tags / chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
}
.chip-live { color: var(--accent-2); border-color: rgba(255,61,113,0.4); }
.chip-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2);
  animation: pulse 1.4s ease-in-out infinite;
}
.chip-soon { color: var(--accent); border-color: rgba(212,255,58,0.4); }
.chip-open { color: #6FE3A1; border-color: rgba(111,227,161,0.4); }
.chip-closed { color: var(--text-faint); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ---------- Past archive ---------- */
.past-strip {
  display: flex; align-items: center; gap: 18px;
  margin: 0 0 24px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.past-year { font-family: var(--font-display); font-size: 56px; color: var(--text); line-height: 1; letter-spacing: 0; }
.past-line { flex: 1; height: 1px; background: var(--line-strong); }
.past-meta { color: var(--text-dim); }

.tcard.past .tcard-image img { filter: grayscale(0.5) brightness(0.85); }
.winner-name { font-family: var(--font-display); font-size: 22px; color: var(--text); line-height: 1; text-transform: uppercase; display: block; margin-top: 2px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  margin-top: 120px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer ul a { color: var(--text-dim); }
.footer ul a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.footer-mega {
  font-family: var(--font-display);
  font-size: clamp(140px, 22vw, 320px);
  line-height: 0.85;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(180deg, var(--text) 0%, transparent 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 60px;
  letter-spacing: -0.02em;
  user-select: none;
}

/* ---------- Section header ---------- */
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 32px; margin-bottom: 40px;
}
.section-head .title { font-size: clamp(48px, 6vw, 88px); }
.section-head .meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Card grid ---------- */
.card-grid { display: grid; gap: 24px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Tournament card ---------- */
.tcard {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s;
  display: flex; flex-direction: column;
}
.tcard:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.tcard-image {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
}
.tcard-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
  filter: saturate(1.1) contrast(1.05);
}
.tcard:hover .tcard-image img { transform: scale(1.05); }
.tcard-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,9,15,0.1) 40%, rgba(7,9,15,0.85) 100%);
}
.tcard-image .top-row {
  position: absolute; top: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 2;
}
.tcard-image .sport-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text);
  background: rgba(7,9,15,0.7);
  border: 1px solid var(--line-strong);
  padding: 5px 10px; border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.tcard-image .date-block {
  position: absolute; bottom: 14px; left: 14px;
  font-family: var(--font-display); z-index: 2;
  display: flex; align-items: baseline; gap: 8px; line-height: 1;
  text-transform: uppercase;
}
.tcard-image .date-day { font-size: 56px; color: var(--accent); }
.tcard-image .date-mo { font-size: 18px; letter-spacing: 0.1em; }
.tcard-body {
  padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1;
}
.tcard-body h3 {
  font-family: var(--font-display); font-size: 28px; line-height: 0.95;
  text-transform: uppercase; letter-spacing: 0.005em;
}
.tcard-meta {
  display: flex; gap: 14px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
}
.tcard-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tcard-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line);
}
.tcard-prize { font-family: var(--font-display); font-size: 22px; color: var(--accent); }
.tcard-prize-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); letter-spacing: 0.15em; text-transform: uppercase; display: block; margin-bottom: 2px; }

/* Feature variant — full-width horizontal spotlight card */
.tcard.feature { flex-direction: row; }
.tcard.feature .tcard-image {
  aspect-ratio: auto;
  flex: 0 0 50%;
  min-height: 380px;
  max-height: 440px;
}
.tcard.feature .tcard-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tcard.feature .tcard-body {
  flex: 1;
  padding: 28px 32px;
  gap: 14px;
  justify-content: center;
}
.tcard.feature .tcard-body h3 { font-size: 34px; line-height: 1; }
.tcard.feature .tcard-meta { font-size: 12px; gap: 18px; flex-wrap: wrap; }
.tcard.feature .winner-name { font-size: 30px; }
@media (max-width: 900px) {
  .tcard.feature { flex-direction: column; }
  .tcard.feature .tcard-image { flex: 0 0 auto; aspect-ratio: 16/10; min-height: auto; }
  .tcard.feature .tcard-body h3 { font-size: 30px; }
  .tcard.feature .winner-name { font-size: 24px; }
}

/* Showcase stack — upcoming + past sports */
.showcase-stack { display: flex; flex-direction: column; gap: 28px; }

/* Smaller feature variant for completed events */
.tcard.feature.small { max-width: 820px; margin: 0 auto; }
.tcard.feature.small .tcard-image { flex: 0 0 42%; min-height: 240px; }
.tcard.feature.small .tcard-body { padding: 28px 32px; gap: 16px; }
.tcard.feature.small .tcard-body h3 { font-size: 36px; }

/* Status pill — upcoming */
.status-pill {
  position: absolute; top: 20px; left: 20px; z-index: 3;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  padding: 8px 16px; border-radius: var(--radius);
  background: var(--accent-2); color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
}
.status-pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}

/* Brand logo inside feature card body (replaces h3) */
.card-body-logo {
  width: 200px; height: auto;
  display: block;
  margin: 6px 0 6px;
}
.card-tagline {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--accent-2);
  margin: 2px 0 4px;
}
.tcard.feature .feature-desc strong {
  color: var(--text);
  font-weight: 700;
}
@media (max-width: 900px) {
  .card-body-logo { width: 160px; }
}
@media (max-width: 600px) {
  .card-body-logo { width: 140px; }
}

/* Completion seal stamp */
.seal {
  position: absolute; top: 20px; right: 20px; z-index: 3;
  width: 130px; height: 130px;
  border: 2px dashed var(--accent-2);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--accent-2); background: rgba(255,255,255,0.95);
  font-family: var(--font-mono); text-transform: uppercase; text-align: center;
  transform: rotate(-8deg);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  padding: 10px;
}
.seal-top, .seal-bot { font-size: 9px; letter-spacing: 0.18em; }
.seal-mid {
  font-family: var(--font-display); font-size: 20px;
  letter-spacing: 0.04em; margin: 4px 0; line-height: 1;
  font-weight: 400;
}

/* Feature card description + stats */
.tcard.feature .feature-desc {
  color: var(--text-dim); font-size: 17px; line-height: 1.5; max-width: 480px;
}
.feature-stats {
  display: flex; flex-wrap: wrap; gap: 28px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.feature-stats > div { display: flex; flex-direction: column; gap: 4px; }
.feature-stats .label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint);
}
.feature-stats strong {
  font-family: var(--font-sans); font-weight: 600; font-size: 14px; color: var(--text);
}

@media (max-width: 900px) {
  .seal { width: 100px; height: 100px; padding: 6px; }
  .seal-mid { font-size: 16px; }
  .tcard.feature.small .tcard-body h3 { font-size: 28px; }
}

/* ---------- Stadium grid backdrop ---------- */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* ---------- Form fields ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-dim);
}
.field input, .field select, .field textarea {
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 14px 16px;
  font-family: var(--font-sans); font-size: 15px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  background: var(--bg-3);
}
.field input::placeholder { color: var(--text-faint); }

/* ---------- Page intro ---------- */
.page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.page-hero h1 { font-size: clamp(44px, 10vw, 160px); }
.page-hero p { color: var(--text-dim); max-width: 600px; margin-top: 24px; font-size: 18px; line-height: 1.5; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .section-head { flex-direction: column; align-items: start; }

  /* Mobile nav: hide inline links, show hamburger, hide inline register button */
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-primary { display: none; }
  .nav-cta-mobile { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 16px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: none; padding-top: 18px; color: var(--accent-2); font-weight: 700; }
  .nav-links a.active { color: var(--text); }
  .nav-links a.active::after { display: none; }
}
@media (max-width: 600px) {
  .card-grid.cols-3, .card-grid.cols-4, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .container { padding: 0 20px; }
  .nav-inner { height: 60px; }
  .logo { font-size: 16px; }
  .logo-mark { width: 24px; height: 24px; }
}
