:root {
  --bg: #080810;
  --bg2: #0d0d1a;
  --purple: #7C3AED;
  --purple-dim: rgba(124, 58, 237, 0.15);
  --orange: #FF6B35;
  --white: #F0F0F0;
  --muted: rgba(240, 240, 240, 0.45);
  --border: rgba(124, 58, 237, 0.2);
  --font-title: 'Bebas Neue', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ─── Scanline overlay ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.08) 2px, rgba(0, 0, 0, 0.08) 4px);
  pointer-events: none;
  z-index: 9999;
}

/* ─── Canvas Star BG ─── */
#star-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── Sidenav ─── */
#sidenav {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: linear-gradient(180deg, rgba(8, 8, 16, 0.9), rgba(13, 13, 26, 0.9));
  border-right: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

#sidenav .nav-rune {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 18px;
  border-radius: 10px;
  transition: all 0.25s ease;
  position: relative;
}

#sidenav .nav-rune:hover,
#sidenav .nav-rune.active {
  color: var(--white);
  background: var(--purple-dim);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

#sidenav .nav-rune::after {
  content: attr(data-label);
  position: absolute;
  left: 56px;
  background: var(--bg2);
  color: var(--white);
  font-size: 11px;
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: all 0.2s ease;
}

#sidenav .nav-rune:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Main content (offset for sidenav) ─── */
#main-wrap {
  margin-left: 60px;
  position: relative;
  z-index: 1;
}

/* ─── Section base ─── */
.section {
  padding: 100px 60px;
  max-width: 1300px;
  margin: 0 auto;
}

/* ─── Hero ─── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 80px;
  position: relative;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(64px, 10vw, 140px);
  line-height: 0.9;
  letter-spacing: -2px;
  color: var(--white);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-title .accent {
  color: var(--purple);
}

.hero-title .stroke {
  -webkit-text-stroke: 1px var(--white);
  color: transparent;
}

.hero-sub {
  margin-top: 28px;
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-cta {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--purple);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(124, 58, 237, 0.6);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-ghost:hover {
  border-color: var(--purple);
  background: var(--purple-dim);
}

/* ─── Section titles ─── */
.section-label {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  color: var(--white);
  margin-bottom: 48px;
}

/* ─── Members grid ─── */
#members {
  border-top: 1px solid var(--border);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.member-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.member-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple-dim), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.member-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.2);
}

.member-card:hover::before {
  opacity: 1;
}

.member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid var(--border);
}

.member-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.member-tag {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ─── Empty state ─── */
.empty-state {
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
  font-size: 14px;
}

/* ─── Clips grid ─── */
#clips {
  border-top: 1px solid var(--border);
}

.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.clip-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.clip-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(255, 107, 53, 0.15);
}

.clip-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.clip-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.clip-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.clip-info {
  padding: 16px 20px;
}

.clip-game {
  font-size: 10px;
  color: var(--orange);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.clip-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
}

/* ─── CTA / Join ─── */
#join {
  border-top: 1px solid var(--border);
  text-align: center;
}

.join-box {
  max-width: 560px;
  margin: 0 auto;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.join-title {
  font-family: var(--font-title);
  font-size: 52px;
  margin-bottom: 16px;
}

.join-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ─── BGM Player ─── */
#bgm-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  background: rgba(8, 8, 16, 0.9);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(16px);
  min-width: 200px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.bgm-info {
  flex: 1;
  overflow: hidden;
}

.bgm-title {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bgm-status {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.bgm-mini-vis {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
}

.bgm-mini-vis .b {
  width: 3px;
  background: var(--purple);
  border-radius: 2px;
  height: 4px;
}

.bgm-playing .bgm-mini-vis .b:nth-child(1) {
  animation: vis 0.6s 0s ease-in-out infinite alternate;
}

.bgm-playing .bgm-mini-vis .b:nth-child(2) {
  animation: vis 0.6s 0.15s ease-in-out infinite alternate;
}

.bgm-playing .bgm-mini-vis .b:nth-child(3) {
  animation: vis 0.6s 0.3s ease-in-out infinite alternate;
}

.bgm-playing .bgm-mini-vis .b:nth-child(4) {
  animation: vis 0.6s 0.45s ease-in-out infinite alternate;
}

@keyframes vis {
  from {
    height: 4px;
  }

  to {
    height: 16px;
  }
}

.bgm-btn {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.bgm-btn:hover {
  background: var(--purple-dim);
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Footer ─── */
footer {
  margin-left: 0;
  padding: 40px 80px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ─── Admin UI (admin.html) ─── */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 40px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar .logo {
  padding: 0 24px 32px;
  font-family: var(--font-title);
  font-size: 22px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  color: var(--white);
  background: var(--purple-dim);
  border-right: 2px solid var(--purple);
}

.admin-content {
  padding: 48px;
}

.admin-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}

.admin-card h3 {
  font-family: var(--font-title);
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--white);
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-row input[type=text],
.form-row input[type=url],
.form-row input[type=file],
.form-row select,
.form-row textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--purple);
}

.form-row textarea {
  resize: vertical;
  min-height: 80px;
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
}

.item-row .item-name {
  flex: 1;
  font-weight: 600;
}

.item-del {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #f87171;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
}

.item-del:hover {
  background: rgba(220, 38, 38, 0.3);
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  #sidenav {
    display: none;
  }

  #main-wrap {
    margin-left: 0;
  }

  #hero {
    padding: 80px 28px;
  }

  .section {
    padding: 70px 28px;
  }

  footer {
    padding: 28px;
    flex-direction: column;
    gap: 8px;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    height: auto;
    position: static;
  }
}

/* ─── Splash Screen ─── */
#splash-screen {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  cursor: pointer;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
  text-align: center;
}

#splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.splash-title {
  font-family: var(--font-title);
  font-size: 5rem;
  letter-spacing: 0.25em;
  color: #fff;
  text-shadow: 0 0 30px rgba(124, 58, 237, 0.8), 0 0 60px rgba(124, 58, 237, 0.4);
  margin-bottom: 30px;
  animation: splashPulse 2.5s infinite ease-in-out;
  user-select: none;
}

.splash-prompt {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.6em;
  color: var(--muted);
  text-transform: uppercase;
  animation: splashBlink 2s infinite;
  user-select: none;
}

@keyframes splashPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }

  50% {
    transform: scale(1.02);
    opacity: 0.8;
    filter: blur(1px);
  }
}

@keyframes splashBlink {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .splash-title {
    font-size: 2.5rem;
    letter-spacing: 0.15em;
  }

  .splash-prompt {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
  }
}

/* ─── Category Navigation ─── */
.category-nav {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.cat-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 24px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.cat-btn:hover {
  background: rgba(157, 80, 255, 0.1);
  color: #fff;
  border-color: var(--purple);
}
.cat-btn.active {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
  box-shadow: 0 0 20px var(--purple-glow);
}

/* ─── Clip Overlay & Video ─── */
.clip-item { transition: opacity 0.3s ease; cursor: pointer; }
.clip-item:hover .clip-overlay-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.clip-item:hover .clip-iframe-wrap img { transform: scale(1.05); filter: brightness(0.6); }

.clip-overlay-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 64px;
  color: #fff;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
  pointer-events: none;
  text-shadow: 0 0 30px rgba(0,0,0,0.8);
}
.clip-iframe-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  overflow: hidden;
  background: #000;
  pointer-events: none; /* Prevent clicks on iframe directly */
}
.clip-thumb-img, .clip-thumb-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.clip-meta {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;
}
.clip-cat-tag {
  background: rgba(157, 80, 255, 0.2);
  color: var(--purple);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.05em;
}

/* ─── Lightbox Modal ─── */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-close {
  position: absolute;
  top: 30px; right: 40px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  z-index: 10000;
}
.lightbox-close:hover {
  color: var(--orange);
  transform: rotate(90deg);
}
.lightbox-content {
  width: 90%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0,0,0,0.8), 0 0 50px var(--purple-dim);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lightbox.active .lightbox-content {
  transform: scale(1);
}
.lightbox-content iframe, .lightbox-content video, .lightbox-content img {
  width: 100%; height: 100%;
  border: none;
  object-fit: contain;
}

/* ─── Memory Carousel ─── */
#memories {
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.memory-carousel {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.08);
}

.memory-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ─── Individual Slide Items ─── */
.memory-item {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  /* Default: hidden far right */
  transform: translateX(100%) scale(0.85);
  opacity: 0;
  z-index: 0;
}

/* Active slide: full width, center */
.memory-item.mem-active {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 3;
}

/* Previous slide: peeking left, small */
.memory-item.mem-prev {
  transform: translateX(-62%) scale(0.82);
  opacity: 0.45;
  z-index: 2;
}

/* Next slide: peeking right, small */
.memory-item.mem-next {
  transform: translateX(62%) scale(0.82);
  opacity: 0.45;
  z-index: 2;
}

/* Far slides: hidden */
.memory-item.mem-far {
  transform: translateX(120%) scale(0.7);
  opacity: 0;
  z-index: 1;
}

/* Dark gradient overlay on all slides */
.memory-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 8, 16, 0.85) 0%,
    rgba(8, 8, 16, 0.3) 50%,
    rgba(8, 8, 16, 0.15) 100%
  );
  z-index: 1;
}

/* Purple scan-line shimmer on hover */
.memory-item.mem-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.06) 0%,
    transparent 60%
  );
  z-index: 2;
  pointer-events: none;
}

/* ─── Memory Content Text ─── */
.memory-content {
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  z-index: 5;
  max-width: 360px;
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
  pointer-events: none;
}

.memory-item.mem-active .memory-content {
  opacity: 1;
}

.memory-tag {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
  font-family: var(--font-body);
  animation: none;
}

.memory-item.mem-active .memory-tag {
  animation: memSlideUp 0.7s ease 0.1s both;
}

.memory-name {
  font-family: var(--font-title);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 16px;
}

.memory-item.mem-active .memory-name {
  animation: memSlideUp 0.7s ease 0.25s both;
}

.memory-des {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(240, 240, 240, 0.7);
  font-family: var(--font-body);
  max-width: 280px;
}

.memory-item.mem-active .memory-des {
  animation: memSlideUp 0.7s ease 0.4s both;
}

@keyframes memSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ─── Navigation ─── */
.memory-nav {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mem-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.5);
  background: rgba(8, 8, 16, 0.7);
  color: var(--white);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  line-height: 1;
}

.mem-btn:hover {
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
  transform: scale(1.08);
}

.memory-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mem-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(240, 240, 240, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.mem-dot.active {
  background: var(--purple);
  width: 20px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.6);
}

/* ─── Mobile responsive ─── */
@media (max-width: 768px) {
  .memory-carousel {
    height: 360px;
    border-radius: 14px;
  }

  .memory-item.mem-prev,
  .memory-item.mem-next {
    opacity: 0;
    pointer-events: none;
  }

  .memory-content {
    left: 28px;
    max-width: calc(100% - 56px);
  }

  .memory-name {
    font-size: 36px;
  }
}