:root {
  --ink: #eef8f2;
  --muted: #a8bbb3;
  --paper: #071c2a;
  --panel: #0c2934;
  --line: #2a4650;
  --lime: #d8ff43;
  --coral: #ff765d;
  --teal: #67ddd1;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0, #164939 0, transparent 33rem),
    linear-gradient(145deg, #061724, #0a2631 54%, #071d24);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  min-height: 100vh;
}
a {
  color: inherit;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 20;
  background: var(--lime);
  color: #071c2a;
  padding: 0.8rem 1rem;
}
.skip-link:focus {
  left: 1rem;
}
.game-header,
.game-footer {
  max-width: 1180px;
  margin: auto;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.game-header nav,
.game-footer nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.game-header nav a,
.game-footer a {
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}
.game-header nav a:hover,
.game-footer a:hover {
  color: var(--lime);
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 0 1.35rem 4rem;
}
.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 1rem 0 2rem;
}
.breadcrumbs a {
  text-decoration: none;
}
.hero {
  padding: 3.4rem 0 2.7rem;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 4rem;
  align-items: end;
}
.eyebrow,
.kicker {
  font-family: "IBM Plex Mono", monospace;
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  line-height: 0.78;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0.35rem 0 1.6rem;
  max-width: 900px;
}
.hero h1 em {
  font-family: "Bodoni Moda", serif;
  font-weight: 600;
  color: var(--lime);
  text-transform: none;
}
.hero-copy {
  border-left: 1px solid var(--line);
  padding-left: 1.5rem;
}
.hero-copy p {
  color: #d4dfda;
  line-height: 1.7;
}
.hero-facts {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.hero-facts span {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  border-radius: 99px;
  color: var(--muted);
  font-size: 0.76rem;
}
.game-shell {
  background: rgba(5, 20, 28, 0.76);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 1.2rem;
  overflow: hidden;
  min-height: 680px;
}
.career-strip {
  display: grid;
  grid-template-columns: 1.3fr repeat(6, 1fr);
  background: #06131c;
  border-bottom: 3px solid var(--club, var(--lime));
  padding: 0.8rem 1rem;
  gap: 0.5rem;
}
.career-strip > div,
.metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.career-strip small,
.metric span {
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.career-strip strong,
.metric strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
}
.game-stage {
  padding: clamp(1rem, 4vw, 3rem);
}
.panel {
  max-width: 980px;
  margin: auto;
}
.panel h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.92;
  text-transform: uppercase;
  margin: 0.55rem 0 1rem;
  outline: none;
}
.lede {
  color: #d2ded9;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 720px;
}
.name-row,
.brief {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1rem;
  margin: 2rem 0;
}
.name-row label,
.name-row > div,
.brief > div,
.brief > p {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 0;
}
.name-row label {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}
.name-row input {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--lime);
  background: transparent;
  color: #fff;
  font:
    700 1.35rem "IBM Plex Mono",
    monospace;
  padding: 0.6rem 0 0.35rem;
  outline: none;
}
.name-row > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.name-row small,
.brief small,
.opponent-card small {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.name-row strong,
.brief strong {
  font-size: 1.2rem;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 2rem 0;
}
legend,
.squad h3,
.report h3 {
  font:
    700 0.76rem "IBM Plex Mono",
    monospace;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
}
.choice-grid,
.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.choice-grid.league-grid {
  grid-template-columns: repeat(5, 1fr);
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice span,
.upgrade-card {
  display: flex;
  height: 100%;
  min-height: 92px;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid var(--line);
  background: #0a222c;
  color: var(--ink);
  padding: 1rem;
  border-radius: 0.7rem;
  cursor: pointer;
  transition: 0.16s ease;
}
.choice span:hover,
.upgrade-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}
.choice input:focus-visible + span {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
.choice input:checked + span {
  border-color: var(--lime);
  background: linear-gradient(145deg, #17363a, #102a2b);
  box-shadow: inset 0 0 0 1px var(--lime);
}
.choice b,
.upgrade-card b {
  font-size: 0.92rem;
}
.choice small,
.upgrade-card small {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.45;
}
.choice.is-disabled {
  opacity: 0.42;
}
.primary,
.secondary,
.text-button {
  border: 0;
  border-radius: 0.45rem;
  padding: 0.9rem 1.2rem;
  font:
    800 0.84rem Manrope,
    sans-serif;
  cursor: pointer;
}
.primary {
  background: var(--lime);
  color: #071b24;
}
.primary:hover {
  background: #ecff94;
}
.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.text-button {
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
}
.primary span {
  margin-left: 0.5rem;
}
.form-error,
.share-status {
  min-height: 1.3rem;
  color: #ffb1a2;
  font-size: 0.8rem;
}
.brief {
  background: linear-gradient(120deg, #102d36, #0c222d);
}
.brief p {
  color: #c5d3cd;
  line-height: 1.75;
}
.squad {
  margin: 2rem 0;
}
.squad article {
  display: grid;
  grid-template-columns: 1fr repeat(3, 68px);
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 0.65rem 0.25rem;
}
.squad article > div {
  display: flex;
  flex-direction: column;
}
.squad article small {
  color: var(--muted);
  font-size: 0.66rem;
}
.squad article > span {
  font:
    700 0.9rem "IBM Plex Mono",
    monospace;
  display: flex;
  flex-direction: column;
}
.decision-grid {
  grid-template-columns: repeat(2, 1fr);
  margin: 2rem 0;
}
.decision-grid .choice span,
.upgrade-card {
  min-height: 138px;
  justify-content: center;
}
.upgrade-card {
  text-align: left;
  border: 1px solid var(--line);
}
.upgrade-card span {
  margin-top: 0.65rem;
  color: var(--lime);
  font-size: 0.75rem;
}
.opponent-card {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 1rem;
  align-items: center;
  background: #071922;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1.2rem;
  margin: 2rem 0;
}
.opponent-card > div:not(.club-badge) {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.club-badge {
  width: 70px;
  height: 70px;
  border: 2px solid var(--lime);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font:
    800 1rem "IBM Plex Mono",
    monospace;
  color: var(--lime);
}
.scoreboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
  margin: 2rem 0;
}
.scoreboard > div {
  display: flex;
  flex-direction: column;
  padding: 1.3rem;
  border-right: 1px solid var(--line);
  gap: 0.35rem;
}
.scoreboard > div:last-child {
  border: 0;
}
.scoreboard small {
  color: var(--muted);
  font-size: 0.68rem;
}
.scoreboard strong {
  font:
    800 3rem "Barlow Condensed",
    sans-serif;
}
.scoreboard .cup-result {
  font-size: 1.8rem;
}
.scoreboard span {
  color: var(--lime);
  font-size: 0.74rem;
}
.report {
  border-left: 3px solid var(--coral);
  padding: 0.2rem 0 0.2rem 1.2rem;
  margin: 2rem 0;
}
.report p,
.report li {
  color: #c7d4cf;
  font-size: 0.86rem;
  line-height: 1.6;
}
.final-name {
  font:
    700 1.1rem "IBM Plex Mono",
    monospace;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.final-panel h2 {
  color: var(--lime);
}
.final-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin: 2rem 0;
}
.final-stats .metric {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 1rem;
}
.final-stats .metric strong {
  font-size: 1.8rem;
}
.button-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.explainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 4rem 0;
}
.explainer article {
  border-top: 2px solid var(--line);
  padding-top: 1rem;
}
.explainer h2 {
  font:
    700 1.4rem "Barlow Condensed",
    sans-serif;
  text-transform: uppercase;
}
.explainer p,
.faq p {
  color: var(--muted);
  line-height: 1.7;
}
.faq {
  max-width: 820px;
  margin: 4rem auto;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
}
.game-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hero-copy {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1rem 0;
  }
  .career-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .career-strip > div:first-child {
    grid-column: span 2;
  }
  .choice-grid.league-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .explainer {
    grid-template-columns: 1fr;
  }
  .game-header nav {
    display: none;
  }
}
@media (max-width: 600px) {
  main {
    padding: 0 0.7rem 2rem;
  }
  .game-header,
  .game-footer {
    padding: 1rem;
  }
  .game-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero {
    padding: 1.5rem 0;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .game-shell {
    border-radius: 0.7rem;
    min-height: 600px;
  }
  .career-strip {
    grid-template-columns: repeat(3, 1fr);
    padding: 0.7rem;
  }
  .career-strip > div:first-child {
    grid-column: span 3;
  }
  .game-stage {
    padding: 1rem;
  }
  .panel h2 {
    font-size: 2.55rem;
  }
  .name-row,
  .brief,
  .choice-grid,
  .decision-grid,
  .choice-grid.league-grid {
    grid-template-columns: 1fr;
  }
  .choice-grid.compact {
    grid-template-columns: repeat(3, 1fr);
  }
  .choice-grid.compact .choice span {
    min-height: 62px;
    padding: 0.75rem;
  }
  .choice span {
    min-height: 76px;
  }
  .squad article {
    grid-template-columns: 1fr repeat(3, 45px);
  }
  .opponent-card {
    grid-template-columns: 62px 1fr;
  }
  .opponent-card > div:last-child {
    grid-column: 2;
  }
  .club-badge {
    width: 54px;
    height: 54px;
  }
  .scoreboard {
    grid-template-columns: 1fr;
  }
  .scoreboard > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .final-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .button-row > * {
    flex: 1 1 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
