@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-soft: #f5f5f4;
  --line: #e7e5e4;
  --fg: #111827;
  --muted: #71717a;
  --accent: #111827;
  --accent-fg: #ffffff;
  --good: #16a34a;
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); line-height: 1.45; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 18px; }
.wrap-narrow { max-width: 680px; }
a { color: inherit; }

.topbar { padding: 20px 0 8px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-lockup { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: 44px; height: 44px; object-fit: contain; }
.brand-logo-main { width: 150px; height: auto; max-height: 56px; }
.topnav { display: flex; align-items: center; gap: 16px; font-size: 0.86rem; white-space: nowrap; }
.topnav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.topnav a:hover { color: var(--fg); }
.menu-toggle {
  display: none;
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 0;
  place-items: center;
  cursor: pointer;
}
.menu-toggle::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.menu-toggle:hover::before,
.menu-toggle[aria-expanded="true"]::before { opacity: 1; }
.menu-toggle span {
  position: absolute;
  left: 50%;
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--fg);
  transform: translateX(-50%);
  transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease;
}
.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 18px; }
.menu-toggle span:nth-child(3) { top: 23px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 18px; transform: translateX(-50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 18px; transform: translateX(-50%) rotate(-45deg); }

.hero { padding: 14px 0 16px; text-align: center; }
.traffic-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  margin: 0 0 18px;
  padding: 7px 12px;
}
.traffic-line strong { color: #059669; }
.traffic-line a { color: var(--fg); font-weight: 700; text-decoration: none; }
.traffic-line span,
.activity-strip h2 span { width: 7px; height: 7px; border-radius: 50%; background: var(--good); display: inline-block; }
.hero h1 {
  font-size: clamp(1.65rem, 4.4vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 760px;
  margin: 0 auto 14px;
  font-weight: 800;
}
.stepper {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #fee2d9;
  color: #ef6b4a;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}
#hero-price { color: #ea6f52; }
.hero-sub { color: var(--muted); max-width: 620px; margin: 0 auto 18px; font-size: 0.88rem; }
.bid-box {
  display: grid;
  grid-template-columns: minmax(260px, 560px);
  justify-content: center;
  gap: 10px;
  align-items: center;
  margin: 0 auto 10px;
}
.search-wrap {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  min-height: 44px;
}
.search-icon { color: var(--muted); font-weight: 700; }
.search-wrap input,
.bid-box select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
}
.bid-box select {
  min-height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
}
.outbid-btn { min-height: 44px; background: #f1a896; color: #fff; }
.bid-note { color: var(--muted); font-size: 0.82rem; margin: 0 0 4px; }
.board-total { color: var(--muted); font-size: 0.82rem; margin: 0 0 10px; }

.team-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.28);
  backdrop-filter: blur(8px);
}
.team-modal[hidden] { display: none; }
.team-modal-card {
  width: min(480px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.2);
}
.team-modal-card h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}
.team-modal-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}
.modal-search { margin-bottom: 10px; }
.team-suggestions {
  display: grid;
  gap: 8px;
  max-height: 292px;
  overflow-y: auto;
  padding: 4px 2px 12px;
  margin-bottom: 12px;
}
.team-suggestion {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--fg);
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
}
.team-suggestion:hover,
.team-suggestion:focus {
  border-color: #f17255;
  background: #fff8f5;
  outline: 0;
}
.team-suggestion strong,
.team-suggestion small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-suggestion strong { font-size: 0.9rem; }
.team-suggestion small { color: var(--muted); font-size: 0.74rem; }
.modal-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.has-boost-dock { padding-bottom: 88px; }
.boost-modal-open { overflow: hidden; }
.boost-dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 50;
  transform: translateX(-50%);
  width: min(940px, calc(100% - 28px));
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(17, 24, 39, 0.16);
  backdrop-filter: blur(14px);
}
.boost-dock[hidden] { display: none; }
.boost-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--fg);
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.boost-toggle-title {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}
.boost-toggle-club {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.boost-toggle-club strong,
.boost-toggle-club small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boost-toggle-club strong { font-size: 0.98rem; }
.boost-toggle-club small { color: var(--muted); font-size: 0.76rem; }
.boost-toggle-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  padding: 0 18px;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}
.boost-payment-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.34);
  backdrop-filter: blur(10px);
}
.boost-payment-modal[hidden] { display: none; }
.boost-payment-card {
  position: relative;
  width: min(820px, 100%);
  max-height: min(86vh, 860px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 26px 80px rgba(17, 24, 39, 0.22);
}
.boost-team-panel {
  margin: 22px 0 0;
}
.boost-team-panel .empty-panel-row {
  display: block;
  color: var(--muted);
  font-weight: 700;
}
.boost-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font-size: 1.2rem;
  cursor: pointer;
}
.boost-payment-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 42px;
  margin-bottom: 18px;
}
.boost-payment-header h2 {
  margin: 0 0 4px;
  font-size: clamp(1.7rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}
.boost-payment-header p { margin: 0; color: var(--muted); }
.boost-payment-readout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px;
  margin: 8px 0 18px;
}
.boost-payment-readout strong {
  display: block;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
}
.payment-small,
.flip-amount small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}
.boost-payment-readout > div:last-child { text-align: right; }
.boost-bonus-note {
  margin: -4px 0 16px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 10px 12px;
  color: #78350f;
  font-size: 0.86rem;
  font-weight: 700;
}
.boost-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.boost-field input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  font: inherit;
  color: var(--fg);
  outline: 0;
}
.boost-field input:focus,
.boost-message-panel input:focus { border-color: #f17255; }
.boost-quick-amounts { margin: 4px 0; }
.boost-club {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.boost-club strong,
.boost-club small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boost-club strong { font-size: 0.9rem; }
.boost-club small { color: var(--muted); font-size: 0.74rem; }
.boost-control { min-width: 0; display: grid; gap: 5px; }
.boost-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.boost-row label { color: var(--muted); font-size: 0.74rem; font-weight: 800; }
.boost-row strong { color: #f17255; font-size: 1rem; }
.boost-control input[type="range"] {
  width: 100%;
  accent-color: #f17255;
}
.boost-rank-select {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}
.boost-rank-select select {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--fg);
  font: inherit;
  padding: 0 8px;
}
.boost-message-link {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
}
.boost-message-link:hover { color: var(--fg); }
.boost-message-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}
.boost-message-panel[hidden] { display: none; }
.boost-message-panel input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.82rem;
  outline: 0;
}
.boost-message-panel small {
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}
.boost-pay {
  min-height: 46px;
  padding: 0 18px;
  background: #f17255;
  color: #fff;
  white-space: nowrap;
  width: 100%;
  margin-top: 14px;
}
.boost-pay:disabled { opacity: 0.7; cursor: wait; }
.season-note {
  max-width: 720px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 0.82rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: left;
}
.season-note strong { color: var(--fg); }

.hof { margin: 18px 0 22px; }
.hof h2 { font-size: 1rem; margin: 0 0 8px; }
.hof-sub { color: var(--muted); font-weight: 500; }
.hof-grid { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.hof-card { min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.hof-season { color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.hof-podium { list-style: none; margin: 8px 0 0; padding: 0; font-size: 0.88rem; }
.hof-podium li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.hof-pos, .hof-bonus { color: var(--muted); font-weight: 700; }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.section-heading span { font-weight: 800; font-size: 0.95rem; }
.section-heading a { color: #f17255; font-size: 0.82rem; font-weight: 800; text-decoration: none; }
.top-clubs { margin: 14px 0 12px; }
.top-clubs-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.top-club-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  text-decoration: none;
  background: #fff8f5;
  border: 1px solid #f7b29f;
  border-radius: 22px;
  padding: 14px 18px;
  min-width: 0;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
}
.top-club-mark {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
}
.top-club-card .rank-pos {
  justify-self: center;
  min-width: 42px;
}
.top-club-card:hover { border-color: #f17255; }
.top-club-1 { background: #ffe7df; border-color: #f17255; }
.top-club-copy { min-width: 0; display: grid; gap: 3px; }
.top-club-card strong,
.top-club-card small { display: block; }
.top-club-card strong { font-size: 0.98rem; color: var(--fg); }
.top-club-card small { color: var(--muted); font-size: 0.8rem; margin-top: 3px; }
.top-club-card em {
  color: #f17255;
  font-style: normal;
  font-weight: 800;
  font-size: 1rem;
  text-align: right;
  white-space: nowrap;
}

.activity-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px 18px;
  margin: 12px 0 20px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.06);
}
.activity-strip h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  margin: 0 0 10px;
}
.activity-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.activity-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--surface-soft);
  border-radius: 18px;
  padding: 9px 10px;
  min-width: 0;
}
.activity-pill strong,
.activity-pill small,
.activity-pill em,
.activity-pill b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-pill strong { font-size: 0.8rem; }
.activity-pill b { color: #f17255; font-size: 0.66rem; font-weight: 900; }
.activity-pill small { color: var(--fg); font-size: 0.66rem; }
.activity-pill em { color: var(--muted); font-size: 0.62rem; font-style: normal; }
.activity-more {
  display: none;
  margin: 10px auto 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 6px 12px;
  cursor: pointer;
}
.empty-activity { margin: 0; color: var(--muted); font-size: 0.9rem; }
.crest-mini { width: 28px; height: 28px; border-radius: 50%; font-size: 0.6rem; }

.info-page h1 { letter-spacing: -0.03em; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 14px 0;
}
.info-card h2 { margin: 0 0 8px; font-size: 1rem; }
.info-card p { margin: 8px 0 0; }

.division-tabs {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  margin: 20px 0 16px;
  padding: 2px 0 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  touch-action: pan-x;
  cursor: grab;
  user-select: none;
}
.division-tabs.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.division-tabs::-webkit-scrollbar { display: none; }
.division-tabs::after {
  content: "";
  flex: 0 0 4px;
}
.division-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: #1f2937;
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
}
.division-tab span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.72rem;
}
.division-tab.active {
  background: #f17255;
  color: #fff;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.06);
}
.division-tab.active span { background: rgba(255, 255, 255, 0.22); color: #fff; }
.division-leader {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  background: #fff4ef;
  border: 1px solid #fb9a7e;
  color: var(--fg);
  border-radius: 18px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.division-leader span,
.division-leader em { color: var(--muted); font-size: 0.82rem; font-style: normal; }
.division-leader strong { font-size: 0.96rem; }

.board-list { display: grid; gap: 10px; margin: 16px 0 12px; }
.rank-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
}
.rank-main { min-width: 0; display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: start; text-decoration: none; }
.rank-mark {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
}
.rank-pos {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: #f17255;
  color: #fff;
  border-radius: 999px;
  padding: 0 9px;
  text-align: center;
  line-height: 1;
}
.rank-copy { min-width: 0; display: grid; gap: 3px; }
.club-title { font-size: 0.98rem; font-weight: 800; letter-spacing: -0.01em; }
.rank-meta { color: var(--muted); font-size: 0.8rem; }
.rank-side { display: grid; justify-items: end; gap: 8px; text-align: right; }
.pts-value { font-size: 0.98rem; font-weight: 800; letter-spacing: -0.02em; color: #f17255; }
.crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--crest-bg, #111827);
  color: var(--crest-fg, #fff);
  font-weight: 800;
  font-size: 0.74rem;
  flex-shrink: 0;
}
.crest-lg { width: 72px; height: 72px; border-radius: 18px; font-size: 1rem; }
.supporter-line { display: block; color: #f17255; font-size: 0.78rem; font-weight: 900; }
.pinned-message { display: block; max-width: 72ch; color: var(--fg); font-size: 0.83rem; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }
.live-note { color: var(--muted); font-size: 0.85rem; text-align: center; margin: 18px 0 0; }
#live-dot { color: var(--good); }
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
}
.pagination a,
.pagination span,
.pagination strong {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 800;
}
.pagination a { background: var(--accent); color: #fff; text-decoration: none; }
.pagination span { background: var(--surface-soft); color: var(--muted); }
.pagination strong { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  cursor: pointer;
  font-family: var(--font);
  font-weight: 800;
  text-decoration: none;
}
.btn-small { padding: 8px 12px; font-size: 0.78rem; white-space: nowrap; }
.btn-cta {
  width: 100%;
  min-height: 54px;
  padding: 16px;
  font-size: 1rem;
  margin-top: 18px;
  gap: 10px;
}
.btn-cta strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  padding: 0 10px;
  font: inherit;
}
.btn-cta:disabled { opacity: 0.6; cursor: wait; }
.btn-outline { background: var(--surface); color: var(--fg); border: 1px solid var(--line); margin-top: 14px; padding: 10px 16px; }

.team-header { display: flex; align-items: center; gap: 16px; padding: 34px 0 10px; }
.team-header h1 { font-size: clamp(2rem, 7vw, 3.3rem); line-height: 1; letter-spacing: -0.04em; margin: 0 0 6px; }
.team-sub { color: var(--muted); margin: 0; font-size: 0.95rem; }
.simulator { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 22px 0; }
.sim-readout { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.sim-label { display: block; font-size: 0.76rem; color: var(--muted); font-weight: 800; text-transform: uppercase; margin-bottom: 4px; }
.flip-counter { font-size: 3rem; line-height: 1; font-weight: 800; letter-spacing: -0.05em; }
.flip-counter.bump { animation: bump 0.22s ease; }
@keyframes bump { 0% { transform: translateY(8px); opacity: 0.4; } 100% { transform: translateY(0); opacity: 1; } }
.flip-amount { font-size: 1.95rem; font-weight: 800; text-align: right; line-height: 1.05; }
.slider { width: 100%; appearance: none; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--fill, 0%), var(--line) var(--fill, 0%)); outline: none; margin: 6px 0 4px; }
.slider::-webkit-slider-thumb { appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); cursor: pointer; }
.slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); cursor: pointer; }
.slider-scale, .estimate-note, .high-roller, .message-field label, .message-field .char-count { color: var(--muted); font-size: 0.82rem; }
.slider-scale { display: flex; justify-content: space-between; margin-bottom: 16px; }
.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.chip { font-weight: 800; background: var(--surface-soft); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; cursor: pointer; }
.chip.active { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.milestone { background: #fef3c7; border: 1px solid #fde68a; border-radius: 12px; padding: 10px 12px; margin-top: 14px; font-size: 0.9rem; }
.message-field { margin-top: 16px; }
.message-field label { display: block; font-weight: 700; margin-bottom: 6px; }
.message-field input, .high-roller-body input { width: 100%; background: var(--surface); border: 1px solid var(--line); color: var(--fg); border-radius: 12px; padding: 11px 12px; font: inherit; }
.message-field .char-count { display: block; text-align: right; margin-top: 4px; }
.high-roller { margin-top: 18px; }
.high-roller summary { cursor: pointer; color: var(--fg); font-weight: 700; }
.high-roller-body { display: grid; gap: 10px; margin-top: 10px; }
.donor-messages, .rivals { margin: 24px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.donor-messages h2, .rivals h2 { margin: 0 0 8px; }
.donor-messages-list, .rivals-list { list-style: none; padding: 0; margin: 0; }
.donor-messages-list li, .rivals-list li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 10px 0; }
.donor-messages-list b,
.donor-messages-list em { display: block; font-style: normal; }
.donor-messages-list b { color: #f17255; font-size: 0.78rem; }
.donor-messages-list em { color: var(--fg); line-height: 1.35; }
.rivals-list li.is-self, .donor-amount { font-weight: 800; }
.donor-amount {
  display: grid;
  justify-items: start;
  gap: 2px;
  min-width: 92px;
}
.donor-amount strong { color: #f17255; font-size: 1rem; }
.donor-amount small { color: var(--muted); font-size: 0.72rem; }
.success-page { padding: 60px 0; text-align: center; }
.success-page h1, .legal-page h1 { font-size: clamp(2rem, 7vw, 3.6rem); letter-spacing: -0.04em; line-height: 1; }
.success-cta {
  margin: 14px auto 10px;
  color: #f17255;
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 900;
}
.legal-page { padding: 44px 20px 20px; }
.legal-page p { color: var(--muted); }
.footer { color: var(--muted); font-size: 0.82rem; padding: 30px 0 50px; margin-top: 28px; text-align: center; }
.footer a { color: var(--fg); font-weight: 700; }
.footer-social { margin: 10px 0 6px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  text-decoration: none;
  background: var(--surface);
}

.top-donation-hero { text-align: center; padding: 18px 0 8px; }
.top-donation-hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
}
.donation-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin: 0 0 16px;
}
.donation-filters label { display: grid; gap: 5px; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.donation-filters select,
.donation-filters input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--fg);
  padding: 0 13px;
  font: inherit;
}
.top-three {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 14px;
}
.top-three h2 { font-size: 1rem; margin: 0 0 12px; }
.top-three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.donation-podium {
  display: grid;
  gap: 5px;
  background: #fff4ef;
  border: 1px solid #fb9a7e;
  border-radius: 18px;
  padding: 14px;
}
.donation-podium strong { color: #f17255; font-size: 1.35rem; letter-spacing: -0.04em; }
.donation-podium span:not(.rank-pos) { font-weight: 800; }
.donation-podium small { color: var(--muted); }
.donation-podium p { margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; }
.donation-table { display: grid; gap: 10px; }
.donation-row {
  display: grid;
  grid-template-columns: 48px 40px 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 15px;
}
.donation-copy { min-width: 0; display: grid; gap: 3px; }
.donation-copy strong { font-size: 0.95rem; }
.donation-copy em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.donation-copy small { color: var(--muted); font-size: 0.78rem; }
.donation-team {
  color: #f17255;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.stats-dashboard-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 10px;
}
.stats-dashboard-hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
}
.stats-dashboard-hero .hero-sub { margin: 0; text-align: left; }
.period-pills {
  display: inline-flex;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  white-space: nowrap;
}
.period-pills span {
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.period-pills .active { background: #f17255; color: #fff; }
.stats-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.stats-cards article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}
.stats-cards span,
.stats-cards small { display: block; color: var(--muted); font-size: 0.78rem; }
.stats-cards strong {
  display: block;
  font-size: 1.7rem;
  letter-spacing: -0.05em;
  margin: 4px 0;
}
.stats-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  margin: 14px 0;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.05);
}
.stats-chart-card { overflow: hidden; }
.line-chart {
  display: block;
  width: 100%;
  height: 240px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%,
    var(--surface);
  border-radius: 18px;
  margin: 6px 0 18px;
}
.hourly-chart {
  display: grid;
  grid-template-columns: repeat(24, minmax(28px, 1fr));
  align-items: end;
  gap: 8px;
  min-height: 180px;
  overflow-x: auto;
}
.hour-bar {
  display: grid;
  justify-items: center;
  align-items: end;
  gap: 5px;
  color: var(--muted);
  font-size: 0.68rem;
}
.hour-bar span {
  width: 100%;
  max-width: 20px;
  min-height: 6px;
  border-radius: 999px 999px 4px 4px;
  background: #f17255;
}
.hour-bar em { font-style: normal; color: var(--fg); font-weight: 800; }
.path-table { display: grid; gap: 8px; }
.path-table article {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 11px 0;
}
.path-table strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.path-table span,
.path-table em { color: var(--muted); font-style: normal; font-size: 0.82rem; white-space: nowrap; }

@media (max-width: 680px) {
  .topbar { padding-top: 14px; }
  .topbar-inner { position: relative; align-items: center; }
  .menu-toggle { display: grid; }
  .topnav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 18px;
    left: 18px;
    z-index: 20;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
    white-space: normal;
  }
  .topnav.open { display: grid; gap: 2px; }
  .topnav a { padding: 12px 10px; border-radius: 12px; color: var(--fg); }
  .topnav a:hover { background: var(--surface-soft); }
  .brand-logo-main { width: 128px; }
  .division-tabs {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 4px 20px 12px;
    gap: 18px;
  }
  .division-tabs::after { flex-basis: 20px; }
  .division-tab {
    min-height: 38px;
    padding: 7px 10px;
  }
  .has-boost-dock { padding-bottom: 104px; }
  .boost-dock {
    bottom: 10px;
    width: calc(100% - 20px);
    grid-template-columns: 1fr;
    gap: 10px;
    border-radius: 20px;
    padding: 12px;
  }
  .boost-toggle { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .boost-toggle-amount { min-height: 38px; padding: 0 12px; font-size: 0.72rem; }
  .boost-payment-modal { padding: 10px; align-items: end; }
  .boost-payment-card {
    max-height: 92vh;
    border-radius: 22px;
    padding: 18px;
  }
  .boost-payment-header { align-items: flex-start; gap: 12px; }
  .boost-payment-header .crest-lg { width: 52px; height: 52px; border-radius: 14px; }
  .boost-payment-readout { grid-template-columns: 1fr 1fr; }
  .boost-club,
  .boost-toggle-club { grid-template-columns: 32px 1fr; }
  .boost-message-panel { grid-template-columns: 1fr; }
  .boost-rank-select { justify-content: space-between; }
  .boost-pay { width: 100%; min-height: 48px; }
  .rank-card { grid-template-columns: 1fr; }
  .top-clubs-grid { grid-template-columns: 1fr; }
  .top-club-card {
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 12px;
  }
  .top-club-card em {
    grid-column: 2;
    text-align: left;
    font-size: 0.9rem;
  }
  .top-club-mark { gap: 8px; }
  .top-club-card .rank-pos { min-width: 44px; }
  .top-club-card strong { font-size: 0.9rem; }
  .top-club-card small { font-size: 0.72rem; }
  .rank-main { grid-template-columns: 58px minmax(0, 1fr); }
  .rank-mark { gap: 8px; }
  .rank-pos { min-width: 44px; height: 44px; font-size: 1.05rem; }
  .crest { width: 38px; height: 38px; border-radius: 10px; }
  .rank-side { justify-items: end; grid-template-columns: 1fr; align-items: center; }
  .team-header { align-items: flex-start; }
  .bid-box { grid-template-columns: 1fr; }
  .activity-list { grid-template-columns: 1fr; }
  .activity-list:not(.expanded) .activity-pill:nth-child(n+3) { display: none; }
  .activity-more { display: block; }
  .division-leader { grid-template-columns: 1fr; }
  .donation-filters,
  .top-three-grid,
  .stats-cards,
  .donation-row { grid-template-columns: 1fr; }
  .stats-dashboard-hero { display: grid; align-items: start; }
  .stats-dashboard-hero .hero-sub { text-align: center; }
  .period-pills { justify-self: center; }
  .path-table article { grid-template-columns: 1fr; gap: 2px; }
  .hourly-chart { grid-template-columns: repeat(24, 32px); }
  .donation-row .rank-pos { width: max-content; }
}
