:root {
  --bg-dark: #000000;
  --bg-panel: #0c0c0c;
  --border-gray: #424242;
  --text-muted: #848585;
  --accent-crimson: #5e0000;
  --accent-crimson-bright: #8a0606;
  --clay-base: #141416;
  --clay-shadow: rgba(0, 0, 0, 0.95);
  --clay-inset-light: rgba(255, 255, 255, 0.05);
  --clay-inset-dark: rgba(0, 0, 0, 0.8);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: #ffffff;
  font-family: 'Lexend', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 50% 10%, rgba(66, 66, 66, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 80% 40%, rgba(94, 0, 0, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #000000 0%, #080808 50%, #000000 100%);
}

.display-font { font-family: 'Syncopate', sans-serif; }
.gothic-font { font-family: 'UnifrakturMaguntia', cursive; }

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
  pointer-events: none;
}

.brutalist-border {
  border: 1px solid var(--border-gray);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.brutalist-border:hover {
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.clay-card-static {
  background: var(--clay-base);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 6px 6px 16px var(--clay-shadow),
              inset 1px 1px 2px var(--clay-inset-light),
              inset -2px -2px 4px var(--clay-inset-dark);
}

.gallery-container {
  position: relative;
  height: 240vh;
  width: 100%;
}

.scene-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  overflow: hidden;
  z-index: 10;
}

.sphere {
  position: relative;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.clay-sphere-card {
  position: absolute;
  width: 150px;
  height: 210px;
  left: -75px;
  top: -105px;
  background: #111113;
  border-radius: 14px;
  padding: 6px;
  transform-style: preserve-3d;
  backface-visibility: visible;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8),
              inset 1px 1px 2px rgba(255, 255, 255, 0.12),
              inset -2px -2px 4px rgba(0, 0, 0, 0.8);
  transition: filter 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
  user-select: none;
}

.clay-sphere-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  filter: grayscale(85%) brightness(0.65) contrast(1.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.clay-sphere-card.active-card {
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.25));
  border-color: rgba(255, 255, 255, 0.4);
  z-index: 50;
}

.clay-sphere-card.active-card img {
  filter: grayscale(0%) brightness(1.05) contrast(1.05);
}

.chunky-btn {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.5rem 1.4rem;
  box-shadow: 0 4px 0 #848585,
              0 8px 15px rgba(0, 0, 0, 0.6),
              inset 0 -2px 4px rgba(0,0,0,0.15),
              inset 0 2px 4px rgba(255,255,255,0.8);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.chunky-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #848585, 0 12px 20px rgba(0, 0, 0, 0.7);
}
.chunky-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #848585, 0 3px 6px rgba(0, 0, 0, 0.5);
}

.chunky-pill {
  background: #151518;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 3px 3px 8px rgba(0,0,0,0.8),
              inset 1px 1px 2px rgba(255,255,255,0.06),
              inset -1px -1px 2px rgba(0,0,0,0.7);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: #2a2a2e;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #424242;
}

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

/* Auth Modal Additions */
#auth-modal input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#auth-modal input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px #ffffff;
}
