/* =========================================================
   DIIVERGE.CO / VOLUMES INSPIRED STYLING · PINKY & THE BRAIN
   1990s Warner Bros Cel Animation Aesthetic & Dark Glassmorphism
   ========================================================= */

:root {
  --bg-space: #08080a;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-border-hover: rgba(253, 230, 138, 0.6);
  --accent-amber: #fde68a;
  --accent-amber-light: #fef3c7;
  --accent-red: #ef476f;
  --accent-green: #06d6a0;
  --accent-cyan: #38bdf8;
  --text-white: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.35);
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-space);
  color: var(--text-white);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Echo Glow (like diiverge.co) */
.shelf-echo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46rem;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.shelf-echo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(80px) saturate(160%);
  transform: scale(1.3);
}

/* Glass UI Elements */
.glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.2s ease;
}

.glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.glass-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  color: #fff;
  border-radius: 9999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

.glass-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent-amber);
  transform: translateY(-1px);
}

/* =========================================================
   VIEW 1: THE VOLUMES CATALOG (diiverge.co/volumes)
   ========================================================= */
#volumes-view {
  position: relative;
  z-index: 10;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.volumes-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand-wordmark {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.acme-pill-badge {
  background: var(--accent-red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 2px 7px;
  border-radius: 4px;
}

.brand-tagline {
  margin-top: 0.25rem;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.5;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-round-glass {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.btn-round-glass:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

/* Hero Volume Card (Latest Volume) */
.hero-volume-section {
  margin-top: 2.5rem;
}

.volume-card-hero {
  display: block;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.volume-card-hero:hover {
  border-color: var(--card-border-hover);
}

.volume-card-hero:hover .volume-cover-img {
  transform: scale(1.02);
}

.volume-cover-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.volume-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
  pointer-events: none;
}

.hero-side-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
  pointer-events: none;
}

.hero-volume-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.volume-badge-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-amber);
}

.volume-hero-title {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.volume-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.meta-scenes-count {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

/* Earlier Volumes Grid */
.earlier-volumes-section {
  margin-top: 3.5rem;
}

.shelf-section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.2rem;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-dim);
}

.volumes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  list-style: none;
}

.volume-subcard {
  display: block;
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.volume-subcard:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-2px);
}

.volume-subcard:hover .subcard-img {
  transform: scale(1.03);
}

.subcard-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.subcard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.subcard-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 100%);
  pointer-events: none;
}

.subcard-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem;
}

.subcard-vol-tag {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-amber);
}

.subcard-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0.2rem 0;
}

.subcard-meta {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

/* Locked Volume Cards (Disabled & Styled) */
.volume-subcard.locked {
  cursor: not-allowed;
  opacity: 0.65;
  border-color: rgba(255, 255, 255, 0.08);
  filter: grayscale(0.25);
}

.volume-subcard.locked:hover {
  transform: none;
  border-color: rgba(239, 71, 111, 0.35);
}

.volume-subcard.locked:hover .subcard-img {
  transform: none;
}

.volume-subcard.locked .subcard-img {
  filter: brightness(0.5) contrast(0.9);
}

.subcard-lock-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb703;
  background: rgba(12, 12, 16, 0.88);
  border: 1px solid rgba(255, 183, 3, 0.35);
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.locked-toast {
  position: fixed;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  opacity: 0;
  pointer-events: none;
  background: rgba(18, 18, 24, 0.95);
  border: 1px solid rgba(239, 71, 111, 0.4);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

.locked-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@keyframes cardDeniedShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.volume-subcard.shake {
  animation: cardDeniedShake 0.4s ease;
}

/* Volumes Footer */
.volumes-footer {
  margin-top: auto;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 11px;
  color: var(--text-muted);
}

.footer-description {
  max-width: 480px;
  line-height: 1.6;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-links a {
  color: var(--accent-amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(253, 230, 138, 0.3);
  padding-bottom: 2px;
  margin-left: 1.2rem;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
  border-color: #fff;
}

/* =========================================================
   VIEW 2: IN-VOLUME CANVAS (diiverge.co/a/the-crystal-pass)
   ========================================================= */
#stage-view {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  overflow: hidden;
  display: none;
  z-index: 100;
}

#stage-view.active {
  display: block;
}

/* Edge-to-Edge Cinematic Canvas */
.cinematic-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cinematic-scene-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.cinematic-scene-img.zoomed {
  transform: scale(1.12);
  filter: brightness(0.8);
}

/* Floating Glass HUD Controls (Top Bar) */
.stage-hud-bar {
  position: absolute;
  top: 1.2rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  pointer-events: none;
}

.stage-hud-left,
.stage-hud-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  pointer-events: auto;
}

.stage-title-pill {
  background: rgba(8, 8, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* =========================================================
   DIIVERGE INTERACTIVE HOTSPOTS ON THE FRAME
   ========================================================= */
.diiverge-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 30;
  transition: all 0.25s ease;
}

.hotspot-halo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(253, 230, 138, 0.25);
  border: 1.5px solid var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(253, 230, 138, 0.4);
  animation: hotspotPulse 2.4s infinite ease-in-out;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hotspot-halo::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 8px rgba(253, 230, 138, 0.8);
}

.diiverge-hotspot:hover .hotspot-halo {
  transform: scale(1.25);
  background: rgba(253, 230, 138, 0.5);
  box-shadow: 0 0 30px rgba(253, 230, 138, 0.8);
}

.hotspot-caption-pill {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(8, 8, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.85;
  transition: all 0.2s ease;
}

.diiverge-hotspot:hover .hotspot-caption-pill {
  opacity: 1;
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

/* =========================================================
   DIIVERGE "PICK WHAT HAPPENS TO IT" DRAWER / MODAL
   ========================================================= */
.action-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 60;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.action-drawer-overlay.active {
  display: flex;
}

.action-card-panel {
  background: rgba(13, 14, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.25rem;
  width: 100%;
  max-width: 620px;
  padding: 1.8rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.drawer-subject-tag {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-amber);
}

.drawer-question {
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  margin-top: 0.2rem;
  letter-spacing: -0.01em;
}

.drawer-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.action-choice-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.action-choice-btn:hover {
  background: rgba(253, 230, 138, 0.12);
  border-color: var(--accent-amber);
  transform: translateX(4px);
}

.action-choice-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.action-choice-detail {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

/* Custom Prompt "Carve your own path..." */
.custom-carve-container {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.custom-carve-input-row {
  display: flex;
  gap: 0.6rem;
}

.custom-carve-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.6rem;
  padding: 0.65rem 0.9rem;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
}

.custom-carve-input:focus {
  outline: none;
  border-color: var(--accent-amber);
}

/* =========================================================
   "THE MOMENT PLAYS AS FILM" (CINEMATIC FILM SEQUENCE)
   ========================================================= */
.film-playback-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 80;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.film-playback-overlay.active {
  display: flex;
}

.film-character-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.char-cel-frame {
  width: 190px;
  height: 190px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  background: #000;
  transition: transform 0.3s ease;
}

.char-cel-frame.focus {
  transform: scale(1.1);
  border-color: var(--accent-amber);
  box-shadow: 0 20px 50px rgba(253, 230, 138, 0.3);
}

.cel-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cel-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  padding: 0.25rem;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.12em;
  color: var(--accent-amber);
}

.film-dialogue-card {
  background: #ffffff;
  color: #111111;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  max-width: 640px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  border: 3px solid #111;
  position: relative;
  animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.film-speaker-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 0.4rem;
}

.film-line-text {
  font-size: 1.25rem;
  line-height: 1.45;
  font-weight: 500;
  min-height: 58px;
}

.film-nav-row {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.film-action-sub {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

/* Climax Catastrophe Card */
.catastrophe-resolution-card {
  background: rgba(18, 20, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.25rem;
  padding: 2.2rem;
  max-width: 620px;
  width: 100%;
  text-align: center;
  display: none;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
}

.catastrophe-resolution-card.active {
  display: flex;
}

.catastrophe-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.catastrophe-body {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 1rem 0 1.8rem 0;
}

.branch-saved-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 1.5rem;
}

/* Animations */
@keyframes hotspotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
    box-shadow: 0 0 25px rgba(253, 230, 138, 0.7);
  }
}

@keyframes slideUp {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes popIn {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Classic Cartoon Slapstick Shake */
@keyframes cartoonQuake {
  0% { transform: translate(0, 0) rotate(0deg); }
  15% { transform: translate(-8px, 6px) rotate(-1.5deg); }
  30% { transform: translate(8px, -6px) rotate(1.5deg); }
  45% { transform: translate(-6px, -4px) rotate(-1deg); }
  60% { transform: translate(6px, 4px) rotate(1deg); }
  75% { transform: translate(-3px, 2px) rotate(-0.5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.screen-shake {
  animation: cartoonQuake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Classic 1990s Warner Bros. Iris Wipe */
.iris-wipe {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 95;
  background: radial-gradient(circle at center, transparent 0%, transparent 45%, #000 46%);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.iris-wipe.closing {
  opacity: 1;
  transform: scale(0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .volume-hero-title {
    font-size: 2rem;
  }
  .hero-volume-content {
    padding: 1.2rem;
  }
  .film-character-stage {
    gap: 1rem;
  }
  .char-cel-frame {
    width: 120px;
    height: 120px;
  }
  .film-line-text {
    font-size: 1.05rem;
  }
}

/* Background Canvas Lab & Switcher */
.bg-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.bg-preset-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  padding: 0.45rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  color: #fff;
  font-family: inherit;
  text-align: center;
}

.bg-preset-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

.bg-preset-card.active {
  border-color: var(--accent-amber);
  background: rgba(255, 183, 3, 0.1);
  box-shadow: 0 0 16px rgba(255, 183, 3, 0.2);
}

.bg-preset-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.3rem;
}

.bg-preset-card span {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.3;
}

.bg-preset-card.active span {
  color: var(--accent-amber);
  font-weight: 600;
}

.bg-custom-section {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
