:root {
  --blue-950: #061839;
  --blue-900: #0a2453;
  --blue-800: #113b7a;
  --blue-700: #1656a8;
  --blue-600: #1c73d8;
  --blue-100: #e8f2ff;
  --blue-050: #f5f9ff;
  --ink: #102033;
  --muted: #65748a;
  --line: #d8e5f4;
  --surface: #ffffff;
  --danger: #b42318;
  --danger-bg: #fff1f0;
  --shadow: 0 20px 50px rgba(9, 41, 88, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.50), rgba(255, 255, 255, 0.50)),
    url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Estadio_Azteca_desde_el_aire_1.jpg") center 52%/cover fixed;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

button,
input,
select {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 360px;
  color: var(--blue-950);
  background: linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.44));
  display: grid;
  align-items: end;
  padding: 48px clamp(18px, 4vw, 64px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(220px, 30vw, 395px);
  background: url("assets/host-flags.svg") center/cover no-repeat;
  box-shadow: 0 12px 28px rgba(6, 24, 57, 0.18);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.world-cup-trophy {
  position: absolute;
  top: clamp(18px, 4vw, 42px);
  left: clamp(18px, 4vw, 64px);
  z-index: 1;
  width: clamp(150px, 18vw, 260px);
  aspect-ratio: 0.74;
  filter: drop-shadow(0 16px 24px rgba(0, 20, 55, 0.45));
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.3rem, 6vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero__copy {
  max-width: 680px;
  margin-bottom: 30px;
  color: #243a58;
  font-size: 1.1rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  max-width: 760px;
}

.hero__stats div {
  border: 1px solid rgba(20, 67, 128, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  padding: 14px 16px;
  backdrop-filter: blur(8px);
}

.hero__stats strong {
  display: block;
  font-size: 1.65rem;
}

.hero__stats span {
  color: #46617f;
  font-size: 0.86rem;
}

main {
  width: min(1240px, calc(100% - 32px));
  margin: -34px auto 48px;
}

.toolbar,
.section-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.toolbar {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 0.6fr) minmax(150px, 0.6fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.tab-button {
  min-width: 130px;
  border-color: #bed3eb;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-900);
  box-shadow: 0 10px 24px rgba(9, 41, 88, 0.08);
  scroll-snap-align: start;
  white-space: nowrap;
}

.tab-button:hover {
  background: var(--blue-100);
}

.tab-button.is-active {
  border-color: var(--blue-700);
  background: var(--blue-900);
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

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

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #bed3eb;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.field input:focus,
.field select:focus,
.score-input:focus,
.team-edit:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(28, 115, 216, 0.16);
  outline: none;
}

.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

button,
.button-link,
.import-button {
  min-height: 42px;
  border: 1px solid var(--blue-600);
  border-radius: 8px;
  background: var(--blue-700);
  color: #fff;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  font-weight: 800;
  text-decoration: none;
}

button:hover,
.button-link:hover,
.import-button:hover {
  background: var(--blue-800);
}

.button-danger {
  border-color: #efb4ad;
  background: var(--danger-bg);
  color: var(--danger);
}

.button-danger:hover {
  background: #ffe0dd;
}

.import-button input {
  display: none;
}

.section-shell {
  margin-top: 24px;
  padding: clamp(16px, 3vw, 26px);
}

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

.section-heading h2 {
  margin: 0;
  font-size: 1.7rem;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.matches {
  display: grid;
  gap: 14px;
}

.date-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.date-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(90deg, var(--blue-900), var(--blue-700));
  color: #fff;
  padding: 12px 14px;
  font-weight: 850;
}

.date-head span:last-child {
  color: #cfe7ff;
  font-weight: 700;
}

.match-card {
  display: grid;
  grid-template-columns: 90px 110px minmax(250px, 1fr) minmax(220px, 0.7fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.match-meta,
.venue {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-900);
  padding: 0 9px;
  font-size: 0.78rem;
  font-weight: 900;
}

.teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px 18px 46px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.team-name {
  font-weight: 850;
  min-width: 0;
  overflow-wrap: anywhere;
}

.team-name:first-child {
  text-align: right;
}

.dash {
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

.score-input {
  width: 46px;
  height: 42px;
  border: 1px solid #bed3eb;
  border-radius: 8px;
  text-align: center;
  font-weight: 900;
}

.score-display {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 42px;
  border: 1px solid #bed3eb;
  border-radius: 8px;
  background: var(--blue-050);
  color: var(--blue-900);
  font-weight: 950;
}

.team-edit {
  width: 100%;
  min-height: 38px;
  border: 1px solid #bed3eb;
  border-radius: 8px;
  padding: 0 9px;
  font-weight: 800;
}

.standings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.qualified {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.qualified-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
}

.qualified-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-050);
  padding: 14px;
}

.qualified-stat strong {
  display: block;
  color: var(--blue-900);
  font-size: 1.5rem;
}

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

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

.qualified-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.qualified-box h3 {
  margin: 0;
  background: var(--blue-900);
  color: #fff;
  padding: 11px 13px;
  font-size: 0.95rem;
}

.qualified-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
}

.qualified-team {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #e2edf8;
  border-radius: 8px;
  background: #fbfdff;
  padding: 9px 10px;
}

.qualified-rank {
  min-width: 34px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-900);
  padding: 4px 8px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 900;
}

.qualified-team strong {
  min-width: 0;
}

.qualified-team span:last-child {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.knockout-note {
  border: 1px solid #bed3eb;
  border-radius: 8px;
  background: linear-gradient(90deg, #f5f9ff, #e8f2ff);
  color: var(--blue-900);
  padding: 13px 14px;
  font-weight: 800;
}

.auth-panel,
.betting-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

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

.auth-actions,
.betting-actions,
.betting-topline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.auth-actions {
  justify-content: flex-end;
}

.message {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.message.is-error {
  color: var(--danger);
}

.message.is-ok {
  color: var(--blue-700);
}

.betting-topline {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.betting-topline strong {
  color: var(--blue-900);
  font-size: 1.1rem;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-900);
  margin-left: 8px;
  padding: 0 9px;
  font-size: 0.75rem;
  font-weight: 900;
}

.betting-actions {
  margin-bottom: 10px;
}

.betting-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  margin-top: 16px;
}

.betting-layout h3 {
  margin-bottom: 10px;
  color: var(--blue-900);
}

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

.tip-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(132px, auto);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}

.tip-card__meta {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.tip-points {
  display: inline-grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}

.tip-points strong {
  color: var(--blue-900);
  font-size: 1rem;
}

.tip-points span {
  color: var(--muted);
}

.tip-points--exact {
  border-color: #79d7ad;
  background: #e7f9f0;
}

.tip-points--exact strong {
  color: #087046;
}

.tip-points--tendency {
  border-color: #9fbce0;
  background: var(--blue-100);
}

.tip-points--draw {
  border-color: #d8c373;
  background: #fff8dc;
}

.tip-points--draw strong {
  color: #7b5e00;
}

.tip-points--miss {
  border-color: #efb4ad;
  background: var(--danger-bg);
}

.tip-points--miss strong {
  color: var(--danger);
}

.tip-points--open,
.tip-points--missing {
  background: #f8fbff;
}

.tip-card__score {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  min-width: 132px;
  text-align: center;
}

.tip-card__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 16px 44px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.tip-input {
  width: 44px;
  height: 40px;
  border: 1px solid #bed3eb;
  border-radius: 8px;
  text-align: center;
  font-weight: 900;
}

.tip-input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(28, 115, 216, 0.16);
  outline: none;
}

.leaderboard {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 10px 12px;
}

.leaderboard-row:first-child {
  border-top: 0;
}

.leaderboard-row--rank-1 {
  background: linear-gradient(90deg, #fff4c2, #fffdf4);
  box-shadow: inset 4px 0 0 #d7a400;
}

.leaderboard-row--rank-2 {
  background: linear-gradient(90deg, #eef1f5, #ffffff);
  box-shadow: inset 4px 0 0 #a8b0bc;
}

.leaderboard-row--rank-3 {
  background: linear-gradient(90deg, #f6dfcf, #fff9f5);
  box-shadow: inset 4px 0 0 #b97845;
}

.leaderboard-rank {
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-900);
  padding: 5px 8px;
  text-align: center;
  font-weight: 900;
}

.leaderboard-row--rank-1 .leaderboard-rank {
  background: #d7a400;
  color: #fff;
}

.leaderboard-row--rank-2 .leaderboard-rank {
  background: #a8b0bc;
  color: #fff;
}

.leaderboard-row--rank-3 .leaderboard-rank {
  background: #b97845;
  color: #fff;
}

.leaderboard-user {
  min-width: 0;
}

.leaderboard-user strong {
  display: block;
}

.leaderboard-user span {
  color: var(--muted);
  font-size: 0.8rem;
}

.leaderboard-points {
  color: var(--blue-900);
  font-weight: 950;
}

.live-admin {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(130px, 0.7fr) 90px 80px 80px minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 14px;
  padding: 14px;
}

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

.live-board {
  border: 1px solid #9fbce0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(8, 44, 96, 0.98), rgba(18, 89, 172, 0.94));
  box-shadow: 0 16px 34px rgba(8, 33, 70, 0.18);
  color: #fff;
  overflow: hidden;
}

.live-board__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 14px;
}

.live-board__header span {
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.live-board__header strong {
  font-variant-numeric: tabular-nums;
}

.live-board__matches {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.live-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px 14px;
}

.live-board .live-card {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

.live-card.is-current {
  box-shadow: inset 4px 0 0 #19c37d;
}

.next-live-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(120px, auto);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  padding: 14px;
}

.next-live-card__body,
.next-live-card__countdown {
  display: grid;
  gap: 4px;
}

.next-live-card__body strong {
  color: var(--blue-950);
  font-size: 1.08rem;
}

.next-live-card__body span,
.next-live-card__countdown span {
  color: var(--muted);
  font-size: 0.84rem;
}

.next-live-card__countdown {
  justify-items: end;
  color: var(--blue-950);
  font-variant-numeric: tabular-nums;
}

.next-live-card__countdown strong {
  color: var(--blue-900);
  font-size: 1.2rem;
  white-space: nowrap;
}

.live-score {
  color: var(--blue-900);
  font-size: 1.45rem;
  font-weight: 950;
  white-space: nowrap;
}

.live-teams strong {
  display: block;
}

.live-teams span {
  color: var(--muted);
  font-size: 0.84rem;
}

.live-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-900);
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.live-card.is-current .live-status {
  background: #dff8ec;
  color: #0a7f4f;
}

.live-timeline {
  display: grid;
  gap: 10px;
  border-left: 3px solid var(--blue-200);
  margin-top: 14px;
  padding-left: 14px;
}

.ticker-event {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 12px;
}

.ticker-event::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 18px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue-700);
  box-shadow: 0 0 0 2px var(--blue-200);
}

.ticker-event--score::before,
.ticker-event--final::before {
  background: #19c37d;
}

.ticker-event__time,
.ticker-event__body {
  display: grid;
  gap: 3px;
}

.ticker-event__time strong {
  color: var(--blue-900);
  font-variant-numeric: tabular-nums;
}

.ticker-event__time span,
.ticker-event__body span {
  color: var(--muted);
  font-size: 0.84rem;
}

.ticker-event__body strong {
  color: var(--blue-950);
}

.group-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.group-table table {
  min-width: 300px;
}

.group-table h3 {
  margin: 0;
  background: var(--blue-900);
  color: #fff;
  padding: 12px 14px;
  font-size: 1rem;
}

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

th,
td {
  border-top: 1px solid var(--line);
  padding: 9px 8px;
  text-align: right;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: var(--blue-900);
  background: var(--blue-050);
  font-size: 0.78rem;
  text-transform: uppercase;
}

tr:nth-child(even) td {
  background: #fbfdff;
}

.group-row--direct td {
  background: #e8f8ef;
  box-shadow: inset 0 1px 0 rgba(25, 164, 99, 0.08);
}

.group-row--direct td:first-child {
  box-shadow: inset 4px 0 0 #19a463, inset 0 1px 0 rgba(25, 164, 99, 0.08);
}

.group-row--third td {
  background: #eef9ff;
  box-shadow: inset 0 1px 0 rgba(45, 143, 214, 0.08);
}

.group-row--third td:first-child {
  box-shadow: inset 4px 0 0 #2d8fd6, inset 0 1px 0 rgba(45, 143, 214, 0.08);
}

.qualification-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  margin-left: 6px;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.qualification-badge--direct {
  background: #c9f0d9;
  color: #087046;
}

.qualification-badge--third {
  background: #d6edff;
  color: #075985;
}

.empty {
  border: 1px dashed #9ebce0;
  border-radius: 8px;
  color: var(--muted);
  padding: 22px;
  text-align: center;
}

footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  padding: 0 16px 32px;
  font-size: 0.9rem;
}

footer a {
  color: var(--blue-700);
  font-weight: 800;
}

@media (max-width: 980px) {
  .toolbar,
  .match-card,
  .auth-form,
  .betting-layout,
  .live-admin,
  .live-card,
  .next-live-card {
    grid-template-columns: 1fr;
  }

  .next-live-card__countdown {
    justify-items: start;
  }

  .ticker-event {
    grid-template-columns: 1fr;
  }

  .actions {
    justify-content: stretch;
  }

  .actions > *,
  .button-link,
  .import-button {
    flex: 1;
  }

  .venue {
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }
}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }

  .hero {
    min-height: 500px;
    padding: 152px 14px 34px;
    align-items: end;
  }

  .hero::before {
    height: 235px;
    background-position: center top;
  }

  .world-cup-trophy {
    top: 16px;
    left: 14px;
    width: min(42vw, 156px);
  }

  h1 {
    font-size: clamp(2.05rem, 12vw, 3.4rem);
    line-height: 1;
  }

  .hero__copy {
    margin-bottom: 18px;
    font-size: 0.98rem;
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .hero__stats div {
    padding: 10px;
  }

  .hero__stats strong {
    font-size: 1.32rem;
  }

  .hero__stats span {
    font-size: 0.76rem;
  }

  main {
    width: calc(100% - 16px);
    margin-top: -18px;
  }

  .toolbar {
    position: static;
    gap: 10px;
    padding: 12px;
  }

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

  button,
  .button-link,
  .import-button {
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.88rem;
  }

  .tabs {
    margin-inline: -2px;
    padding: 0 2px 6px;
  }

  .tab-button {
    min-width: max-content;
    min-height: 40px;
    padding-inline: 12px;
    font-size: 0.88rem;
  }

  .section-shell {
    margin-top: 16px;
    padding: 12px;
  }

  .qualified-summary {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .date-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .teams {
    grid-template-columns: minmax(0, 1fr) 38px 10px 38px minmax(0, 1fr);
    gap: 6px;
  }

  .team-name {
    font-size: 0.82rem;
  }

  .score-input,
  .score-display {
    width: 38px;
    height: 38px;
    padding: 0;
  }

  .tip-card {
    grid-template-columns: 1fr;
  }

  .tip-card__score {
    grid-column: 1;
    justify-self: stretch;
  }

  .tip-card__teams {
    grid-template-columns: minmax(0, 1fr) 38px 10px 38px minmax(0, 1fr);
    gap: 6px;
  }

  .tip-input {
    width: 38px;
    height: 38px;
    padding: 0;
  }

  .team-name:first-child {
    text-align: left;
  }

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

  .group-table {
    overflow-x: auto;
  }

  table {
    font-size: 0.78rem;
  }

  th,
  td {
    padding: 7px 6px;
  }

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

  .qualified-team {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .qualified-team span:last-child {
    grid-column: 2;
  }

  .auth-panel,
  .betting-panel {
    padding: 12px;
  }

  .auth-actions,
  .betting-actions,
  .betting-topline {
    display: grid;
    grid-template-columns: 1fr;
  }

  .leaderboard-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .leaderboard-points {
    grid-column: 2;
  }

  .live-score {
    font-size: 1.2rem;
  }

  footer {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .hero {
    padding-top: 140px;
  }

  .world-cup-trophy {
    width: 128px;
  }

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

  .teams,
  .tip-card__teams {
    grid-template-columns: 1fr 36px 8px 36px 1fr;
  }

  .score-input,
  .score-display,
  .tip-input {
    width: 36px;
  }
}
