main{max-width:1120px}.preview-notice{font-size:12px;letter-spacing:.02em;background:#fff8e7;border:1px solid #eddca8;border-radius:6px;padding:10px 14px;color:#745a23;margin-bottom:24px}.hero{margin-bottom:27px}.hero h1{color:#1d4634}.hero h1 span{color:#c27d51}.hero p:not(.eyebrow){max-width:480px;font-size:15px}.hero-mark{width:123px;height:123px;flex:none;border:1px solid #c9dec8;border-radius:50%;background:radial-gradient(circle,#fff 0 56%,#e7f0e3 57% 60%,#f5faf2 61%);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#285b40;box-shadow:0 5px 20px #2449320b}.hero-mark span{color:#d38c5d;font-size:14px}.hero-mark div{font:700 32px/1.2 Georgia,serif}.hero-mark i{font:italic 18px Georgia,serif;color:#c78358}.hero-mark small{font-size:7px;letter-spacing:.12em;font-weight:700}.rank-strip{display:flex;gap:15px;align-items:center;background:#fff;border:1px solid #dfeade;padding:18px 22px;border-radius:10px;box-shadow:0 4px 22px #204c3609}.rank-medal{width:53px;height:53px;display:grid;place-items:center;border-radius:50%;background:#edf5e9;flex:none}.rank-medal svg{width:38px;height:38px;fill:#cedfc7;stroke:#537e5e;stroke-width:1.4}.rank-medal svg path+path{fill:#fff;stroke:#537e5e}.rank-summary{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.rank-summary .eyebrow{font-size:9px;margin:0}.rank-summary strong{font:400 23px 'DM Serif Display',Georgia,serif;color:#204b38}.rank-summary span:last-child{color:#7d9080;font-size:12px}.rank-actions{display:flex;gap:8px}.section-title{display:flex;justify-content:space-between;align-items:end;margin:36px 0 16px}.section-title .eyebrow{margin-bottom:7px}.section-title h2{font:400 28px 'DM Serif Display',Georgia,serif;margin:0;color:#234d36}.section-title>span{color:#a4b3a4;font-size:10px;letter-spacing:.14em}.game-options{display:grid;grid-template-columns:1fr 1fr;gap:16px}.mode-card{position:relative;display:flex;flex-direction:column;min-height:244px;padding:25px;border:1px solid #dfebdd;border-radius:10px;background:#fff;overflow:hidden}.mode-card.ranked{background:#edf5e9;border-color:#d6e7d3}.mode-card:after{content:'';position:absolute;right:-36px;top:-50px;width:150px;height:150px;border:1px solid #abc9aa55;transform:rotate(45deg);border-radius:12px;pointer-events:none}.mode-icon{width:38px;height:38px;display:grid;place-items:center;background:#dbead7;color:#487450;border-radius:8px;font-size:21px;margin-bottom:17px}.friends-icon{background:#f6eee3;color:#c48458}.mode-card .eyebrow{margin-bottom:7px}.mode-card h3{font:400 28px 'DM Serif Display',Georgia,serif;letter-spacing:-.02em;margin:0 0 8px}.mode-card>p:not(.eyebrow){color:#6d8272;font-size:13px;line-height:1.55;max-width:380px;margin:0 0 22px}.mode-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto}.mode-bottom>span{font-size:9px;font-weight:700;color:#91a391;letter-spacing:.1em}.mode-bottom .button span{margin-left:14px}.status{margin-top:16px;color:#805236;font-size:13px}.signed-out{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border:1px solid #e3ebe1;border-radius:10px;padding:18px 22px;margin-top:22px}.signed-out strong{font-size:14px}.signed-out p{color:#718476;font-size:12px;margin:5px 0 0}@media(max-width:700px){.hero-mark{width:84px;height:84px}.hero-mark div{font-size:24px}.rank-strip{flex-wrap:wrap;padding:15px}.rank-actions{width:100%}.rank-actions .button{flex:1}.game-options{grid-template-columns:1fr}.mode-card{min-height:210px;padding:21px}.section-title{margin-top:28px}.section-title h2{font-size:25px}.signed-out{align-items:flex-start;flex-direction:column}}@media(max-width:380px){.hero-mark{display:none}.mode-bottom{align-items:flex-start;flex-direction:column}.mode-bottom .button{width:100%}}
.match-panel{margin-top:22px;padding:24px;border:1px solid #dce9da;border-radius:10px;background:#fff}.match-heading{display:flex;justify-content:space-between;gap:15px}.match-heading h2{margin:0;font:400 30px 'DM Serif Display',Georgia,serif}.match-heading p:not(.eyebrow){color:#647d6b;font-size:13px}.match-timer{display:flex;flex-direction:column;align-items:center;justify-content:center;width:70px;height:70px;background:#eef6e9;border:1px solid #d8e8d4;border-radius:50%;color:#285a3d}.match-timer strong{font:700 23px Georgia,serif}.match-timer small{font-size:8px;font-weight:700;letter-spacing:.1em}.match-timer.urgent{color:#b34332;background:#fff0e9;border-color:#edc0ae}.match-scores{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.match-scores>div{display:grid;grid-template-columns:1fr auto;gap:4px;padding:15px;border:1px solid #e0eade;border-radius:8px;background:#f7faf4}.match-scores small{font-size:10px;font-weight:700;letter-spacing:.1em;color:#729077}.match-scores strong{grid-column:2;grid-row:1/3;font:700 28px Georgia,serif}.match-scores span{font-size:12px;color:#708472}.base-display{display:flex;gap:7px;grid-column:1/3;min-height:20px;align-items:center}.base-display span{display:inline-grid;place-items:center;width:24px;height:22px;border:1px solid #d0e1cb;border-radius:4px;font-size:12px;background:white}.swing-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:20px;font-size:13px}.swing-heading span{font-size:11px;color:#738d77}.swing-options{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0}.swing-options button,.map-buttons button{min-height:42px;border:1px solid #cfe0cc;border-radius:6px;background:#f8fbf5;color:#285a3e;font:700 12px 'DM Sans',sans-serif;cursor:pointer}.swing-options button:disabled{opacity:.45;cursor:default}.question{padding:13px 15px;border-left:4px solid #d98751;background:#f0f6eb;font-size:16px;font-weight:700}.map-buttons{display:flex;gap:6px;margin:8px 0}.map-buttons button{min-width:43px;padding:0 12px}.mp-map{border:1px solid #adc9ae;background:#eaf5e8;border-radius:8px;overflow:hidden}.mp-map svg{display:block;width:100%;touch-action:none}.mp-map .sphere{fill:#eff8ec;stroke:#446e50;stroke-width:2}.mp-map .country{fill:#bcd5b7;stroke:#789e7e;stroke-width:.7;cursor:pointer}.mp-map .country:hover{fill:#e7b88f}.mp-map .tiny{fill:#c9895e;stroke:#fff;stroke-width:1;cursor:pointer}.map-hint{font-size:11px;color:#8b9c8d}.answer-review{padding:10px 0;color:#496a54;font-size:13px}.mp-dialog{width:min(520px,calc(100% - 32px));max-height:calc(100% - 32px);overflow:auto;border:1px solid #dce9da;border-radius:10px;padding:22px;background:#fff;color:#204b38;box-shadow:0 20px 90px #142e2260}.mp-dialog::backdrop{background:#142e2270}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-head h2{font:400 28px 'DM Serif Display',Georgia,serif;margin:0 0 12px}.close-dialog{border:0;background:transparent;font-size:26px;color:#557660;cursor:pointer}.dialog-form{display:grid;gap:12px}.dialog-form label{display:grid;gap:5px;font-size:12px;font-weight:700}.dialog-form select,.dialog-form input{min-height:43px;padding:8px 10px;border:1px solid #d5e2d6;border-radius:6px;background:#fff;color:#204b38;font:inherit}.dialog-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.list-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #eef2eb;font-size:13px}.list-row strong{color:#285a3e}.mp-dialog p{font-size:13px;color:#708272;line-height:1.55}.invite-link{width:100%;padding:9px;border:1px solid #d5e2d6;border-radius:5px;font-size:12px;color:#285a3e}@media(max-width:500px){.match-panel{padding:16px}.match-heading h2{font-size:24px}.swing-options{grid-template-columns:repeat(2,1fr)}.match-scores>div{padding:10px}.question{font-size:14px}.map-buttons button{min-height:44px}}
.emote-bar{padding:14px 0;border-top:1px solid #e4eee2}.emote-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}.emote-head .button{padding:7px 10px}.emote-choices{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.emote-choices button{min-height:38px;padding:8px 10px;border:1px solid #d8e7d5;background:#f5f9f2;color:#365e40;border-radius:6px;font:700 11px 'DM Sans',sans-serif;cursor:pointer}.emote-bar p{font-size:12px;color:#708472;min-height:1em}
/* Arena palettes follow the higher-ranked player; colors are decorative only. */
.match-panel{--arena-edge:#dce9da;--arena-bg:#fff;border-color:var(--arena-edge);background:linear-gradient(145deg,var(--arena-bg),#fff 40%)}
.match-panel[data-arena="1"]{--arena-edge:#c4dfbf;--arena-bg:#eef8e8}
.match-panel[data-arena="2"]{--arena-edge:#b8ded0;--arena-bg:#edf9f3}
.match-panel[data-arena="3"]{--arena-edge:#b5d8e1;--arena-bg:#eef8fb}
.match-panel[data-arena="4"]{--arena-edge:#becde5;--arena-bg:#f0f4fc}
.match-panel[data-arena="5"]{--arena-edge:#e6c8a6;--arena-bg:#fff6ec}
.match-panel[data-arena="6"]{--arena-edge:#dbc7dc;--arena-bg:#faf2fa}
.match-panel[data-arena="7"]{--arena-edge:#ead29a;--arena-bg:#fff9e7}
.match-panel[data-arena="8"]{--arena-edge:#dcb38d;--arena-bg:#fff4e9}
.match-panel[data-arena="9"]{--arena-edge:#bfd1dc;--arena-bg:#f0f8fc}
.match-panel[data-arena="10"]{--arena-edge:#ddba60;--arena-bg:#fff8df}
@media(prefers-reduced-motion:reduce){.mp-map *, .match-panel *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.contestant{display:flex;align-items:center;gap:8px;min-width:0}.contestant>div:last-child{min-width:0}.contestant small,.contestant span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.contestant small{color:#416b4b;font-size:10px}.contestant span{margin-top:3px;font-size:10px;color:#7d9280}.contestant-avatar{width:36px;height:36px;flex:none;border:2px solid #c9ddc5;border-radius:50%;overflow:hidden;background:#e9f2e5}.contestant-avatar svg{display:block;width:100%;height:100%}
.custom-cooldowns{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.custom-cooldowns[hidden]{display:none}@media(max-width:400px){.custom-cooldowns{grid-template-columns:1fr}}
.mp-player-link{border:0;padding:0;background:none;color:#285a3e;font:700 13px 'DM Sans',sans-serif;text-align:left;cursor:pointer}.mp-player-link:hover{text-decoration:underline}.mp-player-link:focus-visible{outline:3px solid #d98751;outline-offset:3px}
.match-heading .eyebrow{position:relative}.match-heading .eyebrow:after{content:'✦';margin-left:7px;color:#d69b61;display:inline-block;animation:arena-glint 3s ease-in-out infinite}@keyframes arena-glint{0%,100%{opacity:.45;transform:scale(.8)}50%{opacity:1;transform:scale(1.12)}}@media(prefers-reduced-motion:reduce){.match-heading .eyebrow:after{animation:none}}
/* Compact diamonds leave the map usable on narrow screens. */
.base-display{position:relative;width:90px;height:90px;min-height:90px;display:block;margin:3px auto 0;border-radius:48% 48% 42% 42%;background:radial-gradient(circle at 50% 60%,#b7d4ac 0 57%,#d8e9ce 58% 66%,#edf6e8 67%);overflow:visible}.base-display:before{content:'';position:absolute;width:48px;height:48px;left:21px;top:21px;transform:rotate(45deg);background:#dec6a3;border:2px solid #bca37d;border-radius:3px}.base-display .bag{position:absolute;display:grid;place-items:center;width:21px;height:21px;border:1px solid #acbda9;border-radius:3px;background:#fffef9;z-index:1;font-size:14px;color:#3a7350;box-shadow:0 1px 2px #204b3820}.base-display .bag.occupied{animation:runner-arrive .35s ease-out}.base-display .bag-1{left:66px;top:35px}.base-display .bag-2{left:35px;top:4px}.base-display .bag-3{left:4px;top:35px}.base-display .home-plate{position:absolute;left:38px;top:70px;width:14px;height:14px;background:#fffef9;border:1px solid #acbda9;transform:rotate(45deg);z-index:1}@keyframes runner-arrive{from{transform:scale(.6);opacity:.4}to{transform:scale(1);opacity:1}}@media(max-width:500px){.base-display{transform:scale(.85);transform-origin:center top;margin-bottom:-13px}}@media(prefers-reduced-motion:reduce){.base-display .bag.occupied{animation:none}}
.match-panel{position:relative}.mp-confetti{position:absolute;z-index:4;top:30px;width:7px;height:10px;pointer-events:none;animation:mp-confetti-fall 1.4s ease-out forwards}@keyframes mp-confetti-fall{from{opacity:1;transform:translateY(0) rotate(0)}to{opacity:0;transform:translateY(var(--fall)) rotate(var(--turn))}}@media(prefers-reduced-motion:reduce){.mp-confetti{display:none}}
body.in-match .hero,body.in-match .rank-strip,body.in-match .signed-out{display:none}body.in-match main{padding-top:18px}body.in-match .match-panel{margin-top:0}body.in-match .preview-notice{margin-bottom:10px}@media(max-width:700px){body.in-match main{padding-top:8px;padding-bottom:30px}body.in-match .site-header{height:55px}body.in-match .match-heading h2{font-size:22px}body.in-match .match-heading p:not(.eyebrow){margin:4px 0;font-size:11px}body.in-match .match-timer{width:54px;height:54px}body.in-match .match-scores{margin:8px 0}body.in-match .swing-heading{margin-top:10px}body.in-match .swing-options{margin:7px 0}body.in-match .swing-options button{min-height:38px}}
/* A focused SVG country otherwise receives a rectangular browser outline across its bounding box. Keep the keyboard indicator on the country shape itself. */
.mp-map .country:focus,.mp-map .tiny:focus{outline:none}
.mp-map .country:focus-visible,.mp-map .tiny:focus-visible{stroke:#b54f2f;stroke-width:3;filter:drop-shadow(0 0 2px #fff)}
/* Matchup card and search animation */
.hero-mark{width:220px;height:138px;border-radius:14px;background:linear-gradient(135deg,#eff7ea,#fff);box-shadow:0 10px 30px #24493212;gap:8px}.hero-mark .matchup-badge{font:700 9px 'DM Sans',sans-serif;letter-spacing:.18em;color:#b9784f}.matchup-art{display:flex;align-items:center;gap:12px}.matchup-art .player-token{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#cbe1c8;border:3px solid white;box-shadow:0 0 0 1px #9dbc9f;color:#497b54;font-size:18px}.matchup-art .rival{background:#f0d4be;box-shadow:0 0 0 1px #d4ad8e;color:#ae714d}.matchup-art strong{font:italic 700 18px Georgia,serif;color:#c47c4d}.hero-mark small{font-size:8px}.game-options{grid-template-columns:repeat(3,minmax(0,1fr))}.mode-card.unranked{background:#f9fbf7}.search-animation{display:flex;align-items:center;justify-content:center;gap:14px;padding:22px 0}.search-token{display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:#e0efda;border:3px solid white;box-shadow:0 0 0 2px #b5d4b0;color:#447950;font-size:25px}.search-token.rival{background:#f4e0cf;box-shadow:0 0 0 2px #ddbaa0;color:#b77750}.search-vs{font:italic 700 22px Georgia,serif;color:#c77e51}.search-radar{position:relative}.search-radar:after{content:'';position:absolute;inset:-6px;border:2px solid #71a279;border-radius:50%;animation:match-radar 1.5s ease-out infinite}@keyframes match-radar{0%{transform:scale(.8);opacity:.8}100%{transform:scale(1.45);opacity:0}}@media(prefers-reduced-motion:reduce){.search-radar:after{animation:none}}@media(max-width:800px){.game-options{grid-template-columns:1fr}.hero-mark{width:165px;height:115px}.matchup-art .player-token{width:34px;height:34px}.hero-mark small{font-size:7px}}@media(max-width:380px){.hero-mark{display:none}}
.match-result{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:24px;border:0;background:radial-gradient(ellipse at center,#f5faf0,#dcebd9);color:#214a35;text-align:center}.match-result::backdrop{background:#132f24b3}.result-content{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}.result-content .eyebrow{letter-spacing:.2em}.result-emblem{display:grid;place-items:center;width:92px;height:92px;border:5px solid #fff;border-radius:50%;background:#d2e6ca;box-shadow:0 0 0 2px #a8cba5;color:#d58a54;font-size:44px}.result-content h2{font:700 clamp(42px,8vw,76px)/1.1 'DM Serif Display',Georgia,serif;margin:10px 0 0}.result-content #result-score{font:700 clamp(28px,5vw,45px) Georgia,serif;color:#416c4d;margin:0 0 18px}.result-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.result-actions .button{min-height:48px;padding:12px 20px}
.rank-medal{border:0;cursor:pointer}.rank-medal:focus-visible{outline:3px solid #d28a57;outline-offset:3px}.stadium-ladder{display:grid;gap:10px;max-height:65vh;overflow:auto;padding:6px}.stadium-rung{display:flex;align-items:center;gap:13px;padding:10px;border:1px solid #e1e9df;border-radius:10px;background:#f8fbf6}.stadium-rung.current{border:2px solid #5e9a6a;background:#e9f5e6}.stadium-thumb{width:132px;flex:none}.stadium-thumb svg{display:block;width:100%;border-radius:8px}.stadium-details{display:flex;flex-direction:column;gap:4px}.stadium-details small{color:#a8714d;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.07em}.stadium-details strong{font:700 18px Georgia,serif}.stadium-details span{font-size:12px;color:#69836c}.arena-stage{position:relative;height:92px;margin:-8px 0 15px;overflow:hidden;border-radius:9px;background:#e4f1e2}.arena-stage svg{width:100%;height:100%;object-fit:cover;display:block}.arena-stage strong{position:absolute;left:12px;bottom:9px;padding:5px 9px;border-radius:5px;background:#183d30dd;color:white;font-size:11px}.clock-group{display:flex;align-items:center;gap:8px}.regulation-clock{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:63px;height:53px;padding:5px;background:#fff7e7;border:1px solid #e7d4ad;border-radius:8px;color:#715b31}.regulation-clock strong{font:700 18px Georgia,serif}.regulation-clock small{font-size:7px;font-weight:700;letter-spacing:.06em}.history-person{display:flex;align-items:center;gap:12px;min-width:0}.history-avatar{display:inline-block;width:38px;height:38px;flex:none;border-radius:50%;background:#eef5ea}.history-avatar svg{width:100%;height:100%;display:block;border-radius:50%}@media(max-width:500px){.stadium-thumb{width:100px}.arena-stage{height:65px;margin-bottom:8px}.regulation-clock{min-width:52px;height:48px}.regulation-clock strong{font-size:15px}}
.stadium-link{align-self:start;background:none;border:0;padding:4px 0;color:#376a49;text-decoration:underline;text-underline-offset:3px;font:700 11px 'DM Sans',sans-serif;cursor:pointer}.stadium-link:focus-visible{outline:2px solid #d28a57;outline-offset:3px}
.match-scores .last-swing{grid-column:1 / -1;font-size:10px;color:#66816b}.result-content #result-rank-progress{font-size:14px;color:#5e795f;max-width:32em;margin:0 0 10px}
.rank-medal{width:86px;height:58px;border-radius:9px;padding:0;overflow:hidden;background:#e3efdf}.rank-medal svg{width:100%;height:100%;display:block;fill:initial;stroke:none}
.rank-medal{box-sizing:border-box;border:2px solid color-mix(in srgb,var(--lobby-detail,#668d6a) 75%,white);box-shadow:0 2px 7px #2449321a}

/* A compact celebration lives inside the existing result dialog. */
.promotion-celebration{position:relative;isolation:isolate;overflow:hidden;width:min(100%,410px);padding:16px;border:1px solid #dab770;border-radius:14px;background:radial-gradient(circle at 50% 5%,#fff9df,#f5e8c0 70%,#efdfa9);box-shadow:0 8px 30px #8f6c2b26;animation:promotion-enter .65s cubic-bezier(.2,.8,.2,1) both}
.promotion-art{position:relative;z-index:1;width:min(210px,72%);margin:0 auto 10px;border:3px solid #fff8e6;border-radius:11px;overflow:hidden;box-shadow:0 4px 18px #76582640;animation:promotion-rise .8s .15s cubic-bezier(.2,.8,.2,1) both}.promotion-art svg{display:block;width:100%;height:80px}.promotion-copy{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:4px;color:#5e4921}.promotion-copy span{font-size:10px;font-weight:700;letter-spacing:.17em;color:#a9792d}.promotion-copy strong{font:700 27px/1.15 Georgia,serif;color:#5b421a}.promotion-copy b{font-size:14px;color:#6b522b}.promotion-copy small{font-size:11px;color:#896b39}.promotion-burst{position:absolute;inset:0;z-index:0;pointer-events:none}.promotion-burst i{position:absolute;left:50%;top:45%;width:6px;height:13px;border-radius:2px;background:#e4b449;transform:rotate(calc(var(--piece)*30deg)) translateY(-15px);animation:promotion-spark 1.4s .2s ease-out both}.promotion-burst i:nth-child(3n){background:#cc7752}.promotion-burst i:nth-child(3n+1){background:#77a878}@keyframes promotion-enter{from{opacity:0;transform:translateY(15px) scale(.95)}to{opacity:1;transform:none}}@keyframes promotion-rise{from{opacity:0;transform:translateY(18px) scale(.8)}to{opacity:1;transform:none}}@keyframes promotion-spark{0%{opacity:1;transform:rotate(calc(var(--piece)*30deg)) translateY(-15px) scale(.5)}70%{opacity:.9}100%{opacity:0;transform:rotate(calc(var(--piece)*30deg)) translateY(-115px) scale(1)}}@media(prefers-reduced-motion:reduce){.promotion-celebration,.promotion-art,.promotion-burst i{animation:none}.promotion-burst{display:none}}
/* Keep the search pulse inside the opponent portrait and preserve the VS. */
.search-radar{overflow:hidden;border-radius:50%;isolation:isolate}.search-radar:after{inset:4px;pointer-events:none;animation:match-radar-contained 1.5s ease-out infinite}@keyframes match-radar-contained{0%{transform:scale(.75);opacity:.8}100%{transform:scale(1);opacity:0}}.search-avatar{width:68px;height:68px;flex:none}.search-vs{position:relative;z-index:1;flex:none}.matchup-player{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;max-width:140px}.matchup-player strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.stadium-steps{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}.stadium-steps span{width:15px;height:15px;border:1px solid #9eb8a0;border-radius:3px;background:#e9f0e7}.stadium-steps span.won{border-color:#b67c3f;background:#e6ba65}.ladder-rankings{border-top:1px solid #dce9da;padding:14px 0 4px}.ladder-rankings h3{margin:0;font:700 20px Georgia,serif}.ladder-rankings .dialog-actions{margin:8px 0}.ladder-rankings .list-row.is-self{background:#edf6e8;border-radius:6px;padding-left:8px;padding-right:8px}.match-result{inset:0;width:min(560px,calc(100% - 32px));height:auto;max-width:560px;max-height:calc(100% - 32px);overflow:auto;margin:auto;padding:32px 24px;border:1px solid #dce9da;border-radius:12px;background:radial-gradient(ellipse at center,#f5faf0,#dcebd9);box-shadow:0 20px 90px #142e2260}.result-content{min-height:0}.match-result::backdrop{background:#142e2270}@media(max-width:500px){.match-result{padding:24px 18px}.result-content h2{font-size:40px}.search-animation{gap:10px}.matchup-player{max-width:100px}}@media(prefers-reduced-motion:reduce){.search-radar:after{animation:none}}

/* A compact scorecard keeps the result and the two players easy to scan. */
.result-content .result-mode{margin:0;color:#687e66;font-size:12px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.result-content #result-score{display:flex;align-items:center;justify-content:center;gap:18px;width:min(100%,370px);margin:0;padding:14px 18px;border:1px solid #c7ddc1;border-radius:14px;background:#fff9;box-shadow:0 6px 16px #214a3510;font-family:inherit}
.result-contestant{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}.result-contestant span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5b755d;font:700 12px/1.3 Arial,sans-serif}.result-contestant strong{color:#214a35;font:700 36px/1 Georgia,serif}.result-score-divider{color:#a4bda0;font:700 25px Georgia,serif}.result-content .result-atbats{margin:0;color:#5e795f;font-size:13px;font-weight:600}.result-content #result-rank-progress:not(:empty){margin:0;padding:10px 14px;border-radius:9px;background:#e5f1df;color:#285b3a;font-weight:700}

/* A single compact match picker replaces the three large mode cards. */
.game-options{display:block}
.match-picker{--picker-border:#d5e5d2;--picker-fill:#f7fbf5;padding:20px 22px;border:1px solid var(--picker-border);border-radius:12px;background:linear-gradient(110deg,var(--picker-fill),#fff 72%);box-shadow:0 4px 22px #204c3609}
.match-picker-row{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.match-picker-mode .eyebrow{margin:0 0 5px}.match-picker-mode h3{margin:0 0 12px;color:#214a35;font:400 24px/1.15 'DM Serif Display',Georgia,serif}.match-mode-toggle{display:inline-flex;gap:3px;padding:3px;border:1px solid #d4e4d2;border-radius:9px;background:#eaf3e7}.match-mode-toggle button{min-height:39px;padding:8px 16px;border:0;border-radius:6px;background:transparent;color:#4b6c55;font:700 12px 'DM Sans',sans-serif;cursor:pointer}.match-mode-toggle button[aria-pressed="true"]{background:#285b40;color:#fff;box-shadow:0 2px 5px #244a3529}.match-mode-toggle button:focus-visible,.match-picker summary:focus-visible{outline:3px solid #c37b51;outline-offset:2px}.match-picker-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.match-picker-actions .button{min-height:43px}.match-picker-actions [hidden],.match-picker-details [hidden]{display:none!important}.match-picker-details{margin-top:13px;color:#617a66;font-size:12px;line-height:1.45}.match-picker-details>p{margin:0}.match-picker-details details{margin-top:7px}.match-picker-details summary{width:max-content;max-width:100%;color:#36684a;font-weight:700;cursor:pointer}.match-picker-details details p{max-width:65em;margin:7px 0 0}
/* Each player's current stadium colors the lobby; game scenery still follows the match arena. */
body{--lobby-sky:#ddecdf;--lobby-hills:#9dc69d;--lobby-detail:#668d6a;background:linear-gradient(155deg,var(--lobby-sky),#f7faf5 52%);background-attachment:fixed}
.rank-strip{border-color:color-mix(in srgb,var(--lobby-hills),white 55%);background:linear-gradient(105deg,var(--lobby-sky),#fff 70%)}.game-options .match-picker{--picker-border:color-mix(in srgb,var(--lobby-hills),white 50%);--picker-fill:color-mix(in srgb,var(--lobby-sky),white 38%)}.hero-mark{border-color:var(--lobby-hills);background:linear-gradient(135deg,var(--lobby-sky),#fff)}.section-title .eyebrow,.rank-summary .eyebrow{color:var(--lobby-detail)}
@media(max-width:600px){.match-picker{padding:17px}.match-picker-row{gap:14px}.match-picker-mode,.match-picker-actions{width:100%}.match-mode-toggle{display:flex;width:100%}.match-mode-toggle button{flex:1}.match-picker-actions{display:grid;grid-template-columns:1fr 1fr}.match-picker-actions .button{padding:10px 8px;min-width:0;font-size:12px}.match-picker-mode h3{font-size:22px}}
@media(max-width:340px){.match-picker-actions{grid-template-columns:1fr}}
.game-options[hidden],.section-title[hidden]{display:none}

/* Keep the match-mode selector and match actions on the same line when space allows. */
.match-picker-row{justify-content:flex-start;gap:12px}
.match-picker-actions{gap:9px}
.friend-create{display:flex;align-items:center;gap:10px}
.friend-create p{max-width:215px;margin:0;color:#617a66;font-size:11px;line-height:1.35}
@media(max-width:600px){.match-picker-actions{align-items:start}.friend-create{align-items:stretch;flex-direction:column;gap:6px}.friend-create p{max-width:none}}

/* Match history makes its outcome reason and profile action explicit. */
.history-row .history-person{align-items:flex-start}.history-words{display:grid;gap:4px;min-width:0}.history-words>span{font-size:13px;color:#506e59}.history-words .history-reason{font-weight:700;color:#315b3e}.history-profile-action{width:max-content;min-height:32px;text-decoration:underline;text-underline-offset:3px}
