/* Scene choices sit below the eyelids and above normal transport controls. */
#openingChoice{position:absolute;inset:0;z-index:7;display:flex;align-items:flex-end;justify-content:center;padding:clamp(20px,5vh,60px) clamp(20px,5vw,70px) max(30px,env(safe-area-inset-bottom));box-sizing:border-box;color:#eeeae0;background:linear-gradient(transparent 18%,rgba(16,15,13,.86) 65%,#100f0d);overflow:auto;overscroll-behavior:contain;}
#openingChoice[hidden]{display:none}
.openingChoiceBody{width:min(100%,900px);margin-inline:auto;}
#openingQuestion{font-family:"Songti SC",STSong,serif;font-size:clamp(24px,3vw,36px);font-weight:400;line-height:1.7;letter-spacing:.025em;text-wrap:balance;margin:0 0 8px;max-width:26em;}
#openingChoiceNote{font-size:16px;line-height:1.8;color:#c6c0b4;margin:0 0 24px;max-width:44em;}
#openingActions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 30px;}
#openingActions button{font:inherit;font-size:18px;line-height:1.7;text-align:start;max-width:100%;min-height:48px;padding:7px 0;color:#eeeae0;background:transparent;border:0;border-radius:0;border-bottom:1px solid #777064;cursor:pointer;white-space:normal;overflow-wrap:anywhere;}
#openingActions button:hover{border-bottom-color:#eeeae0;}
#openingActions button:focus-visible{outline:2px solid #eeeae0;outline-offset:5px;}
#openingActions .openingSecondary{font-size:14px;color:#c6c0b4;border-color:transparent;}
#openingChoiceStatus{font-size:14px;line-height:1.6;color:#c6c0b4;margin:20px 0 0;min-height:1.6em;}
#openingChoice[data-mode="blocked"],#openingChoice[data-mode="end"],#openingChoice[data-mode="storyboard"]{background:#100f0d;align-items:center;}
#openingChoice ::selection{background:#eeeae0;color:#100f0d;}
body[data-opening-active="true"] #stage:has(#openingChoice:not([hidden])) :is(#hud,#transport,#memoryEdge,#recordControl,#dot,#hint){visibility:hidden;}
@media(max-width:600px){#openingQuestion{font-size:25px;}#openingActions{align-items:stretch;flex-direction:column;gap:4px;}#openingActions button{font-size:18px;min-height:48px;}#openingActions .openingSecondary{font-size:14px;}.openingChoiceBody{max-width:38em;}#openingChoice{padding-inline:24px;padding-bottom:max(30px,env(safe-area-inset-bottom));}}
@media(max-height:500px){#openingChoice{align-items:center;padding-block:18px;}#openingQuestion{font-size:22px;line-height:1.5;}#openingChoiceNote{margin-bottom:12px;}#openingChoiceStatus{margin-top:10px;}}
@media(prefers-reduced-motion:reduce){#openingChoice *{scroll-behavior:auto;}}

/* In portrait, open-eye SVG also masks the letterbox; choices need the whole stage.
   A real load always restores the eyelid before any new image can appear. */
#stage[data-opening-choice="visible"]:not([data-transition="true"]) #eyelid{visibility:hidden;}
