:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#edf0df;background:#12271f;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 50% 0,#314b36,#12271f 60%);min-height:100dvh}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #ffe1a0;outline-offset:3px}.app{width:min(100%,510px);margin:auto;padding:max(14px,env(safe-area-inset-top)) 16px max(20px,env(safe-area-inset-bottom))}.top{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.eyebrow{font-size:10px;letter-spacing:.18em;font-weight:800;color:#a5bb97}.top h1{font-family:Georgia,serif;font-size:25px;margin:2px 0 0;letter-spacing:-.03em}.top-actions{display:flex;gap:8px}.icon-button{width:42px;height:42px;border:1px solid #617363;background:#263e31;color:#eef0dc;border-radius:50%;font-size:14px;font-weight:800}.goal-bar{background:#ebd9ad;color:#293a2b;border-radius:15px;padding:12px;display:flex;align-items:center;gap:11px;margin-bottom:12px;box-shadow:0 6px 20px #091b1740}.goal-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:11px;background:#f8ebc8;font-size:24px}.goal-copy{flex:1;min-width:0}.goal-label,.cargo span,.score>span{font-size:9px;letter-spacing:.12em;font-weight:800}.goal-copy strong{display:block;font-size:14px}.goal-progress,.score-track{height:5px;border-radius:9px;background:#c5b891;overflow:hidden;margin:5px 0}.goal-progress span,.score-track span{display:block;height:100%;background:#5a7950;border-radius:9px;transition:width .25s}.goal-copy small{font-size:10px;color:#5e6a4e}.text-button{color:#4c6845;background:none;border:0;text-decoration:underline;font-size:12px;font-weight:700;padding:12px 4px}.game-panel{border-radius:18px;padding:15px;background:#223d30;border:1px solid #526b50;box-shadow:0 12px 32px #07181170}.game-header{display:flex;justify-content:space-between;align-items:end}.game-header>div:first-child{display:flex;align-items:baseline;gap:8px}.game-header>div:first-child strong{font-family:Georgia,serif;font-size:26px;color:#f0dba7}.score{text-align:right}.score>span{display:block;color:#9fb397}.score strong{font-size:21px}.score small{font-size:12px;color:#a2b29d;font-weight:500}.score-track{margin:10px 0 12px;background:#122a20}.score-track span{background:#ebc57d}.total-score{display:flex;justify-content:space-between;margin:-5px 0 8px;color:#aebfa6;font-size:9px;letter-spacing:.1em;font-weight:800}.total-score strong{color:#ead5a3;font-size:11px;letter-spacing:0}.scene{position:relative;background:#526b50;border-radius:10px;overflow:hidden}.scene canvas{display:block;width:100%;height:auto;max-height:47dvh;object-fit:contain;background:#243b30}.scene-caption{position:absolute;top:8px;left:10px;right:10px;display:flex;justify-content:space-between;pointer-events:none;color:#e7e9c5aa;font-size:8px;font-weight:800;letter-spacing:.14em}.cargo{display:flex;align-items:center;gap:10px;padding:10px 1px}.cargo-icon{background:#3b5842;border-radius:8px;width:37px;height:37px;display:grid;place-items:center;color:#edd299;font-size:22px}.cargo>div:nth-child(2){flex:1;min-width:0}.cargo span{display:block;color:#9eb397}.cargo strong{font-size:13px}.cargo-value{color:#e7c883}.controls{display:grid;grid-template-columns:1fr 1fr 1fr 1.5fr;gap:7px}.controls button{min-height:50px;border:1px solid #668267;background:#395a42;color:#f8f1d8;border-radius:10px;font-size:23px;font-weight:700;touch-action:none;user-select:none}.controls button:active,.controls button.pressed{background:#5d7957}.controls .fast{background:#ddb875;color:#27382a;border-color:#edce91;display:flex;align-items:center;justify-content:center;gap:6px}.fast small{font-size:8px;max-width:63px;text-align:left;line-height:1.2}.hint{text-align:center;color:#9ab09a;font-size:10px;margin:10px 0 0}footer{display:flex;justify-content:space-between;gap:10px;color:#91a992;font-size:10px;margin:15px 2px}footer a{color:#d2c59b}.modal{position:fixed;inset:0;background:#0c1c17d9;display:grid;place-items:center;padding:20px;z-index:3}.modal[hidden],.goal-options[hidden],.coins[hidden],button[hidden]{display:none}.modal-card{background:#f2e7cb;color:#273c2c;border-radius:20px;padding:25px;width:min(100%,390px);text-align:center;max-height:90dvh;overflow:auto;box-shadow:0 15px 50px #0007}.modal-art{width:70px;height:70px;display:grid;place-items:center;border-radius:50%;background:#e2d1a5;font-size:38px;margin:0 auto 12px}.modal .eyebrow{color:#718464}.modal h2{font-family:Georgia,serif;font-size:28px;line-height:1.08;margin:7px 0 9px}.modal p{font-size:14px;line-height:1.5;color:#60705a;margin:0 0 18px}.modal-actions{display:grid;gap:8px}.primary,.secondary{border:0;border-radius:10px;min-height:47px;font-weight:800}.primary{background:#325b40;color:white}.secondary{background:transparent;color:#395c41;border:1px solid #a5b599}.goal-options{display:grid;gap:7px;margin-bottom:16px}.goal-option{display:flex;align-items:center;gap:10px;border:1px solid #c6c8a9;border-radius:10px;background:#fff8e7;padding:10px;color:#344b37;text-align:left}.goal-option span{font-size:22px}.goal-option strong{flex:1}.goal-option small{color:#6b7f61}.goal-option.selected{border:2px solid #4a7950;background:#e4edcf}.coins{font-size:26px;margin:-5px 0 14px;animation:coins .7s ease-out}@keyframes coins{from{transform:translateY(-40px);opacity:0}to{transform:translateY(0);opacity:1}}@media(max-height:720px){.top{margin-bottom:8px}.goal-bar{margin-bottom:8px;padding:8px}.game-panel{padding:10px}.scene canvas{max-height:40dvh}.controls button{min-height:44px}.hint{margin-top:5px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important}}

/* Optional goals stay visible without hiding the play field. */
.challenge{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:-4px 0 9px;padding:6px 9px;border-radius:7px;background:#34513a;color:#f4dfac;font-size:10px;line-height:1.25}.challenge strong{white-space:nowrap;color:#f3cd7d}.challenge.done{background:#57744d;color:#fff4d3}
.boss-scene{width:100%;margin:2px 0 15px;overflow:hidden;border-radius:14px;background:#cbd3ac}.boss-scene[hidden]{display:none}.boss-scene svg{display:block;width:100%;height:auto}.boss-mouth.happy,.boss-mouth.sad{display:none}.boss-scene.great .boss-mouth.normal,.boss-scene.disappointed .boss-mouth.normal{display:none}.boss-scene.great .boss-mouth.happy,.boss-scene.disappointed .boss-mouth.sad{display:block}.boss-scene.disappointed .boss-brow{transform:translateY(2px)}.flying-coin{opacity:0;transform:translate(190px,96px)}.boss-scene.reward .character-arm{display:none}.boss-scene.reward .coin-one{animation:coin-flight 1.15s .35s ease-in both}.boss-scene.reward .coin-two{animation:coin-flight 1.15s .52s ease-in both}.boss-scene.reward .coin-three{animation:coin-flight 1.15s .69s ease-in both}
@keyframes coin-flight{0%{opacity:0;transform:translate(190px,96px) scale(.65)}12%{opacity:1}45%{transform:translate(138px,46px) scale(1.1)}95%{opacity:1}100%{opacity:0;transform:translate(82px,122px) scale(.8)}}
@media(prefers-reduced-motion:reduce){.boss-scene.reward .flying-coin{animation:none}.boss-scene.reward .coin-one{opacity:1;transform:translate(114px,82px)}.boss-scene.reward .coin-two{opacity:1;transform:translate(129px,64px)}.boss-scene.reward .coin-three{opacity:1;transform:translate(145px,83px)}}
.modal-art[hidden]{display:none}
/* Better-packed warehouses get a larger celebration. */
.space-bonus{position:relative;isolation:isolate;overflow:hidden;margin:0 0 14px;padding:10px 28px;border:1px solid #b8bd88;border-radius:11px;background:#e0e9c8;color:#38563b;font-size:16px;font-weight:900;line-height:1.25}
.space-bonus[hidden]{display:none}
.space-bonus::before,.space-bonus::after{position:absolute;top:50%;transform:translateY(-50%);color:#d09737;line-height:1;pointer-events:none}
.space-bonus::before{content:'✦';left:12px}.space-bonus::after{content:'✦';right:12px}
.bonus-120{animation:bonus-rise .65s ease-out both}
.bonus-240{background:#f3e2a9;border-color:#dbbb6b;animation:bonus-bounce .85s ease-out both}
.bonus-240::before,.bonus-240::after{animation:bonus-sparkle .8s .25s ease-out both}
.bonus-360{background:#f7d99c;border-color:#d59e47;color:#784b23;animation:bonus-spin .95s ease-out both}
.bonus-360::before,.bonus-360::after{content:'✷';font-size:20px;animation:bonus-sparkle 1s .2s ease-out both}
.bonus-480{background:#f8d88a;border:2px solid #c99536;color:#74401c;box-shadow:0 0 18px #e8ad4c80;animation:bonus-jackpot 1.2s ease-out both}
.bonus-480::before,.bonus-480::after{content:'✹';font-size:24px;animation:bonus-sparkle 1.1s .25s ease-out both}
@keyframes bonus-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes bonus-bounce{0%{opacity:0;transform:scale(.7)}55%{opacity:1;transform:scale(1.1)}75%{transform:scale(.96)}100%{transform:scale(1)}}
@keyframes bonus-spin{0%{opacity:0;transform:scale(.6) rotate(-8deg)}55%{opacity:1;transform:scale(1.1) rotate(3deg)}75%{transform:scale(.96) rotate(-1deg)}100%{transform:scale(1) rotate(0)}}
@keyframes bonus-jackpot{0%{opacity:0;transform:scale(.45)}38%{opacity:1;transform:scale(1.13)}52%{transform:scale(.96) rotate(-2deg)}65%{transform:scale(1.05) rotate(2deg)}80%{transform:scale(.98) rotate(-1deg)}100%{transform:scale(1) rotate(0)}}
@keyframes bonus-sparkle{0%{opacity:0;transform:translateY(-50%) scale(.2) rotate(-90deg)}55%{opacity:1;transform:translateY(-50%) scale(1.35) rotate(25deg)}100%{opacity:1;transform:translateY(-50%) scale(1) rotate(0)}}
@media(prefers-reduced-motion:reduce){.space-bonus,.space-bonus::before,.space-bonus::after{animation:none}.space-bonus::before,.space-bonus::after{transform:translateY(-50%)}}
@media(max-height:900px){.scene canvas{max-height:40dvh}}
@media(max-height:720px){.scene canvas{max-height:37dvh}}
@media (orientation:landscape) and (max-height:500px){
  .app{width:min(100%,850px);display:grid;grid-template-columns:minmax(145px,210px) minmax(0,1fr);grid-template-rows:auto auto 1fr;gap:8px 12px;padding:8px 12px}
  .top{grid-column:1;grid-row:1;margin:0}.top h1{font-size:20px}.icon-button{width:38px;height:38px}.top-actions{gap:4px}
  .goal-bar{grid-column:1;grid-row:2;align-self:start;margin:0;padding:8px}.goal-icon{width:34px;height:34px;font-size:19px}.goal-bar .goal-label{font-size:8px}.goal-copy strong{font-size:12px}
  footer{grid-column:1;grid-row:3;align-self:end;flex-direction:column;margin:0 0 6px}
  .game-panel{grid-column:2;grid-row:1/4;display:grid;grid-template-columns:minmax(100px,1fr) minmax(180px,1fr);grid-template-rows:auto auto auto auto auto auto 1fr;gap:4px 10px;padding:8px;align-items:start}
  .scene{grid-column:1;grid-row:1/8;align-self:center}.scene canvas{max-height:calc(100dvh - 34px)}.scene-caption{font-size:6px}
  .game-header,.score-track,.challenge,.total-score,.cargo,.controls,.hint{grid-column:2}.game-header{grid-row:1}.score-track{grid-row:2;margin:0}.challenge{grid-row:3;margin:0}.total-score{grid-row:4;margin:0}.cargo{grid-row:5;padding:2px 0}.controls{grid-row:6;grid-template-columns:repeat(4,1fr);gap:4px}.controls button{min-height:44px}.fast small{font-size:7px}.hint{grid-row:7;margin:0;align-self:start}
  .modal-card{padding:14px;max-height:94dvh}.modal-art{width:45px;height:45px;font-size:25px;margin-bottom:5px}.modal h2{font-size:22px;margin:4px 0}.modal p{margin:0 0 8px;font-size:12px}.boss-scene{width:min(100%,230px);margin:0 auto 8px}.primary,.secondary{min-height:42px}
}

.scene canvas[hidden]{display:none}

.controls button:disabled{opacity:.6;cursor:default}
.goal-timer{margin-top:3px;font-size:11px;font-weight:800;font-variant-numeric:tabular-nums;color:#395b3d}
.goal-timer.urgent{color:#a52f29}

/* Clear, compact labels keep the controls easy to recognize. */
.top-actions .pause-button{padding:0;font-size:14px}
.controls button{display:flex;align-items:center;justify-content:center;gap:4px;padding:4px}
.controls button span{line-height:1}
.controls button small{font-size:10px;line-height:1.15;font-weight:800}
.controls .fast small{font-size:9px;max-width:58px}
@media (orientation:landscape) and (max-height:500px){.controls button{flex-direction:column;gap:0}.controls button small{font-size:9px}.controls .fast small{text-align:center;font-size:8px}}

/* The driver sits behind the truck, in the foreground of either view. */
.driver{position:absolute;left:50%;bottom:0;width:clamp(60px,20%,110px);transform:translateX(-50%);pointer-events:none;z-index:1}
.driver svg{display:block;width:100%;overflow:visible}
.steering-wheel{transform-origin:60px 48px;transition:transform .18s ease}
.driver.left .steering-wheel{transform:rotate(-35deg)}
.driver.right .steering-wheel{transform:rotate(35deg)}
.driver-right-hand{transition:transform .15s ease}
.driver.operating .driver-right-hand{transform:translate(20px,5px)}
.driver-lever{transform-origin:100px 70px;transition:transform .15s ease}
.driver.operating .driver-lever{transform:rotate(25deg)}

/* Expand the warehouse within the existing browser window. */
.game-fullscreen,.game-fullscreen body{width:100%;height:100%;overflow:hidden;background:#526b50}
.game-fullscreen .app{position:fixed;inset:0;width:100%;height:100%;padding:0;display:block;max-width:none}
.game-fullscreen .game-panel{position:absolute;inset:0;display:block;padding:0;border:0;border-radius:0;box-shadow:none;background:#526b50}
.game-fullscreen .scene{position:absolute;inset:0;width:100%;height:100%;min-height:0;align-self:auto;border-radius:0;background:#657d66}
.game-fullscreen .scene canvas{width:100%;height:100%;max-height:none;object-fit:fill;background:#657d66}
.game-fullscreen .scene #scene-3d{object-fit:fill}
/* The 3D scene extends underneath the header overlays. */
.mode-3d .scene,.mode-3d .scene canvas{background:transparent}
.game-fullscreen.mode-3d{background:#000}
.game-fullscreen.mode-3d body,.game-fullscreen.mode-3d .game-panel{background:transparent}
.game-fullscreen.mode-3d .scene,.game-fullscreen.mode-3d .scene canvas{background:transparent}
.game-fullscreen .scene-caption,.game-fullscreen .hint,.game-fullscreen .score-track,.game-fullscreen .total-score,.game-fullscreen .challenge{display:none}
.game-fullscreen .top{position:absolute;z-index:2;top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));margin:0}
.game-fullscreen .top>div:first-child{display:none}
.game-fullscreen .top-actions{gap:5px}
.game-fullscreen .icon-button{background:#203b30df;box-shadow:0 2px 8px #162c2450}
.game-fullscreen .goal-bar{position:absolute;z-index:2;top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));width:min(50%,240px);margin:0;padding:7px;gap:7px;background:#f1e4cbdc;box-shadow:0 3px 12px #162c2440}
.game-fullscreen .goal-icon{width:35px;height:35px;flex:none;font-size:20px}
.game-fullscreen .goal-copy strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-fullscreen .goal-copy small{font-size:9px}
.game-fullscreen .goal-progress{margin:2px 0}
.game-fullscreen .goal-bar .text-button{padding:4px;font-size:10px}
.game-fullscreen .game-header{position:absolute;z-index:2;top:calc(max(8px,env(safe-area-inset-top)) + 82px);right:max(8px,env(safe-area-inset-right));display:block;padding:6px 9px;border-radius:10px;background:#203b30d9}
.game-fullscreen .game-header>div:first-child{display:none}
.game-fullscreen .score>span{font-size:8px}.game-fullscreen .score strong{font-size:15px}
.game-fullscreen .cargo{position:absolute;z-index:2;top:calc(max(8px,env(safe-area-inset-top)) + 48px);left:max(8px,env(safe-area-inset-left));padding:6px 9px;border-radius:10px;background:#203b30d9;max-width:55%}
.game-fullscreen .cargo-icon{width:28px;height:28px;font-size:17px}.game-fullscreen .cargo strong{font-size:12px}
.game-fullscreen .controls{position:absolute;z-index:2;bottom:max(8px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(96%,480px);gap:6px}
.game-fullscreen .controls button{min-height:48px;background:#395a42e8;box-shadow:0 2px 9px #162c2450}
.game-fullscreen .controls .fast{background:#ddb875ed}
.game-fullscreen .driver{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 49px);width:clamp(70px,15vh,120px)}
@media (orientation:landscape) and (max-height:500px){
  .game-fullscreen .goal-bar{width:min(38%,230px)}
  .game-fullscreen .controls{width:min(60%,400px);left:auto;right:max(8px,env(safe-area-inset-right));transform:none}
  .game-fullscreen .driver{bottom:0;width:clamp(65px,23vh,100px)}
}

/* Keep movement, acceleration, and placement available together. */
.controls{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr)}
@media (max-width:480px), (orientation:landscape) and (max-height:500px){.controls{gap:4px}.controls button{flex-direction:column;gap:0}.controls button small{font-size:8px;text-align:center}}

/* Direction controls flank the three actions, including the expanded view. */
.game-fullscreen .controls{width:calc(100% - 16px);max-width:none;left:50%;right:auto;transform:translateX(-50%);grid-template-columns:minmax(44px,1fr) minmax(44px,84px) minmax(44px,70px) minmax(44px,84px) minmax(44px,1fr)}
.game-fullscreen .controls [data-action="left"]{justify-self:start;width:min(100%,70px)}
.game-fullscreen .controls [data-action="right"]{justify-self:end;width:min(100%,70px)}

.edit-hint{margin:0 0 8px;color:#f6d994;font-size:11px;text-align:center}.edit-hint[hidden]{display:none}.game-fullscreen .edit-hint{position:absolute;z-index:2;top:calc(max(8px,env(safe-area-inset-top)) + 135px);left:8px;right:8px;margin:0;padding:6px;background:#203b30e8;border-radius:8px;pointer-events:none}

/* Compact overlays in the expanded warehouse. */
.goal-icon-label,.loose-list{display:none}
.game-fullscreen .goal-icon-column{display:flex;flex-direction:column;align-items:center;gap:2px;flex:none}
.game-fullscreen .goal-icon-label{display:block;font-size:8px;letter-spacing:.12em;font-weight:800}
.game-fullscreen .goal-copy .goal-label,.game-fullscreen .game-header{display:none}
.game-fullscreen .cargo{left:auto;right:max(8px,env(safe-area-inset-right));max-width:45%}
.game-fullscreen .loose-list:not([hidden]){position:absolute;z-index:2;top:calc(max(8px,env(safe-area-inset-top)) + 82px);left:max(8px,env(safe-area-inset-left));display:flex;align-items:center;gap:7px;max-width:48%;padding:6px;border-radius:10px;background:#203b30d9}
.game-fullscreen .loose-list>span{color:#f6d994;font-size:10px;font-weight:700;white-space:nowrap}
.loose-items{display:flex;gap:4px;overflow-x:auto}
.loose-item{width:36px;height:36px;flex:none;padding:3px;border:1px solid #829b7e;border-radius:7px;background:#e4e6d2}
.loose-item img{display:block;width:100%;height:100%;object-fit:contain}
.loose-item[aria-pressed="true"]{border:2px solid #ffdf75;box-shadow:0 0 0 2px #c7943d}
.loose-item:disabled{opacity:.55;cursor:default}
.game-fullscreen .edit-hint{top:calc(max(8px,env(safe-area-inset-top)) + 132px);left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:calc(100% - 16px)}

.game-fullscreen .goal-bar{width:min(calc(100% - 132px),240px)}
.game-fullscreen .goal-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-fullscreen .icon-button{width:36px;height:36px;font-size:11px}
.game-fullscreen .goal-bar{width:min(calc(100% - 146px),240px)}
.game-fullscreen .top-actions .pause-button{font-size:14px}
.game-fullscreen .goal-bar .text-button{align-self:flex-end;padding:0 2px;margin-bottom:3px;line-height:normal}

.goal-heading{display:flex;align-items:baseline;gap:8px;min-width:0;white-space:nowrap}
.goal-heading strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.goal-heading .text-button,.game-fullscreen .goal-heading .text-button{position:static;transform:none;align-self:auto;margin:0;padding:0;flex:none;line-height:normal;white-space:nowrap}
.goal-timer{margin-top:1px;white-space:nowrap;font-size:10px;line-height:1.15}
.game-fullscreen .goal-bar{width:min(calc(100% - 146px),240px);max-width:none;gap:5px}
.game-fullscreen .goal-icon{width:28px;height:28px;font-size:17px}
.game-fullscreen .goal-timer{font-size:clamp(8px,2.5vw,10px)}
.port-status{display:none}.port-mode .port-status{display:block;padding:8px 12px;background:#ead6a2;color:#263e31;font-size:12px;font-weight:700;border-radius:8px}.port-mode .goal-bar,.port-mode .challenge,.port-mode .total-score{display:none}.port-mode.game-fullscreen .port-status{position:absolute;z-index:2;top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));max-width:calc(100% - 150px)}
.port-intake{display:flex;align-items:center;gap:4px;margin:3px 0;font-size:10px}.port-slot{width:26px;height:24px;display:grid;place-items:center;border:1px solid #9a9d7b;border-radius:4px;background:#f6ebca}.port-slot.next{border:2px solid #35704b}.port-slot img{width:20px;height:20px;object-fit:contain}.port-actions{display:flex;gap:5px;align-items:center}.port-actions button,.port-actions a{font-size:10px;font-weight:700;color:#23412d;background:#fff3d2;border:1px solid #9ca983;border-radius:5px;padding:4px 6px;text-decoration:none}.port-actions button:disabled{opacity:.5}.port-mode.game-fullscreen .port-status{width:min(calc(100% - 150px),310px);font-size:clamp(9px,2.3vw,11px);padding:5px 7px;line-height:1.25}.port-mode.game-fullscreen .edit-hint{top:calc(max(8px,env(safe-area-inset-top)) + 118px)}
@media(max-width:500px){.port-mode.game-fullscreen .cargo{display:none}}
.port-entry{display:grid;place-items:center;text-decoration:none}.port-entry[hidden]{display:none}
/* Quick Port keeps the Classic goal: show the goal bar, port status under it. */
.port-quick .goal-bar{display:flex}.port-quick.game-fullscreen .port-status{top:calc(max(8px,env(safe-area-inset-top)) + 84px)}.port-quick.game-fullscreen .edit-hint{top:calc(max(8px,env(safe-area-inset-top)) + 200px)}
/* Port Challenge HUD (spec §7): every warning pairs colour with text or an icon. */
.pc-hud[hidden],.pc-jam[hidden],.port-ship-bar[hidden]{display:none}.port-challenge #port-ship,.port-challenge #port-ship-bar,.port-challenge #port-progress,.port-challenge #port-carrying,.port-challenge .game-header{display:none}
.pc-top{display:flex;justify-content:space-between;align-items:center;gap:6px}.pc-ship,.port-ship-clock{font-size:1.05em;border-radius:4px;padding:0 4px;font-weight:800;font-variant-numeric:tabular-nums}.pc-ship.warning,.port-ship-clock.warning{color:#5b3300;background:#ffd98a}.pc-ship.critical,.port-ship-clock.critical{color:#fff;background:#b8382e}.pc-ship.pulse,.port-ship-clock.pulse{animation:pc-pulse 1s ease-in-out infinite}
.port-ship-bar{height:5px;border-radius:3px;background:#d8ccb2;margin:2px 0 3px;overflow:hidden}.port-ship-bar span{display:block;height:100%;background:#2ec4b6;transition:width .1s linear}.port-ship-bar.warning span{background:#e59400}.port-ship-bar.critical span{background:#c9352b}
.pc-strikes{display:flex;gap:2px;flex:none}.pc-strike{width:15px;height:15px;display:grid;place-items:center;border:1.5px solid #7b6a4b;border-radius:50%;color:#7b6a4b;font-size:9px;line-height:1}.pc-strike.used{background:#b8382e;border-color:#b8382e;color:#fff}.pc-strikes.pop{animation:pc-pop .5s ease-out}
.pc-manifest{list-style:none;margin:3px 0;padding:0;display:flex;flex-wrap:wrap;gap:3px}.pc-row{background:#fff6dd;border:1px solid #b8ae84;border-radius:5px;padding:1px 4px}.pc-row.done{background:#d4f1db;border-color:#35704b}
.pc-chip{display:inline-flex;align-items:center;gap:2px;white-space:nowrap}.pc-chip img{width:16px;height:16px;object-fit:contain}
.pc-next{display:flex;flex-wrap:wrap;align-items:center;gap:3px 5px;width:100%;margin:2px 0;padding:2px 5px;border:1px dashed #8f8a68;border-radius:5px;background:#f6ebca;color:#263e31;font-size:inherit;font-weight:700;text-align:left;min-height:24px}.pc-next:disabled{cursor:default;color:#5e6650}.pc-next.flash{animation:pc-flash .9s ease-in-out 2}.pc-new{background:#35704b;color:#fff;border-radius:3px;padding:0 3px;font-size:.85em}.pc-caret{margin-left:auto}
.pc-intake-label{font-weight:800}.port-intake.warning .pc-intake-label,.port-intake.penalized .pc-intake-label{color:#a3271d}.port-intake.blocked .pc-intake-label{color:#7a4300}.port-intake.shake{animation:pc-shake .4s ease-in-out 2}
.pc-jam{position:relative;height:6px;border-radius:3px;background:#c9bf98;margin:1px 0 3px;overflow:hidden}.pc-jam span{display:block;height:100%;background:#d89b2b}.pc-jam.warning span,.pc-jam.penalized span{background:#b8382e}.pc-jam i{position:absolute;top:0;bottom:0;left:50%;width:2px;background:#263e31}
.pc-feedback{white-space:pre-line}.pc-feedback.good{color:#1f6b3a}.pc-feedback.bad{color:#9b2c22}.pc-feedback.warn{color:#7a4300}
.pc-float{position:absolute;left:50%;top:34%;transform:translateX(-50%);z-index:3;pointer-events:none;font:900 22px system-ui,sans-serif;color:#fff3c4;text-shadow:0 2px 6px #12271f;opacity:0;white-space:nowrap}.pc-float.show{animation:pc-float 1.6s ease-out forwards}
.port-challenge .modal p{white-space:pre-line}.port-challenge.game-fullscreen .port-status{width:min(calc(100% - 150px),330px)}
@keyframes pc-pulse{50%{opacity:.6}}@keyframes pc-pop{40%{transform:scale(1.25)}}@keyframes pc-flash{50%{background:#bfe7c9}}@keyframes pc-shake{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}@keyframes pc-float{0%{opacity:0;transform:translate(-50%,10px)}15%{opacity:1}100%{opacity:0;transform:translate(-50%,-40px)}}
@media (prefers-reduced-motion:reduce){.pc-ship.pulse,.port-ship-clock.pulse,.pc-strikes.pop,.pc-next.flash,.port-intake.shake,.pc-float.show{animation:none}.pc-float{display:none}}
.port-challenge.game-fullscreen .edit-hint{top:auto;bottom:calc(max(8px,env(safe-area-inset-bottom)) + 62px)}
@media (orientation:landscape) and (max-height:500px){.port-challenge.game-fullscreen .edit-hint{left:max(8px,env(safe-area-inset-left));transform:none;max-width:36%;bottom:max(8px,env(safe-area-inset-bottom))}}

/* ---- Bright theme: warm cream cards, orange and teal accents, chunky buttons. ---- */
:root{color:#2d2a3e;background:#fff4e0}
body{background:radial-gradient(circle at 50% 0,#fff7e6,#ffe2b8 70%)}
.steering-wheel{transform-origin:60px 66px}
.game-fullscreen,.game-fullscreen body{background:#f7eedb}
.game-fullscreen .icon-button,.icon-button{background:#fff;color:#ff7a2f;border:2px solid #ffd2a8;box-shadow:0 3px 0 #f2b27c,0 6px 14px #c9772f33}
.icon-button:active{transform:translateY(2px);box-shadow:0 1px 0 #f2b27c}
.goal-bar,.game-fullscreen .goal-bar{background:#fffdf7f2;color:#2d2a3e;border:2px solid #ffe0b8;box-shadow:0 4px 0 #f6c99a,0 8px 18px #b0601f22}
.goal-icon{background:#fff0d6}.goal-copy small{color:#7d6a58}.text-button{color:#ff6a1f}
.goal-progress{background:#ffe7c7}.goal-progress span{background:linear-gradient(90deg,#ffb12e,#ff6a3d)}
.goal-timer{color:#2a8f6a}.goal-timer.urgent{color:#e5383b}
.game-fullscreen .cargo{background:#fffdf7f2;color:#2d2a3e;border:2px solid #c7f0e4;box-shadow:0 4px 0 #8fdcc5,0 8px 18px #1f7a6222}
.cargo span{color:#2a9d8f}.cargo-icon{background:#2ec4b6;color:#fff}.cargo-value{color:#ff7a2f}
.game-fullscreen .loose-list:not([hidden]),.game-fullscreen .edit-hint{background:#2d2a3ee6;color:#fff4d6}
.controls button,.game-fullscreen .controls button{border:0;color:#fff;border-radius:14px;font-weight:900;background:#4d8df7;box-shadow:0 4px 0 #2f63c9,0 8px 14px #1c3d8a33}
.controls [data-action="rotate"],.game-fullscreen .controls [data-action="rotate"]{background:#a46cf0;box-shadow:0 4px 0 #7a45c9,0 8px 14px #4a2a8a33}
.controls [data-action="fast"],.game-fullscreen .controls [data-action="fast"]{background:#2ec4b6;box-shadow:0 4px 0 #1f978b,0 8px 14px #1f7a6233}
.controls .fast,.game-fullscreen .controls .fast{background:#ff8a3d;color:#fff;box-shadow:0 4px 0 #d9601c,0 8px 14px #a6481533}
.controls button:active,.controls button.pressed,.game-fullscreen .controls button.pressed{transform:translateY(3px);filter:brightness(1.08);box-shadow:0 1px 0 #00000033}
.modal{background:#3a2a1ab3}
.modal-card{background:#fffaf0;color:#2d2a3e;border:3px solid #ffe0b8;box-shadow:0 8px 0 #f6c99a,0 20px 50px #0005}
.modal-art{background:#ffe9c4}.modal .eyebrow{color:#ff7a2f}.modal p{color:#5f5568}
.primary{background:#ff7a2f;color:#fff;box-shadow:0 4px 0 #d9581a}.primary:active{transform:translateY(2px);box-shadow:0 2px 0 #d9581a}
.secondary{color:#2a8f80;border:2px solid #9fe3d6;background:#fff}
.goal-option{background:#fff;border:2px solid #ffe0b8;color:#2d2a3e}.goal-option.selected{border-color:#2ec4b6;background:#e4faf5}.goal-option small{color:#7d6a58}
.boss-scene{background:#cdeeff}
.space-bonus{background:#fff2c9;border-color:#ffd166;color:#8a4b00}
.port-mode .port-status{background:#fffdf7f2;color:#2d2a3e;border:2px solid #ffe0b8;box-shadow:0 4px 0 #f6c99a}
.port-actions button,.port-actions a{background:#fff;color:#ff6a1f;border:2px solid #ffd2a8;border-radius:8px}
.port-slot{background:#fff4dc;border-color:#ffc98a}.port-slot.next{border-color:#2ec4b6}
.pc-row{background:#fff;border-color:#ffd2a8}.pc-row.done{background:#d9f7ec;border-color:#2ec4b6}.pc-next{background:#fff6e2;border-color:#ffb36b;color:#2d2a3e}.pc-new{background:#2ec4b6}
.pc-chip img,.port-slot img,.loose-item img{filter:saturate(1.5) brightness(1.06)}
.pc-float{color:#fff;text-shadow:0 2px 0 #ff7a2f,0 4px 10px #0006}

/* Intake warning, visible over the board without intercepting controls. */
.pc-pressure {
  --alarm: #ffd573;
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}
.pc-pressure.warning { --alarm: #ffaa67; }
.pc-pressure.critical { --alarm: #ff8379; }
.pc-pressure::before {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 3px var(--alarm), inset 0 0 32px #ed522d55;
  opacity: .7;
}
.pc-pressure.critical::before { opacity: 1; box-shadow: inset 0 0 0 4px var(--alarm), inset 0 0 48px #e9403466; }
.pc-pressure.honking::before { animation: pc-horn-ring .8s ease-out; }
.pc-pressure-card {
  position: absolute;
  top: 22px;
  right: max(8px, env(safe-area-inset-right));
  width: min(204px, calc(100% - 16px));
  padding: 7px 8px;
  border: 2px solid var(--alarm);
  border-radius: 10px;
  background: #252024;
  color: #fff7e9;
  box-shadow: 0 6px 18px #140e15aa;
}
.pc-pressure.critical .pc-pressure-card { background: #461c22; }
.pc-pressure-head { display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.pc-pressure-head strong { display: block; color: var(--alarm); font-size: 13px; font-weight: 900; }
.pc-pressure-head span { display: block; font-size: 10px; font-weight: 750; }
.pc-pressure-timer { flex: none; text-align: right; }
.pc-pressure-timer strong { font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.pc-pressure-track { height: 4px; margin: 6px 0 4px; border-radius: 4px; background: #ffffff29; overflow: hidden; }
.pc-pressure-track span { display: block; height: 100%; background: var(--alarm); }
.pc-pressure-action { font-size: 11px; font-weight: 700; line-height: 1.25; }
.game-fullscreen .pc-pressure-card {
  top: calc(max(env(safe-area-inset-top), var(--pc-pressure-top, 52px)) + 6px);
}
@media (max-width: 500px) {
  .game-fullscreen .pc-pressure-card { width: max(130px, 41vw); }
  .port-mode.game-fullscreen .pc-pressure-card { width: min(150px, 33vw); }
  .port-mode .pc-pressure-head { gap: 4px; }
  .port-mode .pc-pressure-head strong { font-size: 11px; }
  .port-mode .pc-pressure-head span { font-size: 9px; }
  .port-mode .pc-pressure-timer strong { font-size: 19px; }
}
@media (max-width: 360px) {
  .port-mode .pc-pressure-head { display: grid; }
  .port-mode .pc-pressure-timer { display: flex; align-items: baseline; gap: 4px; }
}
.pc-bot-speech { position: absolute; z-index: 2; pointer-events: none; }
.pc-bot-speech[hidden] { display: none; }
.pc-bot-speech.offscreen { right: max(46px, calc(env(safe-area-inset-right) + 38px)); bottom: 36px; }
.game-fullscreen .pc-bot-speech.offscreen { bottom: calc(max(8px, env(safe-area-inset-bottom)) + 96px); }
.pc-bot-cart { display: none; }
.offscreen .pc-bot-cart {
  position: absolute;
  left: -16px;
  top: -2px;
  display: block;
  width: 52px;
  height: 16px;
  border: 2px solid #27354a;
  border-radius: 5px;
  background: #4388c8;
  box-shadow: 0 3px 6px #15152a40;
}
.pc-bot-cart i {
  position: absolute;
  left: 3px;
  top: -9px;
  width: 18px;
  height: 14px;
  background: #c6e8fa;
  border: 2px solid #27354a;
  border-radius: 4px 4px 2px 2px;
  box-shadow: 23px -1px 0 -1px #d69b61;
}
.pc-bot-cart::after {
  content: '';
  position: absolute;
  left: 5px;
  bottom: -6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27354a;
  box-shadow: 31px 0 #27354a;
}
.pc-bot-window {
  position: absolute;
  left: -17px;
  bottom: -2px;
  width: 34px;
  height: 40px;
  overflow: hidden;
}
.pc-bot-head {
  position: absolute;
  left: 5px;
  bottom: 3px;
  width: 24px;
  height: 25px;
  border: 2px solid #593428;
  border-radius: 45% 45% 46% 46%;
  background: #ffcd9f;
  box-shadow: 0 5px 0 -1px #3579b9;
  animation: pc-bot-peek .28s cubic-bezier(.2,.8,.4,1.35) both;
}
.pc-bot-hat {
  position: absolute;
  top: -7px;
  left: -3px;
  width: 26px;
  height: 12px;
  border: 2px solid #593428;
  border-bottom-width: 3px;
  border-radius: 12px 12px 4px 4px;
  background: #ffbd36;
  box-shadow: inset 3px 1px #ffe693;
}
.pc-bot-eyes {
  position: absolute;
  top: 8px;
  left: 4px;
  width: 3px;
  height: 4px;
  border-radius: 50%;
  background: #352119;
  box-shadow: 9px 0 #352119;
}
.pc-bot-mouth {
  position: absolute;
  bottom: 3px;
  left: 7px;
  width: 6px;
  height: 5px;
  border-radius: 50% 50% 45% 45%;
  background: #843b2e;
}
.pc-bot-bubble {
  position: absolute;
  right: 15px;
  bottom: 27px;
  padding: 4px 9px;
  border: 2px solid #593428;
  border-radius: 10px;
  background: #fff7db;
  color: #4d2620;
  box-shadow: 0 3px 0 #59342855;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  transform-origin: bottom right;
  animation: pc-bot-bubble-in .27s ease-out both;
}
.pc-bot-bubble::after {
  content: '';
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 8px;
  height: 8px;
  transform: skew(25deg) rotate(25deg);
  border-right: 2px solid #593428;
  border-bottom: 2px solid #593428;
  border-radius: 0 0 3px;
  background: #fff7db;
}
.pc-bot-speech.speaking .pc-bot-bubble { animation: pc-bot-call .45s ease-out both; }
.pc-bot-speech.speaking .pc-bot-mouth { animation: pc-bot-talk .13s ease-in-out 4 alternate; }
.pc-pressure-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pc-queue-status {
  margin: 4px 0;
  padding: 3px 5px;
  border-radius: 5px;
  background: #fff0d6;
  color: #673a14;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pc-failure {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  padding: 9px 12px;
  border: 1px solid #e97e71;
  border-radius: 9px;
  background: #ffebe5;
  color: #811b21;
  font-size: 13px;
}
.pc-failure[hidden] { display: none; }
.pc-failure strong { font-size: 16px; }
@keyframes pc-horn-ring { from { opacity: 1; } to { opacity: .7; } }
@keyframes pc-bot-peek { from { transform: translateY(105%) rotate(-12deg); } to { transform: translateY(0) rotate(-7deg); } }
@keyframes pc-bot-bubble-in { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
@keyframes pc-bot-call { 0%,100% { transform: scale(1); } 35% { transform: scale(1.15) rotate(-4deg); } }
@keyframes pc-bot-talk { from { transform: scaleY(.6); } to { transform: scaleY(1.25); } }
@media (prefers-reduced-motion: reduce) {
  .pc-pressure.honking::before, .pc-bot-speech .pc-bot-bubble,
  .pc-bot-speech .pc-bot-head, .pc-bot-speech .pc-bot-mouth { animation: none; }
}
.scene.no-3d{min-height:240px;display:grid;place-items:center;background:#fff4dc}
.scene.no-3d::after{content:attr(data-message);color:#7d4a1f;font-weight:800;text-align:center;padding:20px}
.scene.no-3d canvas{display:none}
.pay-rate{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:999px;background:#ffe7c7;color:#c95814;font-weight:900;font-size:.95em}
.buy-button{background:#2ec4b6;color:#fff;padding:2px 8px;border-radius:8px;font-weight:800}
.buy-button:hover{filter:brightness(1.06)}
.modal-card{width:min(100%,460px)}
.coin-icon{display:inline-block;width:1.12em;height:1.12em;flex:none;vertical-align:-.18em;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%25' stop-color='%23fff2a6'/%3E%3Cstop offset='45%25' stop-color='%23ffc933'/%3E%3Cstop offset='100%25' stop-color='%23de8400'/%3E%3C/linearGradient%3E%3ClinearGradient id='i' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23ffd84d'/%3E%3Cstop offset='100%25' stop-color='%23f29a10'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='10.6' fill='url(%23g)' stroke='%239c5700' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='12' r='7.2' fill='url(%23i)' stroke='%23ffea8a' stroke-width='1.2'/%3E%3Cpath d='M12 6.6l1.35 3.65L17 11.6l-3.65 1.35L12 16.6l-1.35-3.65L7 11.6l3.65-1.35z' fill='%23fff8cc'/%3E%3C/svg%3E")}
.money-val{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;font-variant-numeric:tabular-nums;vertical-align:baseline}
.goal-progress[hidden],.goal-timer[hidden]{display:none}
.game-fullscreen .goal-bar{width:min(calc(100% - 104px),244px)}
.game-fullscreen .goal-copy small{display:flex;align-items:center;gap:2px;font-variant-numeric:tabular-nums;max-width:100%}
@media (max-width:520px){.game-fullscreen .cargo{top:calc(max(8px,env(safe-area-inset-top)) + 86px)}.game-fullscreen .edit-hint{top:calc(max(8px,env(safe-area-inset-top)) + 140px)}}
@media (max-width:440px){.modal{padding:10px}}
.modal-head{display:flex;align-items:center;justify-content:center;gap:8px}
.modal-wallet[hidden],.goals-notice[hidden]{display:none}
.modal-wallet{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border-radius:999px;background:#fff1cf;border:1.5px solid #f0c975;color:#5c3d0e;font-size:12px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.primary:disabled{opacity:1;background:#ece5d8;color:#827768;box-shadow:none;cursor:not-allowed;transform:none}
.modal-card.modal-goals{display:flex;flex-direction:column;overflow:hidden;max-height:min(92dvh,760px);padding:14px 12px 12px;text-align:left}
.modal-card.modal-goals .modal-head{flex:none;justify-content:space-between;margin-bottom:4px}
.modal-card.modal-goals h2{font-size:22px;line-height:1.1;margin:0}
.modal-card.modal-goals #modal-copy{flex:none;font-size:12px;line-height:1.35;color:#5f5568;margin:0 0 8px;text-align:left}
.goal-col-heads{flex:none;display:grid;grid-template-columns:minmax(0,1fr) 64px minmax(0,1.22fr);gap:6px;padding:0 2px 4px;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8a7662;text-align:center}
.goal-col-heads[hidden]{display:none}
.goal-col-heads span:first-child{text-align:left;padding-left:6px}
.modal-card.modal-goals .goal-options{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:grid;gap:6px;align-content:start;margin:0 0 10px;padding:1px 2px 2px 0}
.goal-option-row{display:grid;grid-template-columns:minmax(0,1fr) 64px minmax(0,1.22fr);gap:6px;width:100%;align-items:stretch}
.goal-item-card{display:grid;grid-template-columns:22px minmax(0,1fr);grid-template-rows:auto auto;column-gap:6px;align-content:center;padding:6px 7px;border-radius:10px;background:#fff;border:2px solid #ffe0b8;color:#2d2a3e;text-align:left;min-height:48px}
.goal-item-card>span{grid-row:1/3;align-self:center;text-align:center;font-size:19px;line-height:1}
.goal-item-card strong{display:block;font-size:11.5px;line-height:1.15;color:#2d2a3e;white-space:normal;overflow-wrap:break-word}
.goal-item-card small{display:block;font-size:10.5px;line-height:1.2;color:#7d6a58;white-space:nowrap;font-variant-numeric:tabular-nums;margin-top:1px}
.goal-action-btn{flex:none;padding:6px 4px;border:0;border-radius:10px;color:#fff;font-size:11.5px;font-weight:900;cursor:pointer;display:grid;place-items:center;white-space:nowrap}
.goal-buy-btn{background:#2ec4b6;box-shadow:0 3px 0 #1f978b}
.goal-buy-btn.confirming{background:#ff6b35;box-shadow:0 3px 0 #c9461a;font-size:11px}
.goal-draw-btn{background:#ff9f2e;box-shadow:0 3px 0 #d6740e}
.goal-action-btn:disabled{opacity:1;background:#ece5d8;color:#827768;cursor:not-allowed;box-shadow:none}
.goal-option-row .goal-option{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;margin:0;padding:6px 8px;min-height:48px;border-radius:10px;text-align:left;font-variant-numeric:tabular-nums}
.goal-option-row .goal-option span{font-size:inherit}
.goal-option-row .goal-option strong{flex:none;font-size:11.5px;line-height:1.2;color:#2d2a3e}
.goal-discount-top{display:flex;align-items:center;gap:5px;flex-wrap:nowrap;min-width:0;max-width:100%}
.goal-option-row .goal-option .discount-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:1px 5px;border-radius:999px;background:#ff7a2f;color:#fff;font-size:9.5px;font-weight:900;line-height:1.25;letter-spacing:-.01em;white-space:nowrap}
.goal-option-row .goal-option.selected .discount-badge{background:#1b9b8e}
.goal-option-row .goal-option:disabled .discount-badge{background:#b7ab99;color:#fff}
.goal-option-row .goal-option.claimed:disabled .discount-badge{background:#3a9d68;color:#fff}
.goal-option-row .goal-option small{font-size:10.5px;line-height:1.2;font-variant-numeric:tabular-nums;color:#5f5568;white-space:nowrap}
.goal-option-row .goal-discount-timer.urgent{color:#e5383b;font-weight:800}
.goal-option-row .goal-option:disabled{opacity:1;cursor:not-allowed;background:#f3eee3;border-color:#dfd5c2;color:#7a7063}
.goal-option-row .goal-option:disabled strong,.goal-option-row .goal-option:disabled small{color:#7a7063}
.goal-option-row .goal-option.claimed:disabled{opacity:1;background:#eef8f0;border-color:#b8dfc2;color:#237349}
.goal-option-row .goal-option.claimed:disabled strong{color:#265b3f}
.goal-option-row .goal-option.claimed:disabled .goal-discount-timer{color:#237349;font-weight:800}
.goal-option-row .goal-option.selected{border-color:#2ec4b6;background:#e4faf5;box-shadow:0 0 0 1px #2ec4b6}
.goals-notice{flex:none;margin:0 0 8px;padding:6px 10px;border-radius:9px;background:#e4faf5;border:1.5px solid #8fdcc5;color:#1a6b52;font-size:12px;font-weight:800;text-align:center;display:flex;align-items:center;justify-content:center;gap:4px}
.modal-card.modal-goals .modal-actions{flex:none;gap:6px}
.modal-card.modal-goals .primary,.modal-card.modal-goals .secondary{min-height:42px;font-size:14px}
@media (orientation:landscape) and (max-height:500px){.modal-card.modal-goals{padding:10px 12px;max-height:94dvh;width:min(100%,520px)}.modal-card.modal-goals h2{font-size:19px}.modal-card.modal-goals #modal-copy{margin-bottom:6px;font-size:11px}.modal-card.modal-goals .goal-options{margin-bottom:8px;padding-right:6px}.modal-card.modal-goals .modal-actions{grid-template-columns:1.4fr 1fr;gap:8px}.modal-card.modal-goals .primary,.modal-card.modal-goals .secondary{min-height:38px;font-size:13px}}
.assets-panel{text-align:left;max-height:54vh;overflow-y:auto;display:grid;gap:10px;margin:10px 0;padding-right:2px}
.assets-section{background:#fff;border:2px solid #ffe0b8;border-radius:12px;padding:10px 12px}
.assets-section h3{margin:0 0 6px;font-size:.82rem;letter-spacing:.05em;text-transform:uppercase;color:#ff7a2f}
.assets-stat{font-weight:800;font-size:.95rem;color:#2d2a3e;margin:2px 0}
.assets-sub{font-size:.82rem;color:#7d6a58;margin:2px 0}
.assets-list{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.assets-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;border-radius:8px;background:#fffaf0;border:1px solid #ffe7c7;font-size:.86rem}
.assets-row-main{display:flex;align-items:center;gap:6px;min-width:0}
.assets-row-title{font-weight:700;color:#2d2a3e}
.assets-row-meta{font-size:.78rem;color:#7d6a58;white-space:nowrap}
.assets-badge{display:inline-block;padding:1px 6px;border-radius:999px;background:#e4faf5;color:#1f7a62;font-size:.72rem;font-weight:800}
.assets-badge.gift{background:#fff2c9;color:#8a4b00}
.assets-badge.discount{background:#e4faf5;color:#1b7a62}
.assets-mini-btn{padding:4px 8px;border:1.5px solid #9fe3d6;border-radius:7px;background:#fff;color:#2a8f80;font-weight:800;font-size:.75rem;cursor:pointer}
.assets-bar{height:5px;border-radius:999px;background:#ffe7c7;overflow:hidden;margin-top:3px;width:90px}
.assets-bar span{display:block;height:100%;background:#2ec4b6}
@media (orientation:landscape) and (max-height:500px){.assets-panel{max-height:44vh}}
