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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.2s;
}

button {
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

::selection {
  background: rgba(255, 106, 43, 0.28);
  color: var(--text-primary);
}

#webGLApp {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-scrim {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg, rgba(2, 4, 8, 0.46) 0%, rgba(2, 4, 8, 0.14) 35%, rgba(2, 4, 8, 0.42) 100%);
}

.bg-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(90% 80% at 12% 12%, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0) 60%),
    radial-gradient(90% 80% at 88% 10%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 60%),
    radial-gradient(120% 120% at 50% 110%, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0) 55%);
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.text-secondary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
}

.text-tertiary {
  color: var(--text-tertiary);
}

.hidden {
  display: none;
}

/* Utilities for CSP compliance (replacing inline styles) */
.d-none { display: none; }
.d-inline-flex { display: inline-flex; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 1rem; }

.text-white { color: white; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-16px { margin-bottom: 16px; }

.error-msg-style {
  color: #ff6b6b;
  margin-bottom: 1rem;
  display: none;
}

.modal-content-lg {
  max-width: 600px;
  width: 90%;
}

.crop-container-style {
  height: 400px;
  background: #000;
  margin-bottom: 1rem;
}

.modal-actions-right {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.iframe-rounded {
  border-radius: 12px;
  overflow: hidden;
}

.img-fluid {
  max-width: 100%;
}

.svg-hidden {
  display: none;
}

.cursor-pointer {
  cursor: pointer;
}

.mr-2 { margin-right: 0.5rem; }
.opacity-70 { opacity: 0.7; }
.text-xs { font-size: 11px; }

.w-16 { width: 16px; }
.h-16 { height: 16px; }
.text-accent-red { color: #FCA5A5; }
.text-accent-green { color: #86EFAC; }
.text-accent-blue { color: #93C5FD; }

.w-14 { width: 14px; }
.h-14 { height: 14px; }

