@font-face {
  font-family: "Mexcellent";
  src: url("/fonts/Mexcellent%20Rg.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mexcellent 3D";
  src: url("/fonts/Mexcellent%203d.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue";
  src:
    url("/fonts/BebasNeue-Regular.woff2") format("woff2"),
    url("/fonts/BebasNeue-Regular.woff") format("woff"),
    url("/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --ink: #172321;
  --muted: #67736f;
  --paper: #f4f1e8;
  --surface: #fffdf7;
  --card: linear-gradient(180deg, rgba(255, 253, 247, 0.95), rgba(255, 253, 247, 0.88));
  --card-solid: #fffdf7;
  --card-soft: rgba(244, 241, 232, 0.54);
  --field: #fffdf7;
  --row: rgba(244, 241, 232, 0.48);
  --line: #ded8c8;
  --green: #0f5a45;
  --green-dark: #0d3d35;
  --green-soft: rgba(15, 90, 69, 0.10);
  --green-line: rgba(15, 90, 69, 0.22);
  --gold: #f5d274;
  --gold-ink: #704f12;
  --gold-soft: rgba(183, 145, 73, 0.14);
  --red: #c43b3b;
  --white-accent: #fffdf7;
  --blue: #2e6f91;
  --chart-base: #2e6f91;   /* performance chart: cumulative base bar (= --blue) */
  --chart-day: #7fb8d4;    /* performance chart: that day's points (lighter blue cap) */
  --glass: rgba(255, 253, 247, 0.82);
  --glass-border: rgba(255, 253, 247, 0.34);
  --shadow-soft: 0 12px 30px rgba(4, 18, 17, 0.18);
  --shadow-card: 0 24px 60px rgba(4, 18, 17, 0.30);
  --shadow-field: 0 2px 10px rgba(23, 35, 33, 0.05);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

:root[data-theme="dark"] {
  --ink: #edf3ef;
  --muted: #a9b8b2;
  --paper: #081411;
  --surface: #13201d;
  --card: linear-gradient(180deg, rgba(31, 43, 40, 0.96), rgba(18, 30, 27, 0.92));
  --card-solid: #172521;
  --card-soft: rgba(37, 49, 45, 0.64);
  --field: #0e1a17;
  --row: rgba(37, 49, 45, 0.58);
  --line: rgba(212, 222, 216, 0.18);
  --green: #2da879;
  --green-dark: #b8ead7;
  --green-soft: rgba(45, 168, 121, 0.14);
  --green-line: rgba(45, 168, 121, 0.30);
  --gold: #f5d274;
  --gold-ink: #f4d98a;
  --gold-soft: rgba(245, 210, 116, 0.16);
  --red: #ee6a6a;
  --white-accent: #fffdf7;
  --blue: #7fb8d4;
  --chart-base: #4d90aa;
  --chart-day: #b5d4e5;
  --glass: rgba(18, 30, 27, 0.78);
  --glass-border: rgba(222, 235, 228, 0.18);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.32);
  --shadow-card: 0 24px 64px rgba(0, 0, 0, 0.42);
  --shadow-field: 0 2px 12px rgba(0, 0, 0, 0.22);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

#app {
  min-height: 100vh;
}

.public-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: hidden;
  background: #061a17;
  display: flex;
  flex-direction: column;
}

.public-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #061a17;
}

.public-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.04);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.public-shell::before,
.public-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.public-shell::before {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 22, 20, 0.84) 0%, rgba(8, 38, 33, 0.68) 34%, rgba(8, 31, 28, 0.28) 64%, rgba(4, 18, 17, 0.62) 100%),
    linear-gradient(180deg, rgba(4, 18, 17, 0.42), rgba(4, 18, 17, 0.76));
}

.public-shell::after {
  z-index: -1;
  background:
    radial-gradient(circle at 23% 34%, rgba(183, 145, 73, 0.16), transparent 34%),
    linear-gradient(180deg, transparent 70%, rgba(4, 18, 17, 0.42));
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: default;
}

.flag-button {
  width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0;
  background: transparent;
  line-height: 1;
}

.lang-flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.flag-button:hover,
.flag-button.active {
  border-color: rgba(255, 253, 247, 0.36);
  background: rgba(255, 253, 247, 0.18);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 253, 247, 0.22);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--red));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

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

.brand-copy strong {
  font-size: 0.98rem;
  font-weight: 850;
}

.brand-copy span {
  color: rgba(255, 253, 247, 0.7);
  font-size: 0.76rem;
  font-weight: 700;
}

.public-actions,
.home-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  cursor: default;
}

.solid-button,
.ghost-button,
.google-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.solid-button {
  color: #fff;
  background: #0d4f40;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.solid-button:hover {
  background: #092d27;
}

.solid-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.ghost-button {
  color: #fffdf7;
  background: rgba(255, 253, 247, 0.10);
  border-color: rgba(255, 253, 247, 0.26);
  backdrop-filter: blur(14px);
}

.ghost-button:hover {
  background: rgba(255, 253, 247, 0.18);
}

.large {
  min-height: 48px;
  padding: 0 18px;
}

.home-layout,
.auth-layout {
  width: min(1120px, calc(100% - 28px));
  flex: 1;
  margin: 0 auto;
  display: grid;
  align-items: center;
  gap: clamp(24px, 5vw, 68px);
  padding: 30px 0 62px;
}

.home-layout {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  align-items: center;
  padding-top: 30px;
}

.auth-layout {
  grid-template-columns: minmax(320px, 430px) minmax(300px, 1fr);
}

.home-card {
  display: grid;
  gap: 20px;
  justify-items: center;
  padding: clamp(24px, 5vw, 42px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card-halo {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.10);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 253, 247, 0.16);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.16);
}

.home-card,
.auth-panel {
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.68), rgba(255, 253, 247, 0.48));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mini-kicker,
.eyebrow {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0c4b3d;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-card h1,
.auth-panel h1,
.app-header h1 {
  margin: 0;
  letter-spacing: 0;
}

.home-card h1 {
  max-width: 11ch;
  font-family: "Mexcellent 3D", "Mexcellent", "Bebas Neue", Impact, "Arial Black", system-ui, sans-serif;
  font-size: clamp(3rem, 7vw, 6.15rem);
  line-height: 0.88;
  font-weight: 400;
  text-transform: uppercase;
  color: #123f35;
  text-shadow:
    0 3px 0 rgba(255, 253, 247, 0.92),
    0 7px 0 rgba(196, 59, 59, 0.40),
    0 14px 24px rgba(0, 0, 0, 0.22);
}

.mexico-stripe {
  width: min(100%, 360px);
  height: 7px;
  display: block;
  margin-top: -4px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #0f5a45 0 33%, #fffdf7 33% 66%, #c43b3b 66% 100%);
  box-shadow: 0 8px 18px rgba(15, 61, 53, 0.20);
}

.home-subtitle {
  margin-top: -10px;
  color: #174d40;
  font-family: "Mexcellent 3D", "Mexcellent", "Bebas Neue", Impact, "Arial Black", system-ui, sans-serif;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 0.9;
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 2px 0 rgba(255, 253, 247, 0.74),
    0 6px 16px rgba(0, 0, 0, 0.16);
}

.home-card p {
  max-width: 560px;
  margin: 0;
  color: #42524e;
  font-size: 1.1rem;
}

.home-card p.home-subtitle {
  max-width: 100%;
  color: #174d40;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
}

.countdown {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.countdown-unit {
  min-height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding-top: 10px;
  border: 1px solid rgba(15, 61, 53, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
  position: relative;
  overflow: hidden;
}

.countdown-unit::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background:
    linear-gradient(90deg, var(--green) 0 33%, var(--white-accent) 33% 66%, var(--red) 66% 100%);
}

.countdown-unit strong {
  color: var(--green-dark);
  font-family: "Mexcellent", "Bebas Neue", Impact, "Arial Black", system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 0.92;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 2px 0 rgba(255, 253, 247, 0.72),
    0 5px 10px rgba(0, 0, 0, 0.14);
}

.countdown-unit span,
.kickoff-note {
  color: #6b5b3d;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kickoff-note {
  margin-top: -4px;
}

.home-card .ghost-button {
  color: var(--green-dark);
  background: rgba(255, 253, 247, 0.58);
  border-color: rgba(15, 61, 53, 0.18);
}

.home-card .ghost-button:hover {
  background: rgba(255, 253, 247, 0.88);
}

.auth-copy {
  position: absolute;
  border: 1px solid rgba(255, 253, 247, 0.28);
  border-radius: 8px;
  background: rgba(7, 30, 27, 0.58);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
  color: #fffdf7;
  backdrop-filter: blur(18px);
}

.auth-panel {
  width: 100%;
  padding: 24px;
}

.panel-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
}

.panel-icon.alt {
  background: var(--red);
}

.auth-panel h1 {
  margin-top: 16px;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
}

.auth-panel p {
  margin: 8px 0 20px;
  color: var(--muted);
}

.auth-copy {
  position: relative;
  width: min(100%, 430px);
  justify-self: end;
  padding: 24px;
}

.auth-copy .eyebrow {
  color: #f5d274;
}

.auth-copy h2 {
  margin: 10px 0 8px;
  color: #fffdf7;
  font-family: "Mexcellent 3D", "Mexcellent", "Bebas Neue", Impact, "Arial Black", system-ui, sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 0.92;
}

.auth-copy p {
  margin: 0;
  color: rgba(255, 253, 247, 0.78);
  font-weight: 650;
}

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

.phone-field {
  display: flex;
  gap: 6px;
}

.phone-field select {
  flex: 0 0 auto;
  min-height: 44px;
  border: 1px solid rgba(15, 61, 53, 0.18);
  border-radius: 8px;
  padding: 0 8px;
  background: var(--surface);
  color: var(--green-dark);
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
}

.phone-field select:focus {
  border-color: var(--green);
}

.phone-field input {
  flex: 1;
}

label {
  display: grid;
  gap: 7px;
  color: var(--green-dark);
  font-size: 0.83rem;
  font-weight: 850;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(15, 61, 53, 0.18);
  border-radius: 8px;
  padding: 0 12px;
  outline: none;
  color: var(--ink);
  background: var(--surface);
}

input:focus {
  border-color: rgba(46, 111, 145, 0.7);
  box-shadow: 0 0 0 3px rgba(46, 111, 145, 0.15);
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: rgba(15, 61, 53, 0.16);
}

.google-button {
  width: 100%;
  color: var(--ink);
  background: var(--surface);
  border-color: rgba(15, 61, 53, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.google-button--placeholder {
  cursor: pointer;
}

.google-button--placeholder:hover {
  border-color: rgba(66, 133, 244, 0.48);
  background: #fff;
}

.google-button span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #4285f4;
  font-size: 0.82rem;
  font-weight: 900;
}

.text-link {
  width: 100%;
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-weight: 850;
}

.notice {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(196, 59, 59, 0.22);
  border-radius: 8px;
  color: #842828;
  background: rgba(196, 59, 59, 0.08);
  font-size: 0.9rem;
  font-weight: 740;
}

.app-layout {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: block;
  background: #061a17;
}

.app-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #061a17;
}

.app-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.03);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.app-layout::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 22, 20, 0.92) 0%, rgba(6, 30, 27, 0.82) 30%, rgba(6, 26, 23, 0.62) 70%, rgba(4, 18, 17, 0.78) 100%),
    linear-gradient(180deg, rgba(4, 18, 17, 0.50), rgba(4, 18, 17, 0.80));
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
}

.app-utility {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 clamp(14px, 4vw, 40px);
  color: rgba(255, 253, 247, 0.82);
  background: rgba(6, 26, 23, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
}

.utility-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5d274;
}

.utility-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.utility-logout {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 4px 8px;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 253, 247, 0.78);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.utility-logout:hover {
  color: #ff9b9b;
  background: rgba(255, 253, 247, 0.06);
}

.utility-profile {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 4px 10px;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 253, 247, 0.82);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.utility-profile:hover {
  color: #fffdf7;
  background: rgba(255, 253, 247, 0.08);
}

.utility-profile.active {
  color: #fffdf7;
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.92), rgba(13, 61, 53, 0.92));
}

.lang-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 253, 247, 0.82);
  cursor: pointer;
}

.lang-dropdown-btn:hover {
  background: rgba(255, 253, 247, 0.08);
}

.lang-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 168px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(8, 32, 28, 0.96), rgba(6, 26, 23, 0.96));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 48px rgba(4, 18, 17, 0.45);
}

.lang-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  background: transparent;
  color: rgba(255, 253, 247, 0.82);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.lang-option:hover {
  color: #fffdf7;
  background: rgba(255, 253, 247, 0.08);
}

.lang-option.active {
  color: #fffdf7;
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.92), rgba(13, 61, 53, 0.92));
}

.app-navbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 60px;
  padding: 0 clamp(14px, 4vw, 40px);
  color: #fffdf7;
  background: rgba(6, 26, 23, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 8px 28px rgba(4, 18, 17, 0.30);
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  background: transparent;
  color: rgba(255, 253, 247, 0.78);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-item:hover {
  color: #fffdf7;
  background: rgba(255, 253, 247, 0.08);
}

.nav-item.active {
  color: #fffdf7;
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.92), rgba(13, 61, 53, 0.92));
  box-shadow: 0 6px 18px rgba(4, 18, 17, 0.40);
}

.nav-more {
  position: relative;
  flex: 0 0 auto;
}

.nav-more-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 188px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(8, 32, 28, 0.96), rgba(6, 26, 23, 0.96));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 48px rgba(4, 18, 17, 0.45);
}

.nav-more-panel .nav-item {
  width: 100%;
  justify-content: flex-start;
}

.nav-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fffdf7;
  cursor: pointer;
}

.nav-hamburger:hover {
  color: rgba(255, 253, 247, 0.7);
}

.app-navbar .public-actions {
  margin-left: auto;
  flex-wrap: nowrap;
}

/* Public shell: single top strip on wide; the hamburger bar only appears ≤700px */

.public-shell .app-utility {
  min-height: 52px;
}

.public-shell .app-navbar {
  display: none;
}

@media (max-width: 700px) {
  .public-shell .app-navbar {
    display: flex;
  }
}

.navbar-lang {
  display: none;
}

.app-nav-measure {
  position: absolute;
  left: -9999px;
  top: 0;
  display: flex;
  gap: 6px;
  visibility: hidden;
  pointer-events: none;
}

.app-drawer-root {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.app-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 18, 17, 0.55);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.app-drawer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(82vw, 320px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 16px;
  border-right: 1px solid var(--glass-border);
  background: rgba(6, 26, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(4, 18, 17, 0.55);
  transform: translateX(-100%);
  transition: transform 0.24s ease;
}

.app-drawer-root.open {
  pointer-events: auto;
}

.app-drawer-root.open .app-drawer-overlay {
  opacity: 1;
}

.app-drawer-root.open .app-drawer {
  transform: translateX(0);
}

.app-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--glass-border);
}

.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 253, 247, 0.78);
  cursor: pointer;
}

.drawer-close:hover {
  background: rgba(255, 253, 247, 0.08);
  color: #fffdf7;
}

.app-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.app-drawer-nav .nav-item {
  width: 100%;
  justify-content: flex-start;
  padding: 12px 14px;
}

.app-drawer-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}

.app-drawer-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rules-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.rules-list li {
  color: var(--muted);
  line-height: 1.45;
}

.app-main {
  min-width: 0;
  padding: 34px clamp(20px, 5vw, 58px);
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.app-header > div {
  display: grid;
  gap: 8px;
}

.app-header h1 {
  margin-top: 7px;
  font-family: "Mexcellent 3D", "Mexcellent", "Bebas Neue", Impact, system-ui, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 0.95;
  color: #fffdf7;
  text-shadow: 0 2px 0 rgba(4, 18, 17, 0.45), 0 10px 26px rgba(0, 0, 0, 0.34);
}

.app-header .mini-kicker {
  color: #f5d274;
}

.app-header .mexico-stripe {
  width: 190px;
  margin-top: 0;
  box-shadow: 0 8px 18px rgba(4, 18, 17, 0.28);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Glass cards for the authenticated app — match the landing page */

.glass-card {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.95), rgba(255, 253, 247, 0.88));
  box-shadow: 0 24px 60px rgba(4, 18, 17, 0.34);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: clamp(18px, 3vw, 28px);
}

.display-title {
  margin: 6px 0 0;
  font-family: "Mexcellent 3D", "Mexcellent", "Bebas Neue", Impact, system-ui, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 0.95;
  color: #123f35;
  text-shadow: 0 2px 0 rgba(255, 253, 247, 0.9), 0 8px 18px rgba(0, 0, 0, 0.12);
}

.summary-card,
.admin-strip,
.section-block,
.profile-block {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.95), rgba(255, 253, 247, 0.88));
  box-shadow: 0 24px 60px rgba(4, 18, 17, 0.30);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.summary-card {
  min-height: 210px;
  height: 100%;
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 20px;
}

.summary-card h2,
.section-heading h2,
.profile-block h2 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.15;
}

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

.admin-strip {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: #704f12;
  background: rgba(183, 145, 73, 0.14);
}

.section-block {
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.leaderboard-section {
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
}

.match-list,
.leaderboard {
  display: grid;
  gap: 8px;
}

.match-row {
  display: grid;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(222, 216, 200, 0.9);
  border-radius: 8px;
  background: rgba(244, 241, 232, 0.48);
}

.match-row {
  grid-template-columns: 96px minmax(0, 1fr) 110px;
}

.match-meta {
  display: grid;
  gap: 1px;
}

.match-meta strong {
  color: var(--green-dark);
  font-size: 0.9rem;
}

.match-meta span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.teams {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 850;
}

.teams span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teams em {
  flex: 0 0 auto;
  color: var(--red);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.prediction-box {
  display: grid;
  grid-template-columns: 36px auto 36px;
  align-items: center;
  gap: 6px;
}

.prediction-box input {
  min-height: 34px;
  padding: 0;
  text-align: center;
  background: #eee9dc;
}

.prediction-box span {
  color: var(--muted);
  text-align: center;
}

/* Leaderboard header (Day N · date) */

.leaderboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.leaderboard-daychip {
  display: grid;
  justify-items: end;
  gap: 2px;
  padding: 8px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.1), rgba(13, 61, 53, 0.06));
}

.leaderboard-daychip span {
  font: 700 0.78rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.leaderboard-daychip strong {
  font-size: 0.92rem;
  color: var(--ink);
  text-transform: capitalize;
}

/* Collapsible standings rows */

.leader-row.leader-head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 84px 84px 24px;
  align-items: center;
  gap: 12px;
  padding: 4px 14px;
}

.leader-row.leader-head span {
  font: 700 0.74rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.leader-row.leader-head span:nth-child(3),
.leader-row.leader-head span:nth-child(4) {
  text-align: center;
}

.leader-row {
  border: 1px solid rgba(222, 216, 200, 0.9);
  border-radius: 10px;
  background: rgba(244, 241, 232, 0.48);
  overflow: hidden;
}

.leader-row.is-self {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.1), rgba(244, 241, 232, 0.55));
}

.leader-row__head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 84px 84px 24px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.leader-pos {
  display: flex;
  align-items: center;
  gap: 6px;
}

.leader-pos > strong {
  min-width: 26px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--green-dark);
}

.leader-delta {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 0.74rem;
  font-weight: 900;
}

.leader-delta.up { color: var(--green); }

.leader-delta.down { color: var(--red); }

.leader-delta.flat { color: var(--muted); }

.leader-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.leader-you {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: 700 0.62rem/1.4 "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-style: normal;
}

.leader-points {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}

.leader-points > strong {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ink);
}

.leader-daypts {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--green);
}

.leader-eff {
  text-align: center;
  font-weight: 800;
  color: var(--muted);
}

.leader-chevron {
  color: var(--muted);
  transition: transform 0.2s ease;
  justify-self: center;
}

.leader-row.is-open .leader-chevron {
  transform: rotate(180deg);
}

/* Expanded per-player panel */

.leader-expand {
  display: grid;
  gap: 18px;
  padding: 4px 14px 18px;
  border-top: 1px solid var(--line);
}

.performance-chart {
  width: 100%;
}

.chart-tip {
  display: grid;
  gap: 1px;
  padding: 8px 10px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(4, 18, 17, 0.18);
  font-size: 0.78rem;
}

.chart-tip strong {
  margin-bottom: 2px;
  color: var(--green-dark);
}

.progression-wrap {
  overflow-x: auto;
}

.progression-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.78rem;
}

.progression-table th,
.progression-table td {
  padding: 5px 8px;
  text-align: center;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.progression-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 800;
  background: rgba(244, 241, 232, 0.6);
}

.progression-table tr:last-child td {
  color: var(--blue);
  font-weight: 800;
}

.leader-picks h4 {
  margin: 0 0 8px;
  font: 700 0.82rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.leader-picks__list {
  display: grid;
  gap: 6px;
}

.leader-pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 38px;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.leader-pick__match {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 750;
  font-size: 0.86rem;
}

.leader-pick__match img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex: 0 0 auto;
}

.leader-pick__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-pick__match em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.leader-pick__scores {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.leader-pick__pred {
  color: var(--ink);
}

.leader-pick__actual {
  color: var(--blue);
}

.leader-pick__time {
  color: var(--muted);
  font-weight: 750;
  font-size: 0.8rem;
}

.leader-pick__pts {
  justify-self: end;
  min-width: 32px;
  text-align: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  color: #fff;
  background: var(--muted);
}

.leader-pick__pts.pts-1 { background: var(--blue); }

.leader-pick__pts.pts-3 { background: var(--green); }

.leader-pick__pts.pts-0 { background: rgba(103, 115, 111, 0.6); }

/* Home dashboard "now / next match" card */

.home-now-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.home-clock {
  display: grid;
  gap: 2px;
}

.home-clock .mini-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.home-clock__time {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.home-clock__date {
  color: var(--muted);
  font-weight: 700;
  text-transform: capitalize;
}

.home-clock__zone {
  font: 700 0.78rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
}

.home-matchday {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.home-matchday__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.home-matchday__head strong {
  font-size: 0.92rem;
  color: var(--ink);
  text-transform: capitalize;
}

.home-matchday__empty {
  color: var(--muted);
  font-weight: 700;
}

.home-matchday__list {
  display: grid;
  gap: 6px;
}

.matchday-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.matchday-row.is-result {
  background: linear-gradient(180deg, rgba(46, 111, 145, 0.08), var(--surface));
}

.matchday-row.is-live {
  border-color: var(--red);
}

.matchday-row__teams {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 800;
  font-size: 0.88rem;
}

.matchday-row__teams img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex: 0 0 auto;
}

.matchday-row__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matchday-row__teams em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.matchday-row__status {
  display: grid;
  justify-items: center;
  gap: 1px;
  text-align: center;
  white-space: nowrap;
}

.matchday-row__time {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 700;
}

.matchday-row__count {
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--green);
}

.matchday-row__live {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
}

.matchday-row__score {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--blue);
}

.matchday-row__pick {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
  min-width: 72px;
  white-space: nowrap;
}

.matchday-row__pick-label {
  font: 700 0.66rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.matchday-row__pick-score {
  font-weight: 900;
  color: var(--ink);
}

.matchday-row__pick-empty {
  font-size: 0.74rem;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 640px) {
  .home-now-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-matchday {
    padding-left: 0;
    border-left: 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .leader-row.leader-head,
  .leader-row__head {
    grid-template-columns: 60px minmax(0, 1fr) 66px 22px;
    gap: 8px;
  }

  .leader-row.leader-head span:nth-child(4),
  .leader-eff {
    display: none;
  }
}

.profile-block {
  max-width: 520px;
  display: grid;
  gap: 8px;
  padding: 24px;
}

.avatar {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  font-size: 1.45rem;
  font-weight: 900;
}

.profile-block p {
  margin: 0;
  color: var(--muted);
}

.profile-block span {
  width: max-content;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--green-dark);
  background: rgba(15, 90, 69, 0.1);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-page {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.profile-card {
  padding: 24px;
}

.profile-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.profile-card__head .avatar {
  flex-shrink: 0;
}

.profile-card__head .mexico-stripe {
  width: 180px;
  margin-top: 8px;
}

.profile-intro {
  margin: 12px 0 20px;
  color: var(--muted);
}

.profile-form {
  display: grid;
  gap: 16px;
}

.profile-field {
  display: grid;
  gap: 7px;
  color: var(--green-dark);
  font-size: 0.83rem;
  font-weight: 850;
}

.profile-field input,
.profile-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  outline: none;
}

.profile-field select {
  padding-right: 36px;
}

.profile-field input:focus,
.profile-field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 90, 69, 0.14);
}

.profile-readonly {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(244, 241, 232, 0.5);
  color: var(--muted);
  font-weight: 700;
}

.profile-hint {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.profile-toggle {
  align-self: stretch;
  justify-content: flex-start;
  min-height: 48px;
  margin-top: 6px;
}

.profile-card .form-submit {
  margin-top: 18px;
}

.profile-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.profile-subsection {
  display: grid;
  gap: 10px;
}

.profile-whatsapp-group {
  padding: 14px;
  border: 1px solid rgba(15, 90, 69, 0.16);
  border-radius: 10px;
  background: rgba(15, 90, 69, 0.06);
}

.profile-whatsapp-group__body {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.profile-whatsapp-group__qr {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf7;
}

.profile-whatsapp-group__qr img {
  width: 116px;
  height: 116px;
  object-fit: contain;
}

.profile-whatsapp-group__link {
  flex: 1 1 150px;
  min-width: 0;
}

.payment-badge {
  width: max-content;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.payment-badge.paid {
  color: var(--white-accent);
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.95), rgba(13, 61, 53, 0.95));
}

.payment-badge.pending {
  color: #8a6d1f;
  background: rgba(245, 210, 116, 0.28);
  border: 1px solid rgba(245, 210, 116, 0.6);
}

.profile-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-account-row strong {
  color: var(--ink);
}

.profile-exports {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.profile-security {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

@media (max-width: 860px) {
  .profile-page {
    grid-template-columns: 1fr;
  }

  .profile-whatsapp-group__body {
    align-items: stretch;
  }

  .profile-whatsapp-group__link {
    flex-basis: 100%;
  }
}

.loading,
.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 850;
}

.loading {
  min-height: 100vh;
  gap: 10px;
}

.spin {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.facts-page {
  display: grid;
  gap: 18px;
}

.facts-heading {
  align-items: flex-start;
  margin-bottom: 0;
}

.facts-download {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fffdf7;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 10px 22px rgba(4, 18, 17, 0.14);
  backdrop-filter: none;
}

.facts-download:hover {
  color: #fffdf7;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.facts-heading > div {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.facts-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.facts-shell {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.facts-rail {
  position: sticky;
  top: 116px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.facts-rail-buttons,
.facts-rail-groups,
.facts-panel {
  border: 1px solid rgba(222, 216, 200, 0.9);
  border-radius: 12px;
  background: rgba(244, 241, 232, 0.54);
}

.facts-rail-buttons {
  display: grid;
  gap: 3px;
  padding: 8px;
}

.facts-rail-buttons button,
.facts-rail-group > button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: 800 0.9rem/1.1 "Inter", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}

.facts-rail-buttons button {
  padding: 10px;
}

.facts-rail-buttons button:hover,
.facts-rail-buttons button.active,
.facts-rail-group > button:hover {
  color: #fffdf7;
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.94), rgba(13, 61, 53, 0.94));
}

.facts-rail-groups {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.facts-rail-groups > strong {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.facts-rail-group > button {
  justify-content: space-between;
  padding: 8px 9px;
}

.facts-rail-teamlist {
  display: grid;
  gap: 5px;
  padding: 6px 6px 8px 10px;
}

.facts-rail-teamlist span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.facts-rail-teamlist img,
.facts-team img,
.facts-match img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(4, 18, 17, 0.08);
}

.facts-panel {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.facts-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.facts-panel-head h3 {
  margin: 3px 0 0;
  font-size: 1.16rem;
  line-height: 1.15;
  color: var(--ink);
}

.facts-panel-head > span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 90, 69, 0.1);
  color: var(--green-dark);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 0.94rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.facts-group-filter {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.facts-group-filter button {
  flex: 0 0 auto;
  min-width: 34px;
  min-height: 32px;
  border: 1px solid rgba(222, 216, 200, 0.94);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.7);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.facts-group-filter button:hover,
.facts-group-filter button.active {
  border-color: rgba(15, 90, 69, 0.35);
  background: var(--green);
  color: #fff;
}

.facts-table {
  display: grid;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.facts-row-wrap {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(222, 216, 200, 0.9);
  border-radius: 10px;
  background: rgba(255, 253, 247, 0.58);
}

.facts-row {
  display: grid;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 52px;
  padding: 9px 10px;
}

.facts-table--fifa .facts-row { grid-template-columns: minmax(170px, 1.7fr) 72px 86px 70px 36px; }

.facts-table--elo .facts-row { grid-template-columns: minmax(170px, 1.7fr) 84px 72px 78px 36px; }

.facts-table--h2h .facts-row { grid-template-columns: minmax(230px, 1.9fr) 70px minmax(110px, 0.8fr) 88px 36px; }

.facts-table--odds .facts-row { grid-template-columns: minmax(170px, 1.7fr) 86px 84px; }

.facts-table--history .facts-row { grid-template-columns: minmax(170px, 1.7fr) 86px 100px 78px 36px; }

.facts-head {
  min-height: 32px;
  padding-top: 0;
  padding-bottom: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.facts-row:not(.facts-head) strong {
  color: var(--green-dark);
  font-weight: 950;
}

.facts-row span {
  min-width: 0;
}

.facts-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 900;
}

.facts-team span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facts-team em {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 90, 69, 0.1);
  color: var(--green-dark);
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 950;
}

.facts-match {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 900;
}

.facts-match span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.facts-match span:first-child {
  justify-content: flex-start;
}

.facts-match span:last-child {
  justify-content: flex-start;
}

.facts-match em {
  flex: 0 0 auto;
  color: var(--red);
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 950;
}

.facts-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(15, 90, 69, 0.18);
  border-radius: 8px;
  background: rgba(15, 90, 69, 0.08);
  color: var(--green-dark);
  cursor: pointer;
}

.facts-expand:hover {
  background: var(--green);
  color: #fff;
}

.facts-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  padding: 10px;
  border-top: 1px solid rgba(222, 216, 200, 0.82);
  background: rgba(244, 241, 232, 0.55);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.facts-detail span {
  min-width: 0;
}

.facts-detail strong {
  color: var(--ink);
}

.facts-good { color: var(--green); font-weight: 950; }

.facts-bad { color: var(--red); font-weight: 950; }

.facts-caveat {
  margin: 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(183, 145, 73, 0.13);
  color: #704f12;
  font-size: 0.88rem;
  font-weight: 800;
}

.facts-mobile-select {
  display: none;
}

@media (max-width: 820px) {
  .home-layout,
  .auth-layout {
    grid-template-columns: 1fr;
    padding: 24px 0 40px;
  }

  .public-backdrop img {
    object-position: 55% 50%;
    transform: scale(1.12);
  }

  .auth-layout {
    align-items: start;
  }

  .home-card,
  .auth-panel {
    padding: 22px;
  }

  .home-card h1 {
    max-width: 10ch;
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

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

  .countdown-unit {
    min-height: 82px;
  }

  .home-cta {
    justify-content: center;
  }

  .auth-copy {
    display: none;
  }

  .app-utility {
    min-height: 34px;
  }

  .utility-logout span {
    display: none;
  }

  .app-navbar {
    min-height: 54px;
    gap: 12px;
  }

  .app-main {
    padding: 22px 14px;
  }

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

  .admin-strip {
    display: grid;
  }

  .match-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .teams {
    justify-content: space-between;
  }

  .prediction-box {
    width: 110px;
  }

  .facts-heading {
    display: grid;
  }

  .facts-download {
    justify-self: start;
  }

  .facts-shell {
    grid-template-columns: 1fr;
  }

  .facts-rail {
    display: none;
  }

  .facts-mobile-select {
    display: grid;
    gap: 6px;
  }

  .facts-mobile-select span {
    font-family: "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green-dark);
  }

  .facts-mobile-select select {
    min-height: 42px;
    border: 1px solid rgba(222, 216, 200, 0.95);
    border-radius: 10px;
    background: rgba(255, 253, 247, 0.88);
    color: var(--ink);
    font-weight: 850;
  }

  .facts-panel {
    padding: 10px;
  }

  .facts-panel-head {
    display: grid;
  }

  .facts-panel-head > span {
    justify-self: start;
  }

  .facts-row {
    gap: 4px;
    padding: 9px 7px;
    font-size: 0.82rem;
  }

  .facts-row > span,
  .facts-row > strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .facts-table--fifa .facts-row,
  .facts-table--elo .facts-row,
  .facts-table--history .facts-row {
    min-width: 0;
  }

  .facts-table--fifa .facts-row {
    grid-template-columns: minmax(84px, 1fr) 42px 48px 42px 32px;
  }

  .facts-table--elo .facts-row {
    grid-template-columns: minmax(84px, 1fr) 48px 42px 46px 32px;
  }

  .facts-table--history .facts-row {
    grid-template-columns: minmax(78px, 1fr) 42px 42px 50px 32px;
  }

  .facts-table--h2h .facts-row {
    min-width: 0;
    grid-template-columns: minmax(82px, 1fr) 28px 50px 36px 32px;
  }

  .facts-table--odds .facts-row {
    min-width: 0;
    grid-template-columns: minmax(104px, 1fr) 66px 66px;
  }

  .facts-head {
    font-size: 0.78rem;
  }

  .facts-team {
    gap: 6px;
  }

  .facts-team img,
  .facts-match img {
    width: 18px;
    height: 18px;
  }

  .facts-match {
    display: grid;
    gap: 3px;
  }

  .facts-match em {
    display: none;
  }

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

@media (max-width: 700px) {
  .app-utility {
    display: none;
  }

  .app-nav,
  .app-nav-measure,
  .public-actions {
    display: none;
  }

  .navbar-lang {
    display: flex;
    margin-left: auto;
  }
}

/* ---- Open-phase home (onboarding) ---- */

.home-open-top {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .home-open-top { grid-template-columns: 1fr; }
}

.home-next-card { display: grid; gap: 16px; align-content: start; }

.home-next { display: grid; gap: 8px; align-content: start; }

.home-next .mini-kicker { display: inline-flex; align-items: center; gap: 5px; }

.home-next__empty { color: var(--muted); font-weight: 700; }

.home-next__match { display: grid; gap: 8px; }

.home-next__meta { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }

.home-next__meta span { color: var(--muted); font-weight: 700; text-transform: capitalize; }

.home-next__meta strong { color: var(--green); font-weight: 900; }

.home-close {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* shared teams row (next match + match-day rows) */

.md-teams { display: flex; align-items: center; gap: 8px; font-weight: 850; min-width: 0; flex-wrap: wrap; }

.md-teams img { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; flex: 0 0 auto; }

.md-teams__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.md-teams em { color: var(--muted); font-style: normal; }

/* checklist */

.home-checklist-card, .home-stats-card { display: grid; gap: 12px; align-content: start; }

.checklist-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.25;
}

.checklist-banner svg {
  flex: 0 0 auto;
}

.checklist-banner.incomplete {
  color: var(--red);
  border-color: rgba(196, 59, 59, 0.30);
  background: rgba(196, 59, 59, 0.12);
}

.checklist-banner.complete {
  color: var(--green-dark);
  border-color: rgba(15, 90, 69, 0.28);
  background: rgba(15, 90, 69, 0.12);
}

.home-checklist { display: grid; gap: 8px; }

.checklist-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-weight: 800;
}

.checklist-row:has(.info-hint:hover),
.checklist-row:has(.info-hint:focus-visible) {
  z-index: 20;
}

button.checklist-row { cursor: pointer; }

.checklist-row.is-clickable:hover,
.checklist-row.is-clickable:focus-visible {
  color: var(--green-dark);
  border-color: rgba(15, 90, 69, 0.34);
  background: rgba(15, 90, 69, 0.08);
  outline: none;
}

.checklist-row.is-clickable:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 90, 69, 0.14);
}

.checklist-row__label {
  flex: 0 1 auto;
  min-width: 0;
}

.checklist-row__spacer {
  flex: 1 1 auto;
  min-width: 8px;
}

.checklist-row .info-hint__bubble { flex: 0 0 auto; }

.checklist-row svg { flex: 0 0 auto; }

.checklist-row__go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -6px -6px -6px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.checklist-row__go:hover,
.checklist-row__go:focus-visible {
  color: var(--green-dark);
  background: rgba(15, 90, 69, 0.08);
  outline: none;
}

.checklist-row__arrow {
  flex: 0 0 auto;
  color: var(--muted);
}

.checklist-row.is-clickable:hover .checklist-row__arrow,
.checklist-row.is-clickable:focus-visible .checklist-row__arrow {
  color: var(--green-dark);
}

.checklist-row.done {
  color: var(--green-dark);
  border-color: rgba(15, 90, 69, 0.4);
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.1), var(--surface));
}

.checklist-row.done svg { color: var(--green); }

/* pool stats tiles */

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

.stat-tile {
  display: grid;
  gap: 2px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-align: center;
}

.stat-tile strong { font-size: 1.3rem; font-weight: 900; color: var(--ink); }

.stat-tile span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 750;
  display: inline-flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
}

.home-standing-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}

.standing-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.standing-rank {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.standing-rank > strong {
  font: 900 3rem/0.9 "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
  color: var(--green-dark);
}

.standing-delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-radius: 999px;
  padding: 3px 9px;
  font-weight: 900;
  font-size: 0.95rem;
}

.standing-delta.up { color: var(--green-dark); background: rgba(15, 90, 69, 0.14); }

.standing-delta.down { color: var(--red); background: rgba(196, 59, 59, 0.13); }

.standing-delta.flat { color: var(--muted); background: rgba(103, 115, 111, 0.12); }

.standing-rank__meta {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.standing-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 90, 69, 0.12);
  overflow: hidden;
}

.standing-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
}

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

.standing-tile__max {
  font-size: 0.95rem;
  font-weight: 800;
  font-style: normal;
  color: var(--muted);
}

/* random information panel */

.random-info { grid-column: 1 / -1; }

.random-info__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.random-info__head h2 { margin: 0; }

.random-info__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

@media (max-width: 720px) { .random-info__grid { grid-template-columns: 1fr; } }

.stat-block {
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(244, 241, 232, 0.5);
}

.stat-line { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }

.stat-line__label { flex: 1 1 auto; color: var(--muted); font-weight: 750; font-size: 0.86rem; min-width: 0; }

.stat-line__who { font-weight: 850; display: inline-flex; align-items: center; gap: 5px; text-align: right; }

.stat-line__who img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }

.stat-line__value { font-weight: 900; color: var(--blue); }

.stat-line__unit { color: var(--muted); font-size: 0.74rem; font-weight: 700; }

/* admin payments */

.admin-payments { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }

.admin-payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 241, 232, 0.48);
}

.admin-payment-row.paid { border-color: rgba(15, 90, 69, 0.4); }

.admin-payment-name { font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.admin-payment-row button { padding: 4px 12px; font-size: 0.8rem; }

/* admin roster (allowlist) */

.admin-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 16px;
}

.admin-add-row input,
.admin-add-row select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--surface);
  font: inherit;
}

.admin-add-row input { flex: 1 1 180px; min-width: 0; }

.admin-roster { display: grid; gap: 8px; }

.admin-roster-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(244, 241, 232, 0.48);
}

.admin-roster-who {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 160px;
  flex: 1 1 200px;
}

.admin-roster-email { color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.admin-roster-preds {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
  text-align: right;
}

.admin-roster-preds strong { font-size: 1.05rem; color: var(--green-dark); }

.admin-roster-bonus { color: var(--muted); font-size: 0.8rem; }

.admin-roster-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.admin-roster-actions .ghost-button {
  color: var(--green-dark);
  background: rgba(255, 253, 247, 0.9);
  border-color: rgba(15, 90, 69, 0.34);
  backdrop-filter: none;
}

.admin-roster-actions .ghost-button:hover,
.admin-roster-actions .ghost-button:focus-visible {
  color: #fffdf7;
  background: var(--green);
  border-color: var(--green);
}

.admin-roster-role {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  background: var(--surface);
  font: inherit;
  font-size: 0.82rem;
}

.admin-roster-actions button { padding: 4px 12px; font-size: 0.8rem; min-height: 38px; }

.admin-roster-actions button:disabled { opacity: 0.5; cursor: not-allowed; }

.admin-roster-delete { width: auto; margin: 0; color: var(--red); }

.status-pill {
  width: max-content;
  padding: 3px 11px;
  border-radius: 999px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.status-pill--active {
  color: var(--white-accent);
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.95), rgba(13, 61, 53, 0.95));
}

.status-pill--pending {
  color: #8a6d1f;
  background: rgba(245, 210, 116, 0.28);
  border: 1px solid rgba(245, 210, 116, 0.6);
}

.status-pill--none {
  color: var(--muted);
  background: rgba(103, 115, 111, 0.12);
  border: 1px solid var(--line);
}

/* ---- Rules page ---- */

.rules-overview {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(15, 90, 69, 0.16);
  border-radius: 10px;
  background: rgba(15, 90, 69, 0.08);
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1.45;
}

.rules-page .rules-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

.rules-page .rules-list li {
  position: relative;
  padding: 12px 16px 12px 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(244, 241, 232, 0.5);
  font-weight: 600;
  line-height: 1.4;
  counter-increment: rule;
}

.rules-page .rules-list li::before {
  content: counter(rule);
  position: absolute;
  left: 12px;
  top: 11px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: 700 0.8rem/1 "Bebas Neue", sans-serif;
}

.rule-details {
  display: grid;
  gap: 10px;
}

.rule-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  cursor: pointer;
}

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

.rule-details summary svg {
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform 0.14s ease;
}

.rule-details[open] summary svg {
  transform: rotate(180deg);
}

.rule-examples {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.rule-examples p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.payment-details {
  display: grid;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 112px;
}

.payment-details > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.payment-details__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.payment-details__card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.payment-details__card h3 {
  margin: 0 0 2px;
  color: var(--green-dark);
  font-size: 1.02rem;
  line-height: 1.1;
}

.payment-details__bank {
  margin: -4px 0 4px;
  color: var(--muted);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.payment-details__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.payment-details__row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.payment-details__row strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  text-align: right;
}

.payment-notify {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(245, 210, 116, 0.6);
  border-radius: 12px;
  background: rgba(245, 210, 116, 0.16);
}

.payment-notify__note {
  margin: 0 0 12px;
  color: #6f5410;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.5;
}

.payment-notify__pick-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
}

.payment-notify__methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-notify__methods .ghost-button {
  color: var(--green-dark);
  background: var(--surface);
  border-color: var(--line);
}

.payment-notify__done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 850;
}

.payment-notify__error {
  display: block;
  margin-top: 8px;
  color: var(--red);
  font-weight: 800;
  font-size: 0.86rem;
}

.privacy-note {
  margin: 18px 0 0;
  max-width: 980px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .payment-details__grid {
    grid-template-columns: 1fr;
  }

  .payment-details__row {
    display: grid;
    gap: 2px;
  }

  .payment-details__row strong {
    text-align: left;
  }
}

/* Rules acceptance */

.rules-accept { margin-top: 24px; }

.rules-accept__done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid rgba(15, 90, 69, 0.4);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.12), var(--surface));
  color: var(--green-dark);
  font-weight: 800;
}

.rules-accept__done svg { color: var(--green); }

/* checklist interactive rows + "what's missing" hint */

.checklist-row .checklist-row__hint { flex: 0 0 auto; color: var(--muted); }

/* ============================================================
   Quinielito assistant (chat) — cream-glass card, dark-glass
   conversation drawer. Mobile-first.
   ============================================================ */

.qnl-page {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 200px);
  min-height: 460px;
  max-height: 860px;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.qnl-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.qnl-bar-new { margin-left: auto; }

.qnl-persona-chip {
  display: inline-flex;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(15, 90, 69, 0.12);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

.qnl-icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.qnl-icon-btn:hover { background: rgba(15, 90, 69, 0.08); }

/* Messages */

.qnl-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qnl-turn { display: flex; gap: 10px; }

.qnl-turn--user { justify-content: flex-end; }

.qnl-turn--bot { justify-content: flex-start; align-items: flex-start; }

.qnl-turn-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: min(82%, 640px); }

/* Thought process (collapsible tool + reasoning timeline) */

.qnl-thinking {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 90, 69, 0.04);
  overflow: hidden;
}

.qnl-thinking.running { background: rgba(15, 90, 69, 0.06); }

.qnl-thinking-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
}

.qnl-thinking-toggle svg { color: var(--green); flex: 0 0 auto; }

.qnl-thinking-label { font-weight: 700; color: var(--ink); }

.qnl-thinking-count {
  margin-left: 2px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(15, 90, 69, 0.12);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 700;
}

.qnl-thinking-chev { margin-left: auto; transition: transform 0.18s ease; }

.qnl-thinking-chev.open { transform: rotate(180deg); }

.qnl-thinking-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 12px 10px;
}

.qnl-thinking-reason {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  white-space: pre-wrap;
  border-left: 2px solid var(--line);
  padding-left: 10px;
}

.qnl-thinking-step { display: flex; align-items: center; gap: 7px; font-size: 0.85rem; color: var(--ink); }

.qnl-thinking-step svg { color: var(--muted); flex: 0 0 auto; }

.qnl-thinking-step.done svg { color: var(--green); }

.qnl-thinking-step-name { font-weight: 600; }

.qnl-thinking-step-sum { color: var(--muted); }

.qnl-thinking-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }

.qnl-thinking-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 90, 69, 0.08);
  color: var(--green-dark);
  font-size: 0.76rem;
}

.qnl-thinking-chip svg { color: var(--green); }

.qnl-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.14), rgba(15, 90, 69, 0.04));
  border: 1px solid var(--glass-border);
}

.qnl-avatar img { width: 100%; height: 100%; object-fit: contain; }

.qnl-bubble {
  max-width: min(80%, 620px);
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.5;
  font-size: 0.96rem;
}

.qnl-bubble--user {
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.95), rgba(13, 61, 53, 0.95));
  color: var(--white-accent);
  border-bottom-right-radius: 5px;
}

.qnl-bubble--bot {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 5px;
}

.qnl-turn-col .qnl-bubble { max-width: 100%; }

.qnl-bubble-text { white-space: pre-wrap; word-break: break-word; }

/* Markdown inside assistant bubbles */

.qnl-md { font-size: 0.96rem; line-height: 1.5; }

.qnl-md-p { margin: 0 0 8px; }

.qnl-md-p:last-child { margin-bottom: 0; }

.qnl-md-ul, .qnl-md-ol { margin: 0 0 8px; padding-left: 20px; }

.qnl-md-li { margin: 2px 0; }

.qnl-md-h { font-weight: 800; margin: 10px 0 4px; }

.qnl-md-h:first-child { margin-top: 0; }

.qnl-md-h3 { font-weight: 700; margin: 8px 0 4px; }

.qnl-md-code {
  background: rgba(15, 90, 69, 0.08);
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 0.9em;
}

.qnl-md-pre {
  background: rgba(15, 90, 69, 0.06);
  padding: 10px 12px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0 0 8px;
}

.qnl-md-hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }

.qnl-md-table-wrap {
  overflow-x: auto;
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.qnl-md-table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }

.qnl-md-th {
  text-align: left;
  padding: 7px 11px;
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.1), rgba(15, 90, 69, 0.04));
  color: var(--green-dark);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.qnl-md-td { padding: 7px 11px; border-bottom: 1px solid var(--line); vertical-align: top; }

.qnl-md-table tbody tr:nth-child(even) { background: rgba(15, 90, 69, 0.03); }

.qnl-md-table tbody tr:last-child .qnl-md-td { border-bottom: 0; }

/* Suggested-prompt chips on the empty state */

.qnl-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 6px;
}

.qnl-suggestion {
  border: 1px solid var(--glass-border);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.86rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.qnl-suggestion:hover { border-color: var(--green); background: rgba(15, 90, 69, 0.06); }

.qnl-suggestion:disabled { opacity: 0.5; cursor: default; }

.qnl-cursor {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--green);
  animation: qnl-blink 1s steps(2) infinite;
}

@keyframes qnl-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.qnl-typing { display: inline-flex; gap: 4px; align-items: center; }

.qnl-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: qnl-bounce 1.2s infinite ease-in-out;
}

.qnl-typing span:nth-child(2) { animation-delay: 0.15s; }

.qnl-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes qnl-bounce { 0%, 80%, 100% { opacity: 0.35; } 40% { opacity: 1; } }

.qnl-spin { animation: qnl-spin 0.8s linear infinite; }

@keyframes qnl-spin { to { transform: rotate(360deg); } }

.qnl-activity {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
}

.qnl-activity svg { color: var(--green); }

/* Welcome */

.qnl-welcome {
  margin: auto;
  text-align: center;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px;
}

.qnl-welcome-badge {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.16), rgba(15, 90, 69, 0.05));
  border: 1px solid var(--glass-border);
}

.qnl-welcome-badge img { width: 90%; height: 90%; object-fit: contain; }

.qnl-welcome-title { margin: 0; color: var(--ink); }

.qnl-welcome-text { margin: 0; color: var(--muted); line-height: 1.5; }

/* Composer */

.qnl-composer {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  padding: 12px 16px;
}

.qnl-limit-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(196, 59, 59, 0.1);
  border: 1px solid rgba(196, 59, 59, 0.3);
  color: var(--red);
  font-size: 0.85rem;
}

.qnl-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 6px 6px 6px 12px;
}

.qnl-input-row--blocked { opacity: 0.6; }

.qnl-input {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  resize: none;
  outline: none;
  font: inherit;
  color: var(--ink);
  max-height: 160px;
  padding: 6px 0;
}

.qnl-send {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  color: #fff;
  cursor: pointer;
}

.qnl-send:disabled { opacity: 0.45; cursor: default; }

.qnl-send--stop { background: var(--red); }

.qnl-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.qnl-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Usage meter */

.qnl-usage-meter { display: flex; align-items: center; gap: 8px; color: var(--muted); }

.qnl-usage-bar { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; color: var(--muted); }

.qnl-usage-label { text-transform: uppercase; letter-spacing: 0.05em; }

.qnl-usage-track { width: 46px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }

.qnl-usage-fill { display: block; height: 100%; background: var(--green); }

.qnl-usage-bar--high .qnl-usage-fill { background: #d68a2e; }

.qnl-usage-bar--over .qnl-usage-fill { background: var(--red); }

.qnl-usage-num { font-variant-numeric: tabular-nums; }

/* Conversation drawer — dark glass over the page */

.qnl-sidebar-root {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
}

.qnl-sidebar-root.open { pointer-events: auto; visibility: visible; }

.qnl-sidebar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 18, 17, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.qnl-sidebar-root.open .qnl-sidebar-overlay { opacity: 1; }

.qnl-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 84vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(6, 26, 23, 0.97), rgba(6, 26, 23, 0.93));
  border-right: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

.qnl-sidebar-root.open .qnl-sidebar { transform: none; }

.qnl-sidebar-head { display: flex; align-items: center; justify-content: space-between; }

.qnl-sidebar-head .mini-kicker { color: #f5d274; }

.qnl-sidebar-close { color: rgba(255, 253, 247, 0.8); }

.qnl-sidebar-close:hover { background: rgba(255, 253, 247, 0.08); }

.qnl-new-btn { width: 100%; justify-content: center; }

.qnl-conv-list { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }

.qnl-conv-loading { display: grid; place-items: center; padding: 20px; color: rgba(255, 253, 247, 0.7); }

.qnl-conv-empty { color: rgba(255, 253, 247, 0.6); font-size: 0.85rem; padding: 8px 4px; }

.qnl-conv-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 30px 9px 11px;
  border-radius: 10px;
  cursor: pointer;
  color: rgba(255, 253, 247, 0.85);
}

.qnl-conv-item:hover { background: rgba(255, 253, 247, 0.07); }

.qnl-conv-item.active {
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.92), rgba(13, 61, 53, 0.92));
  color: #fff;
}

.qnl-conv-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.qnl-conv-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 253, 247, 0.08);
  border: 1px solid rgba(255, 253, 247, 0.18);
  flex: 0 0 auto;
}

.qnl-conv-title { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.qnl-conv-time { font-size: 0.72rem; color: rgba(255, 253, 247, 0.55); }

.qnl-conv-del {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: rgba(255, 253, 247, 0.5);
  cursor: pointer;
  opacity: 0;
  padding: 4px;
  border-radius: 6px;
}

.qnl-conv-item:hover .qnl-conv-del { opacity: 1; }

.qnl-conv-del:hover { color: #ff9b9b; background: rgba(255, 253, 247, 0.08); }

@media (max-width: 700px) {
  .qnl-page { height: calc(100dvh - 132px); min-height: 0; border-radius: 12px; }
  .qnl-messages { padding: 14px; }
  .qnl-bubble { max-width: 88%; }
}

/* Explorer */

.explorer-section {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
}

.explorer-picker {
  width: 100%;
}

.explorer-picker select {
  width: 100%;
  min-width: 0;
}

.explorer-intro {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

.explorer-toolbar {
  margin-top: 2px;
}

.explorer-day-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.explorer-day-pill {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--row);
  color: var(--ink);
  min-width: 132px;
  padding: 7px 11px;
  display: grid;
  justify-items: start;
  gap: 2px;
  cursor: pointer;
}

.explorer-day-pill span {
  font: 700 0.74rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.explorer-day-pill strong {
  font-size: 0.86rem;
  text-transform: capitalize;
}

.explorer-day-pill.active {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.94), rgba(13, 61, 53, 0.94));
  color: var(--white-accent);
}

.explorer-day-pill.active span {
  color: rgba(255, 253, 247, 0.84);
}

.explorer-day-matches {
  display: grid;
  gap: 12px;
}

.explorer-day-match,
.explorer-match-panel,
.explorer-user-panel {
  display: grid;
  gap: 12px;
}

.explorer-day-actions {
  display: flex;
  justify-content: flex-end;
}

.explorer-match-head {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(244, 241, 232, 0.44);
  padding: 12px;
}

.explorer-match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.explorer-scoreline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.explorer-scoreline strong {
  min-width: 84px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font: 700 1.18rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  background: var(--surface);
  color: var(--green-dark);
}

.explorer-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 800;
}

.explorer-team span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explorer-team img,
.explorer-team__blank {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.explorer-team__blank {
  background: repeating-linear-gradient(45deg, #e8e3d4, #e8e3d4 4px, #ded8c8 4px, #ded8c8 8px);
}

.explorer-pred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.explorer-pred-tile {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 9px 10px;
  display: grid;
  gap: 6px;
}

.explorer-pred-tile__top,
.explorer-pred-tile__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.explorer-pred-tile__name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 700;
}

.explorer-pred-tile__name em {
  font: 700 0.7rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(15, 90, 69, 0.12);
  border: 1px solid rgba(15, 90, 69, 0.18);
  border-radius: 999px;
  padding: 2px 6px;
}

.explorer-pred-tile__top strong {
  font: 700 1.04rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
}

.explorer-pred-tile__bottom span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.explorer-pred-tile__bottom b {
  border-radius: 999px;
  padding: 2px 7px;
  font: 700 0.78rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  background: rgba(15, 90, 69, 0.16);
  color: var(--green-dark);
}

.explorer-pred-tile.is-exact {
  border-color: rgba(15, 90, 69, 0.45);
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.16), rgba(15, 90, 69, 0.08));
}

.explorer-pred-tile.is-exact .explorer-pred-tile__top strong {
  font-weight: 900;
}

.explorer-pred-tile.is-outcome {
  border-color: rgba(183, 145, 73, 0.44);
  background: rgba(183, 145, 73, 0.13);
}

.explorer-pred-tile.is-outcome .explorer-pred-tile__bottom b {
  background: rgba(183, 145, 73, 0.22);
  color: #704f12;
}

.explorer-pred-tile.is-wrong {
  background: rgba(244, 241, 232, 0.64);
}

.explorer-pred-tile.is-unplayed {
  border-style: dashed;
}

.explorer-select {
  display: grid;
  gap: 6px;
}

.explorer-select select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 11px;
}

.explorer-user-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.explorer-user-head h3 {
  margin: 0;
  font-size: 1.24rem;
}

.explorer-user-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.explorer-user-stats strong {
  color: var(--ink);
}

.explorer-user-list {
  display: grid;
  gap: 7px;
}

.explorer-user-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 9px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.explorer-user-row__match {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.explorer-user-row__match span {
  color: var(--muted);
  font: 700 0.72rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.explorer-user-row__match strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explorer-user-row__scores {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.explorer-user-row__scores b {
  border-radius: 999px;
  padding: 2px 7px;
  font: 700 0.78rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  background: rgba(15, 90, 69, 0.16);
  color: var(--green-dark);
}

.explorer-user-row.is-exact {
  border-color: rgba(15, 90, 69, 0.45);
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.15), rgba(15, 90, 69, 0.08));
}

.explorer-user-row.is-outcome {
  border-color: rgba(183, 145, 73, 0.44);
  background: rgba(183, 145, 73, 0.13);
}

.explorer-user-row.is-outcome .explorer-user-row__scores b {
  background: rgba(183, 145, 73, 0.22);
  color: #704f12;
}

.explorer-user-row.is-unplayed {
  border-style: dashed;
}

@media (max-width: 700px) {
  .explorer-match-meta {
    display: grid;
    gap: 4px;
  }

  .explorer-scoreline {
    grid-template-columns: 1fr;
  }

  .explorer-scoreline strong {
    order: -1;
    width: 100%;
  }

  .explorer-pred-grid {
    grid-template-columns: 1fr;
  }

  .explorer-user-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* Simulator */

.sim-section {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
}

.sim-intro {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

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

.sim-match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  flex-wrap: wrap;
}

.sim-match-meta b {
  color: var(--green-dark);
}

.sim-match-scoreline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.sim-match-scoreline strong {
  min-width: 84px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font: 700 1.18rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  background: var(--surface);
  color: var(--green-dark);
}

.sim-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 800;
}

.sim-team span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sim-team img,
.sim-team__blank {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.sim-team__blank {
  background: repeating-linear-gradient(45deg, #e8e3d4, #e8e3d4 4px, #ded8c8 4px, #ded8c8 8px);
}

.sim-matrix-panel,
.sim-table-panel {
  display: grid;
  gap: 14px;
}

/* Tabs — full-width variant of the shared segmented control ----------- */

.sim-tabs {
  display: flex;
  width: 100%;
}

.sim-tabs button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
}

/* Score picker (hero) ------------------------------------------------- */

.sim-picker {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.sim-picker .predict-toolbar__label {
  margin: 0;
}

.sim-picker__grid {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
}

.sim-picker__sep {
  font: 900 1.8rem/1 "Bebas Neue", sans-serif;
  color: var(--muted);
  padding-bottom: 10px;
}

.sim-stepper {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}

.sim-stepper__label {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sim-stepper__control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sim-stepper__control button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--green-dark);
  cursor: pointer;
}

.sim-stepper__control button:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green);
}

.sim-stepper__control button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sim-stepper__value {
  min-width: 54px;
  text-align: center;
  font: 900 2.2rem/1 "Bebas Neue", sans-serif;
  color: var(--green-dark);
}

.sim-pred-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 7px 14px;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
}

.sim-pred-chip.is-active {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.14), rgba(15, 90, 69, 0.06));
  color: var(--green-dark);
}

/* Legend -------------------------------------------------------------- */

.sim-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.sim-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sim-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.sim-dot--exact {
  border-color: rgba(15, 90, 69, 0.45);
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.28), rgba(15, 90, 69, 0.14));
}

.sim-dot--outcome {
  border-color: rgba(183, 145, 73, 0.5);
  background: rgba(183, 145, 73, 0.24);
}

/* Movement chip ------------------------------------------------------- */

.sim-move {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-radius: 999px;
  padding: 2px 8px;
  font: 800 0.8rem/1.2 Inter, sans-serif;
  white-space: nowrap;
}

.sim-move--up {
  color: var(--green-dark);
  background: rgba(15, 90, 69, 0.14);
}

.sim-move--down {
  color: var(--red);
  background: rgba(196, 59, 59, 0.13);
}

.sim-move--flat {
  color: var(--muted);
  background: rgba(103, 115, 111, 0.12);
}

/* Standings ----------------------------------------------------------- */

.sim-standings-head {
  display: grid;
  gap: 8px;
}

.sim-standings-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
}

.sim-standings-head h3 strong {
  color: var(--ink);
}

.sim-standings {
  display: grid;
  gap: 6px;
}

.sim-standings__row {
  display: grid;
  grid-template-columns: 58px 34px minmax(0, 1fr) 44px 56px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.sim-standings__row.is-self {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.1), rgba(244, 241, 232, 0.55));
}

.sim-standings__row .sim-move {
  justify-self: start;
}

.sim-standings__pos {
  font: 800 1.2rem/1 "Bebas Neue", sans-serif;
  color: var(--green-dark);
  text-align: center;
}

.sim-standings__name {
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sim-standings__gain {
  text-align: center;
}

.sim-gain {
  display: inline-block;
  border-radius: 7px;
  padding: 2px 7px;
  font-weight: 900;
  font-size: 0.82rem;
}

.sim-gain.is-exact {
  color: var(--green-dark);
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.2), rgba(15, 90, 69, 0.1));
}

.sim-gain.is-outcome {
  color: #8a6321;
  background: rgba(183, 145, 73, 0.2);
}

.sim-standings__pts {
  font: 800 1.15rem/1 "Bebas Neue", sans-serif;
  color: var(--ink);
  text-align: right;
}

/* Matrix -------------------------------------------------------------- */

.sim-matrix-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, auto);
  gap: 12px;
  align-items: end;
}

.sim-player-select select {
  min-height: 46px;
}

.sim-range {
  display: inline-flex;
  gap: 6px;
}

.sim-range button {
  min-width: 56px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.sim-range button.active {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.92), rgba(13, 61, 53, 0.92));
  color: #fffdf7;
}

.sim-matrix-hint {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.sim-matrix-hint strong {
  color: var(--ink);
}

.sim-matrix-wrap {
  overflow-x: auto;
  padding-bottom: 2px;
}

.sim-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px;
  min-width: 560px;
}

.sim-matrix th {
  color: var(--muted);
  font: 700 0.9rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.sim-matrix tbody th {
  font-size: 1rem;
  color: var(--green-dark);
}

.sim-matrix__corner {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.sim-axis {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}

.sim-axis img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.sim-cell {
  position: relative;
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  cursor: pointer;
  padding: 6px;
  transition: transform 0.08s ease, box-shadow 0.12s ease;
}

.sim-cell:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(4, 18, 17, 0.16);
}

.sim-cell.is-exact {
  border-color: rgba(15, 90, 69, 0.45);
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.18), rgba(15, 90, 69, 0.08));
}

.sim-cell.is-outcome {
  border-color: rgba(183, 145, 73, 0.44);
  background: rgba(183, 145, 73, 0.13);
}

.sim-cell.is-wrong {
  background: rgba(244, 241, 232, 0.64);
}

.sim-cell.is-pred {
  box-shadow: 0 0 0 2px rgba(15, 90, 69, 0.4) inset;
}

.sim-cell__pred {
  position: absolute;
  top: 5px;
  right: 6px;
  color: var(--green);
}

.sim-cell__pos {
  font: 800 1.3rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  color: var(--green-dark);
}

@media (max-width: 720px) {
  .sim-matrix-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .sim-match-scoreline {
    grid-template-columns: 1fr;
  }

  .sim-match-scoreline strong {
    order: -1;
    width: 100%;
  }

  .sim-picker__grid {
    gap: 10px;
  }

  .sim-stepper__control button {
    width: 40px;
    height: 40px;
  }

  .sim-stepper__value {
    min-width: 42px;
    font-size: 1.9rem;
  }

  .sim-standings__row {
    grid-template-columns: 50px 28px minmax(0, 1fr) 40px 48px;
    gap: 8px;
    padding: 9px 10px;
  }

  /* Let the matrix fit the screen instead of scrolling sideways. */
  .sim-matrix-wrap {
    overflow-x: visible;
  }

  .sim-matrix {
    min-width: 0;
    border-spacing: 4px;
  }

  .sim-matrix tr > *:first-child {
    width: 1%;
    white-space: nowrap;
  }

  .sim-matrix th {
    font-size: 0.82rem;
  }

  .sim-cell {
    min-height: 50px;
    gap: 1px;
    padding: 4px 2px;
    border-radius: 9px;
  }

  .sim-cell__pos {
    font-size: 1.05rem;
  }

  .sim-cell__pred {
    top: 3px;
    right: 3px;
  }

  .sim-move {
    padding: 1px 5px;
    font-size: 0.72rem;
  }
}

/* ── Prediction form ─────────────────────────────────────────────────────── */

.predict-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 118px;
}

.predict-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.predict-head .mexico-stripe {
  width: 180px;
  margin-top: 8px;
}

.predict-head p {
  margin: 12px 0 0;
  color: var(--muted);
}

.predict-progress-stack {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.predict-progress {
  flex-shrink: 0;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(15, 90, 69, 0.10);
  border: 1px solid rgba(15, 90, 69, 0.20);
}

.predict-progress strong {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  color: var(--green-dark);
  line-height: 1;
}

.predict-progress span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.predict-intro {
  color: var(--muted);
  margin: 12px 0 16px;
}

.predict-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px;
  position: sticky;
  top: 100px;
  z-index: 5;
  border: 1px solid rgba(222, 216, 200, 0.86);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px rgba(23, 35, 33, 0.10);
}

.predict-toolbar__item {
  display: grid;
  gap: 6px;
  min-width: max-content;
}

.predict-toolbar__label {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  font-size: 0.95rem;
}

.predict-segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(244, 241, 232, 0.66);
}

.predict-segmented button {
  min-height: 36px;
  min-width: 98px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.predict-segmented button:hover {
  color: var(--green-dark);
  background: rgba(15, 90, 69, 0.08);
}

.predict-segmented button.active {
  color: var(--white-accent);
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.94), rgba(13, 61, 53, 0.94));
  box-shadow: 0 8px 18px rgba(4, 18, 17, 0.18);
}

.predict-sort-control select {
  min-height: 44px;
  min-width: 156px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 38px 0 12px;
  background: var(--surface);
  color: var(--green-dark);
  font: inherit;
  font-weight: 850;
  outline: none;
}

.predict-sort-control select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 90, 69, 0.14);
}

.predict-toggle {
  min-height: 44px;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.predict-toggle input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.predict-toggle.active {
  border-color: rgba(15, 90, 69, 0.34);
  color: var(--green-dark);
  background: rgba(15, 90, 69, 0.10);
}

.predict-tz-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.predict-tz-note .info-hint__bubble {
  left: auto;
  right: 0;
  transform: translateY(4px);
}

.predict-tz-note .info-hint:hover .info-hint__bubble,
.predict-tz-note .info-hint:focus-visible .info-hint__bubble {
  transform: translateY(0);
}

.info-hint {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  color: var(--green);
  cursor: help;
  outline: none;
}

.info-hint__bubble {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 240px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(8, 32, 28, 0.97), rgba(6, 26, 23, 0.97));
  color: var(--white-accent);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 16px 34px rgba(4, 18, 17, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 80;
  pointer-events: none;
}

.info-hint:hover .info-hint__bubble,
.info-hint:focus-visible .info-hint__bubble {
  z-index: 90;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.predict-group {
  margin-bottom: 20px;
}

.predict-group-title {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-dark);
  font-size: 1.15rem;
  margin: 18px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.predict-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 12px;
}

.match-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(23, 35, 33, 0.05);
}

.match-card__when {
  display: grid;
  text-align: center;
  gap: 2px;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

.match-card__date {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-weight: 800;
}

.match-card__time {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--green-dark);
}

.match-card__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.team-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.team-flag--home {
  flex-direction: row-reverse;
  text-align: right;
}

.team-flag img,
.team-flag__blank {
  width: 26px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.team-flag__blank {
  background: repeating-linear-gradient(45deg, #e8e3d4, #e8e3d4 4px, #ded8c8 4px, #ded8c8 8px);
}

.team-flag__name {
  font-weight: 850;
  font-size: 0.9rem;
  min-width: 0;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.match-card__score {
  display: flex;
  align-items: center;
  gap: 4px;
}

.match-card__score input {
  width: 40px;
  min-height: 44px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 900;
  padding: 0;
  border-radius: 8px;
}

.match-card__score input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 90, 69, 0.15);
}

.match-card__dash {
  color: var(--muted);
  font-weight: 900;
}

.match-card__venue {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px dashed var(--line);
}

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

.match-list-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(23, 35, 33, 0.04);
}

.match-list-row__when {
  display: grid;
  gap: 1px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.match-list-row__when strong {
  color: var(--green-dark);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
}

.match-list-row__teams {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.match-list-row__teams .team-flag--home {
  justify-content: flex-end;
}

.match-list-row__vs {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.match-list-row__score {
  justify-content: center;
}

.match-list-row__venue {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

/* Bonus picks */

.predict-bonus-card {
  margin-top: 24px;
  padding: clamp(16px, 2.6vw, 22px);
  border: 1px solid rgba(15, 90, 69, 0.20);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(15, 90, 69, 0.08), rgba(255, 253, 247, 0.70)),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 253, 247, 0.72), 0 12px 28px rgba(23, 35, 33, 0.08);
}

.predict-bonus-card__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.predict-bonus-card__head h3 {
  margin: 2px 0 0;
  color: var(--green-dark);
  font-size: 1.35rem;
  line-height: 1.1;
}

.predict-progress--compact {
  padding: 8px 12px;
}

.predict-bonus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bonus-select__label {
  display: block;
  font-weight: 800;
  font-size: 0.83rem;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.bonus-select__control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 4px 12px;
}

.bonus-select__control:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 90, 69, 0.14);
}

.bonus-select__flag img,
.bonus-select__flag .team-flag__blank {
  width: 32px;
  height: 22px;
  border-radius: 3px;
  object-fit: cover;
  display: block;
}

.bonus-select select {
  flex: 1;
  min-height: 54px;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 800;
  line-height: 1.25;
  outline: none;
}

/* Admin reuses simpler rows */

.predict-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 241, 232, 0.48);
  margin-bottom: 6px;
}

.predict-team {
  font-weight: 850;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.predict-team.home {
  text-align: right;
}

.predict-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.predict-inputs input {
  width: 42px;
  min-height: 44px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 900;
  padding: 0;
}

.admin-inline label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  font-size: 0.83rem;
  color: var(--green-dark);
}

.admin-inline select,
.admin-inline input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--surface);
  font: inherit;
}

.predict-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.predict-actions .ghost-button {
  text-decoration: none;
}

.predict-saved {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(15, 90, 69, 0.10);
  color: var(--green-dark);
  font-weight: 800;
}

.predict-sticky-bar {
  position: fixed;
  left: clamp(14px, 5vw, 58px);
  right: clamp(14px, 5vw, 58px);
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 24;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(255, 253, 247, 0.90));
  box-shadow: 0 24px 60px rgba(4, 18, 17, 0.30);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.predict-unsaved-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(196, 59, 59, 0.28);
  border-radius: 10px;
  background: rgba(196, 59, 59, 0.12);
  color: var(--red);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.25;
}

.predict-unsaved-banner svg {
  flex: 0 0 auto;
}

.predict-sticky-summary {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.predict-sticky-summary span {
  white-space: nowrap;
}

.predict-sticky-summary strong {
  color: var(--green-dark);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.26rem;
  font-weight: 400;
  line-height: 1;
}

.predict-sticky-message {
  min-width: 0;
  color: var(--green-dark);
  font-style: normal;
  font-weight: 850;
}

.predict-sticky-message.error {
  color: var(--red);
}

.predict-sticky-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.predicted-table-tab {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 28;
  width: 40px;
  height: 138px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  padding: 10px 7px;
  color: var(--white-accent);
  background: linear-gradient(180deg, rgba(8, 32, 28, 0.94), rgba(6, 26, 23, 0.94));
  box-shadow: 0 18px 40px rgba(4, 18, 17, 0.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(-50%);
}

.predicted-table-tab__content {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transform: rotate(-90deg);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.predicted-table-tab:hover,
.predicted-table-tab.active {
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.96), rgba(13, 61, 53, 0.96));
}

.predicted-table-scrim {
  position: fixed;
  inset: 0;
  z-index: 32;
  pointer-events: none;
  background: rgba(4, 18, 17, 0);
  transition: background 0.18s ease;
}

.predicted-table-scrim.open {
  pointer-events: auto;
  background: rgba(4, 18, 17, 0.34);
}

.predicted-table-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 33;
  width: min(900px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 18px;
  border-left: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(255, 253, 247, 0.90));
  box-shadow: -24px 0 60px rgba(4, 18, 17, 0.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateX(104%);
  transition: transform 0.22s ease;
}

.predicted-table-drawer.open {
  transform: translateX(0);
}

.predicted-table-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.predicted-table-head h3 {
  margin: 2px 0 4px;
  color: var(--green-dark);
  font-size: 1.38rem;
  line-height: 1.05;
}

.predicted-table-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.predicted-table-close {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(15, 90, 69, 0.18);
  border-radius: 10px;
  color: var(--green-dark);
  background: rgba(15, 90, 69, 0.08);
}

.predicted-table-close:hover {
  background: rgba(15, 90, 69, 0.14);
}

.predicted-table-captured {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 90, 69, 0.18);
  border-radius: 12px;
  background: rgba(15, 90, 69, 0.08);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.predicted-table-captured strong {
  color: var(--green-dark);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
}

.predicted-table-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.predicted-table-legend span {
  width: 24px;
  height: 12px;
  border: 1px solid rgba(15, 90, 69, 0.24);
  border-radius: 999px;
  background: rgba(15, 90, 69, 0.12);
  box-shadow: inset 3px 0 0 rgba(15, 90, 69, 0.50);
}

.predicted-table-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(244, 241, 232, 0.52);
  font-weight: 850;
  text-align: center;
}

.predicted-table-groups {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding-right: 2px;
}

.predicted-group-table {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(222, 216, 200, 0.92);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.78);
}

.predicted-group-table__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.predicted-group-table__head h4 {
  margin: 0;
  color: var(--green-dark);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.predicted-group-table__head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.predicted-table {
  display: grid;
}

.predicted-table__row {
  display: grid;
  grid-template-columns: 34px minmax(210px, 1fr) repeat(8, minmax(34px, 42px));
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 4px 6px;
  border-radius: 8px;
  border-top: 1px solid rgba(222, 216, 200, 0.78);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
}

.predicted-table__row:first-child {
  border-top: 0;
}

.predicted-table__row span,
.predicted-table__row strong {
  min-width: 0;
  text-align: center;
}

.predicted-table__row--head {
  min-height: 28px;
  color: var(--muted);
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.predicted-table__row.is-qualified {
  border-color: rgba(15, 90, 69, 0.18);
  background: rgba(15, 90, 69, 0.09);
  box-shadow: inset 3px 0 0 rgba(15, 90, 69, 0.48);
}

.predicted-table__team {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  text-align: left !important;
}

.predicted-table__team img,
.predicted-table__flag-blank {
  width: 22px;
  height: 15px;
  flex: 0 0 auto;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.predicted-table__flag-blank {
  background: repeating-linear-gradient(45deg, #e8e3d4, #e8e3d4 4px, #ded8c8 4px, #ded8c8 8px);
}

.predicted-table__team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Admin ───────────────────────────────────────────────────────────────── */

.admin-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-layout > .section-block {
  min-width: 0;
}

.admin-hero-card,
.admin-layout > .section-block:nth-child(n + 4) {
  grid-column: 1 / -1;
}

.admin-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-results {
  display: grid;
  gap: 6px;
}

.admin-results .predict-row {
  grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr) auto;
}

.admin-results .ghost-button {
  color: var(--green-dark);
  background: rgba(255, 253, 247, 0.84);
  border-color: rgba(15, 90, 69, 0.28);
}

.admin-results .ghost-button:hover {
  color: #fffdf7;
  background: var(--green);
  border-color: var(--green);
}

@media (max-width: 820px) {
  .predict-layout {
    grid-template-columns: 1fr;
  }

  .predict-head,
  .predict-progress-stack {
    display: grid;
    justify-content: stretch;
  }

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

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

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

  /* Mobile match card: time on top, teams stacked around centred score */
  .match-card--mobile {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .match-card--mobile .match-card__when {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    padding-right: 0;
    border-right: 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
  }

  .match-card--mobile .match-card__teams {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .team-flag__name {
    font-size: 0.84rem;
  }

  .predict-bonus {
    grid-template-columns: 1fr;
  }

  .predict-toolbar {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
  }

  .predict-toolbar__item,
  .predict-sort-control select,
  .predict-toggle {
    width: 100%;
    min-width: 0;
  }

  .predict-segmented {
    width: 100%;
  }

  .predict-segmented button {
    flex: 1;
    min-width: 0;
  }

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

  .match-list-row__when {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .match-list-row__teams {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .match-list-row__teams .team-flag,
  .match-list-row__teams .team-flag--home {
    justify-content: flex-start;
    flex-direction: row;
    text-align: left;
  }

  .match-list-row__vs {
    display: none;
  }

  .match-list-row__venue {
    grid-column: 1 / -1;
  }

  .predict-bonus-card__head,
  .predict-sticky-bar {
    display: grid;
  }

  .predict-sticky-bar {
    grid-template-columns: 1fr;
  }

  .predict-sticky-actions {
    justify-content: stretch;
  }

  .predict-sticky-actions .solid-button {
    flex: 1 1 120px;
  }

  .predicted-table-tab {
    top: 50%;
    right: 0;
    bottom: auto;
    left: auto;
    width: 42px;
    height: 154px;
    border-right: 0;
    border-left: 1px solid var(--glass-border);
    border-radius: 14px 0 0 14px;
    padding: 12px 8px;
    transform: translateY(-50%);
  }

  .predicted-table-tab__content {
    font-size: 0.96rem;
    gap: 8px;
  }

  .predicted-table-drawer {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 0;
    width: auto;
    max-height: min(78vh, 720px);
    border-left: 1px solid var(--glass-border);
    border-radius: 18px 18px 0 0;
    transform: translateY(104%);
  }

  .predicted-table-drawer.open {
    transform: translateY(0);
  }

  .predicted-group-table {
    padding: 10px 8px;
  }

  .predicted-table__row {
    grid-template-columns: 22px minmax(54px, 1fr) repeat(8, minmax(17px, 22px));
    gap: 2px;
    min-height: 30px;
    padding: 2px;
    font-size: 0.64rem;
  }

  .predicted-table__row--head {
    min-height: 24px;
    font-size: 0.64rem;
    letter-spacing: 0.02em;
  }

  .predicted-table__team {
    gap: 4px;
  }

  .predicted-table__team img,
  .predicted-table__flag-blank {
    width: 16px;
    height: 11px;
    border-radius: 2px;
  }

  .admin-results .predict-row {
    grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  }

  .admin-results .predict-row .ghost-button {
    grid-column: 1 / -1;
  }

  .leader-row {
    grid-template-columns: 30px minmax(0, 1fr) 36px 36px 46px;
    gap: 6px;
  }
}

/* Theme toggle */

.theme-toggle {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 253, 247, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.06);
  color: rgba(255, 253, 247, 0.86);
}

.theme-toggle:hover {
  color: #fffdf7;
  background: rgba(255, 253, 247, 0.12);
}

/* Shared tokenized surfaces */

.glass-card,
.summary-card,
.section-block,
.profile-block {
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.match-card,
.match-list-row,
.bonus-select__control,
.profile-field input,
.profile-field select,
.admin-inline input,
.admin-inline select,
.predict-inputs input,
.match-card__score input,
.prediction-box input,
.stat-tile,
.checklist-row {
  background: var(--field);
  color: var(--ink);
}

.predict-toolbar,
.predict-sticky-bar,
.predicted-table-drawer {
  background: var(--glass);
  box-shadow: var(--shadow-card);
}

.predict-segmented,
.facts-rail-buttons,
.facts-rail-groups,
.facts-panel,
.facts-row-wrap,
.predicted-group-table,
.profile-readonly,
.predict-row,
.stat-block,
.admin-payment-row,
.rules-page .rules-list li,
.rules-overview {
  background: var(--card-soft);
}

.predict-progress,
.predict-toggle.active,
.predict-saved,
.predicted-table-captured,
.predicted-table-close,
.facts-panel-head > span,
.facts-team em,
.facts-expand,
.rules-accept__done,
.checklist-row.done {
  background: var(--green-soft);
  border-color: var(--green-line);
}

.display-title,
.predict-group-title,
.predict-toolbar__label,
.predict-progress strong,
.predict-sort-control select,
.predict-sticky-summary strong,
.predict-sticky-message,
.match-card__time,
.match-list-row__when strong,
.predict-bonus-card__head h3,
.bonus-select__label,
.admin-inline label,
.predicted-table-head h3,
.predicted-table-close,
.predicted-table-captured strong,
.predicted-group-table__head h4,
.profile-field,
.profile-block span,
.facts-rail-groups > strong,
.facts-row:not(.facts-head) strong,
.facts-expand,
.rules-overview,
.rules-accept__done,
.checklist-row.done {
  color: var(--green-dark);
}

.profile-account-row strong,
.facts-panel-head h3,
.facts-detail strong,
.stat-tile strong,
.predicted-table__row,
.profile-field input,
.profile-field select,
.bonus-select select,
.admin-inline input,
.admin-inline select {
  color: var(--ink);
}

.admin-strip,
.facts-caveat,
.payment-badge.pending {
  color: var(--gold-ink);
  background: var(--gold-soft);
}

.predict-bonus-card {
  border-color: var(--green-line);
  background:
    linear-gradient(180deg, var(--green-soft), rgba(15, 90, 69, 0.02)),
    var(--card-solid);
  box-shadow: var(--shadow-soft);
}

.payment-badge.paid,
.nav-item.active,
.utility-profile.active,
.lang-option.active,
.predict-segmented button.active,
.facts-group-filter button.active,
.facts-group-filter button:hover,
.facts-rail-buttons button:hover,
.facts-rail-buttons button.active,
.facts-rail-group > button:hover,
.facts-expand:hover {
  color: var(--white-accent);
  background: linear-gradient(180deg, rgba(15, 90, 69, 0.96), rgba(13, 61, 53, 0.96));
}

/* Dark theme: graphite surfaces over the existing World Cup backdrop */

:root[data-theme="dark"] body {
  background: var(--paper);
}

:root[data-theme="dark"] .app-backdrop img,
:root[data-theme="dark"] .public-backdrop img {
  filter: saturate(0.92) contrast(1.03) brightness(0.62);
}

:root[data-theme="dark"] .app-layout::before {
  background:
    linear-gradient(90deg, rgba(5, 15, 13, 0.92), rgba(8, 20, 18, 0.76)),
    linear-gradient(180deg, rgba(5, 15, 13, 0.44), rgba(5, 15, 13, 0.86));
}

:root[data-theme="dark"] .app-utility {
  background: rgba(4, 14, 12, 0.86);
}

:root[data-theme="dark"] .app-navbar,
:root[data-theme="dark"] .app-drawer,
:root[data-theme="dark"] .lang-dropdown-panel,
:root[data-theme="dark"] .nav-more-panel {
  background: rgba(5, 18, 16, 0.78);
}

:root[data-theme="dark"] .app-header h1 {
  color: #fffdf7;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.52), 0 12px 28px rgba(0, 0, 0, 0.44);
}

:root[data-theme="dark"] .display-title {
  color: #d9f6e9;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), 0 10px 24px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .glass-card,
:root[data-theme="dark"] .summary-card,
:root[data-theme="dark"] .section-block,
:root[data-theme="dark"] .profile-block {
  border-color: var(--glass-border);
}

:root[data-theme="dark"] .predict-toolbar,
:root[data-theme="dark"] .predict-sticky-bar,
:root[data-theme="dark"] .predicted-table-drawer {
  border-color: var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

:root[data-theme="dark"] .predict-unsaved-banner {
  border-color: rgba(238, 106, 106, 0.34);
  background: rgba(238, 106, 106, 0.14);
}

:root[data-theme="dark"] .predict-segmented,
:root[data-theme="dark"] .match-card,
:root[data-theme="dark"] .match-list-row,
:root[data-theme="dark"] .bonus-select__control,
:root[data-theme="dark"] .profile-field input,
:root[data-theme="dark"] .profile-field select,
:root[data-theme="dark"] .admin-inline input,
:root[data-theme="dark"] .admin-inline select,
:root[data-theme="dark"] .predict-inputs input,
:root[data-theme="dark"] .match-card__score input,
:root[data-theme="dark"] .prediction-box input,
:root[data-theme="dark"] .stat-tile,
:root[data-theme="dark"] .checklist-row,
:root[data-theme="dark"] .facts-rail-buttons,
:root[data-theme="dark"] .facts-rail-groups,
:root[data-theme="dark"] .facts-panel,
:root[data-theme="dark"] .facts-row-wrap,
:root[data-theme="dark"] .predicted-group-table,
:root[data-theme="dark"] .profile-readonly,
:root[data-theme="dark"] .predict-row,
:root[data-theme="dark"] .stat-block,
:root[data-theme="dark"] .admin-payment-row,
:root[data-theme="dark"] .rules-page .rules-list li,
:root[data-theme="dark"] .rules-overview {
  border-color: var(--line);
}

:root[data-theme="dark"] .predict-segmented button:hover {
  color: var(--green-dark);
  background: rgba(45, 168, 121, 0.12);
}

:root[data-theme="dark"] .predict-toggle {
  background: var(--field);
  border-color: var(--line);
  color: var(--muted);
}

:root[data-theme="dark"] .facts-group-filter button {
  color: #d7e7df;
  background: var(--field);
  border-color: var(--line);
}

:root[data-theme="dark"] .facts-group-filter button:hover {
  color: var(--white-accent);
  background: rgba(45, 168, 121, 0.34);
  border-color: rgba(45, 168, 121, 0.56);
}

:root[data-theme="dark"] .facts-group-filter button.active {
  color: var(--white-accent);
  background: linear-gradient(180deg, rgba(45, 168, 121, 0.96), rgba(15, 90, 69, 0.96));
  border-color: rgba(88, 205, 155, 0.64);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.20);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select {
  background: var(--field);
  color: var(--ink);
}

:root[data-theme="dark"] input::placeholder {
  color: rgba(169, 184, 178, 0.72);
}

:root[data-theme="dark"] .notice {
  color: #ffb8b8;
  background: rgba(238, 106, 106, 0.12);
  border-color: rgba(238, 106, 106, 0.30);
}

:root[data-theme="dark"] .text-link {
  color: var(--green-dark);
}

:root[data-theme="dark"] .predict-bonus-card,
:root[data-theme="dark"] .checklist-row.done,
:root[data-theme="dark"] .rules-accept__done {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .predicted-table__row {
  border-top-color: var(--line);
}

:root[data-theme="dark"] .predicted-table__row.is-qualified {
  background: rgba(45, 168, 121, 0.13);
  box-shadow: inset 3px 0 0 rgba(45, 168, 121, 0.58);
}

:root[data-theme="dark"] .predicted-table-legend span {
  background: rgba(45, 168, 121, 0.13);
  box-shadow: inset 3px 0 0 rgba(45, 168, 121, 0.58);
}

:root[data-theme="dark"] .predicted-table-empty {
  background: var(--row);
  border-color: var(--line);
}

:root[data-theme="dark"] .facts-detail,
:root[data-theme="dark"] .rule-examples {
  background: rgba(8, 20, 18, 0.26);
  border-color: var(--line);
}

:root[data-theme="dark"] .admin-results .ghost-button {
  color: var(--green-dark);
  background: rgba(45, 168, 121, 0.10);
  border-color: var(--green-line);
}

:root[data-theme="dark"] .admin-roster-actions .ghost-button {
  color: var(--green-dark);
  background: rgba(45, 168, 121, 0.10);
  border-color: var(--green-line);
}

:root[data-theme="dark"] .admin-results .ghost-button:hover {
  color: var(--white-accent);
  background: var(--green);
  border-color: var(--green);
}

:root[data-theme="dark"] .admin-roster-actions .ghost-button:hover,
:root[data-theme="dark"] .admin-roster-actions .ghost-button:focus-visible {
  color: var(--white-accent);
  background: var(--green);
  border-color: var(--green);
}

:root[data-theme="dark"] .team-flag__blank,
:root[data-theme="dark"] .predicted-table__flag-blank {
  background: repeating-linear-gradient(45deg, #26342f, #26342f 4px, #1a2723 4px, #1a2723 8px);
}

/* Dark-mode polish: Explorer / Leaderboard / Simulator */

:root[data-theme="dark"] .leader-row,
:root[data-theme="dark"] .leader-pick,
:root[data-theme="dark"] .leader-expand,
:root[data-theme="dark"] .leaderboard-daychip,
:root[data-theme="dark"] .explorer-match-head,
:root[data-theme="dark"] .explorer-pred-tile,
:root[data-theme="dark"] .explorer-user-row,
:root[data-theme="dark"] .explorer-day-pill,
:root[data-theme="dark"] .sim-match-card,
:root[data-theme="dark"] .sim-standings__row,
:root[data-theme="dark"] .sim-cell,
:root[data-theme="dark"] .sim-stepper__control button,
:root[data-theme="dark"] .sim-range button,
:root[data-theme="dark"] .sim-pred-chip {
  background: linear-gradient(180deg, rgba(22, 35, 32, 0.92), rgba(16, 28, 25, 0.9));
  border-color: rgba(212, 222, 216, 0.24);
}

:root[data-theme="dark"] .leader-row.is-self,
:root[data-theme="dark"] .explorer-pred-tile.is-exact,
:root[data-theme="dark"] .explorer-user-row.is-exact,
:root[data-theme="dark"] .sim-cell.is-exact {
  background: linear-gradient(180deg, rgba(45, 168, 121, 0.24), rgba(18, 40, 33, 0.92));
  border-color: rgba(88, 205, 155, 0.42);
}

:root[data-theme="dark"] .explorer-pred-tile.is-outcome,
:root[data-theme="dark"] .explorer-user-row.is-outcome,
:root[data-theme="dark"] .sim-cell.is-outcome {
  background: linear-gradient(180deg, rgba(183, 145, 73, 0.24), rgba(35, 30, 20, 0.9));
  border-color: rgba(245, 210, 116, 0.36);
}

:root[data-theme="dark"] .explorer-pred-tile.is-wrong,
:root[data-theme="dark"] .sim-cell.is-wrong {
  background: linear-gradient(180deg, rgba(34, 43, 40, 0.9), rgba(22, 31, 29, 0.88));
}

:root[data-theme="dark"] .leader-name,
:root[data-theme="dark"] .leader-pick__pred,
:root[data-theme="dark"] .leader-pick__name,
:root[data-theme="dark"] .explorer-team span,
:root[data-theme="dark"] .explorer-user-row__match strong,
:root[data-theme="dark"] .explorer-pred-tile__name,
:root[data-theme="dark"] .sim-standings__name,
:root[data-theme="dark"] .sim-stepper__label {
  color: var(--ink);
}

:root[data-theme="dark"] .leader-points > strong,
:root[data-theme="dark"] .sim-standings__pts,
:root[data-theme="dark"] .sim-cell__pos {
  color: #e7fff5;
}

:root[data-theme="dark"] .leader-pick__actual {
  color: #8dc6ff;
}

:root[data-theme="dark"] .explorer-day-pill span,
:root[data-theme="dark"] .explorer-pred-tile__bottom span,
:root[data-theme="dark"] .explorer-match-meta,
:root[data-theme="dark"] .sim-match-meta,
:root[data-theme="dark"] .leader-eff,
:root[data-theme="dark"] .leader-pick__time {
  color: #b5c5bf;
}

:root[data-theme="dark"] .explorer-team__blank,
:root[data-theme="dark"] .sim-team__blank {
  background: repeating-linear-gradient(45deg, #2a3a35, #2a3a35 4px, #1e2c28 4px, #1e2c28 8px);
}

:root[data-theme="dark"] .sim-range button.active,
:root[data-theme="dark"] .sim-pred-chip.is-active {
  border-color: rgba(88, 205, 155, 0.62);
  background: linear-gradient(180deg, rgba(45, 168, 121, 0.92), rgba(15, 90, 69, 0.95));
  color: #fffdf7;
}

:root[data-theme="dark"] .google-button {
  background: #f8fbff;
  color: #123;
}
