/* Keep the reference composition while making the controls usable on touch screens. */
:root { color-scheme: dark; }

/* The commissioned page covers white noise. Remove links to unpublished sections
   and the reference site's legal and donation details. */
[data-testid="sanctuary-footer"],
section:has([data-testid="soundscape-related-bowl"]),
a[href="/tools"],
a[href="/games"],
a[href="/support"],
[data-testid="nav-tab-tools"],
[data-testid="nav-tab-games"] {
  display: none !important;
}

nav[aria-label="主导航"] button,
nav[aria-label="主导航"] a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

[data-testid="sanctuary-brand-mark"] { font-size: 16px; }
[data-testid="nav-tab-soundscape"] { font-size: 15px; }

:where(button, a, input, [role="button"], [role="tab"], [role="slider"]):focus-visible {
  outline: 3px solid #b5e2ef !important;
  outline-offset: 3px !important;
}

@media (pointer: coarse) {
  [data-testid="bottom-console-shell"] button,
  [data-testid="optical-master-console"] button,
  [data-testid="scene-gallery-panel"] button,
  [data-testid="widget-cabinet-drawer"] button,
  [role="dialog"] button,
  [role="dialog"] input,
  [role="dialog"] label:has(input) {
    min-width: 44px;
    min-height: 44px;
  }

  [role="dialog"] :is(.text-xs, .text-\[11px\], .text-\[12px\]) {
    font-size: 13px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  [data-testid="bottom-console-shell"],
  [data-testid="optical-master-console"],
  [data-testid="scene-gallery-panel"] {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: #16222d !important;
  }
}
