/* The play page. Builds on ../styles.css. */
.play { padding-top: 40px; padding-bottom: 24px; }
.play-head h1 { margin-bottom: 14px; }
.play-head .sub { max-width: 44em; }

.play-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: start; margin-top: 28px; }

.screen-wrap { min-width: 0; }
#screen {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  background: #000; border: 1px solid var(--line); border-radius: 8px;
  image-rendering: pixelated; image-rendering: crisp-edges;
}
.hint { margin: 14px 0 4px; font-family: var(--mono); font-size: 17px; color: var(--yellow); min-height: 1.6em; }
.hint b { color: #fff; }
.heard { margin: 0; font-family: var(--mono); font-size: 14px; color: var(--muted); min-height: 1.6em; }

.dongle { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 12px; }
.dongle .panel-label { margin: 0 0 10px; }
.chain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.link { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; min-width: 0; position: relative; }
.link + .link::before { content: ""; position: absolute; left: -9px; top: 50%; width: 8px; border-top: 2px solid var(--line); }
.link-name { display: block; font-size: 12px; color: var(--muted); }
.link-value { display: block; font-family: var(--mono); font-size: 17px; color: var(--yellow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.5em; }
.link.fresh { border-color: var(--yellow); }
#scope { display: block; width: 100%; height: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.dongle-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.panel .btn { cursor: pointer; border: 0; font-family: inherit; }
.panel .btn-ghost { border: 1px solid var(--line); }
.panel .btn[aria-pressed="true"] { background: var(--red); color: #fff; border-color: var(--red); }
.mic-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.panel-label { font-size: 13px; color: var(--muted); margin: 20px 0 8px; }

.spells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.spells button {
  font-family: var(--mono); font-size: 14px; padding: 10px 4px; border-radius: 6px;
  border: 1px solid var(--line); border-bottom-width: 3px; background: var(--bg); color: var(--text); cursor: pointer;
}
.spells button:hover { color: #fff; }
.spells button.said { background: var(--yellow); color: #111; border-color: var(--yellow); }
.spells button.wanted { border-color: var(--yellow); }

.options { display: grid; gap: 8px; margin: 20px 0; font-size: 15px; }
.options label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.options input { width: 18px; height: 18px; accent-color: var(--yellow); }

.play-section { padding: 48px 0 8px; border-top: 1px solid var(--line); margin-top: 48px; }
.play-section .split { align-items: start; }
.counters { margin: 0 0 18px; }
.counters th, .counters td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.counters th { color: var(--muted); font-weight: 400; font-size: 13px; }
.counters td:last-child { font-family: var(--mono); color: var(--yellow); }

@media (max-width: 860px) {
  .play-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .play { padding-top: 24px; }
}
