/* apps/tinkyspeak/public/css/game-builder-wizard.css
 *
 * 2026-05-28 (Luke caught: "think if adobe and apple teamed up to
 * bring you aac this would fail all ux ui test make a plan now to
 * modernize tehis with correct ux design").
 *
 * ROOT CAUSE OF v111-AND-EARLIER GAME WIZARD BROKENNESS:
 *   The game-builder-step-*.js modules render markup with 70+ BEM
 *   class names (.gbw-purpose-grid, .gbw-purpose-card, .gbw-step-list,
 *   etc.) — but NO STYLESHEET EVER SHIPPED FOR THEM. The wizard
 *   HTML was a CSS-less skeleton that fell back to default block
 *   layout: no grid, no card boundaries, labels mashing into each
 *   other ("Interaction, emotions, behaviorFine motor, coordination,
 *   planning"). Same exact failure class as the /community/messages
 *   bug Luke caught earlier this session — markup shipped without
 *   its stylesheet.
 *
 * THIS FILE supplies the missing chrome for every .gbw-* class:
 *   • Modal shell w/ backdrop blur + slide-in
 *   • Real horizontal stepper (numbered circles + connector line +
 *     active / done / pending states)
 *   • Step-body container w/ padding rhythm + section titles
 *   • Card grids (purpose / game / visual / attention / skill) w/
 *     hover lift + selected halo
 *   • Goal buttons + template chips + interest chips
 *   • Toggle row (sliding pill) + range scale
 *   • Sticky footer w/ Back + Next buttons
 *   • Summary block (preview step)
 *   • Mobile single-column + reduced-motion respect
 *
 * Brand language: navy header (#1A1A2E), amber accents (#E8A838),
 * brand-blue primary (#1976D2), cream surface (#FBF7F0). Same
 * design tokens as the rest of the builder, peek card, and
 * achievements page.
 *
 * LABEL: PILOT-READY.
 */

/* ─── Modal shell ─────────────────────────────────────────────── */
.game-builder-wizard-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(12, 21, 48, 0.45);
  backdrop-filter: blur(6px) saturate(180%);
  -webkit-backdrop-filter: blur(6px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.game-builder-wizard-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.game-builder-wizard-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(at 0% 0%, rgba(25, 118, 210, 0.04) 0%, transparent 50%),
    #FFFFFF;
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 20px 60px rgba(12, 21, 48, 0.30);
  border: 1px solid rgba(12, 21, 48, 0.08);
  overflow: hidden;
  transform: translateY(12px);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  font: 400 14px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  color: #0C1530;
}
.game-builder-wizard-modal.open .game-builder-wizard-card {
  transform: translateY(0);
}

/* ─── Header (navy bar with icon + title + close) ─────────────── */
.game-builder-wizard-card .smart-tpl-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(180deg, #1A1A2E 0%, #161527 100%);
  color: #F5EDE0;
  border-bottom: 1px solid rgba(232, 168, 56, 0.20);
  flex-shrink: 0;
}
.game-builder-wizard-card .smart-tpl-modal-icon {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(232, 168, 56, 0.30));
}
.game-builder-wizard-card .smart-tpl-modal-head h3 {
  margin: 0;
  flex: 1;
  font: 600 17px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  color: #F5EDE0;
  letter-spacing: -0.01em;
}
.game-builder-wizard-card .smart-tpl-modal-close {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(245, 237, 224, 0.10);
  color: rgba(245, 237, 224, 0.85);
  font: 600 18px/1 system-ui, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms ease, transform 140ms ease;
  flex-shrink: 0;
}
.game-builder-wizard-card .smart-tpl-modal-close:hover {
  background: rgba(245, 237, 224, 0.18);
  transform: rotate(90deg);
}

/* ─── Stepper (real progress UI, not a label list) ────────────── */
.game-builder-wizard-progress {
  padding: 18px 22px 12px;
  background: linear-gradient(180deg, #FDFBF6 0%, #FBF7F0 100%);
  border-bottom: 1px solid rgba(12, 21, 48, 0.06);
  flex-shrink: 0;
}
.gbw-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  position: relative;
}
/* Connector line behind the circles. Drawn from the center of the
   first circle to the center of the last — sits under the markers
   via z-index. */
.gbw-step-list::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 16px;
  height: 2px;
  background: linear-gradient(90deg, rgba(12, 21, 48, 0.10) 0%, rgba(12, 21, 48, 0.10) 100%);
  z-index: 0;
}
.gbw-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  font: inherit;
  color: inherit;
  cursor: default;
  text-align: center;
}
.gbw-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid rgba(12, 21, 48, 0.16);
  color: #6B6B7B;
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.gbw-step-title {
  font: 500 11px/1.2 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #6B6B7B;
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gbw-step.gbw-pending .gbw-step-icon { /* default styles above */ }
.gbw-step.gbw-current .gbw-step-icon {
  background: linear-gradient(180deg, #2A8AE1 0%, #1976D2 100%);
  border-color: #1976D2;
  color: #FFFFFF;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 4px 12px rgba(25, 118, 210, 0.35);
  transform: scale(1.10);
}
.gbw-step.gbw-current .gbw-step-title {
  color: #0C1530;
  font-weight: 700;
}
.gbw-step.gbw-done .gbw-step-icon {
  background: linear-gradient(180deg, #22C55E 0%, #16A34A 100%);
  border-color: #16A34A;
  color: #FFFFFF;
}
.gbw-step.gbw-done {
  cursor: pointer;
}
.gbw-step.gbw-done:hover .gbw-step-icon {
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.32);
}
.gbw-step.gbw-done .gbw-step-title {
  color: #166534;
}
.gbw-step:focus-visible {
  outline: 2px solid #1976D2;
  outline-offset: 4px;
  border-radius: 8px;
}

/* ─── Step body (scrollable middle region) ────────────────────── */
/* 2026-05-28 (Codex stop-gate v112→v113). `.smart-tpl-modal-body`
 * is a SHARED modal primitive used by smart-templates.js and any
 * other module that builds modals with the smart-tpl shell. v112
 * styled it UNSCOPED, which would have hijacked the layout
 * (padding / overflow / custom scrollbar) of every smart-tpl modal
 * in the builder. Scoped now via `.game-builder-wizard-card`
 * parent — same fix pattern already applied to the head / icon /
 * h3 / close-button rules earlier in this file.
 */
.game-builder-wizard-card .smart-tpl-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px 8px;
  /* Subtle scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(12, 21, 48, 0.18) transparent;
}
.game-builder-wizard-card .smart-tpl-modal-body::-webkit-scrollbar { width: 8px; }
.game-builder-wizard-card .smart-tpl-modal-body::-webkit-scrollbar-thumb {
  background: rgba(12, 21, 48, 0.18);
  border-radius: 4px;
}

.gbw-step-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gbw-step-intro {
  margin: 0;
  font: 400 14px/1.55 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #4A4A5A;
  max-width: 640px;
}

.gbw-section-title {
  margin: 0 0 8px;
  font: 600 12px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #4A4A5A;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gbw-step-note {
  margin: 0;
  font: 400 12.5px/1.5 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #4A4A5A;
  padding: 10px 14px;
  background: rgba(25, 118, 210, 0.06);
  border-left: 3px solid #1976D2;
  border-radius: 0 8px 8px 0;
}

.gbw-status {
  margin: 0;
  font: 500 12px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #166534;
  padding: 6px 10px;
  background: rgba(34, 197, 94, 0.10);
  border-radius: 999px;
  align-self: flex-start;
}

.gbw-step-missing {
  padding: 32px 16px;
  text-align: center;
  color: #6B6B7B;
  font-style: italic;
}

/* ─── Field rows (labels + inputs) ────────────────────────────── */
.gbw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gbw-field-label {
  font: 600 12px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #0C1530;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gbw-field input[type="text"],
.gbw-field input[type="number"],
.gbw-field input[type="search"],
.gbw-field textarea,
.gbw-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(12, 21, 48, 0.12);
  border-radius: 10px;
  background: #FAFAF5;
  color: #0C1530;
  font: 400 14px/1.42 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.gbw-field input:focus,
.gbw-field textarea:focus,
.gbw-field select:focus {
  outline: none;
  border-color: #1976D2;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.14);
}

/* ─── Card grids (purpose / game / visual / attention / skill) ─ */
.gbw-purpose-grid,
.gbw-game-grid,
.gbw-visual-grid,
.gbw-attention-grid,
.gbw-skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

/* Common card chrome. Specific tweaks per family below. */
.gbw-purpose-card,
.gbw-game-card,
.gbw-visual-card,
.gbw-attention-card,
.gbw-skill-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1.5px solid rgba(12, 21, 48, 0.10);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  box-shadow: 0 1px 3px rgba(12, 21, 48, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}
.gbw-purpose-card:hover,
.gbw-game-card:hover,
.gbw-visual-card:hover,
.gbw-attention-card:hover,
.gbw-skill-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(12, 21, 48, 0.10);
  border-color: rgba(25, 118, 210, 0.30);
}
.gbw-purpose-card:focus-visible,
.gbw-game-card:focus-visible,
.gbw-visual-card:focus-visible,
.gbw-attention-card:focus-visible,
.gbw-skill-card:focus-visible {
  outline: 2px solid #1976D2;
  outline-offset: 2px;
}

/* Selected state — amber halo (brand accent). */
.gbw-purpose-selected,
.gbw-game-selected,
.gbw-visual-selected,
.gbw-attention-selected,
.gbw-skill-selected {
  border-color: #E8A838 !important;
  background: linear-gradient(180deg, #FFFCF3 0%, #FFF8E1 100%);
  box-shadow:
    0 0 0 3px rgba(232, 168, 56, 0.18),
    0 4px 14px rgba(232, 168, 56, 0.20) !important;
}
.gbw-purpose-selected::after,
.gbw-game-selected::after,
.gbw-visual-selected::after,
.gbw-attention-selected::after,
.gbw-skill-selected::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #F2B249 0%, #E8A838 100%);
  color: #1A1A2E;
  font: 700 12px/20px system-ui, sans-serif;
  text-align: center;
  box-shadow: 0 1px 3px rgba(232, 168, 56, 0.40);
}
.gbw-purpose-card,
.gbw-game-card,
.gbw-visual-card,
.gbw-attention-card,
.gbw-skill-card {
  position: relative; /* for the ::after check mark */
}

.gbw-purpose-icon,
.gbw-game-icon,
.gbw-visual-icon,
.gbw-attention-icon {
  font-size: 30px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(12, 21, 48, 0.10));
}
.gbw-purpose-title,
.gbw-game-title,
.gbw-visual-label,
.gbw-attention-label,
.gbw-skill-label {
  font: 600 13.5px/1.25 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #0C1530;
  letter-spacing: -0.005em;
}
.gbw-purpose-desc,
.gbw-game-desc,
.gbw-skill-desc {
  font: 400 12px/1.45 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #4A4A5A;
}

/* Game card — extra metadata row (head / preview / tags). */
.gbw-game-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.gbw-game-preview {
  font-size: 26px;
  flex-shrink: 0;
}
.gbw-game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.gbw-game-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(25, 118, 210, 0.10);
  color: #1976D2;
  font: 600 10px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── Specific goals (sub-pick under purpose) ─────────────────── */
.gbw-goals-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(25, 118, 210, 0.04);
  border: 1px dashed rgba(25, 118, 210, 0.24);
}
.gbw-goal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gbw-goal-btn {
  padding: 7px 12px;
  border: 1px solid rgba(12, 21, 48, 0.12);
  border-radius: 999px;
  background: #FFFFFF;
  color: #1A1A2E;
  font: 500 12px/1.2 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.gbw-goal-btn:hover {
  background: #F5F0E8;
  transform: translateY(-1px);
}
.gbw-goal-selected {
  background: linear-gradient(180deg, #2A8AE1 0%, #1976D2 100%);
  color: #FFFFFF;
  border-color: #1976D2;
}
.gbw-goal-selected:hover {
  background: linear-gradient(180deg, #3A9CF0 0%, #1F84E2 100%);
}

/* ─── Suggested templates block + chips ───────────────────────── */
.gbw-tpl-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gbw-tpl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gbw-tpl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(12, 21, 48, 0.12);
  border-radius: 999px;
  background: #FFFFFF;
  color: #1A1A2E;
  font: 500 12px/1.2 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.gbw-tpl-chip:hover {
  background: #F5F0E8;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(12, 21, 48, 0.08);
}
.gbw-tpl-chip-icon { font-size: 14px; line-height: 1; }

/* ─── Interests (chips, multi-select) ─────────────────────────── */
.gbw-interest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gbw-interest-chip {
  padding: 7px 12px;
  border: 1px solid rgba(12, 21, 48, 0.12);
  border-radius: 999px;
  background: #FFFFFF;
  color: #1A1A2E;
  font: 500 12px/1.2 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}
.gbw-interest-chip:hover {
  background: #F5F0E8;
  transform: translateY(-1px);
}
.gbw-interest-selected {
  background: linear-gradient(180deg, #F2B249 0%, #E8A838 100%);
  color: #1A1A2E;
  border-color: #E8A838;
  box-shadow: 0 1px 3px rgba(232, 168, 56, 0.30);
}

/* ─── Range + scale ───────────────────────────────────────────── */
.gbw-range {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(12, 21, 48, 0.03);
  border-radius: 12px;
}
.gbw-range input[type="range"] {
  width: 100%;
  accent-color: #1976D2;
}
.gbw-range-scale {
  display: flex;
  justify-content: space-between;
  font: 400 11px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #6B6B7B;
  font-variant-numeric: tabular-nums;
}

/* ─── Toggle (sliding pill) ───────────────────────────────────── */
.gbw-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(12, 21, 48, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(12, 21, 48, 0.06);
}
.gbw-toggle {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(12, 21, 48, 0.15);
  border: none;
  cursor: pointer;
  transition: background 180ms ease;
}
.gbw-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(12, 21, 48, 0.25);
  transition: left 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gbw-toggle-on {
  background: linear-gradient(180deg, #2A8AE1 0%, #1976D2 100%);
}
.gbw-toggle-on .gbw-toggle-knob { left: 20px; }
.gbw-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.gbw-toggle-label {
  font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #0C1530;
}
.gbw-toggle-sub {
  font: 400 12px/1.3 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #6B6B7B;
}

/* ─── Summary block (preview step) ────────────────────────────── */
.gbw-summary {
  padding: 16px 18px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAF5 100%);
  border-radius: 14px;
  border: 1px solid rgba(12, 21, 48, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gbw-summary-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(12, 21, 48, 0.06);
}
.gbw-summary-row:last-child { border-bottom: none; }
.gbw-summary-label {
  font: 600 11px/1.2 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #6B6B7B;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gbw-summary-value {
  font: 500 13px/1.4 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #0C1530;
}

/* ─── Sticky footer (Back / Next) ─────────────────────────────── */
.gbw-nav-row {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  margin: 0 -24px -8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 1) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(12, 21, 48, 0.08);
}
.gbw-nav-spacer { flex: 1; }

.gbw-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease, color 140ms ease;
}
.gbw-btn:focus-visible {
  outline: 2px solid #F5C563;
  outline-offset: 2px;
}
.gbw-btn[disabled],
.gbw-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.gbw-btn-primary {
  background: linear-gradient(180deg, #2A8AE1 0%, #1976D2 100%);
  color: #FFFFFF;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.20) inset,
    0 2px 8px rgba(25, 118, 210, 0.30);
}
.gbw-btn-primary:hover:not([disabled]) {
  background: linear-gradient(180deg, #3A9CF0 0%, #1F84E2 100%);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 4px 14px rgba(25, 118, 210, 0.45);
}

.gbw-btn-ghost {
  background: #FFFFFF;
  color: #4A4A5A;
  border-color: rgba(12, 21, 48, 0.12);
}
.gbw-btn-ghost:hover:not([disabled]) {
  background: #F5F0E8;
  color: #0C1530;
  transform: translateY(-1px);
}

/* ─── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .game-builder-wizard-modal { padding: 0; }
  .game-builder-wizard-card { max-height: 100vh; border-radius: 0; }
  .gbw-step-title { display: none; } /* circles only on narrow screens */
  .gbw-step-list::before { top: 16px; }
  /* 2026-05-28 (Codex stop-gate v113→v114). Mobile padding
   * override on the shared `.smart-tpl-modal-body` primitive —
   * was missed in v113's scoping fix because the audit grep
   * targeted only top-level selectors. Same scope-with-owner
   * fix as the desktop rules above. */
  .game-builder-wizard-card .smart-tpl-modal-body { padding: 16px 16px 4px; }
  .gbw-nav-row { padding: 12px 16px; margin: 0 -16px -4px; }
  .gbw-purpose-grid,
  .gbw-game-grid,
  .gbw-visual-grid,
  .gbw-attention-grid,
  .gbw-skill-grid {
    grid-template-columns: 1fr;
  }
  .gbw-summary-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ─── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .game-builder-wizard-modal,
  .game-builder-wizard-card,
  .gbw-step-icon,
  .gbw-purpose-card,
  .gbw-game-card,
  .gbw-visual-card,
  .gbw-attention-card,
  .gbw-skill-card,
  .gbw-goal-btn,
  .gbw-interest-chip,
  .gbw-tpl-chip,
  .gbw-toggle,
  .gbw-toggle-knob,
  .gbw-btn {
    transition: none !important;
  }
}
