:root{color:#f3e6c8;background:#120c0a;font-family:"Noto Serif","Liberation Serif",Palatino,Times New Roman,serif;font-size:14px;line-height:1.35}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(180deg,#120c0a33,#120c0a8c),url(/sprites/ink.svg) center / cover no-repeat fixed}button,input{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}h1,h2,h3,p{margin:0}a{color:#e4c27a}.shell{width:min(980px,calc(100% - .8rem));margin:0 auto;padding:.45rem 0 .7rem}.top{display:flex;justify-content:space-between;gap:.6rem;align-items:flex-end;margin-bottom:.4rem}.mark{margin:0;color:#e4c27a;font-size:.68rem;letter-spacing:.16em;text-transform:uppercase}h1{font-size:1.15rem;font-weight:650;letter-spacing:.01em}.hint{color:#cbb892;font-size:.75rem;margin-top:.2rem}.layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(250px,.85fr);gap:.45rem;align-items:start}.scene{position:relative;min-height:430px;border-radius:16px;overflow:hidden;border:1px solid rgba(228,194,122,.45);box-shadow:0 12px 32px #00000059;background:#3a2418}.land{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover}.scene-ui{position:relative;z-index:1;min-height:430px;display:flex;flex-direction:column;align-items:center;padding:.55rem .6rem .65rem;background:linear-gradient(180deg,#120c0a47,#120c0a1f 42%,#120c0a8c)}.scene-top,.chips,.skills{display:flex;flex-wrap:wrap;gap:.3rem;width:100%}.scene-top{justify-content:space-between;align-items:flex-start}.hero-card{display:flex;flex-direction:column;align-items:center;gap:.12rem;width:max-content;max-width:46%}.hero-card .foe-sub{color:#f6edd8;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.7)}.hp.hero span{background:linear-gradient(90deg,#1f6b4a,#d7ec9a)}.floater.hurt{color:#ffd0c8;font-size:.95rem}.portrait,.companion{width:56px;height:56px;object-fit:contain;background:#140e0bb8;border:1px solid rgba(228,194,122,.55);border-radius:12px;padding:2px}.companion{width:44px;height:44px}.purse{margin-left:auto;padding:.35rem .6rem .4rem;border-radius:12px;background:#140e0bb8;border:1px solid rgba(228,194,122,.4);text-align:right}.purse span{display:block;color:#cbb892;font-size:.7rem}.purse strong{font-size:1.35rem;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:#f6edd8}.foe{margin:auto 0;width:min(240px,86%);border:1px solid rgba(228,194,122,.35);border-radius:18px;padding:.35rem .4rem .5rem;background:#140e0b6b;display:flex;flex-direction:column;align-items:center;gap:.08rem;position:relative}.foe img{width:min(180px,100%);height:148px;object-fit:contain;filter:drop-shadow(0 8px 8px rgba(0,0,0,.45));pointer-events:none}.foe:active{transform:scale(.98)}.foe.hit img{transform:translateY(3px) scale(.97)}.foe-name{font-weight:700;color:#f6edd8;text-shadow:0 1px 2px rgba(0,0,0,.75)}.foe-sub{color:#f0e2c4;font-size:.75rem;text-shadow:0 1px 2px rgba(0,0,0,.65)}.hp{width:86%;height:7px;border-radius:999px;background:#140e0b8c;overflow:hidden}.hp span{display:block;height:100%;width:100%;border-radius:inherit;background:linear-gradient(90deg,#8f2a22,#e4c27a)}.chips{justify-content:center;margin-top:.4rem}.chip,.skills button,.tab,.buy,.text-btn{border:1px solid rgba(228,194,122,.35);border-radius:999px;background:#140e0bb8;color:#f3e6c8}.chip{padding:.18rem .45rem;font-size:.72rem}.skills{justify-content:center;margin-top:.35rem}.skills button{padding:.35rem .55rem}.sheet{background:#160f0cdb;border:1px solid rgba(228,194,122,.4);border-radius:16px;padding:.5rem;box-shadow:0 12px 28px #00000047;max-height:calc(100vh - 4.2rem);overflow:auto}.group{margin-top:.35rem}.group h2{font-size:.82rem;margin-bottom:.25rem;color:#e4c27a}.row.focus{outline:1px solid #e4c27a}.row{display:flex;justify-content:space-between;gap:.4rem;align-items:center;background:#f3e6c80f;border:1px solid rgba(228,194,122,.16);border-radius:10px;padding:.35rem .45rem;margin-bottom:.28rem}.pixel{width:28px;height:28px;flex:none;image-rendering:pixelated;background:#1a120e;border-radius:6px;border:1px solid rgba(228,194,122,.3)}.row .meta{flex:1;min-width:0}.row b{font-size:.86rem}.tabs.shop{margin:.15rem 0 .35rem;flex-wrap:wrap}.row button{white-space:nowrap;border:0;border-radius:8px;background:#8f2a22;color:#f6edd8;padding:.28rem .45rem;min-width:4.2rem;font-size:.75rem}.floater.crit{color:#e4c27a;font-size:1.25rem}.tabs{display:flex;flex-wrap:wrap;gap:.25rem;margin-bottom:.35rem}.tab{padding:.28rem .5rem;color:#f3e6c8;font-size:.78rem}.tab.on{background:#8f2a22;color:#f6edd8;border-color:#e4c27a}.card,.build{background:#160f0ceb;border:1px solid rgba(228,194,122,.45);border-radius:14px;padding:.7rem .75rem;margin-bottom:.4rem}.build h3,.card h2{font-size:1rem;margin-bottom:.15rem;color:#e4c27a}.build p,.card p{color:#cbb892;font-size:.85rem}.buy,.text-btn,.card button,.build button{margin-top:.35rem;padding:.4rem .7rem;border-radius:10px;background:#8f2a22;color:#f6edd8;border:1px solid rgba(228,194,122,.4)}.buy.ghost,.text-btn,.card button.ghost{background:transparent;color:#e4c27a}.modal{position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;pointer-events:auto;display:grid;place-items:center;padding:.7rem;background:#0c08068c}.modal .card{width:min(280px,100%);text-align:center}.floater{position:absolute;left:50%;top:28%;color:#fff;font-weight:750;font-size:1.15rem;text-shadow:0 2px 8px rgba(0,0,0,.45);animation:rise .7s ease forwards;pointer-events:none}#reset{width:100%;margin-top:.25rem}#log{margin-top:.4rem;color:#cbb892;font-size:.75rem}#log p+p{margin-top:.12rem}@keyframes rise{to{transform:translate(-50%,-28px);opacity:0}}@media(max-width:800px){.layout{grid-template-columns:1fr}.scene,.scene-ui{min-height:320px}.foe img{height:112px}.top{align-items:flex-start}.sheet{max-height:none}}@media(prefers-reduced-motion:reduce){.floater{animation:none}.foe:active,.foe.hit img{transform:none}}
