.oo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.oo-canvas {
  background: linear-gradient(180deg, #fef3e2, #fde3c4);
  cursor: pointer;
  touch-action: none;
  /* Portrait canvas, unlike this site's other (landscape) physics games — the shared
     .pt-canvas-frame's width:100% would otherwise stretch it to fill the full column
     width and scale the height up proportionally. Cap at native resolution, center it. */
  max-width: 380px;
  margin: 0 auto;
}

.oo-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Phase 4: Classic/Daily Challenge mode select, JS-built (see buildDom() in game.js) */
.wd-mode-select {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}
.wd-mode-select button {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.wd-mode-select button[aria-pressed="true"] {
  background: var(--color-primary);
  color: #0e0f13;
  border-color: var(--color-primary);
}

/* Phase 5: cosmetic skin picker, JS-built, same swatch-row idiom as mode-select */
.wd-skin-select {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.wd-skin-select button {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
}
.wd-skin-select button[aria-pressed="true"] {
  background: var(--color-accent, #ee6fa8);
  color: #0e0f13;
  border-color: var(--color-accent, #ee6fa8);
}
.wd-skin-select button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.wd-share-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #0e0f13;
  background: var(--color-accent, #ee6fa8);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.wd-share-btn:active { filter: brightness(0.9); }

/* Phase 6: always-visible Pause button, same pill idiom as Share */
.wd-pause-btn {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text);
  background: var(--color-surface);
  cursor: pointer;
}
.wd-pause-btn:disabled { cursor: not-allowed; }

/* Phase 6: a11y toggle buttons (Sound/Effects/Patterns) get a visible pressed state,
   same active-highlight convention as the mode/skin swatch rows above. The shared
   .pt-mute-btn (from physics-toolbox.css) has no pressed styling of its own. */
.pt-mute-btn[aria-pressed="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #0e0f13;
}
