:root {
  --ink: #172026;
  --muted: #63727a;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --line: #d8e0dc;
  --green: #0f6d58;
  --green-dark: #0b4238;
  --coral: #ef6f5e;
  --mint: #9be3c9;
  --gold: #c95b46;
  --blue: #3967a8;
  --shadow: 0 18px 55px rgba(20, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid rgba(23, 32, 38, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-logo {
  display: block;
  width: 66px;
  height: auto;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 800;
  letter-spacing: 0;
}

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

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #35444a;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  padding: 10px 12px;
  border-radius: 8px;
}

.nav a:hover {
  background: rgba(15, 109, 88, 0.1);
}

.profile-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  min-height: 48px;
  padding: 5px 10px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.profile-copy {
  min-width: 0;
  text-align: left;
}

.profile-copy strong,
.profile-copy small {
  display: block;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy strong {
  font-size: 13px;
}

.profile-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.profile-icon {
  display: none;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 76px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: end;
  gap: 28px;
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
}

.hero > img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 20, 18, 0.86), rgba(8, 20, 18, 0.56) 42%, rgba(8, 20, 18, 0.12)),
    linear-gradient(0deg, rgba(8, 20, 18, 0.72), rgba(8, 20, 18, 0.05) 54%);
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
  color: white;
}

.eyebrow {
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 14px 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-title-logo {
  display: block;
  max-width: min(620px, 64vw);
  margin: clamp(8px, 1vw, 12px) 0 clamp(16px, 2vw, 22px);
  line-height: 0;
  text-align: left;
}

.hero-title-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(32vh, 310px);
  object-fit: contain;
  object-position: left center;
}

.hero p {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  background: var(--coral);
  color: #231412;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: white;
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  backdrop-filter: blur(14px);
}

.hero-panel div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.hero-panel .account-empty {
  display: grid;
  justify-content: stretch;
  align-items: start;
  gap: 10px;
}

.hero-panel .hero-greeting {
  display: grid;
  justify-content: stretch;
  align-items: start;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-greeting strong {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
}

.hero-greeting span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 800;
}

.hero-panel .hero-points-row {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-panel .pending-picks-line {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px;
}

.hero-panel .pending-picks-line::before {
  content: "";
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: 1px;
  margin: 0 0 14px;
  background: rgba(255, 255, 255, 0.22);
}

.hero-panel .pending-picks-number {
  color: white;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.account-empty strong {
  font-size: 26px;
  line-height: 1.1;
}

.account-empty p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.panel-action {
  min-height: 42px;
  margin-top: 6px;
  border: 0;
  border-radius: 8px;
  background: white;
  color: #0a0908;
  font-weight: 900;
  cursor: pointer;
}

.metric-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.hero-panel strong {
  font-size: 24px;
}

.workspace,
.split-section,
.rules,
.prizes-section,
.countdown-section,
.admin-section,
.join-callout {
  padding: clamp(34px, 6vw, 72px) clamp(18px, 4vw, 56px);
}

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

.section-heading.compact {
  align-items: center;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
}

.section-heading p {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.segmented button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.segmented .active {
  background: var(--green);
  color: white;
}

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

.empty-matches {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.match-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(20, 32, 38, 0.06);
}

.match-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.teams {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.team-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 10px;
}

.flag {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.score-input {
  width: 70px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
}

.match-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.save-pick,
.primary-mini,
.text-button,
.export-button {
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.save-pick,
.primary-mini {
  min-height: 38px;
  padding: 0 13px;
  background: var(--green);
  color: white;
}

.save-pick:disabled,
.score-input:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.match-card.locked {
  opacity: 0.72;
}

.match-card.locked .lock-note {
  color: var(--coral);
}

.text-button {
  min-height: 36px;
  padding: 0 10px;
  background: rgba(15, 109, 88, 0.1);
  color: var(--green);
}

.export-button {
  min-height: 38px;
  padding: 0 12px;
  background: var(--blue);
  color: white;
}

.lock-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding-top: clamp(42px, 7vw, 96px);
  justify-items: center;
}

.ranking-panel {
  min-width: 0;
  width: min(760px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.leaderboard {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f4f7f4;
}

.leaderboard strong {
  display: block;
}

.leaderboard span {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.leaderboard-empty {
  text-align: center;
  padding: 24px 12px;
  color: var(--muted);
}

.points {
  color: var(--green);
  font-weight: 900;
}

.rules {
  padding-top: 0;
}

.countdown-section {
  background: #0a0908;
  padding-top: 28px;
  padding-bottom: 28px;
}

.join-callout {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  background: #0a0908;
}

.join-callout h2 {
  max-width: 960px;
  margin: 8px 0 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.94;
  text-transform: uppercase;
}

.join-callout p {
  min-width: 260px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.2;
}

.join-callout strong {
  color: white;
}

.countdown-heading {
  align-items: center;
  margin-bottom: 14px;
}

.countdown-heading h2 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
  text-transform: none;
}

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

.countdown-grid div {
  min-height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.countdown-grid strong {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.countdown-grid span {
  color: var(--muted);
  font-size: clamp(12px, 1.6vw, 16px);
  font-weight: 900;
}

.prizes-section {
  padding-bottom: 0;
}

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

.prize-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.prize-card span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.prize-card strong {
  display: block;
  margin-top: 18px;
  font-size: 25px;
  line-height: 1.08;
}

.prize-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.prize-card.grand {
  grid-column: span 2;
}

.prize-card.weekly {
  background: var(--ink);
  color: var(--paper);
}

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

.rule-grid article {
  min-height: 190px;
  padding: 22px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
}

.rule-grid span {
  color: var(--gold);
  font-size: 34px;
  font-weight: 900;
}

.rule-grid strong {
  display: block;
  margin-top: 18px;
  font-size: 18px;
}

.rule-grid p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  min-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 8px;
  background: #172026;
  color: white;
  text-align: center;
  font-weight: 800;
  box-shadow: var(--shadow);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #0a0908;
  color: white;
}

.site-footer img {
  width: 86px;
  height: auto;
}

.site-footer strong,
.site-footer a {
  display: block;
  text-align: right;
}

.site-footer strong {
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.site-footer a {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.auth-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 18, 0.66);
  backdrop-filter: blur(10px);
}

.auth-dialog {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 26px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.auth-dialog h2 {
  margin: 7px 42px 8px 0;
  font-size: 32px;
  letter-spacing: 0;
}

.auth-intro {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f7f4;
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.auth-tabs button.active {
  background: var(--surface);
  color: var(--green);
  box-shadow: 0 6px 16px rgba(20, 32, 38, 0.08);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #314047;
  font-size: 13px;
  font-weight: 800;
}

.auth-form input,
.auth-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

.auth-form textarea {
  min-height: 86px;
  padding-top: 11px;
  resize: vertical;
}

.verify-note {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(57, 103, 168, 0.22);
  border-radius: 8px;
  background: rgba(57, 103, 168, 0.08);
  color: #314047;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.auth-form input:focus,
.auth-form textarea:focus,
.score-input:focus {
  outline: 3px solid rgba(15, 109, 88, 0.18);
  border-color: var(--green);
}

.auth-submit,
.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.auth-submit {
  margin-top: 4px;
  border: 0;
  background: var(--green);
  color: white;
}

.forgot-link {
  margin-top: 6px;
  padding: 6px 4px;
  background: transparent;
  border: 0;
  color: inherit;
  opacity: 0.7;
  font-size: 13px;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
}

.forgot-link:hover {
  opacity: 1;
}

.change-password-form {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.google-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.google-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--blue);
  font-weight: 900;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.session-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: #f4f7f4;
}

.session-panel > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.session-panel strong,
.session-panel p {
  display: block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-panel p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 110px;
  }

  .hero-panel {
    max-width: 420px;
  }

  .match-grid,
  .rule-grid,
  .prize-grid,
  .admin-grid,
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 640px) {
  .topbar {
    min-height: 66px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 56px;
  }

  .brand strong {
    max-width: none;
    white-space: nowrap;
    letter-spacing: 1.5px;
    font-size: 11px;
  }

  .brand small {
    display: none;
  }

  .profile-button {
    min-width: 44px;
    width: 44px;
    padding: 4px;
    display: grid;
    place-items: center;
  }

  .profile-copy {
    display: none;
  }

  .profile-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 16px;
    line-height: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .auth-modal {
    padding: 12px;
  }

  .auth-dialog {
    padding: 20px 18px;
    max-height: calc(100vh - 24px);
  }

  .auth-dialog h2 {
    font-size: 22px;
    margin: 4px 42px 6px 0;
    letter-spacing: 0;
  }

  .auth-intro {
    font-size: 13px;
    margin: 0 0 14px;
  }

  .auth-tabs {
    margin-bottom: 14px;
  }

  .auth-form {
    gap: 10px;
  }

  .auth-form input,
  .auth-form textarea {
    font-size: 16px;
    padding: 10px 12px;
  }

  .auth-submit,
  .google-button {
    padding: 12px;
    font-size: 14px;
  }

  .close-button {
    width: 30px;
    height: 30px;
    top: 12px;
    right: 12px;
  }

  .hero {
    padding: 84px 18px 24px;
  }

  .hero-title-logo {
    max-width: min(430px, 90vw);
    margin-bottom: 14px;
  }

  .hero-actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .match-grid,
  .rule-grid,
  .prize-grid {
    grid-template-columns: 1fr;
  }

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

  .countdown-grid div {
    min-height: 80px;
  }

  .prize-card.grand {
    grid-column: auto;
  }

  .workspace,
  .split-section,
  .rules,
  .prizes-section,
  .countdown-section,
  .join-callout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .join-callout {
    align-items: start;
    flex-direction: column;
  }

  .join-callout p {
    min-width: 0;
  }

  .team-row {
    grid-template-columns: 32px minmax(0, 1fr) 58px;
  }

  .score-input {
    width: 58px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer strong,
  .site-footer a {
    text-align: left;
  }
}

/* ByHormiga visual skin */
:root {
  --ink: #f8f6ef;
  --muted: rgba(248, 246, 239, 0.66);
  --paper: #0a0908;
  --surface: #151210;
  --line: rgba(255, 255, 255, 0.14);
  --green: #f7f3e8;
  --green-dark: #0a0908;
  --coral: #c95b46;
  --mint: #6fc3bd;
  --gold: #c95b46;
  --blue: #8f8aa8;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
}

body {
  background:
    radial-gradient(circle at 18% 18%, rgba(109, 46, 37, 0.2), transparent 28%),
    radial-gradient(circle at 80% 8%, rgba(82, 77, 104, 0.16), transparent 26%),
    var(--paper);
  color: var(--ink);
}

.topbar {
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.9), rgba(10, 9, 8, 0.52));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  color: white;
  text-transform: uppercase;
}

.brand-mark {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
}

.brand-logo {
  width: 74px;
  opacity: 0.96;
}

.brand strong {
  letter-spacing: 5px;
  font-size: 13px;
}

.brand small,
.profile-copy small {
  color: rgba(255, 255, 255, 0.55);
}

.nav {
  color: rgba(255, 255, 255, 0.68);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11px;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.profile-button,
.icon-button {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.hero {
  min-height: min(760px, calc(100vh - 76px));
}

.hero > img {
  filter: saturate(0.74) contrast(1.18) brightness(0.72);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 9, 8, 0.88), rgba(10, 9, 8, 0.55) 45%, rgba(10, 9, 8, 0.12)),
    radial-gradient(circle at 72% 42%, rgba(189, 74, 52, 0.34), transparent 35%),
    linear-gradient(0deg, rgba(10, 9, 8, 0.92), rgba(10, 9, 8, 0.06) 58%);
}

.hero-content {
  max-width: 980px;
}

.hero h1 {
  max-width: 980px;
  margin: 18px 0 18px;
  font-size: clamp(68px, 13vw, 160px);
  line-height: 0.78;
  font-weight: 900;
  text-transform: lowercase;
}

.hero-title-logo {
  max-width: min(610px, 64vw);
  margin: clamp(6px, 1vw, 10px) 0 clamp(16px, 2vw, 22px);
}

.hero-title-logo img {
  max-height: min(32vh, 310px);
}

.hero p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.62);
}

.eyebrow {
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 3px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
}

.primary-action {
  background: white;
  color: #0a0908;
}

.secondary-action {
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: rgba(10, 9, 8, 0.46);
}

.brand-ticker {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0908;
}

.brand-ticker div {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: ticker 22s linear infinite;
}

.brand-ticker b {
  color: var(--coral);
  font-size: 14px;
  line-height: 1;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.33%);
  }
}

.lock-note,
.leaderboard span,
.section-heading p {
  color: var(--muted);
}

.section-heading h2,
.auth-dialog h2 {
  text-transform: uppercase;
  letter-spacing: -1px;
}

.match-card,
.ranking-panel {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.match-meta {
  color: rgba(255, 255, 255, 0.48);
  letter-spacing: 2px;
}

.flag {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.score-input,
.auth-form input,
.auth-form textarea {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.score-input::placeholder,
.auth-form input::placeholder,
.auth-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.save-pick,
.primary-mini,
.auth-submit {
  background: white;
  color: #0a0908;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 12px;
}

.panel-action {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 12px;
}

.segmented,
.auth-tabs {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.segmented button,
.auth-tabs button {
  color: rgba(255, 255, 255, 0.54);
}

.segmented .active,
.auth-tabs button.active {
  background: white;
  color: #0a0908;
}

.leaderboard li {
  background: rgba(255, 255, 255, 0.055);
}

.points {
  color: var(--gold);
}

.rule-grid article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #151210;
}

.countdown-grid div {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 72% 20%, rgba(201, 91, 70, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.045);
}

.countdown-grid strong {
  color: white;
}

.prize-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.prize-card.grand {
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 91, 70, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.055);
}

.prize-card.weekly {
  background: white;
  color: #0a0908;
}

.prize-card.weekly p {
  color: rgba(10, 9, 8, 0.62);
}

.auth-dialog {
  background: #151210;
  color: white;
}

.auth-form label {
  color: rgba(255, 255, 255, 0.72);
}

.close-button,
.google-button {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.verify-note {
  border-color: rgba(201, 91, 70, 0.32);
  background: rgba(201, 91, 70, 0.1);
  color: rgba(255, 255, 255, 0.72);
}

.session-panel {
  background: rgba(255, 255, 255, 0.06);
}

.text-button {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

@media (max-width: 640px) {
  .hero-title-logo {
    max-width: min(330px, 90vw);
    margin-top: 10px;
  }

  .hero-title-logo img {
    max-height: 142px;
  }

  .admin-gate,
  .admin-gate form,
  .admin-card-heading {
    display: grid;
  }

  .admin-stats,
  .admin-result-row {
    grid-template-columns: 1fr;
  }
}

.hero-panel .user-summary {
  display: grid;
  gap: 18px;
  width: 100%;
}

.hero-panel .user-summary-head {
  display: grid;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-panel .user-summary-head strong {
  color: white;
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 950;
  line-height: 0.95;
}

.hero-panel .user-summary-head span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.hero-panel .user-summary-points,
.hero-panel .user-summary-pending {
  display: grid;
  align-items: center;
  column-gap: 16px;
}

.hero-panel .user-summary-points {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-panel .user-summary-pending {
  grid-template-columns: auto auto minmax(0, 1fr);
  justify-content: start;
  column-gap: 10px;
}

.hero-panel .user-summary-points span,
.hero-panel .user-summary-pending span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  font-weight: 900;
}

.hero-panel .user-summary-points strong,
.hero-panel .user-summary-pending strong {
  color: white;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.admin-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0908;
}

.admin-gate,
.admin-card,
.admin-stats article {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

.admin-gate strong,
.admin-card h3 {
  color: white;
  font-size: 24px;
  line-height: 1;
}

.admin-gate p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.admin-gate form {
  display: flex;
  gap: 10px;
}

.admin-gate input,
.admin-result-row input {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-weight: 900;
  text-align: center;
}

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

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

.admin-stats article {
  padding: 18px;
}

.admin-stats span {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 900;
}

.admin-stats strong {
  display: block;
  margin-top: 8px;
  color: white;
  font-size: 34px;
  line-height: 1;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}

.admin-card {
  padding: 18px;
}

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

.admin-results-list {
  display: grid;
  max-height: 620px;
  overflow: auto;
  gap: 10px;
  padding-right: 6px;
}

.admin-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px 82px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-result-row span,
.admin-ranking small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-result-row strong {
  display: block;
  margin-top: 4px;
  color: white;
}

.admin-result-row label {
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.admin-ranking {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-ranking li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.admin-ranking li > span,
.admin-ranking b {
  color: white;
  font-weight: 950;
}

.admin-empty {
  grid-template-columns: 1fr !important;
  color: rgba(255, 255, 255, 0.62);
}

.admin-users-table {
  overflow-x: auto;
}

.admin-users-table table {
  width: 100%;
  border-collapse: collapse;
  color: white;
}

.admin-users-table th,
.admin-users-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.admin-users-table th {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  text-transform: uppercase;
}
