:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #fffceb; background: #163f19; }
* { box-sizing: border-box; }
html, body, main { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { overscroll-behavior: none; }
#game { display: block; width: 100%; height: 100%; touch-action: none; }
.hud { position: fixed; top: 0; left: 0; display: flex; width: 100%; align-items: flex-start; justify-content: space-between; padding: clamp(1rem, 3vw, 2rem); pointer-events: none; }
.eyebrow { margin: 0 0 .2rem; color: #d3efa8; font-size: .63rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.55rem, 4vw, 2.5rem); font-weight: 500; letter-spacing: -.04em; text-shadow: 0 2px 12px rgb(0 0 0 / .35); }
.count { margin: 0; padding: .65rem .9rem; color: #183a17; background: rgb(239 246 210 / .9); border: 1px solid rgb(255 255 255 / .55); border-radius: 999px; box-shadow: 0 5px 20px rgb(0 0 0 / .18); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; backdrop-filter: blur(8px); }
.count strong { font-size: 1rem; }
.resources { display: grid; justify-items: end; gap: .45rem; }
.money { margin: 0; padding: .5rem .8rem; color: #fff2bd; background: rgb(61 42 10 / .82); border: 1px solid rgb(255 219 104 / .35); border-radius: 999px; box-shadow: 0 5px 20px rgb(0 0 0 / .18); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; backdrop-filter: blur(8px); }
.money strong { color: #ffd866; font-size: .95rem; }
.store-panel { position: fixed; z-index: 3; top: 50%; left: 50%; width: min(92vw, 30rem); padding: 1.25rem; translate: -50% -50%; color: #f8f1d4; background: rgb(25 38 19 / .94); border: 1px solid rgb(229 215 166 / .4); border-radius: 1rem; box-shadow: 0 1.5rem 5rem rgb(0 0 0 / .5); backdrop-filter: blur(10px); }
.store-panel[hidden] { display: none; }
.store-heading h2 { margin: 0; font: 500 1.6rem/1.1 Georgia, serif; }
.store-heading > p:last-child { margin: .4rem 0 1rem; color: #bfc9ad; font-size: .74rem; }
.store-list { display: grid; gap: .65rem; }
.store-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); border-radius: .75rem; }
.store-item.unaffordable { opacity: .58; }
.store-item h3 { margin: 0 0 .25rem; font-size: .9rem; }
.store-item p { margin: 0; color: #cbd4bb; font-size: .72rem; }
.fertilizer { flex: 0 0 auto; padding: .65rem .8rem; color: #173715; background: #d9efa5; border: 1px solid rgb(255 255 255 / .5); border-radius: .65rem; box-shadow: 0 4px 14px rgb(0 0 0 / .2); font: 800 .68rem/1 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.fertilizer:hover:not(:disabled) { background: #edffc1; }
.fertilizer.placing { color: #fff9d9; background: #6f8f31; outline: 2px solid #e7f5aa; }
.fertilizer:disabled { opacity: .45; cursor: not-allowed; }
.fertilizer-status { min-height: 1em; margin: .75rem 0 0; color: #d9efa5; font-size: .68rem; font-weight: 700; text-shadow: 0 1px 5px #000; }
.notifications { position: fixed; top: 6.5rem; right: clamp(1rem, 3vw, 2rem); display: grid; justify-items: end; gap: .4rem; pointer-events: none; }
.notification { padding: .55rem .8rem; color: #fff5c9; background: rgb(38 29 9 / .86); border: 1px solid rgb(255 219 104 / .4); border-radius: .6rem; box-shadow: 0 6px 20px rgb(0 0 0 / .22); font-size: .78rem; animation: notice 2.5s ease forwards; }
@keyframes notice { 0% { opacity: 0; translate: 1rem 0; } 12%, 75% { opacity: 1; translate: 0; } 100% { opacity: 0; translate: 0 -.5rem; } }
.instructions { position: fixed; left: 50%; bottom: clamp(1rem, 4vw, 2rem); width: min(90vw, 22rem); padding: 1rem 1.25rem; translate: -50% 0; text-align: center; background: rgb(7 31 9 / .8); border: 1px solid rgb(255 255 255 / .2); border-radius: 1rem; box-shadow: 0 12px 35px rgb(0 0 0 / .25); transition: opacity .5s, translate .5s; backdrop-filter: blur(8px); pointer-events: none; }
.instructions.hidden { opacity: 0; translate: -50% 1rem; }
.instructions p { margin: .2rem 0 .65rem; color: #dceccf; font-size: .82rem; }
.keys { display: grid; justify-items: center; gap: .2rem; }
.keys span { display: flex; gap: .2rem; }
kbd { display: grid; width: 1.65rem; height: 1.65rem; place-items: center; color: #173715; background: #edf6d5; border: 0; border-radius: .3rem; box-shadow: 0 2px 0 #9bb47d; font: 700 .72rem/1 system-ui, sans-serif; }
@media (max-width: 520px) { .hud { padding: 1rem; } .instructions { bottom: .8rem; } }
