/* ===== Tokens ===== */
:root {
  --night: #07201d;
  --night-2: #0c2f2a;
  --turf: #14513f;
  --light: #f4f7ef;
  --ball: #e5283b;
  --flood: #ffd23f;
  --tg-1: #35b6f5;
  --tg-2: #1c8fd6;
  --muted: #a9c2b9;
  --radius: 22px;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--light);
  background: var(--night);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: .95; letter-spacing: .01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--flood); outline-offset: 3px; }

/* ===== Top strip ===== */
.strip { background: var(--ball); color: #fff; overflow: hidden; white-space: nowrap; font-family: var(--display); font-weight: 800; letter-spacing: .12em; font-size: .95rem; }
.strip-track { display: inline-flex; gap: 2.2rem; padding: .35rem 0; animation: slide 28s linear infinite; }
.strip-track span::after { content: "\2022"; margin-left: 2.2rem; opacity: .6; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ===== Nav ===== */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem clamp(1rem, 4vw, 3rem); position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--light); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.6rem; }
.brand b { color: var(--flood); font-weight: 900; }
.brand-ball { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ff6a78, var(--ball) 60%, #a4121f); position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.brand-ball::after { content: ""; position: absolute; inset: 4px -2px; border-top: 2px dashed rgba(255,255,255,.8); border-bottom: 2px dashed rgba(255,255,255,.8); border-radius: 50%; transform: rotate(-20deg); }

/* ===== Join button ===== */
.join {
  --pulse: rgba(53,182,245,.55);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  color: #fff; text-decoration: none;
  font-family: var(--display); font-weight: 900; letter-spacing: .06em; font-size: 1.2rem;
  background: linear-gradient(135deg, var(--tg-1), var(--tg-2));
  box-shadow: 0 10px 30px -8px rgba(28,143,214,.8), inset 0 1px 0 rgba(255,255,255,.35);
  position: relative; isolation: isolate;
  animation: pulse 2.2s infinite;
  transition: transform .2s ease, filter .2s ease;
  white-space: nowrap;
}
.join:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.08); }
.join:active { transform: scale(.98); }
.join .ico { width: 1.35em; height: 1.35em; }
.join-sm { padding: .6rem 1.1rem; font-size: 1rem; }
.join-lg { padding: 1.15rem 2.1rem; font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
@keyframes pulse {
  0% { box-shadow: 0 10px 30px -8px rgba(28,143,214,.8), 0 0 0 0 var(--pulse); }
  70% { box-shadow: 0 10px 30px -8px rgba(28,143,214,.8), 0 0 0 18px rgba(53,182,245,0); }
  100% { box-shadow: 0 10px 30px -8px rgba(28,143,214,.8), 0 0 0 0 rgba(53,182,245,0); }
}

.cta-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: .55rem; }
.free { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
.free::before { content: "\2713\00a0"; color: var(--flood); font-weight: 700; }

/* ===== Hero ===== */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 8vw, 6rem);
  position: relative;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(255,210,63,.22), transparent 70%),
    radial-gradient(50% 40% at 0% 0%, rgba(255,210,63,.12), transparent 70%),
    repeating-linear-gradient(180deg, transparent 0 46px, rgba(20,81,63,.35) 46px 92px),
    var(--night);
}
h1 { font-weight: 900; text-transform: uppercase; }
.h-line { display: block; font-size: clamp(1.8rem, 4.6vw, 3rem); color: var(--muted); font-weight: 800; }
.h-big { font-size: clamp(3.6rem, 12vw, 8.2rem); color: var(--light); margin-top: .1em; line-height: .88; }
.hero .h-big { text-shadow: 4px 4px 0 var(--ball); }
.lead { margin: 1.4rem 0 2rem; max-width: 34ch; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #d9e6e0; }

.h-line, .lead, .cta-wrap { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.h-big { animation-delay: .12s; }
.lead { animation-delay: .24s; }
.hero .cta-wrap { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ===== Scoreboard ===== */
.board-wrap { position: relative; display: grid; place-items: center; min-height: 360px; }
.ball {
  position: absolute; width: clamp(120px, 20vw, 190px); aspect-ratio: 1; right: -4%; top: -6%;
  border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 30% 28%, #ff7584, var(--ball) 55%, #8f0f1c);
  box-shadow: 0 24px 40px -10px rgba(0,0,0,.6), inset -10px -14px 24px rgba(0,0,0,.35);
  animation: bob 4s ease-in-out infinite;
}
.ball i { position: absolute; inset: 0; border-radius: 50%; animation: spin 6s linear infinite; }
.ball i::before, .ball i::after { content: ""; position: absolute; left: 8%; right: 8%; height: 0; border-top: 3px dashed rgba(255,255,255,.85); border-radius: 50%; }
.ball i::before { top: 34%; transform: rotate(-12deg); }
.ball i::after { bottom: 34%; transform: rotate(12deg); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-14px); } }

.board {
  width: min(100%, 440px); background: linear-gradient(160deg, #0f3a33, #081d1a);
  border: 2px solid rgba(255,210,63,.45); border-radius: var(--radius);
  padding: 1.3rem 1.4rem 1.2rem; transform: rotate(-3deg);
  box-shadow: 0 40px 70px -25px rgba(0,0,0,.8), 0 0 0 8px rgba(255,255,255,.03);
}
.board-top { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--display); font-weight: 900; letter-spacing: .12em; font-size: 1rem; color: #fff; }
.live i { width: 10px; height: 10px; border-radius: 50%; background: var(--ball); animation: blink 1.1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.board-score { display: flex; align-items: flex-end; justify-content: space-between; margin-top: .6rem; }
.team { font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: var(--muted); }
.digits { font-family: var(--display); font-weight: 900; color: var(--flood); font-size: clamp(4.5rem, 12vw, 6.4rem); line-height: .9; display: inline-flex; align-items: baseline; text-shadow: 0 0 24px rgba(255,210,63,.35); }
.slash { opacity: .55; margin: 0 .05em; }
.num.flip { animation: flip .45s ease; }
@keyframes flip { 0% { transform: rotateX(90deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.board-over { margin-top: .4rem; color: var(--muted); font-size: .95rem; }
.board-over b { color: var(--light); font-size: 1.1rem; }
.chips { display: flex; gap: .45rem; margin: 1rem 0; }
.chip { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 1.15rem; background: rgba(255,255,255,.08); color: var(--light); animation: pop .35s ease; }
.chip.c4 { background: var(--tg-2); }
.chip.c6 { background: var(--flood); color: #231b00; }
.chip.cw { background: var(--ball); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.board-msg { padding: .65rem .9rem; border-radius: 14px; background: rgba(53,182,245,.14); border: 1px solid rgba(53,182,245,.35); font-size: .92rem; }

/* ===== Reel ===== */
.reel { background: var(--flood); color: #231b00; overflow: hidden; white-space: nowrap; transform: rotate(-1.2deg); margin: -1.2rem -2rem 0; position: relative; z-index: 3; }
.reel-track { display: inline-flex; gap: 3rem; padding: .7rem 0; font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 4vw, 2.4rem); animation: slide 22s linear infinite; text-transform: uppercase; }

/* ===== Features ===== */
.get, .steps, .final { padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem) 0; max-width: 1200px; margin: 0 auto; }
h2 { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 900; text-transform: uppercase; margin-bottom: 2rem; }
.get-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.g { background: var(--night-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 1.5rem; }
.g h3 { font-size: 2.2rem; font-weight: 800; margin-bottom: .6rem; text-transform: uppercase; }
.g p { color: #cfe0d8; max-width: 38ch; }
.g-a { grid-column: span 4; background: linear-gradient(135deg, var(--turf), var(--night-2)); }
.g-b { grid-column: span 2; border-color: rgba(229,40,59,.55); }
.g-c { grid-column: span 2; }
.g-d { grid-column: span 4; background: linear-gradient(135deg, #123f66, var(--night-2)); }
.cta-inline { margin-top: 1.3rem; align-items: flex-start; }

/* ===== Steps ===== */
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; max-width: 640px; }
.steps li { padding: 1.1rem 1.4rem; border-left: 6px solid var(--flood); background: rgba(255,255,255,.04); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.15rem; }
.steps li b { color: var(--flood); }

/* ===== Final ===== */
.final { text-align: center; padding-bottom: clamp(4rem, 10vw, 8rem); }
.final h2 { font-size: clamp(2.8rem, 9vw, 6.5rem); }

.foot { text-align: center; padding: 1.5rem 1rem 6.5rem; color: var(--muted); font-size: .85rem; border-top: 1px solid rgba(255,255,255,.08); }

/* ===== Sticky bar ===== */
.sticky {
  position: fixed; left: 50%; bottom: 14px; z-index: 40;
  width: min(94vw, 640px); transform: translate(-50%, 160%);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem .8rem .7rem 1.2rem; border-radius: 999px;
  background: rgba(7,32,29,.92); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,210,63,.5);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.7);
  transition: transform .5s cubic-bezier(.2,1.2,.3,1);
}
.sticky.show { transform: translate(-50%, 0); }
.sticky-text { display: flex; flex-direction: column; line-height: 1.2; font-size: .95rem; }
.sticky-text small { color: var(--muted); font-size: .75rem; }

/* ===== Toasts ===== */
.toasts { position: fixed; top: 72px; right: 16px; z-index: 50; display: grid; gap: .6rem; width: min(92vw, 340px); pointer-events: none; }
.toast {
  pointer-events: auto; display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center;
  background: #fff; color: #10201c; border-radius: 18px; padding: .75rem .8rem;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6);
  animation: toastIn .5s cubic-bezier(.2,1.3,.3,1) both;
}
.toast.out { animation: toastOut .3s ease forwards; }
.toast-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--tg-1), var(--tg-2)); }
.toast-ico svg { width: 22px; height: 22px; }
.toast-body b { display: block; font-size: .92rem; line-height: 1.25; }
.toast-body a { font-size: .8rem; font-weight: 700; color: var(--tg-2); text-decoration: none; }
.toast-body a:hover { text-decoration: underline; }
.toast-body small { color: #5b6d67; font-size: .72rem; }
.toast-x { border: 0; background: transparent; font-size: 1.3rem; cursor: pointer; color: #6a7a75; line-height: 1; padding: .2rem .4rem; }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(60px); } }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; background: rgba(2,12,10,.72); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal.open { animation: fade .25s ease; }
.modal-card {
  position: relative; text-align: center; width: min(100%, 460px);
  background: radial-gradient(80% 60% at 50% 0%, rgba(255,210,63,.18), transparent 70%), var(--night-2);
  border: 2px solid rgba(255,210,63,.55); border-radius: 28px; padding: 2.6rem 1.6rem 2rem;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.9);
  animation: modalIn .5s cubic-bezier(.2,1.3,.3,1);
}
.modal-card h3 { font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 900; text-transform: uppercase; margin-bottom: .8rem; }
.modal-card p { color: #d3e3dc; margin-bottom: 1.6rem; }
.modal-ball { width: 74px; height: 74px; border-radius: 50%; margin: -4.6rem auto 1.2rem; background: radial-gradient(circle at 30% 28%, #ff7584, var(--ball) 55%, #8f0f1c); box-shadow: 0 14px 26px -8px rgba(0,0,0,.7); animation: bob 3s ease-in-out infinite; }
.modal-x { position: absolute; top: .6rem; right: .9rem; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal-x:hover { background: rgba(255,255,255,.2); }
@keyframes modalIn { from { opacity: 0; transform: translateY(40px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .board-wrap { min-height: 320px; }
  .ball { right: 2%; top: -10%; }
  .get-grid { grid-template-columns: 1fr; }
  .g-a, .g-b, .g-c, .g-d { grid-column: auto; }
  .toasts { top: 64px; right: 50%; transform: translateX(50%); }
  .nav .join-sm span { font-size: .85rem; }
}
@media (max-width: 420px) {
  .nav .join-sm { padding: .5rem .8rem; }
  .sticky-text b { font-size: .85rem; }
  .sticky .join-sm span { font-size: .85rem; }
}

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