/* The run stays visible while each finished round settles into it. */
.run-ledger { min-width:270px; display:flex; align-items:center; gap:22px; }
.run-slots { display:flex; gap:9px; }
.run-slot { width:63px; min-height:73px; padding:5px 4px 7px; display:grid; grid-template-columns:1fr; place-items:center; border:1px solid #d2dbc9; border-radius:8px; background:transparent; color:#8b9a86; position:relative; transition:background .3s,color .3s; }
.run-slot svg { width:29px; height:26px; }
.run-slot>span { font:600 18px/1 var(--display); font-variant-numeric:tabular-nums; margin-top:3px; }
.run-slot small { position:absolute; top:calc(100% + 6px); font:400 10px var(--font); white-space:nowrap; color:var(--muted); }
.run-slot.current { border-color:#74936c; background:#e5edd9; color:var(--ink); }
.run-slot.kept { background:var(--ink); border-color:var(--ink); color:var(--acid); box-shadow:0 3px 0 #cbd7bc; }
.run-slot.kept:hover { transform:translateY(-2px); }
.run-slot.spilled { color:var(--orange); }
.run-slot.landing { animation:ledger-land .6s cubic-bezier(.15,.8,.2,1); }
.run-ledger .bank-total { margin:0; display:flex; flex-direction:column; text-align:left; min-width:67px; }
.run-kept { font:600 37px/1 var(--display); letter-spacing:-1.8px; font-variant-numeric:tabular-nums; }
.run-ledger .bank-total span { margin-top:6px; font-size:12px; }
.next-button { position:relative; overflow:hidden; }
.advance-track { position:absolute; height:3px; left:0; bottom:0; background:var(--acid); width:100%; transform-origin:left; transform:scaleX(0); }
.next-button.is-advancing .advance-track { animation:advance-progress var(--advance-duration,1150ms) linear forwards; }
body:has(dialog[open]) .advance-track { animation-play-state:paused; }
.round-arriving .stage { animation:world-arrive .48s cubic-bezier(.15,.7,.2,1) both; }
.round-arriving .choice { animation:shelf-arrive .4s cubic-bezier(.15,.7,.2,1) both; }
.round-arriving .choice:nth-child(2) { animation-delay:.035s; }
.round-arriving .choice:nth-child(3) { animation-delay:.07s; }
.round-arriving .choice:nth-child(4) { animation-delay:.105s; }
.round-arriving .choice:nth-child(5) { animation-delay:.14s; }
.round-arriving .choice:nth-child(6) { animation-delay:.175s; }
.result-card { animation:result-arrive .45s both; }
.result-card:nth-child(2) { animation-delay:.1s; }
.result-card:nth-child(3) { animation-delay:.2s; }
.pilot-link { font:600 13px var(--display); letter-spacing:.2px; text-decoration:none; display:flex; gap:9px; align-items:center; }
.pilot-link span { font:400 12px var(--font); letter-spacing:0; }
.pilot-link:hover { color:var(--ink); text-decoration:underline; text-underline-offset:4px; }
.invite-label { display:block; font-size:14px; margin:18px 0 8px; }
.invite-input { width:100%; min-height:48px; padding:12px; border:1px solid #afc3a8; border-radius:8px; background:var(--cream); color:var(--ink); font:400 16px var(--font); }
.invite-note { color:var(--muted); font-size:13px; }
.invite-status:empty { display:none; }
.friend-choices { padding:25px 0; border-top:1px solid var(--line); }
.friend-choices h2 { font:500 30px var(--display); letter-spacing:-1px; margin:9px 0 20px; }
.friend-round { padding:18px 0; border-bottom:1px solid var(--line); }
.friend-round h3 { margin:0 0 14px; font:600 16px var(--display); }
.friend-lane { display:grid; grid-template-columns:80px 1fr 45px; align-items:center; gap:12px; margin:9px 0; font-size:14px; }
.friend-lane>div { display:flex; flex-wrap:wrap; gap:6px; }
.friend-lane b { font:500 13px var(--font); padding:8px 10px; border:1px solid #c5d5ba; border-radius:6px; background:#e8efdd; }
.friend-lane b small { display:block; color:var(--muted); font-weight:400; margin-top:3px; }
.friend-lane b.choice-over { background:#f6dac7; border-color:#e4ad8f; }
.friend-lane>strong { font:600 27px var(--display); text-align:right; }
@keyframes ledger-land { 0% { transform:translateY(-12px) rotate(-6deg) scale(1.12); } 65% { transform:translateY(2px) rotate(2deg) scale(.97); } 100% { transform:none; } }
@keyframes advance-progress { to { transform:scaleX(1); } }
@keyframes world-arrive { from { opacity:.35; transform:translateY(16px); } to { opacity:1; transform:none; } }
@keyframes shelf-arrive { from { opacity:0; transform:translateY(13px) rotate(-1deg); } to { opacity:1; transform:none; } }
@keyframes result-arrive { from { opacity:0; transform:translateY(22px) rotate(-1deg); } to { opacity:1; transform:none; } }
@media(max-width:1090px) { .run-ledger { gap:16px; min-width:248px; } .run-slot { width:55px; } .run-slots { gap:6px; } .run-slot small { display:none; } }
@media(max-width:660px) {
 .topline { align-items:center; }
 .run-ledger { gap:8px; min-width:0; flex-direction:column; }
 .run-slots { gap:4px; }
 .run-slot { width:31px; min-height:35px; padding:3px 1px; border-radius:5px; }
 .run-slot svg { width:19px; height:16px; }
 .run-slot>span { font-size:12px; margin-top:2px; }
 .run-ledger .bank-total { min-width:0; flex-direction:row; gap:4px; align-items:baseline; }
 .run-kept { font-size:19px; letter-spacing:-.8px; }
 .run-ledger .bank-total span { font-size:10px; margin:0; }
 .pilot-link { font-size:12px; } .pilot-link span { display:none; }
 .footer-links { gap:13px; flex-wrap:wrap; justify-content:flex-end; }
 .friend-lane { grid-template-columns:55px 1fr 32px; gap:7px; font-size:12px; }
 .friend-lane b { font-size:12px; padding:6px 8px; }
 .friend-lane>strong { font-size:23px; }
 .friend-choices h2 { font-size:25px; }
}
@media(prefers-reduced-motion:reduce) {
 .run-slot.landing,.next-button.is-advancing .advance-track,.round-arriving .stage,.round-arriving .choice,.result-card { animation:none !important; }
 .run-slot { transition:none; }
}
