/* Selection remains visible through its colour, check and label. */
.quiz-mode-picker{border:0;padding:0;margin:24px 0 28px;font-family:inherit}.quiz-mode-picker legend{font-size:14px;font-weight:700;margin-bottom:12px}.quiz-mode-picker>div{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quiz-mode-picker button{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 36%;align-items:stretch;overflow:hidden;padding:0;border:1px solid var(--line);border-radius:12px;text-align:left;background:#fff;color:var(--ink);cursor:pointer;font:inherit;min-height:154px;transition:background .18s,border-color .18s}.quiz-mode-picker button:hover{border-color:var(--orange)}.quiz-mode-picker button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}.quiz-mode-picker strong,.quiz-mode-picker small{display:block}.quiz-mode-picker strong{font-size:17px;margin-bottom:8px}.quiz-mode-picker p,.quiz-mode-picker small{font-size:12px;line-height:1.7}.quiz-mode-picker p{color:var(--muted)}.game-choice-copy{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:32px 18px 20px}.game-choice-image{display:block;width:100%;height:100%;min-height:154px;max-height:180px;object-fit:cover;object-position:50% 40%;border-left:1px solid #ffffff26}.game-choice-image[src*="quiz-sheep"]{object-position:0% center}.choice-state{display:none;position:absolute;left:18px;right:auto;top:10px;font-size:11px;font-weight:700;color:#fff}.quiz-mode-picker button[aria-pressed=true] .choice-state{display:block}.quiz-mode-picker button:focus-visible{outline:3px solid var(--orange);outline-offset:4px}
.toast-game{font-family:"Hiragino Kaku Gothic Pro","Hiragino Kaku Gothic ProN",sans-serif;color:#fff7e8}.toast-stage{aspect-ratio:3/4;position:relative;overflow:hidden;border-radius:18px;background:#221d18}.toast-start,.toast-final,.toast-video{position:absolute;width:100%;height:100%;inset:0;object-fit:cover}.toast-final{opacity:0;transition:opacity 1.8s ease}.toast-revealed .toast-final{opacity:1}.toast-video{z-index:1}.toast-video-playing .toast-final{opacity:0}.toast-top,.toast-bottom{position:absolute;z-index:2;left:0;right:0;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:linear-gradient(#080705ab,transparent)}.toast-top span{font-size:10px;letter-spacing:.08em}.toast-top .sound-toggle{background:#17181499;color:#fff;white-space:nowrap;border:1px solid #fff5}.toast-bottom{top:auto;bottom:0;background:linear-gradient(transparent,#080705cc);padding-top:35px}.toast-bottom strong{font-size:30px}.toast-bottom small{font-size:12px;font-weight:400}.toast-bottom>span{font-size:12px}.toast-dialogue{position:absolute;z-index:3;left:7%;right:12%;top:20%;border:1px solid #ffffff3b;background:#fff9ecef;color:#263332;border-radius:17px;padding:15px 18px;box-shadow:0 4px 24px #0003;animation:toast-bubble .45s ease both}.toast-dialogue:after{content:"";position:absolute;bottom:-12px;left:25px;border-top:13px solid #fff9ecef;border-right:13px solid transparent}.toast-dialogue small{font-size:10px;opacity:.65}.toast-dialogue p{margin:5px 0 0;font-size:clamp(16px,1.6vw,22px);line-height:1.6;font-weight:600}.toast-dialogue.from-her{background:#dcebddf2;left:20%;right:7%;top:26%}.toast-dialogue.from-her:after{border-top-color:#dcebddf2;left:auto;right:30px}.toast-hint{font-size:13px;line-height:1.6;color:#344747;min-height:20px;margin:13px 0 8px}.toast-credit{display:block;font-size:10px;color:#707a73;line-height:1.6}.toast-replay{background:transparent;border:1px solid #9dada4;padding:10px 15px;border-radius:24px;color:#263b3b;margin:8px 0 12px;font:inherit;font-size:12px;cursor:pointer}.toast-dialogue[hidden],.toast-video[hidden]{display:none}@keyframes toast-bubble{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){.quiz-mode-picker>div{grid-template-columns:1fr;gap:10px}.quiz-mode-picker button{padding:0;min-height:140px;grid-template-columns:minmax(0,1fr) 36%}.game-choice-copy{padding:30px 16px 18px}.game-choice-image{min-height:140px;max-height:160px}.quiz-mode-picker strong{font-size:16px}.quiz-mode-picker small{font-size:12px}.choice-state{left:16px;font-size:10px}.toast-stage{max-height:560px;aspect-ratio:3/4}.toast-top span{font-size:9px}.toast-dialogue p{font-size:19px}}@media(prefers-reduced-motion:reduce){.toast-dialogue{animation:none}.toast-final{transition:none}}

/* Stills dissolve between two photographed angles; this is not a generated orbit video. */
.toast-angle{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:var(--camera-angle,0);pointer-events:none}
.toast-camera-step .toast-angle{animation:toast-angle-change 3s ease-in-out both}
.toast-dialogue.from-him{top:auto;bottom:20%}
.toast-dialogue.from-her{top:auto;bottom:18%;left:25%}
.toast-final{z-index:1}
@keyframes toast-angle-change{from{opacity:var(--camera-angle-from,0)}to{opacity:var(--camera-angle,0)}}
@media(prefers-reduced-motion:reduce){.toast-camera-step .toast-angle{animation:none}}

.toast-photo,.toast-photo-next{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.toast-photo{transform:scale(var(--photo-scale,1));transform-origin:58% 47%;filter:saturate(var(--photo-flush,1))}
.toast-photo-next{overflow:hidden}.toast-photo-changing{opacity:0}.toast-photo-changing.photo-ready{opacity:1;transition:opacity 1.1s ease}
.toast-dialogue{--bubble:#fff9ecef;top:auto;bottom:16%;background:var(--bubble);left:8%;right:8%}
.toast-dialogue p{margin:0}.toast-dialogue:after{border:0;top:-17px;bottom:auto;width:22px;height:20px;background:var(--bubble);clip-path:polygon(0 100%,100% 0,100% 100%)}
.toast-dialogue.from-him{bottom:16%}.toast-dialogue.from-him:after{left:auto;right:22%;transform:none}
.toast-dialogue.from-her{--bubble:#f9dce5f2;background:var(--bubble);left:8%;right:8%;bottom:16%}
.toast-dialogue.from-her:after{left:8%;right:auto;transform:scaleX(-1);border:0}
.toast-dialogue.from-sleep:after{display:none}.toast-dialogue.from-sleep{max-width:170px;left:10%;right:auto}
.toast-success .toast-dialogue{bottom:15%}.toast-success .toast-dialogue:after{left:14%}
@media(prefers-reduced-motion:reduce){.toast-photo-changing.photo-ready{transition:none}}

.toast-controls{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.toast-top .voice-toggle{background:#17181499;color:#fff;white-space:nowrap;border:1px solid #fff5;border-radius:20px;padding:7px 10px;font:inherit;font-size:11px;cursor:pointer}.toast-controls .sound-toggle{font-size:11px}.voice-toggle[disabled]{opacity:.6;cursor:default}.toast-audio-status{color:#50635e;font-size:12px;line-height:1.6;margin:6px 0}.toast-audio-status:empty{display:none}@media(max-width:400px){.toast-top{padding:12px;gap:6px}.toast-top>span{max-width:44%;line-height:1.6}.toast-controls{max-width:55%}}

.toast-top>span small{display:block;font:inherit;letter-spacing:.03em;margin-top:4px}

.toast-dialogue.from-sleep{max-width:230px}

.toast-dialogue.from-both{--bubble:#f9e4e9f2;text-align:center}.toast-dialogue.from-both:after{left:auto;right:22%;transform:none}.toast-dialogue.from-both:before{content:"";position:absolute;top:-17px;left:14%;width:22px;height:20px;background:var(--bubble);clip-path:polygon(0 100%,100% 0,100% 100%);transform:scaleX(-1)}

/* Focus the toast game while keeping its lobby and other modes unchanged. */
.toast-home-bottom{display:none}
body:has(#quiz:not([hidden]) .toast-game) .guide-intro{display:none}
body:has(#quiz:not([hidden]) .toast-game) #quiz>.panel-top .back-home{display:none}
body:has(#quiz:not([hidden]) .toast-game) .toast-home-bottom{display:block;text-align:center;margin:28px 0 12px}
.toast-home-bottom .back-home{border:0;background:transparent;color:var(--ink);font:inherit;text-decoration:underline;text-underline-offset:4px;min-height:44px;padding:10px 20px;cursor:pointer}
#quiz-game-slot{scroll-margin-top:16px}
