
:root{font-family:ui-rounded,'Arial',sans-serif;color:#28292b;background:#dce8df;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{border:1px solid #d8d7cd;border-radius:14px;background:#fffdf6;color:#28292b;padding:13px 18px;font-weight:700;cursor:pointer}button:hover:not(:disabled){background:#fff0b5}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #277466;outline-offset:3px}[hidden]{display:none!important}.primary{background:#ffdb60;border-color:#e6bd39}.danger{color:#ac3c35}h1{font-size:clamp(40px,6vw,74px);line-height:1;margin:20px 0;letter-spacing:-3px}h1 em{color:#397263;font-style:normal}h2{font-size:32px;letter-spacing:-1px;margin:10px 0 22px}p{line-height:1.5;color:#65675f}a{color:#397263}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:11px;font-weight:800;color:#397263}.game-shell{position:fixed;inset:0;width:100vw;height:100dvh}canvas{display:block;width:100%;height:100%;touch-action:none}body:not([data-screen=playing]) .game-shell{filter:blur(6px);opacity:.4}.prep,.modal{position:fixed;z-index:10;left:50%;top:50%;transform:translate(-50%,-50%);width:min(600px,calc(100vw - 32px));max-height:calc(100dvh - 64px);overflow:auto;background:#fffdf4;border:1px solid #fff;border-radius:28px;padding:32px;box-shadow:0 20px 90px #283d3930}.prep>button,.modal>button{display:block;width:100%;margin:10px 0}.row{display:flex;gap:8px;align-items:center}.row>*{flex:1;min-width:0}.row button{white-space:nowrap}.prep form{border-top:1px solid #deded1;padding-top:20px;margin-top:25px}label{display:block;font-size:13px;color:#65675f}input,select{width:100%;margin:8px 0;border:1px solid #d8d7cd;background:white;padding:12px;border-radius:10px}small{font-size:12px;color:#72766d}.room-line{display:flex;align-items:center;justify-content:space-between;font-size:14px}.slots{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}.slot{display:flex;gap:10px;align-items:center;text-align:left;background:#eeeee4;border-radius:14px;padding:13px}.avatar{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:50%;background:var(--color);font-style:normal}.slot b,.slot span,.slot small{display:block}.slot span{font-size:11px;color:#6d7068;margin:4px 0}.you{outline:2px solid #438775}.connection{position:fixed;bottom:10px;left:16px;font-size:11px;z-index:20;color:#52635a}.connection.offline{background:#fff2d2;padding:10px;border-radius:9px;color:#88392d}.connection a{margin-left:12px}body[data-screen=playing] .connection.online{display:none}.hud{position:fixed;top:18px;left:18px;display:flex;gap:16px;align-items:center;border-radius:16px;padding:12px 16px;background:#fffdf3e8;font-size:14px;backdrop-filter:blur(12px)}#cargo-health{color:#756546;font-size:12px}.menu-open{position:fixed;right:18px;top:18px;font-size:20px;padding:8px 14px}.crew{position:fixed;top:73px;left:18px;display:flex;gap:5px;pointer-events:none}.crew-chip{background:#fffdf3e8;border-radius:9px;padding:6px;width:65px;font-size:10px}.crew-chip.me{outline:2px solid #438775}.crew-chip progress{display:block;width:100%;height:5px;accent-color:#41836c;margin-top:5px}.crew-chip.low progress{accent-color:#d74436}.crew-chip.low{color:#b23728}.action-control{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));width:300px;z-index:3}.action-control>.row{gap:5px}.action-control #context{flex:1;min-height:56px}.action-control #more{flex:0 0 52px;min-height:56px}#actions{padding:12px;background:#fffdf4f5;backdrop-filter:blur(16px);border-radius:20px;margin-bottom:8px;box-shadow:0 10px 35px #22383124}#actions>button{width:100%;margin-top:6px;padding:10px}#switches{margin-top:10px}#switches button{padding:10px}#switches button[aria-pressed=true],button[data-command][aria-pressed=true]{background:#cce6d9}#bot-command-status{display:block;margin:3px 0 8px}.command-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px}.command-grid button{padding:10px;font-size:13px}#game-tip{position:fixed;bottom:93px;right:18px;max-width:340px;font-size:13px;background:#fffdf4e8;padding:9px 13px;border-radius:12px;pointer-events:none}#game-tip:empty{display:none}body:has(#actions:not([hidden])) #game-tip{display:none}#toast{position:fixed;top:130px;left:50%;transform:translateX(-50%);background:#733e32;color:#fff;padding:10px 16px;border-radius:12px;pointer-events:none;text-align:center}#toast:empty{display:none}.joystick{display:none;position:fixed;bottom:28px;left:25px;width:110px;height:110px;border:2px solid #ffffff90;border-radius:50%;background:#fff8;touch-action:none;align-items:center;justify-content:center}.joystick span{width:45px;height:45px;background:#426f60aa;border-radius:50%}#bill{font-size:14px;margin:20px 0}#bill .line{display:flex;justify-content:space-between;gap:15px;padding:8px 0;border-bottom:1px solid #e2e0d5}.modal details{padding:10px 0}.modal summary{cursor:pointer}.modal p{font-size:14px}@media(pointer:coarse){.joystick{display:flex}}@media(max-width:600px){.prep,.modal{padding:23px;border-radius:22px}.slots{grid-template-columns:1fr 1fr}.slot{padding:9px;gap:6px}.slot b{font-size:12px}.slot small{font-size:10px}.hud{left:10px;top:10px;gap:10px;font-size:12px;padding:10px}.menu-open{top:10px;right:10px}.crew{left:10px;top:60px}.action-control{right:12px;width:205px;bottom:22px}.action-control button{padding:10px;font-size:13px}#game-tip{right:12px;max-width:230px;font-size:12px}.joystick{left:16px;width:96px;height:96px}.row{flex-wrap:wrap}.room-line{font-size:12px}.room-line button{padding:10px}.prep .row button{font-size:12px}#cargo-health{max-width:110px}.crew-chip{width:58px}}
/* Painted toy-town screens and tactile game controls. */
:root{color:#343d37;background:#c7d8b7;font-family:ui-rounded,'Trebuchet MS',Arial,sans-serif}button{border:2px solid #46594b;border-radius:14px;box-shadow:0 4px 0 #46594b;padding:12px 18px;transition:transform .15s,box-shadow .15s,background .15s}button:hover:not(:disabled){transform:translateY(-2px);background:#fff3cb;box-shadow:0 6px 0 #46594b}button:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #46594b}.primary{background:#f8c95f;border-color:#826236;box-shadow:0 5px 0 #826236}.primary:hover:not(:disabled){background:#ffdb7e;box-shadow:0 7px 0 #826236}button:disabled{opacity:.5;box-shadow:0 2px 0 #788576}.eyebrow{letter-spacing:2.4px;font-size:10px;font-weight:900}.city-screen{position:fixed;inset:0;background:radial-gradient(ellipse at 37% 40%,#e6ebcd 0,#ccdcb9 55%,#b7cbb0 100%);overflow:auto}.city-header{position:absolute;top:30px;left:42px;right:42px;z-index:3;display:flex;justify-content:space-between;align-items:center;pointer-events:none}.city-header h1{font-size:clamp(34px,4.6vw,67px);margin:8px 0;color:#354c41;letter-spacing:-3px;text-shadow:0 3px 0 #f3f0d7}.city-header h1 em{color:#d0774c}.chapter-stamp{font-size:10px;letter-spacing:2px;text-align:right;color:#4e6b54;line-height:1.7}.chapter-stamp b{font-size:14px;letter-spacing:0}.city-map{position:absolute;left:0;top:140px;bottom:20px;right:355px}.city-map canvas{width:100%;height:100%}#city-pins{position:absolute;inset:0;pointer-events:none}.map-pin{position:absolute;transform:translate(-50%,-5%);padding:7px 12px;border:2px solid #f7eed6;border-radius:10px;box-shadow:0 3px 0 #718474;background:#fff5df;pointer-events:auto;white-space:nowrap;font-size:12px;z-index:1}.map-pin b{display:block}.map-pin small{display:block;color:#527459;font-size:9px;margin-top:2px}.map-pin:hover:not(:disabled){transform:translate(-50%,-12%);box-shadow:0 5px 0 #718474}.map-pin[aria-pressed=true]{background:#ffdb7e;border-color:#fff4c3;box-shadow:0 4px 0 #aa783f;z-index:3}.map-pin.locked{background:#d8dfcd;color:#66715e;border-color:#e7ead9}.pin-symbol{position:absolute;left:50%;top:-28px;transform:translateX(-50%);width:27px;height:27px;display:grid;place-items:center;background:#edb952;border:2px solid #fff0cb;border-radius:50%;font-weight:900;font-size:17px;box-shadow:0 2px 0 #aa783f}.locked .pin-symbol{background:#7b8d77;border-color:#d7dfcd;box-shadow:0 2px 0 #5b6d59}.lock-icon{width:10px;height:9px;border-radius:2px;background:#f8ecd1;position:relative}.lock-icon:before{content:'';position:absolute;left:1px;top:-6px;width:8px;height:8px;border:2px solid #f8ecd1;border-radius:7px;box-sizing:border-box}.map-caption{position:absolute;bottom:12px;left:45px;font-size:12px;color:#617258;font-style:italic}.order-ticket{position:absolute;right:32px;top:157px;width:306px;padding:24px;background:#fff4d9;border:2px solid #fdf7e7;border-radius:9px 9px 24px 24px;box-shadow:0 7px 0 #95a484,0 18px 30px #45584020;transform:rotate(1deg);z-index:4}.order-ticket:before{content:'';position:absolute;left:100px;top:-13px;width:95px;height:27px;background:#e5b96399;transform:rotate(-4deg)}.ticket-tag{font-size:9px;font-weight:900;letter-spacing:2px;color:#8e8b69}.order-ticket h2{font-size:29px;margin:7px 0 10px}.order-ticket p{font-size:13px;line-height:1.5;margin:10px 0}.order-ticket #location-number{font-size:9px}#order-art{height:92px;display:grid;place-items:center;font-size:67px;filter:drop-shadow(0 6px 0 #dbc59c)}.order-stats{display:flex;gap:6px;margin:15px 0}.order-stats span{font-size:10px;font-weight:700;padding:7px;background:#e9e6c9;border-radius:7px}.order-ticket .reward{font-size:28px;font-weight:900;margin:18px 0}.reward small{font-size:11px;font-weight:400}.order-ticket>button{width:100%;margin-bottom:12px;font-size:14px}.order-ticket form{border-top:2px dashed #d9caa7;margin-top:10px;padding-top:14px}.order-ticket label{font-size:10px}.order-ticket input{font-size:12px;background:#fffbef;border-color:#d6c9a8}.order-ticket form button{flex:0 0 42px;padding:10px}.order-ticket form .row{gap:5px}.order-ticket #join-error{color:#b3513c}.city-screen~.connection{z-index:20}body[data-screen=home] .game-shell,body[data-screen=lobby] .game-shell{visibility:hidden}body[data-screen=lobby]{background:radial-gradient(ellipse at 50% 45%,#ecead0,#c0d3b3)}body[data-screen=lobby]:before{content:'';position:fixed;inset:0;background:repeating-linear-gradient(120deg,transparent 0 90px,#ffffff0b 90px 180px)}#lobby{width:min(1000px,calc(100vw - 44px));background:#fff3d7;border:3px solid #fff8e5;box-shadow:0 9px 0 #889d7e,0 20px 60px #35584026;border-radius:28px;padding:28px 34px;max-height:calc(100dvh - 45px)}.lobby-heading{display:flex;align-items:center;justify-content:space-between}.lobby-heading h1{font-size:43px;letter-spacing:-2px;margin:8px 0}.crew-seal{border:3px solid #6c8667;border-radius:50%;width:75px;height:75px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:31px;font-weight:900;color:#53724f;transform:rotate(12deg);flex-shrink:0}.crew-seal small{font-size:9px;color:inherit}.lobby-subtitle{font-size:12px;margin:4px 0 18px}.room-line{font-size:12px}.room-line button{font-size:12px;padding:8px 14px}.crew-stage{position:relative;margin:18px 0}.crew-stage canvas{position:absolute;inset:0;pointer-events:none;width:100%;height:100%}.slots{grid-template-columns:repeat(4,1fr);gap:12px;margin:0}.slot{position:relative;display:block;padding:0;overflow:hidden;background:linear-gradient(155deg,#f0e7ce,#e0e5c6);border:2px solid #c5cbae;border-radius:20px;box-shadow:0 4px 0 #b1bba0;outline:0}.slot.you{border-color:#5b8b64;box-shadow:0 4px 0 #5b8b64}.slot .avatar{position:absolute;left:10px;top:10px;width:26px;height:26px;color:#fffdf0;font-weight:900;border:2px solid #fff8de;z-index:2}.portrait-space{height:185px;background:radial-gradient(ellipse at 50% 80%,#b7c4a677,transparent 65%)}.mover-info{position:relative;padding:12px 9px 14px;border-top:1px solid #cdd1b5;background:#fff7e5d9;text-align:center;min-height:94px;z-index:2}.slot b{font-size:14px}.slot span{font-size:10px;margin:5px 0}.slot small{display:inline-block;border-radius:7px;padding:4px 8px;background:#ecd8ab;color:#7a6345;font-size:10px;font-weight:700}.back-map{display:block;text-align:center;margin-top:17px;font-size:12px;text-decoration:none;font-weight:700}#lobby-copy{font-size:12px;margin:12px 0}#lobby select{background:#fff9e9}#lobby .row button{font-size:13px}.modal{background:#fff3d7;border:3px solid #fff8e5;box-shadow:0 8px 0 #899b7c,0 20px 80px #243b4930}.hud,.crew-chip,#actions,#game-tip{background:#fff4dbeF;border:2px solid #ecdfb9;box-shadow:0 3px 0 #7d927e70}.crew-chip.me{outline:2px solid #58805d}.menu-open{background:#fff1ce}.joystick{border-color:#fff2c4;box-shadow:inset 0 4px 0 #6e897733;background:#e2e5beaa}.joystick span{background:#71967a;box-shadow:0 4px 0 #496e53}#toast{border:2px solid #efba86;box-shadow:0 4px 0 #5c4331;background:#a2523c}
@media(max-width:1000px){.city-header{left:25px;right:25px}.city-map{right:300px;top:120px}.order-ticket{right:18px;width:275px;top:140px;padding:20px}.map-pin{font-size:10px;padding:6px 9px}.map-caption{left:20px;font-size:10px}.chapter-stamp{display:none}#lobby{padding:24px}.portrait-space{height:160px}.slots{gap:8px}}
@media(max-width:700px){.city-screen{position:fixed;overflow-y:auto;display:flex;flex-direction:column}.city-header{position:relative;top:auto;left:auto;right:auto;padding:22px 20px 0}.city-header h1{font-size:39px;letter-spacing:-2px}.city-header .eyebrow{font-size:8px}.city-map{position:relative;inset:auto;height:430px;min-height:430px;width:100%;margin-top:-10px}.map-pin{font-size:9px;padding:5px 7px}.map-pin small{font-size:8px}.pin-symbol{width:23px;height:23px;top:-24px}.map-caption{bottom:3px}.order-ticket{position:relative;inset:auto;transform:none;width:calc(100% - 36px);margin:10px 18px 35px;padding:20px}.order-ticket:before{left:calc(50% - 45px)}#order-art{float:right;width:80px;height:80px;font-size:55px}.order-ticket h2{font-size:27px}.order-ticket .reward{font-size:25px}.order-ticket .row{flex-wrap:nowrap}#lobby{padding:20px;width:calc(100vw - 24px);border-radius:20px;max-height:calc(100dvh - 26px)}.lobby-heading h1{font-size:30px;letter-spacing:-1px}.crew-seal{width:54px;height:54px;font-size:24px}.crew-seal small{font-size:7px}.lobby-subtitle{font-size:10px;max-width:270px}.slots{grid-template-columns:repeat(2,1fr);gap:12px}.portrait-space{height:145px}.mover-info{padding:8px;min-height:81px}.slot b{font-size:12px}.slot span{font-size:9px}.slot small{font-size:9px}.room-line{font-size:10px}.room-line button{font-size:10px;padding:8px}.crew-stage{margin:14px 0}.hud{font-size:11px}.hud,.crew-chip{border-width:1px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
#city-canvas{cursor:pointer}.ticket-lock{display:grid;place-items:center;width:65px;height:65px;border-radius:50%;background:#899d7c;border:4px solid #efe5bc;box-shadow:0 4px 0 #63795b}.ticket-lock .lock-icon{transform:scale(2.2)}@media(max-width:700px){#order-art svg{width:95px;height:75px}.map-pin{min-height:30px}}
@media(max-width:700px){#lobby .lobby-launch{position:sticky;bottom:-20px;background:#fff3d7;padding:12px 0 19px;margin:0 -2px;z-index:5;box-shadow:0 -10px 14px #fff3d7}.back-map{margin-bottom:9px}}
/* Fit the order to the available window height, including short laptop windows. */
@media(min-width:701px){
  .order-ticket{
    --ticket-top:clamp(100px,15dvh,157px);
    top:var(--ticket-top);
    max-height:calc(100dvh - var(--ticket-top) - 24px);
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:#b6b393 transparent;
    transform:none;
  }
  .order-ticket:before{top:0;height:16px}
}
@media(min-width:701px) and (max-height:800px){
  .order-ticket{padding:20px}
  #order-art{height:62px}
  #order-art svg{height:65px}
  .order-ticket h2{font-size:26px;margin:5px 0 8px}
  .order-ticket p{font-size:12px;margin:8px 0}
  .order-stats{margin:10px 0}
  .order-ticket .reward{font-size:26px;margin:10px 0}
  .order-ticket>button{margin-bottom:10px;padding:10px 14px}
  .order-ticket form{margin-top:7px;padding-top:10px}
}
@media(max-width:700px){.order-ticket{flex-shrink:0}}
/* Compact lobby: room tools above the crew, readiness belongs to your mover. */
#lobby{width:min(920px,calc(100vw - 32px));padding:20px 24px;max-height:calc(100dvh - 36px)}
.lobby-heading h1{font-size:34px;margin:5px 0;letter-spacing:-1.5px}
.lobby-heading .eyebrow{margin:3px 0;font-size:9px}
.lobby-subtitle{font-size:12px;margin:4px 0 12px}
.crew-seal{width:56px;height:56px;font-size:25px}.crew-seal small{font-size:8px}
.room-line{gap:12px}.room-tools{display:flex;align-items:center;gap:8px}
.room-tools button{white-space:nowrap;font-size:11px;padding:8px 12px}
#bots[aria-pressed=true]{background:#dbe8c4;border-color:#63815b;box-shadow:0 4px 0 #63815b}
.crew-stage{margin:14px 0 10px}.portrait-space{height:clamp(110px,20dvh,155px)}
.mover-info{padding:9px 8px;min-height:84px}.slot b{font-size:13px}.slot span{font-size:10px;margin:4px 0}.slot small{padding:3px 7px}
#ready{display:block;width:100%;padding:7px 8px;font-size:12px;margin:8px 0 4px;min-height:33px}
#ready[aria-pressed=true]{background:#d4e6bc;border-color:#63815b;box-shadow:0 3px 0 #63815b}
#lobby-copy{font-size:11px;margin:10px 0}.lobby-bottom .row{gap:10px}
#lobby .lobby-launch{position:static;padding:0;margin:0;box-shadow:none}
#lobby .lobby-launch button{padding:10px 12px;font-size:12px}
.back-map{margin:13px 0 0;font-size:11px}
@media(max-width:700px){
 #lobby{padding:16px;width:calc(100vw - 20px);max-height:calc(100dvh - 24px)}
 .lobby-heading h1{font-size:27px}.lobby-heading .eyebrow{font-size:8px;letter-spacing:1.6px}
 .lobby-subtitle{font-size:11px;margin-bottom:10px}.crew-seal{width:45px;height:45px;font-size:21px}
 .room-line{align-items:flex-start;gap:7px;flex-wrap:wrap}.room-tools{margin-left:auto;gap:6px}
 .room-tools button{font-size:10px;padding:7px 9px}
 .room-line>span{line-height:32px}.crew-stage{margin-top:12px}.slots{gap:9px}
 .portrait-space{height:105px}.mover-info{padding:7px;min-height:74px}.slot b{font-size:12px}.slot small{font-size:9px}
 .slot .avatar{width:23px;height:23px;left:7px;top:7px}#ready{font-size:11px;padding:6px;min-height:31px;margin-top:6px}
 #lobby .lobby-launch button{font-size:11px;padding:9px 7px}.back-map{margin-top:11px}
}
/* Saturated casual-game art direction. */
:root{color:#283e73;background:#bce5fc}button{border-color:#3f5890;box-shadow:0 4px 0 #3f5890;color:#304576;background:linear-gradient(#fff,#eaf2ff);border-radius:16px;font-weight:900}button:hover:not(:disabled){background:#fff6cc;box-shadow:0 6px 0 #3f5890}.primary{background:linear-gradient(#ffde66,#ffb734);border:2px solid #fff0a3;box-shadow:0 5px 0 #c68022;color:#684019}.primary:hover:not(:disabled){background:linear-gradient(#ffeb91,#ffc345);box-shadow:0 7px 0 #c68022}.city-screen{background:radial-gradient(ellipse at 45% 25%,#e0f8ff,#aedcf6 65%,#8dc8ef)}.city-header{top:20px}.city-header h1{color:#3548a2;text-shadow:0 4px 0 #fff,0 7px 0 #74a9d0;transform:rotate(-2deg)}.city-header h1 em{color:#ff7756}.city-header .eyebrow{color:#427db3}.chapter-stamp{color:#3677b0}.chapter-stamp b{background:#fff8;border:2px solid #fff;padding:6px 12px;border-radius:14px}.district-tabs{position:absolute;left:35px;top:136px;right:365px;display:flex;gap:7px;z-index:5;flex-wrap:wrap}.district-tabs button{padding:8px 13px;font-size:11px;background:#f3fbff;border-color:#fff;box-shadow:0 3px 0 #6eabdb}.district-tabs button:hover{background:#ffde79}.city-map{top:180px;bottom:12px}.map-caption{color:#386faa;bottom:8px}.map-controls{position:absolute;bottom:34px;left:32px;display:flex;gap:7px;z-index:6}.map-controls button{font-size:13px;padding:10px 14px;background:#fff;border:2px solid #ccecff;box-shadow:0 4px 0 #5f9bd0}.map-pin{background:#fff;border:2px solid #fff;box-shadow:0 4px 0 #4685b6;color:#294479}.map-pin[aria-pressed=true]{background:linear-gradient(#ffe58a,#ffc353);border-color:#fff6c8;box-shadow:0 5px 0 #bb842b;color:#714a18}.map-pin.locked{background:#e1eafa;color:#4d648d;border-color:#fff;box-shadow:0 3px 0 #6e8fb0}.pin-symbol{background:#ffad38;border-color:#fff8bf;color:#fff;box-shadow:0 3px 0 #c8792e}.locked .pin-symbol{background:#8a8dde;border-color:#e4e7ff;box-shadow:0 3px 0 #5c68a1}.map-pin small{color:#4b75ae}.map-pin.far-pin:not(:hover):not(:focus-visible) b{display:none}.map-pin.far-pin{padding:0;width:28px;height:27px;border:0;background:none;box-shadow:none}.map-pin.far-pin .pin-symbol{top:0}.map-pin.far-pin:hover{width:auto;height:auto;padding:7px 11px;background:#e9f2ff}.map-pin.far-pin:hover .pin-symbol{top:-26px}.order-ticket{background:linear-gradient(150deg,#fffdf4,#fff1cf);border:3px solid #fff;box-shadow:0 7px 0 #68a5d0,0 20px 30px #3775a92b;border-radius:22px;top:max(150px,16dvh)}.order-ticket:before{background:#f8c853b3}.ticket-tag{color:#ab783e}.order-ticket h2{color:#3a4d8e}.order-ticket p{color:#596b90}.order-ticket .eyebrow{color:#c9824b}.order-stats span{background:#dceefe;color:#447aaa}.order-ticket .reward{color:#d38a1e}.reward small{color:#8c785c}.order-ticket input{background:#fff;border-color:#bddbf1}.ticket-lock{background:#8d8cdb;border-color:#e1e5ff;box-shadow:0 4px 0 #5864a5}.order-ticket form{border-color:#b8d7eb}body[data-screen=lobby]{background:radial-gradient(ellipse at 50% 35%,#dfeaff,#9dc9f4)}#lobby,.modal{background:linear-gradient(140deg,#fff8e6,#eef5ff);border-color:#fff;box-shadow:0 8px 0 #648fc3,0 24px 70px #456d9733}.lobby-heading h1{color:#3b5095;text-shadow:0 2px 0 #fff}.crew-seal{background:#ffdc69;border-color:#fff3ba;color:#9f7021;box-shadow:0 3px 0 #c38e37}.slot{border-color:#adc8ec;background:#dfeafd;box-shadow:0 4px 0 #86a7d5}.slot.you{border-color:#f4b538;box-shadow:0 4px 0 #d69429}.portrait-space{background:radial-gradient(ellipse,#eefaff,#b7d5fc)}.mover-info{background:#fff8e7;border-color:#cbdcee}.slot small{background:#e3dcff;color:#7660ac}.slot:nth-child(2) .portrait-space{background:#c4eafa}.slot:nth-child(3) .portrait-space{background:#fff0ac}.slot:nth-child(4) .portrait-space{background:#c4f3df}#ready[aria-pressed=true],#bots[aria-pressed=true]{background:linear-gradient(#b5ef8c,#86d663);border-color:#e9ffd6;box-shadow:0 4px 0 #599844;color:#326435}.lobby-subtitle,#lobby-copy,.room-line{color:#60759b}.back-map{color:#4380bd}.hud,.crew-chip,#actions,#game-tip{background:#f7fbfff2;border-color:#d7edff;box-shadow:0 3px 0 #6097c299;color:#3a568c}.crew-chip.me{outline-color:#edae36}.menu-open{background:#ffdc72}.joystick{border-color:#e3f9ff;background:#acd9efaa}.joystick span{background:#5d9dd2;box-shadow:0 4px 0 #4075b2}#toast{background:#f16e5b;border-color:#ffc39e;box-shadow:0 4px 0 #b95549}
@media(min-width:701px){.order-ticket{top:var(--ticket-top)}}
@media(max-width:1000px){.district-tabs{left:20px;right:300px;top:120px;gap:5px}.district-tabs button{padding:7px 9px;font-size:10px}.city-map{top:195px}}
@media(max-width:700px){.city-header{top:auto;padding-top:18px}.city-header h1{font-size:36px}.district-tabs{position:relative;inset:auto;padding:10px 18px 0;gap:6px;flex-wrap:nowrap;overflow-x:auto;min-height:49px;flex-shrink:0}.district-tabs button{flex-shrink:0;padding:6px 10px}.city-map{top:auto;height:415px;min-height:415px;margin-top:0}.order-ticket{top:auto;max-height:none}.map-controls{left:18px;bottom:30px;gap:6px}.map-controls button{font-size:11px;padding:8px 11px}.map-caption{font-size:9px;bottom:3px}.map-pin{font-size:9px}.map-pin.far-pin{width:24px}.order-ticket .reward{font-size:25px}}
.district-tabs button[aria-pressed=true]{background:linear-gradient(#ffe596,#ffcf5c);color:#855320}.departing .order-ticket,.departing .city-header,.departing .district-tabs,.departing .map-controls{opacity:0;transition:opacity .3s}.departing #city-pins{opacity:0;transition:opacity .25s}#lobby:not([hidden]){animation:lobby-arrive .35s ease-out}@keyframes lobby-arrive{from{opacity:0;translate:0 14px}to{opacity:1;translate:0 0}}#celebration{position:fixed;inset:0;z-index:15;pointer-events:none;overflow:hidden}#celebration i{position:absolute;left:var(--x);top:-20px;width:10px;height:18px;border-radius:3px;animation:confetti-fall 2.6s var(--delay) ease-in both}@keyframes confetti-fall{to{transform:translateY(110dvh) rotate(var(--spin))}}@media(prefers-reduced-motion:reduce){#lobby:not([hidden]),#celebration i{animation:none}.departing .order-ticket,.departing .city-header{transition:none}}

/* The city is the full-screen scene; navigation and the order float above it. */
.city-screen{display:block;overflow:hidden;isolation:isolate}
.city-map{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;z-index:0}
.city-header{position:absolute;top:20px;left:32px;right:32px;padding:0}
.district-tabs{position:absolute;top:136px;left:32px;right:365px}
.order-ticket{position:absolute;right:24px;top:var(--ticket-top);margin:0;max-height:calc(100dvh - var(--ticket-top) - 24px)}
.map-controls{bottom:40px}
.map-caption{bottom:14px}
@media(max-width:1000px) and (min-width:701px){.city-header{left:20px;right:20px}.district-tabs{top:120px;left:20px;right:300px}.order-ticket{right:18px}}
@media(max-width:700px){
 .city-header{top:12px;left:18px;right:18px}.city-header h1{font-size:30px;margin:4px 0}.city-header .eyebrow{font-size:7px;margin:0 0 5px}
 .district-tabs{top:80px;left:0;right:0;padding:0 12px 7px;min-height:0;gap:6px}
 .city-map{position:absolute;inset:0;height:100%;min-height:0;margin:0}
 .order-ticket{position:absolute;top:auto;bottom:12px;left:12px;right:12px;width:auto;margin:0;padding:12px 15px;max-height:36dvh;overflow-y:auto;border-radius:18px}
 .order-ticket:before,.ticket-tag,.order-ticket #location-number{display:none}
 #order-art{float:right;width:64px;height:46px}#order-art svg{width:64px;height:46px}
 .order-ticket h2{font-size:22px;margin:0 0 5px}.order-ticket p{font-size:11px;margin:5px 0}.order-stats{margin:7px 0}.order-stats span{padding:4px 6px;font-size:9px}
 .order-ticket .reward{font-size:20px;margin:7px 0}.order-ticket>button{padding:8px 10px;margin-bottom:8px;font-size:12px}.order-ticket form{margin-top:3px;padding-top:8px}
 .map-controls{left:auto;right:14px;bottom:calc(36dvh + 25px)}.map-caption{display:none}
}
/* Compact city branding keeps the map visually dominant. */
.city-header h1{font-size:28px;letter-spacing:-1px;margin:4px 0;transform:none;text-shadow:0 2px 0 #fff,0 3px 0 #74a9d0}
.city-header .eyebrow{font-size:8px;letter-spacing:1.6px;margin:0 0 5px}
.district-tabs{top:91px}
@media(max-width:1000px) and (min-width:701px){.district-tabs{top:91px}}
@media(max-width:700px){.city-header h1{font-size:22px;letter-spacing:-.7px}.city-header .eyebrow{font-size:6px;letter-spacing:1.2px}.district-tabs{top:66px}}

.city-header .game-brand{margin:0;width:174px;height:116px;line-height:0}
.game-brand img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 2px #24639b30)}
.district-tabs{top:148px}
#order-art{height:106px;filter:none;overflow:visible}
.order-illustration{display:block;width:100%;height:100%;object-fit:contain}
@media(max-height:800px) and (min-width:701px){#order-art{height:80px}}
@media(max-width:1000px) and (min-width:701px){.district-tabs{top:148px}}
@media(max-width:700px){.city-header .game-brand{width:120px;height:80px}.district-tabs{top:103px}#order-art{height:60px;width:84px;float:right;margin:0 0 4px 8px}}
#order-art{display:block;min-height:0;overflow:hidden}
#order-art .order-illustration{width:100%;height:100%;min-width:0;min-height:0;max-height:100%;object-fit:contain}

.district-menu{position:relative;color:#304576}
.district-menu summary{list-style:none;cursor:pointer;background:#fff;border:2px solid #ccecff;border-radius:16px;box-shadow:0 4px 0 #5f9bd0;padding:10px 14px;font-size:13px;font-weight:900;white-space:nowrap}
.district-menu summary::-webkit-details-marker{display:none}
.district-menu summary:focus-visible{outline:3px solid #277466;outline-offset:3px}
.district-options{position:absolute;bottom:calc(100% + 12px);left:0;width:230px;max-height:45dvh;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;background:#f0f8ff;border:2px solid white;border-radius:18px;box-shadow:0 6px 20px #345b8b40}
.map-controls .district-options button{white-space:normal;font-size:11px;padding:8px 6px}
.district-options button[aria-pressed=true]{background:#ffde79}
@media(max-width:700px){.district-menu summary{font-size:11px;padding:8px 11px}.district-options{width:220px;max-height:38dvh}}

#lobby-brief{font-size:12px;line-height:1.4;margin:8px 0;color:#64789c;max-width:760px}.cargo-emblem{display:grid;place-items:center;height:100%;font-size:60px;filter:drop-shadow(0 4px 0 #d6c79b)}

.crew{gap:8px;pointer-events:auto;top:76px;align-items:start}
.crew-chip{position:relative;width:100px;padding:6px;border-radius:18px;background:#f4faff;border:2px solid #d8ecff;box-shadow:0 4px 0 #719bb8;font-size:11px;text-align:center}
.crew-chip.me{outline:3px solid #ffbc37;outline-offset:1px}
.crew-face{height:62px;border-radius:12px;background:radial-gradient(ellipse,#fff,var(--crew-color));overflow:hidden}.crew-face img{width:100%;height:100%;object-fit:contain;display:block}
.crew-number{position:absolute;left:5px;top:5px;border-radius:50%;background:var(--crew-color);color:#fff;border:2px solid white;width:22px;height:22px;display:grid;place-items:center}
.crew-perk{display:block;margin:5px 0;white-space:nowrap;font-size:10px;font-weight:700}
.stamina-meter{height:20px;position:relative;border:2px solid #456674;border-radius:8px;overflow:hidden;background:#39576a}
.crew-chip progress{display:block;appearance:none;-webkit-appearance:none;width:100%;height:100%;margin:0;border:0;border-radius:0;background:transparent}
.crew-chip progress::-webkit-progress-bar{background:#39576a}.crew-chip progress::-webkit-progress-value{background:linear-gradient(#9af578,#46bd65)}.crew-chip progress::-moz-progress-bar{background:#61d679}
.stamina-meter strong{position:absolute;inset:0;display:grid;place-items:center;color:white;font-size:11px;text-shadow:0 1px 2px #183844,1px 0 #183844;pointer-events:none}
.crew-chip.tired progress::-webkit-progress-value{background:#f6be43}.crew-chip.low progress::-webkit-progress-value{background:#fa655d}.crew-chip.low{border-color:#ff665d}.crew-chip.exhausted .crew-face{filter:saturate(.35)}
.game-zoom{position:fixed;right:18px;top:74px;display:flex;gap:5px}.game-zoom button{font-size:13px;padding:8px 11px;background:#fff9e4}
@media(max-width:700px){.crew{left:10px;top:66px;gap:5px}.crew-chip{width:65px;padding:4px;border-radius:13px}.crew-face{height:43px}.crew-perk{font-size:8px;margin:4px 0}.crew-number{width:18px;height:18px;font-size:10px}.stamina-meter{height:18px}.game-zoom{top:180px;right:10px}.game-zoom button{padding:7px 9px;font-size:11px}}

.crew-chip.tired progress::-moz-progress-bar{background:#f6be43}.crew-chip.low progress::-moz-progress-bar{background:#fa655d}
/* Order pins stay compact; labels appear only for intentional discovery. */
#city-pins .map-pin,#city-pins .map-pin.far-pin{width:34px;height:34px;padding:0;background:none;border:0;box-shadow:none;overflow:visible;z-index:1}
#city-pins .map-pin .pin-symbol{position:absolute;inset:0;margin:0;transform:none;width:34px;height:34px;display:grid;place-items:center;font-size:23px;border-radius:50%;transition:scale .18s}
#city-pins .map-pin b,#city-pins .map-pin small{display:none}
#city-pins .map-pin:is(:hover,:focus-visible,.revealed,.building-hover){z-index:8}
#city-pins .map-pin:is(:hover,:focus-visible,.revealed,.building-hover) b{display:block;position:absolute;top:40px;left:50%;transform:translateX(-50%);padding:9px 12px;background:#fffdf3;color:#334c79;border:2px solid #fff;border-radius:12px;box-shadow:0 4px 0 #5484ac;white-space:nowrap;font-size:12px;animation:pin-label-in .18s ease-out}
#city-pins .map-pin:is(:hover,:focus-visible,.building-hover) .pin-symbol{scale:1.12}
#city-pins .map-pin[aria-pressed=true] .pin-symbol{outline:3px solid #fff6bc;outline-offset:3px}
@keyframes pin-label-in{from{opacity:0;translate:0 -5px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){#city-pins .map-pin b{animation:none!important}.pin-symbol{transition:none!important}}
#music-toggle[aria-pressed=false]{background:#dce8f4;color:#657590}
@media(max-width:700px){.map-controls{max-width:calc(100vw - 24px);flex-wrap:wrap;justify-content:flex-end}.map-controls #music-toggle{font-size:10px;padding:8px}}
.order-ticket::before{content:none}
.order-ticket>#solo{margin-bottom:0}
.friends-open{position:absolute;top:24px;right:24px;z-index:7;width:52px;height:52px;display:grid;place-items:center;padding:8px;background:#fff9e7;border:2px solid #fff;box-shadow:0 4px 0 #6097c2;color:#3e6089}
.city-header .chapter-stamp{margin-right:68px}
#friends-dialog{position:fixed;inset:88px 24px auto auto;margin:0;width:min(350px,calc(100vw - 24px));max-height:calc(100dvh - 110px);overflow:auto;padding:26px 22px 22px;border:3px solid #fff;border-radius:22px;background:#fff8e7;color:#354d7f;box-shadow:0 7px 0 #669fbe,0 18px 45px #244d7340}
#friends-dialog::backdrop{background:#25476a22}
#friends-dialog[open]{animation:pin-label-in .2s ease-out}
#friends-title{font-size:22px;letter-spacing:-.5px;margin:0 34px 20px 0}
.friends-close{position:absolute;top:10px;right:12px;width:32px;height:32px;padding:0;font-size:23px;box-shadow:none;border:0;background:transparent}
#friends-dialog form{margin:0;padding:0;border:0}
#friends-dialog label{font-size:12px;color:#61708a;line-height:1.4}
#friends-dialog input{font-size:14px;min-width:0;background:#fff;border-color:#c1d7e6}
#friends-dialog .row{gap:7px}#friends-dialog .row button{flex:0 0 44px;padding:10px}
#join-error{display:block;color:#a63f47;margin-top:6px}
@media(max-width:700px){.friends-open{top:14px;right:14px;width:46px;height:46px}.city-header .chapter-stamp{display:none}#friends-dialog{top:75px;right:12px;max-height:calc(100dvh - 95px)}}
@media(prefers-reduced-motion:reduce){#friends-dialog[open]{animation:none}}

/* Order briefing above the crew; team skills and primary launch below. */
.lobby-heading>div:first-child{min-width:0}
.lobby-order-description{margin:8px 0 16px;max-width:700px}
.lobby-order-description .lobby-subtitle{margin:0;font-weight:700}
#lobby .lobby-order-description #lobby-brief{margin:5px 0 0;font-size:12px;line-height:1.45}
.crew-tools{display:flex;justify-content:center;margin:14px 0 18px}
#reroll{font-size:12px;padding:8px 22px}
#lobby-copy{text-align:center;margin:10px 0 12px}
#lobby .lobby-launch{display:flex;justify-content:center}
#lobby .lobby-launch #start{flex:none;width:min(100%,480px);min-height:58px;padding:16px 28px;font-size:19px;border-radius:19px}
@media(max-width:700px){
 .lobby-heading{align-items:flex-start;gap:10px}
 .lobby-order-description{margin-bottom:12px}
 #lobby .lobby-order-description #lobby-brief{font-size:11px}
 .crew-tools{margin:13px 0 16px}
 #lobby .lobby-launch #start{min-height:54px;font-size:17px;padding:14px 18px}
}

/* No rectangular mobile backing behind the rounded launch button. */
#lobby .lobby-launch{background:transparent}

/* A single top-right row keeps the chapter caption clear of the friends control. */
.city-corner{position:absolute;top:24px;right:24px;z-index:7;display:flex;align-items:center;gap:14px}
.city-corner .chapter-stamp{display:flex;flex-direction:column;gap:5px;line-height:1.2;margin:0;text-align:right}
.city-corner .chapter-stamp>span{display:block;font-size:9px;letter-spacing:1.6px;padding-right:3px}
.city-corner .chapter-stamp b{display:block;line-height:1.2;white-space:nowrap;background:#edf8ff;border:2px solid #fff;padding:7px 12px;border-radius:14px}
.city-corner .friends-open{position:static;flex:none}
@media(max-width:700px){.city-corner{top:14px;right:14px}.city-corner .chapter-stamp{display:none}}

/* Friends are part of the map toolbar. */
.map-controls{align-items:center}
.map-controls .friends-open{position:static;flex:0 0 42px;width:42px;height:42px;padding:7px}
.map-controls .friends-open svg{width:24px;height:24px}
#friends-dialog{inset:auto auto 100px 32px;max-height:calc(100dvh - 24px)}
@media(max-width:700px){.map-controls{left:14px;right:auto;justify-content:flex-start}.map-controls .friends-open{flex-basis:36px;width:36px;height:36px;padding:5px}}
.order-ticket .order-record{font-size:11px;font-weight:700;color:#397c63;margin:7px 0}
#save-status{font-size:12px;color:#397c63;margin:12px 0}

#diagnostics{position:fixed;left:12px;bottom:12px;z-index:1000;white-space:pre-line;background:#15233eea;color:#fff;padding:10px 14px;border-radius:12px;font:12px/1.55 monospace;pointer-events:none;max-width:calc(100vw - 24px)}
#diagnostics[hidden]{display:none}

.mobile-turns{display:none;gap:10px;margin-bottom:10px}.mobile-turns button{flex:1;min-height:52px;font-size:28px;touch-action:none;user-select:none;-webkit-user-select:none}#turn-left,#turn-right{touch-action:none;user-select:none}
@media(pointer:coarse),(max-width:600px){.mobile-turns{display:flex}#game-tip{bottom:156px}}
