:root {
  --field-green: #1f6b3d;
  --field-green-dark: #134528;
  --paper: #f8f5ee;
  --paper-shadow: rgba(19, 69, 40, 0.18);
  --muted: #61716c;
  --winner: #ffe08a;
  --current: #72d991;
  --empty: #ecebe6;
  --ink: #11211a;
  --border: #0f7a3d;
  --danger: #8f2f1d;
  --notice: #e8f5ec;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 0 12%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08), transparent 0 10%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 3px, transparent 3px, transparent 36px),
    linear-gradient(180deg, #2a914e 0%, #1a5c35 100%);
}

body.notes-modal-open {
  overflow: hidden;
}

body.legal-modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  padding: clamp(16px, 2.2vw, 32px) clamp(16px, 2.6vw, 48px) clamp(20px, 3vw, 40px);
}

.app-frame {
  width: min(100%, 1680px);
  max-width: 1680px;
  margin-inline: auto;
}

.auth-screen,
.dashboard-screen {
  width: 100%;
  max-width: 100%;
  background: var(--paper);
  border: 5px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 14px 26px var(--paper-shadow);
}

.auth-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 420px);
  gap: 28px;
  padding: 28px;
}

.auth-hero,
.auth-panel,
.panel,
.board-panel,
.topbar,
.empty-workspace,
.status-banner {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(17, 33, 26, 0.12);
}

.auth-hero {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 460px;
}

.auth-copy {
  max-width: 48ch;
  font-size: 1.05rem;
  line-height: 1.6;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.feature-pills span,
.account-chip,
.participant-chip {
  padding: 10px 14px;
  border: 1px solid rgba(17, 33, 26, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.hero-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: flex-end;
  margin-top: 26px;
  padding: 24px 16px 12px;
  min-height: 320px;
  border: 1px solid rgba(17, 33, 26, 0.12);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(232, 245, 236, 0.9));
}

.sample-board {
  width: 220px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 3px solid rgba(15, 143, 72, 0.28);
  box-shadow: 0 18px 28px rgba(17, 33, 26, 0.18);
}

.sample-board.board-a {
  transform: rotate(-8deg) translateY(8px);
}

.sample-board.board-b {
  transform: translateY(-12px);
  z-index: 2;
}

.sample-board.board-c {
  transform: rotate(8deg) translateY(14px);
}

.sample-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  margin-bottom: 8px;
  color: #355246;
}

.sample-board-frame {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  grid-template-rows: 18px minmax(0, 1fr);
  gap: 3px;
}

.sample-top-digits,
.sample-left-digits,
.sample-board-grid {
  display: grid;
  gap: 3px;
}

.sample-top-digits {
  grid-column: 2;
  grid-template-columns: repeat(5, 1fr);
}

.sample-left-digits {
  grid-row: 2;
  grid-template-rows: repeat(5, 1fr);
}

.sample-top-digits span,
.sample-left-digits span {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dfe3df;
  border: 1px solid rgba(17, 33, 26, 0.12);
  color: #335347;
  font-size: 0.65rem;
  font-weight: 700;
}

.sample-board-grid {
  grid-template-columns: repeat(5, 1fr);
}

.sample-board-grid span {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff, #ecebe6);
  border: 1px solid rgba(17, 33, 26, 0.18);
  font-size: 0.5rem;
  color: #2b4439;
}

.sample-board-grid span.is-hit {
  background: linear-gradient(180deg, #ffe08a, #f7c958);
  box-shadow: inset 0 0 0 2px rgba(255, 184, 0, 0.45);
}

.example-card,
.view-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 33, 26, 0.12);
  padding: 16px;
}

.auth-switch {
  margin: 0;
  color: var(--muted);
}

.link-button {
  background: none;
  border: 0;
  color: #0f8f48;
  padding: 0;
  font-weight: 700;
  cursor: pointer;
}

.auth-panel {
  padding: 18px;
  align-self: center;
}

.auth-panel-top {
  align-self: start;
}

.auth-form,
.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form.compact {
  gap: 12px;
}

.auth-form h2 {
  margin: 0;
}

.auth-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--danger);
  font-weight: 600;
}

.hero-badge {
  display: flex;
  gap: 18px;
  align-items: center;
}

.football-mark {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  background: linear-gradient(145deg, #7f4e2e, #5f381f);
  position: relative;
  transform: rotate(-8deg);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.2);
  flex: 0 0 auto;
}

.football-mark.small {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.football-mark::before,
.football-mark::after,
.football-mark span::before,
.football-mark span::after {
  content: "";
  position: absolute;
  background: #f4ede0;
}

.football-mark::before {
  width: 4px;
  height: 90%;
  left: 22px;
  top: 5%;
  transform: rotate(45deg);
}

.football-mark::after {
  width: 4px;
  height: 90%;
  right: 22px;
  top: 5%;
  transform: rotate(45deg);
}

.football-mark span::before {
  width: 24px;
  height: 4px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.football-mark span::after {
  width: 4px;
  height: 22px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: -10px 0 0 #f4ede0, 10px 0 0 #f4ede0;
}

.football-mark.small::before,
.football-mark.small::after {
  height: 82%;
  width: 3px;
  top: 9%;
}

.football-mark.small::before {
  left: 15px;
}

.football-mark.small::after {
  right: 15px;
}

.football-mark.small span::before {
  width: 18px;
  height: 3px;
}

.football-mark.small span::after {
  width: 3px;
  height: 16px;
  box-shadow: -8px 0 0 #f4ede0, 8px 0 0 #f4ede0;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
}

h1 {
  margin: 0;
  color: #0f8f48;
  font-family: "Segoe Print", "Bradley Hand ITC", cursive;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1;
}

.app-title {
  font-size: 2.4rem;
}

h2,
h3 {
  margin: 0;
}

button {
  border: 1px solid transparent;
  padding: 10px 14px;
  cursor: pointer;
  background: #0f8f48;
  color: #fff;
  font-weight: 600;
}

button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(17, 33, 26, 0.2);
}

button.danger {
  color: var(--danger);
  border-color: rgba(143, 47, 29, 0.25);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(17, 33, 26, 0.18);
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
}

input[readonly] {
  background: #f4f4f1;
}

textarea {
  resize: vertical;
  min-height: 92px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.dashboard-screen {
  padding: 20px;
}

.topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 18px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  overflow: visible;
}

.nav-link {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border: 1px solid rgba(17, 33, 26, 0.1);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 0.94rem;
}

.nav-link.active {
  background: #0f8f48;
  color: #fff;
}

.nav-group {
  position: relative;
}

.nav-group-toggle::after {
  content: "▾";
  margin-left: 8px;
  font-size: 0.72rem;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 210px;
  padding: 8px;
  background: rgba(248, 245, 238, 0.98);
  border: 1px solid rgba(17, 33, 26, 0.12);
  box-shadow: 0 18px 28px rgba(17, 33, 26, 0.14);
  display: none;
  z-index: 20;
}

.nav-group.is-open .nav-dropdown,
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  display: grid;
  gap: 8px;
}

.nav-sub-link {
  width: 100%;
  text-align: left;
}

.nav-link {
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(17, 33, 26, 0.12);
  border-color: rgba(17, 33, 26, 0.18);
}

.nav-group-toggle::after {
  content: "▼";
}

.nav-dropdown {
  top: calc(100% + 8px);
  min-width: 230px;
  padding: 10px;
  background: rgba(248, 245, 238, 0.99);
  border: 1px solid rgba(17, 33, 26, 0.1);
  box-shadow: 0 20px 32px rgba(17, 33, 26, 0.16);
  border-radius: 20px;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  display: none;
}

.nav-group.is-open .nav-dropdown {
  display: grid;
  gap: 6px;
}

.nav-sub-link {
  justify-content: flex-start;
  border-radius: 14px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.92);
}

.nav-sport-menu {
  display: grid;
  gap: 8px;
}

.nav-sport-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 8px;
  color: rgba(12, 32, 58, 0.78);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-sport-heading::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ba7ff;
  box-shadow: 0 0 14px rgba(43, 167, 255, 0.52);
}

.nav-sport-links {
  display: grid;
  gap: 6px;
  padding-left: 10px;
  border-left: 1px solid rgba(12, 32, 58, 0.12);
}

.nav-sub-link.active {
  background: rgba(15, 143, 72, 0.12);
  color: var(--field-green-dark);
}

.status-banner {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--notice);
}

.invite-banner-stack {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.invite-banner {
  padding: 16px 18px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.72), transparent 34%),
    linear-gradient(135deg, rgba(255, 244, 209, 0.98), rgba(255, 234, 173, 0.98));
  border: 1px solid rgba(148, 97, 9, 0.22);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  box-shadow: 0 14px 28px rgba(148, 97, 9, 0.12);
  border-radius: 18px;
}

.invite-banner-copy {
  display: grid;
  gap: 4px;
}

.invite-banner-copy small {
  color: var(--muted);
}

.invite-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.account-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.account-chip {
  white-space: nowrap;
  padding: 8px 10px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.pool-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 230px));
  gap: 18px;
  margin-top: 12px;
  justify-content: start;
}

.home-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}

.home-action-card {
  display: grid;
  gap: 12px;
  text-align: left;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 34%),
    radial-gradient(circle at 85% 20%, rgba(255, 213, 79, 0.24), transparent 24%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(226, 242, 235, 0.98));
  color: var(--ink);
  border: 1px solid rgba(17, 33, 26, 0.1);
  box-shadow: 0 22px 38px rgba(17, 33, 26, 0.13);
  padding: 22px;
  min-height: 260px;
  aspect-ratio: 1 / 1;
}

.home-action-card strong {
  font-size: 1.2rem;
}

.home-action-card small {
  color: var(--muted);
  line-height: 1.55;
}

.home-action-art {
  position: relative;
  min-height: 150px;
  border: 1px solid rgba(17, 33, 26, 0.08);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 40%),
    radial-gradient(circle at 85% 18%, rgba(255, 196, 53, 0.18), transparent 20%),
    linear-gradient(145deg, rgba(220, 242, 229, 0.98), rgba(248, 250, 247, 0.98));
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.home-action-art span {
  position: absolute;
  display: block;
}

.pool-art span {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(17, 33, 26, 0.12);
  background: linear-gradient(180deg, #ffffff, #ecebe6);
}

.pool-art span:nth-child(1) { left: 18px; top: 18px; }
.pool-art span:nth-child(2) { left: 90px; top: 26px; background: linear-gradient(180deg, #ffe08a, #f7cf61); transform: rotate(-6deg); box-shadow: 0 8px 14px rgba(17,33,26,0.14); }
.pool-art span:nth-child(3) { left: 34px; top: 88px; background: linear-gradient(180deg, #d7f0e0, #b6e5c9); transform: rotate(5deg); box-shadow: 0 8px 14px rgba(17,33,26,0.14); }
.pool-art span:nth-child(4) { left: 112px; top: 94px; transform: rotate(8deg); box-shadow: 0 8px 14px rgba(17,33,26,0.14); }

.create-art span:nth-child(1) {
  width: 126px;
  height: 82px;
  left: 20px;
  top: 16px;
  border: 2px solid rgba(15, 143, 72, 0.22);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 18px rgba(17, 33, 26, 0.12);
}

.create-art span:nth-child(2),
.create-art span:nth-child(3) {
  width: 58px;
  height: 10px;
  left: 36px;
  background: #dfe3df;
}

.create-art span:nth-child(2) { top: 38px; }
.create-art span:nth-child(3) { top: 60px; width: 84px; }

.tracker-art span {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(17, 33, 26, 0.12);
  background: #fff;
}

.tracker-art span:nth-child(1) { left: 22px; top: 22px; background: #dfe3df; }
.tracker-art span:nth-child(2) { left: 58px; top: 22px; }
.tracker-art span:nth-child(3) { left: 94px; top: 22px; background: #d7f0e0; }
.tracker-art span:nth-child(4) { left: 22px; top: 58px; }
.tracker-art span:nth-child(5) { left: 58px; top: 58px; background: #ffe08a; }

.score-art span:nth-child(1) {
  width: 144px;
  height: 54px;
  left: 18px;
  top: 20px;
  background: linear-gradient(180deg, #10151b, #171f28);
  border: 2px solid #2d343d;
}

.score-art span:nth-child(2),
.score-art span:nth-child(3) {
  width: 54px;
  height: 8px;
  left: 30px;
  background: #aeb9c7;
}

.score-art span:nth-child(2) { top: 36px; }
.score-art span:nth-child(3) { top: 54px; width: 82px; }

.guide-art span:nth-child(1) {
  width: 64px;
  height: 78px;
  left: 20px;
  top: 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #dfe7e1);
  box-shadow: 0 12px 18px rgba(17, 33, 26, 0.12);
}

.guide-art span:nth-child(2),
.guide-art span:nth-child(3),
.guide-art span:nth-child(4) {
  left: 30px;
  height: 8px;
  background: rgba(15, 143, 72, 0.18);
}

.guide-art span:nth-child(2) { width: 44px; top: 34px; }
.guide-art span:nth-child(3) { width: 44px; top: 50px; background: rgba(17, 33, 26, 0.12); }
.guide-art span:nth-child(4) { width: 44px; top: 66px; background: rgba(17, 33, 26, 0.12); }

.dashboard-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.panel {
  padding: 16px;
}

.panel-head,
.board-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.pool-list,
.payout-list,
.winner-list,
.leaderboard,
.quarter-strip,
.participant-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.host-tools-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

.sidebar #hostToolsPanel {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.78), transparent 34%),
    linear-gradient(160deg, rgba(240, 249, 244, 0.98), rgba(229, 243, 234, 0.98));
  border: 1px solid rgba(15, 143, 72, 0.16);
  box-shadow: 0 18px 34px rgba(17, 33, 26, 0.1);
}

.host-tools-drawer {
  position: fixed;
  top: 24px;
  right: 20px;
  width: min(420px, calc(100vw - 44px));
  height: calc(100vh - 48px);
  overflow: auto;
  z-index: 55;
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
  border-radius: 28px;
  box-shadow: 0 26px 54px rgba(17, 33, 26, 0.24);
}

.host-tools-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.host-tools-scrim {
  position: fixed;
  inset: 0;
  background: rgba(17, 33, 26, 0.26);
  backdrop-filter: blur(2px);
  z-index: 45;
}

.host-summary-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 143, 72, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.host-summary-card small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.host-tools-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.host-tab-button {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 33, 26, 0.1);
  color: var(--ink);
}

.host-tab-button.active {
  background: linear-gradient(135deg, rgba(15, 143, 72, 0.16), rgba(114, 217, 145, 0.22));
  border-color: rgba(15, 143, 72, 0.28);
  color: var(--field-green-dark);
  box-shadow: inset 0 0 0 1px rgba(15, 143, 72, 0.12);
}

.host-tab-panels {
  margin-top: 14px;
}

.host-tab-panel {
  display: grid;
  gap: 12px;
}

.host-summary-input {
  margin-top: 8px;
}

.pool-card {
  width: 230px;
  aspect-ratio: 1 / 1;
  text-align: left;
  padding: 14px;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(17, 33, 26, 0.12);
}

.pool-card.active {
  border-color: rgba(15, 143, 72, 0.5);
  box-shadow: inset 0 0 0 2px rgba(15, 143, 72, 0.15);
}

.gallery-card {
  display: grid;
  gap: 12px;
  grid-template-rows: auto 1fr;
  align-content: stretch;
}

.pool-card-copy {
  display: grid;
  gap: 6px;
  align-content: start;
}

.pool-thumb {
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(17, 33, 26, 0.18);
  background: #f7f6f2;
  padding: 4px;
}

.thumb-grid {
  display: grid;
  grid-template-columns: 14px repeat(10, 1fr);
  grid-template-rows: 14px repeat(10, 1fr);
  gap: 1px;
  height: 100%;
}

.thumb-grid span,
.thumb-grid strong,
.thumb-grid small,
.thumb-grid i {
  border: 1px solid rgba(17, 33, 26, 0.15);
}

.thumb-grid span {
  background: linear-gradient(180deg, #ffffff, #ecebe6);
}

.thumb-grid strong,
.thumb-grid small {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dfe3df;
  color: #405049;
  font-size: 0.4rem;
}

.thumb-grid i {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-style: normal;
  font-size: 0.34rem;
  color: #324039;
  overflow: hidden;
}

.thumb-grid i.is-empty {
  background: var(--empty);
}

.thumb-grid i.is-current {
  background: linear-gradient(180deg, #9bf2b3, var(--current));
}

.thumb-grid i.is-winner {
  background: linear-gradient(180deg, #ffe08a, #f7cf61);
}

.thumb-grid i.is-current.is-winner {
  background: linear-gradient(180deg, #ffe08a, #8ce8a8);
}

.pool-card small,
.quarter-pill small,
.winner-card small,
.leader-row small,
.info-row span {
  color: var(--muted);
}

.empty-workspace {
  padding: 48px 28px;
  text-align: center;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 8px 4px 20px;
}

.toolbar-actions,
.board-actions,
.field-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}

.toolbar-actions {
  justify-content: flex-end;
}

#openHostToolsButton {
  position: fixed;
  top: 44%;
  right: 0;
  z-index: 56;
  border-radius: 18px 0 0 18px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  min-height: 148px;
  padding: 14px 10px;
  box-shadow: 0 14px 32px rgba(17, 33, 26, 0.24);
}

#openHostToolsButton.is-open {
  background: linear-gradient(180deg, #123f26, #0f7a3d);
}

.board-panel {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(17, 33, 26, 0.12);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.pool-summary-card {
  margin-bottom: 18px;
  padding: 20px 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 34%),
    linear-gradient(135deg, var(--away-color, rgba(20, 90, 53, 0.98)), var(--home-color, rgba(14, 55, 34, 0.94)));
  color: #f6fbf8;
  border: 1px solid rgba(17, 33, 26, 0.12);
  box-shadow: 0 18px 28px rgba(17, 33, 26, 0.16);
}

.pool-summary-head {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.pool-summary-head .panel-kicker,
.pool-summary-date {
  color: rgba(246, 251, 248, 0.78);
}

.pool-summary-head h2 {
  margin: 0;
}

.pool-summary-date {
  margin: 6px 0 0;
  font-size: 0.95rem;
}

.pool-summary-phase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin: 12px 0 0;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.18);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.matchup-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}

.team-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.team-showcase-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  justify-items: center;
  text-align: center;
}

.team-showcase-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.team-showcase-copy strong {
  font-size: 1.06rem;
}

.team-inline-score {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
}

.team-logo-badge {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.96);
  color: var(--field-green-dark);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
}

.team-logo-badge.has-logo {
  color: transparent;
  text-indent: -9999px;
}

.matchup-versus {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.82);
}

.notes-panel {
  margin-top: 18px;
  margin-bottom: 18px;
}

.notes-panel textarea {
  background: rgba(255, 255, 255, 0.86);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.board-panel {
  padding: 16px;
}

.board-status {
  margin: 6px 0 0;
  color: var(--muted);
}

.board-shell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.side-team-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: center;
  text-align: center;
  font-family: "Segoe Print", "Bradley Hand ITC", cursive;
  font-size: 1.35rem;
  color: #384942;
}

.top-team-label {
  text-align: center;
  font-family: "Segoe Print", "Bradley Hand ITC", cursive;
  font-size: 1.5rem;
  margin-bottom: 8px;
  min-height: 1.8em;
  color: #384942;
}

.board-scroller {
  overflow-x: visible;
}

.board-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  background: #fff;
}

.board-table th,
.board-table td {
  border: 2px solid #3b423f;
}

.board-table thead th {
  height: 58px;
}

.corner-cell {
  width: 56px;
  background: #d8ded8;
  font-weight: 700;
  font-size: 0.78rem;
}

.digit-header,
.row-digit {
  background: #dfe3df;
  padding: 0;
  width: 56px;
  height: 58px;
}

.digit-header input,
.row-digit input {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  background: transparent;
  padding: 0 2px;
}

.square-cell {
  height: 58px;
  padding: 0;
  background: #fff;
}

.square-cell.is-empty {
  background: var(--empty);
}

.square-cell.is-current {
  background: linear-gradient(180deg, #9bf2b3, var(--current));
}

.square-cell.is-winner {
  box-shadow: inset 0 0 0 4px rgba(255, 176, 0, 0.55);
  background: linear-gradient(180deg, rgba(255, 224, 138, 0.88), rgba(255, 247, 215, 0.92));
}

.square-cell.is-mine {
  box-shadow: inset 0 0 0 3px rgba(15, 143, 72, 0.45), 0 0 0 2px rgba(15, 143, 72, 0.14);
  background: linear-gradient(180deg, rgba(220, 245, 228, 0.96), rgba(255, 255, 255, 0.98));
}

.square-cell.is-mine .square-owner {
  font-weight: 700;
}

.square-cell.is-current.is-winner {
  background: linear-gradient(180deg, rgba(255, 224, 138, 0.95), rgba(114, 217, 145, 0.98));
}

.square-cell.is-mine.is-winner {
  box-shadow: inset 0 0 0 4px rgba(255, 176, 0, 0.55), 0 0 0 2px rgba(15, 143, 72, 0.18);
}

.square-box {
  position: relative;
  height: 100%;
}

.square-number {
  position: absolute;
  right: 4px;
  top: 3px;
  color: #7d8781;
  font-size: 0.62rem;
}

.square-owner {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 14px 4px 4px;
  text-align: center;
  font-size: 0.78rem;
}

.square-owner:focus {
  outline: 2px solid rgba(15, 143, 72, 0.35);
  outline-offset: -2px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.legend-swatch.current {
  background: var(--current);
}

.legend-swatch.winner {
  background: var(--winner);
}

.legend-swatch.empty {
  background: var(--empty);
}

.scoreboard-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #1a1d22 0%, #0f1216 100%);
  color: #f4f7fb;
  border: 2px solid #2d343d;
}

.score-banner-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.score-banner-team strong {
  font-size: 2rem;
}

.score-banner-center {
  text-align: center;
}

.score-banner-center small {
  display: block;
  color: #aeb9c7;
  margin-top: 4px;
}

.lower-panels {
  display: grid;
  grid-template-columns: minmax(280px, 360px);
  gap: 16px;
  margin-top: 16px;
}

.winner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.winner-card-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.results-panel {
  align-self: start;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quarter-pill,
.winner-card,
.leader-row,
.participant-chip,
.info-row {
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(17, 33, 26, 0.12);
}

.quarter-pill {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.leader-row,
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.participant-chip strong {
  display: block;
}

.participant-chip {
  display: grid;
  gap: 8px;
}

.participant-chip-balance {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.participant-chip-balance strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.participant-chip-head,
.participant-chip-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.participant-role,
.payment-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.participant-role {
  background: rgba(15, 143, 72, 0.1);
  color: #0f7a3d;
}

.payment-pill {
  background: rgba(143, 47, 29, 0.1);
  color: var(--danger);
  text-align: center;
  line-height: 1.15;
}

.payment-pill.is-paid {
  background: rgba(15, 143, 72, 0.12);
  color: #0f7a3d;
}

.payment-pill.is-due {
  background: rgba(255, 208, 92, 0.24);
  color: #8a5a00;
  min-width: 118px;
  padding: 7px 12px;
}

.payment-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.payment-toggle input {
  inline-size: 16px;
  block-size: 16px;
}

.payment-status-row strong,
.payment-status-row span {
  font-size: 0.95rem;
}

.payment-status-row .payment-pill {
  min-width: 158px;
  padding: 8px 14px;
  white-space: normal;
  line-height: 1.15;
  text-align: center;
}

.payment-status-row .payment-pill:not(.is-paid):not(.is-due) {
  background: rgba(176, 32, 32, 0.28);
  color: #ffe0dc;
  border-color: rgba(255, 176, 164, 0.28);
  box-shadow: 0 8px 18px rgba(176, 32, 32, 0.18);
}

.pool-created-by {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.owed-row strong,
.owed-row span {
  font-size: 1rem;
}

.is-readonly {
  opacity: 0.72;
}

.page-view {
  margin-top: 18px;
}

.view-card {
  display: grid;
  gap: 18px;
}

.narrow-form {
  max-width: 420px;
}

.tracker-form {
  gap: 18px;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

.form-actions button {
  width: auto;
}

.tracker-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(17, 33, 26, 0.12);
}

.tracker-grid {
  display: grid;
  gap: 14px;
}

.tracker-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tracker-wide {
  grid-column: 1 / -1;
}

.payout-input {
  max-width: 110px;
  text-align: right;
}

.payout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.payout-card {
  padding: 16px 14px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(145deg, rgba(15, 143, 72, 0.14), rgba(255, 224, 138, 0.28));
  border: 1px solid rgba(17, 33, 26, 0.12);
  display: grid;
  gap: 8px;
}

.payout-card small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.payout-card span {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--field-green-dark);
}

.payout-card .payout-input {
  max-width: 100%;
}

.guide-page {
  gap: 18px;
}

.guide-hero {
  padding: 18px 20px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.72), transparent 40%),
    linear-gradient(135deg, rgba(15, 143, 72, 0.92), rgba(12, 52, 31, 0.94));
  color: #f6fbf8;
}

.guide-lead {
  margin: 0;
  max-width: 70ch;
  line-height: 1.65;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 900px;
}

.guide-card {
  padding: 18px 20px;
  border: 1px solid rgba(17, 33, 26, 0.12);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 24px rgba(17, 33, 26, 0.06);
}

.guide-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.guide-card p {
  margin: 0 0 10px;
  line-height: 1.55;
}

.guide-card p:last-child {
  margin-bottom: 0;
}

.invite-detail-card {
  display: grid;
  gap: 18px;
}

.invite-detail-card--narrow {
  max-width: 760px;
}

.invite-detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.invite-detail-grid .info-row {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 33, 26, 0.1);
  box-shadow: 0 10px 20px rgba(17, 33, 26, 0.06);
}

.invite-safety-note {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #eff8ff, #dcedff);
  border: 1px solid rgba(46, 143, 255, 0.28);
  color: #10213c;
}

.invite-safety-note strong {
  color: #0a4f95;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invite-safety-note p {
  margin: 0;
  color: #172946;
  line-height: 1.45;
}

.invite-payout-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.payout-preview-card {
  padding: 14px;
  border: 1px solid rgba(17, 33, 26, 0.12);
  background: rgba(255, 255, 255, 0.84);
  display: grid;
  gap: 8px;
}

.payout-preview-card span {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--field-green-dark);
}

.invite-detail-actions {
  display: flex;
  gap: 10px;
}

.invite-inline-status {
  margin: -4px 0 2px;
  min-height: 1.2em;
  font-size: 0.86rem;
  color: #b02020;
  font-weight: 700;
  font-style: italic;
}

.invite-status-list {
  display: grid;
  gap: 10px;
}

.invite-status-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 33, 26, 0.1);
}

.invite-status-item small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.invite-unsend-button {
  margin-top: 8px;
  padding: 6px 10px;
  font-size: 0.8rem;
}

.invite-status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.invite-status-pill.is-pending {
  background: rgba(255, 208, 92, 0.22);
  color: #8a5a00;
}

.invite-status-pill.is-accepted {
  background: rgba(114, 217, 145, 0.24);
  color: var(--field-green-dark);
}

.invite-status-pill.is-deleted {
  background: rgba(176, 32, 32, 0.14);
  color: #8f2f1d;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  position: fixed;
  right: 22px;
  bottom: 96px;
  width: min(390px, calc(100vw - 28px));
  height: min(560px, calc(100vh - 150px));
  background: #ffffff;
  border: 1px solid rgba(17, 33, 26, 0.08);
  box-shadow: 0 28px 58px rgba(17, 33, 26, 0.24);
  z-index: 54;
  border-radius: 28px;
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
  overflow: hidden;
}

.chat-panel.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chat-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 18px 16px;
  color: #f7fbff;
  background: linear-gradient(135deg, #2d8cf0, #4a7dff);
}

.chat-panel-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.chat-panel-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.chat-panel-copy .panel-kicker {
  color: rgba(240, 246, 255, 0.76);
}

.chat-panel-copy h3 {
  margin: 0;
  font-size: 1.45rem;
  color: #ffffff;
}

.chat-panel-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: rgba(240, 246, 255, 0.82);
  font-size: 0.95rem;
}

.chat-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #3cf267;
  box-shadow: 0 0 0 5px rgba(60, 242, 103, 0.18);
}

.chat-close-button {
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 14px;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.chat-close-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding: 16px 16px 10px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.chat-message {
  display: flex;
  width: 100%;
}

.chat-message.is-self {
  justify-content: flex-end;
}

.chat-message-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: fit-content;
  max-width: min(80%, 520px);
}

.chat-message.is-self .chat-message-stack {
  align-items: flex-end;
}

.chat-message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 4px;
}

.chat-message-meta strong {
  color: #7a8698;
  font-size: 0.78rem;
  font-weight: 700;
}

.chat-message-meta small {
  color: #9aa7b8;
  font-size: 0.75rem;
}

.chat-bubble {
  display: inline-block;
  width: auto;
  max-width: 100%;
  padding: 10px 14px;
  background: #eef3fa;
  color: #132233;
  border: 1px solid rgba(193, 205, 219, 0.42);
  border-radius: 20px;
  font-size: 0.95rem;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  box-shadow: 0 6px 14px rgba(17, 33, 26, 0.05);
}

.chat-message.is-self .chat-bubble {
  background: linear-gradient(135deg, #3b89f2, #4aa3ff);
  color: #ffffff;
  border-color: rgba(59, 137, 242, 0.2);
}

.chat-message.is-self .chat-message-meta strong,
.chat-message.is-self .chat-message-meta small {
  color: #9fbbe6;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px 16px 16px;
  background: #ffffff;
  border-top: 1px solid rgba(17, 33, 26, 0.06);
}

.chat-form textarea {
  min-height: 56px;
  max-height: 120px;
  resize: none;
  border-radius: 999px;
  padding-inline: 18px;
  background: #f2f6fb;
  border-color: transparent;
  box-shadow: inset 0 1px 2px rgba(17, 33, 26, 0.04);
}

.chat-send-button {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #2d8cf0, #4a7dff);
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(45, 140, 240, 0.32);
}

.chat-send-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 16px solid #ffffff;
  transform: translateX(2px);
}

.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 55;
  min-width: 118px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #2d8cf0, #4a7dff);
  border: 0;
  box-shadow: 0 20px 36px rgba(17, 33, 26, 0.28);
}

.chat-launcher.is-open {
  background: linear-gradient(135deg, #1f5ecc, #2d8cf0);
}

.chat-launcher-label {
  font-weight: 800;
  color: #ffffff;
}

.chat-launcher-dot {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #d92d2d;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92);
}

.feedback-launcher {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 72;
  min-width: 132px;
  min-height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  color: #07111f;
  background: linear-gradient(135deg, #ffcf4a, #ff8f3d);
  border: 0;
  box-shadow: 0 20px 36px rgba(255, 143, 61, 0.28);
  font-weight: 900;
}

.feedback-launcher.is-open {
  background: linear-gradient(135deg, #f5b51f, #ff7d2d);
}

.feedback-launcher-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 17, 31, 0.14);
  color: #07111f;
  font-weight: 1000;
}

.feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 8, 18, 0.74);
  backdrop-filter: blur(10px);
}

.feedback-modal {
  width: min(100%, 720px);
  max-height: min(820px, 92vh);
  overflow: auto;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 207, 74, 0.34);
  background:
    radial-gradient(circle at top right, rgba(255, 207, 74, 0.16), transparent 30%),
    linear-gradient(180deg, #0b1d36, #061326);
  color: #eaf3ff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.feedback-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 207, 74, 0.18);
}

.feedback-modal-head h2 {
  margin: 4px 0 6px;
  color: #ffffff;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: 0;
}

.feedback-modal-head p:not(.panel-kicker) {
  margin: 0;
  color: rgba(234, 243, 255, 0.72);
  line-height: 1.5;
}

.feedback-modal-close {
  min-width: 82px;
  color: #d3e1f4;
  border-color: rgba(255, 207, 74, 0.3);
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.feedback-modal .field {
  margin-top: 16px;
}

.feedback-modal .field span {
  color: rgba(234, 243, 255, 0.78);
}

.feedback-modal input,
.feedback-modal textarea,
.feedback-modal select {
  width: 100%;
  border: 1px solid rgba(130, 177, 255, 0.22);
  background: rgba(4, 15, 30, 0.72);
  color: #f8fbff;
}

.feedback-modal textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.55;
}

.feedback-upload {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 207, 74, 0.42);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.feedback-upload-copy {
  display: grid;
  gap: 4px;
}

.feedback-upload-copy strong {
  color: #ffffff;
}

.feedback-upload-copy small {
  color: rgba(234, 243, 255, 0.64);
}

.feedback-upload input {
  max-width: 260px;
  color: rgba(234, 243, 255, 0.82);
}

.feedback-file-pill {
  margin-top: 10px;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  color: #0b1d36;
  background: #ffcf4a;
  font-size: 0.82rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.feedback-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: rgba(234, 243, 255, 0.78);
  font-weight: 700;
}

.feedback-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.feedback-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(130, 177, 255, 0.22);
  background: rgba(130, 177, 255, 0.12);
  color: #dbeafe;
  font-weight: 800;
}

.feedback-status.is-error {
  border-color: rgba(255, 122, 122, 0.42);
  background: rgba(180, 35, 24, 0.18);
  color: #ffd8d8;
}

.feedback-status.is-success {
  border-color: rgba(89, 223, 143, 0.42);
  background: rgba(25, 135, 84, 0.18);
  color: #dcffe9;
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.chat-list .muted-empty {
  margin: auto 8px;
  padding: 18px 20px;
  border-radius: 22px;
  background: #eef3fa;
  border: 1px solid rgba(193, 205, 219, 0.42);
  text-align: left;
}

.chat-avatar,
.avatar-preview,
.avatar-preset {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fefefe, #dbe7df);
  border: 1px solid rgba(17, 33, 26, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--field-green-dark);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  font-size: 1.3rem;
}

.chat-avatar.has-image,
.avatar-preview.has-image,
.result-avatar.has-image {
  color: transparent;
  text-indent: -9999px;
}

.result-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fefefe, #dbe7df);
  border: 1px solid rgba(17, 33, 26, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--field-green-dark);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  font-size: 1.2rem;
}

.avatar-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 33, 26, 0.12);
}

.avatar-preset-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.avatar-preset {
  cursor: pointer;
}

.avatar-preset.is-active {
  box-shadow: inset 0 0 0 3px rgba(15, 143, 72, 0.22);
  border-color: rgba(15, 143, 72, 0.38);
}

.avatar-badge,
.avatar-preset {
  position: relative;
  isolation: isolate;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.32);
}

.avatar-badge::before,
.avatar-preset::before {
  content: "";
  position: absolute;
  inset: 10%;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255,255,255,0.76) 47%, rgba(255,255,255,0.76) 53%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(255,255,255,0.32) 47%, rgba(255,255,255,0.32) 53%, transparent 55%);
  opacity: 0.08;
  transform: rotate(-18deg);
}

.avatar-badge::after,
.avatar-preset::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.28), transparent 34%);
}

.avatar-preset > span {
  position: relative;
  z-index: 1;
}

.avatar-icon {
  width: 92%;
  height: 92%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.28));
  overflow: visible;
  transform: scale(1.12);
  transform-origin: center;
}

.account-avatar-badge .avatar-icon,
.chat-avatar .avatar-icon,
.result-avatar .avatar-icon {
  width: 92%;
  height: 92%;
}

.profile-hero-avatar .avatar-icon {
  width: 88%;
  height: 88%;
}

.avatar-preset--captain { background: linear-gradient(145deg, #204f93, #071b3f 70%); }
.avatar-preset--playmaker { background: linear-gradient(145deg, #00a9d8, #09244a 72%); }
.avatar-preset--defense { background: linear-gradient(145deg, #69717e, #111827 68%); }
.avatar-preset--victory { background: linear-gradient(145deg, #f7b733, #633300 76%); }
.avatar-preset--blitz { background: linear-gradient(145deg, #8a5cff, #161544 72%); }
.avatar-preset--legacy { background: linear-gradient(145deg, #a46a2a, #1b1530 74%); }
.avatar-preset--endzone { background: linear-gradient(145deg, #0bcf8f, #053b32 74%); }
.avatar-preset--gridiron { background: linear-gradient(145deg, #123c69, #0a8f5a 76%); }
.avatar-preset--dynasty { background: linear-gradient(145deg, #ff4d6d, #29113f 74%); }
.avatar-preset--primetime { background: linear-gradient(145deg, #57d8ff, #1f2a8a 70%, #090d2c); }
.avatar-preset--huddle { background: linear-gradient(145deg, #ff7a2f, #3a1628 74%); }
.avatar-preset--goalpost { background: linear-gradient(145deg, #d5f36b, #15523d 72%); color: #071b16; text-shadow: none; }
.avatar-preset--sunday { background: linear-gradient(145deg, #f4f7ff, #2e6cff 46%, #0b1a3c 82%); }
.avatar-preset--rookie { background: linear-gradient(145deg, #7df7c8, #1564b3 74%); }
.avatar-preset--champion { background: linear-gradient(145deg, #ffe08a, #d77600 48%, #1d2140 84%); }

.scores-grid {
  display: grid;
  gap: 12px;
}

.scoreboard-grid-page {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.score-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, var(--away-color, #1a1d22) 0%, var(--home-color, #0f1216) 100%);
  color: #f4f7fb;
  border: 2px solid #2d343d;
  overflow: hidden;
}

.score-card small {
  color: #aeb9c7;
}

.score-card-head,
.score-card-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.score-card-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.score-card-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}

.score-card-logo.is-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--field-green-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.score-card-row strong {
  font-size: 1.5rem;
}

.muted-empty {
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 1360px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .nav-brand,
  .site-nav,
  .account-actions {
    justify-self: center;
  }
}

@media (max-width: 1200px) {
  .workspace-grid,
  .content-grid,
  .auth-screen,
  .example-grid,
  .lower-panels {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    flex-wrap: wrap;
    min-height: auto;
  }

  .home-action-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 16px 10px 24px;
  }

  .topbar,
  .hero,
  .board-toolbar,
  .panel-head,
  .field-row,
  .board-actions,
  .toolbar-actions,
  .account-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .matchup-banner {
    grid-template-columns: 1fr;
  }

  .pool-summary-head,
  .invite-banner,
  .invite-detail-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .summary-score-pair,
  .invite-payout-preview,
  .payout-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tracker-grid.two-up,
  .winner-grid,
  .guide-grid,
  .invite-payout-preview,
  .payout-grid {
    grid-template-columns: 1fr;
  }

  .board-shell {
    grid-template-columns: 1fr;
  }

  .side-team-label {
    writing-mode: initial;
    transform: none;
    text-align: left;
  }
}

/* Premium product pass */

:root {
  --field-green: #0e6a43;
  --field-green-dark: #093d2b;
  --paper: #f5f7fb;
  --paper-shadow: rgba(8, 17, 32, 0.16);
  --muted: #677688;
  --ink: #102033;
  --border: #113d75;
  --danger: #b23a3a;
  --notice: #eef7ff;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --line: rgba(16, 32, 51, 0.1);
  --shadow-lg: 0 26px 60px rgba(13, 26, 44, 0.18);
  --shadow-md: 0 14px 30px rgba(13, 26, 44, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

body {
  font-family: "Aptos", "Segoe UI", Inter, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(82, 163, 255, 0.14), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(29, 197, 120, 0.12), transparent 18%),
    linear-gradient(180deg, #0c1320 0%, #122235 45%, #0f5a36 100%);
}

.page-shell {
  padding: 20px 18px 34px;
}

.auth-screen,
.dashboard-screen {
  background: linear-gradient(180deg, rgba(245, 247, 251, 0.96), rgba(237, 243, 250, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(4, 12, 24, 0.35);
  overflow: hidden;
}

.auth-hero,
.auth-panel,
.panel,
.board-panel,
.topbar,
.empty-workspace,
.status-banner,
.view-card,
.tracker-card,
.example-card {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.auth-screen {
  gap: 32px;
  padding: 32px;
}

.auth-hero {
  min-height: 540px;
  padding: 34px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.9), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(70, 132, 255, 0.18), transparent 22%),
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(232, 246, 238, 0.9));
}

.hero-showcase {
  border-radius: 28px;
  border-color: rgba(17, 33, 26, 0.08);
  background:
    radial-gradient(circle at 15% 15%, rgba(255,255,255,0.86), transparent 22%),
    linear-gradient(145deg, rgba(237, 246, 255, 0.98), rgba(240, 251, 243, 0.92));
}

.sample-board {
  border-radius: 24px;
  border-color: rgba(37, 111, 212, 0.18);
  box-shadow: 0 24px 34px rgba(13, 26, 44, 0.16);
}

.auth-panel {
  padding: 26px 24px;
}

h1 {
  color: #123b78;
  font-family: "Aptos Display", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.65rem, 2.3vw, 2.4rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.panel-kicker,
.eyebrow {
  color: #6c7f96;
  font-weight: 700;
  letter-spacing: 0.16em;
}

button {
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #2369d9, #2ba7ff);
  color: #fff;
  border: 0;
  box-shadow: 0 14px 26px rgba(35, 105, 217, 0.26);
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

button:hover,
button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(35, 105, 217, 0.3);
}

button.ghost {
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  border: 1px solid rgba(16, 32, 51, 0.14);
  box-shadow: none;
}

button.danger {
  background: rgba(255, 241, 241, 0.96);
  color: #9f2f2f;
  border: 1px solid rgba(178, 58, 58, 0.18);
}

input,
select,
textarea {
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 1px 2px rgba(16, 32, 51, 0.03);
}

option,
optgroup {
  color: #0b1d33;
  background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(35, 105, 217, 0.35);
  box-shadow: 0 0 0 4px rgba(43, 167, 255, 0.12);
}

.topbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 18px 22px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.92), transparent 24%),
    linear-gradient(145deg, rgba(255,255,255,0.88), rgba(239, 245, 252, 0.86));
}

.site-nav {
  gap: 10px;
}

.nav-link {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 32, 51, 0.1);
  box-shadow: 0 10px 20px rgba(13, 26, 44, 0.06);
  padding: 11px 16px;
  font-weight: 700;
}

.nav-link.active {
  background: linear-gradient(135deg, #123b78, #2369d9);
  color: #fff;
}

.nav-dropdown {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 22px;
  border: 1px solid rgba(16, 32, 51, 0.08);
  box-shadow: 0 26px 40px rgba(13, 26, 44, 0.14);
}

.account-chip {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 20px rgba(13, 26, 44, 0.08);
}

.status-banner {
  background: linear-gradient(135deg, rgba(217, 239, 255, 0.96), rgba(239, 247, 255, 0.92));
}

.home-hub {
  gap: 24px;
}

.home-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
  padding: 26px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.94), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(43, 167, 255, 0.18), transparent 20%),
    linear-gradient(145deg, #123b78, #0d693f);
  color: #f7fbff;
  box-shadow: var(--shadow-lg);
}

.home-hero-copy h2,
.home-hero-copy .panel-kicker,
.home-hero-copy p {
  color: inherit;
}

.home-hero-lead {
  max-width: 60ch;
  line-height: 1.7;
  color: rgba(241, 247, 255, 0.84);
}

.home-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-cta-button {
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  color: #123b78;
}

.hero-secondary-button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.home-hero-metrics {
  display: grid;
  gap: 12px;
}

.metric-card,
.insight-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.metric-card small,
.metric-card strong,
.metric-card span {
  display: block;
}

.metric-card small {
  color: rgba(241, 247, 255, 0.66);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric-card strong {
  margin-top: 8px;
  font-size: 1.05rem;
}

.metric-card span {
  margin-top: 8px;
  line-height: 1.55;
  color: rgba(241, 247, 255, 0.8);
}

.home-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
  margin: 0;
}

.home-action-card {
  min-height: 240px;
  border-radius: 26px;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.94), transparent 28%),
    linear-gradient(160deg, rgba(255,255,255,0.98), rgba(235, 244, 251, 0.96));
  border: 1px solid rgba(16, 32, 51, 0.08);
}

.home-insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.insight-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(16, 32, 51, 0.08);
  box-shadow: var(--shadow-md);
}

.pool-gallery {
  grid-template-columns: repeat(auto-fit, minmax(250px, 250px));
  gap: 20px;
}

.pool-card {
  width: 250px;
  padding: 16px;
  border-radius: 24px;
  box-shadow: 0 16px 26px rgba(13, 26, 44, 0.1);
}

.pool-card-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(18, 59, 120, 0.08);
  color: #123b78;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pool-card-copy {
  gap: 8px;
}

.tracker-card,
.view-card {
  padding: 20px;
}

.tracker-card {
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.94), transparent 24%),
    linear-gradient(145deg, rgba(255,255,255,0.94), rgba(239, 246, 251, 0.92));
}

.guide-page {
  gap: 22px;
}

.guide-hero {
  border-radius: 28px;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.14), transparent 26%),
    linear-gradient(145deg, #123b78, #2369d9);
}

.guide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: none;
}

.guide-card {
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
}

.profile-page {
  gap: 22px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
}

.profile-form-card {
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.94), transparent 26%),
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(238, 245, 251, 0.96));
  border: 1px solid rgba(16, 32, 51, 0.08);
  box-shadow: var(--shadow-md);
}

.avatar-panel {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(238, 245, 251, 0.96), rgba(250, 253, 255, 0.98));
}

.avatar-preview {
  width: 88px;
  height: 88px;
  border-radius: 26px;
  font-size: 1.6rem;
  box-shadow: 0 16px 24px rgba(13, 26, 44, 0.12);
}

.avatar-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.avatar-preset {
  width: 100%;
  height: 72px;
  border-radius: 22px;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #123b78;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.88), transparent 26%),
    linear-gradient(145deg, #ffffff, #dfeeff);
  box-shadow: 0 12px 20px rgba(13, 26, 44, 0.1);
}

.avatar-preset[data-avatar-preset="captain"] { background: linear-gradient(145deg, #ffffff, #dce8ff); }
.avatar-preset[data-avatar-preset="playmaker"] { background: linear-gradient(145deg, #eff8ff, #d6f0ff); }
.avatar-preset[data-avatar-preset="defense"] { background: linear-gradient(145deg, #eef6ff, #dbe4ff); }
.avatar-preset[data-avatar-preset="victory"] { background: linear-gradient(145deg, #fff8e4, #ffe2a6); color: #7b4b00; }
.avatar-preset[data-avatar-preset="blitz"] { background: linear-gradient(145deg, #eefdf5, #ccf1de); color: #0b6740; }
.avatar-preset[data-avatar-preset="legacy"] { background: linear-gradient(145deg, #f7f0ff, #e0d5ff); color: #5d39a8; }

.content-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.pool-summary-card,
.notes-panel,
.scoreboard-banner,
.results-panel,
.sidebar .panel {
  border-radius: 24px;
}

.pool-summary-card {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.92), transparent 24%),
    linear-gradient(145deg, rgba(18, 59, 120, 0.94), rgba(35, 105, 217, 0.9));
  color: #f6fbff;
  box-shadow: var(--shadow-lg);
}

.pool-summary-card .panel-kicker,
.pool-summary-card h2,
.pool-summary-card .pool-summary-date,
.pool-summary-card strong,
.pool-summary-card span {
  color: inherit;
}

.board-panel {
  padding: 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.94), transparent 20%),
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(241, 247, 251, 0.92));
}

.board-toolbar,
.panel-head {
  align-items: center;
}

.board-shell {
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(237, 243, 238, 0.9), rgba(255,255,255,0.96));
  box-shadow: inset 0 0 0 1px rgba(16, 32, 51, 0.06);
}

.board-table {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 22px rgba(13, 26, 44, 0.08);
}

.board-table th,
.board-table td {
  border-color: rgba(40, 51, 67, 0.5);
}

.corner-cell,
.digit-header,
.row-digit {
  background: linear-gradient(180deg, #dde5ef, #cfd8e3);
}

.square-cell {
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
}

.square-owner {
  font-size: 0.76rem;
  letter-spacing: -0.01em;
}

.scoreboard-banner {
  padding: 18px 20px;
  box-shadow: 0 18px 28px rgba(13, 26, 44, 0.18);
}

.notes-panel {
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(243, 248, 253, 0.92));
}

.results-panel {
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(247, 251, 255, 0.93));
}

.winner-card,
.participant-chip,
.info-row,
.invite-status-item {
  border-radius: 18px;
  box-shadow: 0 10px 18px rgba(13, 26, 44, 0.06);
}

.host-summary-card {
  border-radius: 18px;
}

.host-tab-button {
  font-weight: 800;
}

.invite-banner {
  border-radius: 22px;
}

.scoreboard-grid-page {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.score-card {
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 18px;
  box-shadow: 0 20px 34px rgba(7, 15, 29, 0.18);
}

.score-card-head strong {
  display: block;
  font-size: 1.05rem;
}

.score-card-head small {
  display: block;
  margin-top: 4px;
}

.score-card-row {
  padding: 8px 0;
}

.score-card-team span {
  font-weight: 700;
}

.score-card-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

#openHostToolsButton {
  top: 38%;
  min-height: 162px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1200px) {
  .home-hero-panel,
  .profile-layout,
  .guide-grid,
  .home-insight-grid {
    grid-template-columns: 1fr;
  }

  .home-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .pool-gallery {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .pool-card {
    width: 100%;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  #openHostToolsButton {
    top: auto;
    right: 16px;
    bottom: 92px;
    min-height: auto;
    writing-mode: initial;
    text-orientation: initial;
    border-radius: 999px;
    padding: 12px 18px;
  }

  .host-tools-drawer {
    top: auto;
    right: 12px;
    left: 12px;
    bottom: 88px;
    width: auto;
    height: min(76vh, 760px);
  }
}

@media (max-width: 760px) {
  .auth-screen {
    padding: 18px;
  }

  .auth-hero,
  .auth-panel,
  .view-card,
  .board-panel,
  .tracker-card {
    padding: 18px;
  }

  .home-action-grid,
  .avatar-preset-grid {
    grid-template-columns: 1fr;
  }

  .home-action-card {
    min-height: 220px;
    aspect-ratio: auto;
  }

  .scoreboard-grid-page {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 84px;
    height: min(70vh, 560px);
  }

  .chat-launcher {
    right: 12px;
    bottom: 14px;
  }

  .feedback-launcher {
    right: 12px;
    bottom: 82px;
  }

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

  .feedback-upload,
  .feedback-modal-head,
  .feedback-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .feedback-upload input,
  .feedback-actions button {
    width: 100%;
    max-width: none;
  }
}

/* Second polish pass */

.topbar {
  position: sticky;
  top: 14px;
  z-index: 30;
  gap: 18px;
}

.nav-brand {
  min-width: 0;
}

.site-nav {
  align-items: center;
}

.nav-link,
.nav-sub-link {
  min-height: 44px;
}

.nav-dropdown {
  padding: 12px;
}

.account-actions {
  justify-content: flex-end;
}

.view-card,
.tracker-card,
.panel,
.board-panel {
  gap: 20px;
}

.panel-head > div > h2,
.panel-head > div > h3 {
  max-width: 22ch;
}

.field {
  gap: 8px;
}

.field span {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field-row {
  gap: 14px;
}

.home-hero-panel,
.guide-hero,
.pool-summary-card,
.score-card,
.tracker-card,
.view-card,
.board-panel {
  overflow: hidden;
}

.home-hero-copy h2 {
  max-width: 14ch;
  line-height: 1.02;
}

.home-action-card {
  box-shadow: 0 18px 28px rgba(13, 26, 44, 0.12);
}

.home-action-card strong {
  font-size: 1.15rem;
  line-height: 1.2;
}

.home-action-art {
  min-height: 138px;
  border-radius: 20px;
}

.home-insight-grid .insight-card h3 {
  margin-bottom: 10px;
}

.pool-gallery {
  align-items: start;
}

.pool-card {
  gap: 14px;
  text-align: left;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.96), transparent 24%),
    linear-gradient(160deg, rgba(255,255,255,0.98), rgba(239, 246, 251, 0.96));
}

.pool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px rgba(13, 26, 44, 0.14);
}

.pool-thumb {
  border-radius: 18px;
  overflow: hidden;
}

.pool-card-copy strong {
  font-size: 1.03rem;
  line-height: 1.2;
}

.pool-card-copy small {
  line-height: 1.45;
}

.tracker-form,
.stack-form {
  gap: 16px;
}

.tracker-card .tracker-grid,
.tracker-card .field-row {
  gap: 16px;
}

.form-actions {
  margin-top: 2px;
}

.guide-grid {
  align-items: start;
}

.guide-card {
  min-height: 100%;
  box-shadow: 0 14px 24px rgba(13, 26, 44, 0.08);
}

.guide-card h3 {
  margin-bottom: 12px;
}

.guide-card p {
  color: #425366;
}

.pool-workspace .hero {
  margin-bottom: 6px;
}

.meta-grid {
  gap: 14px;
}

.pool-summary-head {
  margin-bottom: 16px;
}

.matchup-banner {
  gap: 20px;
}

.team-showcase-line {
  gap: 10px;
}

.team-inline-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  font-weight: 800;
}

.board-toolbar {
  gap: 18px;
}

.board-actions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.board-shell {
  gap: 12px;
}

.board-table {
  background: #f9fbfd;
}

.board-table thead th {
  height: 62px;
}

.digit-header,
.row-digit {
  width: 60px;
  height: 62px;
}

.square-cell {
  height: 62px;
}

.square-number {
  right: 6px;
  top: 4px;
  font-size: 0.58rem;
  font-weight: 700;
}

.square-owner {
  padding: 16px 6px 6px;
  font-size: 0.8rem;
  line-height: 1.15;
  color: #203449;
}

.square-cell.is-empty .square-owner::placeholder {
  color: #98a6b6;
}

.legend {
  row-gap: 10px;
}

.scoreboard-banner {
  grid-template-columns: 1fr auto 1fr;
  border-radius: 22px;
}

.score-banner-team span {
  font-size: 0.92rem;
  color: #dfe8f4;
}

.score-banner-team strong {
  font-size: 2.15rem;
  letter-spacing: -0.04em;
}

.notes-panel textarea {
  min-height: 116px;
}

.results-panel {
  min-width: 0;
}

.winner-grid {
  gap: 12px;
}

.winner-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.winner-card > div:last-child {
  font-weight: 700;
  color: #183958;
}

.host-tools-drawer {
  padding: 18px;
}

.host-tools-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.host-summary-card {
  min-height: 92px;
}

.host-tab-panels {
  padding-top: 4px;
}

.participant-list {
  gap: 12px;
}

.participant-chip {
  padding: 14px;
  gap: 10px;
}

.participant-chip-head strong {
  font-size: 0.98rem;
}

.participant-chip-meta {
  align-items: center;
}

.participant-chip-balance {
  padding-top: 6px;
  border-top: 1px solid rgba(16, 32, 51, 0.08);
}

.payment-pill,
.participant-role,
.invite-status-pill,
.pool-card-badge {
  letter-spacing: 0.05em;
}

.payment-status-row {
  align-items: center;
}

.payment-status-row strong {
  color: #425366;
}

.payout-grid {
  gap: 14px;
}

.payout-card {
  min-height: 120px;
  align-content: start;
}

.invite-status-item {
  align-items: center;
}

.chat-panel {
  border-radius: 30px;
}

.chat-panel-copy h3 {
  line-height: 1.1;
}

.chat-list {
  gap: 8px;
}

.chat-bubble {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
}

.chat-form textarea {
  line-height: 1.35;
}

.chat-launcher {
  min-height: 58px;
}

.profile-layout {
  align-items: start;
}

.profile-form-card h3 {
  margin: 0;
}

.avatar-panel {
  gap: 14px;
}

.avatar-preset-grid {
  align-items: stretch;
}

.avatar-preset {
  min-height: 76px;
}

.score-card-head {
  align-items: flex-start;
}

.score-card-row {
  gap: 16px;
}

.score-card-row strong {
  min-width: 34px;
  text-align: right;
  letter-spacing: -0.03em;
}

.score-card-team {
  min-width: 0;
}

.score-card-team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .topbar {
    position: static;
  }

  .home-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .host-tools-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .board-actions {
    justify-content: stretch;
  }

  .board-actions button {
    flex: 1 1 100%;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .scoreboard-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .score-banner-team {
    justify-content: space-between;
  }
}

@media (max-width: 760px) {
  .topbar,
  .view-card,
  .tracker-card,
  .board-panel {
    border-radius: 24px;
  }

  .panel-head,
  .board-toolbar {
    gap: 14px;
  }

  .home-hero-panel {
    padding: 20px;
  }

  .home-hero-copy h2 {
    max-width: none;
  }

  .pool-card,
  .home-action-card {
    min-height: auto;
  }

  .guide-card,
  .profile-form-card,
  .participant-chip,
  .winner-card {
    padding: 16px;
  }

  .participant-chip-head,
  .participant-chip-meta,
  .participant-chip-balance,
  .invite-status-item,
  .info-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .digit-header,
  .row-digit {
    width: 52px;
    height: 56px;
  }

  .board-table thead th,
  .square-cell {
    height: 56px;
  }

  .square-owner {
    font-size: 0.72rem;
    padding-top: 15px;
  }

  .chat-panel-head,
  .chat-panel-brand {
    align-items: flex-start;
  }

  .chat-panel-brand {
    gap: 10px;
  }

  .chat-panel-icon {
    width: 46px;
    height: 46px;
    font-size: 1.35rem;
  }
}

/* Game Day Hub redesign */

.home-hub {
  gap: 28px;
}

.home-hub .panel-head {
  align-items: end;
}

.home-hub-subtitle {
  max-width: 62ch;
  margin: 10px 0 0;
  color: #506273;
  line-height: 1.65;
}

.home-action-grid {
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.home-action-card {
  position: relative;
  grid-column: span 4;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
  min-height: 320px;
  aspect-ratio: auto;
  padding: 22px;
  border-radius: 28px;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.34), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)),
    linear-gradient(145deg, rgba(10, 24, 41, 0.96), rgba(18, 45, 74, 0.98));
  box-shadow:
    0 22px 50px rgba(6, 18, 33, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.home-action-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(255,255,255,0.18), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 38%);
  pointer-events: none;
  z-index: -1;
}

.home-action-card:hover,
.home-action-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 28px 64px rgba(6, 18, 33, 0.24),
    0 0 0 1px rgba(255,255,255,0.08) inset;
}

.home-action-card:focus-visible {
  outline: 3px solid rgba(255, 201, 77, 0.48);
  outline-offset: 2px;
}

.home-action-card--pools {
  grid-column: span 7;
  background:
    radial-gradient(circle at top right, rgba(255,235,178,0.18), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04)),
    linear-gradient(135deg, #0f2742, #174f6c 56%, #1f7b6c);
}

.home-action-card--create,
.home-action-card--tracker {
  grid-column: span 5;
}

.home-action-card--create {
  background:
    radial-gradient(circle at 82% 18%, rgba(255,209,107,0.18), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04)),
    linear-gradient(145deg, #11273f, #185f78 58%, #1b907d);
}

.home-action-card--tracker {
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.16), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04)),
    linear-gradient(145deg, #182537, #3c3f7c 54%, #7f4bb7);
}

.home-action-card--scores {
  background:
    radial-gradient(circle at 84% 16%, rgba(255,131,73,0.18), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04)),
    linear-gradient(145deg, #111b33, #16365e 50%, #7f2638);
}

.home-action-card--guide {
  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,0.18), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04)),
    linear-gradient(145deg, #162332, #28445d 58%, #476d86);
}

.home-card-top,
.home-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.home-card-kicker,
.home-card-link,
.home-card-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-card-kicker {
  color: rgba(245, 249, 255, 0.88);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.16);
}

.home-card-link {
  color: #fff2c0;
  background: rgba(255, 196, 53, 0.18);
  border: 1px solid rgba(255, 211, 120, 0.3);
}

.home-card-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.home-action-card strong {
  font-size: 1.28rem;
  line-height: 1.12;
  color: #f6fbff;
}

.home-action-card small {
  color: rgba(224, 233, 242, 0.88);
  line-height: 1.62;
  font-size: 0.95rem;
}

.home-card-meta {
  justify-content: flex-start;
}

.home-card-meta span {
  color: rgba(240, 246, 252, 0.86);
  background: rgba(7, 20, 36, 0.24);
  border: 1px solid rgba(255,255,255,0.14);
}

.home-action-art {
  min-height: 168px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04)),
    rgba(5, 16, 30, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 14px 26px rgba(7, 18, 33, 0.18);
}

.home-action-art--board,
.home-action-art--builder,
.home-action-art--tracker,
.home-action-art--scores,
.home-action-art--guide {
  display: grid;
  place-items: center;
}

.mini-board {
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 42px);
  grid-template-rows: repeat(2, 42px);
  gap: 8px;
}

.mini-board span,
.mini-tracker-grid span {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(245, 249, 255, 0.88);
  box-shadow: 0 10px 18px rgba(5, 14, 27, 0.12);
}

.mini-board span:nth-child(2),
.mini-board span:nth-child(5) {
  background: linear-gradient(180deg, #ffd766, #ffbf3c);
}

.mini-board span:nth-child(3) {
  background: linear-gradient(180deg, #acf1cb, #67d393);
}

.mini-board-summary {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(210px, calc(100% - 170px));
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(9, 23, 38, 0.5);
  border: 1px solid rgba(255,255,255,0.12);
  color: #eef7ff;
}

.mini-board-summary small,
.mini-scoreboard small {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(215, 226, 238, 0.72);
}

.mini-board-summary strong {
  font-size: 1.1rem;
  line-height: 1.1;
}

.mini-board-summary span {
  color: rgba(229, 237, 245, 0.82);
  font-size: 0.82rem;
  line-height: 1.45;
}

.mini-builder-window {
  width: min(100%, 320px);
  min-height: 136px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(245, 249, 255, 0.92);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 18px 34px rgba(5, 14, 27, 0.18);
}

.mini-builder-dot {
  display: inline-flex;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  background: #cfdae4;
}

.mini-builder-dot:first-child {
  background: #ffbe44;
}

.mini-builder-lines,
.mini-builder-cards {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mini-builder-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(17,54,86,0.18), rgba(17,54,86,0.08));
}

.mini-builder-lines span:nth-child(1) {
  width: 60%;
}

.mini-builder-lines span:nth-child(2) {
  width: 88%;
}

.mini-builder-lines span:nth-child(3) {
  width: 72%;
}

.mini-builder-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-builder-cards span {
  display: block;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(17,95,120,0.14), rgba(29,144,125,0.22));
  border: 1px solid rgba(17,95,120,0.12);
}

.mini-tracker-grid {
  position: absolute;
  left: 20px;
  top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 34px);
  gap: 8px;
}

.mini-tracker-grid span:nth-child(3),
.mini-tracker-grid span:nth-child(7),
.mini-tracker-grid span:nth-child(11) {
  background: linear-gradient(180deg, #ffd766, #ffbd38);
}

.mini-tracker-grid span:nth-child(10) {
  background: linear-gradient(180deg, #c9c4ff, #998cff);
}

.mini-tracker-ribbon {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.16);
  color: #f3f7ff;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.mini-scoreboard {
  width: min(100%, 280px);
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(8, 18, 33, 0.62);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f5f9ff;
}

.mini-scoreboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 700;
}

.mini-scoreboard-row span {
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}

.mini-scoreboard-row strong {
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.mini-score-pills {
  position: absolute;
  right: 20px;
  top: 18px;
  display: grid;
  gap: 8px;
}

.mini-score-pills span {
  display: block;
  width: 54px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}

.mini-score-pills span:nth-child(2) {
  background: rgba(255, 115, 87, 0.32);
}

.mini-guide-sheet {
  position: absolute;
  left: 26px;
  top: 22px;
  width: 112px;
  height: 132px;
  border-radius: 18px;
  background: rgba(245, 249, 255, 0.94);
  box-shadow: 0 18px 34px rgba(5, 14, 27, 0.18);
}

.mini-guide-sheet span {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 9px;
  border-radius: 999px;
  background: rgba(32, 72, 106, 0.16);
}

.mini-guide-sheet span:nth-child(1) {
  top: 28px;
  width: 56px;
  background: rgba(255, 191, 60, 0.4);
}

.mini-guide-sheet span:nth-child(2) {
  top: 50px;
}

.mini-guide-sheet span:nth-child(3) {
  top: 72px;
  width: 64px;
}

.mini-guide-checks {
  position: absolute;
  right: 24px;
  bottom: 20px;
  display: grid;
  gap: 10px;
}

.mini-guide-checks span {
  display: block;
  width: 120px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  position: relative;
}

.mini-guide-checks span::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #7ef0a6;
  box-shadow: 0 0 0 4px rgba(126, 240, 166, 0.16);
}

@media (max-width: 1200px) {
  .home-action-card,
  .home-action-card--pools,
  .home-action-card--create,
  .home-action-card--tracker {
    grid-column: span 6;
  }
}

@media (max-width: 860px) {
  .home-action-grid {
    grid-template-columns: 1fr;
  }

  .home-action-card,
  .home-action-card--pools,
  .home-action-card--create,
  .home-action-card--tracker {
    grid-column: auto;
    min-height: 292px;
  }

  .mini-board-summary {
    width: min(220px, calc(100% - 170px));
  }
}

@media (max-width: 640px) {
  .home-action-card {
    padding: 18px;
    min-height: 272px;
    border-radius: 24px;
  }

  .home-action-art {
    min-height: 152px;
  }

  .mini-board {
    grid-template-columns: repeat(3, 34px);
    grid-template-rows: repeat(2, 34px);
  }

  .mini-board-summary {
    position: static;
    width: 100%;
    margin-top: 82px;
  }

  .mini-tracker-grid {
    grid-template-columns: repeat(4, 28px);
  }

  .mini-guide-sheet {
    width: 98px;
    height: 118px;
  }

  .mini-guide-checks span {
    width: 94px;
  }
}

/* Game Day Hub visual pass */

.home-card-visual {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 16px 28px rgba(6, 18, 33, 0.12));
}

.home-action-art--board,
.home-action-art--builder,
.home-action-art--tracker,
.home-action-art--scores,
.home-action-art--guide {
  padding: 0;
  overflow: hidden;
}

.home-action-art--board .home-card-visual,
.home-action-art--builder .home-card-visual,
.home-action-art--tracker .home-card-visual,
.home-action-art--scores .home-card-visual,
.home-action-art--guide .home-card-visual {
  transform: translateY(2px);
  transition: transform 180ms ease, filter 180ms ease;
}

.home-action-card:hover .home-card-visual,
.home-action-card:focus-visible .home-card-visual {
  transform: translateY(-2px) scale(1.01);
  filter: drop-shadow(0 18px 32px rgba(6, 18, 33, 0.18));
}

.home-action-card svg text {
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
}

@media (max-width: 640px) {
  .home-card-visual {
    min-height: 150px;
  }
}

/* Your Boards redesign */

.boards-page {
  gap: 26px;
}

.boards-page-subtitle {
  max-width: 58ch;
  margin: 10px 0 0;
  color: #5a6b7d;
  line-height: 1.68;
}

.pool-gallery {
  grid-template-columns: repeat(auto-fill, minmax(310px, 310px));
  gap: 24px;
  margin-top: 4px;
  align-items: stretch;
  justify-content: start;
}

.pool-card {
  width: auto;
  aspect-ratio: auto;
  min-height: 390px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.78), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241, 247, 252, 0.98));
  box-shadow:
    0 22px 44px rgba(10, 22, 38, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.78);
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    border-color 170ms ease;
}

.pool-card:hover,
.pool-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(39, 92, 140, 0.22);
  box-shadow:
    0 28px 52px rgba(10, 22, 38, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.84);
}

.pool-card.active {
  border-color: rgba(17, 143, 72, 0.38);
  box-shadow:
    0 28px 52px rgba(10, 22, 38, 0.14),
    inset 0 0 0 1px rgba(17, 143, 72, 0.18);
}

.gallery-card {
  gap: 16px;
  grid-template-rows: auto 1fr;
}

.pool-thumb {
  position: relative;
  aspect-ratio: 1.22 / 1;
  padding: 14px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(18, 45, 74, 0.14);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.78), transparent 30%),
    linear-gradient(145deg, rgba(11, 34, 57, 0.96), rgba(23, 87, 112, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 16px 28px rgba(9, 22, 39, 0.16);
}

.pool-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(255,209,107,0.16), transparent 18%);
  pointer-events: none;
}

.pool-thumb-topline,
.pool-thumb-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pool-thumb-topline {
  margin-bottom: 12px;
}

.pool-thumb-type,
.pool-thumb-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pool-thumb-type {
  color: rgba(245, 249, 255, 0.92);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
}

.pool-thumb-status {
  color: #fff2c8;
  background: rgba(255, 211, 120, 0.16);
  border: 1px solid rgba(255, 211, 120, 0.24);
}

.thumb-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: 18px repeat(10, 1fr);
  grid-template-rows: 18px repeat(10, 1fr);
  gap: 2px;
  height: calc(100% - 74px);
  padding: 4px;
  border-radius: 16px;
  background: rgba(248, 251, 255, 0.94);
  box-shadow: 0 14px 26px rgba(6, 18, 33, 0.12);
}

.thumb-grid span,
.thumb-grid strong,
.thumb-grid small,
.thumb-grid i {
  border: 1px solid rgba(24, 44, 64, 0.08);
  border-radius: 2px;
}

.thumb-grid span {
  background: linear-gradient(180deg, #ffffff, #f0f4f8);
}

.thumb-grid strong,
.thumb-grid small {
  background: linear-gradient(180deg, #e4edf5, #d7e4ee);
  color: #486072;
  font-size: 0.42rem;
  font-weight: 700;
}

.thumb-grid i {
  background: linear-gradient(180deg, #ffffff, #f9fbfd);
  color: #334758;
  font-size: 0.35rem;
}

.thumb-grid i.is-empty {
  background: linear-gradient(180deg, #fbfcfe, #eef4f8);
}

.thumb-grid i.is-current {
  background: linear-gradient(180deg, #bbf5ca, #6be094);
}

.thumb-grid i.is-winner {
  background: linear-gradient(180deg, #ffe49c, #ffc85a);
}

.thumb-grid i.is-current.is-winner {
  background: linear-gradient(180deg, #ffe49c, #6fe2a1);
}

.pool-thumb-footer {
  margin-top: 12px;
  color: rgba(239, 245, 250, 0.94);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.pool-thumb-footer strong {
  color: #ffd76a;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.pool-card-copy {
  gap: 10px;
  align-content: start;
}

.pool-card-labels {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pool-card-badge,
.pool-card-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pool-card-badge {
  color: #225370;
  background: rgba(35, 83, 112, 0.08);
  border: 1px solid rgba(35, 83, 112, 0.12);
}

.pool-card-meta-pill {
  color: #7d5b14;
  background: rgba(255, 211, 120, 0.18);
  border: 1px solid rgba(255, 211, 120, 0.28);
}

.pool-card-copy strong {
  font-size: 1.2rem;
  line-height: 1.18;
  color: #122538;
}

.pool-card-matchup {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: #27435d;
}

.pool-card-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pool-card-details small {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #627486;
}

.muted-empty {
  padding: 34px 28px;
  border-radius: 24px;
  border: 1px dashed rgba(35, 83, 112, 0.18);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(238, 245, 250, 0.94));
  color: #5c6f81;
  text-align: center;
}

@media (max-width: 820px) {
  .pool-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pool-card {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .boards-page {
    gap: 22px;
  }

  .pool-card {
    padding: 15px;
    min-height: 340px;
    border-radius: 24px;
  }

  .pool-thumb {
    padding: 12px;
    border-radius: 20px;
  }

  .thumb-grid {
    grid-template-columns: 16px repeat(10, 1fr);
    grid-template-rows: 16px repeat(10, 1fr);
    gap: 1px;
  }

  .pool-card-details {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Premium board redesign */

.board-panel {
  position: relative;
  gap: 22px;
  padding: 22px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 22%),
    radial-gradient(circle at top left, rgba(255,214,113,0.12), transparent 20%),
    linear-gradient(165deg, rgba(10, 24, 41, 0.98), rgba(18, 48, 76, 0.98) 54%, rgba(18, 93, 90, 0.94));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 30px 70px rgba(7, 16, 30, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.board-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 18%),
    linear-gradient(0deg, rgba(255,255,255,0.04), transparent 16%);
  pointer-events: none;
}

.board-panel .panel-kicker,
.board-panel h2,
.board-panel h3,
.board-panel .board-status,
.board-panel .legend,
.board-panel .top-team-label,
.board-panel .side-team-label {
  color: #edf5ff;
}

.board-toolbar {
  align-items: flex-start;
  gap: 18px;
}

.board-toolbar > div:first-child {
  display: grid;
  gap: 10px;
}

.board-toolbar h2 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.board-status {
  max-width: 62ch;
  margin: 0;
  color: rgba(225, 235, 246, 0.82);
  line-height: 1.6;
}

.board-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.board-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(240, 246, 252, 0.92);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.board-meta-pill--status {
  color: #fff1c7;
  background: rgba(255, 209, 107, 0.16);
  border-color: rgba(255, 209, 107, 0.22);
}

.board-actions button {
  min-height: 44px;
  border-radius: 14px;
  box-shadow: 0 10px 18px rgba(6, 18, 33, 0.12);
}

.board-shell {
  gap: 16px;
  padding: 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05)),
    rgba(5, 16, 30, 0.22);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.side-team-label,
.top-team-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.side-team-label {
  min-width: 54px;
  padding: 18px 8px;
  border-radius: 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.8rem;
}

.top-team-label {
  min-height: 48px;
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.84rem;
}

.board-scroller {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.28) transparent;
}

.board-scroller::-webkit-scrollbar {
  height: 10px;
}

.board-scroller::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
}

.board-scroll-hint {
  display: none;
  margin: 0 0 10px;
  color: rgba(224, 233, 242, 0.7);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.board-table {
  width: 100%;
  min-width: 740px;
  border-collapse: separate;
  border-spacing: 4px;
  table-layout: fixed;
  background: transparent;
}

.board-table thead th {
  height: 66px;
}

.board-table th,
.board-table td {
  border: 0;
  background: transparent;
}

.corner-cell,
.digit-header,
.row-digit {
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(245, 249, 255, 0.96), rgba(220, 231, 240, 0.94));
  box-shadow:
    0 10px 18px rgba(8, 19, 34, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.84);
}

.corner-cell {
  width: 66px;
  color: #395066;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.digit-header,
.row-digit {
  width: 66px;
  height: 66px;
}

.square-cell {
  width: 66px;
  min-width: 66px;
  height: 66px;
}

.digit-header input,
.row-digit input {
  color: #17324b;
  font-size: 1.08rem;
  font-weight: 900;
  border-radius: 16px;
}

.digit-header input:focus,
.row-digit input:focus {
  outline: 3px solid rgba(30, 139, 118, 0.28);
  outline-offset: -3px;
}

.square-cell {
  position: relative;
  height: 66px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246, 250, 253, 0.96));
  box-shadow:
    0 10px 16px rgba(8, 19, 34, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.88);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.square-cell:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 22px rgba(8, 19, 34, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.92);
}

.square-cell.is-empty {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(239, 245, 250, 0.96));
}

.square-cell.is-claimed {
  background:
    linear-gradient(180deg, rgba(237, 245, 250, 0.98), rgba(227, 238, 246, 0.98));
}

.square-cell.is-mine {
  background:
    linear-gradient(180deg, rgba(219, 248, 229, 1), rgba(239, 250, 244, 0.98));
  box-shadow:
    0 16px 24px rgba(8, 19, 34, 0.12),
    inset 0 0 0 2px rgba(17, 143, 72, 0.32),
    inset 0 1px 0 rgba(255,255,255,0.88);
}

.square-cell.is-current {
  background:
    linear-gradient(180deg, rgba(184, 240, 203, 1), rgba(130, 224, 162, 0.98));
  box-shadow:
    0 18px 28px rgba(18, 91, 57, 0.18),
    inset 0 0 0 2px rgba(33, 135, 84, 0.28);
}

.square-cell.is-winner {
  background:
    linear-gradient(180deg, rgba(255, 233, 160, 1), rgba(255, 207, 90, 0.98));
  box-shadow:
    0 18px 28px rgba(140, 92, 5, 0.18),
    inset 0 0 0 2px rgba(255,255,255,0.34),
    0 0 0 1px rgba(255, 206, 89, 0.48);
}

.square-cell.is-current.is-winner {
  background:
    linear-gradient(180deg, rgba(255, 229, 136, 1), rgba(112, 225, 160, 0.98));
  box-shadow:
    0 20px 32px rgba(17, 143, 72, 0.18),
    inset 0 0 0 2px rgba(255,255,255,0.34);
}

.square-cell.is-locked .square-owner {
  cursor: default;
}

@keyframes square-select-burst {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.14);
  }
}

@keyframes square-select-shimmer {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(0.96);
  }
  24% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: rotate(135deg) scale(1.08);
  }
}

.square-box {
  position: relative;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.square-box::before,
.square-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}

.square-box::before {
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.46) 0%, rgba(255,255,255,0.12) 38%, transparent 68%);
}

.square-box::after {
  inset: -2px;
  background:
    conic-gradient(from 180deg,
      rgba(255,255,255,0) 0deg,
      rgba(255,232,162,0.94) 44deg,
      rgba(111,226,159,0.88) 118deg,
      rgba(255,255,255,0) 190deg,
      rgba(255,255,255,0) 360deg);
  filter: blur(1px);
}

.square-cell.is-select-celebrating {
  box-shadow:
    0 22px 34px rgba(17, 143, 72, 0.22),
    inset 0 0 0 2px rgba(255,255,255,0.44),
    inset 0 0 0 4px rgba(17, 143, 72, 0.16);
}

.square-cell.is-select-celebrating .square-box::before {
  animation: square-select-burst 620ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.square-cell.is-select-celebrating .square-box::after {
  animation: square-select-shimmer 720ms cubic-bezier(0.18, 0.84, 0.22, 1) forwards;
}

.square-number {
  top: 7px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(18, 45, 74, 0.08);
  color: #6a7f92;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.square-owner {
  background: transparent;
  padding: 18px 8px 8px;
  color: #1a3248;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: default;
}

.square-cell .square-owner,
.square-cell .square-owner[readonly] {
  background: transparent;
}

.square-cell.is-empty .square-owner {
  color: #8fa0ae;
  font-weight: 600;
}

.square-owner:hover:not([readonly]) {
  background: rgba(255,255,255,0.1);
}

.square-owner:focus {
  outline: 3px solid rgba(30, 139, 118, 0.28);
  outline-offset: -3px;
  background: rgba(255,255,255,0.26);
}

.legend {
  gap: 16px;
  padding: 2px 2px 0;
  color: rgba(226, 235, 245, 0.86);
}

.legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 6px 12px rgba(8, 19, 34, 0.12);
}

.legend-swatch.current {
  background: linear-gradient(180deg, #b8f0cb, #72d994);
}

.legend-swatch.winner {
  background: linear-gradient(180deg, #ffe8a0, #ffc95a);
}

.legend-swatch.empty {
  background: linear-gradient(180deg, #ffffff, #eef4f8);
}

@media (max-width: 1040px) {
  .board-toolbar {
    flex-direction: column;
  }

  .board-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .board-panel {
    padding: 18px;
    border-radius: 28px;
  }

  .board-shell {
    display: block;
    padding: 14px;
  }

  .side-team-label {
    writing-mode: horizontal-tb;
    transform: none;
    min-width: 0;
    margin: 0 0 12px;
  }

  .board-scroll-hint {
    display: block;
  }
}

@media (max-width: 640px) {
  .board-meta-strip {
    gap: 8px;
  }

  .board-meta-pill {
    min-height: 30px;
    padding: 7px 10px;
    font-size: 0.68rem;
  }

  .board-table {
    min-width: 700px;
  }

  .digit-header,
  .row-digit {
    width: 60px;
    height: 60px;
  }

  .square-cell {
    height: 60px;
  }

  .square-owner {
    font-size: 0.74rem;
    padding-top: 17px;
  }
}

/* Board readability pass */

.board-actions {
  justify-content: flex-end;
  align-items: flex-start;
}

.board-actions button {
  min-width: 220px;
}

.side-team-label,
.top-team-label {
  color: #f6fbff;
  text-shadow: 0 10px 18px rgba(4, 14, 28, 0.2);
}

.side-team-label {
  min-width: 62px;
  padding: 20px 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08)),
    linear-gradient(180deg, rgba(10, 28, 47, 0.62), rgba(13, 63, 82, 0.52));
  border-color: rgba(255,255,255,0.16);
  box-shadow:
    0 16px 26px rgba(8, 19, 34, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.12);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
}

.top-team-label {
  min-height: 54px;
  padding: 14px 18px;
  background:
    radial-gradient(circle at top center, rgba(255,255,255,0.14), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08)),
    linear-gradient(135deg, rgba(10, 28, 47, 0.64), rgba(14, 79, 94, 0.56));
  border-color: rgba(255,255,255,0.16);
  box-shadow:
    0 18px 28px rgba(8, 19, 34, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.14);
  font-size: 0.94rem;
  letter-spacing: 0.14em;
}

.corner-cell,
.digit-header,
.row-digit {
  background:
    linear-gradient(180deg, rgba(255,255,255,1), rgba(232, 241, 248, 0.98));
  box-shadow:
    0 12px 20px rgba(8, 19, 34, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.92);
}

.corner-cell {
  color: #29445c;
  font-size: 0.74rem;
}

.digit-header,
.row-digit {
  width: 70px;
  height: 70px;
}

.digit-header input,
.row-digit input {
  color: #0f2740;
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.55);
}

.digit-header input[disabled],
.row-digit input[disabled] {
  opacity: 1;
  color: #0f2740;
}

@media (max-width: 860px) {
  .board-actions {
    justify-content: flex-start;
  }

  .board-actions button {
    min-width: 0;
    width: auto;
  }

  .side-team-label {
    writing-mode: horizontal-tb;
    transform: none;
    justify-content: flex-start;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 640px) {
  .top-team-label {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
  }

  .side-team-label {
    font-size: 0.78rem;
  }

  .digit-header,
  .row-digit {
    width: 64px;
    height: 64px;
  }

  .digit-header input,
  .row-digit input {
    font-size: 1.1rem;
  }
}

/* Final board header polish */

.board-shell {
  gap: 18px;
}

.side-team-label,
.top-team-label {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  font-weight: 900;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.08),
    0 12px 22px rgba(3, 12, 24, 0.26);
}

.side-team-label::before,
.top-team-label::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16), transparent 30%),
    linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}

.side-team-label::after,
.top-team-label::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

.side-team-label {
  min-width: 68px;
  padding: 24px 11px;
  background:
    radial-gradient(circle at top center, rgba(255,220,132,0.18), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08)),
    linear-gradient(180deg, rgba(8, 29, 49, 0.94), rgba(13, 72, 92, 0.78));
  box-shadow:
    0 18px 30px rgba(8, 19, 34, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.14);
  font-size: 0.92rem;
  letter-spacing: 0.22em;
}

.top-team-label {
  min-height: 60px;
  padding: 16px 22px;
  background:
    radial-gradient(circle at top center, rgba(255,220,132,0.18), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08)),
    linear-gradient(135deg, rgba(8, 29, 49, 0.94), rgba(15, 88, 103, 0.82));
  box-shadow:
    0 20px 30px rgba(8, 19, 34, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.16);
  font-size: 1.02rem;
  letter-spacing: 0.18em;
}

.corner-cell,
.digit-header,
.row-digit {
  background:
    linear-gradient(180deg, rgba(255,255,255,1), rgba(228, 238, 246, 0.98));
  box-shadow:
    0 14px 22px rgba(8, 19, 34, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.corner-cell {
  color: #18344f;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.digit-header,
.row-digit {
  width: 74px;
  height: 74px;
}

.digit-header input,
.row-digit input {
  color: #0b233a;
  font-size: 1.34rem;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.74),
    0 10px 18px rgba(20, 56, 86, 0.08);
}

.digit-header input[disabled],
.row-digit input[disabled] {
  color: #0b233a;
}

@media (max-width: 860px) {
  .side-team-label {
    min-width: 0;
    padding: 14px 16px;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
  }

  .top-team-label {
    min-height: 54px;
    font-size: 0.9rem;
    letter-spacing: 0.14em;
  }
}

@media (max-width: 640px) {
  .digit-header,
  .row-digit {
    width: 66px;
    height: 66px;
  }

  .digit-header input,
  .row-digit input {
    font-size: 1.18rem;
  }
}

/* Outside digits premium readability pass */

.corner-cell,
.digit-header,
.row-digit {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(255,255,255,0.98), rgba(255,255,255,0.78) 28%, transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #eef5fb 42%, #dbe7f1 100%);
  border: 1px solid rgba(19, 44, 67, 0.12);
  box-shadow:
    0 16px 26px rgba(8, 19, 34, 0.18),
    0 4px 10px rgba(18, 52, 79, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.98),
    inset 0 -1px 0 rgba(20, 55, 83, 0.08);
}

.corner-cell::before,
.digit-header::before,
.row-digit::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.34), transparent 34%),
    linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  pointer-events: none;
}

.corner-cell::after,
.digit-header::after,
.row-digit::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.48);
  pointer-events: none;
}

.corner-cell {
  width: 76px;
  color: #0f2942;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,0.82);
}

.corner-cell span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 6px;
}

.digit-header,
.row-digit {
  width: 78px;
  height: 78px;
}

.digit-header input,
.row-digit input {
  position: relative;
  z-index: 1;
  color: #081e33;
  font-size: 1.46rem;
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.92),
    0 12px 18px rgba(18, 52, 79, 0.1);
}

.digit-header input[disabled],
.row-digit input[disabled] {
  color: #081e33;
  opacity: 1;
}

@media (max-width: 860px) {
  .corner-cell {
    width: 72px;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .digit-header,
  .row-digit {
    width: 72px;
    height: 72px;
  }

  .digit-header input,
  .row-digit input {
    font-size: 1.3rem;
  }
}

@media (max-width: 640px) {
  .corner-cell {
    width: 68px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .digit-header,
  .row-digit {
    width: 68px;
    height: 68px;
  }

  .digit-header input,
  .row-digit input {
    font-size: 1.2rem;
  }
}

/* Board digit and team-brand upgrade */

.side-team-label,
.top-team-label {
  --team-accent: #1a5b78;
  color: #ffffff;
  background:
    radial-gradient(circle at top center, rgba(255,255,255,0.14), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)),
    linear-gradient(135deg, rgba(7, 24, 40, 0.98), color-mix(in srgb, var(--team-accent) 58%, #0f2033) 100%);
  border: 1px solid color-mix(in srgb, var(--team-accent) 38%, rgba(255,255,255,0.18));
  box-shadow:
    0 20px 34px rgba(7, 16, 30, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

.side-team-label {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
}

.top-team-label {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.team-brand-mark {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.96), rgba(240, 246, 251, 0.9));
  border: 1px solid rgba(255,255,255,0.36);
  color: #153149;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow:
    0 12px 18px rgba(5, 14, 27, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.96);
}

.team-brand-mark.has-image {
  color: transparent;
}

.team-brand-mark-image {
  width: 74%;
  height: 74%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(5, 14, 27, 0.16));
}

.team-brand-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  min-width: 0;
  align-content: center;
}

.team-brand-copy strong {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: none;
  text-shadow: 0 10px 18px rgba(3, 12, 24, 0.24);
}

.top-team-label .team-brand-copy {
  text-align: left;
}

.side-team-label .team-brand-copy {
  text-align: center;
}

.corner-cell,
.digit-header,
.row-digit {
  background:
    radial-gradient(circle at top center, rgba(255,255,255,1), rgba(255,255,255,0.84) 28%, transparent 68%),
    linear-gradient(180deg, #fdfefe 0%, #e8f0f7 44%, #d1deea 100%);
  border: 1px solid rgba(12, 38, 60, 0.14);
  box-shadow:
    0 18px 28px rgba(8, 19, 34, 0.2),
    0 5px 12px rgba(18, 52, 79, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.98),
    inset 0 -1px 0 rgba(17, 44, 68, 0.08);
}

.corner-cell {
  background:
    radial-gradient(circle at top center, rgba(255,255,255,1), rgba(255,255,255,0.86) 30%, transparent 70%),
    linear-gradient(180deg, #fdfefe 0%, #edf4fa 42%, #d6e2ec 100%);
  color: #0d2a42;
  box-shadow:
    0 18px 28px rgba(8, 19, 34, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.98),
    inset 0 -1px 0 rgba(17, 44, 68, 0.08);
}

.digit-header,
.row-digit {
  width: 80px;
  height: 80px;
}

.digit-header input,
.row-digit input {
  color: #03192c;
  font-size: 1.56rem;
  font-weight: 950;
  letter-spacing: -0.05em;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.98),
    0 14px 20px rgba(10, 45, 75, 0.08);
}

@media (max-width: 860px) {
  .top-team-label {
    justify-content: flex-start;
    padding: 14px 16px;
  }

  .side-team-label {
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
    gap: 12px;
  }

  .side-team-label .team-brand-copy {
    text-align: left;
  }

  .side-team-label .team-brand-copy strong {
    max-width: none;
  }

  .digit-header,
  .row-digit {
    width: 74px;
    height: 74px;
  }

  .digit-header input,
  .row-digit input {
    font-size: 1.34rem;
  }
}

@media (max-width: 640px) {
  .team-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 0.78rem;
  }

  .team-brand-copy strong {
    font-size: 0.9rem;
  }

  .team-brand-copy small {
    font-size: 0.56rem;
  }

  .digit-header,
  .row-digit {
    width: 70px;
    height: 70px;
  }

  .digit-header input,
  .row-digit input {
    font-size: 1.24rem;
  }

  .corner-cell {
    width: 70px;
  }
}

/* Board outer rail premium pass */

.corner-cell,
.digit-header,
.row-digit {
  background:
    radial-gradient(circle at top center, rgba(255,255,255,0.16), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02)),
    linear-gradient(180deg, #10273f 0%, #173a5a 44%, #0c2237 100%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 18px 28px rgba(6, 15, 28, 0.24),
    0 6px 14px rgba(6, 15, 28, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -1px 0 rgba(0,0,0,0.22);
}

.corner-cell::before,
.digit-header::before,
.row-digit::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), transparent 28%),
    linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
}

.corner-cell::after,
.digit-header::after,
.row-digit::after {
  border-color: rgba(255,255,255,0.08);
}

.corner-cell {
  background:
    radial-gradient(circle at top center, rgba(255,225,150,0.18), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02)),
    linear-gradient(180deg, #13314d 0%, #1b4365 46%, #0e2740 100%);
  color: #f5fbff;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.08),
    0 12px 18px rgba(0,0,0,0.22);
}

.digit-header input,
.row-digit input {
  color: #f7fbff;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.08),
    0 14px 22px rgba(0,0,0,0.22);
}

.digit-header input[disabled],
.row-digit input[disabled] {
  color: #f7fbff;
}

.side-team-label,
.top-team-label {
  background:
    radial-gradient(circle at top center, rgba(255,232,166,0.18), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)),
    linear-gradient(135deg, #0a2136, color-mix(in srgb, var(--team-accent) 72%, #10233a) 100%);
  border: 1px solid color-mix(in srgb, var(--team-accent) 42%, rgba(255,255,255,0.16));
  box-shadow:
    0 24px 36px rgba(7, 16, 30, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -1px 0 rgba(0,0,0,0.18);
}

.team-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,1), rgba(237, 244, 250, 0.94));
  border: 1px solid rgba(255,255,255,0.42);
  box-shadow:
    0 14px 22px rgba(5, 14, 27, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.98);
}

.team-brand-copy {
  gap: 4px;
}

.team-brand-copy strong {
  font-size: 1.08rem;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.team-brand-wordmark {
  display: block;
  width: min(200px, 100%);
  max-width: 100%;
  max-height: 38px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.2));
}

.top-team-label.has-wordmark .team-brand-copy,
.side-team-label.has-wordmark .team-brand-copy {
  align-items: start;
}

.side-team-label.has-wordmark .team-brand-wordmark {
  width: 120px;
  max-height: 120px;
  object-position: center;
  transform: rotate(90deg);
  transform-origin: center;
}

.side-team-label {
  gap: 16px;
}

.side-team-label .team-brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.side-team-label .team-brand-copy strong {
  font-size: 1.18rem;
  line-height: 1.04;
}

@media (max-width: 860px) {
  .side-team-label.has-wordmark .team-brand-wordmark {
    width: min(160px, 100%);
    max-height: 34px;
    transform: none;
  }

  .team-brand-mark {
    width: 40px;
    height: 40px;
  }

  .team-brand-wordmark {
    height: 30px;
  }

  .side-team-label .team-brand-copy {
    text-align: left;
  }

  .side-team-label .team-brand-copy strong {
    font-size: 1.04rem;
  }
}

@media (max-width: 640px) {
  .digit-header,
  .row-digit {
    width: 72px;
    height: 72px;
  }

  .digit-header input,
  .row-digit input {
    font-size: 1.28rem;
  }

  .corner-cell {
    width: 72px;
  }

  .team-brand-copy strong {
    font-size: 0.94rem;
  }

  .side-team-label .team-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .team-brand-wordmark {
    height: 26px;
  }
}

/* Final team-brand rail sizing pass */

.board-shell {
  align-items: stretch;
  grid-template-columns: 82px minmax(0, 1fr);
}

.board-area {
  min-width: 0;
}

.side-team-label,
.top-team-label {
  overflow: hidden;
}

.side-team-label {
  align-self: stretch;
  min-width: 82px;
  min-height: 100%;
  padding: 20px 8px;
  border-radius: 24px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
}

.side-team-label .team-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
}

.side-team-label .team-brand-mark-image {
  width: 76%;
  height: 76%;
}

.side-team-label .team-brand-copy {
  justify-items: center;
  align-content: center;
  gap: 10px;
}

.side-team-label .team-brand-copy strong {
  font-size: 1.32rem;
  font-weight: 950;
  line-height: 1.02;
  max-width: none;
  text-align: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.02em;
}

.side-team-label .team-brand-wordmark {
  display: none;
}

.top-team-label {
  min-height: 74px;
  padding: 18px 26px;
  gap: 18px;
  justify-content: center;
}

.top-team-label .team-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.top-team-label .team-brand-copy {
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.top-team-label .team-brand-copy strong {
  font-size: 1.46rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.03em;
}

.top-team-label .team-brand-wordmark {
  width: min(240px, 100%);
  max-height: 42px;
  object-position: center;
}

.team-brand-name {
  display: none;
}

.top-team-label.has-wordmark .team-brand-name {
  display: block;
  color: rgba(240, 246, 252, 0.8);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .board-shell {
    grid-template-columns: 1fr;
  }

  .side-team-label {
    min-width: 0;
    min-height: 0;
    padding: 18px 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
  }

  .side-team-label .team-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .side-team-label .team-brand-copy {
    justify-items: start;
    text-align: left;
  }

  .side-team-label .team-brand-copy strong {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.08rem;
    text-align: left;
  }

  .top-team-label {
    min-height: 66px;
    padding: 16px 18px;
    justify-content: center;
  }

  .top-team-label .team-brand-copy strong {
    font-size: 1.12rem;
  }
}

@media (max-width: 640px) {
  .side-team-label {
    padding: 14px 14px;
  }

  .side-team-label .team-brand-mark,
  .top-team-label .team-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .side-team-label .team-brand-copy strong,
  .top-team-label .team-brand-copy strong {
    font-size: 0.98rem;
  }

  .top-team-label {
    min-height: 60px;
    gap: 14px;
  }

  .top-team-label .team-brand-wordmark {
    max-height: 34px;
  }
}

/* Board team-brand layout correction pass */

.board-panel,
.board-shell,
.board-area {
  min-width: 0;
}

.board-shell {
  width: 100%;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
}

.board-area {
  overflow: hidden;
}

.side-team-label,
.top-team-label {
  box-sizing: border-box;
  isolation: isolate;
}

.side-team-label {
  width: 72px;
  min-width: 72px;
  min-height: 0;
  padding: 16px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04)),
    linear-gradient(180deg, color-mix(in srgb, var(--team-accent, #1a5b78) 34%, #07111d 66%), #091524 82%);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    0 18px 34px rgba(4, 11, 22, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

.side-team-label .team-brand-mark {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  margin-top: 2px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.34), transparent 42%),
    rgba(255,255,255,0.12);
  box-shadow:
    0 10px 18px rgba(3, 10, 20, 0.26),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

.side-team-label .team-brand-mark-image {
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2));
}

.side-team-label .team-brand-copy {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-team-label .team-brand-copy strong,
.side-team-label .team-brand-name {
  display: block;
  max-width: none;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: none;
  text-align: center;
  font-size: 1.52rem;
  font-weight: 950;
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: #f6fbff;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.12),
    0 12px 18px rgba(0,0,0,0.26);
}

.side-team-label .team-brand-wordmark {
  display: none;
}

.top-team-label {
  min-height: 86px;
  padding: 18px 30px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05)),
    linear-gradient(135deg, color-mix(in srgb, var(--team-accent, #1a5b78) 34%, #081320 66%), #0c2032 82%);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    0 18px 34px rgba(4, 11, 22, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

.top-team-label .team-brand-mark {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.34), transparent 42%),
    rgba(255,255,255,0.12);
  box-shadow:
    0 10px 18px rgba(3, 10, 20, 0.26),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

.top-team-label .team-brand-mark-image {
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2));
}

.top-team-label .team-brand-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.top-team-label .team-brand-copy strong {
  max-width: none;
  font-size: clamp(1.72rem, 0.9vw + 1.25rem, 2.15rem);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: #f7fbff;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.12),
    0 14px 20px rgba(0,0,0,0.24);
}

.top-team-label .team-brand-wordmark {
  width: min(300px, 100%);
  max-height: 48px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.18));
}

.top-team-label.has-wordmark .team-brand-name {
  display: block;
  color: rgba(239, 246, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .board-shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .side-team-label {
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    flex-direction: row;
    justify-content: center;
    gap: 14px;
  }

  .side-team-label .team-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    margin-top: 0;
  }

  .side-team-label .team-brand-copy {
    flex: 0 1 auto;
    width: auto;
    justify-content: flex-start;
  }

  .side-team-label .team-brand-copy strong,
  .side-team-label .team-brand-name {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 1.26rem;
    text-align: left;
  }

  .top-team-label {
    min-height: 74px;
    padding: 16px 18px;
    gap: 14px;
  }

  .top-team-label .team-brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .top-team-label .team-brand-copy strong {
    font-size: 1.42rem;
  }

  .top-team-label .team-brand-wordmark {
    max-height: 40px;
  }
}

@media (max-width: 640px) {
  .board-shell {
    gap: 10px;
  }

  .side-team-label,
  .top-team-label {
    border-radius: 20px;
  }

  .side-team-label {
    padding: 12px 14px;
  }

  .side-team-label .team-brand-mark,
  .top-team-label .team-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .side-team-label .team-brand-copy strong,
  .side-team-label .team-brand-name {
    font-size: 1.08rem;
  }

  .top-team-label {
    min-height: 68px;
    padding: 14px 16px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .top-team-label .team-brand-copy strong {
    font-size: 1.28rem;
  }

  .top-team-label .team-brand-wordmark {
    width: min(220px, 100%);
    max-height: 34px;
  }
}

/* Unified active board banner system */

.board-shell {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  margin-top: 0;
  align-items: stretch;
  overflow: visible;
}

.board-area,
.board-scroller {
  min-width: 0;
}

.top-team-label,
.side-team-label {
  box-sizing: border-box;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05)),
    linear-gradient(165deg, color-mix(in srgb, var(--team-accent, #1a5b78) 34%, #081320 66%), #0c2032 84%);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    0 18px 34px rgba(4, 11, 22, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

.top-team-label {
  min-height: 64px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.top-team-label .team-banner__layout--top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-team-label .team-banner__row {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.top-team-label .team-banner__logo {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  overflow: hidden;
}

.top-team-label .team-banner__title {
  display: inline-block;
  color: #f7fbff;
  font-size: clamp(1.9rem, 1.1vw + 1.3rem, 2.5rem);
  font-weight: 1000;
  line-height: 0.9;
  white-space: nowrap;
}

.side-team-label {
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  align-self: stretch;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 0;
}

.side-team-label .team-banner__layout--side {
  position: absolute;
  inset: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

.side-team-label .team-banner__rotator {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  overflow: visible;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center center;
}

.side-team-label .team-banner__row {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.side-team-label .team-banner__logo {
  order: 0;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.top-team-label .team-banner__logo-image,
.side-team-label .team-banner__logo-image {
  width: 82%;
  height: 82%;
  object-fit: contain;
  display: block;
}

.side-team-label .team-banner__title {
  order: 1;
  display: inline-block;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  transform: none;
  color: #f7fbff;
  font-size: clamp(1.9rem, 1.1vw + 1.3rem, 2.5rem);
  font-weight: 1000;
  line-height: 0.9;
}

@media (max-width: 860px) {
  .board-shell {
    grid-template-columns: 1fr;
  }

  .top-team-label {
    min-height: 64px;
    padding: 12px 16px;
  }

  .top-team-label .team-banner__logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .top-team-label .team-banner__title {
    font-size: 1.34rem;
  }

  .side-team-label {
    width: 100%;
    min-width: 0;
    max-width: none;
    overflow: hidden;
  }

  .side-team-label .team-banner__layout--side {
    position: static;
    inset: auto;
  }

  .side-team-label .team-banner__rotator {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
  }

  .side-team-label .team-banner__title {
    font-size: 1.34rem;
  }
}

/* Pool page dashboard refresh */

.pool-screen {
  --pool-surface-1: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    linear-gradient(165deg, rgba(9, 23, 39, 0.98), rgba(16, 41, 66, 0.98) 54%, rgba(15, 72, 78, 0.94));
  --pool-surface-2: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04)),
    linear-gradient(165deg, rgba(12, 28, 45, 0.98), rgba(18, 48, 74, 0.98) 58%, rgba(11, 38, 61, 0.96));
  --pool-surface-soft: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03)),
    rgba(9, 24, 40, 0.72);
  --pool-border: rgba(255,255,255,0.12);
  --pool-border-strong: rgba(255,255,255,0.16);
  --pool-copy: #f4f8fd;
  --pool-copy-soft: rgba(222, 232, 242, 0.76);
  --pool-shadow-lg: 0 28px 60px rgba(5, 14, 27, 0.28);
  --pool-shadow-md: 0 18px 34px rgba(5, 14, 27, 0.2);
  display: grid;
  gap: 22px;
  color: var(--pool-copy);
}

.pool-masthead {
  display: grid;
  gap: 20px;
}

.pool-screen .hero {
  margin-bottom: 0;
  padding: 20px 22px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.16), transparent 24%),
    radial-gradient(circle at right center, rgba(255,211,112,0.12), transparent 28%),
    var(--pool-surface-1);
  border: 1px solid var(--pool-border);
  box-shadow: var(--pool-shadow-lg);
}

.pool-screen .hero-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.pool-screen .hero-badge > div:last-child {
  min-width: 0;
}

.pool-screen .eyebrow {
  margin: 0 0 6px;
  color: rgba(226, 236, 246, 0.7);
  letter-spacing: 0.12em;
}

.pool-screen #poolHeroTitle {
  margin: 0;
  font-size: clamp(2rem, 1.8vw + 1.3rem, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.pool-screen .pool-created-by {
  margin: 8px 0 0;
  color: var(--pool-copy-soft);
}

.pool-screen .meta-grid {
  margin: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pool-meta-field {
  padding: 16px 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 28%),
    var(--pool-surface-2);
  border: 1px solid var(--pool-border);
  box-shadow: var(--pool-shadow-md);
}

.pool-meta-field span {
  color: rgba(224, 234, 244, 0.72);
}

.pool-meta-field input {
  min-height: 54px;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.pool-meta-field input::placeholder {
  color: rgba(230, 238, 246, 0.42);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.pool-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: stretch;
}

.pool-summary-card {
  margin-bottom: 0;
  padding: 24px 26px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 26%),
    linear-gradient(135deg, color-mix(in srgb, var(--away-color, #255a97) 72%, #081424 28%), color-mix(in srgb, var(--home-color, #7f2a2a) 76%, #081424 24%));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--pool-shadow-lg);
}

.pool-summary-head {
  margin-bottom: 18px;
}

.pool-summary-head .panel-kicker,
.pool-summary-date {
  color: rgba(239, 246, 255, 0.76);
}

.pool-summary-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 1.2vw + 1.2rem, 2.5rem);
  line-height: 1.02;
  color: #ffffff;
}

.matchup-banner {
  gap: 16px;
}

.team-showcase {
  min-height: 132px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.team-showcase-copy {
  flex: 0 1 auto;
}

.team-showcase-line {
  align-items: center;
}

.team-showcase-copy strong {
  font-size: 1.24rem;
  line-height: 1.1;
  color: #ffffff;
}

.team-inline-score {
  min-width: 54px;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 18px;
  background: rgba(7, 17, 31, 0.24);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: 1.95rem;
  font-weight: 900;
}

.team-logo-badge {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow:
    0 14px 28px rgba(6, 16, 28, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

.matchup-versus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 68px;
  border-radius: 20px;
  background: rgba(7, 17, 31, 0.18);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  letter-spacing: 0.22em;
}

.pool-screen .board-panel,
.pool-screen .sidebar .panel,
.pool-screen .notes-panel,
.pool-screen .results-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--pool-border);
  box-shadow: var(--pool-shadow-lg);
}

.pool-screen .board-panel,
.pool-screen .sidebar .panel,
.pool-screen .notes-panel,
.pool-screen .results-panel,
.pool-screen .scoreboard-banner {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.11), transparent 24%),
    var(--pool-surface-2);
}

.pool-screen .board-panel {
  padding: 22px;
  display: grid;
  gap: 20px;
}

.pool-main-column {
  min-width: 0;
  display: grid;
  gap: 20px;
  align-content: start;
}

.pool-screen .panel:not(.chat-panel):not(.host-tools-drawer) {
  padding: 20px;
}

.pool-screen .panel-kicker {
  color: rgba(221, 232, 242, 0.68);
  letter-spacing: 0.12em;
}

.pool-screen .panel-head,
.pool-screen .board-toolbar {
  align-items: flex-start;
  gap: 16px;
}

.pool-screen .board-toolbar > div:first-child {
  min-width: 0;
}

.tracker-board-actions {
  min-width: min(100%, 260px);
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.tracker-board-actions .ghost {
  width: 100%;
}

.tracker-board-actions .ghost.is-active {
  background: linear-gradient(180deg, rgba(62, 227, 255, 0.18), rgba(25, 113, 255, 0.18));
  border-color: rgba(95, 214, 255, 0.42);
  color: #ffffff;
}

.tracker-edit-helper {
  margin: 0;
  color: var(--pool-copy-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.pool-screen.is-tracker-pool .board-toolbar {
  min-height: 144px;
}

.pool-screen .panel-head h3,
.pool-screen .board-toolbar h2 {
  margin: 4px 0 0;
  color: #ffffff;
}

.pool-screen .board-status {
  color: var(--pool-copy-soft);
}

.pool-screen.is-tracker-pool .board-status {
  max-width: none;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.pool-screen .board-meta-pill {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: rgba(240, 246, 252, 0.9);
}

.pool-screen .board-meta-pill--status {
  background: rgba(255, 211, 112, 0.16);
  border-color: rgba(255, 211, 112, 0.24);
  color: #ffe8aa;
}

.pool-screen #finalizeBoard {
  min-height: 50px;
  padding-inline: 18px;
  background: linear-gradient(135deg, #2f7fe7, #4a98ff);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 16px 28px rgba(22, 78, 157, 0.28);
}

.pool-screen .legend {
  padding-top: 0;
  color: rgba(225, 235, 245, 0.82);
}

.pool-screen .scoreboard-banner {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  align-content: center;
  justify-items: center;
  margin-top: 0;
  padding: 8px 12px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--pool-shadow-md);
}

.pool-screen .score-banner-team {
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
  justify-content: center;
  justify-items: center;
  width: 100%;
  text-align: center;
  padding: 6px 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.pool-screen .score-banner-team span {
  display: block;
  width: 100%;
  color: rgba(224, 234, 244, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pool-screen .score-banner-team strong {
  display: block;
  width: 100%;
  color: #ffffff;
  font-size: 2.35rem;
  letter-spacing: -0.05em;
  text-align: center;
}

.pool-screen .score-banner-center {
  display: grid;
  gap: 6px;
  align-content: center;
  justify-items: center;
}

.pool-screen .score-banner-center span {
  font-weight: 800;
  color: #ffffff;
}

.pool-screen .score-banner-center small {
  color: rgba(221, 232, 242, 0.7);
}

.lower-panels {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
  align-items: start;
  gap: 18px;
  margin-top: 0;
}

.notes-panel,
.results-panel {
  margin: 0;
}

.notes-panel textarea {
  min-height: 168px;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #f5f9fd;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.notes-panel textarea::placeholder {
  color: rgba(230, 238, 246, 0.42);
}

.winner-grid {
  gap: 12px;
}

.winner-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)),
    rgba(8, 21, 35, 0.62);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 16px 28px rgba(5, 14, 27, 0.16);
}

.winner-card-head {
  margin-bottom: 0;
}

.winner-card strong,
.winner-card > div:last-child {
  color: #ffffff;
}

.winner-card small {
  color: rgba(221, 232, 242, 0.66);
}

.pool-sidebar-column {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 14px;
  align-self: start;
}

.entry-panel,
.payouts-panel {
  display: grid;
  gap: 12px;
}

.entry-stats {
  display: grid;
  gap: 10px;
}

.entry-stat {
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.entry-stat small {
  display: block;
  margin-bottom: 8px;
  color: rgba(221, 232, 242, 0.64);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.entry-stat strong {
  display: block;
  color: #ffffff;
  font-size: 1.24rem;
  line-height: 1.1;
}

.entry-stat--accent {
  background:
    radial-gradient(circle at top left, rgba(255,220,132,0.14), transparent 34%),
    rgba(255,255,255,0.06);
}

.pool-screen .info-row {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  align-items: center;
}

.pool-screen .info-row strong {
  color: #ffffff;
}

.payment-status-row {
  margin-top: 2px;
}

.payment-status-row strong {
  font-size: 0.92rem;
}

.payment-pill {
  background: rgba(176, 32, 32, 0.18);
  color: #ffb0a4;
  border: 1px solid rgba(255,255,255,0.08);
}

.payment-pill.is-paid {
  background: rgba(17, 143, 72, 0.18);
  color: #9ef0b7;
}

.payment-pill.is-due {
  background: rgba(255, 208, 92, 0.18);
  color: #ffd98b;
}

.panel-supporting-copy {
  margin: -2px 0 0;
  color: var(--pool-copy-soft);
  line-height: 1.55;
}

.payout-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(36, 125, 255, 0.38);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(36, 125, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(2, 10, 22, 0.64), rgba(2, 10, 22, 0.36));
  box-shadow:
    0 18px 34px rgba(5, 14, 27, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.payout-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}

.payout-card:first-child {
  border-top: 0;
}

.payout-card small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ddecff;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.payout-card span {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 950;
  text-align: right;
  text-shadow: 0 0 16px rgba(46, 155, 255, 0.22);
}

.payout-card--total {
  padding-top: 15px;
  padding-bottom: 15px;
  background: rgba(36, 125, 255, 0.06);
}

.payout-card--total span {
  color: #2e9bff;
  font-size: 1.52rem;
}

.results-panel {
  display: grid;
  gap: 12px;
}

.winner-grid {
  gap: 10px;
}

.winner-card {
  padding: 14px;
}

.pool-sidebar-column .notes-panel {
  display: grid;
  grid-template-rows: auto auto;
  min-height: 0;
  align-self: stretch;
}

.notes-card-actions {
  display: grid;
  place-items: center;
  min-height: 74px;
  padding: 0;
}

.pool-notes-hidden-input {
  display: none !important;
}

.notes-expand-button {
  min-width: min(100%, 220px);
  padding: 15px 18px;
  border-radius: 18px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4f8fd;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.14), transparent 30%),
    rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  box-shadow:
    0 16px 28px rgba(5, 14, 27, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.notes-expand-button:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
}

.pool-notes-overlay {
  position: fixed;
  inset: 0;
  z-index: 58;
  display: grid;
  place-items: center;
  padding: 26px;
  pointer-events: none;
  opacity: 0;
  background: rgba(4, 11, 21, 0.22);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: opacity 220ms ease, backdrop-filter 220ms ease, -webkit-backdrop-filter 220ms ease, background 220ms ease;
}

.pool-notes-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  background: rgba(4, 11, 21, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pool-notes-modal {
  display: grid;
  gap: 18px;
  width: min(760px, calc(100vw - 52px));
  min-height: min(68vh, 680px);
  max-height: calc(100vh - 52px);
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.16), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    linear-gradient(165deg, rgba(9, 23, 39, 0.99), rgba(16, 41, 66, 0.99) 54%, rgba(15, 72, 78, 0.96));
  box-shadow:
    0 40px 90px rgba(5, 14, 27, 0.42),
    0 0 0 1px rgba(255,255,255,0.03) inset;
  transform-origin: bottom right;
  transform: translate(28px, 28px) scale(0.82);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 320ms ease;
}

.pool-notes-overlay.is-open .pool-notes-modal {
  transform: translate(0, 0) scale(1);
}

.tracker-name-overlay {
  position: fixed;
  inset: 0;
  z-index: 59;
  display: grid;
  place-items: center;
  padding: 26px;
  pointer-events: none;
  opacity: 0;
  background: rgba(4, 11, 21, 0.18);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: opacity 220ms ease, backdrop-filter 220ms ease, -webkit-backdrop-filter 220ms ease, background 220ms ease;
}

.tracker-name-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  background: rgba(4, 11, 21, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tracker-name-modal {
  display: grid;
  gap: 18px;
  width: min(520px, calc(100vw - 52px));
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 26%),
    var(--pool-surface-1);
  box-shadow: 0 28px 56px rgba(5, 14, 27, 0.34);
  transform: translateY(20px) scale(0.96);
  transition: transform 220ms ease;
}

.tracker-name-overlay.is-open .tracker-name-modal {
  transform: translateY(0) scale(1);
}

.tracker-name-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tracker-name-modal-head h3 {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: clamp(1.2rem, 0.75vw + 1rem, 1.6rem);
}

.tracker-name-square-label {
  margin: 8px 0 0;
  color: var(--pool-copy-soft);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tracker-name-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tracker-name-actions button {
  flex: 1 1 140px;
}

.tracker-name-close {
  min-width: 0;
  padding: 10px 16px;
}

.pool-screen.is-tracker-name-editing .square-cell {
  box-shadow:
    0 16px 24px rgba(8, 19, 34, 0.12),
    inset 0 0 0 1px rgba(62, 227, 255, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.88);
}

.pool-screen.is-tracker-name-editing .square-owner {
  cursor: cell;
}

.pool-notes-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pool-notes-modal-head h3 {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: clamp(1.25rem, 0.8vw + 1rem, 1.75rem);
}

.pool-notes-close {
  min-width: 0;
  padding: 10px 16px;
  border-radius: 14px;
  color: #f4f8fd;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

.pool-notes-expanded-textarea {
  width: 100%;
  min-height: 0;
  height: 100%;
  resize: none;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #f5f9fd;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.pool-notes-expanded-textarea::placeholder {
  color: rgba(230, 238, 246, 0.42);
}

.host-tools-drawer {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.15), transparent 28%),
    var(--pool-surface-1);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 32px 64px rgba(5, 14, 27, 0.32);
}

.sidebar #hostToolsPanel {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.15), transparent 28%),
    var(--pool-surface-1);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 32px 64px rgba(5, 14, 27, 0.32);
}

.host-summary-card,
.host-tab-button,
.invite-status-item,
.participant-chip {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
  color: var(--pool-copy);
}

.host-summary-card small,
.invite-status-item small,
.participant-chip-balance,
.participant-chip-balance strong {
  color: var(--pool-copy-soft);
}

.host-tab-button.active {
  background: rgba(70, 147, 255, 0.18);
  border-color: rgba(70, 147, 255, 0.3);
  color: #dcebff;
}

.host-settings-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.host-settings-panel-copy {
  display: grid;
  gap: 6px;
}

.host-settings-panel-copy h4 {
  margin: 0;
  font-size: 1rem;
  color: #f7fbff;
}

.host-settings-panel-copy p {
  margin: 0;
  color: rgba(221, 232, 242, 0.72);
  line-height: 1.5;
}

.invite-status-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border-left: 4px solid rgba(255,255,255,0.18);
}

.invite-status-item.is-pending {
  background: rgba(255, 208, 92, 0.11);
  border-color: rgba(255, 208, 92, 0.22);
  border-left-color: #ffd05c;
}

.invite-status-item.is-accepted {
  background: rgba(48, 211, 140, 0.12);
  border-color: rgba(48, 211, 140, 0.24);
  border-left-color: #30d38c;
}

.invite-status-item.is-deleted {
  background: rgba(255, 99, 99, 0.11);
  border-color: rgba(255, 99, 99, 0.24);
  border-left-color: #ff6363;
  opacity: 0.86;
}

.invite-status-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.invite-status-copy strong {
  color: #f7fbff;
  word-break: break-word;
}

.invite-status-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78px;
  justify-content: start;
  align-items: start;
  gap: 8px;
  margin-top: 8px;
}

.invite-action-button {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  min-width: 78px;
  max-width: 78px;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  margin: 0;
  padding: 0;
  border-radius: 9px;
  border: 1px solid transparent;
  box-shadow: none;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transform: none;
}

.invite-action-button:hover,
.invite-action-button:focus-visible {
  transform: none;
  box-shadow: none;
}

.invite-action-button--resend {
  background: rgba(70, 147, 255, 0.16);
  border-color: rgba(70, 147, 255, 0.34);
  color: #dcebff;
}

.invite-action-button--unsend {
  background: rgba(255, 99, 99, 0.12);
  border-color: rgba(255, 99, 99, 0.26);
  color: #ffd8d8;
}

.invite-status-pill {
  min-width: 86px;
  padding: 8px 11px;
  border-radius: 999px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.invite-status-pill.is-pending {
  background: #ffd05c;
  color: #4f3500;
}

.invite-status-pill.is-accepted {
  background: #30d38c;
  color: #052817;
}

.invite-status-pill.is-deleted {
  background: #ff6363;
  color: #3c0808;
}

.host-settings-payout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.host-settings-payout-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(7, 18, 34, 0.45);
  border: 1px solid rgba(255,255,255,0.08);
}

.host-settings-payout-card small {
  color: rgba(221, 232, 242, 0.68);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.host-settings-payout-card .payout-input {
  width: 100%;
  max-width: none;
  min-width: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #f7fbff;
}

.host-settings-payout-card .payout-input:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.invite-inline-status {
  color: #ff9f96;
}

.pool-screen .field span,
.pool-screen .stack-form .field span {
  color: rgba(221, 232, 242, 0.72);
}

.pool-screen .stack-form input,
.pool-screen .stack-form textarea,
.pool-screen .stack-form select {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #ffffff;
}

.pool-screen .stack-form input::placeholder,
.pool-screen .stack-form textarea::placeholder {
  color: rgba(230, 238, 246, 0.42);
}

@media (max-width: 1180px) {
  .pool-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .pool-sidebar-column {
    grid-template-rows: auto;
    align-self: start;
  }

  .pool-notes-overlay {
    padding: 18px;
  }

  .pool-notes-modal {
    width: min(100%, 720px);
    min-height: min(72vh, 560px);
    padding: 18px;
    transform: translate(0, 26px) scale(0.94);
  }
}

@media (max-width: 860px) {
  .pool-screen {
    gap: 18px;
  }

  .pool-screen.is-tracker-pool .board-toolbar {
    min-height: 0;
  }

  .pool-screen .hero,
  .pool-summary-card,
  .pool-screen .board-panel,
  .pool-screen .sidebar .panel,
  .pool-screen .notes-panel,
  .pool-screen .results-panel {
    border-radius: 24px;
  }

  .pool-screen .hero {
    padding: 18px;
  }

  .pool-screen .hero-badge {
    align-items: flex-start;
  }

  .pool-screen #poolHeroTitle {
    font-size: 1.9rem;
  }

  .pool-screen .meta-grid {
    grid-template-columns: 1fr;
  }

  .matchup-banner {
    grid-template-columns: 1fr;
  }

  .matchup-versus {
    justify-self: center;
  }

  .content-grid {
    gap: 18px;
  }

  .pool-dashboard-layout,
  .pool-main-column {
    gap: 18px;
  }

  .pool-screen .scoreboard-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pool-screen .score-banner-team {
    justify-content: space-between;
  }

  .pool-notes-modal-head {
    align-items: stretch;
    flex-direction: column;
  }

  .pool-notes-close {
    width: 100%;
  }

  .tracker-name-overlay {
    padding: 18px;
  }

  .tracker-name-modal {
    width: min(100%, 720px);
    padding: 18px;
  }

  .tracker-name-modal-head {
    align-items: stretch;
    flex-direction: column;
  }

  .tracker-name-close,
  .tracker-name-actions button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .host-settings-payout-grid {
    grid-template-columns: 1fr;
  }

  .pool-screen .hero,
  .pool-screen .board-panel,
  .pool-summary-card,
  .pool-screen .panel:not(.chat-panel):not(.host-tools-drawer) {
    padding: 16px;
  }

  .pool-screen #poolHeroTitle {
    font-size: 1.72rem;
  }

  .pool-summary-head h2,
  .pool-screen .board-toolbar h2 {
    font-size: 1.52rem;
  }

  .team-showcase {
    min-height: 112px;
    padding: 16px;
  }

  .team-logo-badge {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .team-inline-score {
    min-width: 48px;
    min-height: 48px;
    font-size: 1.7rem;
  }

  .tracker-name-modal {
    width: calc(100vw - 24px);
    padding: 16px;
  }

    .entry-stat strong,
    .payout-card span {
      font-size: 1.18rem;
    }
  }

/* Profile page rebuild */
.profile-page {
  padding: 28px;
  gap: 0;
  background:
    radial-gradient(circle at top right, rgba(74, 135, 255, 0.22), transparent 24%),
    linear-gradient(180deg, #031127 0%, #071a38 45%, #04142c 100%);
  border: 1px solid rgba(120, 170, 255, 0.12);
  box-shadow: 0 28px 56px rgba(2, 9, 20, 0.38);
}

.profile-page-shell {
  display: grid;
  gap: 22px;
}

.profile-page-header {
  display: grid;
  gap: 8px;
}

.profile-page-header .panel-kicker {
  margin: 0;
}

.profile-page-header h2 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(2rem, 1.8vw + 1.4rem, 3rem);
  letter-spacing: -0.05em;
}

.profile-page-header p:last-child {
  margin: 0;
  color: rgba(214, 228, 247, 0.72);
  font-size: 1.02rem;
}

.profile-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.profile-card {
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 32%),
    linear-gradient(180deg, rgba(8, 28, 57, 0.98), rgba(4, 20, 43, 0.98));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 22px 42px rgba(3, 10, 22, 0.26);
}

.profile-page .field span,
.profile-page .stack-form .field span {
  color: rgba(214, 228, 247, 0.7);
  letter-spacing: 0.06em;
}

.profile-page .stack-form input {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.profile-page .stack-form input::placeholder {
  color: rgba(214, 228, 247, 0.34);
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 142px;
  margin: -20px -20px 18px;
  padding: 18px 22px;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at top center, rgba(255,255,255,0.32), transparent 40%),
    linear-gradient(180deg, rgba(8, 18, 38, 0.16), rgba(8, 18, 38, 0.3)),
    linear-gradient(145deg, #173c73, #0a2248 65%, #0a2b53 100%);
  overflow: hidden;
}

.profile-hero::after {
  content: "";
  position: absolute;
}

.profile-card--identity {
  position: relative;
  overflow: hidden;
}

.profile-hero-avatar-ring {
  width: 106px;
  height: 106px;
  padding: 6px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(158, 186, 223, 0.18));
  box-shadow: 0 20px 32px rgba(4, 11, 22, 0.32);
  flex: 0 0 auto;
}

.profile-hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  font-size: 2rem;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 30%),
    linear-gradient(145deg, #163765, #081d3d);
  color: #f7fbff;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: none;
}

.profile-hero-avatar.avatar-badge {
  border-color: rgba(255,255,255,0.18);
}

.profile-hero-copy {
  display: grid;
  gap: 10px;
}

.profile-hero-copy h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.9rem, 1.2vw + 1.2rem, 2.8rem);
  letter-spacing: -0.05em;
}

.profile-role-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 170, 70, 0.14);
  border: 1px solid rgba(255, 170, 70, 0.18);
  color: #ffd8a0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.profile-avatar-panel {
  display: grid;
  gap: 16px;
  margin-top: 6px;
}

.profile-alert-panel {
  margin-top: 6px;
  background: rgba(10, 28, 54, 0.72);
}

.profile-alert-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.profile-section-head .panel-kicker {
  margin: 0;
}

.profile-avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.profile-page .avatar-preset {
  width: 100%;
  height: 72px;
  border-radius: 18px;
  color: #f8fbff;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.16), transparent 30%),
    linear-gradient(145deg, #173761, #0a1f40);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.profile-page .avatar-preset[data-avatar-preset="captain"] { background: linear-gradient(145deg, #173761, #0a1f40); }
.profile-page .avatar-preset[data-avatar-preset="playmaker"] { background: linear-gradient(145deg, #0c5b6f, #0a203f); }
.profile-page .avatar-preset[data-avatar-preset="defense"] { background: linear-gradient(145deg, #4f565f, #141d2c); }
.profile-page .avatar-preset[data-avatar-preset="victory"] { background: linear-gradient(145deg, #6f4f18, #171f30); }
.profile-page .avatar-preset[data-avatar-preset="blitz"] { background: linear-gradient(145deg, #4e2579, #181d3c); }
.profile-page .avatar-preset[data-avatar-preset="legacy"] { background: linear-gradient(145deg, #7b5119, #201b31); }

.profile-page .avatar-preset--captain { background: linear-gradient(145deg, #204f93, #071b3f 70%); }
.profile-page .avatar-preset--playmaker { background: linear-gradient(145deg, #00a9d8, #09244a 72%); }
.profile-page .avatar-preset--defense { background: linear-gradient(145deg, #69717e, #111827 68%); }
.profile-page .avatar-preset--victory { background: linear-gradient(145deg, #f7b733, #633300 76%); }
.profile-page .avatar-preset--blitz { background: linear-gradient(145deg, #8a5cff, #161544 72%); }
.profile-page .avatar-preset--legacy { background: linear-gradient(145deg, #a46a2a, #1b1530 74%); }
.profile-page .avatar-preset--endzone { background: linear-gradient(145deg, #0bcf8f, #053b32 74%); }
.profile-page .avatar-preset--gridiron { background: linear-gradient(145deg, #123c69, #0a8f5a 76%); }
.profile-page .avatar-preset--dynasty { background: linear-gradient(145deg, #ff4d6d, #29113f 74%); }
.profile-page .avatar-preset--primetime { background: linear-gradient(145deg, #57d8ff, #1f2a8a 70%, #090d2c); }
.profile-page .avatar-preset--huddle { background: linear-gradient(145deg, #ff7a2f, #3a1628 74%); }
.profile-page .avatar-preset--goalpost { background: linear-gradient(145deg, #d5f36b, #15523d 72%); color: #071b16; text-shadow: none; }
.profile-page .avatar-preset--sunday { background: linear-gradient(145deg, #f4f7ff, #2e6cff 46%, #0b1a3c 82%); }
.profile-page .avatar-preset--rookie { background: linear-gradient(145deg, #7df7c8, #1564b3 74%); }
.profile-page .avatar-preset--champion { background: linear-gradient(145deg, #ffe08a, #d77600 48%, #1d2140 84%); }

.account-avatar-badge.avatar-preset--captain,
.profile-hero-avatar.avatar-preset--captain { background: linear-gradient(145deg, #204f93, #071b3f 70%); }
.account-avatar-badge.avatar-preset--playmaker,
.profile-hero-avatar.avatar-preset--playmaker { background: linear-gradient(145deg, #00a9d8, #09244a 72%); }
.account-avatar-badge.avatar-preset--defense,
.profile-hero-avatar.avatar-preset--defense { background: linear-gradient(145deg, #69717e, #111827 68%); }
.account-avatar-badge.avatar-preset--victory,
.profile-hero-avatar.avatar-preset--victory { background: linear-gradient(145deg, #f7b733, #633300 76%); }
.account-avatar-badge.avatar-preset--blitz,
.profile-hero-avatar.avatar-preset--blitz { background: linear-gradient(145deg, #8a5cff, #161544 72%); }
.account-avatar-badge.avatar-preset--legacy,
.profile-hero-avatar.avatar-preset--legacy { background: linear-gradient(145deg, #a46a2a, #1b1530 74%); }
.account-avatar-badge.avatar-preset--endzone,
.profile-hero-avatar.avatar-preset--endzone { background: linear-gradient(145deg, #0bcf8f, #053b32 74%); }
.account-avatar-badge.avatar-preset--gridiron,
.profile-hero-avatar.avatar-preset--gridiron { background: linear-gradient(145deg, #123c69, #0a8f5a 76%); }
.account-avatar-badge.avatar-preset--dynasty,
.profile-hero-avatar.avatar-preset--dynasty { background: linear-gradient(145deg, #ff4d6d, #29113f 74%); }
.account-avatar-badge.avatar-preset--primetime,
.profile-hero-avatar.avatar-preset--primetime { background: linear-gradient(145deg, #57d8ff, #1f2a8a 70%, #090d2c); }
.account-avatar-badge.avatar-preset--huddle,
.profile-hero-avatar.avatar-preset--huddle { background: linear-gradient(145deg, #ff7a2f, #3a1628 74%); }
.account-avatar-badge.avatar-preset--goalpost,
.profile-hero-avatar.avatar-preset--goalpost { background: linear-gradient(145deg, #d5f36b, #15523d 72%); color: #071b16; text-shadow: none; }
.account-avatar-badge.avatar-preset--sunday,
.profile-hero-avatar.avatar-preset--sunday { background: linear-gradient(145deg, #f4f7ff, #2e6cff 46%, #0b1a3c 82%); }
.account-avatar-badge.avatar-preset--rookie,
.profile-hero-avatar.avatar-preset--rookie { background: linear-gradient(145deg, #7df7c8, #1564b3 74%); }
.account-avatar-badge.avatar-preset--champion,
.profile-hero-avatar.avatar-preset--champion { background: linear-gradient(145deg, #ffe08a, #d77600 48%, #1d2140 84%); }

.profile-page .avatar-preset.is-active {
  border-color: rgba(90, 175, 255, 0.92);
  box-shadow: 0 0 0 2px rgba(45, 132, 255, 0.28);
}

.profile-upload-divider {
  position: relative;
  text-align: center;
}

.profile-upload-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.profile-upload-divider span {
  position: relative;
  display: inline-block;
  padding: 0 14px;
  background: #071a38;
  color: rgba(214, 228, 247, 0.55);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-upload-field {
  position: relative;
}

.profile-upload-field input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.profile-upload-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.02);
}

.profile-upload-copy strong,
.profile-upload-copy small {
  display: block;
}

.profile-upload-copy strong {
  color: #f2f7ff;
}

.profile-upload-copy small {
  margin-top: 4px;
  color: rgba(214, 228, 247, 0.58);
}

.profile-upload-button,
.profile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
}

.profile-upload-button {
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #edf4ff;
  white-space: nowrap;
}

.profile-cta {
  width: 100%;
  margin-top: 8px;
  padding: 15px 18px;
  border: 0;
  background: linear-gradient(180deg, #2f8fff 0%, #175ef0 100%);
  color: #ffffff;
  box-shadow: 0 18px 28px rgba(14, 72, 180, 0.28);
}

.profile-card--security {
  display: grid;
  gap: 16px;
}

.profile-security-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 4px;
}

.profile-security-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #f8fbff;
  font-weight: 900;
}

.profile-card--security h3 {
  margin: 4px 0 4px;
  color: #ffffff;
}

.profile-card--security small {
  color: rgba(214, 228, 247, 0.62);
}

.profile-password-field {
  position: relative;
}

.profile-password-field input {
  padding-right: 44px;
}

.profile-password-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(214, 228, 247, 0.52);
  font-size: 0.82rem;
  font-weight: 800;
  pointer-events: none;
}

@media (max-width: 980px) {
  .profile-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .profile-page {
    padding: 18px;
  }

  .profile-hero {
    margin: -20px -20px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-avatar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-upload-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .profile-avatar-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profile-card {
    padding: 16px;
  }
}

/* Topbar refresh */
.dashboard-screen {
  padding: 16px 18px 20px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 40;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 14px 18px;
  background:
    linear-gradient(180deg, rgba(4, 16, 36, 0.98), rgba(6, 20, 44, 0.96)),
    #06152e;
  border: 1px solid rgba(120, 170, 255, 0.12);
  border-radius: 26px;
  box-shadow: 0 18px 36px rgba(2, 8, 18, 0.28);
}

.nav-brand {
  gap: 12px;
}

.nav-brand .eyebrow {
  display: none;
}

.app-title {
  margin: 0;
  color: #f7fbff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.site-nav {
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  overflow: visible;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  background: transparent;
  color: rgba(231, 239, 250, 0.82);
  border: 1px solid transparent;
  border-radius: 14px;
  box-shadow: none;
  font-weight: 700;
}

.nav-link-icon {
  display: none;
}

.nav-link.active {
  background: rgba(255,255,255,0.05);
  border-color: rgba(120, 170, 255, 0.14);
  color: #ffffff;
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: none;
  background: rgba(255,255,255,0.04);
  border-color: rgba(120, 170, 255, 0.1);
  box-shadow: none;
}

.nav-group-toggle::after {
  content: "▾";
  margin-left: 2px;
  color: rgba(172, 202, 248, 0.78);
  font-size: 0.72rem;
}

.nav-dropdown {
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 10px;
  background: rgba(7, 22, 45, 0.98);
  border: 1px solid rgba(120, 170, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 32px rgba(2, 8, 18, 0.26);
}

.nav-sub-link {
  justify-content: flex-start;
  background: rgba(255,255,255,0.03);
  color: rgba(235, 242, 252, 0.86);
  border-radius: 12px;
}

.nav-sub-link.active,
.nav-sub-link:hover,
.nav-sub-link:focus-visible {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.account-icon-button,
.account-notice-dot {
  display: none !important;
}

.account-icon-button,
.account-chip,
.account-logout {
  min-height: 44px;
  border-radius: 14px;
}

.account-icon-button {
  position: relative;
  width: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(120, 170, 255, 0.1);
  color: #eef4ff;
  box-shadow: none;
}

.account-icon-button--badge {
  overflow: visible;
}

.account-notice-dot {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #2f86ff;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  border: 2px solid #08172f;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(120, 170, 255, 0.12);
  color: #ffffff;
  box-shadow: none;
  white-space: nowrap;
}

.account-avatar-badge {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(145deg, #173764, #0a1f40);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.08);
  color: #f8fbff;
  font-size: 0.86rem;
  font-weight: 900;
  overflow: hidden;
  flex: 0 0 30px;
}

.account-avatar-badge.has-image {
  color: transparent;
  text-indent: -9999px;
}

.account-avatar-badge.avatar-badge {
  border-color: rgba(255,255,255,0.16);
}

.account-chip strong {
  color: #f7fbff;
}

.account-chip-caret {
  display: none;
}

.account-logout.ghost {
  background: transparent;
  color: rgba(231, 239, 250, 0.82);
  border-color: rgba(120, 170, 255, 0.12);
}

@media (max-width: 1200px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .nav-brand,
  .site-nav,
  .account-actions {
    justify-self: stretch;
  }

  .site-nav,
  .account-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 860px) {
  .dashboard-screen {
    padding: 12px;
  }

  .topbar {
    position: static;
    gap: 14px;
    border-radius: 24px;
  }

  .site-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .account-actions {
    justify-content: space-between;
  }
}

/* Boards dashboard refresh */
.boards-dashboard {
  display: grid;
  gap: 22px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(65, 144, 255, 0.16), transparent 24%),
    radial-gradient(circle at bottom left, rgba(24, 190, 156, 0.12), transparent 22%),
    linear-gradient(180deg, #071222 0%, #081427 48%, #06111f 100%);
  border: 1px solid rgba(110, 153, 235, 0.14);
  border-radius: 30px;
  box-shadow: 0 28px 48px rgba(3, 10, 22, 0.38);
}

.boards-dashboard-hero,
.boards-dashboard-section,
.boards-dashboard .pool-card,
.boards-dashboard .muted-empty {
  border: 1px solid rgba(130, 177, 255, 0.12);
  box-shadow: 0 20px 34px rgba(2, 9, 20, 0.24);
}

.boards-dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 20px;
  align-items: center;
  min-height: 280px;
  padding: 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.24), transparent 14%),
    radial-gradient(circle at 78% 18%, rgba(61, 150, 255, 0.24), transparent 24%),
    linear-gradient(180deg, rgba(5, 18, 38, 0.62), rgba(5, 18, 38, 0.82)),
    linear-gradient(180deg, #0a1d39 0%, #08152a 54%, #07111c 100%);
  overflow: hidden;
}

.boards-dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 12%, rgba(255,255,255,0.76), transparent 2.6%),
    radial-gradient(circle at 70% 12%, rgba(255,255,255,0.5), transparent 2.1%),
    radial-gradient(circle at 62% 14%, rgba(255,255,255,0.36), transparent 1.8%),
    radial-gradient(circle at 54% 16%, rgba(255,255,255,0.28), transparent 1.6%),
    radial-gradient(circle at 46% 13%, rgba(255,255,255,0.3), transparent 1.8%),
    linear-gradient(180deg, transparent 70%, rgba(27, 91, 67, 0.18) 82%, rgba(8, 22, 20, 0.08) 100%);
}

.boards-dashboard-copy,
.boards-dashboard-art {
  position: relative;
  z-index: 1;
}

.boards-dashboard-kicker {
  margin: 0 0 10px;
  color: #3ee3ff;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boards-dashboard-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.8rem, 3.2vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.boards-dashboard .boards-page-subtitle {
  max-width: 58ch;
  margin: 16px 0 0;
  color: rgba(226, 236, 250, 0.8);
  font-size: 1.05rem;
  line-height: 1.68;
}

.boards-dashboard-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.boards-dashboard-pill {
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(64, 228, 255, 0.22);
  background: rgba(12, 49, 54, 0.42);
  color: #53f0ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boards-dashboard-pill--accent {
  color: #ffd26a;
  border-color: rgba(255, 206, 100, 0.22);
  background: rgba(66, 48, 12, 0.42);
}

.boards-dashboard-art {
  min-height: 210px;
  display: grid;
  grid-template-columns: 1fr 104px;
  gap: 16px;
  align-items: center;
  border-radius: 24px;
  background: radial-gradient(circle at 36% 28%, rgba(55, 164, 255, 0.24), transparent 30%);
}

.boards-art-grid {
  margin-left: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: min(100%, 210px);
  aspect-ratio: 1;
}

.boards-art-grid span {
  border-radius: 8px;
  background: rgba(34, 63, 140, 0.72);
  border: 1px solid rgba(115, 162, 255, 0.12);
  box-shadow: inset 0 0 12px rgba(255,255,255,0.04);
}

.boards-art-grid span.is-lit {
  background: linear-gradient(180deg, #64d9ff 0%, #2c7dff 100%);
  box-shadow: 0 0 16px rgba(74, 194, 255, 0.5);
}

.boards-art-grid span.is-warm {
  background: linear-gradient(180deg, #8e6dff 0%, #6246ff 100%);
  box-shadow: 0 0 16px rgba(147, 108, 255, 0.42);
}

.boards-art-side {
  display: grid;
  gap: 6px;
  padding-right: 12px;
}

.boards-art-side small {
  color: rgba(197, 214, 240, 0.66);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boards-art-side strong {
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
}

.boards-dashboard-section {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(74, 126, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(7, 20, 40, 0.95), rgba(6, 16, 31, 0.98));
}

.boards-dashboard-head h3 {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.boards-dashboard .panel-kicker {
  color: rgba(214, 228, 247, 0.74);
}

.boards-dashboard .pool-gallery {
  grid-template-columns: repeat(auto-fill, minmax(320px, 320px));
  gap: 22px;
  margin-top: 0;
}

.boards-dashboard .pool-card {
  width: auto;
  min-height: 398px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(120, 170, 255, 0.14);
  background:
    radial-gradient(circle at top right, rgba(77, 137, 255, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(9, 22, 43, 0.98), rgba(8, 19, 36, 0.98));
  box-shadow:
    0 24px 44px rgba(2, 9, 20, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.boards-dashboard .pool-card:hover,
.boards-dashboard .pool-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(93, 180, 255, 0.28);
  box-shadow:
    0 30px 52px rgba(2, 9, 20, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.boards-dashboard .pool-card.active {
  border-color: rgba(60, 224, 194, 0.42);
  box-shadow:
    0 30px 52px rgba(2, 9, 20, 0.28),
    inset 0 0 0 1px rgba(60, 224, 194, 0.16);
}

.boards-dashboard .gallery-card {
  gap: 16px;
}

.boards-dashboard .pool-thumb {
  aspect-ratio: 1.22 / 1;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(120, 170, 255, 0.12);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 28%),
    linear-gradient(160deg, rgba(12, 35, 58, 0.98), rgba(18, 74, 110, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 16px 28px rgba(2, 9, 20, 0.18);
}

.boards-dashboard .pool-thumb-topline,
.boards-dashboard .pool-thumb-footer {
  color: rgba(233, 242, 255, 0.82);
}

.boards-dashboard .thumb-grid span,
.boards-dashboard .thumb-grid strong,
.boards-dashboard .thumb-grid small,
.boards-dashboard .thumb-grid i {
  border-color: rgba(255,255,255,0.08);
}

.boards-dashboard .pool-card-copy {
  gap: 10px;
}

.boards-dashboard .pool-card-labels {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.boards-dashboard .pool-card-badge,
.boards-dashboard .pool-card-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boards-dashboard .pool-card-badge {
  color: #53f0ff;
  background: rgba(12, 49, 54, 0.42);
  border: 1px solid rgba(64, 228, 255, 0.18);
}

.boards-dashboard .pool-card-meta-pill {
  color: #ffd26a;
  background: rgba(66, 48, 12, 0.42);
  border: 1px solid rgba(255, 206, 100, 0.18);
}

.boards-dashboard .pool-card-copy strong {
  color: #ffffff;
  font-size: 1.22rem;
  line-height: 1.18;
}

.boards-dashboard .pool-card-matchup {
  margin: 0;
  color: rgba(226, 236, 250, 0.8);
  font-size: 0.96rem;
  font-weight: 700;
}

.boards-dashboard .pool-card-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.boards-dashboard .pool-card-details small {
  color: rgba(197, 214, 240, 0.7);
  font-size: 0.84rem;
  line-height: 1.45;
}

.boards-dashboard .muted-empty {
  padding: 34px 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(77, 137, 255, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(9, 22, 43, 0.98), rgba(8, 19, 36, 0.98));
  color: rgba(226, 236, 250, 0.78);
  text-align: center;
}

@media (max-width: 1120px) {
  .boards-dashboard-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .boards-dashboard .pool-gallery {
    grid-template-columns: 1fr;
  }

  .boards-dashboard .pool-card {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .boards-dashboard {
    padding: 14px;
    gap: 16px;
  }

  .boards-dashboard-hero,
  .boards-dashboard-section {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .boards-dashboard .pool-card {
    padding: 15px;
    min-height: 340px;
    border-radius: 24px;
  }

  .boards-dashboard .pool-card-details {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Guide dashboard rebuild */
.guide-dashboard {
  display: grid;
  gap: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(65, 144, 255, 0.16), transparent 24%),
    radial-gradient(circle at bottom left, rgba(24, 190, 156, 0.12), transparent 22%),
    linear-gradient(180deg, #071222 0%, #081427 48%, #06111f 100%);
  border: 1px solid rgba(110, 153, 235, 0.14);
  border-radius: 30px;
  box-shadow: 0 28px 48px rgba(3, 10, 22, 0.38);
}

.guide-dashboard-head,
.guide-dashboard-hero,
.guide-dashboard-card,
.guide-dashboard-tips,
.guide-dashboard-cta {
  position: relative;
  z-index: 1;
}

.guide-dashboard-head {
  display: grid;
  gap: 10px;
  padding: 8px 10px 0;
}

.guide-dashboard-kicker {
  margin: 0;
  color: #3ee3ff;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-dashboard-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.9rem, 3.8vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.guide-dashboard-subtitle {
  margin: 0;
  color: rgba(226, 236, 250, 0.82);
  font-size: 1.08rem;
  line-height: 1.62;
}

.guide-dashboard-hero,
.guide-dashboard-card,
.guide-dashboard-tips,
.guide-dashboard-cta {
  border: 1px solid rgba(130, 177, 255, 0.12);
  box-shadow: 0 20px 34px rgba(2, 9, 20, 0.24);
}

.guide-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.72fr);
  gap: 24px;
  align-items: stretch;
  min-height: 240px;
  padding: 22px 26px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 14%),
    linear-gradient(180deg, rgba(5, 18, 38, 0.66), rgba(5, 18, 38, 0.86)),
    linear-gradient(180deg, #0a1d39 0%, #08152a 54%, #07111c 100%);
  overflow: hidden;
}

.guide-dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 14%, rgba(255,255,255,0.74), transparent 2.6%),
    radial-gradient(circle at 83% 12%, rgba(255,255,255,0.5), transparent 2.1%),
    radial-gradient(circle at 14% 14%, rgba(255,255,255,0.56), transparent 2.1%),
    radial-gradient(circle at 8% 16%, rgba(255,255,255,0.34), transparent 1.8%),
    linear-gradient(180deg, transparent 70%, rgba(27, 91, 67, 0.18) 82%, rgba(8, 22, 20, 0.08) 100%);
}

.guide-dashboard-hero-copy,
.guide-dashboard-hero-art {
  position: relative;
  z-index: 1;
}

.guide-dashboard-pill {
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(64, 228, 255, 0.22);
  background: rgba(12, 49, 54, 0.42);
  color: #53f0ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-dashboard-lead {
  margin: 18px 0 0;
  max-width: 74ch;
  color: rgba(235, 243, 252, 0.9);
  font-size: 1.05rem;
  line-height: 1.72;
}

.guide-dashboard-lead + .guide-dashboard-lead {
  margin-top: 14px;
}

.guide-dashboard-hero-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: end;
  gap: 12px;
}

.guide-board-visual {
  position: relative;
  width: min(100%, 390px);
  justify-self: end;
  min-height: 190px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(78, 226, 255, 0.42);
  background: linear-gradient(180deg, rgba(6, 16, 32, 0.48), rgba(6, 16, 32, 0.08));
  transform: perspective(900px) rotateY(-14deg) rotateX(3deg);
  box-shadow: 0 0 32px rgba(56, 225, 255, 0.12);
}

.guide-board-top-label,
.guide-board-left-label {
  position: absolute;
  color: rgba(244, 248, 255, 0.92);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-board-top-label {
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.guide-board-left-label {
  left: -8px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
}

.guide-board-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  width: 100%;
  aspect-ratio: 1;
}

.guide-board-grid::before,
.guide-board-grid::after {
  content: "";
  position: absolute;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.48em;
  color: rgba(244, 248, 255, 0.88);
  white-space: nowrap;
}

.guide-board-grid::before {
  top: -22px;
  left: 3px;
}

.guide-board-grid::after {
  content: "";
  left: -22px;
  top: 2px;
  white-space: pre;
  line-height: 2.42;
  letter-spacing: normal;
}

.guide-board-grid span {
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.02);
  box-shadow: inset 0 0 8px rgba(255,255,255,0.03);
}

.guide-board-grid span.is-hot {
  box-shadow:
    0 0 18px rgba(62, 227, 255, 0.58),
    inset 0 0 22px rgba(62, 227, 255, 0.44);
  border-color: rgba(62, 227, 255, 0.9);
  background: rgba(62, 227, 255, 0.16);
}

.guide-football-visual {
  position: relative;
  align-self: center;
  width: 128px;
  aspect-ratio: 1 / 0.72;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.14), transparent 18%),
    linear-gradient(180deg, #2d343f, #11161e);
  transform: rotate(-12deg);
  box-shadow: 0 24px 34px rgba(2, 9, 20, 0.28);
}

.guide-football-visual::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 8%;
  bottom: 8%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}

.guide-football-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 14%;
  bottom: 14%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.8);
}

.guide-football-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(62, 227, 255, 0.92);
  font-size: 0;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 0 18px rgba(62, 227, 255, 0.38);
}

.guide-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.guide-dashboard-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-dashboard-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(74, 126, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(7, 20, 40, 0.95), rgba(6, 16, 31, 0.98));
}

.guide-dashboard-card-icon {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 1px solid rgba(130, 177, 255, 0.24);
  background: radial-gradient(circle at 35% 32%, rgba(255,255,255,0.1), transparent 28%), rgba(7, 19, 38, 0.76);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.guide-dashboard-card-icon::before,
.guide-dashboard-card-icon::after {
  content: "";
  position: absolute;
}

.guide-dashboard-card-icon--helmet::before {
  left: 18px;
  top: 22px;
  width: 42px;
  height: 30px;
  border-radius: 50% 50% 38% 42%;
  border: 2px solid rgba(62, 227, 255, 0.92);
}

.guide-dashboard-card-icon--helmet::after {
  left: 48px;
  top: 42px;
  width: 18px;
  height: 16px;
  border-right: 3px solid rgba(62, 227, 255, 0.88);
  border-bottom: 3px solid rgba(62, 227, 255, 0.88);
  transform: skew(-18deg);
}

.guide-dashboard-card-icon--players::before {
  left: 24px;
  top: 26px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(62, 227, 255, 0.9);
  border-radius: 999px;
  box-shadow: 18px 0 0 -2px rgba(7, 19, 38, 0), 18px 0 0 0 rgba(62, 227, 255, 0.9);
}

.guide-dashboard-card-icon--players::after {
  left: 18px;
  top: 48px;
  width: 46px;
  height: 18px;
  border: 2px solid rgba(62, 227, 255, 0.9);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border-bottom: 0;
}

.guide-dashboard-card-icon--clipboard::before {
  left: 26px;
  top: 22px;
  width: 40px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid rgba(62, 227, 255, 0.9);
}

.guide-dashboard-card-icon--clipboard::after {
  left: 36px;
  top: 16px;
  width: 20px;
  height: 12px;
  border-radius: 10px;
  border: 2px solid rgba(62, 227, 255, 0.9);
}

.guide-dashboard-card-icon--tracker::before {
  left: 22px;
  top: 24px;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(62, 227, 255, 0.9);
  background:
    linear-gradient(rgba(62, 227, 255, 0.52), rgba(62, 227, 255, 0.52)) 33% 0 / 2px 100% no-repeat,
    linear-gradient(rgba(62, 227, 255, 0.52), rgba(62, 227, 255, 0.52)) 66% 0 / 2px 100% no-repeat,
    linear-gradient(rgba(62, 227, 255, 0.52), rgba(62, 227, 255, 0.52)) 0 33% / 100% 2px no-repeat,
    linear-gradient(rgba(62, 227, 255, 0.52), rgba(62, 227, 255, 0.52)) 0 66% / 100% 2px no-repeat;
}

.guide-dashboard-card-icon--tracker::after {
  right: 18px;
  bottom: 18px;
  width: 20px;
  height: 2px;
  background: rgba(62, 227, 255, 0.9);
  transform: rotate(-42deg);
  box-shadow: -4px -6px 0 0 rgba(62, 227, 255, 0.9);
}

.guide-dashboard-card-icon--mail::before {
  left: 22px;
  top: 30px;
  width: 48px;
  height: 32px;
  border: 2px solid rgba(62, 227, 255, 0.9);
  border-radius: 6px;
}

.guide-dashboard-card-icon--mail::after {
  left: 24px;
  top: 32px;
  width: 44px;
  height: 20px;
  background:
    linear-gradient(140deg, transparent 47%, rgba(62, 227, 255, 0.9) 48%, rgba(62, 227, 255, 0.9) 52%, transparent 53%),
    linear-gradient(220deg, transparent 47%, rgba(62, 227, 255, 0.9) 48%, rgba(62, 227, 255, 0.9) 52%, transparent 53%);
}

.guide-dashboard-card-icon--chat::before {
  left: 20px;
  top: 28px;
  width: 30px;
  height: 24px;
  border: 2px solid rgba(62, 227, 255, 0.9);
  border-radius: 10px;
}

.guide-dashboard-card-icon--chat::after {
  left: 42px;
  top: 38px;
  width: 24px;
  height: 20px;
  border: 2px solid rgba(62, 227, 255, 0.6);
  border-radius: 10px;
}

.guide-dashboard-card-copy h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1.3;
}

.guide-step-badge {
  min-width: 28px;
  height: 28px;
  margin-right: 10px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(62, 227, 255, 0.28);
  background: rgba(12, 49, 54, 0.42);
  color: #53f0ff;
  font-size: 0.82rem;
  font-weight: 900;
}

.guide-dashboard-card-copy p {
  margin: 10px 0 0;
  color: rgba(226, 236, 250, 0.8);
  line-height: 1.62;
}

.guide-dashboard-sidebar {
  display: grid;
}

.guide-dashboard-tips {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(74, 126, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(7, 20, 40, 0.95), rgba(6, 16, 31, 0.98));
}

.guide-dashboard-tips-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(130, 177, 255, 0.12);
}

.guide-dashboard-star {
  width: 20px;
  height: 20px;
  clip-path: polygon(50% 0, 61% 36%, 100% 36%, 68% 58%, 79% 100%, 50% 74%, 21% 100%, 32% 58%, 0 36%, 39% 36%);
  background: linear-gradient(180deg, #62f0ff 0%, #18a7d2 100%);
  box-shadow: 0 0 14px rgba(62, 227, 255, 0.34);
}

.guide-dashboard-tips-head h3 {
  margin: 0;
  color: #53f0ff;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.guide-dashboard-tip-list {
  display: grid;
}

.guide-dashboard-tip {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(130, 177, 255, 0.12);
}

.guide-dashboard-tip:first-child {
  border-top: 0;
  padding-top: 0;
}

.guide-dashboard-tip-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(62, 227, 255, 0.24);
  background: rgba(8, 21, 40, 0.72);
}

.guide-dashboard-tip-icon::before,
.guide-dashboard-tip-icon::after {
  content: "";
  position: absolute;
}

.guide-dashboard-tip-icon--calendar::before {
  left: 10px;
  top: 12px;
  width: 22px;
  height: 18px;
  border: 2px solid rgba(62, 227, 255, 0.9);
  border-radius: 4px;
}

.guide-dashboard-tip-icon--calendar::after {
  left: 10px;
  top: 18px;
  width: 22px;
  height: 2px;
  background: rgba(62, 227, 255, 0.9);
}

.guide-dashboard-tip-icon--lock::before {
  left: 11px;
  top: 18px;
  width: 20px;
  height: 14px;
  border: 2px solid rgba(62, 227, 255, 0.9);
  border-radius: 4px;
}

.guide-dashboard-tip-icon--lock::after {
  left: 14px;
  top: 9px;
  width: 14px;
  height: 12px;
  border: 2px solid rgba(62, 227, 255, 0.9);
  border-bottom: 0;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.guide-dashboard-tip-icon--bell::before {
  left: 13px;
  top: 10px;
  width: 16px;
  height: 18px;
  border: 2px solid rgba(62, 227, 255, 0.9);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.guide-dashboard-tip-icon--bell::after {
  left: 18px;
  bottom: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(62, 227, 255, 0.9);
}

.guide-dashboard-tip-icon--shield::before {
  left: 12px;
  top: 9px;
  width: 18px;
  height: 22px;
  border: 2px solid rgba(62, 227, 255, 0.9);
  border-radius: 10px 10px 12px 12px;
  transform: rotate(0deg);
}

.guide-dashboard-tip strong {
  display: block;
  color: #ffffff;
  font-size: 1.05rem;
}

.guide-dashboard-tip p {
  margin: 6px 0 0;
  color: rgba(226, 236, 250, 0.8);
  line-height: 1.58;
}

.guide-dashboard-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at right center, rgba(255,255,255,0.12), transparent 18%),
    linear-gradient(180deg, rgba(7, 20, 40, 0.95), rgba(6, 16, 31, 0.98));
}

.guide-dashboard-cta-copy {
  display: flex;
  align-items: center;
  gap: 16px;
}

.guide-dashboard-cta-trophy {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 20px;
  border: 1px solid rgba(62, 227, 255, 0.16);
  background: rgba(8, 21, 40, 0.72);
}

.guide-dashboard-cta-trophy::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 18px;
  width: 30px;
  height: 22px;
  border: 3px solid rgba(62, 227, 255, 0.92);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.guide-dashboard-cta-trophy::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 42px;
  width: 10px;
  height: 18px;
  background: rgba(62, 227, 255, 0.92);
  box-shadow: -10px 18px 0 0 rgba(62, 227, 255, 0.92), 10px 18px 0 0 rgba(62, 227, 255, 0.92);
}

.guide-dashboard-cta-copy h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.9rem, 2.2vw, 3rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.guide-dashboard-cta-copy p {
  margin: 8px 0 0;
  color: rgba(226, 236, 250, 0.8);
  line-height: 1.6;
}

.guide-dashboard-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.guide-dashboard-button {
  min-height: 60px;
  padding: 0 26px;
  border-radius: 18px;
  border: 1px solid rgba(62, 227, 255, 0.18);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.guide-dashboard-button--primary {
  background: linear-gradient(180deg, #2fe0da 0%, #18b5c9 100%);
  color: #04162d;
  box-shadow: 0 18px 30px rgba(24, 181, 201, 0.22);
}

.guide-dashboard-button--secondary {
  background: rgba(8, 21, 40, 0.72);
  color: #53f0ff;
}

@media (max-width: 1180px) {
  .guide-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .guide-dashboard-sidebar {
    order: 2;
  }
}

@media (max-width: 980px) {
  .guide-dashboard-hero {
    grid-template-columns: 1fr;
  }

  .guide-dashboard-main {
    grid-template-columns: 1fr;
  }

  .guide-dashboard-hero-art {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 760px) {
  .guide-dashboard {
    padding: 14px;
  }

  .guide-dashboard-hero,
  .guide-dashboard-card,
  .guide-dashboard-tips,
  .guide-dashboard-cta {
    padding: 18px;
  }

  .guide-dashboard-card {
    grid-template-columns: 1fr;
  }

  .guide-dashboard-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .guide-dashboard-cta-copy {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Scoreboard dashboard rebuild */
.scores-dashboard {
  display: grid;
  gap: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(65, 144, 255, 0.16), transparent 24%),
    radial-gradient(circle at bottom left, rgba(24, 190, 156, 0.12), transparent 22%),
    linear-gradient(180deg, #071222 0%, #081427 48%, #06111f 100%);
  border: 1px solid rgba(110, 153, 235, 0.14);
  border-radius: 30px;
  box-shadow: 0 28px 48px rgba(3, 10, 22, 0.38);
}

.scores-dashboard-head,
.scores-dashboard-filterbar,
.scores-dashboard-summary,
.scores-sidebar-card,
.score-card {
  position: relative;
  z-index: 1;
}

.scores-dashboard-kicker {
  margin: 0;
  color: #3ee3ff;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scores-dashboard-head h2 {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: clamp(2.9rem, 3.8vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.scores-dashboard-subtitle {
  margin: 10px 0 0;
  color: rgba(226, 236, 250, 0.8);
  font-size: 1.08rem;
  line-height: 1.62;
}

.scores-dashboard-filterbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.scores-dashboard-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.scores-dashboard-field {
  min-width: 180px;
}

.scores-dashboard .field span {
  color: rgba(214, 228, 247, 0.74);
}

.scores-dashboard .field input,
.scores-dashboard .field select {
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.scores-dashboard-customize,
.scores-sidebar-link,
.scores-refresh-button {
  min-height: 54px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid rgba(130, 177, 255, 0.14);
  background: rgba(8, 21, 40, 0.72);
  color: #eef4ff;
  font-weight: 800;
}

.scores-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.scores-dashboard-main,
.scores-dashboard-sidebar {
  display: grid;
  gap: 18px;
}

.scores-dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-radius: 26px;
  border: 1px solid rgba(130, 177, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(74, 126, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(7, 20, 40, 0.95), rgba(6, 16, 31, 0.98));
  box-shadow: 0 20px 34px rgba(2, 9, 20, 0.24);
  overflow: hidden;
}

.scores-summary-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
}

.scores-summary-card + .scores-summary-card {
  border-left: 1px solid rgba(130, 177, 255, 0.12);
}

.scores-summary-icon {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(130, 177, 255, 0.18);
  background: rgba(8, 21, 40, 0.72);
}

.scores-summary-icon::before,
.scores-summary-icon::after {
  content: "";
  position: absolute;
}

.scores-summary-icon--calendar::before {
  left: 11px;
  top: 12px;
  width: 22px;
  height: 18px;
  border: 2px solid rgba(132, 168, 255, 0.9);
  border-radius: 4px;
}

.scores-summary-icon--calendar::after {
  left: 11px;
  top: 18px;
  width: 22px;
  height: 2px;
  background: rgba(132, 168, 255, 0.9);
}

.scores-summary-icon--live::before {
  left: 14px;
  top: 14px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(76, 255, 154, 0.92);
}

.scores-summary-icon--live::after {
  inset: 8px;
  border-radius: 999px;
  border: 2px solid rgba(76, 255, 154, 0.18);
  box-shadow: 0 0 0 8px rgba(76, 255, 154, 0.08);
}

.scores-summary-icon--final::before {
  left: 13px;
  top: 11px;
  width: 20px;
  height: 16px;
  border: 2px solid rgba(209, 114, 255, 0.92);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.scores-summary-icon--final::after {
  left: 19px;
  top: 28px;
  width: 8px;
  height: 10px;
  background: rgba(209, 114, 255, 0.92);
  box-shadow: -7px 10px 0 0 rgba(209, 114, 255, 0.92), 7px 10px 0 0 rgba(209, 114, 255, 0.92);
}

.scores-summary-card strong {
  display: block;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
}

.scores-summary-card small {
  display: block;
  margin-top: 6px;
  color: rgba(211, 225, 244, 0.7);
  font-size: 0.92rem;
}

.scores-sidebar-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(130, 177, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(74, 126, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(7, 20, 40, 0.95), rgba(6, 16, 31, 0.98));
  box-shadow: 0 20px 34px rgba(2, 9, 20, 0.24);
}

.scores-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scores-sidebar-head--stack {
  align-items: start;
  flex-direction: column;
}

.scores-sidebar-head h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.scores-sidebar-head small {
  color: rgba(211, 225, 244, 0.68);
}

.scores-sidebar-arrow {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(130, 177, 255, 0.12);
  background: rgba(8, 21, 40, 0.72);
  color: #f2f6ff;
}

.scores-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.scores-calendar-grid > span {
  text-align: center;
  color: rgba(211, 225, 244, 0.58);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.scores-calendar-day {
  min-height: 34px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.03);
  color: rgba(241, 247, 255, 0.88);
  font-weight: 700;
}

.scores-calendar-day.is-muted {
  color: rgba(211, 225, 244, 0.34);
}

.scores-calendar-day.is-selected {
  background: linear-gradient(180deg, #2e8fff 0%, #1863f2 100%);
  color: #ffffff;
}

.scores-leaders-list {
  display: grid;
  gap: 12px;
}

.scores-leader-item {
  display: grid;
  grid-template-columns: 28px 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(130, 177, 255, 0.1);
  background: rgba(8, 21, 40, 0.72);
}

.scores-leader-rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: rgba(232, 240, 250, 0.84);
  font-weight: 800;
}

.scores-leader-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--leader-color) 88%, #ffffff 12%), color-mix(in srgb, var(--leader-color) 72%, #06152e 28%));
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}

.scores-leader-copy strong,
.scores-live-row strong {
  color: #ffffff;
}

.scores-leader-copy small,
.scores-leader-value span {
  color: rgba(211, 225, 244, 0.64);
}

.scores-leader-value {
  text-align: right;
}

.scores-leader-value strong {
  display: block;
  color: #eef5ff;
}

.scores-live-list {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.scores-live-list.is-empty {
  display: block;
}

.scores-live-empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(211, 225, 244, 0.68);
  line-height: 1.6;
}

.scores-live-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(130, 177, 255, 0.1);
  background: rgba(8, 21, 40, 0.72);
}

.scores-live-meta,
.score-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scores-live-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(241, 247, 255, 0.88);
}

.scoreboard-grid-page {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.score-card {
  display: grid;
  gap: 14px;
  min-height: 174px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 22%),
    linear-gradient(135deg, var(--away-color, #173764) 0%, color-mix(in srgb, var(--home-color, #0a1f40) 76%, #071222 24%) 100%);
  color: #f4f7fb;
  box-shadow: 0 20px 34px rgba(7, 15, 29, 0.18);
}

.score-card--live {
  box-shadow: 0 0 0 1px rgba(76, 255, 154, 0.22), 0 20px 34px rgba(7, 15, 29, 0.22);
}

.score-card-headline {
  display: grid;
  gap: 8px;
}

.score-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-status-pill--live {
  color: #ffebe7;
  background: linear-gradient(180deg, #ff5d4d 0%, #c92626 100%);
}

.score-status-pill--final {
  color: #edf4ff;
  background: linear-gradient(180deg, #285ecf 0%, #173b8c 100%);
}

.score-status-pill--scheduled {
  color: #edf4ff;
  background: rgba(255,255,255,0.12);
}

.score-card-head small,
.score-card small {
  color: rgba(231, 239, 250, 0.74);
}

.score-card-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 4px 0;
}

.score-card-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.score-card-team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.score-card-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.9);
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}

.score-card-logo.is-fallback {
  display: grid;
  place-items: center;
  color: #0d2444;
  font-size: 0.72rem;
  font-weight: 900;
}

.score-card-row strong {
  min-width: 34px;
  text-align: right;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

@media (max-width: 1260px) {
  .scoreboard-grid-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .scores-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .scores-dashboard-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .scores-dashboard {
    padding: 14px;
  }

  .scores-dashboard-filterbar,
  .scores-dashboard-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .scores-dashboard-summary {
    grid-template-columns: 1fr;
  }

  .scores-summary-card + .scores-summary-card {
    border-left: 0;
    border-top: 1px solid rgba(130, 177, 255, 0.12);
  }

  .scores-dashboard-sidebar,
  .scoreboard-grid-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .score-card-head,
  .score-card-row,
  .scores-sidebar-head {
    align-items: flex-start;
  }

  .score-card-row {
    gap: 12px;
  }
}

/* Landing page rebuild */
.auth-screen {
  position: relative;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 430px);
  align-items: start;
  gap: 28px;
  padding: 32px;
  background:
    radial-gradient(circle at top right, rgba(66, 144, 255, 0.16), transparent 26%),
    radial-gradient(circle at bottom center, rgba(24, 190, 156, 0.12), transparent 22%),
    linear-gradient(180deg, #05101f 0%, #071426 52%, #040c16 100%);
  border: 1px solid rgba(110, 153, 235, 0.14);
  border-radius: 36px;
  box-shadow: 0 34px 90px rgba(2, 9, 20, 0.42);
  overflow: hidden;
}

.auth-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 18%, rgba(255,255,255,0.74), transparent 3%),
    radial-gradient(circle at 78% 20%, rgba(255,255,255,0.46), transparent 2.4%),
    radial-gradient(circle at 10% 18%, rgba(255,255,255,0.5), transparent 2.2%),
    radial-gradient(circle at 6% 20%, rgba(255,255,255,0.28), transparent 1.8%),
    linear-gradient(180deg, transparent 74%, rgba(23, 96, 74, 0.18) 84%, rgba(4, 12, 22, 0.08) 100%);
}

.landing-hero,
.landing-auth-panel {
  position: relative;
  z-index: 1;
}

.landing-hero {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: clamp(620px, 74vh, 920px);
  padding: 22px 8px 8px;
}

.landing-brand-lockup {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.shield-mark {
  width: 124px;
  height: 136px;
  position: relative;
  flex: 0 0 auto;
  background: linear-gradient(180deg, #f7fbff, #9cc0ff);
  clip-path: polygon(50% 0, 94% 18%, 86% 79%, 50% 100%, 14% 79%, 6% 18%);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.24));
}

.shield-mark-inner {
  position: absolute;
  inset: 8px;
  background: linear-gradient(180deg, #0d1d39, #081327 72%, #0a2141);
  clip-path: inherit;
}

.shield-mark-inner::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 4px solid rgba(255,255,255,0.96);
  clip-path: polygon(50% 0, 94% 18%, 86% 79%, 50% 100%, 14% 79%, 6% 18%);
}

.shield-mark-inner::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: 44px;
  height: 26px;
  transform: translate(-50%, -50%) rotate(-24deg);
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.94);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08);
}

.shield-mark span {
  position: absolute;
  inset: 0;
}

.shield-mark span::before {
  content: "★ ★ ★";
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.92);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
}

.landing-brand-overline {
  margin: 8px 0 14px;
  color: #53b9ff;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.landing-hero h1 {
  margin: 0;
  color: #ffffff;
  font-family: "Impact", "Aptos Display", "Segoe UI Black", sans-serif;
  font-size: clamp(4rem, 6vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.landing-copy {
  max-width: 760px;
  margin: 4px 0 0;
  color: rgba(229, 237, 248, 0.88);
  font-size: 1.1rem;
  line-height: 1.62;
}

.landing-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.landing-feature-pills span {
  min-width: 260px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 14px;
  row-gap: 4px;
  align-items: center;
  border-radius: 24px;
  border: 1px solid rgba(86, 151, 255, 0.34);
  background: rgba(8, 21, 40, 0.74);
  box-shadow: 0 0 0 1px rgba(33, 115, 255, 0.12), inset 0 1px 0 rgba(255,255,255,0.05);
}

.landing-feature-pills span i,
.landing-value-card i {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(62, 227, 255, 0.28);
  background: rgba(12, 49, 54, 0.42);
  box-shadow: 0 0 18px rgba(62, 227, 255, 0.16);
}

.landing-feature-pills span i::before,
.landing-value-card i::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 999px;
  border: 2px solid rgba(62, 227, 255, 0.92);
}

.landing-feature-pills span strong,
.landing-value-card strong {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.landing-feature-pills span small,
.landing-value-card p,
.landing-footer-meta small,
.landing-auth-copy p,
.landing-auth-note {
  color: rgba(211, 225, 244, 0.74);
}

.landing-feature-pills span small {
  grid-column: 2;
  font-size: 0.95rem;
}

.landing-showcase {
  position: relative;
  min-height: 360px;
  margin-top: 8px;
}

.landing-showcase::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 92px;
  background:
    linear-gradient(180deg, transparent 0 50%, rgba(255,255,255,0.18) 50% 52%, transparent 52%),
    linear-gradient(90deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 22%);
  border-radius: 999px;
  opacity: 0.24;
  transform: perspective(1100px) rotateX(72deg);
  transform-origin: center bottom;
}

.landing-board-visual {
  position: absolute;
  left: 0;
  bottom: 24px;
  width: 560px;
  min-height: 270px;
  padding: 20px 18px 18px 58px;
  border-radius: 26px;
  border: 1px solid rgba(60, 149, 255, 0.58);
  background: linear-gradient(180deg, rgba(7, 18, 36, 0.86), rgba(7, 18, 36, 0.62));
  box-shadow: 0 0 0 1px rgba(39, 126, 255, 0.18), 0 0 38px rgba(39, 126, 255, 0.18);
  transform: perspective(900px) rotateY(12deg) rotateX(3deg);
}

.landing-board-title,
.landing-board-side {
  position: absolute;
  color: #53b9ff;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-board-title {
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
}

.landing-board-side {
  left: -18px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
}

.landing-board-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  aspect-ratio: 1.72;
}

.landing-board-grid::before {
  content: "";
  position: absolute;
  left: 96px;
  top: 18px;
  color: rgba(242, 247, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.43em;
  white-space: nowrap;
}

.landing-board-grid span {
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 2px;
  background: rgba(255,255,255,0.02);
  box-shadow: inset 0 0 8px rgba(255,255,255,0.03);
}

.landing-board-grid span.is-hot {
  box-shadow:
    0 0 18px rgba(62, 227, 255, 0.58),
    inset 0 0 18px rgba(62, 227, 255, 0.38);
  border-color: rgba(62, 227, 255, 0.9);
  background: rgba(62, 227, 255, 0.12);
}

.landing-score-panel {
  position: absolute;
  right: 210px;
  top: 8px;
  width: 270px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(94, 155, 255, 0.3);
  background: linear-gradient(180deg, rgba(7, 18, 36, 0.88), rgba(7, 18, 36, 0.68));
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

.landing-score-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(229, 237, 248, 0.82);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-score-panel-head span {
  color: #3ee3ff;
}

.landing-score-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.landing-score-row div {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.landing-score-row strong {
  color: #ffffff;
  font-size: 3.2rem;
  line-height: 1;
}

.landing-score-row small,
.landing-score-footer {
  color: #53b9ff;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-score-row span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.7);
  opacity: 0.7;
}

.landing-score-footer {
  margin-top: 18px;
  text-align: center;
}

.landing-football {
  position: absolute;
  right: 88px;
  bottom: 12px;
  width: 280px;
  aspect-ratio: 1 / 0.72;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 32%, rgba(255,255,255,0.16), transparent 18%),
    linear-gradient(180deg, #5d3315, #28150b);
  transform: rotate(-16deg);
  box-shadow: 0 28px 44px rgba(2, 9, 20, 0.34), 0 0 26px rgba(39, 126, 255, 0.24);
}

.landing-football::before,
.landing-football::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.88);
}

.landing-football::before {
  left: 50%;
  top: 12%;
  bottom: 12%;
  width: 3px;
  transform: translateX(-50%);
}

.landing-football::after {
  left: 38%;
  top: 44%;
  width: 24%;
  height: 3px;
  box-shadow: 0 -8px 0 rgba(255,255,255,0.88), 0 8px 0 rgba(255,255,255,0.88);
}

.landing-value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.landing-value-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(130, 177, 255, 0.14);
  background: rgba(8, 21, 40, 0.72);
  box-shadow: 0 18px 28px rgba(2, 9, 20, 0.16);
}

.landing-value-card p {
  margin: 6px 0 0;
  line-height: 1.58;
}

.landing-footer-bar {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding-top: 8px;
}

.landing-footer-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5d83bf;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-footer-title span {
  width: 16px;
  height: 16px;
  clip-path: polygon(50% 0, 62% 36%, 100% 36%, 68% 58%, 80% 100%, 50% 74%, 20% 100%, 32% 58%, 0 36%, 38% 36%);
  background: linear-gradient(180deg, #5d83bf, #2e8fff);
}

.landing-footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.site-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.site-legal-links button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(54, 91, 145, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: #21416f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(12, 29, 54, 0.08);
}

.site-legal-links button:hover,
.site-legal-links button:focus-visible {
  color: #ffffff;
  background: #2e8fff;
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

.site-legal-links--landing {
  padding-top: 2px;
}

.auth-legal-links {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(130, 177, 255, 0.16);
}

.field-hint-inline {
  color: rgba(211, 225, 244, 0.62);
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.profile-alert-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(130, 177, 255, 0.16);
  border-radius: 16px;
  background: rgba(8, 21, 40, 0.42);
}

.profile-alert-panel small {
  display: block;
  margin-top: 4px;
  color: rgba(211, 225, 244, 0.66);
  line-height: 1.45;
}

.profile-alert-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(211, 225, 244, 0.52);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-alert-options input {
  accent-color: #42beff;
  opacity: 0.55;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 4px;
  color: rgba(211, 225, 244, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.app-footer > span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 8, 18, 0.74);
  backdrop-filter: blur(10px);
}

.legal-modal {
  width: min(100%, 720px);
  max-height: min(760px, 90vh);
  overflow: auto;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(94, 155, 255, 0.32);
  background:
    radial-gradient(circle at top right, rgba(62, 227, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #0b1d36, #061326);
  color: #eaf3ff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.legal-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(130, 177, 255, 0.16);
}

.legal-modal-head h2 {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: 0;
}

.legal-modal-close {
  min-width: 82px;
  color: #d3e1f4;
  border-color: rgba(130, 177, 255, 0.28);
}

.legal-modal-body {
  padding-top: 18px;
  color: rgba(234, 243, 255, 0.84);
  font-size: 1rem;
  line-height: 1.68;
}

.legal-modal-body p {
  margin: 0 0 16px;
}

.legal-modal-body ul {
  margin: 0;
  padding-left: 20px;
}

.legal-modal-body li + li {
  margin-top: 10px;
}

@media (max-width: 640px) {
  .app-footer {
    flex-direction: column;
    justify-content: center;
    padding-inline: 14px;
    text-align: center;
  }

  .legal-overlay {
    padding: 14px;
  }

  .legal-modal {
    padding: 20px;
    border-radius: 18px;
  }

  .legal-modal-head {
    align-items: stretch;
    flex-direction: column;
  }

  .legal-modal-close {
    width: 100%;
  }
}

.landing-auth-panel {
  align-self: start;
  padding: 28px 28px 24px;
  border-radius: 30px;
  border: 1px solid rgba(94, 155, 255, 0.32);
  background: linear-gradient(180deg, rgba(8, 21, 40, 0.92), rgba(6, 17, 32, 0.94));
  box-shadow: 0 24px 42px rgba(2, 9, 20, 0.28), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}

.landing-auth-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(62, 227, 255, 0.3), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 16%);
  opacity: 0.9;
}

.landing-auth-panel > * {
  position: relative;
  z-index: 1;
}

.landing-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 26px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(130, 177, 255, 0.16);
}

.landing-auth-tab {
  min-height: 44px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: rgba(211, 225, 244, 0.6);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-auth-tab.is-active {
  color: #53b9ff;
  border-bottom-color: #2e8fff;
}

.landing-auth-form {
  gap: 16px;
}

.landing-auth-copy h2 {
  color: #ffffff;
  font-size: 2.1rem;
  letter-spacing: -0.03em;
}

.landing-auth-copy p {
  margin: 10px 0 6px;
  line-height: 1.6;
}

.landing-auth-form .field-row {
  gap: 14px;
}

.landing-auth-panel .field span {
  color: rgba(226, 236, 250, 0.86);
}

.landing-auth-panel .field input {
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.landing-auth-panel .field input::placeholder {
  color: rgba(214, 228, 247, 0.38);
}

.auth-password-field {
  position: relative;
}

.auth-password-field input {
  width: 100%;
  padding-right: 76px;
}

.auth-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  min-width: 54px;
  min-height: 34px;
  transform: translateY(-50%);
  border: 1px solid rgba(83, 185, 255, 0.34);
  border-radius: 999px;
  background: rgba(83, 185, 255, 0.12);
  color: #9bddff;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  transform: translateY(-50%);
  border-color: rgba(83, 185, 255, 0.72);
  background: rgba(83, 185, 255, 0.2);
  color: #ffffff;
}

.landing-auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.landing-auth-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(226, 236, 250, 0.82);
  font-weight: 700;
}

.landing-auth-check input {
  accent-color: #2e8fff;
}

.landing-auth-panel .link-button {
  color: #53b9ff;
}

.landing-auth-form .auth-switch {
  margin: 2px 0 0;
  color: rgba(211, 225, 244, 0.74);
  text-align: center;
}

.landing-auth-submit {
  min-height: 58px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(180deg, #2e8fff 0%, #1863f2 100%);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 18px 32px rgba(20, 98, 236, 0.28);
}

.auth-captcha {
  min-height: 65px;
  display: flex;
  justify-content: center;
}

.landing-auth-divider {
  position: relative;
  text-align: center;
  color: rgba(211, 225, 244, 0.56);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(130, 177, 255, 0.14);
}

.landing-auth-divider span {
  position: relative;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(8, 21, 40, 0.92), rgba(6, 17, 32, 0.94));
}

.landing-auth-secondary {
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(130, 177, 255, 0.22);
  background: rgba(8, 21, 40, 0.64);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-auth-note {
  margin: 2px 0 0;
  text-align: center;
  font-size: 0.92rem;
}

.auth-message {
  min-height: 24px;
  margin: 16px 0 0;
  color: #ff8b8b;
  font-weight: 700;
}

.auth-message.is-success {
  display: grid;
  gap: 8px;
  min-height: 0;
  padding: 14px 16px;
  border: 1px solid rgba(48, 211, 140, 0.32);
  border-radius: 10px;
  background: rgba(13, 148, 96, 0.14);
  color: #dcfff0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-message.is-success strong {
  color: #ffffff;
  font-size: 0.98rem;
}

.auth-message.is-success span {
  color: rgba(220, 255, 240, 0.86);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 1320px) {
  .auth-screen {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: unset;
  }

  .landing-showcase {
    min-height: 420px;
  }

  .landing-auth-panel {
    max-width: 560px;
    width: 100%;
    justify-self: center;
  }
}

@media (max-width: 980px) {
  .landing-value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-showcase {
    min-height: 460px;
  }

  .landing-board-visual {
    width: min(100%, 520px);
  }

  .landing-score-panel {
    right: 80px;
    top: 0;
  }

  .landing-football {
    right: 18px;
  }
}

@media (max-width: 760px) {
  .auth-screen {
    padding: 18px;
  }

  .landing-brand-lockup {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-hero h1 {
    font-size: clamp(3rem, 12vw, 4.8rem);
  }

  .landing-feature-pills,
  .landing-footer-meta {
    flex-direction: column;
  }

  .landing-value-grid {
    grid-template-columns: 1fr;
  }

  .landing-showcase {
    min-height: 500px;
  }

  .landing-board-visual {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    transform: none;
  }

  .landing-score-panel,
  .landing-football {
    position: absolute;
  }

  .landing-score-panel {
    right: 12px;
    top: 12px;
    width: 220px;
  }

  .landing-football {
    width: 220px;
    right: 8px;
    bottom: 0;
  }

  .landing-auth-panel {
    padding: 20px;
  }

  .landing-auth-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Home dashboard rebuild */
.home-dashboard {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(66, 144, 255, 0.16), transparent 26%),
    radial-gradient(circle at bottom left, rgba(24, 190, 156, 0.14), transparent 24%),
    linear-gradient(180deg, #071222 0%, #081427 45%, #06111f 100%);
  border: 1px solid rgba(110, 153, 235, 0.14);
  border-radius: 30px;
  box-shadow: 0 28px 48px rgba(3, 10, 22, 0.38);
  overflow: hidden;
}

.home-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.02), transparent 35%),
    linear-gradient(180deg, transparent 75%, rgba(56, 199, 255, 0.04));
}

.home-dashboard-hero,
.home-dashboard-panel,
.home-dashboard-card,
.home-dashboard-cta-strip {
  position: relative;
  z-index: 1;
}

.home-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.92fr);
  gap: 20px;
  padding: 34px 34px 30px;
  min-height: 420px;
  border-radius: 28px;
  border: 1px solid rgba(118, 165, 245, 0.16);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 15%),
    radial-gradient(circle at top left, rgba(72, 132, 232, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(5, 18, 38, 0.58), rgba(5, 18, 38, 0.8)),
    linear-gradient(180deg, #0a1d39 0%, #08152a 54%, #07111c 100%);
  overflow: hidden;
}

.home-dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(255,255,255,0.82), transparent 3%),
    radial-gradient(circle at 72% 12%, rgba(255,255,255,0.52), transparent 2.5%),
    radial-gradient(circle at 66% 13%, rgba(255,255,255,0.46), transparent 2.2%),
    radial-gradient(circle at 60% 14%, rgba(255,255,255,0.38), transparent 2%),
    radial-gradient(circle at 54% 16%, rgba(255,255,255,0.28), transparent 1.8%),
    radial-gradient(circle at 48% 18%, rgba(255,255,255,0.22), transparent 1.6%),
    radial-gradient(circle at 42% 14%, rgba(255,255,255,0.32), transparent 1.9%),
    radial-gradient(circle at 36% 13%, rgba(255,255,255,0.4), transparent 2.1%),
    radial-gradient(circle at 30% 12%, rgba(255,255,255,0.5), transparent 2.4%),
    radial-gradient(circle at 24% 12%, rgba(255,255,255,0.64), transparent 2.8%),
    linear-gradient(180deg, transparent 62%, rgba(31, 120, 95, 0.28) 73%, rgba(17, 65, 48, 0.52) 82%, rgba(5, 18, 17, 0.18) 100%);
  opacity: 0.95;
}

.home-dashboard-hero::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 13%;
  height: 24%;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(255,255,255,0.16) 10% 10.4%, transparent 10.4% 20%, rgba(255,255,255,0.16) 20% 20.3%, transparent 20.3% 30%, rgba(255,255,255,0.16) 30% 30.2%, transparent 30.2% 40%, rgba(255,255,255,0.16) 40% 40.25%, transparent 40.25% 50%, rgba(255,255,255,0.16) 50% 50.2%, transparent 50.2% 60%, rgba(255,255,255,0.16) 60% 60.25%, transparent 60.25% 70%, rgba(255,255,255,0.16) 70% 70.3%, transparent 70.3% 80%, rgba(255,255,255,0.16) 80% 80.4%, transparent 80.4% 90%, rgba(255,255,255,0.16) 90% 90.5%, transparent 90.5%),
    linear-gradient(180deg, transparent 0 58%, rgba(255,255,255,0.06) 58% 61%, transparent 61%);
  opacity: 0.58;
  transform: perspective(800px) rotateX(66deg);
  transform-origin: center bottom;
}

.home-dashboard-hero-copy,
.home-dashboard-hero-side {
  position: relative;
  z-index: 1;
}

.home-dashboard-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  max-width: 560px;
}

.home-dashboard-kicker {
  margin: 0;
  color: #3ee3ff;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-dashboard-hero-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(3.2rem, 4vw, 5.3rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.home-dashboard-hero-lead {
  margin: 0;
  max-width: 470px;
  color: rgba(226, 236, 250, 0.84);
  font-size: 1.16rem;
  line-height: 1.55;
}

.home-dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-dashboard-cta {
  border-radius: 16px;
  border: 1px solid rgba(130, 177, 255, 0.16);
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.home-dashboard-cta:hover,
.home-dashboard-cta:focus-visible,
.home-dashboard-card:hover,
.home-dashboard-card:focus-visible,
.home-dashboard-quick-item:hover,
.home-dashboard-quick-item:focus-visible {
  transform: translateY(-2px);
}

.home-dashboard-cta--primary {
  min-height: 58px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(180deg, #2e8fff 0%, #1863f2 100%);
  box-shadow: 0 18px 32px rgba(20, 98, 236, 0.28);
}

.home-dashboard-cta--secondary,
.home-dashboard-cta--tertiary {
  min-height: 58px;
  padding: 0 24px;
  color: #edf4ff;
  background: rgba(9, 21, 42, 0.58);
}

.home-dashboard-hero-side {
  display: grid;
  align-content: end;
  gap: 18px;
}

.home-dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-dashboard-stat-card,
.home-dashboard-hero-activity,
.home-dashboard-panel,
.home-dashboard-card,
.home-dashboard-cta-strip {
  border: 1px solid rgba(130, 177, 255, 0.12);
  box-shadow: 0 22px 36px rgba(2, 9, 20, 0.22);
}

.home-dashboard-stat-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 22px 20px;
  border-radius: 22px;
  background: rgba(7, 19, 38, 0.76);
  backdrop-filter: blur(12px);
}

.home-dashboard-stat-card--green {
  background: linear-gradient(180deg, rgba(10, 34, 41, 0.84), rgba(8, 21, 35, 0.86));
}

.home-dashboard-stat-glyph,
.home-dashboard-hero-activity-glyph,
.quick-item-icon,
.home-dashboard-cta-glyph {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.home-dashboard-stat-glyph {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(47, 143, 255, 0.3), rgba(22, 54, 112, 0.4));
  border: 1px solid rgba(126, 177, 255, 0.18);
}

.home-dashboard-stat-glyph::before,
.quick-item-icon::before,
.home-dashboard-cta-glyph::before,
.home-dashboard-hero-activity-glyph::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 2px solid rgba(255,255,255,0.92);
}

.home-dashboard-stat-card--green .home-dashboard-stat-glyph {
  background: linear-gradient(180deg, rgba(36, 184, 143, 0.26), rgba(12, 67, 58, 0.4));
}

.home-dashboard-stat-card small,
.home-dashboard-hero-activity small,
.home-dashboard-card-copy p,
.home-dashboard-head p,
.home-dashboard-panel h3 + p,
.home-dashboard-activity-item small,
.home-dashboard-quick-item small,
.home-dashboard-cta-copy p {
  color: rgba(211, 225, 244, 0.7);
}

.home-dashboard-stat-card small {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-dashboard-stat-card strong {
  display: block;
  color: #ffffff;
  font-size: 2.2rem;
  line-height: 1;
}

.home-dashboard-stat-card span:last-child {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
}

.home-dashboard-hero-activity {
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(11, 31, 44, 0.78), rgba(9, 23, 38, 0.9));
  backdrop-filter: blur(12px);
}

.home-dashboard-hero-activity small {
  display: block;
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-dashboard-hero-activity-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.home-dashboard-hero-activity-glyph {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(33, 106, 255, 0.16);
  border: 1px solid rgba(126, 177, 255, 0.16);
}

.home-dashboard-hero-activity-row strong {
  color: #f8fbff;
  font-size: 1.04rem;
}

.home-dashboard-hero-activity-row time {
  color: rgba(197, 214, 240, 0.72);
  font-size: 0.88rem;
  white-space: nowrap;
}

.home-dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 6px 0;
}

.home-dashboard-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 2.55rem;
  letter-spacing: -0.04em;
}

.home-dashboard-head p {
  margin: 8px 0 0;
  font-size: 1rem;
}

.home-dashboard-filter {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(130, 177, 255, 0.12);
  background: rgba(6, 18, 35, 0.76);
  color: #f3f7ff;
  font-weight: 800;
}

.home-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  grid-template-areas:
    "pools create tracker"
    "scores scores guide"
    "activity activity quick";
}

.home-dashboard-card,
.home-dashboard-panel,
.home-dashboard-cta-strip {
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(110, 166, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(17, 36, 66, 0.98), rgba(10, 25, 48, 0.98));
  border: 1px solid rgba(139, 188, 255, 0.2);
  box-shadow: 0 18px 34px rgba(1, 7, 18, 0.22), inset 0 1px 0 rgba(255,255,255,0.06);
}

.home-dashboard-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  align-content: stretch;
  gap: 16px;
  min-height: 380px;
  padding: 20px 20px 18px;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-dashboard-card--pools { grid-area: pools; }
.home-dashboard-card--create { grid-area: create; }
.home-dashboard-card--tracker { grid-area: tracker; }
.home-dashboard-card--scoreboard { grid-area: scores; min-height: 320px; }
.home-dashboard-card--guide { grid-area: guide; min-height: 320px; }
.home-dashboard-panel--activity { grid-area: activity; }
.home-dashboard-panel--quick { grid-area: quick; }

.home-dashboard-card-head,
.home-dashboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-dashboard-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(64, 228, 255, 0.24);
  background: rgba(12, 49, 54, 0.44);
  color: #53f0ff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-dashboard-pill--purple {
  color: #d3a5ff;
  border-color: rgba(202, 134, 255, 0.24);
  background: rgba(50, 21, 76, 0.42);
}

.home-dashboard-pill--gold {
  color: #ffd26a;
  border-color: rgba(255, 206, 100, 0.22);
  background: rgba(66, 48, 12, 0.42);
}

.home-dashboard-pill--cyan {
  color: #5ce8ff;
}

.home-dashboard-card-icon {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(130, 177, 255, 0.12);
  color: rgba(228, 237, 250, 0.7);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-dashboard-art {
  position: relative;
  min-height: 190px;
  border-radius: 24px;
  overflow: hidden;
}

.home-dashboard-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(65, 224, 255, 0.14), transparent 58%);
}

.home-dashboard-art--helmet {
  background: radial-gradient(circle at 35% 35%, rgba(50, 240, 234, 0.26), transparent 30%), linear-gradient(180deg, rgba(7, 27, 40, 0.12), transparent);
}

.helmet-visor,
.helmet-mask,
.helmet-glow,
.builder-football,
.guide-board,
.scoreboard-shell {
  position: absolute;
}

.helmet-visor {
  left: 22%;
  top: 20%;
  width: 48%;
  aspect-ratio: 1 / 0.86;
  border-radius: 52% 52% 38% 38%;
  border: 2px solid rgba(129, 255, 242, 0.88);
  box-shadow: 0 0 26px rgba(64, 244, 234, 0.36);
}

.helmet-visor::before {
  content: "";
  position: absolute;
  inset: 12% 12% 26% 18%;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(27, 107, 118, 0.96), rgba(5, 26, 41, 0.86));
}

.helmet-mask {
  left: 50%;
  top: 42%;
  width: 20%;
  height: 24%;
  border-right: 3px solid rgba(135, 242, 255, 0.78);
  border-bottom: 3px solid rgba(135, 242, 255, 0.78);
  transform: skew(-18deg);
  box-shadow: 0 0 20px rgba(79, 235, 255, 0.28);
}

.helmet-glow {
  inset: auto 6% 10% auto;
  width: 46%;
  height: 26%;
  background: radial-gradient(circle, rgba(48, 255, 220, 0.22), transparent 70%);
}

.home-dashboard-art--builder {
  background: radial-gradient(circle at 38% 30%, rgba(50, 154, 255, 0.28), transparent 28%);
}

.builder-grid {
  position: absolute;
  left: 16%;
  top: 16%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 48%;
  aspect-ratio: 1;
  transform: perspective(600px) rotateY(-14deg);
}

.builder-grid span,
.tracker-board span {
  border-radius: 7px;
  background: rgba(34, 63, 140, 0.72);
  border: 1px solid rgba(115, 162, 255, 0.12);
  box-shadow: inset 0 0 12px rgba(255,255,255,0.04);
}

.builder-grid span.is-lit,
.tracker-board span.is-lit {
  background: linear-gradient(180deg, #64d9ff 0%, #2c7dff 100%);
  box-shadow: 0 0 16px rgba(74, 194, 255, 0.5);
}

.builder-football {
  right: 12%;
  bottom: 20%;
  width: 26%;
  aspect-ratio: 1 / 0.62;
  border-radius: 50%;
  transform: rotate(28deg);
  background: linear-gradient(180deg, #5d3315, #28150b);
  box-shadow: 0 14px 26px rgba(2, 10, 20, 0.3);
}

.builder-football::before,
.builder-football::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.88);
}

.builder-football::before {
  left: 50%;
  top: 14%;
  bottom: 14%;
  width: 2px;
  transform: translateX(-50%);
}

.builder-football::after {
  left: 38%;
  top: 44%;
  width: 24%;
  height: 2px;
  box-shadow: 0 -7px 0 rgba(255,255,255,0.88), 0 7px 0 rgba(255,255,255,0.88);
}

.home-dashboard-art--tracker {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 16px;
  align-items: center;
}

.tracker-board {
  margin-left: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: min(100%, 190px);
  aspect-ratio: 1;
}

.tracker-board span.is-warm {
  background: linear-gradient(180deg, #8e6dff 0%, #6246ff 100%);
  box-shadow: 0 0 16px rgba(147, 108, 255, 0.42);
}

.tracker-meta {
  display: grid;
  gap: 6px;
  padding-right: 12px;
}

.tracker-meta small {
  color: rgba(197, 214, 240, 0.66);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tracker-meta strong {
  color: #ffffff;
  font-size: 1.44rem;
  line-height: 1;
}

.home-dashboard-art--scoreboard {
  min-height: 170px;
  background: radial-gradient(circle at 40% 28%, rgba(255, 212, 84, 0.12), transparent 22%);
}

.scoreboard-shell {
  left: 6%;
  right: 6%;
  top: 24%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(10, 18, 33, 0.84), rgba(10, 20, 38, 0.92));
}

.scoreboard-team {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.scoreboard-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
}

.scoreboard-team strong {
  color: #ffffff;
  font-size: 2.1rem;
}

.scoreboard-center {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 110px;
}

.scoreboard-center span {
  color: rgba(230, 239, 250, 0.84);
  font-size: 0.9rem;
  font-weight: 700;
}

.scoreboard-bar {
  width: 96px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.scoreboard-bar i {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2e8fff 0%, #58d9ff 100%);
}

.home-dashboard-art--guide {
  background: radial-gradient(circle at 62% 30%, rgba(54, 228, 255, 0.18), transparent 24%);
}

.guide-board {
  left: 38%;
  top: 15%;
  width: 35%;
  aspect-ratio: 0.78;
  border-radius: 18px;
  border: 2px solid rgba(63, 223, 255, 0.7);
  box-shadow: 0 0 30px rgba(56, 225, 255, 0.22);
}

.guide-board::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -12px;
  width: 34px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 12px;
  border: 2px solid rgba(63, 223, 255, 0.7);
}

.guide-board span,
.guide-board i {
  position: absolute;
  background: rgba(83, 235, 255, 0.86);
}

.guide-board span:nth-child(1) { left: 22%; top: 24%; width: 34%; height: 2px; transform: rotate(28deg); }
.guide-board span:nth-child(2) { right: 20%; top: 31%; width: 24%; height: 2px; transform: rotate(-24deg); }
.guide-board span:nth-child(3) { left: 20%; top: 48%; width: 28%; height: 2px; transform: rotate(-18deg); }
.guide-board span:nth-child(4) { right: 20%; top: 53%; width: 26%; height: 2px; transform: rotate(18deg); }
.guide-board span:nth-child(5) { left: 30%; bottom: 23%; width: 2px; height: 18%; }
.guide-board span:nth-child(6) { right: 28%; bottom: 20%; width: 16%; height: 2px; }
.guide-board i {
  left: 18%;
  bottom: 26%;
  width: 52%;
  height: 2px;
}

.home-dashboard-card-copy h3,
.home-dashboard-panel-head h3,
.home-dashboard-cta-copy h3 {
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.home-dashboard-card-copy h3 {
  font-size: 2rem;
}

.home-dashboard-card-copy p {
  margin: 10px 0 0;
  font-size: 1rem;
  line-height: 1.62;
}

.home-dashboard-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-dashboard-card-stats span {
  display: grid;
  gap: 6px;
}

.home-dashboard-card-stats strong {
  color: #ffffff;
  font-size: 1.7rem;
}

.home-dashboard-card-stats small,
.home-dashboard-card-link {
  color: rgba(226, 237, 250, 0.74);
}

.home-dashboard-card-link,
.home-dashboard-footer-link {
  margin-top: auto;
  min-height: 56px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px;
  border: 1px solid rgba(130, 177, 255, 0.12);
  background: rgba(8, 21, 40, 0.72);
  color: #e9f2ff;
  font-weight: 800;
}

.scores-refresh-button {
  flex: 0 0 auto;
}

.home-dashboard-card--create .home-dashboard-card-link,
.home-dashboard-card--tracker .home-dashboard-card-link {
  transform: translateY(14px);
}

.home-dashboard-panel {
  display: grid;
  gap: 16px;
  min-height: 316px;
  padding: 22px;
}

.home-dashboard-inline-link {
  color: #9cc0ff;
  font-weight: 800;
  background: transparent;
  border: 0;
  padding: 0;
}

.home-dashboard-activity-list,
.home-dashboard-quick-list {
  display: grid;
  gap: 12px;
}

.home-dashboard-activity-item,
.home-dashboard-quick-item {
  display: grid;
  gap: 12px;
  border-radius: 18px;
  border: 1px solid rgba(154, 198, 255, 0.18);
  background: rgba(18, 38, 70, 0.86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.home-dashboard-activity-item {
  grid-template-columns: auto 1fr auto;
  align-items: start;
  padding: 14px 16px;
}

.home-dashboard-activity-badge {
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #41dba4 0%, #229d74 100%);
  box-shadow: 0 0 14px rgba(65, 219, 164, 0.3);
}

.home-dashboard-activity-badge--chat {
  background: linear-gradient(180deg, #4b91ff 0%, #2967d9 100%);
}

.home-dashboard-activity-badge--pool {
  background: linear-gradient(180deg, #48e8ff 0%, #1ba7d2 100%);
}

.home-dashboard-activity-badge--win {
  background: linear-gradient(180deg, #ffd15c 0%, #b98a1c 100%);
}

.home-dashboard-activity-item strong {
  display: block;
  color: #f8fbff;
}

.home-dashboard-activity-item small {
  display: block;
  margin-top: 4px;
  line-height: 1.5;
}

.home-dashboard-activity-item time {
  color: rgba(197, 214, 240, 0.72);
  font-size: 0.88rem;
  white-space: nowrap;
}

.home-dashboard-quick-item {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 16px 18px;
  text-align: left;
}

.quick-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(50, 143, 255, 0.24), rgba(14, 56, 122, 0.38));
  border: 1px solid rgba(130, 177, 255, 0.14);
}

.quick-item-arrow {
  color: rgba(226, 237, 250, 0.7);
  font-size: 1.2rem;
  font-weight: 700;
}

.home-dashboard-quick-item strong {
  display: block;
  color: #ffffff;
}

.home-dashboard-quick-item small {
  display: block;
  margin-top: 4px;
}

.home-dashboard-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
}

.home-dashboard-cta-copy {
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-dashboard-cta-glyph {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(46, 143, 255, 0.3), rgba(9, 45, 92, 0.46));
  border: 1px solid rgba(130, 177, 255, 0.14);
}

.home-dashboard-cta-copy h3 {
  font-size: 1.95rem;
}

.home-dashboard-cta-copy p {
  margin: 8px 0 0;
  font-size: 1rem;
}

@media (max-width: 1280px) {
  .home-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "pools create"
      "tracker scores"
      "guide guide"
      "activity quick";
  }
}

@media (max-width: 1100px) {
  .home-dashboard-hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .home-dashboard-hero-side {
    align-content: start;
  }
}

@media (max-width: 860px) {
  .home-dashboard {
    padding: 14px;
    gap: 16px;
  }

  .home-dashboard-hero {
    padding: 24px 20px;
  }

  .home-dashboard-head {
    flex-direction: column;
    align-items: stretch;
  }

  .home-dashboard-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "pools"
      "create"
      "tracker"
      "scores"
      "guide"
      "activity"
      "quick";
  }

  .home-dashboard-card,
  .home-dashboard-panel {
    min-height: unset;
  }

  .home-dashboard-cta-strip,
  .home-dashboard-cta-copy {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .home-dashboard-hero-copy h1 {
    font-size: 2.85rem;
  }

  .home-dashboard-stat-grid {
    grid-template-columns: 1fr;
  }

  .home-dashboard-card-stats {
    grid-template-columns: 1fr;
  }

  .home-dashboard-hero-activity-row,
  .home-dashboard-activity-item,
  .home-dashboard-quick-item {
    grid-template-columns: 1fr;
  }

  .scoreboard-shell {
    grid-template-columns: 1fr;
  }
}

/* Create dashboard refresh */
.create-dashboard {
  display: grid;
  gap: 22px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(65, 144, 255, 0.16), transparent 24%),
    radial-gradient(circle at bottom left, rgba(24, 190, 156, 0.12), transparent 22%),
    linear-gradient(180deg, #071222 0%, #081427 48%, #06111f 100%);
  border: 1px solid rgba(110, 153, 235, 0.14);
  border-radius: 30px;
  box-shadow: 0 28px 48px rgba(3, 10, 22, 0.38);
}

.create-dashboard-hero,
.create-dashboard-card,
.create-dashboard-sidecard {
  border: 1px solid rgba(130, 177, 255, 0.12);
  box-shadow: 0 20px 34px rgba(2, 9, 20, 0.24);
}

.create-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
  gap: 20px;
  align-items: center;
  min-height: 310px;
  padding: 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.24), transparent 14%),
    radial-gradient(circle at 78% 18%, rgba(61, 150, 255, 0.24), transparent 24%),
    linear-gradient(180deg, rgba(5, 18, 38, 0.62), rgba(5, 18, 38, 0.82)),
    linear-gradient(180deg, #0a1d39 0%, #08152a 54%, #07111c 100%);
  overflow: hidden;
}

.create-dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 10%, rgba(255,255,255,0.76), transparent 2.8%),
    radial-gradient(circle at 72% 11%, rgba(255,255,255,0.48), transparent 2.2%),
    radial-gradient(circle at 64% 13%, rgba(255,255,255,0.36), transparent 1.9%),
    radial-gradient(circle at 56% 15%, rgba(255,255,255,0.28), transparent 1.6%),
    radial-gradient(circle at 48% 13%, rgba(255,255,255,0.32), transparent 1.8%),
    radial-gradient(circle at 40% 11%, rgba(255,255,255,0.44), transparent 2.2%),
    linear-gradient(180deg, transparent 68%, rgba(27, 91, 67, 0.2) 80%, rgba(8, 22, 20, 0.08) 100%);
}

.create-dashboard-hero-copy,
.create-dashboard-hero-art {
  position: relative;
  z-index: 1;
}

.create-dashboard-kicker {
  margin: 0 0 10px;
  color: #3ee3ff;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.create-dashboard-hero-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.8rem, 3.2vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.create-dashboard-hero-copy p:last-child,
.create-dashboard-hero-copy > p:not(.create-dashboard-kicker) {
  margin: 16px 0 0;
  max-width: 560px;
  color: rgba(226, 236, 250, 0.82);
  font-size: 1.08rem;
  line-height: 1.62;
}

.create-dashboard-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.create-dashboard-pill {
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(64, 228, 255, 0.22);
  background: rgba(12, 49, 54, 0.42);
  color: #53f0ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.create-dashboard-pill--accent {
  color: #ffd26a;
  border-color: rgba(255, 206, 100, 0.22);
  background: rgba(66, 48, 12, 0.42);
}

.create-dashboard-hero-art {
  min-height: 220px;
  border-radius: 24px;
  background: radial-gradient(circle at 36% 28%, rgba(55, 164, 255, 0.24), transparent 30%);
}

.create-art-board {
  position: absolute;
  left: 14%;
  top: 14%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  width: 44%;
  aspect-ratio: 1;
  transform: perspective(700px) rotateY(-16deg);
}

.create-art-board span {
  border-radius: 7px;
  background: rgba(34, 63, 140, 0.72);
  border: 1px solid rgba(115, 162, 255, 0.12);
  box-shadow: inset 0 0 12px rgba(255,255,255,0.04);
}

.create-art-board span.is-lit {
  background: linear-gradient(180deg, #64d9ff 0%, #2c7dff 100%);
  box-shadow: 0 0 16px rgba(74, 194, 255, 0.5);
}

.create-art-football {
  position: absolute;
  right: 12%;
  bottom: 16%;
  width: 25%;
  aspect-ratio: 1 / 0.62;
  border-radius: 50%;
  transform: rotate(28deg);
  background: linear-gradient(180deg, #5d3315, #28150b);
  box-shadow: 0 14px 26px rgba(2, 10, 20, 0.3);
}

.create-art-football::before,
.create-art-football::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.9);
}

.create-art-football::before {
  left: 50%;
  top: 14%;
  bottom: 14%;
  width: 2px;
  transform: translateX(-50%);
}

.create-art-football::after {
  left: 38%;
  top: 44%;
  width: 24%;
  height: 2px;
  box-shadow: 0 -7px 0 rgba(255,255,255,0.88), 0 7px 0 rgba(255,255,255,0.88);
}

.create-dashboard-form {
  gap: 0;
}

.create-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.create-dashboard-main,
.create-dashboard-sidebar {
  display: grid;
  gap: 18px;
}

.create-dashboard-card,
.create-dashboard-sidecard {
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(74, 126, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(7, 20, 40, 0.95), rgba(6, 16, 31, 0.98));
}

.create-dashboard-card-head h3,
.create-dashboard-sidecard h3 {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.create-dashboard .panel-kicker,
.create-dashboard .field span {
  color: rgba(214, 228, 247, 0.74);
}

.create-dashboard-grid {
  gap: 16px;
}

.create-dashboard .field {
  gap: 9px;
}

.create-dashboard .field input,
.create-dashboard .field textarea,
.create-dashboard .field select {
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.create-dashboard .field select option,
.create-dashboard .field select optgroup,
.tracker-dashboard .field select option,
.tracker-dashboard .field select optgroup {
  color: #0b1d33;
  background: #ffffff;
}

.create-dashboard .field textarea {
  min-height: 150px;
  resize: vertical;
}

.create-dashboard .field input::placeholder,
.create-dashboard .field textarea::placeholder {
  color: rgba(214, 228, 247, 0.34);
}

.create-dashboard-checklist {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.create-dashboard-checklist li {
  position: relative;
  padding-left: 18px;
  color: rgba(226, 236, 250, 0.82);
  line-height: 1.58;
}

.create-dashboard-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3ee3ff 0%, #1a7cff 100%);
  box-shadow: 0 0 12px rgba(62, 227, 255, 0.32);
}

.create-dashboard-sidecard--stats .create-dashboard-side-stats {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.create-dashboard-side-stats span {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(130, 177, 255, 0.1);
  background: rgba(8, 21, 40, 0.72);
}

.create-dashboard-side-stats strong {
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 1;
}

.create-dashboard-side-stats small {
  color: rgba(211, 225, 244, 0.7);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.create-dashboard-actions {
  margin-top: 2px;
}

.create-dashboard-submit {
  width: 100%;
  min-height: 58px;
  padding: 0 22px;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(180deg, #2e8fff 0%, #1863f2 100%);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 18px 32px rgba(20, 98, 236, 0.28);
}

@media (max-width: 1120px) {
  .create-dashboard-hero,
  .create-dashboard-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .create-dashboard {
    padding: 14px;
    gap: 16px;
  }

  .create-dashboard-hero,
  .create-dashboard-card,
  .create-dashboard-sidecard {
    padding: 18px;
  }

  .create-dashboard-grid.two-up {
    grid-template-columns: 1fr;
  }

  .create-art-board {
    width: 54%;
  }

  .create-art-football {
    width: 28%;
  }
}

/* Tracker dashboard refresh */
.tracker-dashboard {
  display: grid;
  gap: 22px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(65, 144, 255, 0.16), transparent 24%),
    radial-gradient(circle at bottom left, rgba(24, 190, 156, 0.12), transparent 22%),
    linear-gradient(180deg, #071222 0%, #081427 48%, #06111f 100%);
  border: 1px solid rgba(110, 153, 235, 0.14);
  border-radius: 30px;
  box-shadow: 0 28px 48px rgba(3, 10, 22, 0.38);
}

.tracker-dashboard-hero,
.tracker-dashboard-card,
.tracker-dashboard-sidecard {
  border: 1px solid rgba(130, 177, 255, 0.12);
  box-shadow: 0 20px 34px rgba(2, 9, 20, 0.24);
}

.tracker-dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
  gap: 20px;
  align-items: center;
  padding: 28px 28px 26px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 15%),
    radial-gradient(circle at bottom left, rgba(80, 224, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(5, 18, 38, 0.58), rgba(5, 18, 38, 0.8)),
    linear-gradient(180deg, #0a1d39 0%, #08152a 54%, #07111c 100%);
}

.tracker-dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 10%, rgba(255,255,255,0.76), transparent 2.8%),
    radial-gradient(circle at 76% 11%, rgba(255,255,255,0.5), transparent 2.3%),
    radial-gradient(circle at 72% 12%, rgba(255,255,255,0.34), transparent 2%),
    radial-gradient(circle at 68% 13%, rgba(255,255,255,0.22), transparent 1.8%),
    radial-gradient(circle at 32% 14%, rgba(255,255,255,0.42), transparent 2.2%),
    radial-gradient(circle at 27% 13%, rgba(255,255,255,0.28), transparent 1.8%),
    linear-gradient(180deg, transparent 70%, rgba(31, 120, 95, 0.22) 80%, rgba(17, 65, 48, 0.4) 92%, rgba(5, 18, 17, 0.16) 100%);
}

.tracker-dashboard-hero-copy,
.tracker-dashboard-hero-art {
  position: relative;
  z-index: 1;
}

.tracker-dashboard-kicker {
  margin: 0 0 10px;
  color: #3ee3ff;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tracker-dashboard-hero-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.7rem, 3vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.tracker-dashboard-hero-copy p:last-child,
.tracker-dashboard-hero-copy > p:not(.tracker-dashboard-kicker) {
  margin: 16px 0 0;
  max-width: 560px;
  color: rgba(226, 236, 250, 0.82);
  font-size: 1.08rem;
  line-height: 1.6;
}

.tracker-dashboard-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.tracker-dashboard-pill {
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(64, 228, 255, 0.24);
  background: rgba(12, 49, 54, 0.44);
  color: #53f0ff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tracker-dashboard-pill--accent {
  color: #ffd26a;
  border-color: rgba(255, 206, 100, 0.22);
  background: rgba(66, 48, 12, 0.42);
}

.tracker-dashboard-hero-art {
  min-height: 220px;
  border-radius: 24px;
  background: radial-gradient(circle at 34% 24%, rgba(55, 164, 255, 0.24), transparent 30%);
}

.tracker-hero-board {
  position: absolute;
  left: 14%;
  top: 16%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 48%;
  aspect-ratio: 1;
  transform: perspective(640px) rotateY(-12deg);
}

.tracker-hero-board span {
  border-radius: 8px;
  background: rgba(34, 63, 140, 0.72);
  border: 1px solid rgba(115, 162, 255, 0.12);
  box-shadow: inset 0 0 12px rgba(255,255,255,0.04);
}

.tracker-hero-board span.is-lit {
  background: linear-gradient(180deg, #64d9ff 0%, #2c7dff 100%);
  box-shadow: 0 0 16px rgba(74, 194, 255, 0.5);
}

.tracker-hero-board span.is-warm {
  background: linear-gradient(180deg, #8e6dff 0%, #6246ff 100%);
  box-shadow: 0 0 16px rgba(147, 108, 255, 0.42);
}

.tracker-hero-ribbon {
  position: absolute;
  right: 10%;
  bottom: 18%;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(130, 177, 255, 0.14);
  background: rgba(7, 19, 38, 0.76);
  backdrop-filter: blur(12px);
}

.tracker-hero-ribbon strong {
  color: #ffffff;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.tracker-hero-ribbon small {
  color: rgba(211, 225, 244, 0.74);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tracker-dashboard-form {
  gap: 0;
}

.tracker-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.tracker-dashboard-main,
.tracker-dashboard-sidebar {
  display: grid;
  gap: 18px;
}

.tracker-dashboard-card,
.tracker-dashboard-sidecard {
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(74, 126, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(7, 20, 40, 0.95), rgba(6, 16, 31, 0.98));
}

.tracker-dashboard-card-head h3,
.tracker-dashboard-sidecard h3 {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.tracker-dashboard .panel-kicker,
.tracker-dashboard .field span {
  color: rgba(214, 228, 247, 0.74);
}

.tracker-dashboard-grid {
  gap: 16px;
}

.tracker-dashboard .field {
  gap: 9px;
}

.tracker-dashboard .field input,
.tracker-dashboard .field textarea,
.tracker-dashboard .field select {
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.tracker-dashboard .field input::placeholder,
.tracker-dashboard .field textarea::placeholder {
  color: rgba(214, 228, 247, 0.34);
}

.tracker-dashboard-checklist {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.tracker-dashboard-checklist li {
  position: relative;
  padding-left: 18px;
  color: rgba(226, 236, 250, 0.82);
  line-height: 1.58;
}

.tracker-dashboard-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3ee3ff 0%, #1a7cff 100%);
  box-shadow: 0 0 12px rgba(62, 227, 255, 0.32);
}

.tracker-dashboard-sidecard--stats .tracker-dashboard-side-stats {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.tracker-dashboard-side-stats span {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(130, 177, 255, 0.1);
  background: rgba(8, 21, 40, 0.72);
}

.tracker-dashboard-side-stats strong {
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 1;
}

.tracker-dashboard-side-stats small {
  color: rgba(211, 225, 244, 0.7);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tracker-dashboard-actions {
  margin-top: 2px;
}

.tracker-dashboard-submit {
  width: 100%;
  min-height: 58px;
  padding: 0 22px;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(180deg, #2e8fff 0%, #1863f2 100%);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 18px 32px rgba(20, 98, 236, 0.28);
}

@media (max-width: 1120px) {
  .tracker-dashboard-hero,
  .tracker-dashboard-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .tracker-dashboard {
    padding: 14px;
    gap: 16px;
  }

  .tracker-dashboard-hero,
  .tracker-dashboard-card,
  .tracker-dashboard-sidecard {
    padding: 18px;
  }

  .tracker-dashboard-grid.two-up {
    grid-template-columns: 1fr;
  }

  .tracker-hero-board {
    width: 54%;
  }
}

/* Responsive stabilization pass */
.page-shell {
  width: 100%;
  min-height: 100vh;
  padding: clamp(16px, 2.2vw, 32px) clamp(16px, 2.6vw, 48px) clamp(20px, 3vw, 40px);
}

.app-frame,
.dashboard-screen,
.auth-screen,
.view-card,
.page-view,
.content-grid,
.pool-dashboard-layout,
.pool-main-column,
.pool-sidebar-column,
.scores-dashboard-layout,
.scores-dashboard-main,
.scores-dashboard-sidebar,
.profile-page-grid,
.home-dashboard-grid,
.create-dashboard-layout,
.guide-dashboard-grid {
  min-width: 0;
  max-width: 100%;
}

.app-frame {
  width: min(100%, 1680px);
  max-width: 1680px;
  margin-inline: auto;
}

.dashboard-screen,
.auth-screen,
.page-view {
  width: 100%;
}

.site-nav,
.account-actions,
.nav-group,
.nav-dropdown,
.home-dashboard-card,
.home-dashboard-panel,
.scores-sidebar-card,
.profile-card,
.guide-dashboard-card,
.guide-dashboard-tips,
.pool-screen .panel,
.pool-summary-card {
  min-width: 0;
}

.nav-link,
.account-chip,
.home-dashboard-card-copy h3,
.home-dashboard-card-copy p,
.guide-dashboard-card-copy h3,
.guide-dashboard-card-copy p,
.scores-live-row,
.scores-leader-item,
.score-card-row,
.score-card-team span {
  overflow-wrap: anywhere;
}

.nav-link,
.account-chip,
.scores-dashboard-customize,
.scores-sidebar-link,
.home-dashboard-filter,
.home-dashboard-card-link,
.home-dashboard-footer-link,
.guide-dashboard-button,
.create-dashboard-submit,
.profile-cta {
  max-width: 100%;
}

.nav-link,
.account-chip {
  overflow-wrap: normal;
  white-space: nowrap;
}

@media (max-width: 1440px) {
  .topbar {
    gap: 14px;
    padding: 12px 14px;
  }

  .app-title {
    font-size: 1.45rem;
  }

  .site-nav {
    gap: 4px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav-link {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 0.92rem;
  }

  .account-actions {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .account-chip {
    padding: 8px 10px;
  }

  .landing-hero {
    min-height: clamp(560px, 72vh, 820px);
  }

  .landing-feature-pills span {
    min-width: 220px;
  }

  .landing-board-visual {
    width: min(100%, 500px);
  }

  .landing-score-panel {
    right: 140px;
    width: 240px;
  }

  .landing-football {
    right: 32px;
    width: 240px;
  }
}

@media (max-height: 900px) {
  .auth-screen {
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .landing-hero {
    min-height: auto;
    gap: 14px;
  }

  .landing-showcase {
    min-height: 280px;
  }

  .landing-feature-pills {
    gap: 10px;
  }
}

@media (max-width: 1200px) {
  .dashboard-screen {
    padding: 14px;
  }

  .topbar {
    position: static;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .nav-brand,
  .site-nav,
  .account-actions {
    justify-self: stretch;
  }

  .site-nav {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .nav-group {
    min-width: min(100%, 220px);
  }

  .nav-group-toggle,
  .nav-link {
    justify-content: center;
  }

  .account-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .auth-screen {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
  }

  .landing-hero {
    min-height: auto;
    padding: 12px 0 0;
  }

  .landing-showcase {
    min-height: 390px;
  }

  .landing-board-visual {
    width: min(100%, 480px);
  }

  .landing-score-panel {
    right: 88px;
    top: 10px;
    width: 220px;
  }

  .landing-football {
    right: 0;
    width: 210px;
  }

  .landing-auth-panel {
    width: min(100%, 560px);
    justify-self: center;
  }

  .home-dashboard-hero,
  .profile-page-grid,
  .scores-dashboard-layout,
  .pool-dashboard-layout,
  .create-dashboard-layout,
  .guide-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .scores-dashboard-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pool-sidebar-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .pool-sidebar-column .notes-panel {
    grid-column: 1 / -1;
  }

  .pool-screen .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "pools create"
      "tracker scores"
      "guide guide"
      "activity quick";
  }

  .home-dashboard-head {
    align-items: flex-start;
  }
}

@media (max-width: 1024px) {
  .page-shell {
    padding-inline: 10px;
  }

  .topbar {
    border-radius: 22px;
  }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 2px;
  }

  .site-nav .nav-link,
  .site-nav .nav-group {
    flex: 0 0 auto;
  }

  .account-actions {
    justify-content: space-between;
  }

  .landing-brand-lockup {
    gap: 16px;
  }

  .shield-mark {
    width: 104px;
    height: 116px;
  }

  .landing-hero h1 {
    font-size: clamp(3.2rem, 7vw, 5.4rem);
  }

  .landing-copy {
    font-size: 1rem;
  }

  .landing-value-grid,
  .scores-dashboard-summary,
  .pool-screen .meta-grid,
  .home-dashboard-stat-grid,
  .profile-avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-footer-title {
    font-size: 1.1rem;
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  .home-dashboard-hero {
    padding: 26px 22px;
  }

  .home-dashboard-hero-copy h1,
  .scores-dashboard-head h2 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
  }

  .home-dashboard-card-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .scores-dashboard-filterbar,
  .scores-dashboard-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .scores-dashboard-field {
    min-width: 0;
  }

  .scoreboard-grid-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard-screen,
  .auth-screen,
  .home-dashboard,
  .scores-dashboard,
  .profile-page,
  .guide-dashboard,
  .create-dashboard,
  .boards-dashboard {
    padding: 14px;
  }

  .topbar {
    padding: 12px;
    border-radius: 20px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow: visible;
  }

  .site-nav .nav-group,
  .site-nav .nav-link {
    min-width: 0;
    width: 100%;
  }

  .nav-link,
  .nav-group-toggle {
    justify-content: center;
    text-align: center;
  }

  .nav-dropdown {
    left: 0;
    right: 0;
    min-width: 0;
  }

  .account-actions {
    gap: 8px;
  }

  .account-chip {
    flex: 1 1 180px;
    justify-content: center;
  }

  .account-logout.ghost {
    flex: 1 1 140px;
  }

  .landing-brand-lockup {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-showcase {
    min-height: 460px;
  }

  .landing-board-visual {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    padding-left: 42px;
    transform: none;
  }

  .landing-score-panel {
    right: 10px;
    top: 8px;
    width: min(44vw, 220px);
  }

  .landing-football {
    right: 0;
    bottom: 0;
    width: min(46vw, 220px);
  }

  .landing-feature-pills span,
  .landing-value-grid,
  .home-dashboard-grid,
  .scores-dashboard-sidebar,
  .scoreboard-grid-page,
  .pool-sidebar-column,
  .profile-page-grid,
  .profile-avatar-grid {
    grid-template-columns: 1fr;
  }

  .landing-feature-pills span {
    min-width: 0;
  }

  .home-dashboard-head,
  .scores-sidebar-head,
  .pool-notes-modal-head {
    flex-direction: column;
    align-items: stretch;
  }

  .home-dashboard-cta-strip,
  .home-dashboard-cta-copy,
  .profile-upload-box,
  .profile-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .pool-screen .meta-grid,
  .matchup-banner,
  .home-dashboard-stat-grid {
    grid-template-columns: 1fr;
  }

  .pool-screen .scoreboard-banner,
  .scoreboard-shell {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pool-screen .score-banner-team {
    justify-items: center;
  }

  .home-dashboard-card-stats {
    grid-template-columns: 1fr;
  }

  .guide-dashboard-hero,
  .create-dashboard-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 8px 8px 18px;
  }

  .topbar {
    top: 8px;
  }

  .site-nav {
    grid-template-columns: 1fr;
  }

  .nav-link {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  .account-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .account-chip,
  .account-logout.ghost {
    grid-column: 1 / -1;
  }

  .shield-mark {
    width: 92px;
    height: 102px;
  }

  .landing-hero h1 {
    font-size: clamp(2.7rem, 12vw, 4.1rem);
  }

  .landing-copy,
  .home-dashboard-hero-lead,
  .scores-dashboard-subtitle,
  .guide-dashboard-subtitle,
  .profile-page-header p:last-child {
    font-size: 0.96rem;
  }

  .landing-showcase {
    min-height: 400px;
  }

  .landing-score-panel {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    margin: 14px 0 0;
  }

  .landing-football {
    width: 170px;
  }

  .landing-board-grid {
    gap: 4px;
  }

  .landing-board-grid::before {
    left: 74px;
    font-size: 0.64rem;
    letter-spacing: 0.28em;
  }

  .home-dashboard-hero,
  .home-dashboard-card,
  .home-dashboard-panel,
  .scores-sidebar-card,
  .guide-dashboard-card,
  .guide-dashboard-tips,
  .profile-card,
  .create-dashboard-card,
  .create-dashboard-sidecard,
  .boards-dashboard-hero,
  .boards-dashboard-section {
    padding: 16px;
    border-radius: 22px;
  }

  .home-dashboard-hero-copy h1,
  .scores-dashboard-head h2,
  .profile-page-header h2,
  .guide-dashboard-head h2 {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .pool-notes-modal {
    width: calc(100vw - 24px);
    min-height: min(78vh, 560px);
    max-height: calc(100vh - 24px);
    padding: 16px;
  }

  .score-card-team {
    gap: 8px;
  }

  .score-card-row strong,
  .pool-screen .score-banner-team strong {
    font-size: 1.7rem;
  }
}

.nav-group-toggle::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(172, 202, 248, 0.78);
}

#newPoolDate::-webkit-calendar-picker-indicator,
#trackerDate::-webkit-calendar-picker-indicator,
#scoresDate::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
}

#newPoolDate,
#trackerDate,
#scoresDate {
  color-scheme: dark;
  background-image:
    linear-gradient(transparent, transparent),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px 20px;
  padding-right: 44px;
}

.pool-page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(215, 229, 249, 0.78);
  font-size: 0.88rem;
  font-weight: 700;
}

.pool-page-size select {
  min-width: 78px;
  padding: 9px 34px 9px 12px;
  border-radius: 12px;
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(120, 170, 255, 0.16);
}

.pool-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
  color: rgba(215, 229, 249, 0.78);
  font-weight: 700;
  flex-wrap: wrap;
}

.pool-pagination button {
  min-width: 94px;
}

.pool-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chat-panel {
  z-index: 70;
}

.chat-launcher {
  z-index: 71;
}

.scores-dashboard-layout {
  grid-template-columns: minmax(0, 1fr);
}

.scores-dashboard-sidebar,
.scores-dashboard-customize {
  display: none;
}

.profile-upload-box.is-dragging {
  border-color: rgba(74, 163, 255, 0.92);
  background: rgba(74, 163, 255, 0.14);
  box-shadow: 0 0 0 4px rgba(74, 163, 255, 0.16);
}

.mobile-menu-button {
  display: none;
}

/* Mobile polish pass */
@media (max-width: 900px) {
  html {
    scroll-padding-top: 12px;
  }

  body {
    overflow-x: hidden;
  }

  .app-frame,
  .dashboard-screen,
  .page-view,
  .home-dashboard,
  .boards-dashboard,
  .create-dashboard,
  .tracker-dashboard,
  .scores-dashboard,
  .guide-dashboard,
  .profile-page,
  .pool-screen {
    width: 100%;
    max-width: 100%;
  }

  .dashboard-screen {
    padding: 12px;
  }

  .topbar {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 22px;
  }

  .nav-brand {
    justify-content: center;
  }

  .app-title {
    font-size: 1.28rem;
    letter-spacing: 0;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .site-nav .nav-link,
  .site-nav .nav-group,
  .nav-group-toggle {
    width: 100%;
    min-width: 0;
  }

  .site-nav .nav-link,
  .nav-group-toggle {
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.9rem;
  }

  .nav-dropdown {
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    width: 100%;
    min-width: 0;
  }

  .account-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    gap: 8px;
  }

  .account-chip {
    justify-content: center;
    min-width: 0;
  }

  .account-logout {
    min-width: 86px;
  }

  .home-dashboard-hero,
  .boards-dashboard-hero,
  .create-dashboard-hero,
  .tracker-dashboard-hero,
  .guide-dashboard-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-dashboard-hero-side,
  .boards-dashboard-art,
  .create-dashboard-hero-art,
  .tracker-dashboard-hero-art,
  .guide-dashboard-hero-art {
    min-height: 180px;
  }

  .home-dashboard-hero-copy h1,
  .boards-dashboard-copy h2,
  .create-dashboard-hero-copy h2,
  .tracker-dashboard-hero-copy h2,
  .scores-dashboard-head h2,
  .guide-dashboard-head h2,
  .profile-page-header h2 {
    letter-spacing: 0;
  }

  .home-dashboard-grid,
  .boards-dashboard .pool-gallery,
  .create-dashboard-layout,
  .tracker-dashboard-layout,
  .scores-dashboard-layout,
  .profile-page-grid,
  .guide-dashboard-grid,
  .pool-dashboard-layout,
  .lower-panels {
    grid-template-columns: 1fr;
  }

  .create-dashboard-grid,
  .tracker-dashboard-grid,
  .create-dashboard-grid.two-up,
  .tracker-dashboard-grid.two-up,
  .pool-screen .meta-grid,
  .scores-dashboard-filters,
  .scores-dashboard-summary,
  .profile-avatar-grid,
  .host-settings-payout-grid {
    grid-template-columns: 1fr;
  }

  .scores-dashboard-filterbar,
  .home-dashboard-head,
  .boards-dashboard-head,
  .profile-page-header,
  .pool-screen .panel-head,
  .pool-screen .board-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .scores-dashboard-filters,
  .scores-dashboard-field,
  .scores-refresh-button,
  .create-dashboard-submit,
  .tracker-dashboard-submit,
  .profile-cta {
    width: 100%;
  }

  .scores-dashboard-field {
    min-width: 0;
  }

  .pool-screen .scoreboard-banner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    text-align: center;
  }

  .pool-screen .score-banner-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    justify-content: center;
    text-align: center;
  }

  .pool-screen .score-banner-team span,
  .pool-screen .score-banner-team strong {
    width: 100%;
    text-align: center;
  }

  .pool-screen .score-banner-center {
    order: -1;
  }

  .pool-screen .toolbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  #openHostToolsButton {
    position: static;
    width: 100%;
    min-height: 48px;
    writing-mode: initial;
    text-orientation: initial;
    border-radius: 16px;
    padding: 12px 16px;
  }

  .board-scroller {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .board-table {
    min-width: 720px;
  }

  .host-tools-drawer {
    inset: 86px 10px 10px;
    width: auto;
    height: auto;
    max-height: calc(100dvh - 96px);
    border-radius: 24px;
    transform: translateY(18px);
    z-index: 120;
  }

  .host-tools-drawer.is-open {
    transform: translateY(0);
    padding-top: 58px;
  }

  .host-tools-scrim {
    z-index: 119;
  }

  #openHostToolsButton.is-open {
    position: fixed;
    top: 98px;
    right: 22px;
    bottom: auto;
    left: auto;
    z-index: 122;
    width: auto;
    height: auto;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    writing-mode: initial;
    text-orientation: initial;
  }

  .host-tools-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
    -webkit-overflow-scrolling: touch;
  }

  .host-tab-button {
    flex: 1 0 max(112px, 30%);
    white-space: nowrap;
  }

  .participant-chip,
  .invite-status-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .chat-panel {
    left: 10px;
    right: 10px;
    bottom: 82px;
    top: 86px;
    width: auto;
    height: auto;
    max-height: calc(100dvh - 180px);
    border-radius: 24px;
    z-index: 121;
  }

  .chat-launcher {
    right: 12px;
    bottom: 12px;
    z-index: 122;
  }

  .feedback-launcher {
    right: 12px;
    bottom: 82px;
    z-index: 123;
  }
}

/* Mobile hamburger navigation */
@media (max-width: 900px) {
  .mobile-menu-button {
    justify-self: end;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    border-radius: 16px;
    border: 1px solid rgba(120, 170, 255, 0.18);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
      rgba(7, 20, 40, 0.88);
    box-shadow:
      0 14px 28px rgba(2, 8, 18, 0.2),
      inset 0 1px 0 rgba(255,255,255,0.08);
  }

  .mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin-inline: auto;
    border-radius: 999px;
    background: #f6fbff;
    transition: transform 170ms ease, opacity 170ms ease;
  }

  .topbar {
    position: sticky;
    top: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .topbar.is-mobile-menu-open .mobile-menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .topbar.is-mobile-menu-open .mobile-menu-button span:nth-child(2) {
    opacity: 0;
  }

  .topbar.is-mobile-menu-open .mobile-menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .topbar .site-nav,
  .topbar .account-actions {
    display: none;
  }

  .topbar.is-mobile-menu-open .site-nav,
  .topbar.is-mobile-menu-open .account-actions {
    grid-column: 1 / -1;
    display: grid;
    animation: mobile-menu-in 160ms ease both;
  }

  .topbar.is-mobile-menu-open .site-nav {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(120, 170, 255, 0.12);
  }

  .topbar.is-mobile-menu-open .account-actions {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 10px;
  }

  .topbar.is-mobile-menu-open .account-chip,
  .topbar.is-mobile-menu-open .account-logout {
    width: 100%;
    justify-content: center;
  }

  .topbar.is-mobile-menu-open .nav-group {
    display: grid;
    gap: 8px;
  }

  .topbar.is-mobile-menu-open .nav-dropdown {
    position: static;
    display: none;
    width: 100%;
    padding: 8px;
    box-shadow: none;
    border-radius: 16px;
  }

  .topbar.is-mobile-menu-open .nav-group.is-open .nav-dropdown,
  .topbar.is-mobile-menu-open .nav-group:focus-within .nav-dropdown {
    display: grid;
  }

  .topbar.is-mobile-menu-open .nav-sport-links {
    padding-left: 8px;
  }
}

@keyframes mobile-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .dashboard-screen {
    padding: 8px;
  }

  .topbar {
    border-radius: 18px;
  }

  .site-nav {
    grid-template-columns: 1fr;
  }

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

  .account-logout {
    width: 100%;
  }

  .home-dashboard,
  .boards-dashboard,
  .create-dashboard,
  .tracker-dashboard,
  .scores-dashboard,
  .guide-dashboard,
  .profile-page {
    padding: 10px;
    gap: 12px;
    border-radius: 22px;
  }

  .home-dashboard-hero,
  .home-dashboard-card,
  .home-dashboard-panel,
  .boards-dashboard-hero,
  .boards-dashboard-section,
  .boards-dashboard .pool-card,
  .create-dashboard-hero,
  .create-dashboard-card,
  .create-dashboard-sidecard,
  .tracker-dashboard-hero,
  .tracker-dashboard-card,
  .tracker-dashboard-sidecard,
  .scores-dashboard-filterbar,
  .scores-dashboard-summary,
  .score-card,
  .guide-dashboard-hero,
  .guide-dashboard-card,
  .guide-dashboard-tips,
  .profile-card,
  .pool-screen .hero,
  .pool-screen .board-panel,
  .pool-screen .panel:not(.chat-panel):not(.host-tools-drawer),
  .pool-summary-card {
    padding: 16px;
    border-radius: 20px;
  }

  .home-dashboard-hero-copy h1,
  .boards-dashboard-copy h2,
  .create-dashboard-hero-copy h2,
  .tracker-dashboard-hero-copy h2,
  .scores-dashboard-head h2,
  .guide-dashboard-head h2,
  .profile-page-header h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    line-height: 1.02;
  }

  .home-dashboard-hero-lead,
  .boards-dashboard .boards-page-subtitle,
  .create-dashboard-hero-copy > p:not(.create-dashboard-kicker),
  .tracker-dashboard-hero-copy > p:not(.tracker-dashboard-kicker),
  .scores-dashboard-subtitle,
  .guide-dashboard-subtitle,
  .profile-page-header p:last-child {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .home-dashboard-hero-actions,
  .create-dashboard-hero-pills,
  .tracker-dashboard-hero-pills,
  .boards-dashboard-pills {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-dashboard-cta,
  .create-dashboard-pill,
  .tracker-dashboard-pill,
  .boards-dashboard-pill {
    justify-content: center;
    width: 100%;
  }

  .home-dashboard-art,
  .home-dashboard-hero-side,
  .boards-dashboard-art,
  .create-dashboard-hero-art,
  .tracker-dashboard-hero-art,
  .guide-dashboard-hero-art {
    min-height: 150px;
  }

  .home-dashboard-card,
  .home-dashboard-panel {
    min-height: 0;
  }

  .home-dashboard-card-link,
  .home-dashboard-footer-link,
  .guide-dashboard-button {
    min-height: 46px;
  }

  .boards-dashboard .pool-gallery {
    gap: 14px;
  }

  .boards-dashboard .pool-card {
    min-height: 0;
  }

  .boards-dashboard .pool-thumb {
    aspect-ratio: 1.45 / 1;
  }

  .pool-pagination {
    justify-content: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .pool-pagination button,
  .pool-page-size,
  .pool-page-size select {
    width: 100%;
  }

  .pool-page-size {
    justify-content: space-between;
  }

  .pool-screen {
    gap: 14px;
  }

  .pool-screen .hero-badge,
  .profile-hero,
  .profile-upload-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .pool-screen #poolHeroTitle {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    letter-spacing: 0;
  }

  .team-showcase {
    min-height: 0;
  }

  .team-showcase-line {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .team-logo-badge {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .team-inline-score {
    min-width: 48px;
    min-height: 48px;
    font-size: 1.7rem;
  }

  .matchup-versus {
    min-height: 46px;
    min-width: 100%;
  }

  .board-meta-strip,
  .board-actions,
  .tracker-board-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .board-actions button,
  .tracker-board-actions button {
    width: 100%;
  }

  .board-table {
    min-width: 640px;
  }

  .board-table th,
  .board-table td {
    width: 58px;
    min-width: 58px;
    height: 58px;
  }

  .square-owner {
    font-size: 0.72rem;
    padding: 16px 5px 5px;
  }

  .winner-grid,
  .entry-stats,
  .payout-grid {
    grid-template-columns: 1fr;
  }

  .host-tools-drawer {
    inset: 0;
    max-height: 100dvh;
    border-radius: 0;
  }

  .host-tools-drawer.is-open {
    padding-top: 62px;
  }

  #openHostToolsButton.is-open {
    top: 10px;
    right: 10px;
  }

  .host-tools-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .host-tab-button {
    flex: initial;
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.82rem;
  }

  .host-summary-card,
  .host-settings-panel {
    border-radius: 18px;
  }

  .tracker-name-modal {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 16px;
    border-radius: 22px;
  }

  .tracker-name-modal-head,
  .tracker-name-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .chat-panel {
    left: 0;
    right: 0;
    bottom: 72px;
    height: calc(100dvh - 72px);
    border-radius: 22px 22px 0 0;
  }

  .chat-panel-head {
    padding: 14px;
  }

  .chat-panel-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .chat-panel-copy h3 {
    font-size: 1.2rem;
  }

  .chat-message-stack {
    max-width: 92%;
  }

  .chat-form {
    grid-template-columns: minmax(0, 1fr) 48px;
    padding: 10px;
  }

  .chat-form textarea {
    min-height: 48px;
  }

  .chat-send-button {
    width: 48px;
    height: 48px;
  }

  .chat-launcher {
    min-width: 88px;
    min-height: 56px;
    padding: 0 18px;
  }

  .feedback-launcher {
    min-width: 112px;
    min-height: 54px;
    padding: 0 16px;
  }

  .chat-launcher-label {
    display: inline;
  }

  .scores-dashboard-summary {
    overflow: hidden;
  }

  .scores-summary-card {
    grid-template-columns: 44px 1fr;
    padding: 14px;
  }

  .score-card-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .score-card-team {
    grid-template-columns: auto 1fr auto;
    width: 100%;
  }

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

@media (max-width: 420px) {
  .dashboard-screen {
    padding: 6px;
  }

  .topbar,
  .home-dashboard,
  .boards-dashboard,
  .create-dashboard,
  .tracker-dashboard,
  .scores-dashboard,
  .guide-dashboard,
  .profile-page {
    border-radius: 18px;
  }

  .app-title {
    font-size: 1.1rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav-link,
  .nav-group-toggle {
    font-size: 0.84rem;
  }

  .home-dashboard-hero-copy h1,
  .boards-dashboard-copy h2,
  .create-dashboard-hero-copy h2,
  .tracker-dashboard-hero-copy h2,
  .scores-dashboard-head h2,
  .guide-dashboard-head h2,
  .profile-page-header h2 {
    font-size: 2rem;
  }

  .home-dashboard-hero,
  .home-dashboard-card,
  .home-dashboard-panel,
  .boards-dashboard-hero,
  .boards-dashboard-section,
  .create-dashboard-hero,
  .create-dashboard-card,
  .create-dashboard-sidecard,
  .tracker-dashboard-hero,
  .tracker-dashboard-card,
  .tracker-dashboard-sidecard,
  .scores-dashboard-filterbar,
  .scores-dashboard-summary,
  .score-card,
  .guide-dashboard-hero,
  .guide-dashboard-card,
  .guide-dashboard-tips,
  .profile-card,
  .pool-screen .hero,
  .pool-screen .board-panel,
  .pool-screen .panel:not(.chat-panel):not(.host-tools-drawer),
  .pool-summary-card {
    padding: 14px;
  }

  .board-table {
    min-width: 600px;
  }

  .board-table th,
  .board-table td {
    width: 54px;
    min-width: 54px;
    height: 54px;
  }

  .square-owner {
    font-size: 0.68rem;
  }

  .scores-summary-icon {
    width: 38px;
    height: 38px;
  }

  .profile-avatar-grid {
    grid-template-columns: 1fr;
  }
}

/* iPhone-first landing and home refinement */
@media (max-width: 760px) {
  .auth-screen {
    display: flex;
    flex-direction: column;
    min-height: auto;
    gap: 14px;
    padding: 10px;
    border-radius: 24px;
  }

  .landing-hero {
    width: 100%;
    min-width: 0;
    min-height: 0;
    gap: 12px;
    padding: 2px 2px 0;
  }

  .landing-brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .shield-mark {
    width: 58px;
    height: 64px;
    flex: 0 0 auto;
  }

  .landing-brand-overline {
    margin: 0 0 5px;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .landing-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.15rem);
    line-height: 1;
    letter-spacing: 0;
  }

  .landing-copy {
    max-width: none;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .landing-feature-pills {
    display: none;
  }

  .landing-showcase,
  .landing-value-grid,
  .landing-footer-bar {
    display: none;
  }

  .landing-auth-panel {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 0;
    padding: 16px;
    border-radius: 22px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
  }

  .landing-auth-copy h2 {
    font-size: 1.55rem;
    line-height: 1.05;
  }

  .landing-auth-copy p {
    margin-top: 5px;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .landing-auth-tabs {
    margin-bottom: 16px;
    padding-bottom: 8px;
  }

  .landing-auth-form {
    gap: 12px;
  }

  .landing-auth-panel .field input,
  .landing-auth-submit,
  .landing-auth-secondary {
    min-height: 50px;
  }

  .landing-auth-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .landing-auth-check {
    width: 100%;
    justify-content: flex-start;
  }

  .landing-auth-check span {
    white-space: nowrap;
  }

  .landing-forgot {
    align-self: flex-start;
  }

  .home-dashboard {
    padding: 10px;
    gap: 12px;
    border-radius: 22px;
  }

  .home-dashboard-hero {
    min-height: 0;
    padding: 18px;
    gap: 14px;
    border-radius: 22px;
  }

  .home-dashboard-hero::before,
  .home-dashboard-hero::after {
    opacity: 0.45;
  }

  .home-dashboard-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .home-dashboard-hero-copy h1 {
    font-size: clamp(2.15rem, 11vw, 3rem);
    line-height: 1.02;
    letter-spacing: 0;
  }

  .home-dashboard-hero-lead {
    max-width: none;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .home-dashboard-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .home-dashboard-cta {
    width: 100%;
    min-height: 50px;
    justify-content: center;
  }

  .home-dashboard-hero-side {
    display: none;
  }

  .home-dashboard-head {
    padding: 0;
    gap: 10px;
  }

  .home-dashboard-head h2 {
    font-size: 1.55rem;
    line-height: 1.05;
  }

  .home-dashboard-filter {
    width: 100%;
    min-height: 42px;
    justify-content: center;
  }

  .home-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "pools"
      "create"
      "tracker"
      "scores"
      "guide"
      "activity"
      "quick";
    gap: 12px;
  }

  .home-dashboard-card,
  .home-dashboard-panel {
    min-height: 0;
    padding: 16px;
    gap: 12px;
    border-radius: 20px;
  }

  .home-dashboard-card {
    grid-template-rows: auto auto auto;
  }

  .home-dashboard-card-top {
    margin-bottom: 0;
  }

  .home-dashboard-art {
    display: none;
  }

  .home-dashboard-card-copy h3 {
    font-size: 1.32rem;
    line-height: 1.08;
  }

  .home-dashboard-card-copy p {
    margin-top: 6px;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .home-dashboard-card-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
  }

  .home-dashboard-card-stats strong {
    font-size: 1.2rem;
  }

  .home-dashboard-card-link,
  .home-dashboard-footer-link {
    min-height: 46px;
    justify-content: center;
  }

  .home-dashboard-panel-head {
    align-items: center;
    gap: 10px;
  }

  .home-dashboard-quick-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }
}

@media (max-width: 420px) {
  .auth-screen {
    padding: 8px;
    border-radius: 20px;
  }

  .landing-feature-pills {
    grid-template-columns: 1fr;
  }

  .landing-auth-panel {
    padding: 14px;
    border-radius: 20px;
  }

  .landing-auth-copy h2,
  .home-dashboard-head h2 {
    font-size: 1.42rem;
  }

  .home-dashboard-card-stats {
    grid-template-columns: 1fr;
  }
}

/* Premium sticky mobile header */
@media (max-width: 900px) {
  html {
    scroll-padding-top: 84px;
  }

  .dashboard-screen {
    padding-top: 8px;
  }

  .topbar {
    top: 6px;
    min-height: 64px;
    padding: 8px 10px 8px 12px;
    border-radius: 20px;
    background:
      linear-gradient(180deg, rgba(5, 18, 40, 0.9), rgba(5, 18, 40, 0.82)),
      rgba(5, 18, 40, 0.82);
    border-color: rgba(151, 197, 255, 0.22);
    box-shadow:
      0 14px 28px rgba(2, 8, 18, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
  }

  .nav-brand {
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
  }

  .nav-brand .football-mark.small {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .app-title {
    max-width: 11rem;
    font-size: 1.12rem;
    line-height: 1.05;
  }

  .mobile-menu-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
      rgba(9, 27, 55, 0.86);
  }

  .topbar.is-mobile-menu-open {
    border-radius: 22px;
  }

  .topbar.is-mobile-menu-open .site-nav {
    padding-top: 12px;
  }
}

.dashboard-screen {
  overflow: visible;
}

.page-shell,
.app-frame {
  overflow: visible;
}

@media (max-width: 420px) {
  .topbar {
    min-height: 60px;
    padding: 7px 8px 7px 10px;
    border-radius: 18px;
  }

  .nav-brand .football-mark.small {
    width: 38px;
    height: 38px;
  }

  .app-title {
    max-width: 8.5rem;
    font-size: 1rem;
  }

  .mobile-menu-button {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
}

/* Compact profile avatar picker */
.profile-avatar-grid {
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}

.profile-page .avatar-preset {
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 72px;
}

@media (max-width: 640px) {
  .profile-avatar-grid,
  .profile-page .profile-avatar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tablet polish for iPad-sized screens */
@media (min-width: 700px) and (max-width: 1180px) {
  .page-shell {
    padding: 14px;
  }

  .auth-screen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    align-items: start;
    gap: 18px;
    min-height: auto;
    padding: 18px;
  }

  .landing-hero {
    min-height: 0;
    gap: 14px;
    padding: 4px;
  }

  .landing-hero h1 {
    font-size: clamp(2.45rem, 5.4vw, 4rem);
    line-height: 0.98;
  }

  .landing-copy {
    max-width: 42rem;
  }

  .landing-showcase,
  .landing-value-grid,
  .landing-footer-bar {
    display: none;
  }

  .landing-auth-panel {
    align-self: start;
    max-width: none;
    min-height: 0;
  }

  .dashboard-screen,
  .auth-screen {
    border-radius: 26px;
  }

  .dashboard-screen {
    padding: 14px;
  }

  .home-dashboard,
  .boards-dashboard,
  .create-dashboard,
  .tracker-dashboard,
  .scores-dashboard,
  .guide-dashboard,
  .profile-page {
    padding: 16px;
    gap: 16px;
    border-radius: 24px;
  }

  .home-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "pools create"
      "tracker scores"
      "guide guide"
      "activity quick";
    gap: 14px;
  }

  .home-dashboard-card,
  .home-dashboard-panel {
    min-height: 0;
    padding: 18px;
    border-radius: 22px;
  }

  .home-dashboard-card--scoreboard,
  .home-dashboard-card--guide {
    min-height: 280px;
  }

  .home-dashboard-art {
    min-height: 160px;
  }

  .home-dashboard-card-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .boards-dashboard .pool-gallery,
  .scores-dashboard-summary,
  .profile-avatar-grid,
  .profile-page .profile-avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .create-dashboard-layout,
  .tracker-dashboard-layout,
  .scores-dashboard-layout,
  .profile-page-grid,
  .guide-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .create-dashboard-grid.two-up,
  .tracker-dashboard-grid.two-up,
  .host-settings-payout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pool-dashboard-layout,
  .lower-panels {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 22px;
  }

  .app-title {
    font-size: 1.28rem;
    letter-spacing: 0;
  }

  .site-nav {
    gap: 4px;
  }

  .nav-link,
  .nav-group-toggle {
    min-height: 40px;
    padding: 8px 9px;
    gap: 6px;
    font-size: 0.82rem;
  }

  .account-chip {
    padding: 7px 9px;
  }

  .account-chip strong {
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .account-logout {
    min-height: 40px;
    padding: 8px 10px;
  }
}

/* Final sticky-header guard across responsive breakpoints */
.page-shell,
.app-frame,
.dashboard-screen {
  overflow: visible !important;
}

.topbar {
  position: sticky !important;
  top: 14px;
  z-index: 80;
}

@media (max-width: 900px) {
  .topbar {
    top: 6px;
  }
}

/* Sports Pool HQ landing redesign */
.auth-screen {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: clamp(24px, 3vw, 46px);
  align-items: start;
  padding: clamp(22px, 3vw, 40px);
  border-radius: 36px;
  border: 1px solid rgba(88, 156, 255, 0.22);
  background:
    radial-gradient(circle at 16% 23%, rgba(94, 178, 255, 0.34), transparent 7%),
    radial-gradient(circle at 11% 25%, rgba(94, 178, 255, 0.26), transparent 6%),
    radial-gradient(circle at 8% 29%, rgba(94, 178, 255, 0.2), transparent 5%),
    radial-gradient(circle at 48% 0%, rgba(31, 116, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(5, 16, 31, 0.94), rgba(2, 9, 18, 0.98)),
    linear-gradient(145deg, #06172d, #030812 66%, #06182a);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255,255,255,0.05);
}

.auth-screen::before {
  background:
    radial-gradient(ellipse at 24% 88%, rgba(30, 123, 80, 0.38), transparent 24%),
    linear-gradient(180deg, transparent 66%, rgba(8, 45, 50, 0.34) 100%);
}

.landing-hero {
  min-height: 0;
  padding: 0;
  gap: clamp(18px, 2vw, 28px);
}

.sports-brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sports-hq-mark {
  position: relative;
  width: 104px;
  height: 116px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 94% 18%, 86% 80%, 50% 100%, 14% 80%, 6% 18%);
  background: linear-gradient(180deg, #edf7ff, #2e8fff);
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.3));
}

.sports-hq-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  clip-path: inherit;
  background: linear-gradient(180deg, #071831, #0d2746 72%, #061426);
}

.sports-hq-mark::after {
  content: "* *";
  position: absolute;
  top: 25px;
  color: #ffffff;
  font-size: 0.9rem;
  letter-spacing: 0.32em;
}

.sports-hq-mark span {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-family: "Impact", "Segoe UI Black", sans-serif;
  font-size: 2.35rem;
  letter-spacing: 0.04em;
}

.sports-brand-name {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 3.05rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sports-brand-name strong {
  color: #2e8fff;
}

.sports-brand-copy small {
  display: block;
  margin-top: 8px;
  color: rgba(211, 225, 244, 0.72);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sports-hero-copy h1 {
  margin: 0;
  font-family: "Impact", "Aptos Display", "Segoe UI Black", sans-serif;
  font-size: clamp(4.2rem, 7.4vw, 8.6rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sports-hero-copy h1 span,
.sports-hero-copy h1 strong {
  display: block;
}

.sports-hero-copy h1 span {
  color: #ffffff;
  text-shadow: 0 12px 28px rgba(0,0,0,0.32);
}

.sports-hero-copy h1 strong {
  color: #247dff;
  text-shadow: 0 0 28px rgba(36, 125, 255, 0.28);
}

.sports-hero-copy p {
  max-width: 900px;
  margin: 16px 0 0;
  color: rgba(231, 241, 252, 0.9);
  font-size: clamp(1rem, 1vw, 1.35rem);
  line-height: 1.5;
}

.sports-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.sports-hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(61, 148, 255, 0.34);
  background: rgba(4, 14, 28, 0.62);
  color: rgba(239, 246, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.sports-hero-chips i {
  color: #35a7ff;
  font-style: normal;
  font-weight: 950;
}

.sports-product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 12px;
  align-items: stretch;
}

.sports-board-card,
.sports-live-card,
.sports-payout-card,
.sports-feature-grid article,
.sports-footer-strip {
  border: 1px solid rgba(47, 146, 255, 0.45);
  background: linear-gradient(180deg, rgba(3, 13, 27, 0.84), rgba(3, 11, 22, 0.7));
  box-shadow: 0 0 0 1px rgba(47, 146, 255, 0.12), 0 22px 44px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.05);
}

.sports-board-card {
  padding: 16px;
  border-radius: 18px;
}

.sports-product-kicker {
  margin: 0 0 10px;
  color: rgba(211, 225, 244, 0.6);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sports-product-kicker span {
  color: #3ebdff;
}

.sports-board-frame {
  position: relative;
  padding: 30px 18px 8px 46px;
  border-radius: 15px;
  border: 1px solid rgba(130, 177, 255, 0.2);
  background: rgba(4, 15, 30, 0.66);
}

.sports-board-axis-top,
.sports-board-axis-side {
  position: absolute;
  color: #3ebdff;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sports-board-axis-top {
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
}

.sports-board-axis-side {
  left: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
}

.sports-board-top-digits,
.sports-board-grid {
  display: grid;
  grid-template-columns: 24px repeat(10, minmax(22px, 1fr));
  gap: 5px;
}

.sports-board-top-digits {
  margin-bottom: 5px;
}

.sports-board-top-digits strong,
.sports-board-grid small {
  display: grid;
  place-items: center;
  color: rgba(231, 241, 252, 0.82);
  font-size: 0.76rem;
  font-weight: 900;
}

.sports-board-grid span {
  min-height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 231, 255, 0.22);
  border-radius: 2px;
  color: #eaf6ff;
  font-size: 0.62rem;
  font-weight: 950;
  background: rgba(255,255,255,0.03);
}

.sports-board-grid span.is-taken {
  border-color: rgba(47, 146, 255, 0.78);
  background: linear-gradient(180deg, rgba(45, 142, 255, 0.9), rgba(22, 76, 169, 0.86));
  box-shadow: 0 0 18px rgba(47, 146, 255, 0.5);
}

.sports-board-legend {
  display: flex;
  gap: 18px;
  margin: 8px 0 0 24px;
  color: rgba(211, 225, 244, 0.72);
  font-size: 0.82rem;
}

.sports-board-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sports-board-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: #247dff;
}

.sports-board-legend span:last-child i {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(217, 231, 255, 0.22);
}

.sports-product-side {
  display: grid;
  gap: 10px;
}

.sports-live-card,
.sports-payout-card {
  border-radius: 14px;
  padding: 16px;
}

.sports-live-head,
.sports-live-score,
.sports-payout-card div,
.sports-payout-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sports-live-head strong {
  margin-right: auto;
  color: #5df6aa;
  text-transform: uppercase;
}

.sports-live-head span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #24e89b;
  box-shadow: 0 0 12px rgba(36, 232, 155, 0.8);
}

.sports-live-head small,
.sports-payout-card span {
  color: rgba(231, 241, 252, 0.76);
}

.sports-live-score {
  margin-top: 14px;
}

.sports-live-score div {
  display: grid;
  gap: 4px;
}

.sports-live-score small {
  color: #ffffff;
  font-weight: 900;
}

.sports-live-score strong {
  color: #ffffff;
  font-size: 3.2rem;
  line-height: 1;
}

.sports-live-score > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(231, 241, 252, 0.78);
  font-size: 0.72rem;
  font-weight: 900;
}

.sports-live-card p {
  margin: 10px 0 0;
  color: rgba(231, 241, 252, 0.8);
  text-align: center;
}

.sports-payout-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sports-payout-card div,
.sports-payout-card footer {
  padding: 7px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sports-payout-card strong {
  color: #f6fbff;
  font-size: 1.1rem;
}

.sports-payout-card em {
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #3ff4ff;
  border: 1px solid rgba(63, 244, 255, 0.34);
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.sports-payout-card footer strong {
  color: #2e9bff;
  font-size: 1.45rem;
}

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

.sports-feature-grid article {
  min-height: 160px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-radius: 14px;
}

.sports-feature-grid i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(47, 146, 255, 0.2);
  color: #45bcff;
  box-shadow: 0 0 22px rgba(47, 146, 255, 0.24);
  font-style: normal;
  font-weight: 950;
}

.sports-feature-grid strong {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sports-feature-grid p {
  margin: 0;
  color: rgba(211, 225, 244, 0.76);
  font-size: 0.9rem;
  line-height: 1.45;
}

.sports-footer-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 14px;
}

.sports-footer-strip > span {
  color: #2e9bff;
  font-size: 2rem;
}

.sports-footer-strip strong {
  display: block;
  color: #eaf4ff;
  font-size: 1.15rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sports-footer-strip small {
  color: rgba(211, 225, 244, 0.75);
}

.sports-footer-strip b {
  color: #2e9bff;
}

.landing-auth-panel {
  margin-top: 0;
  align-self: start;
  border-radius: 28px;
  border-color: rgba(88, 156, 255, 0.32);
  background: linear-gradient(180deg, rgba(8, 23, 44, 0.94), rgba(2, 9, 18, 0.96));
  box-shadow: 0 24px 64px rgba(0,0,0,0.38), 0 0 0 1px rgba(47,146,255,0.08) inset;
}

/* Sitewide Sports Pool HQ logo */
.football-mark,
.sports-hq-mark {
  clip-path: none;
  border-radius: 0;
  background: url("./favicon.svg") center / contain no-repeat;
  box-shadow: none;
  transform: none;
  filter: drop-shadow(0 16px 26px rgba(0,0,0,0.3));
}

.football-mark {
  width: 82px;
  height: 82px;
}

.football-mark.small {
  width: 54px;
  height: 54px;
  border-radius: 0;
}

.nav-brand .football-mark.small {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.28));
}

.sports-hq-mark {
  width: 110px;
  height: 110px;
}

.football-mark::before,
.football-mark::after,
.football-mark span,
.football-mark span::before,
.football-mark span::after,
.sports-hq-mark::before,
.sports-hq-mark::after,
.sports-hq-mark span {
  display: none;
}

@media (max-width: 1280px) {
  .auth-screen {
    grid-template-columns: 1fr;
  }

  .landing-auth-panel {
    width: min(100%, 520px);
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .auth-screen {
    padding: 16px;
    border-radius: 26px;
  }

  .nav-brand .football-mark.small {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .sports-brand-lockup {
    align-items: center;
  }

  .sports-hq-mark {
    width: 76px;
    height: 86px;
  }

  .sports-hero-copy h1 {
    font-size: clamp(3rem, 14vw, 5.4rem);
  }

  .sports-product-showcase {
    grid-template-columns: 1fr;
  }

  .sports-feature-grid {
    grid-template-columns: 1fr;
  }

  .sports-board-frame {
    padding-left: 34px;
  }

  .sports-board-top-digits,
  .sports-board-grid {
    grid-template-columns: 18px repeat(10, minmax(17px, 1fr));
    gap: 3px;
  }

  .sports-board-grid span {
    min-height: 18px;
    font-size: 0.52rem;
  }

  .sports-footer-strip {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .sports-brand-copy small,
  .sports-product-side {
    display: none;
  }

  .sports-brand-name {
    font-size: 1.7rem;
  }

  .sports-hero-chips {
    display: grid;
  }

  .sports-footer-strip {
    display: none;
  }
}
