/* Opt-in identity. Load after legacy styles; activate with data-identity="giratina".
   Asset paths are relative to this stylesheet. See PERSONALIZACAO.md. */
:root[data-identity="giratina"] {
  --bg-primary: #080d18;
  --bg-secondary: #101827;
  --bg-card: #141e30;
  --bg-elevated: #1b2740;
  --accent-gold: #f2cb60;
  --accent-gold-hover: #ffdb78;
  --accent-purple: #8133c7;
  --accent-purple-soft: #38204f;
  --text-primary: #f5f7fc;
  --text-secondary: #a9b4ca;
  --border-color: #29364d;
  --success: #34d67b;
  --danger: #e34c66;
  --font-body: Inter, system-ui, sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --radius-sm: .375rem;
  --radius-card: .75rem;
  --radius-pill: 999px;
  --content-width: 1320px;
  --shadow-card: 0 12px 32px #0003;
  --shadow-focus: 0 0 0 3px #f2cb6040;
  --motion-fast: 160ms;
  --motion-normal: 240ms;
  --motion-ease: ease;
  --asset-logo: url('/assets/giratina/logo-web.webp');
  --asset-hero: url('/assets/giratina/character.png');
  --asset-scene: url('/assets/giratina/scene.webp');
  --hero-title-size: clamp(2.75rem, 4.5vw, 4.75rem);
  --hero-text: #f5f7fc;
  --hero-muted: #c4cadd;
  --hero-gold: #f2cb60;
  --hero-ground: #080d18;
  --button-text: #181722;
  /* Compatibility aliases for existing templates, without changing behavior. */
  --bg: var(--bg-primary);
  --bg-soft: var(--bg-secondary);
  --surface: var(--bg-card);
  --surface-strong: var(--bg-elevated);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --line: var(--border-color);
  --yellow: var(--accent-gold);
  --red: var(--danger);
  --shadow: var(--shadow-card);
  color-scheme: dark;
}

:root[data-identity="giratina"][data-theme="light"] {
  --bg-primary: #f4f3f8;
  --bg-secondary: #eae8f0;
  --bg-card: #ffffff;
  --bg-elevated: #f0edf6;
  --text-primary: #172035;
  --text-secondary: #515c72;
  --border-color: #c8cbd8;
  --accent-gold: #805d0b;
  --accent-gold-hover: #684800;
  --accent-purple: #6c29a8;
  --accent-purple-soft: #ebe0f4;
  --success: #14743b;
  --danger: #b42c48;
  --button-text: #ffffff;
  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  :root[data-identity="giratina"] {
    --motion-fast: 0ms;
    --motion-normal: 0ms;
  }
}
