html, body {
  margin: 0; min-height: 100vh; color: #f2f2e8; font-family: system-ui, sans-serif;
  background: conic-gradient(#6ce7dd 25%, #faffb2 0 50%, #6ce7dd 0 75%, #faffb2 0) 0 0/60px 60px;
  display: grid; place-items: center;
}

.shell { width: min(980px, 96vw); display: grid; gap: 12px; }
.game-container { position: relative; display: inline-block; line-height: 0; }

canvas {
  width: 100%; height: auto; display: block; border-radius: 14px;
  border: 4px solid #5d4037; background: linear-gradient(180deg, #fff, #e8f7ff);
}


.ol { position: absolute; top: 15px; left: 15px; pointer-events: none; }
.or { 
  position: absolute; top: 15px; right: 15px; 
  display: flex; align-items: center; gap: 15px; pointer-events: none; 
}

.or-wallet-group { 
  display: flex; flex-direction: column; gap: 10px; pointer-events: auto; 
}


.box {
  border-radius: 6px; background: #fbe9e7; border: 3px solid #5d4037;
  display: grid; 
  text-align: center; box-shadow: 0 3px 0 #3e2723; pointer-events: auto;
}

.task-box { min-width: 220px; padding: 10px 16px;display: grid; gap: 8px; padding-right: 8px; }
.wallet-box { min-width: 100px; padding: 10px 16px;  }

.wallet-label { font-size: 0.75rem; font-weight: 900; padding-bottom: 15px;text-transform: uppercase; color: #8d6e63; }

#wallet-amount, #task-list { font-weight: 900; color: #2e7d32; font-size: 1.1rem; }

.shop-button {
  width: 100%;
  padding: 12px 14px;
  border: 3px solid #5d4037;      
  border-radius: 6px;
  background: #a5d6a7;
  color: #3e2723;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  
}

.shop-button:hover { transform: translateY(-2px); }


.shop-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
}


.clock-face {
  position: relative; width: 60px; height: 60px; border-radius: 50%;
  background: #fbe9e7; border: 4px solid #5d4037; box-shadow: 0 3px 0 #3e2723; pointer-events: auto;
}

.clock-hand {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 4px; background: #d84315;
  transform-origin: 0% 50%; transform: translate(0, -50%) rotate(180deg);
}
.clock-center {
  position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%;
  background: #5d4037; transform: translate(-50%, -50%); z-index: 10;
}
.days-left {
  position: absolute;
  top: 75%; 
  left: 0;
  right: 0;
  font-size: 14px; 
  font-weight: 900;
  color: #8c5ceb; 
  text-shadow: 1px 1px 2px #e6f0f6; 
  text-align: center;
  z-index: 15;
 
}


.inventory {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  background: #a1887f; border: 5px solid #5d4037; border-radius: 12px;
}
.tool-slot {
  border: 3px solid #5d4037; background: #fbe9e7; color: #3e2723; padding: 10px 14px;
  border-radius: 6px; cursor: pointer; font-weight: 800; transition: transform 0.1s;
}
.tool-slot.active { background: #fff; border-color: #7cb342; transform: translateY(-4px); box-shadow: 0 4px 0 #33691e; }
.crop-counter { margin-left: auto; padding: 10px 18px; background: #5d4037; border-radius: 6px; font-weight: 800; color: #fff; border: 2px solid #3e2723; }

/* --- Modals --- */
.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(8, 10, 12, 0.6); z-index: 2000; }
.modal-backdrop.hidden { display: none; }
.game-modal {
  background: #fbe9e7; border: 4px solid #5d4037; padding: 20px 24px; color: #3e2723;
  text-align: center; border-radius: 10px; max-width: 600px; box-shadow: 0 6px 0 #3e2723, inset 0 2px 0 rgba(255,255,255,0.4);
}
.game-modal h3 {
  margin: 0 0 12px; font-size: 1.3rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 1px; color: #fff; text-shadow: 2px 2px 0 #3e2723;
}
.game-modal p { margin: 8px 0; font-size: 1rem; font-weight: 600; }
.modal-actions { margin-top: 18px; display: flex; gap: 12px; justify-content: center; }
.modal-btn {
  padding: 10px 18px; cursor: pointer; border: 3px solid #5d4037; border-radius: 6px;
  background: #fbe9e7; color: #3e2723; font-weight: 800; font-size: 15px;
}
.modal-btn:hover { transform: translateY(-2px); }
.modal-btn--yes { background: #a5d6a7; }
.modal-btn--no { background: #ef9a9a; }
.modal-btn--close { background: #ce93d8; }
:root{color-scheme:light;--ink:#254b43;--cream:#f4f0df;--copper:#b15c40}*{box-sizing:border-box}html,body{background:#e9e8d8;color:var(--ink);font-family:ui-sans-serif,system-ui,sans-serif;display:block;min-height:100%;margin:0}.shell{width:min(1120px,96vw);margin:24px auto;gap:12px;display:grid}header{display:flex;align-items:center;justify-content:space-between;gap:14px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:3px;color:#7b846b}h1{font-family:Georgia,serif;font-size:42px;font-weight:500;margin:4px 0;color:#234b42}h1 span{font-size:20px;color:#7b846b;margin-left:10px}button{font:inherit;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #c17b44;outline-offset:3px}.header-actions{display:flex;gap:8px}header button,.field-controls button{background:#f9f6e9;border:1px solid #b5c5ab;border-radius:12px;padding:10px 14px;color:#294e43;font-weight:700;cursor:pointer}.intro{margin:0 0 2px;font-size:14px;color:#5d7467}.game-container{width:100%;border-radius:22px;overflow:hidden;background:#dae0c6;border:1px solid #a9ba9d;box-shadow:0 18px 50px #254b431a}canvas{border:0;border-radius:0;width:100%;background:#d4dabe;touch-action:none}.ol{top:15px;left:15px;max-width:48%}.or{top:15px;right:15px;gap:10px}.box{background:#f9f6e9ed;border:1px solid #a4b697;border-radius:12px;box-shadow:0 3px 12px #1c3b2220}.task-box{min-width:0;padding:12px 16px;gap:5px;text-align:left;max-width:310px}.wallet-label{padding:0;font-size:10px;letter-spacing:2px;color:#748264}#wallet-amount,#task-list{color:#294d3b;font-size:14px}.wallet-box{padding:10px 14px;min-width:86px;gap:4px}.crop-counter{font-size:12px;background:#2a5045;border:0;padding:9px 13px;border-radius:10px}.clock-face{background:#eee4c8;border:2px solid #8f9d78;box-shadow:none}.days-left{color:#775a44}.clock-hand{background:#b66b42}.inventory{border:0;border-top:1px solid #b5c2a1;border-radius:0;background:#d6dec4;gap:8px;padding:12px;flex-wrap:wrap}.tool-slot{background:#f4f0df;border:1px solid #a9ba98;border-radius:10px;font-size:13px;padding:11px 14px;box-shadow:none}.tool-slot.active{background:#315b4b;color:#fff;border-color:#315b4b;transform:none;box-shadow:0 3px 0 #c88b4b}.tool-slot:disabled{opacity:.5}.field-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:#6b806d}.dpad{display:flex;gap:5px}.dpad button{font-size:18px;min-width:42px;padding:5px 10px;touch-action:none}.field-controls span{margin-left:auto}footer{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:11px;color:#6e806c;margin-top:6px}a{color:#396a59}.modal-backdrop{backdrop-filter:blur(7px);background:#1c332b99;padding:18px}.game-modal{color:#315344;background:#fbf7e9;border:1px solid #b2c1a3;border-radius:24px;max-width:550px;padding:30px;box-shadow:0 24px 90px #11261c66;text-align:left;max-height:90vh;overflow:auto}.game-modal h3{font:500 30px Georgia,serif;text-shadow:none;color:#284e40;text-transform:none;letter-spacing:0}.game-modal p{font-size:14px;line-height:1.65;font-weight:400}.modal-actions{flex-wrap:wrap;justify-content:flex-start}.modal-btn{border:1px solid #b4c5a0;border-radius:11px;box-shadow:none;font-size:14px;padding:11px 16px}.modal-btn--yes{background:#305e4c;color:white;border-color:#305e4c}.modal-btn--no{background:#eee8d6}.modal-btn--close{background:#dfe7cd}.shop-button{font-size:13px;border:1px solid #a4ba95;border-radius:9px;margin-bottom:5px}.modal-helper{float:right;width:104px;height:104px;object-fit:contain}.hint{padding:10px 14px;border-left:3px solid #c27e48;background:#eeeada;border-radius:5px}
@media(max-width:650px){.shell{margin:12px auto;width:96vw;gap:9px}header{align-items:flex-start;flex-direction:column;gap:7px}h1{font-size:34px}h1 span{font-size:16px}.header-actions button{font-size:12px;padding:7px 12px}.intro{font-size:12px;line-height:1.5}.ol,.or{top:7px}.ol{left:7px;max-width:57%}.or{right:7px}.task-box{padding:7px 9px;max-width:180px;gap:2px}.wallet-label{font-size:8px}#task-list{font-size:10px;line-height:1.3}#wallet-amount{font-size:11px}.wallet-box{padding:5px;min-width:58px}.clock-face{display:none}.crop-counter{font-size:10px;padding:6px}.or-wallet-group{gap:5px}.inventory{gap:5px;padding:8px}.tool-slot{font-size:10px;padding:8px 7px}.field-controls span{margin-left:0;font-size:10px}.game-modal{padding:22px}.game-modal h3{font-size:26px}.modal-helper{width:80px;height:80px}footer{font-size:10px}}
.ol,.or,.inventory{line-height:1.35}.task-box,.wallet-box{line-height:1.35}.tool-slot{line-height:1.35}.clock-face{line-height:1.2}
