:root {
  --lime: #c4f23c;
  --lime-deep: #97c203;
  --navy: #121724;
  --slate: #252a36;
  --field: #1b2030;
  --line: #3b4152;
  --muted: #a3a3a3;
  --red: radial-gradient(140% 120% at 80% 0%, #f47b78 0%, #ee5a58 38%, #c8403e 100%);
  --lime-fill: radial-gradient(140% 120% at 80% 0%, var(--lime) 0%, var(--lime) 38%, var(--lime-deep) 100%);

  /* side gutter: keeps logo + copy inside 1440 on big screens */
  --gx: max(44px, calc((100vw - 1440px) / 2 + 44px));
  --notch-r: 24px;
  --stage-r: 0px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--navy);
  color: #f2f2f2;
  font: 500 16px/1.4 'Chakra Petch', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: Oxanium, 'Chakra Petch', sans-serif; margin: 0; text-transform: uppercase; }
a { color: var(--lime); text-decoration: none; }
button, input { font: inherit; }
img { display: block; }


/* ---------- green stage ---------- */

.stage {
  position: fixed;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 40px 0 28px;
  background: var(--lime-fill);
  color: var(--navy);
}

.stage__ghost {
  position: absolute;
  right: -80px;
  bottom: -120px;
  height: 560px;
  opacity: .1;
  z-index: -1;
}

/* sits behind the headline, tilts toward the mouse (main.js) */
.stage__mark {
  position: absolute;
  left: calc(var(--gx) - 154px);
  top: calc(50% - 360px);
  width: 760px;
  max-width: none;
  pointer-events: none;
  filter: drop-shadow(0 30px 40px rgba(18, 23, 36, .35));
  will-change: transform;
}

.wrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gx);
}

.brand img { height: 48px; }

.intro {
  margin-top: auto;
  width: 400px;
  color: #fff;
}

.intro h1 {
  font-size: clamp(64px, min(6vw, 10.6vh), 96px);
  font-weight: 800;
  line-height: .88;
  letter-spacing: -.01em;
}

.intro p {
  margin: 18px 0 0;
  max-width: 340px;
  font-size: 17px;
  font-weight: 600;
}


/* ---------- live tag (sits in the notch cut out of the stage) ---------- */

.live-tag {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 4;
  height: 52px;
  padding: 0 22px 6px 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: ping 1.4s ease-out infinite;
}

@keyframes ping {
  from { box-shadow: 0 0 0 0 rgba(238, 90, 88, .65); }
  to   { box-shadow: 0 0 0 8px rgba(238, 90, 88, 0); }
}


/* ---------- matches ticker (full width) ---------- */

.ticker {
  position: relative;
  margin-top: 28px;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, #0000, #000 5%, #000 95%, #0000);
          mask: linear-gradient(90deg, #0000, #000 5%, #000 95%, #0000);
}

.ticker__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: tick var(--tick-time, 32s) linear infinite;
}

.ticker:hover .ticker__track { animation-play-state: paused; }

@keyframes tick { to { transform: translateX(-50%); } }

.match {
  width: 230px;
  margin-right: 10px;
  padding: 14px 16px;
  border-radius: 20px;
  /* map shot under a navy wash, darker on the text side */
  background: linear-gradient(100deg, rgba(18, 23, 36, .95) 35%, rgba(18, 23, 36, .55)), var(--map) center / cover, var(--navy);
  color: #f2f2f2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.match__where {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.match__where::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.match__teams {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.match__teams b { font: 600 20px Oxanium, sans-serif; }

.match__odds { display: flex; gap: 6px; }

.match__odds span {
  flex: 1;
  padding: 5px 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}


/* ---------- login card ---------- */

.login {
  position: fixed;
  inset: 0 0 132px 0;
  z-index: 2;
  width: 560px;
  height: fit-content;
  margin: auto;
  padding: 40px 44px;
  border-radius: 34px;
  background: var(--slate);
  box-shadow: 0 40px 90px -30px rgba(18, 23, 36, .7);
}

.login form { display: flex; flex-direction: column; gap: 18px; }

.pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -2px;
  padding: 6px 12px 6px 10px;
  border: 1px solid #474d5f;
  border-radius: 999px;
  color: #c8c8c8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pill svg { fill: none; stroke: var(--lime); stroke-width: 2.2; }

.login h2 { font-size: 44px; font-weight: 700; letter-spacing: .03em; line-height: 1; }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #c8c8c8;
}

.field > span:first-child { display: flex; justify-content: space-between; }
.field a { font-size: 13px; }

.field input {
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--navy);
  color: #f2f2f2;
  font-size: 16px;
}

.field input::placeholder { color: #6e7487; }
.field input:focus { outline: none; border-color: var(--lime); }

.field__pw { position: relative; }
.field__pw input { padding-right: 70px; }

.peek {
  position: absolute;
  right: 8px;
  top: 8px;
  bottom: 8px;
  min-width: 54px;
  border: 0;
  border-radius: 12px;
  background: var(--slate);
  color: #c8c8c8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.keep {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #c8c8c8;
  cursor: pointer;
}

.keep input { position: absolute; opacity: 0; pointer-events: none; }

.keep__box {
  width: 22px;
  height: 22px;
  flex: none;
  border: 1px solid #565c6e;
  border-radius: 7px;
  display: grid;
  place-items: center;
}

.keep input:checked + .keep__box { background: var(--lime); border-color: var(--lime); }
.keep input:checked + .keep__box::after { content: "✓"; color: var(--navy); font-size: 13px; font-weight: 800; }
.keep input:focus-visible + .keep__box { outline: 2px solid var(--lime); outline-offset: 2px; }

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 60px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--lime-fill);
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}

.cta__fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}

.cta:hover, .cta.hit {
  box-shadow: 0 0 0 1px rgba(196, 242, 60, .55), 0 14px 44px -10px rgba(196, 242, 60, .6);
}
.cta:hover { transform: translateY(-2px); }
.cta:hover .cta__fx, .cta.hit .cta__fx { opacity: 1; }
.cta:active { transform: scale(.99); }
.cta.shake { animation: shake .32s cubic-bezier(.36, .07, .19, .97); }

@keyframes shake {
  15% { translate: -5px 1px; }
  30% { translate: 4px -1px; }
  45% { translate: -3px 1px; }
  60% { translate: 2px 0; }
  80% { translate: -1px 0; }
}

/* ticket: notches punched with a mask */
.invite {
  display: flex;
  align-items: center;
  min-height: 72px;
  border-radius: 16px;
  background: var(--field);
  color: #f2f2f2;
  -webkit-mask: radial-gradient(circle 11px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
}

.invite__icon {
  width: 56px;
  align-self: stretch;
  margin: 10px 0;
  display: grid;
  place-items: center;
  border-right: 2px dashed var(--line);
}

.invite__icon svg { fill: none; stroke: var(--lime); stroke-width: 1.9; stroke-linejoin: round; }

.invite__text {
  flex: 1;
  min-width: 0;
  padding: 0 10px 0 14px;
  font-size: 12.5px;
  white-space: nowrap;
  color: var(--muted);
}

.invite__text strong { display: block; font-size: 15px; color: #f2f2f2; }

.invite__go {
  padding-right: 20px;
  color: var(--lime);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.legal {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  padding-top: 18px;
  border-top: 1px solid #363c4c;
  font-size: 12px;
  color: #8a8f9c;
}

.legal__age {
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid #474d5f;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #c8c8c8;
}

.legal a { margin-left: auto; white-space: nowrap; font-weight: 600; color: #c8c8c8; }

.sparks {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}


/* short laptop screens: tighten the card so it clears the ticker */
@media (min-width: 1100px) and (max-height: 860px) {
  .login { padding: 28px 40px; }
  .login form { gap: 12px; }
  .login h2 { font-size: 36px; }
  .field input { min-height: 48px; }
  .cta { min-height: 54px; }
  .invite { min-height: 62px; }
}


/* ---------- tablet ---------- */

@media (max-width: 1099px), (max-aspect-ratio: 1/1) {
  body { position: relative; overflow-x: hidden; padding: 40px 44px 170px; }

  .stage { position: absolute; padding: 40px 0 36px; }
  .wrap { padding: 0 44px; }
  .brand img { height: 44px; }

  .stage__mark { left: auto; right: -66px; top: 60px; width: 600px; }
  .stage__ghost { height: 520px; right: -70px; bottom: -90px; }

  .intro { margin-top: 120px; width: 440px; }
  .intro h1 { font-size: 92px; }

  .ticker { position: absolute; left: 0; right: 0; bottom: 36px; margin: 0; }

  .live-tag { position: absolute; height: 50px; }

  .login {
    position: relative;
    inset: auto;
    width: min(560px, 100%);
    margin: 520px auto 0;
    padding: 40px 44px 34px;
    border-radius: 32px;
  }

  .sparks { display: none; }
}


/* ---------- phone ---------- */

@media (max-width: 699px) {
  :root { --notch-r: 20px; --stage-r: 28px; }

  body { max-width: 480px; margin: 0 auto; padding: 12px; }

  .stage {
    position: relative;
    height: 600px;
    padding: 22px 0 20px;
  }

  .wrap { padding: 0 20px; }
  .brand img { height: 28px; }

  .stage__mark { left: -36px; right: auto; top: 70px; width: 410px; }
  .stage__ghost { height: 320px; right: -50px; bottom: -70px; }

  .intro { width: auto; margin-top: auto; }
  .intro h1 { font-size: 66px; }
  .intro p { margin-top: 14px; font-size: 15px; }

  .ticker { position: relative; bottom: auto; margin-top: 18px; }
  .match { width: 196px; margin-right: 8px; padding: 12px 14px; border-radius: 18px; }
  .match__where { font-size: 11px; }
  .match__teams { font-size: 15px; }
  .match__teams b { font-size: 18px; }
  .match__odds span { padding: 4px 0; font-size: 12px; }

  .live-tag {
    top: 12px;
    right: 12px;
    height: 42px;
    padding: 0 16px 4px 14px;
    gap: 7px;
    font-size: 12px;
  }

  .dot { animation: none; }

  .login {
    width: auto;
    margin: 12px 0 0;
    padding: 28px 20px 24px;
    border-radius: 28px;
    box-shadow: none;
  }

  .login form { gap: 16px; }
  .login h2 { font-size: 34px; }
  .cta { min-height: 56px; }

  .invite__icon { width: 52px; }
  .invite__text { white-space: normal; font-size: 13px; }
  .invite__go { padding-right: 20px; font-size: 13px; }

  .legal { flex-wrap: wrap; margin-top: 6px; }
  .legal span:nth-child(2) { flex: 1; min-width: 0; }
  .legal a { flex-basis: 100%; margin-left: 0; padding-left: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track, .dot { animation: none; }
}
