:root{font-family:system-ui,sans-serif;color:#f1ead8;background:#162720;color-scheme:dark;--ink:#f5ebd5;--muted:#aab9a8;--dark:#182a23;--card:#21372d;--line:#395344;--gold:#e9c27a;--green:#a8c58c}*{box-sizing:border-box}body{margin:0;min-width:300px;background:radial-gradient(ellipse at 23% 4%,#2c4736,#192d25 40%,#14241e 92%);min-height:100vh}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #496052;background:#294236;color:var(--ink);border-radius:9px;min-height:36px;padding:7px 12px;transition:background .15s,border-color .15s;display:inline-flex;align-items:center;justify-content:center;gap:7px}button:hover:not(:disabled),button.selected{background:#405a40;border-color:#acb879}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #ffe2a0;outline-offset:2px}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}.top{min-height:74px;padding:12px max(25px,calc((100vw - 1470px)/2));border-bottom:1px solid #47604b;background:#182a23e8;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:11px}.brand-icon{width:43px;height:43px;display:grid;place-items:center;border:1px solid #879b68;background:#364e39;color:#d6d59a;border-radius:12px;transform:rotate(-7deg)}.brand-icon svg{width:24px;height:24px}.brand strong{display:block;font-family:Georgia,serif;font-size:25px;color:#ffedc7;letter-spacing:-.6px;line-height:1.06;white-space:nowrap}.brand small,.lead{display:block;color:#c6c995;letter-spacing:.16em;font-size:10px;font-weight:750}.brand small{margin-top:4px;letter-spacing:.14em;font-size:9px}.top-actions{display:flex;gap:8px;align-items:center}.top-actions button{min-height:38px}#balance{color:#ffe398;font-variant-numeric:tabular-nums;font-weight:750}#weather{color:#f3ddb4}#weather small{color:#b7c1a7;font-variant-numeric:tabular-nums}.square{width:39px;padding:0}main{max-width:1518px;padding:26px 24px 20px;margin:auto}.heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:15px;gap:12px}h1{font-family:Georgia,serif;font-size:clamp(33px,4.4vw,53px);line-height:.99;margin:5px 0 0;letter-spacing:-.06em;color:#ffefd0;font-weight:400}.badge{display:flex;align-items:center;gap:6px;border:1px solid #4c6549;background:#263f32;color:#e0e6ac;border-radius:30px;padding:7px 13px;font-size:13px;font-weight:650;white-space:nowrap}.layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(224px,254px);gap:16px;align-items:start}.stage,.side-card{overflow:hidden;border:1px solid #4c644f;border-radius:14px;background:#21372d;box-shadow:0 14px 25px #101d1770}.scene-head{padding:10px 14px;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#bdc8b6;background:#243b30}.scene-head strong{color:#efe7d2;font-size:13px}.live{width:7px;height:7px;display:inline-block;background:#b8cb89;border-radius:50%;box-shadow:0 0 10px #bddb72a0;margin-right:8px}#game{position:relative;aspect-ratio:960/512;width:100%;background:#527850;touch-action:none;overflow:hidden}#game canvas{display:block;image-rendering:pixelated;touch-action:none}.prompt{text-align:center;font-size:12px;color:#cbd4b7;padding:8px 10px;background:#192d24;border-top:1px solid #6d8754}.hotbar{padding:9px;display:flex;gap:7px;align-items:stretch;flex-wrap:wrap;border-top:1px solid #42604d}.slot{display:flex;position:relative;justify-content:flex-start;min-height:45px;padding:5px 8px 5px 13px;font-size:12px}.slot small{position:absolute;left:4px;top:4px;color:#ced3af;font-size:9px}.slot b{color:#dabd7a;font-size:11px}.slot.selected{box-shadow:inset 0 0 0 1px #b3bd7c5c}.crop-icon{width:34px;height:34px;object-fit:contain;image-rendering:pixelated;flex:none}.slot .crop-icon{width:25px;height:25px}.tools{display:flex;gap:6px;margin-left:auto;flex-wrap:wrap}.tools button{font-size:12px;padding:5px 9px}aside{display:grid;gap:14px}.side-card{padding:14px}.card-title{display:flex;align-items:center;gap:8px;color:#dfbe7c;margin-bottom:13px}h2,h3,p{margin:0}.card-title h2{font-family:Georgia,serif;font-size:19px;font-weight:400;color:#f5e9cf}.quest h3{font-size:14px;font-weight:700}p{color:var(--muted);line-height:1.42}.quest p{font-size:12px;margin:4px 0 11px}.progress{height:7px;border-radius:12px;background:#152a22;overflow:hidden;border:1px solid #3f5b47}.progress i{display:block;height:100%;background:linear-gradient(90deg,#93b776,#dab678)}.quest-foot{margin-top:8px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#cdd1b4}.quest-foot span{display:flex;gap:4px;align-items:center;color:var(--gold)}.quest-foot button{min-height:30px;font-size:11px}.travel-list{display:grid;gap:5px}.travel-list button{min-width:0;justify-content:flex-start;background:#263e32;font-size:12px;padding:5px 8px}.travel-list button>svg:last-child{width:13px;margin-left:auto;color:#b8c690}.travel-icon{width:25px;height:25px;border-radius:6px;background:#3b5540;display:grid;place-items:center;color:#c9d394}.travel-icon svg{width:14px}.bottom{display:flex;justify-content:space-between;align-items:center;margin-top:12px;gap:12px}.bottom nav,.panel-bar,.tabs{display:flex;gap:7px;flex-wrap:wrap}.bottom button{font-size:12px}.controls-copy{font-size:12px;color:#a8b8a8}.controls-copy b{color:#bcad76;margin:0 3px}.touch{display:none;justify-content:space-between;align-items:center;padding:8px;touch-action:none;border-top:1px solid #42604d}.dpad{display:grid;grid-template-columns:repeat(4,44px);gap:5px}.dpad button{min-height:44px}.primary{background:#dbbd7f;border-color:#ead391;color:#253428;font-weight:750}.primary:hover:not(:disabled){background:#efd797;border-color:#ffe4a0;color:#1f3124}#toast{position:fixed;z-index:3;inset:auto auto 20px 50%;margin:0;translate:-50% 12px;opacity:0;pointer-events:none;transition:.18s;background:#203c30;color:#fff4d6;border:1px solid #a8ad6e;border-radius:12px;padding:12px 18px;box-shadow:0 12px 25px #0d1715a0;text-align:center;max-width:calc(100vw - 32px);min-width:230px}#toast.show{opacity:1;translate:-50% 0}#toast.rare{background:#40354e;border-color:#efd6a4}dialog{width:min(690px,calc(100% - 30px));max-height:calc(100dvh - 40px);padding:0;color:var(--ink);background:#233b30;border:1px solid #7a8b61;border-radius:15px;box-shadow:0 18px 70px #08130fd9}dialog::backdrop{background:#101a17af}.dialog-head{position:sticky;z-index:1;top:0;padding:15px 18px;border-bottom:1px solid #58715a;display:flex;justify-content:space-between;align-items:center;background:#253e31}.dialog-head h2{font:normal clamp(24px,4vw,34px) Georgia,serif;color:#ffecc6}.close{font-size:23px}#dialog-body{padding:14px 17px;max-height:calc(100dvh - 146px);overflow:auto}.item{display:flex;align-items:center;gap:10px;padding:9px 8px;background:#253d31;border-bottom:1px solid #3e5948;min-height:48px}.item:nth-of-type(2n){background:#294235}.item h3{font-size:14px;line-height:1.35}.item p,.note,.dialogue,.empty{font-size:12px}.item p{margin-top:2px}.item-actions{margin-left:auto;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:5px}.item-actions button{white-space:nowrap;min-height:32px;font-size:12px}.filters{display:flex;align-items:center;gap:7px;margin:8px 0;flex-wrap:wrap}input,select{background:#132b22;border:1px solid #56715a;color:var(--ink);padding:7px 8px;border-radius:7px;min-height:36px;max-width:100%}input[type=number]{width:64px}.filters input[type=text],#search{flex:1;min-width:130px}.note,.dialogue,.empty{margin:7px 0 12px}.dialogue{color:#e8d6a8;padding:9px 12px;background:#344e3e;border-left:2px solid #c7ad71;border-radius:4px}.rarity{font-size:10px;font-weight:650;white-space:nowrap;border-radius:5px;padding:1px 4px;margin-left:3px;background:#1a2f27;color:#c8d4be}.r1{color:#c4e69b}.r2{color:#a4dcfa}.r3{color:#ffd67e}.r4{color:#e8b7ff}.r5{color:#ffbd9b}.r6{color:#8ce9d8}.r7{color:#ffb6dd}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:6px 0 14px}.stats div{background:#192f26;border:1px solid #48614d;padding:10px;border-radius:8px;display:grid;gap:3px}.stats b{color:#eccc87;font-size:21px}.stats span{font-size:11px;color:#d3dbc3}summary{cursor:pointer;font-weight:650;padding:9px 0;color:#f2deb2}details p{font-size:13px;padding:5px 0}.settings{display:grid;gap:7px;margin-bottom:12px}.settings label{display:flex;text-transform:capitalize;justify-content:space-between;align-items:center;padding:8px;background:#284336;border-radius:7px}.danger{color:#ffc2af}.fishing-track{position:relative;height:16px;margin:16px 6px;border-radius:10px;background:linear-gradient(90deg,#142b23 72%,#b6975a 72%,#b6975a 91%,#142b23 91%);border:1px solid #5a7155}.fishing-track i{position:absolute;width:12px;height:20px;top:-3px;translate:-50% 0;border:2px solid #fff0bd;border-radius:6px;background:#d87c63}@media(max-width:900px){.layout{grid-template-columns:minmax(0,1fr) 192px;gap:10px}main{padding:17px 14px}.side-card{padding:10px}.top{padding:10px 14px}.controls-copy{display:none}}@media(max-width:690px){.layout{grid-template-columns:1fr}aside{grid-template-columns:1fr 1fr;gap:8px}.hotbar{gap:4px;padding:6px}.tools{margin-left:0}.slot{padding:4px 6px 4px 10px;gap:4px}.slot .crop-icon{width:22px;height:22px}.travel-list{grid-template-columns:1fr}.heading{margin-bottom:10px}.top{min-height:58px}.brand strong{font-size:19px}.brand small{font-size:7px}.brand-icon{width:32px;height:32px}.brand-icon svg{width:18px}.top-actions{gap:4px}.top-actions button{padding:5px;gap:3px;font-size:11px;min-height:33px}.top-actions svg{width:14px}#weather small{display:none}.bottom button{padding:5px 7px}.item-actions button{min-height:39px}.item{gap:5px}.stats{grid-template-columns:repeat(2,1fr)}}@media(pointer:coarse){.touch{display:flex}button,.tools button,.top-actions button{min-height:44px}}@media(min-width:901px)and (pointer:fine){main{max-width:clamp(900px,calc((100vh - 367px)*1.875 + 318px),1518px);padding-top:20px}.heading{margin-bottom:12px}}@media(max-width:900px)and (pointer:coarse){main{display:flex;flex-direction:column}.layout{display:contents}.stage{order:1}.bottom{order:2}aside{order:3;grid-template-columns:1fr 1fr;margin-top:12px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}
