*{box-sizing:border-box} [hidden]{display:none!important} :root{font-family:ui-rounded,"Avenir Next",system-ui,sans-serif;color:#33314d;background:#f7f5ef}body{margin:0;height:100dvh;overflow:hidden}button,input{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.6;cursor:wait}button:focus-visible,input:focus-visible{outline:3px solid #9b81e6;outline-offset:3px}.shell{width:min(1440px,100%);height:100%;margin:auto;padding:22px 30px;display:flex;flex-direction:column;gap:20px}.header{display:flex;align-items:center;gap:18px;flex-shrink:0}.brand{display:flex;align-items:center;gap:12px;margin-right:auto}.brand-cube{display:grid;place-items:center;width:44px;height:44px;background:#8666d8;color:white;box-shadow:0 4px 0 #6045af;border-radius:12px;font-size:32px;font-weight:900}h1{font-size:24px;margin:0;letter-spacing:-.8px}h1 span{color:#9170db}.brand p{font-size:12px;color:#898596;margin:3px 0 0}.live{display:flex;align-items:center;gap:7px;background:white;padding:11px 15px;border:1px solid #eeebe5;border-radius:30px;font-size:13px;white-space:nowrap}.live i{width:7px;height:7px;border-radius:50%;background:#40b291;box-shadow:0 0 0 4px #eef9f4}.quiet{border:1px solid #e4e0d7;background:transparent;border-radius:10px;padding:10px 13px;color:#777387}.stage{display:grid;grid-template-columns:minmax(0,1fr) 264px;gap:20px;min-height:0;flex:1}.play-area{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0}.world{flex:1;position:relative;overflow:hidden;border-radius:24px;background:#e4f1f4;border:1px solid #d4e5e8;box-shadow:0 7px 30px #354b6810;min-height:0}canvas{width:100%;height:100%;display:block;touch-action:none}.score-bar{display:grid;grid-template-columns:minmax(90px,1.3fr) repeat(3,minmax(65px,1fr));gap:20px;width:min(100%,460px);margin-left:auto;flex-shrink:0;background:#fffdf9;padding:8px 14px;border:1px solid #eeebe5;border-radius:14px;pointer-events:none;min-width:0}.score-bar small{display:block;font-size:9px;font-weight:750;letter-spacing:1px;color:#8a879c}.score-bar strong{display:block;font-size:22px;font-variant-numeric:tabular-nums;line-height:1.2;margin-top:3px}.score-bar div:nth-child(2) strong{color:#8867cd}.sidebar{display:flex;flex-direction:column;gap:20px;min-height:0;overflow:auto;scrollbar-width:thin}.leaderboard,.guide{background:#fff;border:1px solid #eeebe6;border-radius:20px;padding:20px}.section-head{display:flex;align-items:center;justify-content:space-between}.section-head h2,.guide h2{font-size:17px;margin:0;letter-spacing:-.3px}.section-head>span{font-size:9px;letter-spacing:1px;font-weight:800;color:#ad894c;background:#fcf5e6;padding:6px 9px;border-radius:7px}.subtitle{font-size:11px;color:#9290a1;margin:7px 0 19px}ol{padding:0;margin:0;list-style:none}ol li{display:flex;align-items:center;gap:10px;padding:13px 0;border-top:1px solid #f1eff4}.rank{font-size:12px;color:#ada9b6;min-width:12px}.avatar{width:28px;height:28px;flex-shrink:0;border-radius:7px;box-shadow:inset 0 -4px 0 #0002;display:grid;place-items:center;font-size:16px;color:white}.leader-name{font-size:12px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:110px}.leader-floor{font-size:10px;color:#9690a5;margin-top:2px}.leader-points{margin-left:auto;font-size:13px;font-weight:800;color:#706087}.empty{font-size:12px;line-height:1.5;color:#9793a5}.guide p{font-size:12px;line-height:1.65;color:#8b869b}.keys-guide{display:grid;grid-template-columns:25px 25px 1fr;gap:8px;align-items:center;font-size:11px;color:#7e788d}kbd{display:grid;place-items:center;background:#f7f5fb;border:1px solid #e7e3ef;border-bottom-width:3px;border-radius:6px;height:27px;font:16px system-ui}.wide{grid-column:span 2}.danger{display:flex;align-items:center;gap:10px;border-top:1px solid #f0edf5;margin-top:16px;padding-top:7px}.danger>span{color:#e1787e;font-size:23px}.danger p{font-size:11px}.version{font-size:10px;color:#a9a4b4;text-align:center;margin-top:auto}.version span{margin-left:5px}.welcome{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#e9f5f180;backdrop-filter:blur(5px);padding:20px}.welcome-card{width:350px;max-width:100%;text-align:center;background:#fffdf9;padding:28px 32px;border-radius:24px;box-shadow:0 18px 50px #40595e24;border:1px solid #ffffff}.mascot{position:relative;width:62px;height:62px;background:#8b6bdb;border-radius:14px;margin:0 auto 24px;box-shadow:inset 0 4px 0 #b39bed,inset 0 -8px 0 #6547b3,0 9px 0 #dfd8eb;transform:rotate(-8deg)}.mascot i{position:absolute;top:23px;left:17px;width:6px;height:8px;background:white;border-radius:50%}.mascot i+i{left:39px}.mascot b{position:absolute;width:14px;height:7px;left:24px;top:35px;border-bottom:3px solid white;border-radius:50%}.eyebrow{font-size:8px;color:#b09b74;font-weight:800;letter-spacing:1.4px}.welcome h2{font-size:28px;letter-spacing:-.8px;margin:10px 0}.welcome p{font-size:13px;line-height:1.65;color:#8a8598;margin:0 0 23px}.welcome label{display:block;text-align:left;font-size:11px;font-weight:700;margin-bottom:8px}.welcome input{width:100%;padding:13px 14px;background:#f6f3ee;border:1px solid #e9e3d8;border-radius:11px;font-size:14px;color:#39334f;user-select:text}.primary{width:100%;display:flex;justify-content:space-between;align-items:center;background:#8665d5;color:white;padding:13px 18px;border-radius:11px;box-shadow:0 4px 0 #684aae;margin-top:13px;font-weight:800;transition:transform .15s}.primary:hover{transform:translateY(-2px)}.primary span{font-size:20px}.welcome-foot{font-size:10px;color:#aba4b1;margin-top:22px;line-height:1.4}.error{font-size:11px;color:#c65b65;line-height:1.5;margin-top:10px}.notice{position:absolute;top:100px;left:50%;transform:translateX(-50%);background:#fffef5f0;border-radius:30px;padding:9px 18px;font-size:13px;font-weight:750;box-shadow:0 3px 10px #3331;pointer-events:none;opacity:0;transition:opacity .15s;white-space:nowrap}.notice.show{opacity:1}.connection{position:absolute;inset:0;background:#eff4f1c9;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;padding:25px;text-align:center;font-size:14px}.connection button{background:#8665d5;color:white;padding:12px 24px;border-radius:10px}.touch-controls{display:flex;gap:10px;justify-content:center;flex-shrink:0}.touch-controls button{width:60px;height:46px;border-radius:12px;border:1px solid #e5dfed;background:white;box-shadow:0 3px 0 #e0d8ea;color:#776296;font-size:25px;touch-action:none;user-select:none}.touch-controls button:last-child{width:105px;background:#8665d5;color:white;border-color:#8665d5;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 3px 0 #684aae}.touch-controls small{font-size:8px;font-weight:800;letter-spacing:1px}.touch-controls button.pressed{transform:translateY(2px);box-shadow:none}.touch-controls button:nth-child(3){margin-left:15px}@media(min-width:1000px) and (min-height:720px){.shell{padding:28px 40px}.header{margin-bottom:4px}}@media(max-width:760px){.shell{padding:12px;gap:12px}.brand-cube{width:35px;height:35px;font-size:25px;border-radius:10px}h1{font-size:19px}.brand p{font-size:10px}.header{gap:8px}.live{padding:8px 10px;font-size:11px}.quiet{font-size:10px;padding:8px}.stage{grid-template-columns:minmax(0,1fr) 190px;gap:10px}.leaderboard,.guide{padding:14px}.guide{display:none}.section-head h2{font-size:14px}.section-head>span{font-size:8px;padding:4px}.leader-name{max-width:80px;font-size:11px}.leader-points{font-size:11px}.sidebar{gap:10px}.score-bar{padding:7px 10px;gap:10px;grid-template-columns:minmax(60px,1.3fr) repeat(3,minmax(44px,1fr))}.score-bar strong{font-size:21px}.score-bar small{font-size:7px}.world{border-radius:18px}.welcome-card{padding:22px}.notice{top:82px;font-size:11px}.welcome h2{font-size:23px}}@media(max-width:540px){.stage{display:flex;flex-direction:column;gap:8px}.play-area{flex:1;gap:7px}.score-bar{width:100%;text-align:right}.sidebar{flex-shrink:0;overflow:visible}.leaderboard{padding:9px 12px;border-radius:13px}.section-head{display:inline-flex;gap:10px;float:left;margin-right:12px;height:48px;align-items:center;flex-direction:column;justify-content:center;gap:4px}.section-head h2{font-size:12px}.subtitle,.version{display:none}ol{display:flex;gap:8px;overflow-x:auto;min-height:48px}ol li{padding:4px 6px;gap:5px;border:0;flex-shrink:0}.avatar{height:21px;width:21px;font-size:12px;border-radius:5px}.leader-points{align-self:start;font-size:10px;margin-top:4px}.leader-name{max-width:66px;font-size:10px}.leader-floor{font-size:9px}.rank{font-size:9px;min-width:5px}.welcome{padding:12px}.welcome-card{width:290px;padding:18px 22px}.mascot{width:48px;height:48px;margin-bottom:15px}.mascot i{top:17px;left:12px}.mascot i+i{left:30px}.mascot b{left:18px;top:27px}.welcome p{font-size:11px;margin-bottom:14px}.welcome h2{font-size:23px}.welcome-foot{margin-top:14px;font-size:9px}.welcome input{padding:11px}.online-label{font-size:10px}.live{gap:5px}.header .quiet{padding:7px}.touch-controls{gap:8px}.touch-controls button{height:42px;width:53px}.empty{font-size:10px;align-self:center}}@media(max-height:520px) and (min-width:541px){.shell{padding:8px 14px;gap:8px}.brand p{display:none}.header{height:38px}.brand-cube{height:30px;width:30px}.touch-controls button{height:35px}.welcome-card{padding:12px 24px;width:340px}.mascot,.welcome-foot,.eyebrow{display:none}.welcome h2{font-size:22px;margin:0 0 6px}.welcome p{font-size:11px;margin:0 0 10px}.welcome input{padding:8px}.primary{padding:8px 14px;margin-top:8px}.sidebar .guide{display:none}}
/* Two thumbs: directions on the left, jump and drop on the right. */
.shell{padding-bottom:max(18px,env(safe-area-inset-bottom))}
.checkpoint-stat strong{color:#459777}
.touch-controls{justify-content:space-between;align-items:center;gap:16px;padding:0 12px;user-select:none;touch-action:none}
.direction-controls,.action-controls{display:flex;gap:10px;flex-shrink:0}
.touch-controls button{height:56px;min-width:56px;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none}
.touch-controls button:last-child{width:60px;background:white;color:#776296;border-color:#e5dfed;display:block;box-shadow:0 3px 0 #e0d8ea}
.touch-controls button[data-control="up"]{width:115px;background:#8665d5;color:white;border-color:#8665d5;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 3px 0 #684aae}
.touch-controls button[data-control="down"]{font-size:24px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.touch-controls small{display:block;font-size:8px;font-weight:800;letter-spacing:.5px}
.touch-controls button.pressed{transform:translateY(2px);box-shadow:none}
.touch-hint{font-size:11px;color:#92869d;text-align:center;line-height:1.4}
@media(max-width:760px){.score-bar{gap:12px}.touch-controls{padding:0;gap:8px}.touch-hint{font-size:9px}}
@media(max-width:540px){.shell{padding-bottom:max(12px,env(safe-area-inset-bottom))}.touch-controls{position:relative;padding-top:16px}.direction-controls,.action-controls{gap:8px}.touch-hint{position:absolute;left:0;right:0;top:0;font-size:9px;pointer-events:none}.touch-controls button,.touch-controls button:last-child{width:56px;min-width:56px;height:56px}.touch-controls button[data-control="up"]{width:86px;gap:5px}.touch-controls button[data-control="up"] small{font-size:7px}.score-bar small{font-size:6px;letter-spacing:.5px}.score-bar strong{font-size:19px}.notice{font-size:10px;max-width:95%;white-space:normal;text-align:center}}
@media(max-height:520px) and (min-width:541px){.touch-controls button,.touch-controls button:last-child{height:48px}.touch-controls button[data-control="up"]{width:105px}.touch-hint{font-size:9px}.shell{padding-bottom:max(8px,env(safe-area-inset-bottom))}}
/* Persistent records, distinct from the live room leaderboard. */
.hall-open{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;padding:10px 12px;margin-top:12px;background:#fbf4e5;color:#99743d;border:1px solid #efdfbd;border-radius:10px;font-size:12px;font-weight:750;clear:both}
.hall-open span:first-child{font-size:15px}.hall-open span:last-child{margin-left:auto;color:#baa073}.hall-open:hover{background:#f6ebd4}
#hall{width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;border:1px solid #f0e7d5;border-radius:24px;padding:26px;color:#3c3450;background:#fffdf8;box-shadow:0 20px 80px #2b24414a;overflow:auto;overscroll-behavior:contain}
#hall::backdrop{background:#30283e70;backdrop-filter:blur(5px)}.hall-heading{display:flex;align-items:center;gap:15px}.hall-trophy{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#faecd0;color:#bd9547;font-size:29px;box-shadow:inset 0 -4px 0 #e9d9b4}.hall-eyebrow{font-size:8px;letter-spacing:1.4px;font-weight:800;color:#b49a68}#hall-title{margin:4px 0 0;font-size:27px;letter-spacing:-.7px}#hall-close{margin-left:auto;align-self:flex-start;width:36px;height:36px;border-radius:50%;color:#a095aa;background:#f1edf5;font-size:25px;flex-shrink:0}#hall-description{font-size:12px;line-height:1.65;color:#9a8d9d;margin:18px 0 20px}.hall-columns,.hall-row{display:grid;grid-template-columns:25px minmax(0,1fr) 65px 95px;gap:12px;align-items:center}.hall-columns{font-size:9px;font-weight:800;color:#aea2b3;text-transform:uppercase;letter-spacing:.8px;padding:0 12px 10px}.hall-columns span:nth-last-child(-n+2){text-align:right}#hall-list{max-height:min(360px,45dvh);overflow:auto;scrollbar-width:thin;padding:0 3px;overscroll-behavior:contain}.hall-row{padding:13px 9px;border:0;border-radius:12px;margin-bottom:5px}.hall-rank{color:#b4a8ba;text-align:center;font-size:13px;font-weight:800}.hall-player{display:flex;gap:10px;min-width:0}.hall-player .avatar{width:32px;height:32px;flex-shrink:0}.hall-name{min-width:0}.hall-name strong{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hall-name small{display:block;font-size:9px;color:#a392a9;margin-top:4px}.hall-floor,.hall-score{text-align:right;font-size:16px;white-space:nowrap;font-variant-numeric:tabular-nums}.hall-floor{color:#8e6bca}.hall-score{color:#a48a5b;font-size:14px}.podium-1{background:#faf1db}.podium-2{background:#f0eff7}.podium-3{background:#f8ece5}.podium-1 .hall-rank{color:#bb913f}.podium-2 .hall-rank{color:#9a91ad}.podium-3 .hall-rank{color:#c09171}.hall-row.is-self{box-shadow:inset 0 0 0 1px #af97dc}#hall-status{font-size:12px;color:#9b8da3;line-height:1.65;text-align:center;margin:16px 6px}#hall-status:empty{display:none}.hall-footer{border-top:1px solid #efe7f0;display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:15px;margin-top:16px;font-size:10px;color:#b3a5ba}#hall-refresh{background:#f0eaf7;color:#8c72a6;border-radius:9px;padding:9px 13px;font-size:11px;font-weight:750}
@media(max-width:540px){.hall-open{margin-top:6px;padding:7px 10px;font-size:10px}.hall-open span:first-child{font-size:12px}#hall{padding:18px;border-radius:20px}.hall-trophy{width:39px;height:39px;font-size:24px}.hall-heading{gap:11px}#hall-title{font-size:23px}.hall-eyebrow{font-size:7px;letter-spacing:1px}#hall-close{width:32px;height:32px}#hall-description{font-size:11px;margin:14px 0}.hall-columns,.hall-row{grid-template-columns:18px minmax(0,1fr) 38px 65px;gap:7px}.hall-columns{padding-left:5px;padding-right:5px;font-size:8px}.hall-row{padding:11px 3px}.hall-player{gap:6px}.hall-player .avatar{width:24px;height:24px;font-size:12px}.hall-name strong{font-size:11px}.hall-name small{font-size:8px}.hall-floor{font-size:14px}.hall-score{font-size:11px}.hall-rank{font-size:11px}}
#hall-list{display:block;overflow-x:hidden;overflow-y:auto}
.hall-row{width:100%}
/* Worlds, permanent wardrobe and daily goals. */
.adventure-bar{display:flex;align-items:center;gap:10px;flex-shrink:0;min-width:0}.world-progress{display:flex;flex-direction:column;gap:3px;margin-right:auto;min-width:0}.world-progress strong{font-size:13px;color:#6d6284;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.world-progress small{font-size:10px;color:#9a91a7}.adventure-bar button{display:flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid #e6e0ed;border-radius:12px;background:#fffdfb;color:#80639e;font-size:12px;white-space:nowrap}.adventure-bar b{background:#f2eafa;padding:3px 5px;border-radius:5px;font-size:9px;color:#a589be}.reward-toast{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);border:1px solid #ecdab2;background:#fff6dcee;box-shadow:0 5px 20px #49363119;border-radius:14px;padding:10px 16px;font-size:12px;color:#9c743c;max-width:90%;text-align:center;pointer-events:none}
#adventure{width:min(750px,calc(100vw - 28px));max-height:calc(100dvh - 28px);margin:auto;border:1px solid #e9e0f0;background:#fffdf9;color:#463a55;box-shadow:0 24px 90px #34283d55;border-radius:24px;padding:25px;overflow:auto;overscroll-behavior:contain}#adventure::backdrop{background:#30283e70;backdrop-filter:blur(5px)}.adventure-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.adventure-heading h2{margin:6px 0 0;font-size:26px}#adventure-close{flex-shrink:0;align-self:flex-start;width:36px;height:36px;border-radius:50%;background:#f1edf5;color:#9f8bab;font-size:25px}.adventure-tabs{display:flex;gap:8px;background:#f4eff7;border-radius:12px;padding:5px;margin-top:18px}.adventure-tabs button{flex:1;border-radius:9px;background:transparent;padding:10px;color:#a28bab;font-weight:750;font-size:12px}.adventure-tabs button[aria-selected="true"]{background:white;color:#8763ac;box-shadow:0 2px 8px #59426c10}.adventure-description,.profile-note{font-size:12px;line-height:1.6;color:#9a8aa5}.profile-note{font-size:10px;margin:17px 0 10px}.collection-summary{display:flex;justify-content:space-between;margin:15px 0;color:#a08aad;font-weight:750;font-size:11px}#star-count{color:#c39542}.skin-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.skin-card{background:#f9f5fb;border:1px solid #ece2f1;padding:12px 8px;border-radius:14px;display:flex;align-items:center;flex-direction:column;gap:6px;min-width:0;position:relative;min-height:172px;cursor:pointer}.skin-card.selected{background:#eee4fa;border:2px solid #b095d0;padding:11px 7px}.skin-card:disabled{opacity:1;cursor:default}.skin-card.locked{background:#f6f3f5;border-color:#eee8ef}.skin-card.locked canvas{filter:grayscale(.65);opacity:.6}.skin-card canvas{width:66px;height:66px;touch-action:auto;flex-shrink:0}.skin-card strong{text-align:center;font-size:11px;line-height:1.35;color:#847091}.skin-card small{font-size:9px;color:#ae9aba;text-align:center}.skin-card .skin-action{margin-top:auto;font-size:9px;border-radius:6px;padding:4px 8px;background:#ede3f6;color:#9980ac}.skin-card.selected .skin-action{background:#b298d0;color:white}.skin-card.locked .skin-action{background:#eee9ed;color:#b1a5b5}.profile-status{font-size:11px;line-height:1.5;color:#b37983}.profile-status:empty{display:none}.profile-refresh{display:block;margin-left:auto;padding:9px 14px;border-radius:9px;background:#f0e9f7;color:#9173a8;font-size:11px}.quest-list{display:grid;gap:10px}.quest-card{background:#f8f4fa;border:1px solid #eae1ef;border-radius:15px;padding:15px}.quest-card.complete{background:#eff7f0;border-color:#d3e7d4}.quest-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;font-size:12px;font-weight:750}.quest-title span{white-space:nowrap;color:#b99552}.quest-card p{font-size:10px;color:#a094ac;margin:9px 0}.quest-card.complete p{color:#71a282}.quest-card progress{display:block;width:100%;height:9px;border:0;border-radius:10px;overflow:hidden;accent-color:#b89bd6}.quest-card progress::-webkit-progress-bar{background:#eee5f4}.quest-card progress::-webkit-progress-value{background:#b69bcf;border-radius:10px}.quest-card.complete progress{accent-color:#8ac09a}.quest-card.complete progress::-webkit-progress-value{background:#8ac09a}.daily-footer{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#ae9cbb;margin-top:15px}.world-progress small{max-width:100%}
@media(max-width:540px){.shell{gap:8px}.adventure-bar{gap:5px}.adventure-bar button{font-size:10px;padding:8px 7px;gap:4px}.adventure-bar b{font-size:8px;padding:2px 3px}.world-progress strong{font-size:10px;max-width:115px}.world-progress small{font-size:8px;max-width:115px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#adventure{padding:16px;border-radius:20px}.adventure-heading h2{font-size:22px}.adventure-heading .hall-eyebrow{font-size:6px;letter-spacing:.6px}.skin-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.skin-card{min-height:156px;padding:10px}.adventure-description{font-size:11px}.quest-card{padding:12px}.quest-title{font-size:11px}.daily-footer{font-size:9px;flex-wrap:wrap}.reward-toast{font-size:10px;padding:8px 12px}}
@media(max-height:520px) and (min-width:541px){.adventure-bar button{padding:5px 10px}.world-progress small{display:none}.skin-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.skin-card{min-height:146px}.world-progress strong{font-size:11px}}
.adventure-heading{position:sticky;top:0;z-index:2;background:#fffdf9;padding:8px 0}

@media(max-height:520px) and (min-width:541px){.play-area{gap:6px}.score-bar{padding:5px 10px;gap:12px}.score-bar strong{font-size:18px}.score-bar small{font-size:7px;letter-spacing:.5px}}
.sound-toggle{width:38px;height:38px;padding:0;flex-shrink:0;font-size:24px;line-height:1}
@media(max-width:540px){.header{gap:5px}.brand{gap:7px}.sound-toggle{width:30px;height:32px;font-size:21px}.header .sound-toggle{padding:0}.live{padding:7px}.header .brand h1{font-size:17px}}

/* Touch phones and tablets: the canvas is the controller. */
.swipe-hint{margin:0;text-align:center;color:#92869d;font-size:10px;line-height:1.4;flex-shrink:0;pointer-events:none}
.mobile-controls body{overscroll-behavior:none}
.mobile-controls .shell{padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));gap:6px}
.mobile-controls .header{gap:6px;height:34px;margin:0}
.mobile-controls .brand{gap:6px}.mobile-controls .brand-cube{width:28px;height:28px;border-radius:8px;font-size:22px}.mobile-controls h1{font-size:16px}.mobile-controls .brand p{display:none}
.mobile-controls .live{padding:7px 8px;font-size:10px}.mobile-controls .header .quiet{padding:7px;font-size:10px}.mobile-controls .header .sound-toggle{padding:0;width:30px;height:30px;font-size:21px}
.mobile-controls .adventure-bar{gap:5px}.mobile-controls .adventure-bar button{padding:6px 7px;font-size:10px;gap:4px}.mobile-controls .world-progress strong{font-size:10px}.mobile-controls .world-progress small{display:none}
.mobile-controls .stage{display:flex;flex-direction:column;gap:6px}.mobile-controls .play-area{flex:1;gap:0}.mobile-controls .world{border-radius:15px;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.mobile-controls #controls{display:none!important}.mobile-controls .guide,.mobile-controls .subtitle,.mobile-controls .version,.mobile-controls .section-head h2{display:none}
.mobile-controls .sidebar{flex-shrink:0;overflow:visible}.mobile-controls .leaderboard{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:12px;min-width:0}
.mobile-controls .section-head{display:block;float:none;margin:0;height:auto;flex-shrink:0}.mobile-controls .section-head>span{font-size:8px;padding:4px;white-space:nowrap}
.mobile-controls #leaders{display:flex;flex:1;min-width:0;gap:8px;overflow-x:auto;min-height:30px}.mobile-controls #leaders li{border:0;padding:3px 0;gap:4px;flex-shrink:0}
.mobile-controls .avatar{width:21px;height:21px;font-size:12px}.mobile-controls .leader-name{font-size:10px;max-width:75px}.mobile-controls .rank{font-size:9px;min-width:5px}
.mobile-controls .hall-open{width:auto;flex-shrink:0;margin:0;padding:7px;font-size:10px;gap:4px}.mobile-controls .hall-open span:last-child{display:none}
.mobile-controls .notice{top:12px}.mobile-controls .reward-toast{top:45px}
.mobile-controls .welcome{overflow:auto;align-items:flex-start;overscroll-behavior:contain}.mobile-controls .welcome-card{flex-shrink:0;margin:auto}
@media(max-width:360px){.mobile-controls .online-label{display:none}.mobile-controls .adventure-bar button{font-size:9px}.mobile-controls .world-progress strong{max-width:90px}.mobile-controls .swipe-hint{font-size:9px}.mobile-controls .leader-name{max-width:55px}}

/* Keep statistics above the canvas, including on touch screens. */
.mobile-controls .play-area{gap:5px}
.mobile-controls .score-bar{width:100%;grid-template-columns:1.2fr repeat(3,1fr);gap:7px;padding:5px 8px;text-align:right;border-radius:10px}
.mobile-controls .score-bar small{font-size:6px;letter-spacing:.3px;white-space:nowrap}
.mobile-controls .score-bar strong{font-size:15px;line-height:1.1;margin-top:2px}
.mobile-controls .leader-floor{font-size:8px;margin-top:1px}.mobile-controls .leader-points{font-size:10px;margin:0 0 0 2px;align-self:center}
/* Contain the page and every mobile flex/grid item within the viewport. */
html{width:100%;height:100%;overflow:hidden;overscroll-behavior:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{width:100%;max-width:100%;overscroll-behavior:none}
.shell{min-width:0;max-width:100%}
.mobile-controls .header,.mobile-controls .adventure-bar,.mobile-controls .stage,.mobile-controls .play-area,.mobile-controls .world,.mobile-controls .sidebar{min-width:0;max-width:100%}
.mobile-controls .brand{min-width:0}.mobile-controls .brand h1{white-space:nowrap}
.mobile-controls .score-bar{grid-template-columns:minmax(0,1.2fr) repeat(3,minmax(0,1fr))}
.mobile-controls .score-bar>div{min-width:0}.mobile-controls .score-bar strong{font-size:clamp(11px,3.5vw,15px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* A reward is a short message, never a panel stretched from top to bottom. */
.mobile-controls .reward-toast{top:12px;bottom:auto;left:10px;right:10px;width:fit-content;max-width:calc(100% - 20px);margin:0 auto;transform:none;padding:6px 10px;border-radius:10px;font-size:10px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.mobile-controls .notice{max-width:calc(100% - 20px);padding:6px 10px;font-size:10px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
/* All five names stay in the viewport; the ranking does not scroll sideways. */
.mobile-controls .leaderboard{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px;padding:6px;max-width:100%}
.mobile-controls .hall-open{grid-column:2;grid-row:1;justify-self:end}
.mobile-controls #leaders{grid-column:1 / -1;grid-row:2;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;min-height:0;overflow:hidden}
.mobile-controls #leaders li{display:grid;grid-template-columns:9px minmax(0,1fr);column-gap:2px;row-gap:1px;min-width:0;padding:2px 0}
.mobile-controls #leaders .rank{grid-column:1;grid-row:1;align-self:start;margin-top:2px}
.mobile-controls #leaders .avatar{display:none}
.mobile-controls #leaders li>div:not(.leader-points){grid-column:2;grid-row:1;min-width:0}
.mobile-controls #leaders .leader-name{font-size:9px;max-width:100%}
.mobile-controls #leaders .leader-floor{font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mobile-controls #leaders .leader-points{grid-column:2;grid-row:2;min-width:0;margin:0;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mobile-controls #leaders .empty{grid-column:1 / -1;display:block;min-width:0;padding:3px 0;font-size:10px;white-space:normal;overflow-wrap:anywhere}
.mobile-controls #name{font-size:16px}
/* In a short mouse-controlled window, keep the ranking beside the tower. */
@media(max-width:540px) and (max-height:600px){
  html:not(.mobile-controls) .stage{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:8px}
  html:not(.mobile-controls) .sidebar{overflow:auto}
  html:not(.mobile-controls) .leaderboard{padding:8px}
  html:not(.mobile-controls) .section-head h2{font-size:13px}
  html:not(.mobile-controls) .touch-controls button,html:not(.mobile-controls) .touch-controls button:last-child{height:40px;min-width:40px;width:40px}
  html:not(.mobile-controls) .touch-controls button[data-control="up"]{width:62px}
}
