:root{--ink:#2d4138;--soft:#6f7c70;--sage:#54735c;--paper:#fffdf5;--line:rgba(59,79,61,.13);--pink:#54735c}
*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;font-family:'Malgun Gothic','Apple SD Gothic Neo',sans-serif;color:var(--ink);background:#d8e3ce;user-select:none;-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,input:focus-visible{outline:2px solid #92b886;outline-offset:4px}[hidden]{display:none!important}
#c{position:fixed;inset:0;width:100%;height:100%;display:block}.glass{background:rgba(255,253,245,.94);border:1px solid rgba(255,255,255,.65);box-shadow:0 5px 24px #24382916;backdrop-filter:blur(16px)}svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#hud{position:fixed;inset:0;pointer-events:none;opacity:0;transition:opacity .5s}#hud.on{opacity:1}#hud button,#hud input{pointer-events:auto}#topbar{position:absolute;top:24px;left:28px;right:28px;display:grid;grid-template-columns:1fr auto 1fr;align-items:start;gap:18px}.brand{display:flex;gap:12px;align-items:center;color:#fffef6;filter:drop-shadow(0 2px 6px #1d302855)}.brandMark{width:42px;height:42px;border:1px solid #fff8;border-radius:50%;display:grid;place-items:center;background:#314d3840}.brandMark svg{width:25px;height:25px}.brand strong{display:block;font-size:17px;letter-spacing:-.6px;font-weight:650}.brand small{display:block;font-size:10px;letter-spacing:1.4px;opacity:.85;margin-top:5px}
#population{display:flex;gap:9px;align-items:center;justify-content:center;min-height:42px;padding:10px 18px;border:1px solid #ffffff36;border-radius:30px;background:#2c483de8;color:#fffdf0;font-size:12px;box-shadow:0 3px 16px #172d251c;backdrop-filter:blur(12px)}#population b{font-size:15px;font-weight:650;font-variant-numeric:tabular-nums}#population svg{width:17px;height:17px;color:#d3e5bd}.presence{height:5px;width:5px;background:#c0d799;border-radius:50%;box-shadow:0 0 8px #c8e3a750}
#chip{justify-self:end;display:flex;gap:15px;align-items:center;border-radius:16px;padding:11px 17px;color:var(--ink);font-size:12px;min-height:46px}#chip>span{display:flex;align-items:center;gap:8px}#chip>span+span{padding-left:15px;border-left:1px solid var(--line)}#chip b{font-size:15px;font-weight:650;min-width:12px;font-variant-numeric:tabular-nums}#chip .walletLabel{font-size:10px;color:var(--soft)}#chip svg{width:18px;height:18px;color:#768465}.coin{display:inline-block;width:15px;height:15px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffeec1,#dfb154 70%);border:1px solid #c3913e88;vertical-align:-2px;margin-right:3px}#chip.bump{animation:walletBump .35s ease}@keyframes walletBump{50%{transform:translateY(-3px)}}
#bottomDock{position:absolute;bottom:26px;left:50%;transform:translateX(-50%);pointer-events:auto}#autoFarm{display:flex;align-items:center;gap:13px;min-width:332px;max-width:calc(100vw - 170px);border-radius:24px;padding:12px 14px;background:#29483bed;color:#fffdf0;border:1px solid #ffffff32;box-shadow:0 8px 32px #172b2733;backdrop-filter:blur(18px)}#btnAuto{width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:50%;background:#e9eedc;color:#3e5c44;transition:background .15s,transform .15s}#btnAuto:hover{background:#f8faec;transform:scale(1.04)}.autoCopy{flex:1;min-width:0}.autoMode{font-size:10px;color:#c4d5b6;letter-spacing:.5px;display:flex;align-items:center;gap:7px;margin-bottom:5px}.autoMode:before{content:'';width:5px;height:5px;border-radius:50%;background:#bad39d}#autoState{display:block;font-size:12px;line-height:1.3;font-weight:500;white-space:nowrap}.dockDivider{width:1px;height:29px;background:#ffffff24;margin:0 2px}#btnEmotes{width:39px;height:39px;border:0;border-radius:50%;background:#ffffff12;display:grid;place-items:center;color:#f5f3df}#btnEmotes:hover,#btnEmotes[aria-expanded=true]{background:#ffffff25}#emotes{display:none;position:absolute;bottom:calc(100% + 12px);left:50%;transform:translateX(-50%);padding:8px;gap:3px;border-radius:20px;pointer-events:auto;background:#fffdf5f5;box-shadow:0 8px 28px #243b2829;border:1px solid #fff9}#emotes.on{display:flex}.em{width:58px;min-height:65px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;border:0;background:transparent;border-radius:13px;color:#5d745c;font-size:10px}.em:hover{background:#e9efdf}.em svg{width:24px;height:24px;stroke-width:1.5}.em canvas{width:25px;height:25px}.em kbd{font-size:8px;opacity:.5;font-family:inherit;margin-left:3px}
#tl{position:absolute;right:26px;bottom:26px;display:flex;gap:7px;pointer-events:auto}.pill{width:44px;height:44px;padding:0;display:grid;place-items:center;border:1px solid #ffffff9c;background:#fffdf4ee;border-radius:15px;color:#50634f;box-shadow:0 3px 15px #25412a13;transition:transform .15s,background .15s}.pill:hover{transform:translateY(-2px);background:#fffef9}.pill.off{color:#a1a392}.pill svg{width:19px;height:19px}.buttonText{display:none}#lookHint{position:absolute;bottom:30px;left:28px;font-size:10px;color:#ffffe9de;text-shadow:0 1px 5px #243b3270;letter-spacing:.2px}
#soundPanel{position:absolute;bottom:83px;right:26px;width:286px;padding:20px;border-radius:22px;background:#fffdf5fa;border:1px solid #fff9;box-shadow:0 9px 36px #203d2b33;pointer-events:auto;backdrop-filter:blur(18px)}.soundHeading{display:flex;justify-content:space-between;align-items:center;font-size:15px;font-weight:650;margin-bottom:20px}.closeIcon{width:28px;height:28px;border:0;border-radius:50%;background:#edf0e5;color:#73806f;display:grid;place-items:center;font-size:18px}.volumeRow{display:block;margin:17px 0}.volumeTop{display:flex;justify-content:space-between;font-size:11px;color:#61705d;margin-bottom:9px}.volumeTop output{color:#8d9885;font-variant-numeric:tabular-nums}input[type=range]{width:100%;height:4px;accent-color:#66855c;cursor:pointer}.soundSamples{display:flex;gap:6px;margin-top:20px}.soundSamples button{flex:1;padding:8px 2px;border:1px solid #dfe5d5;border-radius:10px;background:#f1f4e9;color:#5e7558;font-size:10px}.soundSamples button:hover{background:#e6eddc}#btnMute{width:100%;margin-top:14px;border:0;background:transparent;color:#87917e;font-size:10px;padding:6px}.sampleLabel{font-size:9px;letter-spacing:.3px;color:#8d9885;margin-top:20px}#soundNote{font-size:10px;color:#8b967f;margin-top:9px;min-height:14px}
#toys{position:absolute;left:28px;bottom:65px;display:flex;gap:8px}.toyb{display:none;padding:9px 12px;border:1px solid #fff8;border-radius:13px;font-size:11px;color:var(--ink)}.toyb.on{display:block}
#prompt{position:absolute;bottom:112px;left:50%;transform:translateX(-50%);font-size:12px;border-radius:14px;padding:11px 18px;background:#fffdf2f2;border:1px solid #fff8;box-shadow:0 4px 16px #2d402523;opacity:0;pointer-events:none;transition:opacity .2s;white-space:nowrap}#prompt.on{opacity:1;pointer-events:auto}#prompt:after{content:'↵';font-size:12px;color:#9b9d86;margin-left:15px}#toast{position:absolute;top:87px;left:50%;transform:translate(-50%,-5px);max-width:calc(100vw - 40px);padding:12px 20px;border-radius:18px;font-size:12px;line-height:1.6;background:#fffdf4f2;border:1px solid #fffc;box-shadow:0 4px 24px #29422b20;opacity:0;transition:opacity .25s,transform .25s;text-align:center}#toast.on{opacity:1;transform:translate(-50%,0)}#hint{position:absolute;bottom:115px;left:50%;transform:translateX(-50%);font-size:11px;color:#fffdee;text-shadow:0 1px 5px #203e29a0;max-width:85vw;width:max-content;text-align:center;opacity:0;transition:opacity .3s}#hint.on{opacity:1}
.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:#17302640;backdrop-filter:blur(7px)}.modal.on{display:flex}.box{width:min(750px,94vw);max-height:84vh;overflow:auto;padding:30px;border-radius:28px;background:#fffdf6;border:1px solid #fff9;box-shadow:0 22px 90px #142f3340;scrollbar-width:thin;scrollbar-color:#d7dec9 transparent}.bh{display:flex;align-items:center;gap:12px;padding-bottom:19px;border-bottom:1px solid var(--line);margin-bottom:22px}.bh .t{font-size:22px;font-weight:650;letter-spacing:-.8px}.bh .w{margin-left:auto;font-size:12px;color:var(--soft)}.x{border:1px solid var(--line);border-radius:10px;background:transparent;padding:7px 12px;color:#7a8672;font-size:11px}.sec{font-size:11px;color:#829075;margin:24px 2px 12px;letter-spacing:.5px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:12px;margin-bottom:16px}.card{text-align:center;padding:13px 10px 16px;border:1px solid #dfe6d780;border-radius:19px;background:#f7f8ef;cursor:pointer;transition:transform .16s,background .16s}.card:hover{transform:translateY(-3px);background:#eff3e5}.card.worn{border-color:#86a177;background:#eaf0df}.card.dim{opacity:.45}.card img{width:88px;height:88px;display:block;margin:0 auto 6px}.card .nm{font-size:12px;font-weight:600}.card .pr{font-size:10px;color:#89917e;margin-top:7px;line-height:1.6}.card button{border:0;border-radius:11px;padding:9px 5px;width:100%;background:#e6eddc;color:#5c7250;font-size:10px;cursor:pointer;margin-top:12px}#bagGrid .card{cursor:default}#bagGrid .card:hover{transform:none}#sellBtn{width:100%;padding:15px;border:0;border-radius:16px;background:var(--sage);color:white}#toyView .box{width:min(520px,94vw);text-align:center}#toyCanvas{width:min(440px,86vw);height:min(440px,86vw);touch-action:none;cursor:pointer}#toyTip{font-size:12px;color:var(--soft);margin-top:12px;min-height:20px}
#start{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#1c392117;backdrop-filter:blur(2px);transition:opacity .5s}#start.off{opacity:0;pointer-events:none}#card0{width:min(380px,90vw);padding:36px 32px 30px;text-align:center;border-radius:32px;background:#fffdf2f5;border:1px solid #fff9;box-shadow:0 22px 80px #223c2930}#card0 .startLeaf{display:flex;justify-content:center;color:#6c8960;margin-bottom:20px}#card0 .startLeaf svg{width:41px;height:41px;stroke-width:1.2}#card0 h1{font-size:29px;font-weight:650;letter-spacing:-1.5px;margin:0}#card0 .sub{color:#89917e;font-size:12px;line-height:1.9;margin:18px 0 28px}#go{width:100%;padding:15px;border:0;border-radius:15px;background:#59774e;color:#fffdf0;font-size:14px;font-weight:600;box-shadow:0 4px 12px #436d3426}#go:disabled{background:#d9dfce;color:#9ca58f}.heart-c{color:#da8a96}
@media(max-width:700px){#topbar{top:16px;left:16px;right:16px;gap:10px;grid-template-columns:1fr auto}.brand{gap:8px}.brandMark{width:31px;height:31px}.brandMark svg{width:20px;height:20px}.brand strong{font-size:13px}.brand small{font-size:8px;letter-spacing:.4px;margin-top:3px}#population{grid-column:1/3;grid-row:2;justify-self:center;padding:8px 15px;min-height:35px;font-size:11px}#chip{grid-column:2;grid-row:1;padding:8px 12px;min-height:38px;border-radius:13px;gap:9px}#chip>span+span{padding-left:9px}#chip .walletLabel{display:none}#chip b{font-size:13px}#chip svg{width:15px;height:15px}#toast{top:110px;font-size:11px;padding:10px 16px;width:max-content}#bottomDock{bottom:19px}#autoFarm{min-width:267px;max-width:calc(100vw - 30px);padding:10px 11px;gap:10px;border-radius:22px}#autoState{font-size:11px}.autoMode{font-size:9px}#tl{right:14px;bottom:102px;gap:6px}.pill{width:38px;height:38px;border-radius:13px}#soundPanel{bottom:150px;right:14px;width:min(286px,calc(100vw - 28px))}#lookHint{display:none}#toys{left:14px;bottom:105px;flex-direction:column;gap:5px}.toyb{font-size:10px;padding:7px 10px}#hint{bottom:102px;font-size:10px}#prompt{bottom:153px;font-size:11px}#emotes{bottom:calc(100% + 10px)}.em{width:49px;min-height:60px}.em kbd{display:none}.box{padding:23px 17px;border-radius:24px}.bh{gap:9px;flex-wrap:wrap}.bh .t{font-size:19px}.bh .w{font-size:10px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.card img{width:80px;height:80px}}
.card.dim{opacity:1;background:#f8f9f2}.card.dim img{opacity:.78}.card .pr{font-size:11px;color:#7b886c}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
