/* Shop tab (local preview v2): store grid (name + price), item view on the player's character. */
.rs-shop{padding:26px 30px 34px}
.rs-shop-title{margin:0 0 20px}
.rs-equipment{display:flex;align-items:center;gap:16px;padding:14px 16px;margin-bottom:22px;border:1px solid var(--line,#c5dfed);border-radius:12px;background:#eaf5fc;color:#1d5278;flex-wrap:wrap}
.rs-equipment-label{display:grid;gap:3px;margin-right:auto}.rs-equipment-label small{font-size:11px;color:#527189}
.rs-equipment-choices{display:flex;gap:4px;padding:4px;border:1px solid #bdd6e8;border-radius:9px;background:#ffffff80}
.rs-equipment-choices button{border:0;background:none;border-radius:6px;padding:8px 13px;font:700 12px inherit;color:inherit;cursor:pointer}
.rs-equipment-choices button[aria-pressed=true]{background:#1d5278;color:white;box-shadow:0 2px 4px #194c7720}
.rs-game-link,.rs-try-on{font-size:13px;font-weight:800;color:#1d5278;text-decoration:none}.rs-try-on{display:block;text-align:center;border:1px solid #b4d2e6;border-radius:8px;padding:11px}
.rs-design{display:grid;gap:6px;font-size:12px;font-weight:700;color:#527189}.rs-design select{padding:10px;border:1px solid #b4d2e6;border-radius:7px;background:transparent;color:inherit;font:inherit}
html[data-theme=dark] .rs-equipment{background:#152a3e;color:#c1e5ff}html[data-theme=dark] .rs-equipment-label small{color:#86a2b8}html[data-theme=dark] .rs-equipment-choices{background:#0c1e30;border-color:#30485e}html[data-theme=dark] .rs-equipment-choices button[aria-pressed=true]{background:#a1d8fa;color:#12233a}html[data-theme=dark] .rs-game-link,html[data-theme=dark] .rs-try-on{color:#a1d8fa}
.rs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:20px}
.rs-tile{all:unset;cursor:pointer;display:flex;flex-direction:column;gap:3px;border-radius:12px}
.rs-tile:focus-visible{outline:2px solid #1a8fe0;outline-offset:4px}
.rs-tile-art{aspect-ratio:1;border-radius:12px;overflow:hidden;background:linear-gradient(#fff,#e1f0fa);border:1px solid var(--line,#c5dfed);margin-bottom:9px;transition:transform .15s ease;display:grid;grid-template-rows:minmax(0,1fr)}
.rs-tile-art.duo,.rs-modal-art.duo{grid-template-columns:repeat(2,minmax(0,1fr))}
.rs-tile:hover .rs-tile-art{transform:translateY(-2px)}
.rs-render{display:block;width:100%;height:100%;min-width:0;min-height:0}
.rs-tile-name{font-weight:800;font-size:15px;color:#1d5278}
.rs-tile-price{font-weight:700;font-size:13px;color:#527189;display:flex;gap:7px}
.rs-tile-price s,.rs-modal-price s{opacity:.55;font-weight:600}
.rs-modal-backdrop{position:fixed;inset:0;background:#07111dd0;z-index:200;display:grid;place-items:center;padding:20px}
.rs-modal{position:relative;display:grid;grid-template-columns:1.1fr 1fr;width:min(920px,100%);max-height:calc(100vh - 40px);background:#fff;border:1px solid #a9c3d7;border-radius:16px;overflow:hidden;box-shadow:0 24px 80px #0007}
.rs-modal-art{position:relative;aspect-ratio:1;max-height:calc(100vh - 42px);background:linear-gradient(#fff,#e1f0fa);display:grid;grid-template-rows:minmax(0,1fr)}
.rs-modal-side{display:flex;flex-direction:column;justify-content:center;gap:12px;padding:26px;overflow:auto}
.rs-modal-side h2{margin:0;font-size:26px;color:#1d5278}
.rs-modal-price{font-size:22px;font-weight:900;color:#1d5278;margin-bottom:4px;display:flex;gap:9px;align-items:baseline}
.rs-opt{display:flex;flex-direction:column;gap:8px;margin-bottom:4px}
.rs-opt-label{font-size:12px;font-weight:800;color:#527189;display:flex;gap:6px}
.rs-opt-label b{color:#1d5278}
.rs-colors{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
.rs-color{padding:3px;border:1px solid #c5dfed;border-radius:8px;background:none;cursor:pointer;min-width:0;display:grid;place-items:center}
.rs-color.on{border-color:#1d5278;box-shadow:inset 0 0 0 1px #1d5278}
.rs-color:focus-visible,.rs-swatch:focus-visible{outline:2px solid #1a8fe0;outline-offset:2px}
.rs-color-art{width:100%;max-width:30px;aspect-ratio:1/2;height:auto;border-radius:3px;display:block}
.rs-swatches{display:flex;flex-wrap:wrap;gap:8px}
.rs-swatch{width:28px;height:28px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #a9c3d7;cursor:pointer;padding:0}
.rs-swatch.on{box-shadow:0 0 0 2px #1d5278}
.rs-modal-note{margin:0;font-size:12px;color:#718b9e}
.rs-modal-side .button{width:100%}
.rs-modal-close{position:absolute;top:10px;right:12px;width:34px;height:34px;border:0;border-radius:50%;background:#0000000d;color:#35546b;font-size:22px;line-height:1;cursor:pointer;z-index:1}
/* dark: a soft lit backdrop behind each item so dark items (the black cape) still read */
html[data-theme=dark] .rs-tile-art,html[data-theme=dark] .rs-modal-art{background:radial-gradient(circle at 50% 44%,#2e5274 0%,#1c3650 52%,#12233a 100%);border-color:#2b4762}
html[data-theme=dark] .rs-tile:hover .rs-tile-art{border-color:#46709a}
html[data-theme=dark] .rs-modal-art{border-right:1px solid #2b4762}
html[data-theme=dark] .rs-tile-name,html[data-theme=dark] .rs-modal-side h2,html[data-theme=dark] .rs-modal-price,html[data-theme=dark] .rs-opt-label b{color:#a1d8fa}
html[data-theme=dark] .rs-tile-price,html[data-theme=dark] .rs-modal-note,html[data-theme=dark] .rs-opt-label{color:#86a2b8}
html[data-theme=dark] .rs-modal{background:#132436;border-color:#2b4762;box-shadow:0 24px 80px #000a}
html[data-theme=dark] .rs-modal-close{background:#ffffff14;color:#cfe3f2}
html[data-theme=dark] .rs-color{border-color:#30485e}
html[data-theme=dark] .rs-color.on{border-color:#a1d8fa;box-shadow:inset 0 0 0 1px #a1d8fa}
html[data-theme=dark] .rs-swatch{border-color:#172a3c;box-shadow:0 0 0 1px #30485e}
html[data-theme=dark] .rs-swatch.on{box-shadow:0 0 0 2px #a1d8fa}
@media(max-width:640px){.rs-shop{padding:18px 16px 26px}.rs-grid{grid-template-columns:1fr 1fr;gap:14px}.rs-modal{grid-template-columns:1fr;overflow:auto}.rs-modal-art{aspect-ratio:1}.rs-modal-side{padding:18px}}
@media(prefers-reduced-motion:reduce){.rs-tile-art{transition:none}}
/* payment choice: Stripe (card / Apple Pay / Google Pay), PayPal, crypto */
.rs-pay{display:flex;flex-direction:column;gap:8px}
.rs-pay>b{font-size:15px}
.rs-pay .button{width:100%;min-height:44px}
.rs-pay-amount{margin:0;font-size:15px}
.rs-pay-address{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:12px;background:rgba(13,29,44,.06);font-size:12px;overflow:hidden}
html[data-theme=dark] .rs-pay-address{background:rgba(255,255,255,.08)}
.rs-pay-address code{flex:1;min-width:0;overflow-wrap:anywhere}
.rs-pay-row{display:flex;gap:8px}
.rs-pay-row .button{flex:1;text-decoration:none;display:inline-grid;place-items:center}

.rs-shop-status{margin:0 0 14px;padding:10px 14px;border-radius:14px;background:rgba(26,143,224,.1);font-weight:800}
.rs-pay-link{text-decoration:none;display:inline-grid;place-items:center}

/* Match + rank-up screens, liquid glass. The overlay is the glass; everything on it is content. */
/* Owner's live integration: the running game has no web score layer or floating navigation. */
/* Keep the live distance HUD visible while navigation is hidden. */
body.rs-round-playing .topbar{visibility:hidden;pointer-events:none}
body.rs-round-playing .topbar nav{visibility:hidden;pointer-events:none}
.gx-overlay{--you:#1a8fe0;--opp:#e5484d;--win:#c27c00;--loss:#e5484d;--ink:#0d1d2c;--soft:#4d6578;
  position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:clamp(10px,2.5vh,24px) 16px;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;color:var(--ink);
  background:linear-gradient(180deg,rgba(255,255,255,.34),rgba(214,238,250,.30)),rgba(214,236,248,.20);
  -webkit-backdrop-filter:blur(26px) saturate(165%);backdrop-filter:blur(26px) saturate(165%);animation:gx-fade .3s ease-out}
html[data-theme=dark] .gx-overlay{--you:#5cc1ff;--opp:#ff7b7b;--win:#ffd34b;--loss:#ff7b7b;--ink:#eef5fb;--soft:#9fb4c6;background:linear-gradient(180deg,rgba(10,20,34,.55),rgba(8,16,28,.72))}
.gx-sheet{width:min(960px,100%);display:flex;flex-direction:column;align-items:center;gap:clamp(10px,2vh,20px)}
.gx-head{text-align:center;display:flex;flex-direction:column;gap:6px}
.gx-sub{font-size:13px;font-weight:800;color:var(--soft)}
.gx-title{margin:0;font-size:clamp(36px,6vw,60px);font-weight:900;letter-spacing:-.02em;line-height:1}
.gx-outcome{animation:gx-pop .55s cubic-bezier(.2,1.3,.4,1) both}
.gx-outcome.big{font-size:clamp(48px,8vw,84px)}
.is-win .gx-outcome{color:var(--you)}.is-loss .gx-outcome{color:var(--loss)}
.gx-duel{width:100%;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px}
.gx-player{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;animation:gx-in-l .55s cubic-bezier(.2,.9,.25,1.1) both}
.gx-right{animation-name:gx-in-r}
.gx-stage{height:min(360px,38vh);aspect-ratio:3/4;max-width:100%;position:relative}
.gx-stage::after{content:"";position:absolute;left:14%;right:14%;bottom:5%;height:8%;z-index:-1;border-radius:50%;background:radial-gradient(closest-side,rgba(13,29,44,.22),transparent)}
.gx-char{display:block;width:100%;height:100%;transition:filter .4s}
.gx-rank-fallback{position:absolute;width:30%;height:30%;object-fit:contain;left:35%;top:35%}
.gx-char.dim{filter:grayscale(.85) brightness(.85)}
.gx-name{font-size:22px;font-weight:900;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gx-left .gx-name{color:var(--you)}.gx-right .gx-name{color:var(--opp)}
.gx-player.is-dim .gx-name{opacity:.65}
.gx-rank{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:800;color:var(--soft)}
.gx-rank img{width:22px;height:22px;object-fit:contain}
.gx-ready{margin-top:2px;font-size:12px;font-weight:900;padding:5px 14px;border-radius:999px;background:rgba(13,29,44,.08);color:var(--soft)}
html[data-theme=dark] .gx-ready{background:rgba(255,255,255,.1)}
.gx-ready.on{background:#34c759;color:#fff}
.gx-vs{font-size:clamp(28px,4.5vw,44px);font-weight:900;font-style:italic;opacity:.85;animation:gx-pop .45s .2s cubic-bezier(.2,1.4,.4,1) both}
.gx-score{display:flex;flex-direction:column;align-items:center;gap:8px}
.gx-score b{font-size:clamp(44px,7vw,68px);font-weight:900;line-height:1;display:flex;gap:10px;font-variant-numeric:tabular-nums}
.gx-score i{font-style:normal;color:var(--soft)}
.gx-dots{list-style:none;margin:0;padding:0;display:flex;gap:7px;flex-wrap:wrap;justify-content:center;max-width:160px}
.gx-dots li{width:12px;height:12px;border-radius:50%;box-shadow:inset 0 0 0 2px rgba(13,29,44,.25)}
html[data-theme=dark] .gx-dots li{box-shadow:inset 0 0 0 2px rgba(255,255,255,.3)}
.gx-dots li.w{background:var(--you);box-shadow:none}.gx-dots li.l{background:var(--opp);box-shadow:none}
.gx-dist{font-size:20px;font-weight:900;color:var(--soft);font-variant-numeric:tabular-nums}
.gx-dist.best{color:var(--ink)}
.gx-foot{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;min-height:60px}
.gx-wait{font-size:15px;font-weight:800;color:var(--soft)}
.gx-count{font-size:56px;font-weight:900;line-height:1;color:var(--ink);animation:gx-pop .35s cubic-bezier(.2,1.4,.4,1)}
.gx-count.small{font-size:32px;min-width:28px;text-align:center}
.gx-count.go{color:#34c759}
.gx-accept-time{display:flex;flex-direction:column;gap:6px;min-width:160px;font-size:13px;font-weight:800;color:var(--soft)}
.gx-accept-time i{display:block;height:6px;border-radius:99px;background:rgba(13,29,44,.12);overflow:hidden}
html[data-theme=dark] .gx-accept-time i{background:rgba(255,255,255,.12)}
.gx-accept-time b{display:block;height:100%;border-radius:inherit;background:#34c759;transition:width .1s linear}
/* capsule buttons: glass by default, sun yellow for the main action */
.gx-btn{min-height:46px;min-width:130px;padding:0 22px;border-radius:999px;border:1px solid rgba(255,255,255,.6);font:inherit;font-size:15px;font-weight:900;cursor:pointer;color:var(--ink);
  background:rgba(255,255,255,.5);box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 6px 16px rgba(8,36,64,.14);transition:transform .18s cubic-bezier(.2,.9,.25,1.15)}
html[data-theme=dark] .gx-btn{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 6px 16px rgba(0,0,0,.3)}
.gx-btn:hover{transform:translateY(-1px)}.gx-btn:active{transform:scale(.97)}
.gx-btn:focus-visible{outline:2px solid var(--rs-focus,#1a8fe0);outline-offset:3px}
.gx-btn.gx-primary{background:linear-gradient(180deg,#ffe680,#ffcf33 55%,#ffb800)!important;color:#3b2600!important;border-color:rgba(255,246,200,.9)!important;min-width:180px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),inset 0 -2px 6px rgba(180,110,0,.25),0 10px 24px rgba(255,170,0,.35)!important}
.gx-btn.gx-quiet{background:transparent!important;border-color:transparent!important;box-shadow:none!important;min-width:0;color:var(--soft)}
.gx-elo{width:min(540px,100%);display:flex;align-items:center;gap:14px;padding:14px 18px;border-radius:20px;background:rgba(255,255,255,.55);box-shadow:0 10px 30px rgba(8,36,64,.12)}
html[data-theme=dark] .gx-elo{background:rgba(255,255,255,.07)}
.gx-elo>img{width:48px;height:48px;object-fit:contain}
.gx-elo-main{flex:1;display:flex;flex-direction:column;gap:7px;min-width:0}
.gx-elo-row{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.gx-elo-row strong{font-size:16px;font-weight:900}
.gx-delta{font-size:19px;font-weight:900;font-variant-numeric:tabular-nums}.gx-delta.up{color:#28a745}.gx-delta.down{color:var(--loss)}
html[data-theme=dark] .gx-delta.up{color:#5fd97a}
.gx-bar{height:8px;border-radius:99px;background:rgba(13,29,44,.1);overflow:hidden}
html[data-theme=dark] .gx-bar{background:rgba(255,255,255,.12)}
.gx-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1a8fe0,#5cc1ff);transition:width .3s}
.gx-elo small{font-size:12px;font-weight:800;color:var(--soft)}

/* ---- rank up: one moment per tier, colour taken from the badge ---- */
.gx-rankup{--tier:#5cc1ff;--tier2:#8a5cff;color:#fff;background:radial-gradient(ellipse at 50% 40%,color-mix(in srgb,var(--tier) 38%,transparent),transparent 62%),linear-gradient(180deg,rgba(8,16,28,.70),rgba(6,12,22,.86))!important}
.tier-diamond{--tier:#5ad1ff;--tier2:#8a5cff}.tier-champion{--tier:#ff8a3d;--tier2:#2ec4b6}.tier-gc{--tier:#ff3b5c;--tier2:#b3123a}.tier-gm{--tier:#ffcf33;--tier2:#fff1b8}
.gx-rank-sheet{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.gx-badge-wrap{position:relative;width:min(240px,48vw);aspect-ratio:1;display:grid;place-items:center;margin-bottom:8px}
.gx-badge-wrap::before{content:"";position:absolute;inset:6%;border-radius:50%;background:radial-gradient(closest-side,color-mix(in srgb,var(--tier) 45%,transparent),transparent);animation:gx-fade 1s .3s both}
.gx-badge{position:relative;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 30px rgba(0,0,0,.45));animation:gx-land .9s cubic-bezier(.2,1.25,.35,1) both}
.gx-shine{position:absolute;inset:0;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;
  background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.85) 50%,transparent 65%) 0 0/250% 100% no-repeat;animation:gx-shine 1.1s .95s ease-out both;pointer-events:none}
.gx-rankup .gx-sub{color:rgba(255,255,255,.7);animation:gx-rise .5s .55s both}
.gx-rank-name{margin:0;font-size:clamp(46px,8vw,86px);font-weight:900;letter-spacing:-.02em;line-height:1;color:var(--tier);animation:gx-rise .6s .65s cubic-bezier(.2,1.2,.4,1) both}
.tier-gm .gx-rank-name{background:linear-gradient(180deg,#fff6cf,#ffcf33 60%,#e0a100);-webkit-background-clip:text;background-clip:text;color:transparent}
.gx-rank-line{margin:0;font-size:17px;font-weight:800;color:rgba(255,255,255,.82);animation:gx-rise .5s .8s both}
.gx-climb{display:flex;align-items:center;gap:12px;margin:14px 0 18px;animation:gx-rise .5s .9s both}
.gx-climb img{width:40px;height:40px;object-fit:contain}
.gx-climb img:first-child{opacity:.6;filter:grayscale(.4)}
.gx-climb-line{width:120px;height:4px;border-radius:99px;background:rgba(255,255,255,.18);overflow:hidden}
.gx-climb-line i{display:block;height:100%;background:linear-gradient(90deg,var(--tier2),var(--tier));animation:gx-fill .9s 1.05s cubic-bezier(.3,.8,.3,1) both}
.gx-rankup .gx-btn.gx-primary{animation:gx-rise .5s 1.2s both}
@keyframes gx-fade{from{opacity:0}}
@keyframes gx-pop{from{opacity:0;transform:scale(.6)}}
@keyframes gx-in-l{from{opacity:0;transform:translateX(-50px)}}
@keyframes gx-in-r{from{opacity:0;transform:translateX(50px)}}
@keyframes gx-land{0%{opacity:0;transform:translateY(60px) scale(.35) rotate(-8deg)}60%{opacity:1}100%{transform:none}}
@keyframes gx-shine{from{background-position:120% 0}to{background-position:-60% 0}}
@keyframes gx-rise{from{opacity:0;transform:translateY(14px)}}
@keyframes gx-fill{from{width:0}to{width:100%}}
@media (max-width:640px){.gx-stage{height:min(240px,30vh)}.gx-name{font-size:16px}.gx-rank{font-size:11px}.gx-duel{gap:4px}.gx-foot .gx-btn{flex:1;min-width:0}}
@media (prefers-reduced-motion:reduce){.gx-overlay,.gx-player,.gx-vs,.gx-outcome,.gx-count,.gx-badge,.gx-shine,.gx-rankup *,.gx-badge-wrap::before{animation:none!important}}
/* chat: player-coloured bubbles above the characters (no tail), and one clean capsule to reply */
.gx-bubble{position:absolute;left:50%;top:-6px;transform:translateX(-50%);width:max-content;max-width:min(240px,42vw);padding:9px 15px;font-size:15px;font-weight:800;line-height:1.25;text-align:center;
  border-radius:20px 20px 20px 6px;background:#fff;color:#0d1d2c;box-shadow:0 10px 24px rgba(8,36,64,.18);animation:gx-bubble .35s cubic-bezier(.2,1.3,.4,1) both;overflow-wrap:anywhere}
.gx-left .gx-bubble{background:var(--you);color:#fff;border-radius:20px 20px 6px 20px}
html[data-theme=dark] .gx-right .gx-bubble{background:#2c3b4f;color:#fff}
@keyframes gx-bubble{from{opacity:0;transform:translateX(-50%) translateY(10px) scale(.8)}}
.gx-chatbar{display:flex;align-items:center;gap:4px;width:min(520px,100%);padding:5px;border-radius:999px;background:rgba(255,255,255,.45);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 8px 22px rgba(8,36,64,.12)}
html[data-theme=dark] .gx-chatbar{background:rgba(255,255,255,.07);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 8px 22px rgba(0,0,0,.3)}
.gx-chatbar input,html[data-theme=dark] .gx-chatbar input{flex:1;min-width:0;height:36px;margin:0!important;line-height:36px;align-self:center;border:0!important;outline:0;background:transparent!important;box-shadow:none!important;
  font:inherit;font-size:15px;font-weight:700;color:var(--ink)!important;padding:0 6px!important}
.gx-chatbar input::placeholder{color:var(--soft)}
.gx-mute,.gx-send{flex:none;margin:0;padding:0;width:36px;height:36px;border-radius:50%;border:0;display:grid;place-items:center;cursor:pointer}
.gx-mute{background:transparent;color:var(--soft)}
.gx-mute:hover{background:rgba(13,29,44,.07);color:var(--ink)}
html[data-theme=dark] .gx-mute:hover{background:rgba(255,255,255,.08)}
.gx-chatbar.is-muted .gx-mute{color:var(--loss)}
.gx-send{background:var(--you);color:#fff;animation:gx-pop .2s ease-out}
.gx-quicks{display:flex;gap:2px;padding-right:4px}
.gx-quick{border:0;border-radius:999px;height:32px;padding:0 10px;line-height:32px;margin:0;font:inherit;font-size:13px;font-weight:900;cursor:pointer;color:var(--soft);background:transparent}
.gx-quick:hover{background:rgba(13,29,44,.07);color:var(--ink)}
html[data-theme=dark] .gx-quick:hover{background:rgba(255,255,255,.08)}
.gx-chatbar :focus-visible{outline:2px solid var(--rs-focus,#1a8fe0);outline-offset:2px}
html:has(.gx-overlay),html:has(.gx-overlay) body{overflow:hidden!important}
.gx-overlay::-webkit-scrollbar{display:none}
/* any window size: everything scales with the window, not just full screen */
.gx-stage{height:clamp(150px,min(36vh,28vw),360px)}
.gx-title{font-size:clamp(28px,min(6vw,7vh),60px)}
.gx-outcome.big{font-size:clamp(36px,min(8vw,9vh),84px)}
.gx-score b{font-size:clamp(34px,min(7vw,8vh),68px)}
@media (max-height:720px){.gx-sheet{gap:8px}.gx-head{gap:2px}.gx-foot{min-height:48px}.gx-btn{min-height:40px}.gx-elo{padding:10px 14px}}
@media (max-width:760px){.gx-name{font-size:16px}.gx-rank{font-size:11px}.gx-dist{font-size:16px}.gx-vs{font-size:26px}.gx-duel{gap:4px}.gx-foot .gx-btn{min-width:0;flex:1 1 auto;padding:0 14px}}
@media (max-width:520px){.gx-bubble{font-size:13px;padding:7px 11px}}
/* opponent hidden until you accept */
.gx-char.mystery{filter:brightness(0) opacity(.28)}
html[data-theme=dark] .gx-char.mystery{filter:brightness(0) invert(1) opacity(.14)}
.gx-mystery{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);font-size:clamp(48px,7vw,84px);font-weight:900;line-height:1;color:var(--soft);pointer-events:none}
.is-hidden .gx-name{color:var(--soft)!important;letter-spacing:.1em}
.is-hidden .gx-rank img{opacity:.6}
@media (max-width:520px){.gx-quick:nth-child(n+3){display:none}}
/* preview-only switcher */
@media (max-width:900px){}
html:has(.gx-overlay) /* the site's match container ignores clicks except on its old panel; the new screens must take clicks */
.game-match-overlay .gx-overlay,.game-match-overlay .gx-overlay *{pointer-events:auto}
