*{box-sizing:border-box;margin:0;padding:0}body{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background-color:#2c3930;color:#dcd7c9;min-height:100vh}.game{max-width:1200px;margin:0 auto;padding:20px}.game-header{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;background-color:#3f4f44;border-radius:8px;margin-bottom:20px}.game-header .header-left{display:flex;align-items:center;gap:16px}.game-header h1{color:#dcd7c9;font-size:24px;font-weight:600}.game-header .idle-badge{background-color:#a27b5c;padding:6px 12px;border-radius:16px;font-size:14px;color:#2c3930;font-weight:600}.speed-controls{display:flex;gap:8px}.speed-controls button{padding:8px 16px;border:2px solid #A27B5C;background-color:transparent;color:#dcd7c9;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s ease}.speed-controls button:hover{background-color:#a27b5c;color:#2c3930}.speed-controls button.active{background-color:#a27b5c;color:#2c3930;border-color:#a27b5c}.speed-controls button.max-speed{border-color:#dcd7c9;font-weight:600}.speed-controls button.max-speed.active,.speed-controls button.max-speed:hover{background-color:#dcd7c9}.tick-display{font-family:Courier New,monospace;color:#a27b5c;font-size:14px;font-weight:500}.game-content{display:grid;grid-template-columns:300px 1fr;gap:20px}.panel{background-color:#3f4f44;border-radius:8px;padding:20px}.panel h2{color:#dcd7c9;margin-bottom:16px;font-size:18px;font-weight:600;border-bottom:2px solid #A27B5C;padding-bottom:8px}.resources-panel{height:fit-content}.resource-list{display:flex;flex-direction:column;gap:8px}.resource-item{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background-color:#2c3930;border-radius:6px}.resource-item .resource-name{font-size:14px;color:#dcd7c9}.resource-item .resource-amount{font-size:14px;font-weight:600;color:#a27b5c}.workplace-list{display:flex;flex-direction:column;gap:12px}.workplace-card{display:flex;flex-direction:column;background-color:#2c3930;border-radius:8px;overflow:hidden;border:2px solid transparent}.workplace-card.player-active{border-color:#a27b5c;box-shadow:0 0 12px #a27b5c4d}.workplace-header{display:flex;justify-content:space-between;align-items:center;padding:16px}.workplace-info{display:flex;flex-direction:column;gap:4px}.workplace-info.clickable{cursor:pointer}.workplace-info.clickable:hover{opacity:.8}.workplace-name{font-weight:600;color:#dcd7c9;font-size:16px}.workplace-name .fallback-indicator{color:#a27b5c;margin-left:8px;font-size:12px}.workplace-name .expand-hint{color:#a27b5c;font-size:12px;margin-left:8px}.workplace-count{font-size:14px;font-weight:500;color:#a27b5c}.workplace-controls{display:flex;gap:8px}.workplace-controls .control-btn{width:32px;height:32px;border:none;border-radius:6px;font-size:16px;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.workplace-controls .control-btn:hover:not(:disabled){opacity:.8;transform:scale(1.05)}.workplace-controls .control-btn:disabled{opacity:.4;cursor:not-allowed}.workplace-controls .control-btn.minus{background-color:#2c3930;color:#dcd7c9;border:1px solid #A27B5C}.workplace-controls .control-btn.plus{background-color:#a27b5c;color:#2c3930}.workplace-controls .control-btn.player-work{background-color:#3f4f44;color:#a27b5c;border:1px solid #A27B5C;width:auto;padding:0 12px;font-size:12px;font-weight:500}.workplace-controls .control-btn.player-stop{background-color:#a27b5c;color:#2c3930;width:auto;padding:0 12px;font-size:12px;font-weight:500}.player-progress-section{display:flex;align-items:center;gap:12px;padding:12px 16px;background-color:#3f4f44;border-top:1px solid #2C3930}.player-progress-section .player-label{font-size:12px;color:#a27b5c;font-weight:500;min-width:50px}.player-progress-section .player-progress{position:relative;flex:1;height:20px;background-color:#2c3930;border-radius:10px;overflow:hidden}.player-progress-section .player-progress .progress-fill{height:100%;background:linear-gradient(90deg,#3f4f44,#a27b5c);transition:width .3s ease;border-radius:10px}.player-progress-section .player-progress .progress-fill.player{background:linear-gradient(90deg,#a27b5c,#dcd7c9)}.player-progress-section .player-progress .progress-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:11px;font-weight:600;color:#dcd7c9;text-shadow:0 1px 2px rgba(0,0,0,.5)}.unit-list{display:flex;flex-direction:column;gap:8px;padding:12px 16px;border-top:1px solid #3F4F44}.unit-row{display:flex;flex-direction:column;gap:8px;padding:10px 12px;background-color:#3f4f44;border-radius:6px}.unit-row .unit-details{display:flex;justify-content:space-between;align-items:center}.unit-row .unit-details .unit-name{font-size:13px;color:#dcd7c9;font-weight:500}.unit-row .unit-details .unit-name .fallback-tag{margin-left:8px;font-size:10px;color:#a27b5c;font-style:italic}.unit-row .unit-details .unit-task{font-size:11px;color:#a27b5c}.unit-row .unit-progress{position:relative;height:16px;background-color:#2c3930;border-radius:8px;overflow:hidden}.unit-row .unit-progress .progress-fill{height:100%;background:linear-gradient(90deg,#3f4f44,#a27b5c);transition:width .3s ease;border-radius:8px}.unit-row .unit-progress .progress-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:10px;font-weight:600;color:#dcd7c9;text-shadow:0 1px 2px rgba(0,0,0,.5)}.unit-row .unit-needs{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:4px}.unit-row .unit-needs .need-bar{display:flex;align-items:center;gap:4px}.unit-row .unit-needs .need-bar .need-label{font-size:10px;width:36px;text-align:left;color:#a27b5c;font-weight:500}.unit-row .unit-needs .need-bar .need-track{flex:1;height:6px;background-color:#2c3930;border-radius:3px;overflow:hidden}.unit-row .unit-needs .need-bar .need-track .need-fill{height:100%;border-radius:3px;transition:width .3s ease}.unit-row .unit-needs .need-bar .need-track .need-fill.food{background-color:#e74c3c}.unit-row .unit-needs .need-bar .need-track .need-fill.sleep{background-color:#3498db}.unit-row .unit-needs .need-bar .need-track .need-fill.stress{background-color:#f39c12}.unit-row .unit-needs .need-bar .need-track .need-fill.morale{background-color:#2ecc71}@media(max-width:768px){.game-content{grid-template-columns:1fr}.game-header{flex-direction:column;gap:12px;align-items:flex-start}.speed-controls{width:100%;justify-content:flex-start}}
