@font-face{font-family:BpmfHuninn;src:url(/assets/huninn-BoBGNk3P.woff2)format("woff2");font-display:swap}:root{--bg:#f3e9d8;--panel:#fffaf1;--panel-2:#f8efe0;--ink:#2e2a26;--ink-2:#6b5d50;--yellow:#f2c94c;--yellow-dark:#d2a52d;--red:#e0604f;--green:#6fb257;--blue:#5b8fcb;--line:#eadcc4;--tap:52px;--plain-font:"Nunito", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;--font:var(--plain-font)}html:lang(zh-Hant-TW){--font:"BpmfHuninn", var(--plain-font)}*{box-sizing:border-box}html,body{background:radial-gradient(120% 90% at 50% 0%, #fbf3e4 0%, var(--bg) 60%, #ead9bd 100%);height:100%;color:var(--ink);font-family:var(--font);touch-action:none;overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;margin:0;overflow:hidden}#stage{z-index:0;pointer-events:none;width:100%;height:100%;position:fixed;inset:0}#app{z-index:1;flex-direction:column;display:flex;position:fixed;inset:0}button,a.btn{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;background:0 0;border:0;text-decoration:none}button:focus-visible,a.btn:focus-visible{outline:4px solid var(--blue);outline-offset:2px}button:disabled{opacity:.45;cursor:default}.hidden{display:none!important}.ic{flex:none;width:1.25em;height:1.25em;display:inline-flex}.ic svg{width:100%;height:100%}.topbar{padding:max(8px, env(safe-area-inset-top)) 10px 6px;flex:none;align-items:center;gap:8px;min-height:64px;display:flex}.title-wrap{flex:1;justify-content:center;align-items:center;gap:6px;min-width:0;display:flex}.title{white-space:nowrap;text-overflow:ellipsis;background:var(--panel);box-shadow:0 3px 0 var(--line);border-radius:999px;padding:6px 18px;font-size:clamp(17px,3.2vmin,26px);font-weight:900;overflow:hidden}.demo-tag{left:8px;top:calc(env(safe-area-inset-top) + 66px);z-index:20;background:var(--green);color:#fff;white-space:nowrap;pointer-events:none;opacity:.9;border-radius:999px;padding:2px 8px;font-size:12px;position:fixed}.btn.round,.lang{min-width:var(--tap);height:var(--tap);background:var(--panel);box-shadow:0 3px 0 var(--line);border-radius:999px;flex:none;justify-content:center;align-items:center;gap:6px;padding:0 14px;font-weight:800;display:inline-flex}.btn.round .ic{width:24px;height:24px}.back .label{white-space:nowrap;font-size:15px}.lang{gap:0;padding:4px}.lang span{border-radius:999px;align-items:center;height:44px;padding:0 10px;font-size:17px;display:inline-flex}.lang span.on{background:var(--yellow)}@media (max-width:560px){.title{font-size:16px}.back .label{display:none}.btn.round.back{padding:0}.title{padding:5px 12px}.lang span{padding:0 7px;font-size:15px}}.screen{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.card{background:var(--panel);box-shadow:0 4px 0 var(--line), 0 10px 30px #5a3c1e1f;border-radius:24px}.btn{min-height:var(--tap);white-space:nowrap;border-radius:18px;justify-content:center;align-items:center;gap:6px;padding:0 16px;font-size:17px;font-weight:800;display:inline-flex}.btn.primary{background:var(--yellow);box-shadow:0 4px 0 var(--yellow-dark)}.btn.ghost{box-shadow:0 4px 0 var(--line);background:#fff}.btn:active:not(:disabled){box-shadow:none;transform:translateY(2px)}.btn.big{border-radius:22px;min-height:64px;padding:0 28px;font-size:21px}.btn.small{padding:0 12px;font-size:15px}.row{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.home-area{flex:1;min-height:0;position:relative;overflow:hidden}.plate{z-index:2;background:#fffaf1;border:3px solid #e7d3b0;border-radius:16px;flex-direction:column;align-items:center;gap:0;min-width:64px;min-height:48px;padding:4px 12px 5px;display:flex;position:absolute;top:0;left:0;box-shadow:0 3px #d9c39f,0 4px 14px #5032142e}.plate .name{white-space:nowrap;font-size:22px;font-weight:900;line-height:1.25}html:lang(en) .plate .name{font-size:17px}.plate.passed{border-color:var(--yellow);background:#fff6d6}.plate .stars{gap:1px;display:flex}.stars span{width:16px;height:16px;display:inline-flex}.stars span svg{width:100%;height:100%}.stars .on{color:#f2b51d}.stars .off{color:#e3d6bf}.riding .plate,.riding .door-btn{pointer-events:none}.door-btn{z-index:3;background:var(--yellow);min-height:58px;box-shadow:0 4px 0 var(--yellow-dark), 0 0 0 6px #ffeb9699, 0 8px 24px #c8961e66;white-space:nowrap;border-radius:20px;align-items:center;gap:6px;padding:10px 18px;font-size:19px;font-weight:900;animation:1.6s ease-in-out infinite glow;display:flex;position:absolute;top:0;left:0}@keyframes glow{50%{box-shadow:0 4px 0 var(--yellow-dark), 0 0 0 12px #ffeb964d, 0 8px 24px #c8961e80}}.home-card{left:50%;bottom:max(12px, env(safe-area-inset-bottom));text-align:center;z-index:4;width:min(560px,100% - 24px);padding:12px 18px;position:absolute;transform:translate(-50%)}.home-card p{margin:4px 0;font-size:18px;font-weight:700;line-height:1.6}.home-card .lock{color:#b5543f}.home-card .missing{color:var(--ink-2);font-size:16px}.home-card .unlock{color:#3f7d2e}.play-layout{min-height:0;padding:0 4px max(8px, env(safe-area-inset-bottom));flex-direction:column;flex:1;gap:8px;display:flex}.board-area{touch-action:none;flex:1;min-height:0;position:relative}@media (max-width:430px) and (orientation:portrait){.board-area{margin:0 -4px}}.panel{flex-direction:column;flex:none;gap:8px;padding:10px 12px 12px;display:flex}.panel-head{align-items:flex-start;gap:10px;display:flex}.helper-win{background:#f8ecd4;border-radius:16px;flex:none;width:64px;height:78px;overflow:hidden}.helper-win canvas{display:block;width:100%!important;height:100%!important}.head-text{flex:1;min-width:0}.panel-title{color:var(--ink-2);font-size:14px;font-weight:800}.say{margin:2px 0 0;font-size:18px;font-weight:700;line-height:1.65}.feedback{min-height:0;margin:0;font-size:16px;font-weight:700;line-height:1.6}.feedback:empty{display:none}.beat{color:#9a5a1c;margin:2px 0 0;font-size:17px;font-weight:800;line-height:1.6}.beat:empty{display:none}.feedback.good{color:#3f7d2e}.feedback.oops{color:#b5543f}@media (orientation:landscape) and (min-width:700px){.play-layout{flex-direction:row;gap:12px;padding:0 12px 12px}.panel{align-self:center;width:min(420px,38vw);max-height:100%;overflow:auto}.helper-win{width:96px;height:116px}.say{font-size:21px}.row{justify-content:flex-start}}.texts{max-height:calc(7.425em + 8px);overflow-y:auto}@media (orientation:landscape) and (min-width:700px) and (min-height:600px){.texts{max-height:44vh}}@media (max-height:680px) and (orientation:portrait){.topbar{min-height:58px;padding-top:max(6px, env(safe-area-inset-top));padding-bottom:4px}.btn.round,.lang{min-width:48px;height:48px}.lang span{height:40px}.texts{max-height:80.4px}.say{font-size:16px;line-height:1.55}.feedback,.beat{font-size:15px;line-height:1.55}.helper-win{width:52px;height:64px}.btn{min-height:48px;padding:0 12px;font-size:16px}.panel{gap:6px;padding:8px 10px 10px}}.overlay{z-index:10;background:#f3e9d88c;justify-content:center;align-items:center;padding:16px;display:flex;position:absolute;inset:0}.result-card,.setup,.end-card{text-align:center;flex-direction:column;align-items:center;gap:10px;width:min(460px,100%);max-height:100%;padding:20px;display:flex;overflow:auto}.result-card h2,.setup h2,.end-card h2{margin:0;font-size:24px;line-height:1.5}.result-card .stars span{width:48px;height:48px}.result-card p,.setup p{margin:0;font-size:18px;font-weight:700}.result-card .row,.end-card .row{justify-content:center}.choices{gap:8px;width:100%;display:grid}.choices.two{grid-template-columns:1fr 1fr}.choices.four{grid-template-columns:repeat(4,1fr)}@media (max-width:420px){.choices.four{grid-template-columns:1fr 1fr}}.choice{min-height:var(--tap);box-shadow:0 3px 0 var(--line);background:#fff;border:3px solid #0000;border-radius:16px;justify-content:center;align-items:center;gap:8px;padding:6px;font-size:17px;font-weight:800;display:flex}.choice.on{border-color:var(--yellow-dark);background:#fff3c4}.swatch{border-radius:50%;width:22px;height:22px;display:inline-block}.swatch.w{background:#f3e3c3;box-shadow:inset 0 0 0 2px #c9b48f}.swatch.b{background:#6b4a33}.end-card.win{box-shadow:0 4px 0 var(--yellow-dark), 0 0 0 8px #f2c94c80}.toast{z-index:11;border:3px solid var(--yellow);text-align:center;background:#fff3c4;border-radius:16px;max-width:calc(100% - 24px);padding:8px 16px;font-size:17px;font-weight:800;position:absolute;top:10px;left:50%;transform:translate(-50%)}.screen-play .row{grid-template-columns:repeat(3,1fr);display:grid}.screen-play .row .btn{padding:0 8px}@media (max-width:440px){.screen-play .row{gap:6px}.screen-play .row .ic{display:none}.screen-play .row .btn{white-space:normal;padding:0 4px;font-size:14px;line-height:1.2}}
