body.career-world-active{background:#ece7da}
.career-world-active .town-app main{width:100%;max-width:none;margin:0;padding:0}
.career-world-active .town-header,.career-world-active .town-app footer{display:none}
.career-world-active #content{margin:0;padding:0}
.career-world-active .profile-status:not([hidden]){position:fixed;top:max(8px,env(safe-area-inset-top,0px));bottom:auto;left:50%;right:auto;transform:translateX(-50%);width:min(92vw,780px);margin:0;z-index:50;box-shadow:0 6px 24px #06121b70}
.hq-world{position:relative;isolation:isolate;width:100%;height:100svh;min-height:400px;overflow:hidden;background:#ece7da;color:#eef7f1}
.hq-world-viewport{position:absolute;inset:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;cursor:grab;outline-offset:-4px;touch-action:pan-x pan-y}
.hq-world-viewport::-webkit-scrollbar{display:none}
.hq-world-dragging{cursor:grabbing;user-select:none}
.hq-world-plane{position:relative;width:var(--hq-plane-width,100%);height:var(--hq-plane-height,100%)}
.hq-world-canvas{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:var(--hq-canvas-width,1200px);min-width:0;aspect-ratio:3/2}
.hq-world-canvas>img{width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
.hq-world-hud{position:absolute;top:max(16px,env(safe-area-inset-top,0px));left:max(22px,env(safe-area-inset-left,0px));right:max(22px,env(safe-area-inset-right,0px));z-index:20;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:0}
.hq-world-heading,.hq-world-status{display:flex;align-items:center;gap:10px;min-width:0}
.hq-world-heading h2{font-size:22px;line-height:1.3;font-weight:650;letter-spacing:-.02em;margin:0;padding:11px 15px;border-radius:12px;background:#12343cdb;border:1px solid #d0e7df50;color:#fff;backdrop-filter:blur(12px)}
.hq-world-back,.hq-world-wallet,.hq-world-level,.hq-world-home,.hq-world-camera,.hq-world-dock,.hq-world-careers{background:#102e3eea;backdrop-filter:blur(14px);border:1px solid #c6e5da54;color:#e7f4ef;box-shadow:0 4px 16px #061c3533}
.hq-world-back{display:flex;align-items:center;gap:8px;min-height:48px;font:inherit;font-size:14px;padding:10px 13px;border-radius:12px}
.hq-world-back svg{width:23px;height:23px;color:#bbebd9}
.hq-world-wallet{display:flex;flex-direction:column;text-align:right;min-height:48px;border-radius:12px;padding:6px 14px;font:inherit}
.hq-world-wallet small{font-size:12px;line-height:1.4;color:#c8ddd4}
.hq-world-wallet strong{font-size:20px;font-variant-numeric:tabular-nums;line-height:1.35}
.hq-world-level{border-radius:50%;padding:3px;min-width:52px;min-height:52px}
.hq-world-level .hq-world-level-ring{--ring-size:44px;background:#173442;box-shadow:none;margin:0}
.hq-world-level .level-orbit-face>small,.hq-world-level .level-orbit-face>span,.hq-world-level .level-ring-xp-stamp{display:none}
.hq-world-level .level-orbit-face>strong{font-size:17px}
.hq-world-caption{position:absolute;top:90px;left:max(22px,env(safe-area-inset-left,0px));z-index:10;max-width:min(360px,calc(100% - 44px));padding:16px 20px;background:#102e3ede;border:1px solid #c6e5da54;border-radius:16px;backdrop-filter:blur(12px);box-shadow:0 4px 16px #061c3522;line-height:1.5}
.hq-world-caption>span{display:block;font-size:11px;font-weight:650;letter-spacing:.08em;color:#b5d8c7}
.hq-world-caption h3{font-size:21px;line-height:1.3;letter-spacing:-.02em;margin:5px 0 7px;color:#fff;font-weight:600}
.hq-world-caption p{font-size:13px;line-height:1.6;color:#d0e3dc;margin:0}
.hq-world-caption button{background:transparent;border:0;color:#d4ef9e;font:inherit;font-size:13px;font-weight:650;min-height:40px;padding:10px 0 0}
.hq-world-room .hq-world-caption{padding:12px 16px}
.hq-world-room .hq-world-caption h3{font-size:18px}
.hq-world-camera{position:absolute;right:max(22px,env(safe-area-inset-right,0px));top:90px;z-index:12;display:flex;align-items:center;padding:5px;border-radius:12px;gap:3px}
.hq-world-camera button{min-width:44px;min-height:44px;background:transparent;color:#edf7f1;border:0;border-radius:8px;font:inherit;font-size:19px;padding:5px 8px}
.hq-world-camera button[data-action="hq-world-overview"]{font-size:13px}
.hq-world-camera output{font-size:12px;font-variant-numeric:tabular-nums;min-width:39px;text-align:center;color:#cbded4}
.hq-world-camera button:hover:not(:disabled){background:#ffffff16}
.hq-world-camera button:disabled{opacity:.4;cursor:not-allowed}
.hq-world .hq-spot-label{border-radius:13px;background:#f8fff8ed;border:1px solid #f7fff6;color:#173d42;backdrop-filter:blur(8px);padding:11px 14px}
.hq-world .hq-spot-glow{border-radius:22px}
.hq-world .hq-spot-label strong{font-size:17px}
.hq-world .hq-spot-label small{font-size:11px;color:#52706c;letter-spacing:.045em}
.hq-world .hq-locked .hq-spot-label small{color:#715297}
.hq-world .hq-chosen .hq-spot-glow{border-color:#cbf592b0}
.hq-world-overview .hq-spot-label{padding:8px 10px;gap:6px}
.hq-world-overview .hq-spot-label strong{font-size:14px}
.hq-world-overview .hq-career-symbol{font-size:20px;min-width:20px}
/* The artwork canvas has line-height:0; hotspot labels need their own text metrics. */
.hq-world .room-hotspot{font:inherit;line-height:1.4;border-radius:13px;padding:12px 16px;min-height:58px;white-space:normal}
.hq-world .room-hotspot strong{display:block;font-size:15px;line-height:1.35;font-weight:700}
.hq-world .room-hotspot small{display:block;font-size:12px;line-height:1.5;font-weight:400;margin-top:4px;max-width:230px}
.hq-world-help{position:absolute;z-index:12;left:50%;transform:translateX(-50%);bottom:112px;margin:0;padding:7px 11px;border-radius:9px;color:#e5f5e9;background:#102e3ecf;font-size:12px;line-height:1.5;white-space:nowrap;pointer-events:none}
.hq-world-dock,.hq-world-careers{position:absolute;left:50%;transform:translateX(-50%);bottom:max(17px,env(safe-area-inset-bottom,0px));z-index:20;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:8px;border-radius:19px;width:min(610px,calc(100% - 28px))}
.hq-world-dock button,.hq-world-careers button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:61px;padding:7px 4px;border:0;border-radius:11px;background:transparent;color:#dbefec;font:inherit;font-size:13px;line-height:1.4;min-width:0;text-align:center}
.hq-world-dock button svg{width:24px;height:24px;color:#b0e4d3}
.hq-world-career-symbol{font-size:22px;line-height:1.1;color:#c4ebae}
.hq-world-careers strong{font-size:13px;font-weight:650;overflow-wrap:anywhere}
.hq-world-careers small{font-size:10px;color:#b7d1c7}
.hq-world-careers button.current{background:#ffffff10;box-shadow:inset 0 0 0 1px #c5ee9d66}
.hq-world-dock button:hover,.hq-world-careers button:hover{background:#ffffff16}
.hq-world-home{position:absolute;right:max(22px,env(safe-area-inset-right,0px));bottom:118px;z-index:15;display:flex;align-items:center;gap:8px;font:inherit;font-size:13px;min-height:44px;border-radius:11px;padding:9px 13px}
.hq-world-home svg{width:22px;height:22px;color:#c9edaf}
.hq-world-trophy{position:absolute;left:max(22px,env(safe-area-inset-left,0px));bottom:158px;z-index:12;display:flex;align-items:center;gap:12px;max-width:300px;padding:12px 16px;border:1px solid #ebd19970;border-radius:15px;background:#102e3ee6;color:#edf6ee;backdrop-filter:blur(12px);text-align:left;font:inherit;line-height:1.4}
.hq-world-trophy>img{width:60px;height:60px;object-fit:contain;flex:none}
.hq-world-trophy>span{display:flex;flex-direction:column;gap:3px;min-width:0}
.hq-world-trophy small{color:#d7c898;font-size:10px;letter-spacing:.06em}
.hq-world-trophy strong{font-size:16px;font-weight:650}
.hq-world-trophy span[role="progressbar"],.hq-world-trophy>span>span{font-size:12px;color:#c6ddd0}
.hq-world .hq-keepsake{bottom:158px;right:max(22px,env(safe-area-inset-right,0px));z-index:12;max-width:220px}
.hq-world button:focus-visible,.hq-world-board button:focus-visible{outline:3px solid #d7f7ae;outline-offset:4px}
.hq-world-viewport:focus-visible{outline:3px solid #d7f7ae}
.hq-world-board{position:relative;isolation:isolate;width:100%;min-height:100svh;padding:92px max(3.5vw,env(safe-area-inset-left,0px)) 118px;color:#214354}
.hq-world-board-background,.hq-world-board-shade{position:fixed;inset:0;width:100%;height:100%;pointer-events:none}
.hq-world-board-background{object-fit:cover;filter:blur(3px);z-index:-2}
.hq-world-board-shade{background:#102e3e9c;z-index:-1}
.hq-world-board-content{width:min(1450px,100%);margin:auto}
.hq-world-board .hq-world-hud,.hq-world-board .hq-world-dock{position:fixed}
.hq-world-board .mission-adventure{margin:0;padding:24px;border:1px solid #f3fcffc2;background:#f4f8fbf2;backdrop-filter:blur(12px);border-radius:22px;box-shadow:0 12px 35px #061b3033}
.hq-world-board .journey-stage{min-height:86px;box-shadow:none;padding:12px 15px;border-width:1px}
.hq-world-board .journey-stage-copy strong{font-size:16px}
.hq-world-board .journey-stage-trail{margin:16px 0}
.hq-world-board .journey-play-layout{grid-template-columns:minmax(0,1fr) 310px}
.hq-world-board .journey-ticket-body{padding:20px}
.hq-world-board .journey-mission-ticket{display:block;box-shadow:0 7px 18px #163b6322}
.hq-world-board .journey-ticket-art{min-height:125px;background-size:100% 100%,330% auto}
.hq-world-board .journey-map-canvas{min-width:720px}
.hq-world-board .journey-launch{background:#205c50;box-shadow:0 3px 0 #16483e}
.hq-world-board .doctor-pilot-board{margin:0;border:1px solid #e0fbf2c2;background:#f3fbf9f2;backdrop-filter:blur(12px);border-radius:22px;padding:25px;box-shadow:0 12px 35px #061b3033}
.hq-world-board .doctor-pilot-heading h2{color:#204c47}
.hq-world-board .doctor-mission-card{background:#fff;border-color:#c8ddd3}
.hq-world-progress-dialog .hq-player-status{margin:15px 0}
@media(max-width:1300px){.hq-world-room .hq-world-caption p{display:none}.hq-world-room .hq-world-caption h3{margin-bottom:0}}
@media(max-width:1100px){.hq-world-board .journey-play-layout{grid-template-columns:1fr}.hq-world-board .journey-mission-ticket{display:grid;grid-template-columns:190px minmax(0,1fr)}.hq-world-board .journey-ticket-art{min-height:100%;background-size:100% 100%,700% auto}}
@media(max-width:750px){
 .hq-world-caption{top:83px;left:12px;max-width:260px;padding:12px 15px}
 .hq-world-caption h3{font-size:18px}
 .hq-world-caption p{font-size:12px}
 .hq-world-camera{top:auto;bottom:144px;right:12px}
 .hq-world-trophy{bottom:144px;left:12px;max-width:230px;padding:10px 12px;gap:8px}
 .hq-world-trophy>img{width:42px;height:42px}
 .hq-world-trophy strong{font-size:14px}
 .hq-world .hq-keepsake{bottom:230px;right:12px;max-width:170px;padding:7px}
 .hq-world .hq-keepsake>img{width:40px;height:40px}
 .hq-world .hq-keepsake small{font-size:9px}
 .hq-world .hq-keepsake strong{font-size:11px}
 .hq-world-room .hq-world-camera{bottom:290px}
 .hq-world-overview .hq-spot-label strong{font-size:12px}
 .hq-world-overview .hq-spot-label{padding:6px 8px;gap:4px}
 .hq-world-overview .hq-spot-label small{font-size:9px}
 .hq-world-overview .hq-career-symbol{display:none}
 .hq-world-board{padding:83px 12px 110px}
 .hq-world-board .mission-adventure,.hq-world-board .doctor-pilot-board{padding:18px;border-radius:18px}
}
@media(max-width:600px){
 .hq-world-hud{top:max(10px,env(safe-area-inset-top,0px));left:max(10px,env(safe-area-inset-left,0px));right:max(10px,env(safe-area-inset-right,0px));gap:6px}
 .hq-world-heading,.hq-world-status{gap:6px}
 .hq-world-back{width:44px;padding:9px;justify-content:center;min-height:44px}
 .hq-world-back>span{display:none}
 .hq-world-heading h2{font-size:17px;padding:12px 11px;white-space:nowrap}
 .hq-world-wallet{padding:5px 9px;min-height:44px}
 .hq-world-wallet strong{font-size:16px}
 .hq-world-wallet small{font-size:10px}
 .hq-world-level{padding:2px;min-width:46px;min-height:46px}
 .hq-world-level .hq-world-level-ring{--ring-size:40px}
 .hq-world-dock,.hq-world-careers{bottom:max(10px,env(safe-area-inset-bottom,0px));width:calc(100% - 20px);padding:7px;gap:2px}
 .hq-world-dock button,.hq-world-careers button{font-size:12px;min-height:60px;padding:6px 3px}
 .hq-world-careers strong{font-size:11px}
 .hq-world-help{font-size:10px;bottom:106px;max-width:calc(100% - 24px);white-space:normal;text-align:center}
 .hq-world-home{right:12px;bottom:205px;padding:8px 10px}
 .hq-world-trophy{max-width:calc(100% - 24px);bottom:143px}
 .hq-world-room .hq-world-camera{bottom:290px}
 .hq-world .hq-keepsake{bottom:230px}
 .hq-world-board .journey-stage{padding:10px 5px;min-height:130px}
 .hq-world-board .journey-stage-copy strong{font-size:13px}
 .hq-world-board .journey-mission-ticket{display:block}
 .hq-world-board .journey-ticket-art{min-height:125px;background-size:100% 100%,270% auto}
 .hq-world-board .journey-heading h2{font-size:23px}
 .hq-world-board .journey-map-canvas{min-width:650px}
}
@media(max-width:380px){.hq-world-status .hq-world-level{display:none}.hq-world-heading h2{font-size:16px}.hq-world-caption{max-width:238px}}
@media(prefers-reduced-motion:reduce){.hq-world *,.hq-world-board *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Mission selection is an in-room noticeboard, rather than a scrolling page. */
body.career-world-active{overflow:hidden}
.hq-world-board{height:100svh;height:100dvh;min-height:0;padding:100px max(3.5vw,env(safe-area-inset-left,0px)) 116px;overflow:hidden}
.hq-world-board-background{position:absolute;filter:none}.hq-world-board-shade{position:absolute;background:#122b434d}
.hq-world-board-content{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-color:#9e8daf #e9eef3;border-radius:22px;box-shadow:0 12px 34px #06192a3b;background:#f4f8fbeb}
.hq-world-board .hq-world-hud,.hq-world-board .hq-world-dock{position:absolute}
.hq-world-board .mission-adventure,.hq-world-board .doctor-pilot-board{border:0;border-radius:0;background:transparent;box-shadow:none}
@media(max-width:900px){.hq-world-board{padding:calc(88px + env(safe-area-inset-top,0px)) 12px calc(110px + env(safe-area-inset-bottom,0px))}.hq-world-board-content{border-radius:18px}}

/* Career HQ is a cutaway floor high above the town. */
.hq-world{background:linear-gradient(#ffffff18,#ffffff18),#355b97 url('hq-midnight-gold-sky.webp') center 42%/cover no-repeat}
.hq-world-plane{background:transparent}
.hq-world-hall .hq-world-canvas>img{filter:drop-shadow(0 10px 12px #102e4666)}

/* The cutaway floor and tower share one camera, width and centre. */
.hq-world-hall{background-size:100% 260%;background-position:center top}
.hq-world-hall .hq-world-plane{overflow:clip}
.hq-world-tower{position:absolute;z-index:-1;left:0;top:43%;width:100%;height:300%;border-radius:50% 50% 0 0 / 7% 7% 0 0;background:linear-gradient(#ffffff18,#ffffff18),#203c70 url('hq-midnight-gold-sky.webp') center bottom/100% 200% no-repeat;pointer-events:none}
