.chokoro-peek{position:fixed;left:8px;bottom:calc(var(--bottom-nav-height,60px) + 12px);z-index:30;display:flex;align-items:flex-end;gap:4px;animation:chokoro-hello .65s ease-out both}
.chokoro-peek[hidden]{display:none}
.chokoro-peek #chokoro-start{border:0;background:transparent;color:#4a2c1a;font:inherit;font-weight:800;cursor:pointer;padding:8px}
.chokoro-peek img{display:block;height:92px;width:72px;object-fit:contain;transform:rotate(12deg)}
.chokoro-peek span{display:block;background:#fffaf2;border:1px solid #b99b73;border-radius:14px;padding:7px 10px;font-size:12px}
#chokoro-hide{border:1px solid #b99b73;border-radius:50%;width:36px;height:36px;background:#fffaf2;cursor:pointer;font-size:20px}
#chokoro-dialog{margin:auto;width:min(94vw,660px);max-height:90dvh;overflow:auto;border:1px solid #b99b73;border-radius:24px;padding:24px;background:#fffaf2;color:#4a2c1a}
#chokoro-dialog::backdrop{background:#24170eb3}
.chokoro-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.chokoro-dialog-head h2{font-size:24px}
#chokoro-board{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0}
.chokoro-spot{height:130px;min-width:0;background:#e7efcf;border:2px solid #abc17a;border-radius:18px;font-size:38px;cursor:pointer;display:grid;place-items:center}
.chokoro-spot:disabled{opacity:1;color:#4a2c1a;cursor:default}
.chokoro-spot.is-found{background:#fff0ca;border-color:#b98225}
.chokoro-spot img{max-width:100%;height:110px;object-fit:contain}
#chokoro-collection{display:flex;flex-wrap:wrap;gap:6px;font-size:12px}
#chokoro-collection span{padding:6px 9px;border:1px solid #d5c6af;border-radius:8px}
#chokoro-collection .found{background:#edf3d9;color:#35501c}
.chokoro-invite{text-align:center;padding:24px;border:1px solid #d5c6af;border-radius:20px;margin:24px auto;max-width:720px;background:#fffaf2}
@keyframes chokoro-hello{from{transform:translateX(-120%)}to{transform:translateX(0)}}
@media(max-width:480px){#chokoro-board{grid-template-columns:repeat(3,1fr)}.chokoro-spot{height:112px}.chokoro-spot img{height:96px}}
@media(prefers-reduced-motion:reduce){.chokoro-peek{animation:none}}
.reading-reduced-motion .chokoro-peek{animation:none}
.reading-simple .chokoro-peek{display:none}
.chokoro-right{left:auto;right:8px;bottom:calc(var(--bottom-nav-height,0px) + 150px);flex-direction:row-reverse}
.chokoro-right img{transform:rotate(-12deg)}
.modal-open .chokoro-peek,.nav-open .chokoro-peek{visibility:hidden}
#chokoro-game-select{display:block;width:100%;font:inherit;padding:12px;border:1px solid #94795c;border-radius:10px;margin:10px 0}
#chokoro-message{min-height:3em;line-height:1.7;margin:12px 0}
.chokoro-question-image{grid-column:1/-1;display:flex;justify-content:center}
.chokoro-question-image img{height:150px;width:auto}
#chokoro-board button{font-size:clamp(16px,3vw,24px);font-weight:700}
#chokoro-board button:focus-visible{outline:3px solid #005fcc;outline-offset:3px}
#chokoro-dialog.is-mission{background:#17283a;color:#fffaf2;border:5px double #fff4d6;border-radius:16px;width:min(94vw,760px);padding:22px;box-sizing:border-box}
#chokoro-dialog.is-mission .chokoro-dialog-head h2{color:#fffaf2;font-size:clamp(18px,4.5vw,25px)}
#chokoro-mission[hidden],#chokoro-game-content[hidden]{display:none}
#chokoro-mission h3{font-size:clamp(20px,5vw,28px);color:#ffe39a;margin:8px 0 12px}
#chokoro-mission p{line-height:1.8;overflow-wrap:anywhere}
.chokoro-quest-tag{font-weight:800;letter-spacing:.15em;color:#ffe39a;margin-top:16px}
.chokoro-quest-party{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.chokoro-quest-card{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:12px 6px;background:#253e53;color:#fffaf2;border:2px solid #a9bbca;border-radius:10px;font:inherit;cursor:pointer}
.chokoro-quest-card img{width:64px;height:84px;object-fit:contain}
.chokoro-quest-card strong{font-size:clamp(12px,3.5vw,15px);line-height:1.5}
.chokoro-quest-card-state{font-size:12px;color:#d5e4f0}
.chokoro-quest-card.is-met{border-color:#ffda77;background:#334a42}
.chokoro-quest-card:focus-visible{outline:3px solid #ffda77;outline-offset:3px}
.chokoro-quest-speech{padding:14px;border:3px double #e2e9ef;border-radius:10px;background:#102030;min-height:5em}
.chokoro-quest-progress{font-weight:800;color:#ffe39a;margin:12px 0}
.chokoro-quest-note{font-size:13px;margin:14px 0 8px;color:#dae4ed}
#chokoro-mission a{color:#ffe39a;text-decoration:underline}
#chokoro-intro-finish{min-height:48px;max-width:100%;white-space:normal}
@media(max-width:480px){#chokoro-dialog.is-mission{padding:16px;width:calc(100vw - 20px);max-height:92dvh}.chokoro-quest-party{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.chokoro-quest-card{padding:10px 4px}.chokoro-quest-card img{height:76px;width:58px}}

/* ゲームの遅延読み込み後も、共通ページと同じ紺・白を維持する。 */
#chokoro-dialog{background:#fff;color:#182a43;border-color:#b9c7d8;border-radius:12px;box-shadow:0 16px 48px #03132f33}
#chokoro-dialog::backdrop{background:#03132fb3}
#chokoro-dialog:not(.is-mission) :is(h2,p,label){color:#182a43}
#chokoro-dialog :is(button,select,a.btn){font:inherit;line-height:1.6;min-height:44px}
#chokoro-dialog .btn{background:#fff;color:#18395e;border:1px solid #73859e;border-radius:6px;padding:10px 16px;box-shadow:none}
#chokoro-dialog .btn-primary{background:#102d53;color:#fff}
#chokoro-game-select{background:#fff;color:#182a43;border-color:#8494aa;border-radius:6px}
.chokoro-spot{background:#eaf0f8;border-color:#b9c7d8;border-radius:8px}
.chokoro-spot:disabled{color:#182a43}
.chokoro-invite{background:#fff;color:#182a43;border-color:#c2cedd;border-radius:8px}
.chokoro-dialog-head{position:sticky;top:-24px;background:inherit;z-index:1;padding-block:8px;align-items:flex-start}
#chokoro-dialog.is-mission .chokoro-dialog-head{background:#17283a}
#chokoro-dialog .guide-actions{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:480px){#chokoro-dialog{padding:16px;width:calc(100vw - 20px);max-height:calc(100dvh - 24px)}.chokoro-dialog-head{top:-16px}#chokoro-board{gap:8px}.chokoro-spot{height:96px}.chokoro-spot img{height:80px}}
body.game-open{overflow:hidden}
body.game-open :is(.app-dock,.chokoro-peek){visibility:hidden;pointer-events:none}
