@font-face{font-family:TD Pixel;src:url('./assets/pixelify-sans.ttf') format('truetype');font-weight:400 700;font-display:swap}
/* Use the existing UI font for digits so 2, 5 and 8 stay distinct at HUD sizes. */
@font-face{font-family:TD Pixel;src:url('./assets/nunito.ttf') format('truetype');font-weight:400 700;font-display:swap;unicode-range:U+0030-0039}
@font-face{font-family:TD Text;src:url('./assets/nunito.ttf') format('truetype');font-weight:200 900;font-display:swap}
#game .guide-target{animation:none!important}
#game #mainAction.skyline-action::after{display:none}

/* The weekly exercise has its own vertical flow and wrapping answer grid. */
body:not(.phone) #game #panel[data-kind="civic"]{width:min(980px,calc(100% - 32px))}
#game #panel[data-kind="civic"] .panel-head>div{min-width:0}
#game #panel[data-kind="civic"] #panelTitle{white-space:normal;overflow:visible}
#game #panel[data-kind="civic"] #closePanel{flex:none}
#game #panel[data-kind="civic"] .civic-terminal{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;max-width:760px;margin:0 auto}
#game #panel[data-kind="civic"] .civic-terminal :is(h2,h3,p){margin:0;overflow-wrap:anywhere}
#game #panel[data-kind="civic"] .civic-heading{display:flex;align-items:center;gap:12px}
#game #panel[data-kind="civic"] .civic-heading .portrait{width:56px;height:72px;object-fit:contain;flex:none}
#game #panel[data-kind="civic"] .civic-exercise{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:14px;border:1px solid #a4af88;border-radius:10px;background:#fff8e6}
#game #panel[data-kind="civic"] .civic-round{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;font-size:14px}
#game #panel[data-kind="civic"] .civic-terminal :is(.civic-capital,.civic-caption){font-size:14px;line-height:1.4;color:#55634b}
#game #panel[data-kind="civic"] .civic-chart{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;gap:6px;height:auto;margin:0;padding:4px 6px 0;border-bottom:2px solid #a59263}
#game #panel[data-kind="civic"] .civic-chart-column{display:grid;justify-items:center;gap:4px;font-size:15px}
#game #panel[data-kind="civic"] .civic-chart i{display:block;position:static;width:min(100%,38px);height:var(--bar-height);background:#64856b;border-radius:3px 3px 0 0}
#game #panel[data-kind="civic"] .civic-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
#game #panel[data-kind="civic"] .civic-terminal button{min-width:0;min-height:44px;margin:0;padding:8px 12px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
#game #panel[data-kind="civic"] .civic-terminal button>span{display:inline}
#game #panel[data-kind="civic"] .civic-answers button:disabled{opacity:1;box-shadow:none}
#game #panel[data-kind="civic"] .civic-feedback{display:grid;justify-items:start;gap:10px;border:1px solid #a4af88;border-radius:8px;padding:12px}
#game #panel[data-kind="civic"] .civic-feedback strong{display:block;font-size:17px}
#game #panel[data-kind="civic"] .civic-correct{background:#e2edcf;color:#304d36}
#game #panel[data-kind="civic"] .civic-incorrect{background:#f5e2d3;color:#6c3f35}
@media(max-width:420px){
 body.phone #game #panel[data-kind="civic"] .civic-exercise{padding:10px}
 body.phone #game #panel[data-kind="civic"] .civic-answers{grid-template-columns:minmax(0,1fr)}
}
:root{--td-jade:#254a3c;--td-ivory:#faf3de;--td-brass:#dcb65f;--td-ink:#30473c;--td-muted:#76856a;--td-line:#ada17b}
html,body{font-family:TD Text,'Trebuchet MS',sans-serif;background:#263f34;color:var(--td-ink)}
#game button{font-family:TD Text,'Trebuchet MS',sans-serif}
#game h1,#game h2,#game h3,#game #firm,#game #mainAction,#game .story-speech strong,#game .receipt-title h2{font-family:TD Pixel,'Courier New',monospace;font-weight:700}
#game #hud{background:var(--td-jade);border-color:#b1a271;box-shadow:0 3px #172f27aa}
#game #hud #identity,#game #hud .money,#game #hud .clock{background:transparent;color:var(--td-ivory);border-color:#81907744}
#game #hud #identity strong,#game #hud #cash,#game #hud #clock{color:var(--td-ivory)}
#game #hud #reputation,#game #hud #energyMeter{color:#dfc581}
#game #hud #income,#game #hud #depotValue,#game #hud #day{color:#c3cfb5}
#game #hud #week{background:#ffffff08;border-color:#899775}
#game #hud #week span{color:#c0cbb3}
#game #hud #week .active{color:#fff9df;background:#6b8864;border-color:#9db48b;box-shadow:0 2px #1c382c}
#game #hud #activeOrders{background:#faf3de;color:#35533f;border-color:#a9b58c;box-shadow:inset 0 1px #fffdf4}
#game #hud #pauseButton{color:#fff5d6;background:#65816b;border-color:#a3b48e;box-shadow:0 2px #183a2a}
#game #portrait{border-color:#b8c3a1;background:#9faf87}
#game #mainAction{color:#3e482d;background:linear-gradient(#efd08a,#ddb65e);border-color:#f5dfa7;box-shadow:0 5px #8a733d,0 9px 12px #203b2633}
#game #dock button{background:linear-gradient(#fff8e7,#e9e4c8);color:#506d50;border-color:#a4af88;box-shadow:0 4px #647757;font-family:TD Pixel,'Courier New',monospace;border-radius:8px}
#game #dock button[data-panel=shop]{background:linear-gradient(#f4e3ae,#ddca8a);color:#6a623e}
#game #objective{background:#faf3de;border-color:#aaa97d;box-shadow:0 4px #69795744}
#game #objective>span,#game #objective small{color:#778367}
#game #objective strong{font-family:TD Pixel,'Courier New',monospace;color:#3b5740}
#game #panel{background:#faf3de;border-color:#8b9978;box-shadow:0 5px #203d2e55,0 12px 36px #172b2433}
#game .panel-head{background:#294c3c;border-bottom-color:#a7b48b}
#game .panel-head h1{color:#fff3d6}
#game .panel-head h1{font-size:clamp(20px,2.2vw,30px);line-height:1.12;margin:0;overflow-wrap:anywhere;min-width:0}
#game .panel-head small{color:#d9c489}
#game .panel-head button{background:#f8eed0;color:#506e50;border-color:#d7d9b7}
#game .primary{background:#678763;border-color:#a9bf92;color:#fff9e4;box-shadow:0 3px #365f40}
#game .gold.primary{background:linear-gradient(#ecd38c,#d8b466);color:#4b4e31;border-color:#f0dba2;box-shadow:0 3px #887445}
#game .secondary{background:#eee8d0;color:#536c50;border-color:#b1b99a;box-shadow:0 3px #89977155}
#game .card,#game .row{background:#fff9eb;border-color:#d0cfb1}
#game .note{background:#e9edda;border-color:#b5c2a0;color:#576b4c}
#game .stats>div,#game .ledger>div{border-color:#c5cbb1}
#game .pill{background:#e4ead0;color:#536b4b;border-color:#bac6a4}
#game .story-speech{background:#fff6df;color:#344c3d;border-color:#42634b;box-shadow:0 0 0 4px #dfc47a,7px 10px #1b342b55}
#game .story-speech strong{color:#4a6e50}
#game .chapter-tag{background:#294c3c;color:#edddac;border-color:#9cac84}
#game #floors button{background:#f1e7c9;color:#5a6b47;border-color:#a4b18a;border-radius:5px}
#game #floors .chosen{background:#678763;color:#fff8dc;border-color:#afc590}
.skin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.skin-card{padding:12px;min-width:0}.skin-card h3{font-size:22px;margin:12px 0 6px}.skin-card p{font-size:14px;line-height:1.45}.skin-card small{display:block;font-size:12px;color:#7a886a;margin-bottom:10px}.skin-card button{width:100%;margin-bottom:0}.tile-0{background-position:0 0}.tile-1{background-position:25% 0}.tile-2{background-position:50% 0}.tile-3{background-position:75% 0}.tile-4{background-position:100% 0}.tile-5{background-position:0 100%}.tile-6{background-position:25% 100%}.tile-7{background-position:50% 100%}.tile-8{background-position:75% 100%}.tile-9{background-position:100% 100%}.collection-swatches{display:grid;grid-template-columns:1fr 1fr;gap:7px}.collection-swatches i{height:95px}.furniture-preview{height:176px;width:176px;max-width:100%;position:relative;overflow:hidden;margin:0 auto;background:#ede8cf;border:1px solid var(--finish);border-radius:5px}.furniture-preview img{display:block;width:300%;height:auto;max-width:none;position:absolute;left:0;top:0;image-rendering:pixelated}.finish-minimal img{filter:saturate(.6) brightness(1.16)}.finish-luxury img{filter:saturate(.95) contrast(1.08) brightness(.88)}.finish-industrial img{filter:grayscale(.6) brightness(.87)}.finish-tech img{filter:hue-rotate(14deg) saturate(.75) brightness(.94)}
body.phone.handset-portrait:not(.tablet):not(.landscape) .skin-grid{grid-template-columns:1fr}
body.phone .design-tabs{gap:6px;flex-wrap:wrap}body.phone .design-tabs button{flex:1 1 40%;min-height:44px}
@media(prefers-reduced-motion:reduce){#game .primary,#game .secondary,#game #mainAction{transition:none}}
@media(max-width:600px){#game .panel-head h1{font-size:22px;line-height:1.05}#game .panel-head{min-height:64px}}
#game #panel .panel-head>div{flex:1 1 auto;min-width:0}
#game #panel .panel-head>button{flex:0 0 auto}
body.phone.handset-portrait:not(.tablet):not(.landscape) #game #panelTitle{max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:24px;margin:0}
/* Dedicated upgrade workshop: artwork and clear one-purpose cards. */
.upgrade-workshop{max-width:840px;margin:auto}.upgrade-tabs{display:flex;gap:12px;margin-bottom:20px}.upgrade-tabs button{flex:1;min-height:48px}.upgrade-summary{padding:16px 8px 22px;border-bottom:2px solid #b9aa78;margin-bottom:20px}.upgrade-summary h2{margin:8px 0;font-size:22px}.upgrade-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.upgrade-card{background:#f7efd6;border:2px solid #a69769;border-radius:12px;padding:18px;display:grid;grid-template-columns:68px 1fr;gap:10px 14px;box-shadow:0 4px 0 #b8aa7a;color:#3d5144;align-content:start}.upgrade-card h3{margin:0 0 8px;font-size:18px;line-height:1.3}.upgrade-card>p,.upgrade-card footer,.upgrade-card details,.upgrade-pips,.upgrade-lock{grid-column:1/-1}.upgrade-card>p{margin:8px 0;min-height:46px;line-height:1.5}.upgrade-card footer button{width:100%;min-height:48px}.upgrade-card details{font-size:12px;line-height:1.5}.upgrade-card summary{cursor:pointer;padding:8px 0}.upgrade-glyph{display:block;width:64px;height:64px;background-image:url('assets/upgrade-icons-v1.png');background-size:400% 200%;background-position:calc(var(--ux)*100%/3) calc(var(--uy)*100%);image-rendering:pixelated}.upgrade-pips{display:flex;gap:5px;margin:4px 0 10px}.upgrade-pips i{height:7px;flex:1;background:#d6cba6;border-radius:2px}.upgrade-pips .filled{background:#68865b}.upgrade-lock{color:#846039}.upgrade-footnote{margin:22px 0;line-height:1.5}.upgrade-assignment{padding:16px;margin:16px 0;border:2px solid #ad9b6b;border-radius:10px}.upgrade-assignment button{min-height:44px}@media(max-width:580px){.upgrade-grid{grid-template-columns:1fr}.upgrade-card{padding:16px}.upgrade-summary h2{font-size:19px}.upgrade-tabs{gap:6px}.upgrade-tabs button{font-size:12px;padding:10px}.upgrade-card>p{min-height:0}}
#game #panel[data-kind="deskHardware"],#game #panel[data-kind="updates"]{width:min(850px,calc(100% - 32px));max-width:850px}.upgrade-card{grid-template-rows:auto minmax(72px,auto) auto auto auto}.upgrade-card>p{align-self:start}.upgrade-card footer{align-self:end}@media(max-width:580px){#game #panel[data-kind="deskHardware"],#game #panel[data-kind="updates"]{max-width:calc(100% - 16px);width:calc(100% - 16px)}.upgrade-card{grid-template-rows:auto auto auto auto auto}}

/* The HUD forms the top edge of the frame around the scene. */
#game #hud,
body.phone.handset-portrait:not(.tablet):not(.landscape) #game #hud {
 top:0;
 left:0;
 right:0;
 border:0;
 border-radius:0;
 border-bottom:5px solid #8c774c;
 background:linear-gradient(180deg,#294d3d,#233f34 72%,#1c342c);
 box-shadow:inset 0 2px #51674c,inset 0 -2px #c2a567,0 1px #342f20;
 padding-inline:max(14px,env(safe-area-inset-left)) max(14px,env(safe-area-inset-right));
}
#game #hud #identity {border-right:1px solid #9caa7e36}
#game #hud .money {border-right:1px solid #9caa7e36}
#game #hud .cash-counter {background:linear-gradient(#1c322a,#263d30);border-color:#aa905c}
#game #hud #activeOrders {background:linear-gradient(#e9ddbc,#cbb98e);border-color:#c8b78f;color:#293d2e;box-shadow:inset 0 1px #fff4cf,0 2px #13281e}
#game #hud :is(#hudFullscreen,#pauseButton) {background:linear-gradient(#496953,#355342);border-color:#a2a478;box-shadow:inset 0 1px #aab98c40,0 2px #172c23}
#game #hud :is(#hudFullscreen,#pauseButton):hover {background:#54735b}
body.phone #game #hud {height:auto;padding-top:max(6px,env(safe-area-inset-top));padding-bottom:4px}
body.phone.handset-portrait:not(.tablet):not(.landscape) #game #hud {
 height:auto;
 padding: max(5px,env(safe-area-inset-top)) max(7px,env(safe-area-inset-right)) 3px max(7px,env(safe-area-inset-left));
}
#game #mapViewport {background-color:#263e33}
body.phone.handset-portrait:not(.tablet):not(.landscape) #game #mapViewport {border-top:0}

#game #hud {border-bottom:6px solid #9b7b46;background:linear-gradient(#2d5443 0 4px,#25483a 4px 70%,#1e382f 70%);box-shadow:inset 0 2px #7c8b6066,inset 0 -2px #d5b16a,0 1px #422e1e}
body #game #hud,body.phone.handset-portrait:not(.tablet):not(.landscape) #game #hud{
 border-bottom-color:transparent;
 background:linear-gradient(#2d5443 0 4px,#25483a 4px 70%,#1e382f 70%) padding-box;
}
#game #hud::before,#game #hud::after{content:none}
#game #hud :is(#clock,#week,#energyMeter),#game #hud .cash-counter #cash {font-family:TD Pixel,'Courier New',monospace;font-weight:700;letter-spacing:0}
#game #hud #clock{font-size:28px}
#game #hud #week{border-radius:3px;box-shadow:inset 0 2px #132f27}
#game #hud #week span{border-radius:2px;font-size:12px}
#game #hud #week .active{background:#7d9259;color:#fff2c5}
#game #hud .cash-counter{border-radius:3px;box-shadow:inset 0 2px #101f19,inset 0 -1px #b698572c}
#game #hud #energyMeter{gap:2px;font-size:12px}
#game #hud #energyMeter>i{height:9px;border:1px solid #b79f61;border-radius:1px;background:#102b22}
#game #hud #energyMeter>i>b{background:repeating-linear-gradient(90deg,#adc36a 0 4px,#738e50 4px 5px);box-shadow:inset 0 1px #d4df94}
#game #hud #energyMeter.low>i>b{background:repeating-linear-gradient(90deg,#d99d65 0 4px,#af744d 4px 5px);box-shadow:inset 0 1px #edbd84}
#game #dock #petDock{background:linear-gradient(#f2e9cc,#d7dfb8);border-color:#92a371}
#game #dock #petDock .dock-pet-sprite{width:45px;height:45px;display:block;background:url('./assets/pets-bank-v1.png') var(--pet-x) 50%/300% 100% no-repeat;image-rendering:pixelated}
#game #dock #petDock .dock-pet-sprite.premium{background-image:url('./assets/premium-pets-bank-v1.png');background-size:300% 200%;background-position:var(--pet-x) var(--pet-y)}
.orders-priority{display:grid;gap:8px;margin-bottom:14px}
.orders-priority .quest-card{padding:10px 12px;margin:0;border-left:4px solid #a98c50}
.orders-priority .quest-card>small{font-weight:800;color:#6a714d}
.orders-priority .quest-card ul{list-style:none;padding:0;margin:7px 0 10px}
.orders-priority .quest-card li{display:flex;justify-content:space-between;gap:8px;padding:4px 0;border-bottom:1px solid #c6bd9a}
.orders-priority .quest-card li>b{flex:none}
body.phone #game #dock #petDock .dock-pet-sprite{width:30px;height:30px}
body.phone #game #hud #clock{font-size:23px}
body.phone #game #hud #week span{font-size:11px}
body.phone #game #hud #energyMeter{font-size:10px}
body.phone.handset-portrait:not(.tablet):not(.landscape) #game #dock{grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}
body.phone.handset-portrait:not(.tablet):not(.landscape) #game #dock button{font-size:9px}
body.phone.handset-portrait:not(.tablet):not(.landscape) #game #hud #week span{font-size:10px}
body.phone.handset-portrait:not(.tablet):not(.landscape) #game #hud #energyMeter>i{height:7px}

#game #dock button[data-panel="global"]{background:linear-gradient(#efe7cf,#d3ddba);border-color:#98a478}
#game #panel[data-kind="global"]{max-width:760px}
.ranking-caption{font-size:.92em;color:#56634c}
.ranking-list{list-style:none;padding:0;margin:10px 0}
.ranking-row{display:grid;grid-template-columns:35px 42px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 10px;margin-bottom:5px;background:#f7eed2;border:1px solid #b9ad87;border-radius:5px;color:#2b4234}
.ranking-row.gold{background:linear-gradient(90deg,#f7e6ab,#f7eed2);border-color:#b58b3b}
.ranking-row.silver{background:linear-gradient(90deg,#e2e9e8,#f5f0dc);border-color:#899c9f}
.ranking-row.bronze{background:linear-gradient(90deg,#edd0b4,#f7ecd4);border-color:#af7850}
.ranking-rank{display:grid;place-items:center;min-width:32px;min-height:29px;background:#dce3c5;border:1px solid #a5af84;font-family:TD Pixel,monospace;font-weight:700}
.gold .ranking-rank{background:#e2b95c;border-color:#a77b31;color:#4b361c}
.silver .ranking-rank{background:#c6d1d2;border-color:#87999d;color:#2e4144}
.bronze .ranking-rank{background:#cd916a;border-color:#a36946;color:#472a1b}
.ranking-row>img{width:40px;height:44px;object-fit:cover;object-position:top;image-rendering:pixelated;background:#e3e5ca;border:1px solid #b2b593;border-radius:3px}
.ranking-company{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.ranking-company>small{color:#53604b;font-size:.78em}
.ranking-wealth{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.ranking-pages{align-items:center}
body.phone.handset-portrait:not(.tablet):not(.landscape) #game #dock{grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
body.phone.handset-portrait:not(.tablet):not(.landscape) #game #dock button{font-size:8px}
body.phone.handset-portrait:not(.tablet):not(.landscape) .ranking-row{grid-template-columns:27px 32px minmax(0,1fr) auto;gap:5px;padding:6px}
body.phone.handset-portrait:not(.tablet):not(.landscape) .ranking-rank{min-width:24px}
body.phone.handset-portrait:not(.tablet):not(.landscape) .ranking-row>img{width:31px;height:36px}
body.phone.handset-portrait:not(.tablet):not(.landscape) .ranking-wealth{font-size:.84em}

#game #panel[data-kind="global"] :is(.ranking-company>strong,.ranking-wealth,.ranking-caption,.podium-step){font-family:TD Pixel,'Courier New',monospace}
.ranking-podium{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:6px;margin:12px 0 16px;padding:0}
.podium-place{display:grid;justify-items:center;text-align:center;gap:4px;min-width:0}
.podium-place.gold{grid-column:2;grid-row:1;--step:#d0a549;--face:#f6d77f;--side:#a27634;--height:60px}
.podium-place.silver{grid-column:1;grid-row:1;--step:#a9b7ba;--face:#e4eeee;--side:#77888e;--height:44px}
.podium-place.bronze{grid-column:3;grid-row:1;--step:#be845b;--face:#eac09b;--side:#83593e;--height:32px}
.podium-place img{width:43px;height:47px;object-fit:cover;object-position:top;image-rendering:pixelated;background:#e5e6c6;border:1px solid var(--side)}
.podium-place .ranking-company{width:100%}
.podium-place .ranking-company>small{font-size:clamp(7px,1.7vw,11px)}
.podium-place .ranking-wealth{font-size:clamp(11px,2vw,16px);white-space:normal;overflow-wrap:anywhere}
.podium-step{width:100%;height:var(--height);display:grid;place-items:center;background:var(--step);border:2px solid var(--side);border-top:5px solid var(--face);color:#292c23;font-size:24px}
#game #dock button[hidden]{display:none!important}
#game:has(#world[data-scene="world"]) :is(#objective,#lithium-map-entry){display:none}
body.phone.handset-portrait:not(.tablet):not(.landscape) #game #dock{
 grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px;
}
body.phone.handset-portrait:not(.tablet):not(.landscape) #game #mapViewport:has(#world[data-scene="world"]){
 bottom:calc(75px + env(safe-area-inset-bottom));
 background:#173f4e;
}

#game #hud #week{background:none;border:0;box-shadow:none;padding:0;gap:1px}
#game #hud #week span{height:28px;background:url('./assets/weekday-plaques-v1.png') left center/200% 140% no-repeat;font-family:TD Pixel,'Courier New',monospace;font-weight:700;color:#f7e8b9;text-shadow:0 1px #263626;box-shadow:none;border:0}
#game #hud #week span.weekend{color:#e7be8a}
#game #hud #week span.active{background:url('./assets/weekday-plaques-v1.png') right center/200% 140% no-repeat;color:#fff7dd;text-shadow:0 1px #50340f,1px 0 #50340f,-1px 0 #50340f;box-shadow:none}
#game #hud #week span.active::after{display:none}
body.phone.handset-portrait:not(.tablet):not(.landscape) #game #hud #week span{height:23px}
@media(forced-colors:active){#game #hud #week span.active{outline:1px solid Highlight}}
#game #hud #energyControl{grid-column:3;grid-row:1;display:grid;place-items:center;padding:0;min-width:0;border:1px solid transparent;background:none;color:inherit;box-shadow:none}
#game #hud #energyControl:hover,#game #hud #energyControl:focus-visible{border-color:#b79f61}
#game #hud #energyMeter.depleted{color:#ffc2aa}
#game #hud #energyMeter.depleted>i{border-color:#d78a74;background:#542f28}
.avatar-workbench{display:grid;grid-template-columns:145px minmax(0,1fr);gap:14px;align-items:start}
.avatar-selected{display:grid;gap:8px;justify-items:center;text-align:center;padding:10px;background:#dbe3be;border:2px solid #87946e;box-shadow:inset 0 0 0 2px #f9ebc1}
.avatar-selected img{width:100px;height:150px;object-fit:contain;image-rendering:pixelated}
.avatar-selected strong{font-family:TD Pixel,monospace;font-size:14px}
.avatar-controls{display:grid;gap:9px}
.avatar-group{margin:0;padding:6px 8px 8px;min-width:0;border:1px solid #b6ac82}
.avatar-group legend{padding:0 4px;font-weight:700}
.avatar-filter,.avatar-tones{display:flex;flex-wrap:wrap;gap:5px}
.avatar-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
#game #panel[data-kind="avatar"] #panelBody .avatar-choice{display:grid;justify-items:center;align-content:center;gap:3px;min-height:35px;min-width:0;padding:4px;background:#f1e6bf;border:1px solid #a89d77;border-radius:3px;color:#304837;box-shadow:none;text-align:center}
#game #panel[data-kind="avatar"] #panelBody .avatar-choice[aria-pressed=true]{background:#dce8b9;border-color:#5b7848;box-shadow:inset 0 0 0 1px #5b7848}
.avatar-choice img{width:42px;height:54px;object-fit:contain;image-rendering:pixelated}
.avatar-choice small{font-size:10px;line-height:1.15;overflow-wrap:anywhere}
.avatar-tones .avatar-choice{width:36px}
.avatar-tones i{width:22px;height:21px;border:1px solid #69573f;background:var(--tone)}
.loan-progress{display:block;appearance:none;width:100%;height:20px;border:2px solid #927d49;background:#d6c99f}
.loan-progress::-webkit-progress-bar{background:#d6c99f}
.loan-progress::-webkit-progress-value{background:repeating-linear-gradient(90deg,#7d9d4f 0 6px,#adc577 6px 8px)}
.loan-progress::-moz-progress-bar{background:repeating-linear-gradient(90deg,#7d9d4f 0 6px,#adc577 6px 8px)}
.loan-card>p>strong,.ranking-world{font-family:TD Pixel,monospace}
#game #mini .timing-track{height:42px;margin:16px 0;border:3px solid #745840;background:repeating-linear-gradient(135deg,#9e4f47 0 8px,#aa5a51 8px 16px)}
#game #mini .timing-track i{left:var(--target-left);width:var(--target-width);background:#608848;border-inline:2px solid #c7dd83}
#game #mini .timing-track b{width:4px;transform:translateX(-50%);background:#fff6cf;box-shadow:0 0 0 1px #272d22}
.timing-action{display:flex;justify-content:center}
#game .timing-action button{width:min(100%,320px);min-height:54px;font:700 21px TD Pixel,monospace;touch-action:manipulation}
#game #mini .decision-card{font-family:TD Pixel,'Courier New',monospace;line-height:1.4}
#game #mini .memory-sequence{display:flex;justify-content:center;gap:7px;margin:12px 0;font-size:1rem;letter-spacing:0}
#game #mini .memory-buttons{gap:5px}
#game #mini .memory-buttons button{display:grid;place-items:center;min-width:0;min-height:54px;padding:1px;touch-action:manipulation}
.memory-gem{display:block;width:clamp(43px,10vw,70px);max-width:100%;aspect-ratio:3/4;background:url('./assets/jax-memory-symbols-v1.png') var(--gem-x) center/400% 100% no-repeat;image-rendering:pixelated}
body.phone.handset-portrait .avatar-workbench{grid-template-columns:1fr;gap:8px}
body.phone.handset-portrait .avatar-selected{grid-template-columns:auto 1fr;align-items:center;justify-items:start;padding:5px 10px;text-align:left}
body.phone.handset-portrait .avatar-selected img{width:43px;height:62px}
body.phone.handset-portrait #game #panel[data-kind="avatar"] #panelBody .avatar-choice{min-height:44px}

#game #panel[data-kind="jewels"] .jewel-shop-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
#game #panel[data-kind="jewels"] .jewel-shop-heading strong{display:flex;gap:5px;align-items:center;font-family:TD Pixel,monospace}
#game #panel[data-kind="jewels"] .jewel-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-bottom:12px}
#game #panel[data-kind="jewels"] #panelBody .jewel-category{min-width:0;min-height:44px;padding:3px;font-size:clamp(10px,2.7vw,14px);background:#efe5c5;color:#2d4737}
#game #panel[data-kind="jewels"] #panelBody .jewel-category[aria-pressed=true]{background:#31543e;color:#fff1c6;border-color:#6b8757}
#game #panel[data-kind="jewels"] .pet-skin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

.brand-symbol{display:inline-block;width:32px;aspect-ratio:1;flex:none;background:url('./assets/company-logo-symbols-v1.png') var(--brand-x) var(--brand-y)/400% 400% no-repeat;image-rendering:pixelated}
.brand-plate{background:url('./assets/company-nameplates-v1.png') var(--plate-x) var(--plate-y)/200% 300% no-repeat;image-rendering:pixelated}
.brand-mark{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:42px;max-width:100%;padding:10px 13px;color:var(--brand-ink);text-align:center}
.brand-mark strong{min-width:0;overflow-wrap:anywhere;color:inherit;font-family:TD Pixel,monospace;font-size:inherit;line-height:1.2}
.ranking-company .brand-mark .brand-symbol{width:23px}
.ranking-company .brand-mark{width:fit-content;max-width:100%;font-size:.85rem}
.brand-preview{padding:12px 0;display:grid;justify-items:center}
.brand-preview .brand-mark{width:min(100%,420px);min-height:70px;font-size:clamp(16px,3vw,24px)}
.brand-preview .brand-symbol{width:49px}
.brand-options{margin:0 0 10px;border:1px solid #a99d72;min-width:0}
.brand-options legend{font-family:TD Pixel,monospace;font-size:.9rem}
.brand-symbol-options,.brand-plate-options,.brand-ink-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(68px,1fr));gap:4px}
#game #panel #panelBody .brand-choice{display:grid;place-items:center;align-content:center;min-height:44px;min-width:0;padding:3px;font-size:11px;overflow-wrap:anywhere;background:#f2e6c4;color:#264738}
#game #panel #panelBody .brand-choice[aria-pressed=true]{background:#335543;color:#fff3ce;border-color:#6b8757}
.brand-choice i{width:25px;height:15px;background:var(--brand-swatch);border:1px solid #746541}
.brand-choice i.brand-plate{width:min(100%,100px);height:25px;border:0;background:url('./assets/company-nameplates-v1.png') var(--plate-x) var(--plate-y)/200% 300% no-repeat}
.brand-shop{padding:8px 0 12px}
#game #panel[data-kind="jewels"] .jewel-categories{grid-template-columns:repeat(auto-fit,minmax(72px,1fr))}
#brandError{color:#8b3226;font-weight:bold}

#dialog .animated-story .story-speech{animation:story-reveal .22s ease-out both}
#dialog .animated-story .speaker-actor{transform-origin:center bottom;animation:story-reveal .26s ease-out both}
#dialog .animated-story.speaking .speaker-actor{animation:story-reveal .26s ease-out both,story-voice .63s .26s steps(3,end) infinite}
#dialog .animated-story.speaking .speech-arrow{opacity:0}
#dialog .animated-story:not(.speaking) .speech-arrow{animation:story-next .85s steps(2,jump-none) infinite}
@keyframes story-reveal{from{opacity:.25;translate:0 5px}to{opacity:1;translate:0 0}}
@keyframes story-voice{0%,100%{translate:0 0}50%{translate:0 -3px}}
@keyframes story-next{50%{opacity:.4}}
@media(prefers-reduced-motion:reduce){#dialog .animated-story :is(.story-speech,.speaker-actor,.speech-arrow){animation:none!important}}

#game #dock button.world-locked i{background:#d7caa6;color:#7a633d}

#game #panel[data-kind="global"] .podium-place .ranking-company{justify-items:center}
#game #panel[data-kind="global"] .podium-place .brand-mark{justify-self:center;box-sizing:border-box;margin-inline:auto}
#game #panel[data-kind="global"] .podium-place .ranking-wealth{text-align:center}
#game #dock #petDock .dock-pet-sprite.premium,#game .pet-skin-image{background-image:var(--pet-sheet);background-size:300% var(--pet-height);background-position:var(--pet-x) var(--pet-y)}

#game #panel[data-kind="jewels"] .jewel-shop-heading{
 padding:8px 11px;margin-bottom:10px;background:#e9dfc4;border:1px solid #bdae85;border-radius:6px;color:#344333
}
#game #panel[data-kind="jewels"] .jewel-sections{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-bottom:8px}
#game #panel[data-kind="jewels"] .jewel-filters{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-bottom:8px}
#game #panel[data-kind="jewels"] #panelBody .jewel-category{margin:0;font-size:clamp(12px,2.4vw,16px)}
#game #panel[data-kind="jewels"] #panelBody .jewel-filters .jewel-category{min-height:36px}
#game #panel[data-kind="jewels"] .jewel-pack-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#game #panel[data-kind="jewels"] #jewel-purchase-status{margin:8px 0;font-size:14px}
#game #panel[data-kind="jewels"] .jewel-pack{
 display:grid;gap:8px;padding:10px;min-width:0;text-align:center;border:1px solid #b9a370;border-radius:8px;
 background:radial-gradient(ellipse at 50% 18%,#58426c,#322a40 78%);color:#fff2d0
}
#game #panel[data-kind="jewels"] .jewel-pack>div{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 7px}
#game #panel[data-kind="jewels"] .jewel-pack .jewel-icon{width:18px;height:21px}
#game #panel[data-kind="jewels"] .jewel-pack strong{font-size:clamp(20px,4.3vw,29px);font-variant-numeric:tabular-nums}
#game #panel[data-kind="jewels"] .jewel-pack span{flex-basis:100%;font-size:13px}
#game #panel[data-kind="jewels"] #panelBody .jewel-price{min-height:38px;margin:0;opacity:1;background:#efe4c9;color:#493a4a;cursor:default}
#game #panel[data-kind="jewels"] .pet-skin-grid{gap:7px;margin:0 0 8px}
#game #panel[data-kind="jewels"] .pet-skin{padding:7px}
#game #panel[data-kind="jewels"] .pet-skin-image,#game #panel[data-kind="jewels"] .mole-skin{width:min(100%,86px)}
#game #panel .pet-skin.elite{border-color:#9a7950}
#game #panel .pet-elite{padding:1px 7px;background:#eee0b2;color:#5b422a;border-radius:4px}
#game #panel[data-kind="jewels"] .jewel-brand-actions{display:flex;flex-wrap:wrap;gap:6px}

#game #mainAction[data-appearance="entrance"],#game #mainAction[data-appearance="deal"]{
 border:0;border-radius:0;
 background:var(--action-art) center/100% 100% no-repeat;
 color:var(--action-color);text-shadow:var(--action-shadow);
 box-shadow:none;filter:drop-shadow(0 3px 3px #151b16aa);
 padding-inline:30px;letter-spacing:.055em
}
#game #mainAction[data-appearance="entrance"]{
 --action-art:url('./assets/action-entrance-brass-v1.png');--action-color:#fff0bf;--action-shadow:0 1px 2px #10251b
}
#game #mainAction[data-appearance="deal"]{
 --action-art:url('./assets/action-deal-brass-v1.png');--action-color:#322014;--action-shadow:0 1px #ffe2a2
}
#game #mainAction:is([data-appearance="entrance"],[data-appearance="deal"])::after{display:none}
#game #mainAction:is([data-appearance="entrance"],[data-appearance="deal"]):hover:enabled{filter:brightness(1.08) drop-shadow(0 3px 3px #151b16aa)}
#game #mainAction:is([data-appearance="entrance"],[data-appearance="deal"]):disabled{filter:saturate(.45);opacity:.75}
#game #dock button,#game #panel[data-kind="jewels"] #panelBody .jewel-category{
 --nav-plate:url('./assets/menu-pine-brass-v1.png');
 border:8px solid transparent;
 border-image:var(--nav-plate) 36 fill / 8px stretch;
 background:#273d31;color:#fff1c8;box-shadow:0 2px 3px #20251c66;
 border-radius:7px
}
#game #dock button[data-panel="shop"],#game #panel[data-kind="jewels"] #panelBody .jewel-category[aria-pressed="true"]{
 --nav-plate:url('./assets/menu-gold-brass-v1.png');
 background:#c49b54;color:#281d12
}
#game #dock button{padding:1px 0}
#game #dock #petDock{background:#273d31}
#game #dock button i.dock-glyph,#game #dock button.world-locked i.dock-glyph{
 display:block;width:34px;height:34px;flex-shrink:0;
 background: url('./assets/menu-glyphs-brass-v1.png') var(--glyph-x) var(--glyph-y)/400% 300% no-repeat;
 box-shadow:none;border:0;border-radius:0
}
#game #dock button span{font-size:clamp(9px,.86vw,14px);white-space:nowrap;letter-spacing:0}
#game #panel[data-kind="jewels"] #panelBody .jewel-category{padding:1px 0}
@media(max-width:620px){
 #game #dock button,#game #panel[data-kind="jewels"] #panelBody .jewel-category{border-width:4px;border-image-width:4px}
 #game #dock button i.dock-glyph,#game #dock button.world-locked i.dock-glyph{width:26px;height:26px}
 #game #dock button span{font-size:clamp(7px,2vw,10px)}
}

body.phone.handset-portrait:not(.tablet):not(.landscape) #game #panel[data-kind="jewels"]:not([hidden]){
 display:flex;flex-direction:column;bottom:auto;height:auto;
 max-height:calc(100dvh - var(--hud-bottom) - 88px - env(safe-area-inset-bottom))
}
body.phone.handset-portrait:not(.tablet):not(.landscape) #game #panel[data-kind="jewels"] .panel-head{flex:none}
body.phone.handset-portrait:not(.tablet):not(.landscape) #game #panel[data-kind="jewels"] #panelBody{height:auto;min-height:0;overflow:auto}

#game #hud,body.phone.handset-portrait:not(.tablet):not(.landscape) #game #hud{
 border-color:transparent;
 border-image:url('./assets/hud-deco-v1.png') 20 120 fill / 7px 26px stretch;
 background:#213b30;
 box-shadow:0 3px 8px #162a2390
}
#game #hud::after{display:none}
#game :is(#closePanel,.pixel-close,[data-mine^="close-"]){
 background:transparent url('./assets/close-deco-v1.png') center/92% 92% no-repeat;
 border:0;box-shadow:none;font-size:0
}
#game :is(#closePanel,.pixel-close,[data-mine^="close-"]) :is(svg,.game-icon){visibility:hidden}
#game :is(#closePanel,.pixel-close,[data-mine^="close-"]):hover{
 background-color:transparent;filter:brightness(1.15)
}
#game :is(#panelBody,#dialogBody,.pause-card,.decision-card,.ending-card,#event,.mine-inspect) button:not(.avatar-choice,.pixel-close):not([data-mine^="close-"]){
 --panel-button-art:url('./assets/menu-pine-brass-v1.png');
 color:#fff0ce;background:#273d31;
 border-color:transparent;border-style:solid;
 border-image:var(--panel-button-art) 36 fill / 7px stretch;
 box-shadow:0 2px 3px #28332566
}
#game :is(#panelBody,#dialogBody,.pause-card,.decision-card,.ending-card,#event,.mine-inspect) button:is(.primary,.gold,.selected,[aria-pressed="true"],[aria-current="page"]):not(.avatar-choice,.pixel-close):not([data-mine^="close-"]){
 --panel-button-art:url('./assets/menu-gold-brass-v1.png');
 color:#322215;background:#bd954e
}
#game :is(#panelBody,#dialogBody,.pause-card,.decision-card,.ending-card,#event,.mine-inspect) button:not(.avatar-choice,.jewel-price):enabled:hover{filter:brightness(1.09)}
#game :is(#panelBody,#dialogBody,.pause-card,.decision-card,.ending-card,#event,.mine-inspect) button:focus-visible,#game :is(#closePanel,.pixel-close):focus-visible{outline:2px solid #d79a2b;outline-offset:2px}
#game #panelBody .office-tabs{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
#game #panelBody .office-tabs button{white-space:normal;overflow-wrap:anywhere;min-width:0;margin:0;padding:5px 3px}
#game #panelBody .office-menu-glyph{
 display:inline-block;width:24px;height:24px;flex:none;vertical-align:middle;
 background:url('./assets/office-menu-glyphs-v1.png') var(--office-glyph-x) var(--office-glyph-y)/400% 200% no-repeat;
}
#game #panelBody .office-deal-card h2 .office-menu-glyph{margin-right:5px}
#game #panel[data-kind="jewels"] .jewel-sections{grid-template-columns:repeat(4,minmax(0,1fr))}
#game #panel[data-kind="jewels"] #panelBody .jewel-category{overflow-wrap:normal;white-space:normal;font-size:clamp(11px,2.4vw,15px)}
#game #panel[data-kind="jewels"] .office-skin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}
#game #panel[data-kind="jewels"] .office-skin-card{padding:0;overflow:hidden;min-width:0;margin:0}
#game #panel[data-kind="jewels"] .office-skin-card img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
#game #panel[data-kind="jewels"] .office-skin-card>div{padding:8px}
#game #panel[data-kind="jewels"] .office-skin-card h3{margin:0 0 5px}
#game #panel[data-kind="jewels"] .office-skin-card button{width:100%;margin:0}
@media(max-width:620px){
 #game #hud,body.phone.handset-portrait:not(.tablet):not(.landscape) #game #hud{border-image-width:4px 12px}
 #game #panelBody .office-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
 #game :is(#panelBody,#dialogBody,.pause-card,.decision-card,.ending-card,#event,.mine-inspect) button:not(.avatar-choice,.pixel-close):not([data-mine^="close-"]){border-image-width:5px}
}

#game :is(#panel,#dialogBody:not(:has(.story-scene)),.pause-card,.mine-inspect,.story-speech,#event,.decision-card,.ending-card){
 border-color:transparent;border-style:solid;
 border-image:url('./assets/window-deco-v1.png') 42 / 8px stretch;
 background-color:#fcf2d9;
 box-shadow:0 5px 18px #1c2a20a0
}
#game #panel .panel-head{
 background:linear-gradient(180deg,#324d39,#1d372d);color:#fff0c7;
 border-bottom:1px solid #c6a25c
}
#game .story-speech{color:#362f22}
@media(max-width:620px){
 #game :is(#panel,#dialogBody:not(:has(.story-scene)),.pause-card,.mine-inspect,.story-speech,#event,.decision-card,.ending-card){border-image-width:5px}
}

#game #mainAction[hidden]{display:none}
body.handset-portrait #game:has(#world[data-scene="skyline"]){
 background:linear-gradient(165deg,#203c33,#152924 70%)
}
body.handset-portrait #game:has(#world[data-scene="skyline"]) #mapViewport{
 background:radial-gradient(ellipse at 50% 48%,#3d4d3d,#20372e 65%,#152924)
}
#game #hud #hudControls #hudFullscreen,#game #hud #hudControls #pauseButton{
 border:0;box-shadow:none;border-radius:50%;padding:0;
 background:transparent var(--hud-button-art) center/contain no-repeat
}
#game #hud #hudControls #hudFullscreen{--hud-button-art:url('./assets/hud-fullscreen-deco-v1.png')}
#game #hud #hudControls #pauseButton{--hud-button-art:url('./assets/hud-settings-deco-v1.png')}
#game #hud #hudControls :is(#hudFullscreen,#pauseButton):hover{filter:brightness(1.13)}
#game #hud #hudControls #hudFullscreen[aria-pressed="true"]{filter:brightness(1.16)}
#game #hud #hudControls :is(#hudFullscreen,#pauseButton) .pixel-control-icon{visibility:hidden}
#game #hud #hudControls :is(#hudFullscreen,#pauseButton):focus-visible{outline:2px solid #f2cd79;outline-offset:2px}

#game #freeTraders{
 position:absolute;left:22px;bottom:125px;z-index:8;display:flex;align-items:center;gap:8px;
 min-height:46px;padding:4px 12px 4px 5px;border:1px solid #f6cf76;border-radius:8px;
 color:#fff1ca;background:#214236;box-shadow:0 0 0 2px #704d2a,0 0 16px #d8ab58ad;font-weight:700
}
#game #freeTraders[hidden]{display:none}
#game #freeTraders img{height:34px;width:34px;object-fit:contain}
#game #freeTraders b{color:#25281a;background:#f5cf76;padding:2px 6px;border-radius:4px}
#game #freeTraders:hover,#game #freeTraders:focus-visible{background:#365c47}
.free-trader-list{display:grid;gap:7px}
.free-trader-list article{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px;border-bottom:1px solid #aa9269}
.free-trader-list small{display:block}
.map-theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0}
.map-theme-card img,#mapThemePreview{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:4px}
.map-theme-card .buttons{gap:5px;margin-top:4px}
#mapThemePreview{margin-bottom:10px;background:#203d33}
body.handset-portrait #game #freeTraders{left:8px;bottom:calc(145px + env(safe-area-inset-bottom));min-height:40px;font-size:13px}
@media(max-width:500px){.map-theme-card{padding:7px}.map-theme-card .buttons>button{width:100%}}

#game #hud #identity{height:62px}
#game #hud #identity #portrait{width:60px;height:60px;flex:0 0 60px}
body.phone.tablet #game #hud #identity{height:52px}
body.phone.tablet #game #hud #identity #portrait{width:52px;height:51px;flex-basis:52px}
body.rotate-handset #game{visibility:hidden}
#rotateHandset[hidden]{display:none}
#rotateHandset{
 position:fixed;inset:0;z-index:500;display:grid;place-content:center;justify-items:center;gap:14px;
 padding:24px;text-align:center;color:#fff0ca;background:radial-gradient(ellipse at 50% 38%,#284738,#13251e);
 font-family:Georgia,serif
}
#rotateHandset img{width:96px;height:96px;border-radius:18px;box-shadow:0 8px 24px #080f0c}
#rotateHandset :is(h1,p){margin:0}
#rotateHandset h1{font-size:28px}
#rotateHandset p{font-size:17px;max-width:260px;line-height:1.4}
body.handset-landscape #game{
 --phone-left:max(8px,env(safe-area-inset-left));
 --phone-right:max(8px,env(safe-area-inset-right));
 --phone-bottom:max(7px,env(safe-area-inset-bottom))
}
body.handset-landscape #game #hud{
 top:max(0px,env(safe-area-inset-top));left:var(--phone-left);right:var(--phone-right);
 height:65px;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(105px,.85fr) minmax(149px,1.32fr) minmax(175px,1.35fr) 76px;
 padding:3px 8px;gap:4px
}
body.handset-landscape #game #hud #identity{height:54px}
body.handset-landscape #game #hud #identity #portrait{width:48px;height:51px;flex-basis:48px}
body.handset-landscape #game #hud #hudControls{gap:2px}
body.handset-landscape #game #hud #hudControls button{width:36px;min-width:36px;height:43px}
body.handset-landscape #game #hud .money{
 grid-template-columns:minmax(0,1fr);grid-template-rows:25px 12px 14px;gap:0;align-content:center;height:54px
}
body.handset-landscape #game #hud .money .balance-line{grid-column:1;grid-row:1;gap:3px}
body.handset-landscape #game #hud .cash-counter{height:25px;padding-inline:2px 3px;gap:2px}
body.handset-landscape #game #hud .cash-counter #cash{font-size:clamp(13px,2.35vw,20px);line-height:23px;white-space:nowrap}
body.handset-landscape #game #hud .cash-coin{width:16px;height:16px}
body.handset-landscape #game #hud #jewelBalance{min-height:24px;height:24px;padding:1px 4px;gap:2px;font-size:10px}
body.handset-landscape #game #hud .jewel-icon{width:13px;height:13px}
body.handset-landscape #game #hud #income{grid-column:1;grid-row:2;font-size:9px}
body.handset-landscape #game #hud #depotValue{display:none}
body.handset-landscape #game #hud #oreStocks:not([hidden]){
 grid-column:1;grid-row:3;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:14px;
 gap:1px;min-width:0;font-size:8px;align-items:center
}
body.handset-landscape #game #hud #oreStocks>span{gap:1px;padding:0;white-space:nowrap;min-width:0}
body.handset-landscape #game #hud #oreStocks img{width:10px;height:10px;flex:none}
body.handset-landscape #game #hud .clock{grid-template-columns:minmax(0,1fr) 30px 34px auto;gap:1px 3px;padding:0}
body.handset-landscape #game #hud #week{width:100%;min-width:0;gap:1px}
body.handset-landscape #game #hud #week span{width:auto;min-width:0;font-size:9px;padding:0}
body.handset-landscape #game #hud #activeOrders{width:30px;min-width:0;padding:0;gap:2px;font-size:10px}
body.handset-landscape #game #hud #activeOrders .order-word{display:none}
body.handset-landscape #game #hud #activeOrders .game-icon{width:12px;height:12px}
body.handset-landscape #game #hud #energyMeter{width:34px;font-size:9px;gap:1px;white-space:nowrap}
body.handset-landscape #game #hud #energyMeter>i{width:33px;height:6px}
body.handset-landscape #game #hud #clock{font-size:clamp(15px,2.6vw,20px)}
body.handset-landscape #game #mapViewport{top:var(--hud-bottom,65px);left:var(--phone-left);right:var(--phone-right);bottom:0;height:auto}
body.handset-landscape #game #mainAction{
 left:var(--phone-left);right:auto;bottom:var(--phone-bottom);transform:none;
 width:clamp(143px,25vw,215px);min-width:0;height:48px;min-height:48px;
 padding:0 10px;white-space:nowrap;font-size:clamp(13px,2.05vw,19px)
}
body.handset-landscape #game #dock{
 left:auto;right:var(--phone-right);bottom:var(--phone-bottom);gap:4px;
 display:flex;max-width:calc(70% - var(--phone-right));width:auto
}
body.handset-landscape #game #dock button{width:clamp(47px,7.6vw,71px);height:48px;min-width:0;min-height:44px}
body.handset-landscape #game #dock button span{font-size:clamp(7px,1.25vw,10px)}
body.handset-landscape #game #dock button i.dock-glyph{width:23px;height:23px}
body.handset-landscape #game #freeTraders{left:var(--phone-left);bottom:calc(var(--phone-bottom) + 56px)}
body.handset-landscape #game :is(#panel,#panel.centered,#panel.wide,#panel[data-kind="team"]):not([hidden]){
 top:calc(var(--hud-bottom,65px) + 5px);bottom:var(--phone-bottom);left:50%;right:auto;
 width:min(640px,calc(100% - var(--phone-left) - var(--phone-right)));max-width:none;transform:translateX(-50%)
}
body.handset-landscape #game #panelBody{min-height:0}
@media(max-width:720px){
 body.handset-landscape #game #hud .money{
  grid-template-columns:minmax(0,1fr) auto;grid-template-rows:25px 16px 13px
 }
 body.handset-landscape #game #hud .money .balance-line{display:contents}
 body.handset-landscape #game #hud .money .cash-counter{grid-column:1/-1;grid-row:1}
 body.handset-landscape #game #hud #jewelBalance{
  grid-column:2;grid-row:2;justify-self:end;min-height:16px;height:16px;font-size:9px
 }
 body.handset-landscape #game #hud .jewel-icon{width:11px;height:11px}
 body.handset-landscape #game #hud #income{align-self:center;overflow:hidden;text-overflow:ellipsis}
 body.handset-landscape #game #hud #oreStocks:not([hidden]){grid-column:1/-1;font-size:8px}
}
@media(max-height:360px){
 body.handset-landscape #game #hud #identity #portrait{height:47px}
}
