/* R7: tablet play surface and twelve-course selector. No hover-only controls. */
html,body{overscroll-behavior:none}#game{-webkit-user-select:none;user-select:none}button{-webkit-touch-callout:none}.front-cover{overflow-y:auto;pointer-events:auto;padding:max(25px,env(safe-area-inset-top)) max(34px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(34px,env(safe-area-inset-left));background:linear-gradient(90deg,#f6faf1f7,#f6faf1d6 30%,#f6faf120 64%)}.front-copy{max-width:370px}.front-copy h1{font-size:clamp(43px,4.5vw,62px)}.front-copy>p:not(.eyebrow){font-size:13px;max-width:330px}.front-copy .front-difficulty{font-size:11px!important;line-height:1.6!important;margin-top:19px!important;margin-bottom:0!important}.front-copy .eyebrow{letter-spacing:1.4px}.front-actions .button{min-width:150px;min-height:54px}.front-actions .secondary{min-width:115px}.input-picker{display:flex;align-items:center;gap:5px;background:#dfebe0ba;border-radius:14px;padding:5px;width:max-content;margin:18px 0}.input-picker button{border:0;background:transparent;border-radius:10px;color:#68867f;min-height:43px;padding:8px 13px;font-size:17px;display:flex;align-items:center;gap:7px}.input-picker button span{font-size:11px;font-weight:800}.input-picker button[aria-pressed=true]{background:#fffdf4;color:#246d75;box-shadow:0 3px 8px #244d5015}.front-copy .outfit-row{margin:18px 0}.swatch{width:33px;height:33px}.front-cover .course-rail{position:absolute;top:110px;right:32px;width:365px;display:flex;flex-direction:column;gap:14px}.rail-heading{display:flex;align-items:center;justify-content:space-between;color:#366f77}.rail-heading>span{font-size:10px;font-weight:900;letter-spacing:1.1px}.rail-heading b{font-size:10px;background:#fffbeddd;padding:7px 11px;border-radius:99px;color:#6b8c7b}.region-tabs{display:flex;gap:5px;padding:5px;background:#e2eee2e8;border-radius:15px}.region-tabs button{flex:1;min-width:0;min-height:49px;border:0;border-radius:11px;background:transparent;color:#708d85;font-size:10px;font-weight:850;padding:7px 6px;display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap}.region-tabs button>span{font-size:15px}.region-tabs button>small{font-size:8px;opacity:.7}.region-tabs button[aria-pressed=true]{background:#fffdf1;box-shadow:0 3px 9px #294d4d12;color:#236d78}.rail-cards{display:grid;grid-template-columns:1fr 1fr;gap:11px}.course-rail .course-card{min-height:153px;display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:16px;border-radius:21px;background:linear-gradient(145deg,#fffdf3f7,#fffdf2e8);border:2px solid #fffdf1b8}.course-rail .course-card:hover{transform:translateY(-2px)}.course-rail .course-card[aria-pressed=true]{border-color:var(--course-color);box-shadow:0 0 0 3px #fff9e899,0 8px 20px #25485515}.course-rail .course-card .course-icon{width:46px;height:46px;font-size:30px;background:color-mix(in srgb,var(--course-color) 20%,#fff);border-radius:15px}.course-rail .course-card strong{font-size:13px;padding:0;margin:0 0 5px}.course-rail .course-card .course-sub{font-size:9px;max-width:145px}.course-rail .course-card .course-score{font-size:9px;margin-top:7px}.course-number{font-variant-numeric:tabular-nums}.rail-tip{font-size:9px;color:#668985;margin:0;text-align:center}.front-foot{margin-top:auto;padding-top:20px}.front-foot small{font-size:10px}.course-map-grid{gap:13px;margin:19px 0}.course-map-grid .course-card{min-height:136px}.map-panel{width:min(690px,100%)}.map-panel h2{font-size:30px}.map-panel>p{font-size:12px}.map-foot{display:flex;justify-content:space-between;align-items:center;gap:14px}.map-foot>span{font-size:11px;color:#6b8f81}.map-foot .button{min-height:46px;font-size:12px;padding:12px 20px}.input-toggle[aria-pressed=true]{background:#d6eddf;color:#226f70}.hud-tools>.icon-button{min-width:44px;min-height:44px}.touch-mode .camera-top{display:none}.touch-mode .mission-card{max-width:260px;padding:13px 16px}.touch-mode .mission-card strong{font-size:14px}.touch-mode .mission-card p{font-size:11px}.touch-mode .mission-card .listen{min-height:42px;font-size:11px;padding:8px 13px}.touch-mode .controls-guide{display:none}.touch-mode .save-tag{left:50%;transform:translateX(-50%);bottom:max(7px,env(safe-area-inset-bottom));max-width:390px;white-space:nowrap;font-size:9px;background:#fff9e3c9}.touch-mode .action-prompt{bottom:230px;max-width:250px;font-size:12px}.touch-mode .talk-panel{bottom:230px}.touch-mode .hud-nudge{bottom:244px;max-width:340px;white-space:normal;text-align:center}.touch-mode .buddy-bubble{max-width:190px}.hud-top{top:max(16px,env(safe-area-inset-top));left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right))}.touch-mode .hud-top{gap:8px}.touch-mode .hud-progress{font-size:12px;padding:10px 15px}.touch-mode .course-badge{min-height:44px;font-size:12px}.touch-mode .hud-pace{font-size:11px;min-width:70px}.touch-mode .hud-chip{font-size:13px}.touch-mode .mission-card{top:86px;left:max(18px,env(safe-area-inset-left))}
#touch{touch-action:none}#joystick{width:148px;height:148px;left:max(40px,env(safe-area-inset-left));bottom:calc(51px + env(safe-area-inset-bottom));border:3px solid #fffcf2de;background:#fffbee4a;box-shadow:inset 0 0 0 21px #fff9e626,0 7px 24px #2d657925}#joystick:before,#joystick:after{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#fffdf0a8;font-size:13px;pointer-events:none}#joystick:before{content:'↑';top:12%}#joystick:after{content:'↓';top:88%}#joystick span{width:64px;height:64px;background:#fffdf1f2;box-shadow:0 6px 0 #56878b45,0 8px 16px #31566e20;border:2px solid #fff}.stick-caption{position:absolute;left:max(30px,env(safe-area-inset-left));bottom:calc(22px + env(safe-area-inset-bottom));width:168px;text-align:center;color:#426e78;font-size:9px;font-weight:900;letter-spacing:1px;margin:0;text-shadow:0 1px #fff9}.touch-return{position:absolute;left:max(48px,env(safe-area-inset-left));bottom:calc(219px + env(safe-area-inset-bottom));width:132px;height:43px;border:1px solid #fffbeecc;background:#fffbeec7;border-radius:14px;color:#4d7d83;font-size:20px;pointer-events:auto;display:flex;align-items:center;justify-content:center;gap:8px}.touch-return span{font-size:11px}.touch-right{right:max(40px,env(safe-area-inset-right));bottom:calc(51px + env(safe-area-inset-bottom));gap:20px;align-items:flex-end;pointer-events:none}.touch-right button{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;border:3px solid #fffcf0ef}.touch-action-stack{display:flex;flex-direction:column;align-items:center;gap:13px}#touch-jump{width:128px;height:128px;background:#fff8e6ed;box-shadow:0 7px 0 #bd976c85,0 12px 22px #3a667628;color:#28727c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}#touch-jump strong{font-size:58px;font-weight:500;line-height:.9}#touch-jump small{font-size:14px;font-weight:950;letter-spacing:1.8px}#touch-jump.pressed{transform:translateY(5px);background:#fff1ca;box-shadow:0 2px 0 #bd976c85}#touch-action{width:99px;height:88px;margin:0;border-radius:24px;background:#d7eee2f5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#347c72;font-size:25px;box-shadow:0 5px 0 #7ba69279}#touch-action strong{line-height:1;font-size:27px}#touch-action small{font-size:9px;font-weight:950;letter-spacing:.5px}#touch-action:disabled{opacity:.6;background:#fffbee99;color:#708c88;box-shadow:0 3px 0 #7ba69230}#touch-action.pressed{transform:translateY(3px);box-shadow:0 2px 0 #7ba69279}.touch-right .touch-camera{width:99px;height:43px;border-radius:14px;box-shadow:none;background:#fffbeec7;display:flex;align-items:center;justify-content:center;gap:6px;font-size:22px;color:#4d7d83}.touch-camera span{font-size:10px}.camera-caption{position:absolute;right:max(32px,env(safe-area-inset-right));bottom:calc(22px + env(safe-area-inset-bottom));width:265px;text-align:center;font-size:8px;font-weight:850;letter-spacing:.6px;color:#426e78;margin:0;text-shadow:0 1px #fff9}.panel .button{min-height:48px}
@media(max-width:1100px){.front-copy{max-width:330px}.front-copy h1{font-size:48px}.front-cover .course-rail{width:340px;right:28px;top:110px}.course-rail .course-card{min-height:146px;padding:14px}.course-rail .course-card strong{font-size:12px}.front-copy .front-difficulty{font-size:10px!important}.touch-mode .hud-brand>span:last-child{display:none}.touch-mode .hud-brand{padding:8px}.touch-mode .hud-map-label{max-width:142px}.touch-mode .hud-left{gap:7px}}
@media(orientation:portrait){.front-cover{padding:26px 30px;background:linear-gradient(180deg,#f6faf1f5,#f6faf1d1 40%,#f6faf12b 100%)}.front-copy{margin:31px 0 0;padding:0;max-width:100%;width:100%}.front-copy h1{max-width:570px;font-size:49px;margin:0 0 13px}.front-copy h1 br{display:none}.front-copy h1 em{display:block;font-size:.73em;margin-top:5px}.front-copy>p:not(.eyebrow){max-width:540px;margin-bottom:11px}.front-copy .pill-row{margin:12px 0}.input-picker{margin:12px 0}.front-copy .outfit-row{margin:13px 0}.front-copy .front-difficulty{margin-top:15px!important;max-width:520px!important}.front-copy .front-difficulty br{display:none}.front-cover .course-rail{position:relative;width:100%;top:auto;right:auto;margin:25px 0 20px;gap:12px}.course-rail .course-card{min-height:136px;flex-direction:row;align-items:center;gap:13px;padding:17px}.course-rail .course-card .course-icon{width:53px;height:60px;font-size:35px}.course-rail .course-card strong{font-size:15px}.course-rail .course-card .course-sub{font-size:11px;max-width:200px}.course-rail .course-card .course-score{font-size:10px}.region-tabs button{min-height:49px;font-size:12px}.region-tabs button small{font-size:10px}.front-foot{margin-top:auto;padding-top:8px;width:100%}.front-foot small{display:block}.touch-mode .hud-map-label{max-width:155px}.touch-mode .hud-progress .progress-label{display:none}.touch-mode .mission-card{max-width:265px}.touch-mode .buddy-bubble{top:86px}.touch-mode .hud-nudge{bottom:270px}.touch-mode .talk-panel{bottom:250px}}
@media(max-width:740px){.front-cover{padding:20px}.front-copy h1{font-size:39px}.front-copy>p:not(.eyebrow){font-size:12px}.front-nav>a{font-size:10px;padding:9px 11px}.front-cover .course-rail{width:100%}.course-rail .course-card{min-height:122px;padding:12px;gap:9px}.course-rail .course-card .course-icon{width:37px;height:43px;font-size:26px}.course-rail .course-card strong{font-size:12px}.course-rail .course-card .course-sub{font-size:9px}.course-rail .course-card .course-score{font-size:9px}.region-tabs button{font-size:10px}.region-tabs button>small{font-size:8px}.touch-mode .hud-top{left:10px;right:10px}.touch-mode .hud-map-label{max-width:90px}.touch-mode .course-badge{font-size:10px;min-height:44px;padding:8px}.touch-mode .hud-progress{font-size:10px;padding:10px;gap:6px}.touch-mode .hud-pace{font-size:9px;min-width:53px}.touch-mode .hud-chip{font-size:11px;padding:11px 8px}.touch-mode .hud-tools{gap:5px}.touch-mode .hud-tools>.icon-button{min-width:42px}.touch-mode .mission-card{top:77px;left:10px;max-width:235px}.touch-mode .mission-card strong{font-size:12px}.touch-mode .mission-card p{font-size:10px}.touch-mode .mission-card .listen{font-size:10px;min-height:40px}.course-map-grid .course-card{min-height:130px}.map-panel h2{font-size:25px}.map-foot>span{font-size:10px}}
@media(max-width:540px){#joystick{width:118px;height:118px;left:23px;bottom:48px}#joystick span{width:53px;height:53px}.touch-return{left:23px;bottom:184px;width:118px;height:40px}.stick-caption{left:13px;bottom:24px;width:138px;font-size:8px}.touch-right{right:21px;bottom:48px;gap:13px}#touch-jump{width:102px;height:102px}#touch-jump strong{font-size:46px}#touch-jump small{font-size:12px}#touch-action{width:76px;height:72px;border-radius:20px}#touch-action small{font-size:7px}.touch-right .touch-camera{width:76px;height:39px;font-size:19px}.touch-camera span{font-size:8px}.touch-action-stack{gap:10px}.camera-caption{right:13px;bottom:24px;width:200px;font-size:6px}.touch-mode .hud-map-label{display:none}.touch-mode .hud-left{gap:4px}.touch-mode .hud-progress{gap:5px}.touch-mode .hud-top{gap:5px}.touch-mode .hud-tools{gap:4px}.touch-mode .hud-pace{min-width:48px;font-size:8px}.touch-mode .hud-chip{font-size:10px}.touch-mode .hud-tools>.icon-button{min-width:38px}.touch-mode .hud-brand .brand-mark{width:23px;height:23px}.touch-mode .course-badge{min-width:38px}.touch-mode .mission-card{max-width:207px}.touch-mode .buddy-bubble{top:244px;right:10px;max-width:145px}.course-rail .course-card{flex-direction:column;align-items:flex-start;min-height:159px}.front-copy h1{font-size:36px}.front-foot{font-size:9px}.front-foot small{display:none}.touch-mode .hud-nudge{bottom:232px}.touch-mode .action-prompt{bottom:232px}.touch-mode .talk-panel{bottom:229px;max-height:calc(100svh - 310px);overflow:auto}.touch-mode .save-tag{font-size:7px;max-width:330px}}
@media(max-height:650px) and (orientation:landscape){.front-cover{padding:18px 24px}.front-copy{margin:24px 0 20px;max-width:315px}.front-copy h1{font-size:38px;margin-bottom:10px}.front-copy>p:not(.eyebrow){font-size:11px;line-height:1.5;margin-bottom:12px}.front-copy .eyebrow{font-size:9px;margin-bottom:9px}.front-copy .pill-row{margin:10px 0}.input-picker{margin:10px 0;padding:4px}.input-picker button{min-height:37px}.input-picker button span{font-size:10px}.front-copy .outfit-row{margin:12px 0}.swatch{width:28px;height:28px}.front-actions .button{min-height:46px;font-size:12px;padding:12px 19px}.front-copy .front-difficulty{font-size:9px!important;margin-top:13px!important}.front-cover .course-rail{top:88px;right:24px;width:340px;gap:10px}.region-tabs button{min-height:42px;font-size:9px}.course-rail .course-card{min-height:122px;padding:12px;gap:6px;flex-direction:column}.course-rail .course-card .course-icon{width:31px;height:31px;font-size:22px;border-radius:10px}.course-rail .course-card strong{font-size:11px}.course-rail .course-card .course-sub{font-size:8px}.course-rail .course-card .course-score{font-size:8px;margin-top:5px}.front-foot{padding-top:0;font-size:9px}.rail-tip{font-size:8px}.touch-mode .hud-top{top:10px}.touch-mode .mission-card{top:68px;max-width:230px;padding:10px 13px}.touch-mode .mission-card p{font-size:10px}.touch-mode .mission-card .listen{min-height:34px;margin-top:7px}.touch-mode .mission-card strong{font-size:12px}#joystick{width:115px;height:115px;left:28px;bottom:37px}#joystick span{width:53px;height:53px}.stick-caption{bottom:15px;left:16px;width:139px;font-size:8px}.touch-return{left:30px;bottom:170px;width:111px;height:37px}.touch-right{right:28px;bottom:37px;gap:16px}#touch-jump{width:100px;height:100px}#touch-jump strong{font-size:44px}#touch-jump small{font-size:11px}#touch-action{width:81px;height:69px;border-radius:19px}#touch-action small{font-size:7px}.touch-action-stack{gap:9px}.touch-right .touch-camera{width:81px;height:36px;font-size:20px}.touch-camera span{font-size:8px}.camera-caption{right:21px;bottom:15px;width:216px;font-size:7px}.touch-mode .talk-panel{bottom:180px;max-height:calc(100svh - 235px);overflow:auto}.touch-mode .hud-nudge{bottom:191px;font-size:10px}.touch-mode .action-prompt{bottom:182px}.touch-mode .save-tag{bottom:3px;font-size:7px}}
@media(prefers-reduced-motion:reduce){.course-card,.button{transition:none}}
