:root{--board: #1e4a3a;--chalk: #f5f3e8;--safety: #f7c600;--plate: #faf8f0;--ink: #1c1c1a;--stamp: #c62a18;--display: "BCS Display", "BCS Body", system-ui, sans-serif}*{box-sizing:border-box}[hidden]{display:none!important}html,body{margin:0;height:100%;overflow:hidden;background:#1b1e24;color:#f2f2ee;font-family:BCS Body,system-ui,-apple-system,Hiragino Sans,Noto Sans JP,sans-serif;-webkit-text-size-adjust:100%}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}#view{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none}#hud{position:fixed;top:calc(env(safe-area-inset-top) + 42px);left:12px;right:12px;pointer-events:none;text-shadow:0 1px 3px #000}#gauge-label{display:flex;justify-content:space-between;padding:2px 8px;border-radius:6px 6px 0 0;background:#15181ecc;font-size:14px;text-shadow:none}#gauge{height:10px;border-radius:5px;background:#fff3;overflow:hidden}#gauge-fill{height:100%;width:100%;background:#111;box-shadow:inset 0 0 0 1px #fff6;transition:width .8s ease}#spots{position:fixed;left:12px;right:12px;bottom:calc(env(safe-area-inset-bottom) + 12px);display:flex;gap:8px}#spots button{flex:1;min-height:48px;border:1px solid #fff5;border-radius:10px;background:#15181ecc}#spots button[aria-pressed=true]{background:var(--safety);border-color:var(--safety);color:#15181e;font-weight:700}#ping{position:fixed;width:44px;height:44px;margin:-22px 0 0 -22px;border:2px solid #fff;border-radius:50%;opacity:0;pointer-events:none}#ping.on{animation:ping .45s ease-out}@keyframes ping{0%{opacity:1;transform:scale(.4)}to{opacity:0;transform:scale(1.3)}}#toast{position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom) + 128px);transform:translate(-50%);padding:8px 14px;border-radius:8px;background:#000b;font-size:14px;white-space:nowrap;pointer-events:none}.choice{display:block;width:100%;min-height:48px;margin:0 0 8px;padding:10px 12px;border:1px solid #fff5;border-radius:10px;background:#262a33;text-align:left;line-height:1.4}.choice.primary{border:0;border-bottom:4px solid #a98800;border-radius:6px;background:var(--safety);color:var(--ink);font-size:19px;font-weight:700;text-align:center}.choice:active{transform:translateY(2px)}.sub{display:block;width:100%;min-height:44px;border:0;background:none;color:#c4c6c8}.screen{position:fixed;inset:0;display:flex;flex-direction:column;justify-content:center;padding:24px;background:#15181ecc}.screen h1{margin:0 0 16px;font-size:34px;line-height:1.3}.screen p{margin:0 0 20px;line-height:1.7}.screen .tag{margin:0 0 8px;color:var(--safety);font-size:14px}#spots{gap:6px}#spots button{padding:0 4px;font-size:14px;white-space:nowrap}#ask{position:fixed;right:12px;bottom:calc(env(safe-area-inset-bottom) + 68px);min-height:48px;padding:0 14px;border:1px solid #fff5;border-radius:10px;background:#15181ecc;font-size:14px}#advice{position:fixed;top:calc(env(safe-area-inset-top) + 88px);left:12px;right:12px;padding:10px 12px;border-radius:10px;background:#15181ee6;font-size:15px;line-height:1.6;pointer-events:none}#advice strong{display:block;color:var(--safety);font-size:12px}#stage{position:fixed;inset:0;background:#2a2e36 center top / cover no-repeat}#card{position:fixed;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#101216}#card p{margin:0}#card-time{color:var(--safety);font-family:var(--display);font-size:22px}#card-label{margin-top:6px!important;font-family:var(--display);font-size:34px}#finish{position:fixed;left:12px;bottom:calc(env(safe-area-inset-bottom) + 68px);min-height:48px;padding:0 14px;border:1px solid #fff5;border-radius:10px;background:#15181ecc;font-size:14px}.screen p.credit{margin:12px 0 0;color:#c4c6c8;font-size:12px;line-height:1.5}#voice{position:fixed;top:calc(env(safe-area-inset-top) + 42px);right:12px;min-width:64px;min-height:44px;padding:0 12px;border:1px solid #fff5;border-radius:10px;background:#15181ecc;font-size:14px}#result{justify-content:flex-end;padding-bottom:calc(env(safe-area-inset-bottom) + 20px);background:linear-gradient(transparent 46%,#15181ef0 60%)}#result h1{margin-bottom:4px;font-family:var(--display);font-size:30px;font-weight:400}#result-points{margin:0 0 8px;color:var(--safety);font-family:var(--display);font-size:36px}#result-detail{margin:0 0 14px;padding:0;list-style:none;font-size:15px;line-height:1.6}#unfinished{position:fixed;top:env(safe-area-inset-top);right:0;z-index:1000;padding:4px 12px;border:2px solid #fff;border-width:0 0 2px 2px;border-radius:0 0 0 8px;background:var(--stamp);color:#fff;font-size:17px;font-weight:700;line-height:1.4;box-shadow:0 2px 6px #0008;pointer-events:none}#title{justify-content:space-between;align-items:center;overflow:hidden;padding:calc(34px + env(safe-area-inset-top)) 18px calc(22px + env(safe-area-inset-bottom))}#title:before,#title:after{content:"";position:absolute;left:0;right:0;z-index:2;height:12px;background:repeating-linear-gradient(-45deg,var(--safety) 0 16px,#15181e 16px 32px)}#title:before{top:0}#title:after{bottom:0}#title-back{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:28% 68%;transform-origin:30% 70%;animation:title-back 24s ease-in-out infinite alternate}#title-logo{position:relative;z-index:1;width:min(100%,500px,66vh);margin:0;animation:title-logo .7s cubic-bezier(.2,1.3,.4,1) both}#title-logo img{display:block;width:100%;height:auto;filter:drop-shadow(0 6px 14px #000a)}#title-foot{position:relative;z-index:1;width:min(100%,420px);padding:12px 14px 10px;border-radius:14px;background:#0d0e1bc4}#title-foot p{margin-bottom:14px;text-shadow:0 1px 4px #000}#title-foot .tag{margin-bottom:4px}#title-foot p.credit{margin:10px 0 0}@keyframes title-logo{0%{opacity:0;transform:translateY(-28px) scale(1.08)}}@keyframes title-back{to{transform:scale(1.07)}}@media(prefers-reduced-motion:reduce){#title-back,#title-logo{animation:none}}#sheet{position:fixed;left:0;right:0;bottom:0;max-height:80%;overflow-y:auto;padding:12px 14px calc(env(safe-area-inset-bottom) + 12px);border-top:10px solid transparent;border-image:repeating-linear-gradient(-45deg,var(--safety) 0 14px,var(--ink) 14px 28px) 10 0 0 0 / 10px 0 0 0;background:var(--board) padding-box;color:var(--chalk);counter-reset:pick;overflow-x:hidden}#sheet h2{margin:0 0 10px;color:var(--safety);font-size:23px;font-weight:700;line-height:1.3}#sheet p{margin:0 0 10px;font-size:17px;line-height:1.6;text-wrap:pretty}#sheet a{color:inherit}#sheet p.aside{margin:2px 2px 14px}.bubble{position:relative;margin:0 0 12px;padding:10px 14px;border-radius:16px;background:var(--plate);color:var(--ink)}.bubble:before{content:"";position:absolute;top:-9px;left:calc(50% - 10px);border:10px solid transparent;border-top:0;border-bottom-color:var(--plate)}#sheet .bubble p{margin:0;font-weight:700;line-height:1.55;text-wrap:balance}.bubble .name{display:inline-block;margin-bottom:4px;padding:1px 10px;border-radius:3px;background:var(--safety);font-size:14px;font-weight:700}#sheet p.facts{position:relative;margin:14px 0 10px;padding:11px 11px 7px;border:2px solid #f5f3e88c;font-size:16px;line-height:1.6}#sheet p.facts:before{content:"状況";position:absolute;top:-11px;left:10px;padding:0 8px;background:var(--chalk);color:var(--board);font-size:14px;font-weight:700;line-height:1.4}#sheet p.facts+h2{width:fit-content;margin:2px 0 8px;padding:1px 12px;border-radius:3px;background:var(--safety);color:var(--ink);font-size:21px}#sheet .choice:not(.primary){display:flex;align-items:center;gap:10px;padding:9px 10px;border:0;border-bottom:4px solid #b8b3a2;border-radius:6px;background:var(--plate);color:var(--ink);font-size:16px;font-weight:700;line-height:1.5;text-wrap:balance;counter-increment:pick}#sheet .choice:not(.primary):active{border-bottom-width:1px;margin-bottom:11px;background:#fff1b8}#sheet .choice:not(.primary):before{content:counter(pick,katakana);flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--ink);color:var(--safety);font-size:16px;font-weight:700}#sheet .sub{color:var(--chalk);text-decoration:underline;text-underline-offset:4px}#sheet button:focus-visible,#voice:focus-visible{outline:3px solid var(--safety);outline-offset:2px}.stamp{float:right;display:grid;place-items:center;width:100px;height:100px;margin:-4px 0 0 8px;shape-outside:circle(50%);shape-margin:6px;border:4px double var(--stamp);border-radius:50%;background:var(--plate);color:var(--stamp);font-family:var(--display);font-size:25px;transform:rotate(-12deg);animation:stamp .28s cubic-bezier(.3,1.4,.5,1) both}.stamp.again{width:112px;height:64px;border-style:solid;border-radius:8px;font-size:24px;transform:rotate(-6deg);shape-outside:none}#sheet p.answer-plate{clear:both;margin:0 0 10px;padding:8px 10px;border-left:6px solid var(--safety);border-radius:6px;background:var(--plate);color:var(--ink);font-size:16px;font-weight:700;line-height:1.5}.notes{clear:both;margin:0 0 12px;padding-top:8px;border-top:2px dashed #f5f3e866}#sheet p.note{margin:0 0 6px;color:#dfe6d9;font-size:13px;line-height:1.6}#sheet .notes p.note:first-child{color:var(--chalk);font-size:14px}#sheet p.note a{text-underline-offset:3px}#sheet .disclaimer{display:block;margin-top:4px}@keyframes stamp{0%{opacity:0;transform:rotate(-12deg) scale(2.2)}}#view{transition:transform .3s ease}body:has(#hud:not([hidden])):has(#sheet .facts,#sheet .stamp) #view{transform:translateY(-24%)}@media(max-height:720px){#sheet{max-height:88%;padding-bottom:calc(env(safe-area-inset-bottom) + 24px)}#sheet:after{content:"";display:block;position:sticky;bottom:0;height:24px;margin-bottom:-24px;background:linear-gradient(transparent,var(--board));pointer-events:none}}@media(prefers-reduced-motion:reduce){.stamp{animation:none}#view{transition:none}}
