/* Shared stateful controls. Selection color belongs only to aria-pressed;
   hovering never impersonates selection or changes text/background contrast.
   Deliberately excludes hero topic bars, 3D product cards and disabled forms. */
body[data-design="v2"] #main :is(.story-choices, .theatre-choices, .world-presets, .architecture-track) button {
  --v2-control-background: #133b51;
  --v2-control-foreground: #ffffff;
  --v2-control-border: #497084;
  color: var(--v2-control-foreground);
  background: var(--v2-control-background);
  border-color: var(--v2-control-border);
  box-shadow: none;
  transition: transform 180ms ease;
}
body[data-design="v2"] #main :is(.story-choices, .theatre-choices, .world-presets, .architecture-track) button[aria-pressed="true"] {
  --v2-control-background: #9be5f4;
  --v2-control-foreground: #09273e;
  --v2-control-border: #9be5f4;
  color: var(--v2-control-foreground);
  background: var(--v2-control-background);
  border-color: var(--v2-control-border);
  box-shadow: none;
}
body[data-design="v2"] #main :is(.story-choices, .theatre-choices, .world-presets, .architecture-track) button:is(:hover, :focus-visible, :active) {
  color: var(--v2-control-foreground);
  background: var(--v2-control-background);
  border-color: var(--v2-control-border);
  box-shadow: none;
}
body[data-design="v2"] #main :is(.story-choices, .theatre-choices, .world-presets, .architecture-track) button[aria-pressed] :is(span, small, strong) {
  color: inherit;
}
body[data-design="v2"] #main :is(.story-choices, .theatre-choices, .world-presets, .architecture-track) button:focus-visible {
  outline: 3px solid #178db2;
  outline-offset: 4px;
}
/* Home's white comparison section uses neutral controls. */
body[data-design="v2"][data-page="index"] #main .world-window .world-presets button {
  --v2-control-background: #ffffff;
  --v2-control-foreground: #344047;
  --v2-control-border: #bcc4c8;
}
body[data-design="v2"][data-page="index"] #main .world-window .world-presets button[aria-pressed="true"] {
  --v2-control-background: #344047;
  --v2-control-foreground: #ffffff;
  --v2-control-border: #344047;
}
body[data-design="v2"][data-page="index"] #main .world-window .world-presets button:focus-visible {
  outline-color: #586269;
}
@media (hover: hover) and (pointer: fine) {
  body[data-design="v2"] #main :is(.story-choices, .theatre-choices, .world-presets, .architecture-track) button:not(:disabled):not([aria-disabled="true"]):hover {
    transform: translateY(-2px);
  }
}
body[data-design="v2"] #main :is(.story-choices, .theatre-choices, .world-presets, .architecture-track) button:not(:disabled):not([aria-disabled="true"]):active,
body[data-design="v2"] #main :is(.story-choices, .theatre-choices, .world-presets, .architecture-track) button:is(:disabled, [aria-disabled="true"]) {
  transform: none;
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  body[data-design="v2"] #main :is(.story-choices, .theatre-choices, .world-presets, .architecture-track) button {
    transform: none !important;
    transition: none !important;
  }
}
