/* Home and picker share the same 2D artwork and live 3D carousel. */
#start-panel,#character-panel{background:linear-gradient(#e7f9ff60,#ecfaff08 25%,#eaf6ff55),url('https://worldruncdn.ttok.im/assets/v1/24a1af1643f3aa996b15ee81fdfc504a5f227d897381ed824f9f16e772fe9355/tokyo-avenue.webp') center 48%/cover no-repeat}
#start-panel:before{display:none}
#start-panel .lobby-caption,#runner-strip-lobby{display:none!important}
.lobby-stage{position:absolute;inset:130px 0 340px;pointer-events:auto}
.runner-showcase{width:100%;height:100%;position:relative;overflow:hidden;pointer-events:auto;isolation:isolate}
.runner-showcase canvas{display:block;width:100%;height:100%;touch-action:pan-y}
.showcase-labels{z-index:2;position:absolute;inset:0;pointer-events:none}
.showcase-name{position:absolute;transform:translate(-50%,-15%);border-radius:24px;min-width:95px;min-height:44px;padding:7px 19px;color:white;background:#193751a6;border:1px solid #fff6;box-shadow:0 2px 8px #193a5022;font-size:17px;font-weight:850;white-space:nowrap;pointer-events:auto}
.showcase-name.is-focused{background:#164769;border:2px solid #53ffe0;box-shadow:0 0 20px #38efd080}
.showcase-name[data-loading=true]{opacity:.55}
.showcase-arrow{position:absolute;top:53%;width:54px;height:54px;border-radius:50%;background:#fffffff2;box-shadow:0 3px 12px #164e6630;display:grid;place-items:center;pointer-events:auto;z-index:3}
.showcase-arrow.previous{left:18px}.showcase-arrow.next{right:18px}.showcase-arrow:disabled{opacity:.3}.showcase-arrow .game-icon{width:30px;height:30px}
.showcase-name:focus-visible,.showcase-arrow:focus-visible{outline:3px solid #009986;outline-offset:3px}
#character-panel{position:fixed;inset:0;margin:0;padding:0;width:100vw;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;overflow:hidden;box-shadow:none;backdrop-filter:none}
.showcase-heading{position:absolute;inset:max(24px,env(safe-area-inset-top)) 4vw auto;display:flex;align-items:flex-start;gap:20px;z-index:3}
.showcase-back{display:grid;place-items:center;width:65px;height:60px;border-radius:21px;background:#fff;box-shadow:0 4px 12px #34677e20}
.showcase-back .game-icon{width:33px;height:33px}
#character-panel .showcase-heading h2{font-size:clamp(26px,3.8vw,48px);margin:0;color:#102d4f;letter-spacing:-1.5px;text-shadow:0 2px 0 white}
#character-panel .showcase-heading p{margin:8px 0 0;color:#23445e;text-shadow:0 1px 3px white,0 0 14px white;font-size:clamp(13px,1.6vw,22px);font-weight:750}
.showcase-wallet{margin-left:auto;display:flex;gap:17px;align-items:center}
.showcase-wallet>span{display:flex;align-items:center;gap:10px;border-radius:28px;background:linear-gradient(#174671,#0b2449);color:white;padding:7px 20px 7px 9px;border:2px solid #90d9ef;min-height:48px;font-size:21px;font-weight:900;white-space:nowrap}
.showcase-wallet .item-icon{width:33px;height:34px}
.character-stage{position:absolute;inset:125px 0 145px}
.showcase-footer{position:absolute;bottom:max(24px,env(safe-area-inset-bottom));left:8%;right:8%;min-height:100px;background:#fffffff2;border:2px solid white;border-radius:34px;box-shadow:0 8px 30px #264b752a;display:flex;align-items:center;gap:22px;padding:12px 16px 12px 34px;color:#112e50}
.showcase-identity{display:flex;align-items:center;gap:13px;white-space:nowrap}.showcase-identity strong{font-size:clamp(22px,2.8vw,36px)}.showcase-identity>b{padding:6px 18px;border-radius:25px;background:#e7f2ff;font-size:21px}
.showcase-outfit{display:flex;gap:10px;align-items:center;justify-content:center;border-left:2px solid #d9e5f0;background:transparent;padding:10px 20px;min-height:48px;font-size:17px;font-weight:800;color:#14324f}.showcase-outfit .game-icon{width:30px;height:30px}
.showcase-footer .primary-button{margin:0 0 0 auto;width:32%;min-height:76px;font-size:32px;border-radius:42px}
#showcase-notice{position:absolute;bottom:100%;left:0;right:0;text-align:center;font-size:13px;background:#ffffffd9;border-radius:15px;width:max-content;max-width:90%;margin:0 auto 8px;padding:4px 12px}#showcase-notice:empty{display:none}
#start-panel .lobby-bottom{max-width:580px;bottom:calc(var(--safe-bottom) + 82px)}
#start-panel .skill-bar{min-height:36px;margin-block:5px}#start-panel .lobby-record{color:#143a58;text-shadow:0 1px white}
@media(max-width:700px){
 .lobby-stage{inset:115px 0 330px}.showcase-name{font-size:13px;min-width:70px;padding:6px 10px}.showcase-arrow{width:44px;height:44px}.showcase-arrow.previous{left:6px}.showcase-arrow.next{right:6px}
 .showcase-heading{top:max(14px,env(safe-area-inset-top));left:16px;right:16px;gap:12px}.showcase-back{width:44px;height:44px;border-radius:15px}.showcase-heading>div:nth-child(2){position:absolute;top:64px;left:0;right:0;padding:0;margin:0}.showcase-wallet{gap:8px}.showcase-wallet>span{padding:5px 12px 5px 6px;font-size:15px;gap:5px;min-height:39px}.showcase-wallet .item-icon{width:26px;height:27px}
 .character-stage{inset:160px 0 200px}
 .showcase-footer{bottom:max(16px,env(safe-area-inset-bottom));left:14px;right:14px;min-height:156px;padding:15px;gap:9px;border-radius:25px;flex-wrap:wrap}.showcase-identity{gap:8px;flex:1}.showcase-identity>b{font-size:15px;padding:5px 11px}.showcase-outfit{font-size:12px;padding:5px 8px;gap:4px}.showcase-outfit .game-icon{width:24px;height:24px}.showcase-outfit .icon-right{display:none}.showcase-footer .primary-button{width:100%;font-size:25px;min-height:59px}
}
@media(max-height:650px){.lobby-stage{top:104px;bottom:258px}#start-panel .skill-bar{display:none}#start-panel .lobby-bottom{bottom:80px}.character-stage{top:135px;bottom:168px}.showcase-footer{min-height:133px}.showcase-footer .primary-button{min-height:48px}}
@media(orientation:landscape) and (max-height:550px){.character-stage{top:80px;bottom:105px}.showcase-heading>div:nth-child(2){position:static;padding:0;margin:0}.showcase-heading p{display:none}.showcase-heading h2{font-size:24px!important}.showcase-footer{min-height:75px;bottom:10px;flex-wrap:nowrap;padding:10px 18px}.showcase-footer .primary-button{width:30%;font-size:22px}.showcase-heading{top:10px}.showcase-name{min-height:34px;font-size:12px}.lobby-stage{inset:110px 43% 40px 0}#start-panel .lobby-bottom{left:76%;width:42%;bottom:70px}#start-panel .bottom-nav{left:76%;width:44%}}

.showcase-name:active:not(:disabled){transform:translate(-50%,-15%) translateY(2px)}

#start-panel #wardrobe-worn{display:none}#start-panel .wardrobe-label{flex:1;text-align:left;font-size:14px;font-weight:850}

/* Lobby action deck: the runner is chosen in the live lineup and the current
   destination pill starts the run, so the old Run/Character pair is omitted. */
body[data-phase=ready] .hud{max-width:680px}
body[data-phase=ready] .lobby-wallet{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;flex:0 1 calc(100% - 52px);width:calc(100% - 52px)}
body[data-phase=ready] .lobby-wallet>.wallet-pill,
body[data-phase=ready] .lobby-wallet>.avatar-chip{width:100%;min-width:0;max-width:none;min-height:44px;padding:3px 7px;overflow:hidden}
body[data-phase=ready] .lobby-wallet>.wallet-pill b,
body[data-phase=ready] .lobby-wallet>.avatar-chip b{min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:center}
body[data-phase=ready] .avatar-chip{justify-content:flex-start;padding-left:3px}
body[data-phase=ready] .avatar-face{width:38px;height:38px;margin:0;flex:0 0 38px;border-width:2px}

#start-panel .city-selector#start{min-width:220px;min-height:52px;padding:8px 18px;border-radius:28px;box-shadow:inset 0 2px 0 #fff,0 4px 0 #15789f55,0 8px 20px #123d5940}
#start-panel .city-selector#start .icon-play{width:25px;height:25px;margin-left:4px}
#start-panel .city-selector#start:disabled{opacity:.72;filter:saturate(.55)}
#start-panel .lobby-bottom{max-width:580px}
.lobby-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.lobby-tool-card{position:relative;display:flex;min-width:0;min-height:132px;padding:10px 9px 12px;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;border:2px solid #fff;border-radius:21px;background:linear-gradient(155deg,#f8fffff5,#e3fbf4f2);box-shadow:inset 0 2px 0 #ffffff,0 4px 0 #4c829659,0 8px 18px #123d5930;color:#14365a;text-align:center;overflow:hidden}
.lobby-tool-card:before{content:'';position:absolute;inset:0 0 auto;height:46%;background:linear-gradient(120deg,#c6fff07d,#ffffff00);pointer-events:none}
.lobby-tool-card:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 2px 0 #ffffff,0 2px 0 #4c829659,0 5px 12px #123d5926}
.lobby-tool-card:focus-visible{outline:3px solid #0a9d87;outline-offset:3px}
.lobby-tool-skill{background:linear-gradient(155deg,#fffdf4f6,#fff1bff2)}
.lobby-tool-gear{background:linear-gradient(155deg,#f5fbfff6,#dff3fff2)}
.lobby-tool-mission{background:linear-gradient(155deg,#fff9fcf6,#ffe5f1f2)}
.lobby-tool-visual{position:relative;display:grid;place-items:center;width:58px;height:49px;border-radius:18px;background:#bff7eb9c;box-shadow:inset 0 1px 0 #fff}
.lobby-tool-skill .lobby-tool-visual{background:#ffe8a5a6}.lobby-tool-gear .lobby-tool-visual{background:#ccecffb8}.lobby-tool-mission .lobby-tool-visual{background:#ffd8e9b8}
.lobby-tool-visual>.game-icon{width:44px;height:44px;filter:drop-shadow(0 3px 2px #17466035)}
.lobby-tool-card>strong{position:relative;z-index:1;display:block;max-width:100%;font-size:14px;line-height:1.15;letter-spacing:-.35px}
.lobby-tool-summary{display:-webkit-box!important;min-height:25px;max-width:100%;margin:0!important;padding:0 8px 0 0!important;overflow:hidden;color:#557187;font-size:10px;line-height:1.25;font-weight:750;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.lobby-tool-card .skill-slots>b{display:none}
.lobby-tool-card .skill-slots>b:first-child{display:block;max-width:100%;padding:0;background:transparent;border:0;color:inherit;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lobby-tool-card .skill-slots>b img{display:none}
#start-panel #wardrobe-worn{display:-webkit-box!important}
.lobby-tool-arrow{position:absolute;right:5px;bottom:7px;width:18px;height:18px;opacity:.85}
.lobby-mission-summary{font-size:17px;color:#254d75;font-variant-numeric:tabular-nums}
#start-panel .lobby-record{align-items:center;margin-top:9px;padding:7px 10px;border:1px solid #ffffffc7;border-radius:13px;background:#123b59b8;color:#fff;text-shadow:none;box-shadow:0 3px 12px #123d5925}
#start-panel .lobby-record button{min-height:28px;padding:3px 7px;border-radius:9px;background:#ffffff18}

.bottom-nav{min-height:76px;padding:6px 7px;border-radius:25px;background:linear-gradient(145deg,#fffffff7,#f3fbfff2);border:2px solid #ffffff;box-shadow:0 8px 28px #0b31534a,inset 0 1px 0 #fff;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.bottom-nav button{min-height:62px;gap:3px;border-radius:18px;color:#4d6f89;transition:transform .14s,background .14s,color .14s}
.bottom-nav button+button:before{content:'';position:absolute;left:-2px;top:15%;bottom:15%;width:1px;background:#bad0df66}
.bottom-nav button:active{transform:translateY(2px)}
.bottom-nav .selected{color:#087d74;background:linear-gradient(155deg,#d9fff4,#baf5e8);box-shadow:inset 0 1px 0 #fff,0 3px 8px #108b7525}
.bottom-nav .selected:after{content:'';position:absolute;left:25%;right:25%;bottom:3px;height:4px;border-radius:4px;background:#1ed4b4;box-shadow:0 1px 3px #0d8d78}
.bottom-nav .selected+button:before{display:none}

@media(max-width:700px){
 body[data-phase=ready] .hud{width:calc(100% - 20px);gap:6px}
 body[data-phase=ready] .lobby-wallet{gap:4px}
 body[data-phase=ready] .lobby-wallet>.wallet-pill,body[data-phase=ready] .lobby-wallet>.avatar-chip{min-height:40px;padding:2px;font-size:10px;gap:2px}
 body[data-phase=ready] .lobby-wallet>.wallet-pill b,body[data-phase=ready] .lobby-wallet>.avatar-chip b{font-size:10px}
 body[data-phase=ready] .avatar-face{width:29px;height:29px;flex-basis:29px}
 body[data-phase=ready] .wallet-pill .item-icon{width:19px;height:19px;margin:0}
 body[data-phase=ready] .wallet-pill .data-icon{width:18px;height:21px;margin:0 1px}
 body[data-phase=ready] .hearts-pill small{display:none}
 #start-panel .lobby-bottom{width:calc(100% - 24px)}
 .lobby-tools{gap:6px}
 .lobby-tool-card{min-height:118px;padding:8px 5px 10px;border-radius:17px}
 .lobby-tool-visual{width:49px;height:43px;border-radius:15px}.lobby-tool-visual>.game-icon{width:38px;height:38px}
 .lobby-tool-card>strong{font-size:11px}.lobby-tool-summary,.lobby-tool-card .skill-slots>b:first-child{font-size:8px}
 .lobby-mission-summary{font-size:14px}.lobby-tool-arrow{right:3px;bottom:5px;width:15px;height:15px}
 .bottom-nav{width:calc(100% - 18px);min-height:70px;padding:5px;border-radius:23px}
 .bottom-nav button{min-height:58px;font-size:10px}
}
@media(max-width:370px){
 body[data-phase=ready] .avatar-face{width:25px;height:25px;flex-basis:25px}
 body[data-phase=ready] .lobby-wallet>.wallet-pill,body[data-phase=ready] .lobby-wallet>.avatar-chip{font-size:9px;padding-inline:2px}
 body[data-phase=ready] .lobby-wallet>.wallet-pill b,body[data-phase=ready] .lobby-wallet>.avatar-chip b{font-size:9px}
 body[data-phase=ready] .wallet-pill .item-icon{width:20px;height:20px}
 body[data-phase=ready] .wallet-pill .data-icon{width:18px;height:21px}
 .lobby-tool-card{min-height:108px}.lobby-tool-visual{width:43px;height:38px}.lobby-tool-visual>.game-icon{width:34px;height:34px}
 .lobby-tool-summary{display:none!important}.lobby-mission-summary{display:block!important}
}
@media(max-height:650px){
 #start-panel .lobby-bottom{bottom:76px}.lobby-tool-card{min-height:92px;padding-block:6px}.lobby-tool-visual{width:40px;height:35px}.lobby-tool-visual>.game-icon{width:32px;height:32px}
 .lobby-tool-summary{display:none!important}.lobby-mission-summary{display:block!important}.bottom-nav{min-height:62px}.bottom-nav button{min-height:50px}
}

.wallet-plus{display:grid;place-items:center;width:20px;height:20px;border-radius:7px;background:#21a8ed;color:#fff;font-size:14px;font-style:normal;line-height:1;box-shadow:inset 0 1px 0 #fff8}.showcase-profile-card{position:absolute;z-index:4;top:23%;right:5%;width:min(390px,38%);padding:20px;border:2px solid #fff;border-radius:30px;background:#fffffff0;box-shadow:0 10px 32px #163f6540;color:#102f57;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.showcase-profile-title{display:flex;align-items:center;gap:12px}.showcase-profile-title>div{display:grid;gap:3px;min-width:0;flex:1}.showcase-profile-title strong{font-size:clamp(26px,3.7vw,46px);line-height:1}.showcase-profile-title span{font-size:12px;font-weight:900;color:#1aa69f;letter-spacing:.5px}.showcase-profile-title>b{padding:7px 13px;border-radius:20px;background:#1c4d80;color:#fff;font-size:16px}.showcase-profile-card>p{margin:10px 0 14px;color:#52718c;font-size:11px;font-weight:700}.showcase-stats{display:grid;gap:11px}.showcase-stats>div{display:grid;grid-template-columns:64px minmax(70px,1fr) 50px;align-items:center;gap:8px}.showcase-stats span{font-size:12px;font-weight:900}.showcase-stats i{height:10px;overflow:hidden;border-radius:10px;background:#ccdef0}.showcase-stats i>b{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#24dfca,#168cf4);transition:width .3s ease}.showcase-stats>div:nth-child(2) i>b{background:linear-gradient(90deg,#64dd69,#21bfa7)}.showcase-stats>div:nth-child(3) i>b{background:linear-gradient(90deg,#ffca3b,#ff9f1f)}.showcase-stats>div:nth-child(4) i>b{background:linear-gradient(90deg,#aa64ff,#5e62ec)}.showcase-stats strong{text-align:right;font-size:12px}.showcase-footer{left:auto;right:5%;width:min(390px,38%);min-height:88px;padding:12px 14px;gap:10px;border-radius:28px}.showcase-outfit{flex:1;border-left:0;border-right:1px solid #d9e5f0;padding:8px 10px}.showcase-footer .primary-button{width:48%;min-height:62px;font-size:23px}
@media(max-width:700px){.wallet-plus{width:16px;height:16px;border-radius:5px;font-size:11px}.showcase-profile-card{top:auto;left:12px;right:12px;bottom:111px;width:auto;padding:11px 13px;border-radius:21px}.showcase-profile-title strong{font-size:23px}.showcase-profile-title>b{padding:5px 10px;font-size:13px}.showcase-profile-card>p{display:none}.showcase-stats{grid-template-columns:1fr 1fr;gap:7px 13px;margin-top:9px}.showcase-stats>div{grid-template-columns:42px minmax(44px,1fr) 34px;gap:5px}.showcase-stats span,.showcase-stats strong{font-size:9px}.character-stage{inset:145px 0 250px}.showcase-footer{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));width:auto;min-height:87px;padding:9px 11px;flex-wrap:nowrap}.showcase-outfit{font-size:11px}.showcase-footer .primary-button{width:52%;min-height:54px;font-size:21px}}
@media(max-height:650px){.showcase-profile-card{left:auto;right:10px;top:92px;bottom:auto;width:42%;padding:9px}.showcase-profile-title strong{font-size:19px}.showcase-stats{grid-template-columns:1fr;gap:4px}.showcase-stats>div{grid-template-columns:36px 1fr 30px}.showcase-footer{left:auto;right:10px;width:42%;min-height:58px;padding:7px}.showcase-footer .primary-button{min-height:44px;font-size:17px}.character-stage{top:95px;bottom:70px;right:39%}}
