:root {
  --bg: #f4efe7;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: #ffffff;
  --ink: #121212;
  --muted: #615f59;
  --line: rgba(18, 18, 18, 0.08);
  --accent: #d94700;
  --accent-2: #ffb100;
  --shadow: 0 24px 80px rgba(23, 18, 10, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(217, 71, 0, 0.16), transparent 28%),
    radial-gradient(circle at right 20%, rgba(255, 177, 0, 0.16), transparent 24%),
    linear-gradient(180deg, #f7f1e8 0%, #ece5dc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 18, 18, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 18, 18, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 92%);
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(32, 24, 10, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a,
.header-action,
.team-link {
  text-decoration: none;
  color: inherit;
}

.site-nav a {
  position: relative;
  font-weight: 800;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.button,
.header-action,
.team-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-action,
.button-primary,
.team-link {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 26px rgba(18, 18, 18, 0.16);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.header-action:hover,
.button:hover,
.team-link:hover {
  transform: translateY(-2px);
}

.hero,
.page-hero {
  display: grid;
  gap: 28px;
}

.hero {
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  padding: 60px 0 28px;
}

.page-hero,
.inner-page {
  padding-top: 40px;
}

.eyebrow,
.section-tag {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
.section-heading h2,
.registration-copy h2,
.detail-card h2 {
  margin: 0;
  font-family: "Russo One", sans-serif;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  max-width: 11ch;
}

.page-hero h1 {
  max-width: 14ch;
}

.hero-text,
.tour-note,
.partner-card p,
.team-card p,
.registration-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.hero-stats,
.team-detail-stats {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-stats li,
.team-detail-stats article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.hero-stats strong,
.team-detail-stats strong,
.scorer-card strong {
  display: block;
  font-family: "Russo One", sans-serif;
  font-size: 2rem;
}

.hero-panel {
  position: relative;
}

.score-card,
.table-card,
.tour-card,
.team-card,
.scorer-card,
.partner-card,
.registration-card,
.detail-card,
.team-detail-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.score-card {
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(140deg, rgba(18, 18, 18, 0.98) 0%, rgba(42, 31, 14, 0.95) 100%);
  color: #fff;
}

.live-pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-crest-wrap {
  display: grid;
  place-items: center;
  padding: 24px 0 8px;
}

.hero-crest {
  width: min(320px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
}

.score-note {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.76);
}

.section {
  padding: 32px 0;
}

.section-alt,
.section-accent {
  padding: 42px 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.45);
}

.section-accent {
  background:
    linear-gradient(135deg, rgba(217, 71, 0, 0.11), rgba(255, 177, 0, 0.13)),
    rgba(255, 255, 255, 0.58);
}

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

.section-heading h2,
.registration-copy h2,
.detail-card h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

.table-card,
.registration-card,
.detail-card,
.team-detail-hero {
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
}

.standings-table th,
.standings-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
  text-align: left;
}

.standings-table th {
  font-family: "Russo One", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tour-list,
.match-list,
.team-grid,
.scorer-cards,
.partners-grid,
.schedule-grid,
.schedule-match-list,
.preview-grid {
  display: grid;
  gap: 18px;
}

.tour-card {
  padding: 22px;
  background: var(--surface);
}

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

.schedule-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.schedule-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.schedule-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-card h2 {
  font-size: 1.4rem;
  line-height: 1.1;
}

.schedule-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.08);
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.schedule-badge-live {
  background: rgba(217, 71, 0, 0.12);
  color: var(--accent);
}

.schedule-match-row {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
}

.schedule-match-row span,
.schedule-match-row small {
  color: var(--muted);
}

.schedule-match-row strong {
  font-size: 1.02rem;
}

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

.preview-card {
  display: grid;
  gap: 14px;
}

.preview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.preview-time {
  color: var(--ink);
  font-weight: 800;
}

.preview-card strong {
  color: var(--accent);
  font-size: 1.02rem;
}

.preview-final {
  text-align: center;
}

.preview-final p {
  margin: 14px 0 0;
  color: var(--muted);
}

.tour-card-header h3,
.team-card h3,
.scorer-card h3,
.partner-card h3,
.detail-card h2 {
  margin: 0 0 8px;
}

.tour-card-header p {
  margin: 0;
  color: var(--muted);
}

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

.match-card,
.team-scorer-row {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
}

.match-card-top,
.match-card-body,
.match-card-bottom,
.team-card-head,
.team-detail-top,
.team-scorer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.match-card-top strong {
  font-family: "Russo One", sans-serif;
}

.match-card-body {
  margin-top: 14px;
  align-items: flex-start;
  flex-direction: column;
}

.match-card-bottom {
  margin-top: 14px;
  color: var(--muted);
}

.team-card,
.partner-card,
.scorer-card {
  padding: 24px;
  background: var(--surface);
}

.team-card-link {
  display: grid;
  gap: 16px;
}

.team-logo,
.team-detail-logo,
.scorer-team-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 20px;
  object-fit: contain;
}

.team-logo {
  width: 68px;
  height: 68px;
  padding: 8px;
}

.scorer-team-logo {
  width: 62px;
  height: 62px;
  padding: 8px;
}

.team-detail-logo {
  width: 120px;
  height: 120px;
  padding: 14px;
}

.team-logo--fallback,
.team-detail-logo--fallback,
.scorer-team-logo--fallback {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: "Russo One", sans-serif;
}

.scorer-cards,
.partners-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scorer-card span {
  color: var(--muted);
}

.partner-card img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  margin-bottom: 16px;
}

.registration-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.registration-form {
  display: grid;
  gap: 14px;
}

.registration-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.registration-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: 16px;
  background: #fff8f2;
  font: inherit;
}

.registration-form input:focus {
  outline: 2px solid rgba(217, 71, 0, 0.24);
  border-color: var(--accent);
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-weight: 700;
  color: var(--accent);
}

.team-detail-hero {
  display: grid;
  gap: 20px;
  margin-bottom: 22px;
}

.team-detail-top {
  justify-content: flex-start;
  align-items: center;
}

.team-detail-copy h1 {
  max-width: none;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.team-detail-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.detail-card + .detail-card {
  margin-top: 22px;
}

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

@media (max-width: 1040px) {
  .hero,
  .registration-card,
  .scorer-cards,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .match-list,
  .team-grid,
  .schedule-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .site-header {
    border-radius: 28px;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    justify-content: center;
  }

  .header-action {
    width: 100%;
  }

  h1 {
    max-width: none;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero-actions,
  .team-detail-top,
  .match-card-top,
  .team-scorer-row,
  .schedule-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-detail-stats {
    grid-template-columns: 1fr;
  }

  .standings-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
