:root{color-scheme:dark;--cream:#e9e6d9;--muted:#9c9c8c;--yellow:#e6bd3b;--ink:#242822;--green:#a8bd76;--red:#d97357;--mono:ui-monospace,SFMono-Regular,Consolas,monospace;font-family:Arial,Helvetica,sans-serif;color:var(--cream);background:#252a26}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 27% 30%,#373b31,transparent 62%),repeating-linear-gradient(127deg,#ffffff02 0 1px,transparent 1px 7px),#252a26;min-height:100vh}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #eaa846;outline-offset:4px}button{color:inherit}button:active:not(:disabled){transform:translateY(2px)}[hidden]{display:none!important}.topbar{height:104px;max-width:1420px;padding:0 48px;display:flex;align-items:center;justify-content:space-between;margin:auto;border-bottom:1px solid #ffffff19}.wordmark{font-family:Impact,'Arial Narrow',sans-serif;font-weight:900;font-style:italic;letter-spacing:-2px;font-size:39px;color:var(--cream);text-decoration:none;line-height:.9;transform:rotate(-3deg)}.wordmark span{display:block;font:8px var(--mono);letter-spacing:2px;margin-top:8px}.edition{font:10px var(--mono);letter-spacing:2px;color:#dddaca;text-align:center}.edition b{display:block;font-size:9px;font-weight:400;color:var(--muted);margin-top:8px}.top-actions{display:flex;gap:20px;align-items:center}.save-status{font:9px var(--mono);letter-spacing:1px;color:#a6bb80}.save-status.error{color:#ffae90}.icon-button{background:none;border:1px solid #ffffff30;border-radius:50%;width:34px;height:34px;font-size:20px}.layout{max-width:1360px;margin:0 auto;padding:61px 36px 42px;display:grid;grid-template-columns:minmax(0,900px) 268px;gap:54px;align-items:center}.device-wrap{position:relative;padding-top:20px}.keyring{position:absolute;left:47%;top:-36px;width:105px;height:100px;border:12px solid #a8a999;box-shadow:inset 0 0 0 3px #353c34,0 0 0 2px #1c211c,inset 2px 5px 7px #ffffff9c,3px 5px 8px #000a;border-radius:40%;transform:rotate(24deg)}.device{isolation:isolate;position:relative;border-radius:72px 72px 85px 85px;background:repeating-linear-gradient(153deg,transparent 0 102px,#382f1520 103px,transparent 105px 220px),repeating-linear-gradient(16deg,transparent 0 41px,#fff8b015 42px,transparent 44px 190px),linear-gradient(145deg,#e7c64a,#e4b835 65%,#c59924);padding:22px 34px 26px;box-shadow:inset 3px 6px 3px #ffe882,inset -5px -10px 3px #8e701e,0 4px 0 3px #161e18,0 22px 32px #0006;border:2px solid #50421e;color:#292b23}.device:after{content:'';position:absolute;inset:10px;border:1px solid #765b2040;border-radius:65px 65px 77px 77px;pointer-events:none;z-index:-1}.screw{position:absolute;width:16px;height:16px;border-radius:50%;background:#b99a3d;border:1px solid #776325;font:14px var(--mono);text-align:center;box-shadow:inset 1px 1px 2px #6b571d;color:#635525}.tl{left:24px;top:49px}.tr{right:24px;top:49px}.bl{left:38px;bottom:42px}.br{right:38px;bottom:42px}.device-heading{height:94px;display:flex;align-items:center;gap:25px;padding:0 20px;position:relative}.device-logo{font-family:Impact,'Arial Black',sans-serif;font-size:58px;font-weight:1000;letter-spacing:-4px;font-style:italic;transform:rotate(-5deg);text-shadow:1px 1px #f5df84;line-height:1}.device-logo span{font-size:12px;letter-spacing:0;vertical-align:top}.device-tag{font:9px/1.5 var(--mono);letter-spacing:1px;border-left:1px solid #6c5e3866;padding-left:19px}.sticker{position:absolute;right:15px;top:4px;background:#e8e4ce;color:#343c30;padding:8px 15px;text-align:center;transform:rotate(8deg);box-shadow:2px 2px 2px #624f2755;font:8px var(--mono);border:1px solid #a3a58a}.sticker strong{font:900 21px/1.1 'Arial Black',Arial;display:block;letter-spacing:-1px}.sticker i{display:block;font-size:8px}.screen-bezel{border:9px solid #2e332b;border-radius:25px;background:#e5e5c9;overflow:hidden;box-shadow:0 3px 1px #fff3a077,0 -3px 2px #8c6b21,inset 0 0 8px #0009;position:relative}.screen-head{display:flex;justify-content:space-between;background:#333d32;color:#dce0c7;padding:11px 15px;font:10px var(--mono);letter-spacing:1.5px}.screen-head b{font-weight:500}.live-dot{display:inline-block;width:6px;height:6px;background:#bdd27f;border-radius:50%;margin-right:5px;box-shadow:0 0 6px #a8ba6c77}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 18px;background:#d4d7bb;padding:13px 16px 11px;border-bottom:2px solid #87947c}.stat-label{font:9px var(--mono);display:flex;justify-content:space-between;margin-bottom:5px;color:#475141;letter-spacing:.5px}.stat-label b{font-weight:700;color:#28362b}.bar{height:5px;background:#72785c33;overflow:hidden;border-radius:1px}.bar i{display:block;height:100%;width:50%;background:var(--bar);transition:width .3s}.stat-note{font:8px var(--mono);color:#606b53;margin-top:4px}.scene{aspect-ratio:1.9;position:relative;overflow:hidden;background:#a2b2a0;border-bottom:2px solid #485743;isolation:isolate}.scenery,.scenery>svg,.scene-grain{position:absolute;width:100%;height:100%;inset:0}.scenery{filter:saturate(var(--saturation,.8));transition:filter 1s}.scene-grain{background:repeating-linear-gradient(0deg,transparent 0 3px,#24312408 4px);pointer-events:none;z-index:6}.scene-caption{position:absolute;left:15px;top:12px;z-index:3;font:8px var(--mono);letter-spacing:1px;color:#344a3e;max-width:65%}.pet{position:absolute;height:81%;width:28%;left:44%;bottom:1%;transform-origin:bottom;animation:idle 3s ease-in-out infinite;z-index:4}.pet>svg,.opponent-pet>svg{height:100%;width:100%;overflow:visible}.speech{position:absolute;left:59%;top:14%;padding:9px 12px;border:2px solid #354031;border-radius:12px 12px 12px 1px;background:#f1eed1;box-shadow:2px 3px #34433633;transform:rotate(3deg);font:9px/1.3 var(--mono);max-width:35%;z-index:5}.bin-target{position:absolute;left:5%;bottom:7%;width:23%;background:none;border:0;padding:0;z-index:7}.bin-target>span:first-child{display:block;transition:transform .2s}.bin-target svg{width:100%;height:auto;overflow:visible}.bin-target:hover:not(:disabled)>span:first-child{transform:translateY(-4px) rotate(-3deg)}.target-label{display:flex;justify-content:space-between;gap:4px;align-items:center;background:#eff0d5;color:#37442d;border:1px solid #495d3f;box-shadow:2px 3px #2b3e2a66;padding:7px 8px;font:8px var(--mono);white-space:nowrap}.target-label b{font-size:13px}.bin-target.cooling .target-label{background:#bfc6a9;color:#526049}.ground-target{position:absolute;width:8%;bottom:9%;left:34%;z-index:7;background:none;border:0;padding:0;filter:drop-shadow(0 0 5px #f5d76e);animation:lootBob 2s ease-in-out infinite}.ground-target svg{width:100%;height:auto}.ground-target:after{content:'PICK UP';font:7px var(--mono);background:#e9d66d;color:#35422c;padding:3px;white-space:nowrap}.status-strip{display:flex;justify-content:space-between;gap:10px;padding:10px 14px;background:#c2c9a8;color:#3d5038;font:9px var(--mono);letter-spacing:.7px}.notice{min-height:49px;padding:12px 15px;background:#27372c;color:#dce1bf;font:11px/1.5 var(--mono);border-top:1px solid #9da98455}.notice:before{content:'› ';color:#e6c754}.controls{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:24px 8px 20px}.controls button{border:1px solid #181e19;border-radius:16px 16px 20px 20px;background:linear-gradient(#424b3c,#2b332a);color:#e0e2c9;box-shadow:0 5px #192019,0 7px 2px #765e26,0 -1px 1px #ffdd6b,inset 0 1px 1px #78806a;padding:11px 3px 12px;font:8px var(--mono);letter-spacing:1px}.controls button span{display:block;font:24px/1 Arial;margin-bottom:8px;color:#d8c677}.controls button:hover:not(:disabled){background:linear-gradient(#52604a,#353f30)}.controls button:active:not(:disabled){box-shadow:0 2px #192019;transform:translateY(3px)}.device-bottom{display:flex;justify-content:space-between;align-items:center;padding:0 22px;gap:10px;font:6px var(--mono);letter-spacing:.4px;color:#5b502a}.device-bottom button{padding:6px 0;background:none;border:none;border-bottom:1px solid #5b502a55;font:8px var(--mono);color:#3e432c}.sidebar{align-self:center}.chapter{font:9px var(--mono);letter-spacing:2px;color:#c5bd87;margin-bottom:17px}h1{font-size:57px;letter-spacing:-3px;line-height:.94;font-weight:900;margin:0 0 20px}h1 em{color:var(--yellow);font-style:normal}.lede{color:#b6b9a9;font:14px/1.65 Arial;margin-bottom:30px}.field-card{border-top:1px solid #6d7460;border-bottom:1px solid #6d7460;padding:19px 0}.card-eyebrow{font:8px var(--mono);letter-spacing:1px;color:#a6ad93}.field-card h2{font-size:16px;letter-spacing:-.4px;margin:11px 0 8px}.field-card p{font-size:11px;line-height:1.6;color:#a5ae98;margin-bottom:19px}.record{display:grid;grid-template-columns:repeat(3,1fr)}.record div{border-right:1px solid #5a6350;padding-left:14px}.record div:first-child{padding-left:0}.record div:last-child{border:0}.record b{font:22px var(--mono);color:#d8ddc5;display:block}.record span{font:7px var(--mono);letter-spacing:1px;color:#929d86;display:block;margin-top:6px}.note-card{position:relative;background:#ded8b7;color:#354132;transform:rotate(-2deg);padding:25px 20px 18px;margin:31px 0 25px;box-shadow:3px 4px 0 #181e1a}.tape{position:absolute;top:-10px;width:68px;height:21px;left:37%;background:#b5b59080;transform:rotate(5deg);border-left:2px dotted #9da080;border-right:2px dotted #9da080}.pencil-label{font:7px var(--mono);letter-spacing:1px;color:#73785e}.note-card h3{font-size:17px;line-height:1.2;letter-spacing:-.6px}.note-card p{font:11px/1.65 Arial;color:#606a50}.note-card button{display:flex;justify-content:space-between;width:100%;margin-top:17px;background:none;border:0;border-top:1px solid #9caa8e;padding:12px 0 0;font:8px var(--mono);color:#364830}.rules-note{display:flex;gap:12px}.rules-note>span{color:#c1b673;font-size:29px}.rules-note p{font-size:10px;color:#a8b39a;line-height:1.6;margin:0}.rules-note strong{display:block;color:#d2d8bf;font-size:11px}.help-link{font:8px var(--mono);padding:20px 0;background:none;border:0;letter-spacing:.5px;color:#d5d2b9}.version{font:7px/1.8 var(--mono);letter-spacing:1px;color:#7d8b76;margin-top:8px}footer{max-width:1260px;margin:0 auto;padding:20px 0 26px;display:flex;justify-content:space-between;font:8px var(--mono);letter-spacing:1.4px;color:#7d8876;border-top:1px solid #ffffff13}dialog{background:#e8e5d0;color:#2d392c;border:2px solid #2f3b2d;border-radius:20px;box-shadow:0 20px 80px #0008;width:min(760px,94vw);max-height:90vh;padding:0}dialog::backdrop{background:#111b17b5;backdrop-filter:blur(4px)}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:25px 28px 18px;border-bottom:1px solid #a8ae91;background:#dbdcbf;position:sticky;top:0;z-index:2}.modal-header h2{font-size:28px;letter-spacing:-1px;margin:6px 0 0}.modal-kicker{font:9px var(--mono);letter-spacing:1.5px;color:#637253}.close-button{width:34px;height:34px;border:1px solid #7c896c;border-radius:50%;background:#e4e4ca;color:#35442e;font-size:25px}#modal-content{padding:22px 28px 28px}.panel-intro{font-size:12px;line-height:1.7;margin:0 0 20px;color:#5a674e}.inventory-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.item{border:1px solid #b2b89b;border-radius:10px;padding:14px;background:#f0edda;position:relative;display:flex;gap:12px}.item-icon{width:47px;flex-shrink:0;align-self:flex-start}.item-icon svg{width:100%;height:50px}.item-info{flex:1}.item h3{font-size:13px;margin:2px 0 5px}.item p{font-size:10px;line-height:1.5;color:#6b765d;margin:5px 0 10px}.item small{font:9px var(--mono);color:#78805f}.item-actions{display:flex;gap:6px;flex-wrap:wrap}.small-btn,.primary-btn,.ghost-btn{border:1px solid #60714e;border-radius:5px;padding:8px 11px;font:10px var(--mono);background:#364a32;color:#eeedce}.small-btn{padding:6px 8px;font-size:8px}.ghost-btn{background:transparent;color:#425337}.danger-btn{background:#984e38;border-color:#713a29}.equipped{border:2px solid #789050;background:#e0e6c9}.section-title{font:11px var(--mono);letter-spacing:1px;margin:25px 0 13px;padding-bottom:8px;border-bottom:1px solid #b9bea0}.map-wrap{position:relative;border:2px solid #819674;border-radius:12px;overflow:hidden;background:#ccd7b4;aspect-ratio:1.45}.map-wrap>svg{width:100%;height:100%}.map-pin{position:absolute;transform:translate(-50%,-50%);border:2px solid #485c3c;padding:8px 10px;background:#e8e8c8;color:#2e462c;font:10px var(--mono);border-radius:6px;box-shadow:2px 3px #60765355;white-space:nowrap}.map-pin:active:not(:disabled){transform:translate(-50%,-48%)}.map-pin.active{background:#e4ba42;border-color:#4d4d26}.map-pin b{display:block;font-size:8px;margin-top:3px;font-weight:400}.map-legend{display:flex;justify-content:space-between;font:9px var(--mono);color:#647850;margin-top:10px}.opponents{display:grid;grid-template-columns:1fr 1fr;gap:10px}.opponent-card{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid #b3bc9e;border-radius:9px;background:#eeedd5}.op-avatar{width:45px;height:65px;overflow:hidden;flex-shrink:0}.op-avatar svg{width:90px;height:110px;transform:translate(-24px,-4px)}.op-info{flex:1}.op-info h3{font-size:13px;margin:0 0 4px}.op-info p{font-size:9px;color:#647453;margin:4px 0}.op-info small{font:8px var(--mono);display:block;margin:7px 0}.fight-intro{display:flex;justify-content:space-between;align-items:center;border:1px solid #b2ba96;background:#dce1c1;padding:13px;margin-bottom:15px;font:10px var(--mono);gap:10px}.log-row{padding:13px 0;border-bottom:1px solid #bcc4a7}.log-row b{font-size:13px}.log-row time{font:8px var(--mono);color:#758362;display:block;margin-bottom:5px}.log-row p{font-size:11px;color:#657653;margin:6px 0}.tag{font:8px var(--mono);padding:3px 5px;border-radius:3px;background:#c7d5b0;color:#3c5f2a;margin-left:6px}.tag.loss,.tag.fled{background:#dfc4a8;color:#8d4b2e}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 0;border-bottom:1px solid #bac1a3}.setting-row strong{font-size:13px;display:block}.setting-row p{font-size:10px;color:#677755;line-height:1.5;margin:5px 0 0}.setting-row input[type=checkbox]{accent-color:#677f42;width:21px;height:21px}.save-buttons{display:flex;gap:10px;margin:20px 0}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.help-grid h3{font-size:14px;margin:0 0 6px}.help-grid p{font-size:12px;line-height:1.6;color:#65734f;margin:0}.help-grid div{border-top:2px solid #acb78a;padding-top:13px}.combat{background:#d6dbc0;padding:13px 15px;border-top:2px solid #7a8e64}.combat-heading{display:flex;justify-content:space-between;align-items:center;font:11px var(--mono);margin-bottom:10px;gap:12px}.enemy-bar{height:6px;background:#b2b79b;margin-bottom:10px}.enemy-bar i{height:100%;display:block;background:#ac6345}.intent{font:10px var(--mono);padding:8px;background:#c2cba8;margin-bottom:10px}.combat-actions{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.combat-actions button{background:#384a32;color:#e5e8c9;border:1px solid #223322;border-radius:6px;padding:9px 3px;font:9px var(--mono)}.combat-actions button small{font-size:7px;display:block;margin-top:5px;color:#b9c89e}.combat-log{max-height:67px;overflow:auto;font:9px/1.6 var(--mono);color:#586d49;margin:9px 0 0}.opponent-pet{position:absolute;width:25%;height:80%;bottom:1%;left:69%;z-index:4;transform:scaleX(-1)}.scene.fighting .pet{left:34%}.scene.fighting .speech{left:25%;top:8%}.scene.fighting .bin-target,.scene.fighting .ground-target{display:none}.fx{position:absolute;inset:0;z-index:5;pointer-events:none;display:grid;place-items:center;font:900 48px Impact,Arial;color:#f4cc4c;text-shadow:3px 3px #68472e,-2px -2px #68472e;letter-spacing:3px}.fx.pop{animation:pop .6s both}.sequence{position:absolute;inset:auto 0 0;background:#293b2de8;z-index:8;text-align:center;padding:13px 15px;color:#f2e8a1}.sequence strong{font-size:17px;display:block}.sequence span{font:9px var(--mono);display:block;margin:5px 0 9px}.sequence-track{width:50%;height:3px;margin:auto;background:#d4d7a533}.sequence-track i{display:block;height:100%;background:#e0c15c;animation:countdown 7.5s linear forwards}.scene.smoke .pet{animation:smokeDance .7s infinite}.scene.drink .pet{animation:drinkDance 1s infinite}.scene.drugs .pet{animation:tripDance 1.5s infinite}.scene.smoke .scenery{filter:saturate(1.5) brightness(1.18)}.scene.drink .scenery{filter:sepia(.4) saturate(1.7)}.scene.drugs .scenery{animation:psychedelic 3s infinite}.scene.smoke .fx{background:radial-gradient(ellipse at 65% 35%,#f7f3c250,transparent 35%)}.death{position:absolute;inset:0;z-index:15;background:#1e2d24eF;color:#e6e5c6;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px}.death h2{font:42px Impact,Arial;letter-spacing:2px;margin:0 0 10px;color:#d2be68}.death p{font:11px/1.6 var(--mono);margin:4px 0 12px}.death button{background:#dac35e;color:#32402d}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:1000;background:#e6d46c;color:#31432c;border:2px solid #5f743c;border-radius:10px;padding:15px 24px;max-width:min(90vw,600px);font:12px/1.5 var(--mono);box-shadow:0 5px 20px #0007}.empty-state{font-size:13px;line-height:1.7;color:#6a795a;padding:18px 0}.result-card{padding:20px;border:1px solid #a4b385;background:#dbe0bd;border-radius:10px}.result-card h3{font-size:25px;margin-top:0}.result-card p{font-size:13px;line-height:1.6}.result-card li{font:11px/1.8 var(--mono)}.warning{font-size:11px;line-height:1.6;color:#985331;border-left:3px solid #af6b43;padding-left:11px}.file-input{font-size:11px;width:100%}.modal-actions{display:flex;gap:9px;margin-top:20px}.reduced-motion *,.reduced-motion *:before,.reduced-motion *:after{animation:none!important;transition:none!important}.reduced-motion .sequence-track i{width:100%}
@keyframes idle{50%{transform:translateY(-3px) rotate(-1deg)}}@keyframes lootBob{50%{transform:translateY(-5px)}}@keyframes pop{0%{opacity:0;transform:scale(.4) rotate(-10deg)}30%{opacity:1;transform:scale(1.2) rotate(-10deg)}100%{opacity:0;transform:scale(1) rotate(-8deg)}}@keyframes countdown{from{width:100%}to{width:0}}@keyframes smokeDance{50%{transform:translateY(-6px) rotate(3deg)}}@keyframes drinkDance{25%{transform:rotate(-8deg)}75%{transform:rotate(8deg)}}@keyframes tripDance{25%{transform:translateY(-14px) rotate(-6deg)}75%{transform:translateY(-6px) rotate(6deg)}}@keyframes psychedelic{50%{filter:hue-rotate(130deg) saturate(2)}}
@media(min-width:1500px){.layout{padding-top:80px;padding-bottom:65px}}@media(max-width:1100px){.layout{grid-template-columns:minmax(0,1fr) 220px;gap:30px;padding-left:24px;padding-right:24px}.device{padding-left:24px;padding-right:24px}.sidebar h1{font-size:48px}.device-tag{display:none}.device-bottom>span{display:none}.controls{gap:7px;margin-left:0;margin-right:0}.controls button{font-size:7px;letter-spacing:.4px}.speech{font-size:8px}.target-label{font-size:7px;padding:6px 5px}footer{margin:0 25px}}@media(max-width:850px){.layout{grid-template-columns:1fr;max-width:760px;padding-top:55px;gap:38px}.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:15px 30px}.chapter,.sidebar h1,.lede{display:none}.field-card{grid-column:1}.note-card{grid-column:2;grid-row:1/3;margin:0;align-self:center}.rules-note{grid-column:1}.version{margin:0}.help-link{text-align:left}.topbar{height:82px;padding:0 25px}.edition{font-size:8px;letter-spacing:1px}.top-actions{gap:12px}footer{font-size:7px;gap:20px}.device{padding-top:16px}.device-heading{height:83px}.scene{aspect-ratio:1.8}}@media(max-width:520px){.topbar{height:72px;padding:0 18px}.wordmark{font-size:30px}.wordmark span{font-size:6px}.edition{display:none}.layout{padding:44px 9px 30px}.device{padding:10px 13px 23px;border-radius:46px 46px 55px 55px}.device:after{border-radius:40px 40px 50px 50px}.device-heading{height:78px;padding:0 20px}.device-logo{font-size:48px}.sticker{right:17px;top:6px;padding:5px 9px}.sticker strong{font-size:18px}.screw{width:12px;height:12px;font-size:10px}.tl{left:13px;top:34px}.tr{right:13px;top:34px}.bl{left:24px;bottom:24px}.br{right:24px;bottom:24px}.screen-bezel{border-width:6px;border-radius:17px}.stats{gap:9px 12px;padding:10px}.stat-label{font-size:8px}.stat-note{font-size:6px}.scene{aspect-ratio:1.35}.scene-caption{font-size:6px;left:9px;top:9px}.scenery>svg{object-fit:cover}.pet{height:77%;width:35%;left:40%}.bin-target{width:29%;left:3%;bottom:10%}.target-label{font-size:6px}.speech{font-size:7px;left:60%;top:18%;max-width:36%;padding:6px}.ground-target{left:32%;width:9%}.status-strip{font-size:7px;padding:8px}.notice{font-size:9px;padding:9px 10px;min-height:49px}.controls{grid-template-columns:repeat(3,1fr);gap:13px;margin:17px 10px}.controls button{font-size:9px;padding:9px;border-radius:12px}.controls button span{display:inline-block;font-size:18px;margin:0 7px 0 0;vertical-align:middle}.device-bottom{padding:0 20px}.device-bottom button{font-size:7px}.sidebar{padding:0 18px;gap:18px;grid-template-columns:1fr}.note-card{grid-column:1;grid-row:auto}.field-card{display:none}.rules-note{grid-column:auto}.version{display:none}.help-link{padding:4px 0}.top-actions{gap:10px}.save-status{font-size:8px}footer{display:none}.inventory-grid,.opponents,.help-grid{grid-template-columns:1fr}#modal-content{padding:18px}.modal-header{padding:20px}.modal-header h2{font-size:24px}.map-wrap{aspect-ratio:1.1}.map-pin{font-size:8px;padding:7px}.map-pin b{font-size:6px}.map-legend{font-size:7px}.combat-actions{grid-template-columns:repeat(3,1fr)}.combat-heading{font-size:9px}.combat-actions button{font-size:8px}.opponent-pet{width:35%;left:65%}.scene.fighting .pet{left:24%}.scene.fighting .speech{left:20%;top:5%;font-size:7px}.intent{font-size:8px}.sequence strong{font-size:14px}.sequence span{font-size:7px}.keyring{width:80px;height:75px;border-width:9px;top:-24px}.death h2{font-size:30px}.death p{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Visual restoration from the user's IMG_2299 reference. */
:root{--cream:#e9e7cf;--ink:#203b32;--yellow:#edc143}
body{background:radial-gradient(ellipse at 50% 40%,#28362d 0,#17241f 58%,#111b18 100%);color:#e9e6cf;background-attachment:fixed}
.topbar{max-width:700px;height:81px;padding:0 28px;border-bottom:1px solid #a2b69d25}.wordmark{font:1000 italic 39px/.85 Impact,'Arial Black',sans-serif;letter-spacing:-2.5px;transform:rotate(-5deg);color:#f2f1dc}.wordmark span{font:bold 8px/1.3 var(--mono);letter-spacing:2.6px;margin-top:11px}.edition{display:none}.top-actions{gap:11px}.save-status{font-size:8px;color:#aebb98}.icon-button{width:36px;height:36px;border-color:#e4e7ce2b;font-size:23px;color:#e8ead0}.icon-button[aria-label="How to play"]{font-size:16px}
.layout{display:block;max-width:700px;padding:142px 35px 30px;margin:auto}.sidebar,footer{display:none}.device-wrap{padding-top:0}.device{position:relative;padding:34px 32px 35px;border-radius:42% 42% 18% 18% / 15% 15% 9% 9%;background:radial-gradient(ellipse at 34% 12%,#ffea89 0,#efc447 40%,#e3b137 74%,#be8c24 100%);border:3px solid #263b30;box-shadow:0 0 0 2px #d4bc70,inset 5px 8px 0 #fff1a3,inset -5px -10px 0 #947026,0 19px 35px #0007;color:#243c2e;isolation:isolate}
.device:before{content:'';position:absolute;inset:8px;border-radius:inherit;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%233a351b' opacity='.42' filter='url(%23grain)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");opacity:.19;mix-blend-mode:multiply;pointer-events:none;z-index:8}
.device:after{content:'';position:absolute;inset:15px 12px 15px;border:2px solid #fff1ac70;border-radius:inherit;pointer-events:none;z-index:-1;background:repeating-linear-gradient(156deg,transparent 0 91px,#805b142a 92px,transparent 94px 215px),repeating-linear-gradient(23deg,transparent 0 174px,#fff6bf70 175px,transparent 177px 440px)}
.keyring{position:absolute;left:calc(50% - 53px);top:-159px;width:105px;height:119px;border:11px solid #b7c6bb;border-radius:45% 45% 50% 50%;background:transparent;transform:rotate(4deg);box-shadow:inset 0 0 0 2px #f2f2d9,0 0 0 2px #415c4e,3px 4px 0 #567463;z-index:4}.keyring i{position:absolute;display:block;width:50px;height:77px;border:9px solid #c0ccc1;border-radius:50%;left:24px;top:68px;transform:rotate(-21deg);box-shadow:inset 1px 1px 0 2px #eff0d8,2px 2px 0 #688474}.keyring b{position:absolute;display:block;width:45px;height:63px;border:8px solid #a3b7a9;border-radius:50%;left:18px;top:120px;transform:rotate(24deg);box-shadow:inset 1px 1px 0 #e6e8ca,2px 2px 0 #4a6e59}
.device-heading{height:180px;position:relative;display:flex;justify-content:center;align-items:flex-end;padding:28px 0 12px;gap:0}.chain-hole{position:absolute;width:43px;height:43px;top:-6px;left:calc(50% - 21px);border:8px solid #9b7d2d;border-bottom-color:#e1bb4c;border-radius:50%;background:#172d24;box-shadow:0 2px #ffe58a,inset 2px 3px 2px #0006}.brand-lockup{position:relative;text-align:center;transform:rotate(-5deg);margin:0 0 5px -14px}.device-logo{font:1000 italic 95px/.85 Impact,'Arial Black',sans-serif;letter-spacing:-6px;color:#142e20;transform:skew(-6deg);text-shadow:1px 2px #f9df76,-1px -1px #142e20;white-space:nowrap;-webkit-text-stroke:2px #183120}.device-logo span{font:37px Arial;letter-spacing:0;color:#b54c34;display:inline-block;transform:rotate(8deg);vertical-align:top;margin:5px 0 0 6px;-webkit-text-stroke:0}.device-tag{display:block;border:0;font:900 13px/1.2 Impact,'Arial Narrow',sans-serif;letter-spacing:2px;padding:0;margin:10px 0 0 15px;color:#283b23}.sticker{font:900 9px/1.15 Impact,'Arial Narrow',sans-serif;letter-spacing:.2px;position:absolute;right:-8px;top:112px;padding:8px 9px;transform:rotate(12deg);background:#f7e9b1;color:#4a482a;box-shadow:1px 2px 0 #9e7e3b66;border:1px solid #b5a272;text-align:left}.screw{width:12px;height:12px;font-size:10px;color:#947329;background:#c5a446;border:1px solid #a17a25;box-shadow:inset 1px 1px #f1d77b}.tl{left:16px;top:268px}.tr{right:16px;top:268px}.bl{left:17px;bottom:127px}.br{right:17px;bottom:127px}
.screen-bezel{border:10px solid #253e32;outline:5px solid #998b40;border-radius:27px;overflow:hidden;background:#e9ecd0;box-shadow:0 2px 0 7px #ffe58c,0 -3px 2px 7px #b6a04a,inset 0 0 0 2px #172c21}.stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:20px 12px 15px;background:#eeefd9;border:0;box-shadow:inset 0 2px 4px #2d4d2720}.stat-label{font:700 10px/1.1 var(--mono);letter-spacing:-.2px;display:flex;align-items:center;gap:3px;margin:0 0 12px;white-space:nowrap;color:#486252}.stat-label>span{display:flex;align-items:center;gap:3px}.stat-label svg{height:14px;width:14px;flex-shrink:0}.stat-label b{font:900 13px var(--mono);color:#345445;margin-left:auto;letter-spacing:-1px}.bar{height:10px;border:1.5px solid #5b7964;border-radius:3px;background:#9eb7a49c;box-shadow:inset 0 1px 2px #28483644;overflow:hidden}.bar i{background:linear-gradient(#ffffff38,transparent),var(--bar);box-shadow:inset 0 1px #ffffff6b;position:relative}.bar i:after{content:'';position:absolute;inset:2px;background:repeating-linear-gradient(145deg,transparent 0 8px,#ffffff25 9px 11px)}.stat-note{display:none}.screen-head{background:#23493d;color:#f1efce;display:flex;align-items:center;justify-content:space-between;padding:17px 14px;font:bold 11px var(--mono);letter-spacing:1px;gap:6px}.screen-head b{font-weight:900}.live-dot{width:8px;height:8px;background:#e0dd94;margin-right:7px;box-shadow:0 0 4px #f2e89c66}.screen-head #alive-label{font-size:8px;letter-spacing:1px}.screen-head time{font:10px var(--mono);color:#c3d3b8;letter-spacing:.5px}
.scene{aspect-ratio:1.58;background:#859994;border:0}.scenery{filter:saturate(var(--saturation,.8));transition:filter 1s}.scene-grain{z-index:6;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%232d453c' opacity='.4' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");opacity:.2;box-shadow:inset 0 0 15px #143d3530}.scene-caption{top:auto;bottom:16px;left:auto;right:13px;z-index:5;color:#d6d8bc;font:italic 8px var(--mono);letter-spacing:1px;max-width:40%;text-shadow:1px 1px #3a5048}.pet{height:75%;width:31%;left:43%;bottom:6%;z-index:4;animation:idle 3.2s ease-in-out infinite}.speech{left:32%;top:6%;width:60%;max-width:60%;background:#f5f1d7;color:#3d5140;border:2px solid #3a5b49;border-radius:20px;padding:12px 14px;font:800 16px/1.4 Arial,sans-serif;letter-spacing:.2px;transform:rotate(-2deg);box-shadow:2px 3px 0 #283d2822;z-index:5}.speech:after{content:'';position:absolute;left:28px;bottom:-10px;width:15px;height:15px;background:#f5f1d7;border-right:2px solid #3a5b49;border-bottom:2px solid #3a5b49;transform:skewY(-20deg) rotate(45deg)}.bin-target{left:4%;bottom:9%;width:21%;z-index:7;padding:0;opacity:1!important}.bin-target:disabled{cursor:default}.bin-target.cooling>span:first-child{opacity:.72}.target-label{font:7px var(--mono);padding:5px 5px;border-radius:4px;background:#e8e6bd;box-shadow:1px 2px #23483266;color:#2c5140;border-color:#385b47;gap:2px}.target-label b{font-size:10px}.bin-target.cooling .target-label{background:#b1c0aa;color:#385040}.scene[data-location="camp"] .bin-target{width:19%;left:68%;bottom:21%}.scene[data-location="camp"] .target-label{font-size:6px}.ground-target{width:12%;left:41%;bottom:7%;filter:drop-shadow(0 0 6px #ffe687);z-index:7}.ground-target:after{display:none}.status-strip{height:65px;display:flex;align-items:center;justify-content:flex-start;gap:9px;padding:12px 17px;background:#e6ecd1;color:#375c4c;font:bold 12px var(--mono);letter-spacing:.4px;border-top:1px solid #fbfce0}.food-icon{width:25px;height:25px;flex-shrink:0}.food-icon svg{width:100%;height:100%}#day-count{font:900 19px var(--mono);border-left:1px solid #96ae8f;padding-left:17px;margin-left:8px;white-space:nowrap}#weapon-summary{margin-left:auto;max-width:90px;font:8px/1.4 var(--mono);letter-spacing:.4px;text-align:right;opacity:.7}
.location-actions{display:grid;grid-template-columns:1fr 1.5fr .8fr;gap:8px;margin:24px 0 15px}.location-actions button{display:flex;justify-content:center;align-items:center;gap:7px;min-width:0;background:#dcb23b44;border:1.5px solid #9f7f2a;border-radius:7px;padding:12px 4px;color:#6c5721;font:800 10px var(--mono);letter-spacing:.5px;box-shadow:inset 0 1px #fff0a077,0 1px #ffe578}.location-actions button span{width:18px;height:18px}.location-actions button svg{width:100%;height:100%}.location-actions button:hover:not(:disabled){background:#fff1a03b}.location-actions button:disabled{opacity:.5}.location-actions button b{font:inherit}
.controls{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;max-width:none;margin:0 0 16px;padding:0}.controls button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;border:0;background:none!important;border-radius:0;box-shadow:none!important;width:auto;height:auto;padding:0;min-width:0;font:900 11px Impact,'Arial Narrow',sans-serif;letter-spacing:.4px;color:#3b371c}.controls button:active:not(:disabled){transform:none}.controls button b{display:block;margin-top:11px;font:inherit}.controls .button-face{display:grid;place-items:center;aspect-ratio:1;width:100%;max-width:70px;flex-shrink:0;border:4px solid #594924;border-radius:50%;background:radial-gradient(ellipse at 38% 25%,#cb8a63,#b46645 64%,#8a4d31);box-shadow:0 0 0 3px #c79d35,0 4px 0 3px #ac8529,inset 0 2px 2px #f3c58c,inset 0 -5px 2px #7a422d;margin:0;color:#352c1b;font-size:0;transition:transform .1s}.controls .button-face svg{width:63%;height:63%;filter:drop-shadow(0 1px #dca87480)}.controls button:nth-child(n+5) .button-face{background:radial-gradient(ellipse at 35% 25%,#a1af83,#7f966a 62%,#536e4a);box-shadow:0 0 0 3px #c79d35,0 4px 0 3px #ac8529,inset 0 2px 2px #c8d3a6,inset 0 -5px 2px #435938;color:#223d2d}.controls button:hover:not(:disabled) .button-face{filter:brightness(1.1)}.controls button:active:not(:disabled) .button-face{transform:translateY(4px)}.controls button:disabled{opacity:.45}.item-count{position:absolute;right:-1px;top:-5px;background:#293a25;color:#f4e6a2;border:1px solid #e8c869;border-radius:6px;font:bold 9px var(--mono);padding:2px 5px;min-width:18px;text-align:center;z-index:2}.item-count:empty{display:none}.speaker{height:27px;display:flex;justify-content:center;align-items:center;gap:5px;margin:24px 0 0}.speaker i{display:block;width:5px;height:19px;border-radius:3px;background:#786320;box-shadow:1px 0 #ffe586,inset 1px 0 #5d4e1e}.speaker i:nth-child(2),.speaker i:nth-child(4){height:23px}.speaker i:nth-child(3){height:27px}
.pet-profile{display:flex;align-items:center;gap:16px;margin:34px 20px 0;color:#cfdfc8}.pet-profile>div:first-child{height:70px;width:70px;overflow:hidden;border:2px solid #627662;border-radius:50%;background:#526b50;flex-shrink:0}.pet-profile>div:first-child svg{height:158px;width:114px;transform:translate(-22px,-10px)}.pet-profile span{font:bold 8px var(--mono);letter-spacing:3px;color:#9bac90}.pet-profile h2{font:bold 23px/1.3 Arial;margin:4px 0;color:#e4e9d4;letter-spacing:-.5px}.pet-profile p{font:10px var(--mono);margin:6px 0 0;color:#9caf8b}.pet-profile button{margin-left:auto;border:0;background:none;font:8px var(--mono);letter-spacing:.5px;color:#b9c8a9}.notice{background:none;border:0;font:10px/1.65 var(--mono);padding:17px 22px;color:#adbea4;min-height:42px}.notice:before{color:#b5bf78}.toast{max-width:min(90vw,540px);font-size:11px}.combat{background:#e2e6c9;border-top:2px solid #8ea789;padding:13px 14px}.combat-heading{font-size:10px}.combat-actions{grid-template-columns:repeat(5,1fr)}.combat-actions button{font-size:8px;padding:11px 3px}.combat-actions button small{font-size:6px}.intent{font-size:9px;background:#c9d5b8}.opponent-pet{width:31%;height:75%;left:68%;bottom:6%}.scene.fighting .pet{left:26%}.scene.fighting .speech{left:29%;top:5%;width:auto;font-size:12px;max-width:59%}.sequence strong{font-size:17px}.sequence span{font-size:9px}.scene.smoke .pet{animation:smokeDance .7s infinite}.scene.drink .pet{animation:drinkDance 1s infinite}.scene.drugs .pet{animation:tripDance 1.5s infinite}
@media(min-width:1500px){.layout{padding-top:142px;padding-bottom:30px}}@media(max-width:850px){.layout{max-width:650px;padding:137px 30px 28px}.topbar{max-width:650px}.device-heading{height:170px}.device-tag{display:block}.device-logo{font-size:90px}.device{padding:30px 28px 32px}.scene{aspect-ratio:1.58}.stats{padding:18px 10px 14px;gap:8px}.stat-label{font-size:9px}.stat-label b{font-size:12px}.status-strip{font-size:11px}.controls{gap:9px}.controls button{font-size:10px}.controls .button-face{font-size:0}.speech{font-size:15px}}
@media(max-width:520px){.topbar{height:65px;padding:0 19px}.wordmark{font-size:30px}.wordmark span{font-size:6px;letter-spacing:1.7px}.top-actions{gap:9px}.icon-button{height:29px;width:29px;font-size:19px}.save-status{font-size:6px;letter-spacing:.5px}.layout{padding:107px 15px 22px;max-width:450px}.keyring{width:74px;height:88px;left:calc(50% - 37px);top:-123px;border-width:8px}.keyring i{width:38px;height:57px;border-width:7px;left:16px;top:47px}.keyring b{width:34px;height:49px;border-width:6px;left:13px;top:85px}.device{padding:23px 19px 25px;border-width:2px;border-radius:42% 42% 18% 18% / 13% 13% 8% 8%;box-shadow:0 0 0 1px #d4bc70,inset 3px 5px 0 #fff1a3,inset -4px -7px 0 #947026,0 14px 23px #0007}.device:after{inset:11px 8px;border-width:1px}.chain-hole{width:32px;height:32px;border-width:6px;top:-6px;left:calc(50% - 16px)}.device-heading{height:128px;padding:26px 0 10px}.device-logo{font-size:66px;letter-spacing:-4px;-webkit-text-stroke:1px #183120}.device-logo span{font-size:25px;margin:4px 0 0 5px}.device-tag{font-size:9px;letter-spacing:1.3px;margin-top:7px}.brand-lockup{margin-left:-8px}.sticker{right:-9px;top:80px;padding:5px 6px;font-size:6px;border-width:.5px;letter-spacing:0}.screw{width:8px;height:8px;font-size:6px}.tl{left:8px;top:196px}.tr{right:8px;top:196px}.bl{left:8px;bottom:91px}.br{right:8px;bottom:91px}.screen-bezel{border-width:6px;border-radius:17px;outline-width:3px;box-shadow:0 1px 0 4px #ffe58c,0 -2px 2px 4px #b6a04a}.stats{padding:12px 7px 10px;gap:6px}.stat-label{font-size:6px;letter-spacing:-.25px;margin-bottom:8px;gap:1px}.stat-label>span{gap:1px}.stat-label svg{width:10px;height:10px}.stat-label b{font-size:8px;letter-spacing:-.5px}.bar{height:7px;border-width:1px;border-radius:2px}.screen-head{padding:11px 9px;font-size:8px;letter-spacing:.5px}.screen-head #alive-label{font-size:5px;letter-spacing:.8px}.screen-head time{font-size:7px;letter-spacing:0}.live-dot{width:5px;height:5px;margin-right:4px}.scene{aspect-ratio:1.5}.scene-caption{bottom:10px;right:8px;font-size:5.5px;letter-spacing:.6px}.pet{width:34%;height:76%;left:42%;bottom:5%}.speech{left:31%;top:6%;width:63%;max-width:63%;font-size:10px;line-height:1.35;padding:8px 9px;border-radius:13px;border-width:1.5px;letter-spacing:.1px}.speech:after{width:10px;height:10px;bottom:-7px;left:19px;border-width:1.5px}.bin-target{width:23%;left:4%;bottom:9%}.scene[data-location="camp"] .bin-target{width:19%;left:69%;bottom:21%}.target-label,.scene[data-location="camp"] .target-label{font-size:5px;padding:3px 2px;border-width:1px;gap:1px}.target-label b{font-size:6px}.ground-target{width:12%;left:40%;bottom:7%}.status-strip{height:46px;padding:9px 10px;font-size:8px;letter-spacing:0;gap:5px}.food-icon{width:18px;height:18px}#day-count{font-size:13px;padding-left:9px;margin-left:5px}#weapon-summary{font-size:5.5px;max-width:50px;letter-spacing:0}.location-actions{gap:5px;margin:16px 0 14px}.location-actions button{font-size:6.5px;padding:9px 2px;border-width:1px;border-radius:5px;gap:4px;letter-spacing:.3px}.location-actions button span{width:13px;height:13px}.controls{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:0 0 10px}.controls button{font-size:8px;letter-spacing:0;padding:0}.controls .button-face{border-width:3px;max-width:none;box-shadow:0 0 0 2px #c79d35,0 3px 0 2px #ac8529,inset 0 2px 2px #f3c58c,inset 0 -3px 2px #7a422d}.controls button:nth-child(n+5) .button-face{box-shadow:0 0 0 2px #c79d35,0 3px 0 2px #ac8529,inset 0 2px 2px #c8d3a6,inset 0 -3px 2px #435938}.controls button b{margin-top:8px}.controls .button-face svg{height:64%;width:64%}.item-count{font-size:6px;right:-2px;top:-5px;min-width:13px;border-radius:4px;padding:1px 3px}.speaker{margin-top:15px;height:20px;gap:4px}.speaker i{width:4px;height:13px}.speaker i:nth-child(2),.speaker i:nth-child(4){height:17px}.speaker i:nth-child(3){height:20px}.pet-profile{margin:24px 5px 0;gap:10px}.pet-profile>div:first-child{width:52px;height:52px}.pet-profile>div:first-child svg{height:124px;width:88px;transform:translate(-18px,-7px)}.pet-profile span{font-size:6px;letter-spacing:1.7px}.pet-profile h2{font-size:19px;margin-top:4px}.pet-profile p{font-size:7px}.pet-profile button{font-size:6px}.notice{font-size:8px;padding:14px 7px;min-height:38px}.opponent-pet{height:76%;width:34%;left:67%;bottom:5%}.scene.fighting .pet{left:24%}.scene.fighting .speech{left:28%;top:5%;font-size:9px;max-width:64%}.combat{padding:10px 9px}.combat-heading{font-size:8px;gap:5px}.combat-actions{grid-template-columns:repeat(3,1fr);gap:5px}.combat-actions button{font-size:7px;padding:9px 2px}.combat-actions button small{font-size:5px}.intent{font-size:7px}.sequence{padding:9px}.sequence strong{font-size:11px}.sequence span{font-size:6px}.death h2{font-size:25px}.death p{font-size:7px}.death button{font-size:8px;padding:7px}}
@media(max-width:355px){.layout{padding-left:10px;padding-right:10px}.device{padding-left:15px;padding-right:15px}.device-logo{font-size:58px}.device-heading{height:116px}.sticker{top:74px;font-size:5.5px}.stat-label{font-size:5.2px}.stat-label svg{width:8px;height:8px}.stat-label b{font-size:7px}.stats{gap:4px;padding-left:5px;padding-right:5px}.screen-head #alive-label{font-size:4px}.speech{font-size:9px}.controls{gap:6px}.controls button{font-size:7px}.location-actions button{font-size:6px}#weapon-summary{display:none}.status-strip{font-size:7.5px}}

/* Keep the illustrated landscape edge-to-edge, with the barrel behind the pet. */
.scenery,.scenery svg{height:100%;width:100%}.scene[data-location="camp"] .bin-target{width:17%;left:69%;bottom:22%;z-index:3}.scene[data-location="camp"] .target-label{position:absolute;left:-13%;width:126%;bottom:-18px;opacity:0;transition:opacity .15s}.scene[data-location="camp"] .bin-target:hover .target-label,.scene[data-location="camp"] .bin-target:focus-visible .target-label,.scene[data-location="camp"] .bin-target.cooling .target-label{opacity:1}.scene[data-location="camp"] .bin-target.cooling .target-label{font-size:6px}.pet{width:35%;left:40%;height:78%}.scene.fighting .pet{left:24%}.scene .pet,.scene .opponent-pet{pointer-events:none}
.device:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='270' height='320' viewBox='0 0 270 320'%3E%3Cg fill='%237b6023' opacity='.6'%3E%3Cpath d='m13 21 4-1-2 6zM143 61l4 1-1 2zM92 171l1-5 2 3zM215 242l4-1-1 8zM47 308l5-1-4 4zM213 80l2 3-3-1zM24 208l3-1-2 4zM127 285l1-5 2 5z'/%3E%3C/g%3E%3Cg stroke='%23907332' fill='none' opacity='.6'%3E%3Cpath d='m31 51 13-4m-3 5 10-4m93 101 17-4m-24 8 6-1m-44 96 10-5m131-86 3 14m-15-5 4 8m-61 102 10 2'/%3E%3C/g%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%233a351b' opacity='.42' filter='url(%23grain)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");opacity:.29}
@media(max-width:520px){.pet{width:37%;height:78%;left:39%}.scene[data-location="camp"] .bin-target{width:17%;left:70%;bottom:22%}.scene[data-location="camp"] .target-label{bottom:-12px}.scene[data-location="camp"] .bin-target.cooling .target-label{font-size:4.5px}.scene.fighting .pet{left:22%}}

/* Direct scenery interaction; the old action row and animation banner are gone. */
.controls{margin-top:26px}.scene{touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab}.scene.dragging{cursor:grabbing}.scene.fighting,.scene.smoke,.scene.drink,.scene.drugs{cursor:default}.scene:focus-visible{outline:3px solid #e7cf7c;outline-offset:-3px}.rest-inventory{display:flex;align-items:center;gap:15px;padding:0 0 22px}.rest-inventory small{font:10px/1.6 var(--mono);color:#b7bf9f}.rest-inventory button{flex-shrink:0}.scene[data-location="camp"] .bin-target{z-index:7}.scene[data-location="camp"] .bin-target .target-label{bottom:-15px}.scene .speech{pointer-events:none}
@media(max-width:520px){.controls{margin-top:22px}.rest-inventory{align-items:flex-start;flex-direction:column;gap:8px}.scene[data-location="camp"] .bin-target .target-label{bottom:-12px}}

/* Alpha 0.3 artwork and hit areas. Keep the approved raster originals intact. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#scene{aspect-ratio:var(--scene-ratio,1.846);background:#8c927d}
#scenery{filter:none;transition:none}
#scenery svg{display:block;width:100%;height:100%;overflow:hidden}
.scene-grain{display:none}
#scene .pet{left:48%;bottom:0;height:65%;width:26%}
#scene[data-location="camp"] .pet{left:10%;bottom:0;height:67%;width:16%}
#scene .speech{left:2.5%;top:3%;width:auto;max-width:46%;padding:6px 9px;font:700 10px/1.35 Arial,sans-serif;border-width:1px;border-radius:9px;transform:none}
#scene .speech:after{display:none}
#scene .scene-caption{display:none}
#scene.fighting .pet{left:36%;height:72%;width:26%}
#scene .opponent-pet{left:64%;bottom:0;height:72%;width:26%}
#scene .ground-target{left:37%;bottom:2%;width:9%}
#scene[data-location="camp"] .ground-target{left:71%;bottom:3%;width:7%}
#scene #bin-button{position:absolute;bottom:auto;min-width:44px;min-height:44px;border:0;border-radius:9px;background:transparent;z-index:7;padding:0;opacity:1;box-shadow:none}
#bin-art{display:none!important}
#scene #bin-button .target-label{position:absolute;left:auto;right:0;bottom:100%;width:max-content;max-width:150px;font:8px/1.3 var(--mono);padding:5px 6px;opacity:0;transition:opacity .15s;pointer-events:none;white-space:nowrap}
#scene #bin-button:hover .target-label,#scene #bin-button:focus-visible .target-label,#scene #bin-button.cooling .target-label{opacity:1}
#scene #bin-button:focus-visible,#scene #bin-button:hover:not(:disabled){outline:2px solid #f0dc86;outline-offset:2px;box-shadow:0 0 10px #ffe89499}
.tent-glow{position:absolute;inset:0;z-index:2;pointer-events:none}
.tent-glow svg{width:100%;height:100%;overflow:visible}
.tent-glow path{fill:none;stroke:#ffe092;stroke-width:5;stroke-linejoin:round;filter:drop-shadow(0 0 7px #ffe071) drop-shadow(0 0 12px #ffce56);opacity:.85}
.tent-entry{position:absolute;left:31.5%;top:41%;width:31%;height:49%;z-index:3;border:0;padding:0;background:transparent;border-radius:10px;cursor:pointer}
.tent-entry:focus-visible{outline:2px dashed #ffebad;outline-offset:3px}
.tent-return{position:absolute;top:8px;left:8px;z-index:9;min-width:78px;min-height:44px;padding:8px 11px;border:2px solid #394b36;border-radius:8px;background:#eee4bd;color:#31442f;font:bold 10px var(--mono);box-shadow:1px 2px #22382766}
.tent-return:hover{background:#fff2c7}
#scene.inside-tent .pet,#scene.inside-tent .speech{display:none}
.release-label{text-align:center;margin:23px 0 -14px;font:10px var(--mono);letter-spacing:2px;color:#c2d0ae}
.map-intro{margin-bottom:12px}
.map-scroll{overflow-x:auto;border:2px solid #718064;border-radius:10px;background:#e8dfbf;-webkit-overflow-scrolling:touch}
.approved-map-wrap{position:relative;width:100%;min-width:500px;isolation:isolate}
.approved-map{display:block;width:100%;height:auto;user-select:none;-webkit-user-drag:none}
.map-hotspot{position:absolute;border:0;border-radius:10px;background:transparent;padding:0;min-height:44px;cursor:pointer}
.map-hotspot:hover:not(:disabled){background:#ffe4851a;box-shadow:0 0 0 2px #dac16a,0 0 12px #f8d77266}
.map-hotspot:focus-visible{outline:3px solid #bd8139;outline-offset:2px;background:#ffe79922}
.map-legend{font:9px/1.6 var(--mono);display:block;margin-bottom:0}
@media(max-width:520px){
  #scene .speech{font-size:7px;padding:4px 6px;max-width:43%}
  #scene[data-location="camp"] .speech{font-size:6px;max-width:32%}
  #scene #bin-button .target-label{font-size:6px;padding:3px 4px;max-width:118px}
  .screen-head #alive-label{display:none}
  .screen-head{font-size:7px}
  .release-label{font-size:8px;letter-spacing:1.2px;margin-top:18px}
  .tent-return{min-width:70px;font-size:8px;top:4px;left:4px;padding:6px}
}

/* Alpha 0.4: one user-confirmed Memorial Park viewport; no shell/button edits. */
#scene{aspect-ratio:1705 / 923}
#scenery .scene-art{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;user-select:none;-webkit-user-drag:none}
.screen-head>span:first-child{min-width:0;display:flex;align-items:center}
#location-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#scene .pet,#scene[data-location="camp"] .pet{width:26%;height:65%;bottom:1%;left:48%}
#scene[data-location="camp"] .pet{left:3%}
#scene .tent-entry{left:30%;top:50%;width:32%;height:29%}
#scene #tent-glow svg{display:block}
#scene .ground-target{min-width:25px;min-height:28px}
#scene .toast{position:absolute;inset:auto 6px 6px;transform:none;width:auto;max-width:none;margin:0;padding:7px 9px;border-width:1px;border-radius:6px;font:10px/1.3 var(--mono);z-index:25;box-shadow:0 2px 8px #0004}
#modal.screen-panel{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;border-radius:0;padding:0;z-index:30;display:flex;flex-direction:column;box-shadow:none;background:#e2e6cc;color:#354b35;overflow:hidden;overscroll-behavior:contain}
#modal .modal-header{position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:9px 12px;gap:8px;border-bottom:1px solid #9aaa86;background:#d6dfbd}
#modal .modal-kicker{font:7px var(--mono);letter-spacing:1px;color:#506447}
#modal .modal-header h2{font:bold 18px/1.1 Arial,sans-serif;margin:4px 0 0;letter-spacing:-.4px}
#modal .close-button{min-width:36px;min-height:36px;width:36px;height:36px;padding:0;color:#354b35;font-size:24px}
#modal-content{padding:12px;overflow:auto;min-height:0;flex:1;overscroll-behavior:contain;scrollbar-width:thin}
#modal .panel-intro{font:11px/1.4 Arial,sans-serif;margin:0 0 10px;color:#4c6044}
#modal .inventory-grid,#modal .help-grid{grid-template-columns:1fr;gap:8px}
#modal .item{padding:8px;gap:10px}#modal .item-icon{width:44px;height:44px;flex:0 0 44px}
#modal .item h3{font-size:12px;margin:0 0 4px}#modal .item p,#modal .item small{font-size:10px;line-height:1.35}
#modal .small-btn,#modal .primary-btn,#modal .ghost-btn{min-height:36px;font-size:10px;padding:7px 9px}
#modal .rest-inventory{padding-bottom:12px;gap:8px}#modal .rest-inventory small{color:#4c6044;font-size:10px}
#modal .section-title{font-size:11px;margin:13px 0 8px}#modal .setting-row{padding:9px 0}
#modal .help-grid h3{font-size:12px}#modal .help-grid p{font-size:11px;line-height:1.45}
#modal .result-card{padding:12px}#modal .result-card h3{font-size:20px;line-height:1.2;margin-bottom:10px}
#modal .result-card p{font-size:12px;line-height:1.4}#modal .log-row{padding:10px 0}
#modal .log-row b{font-size:12px}#modal .log-row time,#modal .log-row p{font-size:10px;line-height:1.4}
.opponent-choices{display:grid;gap:7px}.opponent-choice{display:block;text-align:left;padding:10px 12px;border:1px solid #8c9e76;border-radius:7px;background:#d2daba;color:#304730;font:12px Arial,sans-serif;min-height:48px}
.opponent-choice strong{display:inline-block;min-width:62px;font-size:14px}.opponent-choice small{display:block;margin-top:4px;font-size:10px;color:#58694a}
.opponent-choice.selected{background:#eee2ab;box-shadow:inset 4px 0 #8b7846}
.control-guide{font:9px/1.5 var(--mono);margin:10px 0 0;color:#4e6143}
#scene .combat{position:absolute;inset:0;padding:8px;border:0;background:none;z-index:10;pointer-events:none}
.battle-bars{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.battle-bars>div{min-width:0;padding:5px 7px;background:#e9e9c9e8;border:1px solid #566d4b;border-radius:5px}
.battle-bars b{display:flex;justify-content:space-between;gap:4px;font:900 10px/1.2 var(--mono);color:#2d4733;white-space:nowrap}
.battle-bars b span{font-weight:400}.battle-meter{height:8px;margin-top:4px;background:#a8b492;border:1px solid #425d3e;border-radius:2px;overflow:hidden}
.battle-meter i{display:block;height:100%;background:#769a53;transition:width .12s}.battle-meter.enemy i{background:#b67b59}
.battle-caption{position:absolute;bottom:6px;left:6px;right:6px;text-align:center;background:#e7e7c9ed;color:#304932;padding:5px;border:1px solid #788b65;border-radius:5px;font:bold 10px/1.25 var(--mono)}
.battle-caption small{display:block;margin-top:3px;font:9px var(--mono)}
#scene.fighting .pet{left:8%;bottom:15%;width:30%;height:67%;animation:none}
#scene.fighting .opponent-pet{left:62%;bottom:15%;width:30%;height:67%;transform:none;transform-origin:50% 100%;animation:none}
.fighter-facing{height:100%;width:100%}.fighter-facing>svg{display:block;width:100%;height:100%;overflow:visible}
.opponent-pet .fighter-facing{transform:scaleX(-1)}
.fight-arm{transform-box:view-box;transform-origin:175px 200px}
#scene.fighting #pet.attacking{animation:playerBonk .65s ease-in-out both}
#scene.fighting #opponent-pet.attacking{animation:enemyBonk .65s ease-in-out both}
.attacking[data-attack="punch"] .fight-arm{animation:punchArm .65s ease-in-out both}
.attacking[data-attack="swing"] .fight-arm{animation:swingArm .65s ease-in-out both}
.attacking[data-attack="pop"] .fight-arm{animation:popArm .65s ease-in-out both}
#scene.fighting .hit{animation:stumble .37s ease-out both}
#scene.fighting .knocked-out{animation:flop .7s ease-out forwards}
#scene.fighting .victory{animation:dorkDance .3s ease-in-out 3}
#scene.fighting .fx{font-size:clamp(18px,5vw,36px);z-index:9;align-items:center;letter-spacing:1px}
@keyframes playerBonk{0%,100%{transform:translateX(0)}40%,55%{transform:translateX(58%) rotate(4deg)}}
@keyframes enemyBonk{0%,100%{transform:translateX(0)}40%,55%{transform:translateX(-58%) rotate(-4deg)}}
@keyframes punchArm{0%,100%{transform:rotate(25deg) translateX(0)}40%,60%{transform:rotate(-10deg) translateX(16px)}}
@keyframes swingArm{0%,100%{transform:rotate(20deg)}22%{transform:rotate(-100deg)}50%{transform:rotate(45deg)}}
@keyframes popArm{0%,100%{transform:rotate(0)}42%{transform:translateX(-12px) rotate(-15deg)}}
@keyframes stumble{30%{transform:translateY(-4px) rotate(12deg)}70%{transform:rotate(-7deg)}}
@keyframes flop{25%{transform:rotate(-12deg)}100%{transform:translateY(5%) rotate(78deg)}}
@keyframes dorkDance{50%{transform:translateY(-10px) rotate(-7deg)}}
.reduced-motion #scene .knocked-out{transform:rotate(78deg)}
@media(max-width:520px){
 #modal .modal-header{padding:5px 7px}#modal .modal-header h2{font-size:13px;margin-top:2px}#modal .modal-kicker{font-size:6px;letter-spacing:.6px}
 #modal .close-button{width:32px;height:32px;min-width:32px;min-height:32px;font-size:21px}
 #modal-content{padding:8px}#modal .panel-intro{font-size:10px;margin-bottom:7px}
 #modal .item-icon{width:34px;height:34px;flex-basis:34px}#modal .item h3{font-size:11px}
 #modal .small-btn,#modal .primary-btn,#modal .ghost-btn{min-height:36px;font-size:9px}
 .opponent-choice{padding:7px 9px;min-height:44px;font-size:10px}.opponent-choice strong{font-size:12px;min-width:55px}.opponent-choice small{font-size:9px;margin-top:3px}.control-guide{font-size:8px}
 #scene .combat{padding:4px}.battle-bars{gap:10px}.battle-bars>div{padding:4px}.battle-bars b{font-size:6px}.battle-meter{height:6px;margin-top:3px}
 .battle-caption{left:3px;right:3px;bottom:3px;font-size:7px;padding:4px}.battle-caption small{font-size:6px;margin-top:2px}
 #scene .toast{font-size:8px;padding:5px 7px}#scene .tent-return{min-height:36px}
}

/* Keep the approved map readable and pan it within the fixed screen. */
#modal[data-view="map"] #modal-content{display:flex;flex-direction:column;overflow:hidden}
#modal[data-view="map"] .map-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
#modal[data-view="map"] .map-intro,#modal[data-view="map"] .map-legend{flex:none}
#modal[data-view="map"] .map-legend{font-size:7px;line-height:1.3;margin-top:6px}

/* Alpha 0.5: additions stay within the unchanged fixed screen. */
.life-bar{position:relative}
.life-bar em{position:absolute;top:0;bottom:0;width:1px;background:#43553b;z-index:1;pointer-events:none}
.life-bar em:nth-of-type(1){left:25%}.life-bar em:nth-of-type(2){left:50%}.life-bar em:nth-of-type(3){left:75%}
#scene #bin-button,#scene #bin-button:hover:not(:disabled),#scene #bin-button:focus-visible{outline:none;box-shadow:none;border:0;background:transparent;border-radius:0}
#scenery .bin-outline{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:0;overflow:visible}
.bin-outline path{fill:none;stroke:#e4d798;stroke-width:4;stroke-linejoin:round;filter:drop-shadow(0 0 6px #edda95)}
#scene.bin-ready .bin-outline{opacity:.7}
#scene:has(#bin-button:focus-visible) .bin-outline{opacity:1}
#scene .loot-pop{position:absolute;z-index:14;width:44px;pointer-events:none;transform:translateX(-50%);text-align:center}
.loot-pop svg{width:44px;height:44px;filter:drop-shadow(0 2px 2px #253b3555)}
.loot-pop span{position:absolute;top:44px;left:50%;transform:translateX(-50%);padding:3px 5px;width:max-content;max-width:110px;border-radius:3px;background:#e7e4c9;color:#354b35;font:8px/1.2 var(--mono)}
.loot-pop.popping{animation:binFind 1.4s ease-out both}
@keyframes binFind{0%{opacity:0;transform:translate(-50%,0) scale(.2) rotate(-15deg)}22%{opacity:1;transform:translate(-50%,-42px) scale(1.15) rotate(9deg)}48%,75%{opacity:1;transform:translate(-50%,-35px) scale(1) rotate(-3deg)}100%{opacity:0;transform:translate(-50%,-48px) scale(.9)}}
#scene.smoke #scenery{filter:none}
#scene.smoke .pet{animation:smokeNod 5s ease-in-out both}
.smoke-hand{animation:takeCigarette 5s ease-in-out both;transform-box:view-box;transform-origin:175px 190px}
.lighter{animation:lightCigarette 5s linear both}
.smoke-clouds{animation:showSmoke 5s linear both}
.puff{animation:smallPuff 1.25s ease-out infinite}.p2{animation-delay:.3s}.p3{animation-delay:.6s}
@keyframes takeCigarette{0%{opacity:0;transform:translate(0,85px)}10%{opacity:1;transform:translate(0,70px)}24%,88%{opacity:1;transform:translate(0,0)}100%{opacity:0;transform:translate(0,70px)}}
@keyframes lightCigarette{0%,23%{opacity:0}27%,39%{opacity:1}45%,100%{opacity:0}}
@keyframes showSmoke{0%,38%{opacity:0}45%,88%{opacity:.8}100%{opacity:0}}
@keyframes smallPuff{0%{transform:translateY(6px);opacity:0}35%{opacity:.85}100%{transform:translate(8px,-18px);opacity:0}}
@keyframes smokeNod{0%,100%{transform:none}45%,65%{transform:rotate(-2deg)}55%,75%{transform:rotate(2deg)}}
#scene.drink #scenery{filter:blur(1.2px);transition:none}
#scene.drink .pet{animation:tipsyStumble 5s ease-in-out both}
.drink-hand{animation:sipCan 5s ease-in-out both;transform-box:view-box;transform-origin:175px 190px}
@keyframes sipCan{0%,100%{transform:none}12%,35%{transform:translate(-40px,-57px) rotate(-12deg)}45%,90%{transform:none}}
@keyframes tipsyStumble{0%,35%,100%{transform:none}48%{transform:translateX(-9px) rotate(-9deg)}62%{transform:translateX(8px) rotate(10deg)}77%{transform:translateX(-6px) rotate(-6deg)}90%{transform:rotate(3deg)}}
.reduced-motion .loot-pop{transform:translate(-50%,-35px)}
@media(prefers-reduced-motion:reduce){.loot-pop{transform:translate(-50%,-35px)}}

/* Keep the shared life top-up timer readable on small screens. */
.screen-head #alive-label{display:inline;white-space:nowrap;flex-shrink:0;font-size:8px}
@media(max-width:520px){.screen-head #alive-label{font-size:6px}.stat:last-child .stat-label b{font-size:8px}}
/* Alpha 0.6.1: requested small shell corrections; no shell resizing. */
.keyring{margin-top:24px}.device-logo{letter-spacing:0px}
.speaker{position:relative;cursor:pointer;outline-offset:5px}.speaker:after{content:'SOUND ' attr(data-sound);position:absolute;top:100%;font:6px/1.5 var(--mono);letter-spacing:1px;color:#514626;white-space:nowrap}.speaker:focus-visible{outline:1px solid #4d552c}.sound-flash i{animation:speakerFlash .6s ease-out}@keyframes speakerFlash{0%,40%{background:#fff2ac;box-shadow:0 0 6px #fff1a2}100%{background:#786320}}
@media(max-width:520px){.keyring{margin-top:16px}.device-logo{letter-spacing:0px}}
.inventory-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;position:sticky;top:-12px;z-index:2;background:#dce3c5;padding:4px 0;margin:0 0 8px}.inventory-tabs button{min-height:44px;padding:3px;font:bold 9px/1.15 Arial;color:#354b35;background:#e8ebd5;border:1px solid #8c9d77;border-radius:4px}.inventory-tabs [aria-selected=true]{background:#40563b;color:#fff2c8}.inventory-tabs button:nth-child(2){font-size:8px}
#modal[data-view=map] #modal-content{padding:5px;overflow:hidden;display:flex;flex-direction:column}.map-panel{display:flex;flex-direction:column;flex:1;min-height:0;gap:3px}.map-tools{display:flex;gap:3px;align-items:center;flex-shrink:0}.map-tools span{font:7px var(--mono);flex:1}.map-tools button{min-width:36px;height:32px;border:1px solid #85966d;border-radius:4px;background:#e9e9cc;color:#354b35;font:bold 11px Arial}.map-viewport{position:relative;overflow:hidden;flex:1;min-height:0;background:#c9d5c0;touch-action:none;user-select:none}.map-artboard{position:absolute;left:0;top:0;width:1171px;height:1343px;transform-origin:0 0;will-change:transform}.map-artboard .approved-map{width:1171px;height:1343px;max-width:none;pointer-events:none}.map-artboard .map-hotspot{min-height:0;min-width:0}.map-shortcuts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;flex-shrink:0}.map-shortcuts button{min-height:44px;font:bold 8px/1.15 Arial;padding:3px;border:1px solid #8b9d75;border-radius:4px;background:#eee7c5;color:#354b35;overflow-wrap:normal}
#scene .ground-target{min-width:44px;min-height:44px;z-index:8}
#scene .loot-pop{min-width:44px;min-height:44px;width:44px;height:44px;border:0;background:#e8dfb4aa;border-radius:50%;padding:2px;z-index:10;cursor:pointer;pointer-events:auto;transform:translate(-50%,-100%);box-shadow:0 0 6px #fff1ac;opacity:1}
#scene .loot-pop span{font-size:6px;white-space:nowrap;position:absolute;top:100%;left:50%;transform:translateX(-50%);background:#e9e1bc;color:#3a4d35;padding:2px;border-radius:2px}
#scene .loot-pop.popping{animation:collectiblePop .9s ease-out both}@keyframes collectiblePop{0%{transform:translate(-50%,10%) scale(.4);opacity:0}35%{transform:translate(-50%,-150%) rotate(-12deg) scale(1.15);opacity:1}65%{transform:translate(-50%,-95%) rotate(8deg)}100%{transform:translate(-50%,-100%);opacity:1}}
.bed-glow{position:absolute;inset:0;pointer-events:none;z-index:2}.bed-glow svg{width:100%;height:100%}.bed-glow path{fill:none;stroke:#ead58b;stroke-width:4;filter:drop-shadow(0 0 6px #f6df94);opacity:.8}.bed-button{position:absolute;left:30%;top:46%;width:50%;height:34%;min-height:44px;z-index:3;clip-path:polygon(0 42%,8% 24%,4% 13%,30% 0,37% 19%,81% 31%,90% 42%,94% 60%,100% 70%,90% 82%,92% 94%,80% 96%,66% 100%,2% 59%);border:0;background:transparent}.bed-button:focus-visible{background:#fff0ac44}
.rest-screen{position:absolute;inset:0;background:#263d2af2;color:#ede4bc;z-index:24;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8px}.rest-screen h3{font:16px Impact;margin:0 0 5px}.rest-screen p{font:9px/1.4 Arial;margin:0 0 7px}.rest-screen button{min-height:36px}

/* Scenery is a fixed viewport, never an implicit focus-scroll container. */
#scene{overflow:clip}

/* Alpha 0.7: cosmetic character creator, inside the existing screen. */
#modal[data-view="creator"] #modal-content{display:flex;flex-direction:column;overflow:hidden;padding:12px;min-height:0}
.creator-layout{display:grid;grid-template-columns:32% 1fr;gap:12px;min-height:0;flex:1;overflow:hidden}.creator-preview{display:flex;flex-direction:column;justify-content:center;align-items:center;background:#bec5a0;border:1px solid #798564;border-radius:8px;min-height:0;padding:6px}.creator-preview svg{width:100%;max-height:240px}.creator-preview small{text-align:center;font:8px/1.5 var(--mono);color:#45533d}.creator-fields{overflow:auto;min-width:0;padding:0 3px 8px}.creator-fields fieldset{border:0;padding:0;margin:0 0 9px}.creator-fields legend{font:bold 10px var(--mono);margin-bottom:5px;color:#45533d}.creator-fields button{border:2px solid #899375;border-radius:6px;background:#e0e2c5;color:#38442f;cursor:pointer;min-height:44px;font:bold 10px var(--mono)}.creator-fields button[aria-pressed="true"]{border-color:#394b30;background:#e4d275;box-shadow:inset 0 0 0 1px #394b30}.creator-sex{display:flex;gap:6px}.creator-sex button{flex:1}.creator-tones{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}.creator-tones button{background:var(--tone)!important;min-width:0}.creator-tones button[aria-pressed="true"]:after{content:'✓';color:white;text-shadow:0 1px 3px black;font-size:20px}.creator-fields input[type="range"]{width:100%;min-height:32px;accent-color:#576a43;margin:0}.age-ends{display:flex;justify-content:space-between;font:7px var(--mono)}.creator-faces{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.creator-faces button{padding:2px;min-width:0}.creator-faces svg{width:100%;height:55px;display:block}.creator-faces span{display:block;font-size:8px;overflow-wrap:anywhere}.creator-footer{display:flex;gap:6px;padding-top:10px;flex-shrink:0}.creator-footer button{flex:1;min-height:44px;font-size:10px;padding:7px}.creator-preview #creator-pet{min-height:0;max-height:90%;display:flex}.creator-preview small{flex-shrink:0}
@media(max-width:520px){.creator-layout{grid-template-columns:30% 1fr;gap:7px}.creator-faces{grid-template-columns:repeat(3,1fr)}.creator-tones{grid-template-columns:repeat(3,1fr)}.creator-preview small{font-size:6px}.creator-footer button{font-size:8px}#modal[data-view="creator"] #modal-content{padding:8px}.creator-fields legend{font-size:9px}.creator-fields button{font-size:9px}.creator-preview svg{max-height:175px}}

#skid-name{width:100%;min-height:44px;background:#f0eed8;border:2px solid #899375;border-radius:6px;color:#304330;padding:7px;font:16px Arial;box-sizing:border-box}.name-note{display:block;font:8px var(--mono);margin-top:3px}.pet-profile h2{overflow-wrap:anywhere}

/* Alpha 0.8: new locations remain inside the unchanged gameplay viewport. */
.shop-door-glow{position:absolute;inset:0;z-index:2;pointer-events:none}.shop-door-glow svg{width:100%;height:100%;overflow:visible}.shop-door-glow path{fill:none;stroke:#efdc98;stroke-width:4;filter:drop-shadow(0 0 4px #f9dc86)}
.shop-entry{position:absolute;z-index:4;min-width:32px;min-height:44px;padding:0;border:0;background:transparent;cursor:pointer}.shop-entry:focus-visible{outline:2px dashed #f4e5af}
#shop-return{z-index:12;min-width:0;font-size:8px;padding:4px 6px}
#scene.inside-shop:not(.smoke):not(.drink):not(.drugs)>.pet,#scene.inside-shop .speech{display:none}
#scene[data-location="pawn"]>.pet,#scene[data-location="depot"]>.pet{left:12%}
.depot-worker{position:absolute;left:55%;top:14%;width:17%;height:34%;padding:0;border:0;background:transparent;z-index:4;cursor:pointer;min-width:44px;filter:drop-shadow(0 0 2px #ffec9e) drop-shadow(0 0 3px #ffe089)}.depot-worker svg{width:100%;height:100%;display:block}.depot-worker:focus-visible{outline:2px dashed #ffe089}
.depot-wallet{position:absolute;right:3px;bottom:3px;z-index:5;padding:4px;background:#e4e3c5e8;border:1px solid #67785a;border-radius:4px;color:#354b35;font:8px var(--mono);pointer-events:none}.wallet-line{font:9px var(--mono);color:#354b35;margin:3px 0 8px}
.map-additions{position:absolute;inset:0;width:1171px;height:1343px;pointer-events:none}.map-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))}.map-shortcuts button{min-height:32px;font-size:7px}.map-tools button{height:26px}

/* The can remains the search target; its status cannot intercept taps. */
#scene > #bin-label{position:absolute;z-index:9;transform:translateX(-50%);width:max-content;max-width:36%;padding:2px 3px;font:6px/1.2 var(--mono);text-align:center;white-space:normal;background:#e7e4c9e8;color:#354b35;border-radius:3px;pointer-events:none}
#scene > #bin-label b{display:block}
#scenery .bin-outline{opacity:.5}
#scene.bin-ready .bin-outline{opacity:.9}
.bin-outline path{stroke:#f1df92;stroke-width:6;filter:drop-shadow(0 0 10px #ffe58dbb) drop-shadow(0 0 18px #ffe58d66)}

/* Add after world.css. Scene dimensions, shell and original backgrounds are untouched. */
.skids-shop-art{display:block;width:100%;height:100%;overflow:visible}
.skids-shop-art .npc-person{filter:drop-shadow(0 0 2px #f7e4a6)}
#scene .depot-worker{left:52%;top:15.2%;width:23.5%;height:33%;min-width:44px;padding:0;border:0;background:transparent;filter:none;overflow:visible;z-index:4}
#scene .pawn-worker{position:absolute;left:43.4%;top:32%;width:17.5%;height:30%;min-width:44px;padding:0;border:0;background:transparent;cursor:pointer;z-index:4}
#scene .pawn-worker:focus-visible,#scene .depot-worker:focus-visible{outline:2px dashed #ffe089;outline-offset:2px}
#scene .pawn-worker:hover .npc-person,#scene .depot-worker:hover .npc-person{filter:drop-shadow(0 0 3px #ffe9a1)}
.npc-swat-arm{transform-origin:247px 176px;animation:depot-lazy-swat 12s ease-in-out infinite}
.npc-fly-drift{animation:depot-fly-loop 3.8s ease-in-out infinite}
.npc-fly-2 .npc-fly-drift{animation-duration:4.7s;animation-delay:-1.7s}
.npc-fly-3 .npc-fly-drift{animation-duration:3.2s;animation-delay:-2.3s}
@keyframes depot-lazy-swat{0%,71%,100%{transform:rotate(0deg)}75%{transform:rotate(-86deg)}78%{transform:rotate(-52deg)}81%{transform:rotate(-89deg)}86%{transform:rotate(0deg)}}
@keyframes depot-fly-loop{0%,100%{transform:translate(0,0)}25%{transform:translate(6px,-5px)}50%{transform:translate(-4px,-9px)}75%{transform:translate(-8px,3px)}}
#scene .tent-furnishing{position:absolute;left:30%;top:43.5%;width:51%;height:38%;pointer-events:none;z-index:2}

/* Match the existing reduce-motion class and the operating-system preference. */
.reduced-motion .npc-swat-arm,.reduced-motion .npc-fly-drift,[data-reduced-motion="true"] .npc-swat-arm,[data-reduced-motion="true"] .npc-fly-drift{animation:none}
@media(prefers-reduced-motion:reduce){.npc-swat-arm,.npc-fly-drift{animation:none}}

#scene .vendor-worker{position:absolute;border:0;background:transparent;padding:0;cursor:pointer;z-index:4;min-width:44px;min-height:44px;}
#scene .lounge-worker{left:15%;top:27%;width:17%;height:27%;}
#scene .suite-worker{left:7%;top:34%;width:31%;height:39%;}
.vendor-worker .npc-person{filter:drop-shadow(0 0 2px #ffe997) drop-shadow(0 0 3px #f2df94);}
.vendor-worker:hover .npc-person{filter:drop-shadow(0 0 4px #ffe997);}
.vendor-worker:focus-visible{outline:2px dashed #ffe997;outline-offset:4px;}

#scene .pawn-worker .npc-person,#scene .depot-worker .npc-person,#scene .lounge-worker .npc-person{filter:drop-shadow(0 0 3px #ffe997) drop-shadow(0 0 5px #f2df94)}

#scene .suite-worker{left:5.57%;top:26.54%;width:39.27%;height:43.88%;}
.suite-worker svg{width:100%;height:100%;overflow:visible;pointer-events:none}.suite-guest-glow{fill:none;stroke:#ffe9a1;stroke-width:2;stroke-opacity:.6;filter:drop-shadow(0 0 4px #ffe997) drop-shadow(0 0 7px #ffe997)}.suite-worker:hover .suite-guest-glow{stroke-opacity:1;stroke-width:3}

/* Alpha 0.9 additions stay inside existing panels or below the unchanged device. */
#leaderboards{margin:16px 0 0;border:1px solid #787b58;border-radius:8px;background:#252a20;color:#e7e3c5;font:12px Arial,sans-serif;max-width:100%}
#leaderboards summary{cursor:pointer;padding:14px;font-weight:bold;letter-spacing:2px}
.leaderboard-tabs,.fight-tabs{display:flex;gap:6px;padding:8px}
.leaderboard-tabs button,.fight-tabs button{flex:1;min-height:44px;border:1px solid #828263;border-radius:5px;background:#3b4130;color:#ece4b8;font-size:10px;font-weight:bold;cursor:pointer}
.leaderboard-tabs [aria-pressed=true],.fight-tabs [aria-pressed=true]{background:#d6b94e;color:#282a20}
#leaderboard-rows{max-height:260px;overflow:auto;padding:0 12px 12px}#leaderboard-rows table{width:100%;border-collapse:collapse;text-align:left}#leaderboard-rows td,#leaderboard-rows th{padding:9px 4px;border-bottom:1px solid #4b513c}#leaderboard-rows td:last-child{text-align:right}
#account-form label,.player-search{display:block;font:bold 10px Arial,sans-serif;letter-spacing:1px;margin:8px 0;color:#373b2b}
#account-form input,.player-search input{display:block;box-sizing:border-box;width:100%;min-height:38px;margin-top:5px;padding:8px;border:1px solid #7d8063;border-radius:4px;background:#f0ead7;color:#292c22;font:16px Arial,sans-serif}
#account-form #auth-error{color:#963a2f;font-size:11px;margin:6px 0}#account-form .primary-btn{margin-bottom:6px}
#registered-players{display:grid;gap:6px}#registered-players .opponent-choice{text-align:left;min-height:44px;white-space:normal}.shop-grid{display:grid;grid-template-columns:1fr;gap:6px}.shop-grid .item{display:flex;align-items:center}.shop-grid .small-btn{min-height:34px}.owned-beds{display:grid;gap:5px;margin:8px 0}
[hidden]{display:none!important}
@media(max-width:520px){#account-form label{margin:5px 0}#account-form input{min-height:34px}#account-form .panel-intro{margin:6px 0}.fight-tabs{padding:0;gap:4px}.fight-tabs button{font-size:9px}}

.stat-bag .stat-label svg{display:none}.stat-bag .stat-label{gap:1px}.stat-bag .stat-label b{font-size:11px;letter-spacing:-.5px}@media(max-width:520px){.stat-bag .stat-label b{font-size:7px}.stat-bag .stat-label{font-size:5.8px}}

/* Alpha 0.9.2: contained overlays only; original shell and screen dimensions unchanged. */
#attack-report{position:absolute;left:6%;right:6%;top:8%;max-height:80%;overflow:auto;z-index:25;background:#e6d7a9;color:#39432f;border:2px solid #596044;border-radius:8px;padding:10px;font:12px/1.35 Arial;box-shadow:0 4px 12px #28362166}
#attack-report[hidden]{display:none}#attack-report p{margin:6px 0}#attack-report button{min-height:44px}
/* Keep weapon effects from changing the character's scene positioning. */
.weapon-shimmer{animation:skids-polish 1.4s ease-out 2}.item-icon.weapon-shimmer{position:relative}.upgrade-stars{position:absolute;top:0;right:0;color:#ebc65e;text-shadow:0 0 4px #fff3bc}
@keyframes skids-polish{50%{filter:drop-shadow(0 0 4px #ffe18c) brightness(1.18)}}
#pet.fight-wobble .fighter-facing{animation:skids-tipsy 1.3s ease-in-out infinite;transform-origin:50% 90%}
@keyframes skids-tipsy{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
.scene.eat #pet{animation:skids-munch .3s ease-in-out 4}@keyframes skids-munch{50%{filter:brightness(1.1);translate:0 -2px}}
.prep-ready{color:#658143;font-weight:bold}
.reduced-motion .weapon-shimmer,.reduced-motion #pet.fight-wobble .fighter-facing,.reduced-motion .scene.eat #pet{animation:none}
@media(prefers-reduced-motion:reduce){.weapon-shimmer,#pet.fight-wobble .fighter-facing,.scene.eat #pet{animation:none}}

/* Alpha 0.9.3: additions fit inside the existing screen and controls. */
.controls button[data-panel="fights"] .button-face{background:linear-gradient(#719eaf,#396f8b);border-color:#385b6a}
#weapon-summary{display:flex;align-items:center;gap:3px;max-width:32%}
.equipped-icon{width:23px;height:23px;flex:0 0 23px}.equipped-icon svg{width:100%;height:100%}
#tent-extras{position:absolute;inset:0;z-index:2;pointer-events:none}.fly-cover{position:absolute;inset:0;width:100%;height:100%}
.tent-light{position:absolute;left:48%;top:0;width:9%;filter:drop-shadow(0 0 12px #ffd86c)}
.tent-lit #scenery{filter:brightness(1.22)}
.tent-flytrap{position:absolute;left:68%;top:12%;width:5%}
.tent-companion{position:absolute;left:74%;bottom:9%;width:13%;animation:roommate 8s ease-in-out infinite;transform-origin:50% 90%}
.tent-companion.petraccoon{animation-name:rummage}
#tent-extras svg{display:block;width:100%;height:100%}
@keyframes roommate{0%,72%,100%{transform:translateX(0) rotate(0)}78%{transform:translateX(-12px) rotate(-6deg)}84%{transform:translateX(-12px) rotate(5deg)}90%{transform:translateX(0) rotate(-3deg)}}
@keyframes rummage{0%,65%,100%{transform:rotate(0)}70%,80%{transform:rotate(12deg) translateY(3px)}75%,85%{transform:rotate(-5deg)}}
@media(prefers-reduced-motion:reduce){.tent-companion{animation:none}}
.reduced-motion .tent-companion{animation:none}
@media(max-width:520px){.equipped-icon{width:17px;height:17px;flex-basis:17px}#weapon-summary{max-width:35%}}

.tent-lit .fly-cover{filter:brightness(1.22)}

.stats{grid-template-columns:repeat(4,minmax(0,1fr))}
#wallet-summary{font-weight:bold;white-space:nowrap;letter-spacing:0}
/* Equal label rows keep the Life meter on the same baseline as the other three. */
.stats .stat-label{height:16px;align-items:center}
@media(max-width:520px){.stats .stat-label{height:12px}}
@media(max-width:355px){.stats .stat-label{height:10px}}

/* One swipeable row leaves more room for the unchanged map. */
.map-shortcuts{display:flex;overflow-x:auto;overflow-y:hidden;gap:3px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;flex-shrink:0;padding-bottom:3px}
.map-shortcuts button{flex:0 0 calc((100% - 9px)/4);min-width:0;min-height:36px;scroll-snap-align:start}

/* Alpha 0.9.6 wardrobe and approved T13–T17 remain within the gameplay screen. */
.inventory-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}
.clothing-tabs{display:flex;gap:4px;margin:5px 0 9px}.clothing-tabs button{background:#e8ebd5!important;color:#354b35!important;flex:1;min-width:0;padding:6px 3px!important}.clothing-tabs [aria-pressed=true]{background:#40563b!important;color:#fff2c8!important}
.outfit-summary{display:flex;gap:12px;align-items:center}.outfit-summary h3{margin:0;font-size:14px}.outfit-summary p{font-size:11px;line-height:1.4}.wardrobe-skid{flex:0 0 86px;height:115px;background:#bac6a3;border-radius:12px}.wardrobe-skid svg{width:100%;height:100%}
.tent-furnishing-T13{position:absolute;left:24%;top:30%;width:12%;height:33%}
.tent-furnishing-T14{position:absolute;left:78%;top:49%;width:14%;height:30%}
.tent-furnishing-T15{position:absolute;left:70%;top:39%;width:8%;height:22%}
.tent-furnishing-T16{position:absolute;left:60%;top:82%;width:15%;height:15%}
.tent-furnishing-T17{position:absolute;left:40%;top:13%;width:26%;height:31%}
@media(max-width:520px){#modal .clothing-tabs button{font-size:8px}.inventory-tabs button{font-size:8px}.wardrobe-skid{flex-basis:65px;height:90px}}
@media(max-width:355px){.inventory-tabs button{font-size:7px;padding:2px}}

#scene .tent-furnishing.approved-bed{left:29%;top:40%;width:53%;height:47%}
#scene .tent-furnishing.approved-bed svg{filter:drop-shadow(0 0 1px #e3d398)}
.tent-furnishing-T1{position:absolute;left:17%;top:64%;width:12%;height:20%}
.tent-furnishing-T2{position:absolute;left:81%;top:76%;width:15%;height:20%}
.tent-furnishing-T3{position:absolute;left:38%;top:74%;width:6%;height:17%;filter:drop-shadow(0 0 2px #eacb73)}
.tent-furnishing-T4{position:absolute;left:87%;top:58%;width:11%;height:16%}
.tent-furnishing-T5{position:absolute;left:11%;top:43%;width:12%;height:31%}
.tent-furnishing-T6{position:absolute;left:31%;top:80%;width:33%;height:20%}
.tent-furnishing-T7{position:absolute;left:6%;top:77%;width:12%;height:23%}
.tent-furnishing-T8{position:absolute;left:20%;top:84%;width:12%;height:16%}
.tent-furnishing-T9{position:absolute;left:2%;top:57%;width:14%;height:25%}
.tent-furnishing-T10{position:absolute;left:32%;top:60%;width:9%;height:25%}
.tent-furnishing-T11{position:absolute;left:50%;top:77%;width:16%;height:16%}
.tent-furnishing-T12{position:absolute;left:34%;top:3%;width:35%;height:27%;filter:drop-shadow(0 0 3px #efc878)}

/* Alpha 0.9.7: contain every catalog SVG within its card, including Safari. */
.screen-head #alive-label{flex:1;min-width:0;max-width:48%;text-align:center;white-space:normal;line-height:1.25;letter-spacing:0;font-size:8px}
@media(max-width:520px){.screen-head #alive-label{font-size:6px}}
#scene[data-location="depot"] #bin-label{top:calc(100% + 5px);bottom:auto;right:0;left:auto;transform:none;font-size:7px}
#scene[data-location="depot"] .shop-door-glow path{stroke:#ffe5a0;stroke-width:6;filter:drop-shadow(0 0 6px #ffe197) drop-shadow(0 0 3px #ffe197)}
#scene .pawn-worker{left:36%;top:29%;width:33%;height:57%}
#scene .pawn-worker .npc-person{filter:drop-shadow(0 0 5px #ffe498) drop-shadow(0 0 2px #fff0b9)}
#scene .pawn-worker:hover .npc-person{filter:drop-shadow(0 0 7px #ffe498)}
.depot-bags{position:absolute;left:18%;top:52%;width:17%;min-width:44px;min-height:36px;padding:5px 3px;border:2px solid #596346;border-radius:3px;background:#d8cb9d;color:#394b34;font:bold 8px/1.35 var(--mono);transform:rotate(-3deg);box-shadow:0 0 6px 2px #ffe18e;z-index:6;cursor:pointer}
.depot-bags:focus-visible{outline:2px dashed #fff3b0;outline-offset:3px}
#scene .ground-target>svg{display:block;width:75%;max-height:40px;margin:auto}

/* Local Alpha 0.9.7 event and combat presentation. */
.sticker{text-transform:none!important}
#event-banner{position:absolute;left:27%;top:3%;max-width:68%;padding:4px 7px;z-index:8;background:#e7c651;color:#34442f;border:2px solid #536044;box-shadow:2px 2px #35473566;font:bold 9px var(--mono);transform:rotate(-2deg);pointer-events:none}
#welfare-event{position:absolute;left:22%;top:14%;width:56%;max-height:78%;overflow:auto;z-index:25;padding:10px;background:#eee3bc;border:2px solid #49543b;border-radius:8px;color:#354330;text-align:center;font:11px var(--mono);box-shadow:3px 4px #23342677}
#welfare-event p{font-size:10px}#welfare-check{width:100%;padding:9px;background:repeating-linear-gradient(10deg,#e9e1bc 0 4px,#dfddba 5px 6px);border:2px dashed #576346;color:#38462f;transform:rotate(-3deg)}#welfare-check>*{display:block}#welfare-check small{font:6px var(--mono)}#welfare-check b{font:10px var(--mono);margin:6px}#welfare-check strong{font:bold 23px var(--mono)}#welfare-check span{font:8px var(--mono);margin-top:6px}.collected-check{animation:checkCollect .8s both;font:bold 20px var(--mono)}
@keyframes checkCollect{to{transform:translateY(-50px) rotate(20deg) scale(.3);opacity:0}}
.critical-impact{filter:drop-shadow(0 0 8px #ffc82b)}
#scene .knocked-out[data-ko="spin"]{animation:koSpin 1.5s forwards}#scene .knocked-out[data-ko="cross"]{animation:koCross 1.5s forwards}#scene .knocked-out[data-ko="wobble"]{animation:koWobble 1.5s forwards}#scene .knocked-out[data-ko="flat"]{animation:koFlat 1.5s forwards}
#scene .knocked-out[data-ko="cross"]:after{content:'× ×';position:absolute;top:24%;left:35%;font:bold 18px monospace;color:#29382c;background:#eee1b5;border-radius:40%;}
@keyframes koSpin{0%{transform:rotate(0)}60%{transform:rotate(360deg)}100%{transform:rotate(450deg) translateY(10%)}}
@keyframes koCross{30%{transform:rotate(-12deg)}100%{transform:rotate(-85deg) scaleY(.7)}}
@keyframes koWobble{20%{transform:rotate(-18deg)}40%{transform:rotate(18deg)}60%{transform:rotate(-15deg)}100%{transform:translateY(30%) rotate(80deg)}}
@keyframes koFlat{30%{transform:translateY(-8%) rotate(-15deg)}100%{transform:rotate(-90deg)}}
#scene [data-dirty="FOOT STOMP!"]{animation:dirtyStomp .4s}#scene [data-dirty="HEADBUTT!"]{animation:dirtyHead .4s}#scene [data-dirty="LOW BLOW!"],#scene [data-dirty="CHEAP ELBOW!"]{animation:dirtyDip .4s}
@keyframes dirtyStomp{50%{transform:translateY(-8%)}80%{transform:translateY(3%)}}
@keyframes dirtyHead{50%{transform:rotate(18deg)}}@keyframes dirtyDip{50%{transform:translateY(9%) rotate(-12deg)}}
@media(max-width:520px){#event-banner{font-size:6px;padding:3px}#welfare-event{font-size:9px;padding:6px}#welfare-event p{font-size:8px}}
.reduced-motion #scene .knocked-out,.reduced-motion #scene [data-dirty],.reduced-motion .collected-check{animation:none!important}

/* Keep the Back Alley entrance clear for its future interaction. */
#scene[data-location="bar"]:not(.fighting) .pet{left:76%;width:24%;bottom:0;height:65%}
/* Review feedback: quieter sale sign, clearer recycling clerk. */
.depot-bags{width:12%;min-width:34px;min-height:27px;padding:3px 2px;font-size:6px;box-shadow:0 0 3px 1px #ffe18e88}
#scene .depot-worker .npc-person{filter:drop-shadow(0 0 5px #ffe498) drop-shadow(0 0 2px #fff0b9)}
#scene .depot-worker:hover .npc-person{filter:drop-shadow(0 0 7px #ffe498) drop-shadow(0 0 3px #fff0b9)}
#scene[data-location="pawn"] .shop-door-glow path{stroke:#ffe5a0;stroke-width:6;filter:drop-shadow(0 0 6px #ffe197) drop-shadow(0 0 3px #ffe197)}
/* Wednesday sign belongs on the storefront window, clear of the entrance. */
#scene[data-location="pawn"] #event-banner{left:38%;top:58%;width:32%;max-width:none;text-align:center;font-size:clamp(5px,.8vw,9px);padding:4px 2px;transform:rotate(-2deg);border-color:#a45d38;background:#f4d56b;color:#3f4529}
/* Clerk depth adjusted after preview review; keep the same proportions. */
#scene .pawn-worker{left:38.5%;top:30%;width:28%;height:48%}

#camp-art-layer{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}#camp-art-layer[hidden]{display:none}.camp-base,.camp-piece,.camp-flies{position:absolute;inset:0;width:100%;height:100%}.camp-art-active #scenery{visibility:hidden}.camp-art-inside #pet,.camp-art-inside #bed-glow{visibility:hidden}.camp-art-inside #bed-button{left:26%!important;top:40%!important;width:52%!important;height:39%!important;z-index:15}.shop-item-art .camp-piece{object-fit:contain}.camp-art-active #pet{z-index:8}.camp-art-active #tent-entry{left:41%!important;top:45%!important;width:17%!important;height:36%!important}.camp-art-active #tent-glow{visibility:hidden}.camp-leak{position:absolute;inset:0}.camp-puddle{position:absolute;left:39%;top:81%;width:20%;height:9%;background:radial-gradient(ellipse,#9cacb333,#242b2d88 70%,#28303744);border-radius:42% 58% 51% 49% / 43% 53% 47% 57%;box-shadow:inset 1px -2px 2px #a3afb140}.camp-drop{position:absolute;left:49%;top:-3%;width:.65%;height:2.5%;background:linear-gradient(110deg,#ebf6ffbb,#9ab4cc99);border-radius:70% 30% 60% 40%;animation:tent-drop 2.7s linear infinite}.camp-ripple{position:absolute;left:47.5%;top:84%;width:3%;height:1.2%;border:1px solid #bacbd899;border-radius:50%;animation:tent-ripple 2.7s linear infinite}.new-flytrap{position:absolute;left:70%;top:10%;font-size:24px;color:#c39445;transform:rotate(5deg)}@keyframes tent-drop{0%,50%{transform:translateY(0);opacity:0}52%{opacity:1}88%{transform:translateY(3500%);opacity:1}89%,100%{transform:translateY(3500%);opacity:0}}@keyframes tent-ripple{0%,87%{transform:scale(.2);opacity:0}89%{opacity:.8}100%{transform:scale(3);opacity:0}}.reduced-motion .camp-drop,.reduced-motion .camp-ripple{animation:none}.reduced-motion .camp-drop{top:40%}#collect-cooler{position:absolute;left:54%;top:72%;z-index:20;font-size:clamp(7px,1.4vw,12px);padding:4px;background:#1e342ddd;color:#fff1ba;border:1px solid #d0bd70}#collect-cooler[hidden]{display:none}#collect-cooler.cooler-ready{box-shadow:0 0 17px 5px #ffd45c;animation:cooler-pulse 1.4s infinite alternate}@keyframes cooler-pulse{to{box-shadow:0 0 26px 8px #ffd45c}}.reduced-motion #collect-cooler{animation:none}
/* Touch targets for the new pawn flow; the six physical controls are unchanged. */
@media(max-width:600px){#modal[data-view="shop"] button,#modal[data-view="pawn-confirm"] button{min-height:44px}#modal[data-view="pawn-confirm"] .primary-btn,#modal[data-view="pawn-confirm"] .ghost-btn{margin:6px 4px}#account-form input{font-size:16px}}
/* This thumbnail size is used by the depot and the player's inventory. */
.shop-item-art {
 position:relative;display:flex;align-items:center;justify-content:center;align-self:center;
 overflow:hidden;width:var(--shop-art-width,80px);height:var(--shop-art-height,53px);flex-shrink:0;
}
.shop-item-art>svg {display:block;position:static;width:100%;height:100%;max-width:100%;max-height:100%;flex:none;transform:none;object-fit:contain}
@media(max-width:520px){
 .shop-item-art{width:var(--shop-art-width,60px);height:var(--shop-art-height,60px)}
}

/* NuWay uses the weapon rack's thumbnail, row and touch-target sizes throughout. */
#modal-content:has(.pawn-shop){display:flex;flex-direction:column;overflow:hidden;padding:3px 6px}
.pawn-shop{display:flex;flex:1;flex-direction:column;min-height:0;color:#263f32;container-type:inline-size}
.pawn-toolbar{flex:none;padding-bottom:3px;border-bottom:1px solid #89977d}
.pawn-shop .clothing-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;margin:2px 0}
#modal .pawn-shop .clothing-tabs button{min-width:0;min-height:44px;padding:2px 3px!important;white-space:normal;overflow-wrap:anywhere;font:700 11px/1.12 var(--mono);letter-spacing:0}
.pawn-sections button{text-transform:uppercase}
@container (min-width:28rem){.pawn-shop .pawn-sections{grid-template-columns:none;grid-auto-columns:1fr;grid-auto-flow:column}}
@container (max-width:27.99rem){#modal .pawn-shop .clothing-tabs button{min-height:34px}}
.pawn-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.pawn-offer{display:flex;align-items:center;gap:8px;min-height:48px;padding:2px 1px;border-bottom:1px solid #b3b69b}
.pawn-thumb{position:relative;flex:0 0 34px;width:34px;height:32px;display:grid;place-items:center;overflow:hidden}
.pawn-thumb>svg,.pawn-thumb>img{display:block;position:static;inset:auto;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;transform:none}
.pawn-thumb>.phone-portrait,.pawn-thumb>.station-case-art{display:block;width:21px;height:32px}
.pawn-details{min-width:0;flex:1}
#modal .pawn-details h3{font-size:13px;line-height:1.12;margin:0}
#modal .pawn-details p{font:11px/1.2 var(--mono);margin:2px 0 0}
#modal .pawn-offer>button{flex:0 0 auto;min-height:44px;min-width:60px;display:grid;place-content:center;gap:1px;padding:1px 5px;font-size:11px;line-height:1.1}
.pawn-offer>button span{font:11px var(--mono)}
#modal .pawn-details .edit-sign{min-height:44px}

/* Scoped fishing additions; original shell, six controls and pet layout unchanged. */
#fishing-ui{position:absolute;inset:0;z-index:18;pointer-events:none;font:clamp(10px,2.3vw,13px)/1.25 Arial,sans-serif;color:#263c2a}
#fishing-ui[hidden],#fishing-rod-layer[hidden]{display:none}
#fishing-ui button{pointer-events:auto;min-height:44px;touch-action:manipulation;font-size:inherit;padding:5px 7px;line-height:1.15}
.fishing-status,.fishing-result{position:absolute;left:2%;top:3%;width:45%;max-height:94%;overflow:auto;border:2px solid #546243;border-radius:7px;background:#f5ecd2f2;padding:7px;box-shadow:2px 3px #183b2d44;pointer-events:auto;box-sizing:border-box}
.fishing-status strong,.fishing-result strong{display:block;font-size:1.05em;letter-spacing:.2px}
.fishing-status small,.fishing-result small{display:block;margin-top:3px;font-size:.8em;line-height:1.3}
.fishing-status button{margin-top:5px;width:100%;background:#e6c259;color:#293c29}
.fishing-status{padding:5px;width:43%}.fishing-status small{font-size:.76em}
.fishing-wait{font-size:22px;letter-spacing:5px;display:block}
.bite-ready{background:#f4d866;box-shadow:0 0 0 3px #ffe8a077}.bite-ready strong{font-size:1.6em}
.fishing-art{display:block;object-fit:contain;width:100%;height:100%}
.fishing-result{width:48%;padding:6px}
.fishing-weight{display:block;font-size:1.55em;line-height:1.05;margin:3px 0}
.catch-fish{width:100%;height:clamp(35px,9vw,65px);margin:1px auto;animation:fish-reveal .45s ease-out}
.fishing-actions{display:flex;gap:4px;margin-top:5px}.fishing-actions button{flex:1;min-width:0}
.fishing-actions button:first-child{background:#e5bd49;color:#293c29}
.find-result{width:45%}.find-result>b{font-size:.95em;display:block}.junk-result{background:#e4d2b6f5}
.river-item-icon{height:58px;margin:3px auto}.river-item-icon svg{height:100%;width:100%}
#fishing-rod-layer{position:absolute;inset:0;z-index:6;pointer-events:none}
#fishing-rod-layer .held-fishing-rod{position:absolute;left:66.7%;top:17%;width:20%;height:69%;transform:rotate(7deg);transform-origin:20% 88%;object-fit:contain}
#fishing-rod-layer>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.fishing-line{stroke:#eee4b8;stroke-width:1;fill:none}.fishing-bobber ellipse{fill:none;stroke:#e8e6bd;stroke-width:1.2}.fishing-bobber path{fill:#da623c;stroke:#f3ebce;stroke-width:1}
.fish-bite .fishing-bobber{animation:fish-bob .5s ease-in-out infinite;transform-origin:438px 169px}
.line-out .fishing-tackle{animation:fish-cast .6s ease-out;transform-origin:311px 222px}
.giant-result{inset:2%;width:96%;height:96%;max-height:96%;overflow:hidden;background:transparent;border:0;box-shadow:none;pointer-events:none;padding:0}
.giant-result .fishing-result-heading{background:#f1e5baf5;border:2px solid #82703c;border-radius:5px;padding:4px 7px;display:flex;align-items:center;justify-content:space-between;gap:3px}
.giant-result .fishing-weight{font-size:1.7em;white-space:nowrap}.giant-result .catch-fish{position:absolute;left:6%;top:0;width:88%;height:auto;margin:0;filter:drop-shadow(2px 3px 2px #233a2877);z-index:1}
.giant-result .fishing-result-heading{position:relative;z-index:2}
.giant-result .fishing-result-footer{position:absolute;right:0;bottom:0;width:100%;box-sizing:border-box;background:#f5ecd2f5;border:1px solid #566545;border-radius:5px;padding:4px;pointer-events:auto;display:grid;grid-template-columns:1fr 1fr;gap:2px 5px;z-index:2}
.giant-result .fishing-result-footer small{font-size:.72em;grid-column:1}.giant-result .fishing-actions{margin:0;grid-column:2;grid-row:1/3}
.fishing-shop-item .shop-item-art img{object-fit:contain}
.inventory-grid .fishing-art{max-height:100px}.leaderboard-tabs{flex-wrap:wrap}
#scene[data-location="fishing"] #speech{display:none}
@keyframes fish-reveal{from{transform:translateY(35px) rotate(-8deg);opacity:0}to{transform:none;opacity:1}}
@keyframes fish-cast{0%{transform:rotate(-35deg)}70%{transform:rotate(5deg)}100%{transform:rotate(0deg)}}
@keyframes fish-bob{50%{transform:translateY(5px) scale(1.2)}}
.reduced-motion #fishing-ui *,.reduced-motion #fishing-rod-layer *{animation:none!important}
@media(prefers-reduced-motion:reduce){#fishing-ui *,#fishing-rod-layer *{animation:none!important}}

/* Only the riverside Skid changes position. Shared world layout is untouched. */
#scene[data-location="fishing"]:not(.fighting) #pet{left:43%;bottom:8%;width:23%;height:57%;animation:none;cursor:pointer;touch-action:manipulation;min-width:44px;min-height:44px;z-index:7}
#scene[data-location="fishing"] #pet[role="button"]:focus-visible{outline:2px dashed #f9dc79;outline-offset:3px}
#scene[data-location="fishing"] #pet.fishing-bite-ready{filter:drop-shadow(0 0 5px #ffdb59)}
#scene[data-location="fishing"] .fishing-status{width:39%;pointer-events:none}
#scene[data-location="fishing"] .fishing-status button{pointer-events:auto}
#fishing-achievement{position:absolute;inset:3%;z-index:28;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;padding:4px;background:#f1d175fa;border:2px solid #4f5833;border-radius:9px;color:#263c2a;text-align:center;font:clamp(8px,2vw,12px)/1.15 Arial,sans-serif;box-shadow:0 0 12px #293a25}
#fishing-achievement strong{font-size:1.05em}#fishing-achievement span{font-size:1.5em;font-weight:bold}#fishing-achievement small{font-size:.85em}#fishing-achievement button{min-height:44px;min-width:80px;background:#e3ab40;color:#263c2a;touch-action:manipulation}
.fishing-board-tabs{display:flex;gap:3px;flex-wrap:wrap;margin:5px 0}.fishing-board-tabs button{min-height:44px;flex:1;padding:4px;font-size:10px}.fishing-board-tabs button[aria-pressed="true"]{background:#e5bd49;color:#293c29}
.fishing-board table{width:100%;font-size:11px}.fishing-board td,.fishing-board th{padding:4px;text-align:left}.fishing-board td:last-child{white-space:nowrap}.fishing-board h3{font-size:13px;margin:4px 0}
#scene[data-location="fishing"]:not(.fighting) #pet[role="button"]{pointer-events:auto}

.fishing-board-tabs button{background:#c9d2ae;color:#30432e;border:1px solid #81936c;border-radius:5px}.fishing-board>small{font-size:10px;display:block;margin-top:5px}
@media(max-width:350px){#fishing-achievement small{display:none}}

/* The full character rectangle receives taps; decorative SVG paths cannot steal them. */
#scene[data-location="fishing"]:not(.fighting) #pet[role="button"] *{pointer-events:none}

/* One native button ABOVE both character and rod artwork, below catch dialogs. */
#fishing-cast-target{position:absolute;left:42%;top:22%;width:40%;height:72%;min-width:44px;min-height:44px;z-index:9;background:transparent;border:0;padding:0;margin:0;box-shadow:none;appearance:none;-webkit-appearance:none;border-radius:8px;pointer-events:auto;touch-action:manipulation;cursor:pointer;transform:none}
#fishing-cast-target:active{transform:none;background:transparent}
#fishing-cast-target:disabled{opacity:1;cursor:default}
#fishing-cast-target:focus-visible{outline:2px dashed #f9dc79;outline-offset:-2px}
/* Keep fishing status over the lower-left riverbank while allowing taps through to the can. */
#scene[data-location="fishing"] .fishing-status{top:auto;bottom:3%}
/* A fixed square touch target keeps the close outline circular on small screens. */
#modal .modal-header .close-button{width:44px;height:44px;min-width:44px;min-height:44px;flex:0 0 44px;aspect-ratio:1;border-radius:50%;padding:0;display:grid;place-items:center;line-height:1}

/* Alpha 1.0.4: compact river overlays, protected original scene geometry. */
#scene[data-location="fishing"] .fishing-status{left:28%;bottom:2%;width:20%;padding:3px;border-width:1px;font-size:10px;pointer-events:none}
.fishing-status .fishing-hint{position:absolute;bottom:100%;left:20%;width:135%;background:#f5ecd2ee;border-radius:8px;padding:4px;margin-bottom:5px}
.fishing-result:not(.giant-result){width:39%;padding:4px;max-height:92%;cursor:pointer}
.fishing-result .fishing-weight{font-size:1.25em}.fishing-result small{font-size:.75em}
.fishing-result[data-species="pikeminnow"] .catch-fish{width:48%;height:28px}
.fishing-result[data-species="trout"] .catch-fish{width:72%;height:40px}
.fishing-result[data-species="salmon"] .catch-fish{width:100%;height:54px}
.find-result .catch-fish,.find-result .river-item-icon{height:35px}
.giant-result{pointer-events:auto;cursor:pointer}
.giant-result .catch-fish{left:50%;top:auto;bottom:18%;width:var(--sturgeon-width);height:auto;max-height:68%;object-fit:contain;transform:translateX(-50%);animation:none}
.giant-result .fishing-result-heading{width:max-content;max-width:100%;box-sizing:border-box;padding:3px 5px;font-size:.85em}
.giant-result .fishing-result-footer{width:74%;padding:3px}
#bin-button.cooling #bin-label{background:#efb9b0}

#confinement-scene{position:absolute;inset:0;z-index:100;overflow:hidden;background:#496052}
#confinement-scene[hidden]{display:none}
.confinement-art{width:100%;height:100%;display:block}
.confinement-countdown{position:absolute;top:3%;left:3%;max-width:94%;padding:5px 7px;border:2px solid #294a39;border-radius:9px;box-sizing:border-box;font:clamp(10px,2.8vw,15px)/1.2 Arial,sans-serif;background:#f1efd9;color:#172c22}
.confinement-countdown strong,.confinement-countdown b{display:block}.confinement-countdown b{margin-top:2px}
.confinement-countdown.hospital{background:#183a2cee;color:#f8f1d5;font-size:clamp(10px,2.5vw,14px);left:4%;right:4%;text-align:center}
#scene.confined>*:not(#confinement-scene){visibility:hidden!important;pointer-events:none!important}
body:has(#scene.confined) .controls button:disabled{opacity:1}

#test-tools{max-width:540px;margin:16px auto;padding:12px;color:#f5e9be;background:#173c30;border:1px solid #d7b65e;border-radius:8px;font:13px Arial,sans-serif}#test-tools summary{cursor:pointer}#test-tools button{min-height:44px;margin:4px}

.giant-result .catch-fish{bottom:0;max-height:none;height:auto;aspect-ratio:748/290}
.giant-result .fishing-result-footer{top:22%;bottom:auto;width:46%;display:block;background:#f5ecd2ed}
.giant-result .fishing-result-footer small{display:none}
.giant-result .fishing-actions{display:flex}
.fishing-result:not(.giant-result) .fishing-result-footer>small:last-child{display:none}
.fishing-result[data-species="salmon"] .catch-fish{height:46px}

#scene[data-location="fishing"] .fishing-status small{font-size:10px;line-height:1.1;margin-top:1px}
.fishing-result small{font-size:10px;line-height:1.1}

/* Approved final river counter: one number, below the bin hit target. */
#scene[data-location="fishing"] .fishing-progress{position:absolute;left:2%;bottom:2%;padding:3px 6px;border:1px solid #546243;border-radius:5px;background:#f5ecd2ed;font:bold 11px/1 Arial,sans-serif;pointer-events:none;white-space:nowrap}
.fishing-hint-alone{position:absolute;left:44%;bottom:65%;width:40%;padding:4px;border-radius:8px;background:#f5ecd2ed;font:10px/1.15 Arial,sans-serif}
.giant-result .fishing-result-footer{width:30%}
.giant-result .fishing-result-footer small{display:block;font-size:10px;margin-bottom:3px}
.fishing-result:not(.giant-result) .fishing-result-footer>small:first-child{display:block}

/* Alpha 1.1: original scene geometry retained. */
.fishing-actions [data-fishing-action="keep"]{min-width:54px;min-height:44px;padding:4px 10px;font-size:11px;width:auto}
.river-collect{position:absolute;left:3%;top:58%;max-width:28%;background:#e3e8c8e8;border:1px solid #75836c;border-radius:8px;min-height:44px;cursor:pointer;pointer-events:auto;z-index:12;font-size:10px}
.river-collect svg{width:28px;height:28px}.river-collect small{display:block}
#scene #fishing-rod-layer.drinking-rod{animation:river-sway 1.4s ease-in-out infinite;transform-origin:61% 82%}
#scene #pet.river-drinking{animation:river-sway 1.4s ease-in-out infinite;transform-origin:50% 90%}
@keyframes river-sway{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2deg)}}
.inventory-nav{display:flex;align-items:center;gap:2px;min-width:0;margin-bottom:10px}
.inventory-nav .inventory-tabs{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:20%;gap:0;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;flex:1;min-width:0;margin:0;touch-action:pan-x}
.inventory-nav .inventory-tabs button{min-width:0;min-height:44px;padding:3px 1px;font-size:8px;white-space:nowrap;scroll-snap-align:start}
.inventory-arrow{flex:0 0 16px;padding:0;min-height:44px;border:0;background:transparent;color:#344b32;font-size:20px}
@keyframes npc-warm-pulse{0%,100%{filter:drop-shadow(0 0 2px #ffe791) drop-shadow(0 0 3px #e9ce6980)}50%{filter:drop-shadow(0 0 4px #ffe791) drop-shadow(0 0 6px #e9ce6990)}}
#scene .pawn-worker .npc-person,#scene .depot-worker .npc-person,#scene .lounge-worker .npc-person{animation:npc-warm-pulse 3.6s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){#scene .npc-person,#scene #fishing-rod-layer.drinking-rod,#scene #pet.river-drinking{animation:none}}


/* Alpha 1.2 overlays: shell, six buttons and viewport geometry unchanged. */
#version-button{display:block;margin:8px auto;background:transparent;color:inherit;border:1px solid #61735e66;border-radius:4px;padding:4px 7px;font:inherit;font-size:9px;cursor:pointer;touch-action:manipulation}
#bin-glow-12{position:absolute;inset:0;width:100%;height:100%;z-index:10;pointer-events:none;overflow:visible}
#bin-glow-12 path{fill:#fff;stroke:none;filter:url(#bin-outer-glow)}
#scene #bin-button{z-index:21!important;min-width:44px;min-height:44px;touch-action:manipulation;pointer-events:auto;opacity:1}
#scene #bin-button:focus-visible{outline:2px solid #fff7c8;outline-offset:3px}
#scene > #bin-label{z-index:22;background:#f4b9b4;color:#442a28;font-size:7px;border:1px solid #9b5d56;pointer-events:none}
#scenery .bin-outline{display:none!important}
.confined-player{position:absolute;pointer-events:none;z-index:1}.confined-player>svg{width:100%;height:100%}.jail-player{left:32%;bottom:7%;width:30%;height:80%}.hospital-player{left:22%;top:4%;width:26%;height:102%;transform:rotate(-53deg);transform-origin:center 70%}.jail-foreground-12{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}.confinement-countdown{z-index:3!important}
#fishing-rod-layer.sturgeon-fight .fishing-tackle{transform-origin:311px 222px;animation:sturgeon-thrash .42s ease-in-out infinite alternate}
@keyframes sturgeon-thrash{0%{transform:rotate(-2deg)}45%{transform:rotate(2deg)}100%{transform:rotate(-1deg)}}

.attacking[data-attack="shoot"] .fight-arm{animation:shoot-recoil .5s ease-out!important;transform-origin:173px 200px}
.muzzle-flash{opacity:0;fill:#ffe67c;stroke:#e68d39;stroke-width:2}.attacking[data-attack="shoot"] .muzzle-flash{animation:muzzle-pop .5s steps(1) both}
.attacking[data-attack="stab"] .fight-arm{animation:needle-stab .4s ease-in-out!important;transform-origin:173px 200px}
.attacking[data-attack="akimbo"] .fight-arm{animation:needle-stab .22s ease-in-out 2!important;transform-origin:173px 200px}
.attacking[data-attack="akimbo"] .second-arm{animation-delay:.11s!important}
.needle-reaction .skin-part{animation:needle-skin .37s linear both}.needle-reaction.akimbo-reaction .skin-part{animation:needle-skin .18s linear 2}
@keyframes shoot-recoil{0%,100%{transform:translateX(0) rotate(-5deg)}20%,60%{transform:translateX(-12px) rotate(-12deg)}40%,80%{transform:translateX(2px) rotate(-5deg)}}
@keyframes muzzle-pop{0%,30%,60%,100%{opacity:0}15%,45%{opacity:1}}
@keyframes needle-stab{0%,100%{transform:translateX(-5px) rotate(8deg)}45%{transform:translateX(19px) rotate(-14deg)}}
@keyframes needle-skin{0%,45%{fill:#5aa3e5}50%,94%{fill:#73bb66}100%{fill:revert-layer}}
.reduced-motion .sturgeon-fight .fishing-tackle,.reduced-motion .sturgeon-fight image{animation-duration:2s!important}


/* Alpha 1.3: keep pickups above the enlarged can target. */
#scene #loot-pop{z-index:24;touch-action:manipulation}
#scene[data-location="camp"] #bin-button{min-width:48px;min-height:48px}
#scene > #bin-label{transform:translateX(-50%);max-width:24%;font-size:clamp(7px,1.5vw,9px)}
#scene > #bin-label span{display:block;font-variant-numeric:tabular-nums}
#alpha13-test-controls{max-width:500px;margin:8px auto;padding:8px;background:#e6dfbd;color:#263e35;border-radius:5px;font:11px monospace}
#alpha13-test-controls button{padding:10px;margin:3px;font:inherit}

/* Collection buttons must sit above the enlarged bin targets. */
#fishing-ui{z-index:25}

/* Keep the complete badge inside the scene, including long unbroken names. */
#scene > #bin-label,#scene[data-location="depot"] > #bin-label{transform:none;right:auto;bottom:auto;max-width:calc(100% - 8px);width:max-content;overflow-wrap:anywhere}

/* One shared cooldown badge, with the searcher and timer on separate rows. */
#scene > #bin-label{display:flex;flex-direction:column;align-items:center;gap:1px;z-index:26;opacity:1;visibility:visible}

/* Only requested scene effects and test helpers; the keychain geometry is unchanged. */
#scene .pawn-worker .npc-person,#scene .depot-worker .npc-person,#scene .vendor-worker .npc-person,#scene .lounge-worker .npc-person,#scene .pawn-worker:hover .npc-person,#scene .depot-worker:hover .npc-person,#scene .vendor-worker:hover .npc-person,#scene .lounge-worker:hover .npc-person{filter:drop-shadow(0 0 5px #fff0a6) drop-shadow(0 0 16px #ffe997)}
#scene .suite-guest-glow{stroke-width:3;stroke-opacity:.9;filter:drop-shadow(0 0 6px #ffe997) drop-shadow(0 0 10px #ffe997)}
#scene[data-location="lodge"] .shop-door-glow path{stroke-width:8;filter:drop-shadow(0 0 8px #f9dc86)}
#event-banner[data-location="depot"]{top:auto;bottom:59%;left:70%;transform:translateX(-50%) rotate(-2deg)}
#scene:not(.fighting):not(.smoke):not(.drink):not(.drugs) #pet{animation:none}
.idle-eyelids{display:none}
@media(prefers-reduced-motion:no-preference){
  body:not(.reduced-motion) #pet[data-idle="blink"] .skid-open-eyes{display:none}
  body:not(.reduced-motion) #pet[data-idle="blink"] .idle-eyelids{display:inline}
}
[data-placement="petraccoon"]{transform-box:fill-box;transform-origin:50% 90%}
[data-placement="petraccoon"][data-motion="walk"]{animation:raccoon-walk 2.4s ease-in-out}
[data-placement="petraccoon"][data-motion="scratch"]{animation:raccoon-scratch .18s ease-in-out 12}
[data-placement="petraccoon"][data-motion="look"]{animation:raccoon-look 2.4s ease-in-out}
@keyframes raccoon-walk{20%{transform:translate(-10px,-2px) rotate(-2deg)}40%{transform:translate(-20px,0) rotate(2deg)}60%{transform:translate(-25px,-2px) rotate(-2deg)}80%{transform:translate(-12px,0) rotate(2deg)}}
@keyframes raccoon-scratch{50%{transform:rotate(2deg) translateY(-2px)}}
@keyframes raccoon-look{30%{transform:rotate(-4deg)}65%{transform:rotate(3deg)}}
#alpha14-test-tools{max-width:600px;margin:20px auto;padding:16px;border:1px solid #919769;border-radius:10px;background:#26382d;font:12px/1.5 var(--mono)}
#alpha14-test-tools summary{cursor:pointer;color:#ffe194}#alpha14-test-tools select,#alpha14-test-tools button{max-width:100%;padding:10px;margin:4px;background:#e6dfb8;color:#293a2b;border:1px solid #9f996a;border-radius:6px}
#tent-sign-text{display:block;width:100%;padding:12px;margin:12px 0;font-size:16px}.edit-sign{margin-left:5px}
.giant-result .catch-fish{pointer-events:auto;cursor:pointer;touch-action:manipulation}
@media(prefers-reduced-motion:reduce){[data-motion]{animation:none!important}}

#scene[data-location="depot"]:not(.inside-shop):not(.fighting)>.pet{left:41%}
.camper-base,.camper-piece{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.camper-at-camp,.camper-outdoor-gear{position:absolute;left:29%;top:28%;width:47%;height:auto;aspect-ratio:1536/1024;object-fit:contain}
.owns-camper.camp-art-active:not(.camper-inside) #tent-entry{left:29%!important;top:28%!important;width:47%!important;height:auto!important;aspect-ratio:1536/1024;border:0;border-radius:0;box-shadow:none;background:transparent;z-index:12;pointer-events:none;overflow:visible;padding:0;transform:none}
.camper-door-target{display:block;width:100%;height:100%;overflow:visible;pointer-events:none}
.camper-door-glow{fill:transparent;stroke:#ffe49c;stroke-width:7;filter:drop-shadow(0 0 8px #ffd968) drop-shadow(0 0 15px #ffd968);pointer-events:all;cursor:pointer}
.owns-camper #tent-entry:focus-visible{outline:none}
.owns-camper #tent-entry:focus-visible .camper-door-glow{stroke:#fff6d3;stroke-width:10}
.owns-camper.camp-art-active:not(.camper-inside) #ground-button{display:none!important}

.camper-inside #bed-button{left:34%!important;top:36%!important;width:31%!important;height:22%!important}
.camper-inside #speech{display:none!important}
.camper-inside #camp-art-layer{transition:filter .3s ease}
#camper-for-sale{position:absolute;left:1%;top:44%;width:38%;height:45%;border:0;background:transparent;padding:0;z-index:9;color:#30241c;cursor:pointer}
#camper-for-sale img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 3px #f5db81)}
#camper-for-sale span{position:absolute;left:35%;top:54%;transform:rotate(-5deg);border:2px solid #3e3429;background:#ffe8af;padding:3px 7px;box-shadow:1px 2px 3px #0008;font:bold clamp(8px,1.2vw,12px)/1.15 sans-serif}
#camper-for-sale[hidden],#skidtendo-play[hidden]{display:none}
.camper-item-preview{width:100%;height:100%;position:relative;background:radial-gradient(ellipse,#dbc29122,transparent 70%)}
.camper-purchase-art{display:block;width:75%;max-height:180px;object-fit:contain;margin:auto}
#camper-test-tools{max-width:760px;margin:12px auto;padding:12px;border:1px solid #b8a97555;border-radius:10px;background:#102b25;color:#eee1ab;font-size:12px}
#camper-test-tools summary{cursor:pointer;font-weight:bold}#camper-test-tools p{margin:8px 0}#camper-test-tools button{min-height:44px;margin:4px;font-size:11px}
#skidtendo-game{position:absolute;inset:0;z-index:80;background:#102527;display:flex;flex-direction:column;border:4px solid #695f51;color:#f2dfa0;font:12px monospace}
#skidtendo-game header,#skidtendo-game footer{display:flex;justify-content:space-between;align-items:center;gap:4px;padding:4px}
#skidtendo-game header b{font-size:clamp(8px,1.4vw,13px)}#skidtendo-game button{min-width:44px;min-height:36px;color:#f2dfa0;background:#3c4540;border:1px solid #9e976e;border-radius:5px;touch-action:none;cursor:pointer}
#skidtendo-game canvas{width:100%;min-height:0;flex:1;object-fit:contain;touch-action:none;image-rendering:pixelated}#skidtendo-game footer span{font-size:clamp(7px,1.2vw,11px)}

/* Unlit exterior: remove the sprite halo and reduce its baked-in highlights. */
.camper-at-camp{filter:brightness(.76) saturate(.84)}
.camper-clearing{filter:brightness(.9) saturate(.88)}
.camper-christmas-ambience{position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;background:radial-gradient(ellipse at 29% 2%,#378bff65,transparent 42%),radial-gradient(ellipse at 47% 17%,#26cc8050,transparent 39%),radial-gradient(ellipse at 67% 13%,#2f8cff55,transparent 38%),radial-gradient(ellipse at 85% 0%,#31dc865c,transparent 45%)}

.camper-outdoor-gear{overflow:visible;pointer-events:none}
#scene.generator-refillable .generator-sprite{filter:drop-shadow(0 0 6px #ffe58a) drop-shadow(0 0 10px #ffe58a99)}
.camper-gear-preview{display:block;width:100%;height:100%;object-fit:contain;padding:5px}
.bbq-cooking-art,.bbq-cooking .bbq-idle,#scene:not(.camper-powered) .generator-window-light,
#scene:not(.camper-powered) .camper-christmas-ambience,#scene:not(.camper-powered) .camper-string-lights ellipse{display:none}
.bbq-cooking .bbq-cooking-art{display:inline}
#scene:not(.camper-powered) .camper-string-lights{filter:saturate(.2) brightness(.55)}
#scene:not(.camper-powered) .camper-piece[data-camper-item="camper-hotplate"],
#scene:not(.camper-powered) .camper-piece[data-camper-item="camper-tv"]{filter:brightness(.7) saturate(.5)}
#camper-gear-controls{position:absolute;left:29%;top:28%;width:47%;aspect-ratio:1536/1024;z-index:16;pointer-events:none}
#camper-gear-controls[hidden],#camper-gear-controls button[hidden]{display:none}
#camper-gear-controls button,#skidtendo-play{position:absolute;pointer-events:auto;cursor:pointer;touch-action:manipulation;background:transparent;border:0;padding:0;min-width:44px;min-height:44px;transform:translate(-50%,-50%)}
#use-generator{left:2.4%;top:94%;width:21.4%;height:31%}
#use-bbq{left:103.8%;top:80.7%;width:24.5%;height:57%}
#skidtendo-play{left:87%;top:52%;width:11%;height:14%;z-index:16}
#camper-gear-controls button:focus-visible,#skidtendo-play:focus-visible{outline:2px solid #ffe49c;border-radius:6px}

/* Pump four, the separate squeegee bin and the player share the Memorial Park frame. */
#scene[data-location="station"]:not(.fighting)>.pet{left:1%;bottom:2%;width:18%;height:48%;pointer-events:none}
#gas-pump{position:absolute;left:35%;top:34.4%;width:15.5%;height:46.6%;min-width:44px;min-height:44px;background:transparent;border:0;padding:0;z-index:14;touch-action:none;-webkit-touch-callout:none;user-select:none}
#pump-outline{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:11;display:none}
#pump-outline path{fill:#fff;stroke:none;filter:url(#bin-outer-glow)}
#pump-outline,#scene[data-location="station"] #bin-glow-12{opacity:.83}
#filling-jerry-can{position:absolute;left:45%;bottom:15.5%;width:9.1%;aspect-ratio:1;pointer-events:none;z-index:12;filter:drop-shadow(1px 2px 1px #201c19a8)}
#filling-jerry-can svg{display:block;width:100%;height:100%}
#filling-jerry-can[hidden]{display:none}
#gas-pump:focus-visible{outline:2px dotted #fff;outline-offset:-3px}
#gas-pump[hidden],#fuel-meter[hidden]{display:none}
#fuel-meter{position:absolute;right:2%;top:12%;width:clamp(92px,29%,154px);z-index:22;display:grid;gap:3px;padding:6px 7px;border:1px solid #f7d970;border-radius:5px;background:#1b2a29f5;color:#ffedb0;box-shadow:1px 2px 4px #171c1670;pointer-events:none;font:700 clamp(9px,1.6vw,13px)/1.14 var(--mono)}
#fuel-meter output{color:#fff;font-size:1.25em;font-variant-numeric:tabular-nums}
#fuel-meter small{font-size:.91em;color:#f1ead4}
#fuel-meter progress{height:6px;width:100%;accent-color:#f1c950}
#scene:not(.camper-powered) .camper-piece[data-camper-item="camper-fan"],#scene:not(.camper-powered) .camper-piece[data-camper-item="camper-skidtendo"]{filter:brightness(.72) saturate(.5)}

#scene.camper-powered .tv-power-off{display:none}
#fuel-meter .run-time{font-size:.87em;color:#b8d6c0}
#scene[data-location="station"]:not(.fighting) .scene-caption{display:block;position:absolute;inset:4% 2% auto auto;max-width:44%;background:#1c2b2be6;border:1px solid #81796a;border-radius:4px;padding:3px 5px;font:700 clamp(9px,1.45vw,12px)/1.15 var(--mono);color:#fff2bd;pointer-events:none;z-index:12}
#scene[data-location="station"]:has(#fuel-meter:not([hidden])) .scene-caption{display:none}
