/* The complete scene remains visible above a compact spoken turn. */
body #storyOpening18 .spoken-scene21__backdrop{height:100dvh!important;object-fit:contain!important;object-position:center!important}
body #storyOpening18 .spoken-scene21__backfill{object-fit:cover!important;filter:brightness(.55)!important}
body #storyOpening18 .spoken-scene21__speech{
  height:auto!important;min-height:0!important;
  grid-template-rows:auto auto auto!important;align-content:start!important;
  row-gap:8px!important;overflow:visible!important;
}
body #storyOpening18 .spoken-scene21__speech>.spoken-scene21__actions,
body #storyOpening18 .spoken-scene21__speech>.spoken-scene21__choices{margin-top:0!important}

/* The selected volunteer owns a name field inside the same choice bar. */
body #storyOpening18 .refuge-choice-details23>.refuge-choice-card32{
  display:flex;flex-direction:column;min-width:0;min-height:0;
  border:2px solid #a18c5f;background:#4b302a;color:#f4e6c8;
}
body #storyOpening18 .refuge-choice-details23>.refuge-choice-card32:has([data-role=Tank]){background:#2c4131}
body #storyOpening18 .refuge-choice-details23>.refuge-choice-card32:has([data-role=Lead]){background:#44443b}
body #storyOpening18 .refuge-choice-details23>.refuge-choice-card32:has([data-role=Support]){background:#294450}
body #storyOpening18 .refuge-choice-details23>.refuge-choice-card32:has([aria-pressed=true]),
body #storyOpening18 .refuge-choice-details23>.refuge-choice-card32:focus-within{
  outline:3px solid #9ae487;outline-offset:-3px;
}
body #storyOpening18 .refuge-choice-card32>[data-starter]{
  display:grid;grid-template-columns:38px 24px minmax(0,1fr);
  grid-template-rows:auto auto minmax(0,1fr);align-content:start;
  gap:2px 5px;flex:1;min-width:0;min-height:0;width:100%;
  border:0;padding:7px;background:transparent;color:inherit;text-align:left;
  font:17px/1.15 var(--fantasy-copy,Georgia,serif);cursor:pointer;
}
body #storyOpening18 .refuge-choice-card32>[data-starter] img{object-fit:contain}
body #storyOpening18 .refuge-choice-card32>[data-starter] strong{font-size:18px}
body #storyOpening18 .refuge-choice-card32>[data-starter] small{font-size:14px}
body #storyOpening18 .refuge-choice-card32>[data-starter] span{grid-column:1/-1;font-size:15px;line-height:1.2}
body #storyOpening18 .refuge-choice-card32 .refuge-name-edit32{
  display:flex;align-items:center;gap:5px;min-width:0;padding:3px 6px;
  border-top:1px solid #a18c5f;color:#fff1ca;
  font:13px/1.2 system-ui,sans-serif;
}
body #storyOpening18 .refuge-choice-card32 .refuge-name-edit32[hidden]{display:none!important}
body #storyOpening18 .refuge-choice-card32 .refuge-name-edit32 input{
  flex:1;min-width:0;width:100%;max-width:none;height:30px;box-sizing:border-box;
  padding:3px 5px;border:1px solid #bda775;background:#f3e8cf;color:#211b14;
  font:16px/1.2 var(--fantasy-copy,Georgia,serif);
}

@media(max-width:899px){
 body #storyOpening18 .spoken-scene21__speech{left:8px!important;right:8px!important;max-height:calc(100dvh - 24px)!important}
 body #storyOpening18 .spoken-scene21__portrait-plane{bottom:clamp(270px,39dvh,350px)!important}
}
@media(max-width:700px),(max-aspect-ratio:1/1){
 body #storyOpening18 .refuge-selection18>header{min-height:100px!important;box-sizing:border-box!important;padding:54px 8px 2px!important}
 body #storyOpening18 .refuge-selection18>header h1{font-size:20px!important;line-height:1.1!important}
 body #storyOpening18 .refuge-choice-card32>[data-starter]{
  grid-template-columns:28px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto auto;
  gap:2px 4px;padding:4px;
 }
 body #storyOpening18 .refuge-choice-card32>[data-starter] strong{font-size:17px}
 body #storyOpening18 .refuge-choice-card32>[data-starter] span{font-size:15px}
 body #storyOpening18 .refuge-choice-card32 .refuge-name-edit32{font-size:12px}
 body #storyOpening18 .refuge-choice-card32 .refuge-name-edit32 input{height:28px;font-size:14px}
}

/* Keep the selected volunteer within the phone choice grid. */
@media(max-width:700px),(max-aspect-ratio:1/1){
 body #storyOpening18 .refuge-selection18>footer.refuge-selection-footer18{align-items:stretch!important}
 body #storyOpening18 .refuge-choice-details23{height:100%;max-height:100%}
}
