/* css/puzzles.css - My puzzles (on top of prepare.css: .exgrid board layout, and train.css: the board, message, stats) */
#app section#trCard, #app section#pzEmpty { padding: 16px 18px; }   /* prepare.css takes the padding off #app sections */
@media (max-width: 600px) { #app section#trCard { padding: 12px; } }
body[data-page="puzzles"] .exgrid { --exb: clamp(320px, calc(100vh - var(--hdr, 84px) - 200px), 760px); }
.pzwhere { font-size: 13px; color: var(--muted); line-height: 1.5; }
.pzwhere b { color: #e6edf3; }
.pzwhere .tag { display: inline-block; font-size: 11.5px; font-weight: 600; color: #111; background: var(--gold); border-radius: 999px; padding: 1px 9px; margin-right: 6px; }
.trmsg .ev { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--muted); white-space: nowrap; }
.trmsg .kind { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--gold); }
.trmsg .wait { color: var(--muted); font-style: italic; }
.trset .pl select { max-width: 200px; }
#pzMore:empty { display: none; }
#pzMore { margin: 0; }
#pzEmpty p { margin: 0; line-height: 1.6; }
#pzEmpty .btn { margin-top: 12px; }
.privacy { font-size: 12px; color: var(--muted); }
/* phones: the full-screen puzzle screen (puzzles.js focusMode; the layout is train.css body.trfocus). ☰ and the counter
   share the top row; what the puzzle is (pzWhere) is in the ☰ label instead */
@media (max-width: 900px), (max-height: 500px) and (pointer: coarse) {   /* = PHONE in puzzles.js */
  body.trfocus .trback { grid-column: 1; }
  body.trfocus .pzwhere { display: none; }
  body.trfocus #pzMore { order: 7; }
  body.trfocus .trmsg { height: 74px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  body.trfocus .trback { grid-column: 2; grid-row: 1; }
  body.trfocus .trcount { grid-column: 3; grid-row: 1; }
  body.trfocus #pzMore { grid-column: 2 / 4; grid-row: 12; }
}
/* the game viewer (as on Insights) */
#viewDlg { width: min(1200px, calc(100vw - 24px)); height: min(900px, calc(100vh - 40px)); padding: 0; border: 1px solid var(--border); border-radius: 14px; background: #0d1117; color: inherit; }
#viewDlg::backdrop { background: rgba(0, 0, 0, .7); }
.vhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 14px; font: 13px 'Poppins', sans-serif; border-bottom: 1px solid var(--border); }
#viewTitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#viewFrame { width: 100%; height: calc(100% - 46px); border: 0; }
.vright { display: flex; gap: 6px; flex-shrink: 0; }
