:root { color-scheme: light; --ink: #26331f; --paper: #f6f0dc; --card: #fffaf0; --leaf: #3f6b35; --soil: #8a5f3c; --grass: #a9cd7c; --gold: #f2b53a; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.4 system-ui, sans-serif; }
main { max-width: 460px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
header { display: flex; justify-content: space-between; align-items: center; }
h1 { margin: 0; font-size: 1.35rem; color: var(--leaf); }
#coins { font-weight: 700; background: var(--card); border: 2px solid var(--gold); border-radius: 99px; padding: 2px 14px; }
#goal { margin: 8px 0; }
#goal .card { margin: 0; }
.card.done { border-color: var(--leaf); }
.grow { flex: 1; }
.how { color: #55663f; font-size: .9rem; }
.wide { width: 100%; margin-top: 8px; }
dialog .big { width: 72px; height: 72px; }
#msg { min-height: 1.4em; margin: 6px 0; font-weight: 600; }
#plot { max-width: 300px; margin: 0 auto; display: grid; gap: 4px; background: #6f8f4e; border-radius: 14px; padding: 6px; }
.tile { aspect-ratio: 1; position: relative; padding: 0; border: 0; border-radius: 8px; background: var(--grass); cursor: pointer; overflow: hidden; }
.tile svg { width: 100%; height: 100%; display: block; }
.tile.ready { box-shadow: inset 0 0 0 4px var(--gold); }
.tile.picked { outline: 4px solid #fff; outline-offset: -4px; }
.tile .time { position: absolute; right: 2px; bottom: 1px; font-size: .7rem; font-weight: 700; background: #fffc; border-radius: 4px; padding: 0 3px; }
.tile .critter { position: absolute; left: 2px; top: 1px; width: 46%; height: 46%; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(12%); } }
@media (prefers-reduced-motion: reduce) { .tile .critter { animation: none; } }
button { font: inherit; color: var(--ink); background: var(--card); border: 2px solid #c9bd96; border-radius: 10px; padding: 6px; min-height: 44px; cursor: pointer; }
button[aria-pressed="true"], button.go { background: var(--leaf); border-color: var(--leaf); color: #fff; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible { outline: 3px solid #1a6fd4; }
.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.choices button svg { width: 34px; height: 34px; display: block; margin: 0 auto; background: var(--grass); border-radius: 6px; }
.choices small { display: block; line-height: 1.15; }
#panel h2 { margin: 8px 0 4px; }
#msg:empty { margin: 0; min-height: 0; }
h2 { font-size: 1rem; margin: 14px 0 6px; }
.card { background: var(--card); border: 2px solid #ddd2ac; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.card p { margin: 4px 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card .portrait { width: 44px; height: 44px; flex: none; }
dialog { border: 3px solid var(--leaf); border-radius: 16px; background: var(--card); color: var(--ink); max-width: 340px; text-align: center; }
dialog::backdrop { background: #0008; }
html.big { font-size: 19px; }
html.big body { font-size: 1rem; }
html.still *, html.still .tile .critter { animation: none !important; }
body[data-theme="autumn"] { --grass: #d9bd6a; } body[data-theme="autumn"] #plot { background: #a97f3c; }
body[data-theme="snow"] { --grass: #e6eef2; } body[data-theme="snow"] #plot { background: #9db4c0; }
body[data-theme="dusk"] { --grass: #8d86b8; } body[data-theme="dusk"] #plot { background: #4f4878; }
.daily svg { width: 40px; height: 40px; flex: none; }
.badge { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.card.locked .badge { filter: grayscale(1) opacity(.55); }
.daily svg { background: var(--grass); border-radius: 8px; }
.minifarm { display: grid; gap: 2px; width: 220px; margin: 0 auto 10px; background: #6f8f4e; padding: 4px; border-radius: 8px; }
.mini { aspect-ratio: 1; background: var(--grass); border-radius: 4px; overflow: hidden; }
.mini svg { width: 100%; height: 100%; display: block; }
.card ol { margin: 6px 0; padding-left: 22px; }
select { font: inherit; width: 100%; min-height: 44px; margin: 4px 0 8px; border-radius: 10px; border: 2px solid #c9bd96; background: var(--card); color: var(--ink); }
