/* Fullscreen journey layer works independently from game viewport ratio. */
.journey-layer{position:fixed;inset:0;z-index:65;display:none;flex-direction:column;color:#18315a;background:#e2f6fa;overflow:hidden;font-family:system-ui,-apple-system,sans-serif}
.journey-layer.visible{display:flex}
.journey-top{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:calc(11px + env(safe-area-inset-top,0px)) 16px 11px;background:linear-gradient(120deg,#103264,#3c5f9e);color:white;box-shadow:0 5px 15px #12234f32;z-index:3}
.journey-kicker{font-size:10px;font-weight:900;letter-spacing:2px;color:#8decdc}.journey-top h2{margin:2px 0;font-size:clamp(21px,3.2vw,31px);font-weight:1000}.journey-top h2 span{color:#ffdd70}.journey-top p{margin:0;font-size:11px;color:#c9daff}
.journey-top-actions{display:flex;gap:6px;align-items:center}.journey-top-actions button{border:1px solid #bde3f555;background:#263e77;border-radius:11px;padding:10px 13px;font-size:12px;font-weight:800;color:white;white-space:nowrap;cursor:pointer}
.journey-live{display:flex;align-items:center;gap:7px;background:#d7faee;padding:6px 15px;font-size:11px;font-weight:800;color:#087d5c}.journey-live.demo{background:#fff3c2;color:#85540a}.journey-live-dot{width:8px;height:8px;border-radius:50%;background:#19b889;box-shadow:0 0 0 3px #69e8ad66}
.journey-roster{display:flex;align-items:center;gap:8px;padding:9px 12px;background:#f9fcff;border-bottom:2px solid #c1d8ef;overflow-x:auto;min-height:69px}
.roster-item{display:flex;align-items:center;gap:7px;border:1px solid #dce5ff;background:white;padding:5px 12px 5px 5px;border-radius:15px;min-width:145px;white-space:nowrap;box-shadow:0 3px 10px #5673aa17}.roster-item svg{width:38px;height:38px;flex:0 0 38px}.roster-item b{display:block;font-size:12px;color:#24395b}.roster-item small{font-size:10px;color:#63799c}.roster-note,.roster-empty{font-size:11px;color:#6980a5}
.journey-scroll{flex:1;overflow:auto;scroll-behavior:auto;overscroll-behavior:contain;background:#b9eff5;padding:0 0 14px}
.journey-world{position:relative;max-width:none;margin:0 auto;overflow:hidden;border-left:5px solid #f9ffffaa;border-right:5px solid #f9ffffaa;box-shadow:0 0 20px #4677a745}
.world-scene{position:relative;height:850px;overflow:hidden;background:linear-gradient(175deg,#a9f6ff,#d3fbbe 48%,#75d4a7)}
.journey-world.lilac .world-scene{background:linear-gradient(165deg,#aeaeff,#efb3fc 52%,#cbaff8)}.journey-world.peach .world-scene{background:linear-gradient(165deg,#ffd9b9,#ffd8d8 48%,#ffb677)}.journey-world.blue .world-scene{background:linear-gradient(165deg,#96cdfb,#b8e5f9 50%,#84badf)}.journey-world.gold .world-scene{background:linear-gradient(165deg,#f5d4a2,#fcf2a5 49%,#b8e5b5)}
.world-shape{position:absolute;border-radius:50%;background:#ffffff55;border:14px solid #ffffff29;box-shadow:0 0 0 16px #69bdcc28}.world-shape-a{height:300px;width:310px;top:145px;left:-145px}.world-shape-b{height:330px;width:350px;top:490px;right:-160px}
.world-emoji{position:absolute;font-size:clamp(54px,9vw,120px);filter:drop-shadow(0 8px 0 #ffffff7a);opacity:.9}.world-emoji-left{left:6%;top:32%}.world-emoji-right{right:8%;top:72%;color:#fff7c7}
.world-path{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.journey-node{position:absolute;z-index:2;transform:translate(-50%,-50%);height:clamp(40px,5vw,59px);width:clamp(40px,5vw,59px);display:grid;place-items:center;border:5px solid white;border-radius:100%;background:linear-gradient(155deg,#62dcff,#1677db);color:white;font-size:clamp(15px,3.5vw,24px);font-weight:1000;box-shadow:0 7px 0 #4260bd,0 10px 18px #24567966;text-shadow:0 2px 0 #345090;cursor:pointer}
.journey-node.cleared{background:linear-gradient(160deg,#ffdf62,#ff8933);box-shadow:0 7px 0 #d86b3f,0 10px 18px #b7783d66}.journey-node.locked{background:linear-gradient(155deg,#9faed1,#607aa7);box-shadow:0 7px 0 #547096,0 10px 18px #4e639044;cursor:not-allowed;font-size:20px}.journey-node:focus-visible{outline:4px solid #ff4f9d;outline-offset:3px}.journey-node small{position:absolute;right:-11px;bottom:-8px;color:#ffe35e;font-size:15px;text-shadow:0 1px 2px #924f1e}
.journey-runner{position:absolute;z-index:5;transform:translate(-50%,-50%);display:flex;align-items:center;flex-direction:column;max-width:120px;filter:drop-shadow(0 4px 3px #3456a56c);animation:runnerPop .4s ease-out both;pointer-events:none}
.journey-runner .runner-face{width:clamp(43px,6vw,64px);height:clamp(43px,6vw,64px);border-radius:50%;border:4px solid var(--runner-color);background:#fff}.journey-runner.mine .runner-face{box-shadow:0 0 0 3px #ffe66e,0 0 16px #fff}
.journey-runner span,.journey-runner b{display:block;border-radius:9px;background:#173864ed;color:white;text-align:center;max-width:116px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;padding:2px 5px}.journey-runner b{background:#ffe089;color:#75430b;font-size:9px;margin-top:2px}
.world-banner{position:relative;padding:10px 22px;display:flex;align-items:center;gap:12px;min-height:75px;color:#fff;background:linear-gradient(90deg,#6b42c0,#ad58d6,#ef89a0);border-top:3px solid #ffffff88;border-bottom:3px solid #ffffff88}.world-banner>span{font-size:38px}.world-banner div{flex:1;min-width:0}.world-banner small{display:block;font-size:9px;font-weight:800;letter-spacing:1.5px}.world-banner strong{display:block;font-size:19px}.world-banner b{font-size:11px;background:#ffffff33;padding:7px;border-radius:18px}
.journey-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 15px calc(9px + env(safe-area-inset-bottom,0px));background:#183361;color:white;font-size:12px;font-weight:800;z-index:2}.journey-bottom button{padding:11px 20px;border:0;background:linear-gradient(110deg,#fff095,#ffc56a);color:#513311;font-size:12px;font-weight:900;border-radius:12px;cursor:pointer}
@keyframes runnerPop{from{opacity:.2;transform:translate(-50%,-35%) scale(.8)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
/* Auth screen */
.auth-layer{position:fixed;inset:0;z-index:85;background:#06152ce9;display:none;align-items:center;justify-content:center;padding:20px}.auth-layer.visible{display:flex}.auth-card{position:relative;background:linear-gradient(145deg,#274a79,#121f43);border:1px solid #6da2bf;border-radius:24px;box-shadow:0 20px 65px #0009;color:white;width:min(95vw,400px);padding:26px;text-align:center;max-height:95dvh;overflow:auto}
.auth-card h2{margin:8px 0;font-size:25px}.auth-card p{color:#adc3dd;font-size:12px;line-height:1.5}.auth-card label{text-align:left;display:block;font-size:12px;color:#c9e5fc;margin:11px 0 4px}.auth-card input{width:100%;padding:12px;border-radius:10px;background:#091a32;border:1px solid #527397;color:#f2f7ff;font-size:14px;min-height:41px}.auth-card button[type=submit]{background:linear-gradient(110deg,#5ef3d6,#7cbcff);border:0;color:#12304f;padding:13px;font-weight:950;border-radius:11px;margin-top:16px;width:100%;cursor:pointer}.auth-card button:disabled{opacity:.6}.auth-card .auth-link{color:#8af6eb;border:0;background:none;margin-top:11px;padding:5px;cursor:pointer;font-size:12px}.auth-card .auth-close{position:absolute;right:10px;top:10px;background:#ffffff22;color:white;border:0;border-radius:50%;height:31px;width:31px;cursor:pointer}.auth-card .auth-error{font-size:12px;min-height:20px;color:#ffd583;margin-top:9px}.auth-card .auth-verified{background:#183d4a;padding:12px;border-radius:11px;font-size:12px;line-height:1.7}.auth-card .auth-verified button{margin-top:9px;background:#65dfd2;border:0;border-radius:9px;padding:10px;cursor:pointer;font-weight:900}
.top-actions .account-btn{border:1px solid #559cb0;background:#153f5d;color:#9df2e2;border-radius:9px;font-weight:900;padding:8px 9px;font-size:11px;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-actions .map-btn{border:1px solid #ffd892;background:#5a3b75;color:#fff0bd;border-radius:9px;font-weight:900;padding:8px 12px;font-size:11px;white-space:nowrap}
.online-menu-row{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:9px}.online-menu-row button{flex:1;min-width:120px;padding:10px;background:#334a77;color:#c9f8ee;border:1px solid #7d9cbb;border-radius:10px;font-size:12px;font-weight:900}.online-state{font-size:11px;margin-top:7px;color:#b6eec5}
@media(max-width:650px){.journey-top{padding:calc(10px + env(safe-area-inset-top,0px)) 9px 9px}.journey-top p{font-size:10px;max-width:250px}.journey-top-actions button{font-size:11px;padding:9px}.journey-top-actions button:first-child{max-width:110px;white-space:normal}.journey-roster{padding:6px}.roster-item{min-width:110px;padding-right:6px}.roster-item svg{width:31px;height:31px;flex-basis:31px}.roster-item b{font-size:10px}.roster-item small{font-size:9px}.journey-world{border-left-width:2px;border-right-width:2px}.world-emoji-left{font-size:55px}.world-banner{min-height:62px;padding:8px}.world-banner strong{font-size:15px}.world-banner>span{font-size:30px}.journey-node{height:41px;width:41px;border-width:4px}.journey-runner span{font-size:9px;max-width:74px}.journey-runner b{font-size:8px}.journey-bottom{font-size:10px}.journey-bottom button{padding:11px 9px}.top-actions .account-btn{max-width:65px;padding:6px;font-size:9px}.top-actions .map-btn{padding:6px;font-size:10px}body.is-playing .top-actions{gap:3px}}
@media(max-width:355px){.top-actions .account-btn{display:none}.top-actions .map-btn{font-size:9px;padding:5px}body.is-playing .round-btn{width:26px;height:26px}}

.journey-roster{flex-shrink:0;max-height:115px}.roster-item{flex-shrink:0}.world-banner strong{overflow-wrap:anywhere}

/* Semiconductor process illustrations, sized independently from emoji text. */
.zone-process-icon{display:block;object-fit:contain}.world-emoji-left .zone-process-icon{width:clamp(76px,12vw,144px);height:auto}.world-banner>span{flex:0 0 56px}.world-banner .zone-process-icon{width:56px;height:56px}@media(max-width:650px){.world-emoji-left .zone-process-icon{width:80px}.world-banner>span{flex-basis:44px}.world-banner .zone-process-icon{width:44px;height:44px}}
