.onlineLauncher{position:fixed;left:max(16px,env(safe-area-inset-left));bottom:172px;z-index:9;min-width:130px;min-height:44px;background:#fff7df;color:#387459;border:2px solid white;border-radius:15px;box-shadow:0 3px 0 #c6b3cd;padding:8px 12px;font-size:12px;font-weight:900}.onlineLauncher[data-scene=map]{top:100px;bottom:auto}.onlineLauncher[hidden],.onlineToast[hidden]{display:none}.onlineToast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:85;background:#57406b;color:white;max-width:90vw;border-radius:15px;padding:13px 18px;font-size:14px;box-shadow:0 5px 16px #43315135}
.onlineDrawer,.onlineChoice,.onlineInvitation,.duelScreen{color:#593b6b;font-family:var(--body);box-sizing:border-box}.onlineDrawer button,.onlineChoice button,.onlineInvitation button,.duelScreen button{cursor:pointer;font:inherit;font-weight:900;min-height:44px;min-width:44px;border:2px solid white;border-radius:15px;background:#ffcfdf;color:#784061;padding:9px 14px;box-shadow:0 3px 0 #d2a6c1}.onlineDrawer button:disabled,.onlineChoice button:disabled,.onlineInvitation button:disabled,.duelScreen button:disabled{opacity:.45;cursor:default}.onlineClose{flex-shrink:0;width:44px;height:44px;padding:0!important;background:#fff0d9!important}.onlineDrawer{position:fixed;z-index:55;top:100px;right:max(16px,env(safe-area-inset-right));width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 125px);display:flex;flex-direction:column;gap:12px;background:#fffaf0;border:3px solid white;border-radius:25px;box-shadow:0 10px 35px #4e315b40;padding:18px}.onlineDrawer header{display:flex;gap:14px;align-items:center;justify-content:space-between}.onlineDrawer h2{font-family:var(--display);font-size:26px;margin:4px 0}.onlineDrawer small{font-size:9px;letter-spacing:.5px}.onlineHint,.onlineEmpty{font-size:13px;line-height:1.6;margin:0}.onlinePeers{overflow:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:5px 3px 12px;min-height:0}.onlinePeers .onlinePeerCard{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:160px;padding:5px;background:#eff7eb}.onlinePeerCard img{width:90px;height:110px;object-fit:contain}.onlinePeerCard b{font-size:14px}.onlinePeerCard small{font-size:9px;letter-spacing:0;line-height:1.4}.onlinePeerCard.available{border-color:#76cfa6}.onlineEmpty{grid-column:1/-1;padding:12px}
.onlineChoice,.onlineInvitation{position:fixed;inset:0;z-index:65;display:grid;place-items:center;padding:16px;background:#38264455}.onlineChoiceCard,.onlineInviteCard{position:relative;width:min(520px,100%);max-height:90dvh;overflow:auto;background:#fff9ee;border:3px solid white;border-radius:28px;padding:25px;text-align:center;box-shadow:0 12px 40px #40264c40}.onlineChoiceCard .onlineClose{position:absolute;right:12px;top:12px}.onlineChoiceCard h2{margin:35px 0 10px}.onlineChoiceCard p,.onlineInviteCard p{font-size:14px;line-height:1.5}.onlineModeList{display:flex;flex-direction:column;gap:12px;margin-top:18px}.onlineModeList .onlineMode{display:grid;grid-template-columns:46px 1fr;text-align:left;gap:4px;background:#f4e8fc;padding:13px 16px}.onlineMode>span{grid-row:1/3;font-size:30px;align-self:center}.onlineMode b{font-size:17px}.onlineMode small{font-size:11px;font-weight:500}.inviteIcon{font-size:54px}.onlineInviteCard h2{font-size:27px;font-family:var(--display);margin:10px 0}.inviteClock{display:block;margin:15px;color:#8d7499}.inviteActions{display:flex;gap:13px;justify-content:center}.inviteActions .inviteAccept{background:#6ecb9d;color:#174f3c}
.onlineWorldPeers{position:absolute;inset:0;pointer-events:none;z-index:32}.onlineChild{position:absolute;width:96px;height:126px;background:none;border:0;padding:0;pointer-events:auto;touch-action:pan-y;display:flex;flex-direction:column;align-items:center;transform:translate(-50%,-100%)}.onlineChild:disabled{cursor:default}.onlineChildWalk{display:block;position:relative;width:78.666px;height:98.666px}.onlineChild img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 3px #57416c36)}.onlineChildName{font-size:8px;font-weight:900;background:#fffbea;border:2px solid #6bc89f;color:#287052;border-radius:10px;padding:4px 8px;white-space:nowrap}.onlineChild:focus-visible{outline:3px solid #e885b4;border-radius:20px}

.duelScreen{position:fixed;inset:0;z-index:70;overflow:auto;background:radial-gradient(ellipse at 15% 20%,#fff4cf,transparent 45%),linear-gradient(130deg,#def6e8,#f8e7fa 65%,#ffe6db);padding:max(15px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:15px}.duelScreen>header{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-shrink:0}.duelScreen header>div{text-align:center}.duelScreen h2{font-family:var(--display);font-size:clamp(22px,3vw,34px);margin:3px 0}.duelScreen header small{font-size:10px;letter-spacing:1px}.duelClock{background:#fff9e7;padding:12px 17px;border:2px solid white;border-radius:16px;font-size:16px;white-space:nowrap}.duelRacers{display:grid;grid-template-columns:1fr 1fr;gap:20px;flex-shrink:0;width:min(900px,100%);margin:0 auto}.duelLane{position:relative;background:#ffffffb5;border:3px solid white;border-radius:22px;padding:8px 14px;display:grid;grid-template-columns:70px 1fr;gap:5px 12px;align-items:center}.duelPortrait{width:70px;height:88px;object-fit:contain;grid-row:1/4}.duelLane>b{font-size:17px}.duelScore{font-size:15px;font-weight:900;color:#a04f7e}.duelRail{height:44px;border-bottom:5px dashed #b4cbb9;position:relative}.duelToken{position:absolute;bottom:-5px;width:65px;height:53px;object-fit:contain;transition:left .8s ease-in-out}.duelConnection{min-height:18px;font-size:12px;color:#a95a70;text-align:center;margin:0}.duelPlay{flex:1;min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}.duelPlay[hidden],.duelResult[hidden],.duelQuitConfirm[hidden]{display:none}.duelFeedback{min-height:24px;font-size:15px;font-weight:800;text-align:center;color:#4e8c6c}.duelQuestion{font-family:var(--display);font-size:clamp(28px,5vw,52px);line-height:1.2;text-align:center;color:#644274;background:#fffdf2;border:3px solid white;border-radius:25px;padding:18px 30px;box-shadow:0 5px 0 #d7c5db}.duelVisual{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:500px}.duelStar{font-size:38px;color:#eda927;text-shadow:0 2px 0 #c47e23}.duelDot{font-size:27px;width:39px;height:39px;text-align:center;background:#ffe3ee;color:#cb5890;border:2px solid white;border-radius:50%}.duelChoices{display:flex;justify-content:center;gap:23px;padding-bottom:15px}.duelChoices .duelAnswer{min-width:95px;min-height:85px;font-family:var(--display);font-size:40px;background:#fdb4d2;box-shadow:0 6px 0 #c572a2;border:3px solid white}.duelChoices .duelAnswer:nth-child(2){background:#ffe49a;box-shadow:0 6px 0 #c8a85b}.duelChoices .duelAnswer:nth-child(3){background:#a4e1e0;box-shadow:0 6px 0 #67b2b4}.duelResult{flex:1;text-align:center;max-width:650px;margin:0 auto;overflow:auto}.resultStar{font-size:70px}.duelResult p{font-size:16px;line-height:1.6}.duelResult details{text-align:left;margin-top:22px;font-size:13px}.duelResult details p{font-size:13px;background:#fff9ed;padding:10px;border-radius:12px}.duelDone{background:#78d5ab!important;font-size:17px!important}.duelQuitConfirm{position:fixed;inset:0;z-index:2;display:grid;place-items:center;padding:20px;background:#38254488}.duelQuitConfirm>div{background:#fff8ed;border-radius:25px;padding:25px;text-align:center;max-width:420px}.duelQuitConfirm p{font-size:14px;line-height:1.6}.duelQuitConfirm button{margin:5px}
@media(max-width:600px){.onlineLauncher{left:15px;bottom:153px;min-width:118px;font-size:10px;padding:7px 10px}.onlineLauncher[data-scene=map]{top:153px;bottom:auto;left:12px}.onlineDrawer{top:80px;right:10px;width:calc(100vw - 20px);max-height:calc(100dvh - 95px);padding:14px}.onlinePeers{gap:7px}.onlinePeers .onlinePeerCard{min-height:140px}.onlinePeerCard img{width:70px;height:90px}.onlineDrawer h2{font-size:23px}.onlineChild{width:80px;height:104px}.onlineChildWalk{width:63.334px;height:78px}.onlineChildName{font-size:8px}.onlineChoiceCard,.onlineInviteCard{padding:19px}.onlineInviteCard h2{font-size:23px}.duelScreen{padding:10px;gap:9px}.duelScreen>header{gap:7px}.duelScreen header small{font-size:7px;letter-spacing:.3px}.duelScreen h2{font-size:19px}.duelScreen header button{font-size:10px;padding:6px 9px}.duelClock{font-size:11px;padding:9px}.duelRacers{gap:8px}.duelLane{grid-template-columns:48px 1fr;padding:6px;gap:3px 5px;border-radius:17px}.duelPortrait{width:48px;height:65px}.duelLane>b{font-size:11px}.duelScore{font-size:11px}.duelRail{height:31px}.duelToken{width:42px;height:39px}.duelConnection{font-size:10px}.duelPlay{gap:15px;min-height:180px}.duelFeedback{font-size:11px;min-height:18px}.duelQuestion{font-size:29px;padding:14px 17px;border-radius:20px}.duelStar{font-size:27px}.duelVisual{gap:6px}.duelDot{width:29px;height:29px;font-size:20px}.duelChoices{gap:15px}.duelChoices .duelAnswer{min-width:75px;min-height:70px;font-size:32px}.duelResult p{font-size:13px}.resultStar{font-size:52px}}
@media(max-height:500px) and (min-width:601px){.onlineLauncher[data-scene=map]{top:85px}.onlineLauncher[data-scene=hub]{bottom:105px;left:190px}.duelScreen{gap:5px;padding:9px 15px}.duelScreen h2{font-size:21px}.duelRacers{max-width:640px}.duelPortrait{height:55px;width:44px}.duelLane{grid-template-columns:44px 1fr;padding:4px 10px}.duelLane>b{font-size:12px}.duelRail{height:24px}.duelToken{height:32px;width:43px}.duelPlay{min-height:140px;gap:7px}.duelQuestion{font-size:29px;padding:9px 20px}.duelVisual{position:absolute;left:20px;bottom:40px;max-width:200px}.duelStar{font-size:24px}.duelChoices .duelAnswer{min-height:53px;min-width:75px;font-size:28px}.duelConnection{min-height:12px;font-size:10px}.duelFeedback{min-height:16px;font-size:11px}.duelChoices{padding-bottom:5px}}
@media(prefers-reduced-motion:reduce){.duelToken{transition:none}}
.duelQuestion::before{content:attr(data-round);display:block;font-family:var(--body);font-size:12px;font-weight:800;color:#a66a90;margin-bottom:6px}.duelQuestion[data-round=""]::before{display:none}
.duelScreen{background-color:#e7f2db;background-size:cover;background-position:center bottom;background-image:linear-gradient(to bottom,#fff8ee 0%,#f5edfaed 35%,#f5edfa99 53%,transparent 78%),url('../assets/journey/world/01-village.webp')}.duel-pairs{background-image:linear-gradient(to bottom,#fff8ee 0%,#f5edfaed 35%,#f5edfa99 53%,transparent 78%),url('../assets/journey/world/02-hills.webp')}.duel-detective{background-image:linear-gradient(to bottom,#fff8ee 0%,#f5edfaed 35%,#f5edfa99 53%,transparent 78%),url('../assets/journey/world/03-mountains.webp')}.duelLane{background:#fffdf4f5}.duelFeedback{background:#fff9e9;border-radius:12px;padding:6px 13px}.duelFeedback:empty{background:none}.duelResult{background:#fff9eff5;border:3px solid white;border-radius:25px;width:min(650px,100%);padding:20px}
