/* Ruby Velvet is Thornwood's primary-button palette, not its accent palette.
   Keep gold headings, icons, ornaments, and selected states unchanged. Every
   rule is theme-scoped so the other six presets retain their existing pairing. */
:root[data-play-frame-theme='thornwood'] {
  --primary-button-bg: #6a2630;
  --primary-button-text: #f4e7d0;
  --primary-button-border: #ba775d;
  --primary-button-hover-bg: #7a303b;
}

/* Include compact legacy actions and the separate Home/Store/Play controls.
   Only legacy Delete controls that already use the primary fill are included;
   real danger buttons and secondary/cancel controls keep their styling.
   An inset edge preserves the existing button and header dimensions. */
:root[data-play-frame-theme='thornwood'] :is(
  .btn-primary,
  .admin-page a.btn-back,
  .admin-page a.btn-inline:not(.btn-danger),
  .admin-page button.btn-inline:not(.btn-danger),
  .admin-page.admin-edit-page .admin-edit-actions .btn-danger,
  .admin-page.admin-player-edit-page .admin-edit-actions .btn-danger,
  .input-panel > button,
  .play-tour-next,
  .store-action--primary,
  .main-nav a.header-btn--primary,
  body.page-home .home-v2-btn-primary
) {
  background: var(--primary-button-bg);
  color: var(--primary-button-text);
  border-color: var(--primary-button-border);
  box-shadow: inset 0 0 0 1px var(--primary-button-border);
}

:root[data-play-frame-theme='thornwood'] :is(
  .btn-primary,
  .admin-page a.btn-back,
  .admin-page a.btn-inline:not(.btn-danger),
  .admin-page button.btn-inline:not(.btn-danger),
  .admin-page.admin-edit-page .admin-edit-actions .btn-danger,
  .admin-page.admin-player-edit-page .admin-edit-actions .btn-danger,
  .input-panel > button,
  .play-tour-next,
  .store-action--primary,
  .main-nav a.header-btn--primary,
  body.page-home .home-v2-btn-primary
):not(:disabled):not([aria-disabled='true']):hover {
  background: var(--primary-button-hover-bg);
  color: var(--primary-button-text);
  border-color: var(--primary-button-border);
  opacity: 1;
}

:root[data-play-frame-theme='thornwood'] :is(
  .btn-primary,
  .admin-page a.btn-back,
  .admin-page a.btn-inline:not(.btn-danger),
  .admin-page button.btn-inline:not(.btn-danger),
  .admin-page.admin-edit-page .admin-edit-actions .btn-danger,
  .admin-page.admin-player-edit-page .admin-edit-actions .btn-danger,
  .input-panel > button,
  .play-tour-next,
  .store-action--primary,
  .main-nav a.header-btn--primary,
  body.page-home .home-v2-btn-primary
):focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 3px;
}
