/* Character selection fills the available viewport, including on narrow displays. */
body:has(#intro:not([hidden])) main{
  max-width:none;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  padding:10px;
}
body:has(#intro:not([hidden])) #game-header{flex:none}
#intro:not([hidden]){
  flex:1;
  min-height:clamp(390px,76dvh,900px);
  padding:clamp(12px,5vh,48px);
  background-position:center;
}
#intro .choices{gap:clamp(10px,3vw,36px)}
#intro .choices button{
  width:clamp(116px,24vw,270px);
  padding:clamp(12px,2vw,26px);
  font:700 clamp(1.3rem,3vw,2.2rem) Pixelify,ui-monospace,monospace;
}
#intro .portrait{width:100%;height:clamp(132px,31dvh,300px)}
.turn-guide{
  width:min(760px,calc(100% - 24px));
  max-height:calc(100dvh - 24px);
  overflow:auto;
  padding:clamp(12px,3vw,24px);
  border:4px solid #5a7da6;
  box-shadow:0 5px #273f65;
  background:#fff6dc;
  color:#263f6d;
}
.turn-guide::backdrop{background:#152542b0}
.guide-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
.guide-heading h2{margin:0;font:700 clamp(1.5rem,4vw,2.4rem) Pixelify,monospace}
.turn-guide button{background:#c7e3fb;color:#243a65;border-color:#49688d;box-shadow:inset 2px 2px #f3faff,0 3px #49688d}
.guide-controls{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.guide-controls button[aria-pressed="true"]{background:#a7eb9f}
.guide-examples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.guide-example{margin:0;padding:8px;background:#e2d3fa;border:2px solid #826da9;text-align:center}
.guide-example figcaption{display:flex;align-items:center;justify-content:center;gap:5px;font-weight:800}
.guide-icon{width:24px;height:24px;image-rendering:pixelated}
.guide-poses{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:4px;
  padding:7px 4px;
  margin-top:7px;
  background:#faf6e4;
  border-bottom:3px solid #ad9267;
}
.guide-poses img{width:100%;height:clamp(70px,15vh,118px);object-fit:contain;object-position:center bottom}
.guide-poses span{font-size:1.45rem;font-weight:800}
.guide-face-left{transform:scaleX(-1)}
.guide-example p{margin:6px 0 0;font-size:.9rem}
@media(max-width:410px){.guide-example figcaption,.guide-example p{font-size:.78rem}.guide-icon{width:16px;height:16px}}
