/* The Stitchlight panel on /play (shared/stitchlight-panel.js draws nothing; tools/play-page.mjs writes the markup). The panel reuses the
   hub's play-stage, play-info and play-field styles; this file adds only what they do not have: a board plate for the time before a poster
   exists, and the full-window dialog that holds the game's page. Colours are the game's linen and ink. */
.play-board--stitchlight{--board-ground:#d8cbae}
.sl-plate{position:relative;display:block;width:100%;aspect-ratio:600/373;background:#d8cbae}
.sl-plate::before{content:"";position:absolute;inset:16px;border:2px dashed #9c8c6c}

dialog.sl-play{box-sizing:border-box;position:fixed;inset:0;width:100%;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#d8cbae;color:#2a1d15;overflow:hidden}
dialog.sl-play[open]{display:flex;flex-direction:column}
dialog.sl-play::backdrop{background:#2a1d15}
.sl-play-bar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:0 4px 0 16px;border-bottom:1px solid #9c8c6c;font-size:12px;font-weight:600;line-height:1;letter-spacing:1.2px;text-transform:uppercase}
.sl-play-close{flex:none;width:44px;height:44px;border:0;background:none;color:inherit;font:400 28px/1 Georgia,serif;cursor:pointer}
.sl-play-close:is(:hover,:focus-visible){background:#2a1d15;color:#f4ecd6}
.sl-play-frame{display:block;flex:1;min-height:0;width:100%;border:0;background:#d8cbae}

/* Three tabs on a phone: each gets a third of the row, its glyph above its name, so the row never outgrows the screen. */
@media (max-width:640px){
  .play-tabs .play-tab,.play-tabs .play-tab+.play-tab{grid-template-columns:minmax(0,1fr);justify-items:start;align-content:start;gap:6px;min-height:0;padding:12px 8px 14px 0}
  .play-tabs .play-tab+.play-tab{padding-left:10px}
  .play-tabs .play-tab .game-play-glyph{grid-row:auto;width:30px;height:30px}
  .play-tabs .play-tab-name{font-size:18px}
  .play-tabs .play-tab .play-tab-levels{grid-column:auto;font-size:9px;letter-spacing:.8px}
}
