@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400&display=swap");

:root {
  color-scheme: dark;
  --color-text: #f7f8f4;
  --color-text-muted: #8e948f;
  --color-danger: #ff174f;
  --color-accent: #b8ff18;
  --color-canvas: #07090b;
  --color-surface: #101417;
  --color-surface-soft: #171d20;
  --color-line: rgba(247, 248, 244, 0.1);
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content-max-width: 520px;
  --page-gutter: 16px;
  --space-2xs: 2px;
  --space-xs: 6px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;
  --space-4xl: 40px;
  --space-5xl: 48px;
  --space-6xl: 64px;
  --space-7xl: 80px;
  --space-8xl: 96px;
  --space-9xl: 128px;
  --radius-small: 8px;
  --radius-panel: 12px;
  --radius-round: 50%;
  --duration-fast: 150ms;
  --duration-standard: 220ms;
  --duration-page: 300ms;
  --ease-standard: ease;
  --ink: var(--color-text);
  --muted: var(--color-text-muted);
  --red: var(--color-danger);
  --green: var(--color-accent);
  --black: var(--color-canvas);
  --panel: var(--color-surface);
  --panel-soft: var(--color-surface-soft);
  --surface: var(--color-surface);
  --surface-strong: var(--color-text);
  --line: var(--color-line);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--black);
  min-height: -webkit-fill-available;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--font-sans);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

button {
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

strong {
  font-weight: 400;
}

.app-shell {
  --corner-gradient-size: clamp(320px, 92vw, 460px);
  --corner-gradient-offset: calc(var(--corner-gradient-size) * -0.49);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto;
  max-width: var(--content-max-width);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: calc(var(--space-md) + var(--safe-top)) var(--page-gutter) calc(96px + var(--safe-bottom));
  position: relative;
  transition: opacity var(--duration-standard) var(--ease-standard), transform var(--duration-standard) var(--ease-standard);
}

html.is-page-entering .app-shell,
html.is-page-leaving .app-shell {
  opacity: 0;
  transform: translateY(4px);
}

.app-shell.is-landing {
  isolation: isolate;
  overflow: hidden;
  justify-content: center;
  padding: calc(var(--space-2xl) + var(--safe-top)) var(--page-gutter) calc(var(--space-2xl) + var(--safe-bottom));
}

.app-shell.is-how-to-play {
  isolation: isolate;
  padding: calc(var(--space-md) + var(--safe-top)) var(--page-gutter) calc(96px + var(--safe-bottom));
}

.app-shell.is-difficulty {
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--space-md) + var(--safe-top)) var(--page-gutter) calc(var(--space-2xl) + var(--safe-bottom));
}

.app-shell.is-club-modes {
  isolation: isolate;
  padding: calc(var(--space-md) + var(--safe-top)) var(--page-gutter) calc(var(--space-md) + var(--safe-bottom));
}

.app-shell.is-summary {
  isolation: isolate;
  justify-content: center;
  padding: calc(var(--space-2xl) + var(--safe-top)) var(--page-gutter) calc(var(--space-2xl) + var(--safe-bottom));
}

.app-shell.is-landing::before,
.app-shell.is-landing::after,
.app-shell.is-club-modes::before,
.app-shell.is-club-modes::after,
.app-shell.is-difficulty::before,
.app-shell.is-difficulty::after,
.app-shell.is-summary::before,
.app-shell.is-summary::after,
.app-shell.is-how-to-play::before,
.app-shell.is-how-to-play::after {
  background:
    radial-gradient(circle, rgba(184, 255, 24, 0.34) 0 1px, transparent 1.35px) 0 0 / 12px 12px,
    radial-gradient(circle at center, rgba(184, 255, 24, 0.24), rgba(184, 255, 24, 0.1) 42%, rgba(184, 255, 24, 0) 72%);
  border-radius: 50%;
  content: "";
  height: var(--corner-gradient-size);
  -webkit-mask-image: radial-gradient(circle, #000 0 45%, rgba(0, 0, 0, 0.72) 56%, transparent 74%);
  mask-image: radial-gradient(circle, #000 0 45%, rgba(0, 0, 0, 0.72) 56%, transparent 74%);
  opacity: 0.65;
  pointer-events: none;
  position: fixed;
  width: var(--corner-gradient-size);
  z-index: 0;
}

.app-shell.is-landing::before,
.app-shell.is-club-modes::before,
.app-shell.is-difficulty::before,
.app-shell.is-summary::before,
.app-shell.is-how-to-play::before {
  right: var(--corner-gradient-offset);
  top: var(--corner-gradient-offset);
}

.app-shell.is-landing::after,
.app-shell.is-club-modes::after,
.app-shell.is-difficulty::after,
.app-shell.is-summary::after,
.app-shell.is-how-to-play::after {
  bottom: var(--corner-gradient-offset);
  left: var(--corner-gradient-offset);
}

.landing-screen {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: calc(100dvh - 48px - var(--safe-top) - var(--safe-bottom));
  position: relative;
  z-index: 1;
}

.landing-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
  min-height: 0;
}

.landing-screen[hidden],
.club-modes-screen[hidden],
.difficulty-screen[hidden],
.game-screen[hidden],
.summary-screen[hidden],
.how-to-play-screen[hidden] {
  display: none;
}

.landing-screen,
.club-modes-screen,
.difficulty-screen,
.game-screen,
.summary-screen,
.how-to-play-screen {
  opacity: 1;
  transition: opacity 300ms ease;
}

.screen-fade-out,
.screen-fade-in {
  opacity: 0;
  pointer-events: none;
}

.screen-fade-in.is-visible {
  opacity: 1;
}

.game-screen.is-round-entering {
  pointer-events: none;
}

.game-screen.is-round-entering > :not(.sticky-submit):not(.result-overlay) {
  animation: roundSlideIn 780ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.game-screen-clone {
  background: var(--black);
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  position: fixed;
  z-index: 10;
}

.game-screen-clone.is-round-exiting {
  animation: roundSlideOutLeft 780ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .landing-screen,
  .club-modes-screen,
  .difficulty-screen,
  .game-screen,
  .summary-screen,
  .how-to-play-screen {
    transition: none;
  }

  .app-shell {
    transition: none;
  }

  .how-to-step-content {
    transition: none;
  }

  .result-overlay,
  .result-panel {
    transition: none;
  }

  .how-to-demo *,
  .how-to-demo.is-active * {
    animation: none !important;
  }

}

.landing-brand {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.landing-logo {
  display: block;
  max-width: 410px;
  width: 96%;
}

.landing-brand p {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.32;
  margin: 0;
  max-width: 410px;
  text-align: center;
  width: 96%;
}

.landing-brand h1 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 2px 0 0;
  width: 96%;
}

.seo-mode-shell {
  --corner-gradient-size: clamp(320px, 92vw, 460px);
  --corner-gradient-offset: calc(var(--corner-gradient-size) * -0.49);
  isolation: isolate;
  margin: 0 auto;
  max-width: 520px;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: calc(12px + var(--safe-top)) 16px calc(32px + var(--safe-bottom));
  position: relative;
  transition: opacity 220ms ease, transform 220ms ease;
}

html.is-page-entering .seo-mode-shell,
html.is-page-leaving .seo-mode-shell {
  opacity: 0;
  transform: translateY(4px);
}

.seo-mode-shell::before,
.seo-mode-shell::after {
  background:
    radial-gradient(circle, rgba(184, 255, 24, 0.34) 0 1px, transparent 1.35px) 0 0 / 12px 12px,
    radial-gradient(circle at center, rgba(184, 255, 24, 0.24), rgba(184, 255, 24, 0.1) 42%, rgba(184, 255, 24, 0) 72%);
  border-radius: 50%;
  content: "";
  height: var(--corner-gradient-size);
  -webkit-mask-image: radial-gradient(circle, #000 0 45%, rgba(0, 0, 0, 0.72) 56%, transparent 74%);
  mask-image: radial-gradient(circle, #000 0 45%, rgba(0, 0, 0, 0.72) 56%, transparent 74%);
  opacity: 0.65;
  pointer-events: none;
  position: fixed;
  width: var(--corner-gradient-size);
  z-index: 0;
}

.seo-mode-shell::before {
  right: var(--corner-gradient-offset);
  top: var(--corner-gradient-offset);
}

.seo-mode-shell::after {
  bottom: var(--corner-gradient-offset);
  left: var(--corner-gradient-offset);
}

.seo-mode-shell .app-topbar,
.seo-mode-content {
  position: relative;
  z-index: 1;
}

.seo-mode-content {
  display: grid;
  gap: 20px;
  margin: clamp(48px, 10dvh, 96px) 0 auto;
  padding-bottom: 24px;
}

.seo-breadcrumb,
.seo-page-links {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 8px;
  line-height: 1.35;
}

.seo-breadcrumb a,
.seo-page-links a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 200ms ease;
}

.seo-breadcrumb a:hover,
.seo-breadcrumb a:focus-visible,
.seo-page-links a:hover,
.seo-page-links a:focus-visible,
.seo-breadcrumb a:active,
.seo-page-links a:active {
  color: var(--green);
}

.seo-eyebrow {
  color: var(--green);
  font-size: 0.8rem;
  line-height: 1;
  margin: 0 0 -12px;
}

.seo-mode-content h1,
.seo-mode-content h2,
.seo-mode-content p {
  font-weight: 400;
  margin: 0;
}

.seo-mode-content h1 {
  color: var(--ink);
  font-size: clamp(1.75rem, 7vw, 2.35rem);
  line-height: 1.05;
}

.seo-mode-content h2 {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.2;
}

.seo-lead {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}

.seo-stat-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.seo-stat-grid div {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 6px;
  min-height: 88px;
  padding: 12px 12px;
}

.seo-stat-grid dt {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.15;
}

.seo-stat-grid dd {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.2;
  margin: 0;
}

.seo-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 20px;
}

.seo-section p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.seo-example-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.seo-example-list li {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 0.84rem;
  gap: 12px;
  justify-content: space-between;
  line-height: 1.25;
  min-height: 48px;
  padding: 12px 12px;
}

.seo-example-list li + li {
  border-top: 1px solid var(--line);
}

.seo-example-list time {
  color: var(--muted);
  font-size: 0.74rem;
  text-align: right;
  white-space: nowrap;
}

.seo-play-action {
  align-items: center;
  display: grid;
  justify-content: center;
  text-decoration: none;
}

.seo-play-action:hover,
.seo-play-action:focus-visible,
.seo-play-action:active {
  background: var(--ink);
  color: var(--black);
}

.seo-page-links {
  justify-content: center;
  padding-top: 6px;
}

.competition-panel {
  display: grid;
  gap: 12px;
}

.club-mode-group {
  display: block;
}

.club-mode-list {
  display: grid;
  gap: 12px;
}

.club-modes-screen[data-category="premierLeagueClubs"] #championshipClubGroup,
.club-modes-screen[data-category="premierLeagueClubs"] #laLigaClubGroup,
.club-modes-screen[data-category="premierLeagueClubs"] .club-mode-divider,
.club-modes-screen[data-category="championshipClubs"] #premierLeagueClubGroup,
.club-modes-screen[data-category="championshipClubs"] #laLigaClubGroup,
.club-modes-screen[data-category="championshipClubs"] .club-mode-divider,
.club-modes-screen[data-category="laLigaClubs"] #premierLeagueClubGroup,
.club-modes-screen[data-category="laLigaClubs"] #championshipClubGroup,
.club-modes-screen[data-category="laLigaClubs"] .club-mode-divider {
  display: none;
}

.how-to-play-button {
  align-self: center;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: 0.98rem;
  line-height: 1.2;
  padding: 2px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 200ms ease;
}

.how-to-play-button:hover,
.how-to-play-button:focus-visible,
.how-to-play-button:active {
  color: var(--ink);
}

.site-footer-actions {
  align-items: center;
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

.site-legal-footer .social-follow-link {
  align-items: center;
  background: rgba(184, 255, 24, 0.14);
  border: 0;
  border-radius: 999px;
  bottom: calc(100% + 28px);
  color: var(--ink);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 400;
  gap: 8px;
  justify-content: center;
  line-height: 1;
  margin-bottom: 12px;
  min-height: 28px;
  padding: 6px 8px;
  text-decoration: none;
  transition: background 400ms ease, color 400ms ease;
}

.social-follow-link svg {
  fill: var(--green);
  height: 11px;
  width: 11px;
}

.site-legal-footer .social-follow-link:hover,
.site-legal-footer .social-follow-link:focus-visible,
.site-legal-footer .social-follow-link:active {
  background: var(--green);
  color: var(--black);
  text-decoration: none;
}

.social-follow-link:hover svg,
.social-follow-link:focus-visible svg,
.social-follow-link:active svg {
  fill: var(--black);
}

.site-legal-footer > a:not(.social-follow-link) {
  margin-top: 12px;
}

.site-legal-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 0.66rem;
  gap: 6px;
  line-height: 1.35;
  padding-top: 12px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.site-legal-footer a,
.how-to-legal-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 200ms ease;
}

.site-legal-footer a:hover,
.site-legal-footer a:focus-visible,
.how-to-legal-link:hover,
.how-to-legal-link:focus-visible,
.site-legal-footer a:active,
.how-to-legal-link:active {
  color: var(--green);
}

.how-to-legal-link {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 200ms ease;
}

.legal-page-content {
  gap: 32px;
  margin-top: clamp(40px, 8dvh, 64px);
  padding-bottom: 16px;
}

.legal-heading {
  display: grid;
  gap: 12px;
}

.legal-heading .seo-eyebrow {
  margin: 0;
}

.legal-heading h1,
.legal-heading p {
  font-weight: 400;
  margin: 0;
}

.legal-heading h1 {
  color: var(--ink);
  font-size: clamp(2rem, 8vw, 2.55rem);
  line-height: 1;
}

.legal-heading .seo-lead {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
}

.legal-summary {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-summary div {
  display: grid;
  gap: 8px;
  min-height: 84px;
  padding: 12px 12px;
}

.legal-summary div + div {
  border-left: 1px solid var(--line);
}

.legal-summary span {
  color: var(--green);
  font-size: 0.66rem;
  line-height: 1.1;
}

.legal-summary strong {
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.25;
}

.legal-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 20px;
}

.legal-section h2,
.legal-section p {
  font-weight: 400;
  margin: 0;
}

.legal-section h2 {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.2;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.58;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.legal-section a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section a:hover,
.legal-section a:focus-visible,
.legal-section a:active {
  color: var(--green);
}

.legal-prelaunch-note {
  border-left: 2px solid var(--green);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0;
  padding: 2px 0 2px 12px;
}

.legal-page-footer {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.35;
  padding: 6px 0 8px;
  text-align: center;
}

.competition-panel p {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 400;
  margin: 0 0 2px;
}

.competition-option {
  align-items: center;
  border-radius: 12px;
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 72px;
  padding: var(--space-md);
  text-align: left;
  transition: border-color 400ms ease;
  width: 100%;
}

.competition-name {
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competition-copy {
  display: grid;
  gap: var(--space-xs);
  min-width: 0;
}

.landing-screen .competition-copy .competition-name {
  white-space: normal;
}

.competition-description {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.3;
}

.competition-option small {
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1;
  padding: 6px 8px;
  transition: background 400ms ease, color 400ms ease;
  white-space: nowrap;
}

.competition-option.is-ready {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: var(--ink);
}

.competition-option.is-ready:hover,
.competition-option.is-ready:focus-visible,
.competition-option.is-ready:active {
  border-color: var(--green);
}

.competition-option.is-ready small {
  background: rgba(184, 255, 24, 0.1);
  color: var(--green);
}

.competition-option.is-ready:hover small,
.competition-option.is-ready:focus-visible small,
.competition-option.is-ready:active small {
  background: var(--green);
  color: var(--black);
}

.competition-option.is-locked {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: default;
}

.competition-option.is-locked small {
  background: rgba(247, 248, 244, 0.08);
  color: var(--ink);
}

.club-mode-divider {
  background: var(--green);
  height: 1px;
  opacity: 0.7;
  width: 100%;
}

.club-modes-screen {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-md);
  min-height: calc(100dvh - 36px - var(--safe-top) - var(--safe-bottom));
  position: relative;
  z-index: 1;
}

.club-modes-content {
  align-content: center;
  display: grid;
  flex: 1 1 auto;
  gap: var(--space-xl);
  min-height: 0;
  padding: var(--space-xl) 0;
  transform: translateY(-16px);
}

.club-modes-copy {
  display: grid;
  gap: var(--space-sm);
  text-align: center;
}

.club-modes-copy p,
.club-modes-copy h1 {
  margin: 0;
}

.club-modes-copy p {
  color: var(--green);
  font-size: 0.76rem;
  line-height: 1.2;
}

.club-modes-copy h1 {
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1.1;
}

.difficulty-screen {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-md);
  min-height: calc(100dvh - 36px - var(--safe-top) - var(--safe-bottom));
  position: relative;
  z-index: 1;
}

.difficulty-content {
  align-content: center;
  display: grid;
  flex: 1 1 auto;
  gap: var(--space-3xl);
  min-height: 0;
  padding-bottom: 40px;
}

.difficulty-note {
  align-items: flex-start;
  color: var(--muted);
  display: flex;
  font-size: 0.76rem;
  gap: 8px;
  line-height: 1.3;
  margin: 0 auto calc(16px + var(--safe-bottom));
  max-width: 280px;
  text-align: center;
}

.difficulty-note strong {
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 500;
}

.difficulty-note span {
  min-width: 0;
}

.difficulty-copy {
  display: grid;
  gap: var(--space-sm);
  text-align: center;
}

.difficulty-copy p,
.difficulty-copy h1 {
  margin: 0;
}

.difficulty-copy p {
  color: var(--green);
  font-size: 0.76rem;
  line-height: 1.2;
}

.difficulty-copy h1 {
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1.1;
}

.difficulty-options {
  display: grid;
  gap: var(--space-sm);
}

.difficulty-option {
  align-content: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  color: var(--ink);
  display: grid;
  gap: var(--space-xs);
  padding: var(--space-lg);
  text-align: left;
  transition: background var(--duration-standard) var(--ease-standard), border-color var(--duration-standard) var(--ease-standard);
  width: 100%;
}

.difficulty-option strong {
  color: var(--green);
  font-size: 1rem;
  line-height: 1.2;
}

.difficulty-option span {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.4;
}

.difficulty-option:hover,
.difficulty-option:focus-visible,
.difficulty-option:active {
  background: rgba(184, 255, 24, 0.1);
  border-color: var(--green);
}

.difficulty-option:hover span,
.difficulty-option:focus-visible span,
.difficulty-option:active span {
  color: var(--ink);
}

.game-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-screen {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  position: relative;
  z-index: 1;
}

.summary-content {
  align-content: center;
  display: grid;
  flex: 1 1 auto;
  gap: 12px;
  min-height: 0;
}

.summary-actions {
  display: grid;
  flex: 0 0 auto;
  gap: 12px;
  padding-top: 24px;
}

.how-to-play-screen {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
  min-height: calc(100dvh - 48px - var(--safe-top) - var(--safe-bottom));
  position: relative;
  z-index: 1;
}

.how-to-step-content {
  align-content: start;
  display: grid;
  flex: 1 1 auto;
  gap: 24px;
  justify-items: center;
  opacity: 1;
  padding-top: clamp(80px, 12dvh, 96px);
  transition: opacity 300ms ease;
  width: 100%;
}

.how-to-step-content.is-step-fade-out,
.how-to-step-content.is-step-fade-in {
  opacity: 0;
  pointer-events: none;
}

.how-to-step-content.is-step-fade-in.is-visible {
  opacity: 1;
}

.how-to-play-copy {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  font-size: 0.68rem;
  width: 100%;
}

.how-to-step-count {
  color: var(--green);
  font-size: 0.76rem;
  line-height: 1;
  margin: 0;
}

.how-to-play-copy h1 {
  align-content: center;
  display: grid;
  font-size: 1.38rem;
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
  min-height: 1.08em;
}

.how-to-play-copy > p:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
  margin: 0;
  max-width: none;
  min-height: 4.05em;
  width: 100%;
}

.how-to-wireframe {
  min-height: 0;
  position: relative;
  width: 100%;
}

.how-to-demo {
  display: grid;
  min-height: 0;
  position: relative;
  width: 100%;
}

.how-to-demo[hidden] {
  display: none;
}

.tutorial-card {
  margin-top: 16px;
}

.tutorial-match-card .card-head {
  margin-bottom: 16px;
}

.tutorial-match-card .team-block strong {
  font-weight: 400;
}


.wireframe-label {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1;
  text-transform: uppercase;
}

.wireframe-mode-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.wireframe-mode {
  align-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  font-size: 0.88rem;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 48px;
  padding: 12px 12px;
}

.wireframe-mode span {
  color: #6f756f;
  font-size: 0.72rem;
}

.wireframe-mode.is-highlighted {
  border-color: var(--green);
  color: var(--ink);
  animation: howToPulse 1800ms ease-in-out infinite;
}

.wireframe-mode.is-highlighted span {
  color: var(--green);
}

.wireframe-pointer {
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  bottom: 24px;
  height: 18px;
  left: 47%;
  position: absolute;
  transform: rotate(45deg);
  width: 18px;
  animation: howToPointer 1800ms ease-in-out infinite;
}

.wireframe-score {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  margin-top: 16px;
  padding: 16px 12px;
  text-align: center;
}

.wireframe-score span {
  color: var(--muted);
  font-size: 0.82rem;
}

.wireframe-score strong {
  color: var(--green);
  font-size: 1.68rem;
  line-height: 1;
  animation: howToPulse 1800ms ease-in-out infinite;
}

.wireframe-goals {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.wireframe-goals div {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 46px 1fr;
  min-height: 34px;
  padding: 6px 8px;
}

.wireframe-goals span {
  color: var(--green);
  font-size: 0.78rem;
  opacity: 0;
  animation: howToReveal 450ms ease forwards;
}

.wireframe-goals div:nth-child(2) span {
  animation-delay: 450ms;
}

.wireframe-goals div:nth-child(3) span {
  animation-delay: 900ms;
}

.wireframe-goals i {
  background: var(--line);
  border-radius: 999px;
  display: block;
  height: 8px;
  max-width: 146px;
}

.wireframe-tabs {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
}

.wireframe-tabs span {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 8px 8px;
  text-align: center;
}

.wireframe-tabs .is-highlighted {
  background: rgba(184, 255, 24, 0.1);
  color: var(--green);
}

.wireframe-players {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.wireframe-players div {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  font-size: 0.82rem;
  gap: 8px;
  grid-template-columns: 24px minmax(0, 1fr) 16px;
  min-height: 36px;
  padding: 6px 8px;
}

.wireframe-players div:first-child {
  border-color: var(--green);
  color: var(--ink);
  animation: howToPulse 1800ms ease-in-out infinite;
}

.wireframe-players b {
  border: 1px solid var(--green);
  display: block;
  height: 14px;
  position: relative;
  width: 14px;
}

.wireframe-players div:first-child b::after {
  border: solid var(--green);
  border-width: 0 1px 1px 0;
  content: "";
  height: 6px;
  left: 6px;
  position: absolute;
  top: 2px;
  transform: rotate(45deg);
  width: 3px;
}

.wireframe-submit {
  align-items: center;
  background: var(--panel);
  border-top: 1px solid var(--line);
  bottom: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  left: 0;
  padding: 12px 0 0;
  position: absolute;
  right: 0;
}

.wireframe-submit span {
  color: var(--muted);
  font-size: 0.76rem;
}

.wireframe-submit strong {
  background: var(--green);
  border-radius: 8px;
  color: var(--black);
  font-size: 0.8rem;
  min-width: 92px;
  padding: 12px 12px;
  text-align: center;
  animation: howToPulse 1800ms ease-in-out infinite;
}

.wireframe-note {
  align-self: end;
  color: var(--green);
  font-size: 0.82rem;
  line-height: 1.2;
  margin: 0;
  text-align: center;
}

.wireframe-clues {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.wireframe-clues > span {
  color: var(--muted);
  font-size: 0.76rem;
}

.wireframe-clue {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  min-height: 42px;
  padding: 12px;
}

.wireframe-clue.is-highlighted {
  border-color: var(--green);
  color: var(--green);
  animation: howToPulse 1800ms ease-in-out infinite;
}

.how-to-next-button {
  flex: 0 0 auto;
  min-height: 50px;
}

.how-to-next-footer {
  bottom: 0;
  left: 50%;
  max-width: 520px;
  padding: 0 16px calc(16px + var(--safe-bottom));
  position: fixed;
  transform: translateX(-50%);
  width: min(100%, 520px);
  z-index: 20;
}

@keyframes howToPulse {
  0%,
  100% {
    background-color: transparent;
    box-shadow: inset 0 0 0 0 rgba(184, 255, 24, 0);
  }

  50% {
    background-color: rgba(184, 255, 24, 0.1);
    box-shadow: inset 0 0 0 1px rgba(184, 255, 24, 0.18);
  }
}

.wireframe-submit strong {
  animation-name: howToSubmitPulse;
}

@keyframes howToSubmitPulse {
  0%,
  100% {
    background: var(--green);
  }

  50% {
    background: #d1ff6b;
  }
}

@keyframes howToPointer {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(0) rotate(45deg);
  }

  50% {
    opacity: 1;
    transform: translateY(-10px) rotate(45deg);
  }
}

@keyframes howToReveal {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.app-topbar {
  align-items: center;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 42px 1fr 42px;
  min-height: 40px;
  position: relative;
  z-index: 1;
}

.topbar-logo {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.topbar-logo img {
  display: block;
  height: 21px;
  max-width: min(100%, 135px);
  object-fit: contain;
  width: auto;
}

.round-progress {
  color: var(--green);
  font-size: 0.74rem;
  line-height: 1;
  margin: 0;
  text-align: center;
}

.round-icon {
  align-items: center;
  aspect-ratio: 1;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  justify-self: center;
  place-items: center;
  position: relative;
  transition: background 200ms ease, border-color 200ms ease;
  width: 38px;
}

.round-icon::before {
  transition: border-color 200ms ease;
}

.round-icon:hover,
.round-icon:focus-visible,
.round-icon:active {
  background: var(--green);
  border-color: var(--green);
}

.round-icon:hover::before,
.round-icon:focus-visible::before,
.round-icon:active::before {
  border-color: var(--black);
}

.back-icon::before {
  border-bottom: 2px solid var(--green);
  border-left: 2px solid var(--green);
  content: "";
  height: 9px;
  transform: rotate(45deg) translate(2px, -1px);
  width: 9px;
}

.surface-card,
.match-card,
.goal-card,
.clue-card,
.selection-card,
.summary-card,
.perfect-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
  position: relative;
}

.match-card {
  flex: 0 0 auto;
  padding: 16px 16px 16px;
}

.card-head,
.score-panel,
.match-meta {
  position: relative;
  z-index: 1;
}

.card-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.league-lockup {
  align-items: center;
  display: grid;
  gap: 6px;
  justify-content: center;
  min-width: 0;
  width: 100%;
}

.league-lockup p {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
  margin: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-lockup #fixtureType {
  color: var(--green);
  font-size: 0.68rem;
}

.league-dot {
  display: none;
}

.score-panel {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(64px, 1fr) minmax(92px, 1.08fr) minmax(64px, 1fr);
}

.team-block {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: center;
}

.team-block img {
  aspect-ratio: 1;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: block;
  margin-bottom: 12px;
  object-fit: contain;
  padding: 0;
  width: 58px;
}

.team-block .team-shield {
  aspect-ratio: 1;
  display: block;
  margin-bottom: 12px;
  width: 58px;
}

.team-block strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 2px;
  overflow-wrap: anywhere;
}

.team-block span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
}

.score-block {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.scoreline {
  align-items: center;
  color: var(--ink);
  display: grid;
  font-size: 2.75rem;
  font-weight: 400;
  gap: 6px;
  grid-template-columns: 1fr auto 1fr;
  letter-spacing: 0;
  line-height: 0.92;
  min-width: 98px;
  text-align: center;
}

.divider {
  color: var(--ink);
  font-weight: 400;
}

.penalty-note {
  color: var(--green);
  font-size: 0.72rem;
  line-height: 1.15;
  margin: 6px 0 0;
  max-width: 128px;
  text-align: center;
}

.penalty-note[hidden] {
  display: none;
}

.match-meta {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
}

.match-meta div {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
  padding: 12px 12px;
}

.match-meta span,
.section-label span {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 400;
}

.match-meta strong {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  line-height: 1;
  margin-top: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.goal-card {
  --goal-time-width: 44px;
  flex: 0 0 auto;
  padding: 12px;
}

.clue-card {
  flex: 0 0 auto;
  padding: 12px;
}

.clue-unlock-toast {
  background: rgba(7, 9, 11, 0.88);
  border: 1px solid var(--green);
  border-radius: 999px;
  bottom: calc(100% + 20px);
  color: var(--green);
  left: 50%;
  opacity: 0;
  padding: 8px 14px;
  pointer-events: none;
  position: absolute;
  text-align: center;
  transform: translate(-50%, 8px);
  transition: opacity 500ms ease, transform 500ms ease;
  width: fit-content;
  z-index: 2;
}

.clue-unlock-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.clue-unlock-toast[hidden] {
  display: none;
}

.clue-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.goal-card.is-revealed {
  background: var(--green);
  border-color: var(--green);
  color: var(--black);
}

.goal-card.is-revealed .section-label span,
.goal-card.is-revealed .section-label strong,
.goal-card.is-revealed .goal-team-title,
.goal-card.is-revealed .goal-answer,
.goal-card.is-revealed .goal-minute,
.goal-card.is-revealed .goal-position,
.goal-card.is-revealed .goal-empty {
  color: var(--black);
}

.goal-card.is-revealed .goal-row {
  border-color: rgba(7, 9, 11, 0.14);
}

.goal-card.is-revealed .goal-list,
.goal-card.is-revealed .goal-team-column:nth-child(2),
.goal-card.is-revealed .goal-row,
.goal-card.is-revealed .goal-minute,
.goal-card.is-revealed .goal-position {
  border-color: rgba(7, 9, 11, 0.14);
}

.section-label {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-label span {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
}

.section-label strong {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#clueStatus.is-available {
  background: rgba(184, 255, 24, 0.1);
  border-radius: var(--radius-small);
  color: var(--green);
  padding: var(--space-xs) var(--space-sm);
}

.goal-list {
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
}

.goal-team-column {
  align-self: stretch;
  display: grid;
  gap: 0;
  min-width: 0;
}

.goal-team-column:nth-child(2) {
  border-left: 1px solid var(--line);
}

.goal-team-title {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  overflow: hidden;
  padding: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-row {
  align-items: center;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  display: grid;
  gap: 0;
  grid-template-columns: var(--goal-time-width) minmax(0, 1fr) auto;
  min-height: 34px;
  padding: 0;
}

.goal-row.is-slot {
  grid-template-columns: var(--goal-time-width) minmax(0, 1fr) auto;
  height: 34px;
  justify-items: start;
}

.goal-row.is-slot.has-position {
  grid-template-columns: var(--goal-time-width) minmax(0, 1fr) auto;
}

.goal-row.has-answer {
  align-items: center;
}

.goal-row.is-own-goal {
  background: rgba(184, 255, 24, 0.06);
}

.goal-row.is-own-goal .goal-answer {
  color: var(--green);
}

.goal-minute {
  align-items: center;
  align-self: stretch;
  border-right: 1px solid var(--line);
  color: var(--green);
  display: flex;
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.05;
  padding: 0 6px;
  text-align: left;
  width: var(--goal-time-width);
  white-space: nowrap;
}

.goal-answer {
  align-items: center;
  align-self: stretch;
  color: var(--ink);
  display: flex;
  font-size: 0.8rem;
  font-weight: 400;
  grid-column: 2;
  line-height: 1.05;
  overflow-wrap: anywhere;
  padding: 0 6px;
}

.goal-answer.is-hidden {
  visibility: hidden;
}

.goal-position {
  align-items: center;
  align-self: stretch;
  border-left: 1px solid var(--line);
  color: var(--green);
  display: flex;
  font-size: 0.68rem;
  font-weight: 400;
  grid-column: 3;
  justify-content: flex-end;
  justify-self: end;
  letter-spacing: 0;
  line-height: 1;
  min-width: 30px;
  padding: 0 6px;
  text-transform: uppercase;
}

.goal-position.is-hidden {
  display: none;
}

.goal-position.is-revealing {
  animation: positionFadeIn 300ms ease forwards;
  opacity: 0;
  transform: translateY(4px);
}

.goal-answer.is-revealing {
  animation: positionFadeIn 300ms ease forwards;
  opacity: 0;
  transform: translateY(4px);
}

.goal-empty {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.76rem;
  justify-items: start;
  min-height: 32px;
  padding: 0 12px;
  text-align: left;
  white-space: nowrap;
}

.goal-blank {
  min-height: 34px;
}

.position-reveal-button,
.fifty-fifty-button,
.reveal-answers-button,
.button {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  color: var(--ink);
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.1;
  margin-top: 0;
  min-height: 50px;
  padding: 0 12px;
  text-align: center;
  transition: border-color 200ms ease, color 200ms ease;
  width: 100%;
}

.position-reveal-button:hover,
.position-reveal-button:focus-visible,
.position-reveal-button:active,
.fifty-fifty-button:hover,
.fifty-fifty-button:focus-visible,
.fifty-fifty-button:active,
.reveal-answers-button:hover,
.reveal-answers-button:focus-visible,
.reveal-answers-button:active {
  border-color: var(--green);
  color: var(--green);
}

.position-reveal-button:disabled,
.fifty-fifty-button:disabled,
.reveal-answers-button:disabled {
  background: var(--panel-soft);
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}

.fifty-fifty-button[hidden] {
  display: none;
}

.reveal-answers-button {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  isolation: isolate;
  margin-top: 8px;
  overflow: hidden;
  position: relative;
  user-select: none;
}

.reveal-answers-button::before {
  background: var(--green);
  content: "";
  inset: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
  z-index: 0;
}

.reveal-answers-button > span {
  position: relative;
  z-index: 1;
}

.reveal-answers-button.is-holding::before {
  transform: scaleX(1);
  transition-duration: 2000ms;
  transition-timing-function: linear;
}

.reveal-answers-button.is-revealed {
  background: var(--green);
  border-color: var(--green);
  color: var(--black);
}

.reveal-answers-button.is-revealed::before {
  display: none;
}

.selection-card {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  padding: 16px;
}

.selection-card[hidden] {
  display: none;
}

.summary-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.summary-brand img {
  display: block;
  height: auto;
  max-width: 260px;
  width: 72%;
}

.summary-card {
  display: grid;
  gap: 8px;
  padding: 24px 16px;
  text-align: center;
}

.summary-card p,
.summary-card h1,
.summary-card span {
  margin: 0;
}

.summary-card p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.1;
}

.summary-card h1 {
  color: var(--green);
  font-size: 3.2rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
}

.summary-card span {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.2;
}

.perfect-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

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

.perfect-row {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  display: grid;
  font-size: 0.84rem;
  gap: 2px;
  line-height: 1.15;
  min-height: 48px;
  padding: 8px 12px;
}

.perfect-row span {
  color: var(--muted);
  font-size: 0.72rem;
}

.perfect-empty {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 12px;
  text-align: center;
}

.summary-home-button {
  align-self: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 0.98rem;
  line-height: 1.2;
  margin-top: 2px;
  padding: 2px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 200ms ease;
}

.summary-home-button:hover,
.summary-home-button:focus-visible,
.summary-home-button:active {
  color: var(--green);
  outline: 0;
}

.team-tabs {
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  flex: 0 0 auto;
  gap: 6px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 12px;
  padding: 6px;
}

.tab-button {
  background: transparent;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 400;
  min-height: 38px;
  padding: 8px;
}

.tab-button.is-active {
  background: var(--green);
  color: var(--black);
}

.player-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  padding: 0 2px 2px;
}

.lineup-notice {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
  margin: 0 2px 12px;
}

.lineup-notice[hidden] {
  display: none;
}

.lineup-group {
  display: grid;
  gap: 8px;
}

.lineup-empty {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 12px;
  text-align: center;
}

.lineup-group h3 {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  margin: 2px 2px 0;
}

.player-button {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  display: grid;
  gap: 12px;
  grid-template-columns: 42px 1fr 24px;
  min-height: 58px;
  padding: 8px 12px;
  text-align: left;
  transition: background 140ms ease, transform 140ms ease;
}

.player-button::after {
  content: "";
  display: block;
  height: 22px;
  justify-self: center;
  width: 22px;
}

.player-button:active {
  transform: scale(0.985);
}

.player-button:not(:disabled):hover,
.player-button:not(:disabled):focus-visible,
.player-button:not(:disabled):active {
  background: rgba(184, 255, 24, 0.1);
}

.player-number {
  align-items: center;
  color: var(--green);
  display: grid;
  font-size: 0.82rem;
  font-weight: 400;
  place-items: center;
}

.player-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.player-button.is-selected {
  background: rgba(184, 255, 24, 0.1);
  border-color: rgba(184, 255, 24, 0.54);
}

.player-button.is-selected .player-number {
  color: var(--green);
}

.player-button.is-correct {
  background: var(--panel-soft);
  border-color: rgba(184, 255, 24, 0.54);
  cursor: default;
}

.player-button.is-correct::after {
  background: var(--green);
  -webkit-mask: url("./assets/icon-correct.svg") center / contain no-repeat;
  mask: url("./assets/icon-correct.svg") center / contain no-repeat;
}

.player-status {
  display: none;
}

.player-button.is-own-goal {
  background: rgba(184, 255, 24, 0.05);
  border-color: rgba(184, 255, 24, 0.28);
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.player-button.is-own-goal::after {
  display: none;
}

.player-button.is-own-goal .player-number {
  color: var(--muted);
}

.player-button.is-own-goal .player-status {
  color: var(--green);
  display: block;
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
}

.player-button.is-wrong {
  background: rgba(255, 23, 79, 0.12);
  border-color: rgba(255, 23, 79, 0.42);
}

.player-button.is-wrong .player-number {
  color: rgba(255, 23, 79, 0.42);
}

.player-button.is-removing {
  animation: playerFadeOut 600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
  will-change: opacity, transform;
}

.player-button:disabled:not(.is-correct) {
  color: #6f756f;
  cursor: default;
}

.player-button.is-wrong:disabled {
  color: var(--ink);
}

.action-bar {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.action-status {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  min-height: 20px;
  position: relative;
}

.match-score-status,
.guess-status {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
  margin: 0;
}

.match-score-status {
  text-align: center;
}

.guess-status {
  text-align: right;
}

.action-status:has(.match-score-status.is-hard) {
  justify-content: space-between;
}

.action-status:has(.match-score-status.is-hard) .match-score-status {
  text-align: left;
}

.action-status:has(.match-score-status.is-hard) .guess-status {
  display: block;
}

.action-status .guess-status[hidden] {
  display: none;
}

.action-bar.is-complete {
  grid-template-columns: 1fr;
}

.selection-summary[hidden] {
  display: none;
}

.primary-action,
.secondary-action,
.button {
  border-radius: var(--radius-panel);
  font-size: 0.9rem;
  font-weight: 400;
  min-height: 46px;
  padding: 0 12px;
  transition: background var(--duration-standard) var(--ease-standard), border-color var(--duration-standard) var(--ease-standard), color var(--duration-standard) var(--ease-standard);
  width: 100%;
}

.primary-action {
  background: var(--green);
  color: var(--black);
}

.secondary-action {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: var(--ink);
}

#nextGameButton:hover,
#nextGameButton:focus-visible,
#nextGameButton:active {
  border-color: var(--green);
  color: var(--green);
}

.action-bar.is-complete #nextGameButton:hover,
.action-bar.is-complete #nextGameButton:focus-visible,
.action-bar.is-complete #nextGameButton:active {
  color: var(--black) !important;
}

.primary-action:disabled,
.secondary-action:disabled {
  background: #303533;
  color: #7b827b;
  cursor: default;
}

.sticky-submit {
  background: var(--black);
  border-top: 1px solid var(--line);
  left: 50%;
  max-width: 520px;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  position: fixed;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 520px);
  z-index: 20;
}

.guess-status {
  color: var(--green);
  font-size: 0.76rem;
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
  text-align: center;
}

.guess-status[hidden] {
  display: none;
}

.guess-status.is-exhausted {
  color: var(--red);
}

.result-overlay {
  align-items: center;
  background: rgba(7, 9, 11, 0.82);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 24px;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 30;
}

.result-overlay[hidden] {
  display: none;
}

.result-overlay.is-overlay-transition {
  opacity: 0;
  pointer-events: none;
}

.result-overlay.is-overlay-transition.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.result-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  max-width: 360px;
  padding: 20px;
  text-align: center;
  transform: translateY(0) scale(1);
  transition: opacity 180ms ease, transform 180ms ease;
  width: 100%;
}

.result-overlay.is-overlay-transition .result-panel {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}

.result-overlay.is-overlay-transition.is-visible .result-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-close {
  align-items: center;
  background: rgba(184, 255, 24, 0.1);
  border: 1px solid rgba(184, 255, 24, 0.28);
  border-radius: var(--radius-small);
  display: grid;
  flex: 0 0 auto;
  height: 34px;
  place-items: center;
  position: relative;
  transition: background var(--duration-standard) var(--ease-standard), border-color var(--duration-standard) var(--ease-standard);
  width: 34px;
}

.modal-close::before,
.modal-close::after {
  background: var(--muted);
  content: "";
  height: 1px;
  position: absolute;
  width: 12px;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.modal-close::before,
.modal-close::after {
  background: var(--green);
  transition: background var(--duration-standard) var(--ease-standard);
}

.modal-close:hover,
.modal-close:focus-visible,
.modal-close:active {
  background: var(--green);
  border-color: var(--green);
}

.modal-close:hover::before,
.modal-close:hover::after,
.modal-close:focus-visible::before,
.modal-close:focus-visible::after,
.modal-close:active::before,
.modal-close:active::after {
  background: var(--black);
}

.result-kicker,
.result-panel h2,
.result-panel p {
  margin: 0;
}

.result-panel-heading {
  align-items: center;
  display: grid;
  min-height: 34px;
  min-width: 0;
  place-items: center;
  position: relative;
  text-align: left;
}

.result-panel .result-kicker {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: center;
}

.result-panel-heading .modal-close {
  position: absolute;
  right: 0;
  top: 0;
}

#progressCopy + .overlay-actions {
  margin-top: var(--space-md);
}

.result-panel p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.35;
}

@keyframes positionFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes playerFadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  45% {
    opacity: 0.38;
    transform: translateY(3px) scale(0.992);
  }

  to {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}

@keyframes roundSlideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-72px);
  }
}

@keyframes roundSlideIn {
  from {
    opacity: 0;
    transform: translateX(72px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.overlay-actions {
  display: grid;
  gap: 8px;
}

.overlay-actions.has-two {
  gap: 16px;
  grid-template-columns: 1fr;
}

.overlay-action {
  background: var(--green);
  border-radius: 12px;
  color: var(--black);
  font-size: 0.96rem;
  font-weight: 400;
  min-height: 50px;
  padding: 0 20px;
  transition: background var(--duration-standard) var(--ease-standard), border-color var(--duration-standard) var(--ease-standard), color var(--duration-standard) var(--ease-standard);
}

.overlay-action.is-link {
  background: transparent;
  border-radius: 0;
  color: var(--ink);
  min-height: auto;
  padding: 6px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.overlay-action[hidden] {
  display: none;
}

@media (min-height: 760px) {
  .app-shell {
    gap: 16px;
  }

  .team-block img {
    width: 66px;
  }
}

@media (min-width: 700px) {
  .app-shell {
    min-height: min(100dvh, 900px);
  }
}


/* Leaderboard */
.summary-submit-score-button {
  flex: 0 0 auto;
  margin-top: var(--space-2xs);
}

.leaderboard-shell {
  --corner-gradient-size: clamp(320px, 92vw, 460px);
  --corner-gradient-offset: calc(var(--corner-gradient-size) * -0.49);
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
  margin: 0 auto;
  max-width: var(--content-max-width);
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
  padding: calc(var(--space-md) + var(--safe-top)) var(--page-gutter) calc(var(--space-4xl) + var(--safe-bottom));
  position: relative;
}

.app-topbar,
.leaderboard-content {
  position: relative;
  z-index: 1;
}

.leaderboard-shell::before,
.leaderboard-shell::after {
  background:
    radial-gradient(circle, rgba(184, 255, 24, 0.34) 0 1px, transparent 1.35px) 0 0 / 12px 12px,
    radial-gradient(circle at center, rgba(184, 255, 24, 0.24), rgba(184, 255, 24, 0.1) 42%, rgba(184, 255, 24, 0) 72%);
  border-radius: 50%;
  content: "";
  height: var(--corner-gradient-size);
  mask-image: radial-gradient(circle, #000 0 45%, rgba(0, 0, 0, 0.72) 56%, transparent 74%);
  opacity: 0.65;
  pointer-events: none;
  position: fixed;
  width: var(--corner-gradient-size);
  z-index: 0;
}

.leaderboard-shell::before { right: var(--corner-gradient-offset); top: var(--corner-gradient-offset); }
.leaderboard-shell::after { bottom: var(--corner-gradient-offset); left: var(--corner-gradient-offset); }

.leaderboard-content {
  display: grid;
  gap: var(--space-2xl);
  margin: 0;
}

.leaderboard-heading {
  display: grid;
  gap: var(--space-sm);
  text-align: center;
}

.leaderboard-heading h1,
.leaderboard-heading p { margin: 0; }
.leaderboard-heading h1 { font-size: 1.6rem; font-weight: 400; line-height: 1.05; }
.leaderboard-heading > p:last-child { color: var(--muted); font-size: 0.92rem; line-height: 1.35; }

.leaderboard-navigation {
  display: grid;
  gap: var(--space-md);
  margin-bottom: 0;
  margin-top: var(--space-lg);
}

.leaderboard-competition-tabs,
.leaderboard-tabs {
  display: flex;
  margin: 0 calc(var(--page-gutter) * -1);
  overflow-x: auto;
  padding: 0 var(--page-gutter);
  scrollbar-width: none;
}

.leaderboard-competition-tabs::-webkit-scrollbar,
.leaderboard-tabs::-webkit-scrollbar { display: none; }

.leaderboard-tab {
  background: transparent;
  border: 0;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.2;
  min-height: 28px;
  padding: 4px 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 240ms ease, text-decoration-color 240ms ease;
  white-space: nowrap;
}

.leaderboard-competition-tabs {
  gap: var(--space-sm);
}

.leaderboard-tabs {
  gap: var(--space-lg);
}

.leaderboard-competition-tab {
  background: rgba(184, 255, 24, 0.1);
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1;
  min-height: 28px;
  padding: 6px calc(var(--space-sm) + 2px);
  text-decoration: none;
  transition: background 400ms ease, color 400ms ease;
}

.leaderboard-competition-tab.is-active,
.leaderboard-competition-tab:hover,
.leaderboard-competition-tab:focus-visible,
.leaderboard-competition-tab:active {
  background: var(--green);
  color: var(--black);
  outline: 0;
  text-decoration: none;
}

.leaderboard-tab {
  font-size: 0.82rem;
}

.leaderboard-tab.is-active,
.leaderboard-tab:hover,
.leaderboard-tab:focus-visible,
.leaderboard-tab:active {
  background: transparent;
  color: var(--green);
  outline: 0;
  text-decoration-color: currentColor;
}

.leaderboard-tab.is-active {
  font-weight: 500;
}
.leaderboard-navigation > div {
  min-width: 0;
}

.leaderboard-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
}

.leaderboard-table-head,
.leaderboard-row {
  align-items: center;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 80px 74px;
  gap: var(--space-sm);
}

.leaderboard-table-head {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  padding: var(--space-md) var(--space-lg);
  text-align: right;
}

.leaderboard-table-head span:first-child { grid-column: 1 / span 2; text-align: left; }
.leaderboard-rows { display: grid; }

.leaderboard-row {
  border-bottom: 1px solid var(--line);
  min-height: 64px;
  padding: var(--space-md) var(--space-lg);
  text-align: right;
}

.leaderboard-row:last-child { border-bottom: 0; }
.leaderboard-row.is-submitted { background: rgba(184, 255, 24, 0.12); box-shadow: inset 3px 0 0 var(--green); }
.leaderboard-submitted-position {
  display: grid;
  gap: var(--space-sm);
}

.leaderboard-submitted-position > p {
  color: var(--green);
  font-size: 0.76rem;
  margin: 0;
  text-align: center;
}

.leaderboard-submitted-position .leaderboard-row {
  background: var(--surface);
  border: 1.5px solid rgba(184, 255, 24, 0.35);
  border-radius: var(--radius-panel);
}

.leaderboard-more-button {
  align-self: center;
  background: rgba(184, 255, 24, 0.1);
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.76rem;
  min-height: 32px;
  padding: 6px var(--space-md);
  transition: background 400ms ease, color 400ms ease;
}

.leaderboard-more-button:hover,
.leaderboard-more-button:focus-visible,
.leaderboard-more-button:active {
  background: var(--green);
  color: var(--black);
  outline: 0;
}

.leaderboard-more-button[hidden],
.leaderboard-submitted-position[hidden] {
  display: none;
}

.leaderboard-player { display: grid; gap: var(--space-2xs); text-align: left; }
.leaderboard-player strong { font-size: 0.86rem; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-player span { color: var(--muted); font-size: 0.7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-rank { color: var(--green); display: block; font-size: 0.74rem; text-align: left; }
.leaderboard-number { color: var(--ink); font-size: 0.8rem; }
.leaderboard-score { color: var(--green); font-size: 0.9rem; font-weight: 400; }
.leaderboard-empty { color: var(--muted); font-size: 0.9rem; line-height: 1.4; margin: 0; padding: var(--space-3xl) var(--space-lg); text-align: center; }
.leaderboard-note, .leaderboard-removal-link { color: var(--muted); font-size: 0.76rem; line-height: 1.4; margin: 0; text-align: center; }
.leaderboard-removal-link { color: var(--green); justify-self: center; text-decoration: none; }
.leaderboard-removal-link:hover, .leaderboard-removal-link:focus-visible, .leaderboard-removal-link:active { color: var(--ink); }

.submission-shell {
  padding-bottom: calc(var(--space-4xl) + var(--safe-bottom));
  padding-top: calc(var(--space-4xl) + var(--safe-top));
}
.submission-content { margin: auto 0; }
.submission-shell .submission-content { display: flex; flex: 1; flex-direction: column; gap: var(--space-2xl); margin: 0; }
.submission-shell .submission-form { display: flex; flex: 1; flex-direction: column; }
.submission-form-actions { display: grid; gap: var(--space-md); margin-top: auto; padding-top: var(--space-2xl); }
.submission-score-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
.submission-score-card div { display: grid; gap: var(--space-xs); padding: var(--space-xl) var(--space-md); text-align: center; }
.submission-score-card div + div { border-left: 1px solid var(--line); }
.submission-score-card span { color: var(--muted); font-size: 0.72rem; }
.submission-score-card strong { color: var(--green); font-size: 1.35rem; font-weight: 400; }
.submission-result-actions { display: grid; gap: var(--space-xl); }
.submission-result-actions + .submission-form { margin-top: var(--space-lg); }
.submission-form { display: grid; gap: var(--space-md); }
.submission-form > label:not(.submission-consent) { color: var(--ink); font-size: 0.82rem; }
.submission-form input[type="text"], .club-select-trigger { appearance: none; background: var(--panel-soft); border: 1px solid var(--line); border-radius: var(--radius-panel); color: var(--ink); font: inherit; font-size: 0.92rem; min-height: 48px; padding: 0 var(--space-lg); width: 100%; }
.submission-form input[type="text"]:focus, .club-select-trigger:focus { border-color: var(--green); outline: 0; }
.club-select { position: relative; }
.club-select-trigger { background-image: url("./assets/keyboard-arrow-down.svg"); background-position: right var(--space-md) center; background-repeat: no-repeat; background-size: 24px 24px; cursor: pointer; padding-right: var(--space-4xl); text-align: left; }
.club-select-trigger:hover, .club-select-trigger:focus, .club-select-trigger:active { border-color: var(--green); color: var(--green); }
.club-select-native { height: 1px; opacity: 0; pointer-events: none; position: absolute; width: 1px; }
.club-select-menu { background: var(--panel-soft); border: 1px solid var(--green); border-radius: var(--radius-panel); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28); display: flex; flex-direction: column; gap: var(--space-sm); left: 0; max-height: 352px; overflow: hidden; padding: var(--space-sm); position: absolute; right: 0; top: calc(100% + var(--space-xs)); z-index: 10; }
.club-select-menu[hidden] {
  display: none;
}

.club-select-search { appearance: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); color: var(--ink); font: inherit; font-size: 0.9rem; min-height: 40px; outline: 0; padding: 0 var(--space-md); width: 100%; }
.club-select-search::placeholder { color: var(--muted); }
.club-select-search:focus { border-color: var(--green); }
.club-select-options { display: grid; gap: var(--space-2xs); min-height: 0; overflow-y: auto; }
.club-select-empty { color: var(--muted); font-size: 0.82rem; margin: 0; padding: var(--space-md); text-align: center; }

.club-select-option { background: transparent; border: 0; border-radius: var(--radius-small); color: var(--ink); font: inherit; font-size: 0.9rem; min-height: 40px; padding: 0 var(--space-md); text-align: left; width: 100%; }
.club-select-option:hover, .club-select-option:focus-visible, .club-select-option:active, .club-select-option.is-selected { background: rgba(184, 255, 24, 0.12); color: var(--green); outline: 0; }
.submission-field-label { color: var(--ink); font-size: 0.82rem; }
.submission-field-error { color: var(--green); font-size: 0.78rem; line-height: 1.3; margin: calc(var(--space-xs) * -1) 0 0; }
.submission-form input[type="text"].is-needs-attention,
.club-select-trigger.is-needs-attention { border-color: var(--green); }
.submission-consent input.is-needs-attention { outline: 1px solid var(--green); outline-offset: 2px; }
.submission-consent { align-items: flex-start; color: var(--muted); display: flex; font-size: 0.76rem; gap: var(--space-sm); line-height: 1.4; }
.submission-consent input { accent-color: var(--green); flex: 0 0 auto; margin: 2px 0 0; }
.submission-consent a { color: var(--green); }
.submission-error { color: var(--red); font-size: 0.82rem; line-height: 1.3; margin: 0; }
.share-score-button {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  color: var(--ink);
  display: flex;
  font-size: 0.9rem;
  gap: var(--space-sm);
  justify-content: center;
  min-height: 46px;
  padding: 0 var(--space-lg);
  transition: border-color var(--duration-standard) var(--ease-standard), color var(--duration-standard) var(--ease-standard);
}

.share-score-button img {
  height: 16px;
  object-fit: contain;
  width: 16px;
}

.share-score-button:hover,
.share-score-button:focus-visible,
.share-score-button:active {
  border-color: var(--green);
  color: var(--green);
  outline: 0;
}

.share-score-button[hidden] {
  display: none;
}

.submission-skip-link {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  padding: var(--space-xs);
  text-align: center;
  width: 100%;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--duration-standard) var(--ease-standard);
}

.submission-skip-link:hover,
.submission-skip-link:focus-visible,
.submission-skip-link:active {
  color: var(--green);
  outline: 0;
}

.submission-form[hidden],
.submission-score-card[hidden],
.submission-unavailable[hidden] {
  display: none;
}

.submission-unavailable { display: grid; gap: var(--space-lg); text-align: center; }
.submission-unavailable p { color: var(--muted); margin: 0; }
.inline-action { align-items: center; display: flex; justify-content: center; text-decoration: none; }

@media (min-width: 640px) {
  .leaderboard-shell { padding-left: var(--space-2xl); padding-right: var(--space-2xl); }
}

.analytics-consent {
  align-items: flex-end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  bottom: calc(var(--space-md) + var(--safe-bottom));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.36);
  display: grid;
  gap: var(--space-lg);
  left: var(--space-md);
  max-width: 520px;
  opacity: 0;
  padding: var(--space-lg);
  position: fixed;
  right: var(--space-md);
  transform: translateY(var(--space-sm));
  transition: opacity 240ms ease, transform 240ms ease;
  z-index: 1000;
}

.analytics-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.analytics-consent.is-closing {
  opacity: 0;
  transform: translateY(var(--space-sm));
}

.analytics-consent-copy {
  display: grid;
  gap: var(--space-sm);
}

.analytics-consent-copy strong {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 600;
}

.analytics-consent-copy p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0;
}

.analytics-consent-copy a,
.legal-analytics-settings {
  color: var(--green);
  font-size: 0.78rem;
  justify-self: start;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.analytics-consent-actions {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-md);
}

.analytics-consent-accept,
.analytics-consent-reject,
.legal-analytics-settings {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.analytics-consent-accept {
  background: var(--green);
  border-radius: var(--radius-small);
  color: var(--black);
  font-size: 0.78rem;
  min-height: 40px;
  padding: 0 var(--space-lg);
  width: 100%;
}

.analytics-consent-reject,
.legal-analytics-settings {
  background: transparent;
}

.analytics-consent-reject {
  color: var(--ink);
  font-size: 0.78rem;
  min-height: 40px;
  padding: 0 var(--space-sm);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.analytics-consent-accept:hover,
.analytics-consent-accept:focus-visible,
.analytics-consent-accept:active {
  background: var(--ink);
  outline: 0;
}

.analytics-consent-reject:hover,
.analytics-consent-reject:focus-visible,
.analytics-consent-reject:active,
.analytics-consent-copy a:hover,
.analytics-consent-copy a:focus-visible,
.analytics-consent-copy a:active,
.legal-analytics-settings:hover,
.legal-analytics-settings:focus-visible,
.legal-analytics-settings:active {
  color: var(--green);
  outline: 0;
}

@media (min-width: 640px) {
  .analytics-consent {
    grid-template-columns: minmax(0, 1fr) auto;
    left: var(--space-lg);
    right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent {
    transition: none;
  }
}

/* Keep the hover treatment visible after a tap on touch devices. */
@media (hover: none) and (pointer: coarse) {
  button:not(:disabled):focus,
  a:focus {
    outline: 0;
    filter: brightness(1.08);
  }

  .competition-option.is-ready:focus,
  .difficulty-option:focus,
  .position-reveal-button:focus,
  .fifty-fifty-button:focus,
  .reveal-answers-button:focus,
  .leaderboard-competition-tab:focus,
  .leaderboard-more-button:focus,
  .share-score-button:focus,
  .analytics-consent-accept:focus {
    border-color: var(--green);
    background: var(--green);
    color: var(--black);
  }

  .leaderboard-tab:focus,
  .submission-skip-link:focus,
  .leaderboard-removal-link:focus,
  .how-to-play-button:focus {
    color: var(--green);
  }

  #nextGameButton:focus:not(.is-tap-feedback) {
    background: var(--panel-soft);
    border-color: var(--line);
    color: var(--ink);
    filter: none;
  }

  .action-bar.is-complete #nextGameButton:focus:not(.is-tap-feedback) {
    background: var(--green);
    border-color: var(--green);
    color: var(--black);
  }
}
