/*
 * Scoped dark-theme override for the DogeOS SDK's bundled CSS (dogeos-sdk.css).
 * The SDK ships its own HeroUI design tokens (--heroui-*) and defaults to a
 * light theme regardless of the host app's theme, which produced a near-white
 * sheet with near-invisible text. This file must be loaded AFTER
 * dogeos-sdk.css and is served from /public so Tailwind/PostCSS never touches it.
 *
 * Values match DogeMo's palette:
 * background #14110C, text #F5F0E4, muted text #B4AC9A,
 * accent #E2B648, accent text #14110C, borders #2A251D.
 */
:root,
[data-theme],
[data-theme="light"],
[data-theme="dark"] {
  color-scheme: dark !important;

  --heroui-background: 37 25% 6% !important;
  --heroui-foreground: 42 46% 93% !important;

  --heroui-overlay: 0 0% 0% !important;
  --heroui-divider: 37 18% 14% !important;
  --heroui-focus: 43 73% 58% !important;

  --heroui-content1: 32 10% 9% !important;
  --heroui-content1-foreground: 42 46% 93% !important;
  --heroui-content2: 34 9% 12% !important;
  --heroui-content2-foreground: 42 46% 93% !important;
  --heroui-content3: 34 8% 15% !important;
  --heroui-content3-foreground: 42 15% 65% !important;
  --heroui-content4: 34 7% 19% !important;
  --heroui-content4-foreground: 42 15% 65% !important;

  --heroui-default-50: 32 10% 9% !important;
  --heroui-default-100: 34 9% 12% !important;
  --heroui-default-200: 37 18% 14% !important;
  --heroui-default-300: 37 18% 18% !important;
  --heroui-default-400: 42 10% 40% !important;
  --heroui-default-500: 42 12% 55% !important;
  --heroui-default-600: 42 15% 65% !important;
  --heroui-default-700: 42 25% 78% !important;
  --heroui-default-800: 42 35% 88% !important;
  --heroui-default-900: 42 46% 93% !important;
  --heroui-default-foreground: 42 46% 93% !important;
  --heroui-default: 37 18% 14% !important;

  --heroui-primary-50: 43 73% 14% !important;
  --heroui-primary-100: 43 73% 22% !important;
  --heroui-primary-200: 43 73% 30% !important;
  --heroui-primary-300: 43 73% 38% !important;
  --heroui-primary-400: 43 73% 48% !important;
  --heroui-primary-500: 43 73% 58% !important;
  --heroui-primary-600: 43 73% 66% !important;
  --heroui-primary-700: 43 73% 74% !important;
  --heroui-primary-800: 43 73% 82% !important;
  --heroui-primary-900: 43 73% 90% !important;
  --heroui-primary-foreground: 37 25% 6% !important;
  --heroui-primary: 43 73% 58% !important;

  --heroui-success: 142 52% 52% !important;
  --heroui-warning: 43 73% 58% !important;
  --heroui-danger: 2 72% 60% !important;

  --heroui-t1: 42 46% 93% !important;
  --heroui-t2: 42 15% 65% !important;
  --heroui-t3: 42 12% 55% !important;
  --heroui-t4: 37 18% 18% !important;
  --heroui-t5: 43 73% 58% !important;
}

/* Belt-and-braces: in case any SDK element relies on inherited color instead of
   its own token, force readable text/background anywhere the SDK renders. */
[data-theme] {
  background-color: hsl(var(--heroui-background)) !important;
  color: hsl(var(--heroui-foreground)) !important;
}
