@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');
:root{font-family:'Nunito','Trebuchet MS',sans-serif;color:#344a34;background:#e7edda;font-synthesis:none;--green:#3b6842;--cream:#fffdf2;--line:#e5e7d8;--surface:#fffdf2ed}
*{box-sizing:border-box}body{margin:0;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;border:0}button:focus-visible,a:focus-visible{outline:3px solid #d7a840;outline-offset:3px}button:hover{filter:brightness(1.04)}button:disabled{opacity:.55;cursor:default}svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;display:block}[hidden]{display:none!important}
#world{position:fixed;inset:0;touch-action:none}#world canvas{display:block;width:100%;height:100%;outline:none}.vignette{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 45%,transparent 40%,#d0d8bd22 100%)}
.topbar{position:fixed;top:18px;left:20px;right:20px;display:flex;align-items:center;justify-content:space-between;gap:12px;pointer-events:none;z-index:4}.topbar>*{pointer-events:auto}.brand{display:flex;align-items:center;gap:9px;color:#36573d;text-decoration:none;background:var(--surface);border:1px solid #ffffffb0;border-radius:12px;padding:10px 14px}.brand strong{font:700 21px Georgia,serif;letter-spacing:-.7px}.brand svg{width:22px;height:22px}.top-actions{display:flex;align-items:center;gap:7px}.hud-button,.coin-balance{height:42px;background:var(--surface);border:1px solid #ffffffb0;border-radius:12px;box-shadow:0 3px 12px #243f2810}.hud-button{position:relative;min-width:42px;padding:10px;display:flex;align-items:center;justify-content:center;gap:6px}.hud-button .count{font-size:11px;font-weight:900}.coin-balance{display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:17px}.coin{display:inline-flex;align-items:center;justify-content:center;flex:none;background:#edc55e;border:1px solid #dbac45;border-radius:50%;width:23px;height:23px;font-size:13px;font-weight:900;color:#926b2c}.coin.tiny{width:13px;height:13px;font-size:8px}.notification-dot{position:absolute;right:6px;top:6px;width:6px;height:6px;border-radius:50%;background:#c79433;box-shadow:0 0 0 2px var(--cream)}
.toolbox{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:4px;padding:6px;border:1px solid #ffffffba;border-radius:16px;background:var(--surface);box-shadow:0 5px 20px #2a47251b;z-index:3}.tool{min-width:77px;height:46px;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:11px;background:transparent;font-size:12px;font-weight:800;padding:10px}.tool svg{width:21px;height:21px}.tool.active{background:#426b45;color:#fffce9}.seed-toggle{display:flex;align-items:center;justify-content:center;gap:9px;background:transparent;border-left:1px solid #dce2ce;min-height:38px;padding:0 12px;margin-left:3px;font-size:12px;font-weight:800}.seed-toggle>span+span{color:#879575}.seed-tray{position:fixed;bottom:92px;left:50%;transform:translateX(-50%);width:460px;max-width:calc(100vw - 24px);padding:13px;border-radius:16px;background:#fffdf5f7;border:1px solid white;box-shadow:0 10px 32px #294c3430;z-index:5}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:13px}.small-close{display:grid;place-items:center;background:#edf0e0;width:30px;height:30px;border-radius:9px}.small-close svg{width:16px;height:16px}.seed-list{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.seed-card{display:flex;flex-direction:column;align-items:center;gap:8px;border:1px solid transparent;border-radius:11px;background:#f0f2e6;padding:10px 4px;text-align:center}.seed-card.selected{border-color:#547b49;background:#e4ecd4}.seed-emoji{font-size:29px;line-height:1.2}.seed-card strong{display:block;font-size:11px}.seed-meta{display:flex;align-items:center;justify-content:center;gap:4px;margin-top:4px;font-size:10px;color:#856a30}.seed-meta em{font-style:normal;font-size:9px;color:#7a8769;border-left:1px solid #ced7bd;padding-left:5px;margin-left:2px}
.camera-mode{position:fixed;right:20px;top:73px;display:flex;align-items:center;gap:7px;padding:9px 11px;border-radius:11px;background:var(--surface);font-size:11px;font-weight:800;z-index:3}.camera-mode svg{width:17px;height:17px}.camera-mode[aria-pressed=true]{background:#426b45;color:#fffce9}.view-controls{position:fixed;right:20px;bottom:82px;display:grid;gap:2px;background:var(--surface);border-radius:12px;padding:4px;z-index:3}.view-controls button{width:32px;height:32px;display:grid;place-items:center;background:transparent;border-radius:8px}.view-controls svg{width:18px;height:18px}.first-person .view-controls{display:none}
.world-map-card{position:fixed;right:20px;top:118px;width:218px;padding:13px;background:#fffdf4f7;border:1px solid white;border-radius:16px;box-shadow:0 8px 24px #294c3428;z-index:5}.world-map-card #world-map{width:100%;height:166px;margin:4px 0;stroke-width:0}.world-map-card>span{display:block;text-align:center;font-size:11px;font-weight:800}.map-forest{fill:#738857}.map-land{fill:#bdcc92}.map-road{fill:none;stroke:#f1e2b8;stroke-linecap:round;stroke-linejoin:round}.map-farm{fill:#9bb474;stroke:#f8efcf;stroke-width:.65}.map-entry{stroke:#dfc899;stroke-width:2}.map-barn{fill:#ba775b}.map-crops{fill:none;stroke:#a68a5e;stroke-width:1.4}.map-closed{stroke:#a78b64;stroke-width:1}.map-north{fill:#fff9df;font-size:2.6px;font-weight:900;text-anchor:middle;stroke:none}#map-player circle{fill:#fff9e5;stroke:#476b47;stroke-width:.35}#map-player path{fill:#365a3d;stroke:none}#map-horse circle{fill:#a67544;stroke:#fff3d5;stroke-width:.5}#map-horse path{fill:none;stroke:#fff5dd;stroke-width:.6}
.horse-card{position:fixed;right:20px;bottom:20px;display:flex;gap:5px;z-index:3}.horse-card button{background:var(--surface);padding:12px 15px;min-height:42px;border:1px solid white;border-radius:12px;font-size:11px;font-weight:800}.horse-card #horse-gallop{display:none;background:#e6dab5}.horse-card #horse-gallop[aria-pressed=true]{background:#a77840;color:#fff8df}.riding .toolbox,.exploring .toolbox{display:none}
.crosshair{position:fixed;left:50%;top:50%;width:5px;height:5px;transform:translate(-50%,-50%);border-radius:50%;background:#fff9dd;box-shadow:0 0 0 1.5px #364f3a80;pointer-events:none}.crosshair.ready{background:#f2cf65;box-shadow:0 0 0 3px #e8c97070}#fps-action{position:fixed;left:50%;top:calc(50% + 36px);transform:translateX(-50%);padding:9px 14px;max-width:80vw;background:#365c3eee;color:#fff9e5;border:1px solid #63815c;border-radius:10px;font-size:12px;font-weight:800;z-index:2}#fps-action:disabled{background:var(--surface);color:#526b44;border-color:white;opacity:1}#resume-look{position:fixed;top:76px;left:50%;transform:translateX(-50%);background:var(--surface);border-radius:10px;padding:9px 16px;font-size:12px;font-weight:800;z-index:3}
.plot-label{position:absolute;z-index:3;transform:translate(-50%,-100%);background:#fffdf4f5;padding:9px 13px;border-radius:11px;pointer-events:none;box-shadow:0 5px 18px #253f3120;white-space:nowrap;text-align:center;border:1px solid white}.plot-label strong{display:block;font-size:12px}.plot-label span{display:block;font-size:10px;color:#718160;margin-top:3px}.first-person #plot-label,.riding #plot-label,.exploring #plot-label{display:none!important}
#toast{position:fixed;bottom:101px;left:50%;transform:translate(-50%,10px);background:#365c3fee;color:#fffde9;padding:11px 18px;border-radius:12px;font-size:12px;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;z-index:8;max-width:min(430px,85vw);text-align:center}#toast.visible{opacity:1;transform:translate(-50%,0)}#float-layer{position:fixed;inset:0;pointer-events:none}.float-text{position:absolute;font-size:16px;font-weight:900;color:#fffdf0;text-shadow:0 2px 0 #52703d,1px 0 #52703d,-1px 0 #52703d;animation:float-up 1.4s forwards;white-space:nowrap}@keyframes float-up{0%{opacity:0;transform:translate(-50%,0) scale(.7)}15%{opacity:1;transform:translate(-50%,-15px)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-70px)}}#save-status{position:fixed;bottom:4px;left:50%;transform:translateX(-50%);color:#805a3f;background:var(--surface);padding:3px 7px;border-radius:5px;font-size:10px;z-index:8}
dialog{background:#fffdf2;border:1px solid white;box-shadow:0 25px 100px #243d4440;border-radius:22px;padding:28px;color:var(--green);width:min(470px,calc(100vw - 24px));max-height:85dvh}dialog::backdrop{background:#213d3440;backdrop-filter:blur(4px)}.close-modal{position:absolute;top:15px;right:15px;width:30px;height:30px;background:#edf0e1;border-radius:50%;display:grid;place-items:center}.close-modal svg{width:16px;height:16px}.modal-icon{font-size:32px;margin-bottom:8px}.modal-kicker{font-size:9px;font-weight:900;letter-spacing:1.3px;color:#7e8a6c}.modal-title{font:700 28px Georgia,serif;letter-spacing:-.5px;margin:8px 28px 15px 0}.modal-desc{font-size:12px;line-height:1.7;color:#718160;margin-bottom:17px}.player-level{font-size:12px;display:flex;justify-content:space-between;gap:12px}.player-level span{color:#83916e;font-size:11px}.xp-track{height:4px;border-radius:4px;background:#dce3ce;overflow:hidden}.xp-track i{display:block;height:100%;background:#7e9a58}.menu-options{display:grid;margin-top:19px}.menu-options button{display:flex;align-items:center;justify-content:space-between;gap:15px;text-align:left;background:transparent;border-bottom:1px solid #e4e8d7;padding:17px 0;font-weight:800;font-size:14px}.menu-options button span{font-size:11px;color:#7b886a;font-weight:600}.controls-list{margin:0}.controls-list>div{display:grid;grid-template-columns:100px 1fr;gap:12px;padding:9px 0;border-bottom:1px solid #e5e9d9;font-size:12px}.controls-list dt{font-weight:900}.controls-list dd{margin:0;color:#718160}.controls-list+.modal-desc{margin-top:19px}
.inventory-row{display:flex;align-items:center;border-top:1px solid #e7e9da;padding:14px 0;gap:12px}.inventory-row .seed-emoji{width:36px}.inventory-row strong{font-size:13px}.inventory-row small{display:block;font-size:10px;color:#7c8b6c;margin-top:3px}.inventory-row>b{margin-left:auto;font-size:17px}.inventory-row>em{font-size:11px;color:#987639;font-style:normal;min-width:55px;text-align:right}.primary{display:block;background:#406b44;color:#fffbe6;border-radius:11px;padding:13px 17px;font-weight:800;font-size:13px;width:100%;margin-top:16px}.secondary{background:#ecefdf;color:#698157}.subtle-button{background:transparent;color:#748363;font-size:11px;text-decoration:underline;display:block;margin:20px auto 0}.danger{color:#9e6d57}.mission-progress{display:flex;gap:12px;align-items:center;margin:15px 0;font-size:12px;font-weight:900}.mission-progress>div{height:6px;border-radius:8px;background:#e9ebdc;flex:1;overflow:hidden}.mission-progress i{display:block;height:100%;background:#a8bc78}.access-plots{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:16px}.access-plots button{padding:9px 4px;background:#edf0de;border-radius:8px;font-size:11px}.access-plots small{display:block;font-size:9px;margin-top:3px}
.move-pad{display:none}#loading{position:fixed;inset:0;background:#e8eddc;z-index:20;display:flex;align-items:center;justify-content:center;flex-direction:column;transition:opacity .5s}#loading.done{opacity:0;pointer-events:none}#loading h2{font:24px Georgia,serif}#loading p{font-size:12px;color:#7c8c6c}.loading-sun{font-size:55px;color:#c5a557;animation:turn 10s linear infinite}@keyframes turn{to{transform:rotate(360deg)}}
@media(pointer:coarse),(max-width:800px){.move-pad{position:fixed;left:14px;bottom:104px;display:grid;grid-template-columns:repeat(3,38px);grid-template-rows:repeat(2,38px);gap:5px;z-index:3}.move-pad button{background:var(--surface);border:1px solid #e1e8d0;border-radius:11px;font-size:20px;color:#5f7c4b;touch-action:none;user-select:none;-webkit-user-select:none}.move-pad button.pressed{background:#557947;color:#fff9df}.move-pad button:first-child{grid-column:2}.move-pad button:nth-child(2){grid-column:1;grid-row:2}.move-pad button:nth-child(3){grid-column:2;grid-row:2}.move-pad button:nth-child(4){grid-column:3;grid-row:2}.horse-card #horse-gallop{display:block}.riding .move-pad,.exploring .move-pad{bottom:18px}}
@media(max-width:800px){.topbar{top:12px;left:12px;right:12px;gap:8px}.brand{padding:9px 10px;gap:6px}.brand strong{font-size:18px}.brand svg{width:18px;height:18px}.top-actions{gap:5px}.hud-button,.coin-balance{height:38px;border-radius:10px}.hud-button{min-width:38px;padding:8px}.hud-button svg{width:20px;height:20px}.coin-balance{gap:5px;padding:7px 9px;font-size:15px}.coin{width:20px;height:20px;font-size:11px}.toolbox{bottom:max(15px,env(safe-area-inset-bottom));padding:5px;gap:2px;max-width:calc(100vw - 24px)}.tool{min-width:60px;height:46px;padding:7px;flex-direction:column;gap:3px;font-size:10px}.tool svg{width:19px;height:19px}.seed-toggle{font-size:11px;padding:0 8px;gap:5px;white-space:nowrap}.seed-tray{bottom:87px}.camera-mode{top:62px;right:12px;padding:9px 10px;min-height:35px}.world-map-card{top:106px;right:12px;width:200px}.world-map-card #world-map{height:147px}.view-controls{right:12px;bottom:101px}.horse-card{right:12px;bottom:211px;flex-direction:column}.riding .horse-card,.exploring .horse-card{bottom:18px}.horse-card button{padding:11px 13px}.first-person #fps-action{font-size:11px}.plot-label{max-width:90vw}.seed-emoji{font-size:26px}#resume-look{top:62px}dialog{padding:22px}.modal-title{font-size:26px}}
@media(max-width:400px){.brand strong{font-size:16px}.brand svg{display:none}.brand{padding:10px}.coin-balance{padding:7px}.hud-button .count{font-size:10px}.top-actions{gap:4px}.tool{min-width:55px}.seed-toggle{padding:0 6px;font-size:10px}}
@media(max-height:500px){.move-pad{bottom:86px}.world-map-card{width:180px;top:62px;right:130px}.world-map-card #world-map{height:120px}.seed-tray{bottom:82px}.seed-card{padding:6px}.horse-card{bottom:19px}.view-controls{bottom:74px}.riding .move-pad,.exploring .move-pad{bottom:14px}}
@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}

.map-reserved{fill:#afc38a;stroke-dasharray:1.3 1}.map-own{fill:#8eab67}.map-parcel-number{fill:#526e42;font-size:3px;font-weight:900;text-anchor:middle;stroke:none}.map-center{fill:#fff9df;stroke:#a69870;stroke-width:.4}
.farmmo-about-link{display:block;text-align:center;text-decoration:none;color:#70805e;font-size:11px;padding:15px 0 0}
