:root {
  --background: 228 24% 96%;
  --foreground: 226 28% 12%;
  --primary: 275 84% 61%;
  --secondary: 196 85% 55%;
  --muted: 226 18% 88%;
  --destructive: 0 78% 58%;
  --border: 225 18% 82%;
  --card: 0 0% 100%;

  --shadow-sm: 0 1px 2px hsla(226, 28%, 12%, 0.08);
  --shadow-md: 0 10px 30px hsla(226, 28%, 12%, 0.12);
  --shadow-lg: 0 24px 60px hsla(226, 28%, 12%, 0.18);

  --transition-fast: 150ms ease;
  --transition-smooth: 280ms cubic-bezier(0.22, 1, 0.36, 1);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

.dark {
  --background: 228 26% 8%;
  --foreground: 220 20% 96%;
  --primary: 279 92% 68%;
  --secondary: 190 95% 58%;
  --muted: 228 18% 18%;
  --destructive: 0 75% 60%;
  --border: 228 18% 22%;
  --card: 228 22% 12%;
}

* {
  box-sizing: border-box;
}

html, body, #root {
  height: 100%;
}

body {
  margin: 0;
}

::selection {
  background: hsla(279, 92%, 68%, 0.35);
}

.trovex-shell {
  min-height: 100%;
  background:
    radial-gradient(circle at top, hsla(279, 92%, 68%, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, hsla(190, 95%, 58%, 0.12), transparent 28%),
    hsl(var(--background));
}

.card-surface {
  background: hsla(var(--card), 0.84);
  backdrop-filter: blur(18px);
  border: 1px solid hsla(var(--border), 0.8);
  box-shadow: var(--shadow-md);
}

.soft-border {
  border: 1px solid hsla(var(--border), 0.8);
}

.glow-ring:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px hsla(var(--primary), 0.22);
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.media-frame {
  background:
    linear-gradient(135deg, hsla(var(--primary), 0.14), hsla(var(--secondary), 0.08)),
    hsl(var(--muted));
}

.trovex-video-feed {
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory;
}

.trovex-video-feed > * {
  scroll-snap-align: start;
}

.gradient-avatar-a { background: linear-gradient(135deg, hsl(279 92% 68%), hsl(315 85% 62%)); }
.gradient-avatar-b { background: linear-gradient(135deg, hsl(190 95% 58%), hsl(220 90% 60%)); }
.gradient-avatar-c { background: linear-gradient(135deg, hsl(32 94% 60%), hsl(350 88% 63%)); }
.gradient-avatar-d { background: linear-gradient(135deg, hsl(148 70% 45%), hsl(190 95% 58%)); }

.animate-fade-in {
  animation: fadeIn 280ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

input, textarea, button, select {
  font: inherit;
}

button {
  cursor: pointer;
}

video {
  background: black;
}

a {
  color: inherit;
  text-decoration: none;
}
