:root {
  --bg: #0b1220;
  --bg-soft: #16233b;
  --card: #ffffff;
  --text: #101828;
  --muted: #475467;
  --line: #dce2ec;
  --accent: #c1121f;
  --accent-dark: #8f0d16;
  --gold: #d4af37;
  --white: #ffffff;
  --shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Segoe UI, Tahoma, Arial, sans-serif;
  background: #eef2f6;
  color: var(--text);
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: #fff;
  color: #111;
  padding: .75rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.container { width: min(1180px, calc(100% - 1.5rem)); margin: 0 auto; }
.narrow { width: min(860px, calc(100% - 1.5rem)); }
.section { padding: 2rem 0 3rem; }
main, .site-main { display: block; min-width: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, .96);
  backdrop-filter: blur(12px);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
  flex: 1 1 auto;
}
.brand img { width: 54px; height: 54px; object-fit: contain; flex: 0 0 auto; }
.title { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.title strong {
  display: block;
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}
.title span {
  font-size: .85rem;
  color: rgba(255,255,255,.78);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.menu {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.menu a {
  color: rgba(255,255,255,.92);
  padding: .7rem .95rem;
  border-radius: 999px;
  font-weight: 600;
}
.menu a.active,
.menu a:hover { background: rgba(255,255,255,.12); }
.hamburger {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 12px;
  min-width: 46px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.top-banner {
  background: linear-gradient(90deg, #0f172a, #1e293b);
  border-bottom: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.top-banner-inner {
  width: min(1280px, calc(100% - 1rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 0;
}
.top-banner-label {
  flex: 0 0 auto;
  color: #f2c14e;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  padding: 0 .5rem;
}
.top-banner-marquee { position: relative; overflow: hidden; flex: 1 1 auto; min-width: 0; }
.top-banner-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  min-width: max-content;
  will-change: transform;
  animation: rsuBannerScroll 22s linear infinite;
}
.banner-set {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}
.banner-item {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: .6rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  white-space: nowrap;
  font-weight: 600;
}
.banner-item:hover { background: rgba(255,255,255,.12); }
@keyframes rsuBannerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero {
  background: linear-gradient(135deg, rgba(11,18,32,.94), rgba(22,35,59,.92));
  color: var(--white);
  padding: 5rem 0;
}
.hero .lede { color: rgba(255,255,255,.88); }
.eyebrow {
  display: inline-block;
  margin-bottom: .2rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 800;
}
.hero-card { max-width: 760px; }
.home-stack { display: grid; gap: 1.25rem; }
.hero-card-home { order: 1; }
.scores-card-bottom { order: 2; }
.home-section .container { display: grid; gap: 1.25rem; }
.home-hero {
  background: linear-gradient(135deg, #0e1729 0%, #16233b 100%);
  color: #fff;
  overflow: hidden;
}
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .9fr);
  gap: 1.25rem;
  align-items: stretch;
}
.home-title { color: #fff; margin-top: .15rem; margin-bottom: .45rem; line-height: 1.08; }
.home-lede { color: rgba(255,255,255,.94); max-width: 62ch; margin-top: 0; }
.home-hero-panel {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.hero-mini-card {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: .9rem 1rem;
}
.hero-mini-card .meta,
.hero-mini-card li { color: rgba(255,255,255,.92); }
.hero-mini-accent {
  background: linear-gradient(180deg, rgba(212,175,55,.18), rgba(255,255,255,.08));
}
.mini-kicker {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f2c14e;
  margin-bottom: .35rem;
}
.home-steps {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: .2rem;
}
.home-steps li { line-height: 1.45; }
.home-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.info-card { height: 100%; }
.schedule-shell { overflow: hidden; }
.schedule-title { margin: 0; }
.compact-list { margin: 0 0 .5rem 0; }
.hero-actions { margin-top: .8rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  min-width: 0;
}
.h1, h1 { margin: 0 0 .65rem; font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.1; }
.h2, h2 { margin: 0 0 .55rem; font-size: 1.4rem; }
.h3, h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.p, .meta, .muted, .lede { color: var(--muted); }
.info-card .p, .schedule-shell .meta { color: #344054; }
.meta { font-size: .92rem; }
.small { font-size: .92rem; }
.hr { height: 1px; background: var(--line); margin: 1rem 0; }
.list { margin: 0; padding-left: 1.2rem; }
.list li { margin: .35rem 0; }

.btnrow { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  background: #edf2f7;
  color: var(--text);
}
.btn.primary,
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn.primary:hover,
.btn-primary:hover { background: var(--accent-dark); }
.pulse {
  box-shadow: 0 0 0 rgba(193,18,31,.35);
  animation: pulseBtn 1.9s infinite;
}
@keyframes pulseBtn {
  0% { box-shadow: 0 0 0 0 rgba(193,18,31,.35); }
  70% { box-shadow: 0 0 0 14px rgba(193,18,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(193,18,31,0); }
}

.form { display: block; }
.grid,
.grid-2,
.grid-3,
.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col-12 { grid-column: span 12; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.full-width { grid-column: 1 / -1; }

label { display: block; font-weight: 700; margin-bottom: .35rem; }
.input,
input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: .75rem .85rem;
  background: #fff;
  color: var(--text);
}
input[readonly] { background: #f8fafc; }
.phone-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: .75rem;
}
.cc { text-align: center; font-weight: 700; }
.error,
.text-danger {
  color: #b42318;
  font-size: .95rem;
  display: block;
  margin-top: .3rem;
}
.alert { border-radius: 14px; padding: .9rem 1rem; margin-bottom: 1rem; font-weight: 700; }
.alert-success { background: #ecfdf3; color: #027a48; border: 1px solid #a6f4c5; }
.alert-error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.rules-card { background: #fbfcff; }

.live-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.wc-logo {
  width: 90px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
}
.live-scores { display: grid; gap: 1rem; }
 .match-date { color: #9a6700; font-size: .82rem; font-weight: 800; }
.match-main { display:flex; flex-direction:column; gap:6px; min-width:0; flex:1 1 auto; }
.live-updated { margin-top:.35rem; font-weight:600; color:#475467; }
.match {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.team {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  min-width: 0;
}
.team img { width: 28px; height: 28px; object-fit: contain; }
.score { margin-left: auto; font-size: 1.05rem; font-weight: 800; }
.detail { color: var(--muted); font-size: .92rem; text-align: right; max-width: 240px; }
.ticker {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
}
.ticker-track {
  display: inline-block;
  white-space: nowrap;
  padding: .9rem 1rem;
  min-width: max-content;
  animation: tickerScroll 34s linear infinite;
}
.ticker:hover .ticker-track,
.top-banner:hover .top-banner-track { animation-play-state: paused; }
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: .85rem .75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.table th { color: var(--muted); font-size: .92rem; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: .3rem .55rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #223;
  font-weight: 800;
}

.entry-card {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.entry-card-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.review-card { background: #fbfcff; }
.review-grid .input { background: #f8fafc; }

.stats-list { display: flex; flex-direction: column; gap: 12px; }
.stat-row {
  display: grid;
  grid-template-columns: minmax(140px,220px) 1fr 56px;
  gap: 12px;
  align-items: center;
}
.stat-team { font-weight: 700; }
.stat-bar-wrap { height: 14px; border-radius: 999px; background: rgba(11,18,32,.08); overflow: hidden; }
.stat-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(29,78,216,.95), rgba(242,193,78,.85));
  transition: width .5s ease;
}
.stat-count { text-align: right; font-weight: 800; }

.footer {
  background: #0b1220;
  color: #d7def0;
  padding: 1rem 0;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer a { color: #eaf0ff; }

@media (max-width: 1024px) {
  .col-4 { grid-column: span 6; }
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .container { width: min(100% - 1rem, 1180px); }
  .section { padding: 1.35rem 0 2rem; }

  .nav {
    position: relative;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    padding: .7rem 0;
  }
  .brand { padding-right: .25rem; }
  .brand img { width: 46px; height: 46px; }
  .title strong { font-size: .95rem; }
  .title span { font-size: .78rem; white-space: normal; }
  .hamburger { display: inline-flex; position: relative; z-index: 12; }
  .menu {
    position: absolute;
    top: calc(100% + .45rem);
    left: 0;
    right: 0;
    display: none;
    z-index: 11;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: .45rem;
    box-shadow: 0 16px 36px rgba(0,0,0,.28);
    flex-direction: column;
    align-items: stretch;
  }
  .menu.open { display: flex; }
  .menu a {
    display: block;
    width: 100%;
    padding: .95rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
  }

  .top-banner-inner { flex-wrap: wrap; gap: .65rem; padding: .65rem 0; }
  .top-banner-label { display: none; }
  .top-banner-marquee { width: 100%; }
  .top-banner-track { animation-duration: 18s; }
  .banner-item { padding: .55rem .8rem; font-size: .92rem; }

  .card,
  .hero-card-home,
  .scores-card-bottom { padding: 1rem; border-radius: 16px; }
  .btnrow { display: grid; grid-template-columns: 1fr; gap: .75rem; }
  .btnrow .btn,
  .btn { width: 100%; min-height: 48px; }
  .match { flex-direction: column; padding: .95rem; }
  .detail { text-align: left; max-width: none; }
  .live-head { align-items: flex-start; }
  .wc-logo { width: 72px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }

  .grid,
  .grid-2,
  .grid-3,
  .form-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-6,
  .col-4 { grid-column: span 6; }
  .phone-row { grid-template-columns: 96px 1fr; }
  .table { min-width: 520px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { width: calc(100% - .875rem); }
  .section { padding: 1rem 0 1.75rem; }
  .h1,
  h1 { font-size: 1.85rem; }
  .h2,
  h2 { font-size: 1.2rem; }
  .h3,
  h3 { font-size: 1rem; }
  .p,
  .meta,
  .small { font-size: .95rem; }
  .grid,
  .grid-2,
  .grid-3,
  .form-grid { grid-template-columns: 1fr; gap: .85rem; }
  .col-12,
  .col-6,
  .col-4,
  .full-width { grid-column: auto; }
  .phone-row { grid-template-columns: 1fr; }
  .entry-card { padding: 14px; }
  .entry-card-head { align-items: flex-start; }
  .stat-row { grid-template-columns: 1fr; }
  .stat-count { text-align: left; }
  input,
  select,
  textarea,
  button { font-size: 16px; }
  .top-banner-track { animation-duration: 18s; }
  .ticker-track { animation-duration: 28s; }
  .top-banner-marquee,
  .ticker { overflow: hidden; }
  .top-banner-track,
  .ticker-track { min-width: max-content; white-space: nowrap; }
  .home-hero,
  .schedule-shell,
  .info-card,
  .hero-mini-card { border-radius: 14px; }
  .home-title { font-size: 1.75rem; margin-bottom: .35rem; }
  .home-lede { font-size: .98rem; }
  .mini-kicker { margin-bottom: .25rem; }
}

/* Permanent home-page readability + live banner fixes */
body {
  background: linear-gradient(180deg, #eef3f8 0%, #f7f9fc 100%);
  color: #0f1728;
}
.home-section .container {
  gap: 1rem;
}
.home-hero {
  padding: 1.2rem;
  background: linear-gradient(135deg, #0a1426 0%, #132645 58%, #17335c 100%);
  border: 1px solid rgba(255,255,255,.08);
}
.home-hero-grid {
  gap: 1rem;
}
.home-title {
  margin: .1rem 0 .3rem;
  max-width: 12ch;
}
.home-lede {
  color: rgba(255,255,255,.96);
  margin-bottom: 0;
  line-height: 1.55;
}
.hero-actions {
  margin-top: .7rem;
}
.secondary-btn {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.secondary-btn:hover {
  background: rgba(255,255,255,.18);
}
.hero-mini-card {
  padding: .9rem 1rem;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.hero-mini-card .meta,
.hero-mini-card li,
.scoring-list li,
.scoring-note {
  color: #f8fbff;
}
.home-steps {
  gap: .15rem;
}
.home-steps li,
.scoring-list li {
  line-height: 1.4;
}
.scoring-card {
  background: linear-gradient(180deg, rgba(212,175,55,.24), rgba(255,255,255,.08));
}
.scoring-list strong {
  color: #ffd76a;
}
.info-card {
  background: #fff;
}
.info-card .p {
  color: #243447;
}
.schedule-shell {
  background: #ffffff;
  border: 1px solid #d7dfeb;
}
.schedule-title {
  color: #0f1728;
}
.schedule-meta,
.live-updated,
.schedule-shell .meta {
  color: #344054;
}
.live-head {
  align-items: center;
}
.live-head-copy {
  min-width: 0;
}
.live-scores {
  gap: .8rem;
}
.match {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border: 1px solid #d8e1ec;
  box-shadow: 0 6px 16px rgba(15,23,40,.05);
}
.match-date {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #8a5a00;
  background: #fff7dd;
  padding: .28rem .55rem;
  border-radius: 999px;
  width: fit-content;
}
.team {
  color: #101828;
}
.score {
  color: #b42318;
}
.detail {
  color: #475467;
  font-weight: 600;
}
.ticker {
  background: #091423;
  border: 1px solid rgba(255,255,255,.08);
}
.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  min-width: max-content;
  gap: 2rem;
  padding: .9rem 1rem;
  animation: tickerScroll 36s linear infinite;
}
.ticker-segment {
  white-space: nowrap;
  font-weight: 700;
  color: #f8fafc;
}
.top-banner {
  background: linear-gradient(90deg, #09101d 0%, #10213a 54%, #0b1627 100%);
}
.top-banner-inner {
  width: min(1280px, calc(100% - .75rem));
  padding: .55rem 0;
}
.top-banner-track {
  gap: 1.25rem;
  animation-duration: 28s;
}
.banner-set {
  gap: 1.25rem;
}
.image-banner-item {
  min-width: 230px;
  justify-content: flex-start;
  padding: .65rem 1rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
}
.image-banner-item img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  padding: 4px;
  flex: 0 0 auto;
}
.image-banner-item span {
  color: #fff;
  font-weight: 700;
}
@media (max-width: 900px) {
  .home-hero {
    padding: 1rem;
  }
  .home-title {
    font-size: 1.8rem;
    max-width: none;
  }
  .home-hero-grid,
  .home-info-grid {
    gap: .85rem;
  }
  .image-banner-item {
    min-width: 200px;
  }
  .top-banner-track {
    animation-duration: 22s;
  }
}
@media (max-width: 640px) {
  .home-section .container {
    gap: .85rem;
  }
  .home-hero {
    padding: .9rem;
    border-radius: 14px;
  }
  .home-title {
    font-size: 1.65rem;
    line-height: 1.08;
    margin-bottom: .25rem;
  }
  .home-lede {
    font-size: 1rem;
  }
  .hero-mini-card {
    padding: .8rem .85rem;
  }
  .image-banner-item {
    min-width: 184px;
    padding: .55rem .8rem;
  }
  .image-banner-item img {
    width: 34px;
    height: 34px;
  }
  .ticker-track {
    animation-duration: 24s;
    gap: 1.4rem;
  }
}


.contest-status-shell {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff7e6 0%, #fff 100%);
  border: 1px solid #f2cf7c;
  box-shadow: 0 10px 24px rgba(17,24,39,.06);
}
.contest-status-shell.contest-closed {
  background: linear-gradient(135deg, #fff1f2 0%, #fff 100%);
  border-color: #f4a3ae;
}
.contest-status-kicker {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #b54708;
  margin-bottom: .35rem;
}
.contest-status-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: .35rem;
}
.contest-status-copy {
  color: #344054;
  line-height: 1.5;
}
.contest-status-countdown {
  margin-top: .6rem;
  font-weight: 800;
  color: #c1121f;
}
.disabled-link {
  pointer-events: none;
  opacity: .65;
}
