:root {
  --ink: #071126;
  --muted: #8b96aa;
  --line: #dce5e8;
  --paper: #eef3ec;
  --panel: #ffffff;
  --field: #f8faf9;
  --green: #00684f;
  --green-2: #003d2d;
  --green-3: #001f17;
  --orange: #f7a400;
  --orange-2: #ff7900;
  --red: #b9272f;
  --blue: #10182f;
  --shadow: 0 22px 46px rgba(0, 32, 24, 0.14);
  --hard-shadow: 8px 10px 0 rgba(0, 42, 31, 0.08);
  --display: Impact, "Arial Black", "Trebuchet MS", sans-serif;
  --sans: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background:
    linear-gradient(140deg, rgba(4, 13, 30, 0.36), rgba(2, 31, 22, 0.26)),
    radial-gradient(circle at 50% 105%, rgba(135, 255, 107, 0.26), transparent 40%),
    radial-gradient(circle at 50% 0%, rgba(157, 204, 255, 0.22), transparent 38%),
    url("https://images.unsplash.com/photo-1431324155629-1a6deb1dec8d?auto=format&fit=crop&w=2200&q=80");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

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

button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 2px;
  color: #fff;
  background: var(--green-2);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

button:hover {
  background: var(--green);
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--field);
  color: var(--ink);
  padding: 0 12px;
}

textarea {
  min-height: 112px;
  padding: 10px 12px;
  resize: vertical;
}

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

h1,
h2 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 {
  max-width: 940px;
  color: var(--blue);
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.88;
  text-shadow: 3px 3px 0 rgba(0, 104, 79, 0.08);
}

h2 {
  color: var(--blue);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.92;
}

h3 {
  color: var(--blue);
  font-size: 18px;
}

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

.eyebrow {
  margin-bottom: 8px;
  color: #6e7d97;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

.auth-gate {
  display: grid;
  grid-template-columns: minmax(380px, 1.12fr) minmax(360px, 0.88fr);
  min-height: 100vh;
}

.auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(34px, 6vw, 74px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 18, 13, 0.86), rgba(0, 72, 54, 0.66)),
    url("https://images.unsplash.com/photo-1517466787929-bc90951d0974?auto=format&fit=crop&w=1600&q=85");
  background-size: cover;
  background-position: center;
}

.auth-hero::after {
  content: "2026";
  position: absolute;
  right: -70px;
  bottom: -24px;
  color: rgba(255, 255, 255, 0.05);
  font-family: var(--display);
  font-size: 220px;
  line-height: 0.8;
}

.auth-hero h1,
.auth-hero .eyebrow,
.auth-hero .muted,
.landing-logo-stack,
.sponsor-strip {
  position: relative;
  z-index: 1;
}

.auth-hero h1 {
  color: #fff;
}

.auth-hero .muted {
  max-width: 460px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.76);
}

.landing-logo-stack {
  display: grid;
  gap: 28px;
  max-width: 780px;
}

.landing-logo {
  width: min(190px, 42vw);
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));
}

.sponsor-strip {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  width: fit-content;
  margin-top: 44px;
  padding: 14px 18px;
  border-left: 5px solid var(--orange);
  background: rgba(0, 20, 15, 0.72);
  box-shadow: var(--shadow);
}

.sponsor-strip span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sponsor-strip img {
  width: 148px;
  max-width: 38vw;
  height: auto;
}

.auth-panels {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 36px;
}

.landing-copy {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.landing-copy h2 {
  font-size: clamp(36px, 5vw, 58px);
}

.pool-gate {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(0, 31, 23, 0.84), rgba(0, 67, 50, 0.68)),
    url("https://images.unsplash.com/photo-1517927033932-b3d18e61fb3a?auto=format&fit=crop&w=1600&q=85");
  background-size: cover;
  background-position: center;
}

.pool-card {
  display: grid;
  gap: 18px;
  width: min(920px, 100%);
  padding: clamp(24px, 5vw, 54px);
  border-top: 7px solid var(--orange);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.pool-logo {
  width: 126px;
  height: auto;
}

.pool-card h1 {
  font-size: clamp(42px, 7vw, 82px);
}

.join-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 8px;
}

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

.pool-options article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.pool-options strong {
  color: var(--blue);
}

.pool-options span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  overflow: hidden;
  padding: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 18%, rgba(247, 164, 0, 0.12), transparent 26%),
    linear-gradient(155deg, rgba(2, 54, 39, 0.98), rgba(0, 25, 18, 0.98));
}

.sidebar::before {
  content: "2026";
  position: absolute;
  left: -50px;
  top: 96px;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--display);
  font-size: 210px;
  letter-spacing: -0.08em;
  line-height: 0.9;
  pointer-events: none;
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: auto -120px 210px 40px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  transform: rotate(-8deg);
  pointer-events: none;
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: grid;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand-logo {
  width: 114px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.38));
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  max-width: 230px;
  font-family: var(--display);
  font-size: 30px;
  line-height: 0.98;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.brand small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.nav {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 62px;
  color: rgba(255, 255, 255, 0.84);
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
}

.nav-item::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-item.active {
  color: #03170f;
  background: var(--orange);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.22);
}

.sidebar-card {
  margin-top: auto;
  padding: 24px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-card .eyebrow {
  color: var(--orange);
}

.score-rules {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.score-rules span {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: baseline;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.score-rules strong {
  color: #fff;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0;
}

.score-rules span:last-child strong {
  color: var(--orange);
}

.main {
  position: relative;
  overflow: hidden;
  padding: 42px min(4vw, 54px) 64px;
}

.main::before {
  content: "USA CAN MEX 2026";
  position: fixed;
  right: 3vw;
  bottom: -22px;
  z-index: -1;
  color: rgba(0, 61, 45, 0.035);
  font-family: var(--display);
  font-size: min(18vw, 260px);
  letter-spacing: -0.05em;
  pointer-events: none;
}

.topbar,
.section-head,
.status-grid,
.admin-grid {
  display: grid;
  gap: 18px;
}

.topbar h1 {
  color: #f6fbff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.section-head h2,
.news-head h2 {
  color: #eef6ff;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.42);
}

.topbar {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  align-items: start;
  margin-bottom: 34px;
}

.account-menu {
  position: relative;
  justify-self: end;
  width: 100%;
}

.account-button {
  justify-content: space-between;
  width: 100%;
  min-height: 104px;
  padding: 20px 22px;
  border-bottom: 6px solid var(--orange);
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.account-button:hover {
  color: var(--ink);
  background: #fff;
}

#accountGreeting {
  display: grid;
  gap: 10px;
  text-align: left;
}

#accountGreeting::before {
  content: "Player session";
  color: #8d98ad;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.account-caret {
  color: var(--orange-2);
  font-size: 14px;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10;
  display: none;
  min-width: 230px;
  padding: 18px;
  color: #dce7e3;
  background: #252f34;
  box-shadow: var(--shadow);
}

.account-dropdown.open {
  display: grid;
  gap: 8px;
}

.dropdown-action,
.secondary-button {
  color: inherit;
  text-align: left;
  background: transparent;
  box-shadow: none;
}

.secondary-button {
  color: var(--green);
  border: 1px solid var(--line);
}

.status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 38px;
}

.metric,
.match-card,
.tool-panel,
.table-wrap,
.schedule-item {
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.metric {
  position: relative;
  min-height: 126px;
  overflow: hidden;
  padding: 28px 30px;
  border-top: 4px solid var(--green);
}

.metric::after {
  content: "06";
  position: absolute;
  right: -6px;
  bottom: -20px;
  color: rgba(0, 104, 79, 0.035);
  font-family: var(--display);
  font-size: 90px;
}

.metric:nth-child(3) {
  border-color: #061d15;
  color: #fff;
  background: linear-gradient(135deg, #001f17, #013b2c);
}

.metric:nth-child(3)::after {
  content: "LIVE";
  color: rgba(255, 255, 255, 0.05);
}

.metric span {
  display: block;
  color: #8d98ad;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric span small {
  display: inline-block;
  margin-left: 6px;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.metric:nth-child(3) span {
  color: var(--orange);
}

.metric strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  color: inherit;
  font-family: var(--display);
  font-size: 29px;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.section-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 3px solid rgba(220, 229, 232, 0.8);
}

.section-head > * {
  min-width: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 100%;
  min-width: 0;
  padding: 6px;
  background: rgba(225, 235, 238, 0.74);
}

.filters button {
  min-height: 40px;
  border: 1px solid transparent;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

.filters button.active {
  color: #fff;
  background: var(--green);
  border-color: var(--green-2);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.16);
}

.news-strip {
  display: grid;
  gap: 16px;
  margin-bottom: 34px;
}

.news-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.news-head h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.news-source {
  padding: 10px 12px;
  color: var(--orange);
  background: var(--green-3);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.news-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 174px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.news-card::after {
  content: "NEWS";
  position: absolute;
  right: -8px;
  bottom: -18px;
  color: rgba(0, 104, 79, 0.04);
  font-family: var(--display);
  font-size: 72px;
  pointer-events: none;
}

.news-card > * {
  position: relative;
  z-index: 1;
}

.news-card h3 {
  font-family: var(--display);
  font-size: 24px;
  line-height: 0.98;
  text-transform: uppercase;
}

.news-card a {
  align-self: end;
  width: fit-content;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.news-card a:hover {
  color: var(--orange-2);
}

.news-tag {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.skeleton-news {
  min-height: 118px;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.match-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 26px;
}

.match-card {
  position: relative;
  display: grid;
  gap: 18px;
  overflow: hidden;
  padding: 26px;
  border-top: 4px solid #e8f9f2;
}

.match-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 92px;
  height: 72px;
  background: #e8fff4;
  clip-path: polygon(0 0, 100% 0, 76% 100%, 0 100%);
}

.match-card > * {
  position: relative;
  z-index: 1;
}

.match-meta,
.teams-row,
.prediction-form,
.schedule-item {
  display: flex;
  align-items: center;
}

.match-meta {
  justify-content: space-between;
  min-height: 48px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage {
  max-width: 145px;
  color: var(--green);
}

.teams-row {
  justify-content: space-between;
  gap: 16px;
}

.team {
  display: grid;
  flex: 1;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--blue);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.team.away {
  text-align: center;
}

.team-badge {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  overflow: hidden;
  border: 4px solid #f4f8f8;
  border-radius: 50%;
  color: #fff;
  background: #002c20;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
  font-family: var(--display);
}

.team-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  overflow-wrap: anywhere;
}

.actual-score {
  min-width: 56px;
  color: #d6dde6;
  text-align: center;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.prediction-form {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.prediction-form input[type="number"] {
  width: 100%;
  min-height: 62px;
  background: #f8fafc;
  font-family: var(--display);
  font-size: 24px;
  text-align: center;
}

.versus {
  color: #c7d1dc;
  font-size: 26px;
  font-weight: 900;
}

.joker {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--orange-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.joker input,
.choice-list input,
.inline-check input {
  width: auto;
  min-height: auto;
}

.prediction-form button {
  grid-column: 1 / -1;
  min-height: 58px;
  background: var(--green-3);
}

.form-state {
  min-height: 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.bonus-card form {
  display: grid;
  gap: 10px;
}

.bracket-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 26px;
  padding: 28px;
  border-top: 5px solid var(--green);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 243, 0.94)),
    repeating-linear-gradient(90deg, rgba(0, 104, 79, 0.05) 0 1px, transparent 1px 54px);
  box-shadow: var(--shadow);
}

.bracket-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  gap: 18px;
  align-items: start;
}

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

.point-ladder span {
  display: grid;
  gap: 4px;
  padding: 12px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--green-3);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.point-ladder strong {
  color: var(--orange);
  font-family: var(--display);
  font-size: 18px;
}

.sim-section {
  display: grid;
  gap: 14px;
}

.section-kicker {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-kicker small {
  margin-left: 8px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

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

.group-card,
.third-card,
.bracket-match {
  border: 1px solid var(--line);
  background: #fff;
}

.group-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.group-card h4,
.bracket-round h4 {
  margin: 0;
  color: var(--blue);
  font-family: var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.standing-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
}

.standing-row span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.third-place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.third-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  align-items: center;
  padding: 12px;
}

.third-card.selected {
  border-color: var(--orange);
  box-shadow: inset 0 -4px 0 var(--orange);
}

.third-card input {
  width: auto;
  min-height: auto;
}

.third-card small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bracket-rounds {
  display: grid;
  grid-template-columns: repeat(5, minmax(250px, 1fr));
  gap: 34px;
  overflow-x: auto;
  padding: 18px;
  background:
    radial-gradient(circle at 72% 50%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(112deg, #ff967d 0 34%, #ff3f10 34% 100%);
  box-shadow: inset 0 -80px 80px rgba(0, 0, 0, 0.22);
}

.bracket-round {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 250px;
}

.bracket-round:nth-child(2) {
  padding-top: 78px;
  gap: 74px;
}

.bracket-round:nth-child(3) {
  padding-top: 214px;
  gap: 212px;
}

.bracket-round:nth-child(4) {
  padding-top: 486px;
  gap: 486px;
}

.bracket-round:nth-child(5) {
  padding-top: 1040px;
}

.bracket-round h4 {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 0 4px;
  padding: 12px;
  border-radius: 6px;
  color: #fff;
  background: #171717;
  text-align: center;
}

.bracket-match {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 140px;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #111;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.26);
}

.match-number {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.match-number strong {
  color: #fff;
}

.match-number span {
  color: #35f0c0;
  text-align: right;
}

.match-source {
  display: grid;
  gap: 4px;
  color: #35f0c0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.bracket-round:not(:last-child) .bracket-match::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -34px;
  width: 34px;
  border-top: 2px solid #111;
}

.bracket-round:not(:first-child) .bracket-match::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -34px;
  width: 34px;
  border-top: 2px solid #111;
}

.bracket-round:nth-child(2) .bracket-match::before,
.bracket-round:nth-child(2) .bracket-match::after {
  width: 34px;
}

.bracket-team-options {
  display: grid;
  gap: 6px;
}

.bracket-team-options button {
  min-height: 44px;
  padding: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
  text-align: left;
}

.bracket-team-options button:hover:not(:disabled),
.bracket-team-options button.selected {
  color: #fff;
  background: var(--green);
}

.bracket-team-options button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.65;
}

.mini-team {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.mini-team img {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.mini-team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.choice-list {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.choice-list label {
  display: flex;
  gap: 8px;
  align-items: center;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.92);
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.schedule {
  display: grid;
  gap: 12px;
}

.player-picks {
  display: grid;
  gap: 18px;
}

.public-pick-card,
.empty-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.rules-page {
  display: grid;
  gap: 24px;
}

.rules-hero-card,
.rule-block,
.rules-tip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.rules-hero-card {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 38px);
  border-top: 6px solid var(--orange);
}

.rules-hero-card h3 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
}

.rules-hero-card p,
.rule-block p,
.rules-tip {
  color: #394454;
  font-size: 16px;
  line-height: 1.6;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.rule-block {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 24px;
  border-top: 4px solid var(--green);
}

.rule-block::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 130px;
  height: 130px;
  border: 18px solid rgba(0, 104, 79, 0.05);
  border-radius: 50%;
}

.rule-number {
  color: var(--orange);
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
}

.rule-block h3 {
  font-family: var(--display);
  font-size: 27px;
  line-height: 1;
  text-transform: uppercase;
}

.rules-table {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
}

.rules-table span,
.rules-table strong {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.rules-table span:nth-last-child(2),
.rules-table strong:last-child {
  border-bottom: 0;
}

.rules-table strong {
  color: #fff;
  background: var(--green);
}

.rules-tip {
  padding: 22px;
  border-left: 7px solid var(--orange);
}

.schedule-item {
  justify-content: space-between;
  padding: 18px;
  border-left: 5px solid var(--green);
}

.schedule-item strong {
  display: block;
}

.schedule-score {
  color: var(--blue);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 900;
}

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

.tool-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.score-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.log {
  display: grid;
  gap: 8px;
  max-height: 210px;
  overflow: auto;
  color: var(--muted);
  font-size: 13px;
}

.ghost-link {
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.profile-form {
  display: grid;
  gap: 18px;
  max-width: 900px;
}

.profile-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.inline-check {
  display: flex !important;
  gap: 8px;
  align-items: center;
}

@media (max-width: 1100px) {
  .topbar,
  .section-head,
  .status-grid,
  .news-head {
    grid-template-columns: 1fr;
  }

  .account-menu {
    justify-self: stretch;
  }

  .filters {
    justify-content: flex-start;
  }

  .bracket-intro {
    grid-template-columns: 1fr;
  }

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

  .news-cards {
    grid-template-columns: 1fr;
  }
}

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

  .auth-gate {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    gap: 18px;
  }

  .sidebar::before,
  .sidebar::after {
    display: none;
  }

  .nav {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-top: 6px;
  }

  .nav-item {
    min-height: 52px;
  }

  .sidebar-card {
    display: none;
  }

  .topbar {
    margin-bottom: 22px;
  }

  .main::before {
    display: none;
  }

  .account-button {
    min-height: 84px;
  }

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

  .bracket-intro {
    grid-template-columns: 1fr;
  }

  .bracket-rounds {
    grid-template-columns: repeat(5, minmax(220px, 82vw));
    gap: 24px;
    padding: 14px;
  }

  .bracket-round {
    min-width: 220px;
  }

  .bracket-card {
    padding: 20px;
  }

  .filters {
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow-x: visible;
    width: 100%;
  }

  .filters button {
    flex: 1 1 120px;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .auth-hero,
  .auth-panels,
  .main,
  .sidebar {
    padding: 24px;
  }

  .join-form,
  .pool-options {
    grid-template-columns: 1fr;
  }

  .status-grid {
    gap: 12px;
  }

  .metric {
    min-height: 104px;
    padding: 22px;
  }

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

  .section-head {
    margin-bottom: 20px;
  }

  .news-strip {
    margin-bottom: 28px;
  }

  .news-card {
    min-height: 150px;
    padding: 18px;
  }

  .schedule-item {
    display: grid;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 38px;
  }

  .brand-logo {
    width: 92px;
  }

  .brand {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .brand strong {
    font-size: 24px;
  }

  .brand small {
    letter-spacing: 0.2em;
  }

  .score-inputs {
    grid-template-columns: 1fr;
  }

  .teams-row {
    gap: 8px;
  }

  .match-card {
    padding: 20px;
  }

  .match-meta {
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
  }

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

  .team {
    font-size: 12px;
  }

  .point-ladder {
    grid-template-columns: 1fr;
  }

  .team-badge {
    width: 54px;
    height: 54px;
  }
}
