.live .board-stage > #match-controls[data-phase="waiting"] {
  --guide-launcher-height: 44px;
  --guide-launcher-gap: 14px;
  pointer-events: none;
  gap: var(--guide-launcher-gap);
  transform: translate(-50%, calc(-50% + (var(--guide-launcher-height) + var(--guide-launcher-gap)) / 2));
}
.live .board-stage > #match-controls[data-phase="waiting"] > button { pointer-events: auto; }
#open-play-guide:not([hidden]) {
  min-height: var(--guide-launcher-height);
  padding: 0 18px;
  color: #493422;
  background: #fbf1da;
  border: 1px solid #d4ba8f;
  border-radius: 7px;
  box-shadow: 0 3px 14px #28241165;
  font: 700 14px system-ui, sans-serif;
  white-space: nowrap;
}
#open-play-guide:not(:disabled) { cursor: pointer; }
#open-play-guide:hover:not(:disabled) { background: #fff8e9; }
#open-play-guide:disabled { opacity: .65; }
@media (max-height: 560px) {
  .live .board-stage > #match-controls[data-phase="waiting"] {
    position: fixed;
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 16px);
    gap: 8px;
    flex-direction: row;
    justify-content: center;
  }
  .live .board-stage #match-controls[data-phase="waiting"] > #run-demo:not([hidden]) {
    min-width: 0;
    height: var(--guide-launcher-height);
    padding: 0 14px;
    border: 1px solid #ab8d5f;
    border-radius: 7px;
    box-shadow: 0 3px 14px #28241165;
    font: 700 14px system-ui, sans-serif;
  }
  .live .board-stage #match-controls[data-phase="waiting"] > #run-demo::before {
    content: none;
  }
  .live .board-stage #match-controls[data-phase="waiting"]:has(> button:not([hidden])) > #match-error {
    position: static;
    flex-basis: 100%;
    text-align: center;
  }
}
.play-guide { width: min(690px, calc(100% - 28px)); }
.play-guide h2 { font-size: 36px; }
.play-guide .field-report-rule { margin: 17px 0; }
.guide-rules { counter-reset: guide-section; margin: 0; padding: 0; list-style: none; }
.guide-section { position: relative; padding-left: 34px; counter-increment: guide-section; }
.guide-section::before {
  position: absolute;
  top: 3px;
  left: 0;
  color: var(--report-muted);
  font: 700 11px system-ui, sans-serif;
  letter-spacing: .12em;
  content: counter(guide-section, decimal-leading-zero) / '';
}
.guide-section + .guide-section {
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid #b08a5849;
}
.guide-section + .guide-section::before { top: 12px; }
.play-guide .guide-section h3 { margin: 0 0 4px; font-size: 22px; }
.guide-section p, .play-guide footer p { font: 14px/1.45 system-ui, sans-serif; }
.guide-section p + p { margin-top: 5px; }
.guide-roles {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 14px;
  padding: 0;
  margin: 6px 0 0;
  list-style: none;
  font-size: 13px;
}
.guide-roles small { color: var(--report-muted); font-size: inherit; white-space: nowrap; }
.guide-roles small::before { content: ' · '; }
.play-guide .field-report-footer { margin-top: 17px; padding-top: 13px; }
.play-guide footer a { color: var(--report-blue); font-weight: 700; text-underline-offset: 2px; }
.play-guide footer button { flex-shrink: 0; }

@media (max-width: 620px) {
  .play-guide h2 { font-size: 27px; }
  .guide-roles { grid-template-columns: minmax(0, 1fr); }
  .play-guide .field-report-footer button { margin-left: auto; }
}
