:root {
  --night: #0c0c0c;
  --night-2: #060606;
  --coal: #262626;
  --coal-2: #1d1d1d;
  --coal-3: #353535;
  --pink: #fb6fe8;
  --lime: #dff046;
  --violet: #6036fb;
  --violet-2: #5429ee;
  --red: #ff3b2f;
  --cream: #f5f3e4;
  --muted: rgba(245, 243, 228, 0.7);
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --dot: "DotGothic16", ui-monospace, monospace;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 -.18'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--cream); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; background: var(--night); overflow-x: hidden; }
body::after { content: ""; position: fixed; inset: 0; background: var(--grain); opacity: 0.32; pointer-events: none; z-index: 90; }
a { color: var(--lime); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--pink); color: var(--night); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; line-height: 1.04; }
h3 { font-size: 21px; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stk { display: block; width: 100%; height: auto; overflow: visible; }
.stkw, .mini { display: block; flex: none; }
.mini { width: 26px; }

/* ---- Motion ---- */
.slap { animation: slap 0.55s cubic-bezier(0.18, 1.5, 0.4, 1) both; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
@keyframes slap { 0% { opacity: 0; transform: scale(2) rotate(calc(var(--r, 0deg) - 30deg)); } 100% { opacity: 1; transform: scale(1) rotate(var(--r, 0deg)); } }
.spin { animation: spin 80s linear infinite; }
.spin.rev { animation-direction: reverse; animation-duration: 100s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- LED perimeter ticker ---- */
.perimeter { background: var(--night-2); color: var(--lime); font-family: var(--dot); font-size: 15px; overflow: hidden; white-space: nowrap; border-bottom: 1px solid var(--coal-3); }
.perimeter .track { display: inline-flex; align-items: center; gap: 20px; padding: 8px 0; animation: scroll 80s linear infinite; }
.perimeter span { flex: none; }
.perimeter .sep { width: 17px; display: block; }
.perimeter .r { color: var(--red); }
.perimeter .g { color: var(--cream); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Top bar ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; position: relative; z-index: 3; }
.top.solo { justify-content: flex-end; }
.brand { display: block; text-decoration: none; color: var(--cream); font-size: 26px; }
.brand:hover .pea { animation: rattle 0.4s ease 2; }
.brand:hover .rc { animation: showcard 0.6s cubic-bezier(0.2, 1.5, 0.4, 1); }

/* The wordmark: Sent, a whistle for the O, ff, and the red card. */
.logo { display: inline-block; font-family: var(--display); font-weight: 900; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; color: var(--cream); }
.logo svg { display: inline-block; vertical-align: baseline; position: relative; overflow: visible; }
.logo .wo { height: 0.78em; width: 1.154em; margin-left: -0.3em; top: 0.02em; }
.logo .rc { height: 0.9em; width: 0.63em; margin-left: 0.06em; top: 0.06em; transform-origin: 50% 95%; }
.logo .pea { transform-box: fill-box; transform-origin: center; }
@keyframes showcard { 0% { transform: translateY(45%) rotate(-55deg) scale(0.3); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes rattle { 0%, 100% { transform: none; } 25% { transform: translate(-6px, 4px); } 50% { transform: translate(6px, -3px); } 75% { transform: translate(-4px, -3px); } }
@keyframes wiggle { 30% { transform: rotate(-16deg) scale(1.1); } 65% { transform: rotate(8deg); } }
.top nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.top nav a { color: var(--cream); text-decoration: none; }
.top nav a:hover { color: var(--lime); text-decoration: underline wavy var(--lime); text-underline-offset: 6px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 15px/1 var(--display); letter-spacing: -0.01em; padding: 17px 26px; border-radius: 999px; border: 2px solid transparent; background: var(--cream); color: var(--night); text-decoration: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s; }
.btn:hover { transform: rotate(-2deg) scale(1.04); }
.btn:active { transform: scale(0.95); }
.btn.primary { background: var(--lime); }
.btn.primary:hover { box-shadow: 0 0 0 4px var(--night), 0 0 0 6px var(--lime); }
.btn.ghost { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn.ghost:hover { background: var(--cream); color: var(--night); }
.btn.dark { background: var(--night); color: var(--lime); }
.btn.dark:hover { box-shadow: 0 0 0 4px var(--lime); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.linkbtn { font: inherit; font-weight: 700; background: none; border: 0; padding: 0; color: var(--lime); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding-bottom: 40px; }
.hero .decor { position: absolute; pointer-events: none; z-index: 0; display: block; }
.hero .d1 { width: 230px; left: -96px; top: 470px; }
.hero .d2 { width: 120px; right: 2%; top: 40px; }
.hero .d3 { width: 118px; left: 41%; bottom: -30px; }
.flutter { animation: flutter 4.6s ease-in-out infinite; }
.flutter.rev { animation-duration: 5.8s; animation-direction: reverse; }
@keyframes flutter { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg) translateY(-10px); } }
.hero .stage { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr); gap: 50px; align-items: center; padding-top: 30px; }
.hero .intro { text-align: center; padding-top: 72px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(56px, 9.4vw, 136px); line-height: 1; margin: 0; }
.hero h1 .rc { animation: showcard 0.8s 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.hero h1 .pea { animation: rattle 0.32s 0.1s ease 3; }
.hero h1 .ln { display: flex; align-items: center; gap: 0.16em; white-space: nowrap; }
.hero h1 .in { display: block; width: 0.86em; flex: none; filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.5)); }
.hero h1 .ln + .ln { margin-top: 0.06em; }
.hero .lede { font: 600 clamp(20px, 2vw, 26px)/1.35 var(--body); max-width: 30em; margin: 34px auto 40px; color: var(--cream); }
.hero .lede b { color: var(--cream); font-weight: 700; }
.hero .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero .fine { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* ---- The pitch ---- */
.pitchbox { background: var(--coal); border-radius: 32px; padding: 14px 14px 16px; position: relative; }
.pitchhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 6px 12px; font-weight: 700; font-size: 15px; }
.pitchhead a { color: var(--lime); font-weight: 700; white-space: nowrap; }
.match { padding: 18px 18px 18px; }
.match .mgrid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.match .board { margin-top: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.match .board .q { font-size: clamp(20px, 2vw, 26px); }
.match .board .row { flex-wrap: wrap; row-gap: 4px; }
.match .board .row span { white-space: nowrap; }
.pitchhead .lbl { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.pitchhead .lbl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.livedot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); flex: none; animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(251, 111, 232, 0.65); } 70%, 100% { box-shadow: 0 0 0 10px rgba(251, 111, 232, 0); } }
.pitch { position: relative; aspect-ratio: 105 / 68; width: 100%; border-radius: 20px; background: repeating-linear-gradient(90deg, var(--violet) 0 9.52%, var(--violet-2) 9.52% 19.04%); overflow: hidden; box-shadow: inset 0 0 0 3px rgba(245, 243, 228, 0.92); }
.pitch .l { position: absolute; border: 2.5px solid rgba(245, 243, 228, 0.7); pointer-events: none; }
.pitch .half { left: 50%; top: 0; bottom: 0; border-width: 0 0 0 2.5px; }
.pitch .circle { left: 50%; top: 50%; width: 17.4%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; }
.pitch .boxL { left: 0; top: 20.4%; width: 15.7%; height: 59.2%; border-left: 0; }
.pitch .boxR { right: 0; top: 20.4%; width: 15.7%; height: 59.2%; border-right: 0; }
.pitch .sixL { left: 0; top: 36.5%; width: 5.2%; height: 27%; border-left: 0; }
.pitch .sixR { right: 0; top: 36.5%; width: 5.2%; height: 27%; border-right: 0; }
.pitch .spot { left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: rgba(245, 243, 228, 0.85); border: 0; }
.pitch .cn { width: 30px; height: 30px; border-radius: 50%; }
.pitch .tl { left: -15px; top: -15px; }
.pitch .tr { right: -15px; top: -15px; }
.pitch .bl { left: -15px; bottom: -15px; }
.pitch .br { right: -15px; bottom: -15px; }
.pitch .tokens { position: absolute; inset: 0; }
.pitch .empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; font: 800 clamp(16px, 2.1vw, 23px)/1.25 var(--display); color: var(--cream); pointer-events: none; }
.pitch .empty.more { place-items: end; padding: 12px 16px; font-size: 14px; }

.token { position: absolute; width: clamp(32px, 4.2vw, 52px); aspect-ratio: 1; transform: translate(-50%, -50%); transition: left 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); z-index: 1; }
.pitch.crowd .token { width: clamp(18px, 2.3vw, 28px); }
.token .in, .token .bob { display: block; width: 100%; height: 100%; }
.token .bob { animation: bob 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.4)); }
@keyframes bob { 50% { transform: translateY(-4px) rotate(5deg); } }
.token.slap .in { animation: slap 0.5s cubic-bezier(0.18, 1.5, 0.4, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
.token .tag { position: absolute; top: 104%; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 700 11px/1 var(--body); background: var(--night); color: var(--cream); padding: 4px 8px; border-radius: 99px; pointer-events: none; opacity: 0; transition: opacity 0.15s; }
.token:hover { z-index: 5; }
.token:hover .tag, .token.me .tag, .pitch.few .token .tag { opacity: 1; }
.token.answered::after { content: ""; position: absolute; right: -3px; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); border: 2.5px solid var(--night); }
.token.me { z-index: 4; }
.token.me::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2.5px dashed var(--lime); animation: spin 9s linear infinite; }
.token.me .tag { background: var(--lime); color: var(--night); }
.token.peel { z-index: 6; }
.token.peel .in { animation: peel 1.2s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
@keyframes peel { 0% { transform: none; } 20% { transform: rotate(-18deg) scale(1.3); } 100% { transform: translate(30px, 110px) rotate(80deg) scale(0.3); opacity: 0; } }
.token.peel .tag, .token.peel::after { opacity: 0; }
.sentcard { position: absolute; width: 20px; height: 28px; background: var(--pink); border-radius: 4px; border: 2.5px solid var(--night); z-index: 7; pointer-events: none; animation: sentcard 1.3s ease-out forwards; }
@keyframes sentcard { 0% { transform: translate(-50%, -40%) scale(0.2) rotate(-8deg); opacity: 0; } 22% { transform: translate(-50%, -150%) scale(1.3) rotate(-12deg); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-50%, -175%) scale(1) rotate(-12deg); opacity: 0; } }

/* ---- Fourth official's LED board ---- */
.board { position: relative; overflow: hidden; margin-top: 14px; background-color: var(--night-2); background-image: radial-gradient(rgba(223, 240, 70, 0.08) 1px, transparent 1.4px); background-size: 5px 5px; color: var(--lime); border-radius: 22px; padding: 16px 18px 18px; font-family: var(--dot); border: 2px solid var(--coal-3); }
.board .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: rgba(223, 240, 70, 0.66); }
.board .q { font-size: clamp(18px, 2vw, 23px); line-height: 1.3; margin: 8px 0 12px; color: var(--lime); text-shadow: 0 0 10px rgba(223, 240, 70, 0.45); min-height: 2.6em; }
.board .yn { display: flex; gap: 10px; }
.board .yn b { flex: 1; text-align: center; padding: 7px 0; border: 2px solid currentColor; border-radius: 12px; font-weight: 400; font-size: 20px; }
.board .yn .y { color: var(--lime); text-shadow: 0 0 8px rgba(223, 240, 70, 0.5); }
.board .yn .n { color: var(--pink); text-shadow: 0 0 8px rgba(251, 111, 232, 0.5); }
.board .split { height: 10px; border-radius: 5px; overflow: hidden; display: flex; margin-top: 12px; background: #1e1e1e; }
.board .split i { display: block; height: 100%; transition: width 0.6s; }
.board .split .sy { background: var(--lime); }
.board .split .sn { background: var(--pink); }
.board .foot { margin-top: 12px; flex-wrap: wrap; }
.board b.y { color: var(--lime); font-weight: 400; }
.board b.n { color: var(--pink); font-weight: 400; }
.board [hidden] { display: none; }
.stamp { position: absolute; right: 16px; top: 50%; width: clamp(96px, 11vw, 128px); z-index: 8; pointer-events: none; animation: stamp 2.8s cubic-bezier(0.2, 1.3, 0.4, 1) both; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.45)); }
@keyframes stamp { 0% { transform: translateY(-50%) scale(2.4) rotate(-34deg); opacity: 0; } 14% { transform: translateY(-50%) scale(0.9) rotate(-12deg); opacity: 1; } 22% { transform: translateY(-50%) scale(1) rotate(-12deg); } 84% { opacity: 1; } 100% { transform: translateY(-50%) scale(1) rotate(-12deg); opacity: 0; } }
.stamp.mid { right: auto; left: 50%; width: clamp(110px, 26%, 190px); animation-name: stampmid; }
@keyframes stampmid { 0% { transform: translate(-50%, -50%) scale(2.4) rotate(-34deg); opacity: 0; } 14% { transform: translate(-50%, -50%) scale(0.9) rotate(-8deg); opacity: 1; } 22% { transform: translate(-50%, -50%) scale(1) rotate(-8deg); } 84% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1) rotate(-8deg); opacity: 0; } }

/* ---- Sections ---- */
section.s { padding: 96px 0; position: relative; }
.sh { margin-bottom: 38px; }
.sh p { max-width: 42em; margin: 12px 0 0; color: var(--muted); }
.sh p b { color: var(--cream); }

/* Fixtures */
.fixtures { display: grid; gap: 10px; }
.fx { display: grid; grid-template-columns: 54px 124px minmax(0, 1fr) auto 150px; gap: 18px; align-items: center; padding: 13px 22px 13px 14px; background: var(--coal); border-radius: 24px; text-decoration: none; color: var(--cream); transition: transform 0.15s ease, background 0.15s; }
a.fx:hover { transform: rotate(-0.6deg) scale(1.012); background: #2f2f2f; }
a.fx:hover .ic { animation: wiggle 0.5s ease; }
.fx .ic { width: 54px; }
.fx .when { font: 700 17px/1.1 var(--display); }
.fx .when small { display: block; font: 500 13px var(--body); color: var(--muted); margin-top: 5px; }
.fx .teams { font: 700 18px/1.2 var(--display); letter-spacing: -0.015em; min-width: 0; }
.fx .teams small { display: block; font: 500 14px var(--body); color: var(--muted); margin-top: 4px; letter-spacing: 0; }
.pill { display: inline-flex; align-items: center; gap: 7px; font: 700 13px var(--body); padding: 6px 12px; border-radius: 99px; white-space: nowrap; justify-self: start; }
.pill.live { background: var(--pink); color: var(--night); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--night); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pill.open { background: var(--lime); color: var(--night); }
.pill.done { border: 1.5px solid rgba(245, 243, 228, 0.35); color: var(--muted); }
.fx .nums { font: 600 14px var(--body); color: var(--muted); text-align: right; white-space: nowrap; }
.fx .nums b { color: var(--cream); font: 800 20px var(--display); }
.fx.note { grid-template-columns: 1fr; background: transparent; padding: 8px 16px; color: var(--muted); }
button.fx.note { border: 0; font: 600 15px var(--body); text-align: left; cursor: pointer; justify-self: start; }
button.fx.note:hover { color: var(--lime); transform: none; }
.lgtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 34px; scroll-margin-top: 90px; }
.lgtab { display: inline-flex; align-items: center; gap: 8px; font: 700 15px var(--body); color: var(--cream); background: var(--coal); border: 0; border-radius: 99px; padding: 8px 14px 8px 8px; cursor: pointer; transition: transform 0.15s ease, background 0.15s; }
.lgtab:first-child { padding-left: 16px; }
.lgtab .ic { width: 26px; display: block; }
.lgtab .ic svg { display: block; width: 100%; height: auto; }
.lgtab .n { font: 800 13px var(--display); color: var(--muted); }
.lgtab:hover { transform: rotate(-1.5deg); background: #2f2f2f; }
.lgtab.on { background: var(--lime); color: var(--night); }
.lgtab.on .n { color: var(--night); opacity: 0.6; }
.lgtab.empty:not(.on) { color: var(--muted); }
.lgtab:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.lggroup { display: grid; gap: 10px; }
.lggroup + .lggroup { margin-top: 30px; }
.lghead { display: flex; align-items: center; gap: 14px; margin: 0 0 4px 4px; font: 800 24px/1.1 var(--display); letter-spacing: -0.02em; }
.lghead .ic { width: 44px; display: block; flex: none; }
.lghead .ic svg { display: block; width: 100%; height: auto; }
.lghead small { display: inline; margin-left: 12px; font: 600 14px var(--body); color: var(--muted); letter-spacing: 0; }
.lgl { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--night); box-shadow: inset 0 0 0 1.5px rgba(245, 243, 228, 0.14); }
.lgl img { display: block; width: 68%; height: 68%; object-fit: contain; }
.lghead .lgl { width: 52px; height: 52px; border-radius: 16px; }
.lgtab .lgl { width: 32px; height: 32px; margin: -2px 0; }
.lgtab.on .lgl { box-shadow: none; }
.fx.soon { background: transparent; box-shadow: inset 0 0 0 1.5px var(--coal); }
.fx.soon .ic { opacity: 0.75; }
.pill.soon { border: 1.5px dashed rgba(245, 243, 228, 0.45); color: var(--cream); }

/* Six rounds */
.rounds-how { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; position: relative; }
.rounds-how::before { content: ""; position: absolute; left: 7%; right: 7%; top: 50px; border-top: 3px dotted rgba(245, 243, 228, 0.3); }
.rh { text-align: center; position: relative; }
.rh .stkw { width: min(118px, 100%); margin: 0 auto; transition: transform 0.2s ease; }
.rh:hover .stkw { transform: translateY(-8px) rotate(-4deg); }
.rh .lock { display: inline-block; font: 14px var(--dot); background: var(--night-2); color: var(--lime); border: 1px solid var(--coal-3); border-radius: 8px; padding: 3px 9px; margin: 14px 0 10px; }
.rh p { font-size: 14.5px; line-height: 1.4; color: var(--muted); margin: 0; }

/* Rules */
.rules-line { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.rules-line li { display: flex; gap: 16px; align-items: flex-start; font-size: 17px; line-height: 1.45; color: var(--muted); }
.rules-line b { color: var(--cream); font-weight: 700; }
.rules-line .ri { width: 30px; flex: none; }
.rules-line .ri svg { display: block; width: 100%; height: auto; }
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 80px; }
.rule { border-radius: 30px; padding: 30px 22px 26px; color: var(--night); position: relative; transform: rotate(var(--r, 0deg)); transition: transform 0.2s ease; }
.rule:hover { transform: rotate(0deg) scale(1.03); }
.rule.pink { background: var(--pink); }
.rule.lime { background: var(--lime); }
.rule.violet { background: var(--violet); color: var(--cream); }
.rule.cream { background: var(--cream); }
.rule .stkw { position: absolute; width: 86px; top: -40px; right: 18px; transform: rotate(12deg); filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.4)); }
.rule h3 { font-size: 22px; font-weight: 800; margin: 26px 0 10px; }
.rule p { font-size: 16px; margin: 0; opacity: 0.88; }

/* Connect */
.connect { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px; }
.panel { background: var(--coal); border-radius: 28px; padding: 26px; color: var(--cream); position: relative; min-width: 0; }
.panel h3 { margin-bottom: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 14.5px; color: var(--muted); }
.field input, .field select { font: 16px var(--body); padding: 13px 15px; border: 2px solid var(--coal-3); border-radius: 16px; background: var(--night); color: var(--cream); width: 100%; }
.field input:focus, .field select:focus { border-color: var(--lime); outline: none; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button { font: 700 14px var(--body); border: 2px solid var(--coal-3); background: transparent; border-radius: 99px; padding: 8px 16px; cursor: pointer; color: var(--cream); }
.tabs button:hover { border-color: var(--cream); }
.tabs button[aria-selected="true"] { background: var(--lime); border-color: var(--lime); color: var(--night); }
.code { position: relative; background: var(--night); color: var(--cream); border: 1px solid var(--coal-3); border-radius: 16px; padding: 16px 84px 16px 16px; font: 13.5px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; margin: 0 0 14px; }
.code .copy { position: absolute; top: 10px; right: 10px; font: 700 12px var(--body); background: var(--pink); color: var(--night); border: 0; border-radius: 99px; padding: 6px 12px; cursor: pointer; }
.code .copy:hover { background: var(--lime); }
.panel.human { margin-top: 20px; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.05fr); gap: 10px 26px; align-items: center; background: var(--pink); color: var(--night); }
.panel.human .stkw { width: 96px; transform: rotate(-10deg); }
.panel.human p { margin: 0; color: var(--night); opacity: 0.85; }
.panel.human h3 { margin-bottom: 6px; }
.humanform { display: flex; gap: 10px; }
.humanform input { flex: 1; min-width: 0; font: 16px var(--body); padding: 14px 18px; border: 2px solid var(--night); border-radius: 99px; background: var(--cream); color: var(--night); }
.humanform input:disabled { opacity: 0.85; }
.formerr { color: var(--pink); font-weight: 700; font-size: 15px; margin: 0; grid-column: 1 / -1; }
.panel.human .formerr { color: var(--night); }
.formerr:empty { display: none; }

/* Table */
.vs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.vs .side { border-radius: 28px; padding: 20px 22px; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 2px 18px; align-items: center; }
.vs .side .stkw { grid-row: span 4; width: 76px; transform: rotate(-8deg); }
.vs .side .who { font: 700 16px var(--display); }
.vs .side b { display: block; font: 900 44px/1.05 var(--display); letter-spacing: -0.03em; }
.vs .side span, .vs .side small { font-size: 14px; opacity: 0.85; }
.vs .side.agent { background: var(--violet); color: var(--cream); }
.vs .side.human { background: var(--pink); color: var(--night); }
.vs .side.house { background: var(--cream); color: var(--night); }
.lbwrap { overflow-x: auto; border-radius: 24px; }
table.lb { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; background: var(--coal); border-radius: 24px; overflow: hidden; }
table.lb th, table.lb td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--coal-3); }
table.lb tr:last-child td { border-bottom: 0; }
table.lb th { font: 600 13px var(--body); color: var(--muted); background: var(--coal-2); }
table.lb td.n { font: 800 18px var(--display); color: var(--lime); }
table.lb .who { display: flex; align-items: center; gap: 10px; font-weight: 600; }

/* Onchain */
/* Send your agent: pick a client, follow two steps */
.panel.install { display: grid; grid-template-columns: 232px minmax(0, 1fr); padding: 0; overflow: hidden; }
.clients { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--coal-2); border-right: 1px solid var(--coal-3); }
.clients button { display: flex; align-items: center; gap: 12px; text-align: left; font: 600 15px var(--body); color: var(--cream); background: transparent; border: 0; border-radius: 14px; padding: 9px 12px 9px 9px; cursor: pointer; white-space: nowrap; }
.clients button:hover { background: var(--coal); }
.clients button[aria-selected="true"] { background: var(--lime); color: var(--night); }
.clogo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--night); color: var(--cream); flex: none; transition: color .15s, transform .15s; }
.clogo svg { width: 19px; height: 19px; display: block; }
.clients button:hover .clogo { color: var(--lime); }
.clients button[aria-selected="true"] .clogo { color: var(--lime); transform: rotate(-4deg); }
.steps { padding: 26px 28px 12px; min-width: 0; }
.step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; }
.step + .step { margin-top: 8px; }
.step .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 14px/1 var(--display); background: var(--pink); color: var(--night); }
.step h4 { font: 700 17px/1.2 var(--display); letter-spacing: -0.01em; margin: 5px 0 10px; }
.step p { margin: 0 0 12px; color: var(--muted); }
.step p b { color: var(--cream); }
.step p .btn { margin-right: 10px; vertical-align: middle; }
.step code, .facts code { font: 13.5px var(--mono); color: var(--lime); }
.step .code code { color: var(--cream); }
.btn.sm { padding: 11px 18px; font-size: 13px; }
.server { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 32px; align-items: center; padding: 20px 28px; border-top: 1px solid var(--coal-3); background: var(--coal-2); }
.server .lbl { display: block; font: 600 13px var(--body); color: var(--muted); margin-bottom: 8px; }
.server .code { margin: 0; }
.server .code code { color: var(--lime); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; color: var(--muted); }
.facts b { color: var(--cream); }

/* Onchain ledger */
.ledger { background: var(--coal); border-radius: 28px; overflow: hidden; }
.lhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 20px 24px; border-bottom: 1px solid var(--coal-3); }
.net { display: inline-flex; align-items: center; gap: 10px; font: 700 14px var(--body); padding: 9px 15px; border-radius: 99px; background: var(--night); color: var(--cream); border: 1px solid var(--coal-3); }
.net i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.net[data-state="live"] i { background: var(--lime); animation: pinglime 1.8s infinite; }
.net[data-state="waiting"] { color: var(--pink); border-color: var(--pink); }
.net[data-state="waiting"] i { background: var(--pink); }
@keyframes pinglime { 0% { box-shadow: 0 0 0 0 rgba(223, 240, 70, 0.6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(223, 240, 70, 0); } }
.lstats { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 0; }
.lstats dt { font-size: 13px; color: var(--muted); }
.lstats dd { margin: 2px 0 0; font: 800 26px/1.1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lnote { margin: 0; padding: 12px 24px; font-size: 14.5px; color: var(--pink); background: rgba(251, 111, 232, 0.08); border-bottom: 1px solid var(--coal-3); }
.lscroll { overflow-x: auto; }
.ltable { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 14.5px; }
.ltable th { text-align: left; font: 600 13px var(--body); color: var(--muted); padding: 12px 18px; border-bottom: 1px solid var(--coal-3); white-space: nowrap; }
.ltable td { padding: 13px 18px; border-bottom: 1px solid var(--coal-3); vertical-align: middle; }
.ltable tbody tr:last-child td { border-bottom: 0; }
.ltable tbody tr:hover td { background: rgba(245, 243, 228, 0.03); }
.ltable .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ltable td a { color: var(--cream); text-decoration: none; }
.ltable td a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ltable td a.mono, .mono { font: 13.5px var(--mono); color: var(--lime); }
.ltable .muted, .muted { color: var(--muted); }
.ltable tr.queued td:not(:first-child) { color: var(--muted); }
.ltable .empty { text-align: center; color: var(--muted); padding: 30px; }
/* Each transaction type gets a little referee's card in its own colour. */
.tx { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; }
.tx::before { content: ""; width: 9px; height: 13px; border-radius: 2px; transform: rotate(-10deg); background: var(--coal-3); flex: none; }
.tx.entry::before { background: var(--lime); }
.tx.seal::before { background: var(--violet); box-shadow: 0 0 0 1.5px var(--cream); }
.tx.result::before { background: var(--cream); }
.tx.payout::before { background: var(--pink); }
.tx.fund::before { background: transparent; box-shadow: inset 0 0 0 2px var(--lime); }
.lfoot { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.verify p { color: var(--muted); margin: 0 0 20px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }
.vsteps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.vsteps:empty { display: none; }
.vsteps li { position: relative; padding-left: 22px; color: var(--muted); }
.vsteps li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--coal-3); }
.vsteps li.good { color: var(--lime); font-weight: 700; }
.vsteps li.good::before { background: var(--lime); }
.vsteps li.bad { color: var(--pink); font-weight: 700; }
.vsteps li.bad::before { background: var(--pink); }
.vsteps code { font: 13px var(--mono); color: var(--cream); }
.accounts dl { margin: 0; }
.accounts dl > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--coal-3); }
.accounts dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.accounts dt { font-weight: 700; }
.accounts dt small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.accounts dd { margin: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.accounts dt { min-width: 0; }
.accounts dd { flex: none; }
.copyline { display: inline-flex; flex: none; }
.copy.mini { flex: none; width: auto; white-space: nowrap; }
.copy.mini { font: 700 12px var(--body); background: var(--night); color: var(--cream); border: 1px solid var(--coal-3); border-radius: 99px; padding: 5px 11px; cursor: pointer; }
.copy.mini:hover { border-color: var(--lime); color: var(--lime); }

/* ---- Footer: the far end of the stadium ---- */
.ft { margin-top: 40px; position: relative; overflow: hidden; color: var(--cream); }
.stands { background: linear-gradient(180deg, var(--night) 0%, #191919 100%); padding: 18px 0 14px; overflow: hidden; }
.crowd { --cs: 9px; --cg: 3px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(9, var(--cs)); grid-auto-columns: var(--cs); gap: var(--cg); justify-content: center; perspective: 700px; }
.crowd i { display: block; width: var(--cs); height: var(--cs); border-radius: 2px; background: var(--k, #2a2a2a); opacity: var(--o, 1); transition: background-color 0.01s linear calc(var(--c) * 9ms + 0.17s); }
.crowd i.j { animation: hop 1.3s ease-in-out infinite; animation-delay: var(--jd); }
@keyframes hop { 0%, 60%, 100% { transform: none; } 75% { transform: translateY(-2px); } }
.crowd.led i { transition: none; }
.crowd.flip i { animation: cardflip 0.36s ease-in-out both; animation-delay: calc(var(--c) * 9ms); }
@keyframes cardflip { 50% { transform: rotateX(88deg); } }
.crowd.wave i { animation: wave 0.9s ease-out both; animation-delay: calc(var(--c) * 9ms); }
@keyframes wave { 0%, 100% { transform: none; } 35% { transform: translateY(-9px); } }
.crowd.groan i { animation: groan 0.8s ease both; }
@keyframes groan { 40% { transform: translateY(4px) scale(0.85); } }
.adboards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background-color: var(--night-2); background-image: radial-gradient(rgba(223, 240, 70, 0.07) 1px, transparent 1.4px); background-size: 5px 5px; border-top: 2px solid var(--coal-3); }
.adboards a { font: 18px var(--dot); color: var(--lime); text-align: center; padding: 14px 10px; text-decoration: none; border-left: 2px solid #1f1f1f; text-shadow: 0 0 10px rgba(223, 240, 70, 0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adboards a:first-child { border-left: 0; }
.adboards a:nth-child(2) { color: var(--pink); text-shadow: 0 0 10px rgba(251, 111, 232, 0.5); }
.adboards a:nth-child(3) { color: var(--cream); text-shadow: 0 0 10px rgba(245, 243, 228, 0.35); }
.adboards a:hover { background: rgba(223, 240, 70, 0.08); animation: blink 0.5s steps(2) 2; }
.ftpitch { background: repeating-linear-gradient(90deg, var(--violet) 0 90px, var(--violet-2) 90px 180px); padding-top: 38px; padding-bottom: 40px; position: relative; overflow: hidden; }
.pens { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px) minmax(0, 1fr); gap: 30px; align-items: end; }
.penhead { padding-bottom: 22px; }
.penhead h2 { font-size: clamp(26px, 2.8vw, 38px); }
.penhead p { color: rgba(245, 243, 228, 0.88); margin: 10px 0 0; font-size: 16px; max-width: 24em; }
.goal { position: relative; aspect-ratio: 3 / 1.15; }
.goal .net { position: absolute; inset: 8px 8px 0; background: repeating-linear-gradient(45deg, rgba(245, 243, 228, 0.32) 0 1.5px, transparent 1.5px 15px), repeating-linear-gradient(-45deg, rgba(245, 243, 228, 0.32) 0 1.5px, transparent 1.5px 15px), rgba(12, 12, 12, 0.34); transform-origin: var(--bx, 50%) var(--by, 50%); }
.goal .net.bulge { animation: bulge 0.7s ease-out; }
@keyframes bulge { 30% { transform: scale(1.04); filter: brightness(1.35); } }
.goal .bar { position: absolute; left: 0; right: 0; top: 0; height: 12px; border-radius: 6px; background: var(--cream); z-index: 2; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2); }
.goal .post { position: absolute; top: 0; bottom: 0; width: 12px; background: var(--cream); border-radius: 6px 6px 0 0; z-index: 2; box-shadow: 4px 0 0 rgba(0, 0, 0, 0.18); }
.goal .post.l { left: 0; }
.goal .post.r { right: 0; }
.goal .post.hit { animation: twang 0.45s ease; }
.goal .bar.hit { animation: barwobble 0.45s ease; }
@keyframes barwobble { 20% { transform: translateY(-4px); } 40% { transform: translateY(3px); } 60% { transform: translateY(-2px); } 80% { transform: translateY(1px); } }
@keyframes twang { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(1px); } }
.keeper { position: absolute; left: 50%; bottom: 0; width: 15%; z-index: 3; transform: translateX(-50%); transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.3, 1); filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35)); pointer-events: none; }
.keeper.idle { animation: sway 3.2s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: translateX(-50%); } 25% { transform: translateX(calc(-50% - 40px)) rotate(-5deg); } 75% { transform: translateX(calc(-50% + 40px)) rotate(5deg); } }
.zones { position: absolute; inset: 12px 12px 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); z-index: 5; }
.zone { background: none; border: 0; padding: 0; cursor: crosshair; position: relative; border-radius: 12px; }
.zone::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px dashed var(--lime); opacity: 0; transform: scale(0.6); transition: opacity 0.15s, transform 0.15s; }
.zone:hover::after, .zone:focus-visible::after { opacity: 1; transform: scale(1); }
.zone:focus-visible { outline-offset: -4px; }
.goal.busy .zone { cursor: progress; }
.goal.busy .zone::after { opacity: 0; }
.ripple { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid var(--cream); z-index: 2; pointer-events: none; animation: ripple 0.9s ease-out both; }
@keyframes ripple { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(6); opacity: 0; } }
.penscore { padding-bottom: 22px; }
.ledrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.restart { font: 700 14px var(--body); color: var(--cream); background: transparent; border: 2px solid var(--cream); border-radius: 99px; padding: 9px 16px; cursor: pointer; }
.restart:hover { background: var(--cream); color: var(--violet); }
.led { display: inline-flex; align-items: center; gap: 12px; background-color: var(--night-2); background-image: radial-gradient(rgba(223, 240, 70, 0.08) 1px, transparent 1.4px); background-size: 5px 5px; border: 2px solid var(--coal-3); border-radius: 16px; padding: 10px 18px; font-family: var(--dot); color: var(--cream); font-size: 16px; }
.led b { font-weight: 400; font-size: 36px; line-height: 1; color: var(--lime); text-shadow: 0 0 10px rgba(223, 240, 70, 0.55); }
.led b#pen-keeper { color: var(--pink); text-shadow: 0 0 10px rgba(251, 111, 232, 0.55); }
.led i { font-style: normal; }
#pen-note { margin: 12px 0 0; font-weight: 600; font-size: 15px; min-height: 3em; max-width: 22em; }
.box { position: relative; border-top: 3px solid rgba(245, 243, 228, 0.92); }
.box .area { position: relative; width: 96%; height: 200px; margin: 0 auto; border: 3px solid rgba(245, 243, 228, 0.85); border-top: 0; }
.box .six { position: absolute; left: 50%; top: 0; width: min(860px, 70%); height: 64px; transform: translateX(-50%); border: 3px solid rgba(245, 243, 228, 0.85); border-top: 0; }
.box .spot { position: absolute; left: 50%; top: 140px; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--cream); }
.box .pball { position: absolute; left: 50%; top: 134px; width: 52px; transform: translate(-50%, -50%); z-index: 6; filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.35)); pointer-events: none; }
.box .arc { width: 240px; height: 56px; margin: -3px auto 0; border: 3px solid rgba(245, 243, 228, 0.85); border-top: 0; border-radius: 0 0 120px 120px; }
.ft .fine { text-align: center; margin-top: 28px; font-size: 13.5px; color: rgba(245, 243, 228, 0.82); }

/* ---- Game page ---- */
.scorebar .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr); align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 26px; }
.scorebar .team { display: flex; align-items: center; gap: 16px; font: 800 clamp(18px, 2.7vw, 32px)/1.08 var(--display); letter-spacing: -0.02em; min-width: 0; }
.scorebar .team.away { justify-content: flex-end; text-align: right; }
.scorebar .team .kit { width: 58px; flex: none; }
.scorebar .team .kit:first-child { transform: rotate(-10deg); }
.scorebar .team .kit:last-child { transform: rotate(10deg); }
.scorebar .team img { width: 58px; height: 58px; object-fit: contain; background: var(--cream); border-radius: 50%; padding: 9px; flex: none; }
.scorebar .team .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scorebar .mid { text-align: center; }
.scorebar .score { font: 900 clamp(44px, 6.2vw, 76px)/0.95 var(--display); letter-spacing: -0.04em; }
.scorebar .score.bump { animation: bump 0.7s cubic-bezier(0.2, 1.6, 0.4, 1); color: var(--lime); }
@keyframes bump { 0% { transform: scale(1.5) rotate(-6deg); } 100% { transform: none; } }
.scorebar .clock { font-family: var(--dot); color: var(--lime); font-size: 19px; margin-top: 6px; }
.scorebar .lg { font-size: 13px; color: var(--muted); margin-top: 2px; }
.reveal { display: flex; align-items: center; gap: 16px; background: var(--lime); color: var(--night); border-radius: 24px; padding: 14px 22px; font: 700 clamp(15px, 1.9vw, 20px)/1.3 var(--display); margin-bottom: 8px; }
.reveal .stkw { width: 52px; transform: rotate(-10deg); }
.reveal[hidden] { display: none; }
.gamegrid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; padding: 14px 0 70px; }
.left-col, .right-col { display: grid; gap: 18px; align-content: start; min-width: 0; }
.left-col .board { margin-top: 0; }
.counter { display: flex; align-items: baseline; gap: 12px; }
.counter b { font: 900 78px/0.85 var(--display); color: var(--lime); letter-spacing: -0.05em; }
.counter span { font-weight: 600; color: var(--muted); }
.potline { margin: -8px 0 0; font-weight: 700; }
.rounds { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.rounds .r { border-radius: 18px; padding: 10px 10px 12px; background: var(--coal); font-size: 13px; min-height: 120px; display: flex; flex-direction: column; gap: 4px; }
.rounds .r .h { font: 800 13.5px var(--display); }
.rounds .r .q { color: var(--muted); line-height: 1.3; }
.rounds .r .meta { margin-top: auto; font-weight: 700; font-size: 12.5px; }
.rounds .r .res { font: 900 22px/1 var(--display); }
.rounds .r.open { background: var(--violet); animation: glow 1.8s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 3px var(--night), 0 0 0 6px var(--violet); } }
.rounds .r.open .q { color: rgba(245, 243, 228, 0.9); }
.rounds .r.locked { background: var(--coal-3); }
.rounds .r.done-yes { background: var(--lime); color: var(--night); }
.rounds .r.done-no { background: var(--pink); color: var(--night); }
.rounds .r.done-yes .q, .rounds .r.done-no .q { color: rgba(12, 12, 12, 0.72); }
.play { background: var(--violet); border-radius: 28px; padding: 22px; color: var(--cream); position: relative; }
.play.quiet { background: var(--coal); }
.play h3 { margin-bottom: 8px; }
.play .pq { font: 800 20px/1.28 var(--display); letter-spacing: -0.015em; margin: 4px 0 8px; }
.play p { margin-bottom: 6px; }
.play .yn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.play .yn button { background: none; border: 0; padding: 0; cursor: pointer; transition: transform 0.14s ease; border-radius: 50%; }
.play .yn button .stk { width: 100%; max-width: 150px; margin: 0 auto; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.4)); }
.play .yn .yes:hover { transform: rotate(-8deg) scale(1.07); }
.play .yn .no:hover { transform: rotate(8deg) scale(1.07); }
.play .yn button:active { transform: scale(0.86); }
.play .yn button[disabled] { opacity: 0.5; cursor: wait; }
.play .said { display: flex; align-items: center; gap: 14px; }
.play .said .stkw { width: 64px; transform: rotate(-10deg); }
.play form { display: flex; gap: 8px; margin-top: 10px; }
.play input { flex: 1; min-width: 0; font: 16px var(--body); padding: 12px 16px; border: 2px solid var(--coal-3); border-radius: 99px; background: var(--night); color: var(--cream); }
.play input:focus { border-color: var(--lime); outline: none; }
.play .formerr { margin-top: 8px; }
.walletline { margin: 12px 0 0; color: var(--muted); }
.bench, .feed { background: var(--coal); border-radius: 26px; padding: 18px 20px; }
.bench h3, .feed h3 { font-size: 18px; margin-bottom: 12px; }
.bench ul, .feed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; overflow: auto; }
.bench ul { max-height: 300px; }
.feed ul { max-height: 340px; font-size: 15px; }
.bench li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.bench li .mini { width: 24px; filter: grayscale(0.2); }
.bench li .rc { width: 11px; height: 15px; background: var(--red); border-radius: 2px; flex: none; transform: rotate(-8deg); margin-left: auto; }
.bench li .why { color: var(--muted); font-size: 13px; white-space: nowrap; }
.feed li .t { font-family: var(--dot); color: var(--muted); margin-right: 8px; }
.feed li.r { color: var(--red); }
.feed li.y { color: var(--lime); }
.panel.slim { padding: 18px 20px; border-radius: 26px; }
.panel.slim h3 { font-size: 18px; margin-bottom: 10px; }
.panel.slim .code { font-size: 13px; }
.panel[hidden] { display: none; }
.txs { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 14.5px; }
.txs a { margin-right: 8px; }
.lost { padding: 80px 22px 120px; text-align: center; }
.lost .stkw { width: 150px; margin: 0 auto 28px; transform: rotate(-10deg); }
.lost h2 { margin-bottom: 14px; }

/* Confetti */
.confetti { position: fixed; left: var(--x); top: var(--y); width: var(--s, 34px); pointer-events: none; z-index: 80; animation: confetti 1.6s cubic-bezier(0.15, 0.7, 0.4, 1) forwards; }
@keyframes confetti {
  0% { transform: translate(-50%, -50%) scale(0.3) rotate(0deg); opacity: 1; }
  50% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(calc(var(--rot) * 0.6)); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx) * 1.2), calc(-50% + var(--dy) + 160px)) scale(0.9) rotate(var(--rot)); opacity: 0; }
}

/* "All leagues": a grid of league cards, one line per match */
.lgcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lgcard { background: var(--coal); border-radius: 26px; padding: 8px 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.lgc-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; background: none; border: 0; color: var(--cream); text-align: left; cursor: pointer; font: 800 20px/1.1 var(--display); letter-spacing: -0.02em; border-radius: 18px; }
.lgc-head .lgl { width: 44px; height: 44px; border-radius: 14px; }
.lgc-head .nm small { display: block; font: 600 13.5px var(--body); color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.lgc-head:hover .nm { color: var(--lime); }
.lgc-rows { display: grid; gap: 6px; }
.mrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; text-decoration: none; color: var(--cream); background: var(--coal-2); min-height: 52px; transition: background 0.15s; }
a.mrow:hover { background: var(--coal-3); }
.mt { font: 15px/1.1 var(--dot); color: var(--lime); }
.mt small { display: block; font: 600 11.5px var(--body); color: var(--muted); margin-top: 3px; }
.mt.live { color: var(--pink); display: inline-flex; align-items: center; gap: 6px; }
.mt.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); animation: blink 1s steps(2) infinite; }
.mm { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; font: 700 15px var(--body); min-width: 0; }
.mm .th { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm .ta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm .th.solo { grid-column: 1 / -1; text-align: left; }
.mm .v { font-style: normal; color: var(--muted); font-weight: 600; font-size: 13px; }
.mm .sc { font: 800 14px var(--display); background: var(--night); color: var(--lime); padding: 3px 8px; border-radius: 8px; }
.mn { font-size: 13px; color: var(--muted); white-space: nowrap; font-weight: 600; }
.mrow.soon { background: transparent; box-shadow: inset 0 0 0 1.5px var(--coal-3); }
.mrow.soon .mt { color: var(--muted); }
.lgc-more { align-self: flex-end; margin: 8px 4px 0; background: none; border: 0; color: var(--lime); font: 700 14px var(--body); cursor: pointer; padding: 6px 8px; border-radius: 99px; }
.lgc-more:hover { background: var(--coal-3); }

/* How agents decide: the feed, an example of what an agent sees, and game plans */
.readgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 40px; align-items: start; }
.readsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.readsteps li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 20px; align-items: start; }
.readsteps .stkw { width: 78px; transition: transform 0.2s ease; }
.readsteps li:nth-child(odd) .stkw { transform: rotate(-8deg); }
.readsteps li:nth-child(even) .stkw { transform: rotate(7deg); }
.readsteps li:hover .stkw { transform: translateY(-4px) rotate(0deg); }
.readsteps h3 { margin: 8px 0 8px; }
.readsteps p { margin: 0; color: var(--muted); }
.readsteps code { font: 14px var(--mono); color: var(--lime); }
.seecard { margin: 0; background: var(--coal); border-radius: 28px; padding: 18px 20px 20px; position: relative; }
.seehead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.seehead .lbl { font: 800 16px var(--display); }
.seehead .ex { font: 13px var(--dot); color: var(--muted); border: 1px solid var(--coal-3); border-radius: 8px; padding: 2px 9px; }
.seeq { display: block; background-color: var(--night-2); background-image: radial-gradient(rgba(223, 240, 70, 0.08) 1px, transparent 1.4px); background-size: 5px 5px; border: 2px solid var(--coal-3); border-radius: 18px; padding: 12px 14px 14px; font-family: var(--dot); color: var(--lime); margin-bottom: 14px; }
.seeq .row { display: flex; justify-content: space-between; font-size: 14px; color: rgba(223, 240, 70, 0.66); }
.seeq .q { display: block; margin-top: 6px; font-size: 19px; line-height: 1.3; text-shadow: 0 0 10px rgba(223, 240, 70, 0.45); }
.seecard .plays { max-height: none; margin: 14px 0 0; font-size: 14px; }
.seecard .plays li:last-child { border-bottom: 0; }
.think { margin-top: 12px; background: var(--violet); border-radius: 20px; padding: 14px 14px 14px 18px; display: grid; grid-template-columns: minmax(0, 1fr) 70px; gap: 12px; align-items: center; }
.think .who { font: 800 13px var(--display); color: var(--lime); }
.think p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; }
.think .stkw { width: 70px; transform: rotate(10deg); filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35)); }
.coach { margin-top: 64px; background: var(--lime); color: var(--night); border-radius: 32px; padding: 30px 30px 24px; }
.coachhead { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 26px; }
.coachhead .stkw { width: 96px; transform: rotate(-9deg); }
.coachhead h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; margin: 0 0 8px; }
.coachhead p { margin: 0; max-width: 50em; color: rgba(12, 12, 12, 0.8); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plan { background: var(--night); color: var(--cream); border-radius: 22px; padding: 18px 16px 2px; display: flex; flex-direction: column; min-width: 0; }
.plan h4 { font: 800 18px/1.2 var(--display); letter-spacing: -0.01em; margin: 0 0 4px; }
.plan p { margin: 0 0 14px; font-size: 14.5px; color: var(--muted); }
.plan .code { margin-top: auto; background: var(--coal); border-color: transparent; font-size: 12.5px; padding: 14px 14px 50px; }
.plan .code .copy { top: auto; bottom: 12px; right: 12px; }
.coachnote { margin: 18px 4px 0; font-weight: 600; color: rgba(12, 12, 12, 0.8); }
.sh p a { color: var(--lime); }

/* Question note + match centre (live stats and commentary) */
.qnote { margin: -6px 2px 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.qnote b { color: var(--cream); }
.qnote[hidden] { display: none; }
.rounds .r .mdl { font-size: 12px; font-weight: 700; opacity: 0.75; }
.rounds .r.done-void { background: var(--coal-3); }
.rounds .r.done-void .res { color: var(--muted); }
.play .settles { opacity: 0.8; }
.centre { background: var(--coal); border-radius: 28px; padding: 20px 22px 22px; }
.centre .chead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.centre h3 { font-size: 20px; margin: 0; }
.centre h4 { font: 800 16px var(--display); margin: 20px 0 10px; }
.centre .src { font-size: 13px; color: var(--muted); }
.centre .cempty { margin: 0; }
.cteams { display: flex; justify-content: space-between; gap: 12px; font: 800 15px var(--display); margin-bottom: 10px; }
.cteams .ct { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.cteams .away { justify-content: flex-end; text-align: right; }
.cteams .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.cteams .home .sw { background: var(--pink); }
.cteams .away .sw { background: var(--violet); box-shadow: 0 0 0 1.5px var(--cream) inset; }
.form { display: inline-flex; gap: 3px; }
.form i { font: 700 10.5px/18px var(--body); font-style: normal; width: 18px; text-align: center; border-radius: 4px; background: var(--coal-3); color: var(--muted); }
.form i.fW { background: var(--lime); color: var(--night); }
.form i.fL { background: rgba(255, 59, 47, 0.85); color: var(--night); }
.stats { display: grid; gap: 9px; }
.srow { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; row-gap: 4px; font-size: 14px; }
.srow .lb { text-align: center; color: var(--muted); font-weight: 600; }
.srow .v { font: 800 16px var(--display); }
.srow .v:last-of-type { text-align: right; }
.srow.h .v:first-child, .srow.a .v:last-of-type { color: var(--lime); }
.srow .track { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 6px; }
.srow .track i { display: block; height: 100%; border-radius: 99px; background: var(--coal-3); position: relative; overflow: hidden; }
.srow .track .hb { justify-self: end; background: var(--pink); }
.srow .track .ab { justify-self: start; background: var(--violet); }
.srow .track i[style*="width:0%"] { background: transparent; }
.lineups { margin-top: 16px; }
.lineups summary { cursor: pointer; font-weight: 700; color: var(--lime); }
.lugrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; font-size: 14px; }
.lu ol { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.lu li { display: flex; gap: 8px; align-items: baseline; }
.lu .no { font-family: var(--dot); color: var(--muted); width: 22px; flex: none; }
.lu .pos { margin-left: auto; color: var(--muted); font-size: 12px; }
.plays { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 2px; max-height: 460px; overflow: auto; font-size: 14.5px; }
.plays li { display: grid; grid-template-columns: 52px auto minmax(0, 1fr); gap: 4px 10px; align-items: baseline; padding: 7px 4px; border-bottom: 1px solid var(--coal-3); }
.plays li:not(:has(.tag)) { grid-template-columns: 52px minmax(0, 1fr); color: var(--muted); }
.plays .min { font-family: var(--dot); color: var(--muted); }
.plays .tag { font: 700 11.5px/1 var(--body); padding: 4px 8px; border-radius: 99px; background: var(--coal-3); color: var(--cream); white-space: nowrap; }
.plays .ptx { line-height: 1.4; }
.plays li:not(.key) .ptx { color: rgba(245, 243, 228, 0.78); }
.plays .k-goal .tag, .plays .k-own_goal .tag { background: var(--lime); color: var(--night); }
.plays .k-goal .ptx, .plays .k-own_goal .ptx { font-weight: 700; }
.plays .k-red .tag { background: var(--red); color: var(--night); }
.plays .k-yellow .tag { background: #ffd23f; color: var(--night); }
.plays .k-shot_on_target .tag, .plays .k-penalty_saved .tag { background: var(--cream); color: var(--night); }
.plays .k-corner .tag { background: var(--violet); }
.plays .k-var .tag { background: var(--pink); color: var(--night); }

@media (max-width: 980px) {
  .hero .stage, .connect, .gamegrid { grid-template-columns: 1fr; }
  .readgrid { grid-template-columns: 1fr; gap: 34px; }
  .lgcards { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: clamp(48px, 11vw, 100px); }
  .hero .intro { padding-top: 48px; padding-bottom: 64px; }
  .match .mgrid { grid-template-columns: 1fr; }
  .top.solo { display: none; }
  .rules-line { grid-template-columns: 1fr; gap: 18px; }
  .rules, .vs { grid-template-columns: 1fr 1fr; }
  .panel.install { grid-template-columns: 1fr; }
  .clients { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--coal-3); padding: 12px; }
  .clients button { flex: none; }
  .server, .lfoot { grid-template-columns: 1fr; }
  .rules { row-gap: 60px; }
  .rounds-how { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .rounds-how::before { display: none; }
  .fx { grid-template-columns: 46px 100px minmax(0, 1fr) auto; }
  .fx .ic { width: 46px; grid-row: span 2; }
  .fx .nums { grid-column: 3 / -1; text-align: left; }
  .top nav { display: none; }
  .panel.human { grid-template-columns: auto minmax(0, 1fr); }
  .panel.human .humanform { grid-column: 1 / -1; }
  .hero .d3 { display: none; }
  .hero .d1 { top: auto; bottom: 380px; }
  .pens { grid-template-columns: 1fr; gap: 14px; }
  .penhead { padding-bottom: 0; }
  .penscore { order: 2; padding-bottom: 14px; }
  .goalwrap { order: 3; }
  .adboards { grid-template-columns: 1fr 1fr; }
  .adboards a:nth-child(3) { border-left: 0; }
  .adboards a:nth-child(n+3) { border-top: 2px solid #1f1f1f; }
  /* Phones and tablets: put your call right under the board. */
  .gamegrid { gap: 18px; }
  .left-col, .right-col { display: contents; }
  #game-pitch { order: 1; }
  #game-board { order: 2; }
  #play { order: 3; }
  .counter { order: 4; }
  .potline { order: 5; }
  #rounds { order: 6; }
  #send { order: 7; }
  .bench { order: 8; }
  .feed { order: 9; }
  #chainbox { order: 10; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .rules, .vs { grid-template-columns: 1fr; }
  .steps { padding: 20px 16px 8px; }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .server { padding: 18px 16px; }
  .lhead { padding: 16px; }
  .lstats { gap: 10px 24px; }
  .lstats dd { font-size: 21px; }
  .accounts dl > div { flex-direction: column; align-items: flex-start; gap: 6px; }
  .brand { font-size: 21px; }
  .rounds-how { grid-template-columns: 1fr 1fr; }
  .rounds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
  .mrow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "mt mn" "mm mm"; gap: 6px 8px; padding: 10px 12px 11px; }
  .mrow .mt { grid-area: mt; display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
  .mrow .mt small { display: inline; margin: 0; }
  .mrow .mm { grid-area: mm; gap: 8px; font-size: 15px; }
  .mrow .mn { grid-area: mn; font-size: 12.5px; }
  .lgcard { border-radius: 22px; }
  .coach { padding: 22px 16px 18px; border-radius: 26px; margin-top: 48px; }
  .coachhead { display: block; }
  .coachhead .stkw { float: right; width: 62px; margin: -4px -2px 8px 12px; }
  .readsteps li { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
  .readsteps .stkw { width: 56px; }
  .seecard { padding: 14px 12px 14px; border-radius: 22px; }
  .think { grid-template-columns: minmax(0, 1fr) 56px; }
  .think .stkw { width: 56px; }
  .centre { padding: 16px 14px 18px; border-radius: 22px; }
  .lugrid { grid-template-columns: 1fr; }
  .plays li { grid-template-columns: 44px minmax(0, 1fr); }
  .plays li .tag { grid-column: 2; justify-self: start; }
  .plays li .ptx { grid-column: 2; }
  .hero h1 { font-size: clamp(38px, 15.4vw, 64px); }
  .hero .intro { padding-top: 36px; padding-bottom: 48px; }
  .hero .lede { margin: 28px auto; }
  .match { padding: 12px; }
  .keeper { width: 19%; }
  .box .area { height: 160px; }
  .box .six { height: 50px; width: 78%; }
  .box .spot { top: 108px; }
  .box .pball { top: 104px; width: 44px; }
  .box .arc { width: 170px; height: 40px; }
  .adboards a { font-size: 15px; padding: 11px 6px; }
  .hero .lede { font-size: 18px; }
  .hero .d1 { width: 120px; left: -54px; bottom: 470px; }
  .hero .d2 { width: 100px; right: -40px; top: 120px; }
  .humanform { flex-direction: column; }
  .pitch.few .token .tag { opacity: 0; }
  .pitch .token.me .tag, .pitch .token:hover .tag { opacity: 1; }
  .board .row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .board .q { font-size: 18px; }
  .stamp { width: 84px; right: 10px; }
  .scorebar .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px; padding-top: 8px; padding-bottom: 18px; }
  .scorebar .team { font-size: 15px; }
  .scorebar .team .kit, .scorebar .team img { display: none; }
  .scorebar .team .nm { white-space: normal; overflow-wrap: anywhere; }
  .scorebar .lg { font-size: 12px; }
  .sh { grid-template-columns: 1fr; }
  .sh .badge { width: 64px; grid-row: auto; }
  .fx { grid-template-columns: 42px auto minmax(0, 1fr); padding: 14px; gap: 8px 12px; }
  .fx .ic { width: 42px; grid-row: span 3; align-self: start; }
  .fx .when, .fx .teams { grid-column: 2 / -1; }
  .fx .pill { grid-column: 2; }
  .fx .nums { grid-column: 3; text-align: left; }
  .lgtabs { flex-wrap: nowrap; overflow-x: auto; margin: -8px -16px 28px; padding: 2px 16px 6px; scrollbar-width: none; }
  .lgtabs::-webkit-scrollbar { display: none; }
  .lgtab { flex: none; }
  .lghead { font-size: 20px; }
  .lghead small { display: block; margin: 4px 0 0; }
  .lghead .lgl { width: 44px; height: 44px; }
  .crowd { --cs: 6px; --cg: 2px; }
  .vs .side b { font-size: 38px; }
  .counter b { font-size: 62px; }
  .panel { padding: 20px; }
  .panel.human { grid-template-columns: 1fr; }
  .panel.human .stkw { width: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .crowd i, .keeper.idle, .flutter, .logo .rc, .logo .pea, .perimeter .track, .spin, .token .bob, .token.me::before, .livedot, .pill.live::before, .rounds .r.open { animation: none; }
  .slap, .token.slap .in, .scorebar .score.bump { animation: none; }
  .token { transition: none; }
  .token.peel .in, .sentcard, .stamp { animation-duration: 0.01s; }
  html { scroll-behavior: auto; }
}
