:root {
  color-scheme: dark;
  --surface-0: #08111a;
  --surface-1: #0d1923;
  --surface-2: #122330;
  --surface-3: #17313e;
  --surface-4: #214454;
  --ink: #f1f7fb;
  --ink-soft: #9db1c1;
  --teal: #52c6c8;
  --teal-strong: #1f8c96;
  --coral: #f0835f;
  --line: rgba(157, 177, 193, 0.16);
  --shadow: 0 22px 52px rgba(0, 0, 0, 0.38);
  --radius: 20px;
  --position-c: #56b6ff;
  --position-c-soft: rgba(86, 182, 255, 0.16);
  --position-w: #ffb84d;
  --position-w-soft: rgba(255, 184, 77, 0.16);
  --position-d: #71d38a;
  --position-d-soft: rgba(113, 211, 138, 0.16);
  --position-g: #c68cff;
  --position-g-soft: rgba(198, 140, 255, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(240, 131, 95, 0.16), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(82, 198, 200, 0.15), transparent 22%),
    linear-gradient(145deg, var(--surface-0) 0%, var(--surface-1) 42%, #071019 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(rgba(82, 198, 200, 0.08), rgba(82, 198, 200, 0.08)) center/100% 1px no-repeat,
    linear-gradient(90deg, rgba(157, 177, 193, 0.06), rgba(157, 177, 193, 0.06)) center/1px 100% no-repeat;
  opacity: 0.45;
}

body::after {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 20%),
    radial-gradient(circle at 80% 25%, rgba(82, 198, 200, 0.08), transparent 18%);
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.page-shell {
  width: min(980px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0 22px;
}

.hero {
  display: grid;
  gap: 10px;
  align-items: end;
  grid-template-columns: 1.4fr 1fr;
  margin-bottom: 12px;
}

.brand-lockup {
  display: block;
}

.brand-logo {
  width: min(100%, 460px);
  height: auto;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.eyebrow,
.panel-kicker,
.team-label,
.result-slot {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.62rem;
  color: var(--teal);
}

.panel-header h2,
.result-header h3,
.team-card h3,
.lineup-slot h3,
.result-item h4,
.candidate-card h3,
.share-card h4 {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.02em;
}

.hero-text {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

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

.summary-chip {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(23, 49, 62, 0.86);
  border: 1px solid rgba(157, 177, 193, 0.1);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  color: var(--ink);
}

.summary-action {
  appearance: none;
  cursor: pointer;
  background: linear-gradient(140deg, rgba(240, 131, 95, 0.18), rgba(23, 49, 62, 0.94));
  border-color: rgba(240, 131, 95, 0.28);
  box-shadow: inset 0 0 0 1px rgba(240, 131, 95, 0.08);
  color: #ffe3d8;
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.summary-action:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 131, 95, 0.46);
  background: linear-gradient(140deg, rgba(240, 131, 95, 0.26), rgba(27, 56, 72, 0.96));
}

.layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 0 2px;
  color: rgba(157, 177, 193, 0.82);
  font-size: 0.72rem;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(157, 177, 193, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 35, 48, 0.96), rgba(13, 25, 35, 0.96));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82, 198, 200, 0.14), transparent 70%);
}

.panel-header,
.result-header,
.slot-topline,
.result-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-header h2,
.result-header h3 {
  margin: 4px 0 0;
  font-size: 1.4rem;
}

.ghost-button {
  padding: 8px 11px;
  border: 1px solid rgba(157, 177, 193, 0.16);
  border-radius: 999px;
  background: rgba(23, 49, 62, 0.95);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ghost-button:hover,
.action-button:hover,
.candidate-card:hover {
  transform: translateY(-2px);
}

.prompt-actions {
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.action-button {
  padding: 9px 13px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(140deg, rgba(31, 140, 150, 0.96), rgba(18, 35, 48, 0.96));
  color: white;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
  font-size: 0.82rem;
  font-weight: 600;
}

.action-button[disabled],
.ghost-button[disabled] {
  opacity: 0.65;
  cursor: default;
}

.secondary-action {
  padding: 9px 13px;
  font-size: 0.8rem;
}

.lineup-board {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.lineup-slot,
.team-card,
.status-banner,
.result-item,
.candidate-card {
  animation: rise 220ms ease;
}

.lineup-slot {
  position: relative;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(23, 49, 62, 0.76);
}

.lineup-slot.current,
.lineup-slot.open {
  border-color: rgba(82, 198, 200, 0.4);
  box-shadow: inset 0 0 0 1px rgba(82, 198, 200, 0.18);
}

.lineup-slot.locked {
  background: linear-gradient(145deg, rgba(25, 53, 69, 0.96), rgba(14, 30, 40, 0.98));
  color: white;
}

.slot-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--coral);
  color: white;
  font-weight: 700;
  font-size: 0.72rem;
}

.slot-badge.position-c,
.candidate-position.position-c,
.share-slot-pill.position-c {
  background: var(--position-c-soft);
  color: var(--position-c);
}

.slot-badge.position-w,
.candidate-position.position-w,
.share-slot-pill.position-w {
  background: var(--position-w-soft);
  color: var(--position-w);
}

.slot-badge.position-d,
.candidate-position.position-d,
.share-slot-pill.position-d {
  background: var(--position-d-soft);
  color: var(--position-d);
}

.slot-badge.position-g,
.candidate-position.position-g,
.share-slot-pill.position-g {
  background: var(--position-g-soft);
  color: var(--position-g);
}

.lineup-slot.position-c,
.candidate-card.position-c,
.share-slot-row.position-c {
  border-color: rgba(86, 182, 255, 0.22);
}

.lineup-slot.position-w,
.candidate-card.position-w,
.share-slot-row.position-w {
  border-color: rgba(255, 184, 77, 0.22);
}

.lineup-slot.position-d,
.candidate-card.position-d,
.share-slot-row.position-d {
  border-color: rgba(113, 211, 138, 0.22);
}

.lineup-slot.position-g,
.candidate-card.position-g,
.share-slot-row.position-g {
  border-color: rgba(198, 140, 255, 0.22);
}

.slot-label,
.slot-empty,
.picked-player p,
.team-subtitle,
.turn-indicator,
.result-note,
.result-item p,
.result-stats {
  color: var(--ink-soft);
}

.slot-label {
  font-size: 0.74rem;
}

.lineup-slot.locked .slot-label,
.lineup-slot.locked .picked-player p,
.lineup-slot.locked .slot-topline {
  color: rgba(255, 255, 255, 0.85);
}

.picked-player {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}

.picked-player img,
.result-player img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.picked-player h3,
.result-item h4 {
  margin: 0 0 2px;
  font-size: 0.9rem;
}

.picked-player p,
.slot-empty,
.team-subtitle,
.candidate-meta,
.result-item p,
.result-stats,
.turn-indicator {
  font-size: 0.78rem;
}

.status-banner {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(31, 140, 150, 0.14);
  color: var(--ink);
}

.status-banner.error {
  background: rgba(240, 131, 95, 0.18);
}

.turn-indicator {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(23, 49, 62, 0.9);
  border: 1px solid rgba(157, 177, 193, 0.1);
}

.team-roll {
  margin-top: 10px;
}

.result-panel {
  margin-top: 6px;
}

.candidate-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.filter-chip {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(157, 177, 193, 0.12);
  background: rgba(17, 33, 45, 0.92);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.filter-chip.active {
  background: rgba(82, 198, 200, 0.16);
  border-color: rgba(82, 198, 200, 0.4);
  color: #cfffff;
}

.filter-chip[disabled] {
  opacity: 0.38;
  cursor: default;
}

.team-card {
  padding: 14px;
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(82, 198, 200, 0.16), transparent 28%),
    linear-gradient(140deg, rgba(16, 34, 45, 0.98), rgba(25, 53, 69, 0.98));
  color: white;
  border: 1px solid rgba(157, 177, 193, 0.1);
}

.compact-card {
  min-height: 112px;
}

.team-card h3,
.result-callout h3 {
  margin: 6px 0 4px;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
}

.team-card .team-label,
.team-card .team-subtitle,
.historical-note {
  color: rgba(255, 255, 255, 0.82);
}

.shuffling {
  position: relative;
  overflow: hidden;
}

.shuffle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.shuffle-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(238, 247, 251, 0.14);
  border: 1px solid rgba(238, 247, 251, 0.16);
  color: #f4fbff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shuffling::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.18) 50%, transparent 80%);
  animation: shuffleSweep 1100ms linear infinite;
}

.shuffle-reel,
.team-reveal {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.shuffling .shuffle-reel {
  animation: shuffleFloat 420ms ease-in-out infinite alternate;
}

.shuffle-logo-shell {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.shuffle-logo,
.team-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(238, 247, 251, 0.95);
  padding: 9px;
  box-shadow: inset 0 0 0 1px rgba(17, 39, 58, 0.08);
}

.shuffle-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  padding: 7px;
  animation: shufflePulse 420ms ease-in-out infinite alternate;
}

.shuffle-open-slots {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
}

.candidate-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 10px;
}

.candidate-empty-state {
  padding: 14px;
  border-radius: 13px;
  border: 1px dashed rgba(157, 177, 193, 0.14);
  background: rgba(15, 30, 40, 0.72);
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.candidate-card {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 9px;
  background: rgba(15, 30, 40, 0.98);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.candidate-card img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(33, 68, 84, 0.9), rgba(9, 18, 26, 0.9));
}

.candidate-card:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.candidate-body {
  min-width: 0;
}

.candidate-topline,
.candidate-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.candidate-topline {
  justify-content: space-between;
}

.candidate-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.candidate-team {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--teal);
}

.candidate-position,
.candidate-meta {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.candidate-tier,
.candidate-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 700;
}

.candidate-tier {
  min-width: 44px;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.candidate-tier.tier-1 {
  background: rgba(255, 205, 96, 0.16);
  color: #ffd785;
}

.candidate-tier.tier-2 {
  background: rgba(120, 218, 255, 0.14);
  color: #9fe8ff;
}

.candidate-tier.tier-3 {
  background: rgba(124, 236, 168, 0.14);
  color: #8ff0b9;
}

.candidate-tier.tier-4 {
  background: rgba(196, 176, 255, 0.14);
  color: #ccbfff;
}

.candidate-tier.tier-5 {
  background: rgba(157, 177, 193, 0.12);
  color: #c2cfda;
}

.candidate-position {
  background: rgba(82, 198, 200, 0.16);
  color: #cfffff;
}

.candidate-card h3 {
  margin: 2px 0;
  font-size: 0.94rem;
  line-height: 1;
  color: var(--ink);
}

.candidate-meta {
  margin: 0 0 5px;
}

.candidate-stats span {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(82, 198, 200, 0.08);
  border: 1px solid rgba(157, 177, 193, 0.08);
  font-size: 0.66rem;
  color: var(--ink-soft);
}

.result-header {
  align-items: end;
  padding: 8px 0 4px;
}

.result-score {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.05rem;
  line-height: 1;
}

.result-list {
  display: grid;
  gap: 8px;
}

.result-item {
  padding: 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(17, 33, 45, 0.92);
}

.result-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.76rem;
}

.result-stats span {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(82, 198, 200, 0.08);
  border: 1px solid rgba(157, 177, 193, 0.08);
}

.result-note {
  margin-bottom: 0;
  color: var(--coral);
}

.historical-note,
.result-record {
  margin: 0;
  font-size: 0.76rem;
}

.result-summary-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.result-record {
  color: var(--ink-soft);
}

.scorecard-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}

.scorecard-total-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(82, 198, 200, 0.08);
  border: 1px solid rgba(82, 198, 200, 0.18);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.share-card-subtitle,
.share-slot-meta {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.share-card {
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(157, 177, 193, 0.1);
  background:
    radial-gradient(circle at top right, rgba(82, 198, 200, 0.14), transparent 28%),
    linear-gradient(145deg, rgba(18, 35, 48, 0.98), rgba(10, 22, 31, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.share-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.share-card h4 {
  margin: 3px 0;
  font-size: 1.18rem;
  color: var(--ink);
}

.share-brand-row {
  display: block;
}

.share-brand-logo {
  width: min(100%, 230px);
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.share-card-subtitle {
  margin: 0;
}

.share-grade-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.share-grade-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(82, 198, 200, 0.12);
  border: 1px solid rgba(82, 198, 200, 0.16);
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.share-score-value {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.6rem;
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.share-score-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.share-card-grid {
  display: grid;
  gap: 5px;
}

.share-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.share-card-url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(157, 177, 193, 0.08);
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.share-slot-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(17, 33, 45, 0.9);
  border: 1px solid rgba(157, 177, 193, 0.08);
}

.share-slot-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(82, 198, 200, 0.14);
  color: #cfffff;
  font-weight: 700;
  font-size: 0.72rem;
}

.share-slot-media {
  position: relative;
  width: 32px;
  height: 28px;
  flex: 0 0 auto;
}

.share-headshot {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
}

.share-team-logo {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 14px;
  height: 14px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(238, 247, 251, 0.96);
  padding: 2px;
  box-shadow: 0 0 0 1px rgba(9, 18, 26, 0.85);
}

.share-slot-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.share-slot-copy strong {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1;
}

.share-slot-meta {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.68rem;
}

.share-slot-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.share-slot-stats span {
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(82, 198, 200, 0.08);
  border: 1px solid rgba(157, 177, 193, 0.08);
  color: var(--ink-soft);
  font-size: 0.62rem;
  line-height: 1;
}

.share-slot-score {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.78rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shuffleSweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes shuffleFloat {
  from {
    transform: translateY(-1px);
    opacity: 0.88;
  }
  to {
    transform: translateY(2px);
    opacity: 1;
  }
}

@keyframes shufflePulse {
  from {
    transform: scale(0.95);
    opacity: 0.86;
  }
  to {
    transform: scale(1.01);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .hero,
  .layout {
    grid-template-columns: 1fr;
  }

  .hero-summary {
    justify-content: flex-start;
  }

  .site-footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 14px, 100%);
    padding-top: 10px;
    padding-bottom: 14px;
  }

  .panel {
    padding: 11px;
  }

  .hero {
    gap: 6px;
    margin-bottom: 8px;
  }

  .brand-logo {
    width: min(100%, 320px);
  }

  .hero-text {
    display: none;
  }

  .hero-summary {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .hero-summary::-webkit-scrollbar {
    display: none;
  }

  .summary-chip {
    white-space: nowrap;
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  .site-footer {
    margin-top: 10px;
    gap: 6px 12px;
    font-size: 0.64rem;
  }

  .layout {
    gap: 10px;
  }

  .panel-header,
  .result-header,
  .result-player {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .panel-header h2,
  .result-header h3 {
    font-size: 1.18rem;
  }

  .lineup-panel .panel-header {
    gap: 6px;
  }

  .lineup-board {
    grid-auto-flow: column;
    grid-auto-columns: minmax(142px, 1fr);
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    margin-top: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }

  .lineup-board::-webkit-scrollbar {
    display: none;
  }

  .lineup-slot {
    min-height: 84px;
    padding: 8px;
    scroll-snap-align: start;
  }

  .slot-topline {
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .slot-badge {
    flex: 0 0 24px;
  }

  .slot-label {
    min-width: 0;
    white-space: nowrap;
    font-size: 0.68rem;
  }

  .picked-player {
    gap: 6px;
    margin-top: 6px;
  }

  .picked-player img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .picked-player h3 {
    font-size: 0.78rem;
  }

  .picked-player p,
  .slot-empty {
    font-size: 0.62rem;
  }

  .prompt-actions {
    gap: 5px;
    margin-top: 8px;
  }

  .action-button,
  .ghost-button,
  .secondary-action {
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .turn-indicator {
    padding: 6px 9px;
    font-size: 0.72rem;
  }

  .team-card {
    padding: 12px;
    border-radius: 14px;
  }

  .team-card h3,
  .result-callout h3 {
    font-size: clamp(1.3rem, 8vw, 1.8rem);
  }

  .team-reveal,
  .shuffle-reel {
    grid-template-columns: 60px 1fr;
    gap: 8px;
  }

  .shuffle-header {
    margin-bottom: 7px;
  }

  .shuffle-chip {
    padding: 3px 7px;
    font-size: 0.62rem;
  }

  .shuffle-logo-shell {
    width: 60px;
    height: 60px;
    border-radius: 12px;
  }

  .team-logo,
  .shuffle-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    padding: 7px;
  }

  .shuffle-logo {
    width: 50px;
    height: 50px;
    padding: 6px;
  }

  .candidate-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 8px;
    max-height: min(56vh, 420px);
    overflow-y: auto;
    padding-right: 3px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .candidate-filters {
    gap: 5px;
    margin-top: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .candidate-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    white-space: nowrap;
    padding: 5px 8px;
    font-size: 0.68rem;
  }

  .candidate-card {
    grid-template-columns: 44px 1fr;
    gap: 7px;
    padding: 8px;
  }

  .candidate-card img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .candidate-card h3 {
    font-size: 0.88rem;
  }

  .candidate-meta,
  .candidate-position {
    font-size: 0.68rem;
  }

  .candidate-stats span {
    padding: 3px 5px;
    font-size: 0.62rem;
  }

  .result-summary-stack,
  .share-grade-block {
    align-items: flex-start;
  }

  .result-score {
    font-size: 1.7rem;
  }

  .scorecard-totals {
    gap: 5px;
    margin: 7px 0 9px;
  }

  .scorecard-total-chip {
    min-width: 56px;
    padding: 4px 7px;
    font-size: 0.66rem;
  }

  .share-card {
    padding: 10px;
    border-radius: 12px;
  }

  .share-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    margin-bottom: 7px;
  }

  .share-brand-logo {
    width: min(100%, 180px);
  }

  .share-card-subtitle {
    display: none;
  }

  .share-card-footer {
    margin-top: 7px;
  }

  .share-card-url {
    padding: 3px 7px;
    font-size: 0.58rem;
  }

  .share-grade-pill {
    min-width: 40px;
    padding: 2px 8px;
    font-size: 0.9rem;
  }

  .share-score-value {
    font-size: 2.1rem;
  }

  .share-score-label {
    font-size: 0.62rem;
  }

  .share-slot-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 5px;
    padding: 6px 7px;
    border-radius: 9px;
    align-items: center;
  }

  .share-slot-pill {
    width: 22px;
    height: 22px;
    font-size: 0.66rem;
  }

  .share-slot-media {
    width: 28px;
    height: 24px;
  }

  .share-headshot {
    width: 24px;
    height: 24px;
    border-radius: 8px;
  }

  .share-team-logo {
    width: 12px;
    height: 12px;
    padding: 1px;
  }

  .share-slot-copy strong {
    font-size: 0.76rem;
  }

  .share-slot-meta {
    font-size: 0.62rem;
  }

  .share-slot-stats {
    gap: 3px;
    margin-top: 2px;
  }

  .share-slot-stats span {
    padding: 2px 4px;
    font-size: 0.56rem;
  }

  .share-slot-score {
    font-size: 0.7rem;
  }
}
