
:root{--ink:#283e2d;--green:#365b3d;--cream:#f6f0e1;--line:#d7d7c4;--shadow:0 8px 28px #20332125;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#bec494}
*{box-sizing:border-box}
body{margin:0}
button,input,select{font:inherit}
button{cursor:pointer;color:inherit;background:var(--cream);border:1px solid var(--line);border-radius:12px;padding:10px 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px}
button:hover:not(:disabled){background:#fffaec;border-color:#809575}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d6aa52;outline-offset:3px}
button:disabled{cursor:default;opacity:.45}
button svg,span svg{width:22px;height:22px;flex-shrink:0}
.primary{background:var(--green);color:white;border-color:var(--green)}
.primary:hover:not(:disabled){background:#456f4b}
header{height:64px;position:relative;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:0 22px;background:#f5f0e6;border-bottom:1px solid #d5d5c2}
.brand{font-family:Georgia,serif;font-size:29px;font-weight:bold;color:var(--ink);text-decoration:none}
.brand span{font:11px ui-sans-serif,sans-serif;display:inline-block;margin-left:15px;letter-spacing:.08em;color:#718066}
nav{display:flex;gap:8px}
nav button{padding:9px;border-color:transparent;background:transparent}
nav button:hover{background:#e5e8d7}
.world{position:relative;height:calc(100dvh - 64px);min-height:420px;overflow:hidden}
canvas{display:block;width:100%;height:100%;touch-action:none}
.hud{position:absolute;inset:18px 22px auto;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none;gap:10px}
.day-pill,.resources{pointer-events:auto;display:flex;align-items:center;gap:14px;padding:11px 16px;background:#f9f6e9ee;box-shadow:var(--shadow);border:1px solid #fdf7e6;border-radius:16px;position:relative}
.day-pill strong{font-family:Georgia,serif;font-size:22px;white-space:nowrap}
.day-time{display:grid;gap:3px;line-height:1}
#hourClock{font-size:14px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap;color:#4d654b}
.day-pill progress{position:absolute;bottom:0;left:14px;width:calc(100% - 28px);height:3px}
.resources #cash{font-weight:700;font-size:19px}
.resources button{background:transparent;border:0;padding:0;gap:6px;font-size:13px}
.resources #canLevel{display:flex;align-items:center;gap:4px;font-size:12px;color:#496b78}
.save-dot{width:7px;height:7px;background:#639465;border-radius:100%}
.save-dot.pending{background:#bd913d}
.save-dot.error{background:#bc604b}
.next-goal{position:absolute;top:20px;left:50%;transform:translateX(-50%);font-size:12px;border:0;background:#2d4936e8;color:#fffdf1;box-shadow:var(--shadow);max-width:35%;padding:10px 15px;border-radius:40px}
.next-goal:hover:not(:disabled){background:#456f4b}
.next-goal svg{width:17px;height:17px}
.camera{position:absolute;left:22px;bottom:24px;display:flex;gap:6px}
.camera button{width:40px;height:40px;padding:8px;background:#f9f6e9e8;box-shadow:var(--shadow)}
.world-hint{position:absolute;left:23px;bottom:73px;color:#2d4936;background:#f5f1e0c9;border-radius:7px;font-size:10px;padding:5px 8px;pointer-events:none}
.context-dock{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);background:#f7f2e6f2;border:1px solid #fbf8eb;border-radius:20px;padding:12px;box-shadow:var(--shadow);min-width:260px;max-width:410px}
.target-line{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 4px 8px}
.target-line h1{font:600 12px ui-sans-serif,sans-serif;margin:0;color:#617057}
.target-line #contextDescription{display:flex;gap:8px;color:#60745d;font-size:10px}
.target-line svg{width:14px;height:14px}
.stat{display:inline-flex;align-items:center;gap:3px}
.actions{display:flex;gap:6px}
.actions .main-action{flex:1;min-height:50px;font-size:16px;background:var(--green);color:white;border:0;border-radius:12px}
.actions .main-action:hover:not(:disabled){background:#456f4b}
.main-action kbd{font:10px ui-sans-serif,sans-serif;border:1px solid #ffffff60;border-radius:4px;padding:2px 4px;margin-left:8px}
.actions .secondary-action{width:46px;padding:8px}
.crop-belt{display:flex;gap:5px;margin-bottom:8px}
.crop-belt button{flex:1;min-width:0;font-size:11px;padding:7px 8px;gap:5px;border-radius:8px}
.crop-belt button svg{width:19px;height:19px}
.crop-belt button.active{background:#d9e5c9;border-color:#5f8754}
.crop-belt button span{font-weight:700}
.action-progress{position:absolute;bottom:190px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;background:#f7f2e6ee;border-radius:10px;padding:8px 12px;font-size:12px;box-shadow:var(--shadow)}
.action-progress button{padding:0;border:0;background:none;width:24px;height:24px}
.action-progress progress{width:100px;height:6px}
progress{accent-color:#52784d;border:0;border-radius:5px;overflow:hidden}
progress::-webkit-progress-bar{background:#d4d8c5}
progress::-webkit-progress-value{background:#52784d}
.toast{position:absolute;left:50%;top:80px;transform:translateX(-50%);padding:10px 18px;border-radius:30px;background:#294a37e8;color:#fff8e8;font-size:13px;box-shadow:var(--shadow);margin:0;max-width:80%;text-align:center;pointer-events:none}
.toast.error{background:#914836ee}
.place-map{position:absolute;top:12px;right:15px;display:grid;grid-template-columns:repeat(2,1fr);gap:8px;width:310px;padding:15px;border:1px solid #ebe8d5;border-radius:16px;background:#faf6e9f5;box-shadow:var(--shadow);z-index:3}
.place-map button{justify-content:flex-start;font-size:12px;padding:13px 10px}
.morning-card{position:absolute;top:80px;left:50%;transform:translateX(-50%);background:#faf6e9f5;border:1px solid #fff9e7;border-radius:20px;padding:16px 20px;box-shadow:var(--shadow);max-width:440px;text-align:center;z-index:4}
.morning-card h2{font:26px Georgia,serif;margin:0 0 12px}
.morning-time{font-size:12px;color:#657965;margin:0 0 12px;font-variant-numeric:tabular-nums}
.morning-stats{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}
.morning-stats span{display:flex;align-items:center;gap:6px;font-size:13px}
.morning-card button{margin-top:14px;border:0;background:#e3ead5}
.touch-move{display:none;position:absolute;left:20px;bottom:80px;width:92px;height:92px;border:1px solid #f9f7e6aa;border-radius:50%;background:#f3efd533;touch-action:none}
.touch-move span{position:absolute;left:29px;top:29px;width:34px;height:34px;border-radius:50%;background:#f8f3e0aa;border:1px solid #ffffff88;pointer-events:none}
.loading{position:absolute;inset:0;display:grid;place-items:center;background:#e6e8cf;font:24px Georgia,serif;z-index:10}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[hidden]{display:none!important}
dialog{border:1px solid #dcdfc9;border-radius:22px;padding:24px;background:#faf7ec;color:var(--ink);width:min(580px,calc(100% - 24px));max-height:88dvh;box-shadow:0 25px 80px #172c2255}
dialog::backdrop{background:#182f2455;backdrop-filter:blur(4px)}
.dialog-heading{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px;padding-bottom:10px;background:#faf7ec}
.dialog-heading h2{font:28px Georgia,serif;margin:0}
.dialog-heading>button{padding:4px 10px;min-width:44px;min-height:44px;font-size:24px;background:none;border:0}
#welcome{width:min(440px,calc(100% - 24px));text-align:center;padding:32px}
.welcome-mark{font-size:42px;color:#628951}
small{font-size:10px;letter-spacing:.12em}
#welcome h2{font:38px/1.1 Georgia,serif;margin:16px 0 24px}
#welcomeAccount{border-top:1px solid #d4dbc5;margin-top:20px;padding-top:8px}
#welcomeGoogle{display:flex;justify-content:center}
#welcomeAccountStatus:empty{display:none}
label{display:block;margin:12px 0;font-size:13px;text-align:left}
input:not([type=radio]):not([type=checkbox]),select{width:100%;border:1px solid #c8d1bb;border-radius:8px;padding:10px;background:#fffdf7;margin-top:5px}
fieldset{border:1px solid #d4dbc5;border-radius:10px;display:flex;justify-content:center;gap:22px;margin:16px 0}
fieldset legend{font-size:12px}
form>.primary{width:100%;margin-top:12px;padding:14px}
p{font-size:13px;line-height:1.5}
.trade-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.trade-card{background:#eef0df;border:1px solid #d9dfc8;border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:10px}
.trade-card>svg{width:42px;height:42px;color:#64834f}
.trade-card h3{font-size:15px;margin:0}
.trade-card small{font-size:11px;letter-spacing:0;color:#64745d}
.quantity{display:flex;align-items:center;justify-content:space-between;border:1px solid #d0d8bc;border-radius:9px;background:#faf8ec}
.quantity button{border:0;background:none;padding:6px 12px;font-size:19px}
.quantity output{font-size:15px;font-weight:600}
.trade-card .primary{font-size:12px;padding:10px}
.inventory-row,.list-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #dde2cf;font-size:13px}
.inventory-row span{display:flex;gap:9px;align-items:center}
.inventory-row svg{width:24px;height:24px}
.inventory-row small,.list-row small{display:block;font-size:10px;letter-spacing:0;color:#7a866b;margin-top:4px}
.goal-strip{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.goal-chip{display:flex;align-items:center;gap:6px;border-radius:9px;border:1px solid #d1d9c2;padding:8px 10px;font-size:12px}
.goal-chip.done{background:#dce8cc;color:#426439}
.goal-chip svg{width:17px;height:17px}
.greeting{font:italic 18px Georgia,serif;color:#66815a;margin:0 0 18px}
.summary-icons{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:16px 0}
.summary-icons span{display:flex;align-items:center;gap:5px;background:#e6ecd9;padding:9px 12px;border-radius:10px;font-size:12px}
.panel-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}
.goal{font-size:13px;padding:8px}
.goal.done{color:#5b8050}
.care-icons{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;margin:20px 0}
.care-icons span{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:13px;max-width:150px;text-align:center}
.care-icons svg{width:32px;height:32px}
.order-bunches{display:flex;gap:10px;justify-content:center;margin:25px 0}
.order-bunches svg{width:34px;height:34px;color:#aeb898}
.order-bunches .filled svg{color:#4f814b}
.fine{font-size:11px;color:#6d7b66}
body.left-handed .camera{left:auto;right:20px}

@media(max-width:760px){header{height:54px;padding:0 12px}
.brand{font-size:23px}
.brand span{display:none}
nav{gap:2px}
nav button{padding:8px}
nav svg{width:19px;height:19px}
.world{height:calc(100dvh - 54px);min-height:480px}
.hud{inset:12px 10px auto}
.day-pill,.resources{gap:8px;padding:9px 11px;border-radius:12px}
.day-pill{gap:6px;padding:9px 8px}
.day-pill strong{font-size:18px}
#hourClock{font-size:12px}
.resources #cash{font-size:16px}
.resources svg{width:18px;height:18px}
.resources{gap:9px}
#canLevel{display:none!important}
.next-goal{top:67px;max-width:90%;font-size:11px;white-space:nowrap;padding:8px 13px}
.camera{left:10px;bottom:12px;gap:4px}
.camera button{width:33px;height:33px;padding:7px}
.trade-card .quantity button{min-width:40px;min-height:40px;padding:6px 8px}
.trade-card .primary{min-height:44px}
.context-dock{bottom:65px;width:min(320px,calc(100% - 28px));min-width:0;border-radius:16px;padding:10px}
.world-hint{display:none}
.action-progress{bottom:220px;max-width:90%}
.toast{top:110px;max-width:90%;font-size:12px}
.place-map{top:8px;right:8px;width:min(310px,calc(100% - 16px))}
.morning-card{top:110px;width:calc(100% - 36px)}
.touch-move{left:12px;bottom:235px;width:76px;height:76px}
.touch-move span{left:21px;top:21px}
.trade-grid{gap:8px}
.trade-card{padding:12px}
dialog{padding:20px}
.dialog-heading h2{font-size:25px}
}
@media(pointer:coarse){.touch-move{display:block}
.main-action kbd{display:none}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}
}


.forecast{display:inline-flex;align-items:center;gap:3px;color:#657965;font-size:12px}
.forecast svg{width:17px;height:17px}
.care-warning{color:#984d34}

.morning-stats>svg{width:28px;height:28px;flex-shrink:0}
.shop-funds{display:flex;align-items:center;gap:7px;margin:0 0 12px;font-size:14px;font-weight:600}
.shop-funds>svg{width:22px;height:22px}
body.left-handed .touch-move{left:auto;right:20px}
@media(max-width:400px){.hud{gap:6px}
.day-pill{padding:9px 6px}
.resources{gap:6px;padding:9px 8px}
.resources #cash{font-size:14px}
.day-pill #weatherIcon svg{width:20px;height:20px}
.forecast{gap:0;font-size:10px}
.forecast svg{width:14px;height:14px}
}
