@charset "UTF-8";

:root {
  color-scheme: light;
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: #294d46;
  background: #f3eddf;
  font-synthesis: none;
  --ink: #294d46;
  --muted: #71837a;
  --teal: #208e81;
  --orange: #ea884b;
  --paper: #fffcf5;
  --line: rgba(60, 89, 67, .12);
  --shadow: 0 6px 20px rgba(56, 65, 34, .08), 0 1px 3px rgba(56, 65, 34, .05);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body { -webkit-tap-highlight-color: transparent; }
button, select { font: inherit; }
button { cursor: pointer; border: 0; }
button, select, canvas { -webkit-tap-highlight-color: transparent; }
button:focus-visible, select:focus-visible, canvas:focus-visible { outline: 3px solid #1d8d83; outline-offset: 4px; }
button:disabled { cursor: default; }
button { touch-action: manipulation; }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { display: block; width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.world-tip { position:absolute; z-index:5; width:170px; padding:9px 11px; border-radius:13px; transform:translate(-50%,-100%); color:#617265; background:#fffdf4f5; border:1px solid #fff; box-shadow:0 4px 14px #334f4326; pointer-events:none; text-align:center; }
.world-tip::after { content:''; position:absolute; left:calc(50% - 5px); bottom:-5px; width:10px; height:10px; background:#fffdf4; transform:rotate(45deg); }
.world-tip strong { display:block; font-size:12px; line-height:1.3; }
.world-tip span { display:block; margin-top:3px; font-size:10px; line-height:1.35; }
.world-tip[data-ready="true"] { color:#176e61; border-color:#89bf9c; }
.build-meter { height:4px; margin-top:6px; border-radius:4px; overflow:hidden; background:#e0e8db; }
#build-fill { height:100%; width:0; background:#399782; }

.app-layout { height: 100%; height: 100dvh; width: 100%; display: flex; justify-content: center; align-items: center; gap: clamp(24px, 4vw, 64px); padding: 16px 24px; }
.desk-note { width: 190px; flex: 0 0 190px; align-self: center; user-select: none; padding-bottom: 14px; }
.brand-mark { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 17px; background: #d5e6d8; color: #328b78; transform: rotate(-7deg); margin-bottom: 22px; }
.brand-mark .icon { width: 31px; height: 31px; }
.brand-name { font-size: 42px; line-height: 1.02; font-weight: 820; letter-spacing: -1.8px; margin: 0; }
.brand-name span { color: #a2b2a0; font-size: .82em; }
.brand-caption { color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.55; margin: 17px 0 0; }
.desk-rule { height: 1px; background: #dadfce; width: 38px; margin: 28px 0; }
.mini-guide { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.mini-guide li { display: flex; align-items: center; gap: 11px; font-size: 12px; font-weight: 650; letter-spacing: -.1px; }
.mini-guide .icon { color: #659982; width: 21px; height: 21px; }
.keyboard-note { display: flex; align-items: center; gap: 12px; margin-top: 38px; font-size: 11px; color: #819084; line-height: 1.6; }
.key-group { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.key-group > span { display: flex; gap: 3px; }
kbd { width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 4px; font-family: inherit; font-size: 10px; font-weight: 650; border: 1px solid #cfd7c7; box-shadow: 0 2px 0 #dce0d0; background: #f8f4e9; color: #708675; }
.desk-footer { margin-top: 34px; font-size: 11px; letter-spacing: .3px; color: #8a9789; }
.creator-credit { color: var(--muted); font-size: 13px; line-height: 1.5; }
.creator-credit strong { color: var(--ink); letter-spacing: .06em; }

.game-shell { width: min(700px, calc(100vw - 280px)); height: 100%; max-height: 980px; position: relative; isolation: isolate; overflow: hidden; border-radius: 27px; background: #d7e7cc; box-shadow: 0 24px 70px #566b4321, 0 0 0 1px #faf7ed; touch-action: none; }
#game { display: block; width: 100%; height: 100%; outline: none; touch-action: none; }
.destination-marker { position:absolute; z-index:2; width:26px; height:16px; transform:translate(-50%,-50%); border:3px solid #168c78; border-radius:50%; background:#ffffff8c; box-shadow:0 0 0 3px #fff9; pointer-events:none; }
.truck-load { position:absolute; z-index:4; min-width:76px; padding:5px 9px 7px; transform:translate(-50%,-100%); border:2px solid #ffffff; border-radius:12px; background:#184f47; color:#fff; box-shadow:0 3px 9px #163c3d33; text-align:center; pointer-events:none; user-select:none; }
.truck-load::after { content:''; position:absolute; left:calc(50% - 4px); bottom:-5px; width:8px; height:8px; transform:rotate(45deg); background:inherit; }
.truck-load[data-placement="below"] { transform:translate(-50%,0); }
.truck-load[data-placement="below"]::after { top:-5px; bottom:auto; }
.truck-load strong { display:block; font-size:14px; line-height:1.25; font-variant-numeric:tabular-nums; white-space:nowrap; }
.truck-load span { display:block; font-size:12px; line-height:1.3; font-weight:650; margin-top:4px; white-space:nowrap; }
.truck-load-meter { position:relative; z-index:1; height:5px; overflow:hidden; margin-top:4px; border-radius:4px; background:#ffffff40; }
#truck-load-fill { width:0; height:100%; background:#87e5b5; border-radius:4px; transition:width .12s linear; }
.truck-load[data-full="true"] { background:#b94d0b; border-color:#fff3c0; }
.truck-load[data-full="true"] #truck-load-fill { background:#ffe28b; }
.truck-load[data-unloading="true"] { background:#247864; }
.stat-load[data-full="true"] { border-color:#dc8a31; background:#fff0cb; }
.top-hud { position: absolute; top: 0; left: 0; width: 100%; z-index: 3; padding: 19px 20px 0; pointer-events: none; user-select: none; background: linear-gradient(#f8f7edd9 0%, #f8f7ed80 50%, transparent 100%); }
.game-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 15px; }
.job-heading { min-width: 0; }
.eyebrow { display: block; color: #79927c; font-size: 10px; text-transform: uppercase; font-weight: 800; letter-spacing: 1.5px; line-height: 1.5; margin-bottom: 2px; }
h1 { font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -.65px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-group { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.icon-button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border-radius: 13px; color: #5c7a68; background: #fffcf2e6; border: 1px solid #fffdf7a8; box-shadow: 0 2px 7px #5268390d; pointer-events: auto; transition: background .15s, transform .15s; }
.icon-button .icon { width: 19px; height: 19px; }
.icon-button:active { transform: scale(.93); background: #e8eee0; }
.sound-button { position: relative; }
.sound-dot { position: absolute; width: 5px; height: 5px; bottom: 5px; right: 5px; border-radius: 50%; background: #b9c2b1; }
.sound-button[aria-pressed="true"] { color: #198777; background: #e5f1dd; }
.sound-button[aria-pressed="true"] .sound-dot { background: #249687; }

.stats { display: grid; grid-template-columns: 1.12fr 1.12fr .9fr; gap: 9px; width: 100%; }
.stat { min-width: 0; border-radius: 16px; padding: 12px 14px 13px; background: #fffdf6ed; box-shadow: var(--shadow); border: 1px solid #ffffffb8; }
.stat-label { display: flex; align-items: center; gap: 5px; font-size: 10px; line-height: 1; color: #84907e; font-weight: 750; letter-spacing: .15px; }
.stat-label .icon { width: 14px; height: 14px; stroke-width: 1.9; }
.stat-value { display: block; font-size: 23px; letter-spacing: -.8px; font-weight: 800; line-height: 1.1; margin: 7px 0 9px; font-variant-numeric: tabular-nums; color: #345c4e; }
.meter { width: 100%; height: 5px; background: #e9eddf; border-radius: 10px; overflow: hidden; }
.meter-fill { width: 0; height: 100%; background: #58a38b; border-radius: inherit; transition: width .18s ease; }
.stat-load .meter-fill { background: #edab63; }
.stat-bricks { background: #fff2dceF; }
.stat-bricks .stat-value { color: #ad7240; }
.stat-bricks .stat-label { color: #ab855d; }
.stat-bricks .stat-value { margin-bottom: 6px; }
.stat-footnote { display: block; font-size: 8px; letter-spacing: .1px; line-height: 1; white-space: nowrap; color: #b08d66; }
.objective-panel { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; max-width: 100%; margin: 12px auto 0; padding: 8px 13px; border: 1px solid #fffdf395; border-radius: 30px; background: #fbfbefdd; color: #5e7963; box-shadow: 0 3px 10px #566b4308; }
.objective-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #77a178; }
.objective-panel p { margin: 0; font-size: 11px; line-height: 1.4; font-weight: 650; text-align: center; }

.job-picker-wrap { position: absolute; z-index: 4; left: 18px; bottom: 21px; height: 36px; display: flex; align-items: center; border: 1px solid #ffffffac; border-radius: 12px; background: #fffdf2eF; color: #6d8269; pointer-events: none; box-shadow: 0 3px 12px #5268390c; }
.job-picker-wrap > .icon:first-child { width: 14px; height: 14px; position: absolute; left: 10px; }
#job-select { appearance: none; -webkit-appearance: none; height: 100%; min-width: 98px; max-width: 165px; padding: 0 27px 0 30px; border: 0; background: transparent; color: inherit; border-radius: inherit; font-size: 11px; font-weight: 700; pointer-events: auto; cursor: pointer; }
.picker-chevron { position: absolute; right: 10px; width: 11px; height: 11px; transform: rotate(90deg); }
.bottom-hud { position: absolute; z-index: 5; bottom: 21px; left: 18px; right: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; user-select: none; }
.toast { padding: 9px 16px; max-width: 100%; border-radius: 24px; color: #fffdf4; background: #345d4ceF; box-shadow: 0 4px 18px #173f3629; font-size: 12px; font-weight: 650; text-align: center; line-height: 1.4; }
.toast:empty { display: none; }
.build-button { display: flex; align-items: center; gap: 12px; width: min(100%, 340px); min-height: 59px; padding: 10px 11px; color: #fffaf0; border: 1px solid #f5be86; border-bottom: 4px solid #c56e3a; border-radius: 18px; background: linear-gradient(120deg, #ec9856, #e78848); box-shadow: 0 7px 19px #98562e30; pointer-events: auto; font-weight: 800; font-size: 15px; letter-spacing: -.15px; transition: transform .12s, filter .12s; }
.build-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #fff4d526; flex-shrink: 0; }
.build-icon .icon { width: 21px; height: 21px; }
#action-label { flex: 1; text-align: left; line-height: 1.2; }
.build-cost { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 50px; min-height: 34px; padding: 0 9px; border-radius: 11px; background: #fff8e8; color: #a77147; font-size: 13px; }
.build-cost .icon { width: 17px; height: 17px; }
.build-button:active { transform: translateY(2px); }
.build-button:disabled { background: #bac4aa; border-color: #d4dbc7; border-bottom-color: #9eac94; box-shadow: 0 5px 16px #57694217; color: #fffdf1; }
.build-button:disabled .build-cost { background: #e5e9d9; color: #87977d; }
.hint-row { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 12px; min-height: 36px; max-width: calc(100% - 180px); margin-left: 180px; color: #637b64; background: #faf9eecf; border-radius: 13px; }
.hint-row .icon { width: 16px; height: 16px; }
.hint-row p { margin: 0; font-size: 10px; line-height: 1.45; font-weight: 650; }
.storage-notice { margin: 0; padding: 7px 10px; max-width: 100%; border-radius: 10px; color: #805d3d; background: #fff0d9ef; font-size: 10px; line-height: 1.4; text-align: center; }

.complete-card { width: min(100%, 380px); padding: 15px; border: 1px solid #ffffffb3; border-radius: 21px; color: var(--ink); background: #fffdf3f5; box-shadow: 0 8px 27px #4c603b21; pointer-events: auto; animation: card-in .35s ease-out both; }
.complete-copy { display: flex; align-items: center; gap: 11px; }
.complete-badge { width: 41px; height: 41px; display: grid; place-items: center; color: #4e9b7d; border-radius: 15px; background: #e5efd7; flex-shrink: 0; }
.complete-badge .icon { width: 27px; height: 27px; }
.complete-copy h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.15; font-weight: 800; letter-spacing: -.5px; }
.complete-copy p { margin: 0; font-size: 11px; line-height: 1.4; color: #82917a; }
.complete-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
.text-button { background: transparent; color: #7e937c; padding: 10px 7px; border-radius: 10px; font-weight: 650; font-size: 11px; pointer-events: auto; }
.next-button { display: flex; align-items: center; gap: 15px; padding: 10px 13px; color: #fffdf4; background: #3b9580; border-bottom: 3px solid #2e7d6a; border-radius: 12px; font-size: 12px; font-weight: 750; pointer-events: auto; }
.next-button .icon { width: 15px; height: 15px; }
.next-button:active { transform: translateY(1px); }

.loading-panel { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #e9efd9; color: #6f8c6f; pointer-events: auto; }
.loading-panel p { font-size: 13px; font-weight: 650; letter-spacing: .15px; margin: 22px 0 0; }
.loading-art { display: flex; align-items: flex-end; gap: 5px; height: 36px; }
.loading-art span { display: block; width: 19px; height: 19px; border-radius: 5px; background: #57a38b; box-shadow: 0 4px 0 #3d8974; animation: brick-bounce 1.2s ease-in-out infinite; }
.loading-art span:nth-child(2) { animation-delay: .14s; background: #efab67; box-shadow: 0 4px 0 #c78c55; }
.loading-art span:nth-child(3) { animation-delay: .28s; background: #8fba80; box-shadow: 0 4px 0 #739b68; }
.error-panel { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; padding: 24px; background: #e9efd9ef; pointer-events: auto; }
.error-card { max-width: 330px; padding: 26px; background: #fffcf3; border-radius: 24px; box-shadow: var(--shadow); text-align: center; }
.error-icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 17px; border-radius: 18px; background: #e5ecd6; color: #719c75; }
.error-card h2 { font-size: 21px; margin: 0 0 12px; letter-spacing: -.5px; }
.error-card p { margin: 0; color: #7b8b75; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }

.help-dialog { width: min(430px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); margin: auto; padding: 29px 27px 23px; color: var(--ink); background: #fffcf3; border: 1px solid #fff; border-radius: 27px; box-shadow: 0 22px 80px #25473735; overflow: auto; overscroll-behavior: contain; pointer-events: auto; }
.help-dialog::backdrop { background: #33554270; backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 15px; right: 15px; background: #edf0e2; width: 32px; height: 32px; border-radius: 11px; }
.dialog-eyebrow { display: block; margin-bottom: 7px; color: #7c9a78; font-size: 10px; text-transform: uppercase; font-weight: 800; letter-spacing: 1.5px; }
.help-dialog h2 { margin: 0 20px 25px 0; font-size: 26px; font-weight: 800; letter-spacing: -.9px; line-height: 1.1; }
.help-steps { display: grid; gap: 23px; list-style: none; padding: 0; margin: 0; }
.help-steps li { display: flex; align-items: flex-start; gap: 13px; }
.help-step-icon { flex: 0 0 37px; display: grid; place-items: center; height: 37px; border-radius: 13px; color: #59957a; background: #e6eedb; }
.help-step-icon.orange { color: #c18b53; background: #faecd4; }
.help-step-icon .icon { width: 21px; height: 21px; }
.help-steps h3 { font-size: 14px; margin: 0 0 6px; font-weight: 800; letter-spacing: -.2px; }
.help-steps p { margin: 0; font-size: 12px; line-height: 1.6; color: #7b8b77; }
.help-finish { display: flex; align-items: center; gap: 10px; margin: 25px 0 0; padding: 13px 14px; background: #f0f1df; border-radius: 14px; font-size: 11px; line-height: 1.5; font-weight: 550; color: #7a9073; }
.help-finish .icon { width: 21px; height: 21px; color: #9cae76; }
.help-feedback { display:block; margin-top:18px; color:#367765; font-size:14px; line-height:1.5; text-underline-offset:3px; }

@media (hover: hover) {
  .icon-button:hover { background: #e5edda; }
  .build-button:not(:disabled):hover { filter: brightness(1.035); }
  .text-button:hover { background: #edf0e1; }
  .next-button:hover { background: #348d78; }
}

@media (max-width: 900px) {
  .desk-note { display: none; }
  .app-layout { gap: 0; padding: 12px; }
  .game-shell { width: min(100%, 700px); }
}

@media (max-width: 600px) {
  .app-layout { padding: 0; }
  .game-shell { width: 100%; height: 100%; max-height: none; border-radius: 0; box-shadow: none; }
  .top-hud { padding: max(15px, env(safe-area-inset-top)) 15px 0; }
  .game-header { min-height: 43px; margin-bottom: 12px; gap: 7px; }
  h1 { font-size: 19px; letter-spacing: -.6px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.25px; }
  .tool-group { gap: 5px; }
  .icon-button { width: 40px; height: 42px; border-radius: 12px; }
  .icon-button .icon { width: 18px; height: 18px; }
  .stats { gap: 7px; grid-template-columns: 1.07fr 1.07fr .94fr; }
  .stat { padding: 10px 11px 11px; border-radius: 14px; }
  .stat-value { font-size: 21px; margin-top: 7px; margin-bottom: 8px; }
  .stat-label { font-size: 9px; gap: 4px; }
  .stat-label .icon { width: 12px; height: 12px; }
  .stat-footnote { font-size: 7px; letter-spacing: -.1px; }
  .objective-panel { margin-top: 10px; padding: 7px 10px; gap: 6px; }
  .objective-panel p { font-size: 10px; }
  .bottom-hud { bottom: max(15px, env(safe-area-inset-bottom)); left: 14px; right: 14px; gap: 9px; }
  .job-picker-wrap { left: 14px; bottom: max(15px, env(safe-area-inset-bottom)); height: 35px; }
  #job-select { min-width: 89px; max-width: 125px; font-size: 10px; padding-left: 27px; padding-right: 23px; }
  .job-picker-wrap > .icon:first-child { left: 9px; width: 12px; height: 12px; }
  .picker-chevron { right: 8px; width: 10px; height: 10px; }
  .hint-row { max-width: calc(100% - 132px); margin-left: 132px; padding: 8px 10px; min-height: 35px; border-radius: 12px; gap: 6px; }
  .hint-row p { font-size: 9px; }
  .hint-row .icon { width: 15px; height: 15px; }
  .build-button { min-height: 57px; font-size: 14px; border-radius: 17px; }
  .complete-card { padding: 13px; }
}

@media (max-width: 350px) {
  .top-hud { padding-left: 11px; padding-right: 11px; }
  .game-header { margin-bottom: 9px; }
  h1 { font-size: 16px; letter-spacing: -.5px; }
  .tool-group { gap: 4px; }
  .icon-button { width: 34px; height: 38px; border-radius: 10px; }
  .stat { padding: 9px 9px 10px; border-radius: 12px; }
  .stat-value { font-size: 19px; }
  .stat-label { font-size: 8px; gap: 3px; }
  .stat-footnote { font-size: 6px; }
  .objective-panel p { font-size: 9px; }
  .objective-panel { padding: 6px 9px; }
  .bottom-hud { left: 11px; right: 11px; }
  .job-picker-wrap { left: 11px; }
  .help-dialog { padding: 26px 20px 20px; }
  .help-dialog h2 { font-size: 23px; }
}

@media (max-height: 670px) {
  .game-header { margin-bottom: 8px; }
  .top-hud { padding-top: max(10px, env(safe-area-inset-top)); }
  .stat { padding-top: 8px; padding-bottom: 9px; }
  .stat-value { margin-top: 4px; margin-bottom: 5px; font-size: 19px; }
  .objective-panel { margin-top: 7px; padding-top: 5px; padding-bottom: 5px; }
  .bottom-hud { bottom: max(10px, env(safe-area-inset-bottom)); gap: 7px; }
  .job-picker-wrap { bottom: max(10px, env(safe-area-inset-bottom)); }
  .build-button { min-height: 51px; padding-top: 7px; padding-bottom: 7px; }
  .complete-card { padding: 11px; }
  .complete-actions { padding-top: 7px; }
  .desk-note { transform: scale(.85); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@keyframes brick-bounce { 0%, 65%, 100% { transform: translateY(0); } 28% { transform: translateY(-12px); } }
@keyframes card-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
