:root {
  --bg: #8fa2bb;
  --panel-fill: #9fb0c4;
  --text: #10253a;
  --muted: #2b4258;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 12px; color: var(--text); background: linear-gradient(#96a9c0, #6f849d); min-height: 100vh; }
.sim-window { border: 2px solid #42566f; border-right-color: #24364d; border-bottom-color: #24364d; box-shadow: inset 1px 1px 0 #d9e3ee, inset -1px -1px 0 #536a85, 0 2px 0 #23344a; background: var(--panel-fill); }
.topbar { display: grid; grid-template-columns: 200px repeat(5, minmax(102px, 1fr)) 2fr 220px auto; gap: 6px; padding: 6px; margin: 6px; align-items: stretch; }
.park-title-wrap { display: flex; flex-direction: column; gap: 5px; background: #b9c9d9; border: 1px solid #415872; padding: 5px; }
#parkNameStat { font-weight: 900; color: #14334d; letter-spacing: 0.4px; font-size: 13px; }
.stat { display: grid; grid-template-columns: 16px auto; grid-template-rows: auto auto; align-items: center; column-gap: 6px; background: #b9c9d9; border: 1px solid #415872; padding: 4px 6px; }
.stat .ico { grid-row: span 2; width: 14px; text-align: center; font-weight: 700; color: #f6f9fc; background: #355371; border: 1px solid #1c3046; }
.stat label { color: var(--muted); font-size: 10px; }
.objective { background: #b9c9d9; border: 1px solid #415872; padding: 6px; font-weight: 700; color: #1f3b55; display: flex; align-items: center; }
.time-controls { display: grid; grid-template-rows: auto auto auto; gap: 2px; padding: 4px 6px; background: #8ca8c2; }
.time-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.active-speed { background: #9ed1f3; border-color: #1f5f8d; }
.actions { display: flex; gap: 4px; }
button, input { border: 1px solid #1c3046; box-shadow: inset 1px 1px 0 #dce5ee, inset -1px -1px 0 #4d6581; background: #91a7bf; color: #11283d; font-weight: 700; font-size: 11px; padding: 4px 8px; }
button { cursor: pointer; }
button:hover { background: #a6bad0; }
.layout { display: grid; grid-template-columns: 300px 1fr 300px; gap: 8px; padding: 0 6px; }
.panel { height: calc(100vh - 118px); overflow: auto; padding: 8px; background: #93a7bd; }
.panel h2 { margin: 0 0 6px; padding: 3px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; background: #7b91a9; border: 1px solid #3f566f; }
.build-group h3 { margin: 8px 0 4px; font-size: 11px; text-transform: uppercase; color: #173146; }
.build-grid { display: grid; grid-template-columns: 1fr; gap: 4px; }
.build-btn { text-align: left; width: 100%; padding: 6px; border: 1px solid #304860; background: #afc1d2; font-size: 10.5px; display: grid; gap: 2px; }
.build-btn small { color: #233a51; }
.build-btn em { font-style: normal; font-size: 10px; color: #1f4965; }
.build-btn.active { background: #90badb; border-color: #204f78; outline: 1px solid #cde6f9; }
.build-btn.locked { opacity: 0.6; cursor: not-allowed; }
.build-btn.new { background: #b8db96; }
.gameArea { position: relative; padding: 6px; display: flex; align-items: center; justify-content: center; background: linear-gradient(#7890ab, #5f7995); }
#gameCanvas { border: 2px solid #24364d; background: #5f8b47; image-rendering: pixelated; max-width: 100%; height: auto; }
#notifications { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.toast { background: rgba(15, 35, 56, 0.85); color: #d7edf8; border: 1px solid #7ca4c8; padding: 4px 8px; font-weight: 700; }
.info-card { background: #b2c2d2; border: 1px solid #3f566f; padding: 5px; margin-bottom: 6px; }
.info-card p { margin: 4px 0; }
.progress { height: 8px; border: 1px solid #3f566f; background: #7b91a9; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg,#73b94f,#a7d971); }
.statusbar { margin: 6px; margin-top: 8px; padding: 5px 8px; background: #adc0d2; color: #18364e; font-weight: 700; }
.modal { position: fixed; inset: 0; background: rgba(10, 18, 30, 0.45); display: flex; align-items: center; justify-content: center; }
.modal.hidden { display: none; }
.modal-body { width: 360px; padding: 10px; background: #9db0c5; display: grid; gap: 6px; }
.modal-body h3 { margin: 0; text-transform: uppercase; }
.fee-control { display: grid; grid-template-columns: 42px 1fr 42px; gap: 4px; }
#entryFeeInput, #parkNameInput { width: 100%; }
.modal-stats { background: #b9c9d9; border: 1px solid #415872; padding: 6px; display: grid; gap: 3px; }
.modal-actions { display: flex; justify-content: flex-end; }
