/* Endgame puzzles: prompt line and the puzzle list. */
.prompt { min-height: 96px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; border: 2px solid var(--ink); background: var(--surface); padding: 10px 12px; }
.prompt .pno { font-family: var(--sans); font-weight: 700; font-size: 20px; }
.prompt .pside { font-weight: 700; background: var(--hl); color: var(--hl-ink); padding: 0 6px; }
.prompt .pempty { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.prompt .ptask { flex-basis: 100%; font-size: 14px; color: var(--ink-2); }
.plist { width: calc(100% - 24px); border-collapse: collapse; margin-top: 4px; font-size: 13px; }
.plist th { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--rule-2); }
.plist td { padding: 4px 4px; border-bottom: 1px solid var(--rule); }
.plist tr.cur td { background: var(--paper-2); }
.plist tr.cur .pbtn { background: var(--hl); color: var(--hl-ink); }
.dojo .plist .pbtn { width: 34px; padding: 3px 0; font-family: var(--mono); font-size: 12px; box-shadow: none; border-width: 1px; }
.pstat { font-family: var(--mono); font-size: 11px; color: var(--g); font-weight: 700; }
.pstat.none { color: var(--muted); font-weight: 400; }
.tried { position: absolute; inset: 22%; z-index: 4; pointer-events: none; }
.tried::before, .tried::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: #ff5a6a; transform: rotate(45deg); }
.tried::after { transform: rotate(-45deg); }
.dojo .board .sq.was-tried { cursor: not-allowed; }
/* puzzle index and explanation */
.pindex { width: 100%; max-width: 760px; border-collapse: collapse; margin: 16px 0 8px; font-size: 14px; }
.pindex th { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; text-align: left; padding: 6px; border-bottom: 2px solid var(--ink); }
.pindex td { padding: 7px 6px; border-bottom: 1px solid var(--rule); }
.pindex td.num { font-family: var(--mono); }
.theme { display: inline-block; font-size: 11.5px; padding: 1px 7px; margin: 0 4px 2px 0; border: 1px solid var(--rule-2); color: var(--ink-2); text-decoration: none; }
.theme:hover { background: var(--hl); color: var(--hl-ink); }
.vwhy { margin: 6px 0; padding-left: 1.2em; font-size: 13px; color: var(--ink-2); }
.explain { border: 2px solid var(--ink); background: var(--surface); padding: 10px 14px; }
.explain summary { cursor: pointer; font-weight: 700; }
.explain .mono { font-family: var(--mono); }
.others { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.others th, .others td { text-align: left; padding: 6px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.others thead th { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--muted); font-weight: 400; border-bottom: 2px solid var(--ink); }
.others tbody th { font-family: var(--mono); }
.others td.num { font-family: var(--mono); white-space: nowrap; }
.pz-go { display: flex; flex-wrap: wrap; gap: 12px; }
/* daily puzzle: the day's result, streak and share */
#daily-card { border: 2px solid var(--ink); }
#daily-card .dres { margin-top: 12px; margin-bottom: 0; font-size: 14px; }
#daily-card .dyet { color: var(--ink-2); }
.dchip { font-weight: 700; padding: 1px 6px; }
.dchip.ok { background: var(--hl); color: var(--hl-ink); }
.dchip.seen { border: 1px solid var(--rule-2); }
.dstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 12px; margin-bottom: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.dstats > div { padding: 8px 8px 8px 0; min-width: 0; }
.dstats > div + div { border-left: 1px solid var(--rule); padding-left: 10px; }
.dstats dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dstats dd { margin: 4px 0 0; font-size: 13px; }
.dnum { font-family: var(--mono); font-weight: 700; font-size: 24px; line-height: 1.1; }
.dnum small { font-size: 11px; font-weight: 400; color: var(--muted); }
.dnum.on { background: linear-gradient(transparent 55%, var(--hl) 55%, var(--hl) 92%, transparent 92%); display: inline-block; }
.dnum.dsmall { font-size: 13px; }
.dshare { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.dmsg { font-size: 13px; color: var(--ink-2); }
.dtext { display: block; width: calc(100% - 24px); margin-top: 8px; font: 12px/1.5 var(--mono); color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule-2); padding: 6px; resize: none; }
.dcrowd { font-size: 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); }
.dcrowd b { background: var(--hl); color: var(--hl-ink); padding: 0 3px; }
.dnote { font-size: 12px; color: var(--muted); margin-top: 10px; }
/* keep the whole puzzle board and "Show answer" on the first desktop screen. dojo.css takes 300px off the window height,
   which fits the reversi dojo; a puzzle page also has the breadcrumbs and this prompt above the board, so its board
   starts about 70px lower and needs 368px taken off. Practice (#pPrompt) has the prompt but no breadcrumbs: 320px.
   On desktops the prompt's two lines are set tighter and it is as tall as the verdict card beside it (phones keep the
   96px box; there the board is below the first screen anyway). The min-height stays so that the board does not jump
   when the daily and practice scripts fill the empty prompt. */
@media (min-width: 920px) {
  .prompt { min-height: 81px; line-height: 1.4; }
  .dojo .left:has(> .prompt) :is(.boardbox, .cboardbox) { max-width: min(580px, calc(100vh - 368px)); }
  .dojo .left:has(> #pPrompt) :is(.boardbox, .cboardbox) { max-width: min(580px, calc(100vh - 320px)); }
}
