:root {
  --bg: #070b14;
  --bg-2: #0d1422;
  --panel: #121b2d;
  --panel-2: #172338;
  --panel-3: #1d2d49;
  --line: rgba(148, 163, 184, 0.2);
  --text: #edf3ff;
  --muted: #a9b7cf;
  --primary: #5eead4;
  --primary-2: #3b82f6;
  --accent: #f97316;
  --green: #34d399;
  --red: #f87171;
  --yellow: #fbbf24;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, #0c1220 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-space {
  padding: 96px 0;
}

.alt-bg {
  background: rgba(15, 23, 42, 0.7);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}

.section-header.center {
  text-align: center;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.9rem 1.45rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #04151d;
  box-shadow: 0 18px 30px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.75);
  border-color: var(--line);
  color: var(--text);
}

.btn-danger {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

.text-link {
  color: var(--primary);
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 20, 0.75);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #04151d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.main-nav {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.96rem;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.nav-link:hover {
  color: var(--text);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--muted);
}

.hero {
  padding: 72px 0 48px;
}

.page-hero {
  padding: 96px 0 56px;
}

.narrow {
  max-width: 760px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.two-column.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.info-panel {
  padding-right: 12px;
}

.content-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.content-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

.content-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.article-card {
  background: rgba(17, 25, 39, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.article-card a {
  color: var(--primary);
  font-weight: 700;
}

.article-card details {
  margin-top: 16px;
}

.article-card summary {
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

.article-card details p {
  white-space: pre-wrap;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.chip {
  background: rgba(17, 25, 39, 0.9);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  cursor: pointer;
}

.chip.active {
  background: rgba(94, 234, 212, 0.12);
  color: var(--primary);
  border-color: rgba(94, 234, 212, 0.25);
}

.auth-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-section {
  min-height: 650px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 19% 45%, rgba(59, 130, 246, 0.16), transparent 42%),
    radial-gradient(ellipse at 82% 12%, rgba(94, 234, 212, 0.09), transparent 35%);
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  align-items: center;
  gap: clamp(40px, 8vw, 110px);
}

.login-intro {
  max-width: 570px;
}

.login-intro h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  margin-bottom: 24px;
}

.login-intro > p:not(.eyebrow) {
  max-width: 480px;
  color: var(--muted);
  font-size: 1.08rem;
}

.login-trust-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
}

.login-trust-note span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.14);
  color: var(--green);
  font-weight: 800;
}

.auth-box {
  width: min(640px, 100%);
  background: rgba(17, 25, 39, 0.94);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.login-card {
  width: 100%;
  padding: clamp(26px, 4vw, 40px);
  background: linear-gradient(145deg, rgba(20, 31, 49, 0.98), rgba(13, 20, 34, 0.98));
  border-radius: 22px;
}

.login-card-header h2 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.login-card-header > p:last-child {
  margin-bottom: 26px;
  color: var(--muted);
}

.auth-header h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 18px;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.login-step {
  display: grid;
  gap: 12px;
}

.login-step[hidden] {
  display: none;
}

.login-step label {
  margin: 0;
}

.login-step input {
  min-height: 54px;
  border-radius: 10px;
}

.login-step input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.login-submit {
  min-height: 52px;
  margin-top: 8px;
}

.login-code-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.login-message {
  min-height: 1.6em;
  margin: 0;
  overflow-wrap: anywhere;
}

.login-message[data-state="error"] {
  color: #fca5a5;
}

.login-message[data-state="success"] {
  color: var(--green);
}

.login-message[data-state="pending"] {
  color: #93c5fd;
}

.auth-form [hidden] {
  display: none;
}

.auth-code-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.auth-secondary {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.auth-secondary:disabled {
  color: var(--text-muted);
  cursor: wait;
}

.login-card .auth-code-actions {
  flex-wrap: wrap;
  margin-top: 6px;
}

.login-card .auth-secondary {
  text-align: left;
  font-size: 0.9rem;
}

.login-account-link {
  margin-bottom: 0;
  color: var(--muted);
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  background: rgba(9, 14, 23, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--text);
}

.auth-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auth-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.form-row.between {
  justify-content: space-between;
}

.form-row.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-row {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 500 !important;
  color: var(--muted) !important;
}

.checkbox-row input {
  width: auto;
}

.full-width {
  width: 100%;
}

.auth-switch {
  margin-top: 18px;
  text-align: center;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 700;
}

.dashboard-shell {
  padding-top: 52px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.sidebar {
  background: rgba(17, 25, 39, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 18px;
  position: sticky;
  top: 96px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 18px;
  border-bottom: 1px solid var(--line);
}

.sidebar-header strong,
.sidebar-header span {
  display: block;
}

.sidebar-header span {
  color: var(--muted);
  font-size: 0.82rem;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #09131f;
  font-weight: 900;
}

.avatar.admin {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.sidebar-nav a {
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  color: var(--muted);
  font-weight: 600;
  transition: all 0.2s ease;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
  background: rgba(94, 234, 212, 0.09);
  color: var(--text);
  border: 1px solid rgba(94, 234, 212, 0.2);
}

.main-panel {
  display: grid;
  gap: 26px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.dashboard-topbar h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  background: rgba(17, 25, 39, 0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
  display: grid;
  gap: 10px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-card strong {
  font-size: clamp(1.7rem, 2vw, 2.4rem);
  letter-spacing: -0.04em;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.lower-grid {
  margin-top: 2px;
}

.panel-card-lg {
  background: rgba(17, 25, 39, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-head h2 {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.panel-head a {
  color: var(--primary);
  font-weight: 600;
}

.list-stack,
.notification-stack,
.mini-table {
  display: grid;
  gap: 14px;
}

.list-item,
.mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.list-item:last-child,
.mini-row:last-child {
  border-bottom: none;
}

.list-item strong {
  display: block;
  margin-bottom: 4px;
}

.list-item span,
.notification-item span,
.mini-row span {
  color: var(--muted);
}

.notification-item {
  border-radius: 12px;
  padding: 14px 14px;
  border: 1px solid var(--line);
}

.notification-item.success {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.2);
}

.notification-item.info {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.notification-item.warning {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.2);
}

.notification-item strong {
  display: block;
  margin-bottom: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.badge.alt {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.2);
}

@media (max-width: 980px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .stats-grid,
  .panel-grid,
  .article-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .stats-grid,
  .panel-grid,
  .article-grid,
  .form-row.two-cols {
    grid-template-columns: 1fr;
  }

  .dashboard-topbar {
    display: grid;
    align-items: start;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  max-width: 620px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0;
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-stats strong {
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.hero-stats span {
  color: var(--muted);
}

.hero-panel {
  background: linear-gradient(180deg, rgba(18, 27, 45, 0.95), rgba(10, 15, 26, 0.96));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.panel-top,
.panel-header,
.panel-mini,
.standings-list li,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.live-pill,
.season-tag,
.card-tag,
.news-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.live-pill {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.season-tag {
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
}

.panel-card {
  margin-top: 24px;
  background: rgba(13, 20, 34, 0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 10px;
}

.panel-header {
  margin-bottom: 12px;
}

.panel-header h2 {
  font-size: 1.1rem;
  margin: 0;
}

.panel-header span,
.panel-mini .mini-label,
.card-tag,
.news-tag {
  color: var(--muted);
}

.standings-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.standings-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.standings-list li:last-child {
  border-bottom: none;
}

.standings-list li > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(94, 234, 212, 0.12);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
}

.panel-mini {
  margin-top: 18px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.panel-mini strong {
  display: block;
}

.panel-mini a {
  color: var(--primary);
  font-weight: 700;
}

.partners {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 21, 0.8);
}

.partners-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.partners-row > span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  color: rgba(237, 243, 255, 0.7);
  font-weight: 600;
}

.feature-grid,
.competition-grid,
.news-grid,
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.game-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}

.game-tile {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(29, 45, 73, 0.92), rgba(17, 25, 39, 0.96));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.game-tile:hover,
.game-tile:focus-visible {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.game-tile h2 {
  font-size: 1.55rem;
  margin: 0 0 8px;
}

.game-tile-art {
  display: grid;
  height: 150px;
  flex: 0 0 150px;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #34445b, #172338 72%);
}

.game-tile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-tile-art-logo img {
  width: 84%;
  height: 76%;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.game-tile-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px;
}

.game-tile p {
  margin: 0;
}

.game-tile-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.game-art-credits {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.85rem;
}

.game-art-credits summary {
  width: fit-content;
  color: var(--text);
  cursor: pointer;
}

.game-art-credits ul {
  padding-left: 20px;
}

.game-art-credits a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.game-art-credits p {
  margin-bottom: 0;
}

.feature-card,
.competition-card,
.news-card,
.standings-card {
  background: rgba(17, 25, 39, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(94, 234, 212, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 14px;
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.competition-card {
  position: relative;
}

.competition-card.featured {
  background: linear-gradient(180deg, rgba(29, 45, 73, 0.95), rgba(17, 25, 39, 0.95));
  border-color: rgba(94, 234, 212, 0.2);
}

.card-tag,
.news-tag {
  display: inline-block;
  background: rgba(148, 163, 184, 0.09);
  border: 1px solid var(--line);
  color: var(--text);
  margin-bottom: 14px;
}

.competition-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  color: var(--muted);
}

.competition-card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}

.competition-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.table-wrap,
.standings-card {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(14, 21, 33, 0.9);
}

.user-management-panel {
  overflow: hidden;
}

.user-management-panel select {
  min-width: 130px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compact-form {
  gap: 14px;
}

.custom-round-dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.custom-round-dates[hidden] {
  display: none;
}

#fixture-review-panel .table-actions label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 0.85rem;
}

#fixture-review-panel .table-actions input {
  min-width: 150px;
  padding: 0.55rem 0.65rem;
}

.competition-date-field {
  position: relative;
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.competition-date-trigger {
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 14, 23, 0.9);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.competition-date-trigger:focus-visible,
.competition-calendar button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.auth-form .competition-date-trigger:disabled {
  cursor: default;
  opacity: 0.55;
}

.competition-calendar {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  width: min(100%, 352px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.48);
}

.competition-calendar[hidden] {
  display: none;
}

.competition-calendar.opens-up {
  top: auto;
  bottom: calc(100% + 4px);
}

.competition-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  margin-bottom: 12px;
}

.competition-weekday-row,
.competition-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 6px;
  width: 100%;
  text-align: center;
}

.competition-weekday-row {
  margin-bottom: 6px;
}

.competition-weekday-row > span {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 30px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.calendar-day {
  width: 100%;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(7, 11, 20, 0.56);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.calendar-day:hover,
.calendar-day.selected {
  border-color: var(--primary);
  background: rgba(94, 234, 212, 0.16);
}

.calendar-day.selected {
  color: var(--primary);
  font-weight: 800;
}

.calendar-day:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.competition-manager-panel {
  margin-top: 24px;
}

.competition-manager-row {
  align-items: center;
  gap: 20px;
}

.competition-manager-row > div:first-child {
  display: grid;
  gap: 4px;
}

.competition-manager-row .status {
  width: fit-content;
}

.competition-card .table-actions select {
  min-width: 160px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
}

.registration-actions {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.btn-small {
  padding: 0.5rem 0.8rem;
  font-size: 0.78rem;
}

.home-next-fixture {
  display: grid;
  gap: 10px;
  padding: 18px 0 4px;
}

.home-next-fixture strong {
  font-size: 1.1rem;
}

.home-next-fixture span {
  color: var(--muted);
}

#fixture-review-panel {
  margin-top: 24px;
}

#fixture-review-panel[hidden] {
  display: none;
}

#fixture-review-panel [hidden] {
  display: none;
}

.table-actions .btn {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
}

th, td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.75);
}

tbody tr:last-child td {
  border-bottom: none;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.status.live {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
}

.status.scheduled {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
}

.status.pending {
  background: rgba(251, 191, 36, 0.12);
  color: var(--yellow);
}

.news-card a {
  color: var(--primary);
  font-weight: 700;
}

.cta-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.13), rgba(94, 234, 212, 0.08));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 44px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.9);
  padding: 52px 0 20px;
}

.footer-grid {
  align-items: start;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p,
.site-footer li,
.site-footer a,
.footer-bottom {
  color: var(--muted);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer h4 {
  margin-bottom: 14px;
}

.footer-bottom {
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .competition-grid,
  .game-tile-grid,
  .news-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .nav-wrap {
    min-height: 72px;
  }

  .section-space {
    padding: 72px 0;
  }

  .cta-box,
  .section-header {
    display: grid;
    align-items: start;
  }

  .login-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .login-intro {
    max-width: 640px;
  }

  .login-intro h1 {
    font-size: clamp(2.7rem, 9vw, 4rem);
  }

  .login-card {
    max-width: 560px;
  }
}

@media (max-width: 600px) {
  .nav-actions {
    gap: 10px;
  }

  .login-page .site-header .brand span {
    white-space: nowrap;
  }

  .login-page .nav-actions .btn {
    width: auto;
    white-space: nowrap;
  }

  .nav-link {
    display: none;
  }

  .home-page .nav-actions .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    font-weight: 700;
    white-space: nowrap;
  }

  .home-page .nav-actions .btn {
    width: auto;
    padding: 0.7rem 0.85rem;
    white-space: nowrap;
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .cta-actions {
    display: grid;
    width: 100%;
  }

  th, td {
    padding: 14px 12px;
    font-size: 0.87rem;
  }

  .login-section {
    min-height: auto;
  }

  .login-layout {
    gap: 28px;
  }

  .login-card {
    padding: 24px 20px;
  }

  .login-card .auth-code-actions {
    flex-direction: column;
    gap: 12px;
  }
}
