*{box-sizing:border-box}body{margin:0;background:#eeeae0;color:#253a33;font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;height:100dvh;display:flex;flex-direction:column;padding:0 clamp(12px,3vw,55px);overflow:hidden}button{font:inherit;color:inherit;cursor:pointer}header,.mast,footer,.brand,.meters{display:flex;align-items:center}header,.mast,footer{justify-content:space-between}header{height:58px;flex:none;border-bottom:1px solid #b5b7a9}.brand{gap:10px;font-size:19px;letter-spacing:-.06em}.logo{display:grid;place-items:center;background:#e66937;color:#fff3da;font:bold 26px/1 monospace;width:30px;height:30px}.eng,small,#tag,#hover{font:700 10px/1.3 ui-monospace,Menlo,monospace;letter-spacing:.12em}.eng{margin-left:2px;color:#657167}#sound{background:transparent;border:1px solid #b9bcae;padding:6px 13px;border-radius:30px;font-size:12px}main{display:flex;flex:1;min-height:0;flex-direction:column}.mast{padding:15px 0 11px}.mast small,footer small{color:#687165}.mast h1{font-size:clamp(30px,4.3vh,50px);line-height:1;margin:4px 0 0;letter-spacing:-.085em}h1 span,h2 span{color:#db683d}.meters{gap:clamp(20px,4vw,65px)}.meters div{min-width:80px}.meters div+div{padding-left:20px;border-left:1px solid #b5b7a9;min-width:130px}.meters small,.meters b{display:block}.meters b{font:700 clamp(20px,3.2vh,37px)/1.3 ui-monospace,Menlo,monospace;letter-spacing:-.07em}#stage{position:relative;flex:1;min-height:0;border:1px solid #6f7568;border-radius:4px;overflow:hidden;background:#bcc6b3}canvas{width:100%;height:100%;display:block;touch-action:none}#tag,#hover,#impact{position:absolute;pointer-events:none}#tag{top:14px;left:14px;background:#34453ee8;color:#fff6da;padding:7px 10px;font-size:9px}#hover{background:#fff4d8;color:#263e37;border:1px solid #546459;padding:6px;transform:translate(-50%,-110%);white-space:nowrap}#impact{bottom:18px;left:50%;transform:translateX(-50%);background:#243b33ec;color:#fff7e4;font-size:14px;padding:8px 17px;border-radius:32px;white-space:nowrap}#impact:empty{display:none}footer{min-height:78px;gap:12px}footer p{margin:4px 0 0;font-size:clamp(13px,1.3vw,20px);font-weight:650}footer button,#again{border:0;background:#253e33;color:white;padding:13px 21px;font-weight:700;border-radius:3px}button:disabled{opacity:.5}#ending{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);background:#fff7e5;box-shadow:6px 8px 0 #293a3080;padding:clamp(18px,4vh,45px);min-width:min(330px,92%);border-top:5px solid #de693b}#ending h2{margin:8px 0;font-size:37px;letter-spacing:-.08em}#ending p{margin:14px 0 2px;font-size:13px}#final{font:700 32px monospace}#details{margin:13px 0;color:#5a675a;font-size:13px;line-height:1.5}#again{width:100%}[hidden]{display:none!important}@media(max-height:550px){header{height:34px}.mast{padding:5px 0}.mast h1{font-size:22px}footer{min-height:48px}}@media(max-width:600px){.eng{display:none}header{height:44px}.meters{gap:9px}.meters div{min-width:55px}.meters div+div{padding-left:9px;min-width:90px}footer button{padding:10px;white-space:nowrap}footer{min-height:72px}}
canvas:focus{outline:0}#pad{display:none}#hover{font-size:11px;letter-spacing:0;border-radius:4px}@media(pointer:coarse){#pad{display:flex;position:absolute;bottom:7px;left:7px;right:7px;justify-content:space-between;align-items:end;pointer-events:none}#pad div{display:grid;grid-template-columns:repeat(3,1fr);gap:3px}#pad button{pointer-events:auto;touch-action:none;background:#22372ee6;color:#fff5df;font-size:12px;border:0;border-radius:4px;min-width:36px;min-height:36px}#pad .walkpad button:first-child{grid-column:2}#pad .walkpad button:nth-child(2){grid-row:2}#pad .walkpad button:nth-child(n+3){grid-row:2}#impact{bottom:88px}}

#arcade,#power{position:absolute;border-radius:5px;background:#253a33ed;color:#fff4d5;padding:9px 14px;font:bold 13px monospace;pointer-events:none}#arcade{right:12px;top:12px}#arcade:empty{display:none}#power{left:50%;bottom:60px;transform:translateX(-50%);width:190px}#power output{float:right}#power div{position:relative;height:9px;margin:8px 0;background:linear-gradient(to right,#809478 90%,#ffae53 90%)}#power i{position:absolute;background:white;width:4px;height:15px;top:-3px}#power small{color:#eee1bd}
#bubble{position:absolute;z-index:2;pointer-events:none;transform:translate(-50%,-100%);max-width:min(270px,80%);width:max-content;padding:9px 14px;background:#fff9e7;color:#263b32;border:2px solid #34493b;border-radius:15px;font-weight:750;box-shadow:2px 3px #31443640}#bubble:after{content:'';position:absolute;bottom:-7px;left:49%;width:10px;height:10px;background:#fff9e7;transform:rotate(45deg);border-right:2px solid #34493b;border-bottom:2px solid #34493b}#ending{width:min(430px,95%);max-height:96%;overflow:auto;padding:18px 22px}#board{border-top:1px solid #cad0bc;margin:10px 0;font-size:14px}#board h3{margin:10px 0 5px}#entry label{display:block;margin:7px 0}#entry input{display:block;width:100%;margin-top:3px;border:1px solid #a1aa97;background:#fffcf4;padding:7px;font:inherit}#entry button{padding:7px 12px;border:0;background:#d97949;color:#231c15;font-weight:bold}#leaders{padding-left:21px;max-height:138px;overflow:auto}#leaders li{padding:4px;overflow-wrap:anywhere}#boardNote{margin:6px 0}
