/* Prologue: only the unnamed woman and the door are interactive. */
#game .opening-targets{position:absolute;inset:0;z-index:8;pointer-events:none}
#game .opening-target{
  position:absolute;display:block;pointer-events:auto;cursor:pointer;
  appearance:none;border:0;padding:0;outline:none;box-shadow:none;
  background:transparent;color:#283f4c;
  touch-action:manipulation;
}
/* Keep the large invisible tap targets without drawing rectangles over the art. */
#game .opening-target:hover,#game .opening-target:focus-visible{
  background:transparent;border:0;outline:none;box-shadow:none;
}
/* Keyboard navigation remains visible on the small text label only. */
#game .opening-target:focus-visible span{
  outline:2px solid #325c76;outline-offset:2px;
}
/* The door-facing Hana is approximately door-height, with her feet on the same floor line. */
#game .opening[data-view="door"] .pixel-opening-hana{left:69%;bottom:25%;height:39%!important}
#game .opening-target-hana{left:62%;bottom:24%;width:14%;height:41%}
#game .opening-target-door{left:43.5%;bottom:28%;width:13%;height:41%}
#game .opening-target span{
  position:absolute;left:50%;bottom:-1px;transform:translate(-50%,100%);
  padding:3px 14px;background:rgba(250,253,255,.95);
  border:1px solid #819aa9;color:#304e62;white-space:nowrap;
  font-size:clamp(11px,1.4cqw,18px);line-height:1.4;pointer-events:none;
}
#game .opening-choice-overlay{z-index:92;background:rgba(8,14,22,.47)}
#game .opening-choice-panel{
  width:min(520px,90%);max-height:88%;overflow-y:auto;padding:clamp(12px,3%,28px);
  background:#fffdf8;color:#332d25;border:2px solid #b18a3c;box-shadow:4px 4px 0 #6c542950;
}
#game .opening-choice-panel h2{
  font-size:clamp(16px,2cqw,25px);font-weight:normal;margin:0 0 12px;
}
#game .opening-choice-list{display:grid;gap:7px}
#game .opening-choice-list button,#game .opening-choice-cancel{
  display:block;width:100%;min-height:42px;padding:8px 12px;
  border:1px solid #cabd9e;background:#fff;color:#332d25;
  font:inherit;font-size:clamp(12px,1.5cqw,19px);text-align:left;cursor:pointer;
}
#game .opening-choice-list button:hover,#game .opening-choice-cancel:hover,
#game .opening-choice-list button:focus-visible,#game .opening-choice-cancel:focus-visible{
  border-color:#956e25;background:#f5ebd8;outline:2px solid #a48244;outline-offset:1px;
}
#game .opening-choice-list button.is-viewed{background:#ecebe7;color:#65615a}
#game .opening-choice-cancel{margin-top:9px}
@container game-viewport (max-height:500px){
  #game .opening-choice-panel{max-height:92%;padding:10px 16px}
  #game .opening-choice-panel h2{margin-bottom:5px}
  #game .opening-choice-list{gap:4px}
  #game .opening-choice-list button,#game .opening-choice-cancel{min-height:34px;padding:4px 9px}
  #game .opening-choice-cancel{margin-top:5px}
  #game .opening-target span{padding:2px 8px}
}
