:root{font-family:system-ui,Noto Sans JP,sans-serif;color:#eefbff;background:#062b32;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,input{font:inherit}button,a{min-height:44px;border-radius:12px}button{color:#062b32;background:#f3b2f2;border:2px solid #ffed9d;font-weight:800;padding:8px 14px;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #68efff;outline-offset:2px}a{display:inline-flex;align-items:center;color:#9bf4ff;padding:6px;text-decoration:none}header{height:48px;display:flex;justify-content:space-between;align-items:center;gap:8px;max-width:1100px;margin:auto;padding:0 8px;background:#0b1d2e}header strong{font-size:clamp(12px,2.8vw,18px)}main{height:calc(100dvh - 48px);max-height:950px;max-width:1100px;margin:auto;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:4px;padding:4px 8px max(4px,env(safe-area-inset-bottom))}.hud{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:36px;font-size:clamp(12px,3vw,17px)}.hud b{color:#f3b2f2}.stage{display:flex;justify-content:center;align-items:center;position:relative;min-height:0;overflow:hidden;background:#07111d;border:1px solid #1f6476;border-radius:12px}canvas{display:block;max-width:100%;max-height:100%;aspect-ratio:1;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;image-rendering:auto}.controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-height:56px}.controls button{font-size:24px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;min-height:52px}.controls button:active{background:#71e9f4}.notice{font-size:12px;color:#b9cbd4;min-height:30px;grid-column:1/-1}.layer{position:absolute;inset:0;overflow:auto;display:flex;align-items:flex-start;justify-content:center;background:#05101be8;padding:12px}.layer[hidden]{display:none}.card{flex-shrink:0;margin-block:auto;max-width:460px;width:100%;padding:16px;border:1px solid #47bfc5;border-radius:16px;background:linear-gradient(150deg,#12344a,#081421);box-shadow:0 8px 60px #0008}.card h1{font-size:clamp(25px,7vw,44px);margin:0;color:#ffe681;line-height:1.2}.card h2{margin:0 0 12px}.card p{line-height:1.6}.card .portrait{width:100px;height:150px;float:right;object-fit:contain}.actions{display:grid;gap:8px;clear:both}.small{font-size:12px;color:#a7c7d5}.settings{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0}.settings label{min-height:44px;display:flex;align-items:center;gap:6px}.settings input[type=range]{width:100px}.result-score{font-size:32px;color:#ffdb56}.badge{color:#7af4e3}body.playing{overflow:hidden}@media(min-aspect-ratio:13/10){main{grid-template-columns:minmax(0,1fr) minmax(230px,30%);grid-template-rows:auto minmax(0,1fr);padding:4px 8px;max-height:none}.stage{grid-column:1;grid-row:1/3}.hud{grid-column:2;grid-row:1;flex-wrap:wrap}.controls{grid-column:2;grid-row:2;align-content:end;grid-template-rows:72px auto}.controls button{min-height:64px}.layer .card{max-width:500px;padding:12px}.card h1{font-size:29px}.card .portrait{height:100px;width:68px}.card p{font-size:13px;margin:8px 0}.actions{grid-template-columns:1fr 1fr}.card .settings{margin:4px 0}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}.controls{grid-template-columns:repeat(3,1fr);grid-template-rows:44px 56px auto}.controls button{font-size:18px;min-height:44px}.controls #fire{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px;background:#79eeff}.controls #fire img{width:40px;height:40px;object-fit:contain}.controls .notice{grid-column:1/-1}.preview{grid-column:1/-1;display:flex;align-items:center;min-height:44px;font-size:13px}.preview[hidden]{display:none}@media(min-aspect-ratio:13/10){.controls{grid-template-rows:44px 64px auto}}button:disabled{opacity:.5;cursor:default}header strong{font-size:clamp(11px,2.8vw,18px)}header a,header button{flex:0 0 auto;white-space:nowrap}header button{padding:8px 10px}header strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.controls{grid-template-columns:1fr;grid-template-rows:48px auto}.controls button{font-size:17px}.controls .notice{min-height:34px}.hud{flex-wrap:wrap}:root{background:#1d1133}.stage{background:#0b0622;border-color:#9b6cff}canvas{cursor:crosshair}.controls{grid-template-rows:86px auto}#pad{background:#acff64;border-color:#fff;color:#25133b;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}#pad[data-down]{background:#d9ffa4;box-shadow:inset 0 0 22px #7d39a5}.hud b{color:#bcff6c}.card{background:linear-gradient(150deg,#382052,#11132a)}@media(min-aspect-ratio:13/10){.controls{grid-template-rows:minmax(88px,180px) auto}}:root{background:#210c13}.controls{grid-template-columns:1fr 1fr;grid-template-rows:88px auto}.controls button{touch-action:none;-webkit-user-select:none;-webkit-touch-callout:none;background:#de3456;color:#fff;font-size:22px}.controls button[data-down]{background:#ffd66b;color:#160d21;box-shadow:0 0 25px #ff7559}.notice{grid-column:1/-1}.stage{background:#190e16;border-color:#d8a448}.card{background:linear-gradient(150deg,#3a1628,#170f1e)}@media(min-aspect-ratio:13/10){.controls{grid-template-rows:130px auto}}canvas{aspect-ratio:3/4}.controls button{background:#e5b248;color:#211017}.stage{border-color:#dbad45}
