:root {
  --ink: #101820;
  --muted: rgba(16, 24, 32, 0.68);
  --paper: #f6efe2;
  --paper-strong: #fffaf0;
  --green: #0b6d54;
  --green-dark: #06392d;
  --blue: #174f9f;
  --red: #c92e33;
  --gold: #f3bd45;
  --line: rgba(16, 24, 32, 0.14);
  --shadow: 0 24px 60px rgba(16, 24, 32, 0.18);
  --radius: 8px;
  font-family: "Aptos", "Segoe UI", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(243, 189, 69, 0.12), transparent 28%),
    linear-gradient(180deg, #fffdf7 0%, #f4f1ea 42%, #e9f2ee 100%);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 70px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  position: relative;
  width: 42px;
  height: 52px;
  place-items: center;
  border-radius: 18px 18px 13px 13px;
  color: white;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.12) 18%, transparent 22%),
    conic-gradient(from 216deg, #d7373f 0 18%, #f3bd45 24% 41%, #13855f 49% 67%, #1454a6 74% 88%, #7d2d8f 94% 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -10px 20px rgba(16, 24, 32, 0.22),
    0 8px 18px rgba(16, 24, 32, 0.16);
  clip-path: polygon(20% 0, 80% 0, 88% 12%, 82% 42%, 66% 66%, 59% 84%, 72% 84%, 80% 100%, 20% 100%, 28% 84%, 41% 84%, 34% 66%, 18% 42%, 12% 12%);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 8px 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-top-color: rgba(255, 255, 255, 0.72);
  border-bottom-color: transparent;
  border-radius: 999px 999px 10px 10px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 12px -8px auto;
  height: 16px;
  border: 4px solid rgba(255, 255, 255, 0.42);
  border-inline-color: rgba(255, 255, 255, 0.5);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
  clip-path: none;
}

.brand-mark span {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(16, 24, 32, 0.32);
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: #101820;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.brand small {
  color: rgba(16, 24, 32, 0.62);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex: 0 1 auto;
  gap: 4px;
  align-items: center;
  max-width: min(100%, 760px);
  overflow-x: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-current {
  color: white;
  background: var(--ink);
}

.header-cta,
.primary-button,
.secondary-button,
.text-link,
.match-list a,
.detail-button,
.resource-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.header-cta,
.primary-button {
  color: white;
  background: var(--red);
  box-shadow: 0 14px 28px rgba(201, 46, 51, 0.24);
}

.secondary-button {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.15);
}

.text-link,
.match-list a,
.detail-button,
.resource-grid button {
  color: var(--ink);
  background: var(--gold);
}

.detail-button {
  border: 0;
}

.detail-button.subtle {
  min-height: 38px;
  margin-top: 16px;
  padding: 0 14px;
  color: white;
  background: var(--green-dark);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero {
  display: grid;
  min-height: clamp(520px, 72svh, 720px);
  align-items: center;
}

.hero picture {
  display: contents;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -3;
  object-fit: cover;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 57, 45, 0.98), rgba(23, 79, 159, 0.6) 50%, rgba(16, 24, 32, 0.2)),
    linear-gradient(0deg, rgba(16, 24, 32, 0.64), transparent 56%);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 70px) clamp(20px, 6vw, 72px);
}

.hero-content {
  width: min(820px, 100%);
  min-width: 0;
  max-width: 100%;
  padding: 0;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero h1 span {
  display: block;
}

.hero-copy,
.page-hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.match-card {
  width: min(320px, 100%);
  padding: 22px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(16, 24, 32, 0.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  position: static;
  width: 100%;
}

.match-card p,
.match-card small {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.match-card strong {
  display: block;
  margin: 10px 0;
  font-size: 26px;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: #2ce58a;
  box-shadow: 0 0 0 7px rgba(44, 229, 138, 0.16);
}

.ticker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  border-block: 1px solid var(--line);
  background: var(--paper-strong);
}

.ticker div,
.ticker a {
  display: block;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.ticker div:last-child,
.ticker a:last-child {
  border-right: 0;
}

.ticker strong {
  display: block;
  color: var(--green);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.ticker span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker a {
  transition: color 180ms ease, background 180ms ease;
}

.ticker a:hover {
  color: white;
  background: var(--green-dark);
}

.ticker a:hover strong {
  color: var(--gold);
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 6vw, 72px);
}

.control-room {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.3)),
    #edf3f0;
}

.dashboard-grid,
.match-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.dashboard-main,
.standings-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(16, 24, 32, 0.1);
}

.dashboard-main {
  padding: 18px;
}

.standings-card {
  padding: 20px;
}

.sticky-card {
  position: sticky;
  top: 96px;
}

.module-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-heading a {
  color: var(--red);
}

.module-heading small {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.feature-band {
  background: var(--paper-strong);
}

.prediction-section {
  color: white;
  background:
    linear-gradient(135deg, rgba(6, 57, 45, 0.96), rgba(23, 79, 159, 0.82)),
    var(--green-dark);
}

.prediction-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.prediction-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.prediction-card {
  min-height: 230px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 38px rgba(16, 24, 32, 0.2);
  backdrop-filter: blur(14px);
}

.prediction-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prediction-card h3 {
  margin: 14px 0 8px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.08;
}

.prediction-card strong {
  display: block;
  margin: 12px 0;
  color: var(--gold);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.prediction-card p {
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 940px;
}

.section-heading h2,
.image-story h2,
.ticket-form h2,
.safety-panel h2,
.planning-strip h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.08;
}

.section-heading p:not(.eyebrow),
.image-story p,
.ticket-form p,
.safety-panel li,
.planning-strip p {
  color: var(--muted);
  line-height: 1.72;
}

.feature-grid,
.news-grid,
.guide-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-card,
.news-grid article,
.news-grid a,
.guide-grid article,
.resource-grid article {
  min-height: 240px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover,
.news-grid a:hover,
.resource-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(16, 24, 32, 0.12);
}

.feature-card.highlight {
  color: white;
  background:
    linear-gradient(150deg, rgba(23, 79, 159, 0.58), transparent 58%),
    var(--green-dark);
}

.feature-card span,
.news-grid span,
.guide-grid span,
.match-list span,
.city-page-grid span {
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-card.highlight span {
  color: var(--gold);
}

.feature-card h3,
.news-grid h2,
.news-grid h3,
.guide-grid h2,
.resource-grid h2 {
  margin: 18px 0 12px;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.12;
}

.feature-card p,
.news-grid p,
.guide-grid p,
.resource-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-card.highlight p {
  color: rgba(255, 255, 255, 0.76);
}

.image-story {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1fr;
  gap: clamp(22px, 5vw, 54px);
  align-items: center;
  background: var(--ink);
  color: white;
}

.image-story img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
}

.image-story p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.72);
}

.news-section {
  background: var(--paper-strong);
}

.page-hero {
  display: grid;
  min-height: 480px;
  align-items: end;
  padding: clamp(80px, 10vw, 140px) clamp(20px, 6vw, 72px) clamp(48px, 7vw, 84px);
  color: white;
  background:
    linear-gradient(120deg, rgba(6, 57, 45, 0.94), rgba(23, 79, 159, 0.74)),
    var(--green-dark);
}

.compact-hero {
  background:
    linear-gradient(135deg, rgba(201, 46, 51, 0.72), rgba(6, 57, 45, 0.94)),
    image-set(url("./assets/hero-stadium.webp") type("image/webp"), url("./assets/hero-stadium.jpg") type("image/jpeg")) center/cover,
    var(--green-dark);
}

.teams-hero {
  background:
    linear-gradient(135deg, rgba(6, 57, 45, 0.92), rgba(23, 79, 159, 0.72)),
    image-set(url("./assets/fans-stand.webp") type("image/webp"), url("./assets/fans-stand.jpg") type("image/jpeg")) center/cover,
    var(--green-dark);
}

.data-note {
  display: inline-flex;
  width: fit-content;
  margin-top: 22px !important;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 14px !important;
  font-weight: 900;
  background: rgba(16, 24, 32, 0.22);
}

.cities-hero {
  background:
    linear-gradient(0deg, rgba(16, 24, 32, 0.78), rgba(16, 24, 32, 0.2)),
    image-set(url("./assets/city-newyork.webp") type("image/webp"), url("./assets/city-newyork.jpg") type("image/jpeg")) center/cover;
}

.ticket-hero {
  background:
    linear-gradient(135deg, rgba(201, 46, 51, 0.88), rgba(16, 24, 32, 0.8)),
    var(--red);
}

.news-hero,
.media-hero {
  background:
    linear-gradient(135deg, rgba(23, 79, 159, 0.88), rgba(6, 57, 45, 0.88)),
    var(--blue);
}

.fan-hero {
  background:
    linear-gradient(0deg, rgba(16, 24, 32, 0.75), rgba(16, 24, 32, 0.22)),
    image-set(url("./assets/fans-stand.webp") type("image/webp"), url("./assets/fans-stand.jpg") type("image/jpeg")) center/cover;
}

.schedule-toolbar,
.team-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.schedule-toolbar button,
.team-controls button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  background: white;
  cursor: pointer;
}

.schedule-toolbar button.is-active,
.team-controls button.is-active {
  color: white;
  background: var(--green-dark);
}

.match-list {
  display: grid;
  gap: 12px;
}

.match-list article {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(16, 24, 32, 0.07);
}

.match-list time {
  color: var(--green);
  font-size: 22px;
  font-weight: 950;
}

.match-list h2 {
  margin: 6px 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.12;
}

.compact-list article {
  grid-template-columns: 118px minmax(0, 1fr) auto;
}

.match-list p {
  margin: 0;
  color: var(--muted);
}

.api-status {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.74);
}

.api-status[data-state="ok"] {
  color: var(--green-dark);
  border-color: rgba(11, 109, 84, 0.28);
  background: rgba(234, 243, 238, 0.92);
}

.api-status[data-state="error"] {
  color: var(--red);
  border-color: rgba(201, 46, 51, 0.28);
  background: rgba(255, 245, 240, 0.92);
}

.score-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  margin: 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  color: white;
  font-size: 0.72em;
  line-height: 1;
  background: var(--green-dark);
}

.is-hidden {
  display: none !important;
}

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

.team-grid.xl {
  grid-template-columns: repeat(5, 1fr);
}

.team-grid article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(243, 189, 69, 0.1), transparent 52%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.team-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(16, 24, 32, 0.14);
}

.team-flag,
.team-badge {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  font-size: 30px;
  background: #f4f1ea;
  object-fit: contain;
}

.team-grid strong {
  display: block;
  font-size: 24px;
  line-height: 1.05;
}

.team-grid span {
  display: block;
  margin: 12px 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.team-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.standings-table th,
.standings-table td {
  padding: 11px 7px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
  text-align: left;
}

.standings-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.standings-table tr:last-child td {
  border-bottom: 0;
}

.table-team {
  font-weight: 900;
}

.city-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: var(--ink);
}

.city-page-grid.full {
  grid-template-columns: repeat(4, 1fr);
  background: transparent;
}

.city-page-grid article {
  overflow: hidden;
  border-radius: var(--radius);
  background: white;
}

.city-page-grid.full article {
  min-height: 300px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(23, 79, 159, 0.12), transparent 56%),
    white;
  box-shadow: 0 14px 34px rgba(16, 24, 32, 0.1);
}

.city-page-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.city-page-grid div {
  padding: 22px;
}

.city-card-body small {
  display: block;
  margin-top: 16px;
  color: var(--green);
  font-weight: 900;
  line-height: 1.45;
}

.city-page-grid h2 {
  margin: 10px 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.city-page-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.planning-strip {
  background: var(--gold);
}

.planning-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.planning-strip span {
  padding: 12px 16px;
  border: 1px solid rgba(16, 24, 32, 0.18);
  border-radius: 999px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.42);
}

.ticket-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) 1fr;
  gap: 18px;
  align-items: stretch;
}

.ticket-form,
.safety-panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.ticket-form label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-weight: 900;
}

.ticket-form input,
.ticket-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.ticket-form button {
  margin-top: 22px;
}

.fine-print {
  font-size: 13px;
}

.safety-panel {
  color: white;
  background:
    linear-gradient(145deg, rgba(23, 79, 159, 0.5), transparent 58%),
    var(--green-dark);
}

.safety-panel ul {
  display: grid;
  gap: 16px;
  margin: 22px 0 0;
  padding-left: 20px;
}

.safety-panel li {
  color: rgba(255, 255, 255, 0.78);
}

.news-grid.large {
  grid-template-columns: repeat(3, 1fr);
}

.guide-grid,
.resource-grid {
  grid-template-columns: repeat(3, 1fr);
}

.guide-grid.full {
  grid-template-columns: repeat(5, 1fr);
}

.guide-grid article:first-child {
  grid-column: span 2;
  color: white;
  background:
    linear-gradient(140deg, rgba(201, 46, 51, 0.5), transparent 58%),
    var(--green-dark);
}

.guide-grid article:first-child p {
  color: rgba(255, 255, 255, 0.74);
}

.resource-grid button {
  margin-top: 24px;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 24, 32, 0.62);
  backdrop-filter: blur(10px);
}

.detail-dialog {
  position: relative;
  width: min(680px, 100%);
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(243, 189, 69, 0.16), transparent 45%),
    #fffdf7;
  box-shadow: var(--shadow);
}

.detail-dialog h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
}

.detail-dialog p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  background: var(--ink);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 18px;
  align-items: center;
  padding: 28px clamp(20px, 6vw, 72px);
  color: white;
  background: var(--green-dark);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: min(360px, calc(100% - 40px));
  padding: 14px 18px;
  color: white;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}

@media (max-width: 1100px) {
  .site-header {
    flex-wrap: wrap;
    min-height: auto;
    padding: 14px 20px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  .feature-grid,
  .team-grid,
  .team-grid.xl,
  .news-grid,
  .news-grid.large,
  .guide-grid,
  .guide-grid.full,
  .resource-grid,
  .city-page-grid,
  .city-page-grid.full {
    grid-template-columns: repeat(2, 1fr);
  }

  .prediction-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .image-story,
  .ticket-layout,
  .dashboard-grid,
  .match-layout {
    grid-template-columns: 1fr;
  }

  .sticky-card {
    position: static;
  }
}

@media (max-width: 1280px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  }
}

@media (max-width: 980px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 420px;
  }
}

@media (max-width: 760px) {
  .header-cta {
    display: none;
  }

  .hero {
    min-height: 580px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    padding: 34px 20px 24px;
  }

  .hero-content {
    width: 100%;
    padding: 0;
  }

  .match-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 0;
  }

  .ticker,
  .feature-grid,
  .team-grid,
  .team-grid.xl,
  .news-grid,
  .news-grid.large,
  .guide-grid,
  .guide-grid.full,
  .resource-grid,
  .city-page-grid,
  .city-page-grid.full {
    grid-template-columns: 1fr;
  }

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

  .ticker div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ticker div:last-child {
    border-bottom: 0;
  }

  .match-list article {
    grid-template-columns: 1fr;
  }

  .standings-card {
    overflow-x: auto;
  }

  .guide-grid article:first-child {
    grid-column: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --shadow: 0 16px 34px rgba(16, 24, 32, 0.16);
  }

  .site-header {
    gap: 12px;
    padding: 10px 14px;
  }

  .brand {
    width: auto;
  }

  .brand-mark {
    width: 34px;
    height: 42px;
    font-size: 13px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .main-nav {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    gap: 2px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
  }

  .main-nav a {
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero-shell {
    padding: 28px 16px 22px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(32px, 9.8vw, 42px);
    line-height: 1.02;
  }

  .hero-copy,
  .page-hero p:not(.eyebrow) {
    max-width: 100%;
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.65;
    word-break: break-all;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
  }

  .primary-button,
  .secondary-button,
  .header-cta,
  .text-link,
  .match-list a,
  .detail-button,
  .resource-grid button {
    width: 100%;
    min-height: 46px;
  }

  .hero-panel,
  .match-card {
    max-width: 100%;
    padding: 18px;
  }

  .match-card strong {
    font-size: 26px;
    line-height: 1.15;
  }

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

  .ticker a,
  .ticker div {
    min-height: 118px;
    padding: 22px 10px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .ticker a:nth-child(2n),
  .ticker div:nth-child(2n) {
    border-right: 0;
  }

  .ticker a:nth-last-child(-n + 2),
  .ticker div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .ticker strong {
    font-size: 44px;
  }

  .ticker span {
    font-size: 12px;
  }

  .section {
    padding: 48px 16px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading h2,
  .image-story h2,
  .ticket-form h2,
  .safety-panel h2,
  .planning-strip h2 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .dashboard-main,
  .standings-card {
    padding: 14px;
  }

  .module-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .match-list article {
    gap: 14px;
    padding: 16px;
  }

  .match-list time {
    font-size: 18px;
  }

  .match-list h2 {
    font-size: 24px;
    line-height: 1.2;
  }

  .score-chip {
    min-width: 58px;
    margin: 6px 0;
    font-size: 18px;
  }

  .schedule-toolbar,
  .team-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .schedule-toolbar button,
  .team-controls button {
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
  }

  .api-status {
    font-size: 13px;
    line-height: 1.5;
  }

  .standings-table {
    min-width: 520px;
  }

  .team-grid article,
  .feature-card,
  .news-grid article,
  .news-grid a,
  .guide-grid article,
  .resource-grid article,
  .prediction-card,
  .city-page-grid.full article {
    min-height: auto;
    padding: 18px;
  }

  .team-grid strong,
  .feature-card h3,
  .news-grid h2,
  .news-grid h3,
  .guide-grid h2,
  .resource-grid h2 {
    font-size: 25px;
  }

  .prediction-card strong {
    font-size: 38px;
  }

  .page-hero {
    min-height: 360px;
    padding: 92px 16px 42px;
  }

  .image-story {
    gap: 20px;
  }

  .image-story img {
    min-height: 240px;
  }

  .planning-strip div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planning-strip span {
    text-align: center;
  }

  .detail-modal {
    align-items: end;
    padding: 10px;
  }

  .detail-dialog {
    max-height: 86vh;
    overflow-y: auto;
    padding: 28px 20px 22px;
  }

  .detail-dialog h2 {
    padding-right: 34px;
    font-size: 30px;
  }

  .site-footer {
    padding: 24px 16px;
  }
}

@media (max-width: 420px) {
  .prediction-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .page-hero p:not(.eyebrow) {
    font-size: 15px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 36px;
  }

  .ticker strong {
    font-size: 38px;
  }

  .match-card strong {
    font-size: 23px;
  }

  .schedule-toolbar,
  .team-controls,
  .planning-strip div {
    grid-template-columns: 1fr;
  }

  .ticker {
    grid-template-columns: 1fr;
  }

  .ticker a,
  .ticker div,
  .ticker a:nth-child(2n),
  .ticker div:nth-child(2n),
  .ticker a:nth-last-child(-n + 2),
  .ticker div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ticker a:last-child,
  .ticker div:last-child {
    border-bottom: 0;
  }
}

/* Codex black gold luxury theme START */
:root {
  --ink: #f8f4e8;
  --text: #f8f4e8;
  --muted: rgba(248,244,232,.72);
  --paper: #07100c;
  --line: rgba(226,183,86,.24);
  --gold: #e2b756;
  --gold-soft: rgba(226,183,86,.18);
  --green: #0d3a2c;
  --red: #b8913d;
  --shadow: 0 26px 70px rgba(0,0,0,.42);
}
html { background: #050806; }
body {
  color: #f8f4e8;
  background:
    radial-gradient(circle at 18% 8%, rgba(226,183,86,.16), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(99,179,181,.1), transparent 28%),
    linear-gradient(180deg, #050806 0%, #08110d 42%, #050806 100%);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(226,183,86,.08) 46% 47%, transparent 47% 100%),
    repeating-linear-gradient(90deg, transparent 0 88px, rgba(255,255,255,.024) 88px 89px),
    repeating-linear-gradient(0deg, transparent 0 96px, rgba(226,183,86,.018) 96px 97px);
}
.site-header {
  background: linear-gradient(180deg, rgba(7,14,10,.96), rgba(7,14,10,.84)) !important;
  border-bottom: 1px solid rgba(226,183,86,.24) !important;
  box-shadow: 0 20px 58px rgba(0,0,0,.34) !important;
  backdrop-filter: blur(12px);
}
.site-header::after {
  background: linear-gradient(90deg, transparent, rgba(226,183,86,.76), rgba(121,207,210,.3), transparent) !important;
}
.brand { color: #fff7dd !important; }
.brand-mark {
  background: radial-gradient(circle at 34% 28%, #fff 0 14%, #e2b756 15% 34%, #11523c 35% 100%) !important;
  box-shadow: 0 0 0 6px rgba(226,183,86,.12), 0 18px 40px rgba(0,0,0,.34), 0 0 26px rgba(226,183,86,.18) !important;
}
.main-nav {
  border-color: rgba(226,183,86,.24) !important;
  background: rgba(255,255,255,.055) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.main-nav a { color: rgba(248,244,232,.78) !important; }
.main-nav a:hover, .main-nav a.is-current {
  color: #0b140f !important;
  background: linear-gradient(135deg, #fff4c8, #e2b756) !important;
}
.header-cta, .primary-button {
  color: #0b140f !important;
  background: radial-gradient(circle at 82% 20%, rgba(121,207,210,.28), transparent 35%), linear-gradient(135deg, #fff4c8, #e2b756) !important;
  box-shadow: 0 16px 38px rgba(226,183,86,.22), inset 0 1px 0 rgba(255,255,255,.72) !important;
}
.secondary-button, .detail-button, .match-list a, .text-link {
  color: #f8f4e8 !important;
  border-color: rgba(226,183,86,.26) !important;
  background: rgba(255,255,255,.08) !important;
}
.hero, .page-hero, .section, .feature-band, .control-room, .prediction-section {
  position: relative;
  z-index: 1;
}
.hero-overlay {
  background: linear-gradient(90deg, rgba(5,8,6,.92), rgba(5,8,6,.72) 46%, rgba(5,8,6,.36)) !important;
}
.hero-content, .hero-panel, .match-card, .standings-card, .dashboard-main, .feature-card, .prediction-card, .team-card, .city-card, .resource-card, .article-card, .entry-card {
  border-color: rgba(226,183,86,.22) !important;
  background: linear-gradient(145deg, rgba(13,26,20,.86), rgba(5,12,9,.78)) !important;
  color: #f8f4e8 !important;
  box-shadow: 0 22px 62px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.page-hero {
  color: #f8f4e8 !important;
  background: radial-gradient(circle at 82% 18%, rgba(226,183,86,.16), transparent 36%), linear-gradient(135deg, rgba(10,29,21,.94), rgba(5,10,7,.94)) !important;
  border-bottom: 1px solid rgba(226,183,86,.2);
}
.eyebrow, .entry-card span, .module-heading span, .v42-kicker, .v42-module-keywords { color: #e2b756 !important; }
h1, h2, h3, strong { letter-spacing: 0; }
.section-heading p, .hero-copy, .page-hero p, .feature-card p, .entry-card p, .v42-copy, .v42-section-head p { color: rgba(248,244,232,.72) !important; }
.ticker { background: #070f0b !important; border-color: rgba(226,183,86,.22) !important; }
.ticker a { color: #f8f4e8 !important; border-color: rgba(226,183,86,.16) !important; }
.ticker strong { color: #e2b756 !important; }
.entry-strip, .v42-panel-strip, .v42-visual-section, .v42-process-panel {
  background: radial-gradient(circle at 88% 16%, rgba(121,207,210,.12), transparent 34%), linear-gradient(155deg, #06100b, #10241b 58%, #050806) !important;
}
.v42-module-card {
  color: #f8f4e8 !important;
  border-color: rgba(226,183,86,.2) !important;
  background: linear-gradient(145deg, rgba(16,35,26,.92), rgba(7,14,10,.88)) !important;
}
.v42-module-card p { color: rgba(248,244,232,.7) !important; }
.v42-card-action { color: #0b140f !important; background: linear-gradient(135deg, #fff4c8, #e2b756) !important; }
.v42-stat-card, .v42-status-row, .v42-signal-title, .v42-signal-item, .v42-process-item {
  border-color: rgba(226,183,86,.2) !important;
  background: rgba(255,255,255,.065) !important;
}
.site-footer {
  color: rgba(248,244,232,.68) !important;
  background: linear-gradient(180deg, rgba(5,8,6,.92), #050806) !important;
  border-top: 1px solid rgba(226,183,86,.2) !important;
}
.site-footer a { color: #e2b756 !important; }
.global-hamburger, .hamburger { animation: luxeFloat 4.6s ease-in-out infinite; }
.global-bottom-access, .bottom-access { animation: luxeRise .46s ease-out both; }
.feature-card, .entry-card, .v42-module-card, .v42-visual-card, .match-card, .standings-card { transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.feature-card:hover, .entry-card:hover, .v42-module-card:hover, .v42-visual-card:hover, .match-card:hover, .standings-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226,183,86,.42) !important;
  box-shadow: 0 28px 72px rgba(0,0,0,.44), 0 0 26px rgba(226,183,86,.1) !important;
}
.lux-reveal { opacity: 0; transform: translateY(18px); transition: opacity .58s ease, transform .58s ease; transition-delay: var(--lux-delay, 0ms); }
.lux-reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes luxeFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes luxeRise { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 860px) {
  body { padding-bottom: 132px; }
  .site-header { padding-right: 74px !important; }
  .hero, .page-hero { background-attachment: scroll !important; }
  .global-bottom-access, .bottom-access { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .global-hamburger, .hamburger, .global-bottom-access, .bottom-access { animation: none !important; }
  .lux-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
/* Codex black gold luxury theme END */

/* Codex mobile blank fix START */
@media (max-width: 860px) {
  html, body { min-height: 100%; }
  body { background-color: #050806; padding-bottom: 118px; }
  .lux-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero { min-height: auto !important; padding-top: 0 !important; }
  .hero-shell { min-height: auto !important; padding-top: 24px !important; padding-bottom: 18px !important; gap: 16px !important; }
  .hero-content { min-height: auto !important; }
  .hero-panel { min-height: 132px !important; }
  .page-hero { min-height: 260px !important; padding-top: 82px !important; padding-bottom: 30px !important; align-items: end !important; }
  .section, .v42-module-section, .v42-visual-section, .v42-process-section { padding-top: 34px !important; padding-bottom: 34px !important; }
  .control-room, .prediction-section, .feature-band { padding-top: 30px !important; padding-bottom: 30px !important; }
  .ticker { margin: 0 !important; }
  .entry-strip { padding-top: 32px !important; padding-bottom: 32px !important; }
  .v42-panel-strip { padding-top: 30px !important; padding-bottom: 30px !important; }
  .v42-visual-card, .v42-visual-card:first-child { min-height: 220px !important; }
  .match-layout, .dashboard-grid, .feature-grid, .prediction-grid, .entry-grid, .v42-module-grid, .v42-visual-grid, .v42-signal-panel { gap: 12px !important; }
  .prediction-grid:empty, .match-list:empty, .resource-grid:empty, .team-grid:empty, .city-grid:empty, .article-grid:empty { display: none !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; }
  .prediction-section:has(.prediction-grid:empty) { display: none !important; }
  .control-room:has(#homeMatchList:empty) { display: none !important; }
  .section-heading, .v42-section-head { margin-bottom: 16px !important; }
  .section-heading.compact { margin-bottom: 14px !important; }
  .site-footer { padding-bottom: 132px !important; }
}
@media (max-width: 420px) {
  .hero-shell { padding-left: 14px !important; padding-right: 14px !important; }
  .hero h1, .page-hero h1 { font-size: clamp(28px, 9vw, 34px) !important; line-height: 1.08 !important; }
  .hero-copy, .page-hero p:not(.eyebrow) { font-size: 14px !important; line-height: 1.62 !important; }
  .section, .v42-module-section, .v42-visual-section, .v42-process-section { padding-top: 28px !important; padding-bottom: 28px !important; }
}
/* Codex mobile blank fix END */