@font-face{font-family:'Gamja Flower';src:url('gamja-title.woff2');font-style:normal;font-weight:400;font-display:swap}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:#f4f1e9;color:#3d3c46;font-family:Arial,'Apple SD Gothic Neo',sans-serif;user-select:none}header{position:absolute;z-index:2;top:0;left:0;width:100%;padding:22px 26px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.brand{font-size:25px;letter-spacing:-1.5px;font-weight:900;text-decoration:none;color:#393844;pointer-events:auto}.brand span{color:#9587ca}button{border:0;font:inherit;cursor:pointer;color:inherit;touch-action:manipulation}#reset{width:42px;height:42px;border:1px solid #dedbd5;border-radius:50%;background:transparent;pointer-events:auto}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}main,canvas{width:100%;height:100%;display:block}canvas{touch-action:none;cursor:grab;outline:none}canvas:active{cursor:grabbing}canvas:focus-visible{box-shadow:inset 0 0 0 3px #a99bd0}.hint{position:absolute;top:calc(50% + 173px);width:100%;text-align:center;font-size:13px;letter-spacing:2px;color:#9b969f;pointer-events:none;transition:opacity .5s}.hint.hidden{opacity:0}nav{position:absolute;bottom:max(32px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:6px;background:#fffcf6d9;padding:8px;border:1px solid #fff;border-radius:24px;box-shadow:0 8px 35px #53485b0c;backdrop-filter:blur(16px)}nav button{display:flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap;padding:16px 22px;border-radius:17px;background:transparent;font-size:13px;font-weight:600;transition:background .15s,transform .15s}nav button:hover{background:#eeebf4}nav button:active{transform:scale(.94)}nav button[aria-pressed=true]{background:#ded5f0;color:#655486}button:focus-visible{outline:2px solid #8d79b3;outline-offset:3px}@media(max-width:600px){header{padding:16px}.brand{font-size:23px}nav{bottom:24px;padding:6px;border-radius:21px}nav button{padding:15px 16px;gap:7px;font-size:12px}nav svg{width:19px}.hint{font-size:12px}}
.divider{width:1px;background:#dedbd5;margin:10px 4px}nav button{padding:14px 16px}nav button[data-face][aria-pressed=true]{background:#ded5f0;color:#655486}.hint{top:auto;bottom:124px}@media(max-width:600px){nav{gap:1px;max-width:calc(100% - 24px);width:max-content}nav button{flex-direction:column;gap:5px;padding:10px 12px;font-size:11px}nav svg{width:20px;height:20px}.divider{margin:8px 2px}.hint{bottom:117px}}

.hp-meter{--hp:1;position:absolute;z-index:3;top:72px;left:26px;display:flex;align-items:center;pointer-events:none}.hp-profile{position:relative;z-index:1;display:grid;place-items:center;width:46px;height:46px;border:2px solid #76584b;border-radius:50%;background:#fffcf5;flex:none;overflow:hidden}.hp-profile svg{display:block;width:40px;height:37px;fill:none;stroke:none}.hp-track{position:relative;display:block;width:170px;height:21px;margin-left:-8px;overflow:hidden;border:2px solid #76584b;border-radius:0 11px 11px 0;background:#e7dfd5}.hp-fill,.hp-trail{position:absolute;inset:0;border-radius:0 8px 8px 0;transform-origin:left;transform:scaleX(var(--hp))}.hp-fill{background:#d96766;transition:transform .16s ease-out,background .2s}.hp-trail{background:#e9b599;transition:transform .5s ease-out .18s}.hp-meter[data-low=true] .hp-fill{background:#c8444c}@media(max-width:600px){.hp-meter{top:66px;left:16px}.hp-profile{width:42px;height:42px}.hp-profile svg{width:36px;height:34px}.hp-track{width:155px;height:19px}}
@media(prefers-reduced-motion:reduce){.hp-fill,.hp-trail{transition:none}}

.brand{font-family:'Gamja Flower','Apple SD Gothic Neo',sans-serif;font-size:28px;font-weight:400;letter-spacing:0;line-height:1.1}@media(max-width:600px){.brand{font-size:26px}}

.header-actions{display:flex;gap:8px;align-items:center;pointer-events:auto}#sound-toggle{width:42px;height:42px;display:grid;place-items:center;border:1px solid #dedbd5;border-radius:50%;background:transparent}#sound-toggle .sound-muted{display:none}#sound-toggle[aria-pressed="true"] .sound-muted{display:block}#sound-toggle[aria-pressed="true"] .sound-waves{display:none}
