/* src/styles.css */
:root {
  color: #1d2433;
  background: #f6f7f3;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}
.app-shell {
  min-height: 100vh;
  padding: 40px 24px;
  background: #f6f7f3;
}
.setup-panel,
.draft-panel {
  width: min(100%, 960px);
  margin: 0 auto;
  border: 1px solid #d7ddd5;
  border-radius: 8px;
  background: #ffffff;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(36, 43, 57, 0.08);
}
.draft-panel {
  width: min(100%, 1180px);
}
.page-header {
  margin-bottom: 32px;
}
.draft-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}
.header-actions {
  display: flex;
  gap: 10px;
}
.draft-header-nav {
  flex: 0 0 148px;
  flex-direction: column;
  align-items: stretch;
}
.eyebrow {
  margin: 0 0 12px;
  color: #246b57;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: 1;
}
h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
p {
  margin: 0;
  color: #46505f;
  font-size: 1.05rem;
  line-height: 1.6;
}
.setup-form {
  display: grid;
  gap: 20px;
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.home-shell {
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(242, 110, 33, 0.13),
      transparent 29%),
    radial-gradient(
      circle at 88% 15%,
      rgba(105, 69, 152, 0.12),
      transparent 30%),
    #eef0ec;
}
.home-panel {
  width: min(100%, 1240px);
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  padding: 0 0 30px;
  box-shadow: 0 24px 70px rgba(18, 27, 45, 0.18);
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(520px, 1.6fr);
  align-items: center;
  min-height: 430px;
  overflow: hidden;
  background:
    linear-gradient(
      105deg,
      rgba(11, 18, 34, 0.99) 0%,
      rgba(19, 28, 49, 0.96) 47%,
      rgba(28, 35, 55, 0.86) 100%);
  color: #ffffff;
  padding: 42px 42px 34px;
}
.home-hero-copy {
  position: relative;
  z-index: 2;
  padding-right: 24px;
}
.home-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.home-brand-lockup img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 9px 16px rgba(0, 0, 0, 0.3));
}
.home-brand-lockup .eyebrow {
  max-width: 180px;
  margin: 0;
  line-height: 1.45;
}
.home-hero-copy .eyebrow {
  color: #ff9c55;
  letter-spacing: 0.14em;
}
.home-hero-copy h1 {
  max-width: 520px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 5.2vw, 5.5rem);
  letter-spacing: -0.055em;
}
.home-hero-copy > p {
  max-width: 490px;
  color: #d9deea;
  font-size: 1.08rem;
}
.home-hero-rule {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.home-hero-rule span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 7px 10px;
  text-transform: uppercase;
}
.portrait-lineup {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
  margin: -12px -24px -16px 0;
}
.portrait-lineup::before {
  position: absolute;
  inset: 18% 4% 7%;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255, 151, 78, 0.24),
      transparent 67%);
  content: "";
  filter: blur(18px);
}
.portrait-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin: 0;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.34);
}
.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.portrait-card figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border-radius: 999px;
  background: rgba(9, 16, 30, 0.86);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 6px 9px;
  text-transform: uppercase;
}
.portrait-card-football {
  transform: rotate(-3.5deg) translateY(12px);
}
.portrait-card-basketball {
  z-index: 2;
  transform: translateY(-7px) scale(1.06);
}
.portrait-card-baseball {
  transform: rotate(3.5deg) translateY(12px);
}
.home-game-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 32px 20px;
}
.home-game-heading .eyebrow {
  margin-bottom: 7px;
}
.home-game-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
}
.home-game-heading > p {
  font-size: 0.95rem;
}
.home-panel .home-grid {
  padding: 0 30px;
}
.home-card {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-height: 455px;
  overflow: hidden;
  border: 1px solid #dfe3dd;
  border-radius: 14px;
  background: #fbfcfa;
  padding: 24px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.home-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background:
    linear-gradient(
      180deg,
      var(--card-accent) 0 56%,
      var(--card-secondary) 56% 100%);
  content: "";
}
.home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(25, 35, 50, 0.11);
}
.home-card-all-time {
  --card-accent: #fb4f14;
  --card-secondary: #002244;
}
.home-card-roulette {
  --card-accent: #31006f;
  --card-secondary: #000000;
}
.home-card-budget {
  --card-accent: #eb6e1f;
  --card-secondary: #002d62;
}
.home-card-logo {
  display: block;
  width: min(100%, 205px);
  margin: -8px auto 22px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  clip-path: polygon(50% 0, 95% 10%, 100% 76%, 82% 91%, 50% 100%, 18% 91%, 0 76%, 5% 10%);
  filter: drop-shadow(0 12px 12px rgba(18, 25, 38, 0.2));
}
.home-card h2 {
  max-width: 280px;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.home-card p {
  font-size: 0.95rem;
  line-height: 1.55;
}
.home-card .primary-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  border-radius: 999px;
  background: var(--card-secondary);
  padding: 0 18px;
  transition: gap 160ms ease, background 160ms ease;
}
.home-card .primary-button:hover {
  gap: 17px;
  background: var(--card-accent);
}
.form-section {
  display: grid;
  gap: 18px;
  border-top: 1px solid #e6e9e3;
  padding-top: 20px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.count-control,
.team-field,
.pick-field {
  display: grid;
  gap: 8px;
  color: #354052;
  font-weight: 700;
}
.count-control {
  width: 160px;
}
input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c8d0c7;
  border-radius: 6px;
  background: #fbfcfa;
  color: #1d2433;
  font: inherit;
  padding: 10px 12px;
}
textarea {
  width: 100%;
  min-height: 360px;
  border: 1px solid #c8d0c7;
  border-radius: 6px;
  background: #fbfcfa;
  color: #1d2433;
  font: inherit;
  line-height: 1.5;
  padding: 14px;
  resize: vertical;
}
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c8d0c7;
  border-radius: 6px;
  background: #fbfcfa;
  color: #1d2433;
  font: inherit;
  padding: 10px 12px;
}
input:focus {
  border-color: #246b57;
  outline: 3px solid rgba(36, 107, 87, 0.16);
}
textarea:focus {
  border-color: #246b57;
  outline: 3px solid rgba(36, 107, 87, 0.16);
}
select:focus {
  border-color: #246b57;
  outline: 3px solid rgba(36, 107, 87, 0.16);
}
.team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.mode-grid,
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.mode-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  min-height: 110px;
  border: 1px solid #d7ddd5;
  border-radius: 8px;
  padding: 18px;
  cursor: pointer;
}
.mode-option input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
}
.mode-option span {
  color: #1d2433;
  font-weight: 800;
}
.mode-option small {
  grid-column: 2;
  color: #566273;
  font-size: 0.94rem;
  line-height: 1.45;
}
.mode-option.selected {
  border-color: #246b57;
  background: #f2faf6;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #e6e9e3;
  padding-top: 20px;
}
button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.primary-button {
  background: #1d2433;
  color: #ffffff;
  padding: 0 22px;
}
.secondary-button {
  border: 1px solid #c8d0c7;
  background: #ffffff;
  color: #1d2433;
  padding: 0 18px;
}
.all-time-shell {
  --theme-accent: #fb4f14;
  --theme-deep: #002244;
  --theme-soft: #fff1eb;
  --theme-ring: rgba(251, 79, 20, 0.2);
  --theme-glow: rgba(251, 79, 20, 0.14);
}
.franchise-shell {
  --theme-accent: #31006f;
  --theme-deep: #000000;
  --theme-soft: #f4eef9;
  --theme-ring: rgba(49, 0, 111, 0.2);
  --theme-glow: rgba(49, 0, 111, 0.14);
}
.budget-shell {
  --theme-accent: #eb6e1f;
  --theme-deep: #002d62;
  --theme-soft: #fff2e9;
  --theme-ring: rgba(235, 110, 31, 0.2);
  --theme-glow: rgba(0, 45, 98, 0.14);
}
.game-shell {
  background:
    radial-gradient(
      circle at 8% 4%,
      var(--theme-glow),
      transparent 31%),
    linear-gradient(
      145deg,
      #f5f6f2 0%,
      #e9ede9 100%);
}
.game-shell .setup-panel,
.game-shell .draft-panel {
  overflow: hidden;
  border: 1px solid #d8ddd7;
  border-top: 6px solid var(--theme-accent);
  border-radius: 16px;
  box-shadow: 0 22px 55px rgba(20, 29, 43, 0.13);
}
.game-shell .page-header {
  position: relative;
  margin: -32px -32px 30px;
  background:
    linear-gradient(
      115deg,
      var(--theme-deep),
      color-mix(in srgb, var(--theme-deep) 82%, #ffffff));
  color: #ffffff;
  padding: 30px 32px 28px;
}
.game-shell .page-header > div,
.game-shell .page-header > button {
  position: relative;
  z-index: 2;
}
.game-header-logo {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 130px;
  display: block;
  width: 205px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: 0.28;
  pointer-events: none;
  transform: translateY(-50%);
  mix-blend-mode: screen;
}
.draft-header .game-header-logo {
  right: 205px;
}
.game-shell .page-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      var(--theme-accent),
      transparent 72%);
  content: "";
}
.game-shell .page-header .eyebrow {
  color: var(--theme-accent);
  letter-spacing: 0.12em;
}
.franchise-shell .page-header {
  border-bottom: 3px solid #31006f;
  background: #000000;
  box-shadow: inset 0 0 0 2px #31006f;
}
.franchise-shell .page-header .eyebrow {
  color: #ffffff;
}
.franchise-shell .page-header::after {
  background:
    linear-gradient(
      90deg,
      #31006f,
      transparent 72%);
}
.game-shell .page-header h1 {
  color: #ffffff;
  letter-spacing: -0.045em;
}
.game-shell .page-header p {
  color: rgba(255, 255, 255, 0.78);
}
.game-shell .page-header .secondary-button {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.game-shell .page-header .secondary-button:hover {
  border-color: var(--theme-accent);
  background: var(--theme-accent);
}
.game-shell .eyebrow {
  color: var(--theme-accent);
}
.game-shell .form-section > div:first-child h2,
.game-shell .section-heading h2,
.game-shell .prompt-panel h2,
.game-shell .budget-section-heading h2 {
  color: var(--theme-deep);
}
.game-shell input:focus,
.game-shell textarea:focus,
.game-shell select:focus {
  border-color: var(--theme-accent);
  outline-color: var(--theme-ring);
}
.game-shell input[type=radio] {
  accent-color: var(--theme-accent);
}
.game-shell .mode-option {
  border-radius: 11px;
  background: #ffffff;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}
.game-shell .mode-option:hover {
  border-color: var(--theme-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(22, 31, 45, 0.08);
}
.game-shell .mode-option.selected {
  border-color: var(--theme-accent);
  background: var(--theme-soft);
  box-shadow: inset 4px 0 0 var(--theme-accent);
}
.game-shell .primary-button {
  background: var(--theme-deep);
  transition:
    background 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}
.game-shell .primary-button:not(:disabled):hover {
  background: var(--theme-accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px var(--theme-ring);
}
.game-shell .franchise-turn .secondary-button {
  border-color: var(--theme-deep);
  color: var(--theme-deep);
}
.game-shell .draft-status div {
  border-top: 4px solid var(--theme-accent);
  border-radius: 10px;
  background:
    linear-gradient(
      180deg,
      var(--theme-soft),
      #ffffff 62%);
}
.game-shell .draft-status strong {
  color: var(--theme-deep);
}
.game-shell .pick-form,
.game-shell .franchise-turn {
  border: 1px solid color-mix(in srgb, var(--theme-accent) 28%, #d7ddd5);
  border-radius: 12px;
  background: var(--theme-soft);
  padding: 22px;
}
.game-shell .setup-summary,
.game-shell .budget-turn-message {
  border-left-color: var(--theme-accent);
  border-radius: 0 9px 9px 0;
  background: var(--theme-soft);
}
.game-shell:not(.budget-shell) .roster-card {
  border-top: 4px solid var(--theme-accent);
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(24, 33, 46, 0.06);
}
.game-shell:not(.budget-shell) .roster-card h2 {
  color: var(--theme-deep);
}
.game-shell .player-card {
  border-radius: 10px;
  background: #ffffff;
}
.game-shell .player-card:hover {
  border-color: var(--theme-accent);
}
.game-shell .era-options {
  border-color: color-mix(in srgb, var(--theme-accent) 35%, #d7ddd5);
  background: var(--theme-soft);
}
.game-shell .era-options legend {
  color: var(--theme-deep);
}
.game-shell .budget-board-wrap {
  border-radius: 11px;
  box-shadow: 0 10px 24px rgba(20, 29, 43, 0.08);
}
.budget-shell .budget-board thead th {
  background: var(--theme-deep);
}
.budget-shell .budget-board tbody th {
  background: var(--theme-soft);
  color: var(--theme-deep);
}
.budget-shell .budget-asset:not(:disabled):not(.drafted):hover {
  border-color: var(--theme-accent);
  background: var(--theme-soft);
}
.setup-summary {
  margin-top: 24px;
  border-left: 4px solid #246b57;
  background: #f2faf6;
  padding: 16px 18px;
}
.setup-summary h2 {
  margin-bottom: 4px;
}
.draft-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.draft-status div {
  border: 1px solid #d7ddd5;
  border-radius: 8px;
  background: #fbfcfa;
  padding: 16px;
}
.draft-status span,
.roster-card span {
  display: block;
  color: #667386;
  font-size: 0.86rem;
  font-weight: 700;
}
.draft-status strong {
  display: block;
  margin-top: 4px;
  font-size: 1.4rem;
}
.pick-form {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  border-top: 1px solid #e6e9e3;
  border-bottom: 1px solid #e6e9e3;
  padding: 20px 0;
  margin-bottom: 24px;
}
.slot-field {
  align-self: end;
}
.defense-fields {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
}
.form-error {
  grid-column: 1 / -1;
  color: #9a3412;
  font-weight: 700;
}
.draft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.roster-card {
  border: 1px solid #d7ddd5;
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
}
.roster-card ol {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.roster-card li {
  min-height: 54px;
  border-top: 1px solid #edf0eb;
  padding-top: 10px;
}
.roster-card strong {
  display: block;
  margin-top: 2px;
}
.prompt-panel {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  border-top: 1px solid #e6e9e3;
  padding-top: 24px;
}
.prompt-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.era-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  border: 1px solid #d7ddd5;
  border-radius: 8px;
  padding: 16px;
}
.era-options legend {
  color: #354052;
  font-weight: 800;
  padding: 0 6px;
}
.era-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e0e5dc;
  border-radius: 6px;
  padding: 8px 10px;
  font-weight: 700;
}
.era-options input {
  width: 18px;
  min-height: 18px;
}
.prompt-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.franchise-turn {
  display: grid;
  gap: 18px;
  border-top: 1px solid #e6e9e3;
  border-bottom: 1px solid #e6e9e3;
  padding: 22px 0;
  margin-bottom: 0;
  min-width: 0;
}
.franchise-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 28px;
}
.franchise-active-roster {
  position: sticky;
  top: 12px;
  min-width: 0;
}
.franchise-active-roster > .eyebrow {
  margin-bottom: 8px;
}
.franchise-active-roster-card {
  overflow: hidden;
  border: 2px solid #31006f;
  padding: 0 14px 14px;
}
.game-shell:not(.budget-shell) .franchise-active-roster-card > h2 {
  margin: 0 -14px 10px;
  padding: 11px 14px;
  border-bottom: 4px solid #31006f;
  background: #000;
  color: #fff;
}
.franchise-active-roster-meta {
  margin: 0 0 10px;
  color: #61665f;
  font-size: 0.82rem;
  font-weight: 700;
}
.franchise-all-teams {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e6e9e3;
}
.franchise-section-heading {
  margin-bottom: 16px;
}
.franchise-section-heading h2,
.franchise-section-heading p {
  margin-bottom: 4px;
}
.franchise-rosters {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.franchise-turn h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}
.turn-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.franchise-reveal {
  flex: 1;
  min-width: 0;
}
.franchise-reveal.has-logo {
  display: flex;
  align-items: center;
  gap: 24px;
}
.franchise-logo-stage {
  position: relative;
  display: grid;
  flex: 0 0 180px;
  width: 180px;
  height: 180px;
  place-items: center;
  overflow: hidden;
  border: 2px solid #31006f;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      #ffffff 0 56%,
      #eeeaf3 57% 67%,
      #000000 68% 100%);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18), inset 0 0 0 6px rgba(49, 0, 111, 0.16);
}
.franchise-logo-stage::after {
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(49, 0, 111, 0.42);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.franchise-logo-stage > span {
  color: #31006f;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}
.franchise-team-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 7px 7px rgba(0, 0, 0, 0.2));
  animation: roulette-logo-arrive 130ms ease-out;
}
.franchise-logo-stage.is-drawing {
  animation: roulette-stage-pulse 620ms ease-in-out infinite alternate;
}
.franchise-logo-stage.is-final {
  border-color: #5c1b9b;
  box-shadow:
    0 16px 34px rgba(49, 0, 111, 0.28),
    0 0 0 5px rgba(49, 0, 111, 0.1),
    inset 0 0 0 6px rgba(49, 0, 111, 0.16);
}
.franchise-reveal-copy .eyebrow {
  margin-bottom: 7px;
}
.franchise-logo-preload {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
@keyframes roulette-logo-arrive {
  from {
    opacity: 0.35;
    transform: scale(0.72) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
@keyframes roulette-stage-pulse {
  from {
    transform: scale(0.98);
  }
  to {
    transform: scale(1.02);
  }
}
@media (prefers-reduced-motion: reduce) {
  .franchise-team-logo,
  .franchise-logo-stage.is-drawing {
    animation: none;
  }
}
.player-list {
  display: grid;
  gap: 12px;
}
.player-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #d7ddd5;
  border-radius: 8px;
  background: #fbfcfa;
  padding: 16px;
}
.player-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.slot-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.roster-card small {
  display: block;
  margin-top: 3px;
  color: #667386;
}
.budget-draft-panel {
  width: min(100%, 1500px);
}
.budget-turn-message {
  margin-bottom: 20px;
  border-left: 4px solid #246b57;
  background: #f2faf6;
  padding: 14px 16px;
}
.budget-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
.budget-team-key {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin: -7px 0 14px;
  color: #46505f;
  font-size: 0.83rem;
  font-weight: 700;
}
.budget-team-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.budget-team-key i {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.budget-active-roster {
  position: sticky;
  top: 12px;
}
.budget-active-roster .eyebrow {
  margin-bottom: 7px;
}
.active-roster-card {
  overflow: hidden;
  border: 2px solid;
  background: #f8fcfa;
  padding: 0 14px 14px;
}
.team-color-heading {
  margin: 0 -14px 10px;
  padding: 10px 14px;
}
.active-roster-card ol {
  gap: 4px;
  margin-top: 9px;
}
.active-roster-card li {
  min-height: 46px;
  padding-top: 7px;
}
.active-roster-card li.filled-roster-slot {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px 9px;
}
.active-roster-card li.filled-roster-slot span,
.active-roster-card li.filled-roster-slot small {
  color: inherit;
}
.budget-board-wrap {
  overflow-x: auto;
  margin-bottom: 26px;
  border: 1px solid #d7ddd5;
  border-radius: 8px;
}
.budget-board {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 0.84rem;
}
.budget-board th,
.budget-board td {
  border-right: 1px solid #e6e9e3;
  border-bottom: 1px solid #e6e9e3;
  padding: 7px;
  text-align: left;
  vertical-align: top;
}
.budget-board thead th {
  background: #1d2433;
  color: #ffffff;
  text-align: center;
}
.budget-board tbody th {
  width: 85px;
  background: #f2faf6;
}
.budget-cell {
  display: grid;
  gap: 4px;
  min-width: 95px;
}
.budget-asset {
  min-height: 29px;
  border: 1px solid #c8d0c7;
  background: #fbfcfa;
  color: #1d2433;
  padding: 4px 6px;
  text-align: left;
}
.budget-asset small {
  display: block;
  margin-top: 2px;
  color: #667386;
  font-size: 0.67rem;
  font-weight: 700;
}
.budget-asset.drafted {
  display: flex;
  align-items: center;
  min-height: 29px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.budget-asset.drafted strong {
  font-size: 0.78rem;
}
.budget-asset:not(:disabled):hover {
  border-color: #246b57;
  background: #f2faf6;
}
.budget-rosters {
  grid-template-columns: repeat(auto-fit, 220px);
  justify-content: start;
  margin-top: 4px;
}
.budget-opponents {
  margin-top: 26px;
  border-top: 1px solid #e6e9e3;
  padding-top: 20px;
}
.budget-section-heading {
  margin-bottom: 14px;
}
.compact-roster-card {
  width: 220px;
  overflow: hidden;
  border-width: 2px;
  padding: 0 14px 14px;
}
.compact-roster-card ol {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 12px;
  margin-top: 8px;
}
.compact-roster-card li {
  min-height: 43px;
  padding-top: 6px;
}
@media (max-width: 920px) {
  .game-header-logo {
    display: none;
  }
}
@media (max-width: 720px) {
  .app-shell {
    padding: 20px 12px;
  }
  .setup-panel {
    padding: 22px;
  }
  .game-shell .setup-panel .page-header {
    margin: -22px -22px 26px;
    padding: 24px 22px;
  }
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .draft-header,
  .pick-form {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
  .defense-fields {
    grid-template-columns: 1fr;
  }
  .draft-header {
    flex-direction: column;
  }
  .header-actions {
    width: 100%;
  }
  .header-actions button {
    flex: 1;
  }
  .draft-status {
    grid-template-columns: 1fr;
  }
  .count-control {
    width: 100%;
  }
  .team-list,
  .game-grid,
  .home-grid,
  .mode-grid,
  .prompt-controls {
    grid-template-columns: 1fr;
  }
  .home-shell {
    padding: 0;
  }
  .home-panel {
    border-radius: 0;
  }
  .home-hero {
    grid-template-columns: 1fr;
    padding: 30px 22px 28px;
  }
  .home-hero-copy {
    padding-right: 0;
  }
  .home-brand-lockup img {
    width: 88px;
    height: 88px;
  }
  .home-hero-copy h1 {
    font-size: clamp(2.9rem, 15vw, 4.4rem);
  }
  .portrait-lineup {
    gap: 8px;
    margin: 35px 0 2px;
  }
  .portrait-card {
    border-width: 2px;
    border-radius: 11px;
  }
  .portrait-card figcaption {
    display: none;
  }
  .home-game-heading {
    align-items: start;
    flex-direction: column;
    padding: 28px 20px 18px;
  }
  .home-panel .home-grid {
    padding: 0 20px;
  }
  .home-card {
    min-height: 420px;
  }
  .home-card-logo {
    width: min(100%, 190px);
  }
  .prompt-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .turn-heading,
  .player-card {
    grid-template-columns: 1fr;
  }
  .turn-heading {
    flex-direction: column;
  }
  .franchise-reveal.has-logo {
    display: grid;
    justify-items: center;
    width: 100%;
    text-align: center;
  }
  .franchise-logo-stage {
    flex-basis: 150px;
    width: 150px;
    height: 150px;
  }
  .slot-actions {
    justify-content: stretch;
  }
  .slot-actions button {
    flex: 1;
  }
  .budget-workspace {
    grid-template-columns: 1fr;
  }
  .franchise-workspace {
    grid-template-columns: 1fr;
  }
  .franchise-active-roster {
    position: static;
  }
  .budget-active-roster {
    position: static;
  }
  .compact-roster-card ol {
    grid-template-columns: 1fr;
  }
  .budget-rosters {
    grid-template-columns: 1fr;
  }
  .compact-roster-card {
    width: 100%;
  }
}
