/* Minimal app shell — component styles live in App.css / themes.css */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

#root {
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Scrollbars — auf Touch-Geräten breiter und besser sichtbar */
:root {
  --app-scrollbar-size: 10px;
}

@media (hover: none), (pointer: coarse), (max-width: 768px) {
  :root {
    --app-scrollbar-size: 14px;
  }
}

html {
  scrollbar-width: auto;
  scrollbar-color: var(--app-accent-light) var(--app-surface-inset);
  -webkit-overflow-scrolling: touch;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: var(--app-scrollbar-size);
  height: var(--app-scrollbar-size);
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: var(--app-surface-inset);
  border-radius: calc(var(--app-scrollbar-size) / 2);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--app-accent-light) 55%, transparent);
  border-radius: calc(var(--app-scrollbar-size) / 2);
  min-height: 48px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--app-accent-light) 80%, transparent);
}

@media (hover: none), (pointer: coarse), (max-width: 768px) {
  html::-webkit-scrollbar-thumb,
  body::-webkit-scrollbar-thumb,
  *::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--app-accent-light) 70%, transparent);
  }

  html::-webkit-scrollbar-thumb:active,
  body::-webkit-scrollbar-thumb:active,
  *::-webkit-scrollbar-thumb:active {
    background: var(--app-accent-light);
  }
}
