:root {
  --ink: #06111f;
  --panel: #0d1c2d;
  --muted: #6a7582;
  --paper: #f7f5ed;
  --line: rgba(255, 255, 255, 0.16);
  --green: #19c982;
  --lime: #e7ff6f;
  --gold: #f2c94c;
  --coral: #ff6b5f;
  --blue: #5b8cff;
  --white: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

button,
input,
select {
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
}

.assigned-team-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  color: var(--ink);
  background: rgba(231, 255, 111, 0.18);
  border: 1px solid rgba(6, 17, 31, 0.12);
  border-radius: 8px;
}

.assigned-team-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.assigned-team-card strong {
  font-size: 1rem;
}

.file-warning {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 18px;
  color: #06111f;
  background: #e7ff6f;
  font-weight: 900;
  text-align: center;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  padding: 14px 16px;
  color: var(--ink);
  background: var(--lime);
  border: 1px solid rgba(6, 17, 31, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(6, 17, 31, 0.24);
  font-weight: 900;
  line-height: 1.35;
  animation: toast-in 180ms ease-out;
}

.toast small {
  display: block;
  margin-top: 4px;
  color: rgba(6, 17, 31, 0.68);
  font-weight: 800;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-view] {
  display: none;
}

body.route-inicio [data-view="hero"],
body.route-inicio [data-view="ticker"],
body.route-inicio [data-view="como-funciona"],
body.route-inicio [data-view="premios"],
body.route-como-funciona [data-view="como-funciona"],
body.route-premios [data-view="premios"],
body.route-ranking [data-view="ranking"],
body.route-reserva [data-view="reserva"],
body.route-login [data-view="login"],
body.route-recuperar [data-view="recuperar"],
body.route-restablecer [data-view="restablecer"],
body.route-dashboard [data-view="dashboard"],
body.route-predicciones [data-view="dashboard"],
body.route-retos [data-view="dashboard"],
body.route-grupos [data-view="dashboard"],
body.route-perfil [data-view="dashboard"],
body.route-admin [data-view="admin"] {
  display: revert;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(6, 17, 31, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(231, 255, 111, 0.13);
}

.nav {
  gap: 22px;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.76);
}

.nav a,
.nav button,
.session-badge {
  flex: 0 0 auto;
}

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

.nav a.is-active-route {
  color: var(--ink);
  background: var(--lime);
  border-color: transparent;
}

.nav-action {
  padding: 10px 14px;
  color: var(--ink) !important;
  background: var(--lime);
  border-radius: 999px;
  font-weight: 800;
}

.form-link {
  display: inline-flex;
  width: fit-content;
  color: var(--lime);
  font-weight: 800;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.password-field input {
  min-width: 0;
}

.password-toggle {
  min-height: 50px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--lime);
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.session-badge {
  padding: 9px 12px;
  color: var(--lime);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 900;
}

.nav-logout {
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 36px;
  min-height: calc(100vh - 78px);
  padding: clamp(40px, 7vw, 96px) clamp(18px, 5vw, 72px) 32px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 17, 31, 0.97), rgba(13, 31, 48, 0.9)),
    radial-gradient(circle at 26% 22%, rgba(255, 107, 95, 0.25), transparent 34%),
    radial-gradient(circle at 78% 22%, rgba(91, 140, 255, 0.24), transparent 30%);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(6, 17, 31, 0.3), transparent 48%),
    linear-gradient(0deg, rgba(6, 17, 31, 0.22), transparent 42%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.3rem, 8vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.5vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.hero-lede,
.feature-copy p,
.cta-copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.btn-primary {
  color: var(--ink);
  background: var(--lime);
  box-shadow: 0 18px 38px rgba(231, 255, 111, 0.18);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
}

.btn-whatsapp {
  color: var(--ink);
  background: #25d366;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.12);
}

.btn-full {
  width: 100%;
}

.btn-disabled {
  width: 100%;
  color: rgba(255, 255, 255, 0.64);
  background: #223149;
  cursor: not-allowed;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
  margin: 0;
}

.hero-stats div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-stats dt {
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.78rem;
}

.hero-stats dd {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-weight: 900;
}

.hero-visual {
  position: relative;
  z-index: 1;
  align-self: center;
  min-height: 580px;
}

.hero-visual img {
  width: 100%;
  height: min(74vh, 680px);
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.countdown-card,
.floating-ticket {
  position: absolute;
  padding: 18px 20px;
  color: var(--ink);
  background: rgba(247, 245, 237, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.countdown-card {
  right: 18px;
  bottom: 42px;
}

.floating-ticket {
  left: 18px;
  top: 28px;
}

.countdown-card span,
.floating-ticket span {
  display: block;
  margin-bottom: 5px;
  color: #617080;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.countdown-card strong,
.floating-ticket strong {
  display: block;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
}

.ticker-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  color: var(--white);
  background: #101b2b;
}

.ticker-band span {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.section {
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 72px);
  scroll-margin-top: 92px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 34px;
}

.section-heading.narrow {
  display: block;
  max-width: 820px;
}

.intro-grid {
  background: #f7f5ed;
}

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

.step-card,
.prize-card {
  min-height: 230px;
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(6, 17, 31, 0.09);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(6, 17, 31, 0.06);
}

.step-card span,
.prize-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--coral);
  font-weight: 900;
}

.step-card p,
.prize-card p {
  color: var(--muted);
  line-height: 1.6;
}

.scoring-section {
  color: var(--white);
  background: #102033;
}

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

.scoring-grid article {
  min-height: 190px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scoring-grid span {
  display: block;
  margin-bottom: 20px;
  color: var(--lime);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 900;
  line-height: 0.9;
}

.scoring-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.scoring-grid p {
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.55;
}

.experience {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(145deg, #0b1728, #13253a),
    radial-gradient(circle at 82% 18%, rgba(231, 255, 111, 0.12), transparent 28%);
}

.phone-shell {
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 18px;
  background: #06111f;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.phone-top,
.match-card,
.prediction-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-top {
  padding: 10px 4px 18px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.86rem;
}

.phone-top span {
  width: 36px;
  height: 6px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.match-card {
  gap: 14px;
  padding: 22px;
  background: linear-gradient(135deg, #193a55, #0f6d50);
  border-radius: 8px;
}

.match-card div {
  display: grid;
  gap: 8px;
  text-align: center;
}

.match-card span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 900;
}

.match-card strong {
  font-size: 3rem;
}

.prediction-row {
  margin-top: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.prediction-row strong {
  color: var(--lime);
}

.preview-button {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  color: var(--ink);
  background: var(--lime);
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.feature-copy {
  max-width: 740px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.feature-list div {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-list span {
  color: rgba(255, 255, 255, 0.68);
}

.public-showcase {
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(6, 17, 31, 0.96), rgba(12, 48, 45, 0.95)),
    url("assets/combi-season-world-hero.png") center / cover;
  background-blend-mode: multiply;
}

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

.showcase-grid article {
  min-height: 230px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.showcase-grid span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--lime);
  font-weight: 900;
}

.showcase-grid p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.prize-section {
  background: #eef2eb;
}

.main-prize {
  color: var(--white);
  background: linear-gradient(135deg, #102339, #0a7a53);
}

.main-prize p {
  color: rgba(255, 255, 255, 0.74);
}

.prize-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 18px 20px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 8px;
}

.prize-note strong,
.prize-note span {
  overflow-wrap: anywhere;
}

.prize-note span {
  color: rgba(6, 17, 31, 0.68);
  font-weight: 800;
}

.leaderboard-section {
  color: var(--white);
  background: #07111f;
}

.leaderboard {
  display: grid;
  gap: 10px;
}

.ranking-spotlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.ranking-spotlight article {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ranking-spotlight article.is-current {
  color: var(--ink);
  background: var(--lime);
  border-color: transparent;
}

.ranking-spotlight span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ranking-spotlight article.is-current span,
.ranking-spotlight article.is-current small {
  color: rgba(6, 17, 31, 0.68);
}

.ranking-spotlight strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.ranking-spotlight small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 800;
  line-height: 1.35;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 70px minmax(160px, 1fr) minmax(110px, 0.5fr) 100px 80px;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.leaderboard-row:not(.header-row):hover {
  background: rgba(25, 201, 130, 0.16);
}

.leaderboard-row.is-current-user {
  border-color: rgba(231, 255, 111, 0.58);
  background: rgba(231, 255, 111, 0.12);
}

.leaderboard-row small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  font-weight: 800;
}

.header-row {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cta-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 25%, rgba(255, 107, 95, 0.24), transparent 28%),
    linear-gradient(135deg, #12233b, #07111f);
}

.login-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 30%, rgba(231, 255, 111, 0.14), transparent 26%),
    linear-gradient(135deg, #07111f, #102339);
}

.signup-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.signup-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 800;
}

.signup-form input,
.signup-form select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--white);
  background: rgba(6, 17, 31, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

.signup-form input:focus,
.signup-form select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(231, 255, 111, 0.12);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--lime);
  font-weight: 800;
}

.form-note:not(:empty),
.prediction-summary:not(:empty),
.prediction-editing-note:not(:empty) {
  padding: 11px 12px;
  border-radius: 8px;
}

.form-note.is-info,
.prediction-summary.is-info,
.prediction-editing-note.is-info {
  color: var(--white);
  background: rgba(91, 140, 255, 0.16);
  border: 1px solid rgba(91, 140, 255, 0.3);
}

.form-note.is-success,
.prediction-summary.is-success,
.prediction-editing-note.is-success {
  color: #c7ffe6;
  background: rgba(25, 201, 130, 0.16);
  border: 1px solid rgba(25, 201, 130, 0.32);
}

.form-note.is-warning,
.prediction-summary.is-warning,
.prediction-editing-note.is-warning {
  color: #ffe9a8;
  background: rgba(242, 201, 76, 0.16);
  border: 1px solid rgba(242, 201, 76, 0.35);
}

.form-note.is-error,
.prediction-summary.is-error,
.prediction-editing-note.is-error {
  color: #ffd4d4;
  background: rgba(255, 107, 95, 0.16);
  border: 1px solid rgba(255, 107, 95, 0.35);
}

.dashboard-section {
  color: var(--white);
  background:
    radial-gradient(circle at 82% 16%, rgba(91, 140, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #07111f, #12233b 58%, #0a4f3a);
}

.dashboard-empty {
  display: grid;
  justify-items: start;
  max-width: 760px;
}

.dashboard-empty p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-shell {
  display: grid;
  gap: 18px;
}

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

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-hero h2 {
  margin-bottom: 12px;
}

.dashboard-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

.status-pill {
  min-width: 180px;
  padding: 18px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(231, 255, 111, 0.16);
}

.status-pill span,
.dashboard-metrics span,
.panel-header span,
.fixture-list span,
.profile-list span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill span {
  color: rgba(6, 17, 31, 0.62);
}

.status-pill strong {
  display: block;
  margin-top: 4px;
}

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

.dashboard-metrics article,
.dashboard-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-metrics article {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 20px;
}

.dashboard-metrics strong {
  font-size: clamp(1.4rem, 2.7vw, 2.4rem);
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.wide-panel {
  grid-column: 1 / -1;
}

.dashboard-panel {
  padding: 20px;
}

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

.panel-header h3 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.fixture-list,
#favoriteTeamMatches,
.profile-list,
.activity-feed {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: rgba(6, 17, 31, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.activity-item span {
  width: fit-content;
  padding: 5px 8px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.activity-item strong {
  overflow-wrap: anywhere;
}

.activity-item small {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 800;
  line-height: 1.4;
}

.admin-activity-feed .activity-item {
  color: var(--ink);
  background: #f7f5ed;
  border-color: rgba(6, 17, 31, 0.08);
}

.admin-activity-feed .activity-item small {
  color: var(--muted);
}

.dashboard-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.dashboard-progress div {
  min-width: 0;
  padding: 14px;
  background: rgba(6, 17, 31, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.dashboard-progress span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-progress strong {
  display: block;
  margin-top: 5px;
  color: var(--white);
  font-size: 1.7rem;
  line-height: 1;
}

.profile-list div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: rgba(6, 17, 31, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.fixture-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  background: rgba(6, 17, 31, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.fixture-status {
  color: var(--lime);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.fixture-action {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  padding: 0 12px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.profile-list strong,
.fixture-teams {
  display: block;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.35;
}

.fixture-date {
  line-height: 1.35;
  white-space: normal;
}

.profile-edit-form,
.profile-password-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.profile-edit-form label,
.profile-password-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-edit-form input,
.profile-password-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 12px;
  color: var(--white);
  background: rgba(6, 17, 31, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

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

.player-actions button {
  min-height: 54px;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(6, 17, 31, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-weight: 900;
}

.prediction-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.prediction-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.prediction-form input,
.prediction-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  color: var(--white);
  background: rgba(6, 17, 31, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.prediction-scorer-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 112px;
  overflow: auto;
  padding: 8px;
  background: rgba(6, 17, 31, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.challenge-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(140px, 0.6fr) minmax(130px, 0.5fr) auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0;
}

.challenge-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.challenge-form input,
.challenge-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  color: var(--white);
  background: rgba(6, 17, 31, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.challenge-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.challenge-summary article,
.challenge-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.challenge-summary article {
  padding: 16px;
}

.challenge-summary span,
.challenge-money span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.challenge-summary strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.challenge-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.challenge-columns h4 {
  margin: 0 0 10px;
}

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

.challenge-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.challenge-card.is-accepted {
  border-color: rgba(231, 255, 111, 0.32);
}

.challenge-card.is-closed {
  border-color: rgba(25, 201, 130, 0.32);
}

.challenge-card.is-draw {
  border-color: rgba(255, 190, 96, 0.36);
}

.challenge-card h4 {
  margin: 8px 0;
  overflow-wrap: anywhere;
}

.challenge-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.challenge-state {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.challenge-state.is-accepted {
  background: #dff766;
}

.challenge-state.is-closed {
  color: #062416;
  background: #75e0b3;
}

.challenge-state.is-draw {
  background: #ffd37a;
}

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

.challenge-versus span {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px;
  color: var(--white);
  background: rgba(6, 17, 31, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.challenge-versus strong,
.challenge-versus small {
  overflow-wrap: anywhere;
}

.challenge-versus small {
  color: var(--lime);
  font-weight: 900;
}

.challenge-versus em {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.challenge-money strong {
  display: block;
  margin-top: 4px;
  font-size: 1.4rem;
}

.challenge-money small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 800;
  line-height: 1.4;
}

.challenge-money-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.challenge-money-grid small {
  min-height: 44px;
  padding: 8px;
  background: rgba(6, 17, 31, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.challenge-money-grid b {
  display: block;
  color: var(--white);
}

.challenge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prediction-summary {
  margin: 16px 0 0;
  color: var(--lime);
  font-weight: 900;
  line-height: 1.5;
}

.delete-prediction-button {
  justify-self: start;
  min-height: 42px;
  margin-top: 12px;
  padding: 0 14px;
  color: #ffd4d4;
  background: rgba(255, 95, 95, 0.12);
  border: 1px solid rgba(255, 95, 95, 0.3);
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.delete-prediction-button:hover {
  background: rgba(255, 95, 95, 0.2);
}

.scoring-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.scoring-rules span {
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 900;
}

.prediction-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: min(100%, 560px);
  padding: 4px;
  background: rgba(6, 17, 31, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.segmented-control button {
  min-height: 40px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

.segmented-control button.is-active {
  color: var(--ink);
  background: var(--lime);
}

.prediction-scope-filter,
.prediction-group-filter {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.prediction-scope-filter select,
.prediction-group-filter select {
  min-height: 44px;
  padding: 0 12px;
  color: var(--white);
  background: rgba(6, 17, 31, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.prediction-matches-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.selected-match-detail {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(231, 255, 111, 0.11), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(231, 255, 111, 0.2);
  border-radius: 8px;
}

.selected-match-detail p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.selected-match-detail span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-match-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.selected-match-heading strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.12;
}

.selected-match-heading em {
  flex: 0 0 auto;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.selected-match-heading em.is-closed {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.selected-match-meta {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(120px, 0.75fr) minmax(0, 1.5fr);
  gap: 10px;
}

.selected-match-meta div {
  min-width: 0;
  padding: 12px;
  background: rgba(6, 17, 31, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.selected-match-meta strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.prediction-editing-note {
  margin: -4px 0 14px;
  color: var(--lime);
  font-weight: 900;
  line-height: 1.45;
}

.prediction-match-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  background: rgba(6, 17, 31, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.prediction-match-card:hover {
  transform: translateY(-1px);
  border-color: rgba(231, 255, 111, 0.38);
}

.prediction-match-card.is-selected {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(231, 255, 111, 0.12);
}

.prediction-match-card.is-saved {
  background: rgba(25, 201, 130, 0.1);
}

.prediction-match-card.is-closed {
  opacity: 0.72;
}

.prediction-match-card.is-locked {
  background: rgba(242, 201, 76, 0.08);
  border-color: rgba(242, 201, 76, 0.24);
  opacity: 0.82;
}

.prediction-match-card.is-locked .btn {
  color: #ffe9a8;
  border-color: rgba(242, 201, 76, 0.34);
}

.prediction-match-copy {
  min-width: 0;
}

.prediction-match-card h4 {
  margin: 4px 0;
  font-size: 1.1rem;
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: normal;
}

.prediction-match-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

.prediction-match-card span {
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.saved-prediction,
.prediction-pending {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.saved-prediction strong {
  padding: 7px 10px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1;
}

.saved-prediction span,
.prediction-pending {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 800;
}

.prediction-form.is-disabled {
  opacity: 0.62;
}

.group-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.user-group-table {
  display: grid;
  gap: 8px;
}

.group-title-row,
.group-row {
  display: grid;
  grid-template-columns: 42px minmax(140px, 1fr) repeat(5, 48px);
  gap: 8px;
  align-items: center;
  padding: 12px;
  background: rgba(6, 17, 31, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.group-row strong,
.mini-group strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.group-row span {
  min-width: 0;
  text-align: center;
}

.group-row span:first-child {
  text-align: left;
}

.group-title-row {
  grid-template-columns: 1fr auto;
  color: var(--lime);
  font-weight: 900;
}

.group-header {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.group-row.is-favorite,
.mini-group .is-favorite {
  border-color: rgba(231, 255, 111, 0.52);
  background: rgba(231, 255, 111, 0.12);
}

.qualification-note {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 8px;
}

.qualification-note span {
  color: rgba(6, 17, 31, 0.72);
  line-height: 1.45;
}

.all-groups-details {
  margin-top: 16px;
}

.all-groups-details summary {
  cursor: pointer;
  color: var(--lime);
  font-weight: 900;
}

.all-groups-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.mini-group {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: rgba(6, 17, 31, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.mini-group.is-active-group {
  border-color: rgba(231, 255, 111, 0.5);
}

.mini-group h4 {
  margin: 0 0 4px;
}

.mini-group div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
}

.mini-group em {
  color: rgba(255, 255, 255, 0.58);
  font-style: normal;
  font-weight: 900;
}

.empty-group {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.admin-section {
  color: var(--ink);
  background: #f7f5ed;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stat,
.admin-panel {
  background: var(--white);
  border: 1px solid rgba(6, 17, 31, 0.09);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(6, 17, 31, 0.06);
}

.admin-stat {
  display: grid;
  gap: 10px;
  min-height: 130px;
  padding: 22px;
}

.admin-stat span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-stat strong {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1;
}

.admin-panel {
  margin-bottom: 18px;
  padding: 20px;
}

.admin-panel .panel-header span {
  color: var(--muted);
}

.admin-panel .icon-button {
  color: var(--ink);
  background: #eef2eb;
  border-color: rgba(6, 17, 31, 0.1);
}

.admin-table {
  display: grid;
  gap: 10px;
  overflow-x: auto;
}

.result-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.result-form label:nth-of-type(1) {
  grid-column: span 4;
}

.result-form label:nth-of-type(2),
.result-form label:nth-of-type(3) {
  grid-column: span 2;
}

.result-form label:nth-of-type(4),
.result-form label:nth-of-type(5) {
  grid-column: span 6;
}

.result-form .btn {
  grid-column: 9 / span 4;
  min-height: 56px;
  border-radius: 999px;
}

.result-form label,
.team-player-toolbar label,
.team-player-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-form input,
.result-form select,
.team-player-toolbar select,
.team-player-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: #f7f5ed;
  border: 1px solid rgba(6, 17, 31, 0.12);
  border-radius: 8px;
}

.team-player-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 320px);
  gap: 12px;
  margin-bottom: 12px;
}

.team-player-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 0.6fr) minmax(90px, 0.35fr) minmax(150px, 0.7fr) auto auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.team-player-form .toggle-field {
  min-height: 46px;
  grid-auto-flow: column;
  place-content: center;
  padding: 0 12px;
  color: var(--ink);
  background: #f7f5ed;
  border: 1px solid rgba(6, 17, 31, 0.12);
  border-radius: 8px;
}

.team-player-form .toggle-field input {
  width: auto;
  min-height: auto;
  accent-color: var(--green);
}

.knockout-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.knockout-toolbar span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.scorer-chip-panel {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  min-height: 46px;
  max-height: 118px;
  overflow: auto;
  padding: 8px;
  background: #f7f5ed;
  border: 1px solid rgba(6, 17, 31, 0.12);
  border-radius: 8px;
}

.scorer-chip {
  min-height: 30px;
  padding: 6px 10px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(6, 17, 31, 0.14);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.scorer-chip.is-selected {
  color: var(--ink);
  background: var(--lime);
  border-color: transparent;
}

.scorer-chip:disabled {
  opacity: 0.55;
}

.empty-scorers {
  align-self: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-note {
  color: #0b7a4c;
}

.admin-note.is-info {
  color: #14315f;
  background: #e8f0ff;
  border-color: #b8cdfa;
}

.admin-note.is-success {
  color: #075534;
  background: #d9f8eb;
  border-color: #78dfb6;
}

.admin-note.is-warning {
  color: #684b05;
  background: #fff3c9;
  border-color: #e9c756;
}

.admin-note.is-error {
  color: #7a1717;
  background: #ffe2df;
  border-color: #f2a49d;
}

.admin-match-detail {
  display: grid;
  gap: 12px;
  margin: 12px 0 18px;
}

.admin-match-summary {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(110px, 0.45fr)) minmax(180px, 1fr);
  gap: 10px;
}

.admin-match-summary div,
.admin-prediction-row {
  min-width: 0;
  padding: 12px;
  background: #f7f5ed;
  border: 1px solid rgba(6, 17, 31, 0.08);
  border-radius: 8px;
}

.admin-match-summary span,
.admin-prediction-row small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-match-summary strong,
.admin-prediction-row strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.admin-prediction-table {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}

.admin-prediction-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 100px minmax(180px, 1fr) 80px;
  gap: 12px;
  align-items: center;
  min-width: 720px;
}

.admin-prediction-row.header-row {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

.draw-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.draw-summary article {
  padding: 14px;
  background: #f7f5ed;
  border: 1px solid rgba(6, 17, 31, 0.08);
  border-radius: 8px;
}

.draw-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.draw-summary strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.admin-row {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.85fr 0.8fr 0.75fr 0.85fr;
  gap: 14px;
  align-items: center;
  min-width: 820px;
  padding: 14px;
  background: #f7f5ed;
  border: 1px solid rgba(6, 17, 31, 0.08);
  border-radius: 8px;
}

.match-admin-row {
  grid-template-columns: 0.8fr 1.3fr 0.6fr 0.8fr 0.55fr;
}

.match-admin-row[data-admin-select-match] {
  cursor: pointer;
}

.match-admin-row[data-admin-select-match]:hover {
  border-color: rgba(231, 255, 111, 0.38);
}

.team-player-row {
  grid-template-columns: minmax(220px, 1.2fr) minmax(110px, 0.6fr) minmax(130px, 0.7fr) minmax(100px, 0.45fr) minmax(110px, 0.45fr);
}

.draw-row {
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.25fr) minmax(110px, 0.55fr) minmax(90px, 0.45fr) minmax(130px, 0.55fr);
}

.challenge-admin-row {
  grid-template-columns: minmax(190px, 1.1fr) minmax(140px, 0.75fr) minmax(140px, 0.75fr) minmax(120px, 0.65fr) minmax(120px, 0.65fr) minmax(110px, 0.55fr);
}

.draw-row.is-registered {
  border-color: rgba(25, 201, 130, 0.24);
}

.draw-row.is-pending {
  color: rgba(6, 17, 31, 0.78);
}

.mini-action.is-on {
  color: #075534;
  background: #d9f8eb;
  border-color: #78dfb6;
}

.danger-action {
  color: #7a1717;
  background: #ffe2df;
  border-color: #f2a49d;
}

.admin-row.header-row {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

.admin-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.payment-chip {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  padding: 7px 10px;
  color: #79510b;
  background: rgba(242, 201, 76, 0.24);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.payment-chip.is-success {
  color: #075534;
  background: #d9f8eb;
}

.payment-chip.is-muted {
  color: #586371;
  background: #e9ecef;
}

.mini-action {
  display: inline-flex;
  margin-top: 8px;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--lime);
  border: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.mini-action:disabled {
  color: var(--muted);
  background: #e9ece3;
  cursor: not-allowed;
}

.empty-admin {
  padding: 22px;
  color: var(--muted);
  background: #f7f5ed;
  border-radius: 8px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.62);
  background: #06111f;
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nav {
    display: flex;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    padding: 2px 0 8px;
    scrollbar-width: thin;
  }

  .nav a,
  .nav-logout,
  .session-badge {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    white-space: nowrap;
  }

  .nav-action {
    background: var(--lime);
  }

  .hero,
  .experience,
  .cta-section,
  .login-section,
  .dashboard-hero,
  .dashboard-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-visual img {
    height: 460px;
  }

  .steps,
  .showcase-grid,
  .scoring-grid,
  .prize-grid,
  .ranking-spotlight,
  .dashboard-metrics,
  .dashboard-progress,
  .draw-summary,
  .admin-grid,
  .admin-match-summary,
  .player-actions,
  .challenge-form,
  .challenge-summary,
  .challenge-columns,
  .result-form,
  .prediction-form,
  .prediction-matches-list,
  .selected-match-meta,
  .group-dashboard,
  .all-groups-grid {
    grid-template-columns: 1fr;
  }

  .result-form label:nth-of-type(1),
  .result-form label:nth-of-type(2),
  .result-form label:nth-of-type(3),
  .result-form label:nth-of-type(4),
  .result-form label:nth-of-type(5),
  .result-form .btn {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    padding: 14px 16px;
    overflow: hidden;
  }

  .brand {
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .nav {
    max-width: 100%;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .session-badge {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: auto;
  }

  .section,
  .dashboard-section,
  .admin-section,
  .leaderboard-section {
    width: 100%;
    overflow-x: hidden;
    padding-right: 16px;
    padding-left: 16px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .admin-panel {
    min-width: 0;
    padding: 14px;
  }

  .admin-table {
    overflow-x: visible;
  }

  .admin-row,
  .match-admin-row,
  .team-player-row,
  .draw-row,
  .challenge-admin-row,
  .admin-match-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  .admin-row.header-row {
    display: none;
  }

  .admin-row span,
  .admin-match-summary article {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .result-form {
    gap: 10px;
  }

  .result-form .btn {
    width: 100%;
    min-height: 52px;
  }

  .scorer-chip-panel {
    max-height: none;
  }

  .admin-match-prediction {
    grid-template-columns: 1fr;
  }

  .team-player-form,
  .team-player-toolbar {
    grid-template-columns: 1fr;
  }

  input,
  select,
  button,
  .prediction-summary,
  .prediction-editing-note {
    scroll-margin-bottom: 180px;
  }

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

  .hero-visual {
    min-height: 360px;
  }

  .hero-visual img {
    height: 390px;
  }

  .countdown-card,
  .floating-ticket {
    position: static;
    margin-top: 10px;
  }

  .leaderboard-row {
    grid-template-columns: 44px minmax(120px, 1fr) 76px;
  }

  .leaderboard-row span:nth-child(3) {
    display: none;
  }

  .leaderboard-row span:nth-child(4) {
    display: none;
  }

  .prediction-controls,
  .prediction-scope-filter,
  .prediction-group-filter {
    align-items: stretch;
  }

  .prediction-controls,
  .prediction-scope-filter,
  .prediction-group-filter,
  .segmented-control {
    width: 100%;
  }

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

  .fixture-item,
  .selected-match-heading,
  .prediction-match-card {
    grid-template-columns: 1fr;
  }

  .selected-match-heading {
    display: grid;
  }

  .selected-match-heading em {
    justify-self: start;
  }

  .fixture-action {
    justify-self: start;
  }

  .group-row {
    grid-template-columns: 34px minmax(110px, 1fr) repeat(2, 42px);
  }

  .group-row span:nth-child(4),
  .group-row span:nth-child(5),
  .group-row span:nth-child(6) {
    display: none;
  }

  .footer {
    flex-direction: column;
  }
}
