:root {
  --blue-950: #071b34;
  --blue-900: #0c2848;
  --blue-800: #12385f;
  --green-600: #16854f;
  --green-100: #e8f7ef;
  --orange-500: #f28c28;
  --orange-100: #fff0de;
  --gray-950: #18212b;
  --gray-700: #4a5563;
  --gray-500: #7b8492;
  --gray-200: #e6eaf0;
  --gray-100: #f5f7fa;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(7, 27, 52, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--gray-100);
  color: var(--gray-950);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-950);
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue-900);
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-700);
  font-size: 0.95rem;
}

.desktop-nav a,
.mobile-menu a {
  border-radius: var(--radius);
  padding: 10px 12px;
}

.desktop-nav a:hover,
.mobile-menu a:hover {
  background: var(--green-100);
  color: var(--blue-900);
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--blue-900);
  font-weight: 700;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu nav {
  position: absolute;
  right: 0;
  top: 52px;
  z-index: 2;
  display: grid;
  min-width: 260px;
  padding: 10px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.global-notice {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid #c7dbf5;
  background: #e8f1ff;
  color: #19395e;
}

.global-notice-info {
  border-bottom-color: #c7dbf5;
  background: #e8f1ff;
  color: #19395e;
}

.global-notice-warning {
  border-bottom-color: #f0d98c;
  background: #fff7d6;
  color: #3d2f00;
}

.global-notice-inner {
  padding-block: 12px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.site-main {
  min-height: 60vh;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--blue-950);
  color: var(--white);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/img/football-fans-hero.png");
  background-position: center;
  background-size: cover;
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 27, 52, 0.92), rgba(7, 27, 52, 0.72) 44%, rgba(7, 27, 52, 0.18)),
    linear-gradient(0deg, rgba(7, 27, 52, 0.8), rgba(7, 27, 52, 0.02) 42%);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: 32px;
  align-items: end;
  min-height: min(720px, calc(100vh - 110px));
  max-height: 780px;
  padding: 74px 0 54px;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-600);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #a7f3c8;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--blue-950);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  max-width: 760px;
}

.hero-subline {
  max-width: 720px;
  margin: 22px 0 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.32rem);
}

.hero-small {
  margin: 0 0 26px;
  color: #d9ffe9;
  font-weight: 800;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
}

.btn-primary {
  background: var(--orange-500);
  color: var(--blue-950);
}

.btn-primary:hover {
  background: #ff9f3d;
}

.btn-secondary {
  border-color: var(--gray-200);
  background: var(--white);
  color: var(--blue-900);
}

.btn-secondary:hover {
  border-color: #bdd6c8;
  background: var(--green-100);
}

.hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-large {
  min-height: 52px;
  padding-inline: 22px;
}

.focus-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--gray-950);
  box-shadow: var(--shadow);
}

.focus-card h2 {
  margin-bottom: 14px;
  font-size: 1.3rem;
}

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

.focus-match {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.focus-match:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.focus-match strong {
  color: var(--blue-900);
}

.focus-match span {
  color: var(--gray-700);
  font-size: 0.92rem;
}

.section {
  padding: 72px 0;
}

.section-white {
  background: var(--white);
}

.section-blue {
  background: var(--blue-950);
  color: var(--white);
}

.section-blue h2,
.section-blue h3 {
  color: var(--white);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.section-heading p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--gray-700);
  font-size: 1.08rem;
}

.section-blue .section-heading p {
  color: rgba(255, 255, 255, 0.82);
}

.card-grid,
.match-grid,
.ranking-grid,
.awz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.step-card,
.match-card,
.editor-card,
.mini-card,
.awz-card,
.plain-card,
.form-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(7, 27, 52, 0.06);
}

.step-card,
.match-card,
.editor-card,
.mini-card,
.awz-card,
.plain-card {
  padding: 22px;
}

.step-number,
.mini-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--green-100);
  color: var(--green-600);
  font-weight: 900;
}

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

.match-card h3,
.editor-card h3,
.mini-card h3,
.awz-card h3,
.plain-card h3 {
  font-size: 1.25rem;
}

.match-card h3 span {
  color: var(--green-600);
}

.match-card p,
.editor-card p,
.mini-card p,
.awz-card p,
.plain-card p {
  margin: 0;
  color: var(--gray-700);
}

.match-meta,
.card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.status {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-scheduled {
  background: var(--green-100);
  color: #0c6239;
}

.status-live {
  background: var(--orange-100);
  color: #9c4f00;
}

.status-finished {
  background: var(--gray-200);
  color: var(--gray-700);
}

.result {
  color: var(--blue-900) !important;
  font-weight: 800;
}

.match-context {
  min-height: 1.35em;
  font-size: 0.92rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.58fr);
  gap: 28px;
  align-items: start;
}

.form-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.form-card label,
.form-card fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--blue-950);
  font-weight: 800;
}

.form-card fieldset {
  border: 0;
  padding: 0;
}

.form-card legend {
  margin-bottom: 8px;
  font-weight: 900;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd6df;
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--white);
  color: var(--gray-950);
  font-weight: 500;
}

.form-card textarea {
  min-height: 128px;
  resize: vertical;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: 3px solid rgba(22, 133, 79, 0.18);
  border-color: var(--green-600);
}

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

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

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

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice,
.checkbox {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: center;
  gap: 10px !important;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--gray-100);
}

.choice input,
.checkbox input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
}

.form-intro {
  margin: 0;
  color: var(--gray-700);
}

.field-hint {
  color: var(--gray-500);
  font-size: 0.9rem;
  font-weight: 500;
}

.legal-note {
  margin: 0;
  border-left: 4px solid var(--orange-500);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--orange-100);
  color: var(--blue-950);
  font-weight: 800;
}

.legal-note-compact {
  font-size: 0.92rem;
}

.flash {
  margin-bottom: 18px;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-weight: 800;
}

.flash-success {
  background: var(--green-100);
  color: #0c6239;
}

.flash-error {
  background: #ffe8e5;
  color: #a5281c;
}

.flash-info {
  background: #e8f1ff;
  color: #224d7d;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-row a {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--white);
  color: var(--blue-900);
  font-weight: 800;
}

.filter-row a:hover,
.filter-row a.active {
  border-color: var(--green-600);
  background: var(--green-100);
}

.comment-list {
  display: grid;
  gap: 14px;
}

.comment-card {
  border-left: 4px solid var(--green-600);
}

.site-footer {
  background: var(--blue-950);
  color: rgba(255, 255, 255, 0.82);
  padding: 36px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.1fr;
  gap: 28px;
  align-items: start;
}

.site-footer strong {
  color: var(--white);
}

.site-footer p {
  margin: 8px 0 0;
}

.site-footer nav {
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: var(--white);
  font-weight: 700;
}

.footer-notice {
  border-left: 4px solid var(--orange-500);
  padding-left: 14px;
  color: var(--white);
  font-weight: 800;
}

.admin-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  padding: 34px 0 72px;
}

.admin-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  align-self: start;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--white);
}

.admin-sidebar strong {
  color: var(--blue-950);
  font-size: 1.2rem;
}

.admin-sidebar nav {
  display: grid;
  gap: 4px;
}

.admin-sidebar a {
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--gray-700);
  font-weight: 800;
}

.admin-sidebar a:hover {
  background: var(--green-100);
  color: var(--blue-900);
}

.admin-main {
  min-width: 0;
}

.admin-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.admin-title-row h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--white);
}

.stat-card span {
  color: var(--gray-500);
  font-size: 0.9rem;
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  color: var(--blue-950);
  font-size: 2rem;
}

.table-card {
  overflow: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  border-bottom: 1px solid var(--gray-200);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--blue-950);
  font-size: 0.88rem;
}

td {
  color: var(--gray-700);
}

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

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-form {
  max-width: 920px;
}

.empty-state {
  border: 1px dashed #cfd6df;
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  color: var(--gray-700);
}

.mt-sm {
  margin-top: 18px;
}

.mt-md {
  margin-top: 22px;
}

.section-tight-bottom {
  padding-bottom: 0;
}

.login-section {
  max-width: 520px;
  padding: 64px 0 84px;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero-grid,
  .two-column,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    max-height: none;
    padding: 64px 0 42px;
  }

  .focus-card {
    max-width: 560px;
  }

  .card-grid,
  .match-grid,
  .ranking-grid,
  .awz-grid,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-sidebar {
    position: static;
  }

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

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand span:last-child {
    max-width: 190px;
    overflow-wrap: anywhere;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(7, 27, 52, 0.95), rgba(7, 27, 52, 0.78)),
      linear-gradient(0deg, rgba(7, 27, 52, 0.85), rgba(7, 27, 52, 0.05));
  }

  .button-row,
  .filter-row {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .filter-row a {
    width: 100%;
  }

  .section {
    padding: 52px 0;
  }

  .card-grid,
  .match-grid,
  .ranking-grid,
  .awz-grid,
  .stat-grid,
  .form-grid.two,
  .form-grid.three,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .form-card,
  .step-card,
  .match-card,
  .editor-card,
  .mini-card,
  .awz-card,
  .plain-card {
    padding: 18px;
  }

  .admin-sidebar nav {
    grid-template-columns: 1fr;
  }
}

/* Design alignment with the initial static import. */
:root {
  --navy: #0a2442;
  --navy-soft: #13385f;
  --green: #17864a;
  --green-soft: #dff2e8;
  --orange: #f27a1a;
  --orange-soft: #fff1e6;
  --soft: #f4f7fa;
  --paper: #ffffff;
  --ink: #152235;
  --muted: #667386;
  --line: #dce4ed;
  --max: 1180px;
  --blue-950: #0a2442;
  --blue-900: #13385f;
  --blue-800: #18496f;
  --green-600: #17864a;
  --green-100: #dff2e8;
  --orange-500: #f27a1a;
  --orange-100: #fff1e6;
  --gray-950: #152235;
  --gray-700: #4f5f72;
  --gray-500: #718096;
  --gray-200: #dce4ed;
  --gray-100: #f4f7fa;
  --shadow: 0 18px 45px rgba(10, 36, 66, 0.13);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
}

.site-header {
  background: rgba(10, 36, 66, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 14px 38px rgba(10, 36, 66, 0.18);
}

.header-inner {
  min-height: 76px;
}

.brand {
  align-items: center;
  color: var(--white);
  gap: 0.78rem;
}

.brand:hover {
  color: var(--white);
}

.brand-mark {
  background: var(--white);
  border: 2px solid rgba(23, 134, 74, 0.45);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  height: 44px;
  overflow: hidden;
  position: relative;
  width: 44px;
}

.brand-mark::before,
.brand-mark::after {
  border: 1px solid rgba(10, 36, 66, 0.16);
  border-radius: 999px;
  content: "";
  inset: 7px;
  position: absolute;
}

.brand-mark::after {
  inset: 14px;
}

.brand-name,
.brand-claim {
  display: block;
}

.brand-name {
  font-weight: 850;
  line-height: 1.05;
}

.brand-claim {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
  margin-top: 0.15rem;
}

.desktop-nav {
  color: rgba(255, 255, 255, 0.84);
  gap: 0.12rem;
}

.desktop-nav a,
.mobile-menu a {
  align-items: center;
  border-radius: var(--radius);
  color: inherit;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 750;
  min-height: 40px;
  padding: 0.45rem 0.68rem;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.mobile-menu summary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--white);
  font-weight: 800;
}

.mobile-menu nav {
  background: rgba(10, 36, 66, 0.99);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.mobile-menu nav a {
  color: var(--white);
}

.mobile-menu nav a:hover,
.mobile-menu nav a:focus-visible,
.mobile-menu nav a.active {
  color: var(--white);
}

.hero {
  background:
    radial-gradient(circle at 82% 14%, rgba(242, 122, 26, 0.26), transparent 30%),
    linear-gradient(130deg, rgba(10, 36, 66, 0.98), rgba(10, 36, 66, 0.9) 48%, rgba(23, 134, 74, 0.84)),
    var(--navy);
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 88px 88px;
  inset: 0;
  opacity: 0.42;
  z-index: -1;
}

.hero::after {
  display: none;
}

.hero-grid {
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.78fr);
  max-height: none;
  min-height: 690px;
  padding: clamp(4.4rem, 8vw, 7rem) 0;
}

.hero-copy {
  max-width: 720px;
}

.hero .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.84);
}

.hero h1 {
  letter-spacing: 0;
  line-height: 0.96;
}

.hero-subline {
  color: rgba(255, 255, 255, 0.87);
  max-width: 650px;
}

.hero-small {
  color: rgba(255, 255, 255, 0.74);
}

.hero-visual {
  display: grid;
  gap: 1rem;
}

.hero-visual .focus-card {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  padding: 0;
}

.hero-visual .focus-card h2 {
  background: var(--navy-soft);
  color: var(--white);
  margin: 0;
  padding: 1rem 1.1rem;
}

.hero-visual .focus-list {
  gap: 0;
}

.hero-visual .focus-match {
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1rem 1.1rem;
}

.hero-visual .focus-match:last-child {
  border-bottom: 0;
}

.trust-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-grid div {
  align-content: center;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 0.25rem;
  min-height: 88px;
  padding: 1rem;
}

.trust-grid div:first-child {
  border-left: 1px solid var(--line);
}

.trust-grid strong {
  color: var(--navy);
  font-size: 1rem;
}

.trust-grid span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.btn {
  border-radius: 999px;
  font-weight: 850;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(242, 122, 26, 0.28);
}

.btn-primary:hover {
  background: #de6810;
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--navy);
}

.btn-secondary:hover {
  background: var(--green-soft);
  border-color: rgba(23, 134, 74, 0.25);
  color: var(--green);
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.section {
  padding: clamp(3.5rem, 7vw, 5.8rem) 0;
}

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

.section:not(.section-white):not(.section-blue) {
  background: var(--soft);
}

.section-heading h2 {
  color: var(--navy);
}

.match-card,
.form-card,
.plain-card,
.mini-card,
.awz-card,
.editor-card,
.table-card,
.step-card {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-card input,
.form-card select,
.form-card textarea,
.admin-form input,
.admin-form select,
.admin-form textarea {
  border-color: #cdd7e3;
  border-radius: 8px;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 134, 74, 0.16);
  outline: none;
}

.legal-note {
  background: var(--orange-soft);
  border-color: rgba(242, 122, 26, 0.28);
  color: #87510f;
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.2rem 0;
}

.footer-grid {
  align-items: start;
  gap: 1.4rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(210px, 0.65fr) minmax(260px, 1fr);
}

.site-footer strong,
.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: #ffd0a8;
}

.footer-notice {
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 4.8rem 0 3rem;
  }

  .hero-visual .focus-card {
    max-width: none;
  }

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

  .trust-grid div:nth-child(3) {
    border-left: 1px solid var(--line);
  }

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand > span:last-child {
    max-width: none;
  }

  .brand-claim {
    display: none;
  }

  .mobile-menu {
    flex-shrink: 0;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-grid {
    gap: 1.5rem;
    padding: 3.9rem 0 2.6rem;
  }

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

  .trust-grid div,
  .trust-grid div:first-child,
  .trust-grid div:nth-child(3) {
    border-left: 1px solid var(--line);
  }
}

.card-grid,
.awz-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.match-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.ranking-grid {
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.ranking-grid .mini-card {
  display: grid;
  gap: 0.65rem;
  grid-template-rows: auto auto 1fr;
  min-height: 0;
  min-width: 0;
}

.ranking-grid .mini-icon {
  margin-bottom: 0.2rem;
}

.ranking-grid .mini-card h3 {
  font-size: clamp(1.08rem, 1.2vw, 1.2rem);
  hyphens: none;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

.ranking-grid .mini-card p {
  line-height: 1.55;
}

:root {
  --green-text: #0c6239;
}

.section-blue .section-heading h2 {
  color: var(--white);
}

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

.btn-primary {
  background: var(--orange);
  color: var(--navy);
}

.btn-primary:hover {
  background: #ff9f3d;
  color: var(--navy);
}

.btn-secondary:hover {
  color: var(--green-text);
}

.step-number,
.mini-icon {
  color: var(--green-text);
}

.match-meta,
.card-footer,
.field-hint {
  color: var(--gray-700);
}

.platforms-section {
  background: #f5f8fc;
  color: var(--navy);
}

.platforms-section .section-heading h2 {
  color: var(--navy);
}

.platforms-section .section-heading p:not(.eyebrow) {
  color: #5d6f84;
}

.platforms-grid {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-card {
  background: var(--white);
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(10, 36, 66, 0.08);
  display: grid;
  gap: 0.78rem;
  grid-template-rows: auto auto 1fr auto;
  min-width: 0;
  padding: 1.25rem;
}

.platform-card h3 {
  color: var(--navy);
  font-size: 1.22rem;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: anywhere;
}

.platform-card p {
  color: #4f5f72;
  line-height: 1.55;
}

.platform-badge {
  align-items: center;
  background: var(--green-soft);
  border: 1px solid rgba(23, 134, 74, 0.18);
  border-radius: 7px;
  color: var(--green-text);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 850;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.platform-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.2rem;
}

.platform-actions .btn {
  max-width: 100%;
  min-width: 0;
  text-align: center;
}

@media (max-width: 980px) {
  .platforms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .platform-card {
    padding: 1.1rem;
  }

  .platform-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Batch 1 mobile usability overrides. */
.mobile-action-card,
.mobile-section-link {
  display: none;
}

.selected-match-note {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  background: var(--soft);
  color: var(--navy);
  overflow-wrap: anywhere;
}

.mobile-menu a.active {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.choice,
.checkbox {
  min-height: 48px;
}

.choice input,
.checkbox input {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
}

.choice span,
.checkbox span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero-copy,
.hero .button-row,
.btn {
  max-width: 100%;
  min-width: 0;
}

.btn {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .mobile-menu nav {
    max-width: calc(100vw - 24px);
    min-width: min(260px, calc(100vw - 24px));
  }
}

@media (max-width: 680px) {
  .mobile-menu nav {
    position: fixed;
    top: 68px;
    right: 12px;
    left: 12px;
    z-index: 70;
    width: auto;
    max-height: calc(100vh - 84px);
    min-width: 0;
    overflow: auto;
  }

  .mobile-menu summary {
    min-height: 44px;
  }

  .mobile-menu[open] summary {
    background: rgba(255, 255, 255, 0.12);
  }

  .mobile-menu a {
    min-height: 44px;
    width: 100%;
  }

  .hero h1 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero .button-row .btn {
    line-height: 1.2;
    padding-inline: 1rem;
  }

  .global-notice-inner {
    display: -webkit-box;
    padding-block: 0.55rem;
    overflow: hidden;
    font-size: 0.9rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .filter-row {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    margin-inline: -12px;
    padding: 0 12px 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .filter-row a {
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
    white-space: nowrap;
  }

  .home-form-panel-desktop {
    display: none;
  }

  .mobile-action-card {
    display: grid;
    gap: 0.9rem;
  }

  .mobile-action-card .btn,
  .mobile-section-link .btn {
    width: 100%;
  }

  .mobile-section-link {
    display: block;
    margin: 1rem 0 0;
  }

  .hero-visual .focus-match:nth-child(n + 4),
  .home-focus-grid .match-card:nth-child(n + 4),
  .home-schedule-grid .match-card:nth-child(n + 5) {
    display: none;
  }

  .form-card {
    gap: 1rem;
  }

  .checkbox {
    align-items: flex-start;
  }

  .checkbox input {
    margin-top: 0.1rem;
  }
}

@media (min-width: 360px) and (max-width: 680px) {
  .score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 2.1rem;
    line-height: 1.05;
  }

  .hero-subline {
    font-size: 1rem;
  }

  .hero .button-row .btn {
    font-size: 0.95rem;
  }
}

/* Single semantic navigation. */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  color: rgba(255, 255, 255, 0.84);
}

.site-nav a {
  align-items: center;
  border-radius: var(--radius);
  color: inherit;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 750;
  min-height: 40px;
  padding: 0.45rem 0.68rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.nav-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
}

.nav-toggle:not([hidden]) {
  display: none;
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle:not([hidden]) {
    display: inline-flex;
  }

  .site-nav {
    flex: 0 0 100%;
    display: grid;
    gap: 0.25rem;
    padding: 0 0 1rem;
    color: var(--white);
  }

  .site-nav a {
    min-height: 44px;
    width: 100%;
  }

  .js .site-nav {
    position: fixed;
    top: 76px;
    right: 12px;
    left: 12px;
    z-index: 70;
    display: none;
    max-height: calc(100vh - 92px);
    overflow: auto;
    padding: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius);
    background: rgba(10, 36, 66, 0.99);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  }

  .js .site-nav.is-open {
    display: grid;
  }
}

@media (max-width: 680px) {
  .js .site-nav {
    top: 68px;
    max-height: calc(100vh - 84px);
  }
}
