/* Semantic FullFolder theme roles. Palette values live here, not in components.
   Palette overrides can change these roles without changing component meaning. */
:root,[data-section="main"]{
  --tool-accent:#006B66; --tool-accent-dark:#75D3C3;
  --game-accent:#A44427; --game-accent-dark:#FF9A70;
  --accent:var(--tool-accent); --accent-2:var(--game-accent); --on-accent:#FFFFFF;
  --link:var(--tool-accent); --focus:var(--tool-accent);
  --radius:var(--r-md); --card-shadow:var(--sh-sm);
  --heading-font:var(--font-sans); --heading-weight:700;
}
[data-section="tools"],[data-section="time"],[data-section="text"],[data-section="design"],[data-section="generators"]{
  --accent:var(--tool-accent); --accent-2:var(--game-accent); --on-accent:#FFFFFF;
  --link:var(--tool-accent); --focus:var(--tool-accent);
  --radius:var(--r-md); --card-shadow:var(--sh-sm); --heading-weight:700;
}
[data-section="games"],[data-section="tests"]{
  --accent:var(--game-accent); --accent-2:var(--tool-accent); --on-accent:#FFFFFF;
  --link:var(--game-accent); --focus:var(--game-accent);
  --radius:var(--r-lg); --card-shadow:var(--sh-sm); --heading-weight:700;
}
[data-section="daily"]{
  --accent:var(--tool-accent); --accent-2:var(--game-accent); --on-accent:#FFFFFF;
  --link:var(--tool-accent); --focus:var(--tool-accent);
  --radius:var(--r-md); --card-shadow:var(--sh-sm); --heading-weight:700;
}

/* Backward-compatible aliases remain available to existing tools. */
:root,[data-section]{
  --accent-soft:color-mix(in srgb,var(--accent) 10%,var(--surface));
  --hover:color-mix(in srgb,var(--accent) 7%,var(--surface));
  --active:color-mix(in srgb,var(--accent) 14%,var(--surface));
  --disabled:color-mix(in srgb,var(--text-muted) 45%,var(--surface));
  --surface-hover:var(--hover);
}
[data-mode="dark"]{
  --tool-accent:#75D3C3; --game-accent:#FF9A70;
}
[data-mode="dark"] [data-section="games"],[data-mode="dark"] [data-section="tests"],
[data-mode="dark"][data-section="games"],[data-mode="dark"][data-section="tests"]{
  --accent:var(--game-accent); --accent-2:var(--tool-accent); --on-accent:#080B0B;
  --link:var(--game-accent); --focus:var(--game-accent);
}
[data-mode="dark"] [data-section="main"],[data-mode="dark"] [data-section="tools"],
[data-mode="dark"] [data-section="time"],[data-mode="dark"] [data-section="text"],
[data-mode="dark"] [data-section="design"],[data-mode="dark"] [data-section="generators"],
[data-mode="dark"] [data-section="daily"],
[data-mode="dark"][data-section="main"],[data-mode="dark"][data-section="tools"],
[data-mode="dark"][data-section="time"],[data-mode="dark"][data-section="text"],
[data-mode="dark"][data-section="design"],[data-mode="dark"][data-section="generators"],
[data-mode="dark"][data-section="daily"]{
  --accent:var(--tool-accent); --accent-2:var(--game-accent); --on-accent:#080B0B;
  --link:var(--tool-accent); --focus:var(--tool-accent);
}
@media (prefers-color-scheme:dark){
  :root:not([data-mode]){--tool-accent:#75D3C3;--game-accent:#FF9A70}
  :root:not([data-mode]) [data-section]{--on-accent:#080B0B}
}
