:root{color:#140e0a;background:#121a2b;font-family:Silkscreen,ui-monospace,monospace}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:#121a2b}button,p,h2,strong,span{font-family:inherit}button{font:inherit;background:#f4e2bc;color:#140e0a;border:3px solid #140e0a;box-shadow:3px 3px #140e0a;padding:8px 10px;cursor:pointer}button:active:not(:disabled){transform:translate(2px,2px);box-shadow:1px 1px #140e0a}button:disabled{opacity:.45;cursor:default}button:focus-visible{outline:3px solid #f0c43a;outline-offset:2px}button.primary{background:#f0c43a}button.danger{background:#e23b2c;color:#fff8ee}button.on{background:#f0c43a}.cc{height:100dvh;display:grid;grid-template-columns:minmax(0,1fr) 92px;grid-template-rows:auto minmax(0,1fr) auto;background:#63b84a;color:#140e0a;overflow:hidden}.cc.dawn{background:#b6c45a}.cc.dusk{background:#e06a48}.cc.night{background:#121a2b;color:#f4e2bc}.cc.night .bar{background:#f0c43a}header,footer{grid-column:1 / -1}header{display:flex;justify-content:space-between;gap:12px;align-items:end;padding:10px 12px 4px}.logo{margin:0;font-weight:700;font-size:16px;letter-spacing:.03em}.bar{display:block;height:4px;width:100%;margin-top:4px;background:#140e0a}.chatter,.notice,.overlay p,.bookgrid p{margin:6px 0 0;font-size:11px;line-height:1.45}.chatter{max-width:46ch}.cash{margin:0;font-size:18px;font-weight:700}.stage{min-width:0;min-height:0;display:grid;place-items:center;padding:4px 0 6px 8px;container-type:size}.frame{position:relative;width:min(100cqw,calc(100cqh * 168 / 292));aspect-ratio:168 / 292}.frame canvas{width:100%;height:100%;display:block;image-rendering:pixelated;background:#143246;cursor:crosshair;touch-action:none}.hotbar{display:flex;flex-direction:column;gap:6px;padding:4px 8px 8px 6px;overflow:auto}.hotbar button{display:flex;flex-direction:column;gap:4px;align-items:flex-start;padding:6px 4px;font-size:9px;line-height:1.3;overflow-wrap:anywhere;box-shadow:2px 2px #140e0a}footer{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:8px}.notice{flex-basis:100%;min-height:2.6em}.overlay{position:absolute;inset:6px;background:#f4e2bc;color:#140e0a;border:4px solid #140e0a;box-shadow:5px 5px #140e0a;padding:10px;overflow:auto;display:flex;flex-direction:column;gap:8px}.overlay h2{margin:4px 0 0;font-size:13px;line-height:1.35;overflow-wrap:anywhere}.overlay p{margin:0}.studio{letter-spacing:.12em;font-size:10px}.row{display:flex;justify-content:space-between;gap:8px;align-items:center;border-top:3px solid #140e0a;padding-top:8px}.row p{margin-top:4px}.pad{position:absolute;left:6px;bottom:6px;width:96px;height:96px;display:grid;grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr;gap:2px;pointer-events:none}.pad button{pointer-events:auto;padding:0;font-size:12px;line-height:1;box-shadow:2px 2px #140e0a;touch-action:none;-webkit-user-select:none;user-select:none}.pad-up{grid-column:2;grid-row:1}.pad-left{grid-column:1;grid-row:2}.pad-right{grid-column:3;grid-row:2}.pad-down{grid-column:2;grid-row:3}.interact{position:absolute;right:8px;bottom:10px;width:44px;height:44px;padding:0;border-radius:0;font-size:16px;box-shadow:3px 3px #140e0a;touch-action:none}.fight,.hook{position:absolute;left:8px;right:8px;bottom:8px;display:flex;flex-direction:column;gap:6px}.fight-name,.hint{margin:0;padding:4px 6px;background:#f4e2bc;color:#140e0a;border:3px solid #140e0a;font-size:11px;line-height:1.4}.track,.meter{position:relative;height:16px;background:#1a120c;border:3px solid #140e0a}.zone{position:absolute;top:0;bottom:0;background:#3f8a32}.peg{position:absolute;top:-4px;left:48%;width:6px;height:22px;margin-left:-3px;background:#f4e2bc;border:2px solid #140e0a}.meter>div{height:100%;width:0;background:#f0c43a}.hook button,.fight button{font-size:13px;padding:12px}.pips{display:flex;gap:4px}.pips i{width:12px;height:12px;background:#d8c8a0;border:2px solid #140e0a;display:block}.pips i.on{background:#f0c43a}.bookgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.bookgrid article{border:3px solid #140e0a;padding:6px;background:#fff6df;display:flex;flex-direction:column;gap:4px}.fishchip{background:#1d5f78;border:3px solid #140e0a;display:grid;place-items:center;min-height:56px}.glyph{width:96px;height:56px;image-rendering:pixelated}.missing{height:40px;background:repeating-linear-gradient(90deg,#1a120c 0 4px,transparent 4px 8px),#2a241c;border:3px solid #140e0a}.actions{display:flex;flex-wrap:wrap;gap:6px}.title-screen{justify-content:flex-end}@media(max-width:640px){.cc{grid-template-columns:minmax(0,1fr) 76px}.logo,.cash{font-size:14px}}
