:root{font-family:DM Sans,Noto Sans SC,PingFang SC,Microsoft YaHei,sans-serif;color:#493f50;font-synthesis:none;--ink:#493f50;--purple:#857096;--paper:#fff8eb;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#ddccdf;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}#game{position:fixed;inset:0;width:100%;height:100%;touch-action:none;display:block}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:3px solid #654398;outline-offset:3px}header{position:fixed;inset:calc(23px + var(--safe-top)) 5.2vw auto;display:flex;justify-content:space-between;align-items:center;pointer-events:none}.wordmark{display:flex;align-items:center;gap:9px}.wordmark svg{width:40px;height:40px}.wordmark h1{font-size:18px;line-height:1.22;margin:0;letter-spacing:.055em;font-weight:800}.wordmark span{font:700 9px/1.35 system-ui;letter-spacing:.22em;color:#675970}.level{display:flex;align-items:center;gap:8px}.level span{font-size:11px;font-weight:600}.level b{font:700 19px/1.5 ui-monospace,monospace;border-left:1px solid #a79aab;padding-left:8px}.progressCard{position:fixed;top:calc(var(--safe-top) + 82px);left:50%;transform:translate(-50%);width:min(328px,88vw);padding:12px 16px 8px;border:1px solid #fffaec;background:#fff9ecf2;border-radius:19px;box-shadow:0 3px #ab94ac65,0 7px 19px #55425d12}.progressTop,.progressTop>div,.progressFooter{display:flex;align-items:center}.progressTop,.progressFooter{justify-content:space-between}.progressTop>div{gap:8px}.progressTop i{width:9px;height:9px;background:#92c6a8;border:1px solid #7dad92;border-radius:50%}.progressTop strong{font-size:14px;letter-spacing:.04em}.progressTop #mode{font-size:10px;border-left:1px solid #d9cacf;padding-left:8px;color:#7c6b80}.progressTop>b{color:#745984;font:700 20px/1.2 ui-monospace,monospace}.progressTop small{font-size:11px;margin-left:2px}.track{height:8px;border-radius:8px;background:#e9dce6;margin:8px 0 4px;overflow:hidden;box-shadow:inset 0 1px 2px #7f668b24}.track i{display:block;width:0;height:100%;background:linear-gradient(90deg,#ac8fc6,#9271b1);border-radius:inherit;transition:width .18s}.progressFooter{font-size:11px;color:#756775}.progressFooter button{font-size:11px;font-weight:700;background:transparent;border:0;min-height:29px;padding:3px;color:#695175}.progressFooter button span{font-size:16px;vertical-align:-1px}.actions{position:fixed;left:50%;bottom:calc(var(--safe-bottom) + 158px);transform:translate(-50%)}.pill{border:1px solid #fffaec;border-radius:22px;display:flex;align-items:center;gap:7px;background:#fff7e9f7;font-weight:700;font-size:12px;padding:10px 14px;box-shadow:0 3px #ad96ac82,0 4px 11px #54415c16;white-space:nowrap}.pill svg{height:18px;width:18px;stroke:#80668e;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round;fill:none}footer{position:fixed;left:50%;bottom:calc(var(--safe-bottom) + 18px);transform:translate(-50%);text-align:center;width:min(350px,94vw);pointer-events:none}#gesture{font-size:11px;font-weight:600;letter-spacing:.025em;margin:0 0 9px;color:#65576a;text-shadow:0 1px 4px #fff;background:#fff7ebdc;border-radius:16px;display:inline-block;padding:5px 12px}#tools{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;pointer-events:auto}.tool{position:relative;background:linear-gradient(155deg,#fffaf0,#f6eadb);border:1px solid #fffdf4;box-shadow:0 3px #ae97ab,0 6px 12px #63526b22;min-height:77px;border-radius:19px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:4px 3px 6px;font-weight:700;font-size:12px;transition:transform .15s}.tool[aria-pressed=true]{border:2px solid #8d6ca3;box-shadow:0 3px #91759f,0 6px 12px #63526b22;background:#f8effc}.tool[aria-pressed=true]:after{content:"";position:absolute;right:8px;top:8px;width:6px;height:6px;background:#9b78b3;border-radius:50%}.tool svg{display:block;width:58px;height:40px}.tool:active,.pill:active{transform:translateY(2px)}#cursor,#mark{position:fixed;pointer-events:none;border-radius:50%;transform:translate(-50%,-50%)}#cursor{width:32px;height:32px;border:2px solid #fff9;box-shadow:0 0 2px #806c88}#mark{width:28px;height:28px;border:2px dashed #fff6d5;box-shadow:0 0 0 3px #8b648eaa;animation:pulse 1.2s infinite}@keyframes pulse{50%{box-shadow:0 0 0 7px #8b648e44}}dialog{color:var(--ink);text-align:center;background:var(--paper);border:1px solid #fff;border-radius:27px;box-shadow:0 8px 48px #32233540;padding:27px;width:min(320px,85vw)}dialog::backdrop{background:#4c415955;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.seal{background:#d6eadb;color:#4e8465;width:48px;height:48px;border-radius:50%;font:700 31px/48px sans-serif;margin:auto}dialog h2{margin:12px 0 4px}dialog p{font-size:13px;line-height:1.7}dialog button{width:100%;margin-top:6px;border:0;border-radius:14px;padding:11px;background:#826595;color:#fff;font-weight:700}#again{background:#eee3eb;color:#6e5a79}#fatal{position:fixed;inset:30% 10% auto;background:#fff8e8;border-radius:15px;padding:20px;text-align:center}@media(min-width:720px){header{inset:26px 32px auto}.progressCard{top:22px}.actions{bottom:145px}footer{bottom:18px;width:312px}.tool{min-height:69px}#gesture{margin-bottom:7px}}@media(max-height:640px){header{top:8px}.progressCard{top:55px;padding:6px 13px 3px}.actions{bottom:98px;left:auto;right:12px;transform:none}footer{bottom:7px}.tool{min-height:54px}.tool svg{height:30px}#gesture{margin-bottom:4px}.wordmark svg{width:32px}}.actions{display:flex;gap:7px}.pill[hidden]{display:none}
