:root {
  --navy: #0b1b3a;
  --navy-2: #13295a;
  --lime: #c6ff00;
  --lime-deep: #8fc400;
  --paper: #f3f5ef;
  --line: #dfe3d8;
  --text: #0b1b3a;
  --muted: #5b6577;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
}

/* ——— Header ——— */
.top {
  background: var(--navy);
  color: #fff;
}

.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, 100% - 32px);
  margin: 0 auto;
  padding: 12px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 26px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--navy);
  font-size: 24px;
  transform: skewX(-8deg);
}

.age {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 13px;
}

/* ——— Layout ——— */
.stage {
  flex: 1;
  display: grid;
  gap: 0;
  width: 100%;
}

@media (min-width: 980px) {
  .stage {
    grid-template-columns: 1fr 1fr;
    width: min(1180px, 100% - 32px);
    margin: 32px auto 48px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(11, 27, 58, 0.18);
  }
}

/* ——— Match hero ——— */
.match {
  position: relative;
  padding: 26px 16px 30px;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(60% 50% at 80% 0%, rgba(255, 255, 255, 0.3), transparent 60%),
    linear-gradient(180deg, #0f5132 0%, #0b3d26 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 980px) {
  .match {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 44px;
    text-align: left;
  }
}

/* Pitch stripes and markings */
.match__pitch {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 60px, transparent 60px 120px),
    radial-gradient(circle at 50% 120%, transparent 0 120px, rgba(255, 255, 255, 0.16) 121px 123px, transparent 124px);
  pointer-events: none;
}

.match__pitch::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
}

@media (min-width: 980px) {
  .match__pitch::after {
    display: none;
  }
}

.match > *:not(.match__pitch) {
  position: relative;
}

.match__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 980px) {
  .match__tag {
    align-self: flex-start;
  }
}

.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.match__teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 20px 0 6px;
}

@media (min-width: 980px) {
  .match__teams {
    justify-content: flex-start;
    margin: 28px 0 10px;
  }
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 110px;
}

.team p {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.crest {
  width: 62px;
  height: 70px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

.vs {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 36px;
  color: var(--lime);
  text-shadow: 0 0 22px rgba(198, 255, 0, 0.5);
}

.match h1 {
  margin: 14px 0 8px;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(38px, 9vw, 66px);
  line-height: 0.95;
  text-transform: uppercase;
}

.match h1 em {
  color: var(--lime);
}

.lead {
  max-width: 40ch;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
}

.lead b {
  color: #fff;
}

@media (min-width: 980px) {
  .lead {
    margin: 0;
    font-size: 19px;
  }
}

.how {
  display: none;
  gap: 18px;
  margin-top: 28px;
  list-style: none;
  font-weight: 700;
}

.how li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.how b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
  font-size: 14px;
}

@media (min-width: 980px) {
  .how {
    display: flex;
  }
}

/* ——— Quiz card ——— */
.quiz {
  position: relative;
  padding: 24px 16px 32px;
  background: #fff;
}

@media (min-width: 980px) {
  .quiz {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 600px;
    padding: 48px 44px;
  }
}

.step {
  animation: stepIn 0.35s ease;
}

.step[hidden] {
  display: none;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime-deep), var(--lime));
  transition: width 0.4s ease;
}

.step__count {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quiz h2 {
  margin: 4px 0 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.05;
  text-transform: uppercase;
}

.answers {
  display: grid;
  gap: 10px;
}

@media (min-width: 560px) {
  .answers--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .answers--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.answers button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-weight: 700;
  font-size: 17px;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

@media (min-width: 560px) {
  .answers button {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 150px;
    text-align: center;
  }
}

.answers button:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(11, 27, 58, 0.12);
}

.answers button:focus-visible {
  outline: 3px solid var(--lime-deep);
  outline-offset: 2px;
}

.answers button.is-picked {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.answers small {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
}

@media (min-width: 560px) {
  .answers small {
    margin-left: 0;
  }
}

.answers button.is-picked small {
  background: var(--lime);
}

.answers__crest {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
}

.answers__crest--blue {
  background: #1d4ed8;
  color: #fff;
}

.answers__crest--dark {
  background: #111827;
  color: #fff;
  box-shadow: inset 0 0 0 3px #dc2626;
}

.answers__big {
  flex-shrink: 0;
  min-width: 40px;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 30px;
  line-height: 1;
}

.back {
  margin-top: 16px;
  color: var(--muted);
  font-weight: 700;
}

.back:hover {
  color: var(--navy);
}

/* Loading step */
.step--loading {
  text-align: center;
}

.ball {
  width: 64px;
  height: 64px;
  margin: 8px auto 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #111 0 9px, transparent 10px),
    radial-gradient(circle at 20% 30%, #111 0 6px, transparent 7px),
    radial-gradient(circle at 80% 30%, #111 0 6px, transparent 7px),
    radial-gradient(circle at 30% 85%, #111 0 6px, transparent 7px),
    radial-gradient(circle at 75% 85%, #111 0 6px, transparent 7px),
    radial-gradient(circle at 35% 30%, #fff, #d9d9d9);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
  animation: roll 0.9s linear infinite;
}

@keyframes roll {
  to {
    transform: rotate(360deg);
  }
}

.checks {
  display: inline-grid;
  gap: 10px;
  list-style: none;
  text-align: left;
  font-weight: 600;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  transition: color 0.3s ease;
}

.checks li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.checks li.is-done {
  color: var(--navy);
}

.checks li.is-done::before {
  border-color: var(--lime-deep);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l4 4 10-10' fill='none' stroke='%230b1b3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 14px no-repeat,
    var(--lime);
}

/* Result: bet slip */
.slip {
  margin-top: 10px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(11, 27, 58, 0.25);
}

.slip__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: var(--navy-2);
  font-weight: 700;
  font-size: 14px;
}

.slip__head span:last-child {
  color: var(--lime);
}

.slip__picks {
  list-style: none;
  padding: 6px 18px;
}

.slip__picks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
  font-weight: 600;
  animation: stepIn 0.35s ease both;
}

.slip__picks li:nth-child(2) {
  animation-delay: 0.1s;
}

.slip__picks li:nth-child(3) {
  animation-delay: 0.2s;
}

.slip__picks b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  color: var(--lime);
}

.slip__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 18px 14px;
  font-weight: 700;
}

.slip__total b {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 34px;
  color: var(--lime);
}

.slip__bonus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--lime);
  color: var(--navy);
}

.slip__bonus div {
  padding: 12px 18px;
}

.slip__bonus div + div {
  border-left: 2px dashed rgba(11, 27, 58, 0.3);
}

.slip__bonus span {
  display: block;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.slip__bonus b {
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1.1;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 62px;
  margin-top: 18px;
  border-radius: 14px;
  background: var(--lime);
  color: var(--navy);
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--lime-deep);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--lime-deep);
}

.cta:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--lime-deep);
}

.cta:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.fine {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.restart {
  display: block;
  margin: 12px auto 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
}

/* ——— Footer ——— */
.foot {
  padding: 18px 16px 26px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.foot p + p {
  margin-top: 6px;
}

.foot .demo {
  opacity: 0.8;
}

/* ——— Modal ——— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(11, 27, 58, 0.6);
  backdrop-filter: blur(4px);
  animation: fade 0.25s ease;
}

.modal[hidden] {
  display: none;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.modal__card {
  position: relative;
  width: min(420px, 100%);
  padding: 30px 24px 24px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 30px 70px rgba(11, 27, 58, 0.35);
  animation: stepIn 0.3s ease;
}

.modal__card h2 {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 30px;
  line-height: 1.05;
  text-transform: uppercase;
}

.modal__card p {
  margin-top: 10px;
  color: var(--muted);
}

.modal__kicker {
  margin: 0 0 6px !important;
  color: var(--lime-deep) !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
}

.modal__close:hover {
  background: var(--paper);
}

.modal__link {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
