@font-face { font-family: "Space Grotesk"; src: url("/spacegrotesk.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/inter.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #070b16; --panel: #101728; --panel-2: #172036; --line: #25304b; --ink: #f2f5ff; --muted: #93a0bf;
  --lime: #d2ff3c; --lime-ink: #0f1a00; --court: #1f55d6; --court-2: #173fa6; --court-line: rgba(255, 255, 255, .85);
  --bad: #ff7a6b; --gold: #ffcf4a; --silver: #cfd6e6; --bronze: #e39a63;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .9, .3, 1.15);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 16px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background:
  radial-gradient(900px 500px at 90% -10%, rgba(31, 85, 214, .55), transparent 60%),
  radial-gradient(600px 400px at -10% 10%, rgba(210, 255, 60, .12), transparent 60%), var(--bg); background-attachment: fixed; min-height: 100vh; }
a { color: var(--lime); }
button { font: inherit; cursor: pointer; color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px 70px; }
.wrap.narrow { max-width: 760px; }
.hint { color: var(--muted); font-size: .85rem; }

header.site { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; gap: 12px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; }
.brand .ball { margin-right: 9px; }
.brand span { color: var(--lime); }
.ball { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f1ff9c, var(--lime) 60%, #9bc400); box-shadow: 0 0 18px rgba(210, 255, 60, .7); display: inline-block; animation: bounce 1.6s var(--ease) infinite; }
.free { font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); white-space: nowrap; }
.status { font-size: .8rem; color: var(--muted); }

/* ---------- Landing ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 34px; align-items: start; grid-template-areas: "copy stage" "build stage"; padding-top: 14px; }
.copy { grid-area: copy; }
.copy h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 5.4vw, 3.7rem); line-height: 1; letter-spacing: -.04em; margin: 12px 0 14px; animation: rise .7s var(--ease) both; }
.copy h1 em { font-style: normal; color: var(--lime); }
.copy p { color: #c5cee6; font-size: 1.1rem; margin: 0; max-width: 40ch; animation: rise .7s .08s var(--ease) both; }

.builder { grid-area: build; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 18px; animation: rise .7s .16s var(--ease) both; }
.field { margin-bottom: 18px; }
.field > .lbl { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 1.02rem; margin-bottom: 9px; }
.num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--lime); color: var(--lime-ink); font: 800 .8rem "Inter", sans-serif; }
.lbl small { margin-left: auto; font: 500 .8rem "Inter", sans-serif; color: var(--muted); }

.chipbox { position: relative; border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg); padding: 10px; transition: border-color .2s, box-shadow .2s; }
.chipbox:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(210, 255, 60, .14); }
.chipbox.invite { animation: invite 2s ease-in-out infinite; }
.chips-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 190px; overflow-y: auto; }
.chips-list:not(:empty) { margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px; border-radius: 99px; background: var(--panel-2); font-weight: 600; font-size: .9rem; animation: pop .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); max-width: 100%; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.example { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); }
.chip button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); font-size: .9rem; line-height: 1; display: grid; place-items: center; padding: 0; }
.chip button:hover { background: var(--bad); color: #000; }
.av { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 .72rem "Inter", sans-serif; color: #fff; background: hsl(var(--h, 220) 70% 48%); font-style: normal; }
.add-row { display: flex; gap: 6px; }
.add-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 8px 6px; font: inherit; color: var(--ink); }
.add-row input::placeholder { color: #5f6c8c; }
.add-row button { flex: none; width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--lime); color: var(--lime-ink); font-size: 1.3rem; font-weight: 700; transition: transform .15s var(--ease); }
.add-row button:hover { transform: scale(1.08); }
.coach { position: absolute; left: 14px; right: 14px; top: calc(100% + 10px); z-index: 3; background: var(--lime); color: var(--lime-ink); font-size: .84rem; font-weight: 700; padding: 9px 12px; border-radius: 12px; animation: bob 1.8s ease-in-out infinite; }
.coach::before { content: ""; position: absolute; left: 24px; top: -6px; width: 12px; height: 12px; background: var(--lime); transform: rotate(45deg); border-radius: 2px; }
.chipbox.invite + .hint { margin-top: 62px; }
.field .hint { margin: 8px 2px 0; min-height: 1.2em; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); overflow: hidden; }
.stepper button { height: 46px; border: 0; background: transparent; font-size: 1.4rem; color: var(--lime); }
.stepper button:hover:not(:disabled) { background: rgba(210, 255, 60, .1); }
.stepper button:disabled { color: #3b4764; cursor: default; }
.stepper output { text-align: center; font: 700 1.25rem var(--display); }
.stepper output.tick { animation: tick .3s var(--ease); }
.segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); padding: 4px; gap: 4px; height: 49px; }
.segs label { position: relative; display: grid; place-items: center; border-radius: 10px; font: 700 1rem var(--display); cursor: pointer; color: var(--muted); transition: background .15s, color .15s; }
.segs input { position: absolute; opacity: 0; }
.segs label:has(input:checked) { background: var(--lime); color: var(--lime-ink); }
.segs label:has(input:focus-visible) { outline: 3px solid rgba(210, 255, 60, .4); }
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.format { position: relative; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; transition: border-color .18s, background .18s, transform .18s var(--ease); }
.format:hover { transform: translateY(-2px); }
.format input { position: absolute; opacity: 0; }
.format b { display: block; font: 700 1.05rem var(--display); }
.format small { color: var(--muted); font-size: .8rem; line-height: 1.35; display: block; margin-top: 2px; }
.format:has(input:checked) { border-color: var(--lime); background: rgba(210, 255, 60, .08); }
.format:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(210, 255, 60, .14); }

.cta { width: 100%; padding: 16px; border: 0; border-radius: 16px; background: var(--lime); color: var(--lime-ink); font: 700 1.15rem var(--display); display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 14px 34px -12px rgba(210, 255, 60, .65); transition: transform .15s var(--ease), box-shadow .2s; }
.cta:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(210, 255, 60, .8); }
.cta:active:not(:disabled) { transform: scale(.98); }
.cta:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.cta:hover:not(:disabled) svg { transform: translateX(4px); }
.micro { text-align: center; color: var(--muted); font-size: .82rem; margin: 10px 0 0; }
.error { color: var(--bad); font-weight: 600; }

/* ---------- Live stage ---------- */
.stagewrap { grid-area: stage; background: linear-gradient(180deg, var(--panel), #0c1322); border: 1px solid var(--line); border-radius: 26px; padding: 18px; position: sticky; top: 14px; animation: rise .8s .1s var(--ease) both; box-shadow: 0 30px 80px -40px rgba(31, 85, 214, .9); }
.stage-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.live { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--lime); display: flex; align-items: center; gap: 7px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: live 1.8s infinite; }
.round-name { font: 700 1.5rem var(--display); letter-spacing: -.02em; }
.round-name.tick { animation: tick .35s var(--ease); }
.dots-nav { display: flex; gap: 5px; flex-wrap: wrap; max-width: 60%; justify-content: flex-end; }
.dots-nav button { width: 22px; height: 8px; border-radius: 99px; border: 0; background: var(--line); padding: 0; transition: background .2s, width .2s; }
.dots-nav button[aria-current=true] { background: var(--lime); width: 34px; }
.stage { position: relative; }
.courts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.court { position: relative; aspect-ratio: 20 / 13; border-radius: 14px; background: linear-gradient(135deg, var(--court), var(--court-2)); border: 2.5px solid var(--court-line); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .05); }
.court::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: repeating-linear-gradient(#fff 0 5px, transparent 5px 9px); opacity: .9; }
.court::after { content: ""; position: absolute; left: 18%; right: 18%; top: 50%; height: 2px; background: var(--court-line); opacity: .45; box-shadow: calc(-18% - 2px) 0 0 0 transparent; }
.court-name { position: absolute; left: 10px; top: 7px; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .8); z-index: 1; }
.half { display: grid; grid-template-rows: 1fr 1fr; place-items: center; padding: 14px 0 4px; }
.slot { width: 1px; height: 1px; }
.court-score { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); z-index: 3; background: #fff; color: #0b1220; font: 700 .9rem var(--display); padding: 2px 10px; border-radius: 99px; font-variant-numeric: tabular-nums; animation: pop .4s var(--ease) both; white-space: nowrap; }
.bench { margin-top: 12px; border: 1.5px dashed var(--line); border-radius: 14px; padding: 8px 12px 10px; }
.bench-title { font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.bench-slots { display: flex; flex-wrap: wrap; gap: 6px 4px; min-height: 58px; align-items: center; }
.bench-slots .bslot { width: 62px; height: 54px; display: grid; place-items: center; }
.tok { position: absolute; left: 0; top: 0; z-index: 2; width: 70px; margin: -27px 0 0 -35px; display: grid; justify-items: center; gap: 2px; pointer-events: none; transition: transform .9s cubic-bezier(.5, 0, .2, 1); will-change: transform; }
.tok.snap { transition: none; }
.tok .face { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 .85rem "Inter", sans-serif; color: #fff; background: hsl(var(--h, 220) 75% 45%); border: 2.5px solid #fff; box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .7); transition: transform .3s var(--ease); }
.tok.moving .face { transform: scale(1.18); }
.tok .nm { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; font-weight: 700; background: rgba(7, 11, 22, .82); padding: 1px 6px; border-radius: 99px; }
.tok.benched .face { border-color: var(--line); filter: saturate(.5); }
.stage-foot { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
.caption { color: #c5cee6; font-size: .92rem; min-height: 2.8em; }
.caption b { color: var(--lime); }
.mini { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.mini-title { display: flex; justify-content: space-between; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.mini-rows { position: relative; }
.mrow { display: grid; grid-template-columns: 22px 26px 1fr auto; gap: 8px; align-items: center; padding: 4px 0; font-size: .9rem; font-weight: 600; }
.mrow .rk { color: var(--muted); font-weight: 800; font-size: .8rem; text-align: center; }
.mrow:nth-child(1) .rk { color: var(--gold); } .mrow:nth-child(2) .rk { color: var(--silver); } .mrow:nth-child(3) .rk { color: var(--bronze); }
.mrow .pn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .pt { font: 700 1rem var(--display); font-variant-numeric: tabular-nums; }
.mrow .pt.bump { animation: bump .5s var(--ease); }

/* ---------- Landing lower sections ---------- */
.explain { margin-top: 56px; }
.explain h2 { font: 700 1.7rem var(--display); letter-spacing: -.02em; margin: 0 0 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 40px; }
.cards article { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; transition: transform .2s var(--ease), border-color .2s; }
.cards article:hover { transform: translateY(-4px); border-color: var(--lime); }
.cards b.k { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--lime); color: var(--lime-ink); font: 800 1rem var(--display); margin-bottom: 10px; }
.cards h3 { margin: 0 0 6px; font-size: 1.05rem; }
.cards p { margin: 0; color: var(--muted); font-size: .93rem; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 8px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { color: var(--muted); margin: 8px 0 0; }
footer.site { margin-top: 40px; color: var(--muted); font-size: .85rem; text-align: center; }

/* ---------- Tournament page ---------- */
.thead h1 { font: 700 clamp(1.6rem, 5vw, 2.2rem) var(--display); letter-spacing: -.03em; margin: 4px 0 2px; line-height: 1.1; }
.meta { color: var(--muted); font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--panel); font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--ink); transition: transform .15s var(--ease), border-color .2s; }
.btn:hover { transform: translateY(-2px); border-color: var(--lime); }
.btn.primary { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.btn.wa { background: #25d366; border-color: #25d366; color: #04210f; }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.me { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; margin: 10px 0; }
.me label { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.me select { flex: 1; min-width: 0; background: var(--bg); color: var(--ink); border: 1.5px solid var(--line); border-radius: 10px; padding: 8px; font: inherit; }
.mine { background: rgba(210, 255, 60, .1); border: 1.5px solid var(--lime); border-radius: 14px; padding: 12px 14px; margin: 10px 0; font-weight: 600; animation: pop .4s var(--ease) both; }
.mine b { color: var(--lime); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin: 14px 0; }
.tabs button { border: 0; background: transparent; padding: 10px; border-radius: 10px; font: 700 1rem var(--display); color: var(--muted); transition: background .15s, color .15s; }
.tabs button[aria-selected=true] { background: var(--lime); color: var(--lime-ink); }
.pills { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pills button { flex: none; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--panel); font: 700 .95rem var(--display); color: var(--ink); position: relative; }
.pills button.done { color: var(--muted); }
.pills button.done::after { content: ""; position: absolute; right: 5px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.pills button[aria-pressed=true] { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.round-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 2px 0 10px; }
.round-head b { font: 700 1.35rem var(--display); letter-spacing: -.02em; }
.round-title { font: 700 1.1rem var(--display); margin: 18px 0 8px; }
.match { position: relative; border-radius: 18px; margin-bottom: 12px; background: linear-gradient(135deg, var(--court), var(--court-2)); border: 2px solid rgba(255, 255, 255, .7); padding: 12px 14px; animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); overflow: hidden; }
.match.mine-match { box-shadow: 0 0 0 3px var(--lime), 0 0 30px -6px rgba(210, 255, 60, .7); }
.match .court-tag { display: block; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .8); margin-bottom: 6px; }
.match .line { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 6px 0; }
.match .team { display: flex; flex-wrap: wrap; gap: 6px 10px; font-weight: 700; }
.match .team .p { display: inline-flex; align-items: center; gap: 6px; }
.match .team .p.me-p { color: var(--lime); }
.match .team .av { border: 2px solid #fff; width: 26px; height: 26px; }
.match .team.win::after { content: "WIN"; align-self: center; font-size: .6rem; font-weight: 800; letter-spacing: .08em; background: var(--lime); color: var(--lime-ink); padding: 2px 7px; border-radius: 99px; animation: pop .4s var(--ease) both; }
.match .net { height: 0; border-top: 2px dashed rgba(255, 255, 255, .55); margin: 2px 0; }
.match input.score { width: 66px; height: 48px; text-align: center; font: 700 1.45rem var(--display); border-radius: 12px; border: 2px solid rgba(255, 255, 255, .55); background: rgba(7, 11, 22, .45); color: #fff; -moz-appearance: textfield; }
.match input.score::-webkit-outer-spin-button, .match input.score::-webkit-inner-spin-button { -webkit-appearance: none; }
.match input.score:focus { outline: 0; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(210, 255, 60, .3); }
.match input.score::placeholder { color: rgba(255, 255, 255, .35); }
.match .score-ro { min-width: 48px; text-align: center; font: 700 1.7rem var(--display); font-variant-numeric: tabular-nums; }
.sitting { color: var(--muted); font-size: .92rem; margin: 4px 2px 14px; }
.board { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 6px 12px; }
.brow { display: grid; grid-template-columns: 30px 30px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.brow:last-child { border-bottom: 0; }
.brow.head { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 2px; }
.brow .rk { text-align: center; font: 700 1rem var(--display); color: var(--muted); }
.brow.r1 .rk { color: var(--gold); } .brow.r2 .rk { color: var(--silver); } .brow.r3 .rk { color: var(--bronze); }
.brow.r1 { background: linear-gradient(90deg, rgba(255, 207, 74, .12), transparent); }
.brow .pn { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .pn small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.brow .df { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; min-width: 36px; text-align: right; }
.brow .pt { font: 700 1.3rem var(--display); font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
.brow.me-row { box-shadow: inset 3px 0 0 var(--lime); }
.brow .av { width: 28px; height: 28px; font-size: .8rem; }
.winner { text-align: center; background: linear-gradient(135deg, rgba(255, 207, 74, .2), rgba(210, 255, 60, .12)); border: 1.5px solid var(--gold); border-radius: 20px; padding: 18px; margin: 12px 0; animation: pop .6s var(--ease) both; }
.winner small { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.winner b { font: 700 2rem var(--display); letter-spacing: -.02em; }
.promo { margin-top: 28px; text-align: center; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }

/* share sheet */
.sheet-bg { position: fixed; inset: 0; background: rgba(4, 7, 14, .72); backdrop-filter: blur(6px); z-index: 40; display: grid; place-items: center; padding: 18px; animation: fade .25s both; }
.sheet { width: min(460px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 26px 22px 22px; text-align: center; animation: sheet .5s var(--ease) both; }
.sheet .big-ball { width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f1ff9c, var(--lime) 60%, #9bc400); box-shadow: 0 0 44px rgba(210, 255, 60, .65); animation: bounce 1.4s var(--ease) infinite; }
.sheet h2 { font: 700 1.7rem var(--display); letter-spacing: -.02em; margin: 0 0 6px; }
.sheet p { color: var(--muted); margin: 0 0 16px; }
.linkbox { display: flex; gap: 6px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 6px; margin-bottom: 12px; }
.linkbox input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 600 .9rem "Inter", sans-serif; padding: 0 8px; outline: 0; }
.linkbox button { border: 0; border-radius: 10px; background: var(--lime); color: var(--lime-ink); font-weight: 800; padding: 10px 14px; white-space: nowrap; }
.sheet .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet .row .btn { justify-content: center; padding: 13px; }
.sheet .later { margin-top: 14px; background: none; border: 0; color: var(--muted); font-weight: 600; text-decoration: underline; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(20px); background: var(--lime); color: var(--lime-ink); padding: 10px 18px; border-radius: 99px; font-size: .9rem; font-weight: 800; opacity: 0; transition: opacity .2s, transform .3s var(--ease); pointer-events: none; z-index: 60; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop { from { opacity: 0; transform: scale(.5); } }
@keyframes tick { from { opacity: 0; transform: translateY(8px); } }
@keyframes bob { 50% { transform: translateY(4px); } }
@keyframes bump { 40% { transform: scale(1.35); color: var(--lime); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet { from { opacity: 0; transform: translateY(40px) scale(.94); } }
@keyframes invite { 0%, 100% { box-shadow: 0 0 0 0 rgba(210, 255, 60, .4); border-color: var(--lime); } 50% { box-shadow: 0 0 0 8px rgba(210, 255, 60, 0); border-color: var(--lime); } }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(210, 255, 60, .7); } 70% { box-shadow: 0 0 0 8px rgba(210, 255, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(210, 255, 60, 0); } }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage" "build"; gap: 20px; }
  .stagewrap { position: static; padding: 14px; }
  .courts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .court { aspect-ratio: 10 / 11; }
  .half { padding: 18px 0 20px; }
  .court::after { display: none; }
  .court-name { font-size: .56rem; left: 7px; top: 5px; }
  .tok { width: 56px; margin: -22px 0 0 -28px; }
  .tok .face { width: 28px; height: 28px; font-size: .72rem; border-width: 2px; }
  .tok .nm { max-width: 56px; font-size: .6rem; padding: 0 4px; }
  .court-score { font-size: .72rem; padding: 1px 7px; bottom: 3px; }
  .bench-slots .bslot { width: 52px; height: 46px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 14px 60px; }
  .free { display: none; }
  .formats { grid-template-columns: 1fr; }
  .brow { grid-template-columns: 24px 28px minmax(0, 1fr) auto auto; gap: 8px; }
}
@media print {
  body { background: #fff; color: #000; }
  header.site, .tabs, .pills, .actions, .promo, .status, footer.site, .toast, .me, .mine, .sheet-bg, .confetti { display: none !important; }
  .match { background: #fff; border-color: #999; color: #000; break-inside: avoid; animation: none; }
  .match .court-tag { color: #555; }
  .round-title, .round-head b { color: #000; }
}

.legal h1 { font: 700 2rem var(--display); letter-spacing: -.02em; }
.legal h2 { font: 700 1.2rem var(--display); margin: 26px 0 8px; }
.legal p, .legal li { color: #c5cee6; }
.legal li { margin: 8px 0; }
.legal b { color: var(--ink); }
