:root{color-scheme:light;--bg:#73b9d5;--surface:#fff4d5;--surface-2:#f5dba9;--line:#9a6137;--line-strong:#6e432b;--text:#38281b;--muted:#694d36;--dim:#7c624a;--lux:#52c655;--lux-2:#b5ef6a;--lux-deep:#278d43;--gold:#f7c347;--shadow:0 7px 0 #533820,0 14px 26px #172b2a66}
body{background:#2d9cbb;color:var(--text)}
.vignette{background:radial-gradient(110% 90% at 50% 40%,transparent 70%,#144c5c48);box-shadow:none}
.game-header{background:linear-gradient(#075074dc,#07507400);padding:12px 18px;gap:10px}
.brand{background:#073b58e8;color:#fff4ce;padding:8px 15px;border:2px solid #b5dce0;border-radius:16px;box-shadow:0 4px 0 #082b42}
.brand-text>span{color:#ffd469}.brand-text small{color:#a8e9dd}.gem{background:#41bdaa;color:#fff;border-color:#d3fff0}
.resource{background:#073b58e8;border:2px solid #8ec8ce;color:#fff6df;box-shadow:0 3px 0 #073044}.resource-value small{color:#c5e5df}
.account-link,.icon-button{background:linear-gradient(#67cb63,#24893d);color:#fff;border:2px solid #dbf6a1;border-radius:14px;box-shadow:0 4px 0 #14522d;padding:9px 15px;font-weight:900;text-shadow:0 1px #1b5731}
.panel{background:linear-gradient(160deg,#fff3cf,#e7bb7b);border:3px solid #8d5c34;box-shadow:0 5px 0 #583b27,0 10px 20px #133e4055;backdrop-filter:none}
.quest{top:105px;padding:17px}.quest::before{background:#55c363}.eyebrow{color:#2d8846}.quest-count{color:#4e3b2e;border-color:#b8864e}.quest p{color:#644c37}.quest-progress,.energy-track{background:#75583c55;border:2px solid #8a663f;height:12px}.quest-progress i,.energy-track i{background:linear-gradient(#aeec59,#3eba4a)}
.zone{background:#073b58e8;color:#fff7d8;border:2px solid #82c2c8;border-radius:15px;padding:9px 14px}.zone small{color:#d2ede6}
.legend{color:#4f3929}.legend i{color:#1e9b68}
.dock{gap:10px}.player-card{background:linear-gradient(#124e67,#07394f);color:#fff5d7;border-color:#8cc5ba}.player-info small{color:#d2eadd}.player-card .energy-track{background:#244b4f}
.action,.primary,.secondary,.text-button,.row-actions button,.recipe button{border:2px solid #8a5a31;background:linear-gradient(#ffeaa7,#db9c4e);color:#3a291b;box-shadow:0 4px 0 #76502d;font-weight:900;text-shadow:0 1px #fff7c1;border-radius:14px}
.action.primary,.primary,.start{background:linear-gradient(#b7ee74,#3dbb51);border-color:#276a38;box-shadow:0 5px 0 #1c6838;color:#143b27}
.action:hover,.primary:hover,button:hover{filter:brightness(1.08)}.action-icon{font-size:27px}.action-label{font-weight:900}
#modal{background:linear-gradient(#fff3cc,#dca565);border:5px solid #86552f;color:#35261a;box-shadow:0 12px 0 #56371e,0 30px 70px #152b2baa;border-radius:24px}
dialog#modal{background:linear-gradient(#fff3cc,#dca565);border:5px solid #86552f;color:#35261a;box-shadow:0 12px 0 #56371e,0 30px 70px #152b2baa;border-radius:24px}
dialog#modal .modal-head{background:#f3d49b;border-bottom:2px solid #ad7a49}dialog#modal .modal-head h2{color:#402c1b}dialog#modal .eyebrow{color:#427c3f}dialog#modal #modalBody p{color:#624934}
#modal::backdrop{background:#123f58a8;backdrop-filter:blur(5px)}.modal-head{border-bottom-color:#aa7449}.note{color:#654b37}
.farm-grid{gap:5px;padding:10px;background:#8f6139;border:5px solid #6f4528;border-radius:14px}.farm-grid button{background:linear-gradient(145deg,#a36b3d,#6e3e25);border:2px solid #c68b4c;border-radius:9px;color:#f9dc92;box-shadow:inset 0 3px #5c321e,0 2px #58351f;font-size:24px}.farm-grid button.ready{background:linear-gradient(#7fbe48,#487d31);border-color:#d0dc67}
.bag-row,.journal-row,.recipe{background:#fff2cf;border:2px solid #c69255;border-radius:13px;color:#3d2a1d;box-shadow:0 3px #a87440}.bag-row span{font-size:17px}.bag-row strong{font-size:21px;color:#248348}
.welcome{background:linear-gradient(#0c5679aa,#0f597522),radial-gradient(circle at 50% 45%,#a9e77b,#5ab6ba 72%)}.intro{color:#fff8df;text-shadow:0 2px 3px #254535}.intro h1 em{color:#ffe07c}.character{background:linear-gradient(#fff1ce,#dcb574);border:4px solid #8d6139;color:#3c2b1b;box-shadow:0 8px 0 #6a482c}.character.selected{border-color:#ffe273}.character p,.character .char-bonus{color:#634b37}.disclaimer{color:#f0ffe6}
@media(max-width:700px){.game-header{padding:7px;gap:5px}.brand{padding:5px 7px}.brand-text{font-size:14px}.brand-text small{font-size:6px}.gem{width:26px;height:26px}.resource{min-width:0;padding:4px 6px;gap:3px}.resource-icon{font-size:13px}.resource-value{font-size:11px}.resource-value small{font-size:6px}.quest{top:65px;left:8px;width:min(240px,63vw);padding:10px}.quest h2{font-size:14px}.quest p{font-size:10px}.zone{right:7px;top:65px;padding:5px;font-size:9px}.zone small{font-size:8px}.dock{bottom:6px}.player-card{padding:7px}.action{min-width:52px;padding:5px}.action-icon{font-size:21px}.action-label{font-size:10px}#modal{max-height:88dvh}}
@media(max-width:700px){.quest{top:106px;left:8px;width:min(235px,62vw)}.zone{top:110px;right:7px;width:112px}.zone small{display:block}.legend{display:none}}
.resource-icon,.action-icon,.avatar-icon{display:inline-grid;place-items:center}.resource-icon svg{width:26px;height:26px;filter:drop-shadow(0 2px 1px #11374455)}.action-icon svg{width:31px;height:31px}.avatar-icon svg{width:33px;height:33px}.bag-row svg{width:31px;height:31px;vertical-align:middle;margin-right:8px}
@media(max-width:700px){.resource-icon svg{width:17px;height:17px}.action-icon svg{width:24px;height:24px}}
.bag-section{margin:12px 0 20px}.bag-section h3{font-size:14px;color:#76502d;margin:0 0 8px}.bag-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.bag-item{display:grid;justify-items:center;gap:2px;padding:12px 6px;background:linear-gradient(#fff8dd,#edcf9a);border:2px solid #ba8953;border-radius:14px;box-shadow:0 3px #916437}.bag-item svg{width:46px;height:46px;filter:drop-shadow(0 3px 2px #6e4c3266)}.bag-item strong{font-size:18px;color:#3f2f22}.bag-item small{font-size:11px;color:#775b3c}.equipment-card{display:flex;align-items:center;gap:12px;padding:12px;background:linear-gradient(#d8e6c1,#b5d69c);border:2px solid #7c9a5d;border-radius:14px}.equipment-card svg{width:54px;height:54px;flex:none}.equipment-card small{display:block;color:#526b46;margin-top:5px}
.farm-grid button svg{width:26px;height:26px;display:block;margin:auto}.farm-grid button small{display:block;font-size:9px}
.coop-intro{display:flex;align-items:center;gap:16px;background:#fff1ce;border:2px solid #ba8953;border-radius:16px;padding:12px}.coop-intro .hen{width:150px;height:150px;flex:none}.coop-intro strong{display:block;margin:8px 0;color:#77532e}.coop-intro button{margin-top:8px}.coop-stock{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:10px;background:#fff2cb;border:2px solid #b88950;border-radius:12px}.coop-stock svg{width:34px;height:34px}.coop-stock span{margin-right:auto;font-size:12px}.hen-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:13px 0}.hen-card{display:flex;align-items:center;gap:7px;padding:8px;background:#fff2d0;border:2px solid #b58952;border-radius:14px}.hen-card .hen{width:84px;height:84px;flex:none}.hen-card strong{display:block;font-size:12px}.hen-card small{display:block;color:#73583b;font-size:10px;margin:4px 0}.hen-card button{padding:5px 9px;min-height:32px;font-size:11px;background:linear-gradient(#b7ee74,#3dbb51);border:1px solid #328a44}.coop-add{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.coop-add button{font-size:11px}.coop-add small{display:block;color:#715737;font-size:9px}.hen-bob{animation:henBob 3.2s ease-in-out infinite;transform-origin:50% 75%}@keyframes henBob{50%{transform:translateY(-3px) rotate(1deg)}}
@media(max-width:700px){.coop-intro{gap:6px}.coop-intro .hen{width:110px;height:130px}.hen-grid{grid-template-columns:1fr}.hen-card .hen{width:68px;height:68px}.coop-stock span{width:100%}.coop-add{grid-template-columns:1fr 1fr}}
.gesture-hint{font-size:13px;line-height:1.4;margin:4px 0 10px}.gesture-tools{display:flex;flex-wrap:wrap;gap:8px;padding:8px;margin:0 0 10px;border:2px solid #ba8953;border-radius:14px;background:#ffe9b5}.gesture-tools button{display:flex;align-items:center;gap:7px;min-height:55px;padding:5px 11px;border:2px solid #9e683d;border-radius:12px;background:linear-gradient(#fff9de,#edca88);color:#3c291c;touch-action:none;user-select:none;font-weight:800;cursor:grab}.gesture-tools button svg{width:35px;height:35px;flex:none}.gesture-tools button span{text-align:left}.gesture-tools button small{display:block;font-size:10px;color:#755438}.gesture-tools button.drag-source{filter:brightness(1.12);cursor:grabbing;transform:scale(.96)}.gesture-ghost{position:fixed;z-index:30;pointer-events:none;display:grid;place-items:center;width:58px;height:58px;margin:-29px 0 0 -29px;border:2px solid #fff3b2;border-radius:50%;background:#e7b565ec;box-shadow:0 8px 20px #24170f80;transform:rotate(-9deg)}.gesture-ghost svg{width:38px;height:38px}.gesture-active [data-drop-plot].drag-valid,.gesture-active [data-drop-hen].drag-valid,.gesture-active [data-drop-craft].drag-valid{outline:3px solid #bdf36a;outline-offset:2px;box-shadow:0 0 0 6px #bdf36a55,0 4px #6a5438}.gesture-active .drag-hit{animation:dropPulse .3s ease-out}@keyframes dropPulse{50%{transform:scale(1.08);filter:brightness(1.24)}}.farm-gesture-grid{touch-action:none}.farm-gesture-grid button{min-height:48px;transition:background .2s,transform .2s}.farm-gesture-grid button[data-growth="sprout"]{background:linear-gradient(#85502f,#61402a)}.farm-gesture-grid button[data-growth="grown"]{background:linear-gradient(#6a9b45,#72503a)}.farm-gesture-grid button[data-growth="ripe"]{background:linear-gradient(#8cc652,#548a39)}.hen-card{position:relative;overflow:hidden;transition:background .25s}.hen-card[data-hen-state="hungry"]{background:#fff0cf}.hen-card[data-hen-state="working"]{background:#f5e5b8}.hen-card[data-hen-state="ready"]{background:#e6f4bd;border-color:#8baf53}.hen-card[data-hen-state="working"] .hen{animation:henBob 1.1s ease-in-out infinite}.hen-card[data-hen-state="ready"] .hen{animation:henBob 2.1s ease-in-out infinite}.hen-egg{position:absolute;right:4px;top:3px;opacity:0;transform:translateY(7px);transition:opacity .25s,transform .25s}.hen-egg svg{width:26px;height:26px}.hen-card[data-hen-state="ready"] .hen-egg{opacity:1;transform:translateY(0)}.forge-drop{transition:transform .2s,background .2s}.forge-drop.crafted{background:#e8f2c6}.resource-flight{position:fixed;z-index:29;pointer-events:none;width:30px;height:30px;animation:flyToBag .7s cubic-bezier(.2,.7,.2,1) forwards}.resource-flight svg{width:30px;height:30px}@keyframes flyToBag{to{transform:translate(var(--fly-x),var(--fly-y)) scale(.35);opacity:.15}}
@media(max-width:700px){.gesture-tools{gap:5px;padding:6px}.gesture-tools button{padding:4px 7px;min-height:45px;font-size:11px}.gesture-tools button svg{width:26px;height:26px}.gesture-tools button small{font-size:9px}.farm-gesture-grid button{min-height:42px}.gesture-hint{font-size:11px}}
@media(prefers-reduced-motion:reduce){.resource-flight,.drag-hit,.hen-card .hen{animation:none!important}.gesture-ghost{transform:none}}
.farm-gesture-grid{width:min(100%,450px);margin:10px auto 14px;padding:8px}.farm-gesture-grid button{position:relative;color:#fff0bf}.farm-gesture-grid button small{font-size:10px;color:#ffe2a2;text-shadow:0 1px 1px #3b2419}.farm-gesture-grid button svg{width:35px;height:35px;filter:drop-shadow(0 2px 1px #332215)}.farm-gesture-grid button[data-growth="soil"]{background:radial-gradient(ellipse at 50% 35%,#aa7146 0 48%,#71452d 70%)}.farm-gesture-grid button[data-growth="seed"] svg{width:23px;height:23px;animation:growIn .3s ease-out}.farm-gesture-grid button[data-growth="sprout"] svg{animation:growIn .4s ease-out}.farm-gesture-grid button[data-growth="grown"] svg{transform:scale(1.2)}.farm-gesture-grid button[data-growth="ripe"] svg{animation:ripeSway 2.6s ease-in-out infinite}.soil-mark{font-size:26px;line-height:1;color:#e7b878;text-shadow:0 2px #51331e}@keyframes growIn{from{transform:translateY(8px) scale(.3);opacity:.2}to{transform:none;opacity:1}}@keyframes ripeSway{50%{transform:rotate(5deg) translateY(-2px)}}
.farm-gesture-grid button[data-growth="seed"] svg{width:32px;height:32px}
dialog#modal .resource-flight{animation-duration:.48s}
@media(max-width:700px){.farm-gesture-grid button svg{width:25px;height:25px}.farm-gesture-grid button small{font-size:8px}}
dialog#modal[data-context]:not([data-context=""]){position:fixed;inset:auto 18px 96px auto;margin:0;width:min(450px,calc(100vw - 28px));max-height:calc(100dvh - 145px);z-index:80;box-shadow:0 9px 0 #55351e,0 22px 45px #153439a6;animation:contextIn .2s ease-out}dialog#modal[data-context]:not([data-context=""]) .modal-head{padding:11px 14px 8px}dialog#modal[data-context]:not([data-context=""]) .modal-head h2{font-size:20px}dialog#modal[data-context]:not([data-context=""]) #modalBody{padding:10px 14px 3px}dialog#modal[data-context]:not([data-context=""]) #modalStatus{padding:0 14px 9px}@keyframes contextIn{from{opacity:.4;transform:translateY(14px)}to{opacity:1;transform:none}}
@media(max-width:700px){dialog#modal[data-context]:not([data-context=""]){inset:auto 8px 90px 8px;width:auto;max-height:calc(100dvh - 142px);border-radius:17px}dialog#modal[data-context]:not([data-context=""]) .modal-head h2{font-size:17px}}
.world-tools{position:fixed;left:50%;bottom:115px;transform:translateX(-50%);z-index:28;display:flex;align-items:center;gap:7px;max-width:min(800px,calc(100vw - 24px));padding:7px 9px;border:3px solid #9b683c;border-radius:18px;background:linear-gradient(#fff0c3,#d9a96a);box-shadow:0 5px 0 #664229,0 12px 25px #133c4677;pointer-events:auto}.world-tools[hidden]{display:none!important}.world-tools>strong{color:#5a4029;font-size:12px;white-space:nowrap;padding:0 5px}.world-tools button{display:flex;align-items:center;gap:6px;min-height:49px;padding:4px 9px;border:2px solid #a26d42;border-radius:12px;background:linear-gradient(#fffbdc,#efcd8d);color:#402d20;font-weight:800;white-space:nowrap;touch-action:none;user-select:none;cursor:grab}.world-tools button[aria-pressed="true"]{border-color:#3d964b;background:linear-gradient(#d9f6a2,#74c95d);box-shadow:0 0 0 3px #dcf8a591}.world-tools button svg{width:30px;height:30px;flex:none}.world-tools button span{display:grid;text-align:left;font-size:12px}.world-tools button small{font-size:9px;color:#735438}.world-tools .world-details{cursor:pointer;font-size:11px;min-height:43px;padding:6px 10px}.world-drag-ghost{position:fixed;z-index:90;pointer-events:none;display:grid;place-items:center;width:54px;height:54px;margin:-27px 0 0 -27px;border:3px solid #fff3b8;border-radius:50%;background:#d5ad66ed;box-shadow:0 6px 16px #163c4970;transform:rotate(-9deg)}.world-drag-ghost svg{width:38px;height:38px}.world-flight{position:fixed;z-index:80;pointer-events:none;width:34px;height:34px;margin:-17px 0 0 -17px;animation:worldFly .66s cubic-bezier(.25,.75,.2,1) forwards}.world-flight svg{width:34px;height:34px;filter:drop-shadow(0 2px 2px #285441)}@keyframes worldFly{to{transform:translate(var(--fly-x),var(--fly-y)) scale(.3);opacity:.1}}body.world-dragging #world{cursor:crosshair}
@media(max-width:700px){.world-tools{left:7px;right:7px;bottom:150px;transform:none;max-width:none;justify-content:center;gap:4px;padding:5px;border-width:2px;border-radius:14px}.world-tools>strong{display:none}.world-tools button{min-height:46px;gap:3px;padding:3px 5px;flex:1 1 auto;justify-content:center}.world-tools button svg{width:25px;height:25px}.world-tools button span{font-size:10px}.world-tools button small{font-size:8px}.world-tools .world-details{font-size:10px;min-height:42px;flex:0 1 auto;padding:5px 7px}}
@media(prefers-reduced-motion:reduce){.world-flight{animation:none}.world-drag-ghost{transform:none}}
#toast{bottom:190px;color:#fff5dc;border-color:#7acb94;background:#12383beF;text-shadow:none}
@media(max-width:700px){#toast{bottom:225px}}
