:root {
  --bg: #07080b;
  --panel: rgba(18, 20, 27, 0.78);
  --panel-strong: #12141b;
  --line: rgba(255, 255, 255, 0.12);
  --muted: #a7adbb;
  --text: #f7f8fb;
  --accent: #ffffff;
  --accent-2: #ff1493;
  --accent-3: #0066ff;
  --rainbow: #ff004d, #ff7a00, #ffd300, #22c55e, #00b4ff, #7c3aed, #ff004d;
  --rainbow-loop: #ff004d 0%, #ff7a00 16%, #ffd300 32%, #22c55e 48%, #00b4ff 64%, #7c3aed 80%, #ff004d 100%;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(38, 243, 208, 0.18), transparent 32rem),
    radial-gradient(circle at 86% 20%, rgba(255, 77, 141, 0.16), transparent 28rem),
    linear-gradient(135deg, #07080b 0%, #10131c 52%, #08090d 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("/images/icons/VRChat_2025-06-10_18-26-33.306_1920x1080.png");
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  filter: saturate(1.08) contrast(1.05);
}

a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 11, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
}
.brand img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
  border-radius: 0;
}
.brand span { white-space: nowrap; }
nav { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
nav a {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}
nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.home-hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 8, 11, 0.82), rgba(7, 8, 11, 0.18), rgba(7, 8, 11, 0.68));
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 72px;
  align-items: center;
  padding: 70px 0;
}
.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 2;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: 0; }
h1 {
  max-width: 720px;
  font-size: clamp(3rem, 5vw, 5.1rem);
  overflow-wrap: normal;
  word-break: normal;
}
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.35rem; }
.hero-lede, .page-hero p {
  max-width: 650px;
  margin: 18px 0 0;
  color: #d4d8e3;
  font-size: 1.14rem;
}
.hero-actions, .center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.button, button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.button:hover, button:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.3); }
.button.primary {
  background: linear-gradient(90deg, var(--rainbow-loop));
  background-size: 420% 100%;
  color: #030305;
  border-color: rgba(255, 255, 255, 0.35);
  animation: rainbow-flow 8s linear infinite;
}

.hero-showcase {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  transform-style: preserve-3d;
  min-width: 0;
}
.avatar-orbit {
  width: min(330px, 100%);
  aspect-ratio: 1;
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(var(--rainbow));
  animation: spin-rainbow 3s linear infinite;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.22);
}
.avatar-orbit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  border: 8px solid #08090d;
  animation: counter-spin 3s linear infinite;
}
.signal-panel {
  position: static;
  width: min(330px, 100%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 20, 27, 0.86);
  backdrop-filter: blur(12px);
}
.signal-panel span, .signal-panel small { display: block; color: var(--muted); }
.signal-panel strong { display: block; font-size: 3rem; line-height: 1; color: #ffffff; }
@keyframes spin-rainbow { to { transform: rotate(360deg); } }
@keyframes counter-spin { to { transform: rotate(-360deg); } }
@keyframes rainbow-flow { to { background-position: -420% 50%; } }

.content-band {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}
.stats-grid div { padding: 22px 0; }
.stats-grid strong { display: block; color: #ffffff; font-size: 2rem; }
.stats-grid span { color: var(--muted); }

.section-stack { padding: 64px 0; }
.section-heading { margin-bottom: 22px; }
.feature-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.feature-thumb, .masonry-item, .slide-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}
.feature-thumb { aspect-ratio: 4 / 5; }
.feature-thumb img, .masonry-item img, .slide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}
.feature-thumb:hover img, .masonry-item:hover img { transform: scale(1.06); filter: saturate(1.15); }

.page-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 64px;
}
.link-panel, .contact-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
}
.link-panel span { color: var(--accent); font-weight: 900; }
.link-panel p { color: var(--muted); margin-bottom: 0; }

.page-hero {
  padding: 76px 0 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent);
}
.page-hero.compact h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.music-hero { border-bottom: 1px solid var(--line); }

.gallery-shell { padding: 28px 0 70px; }
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.filter-group, .video-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
}
.chip span { color: var(--accent); }
.chip.active {
  color: #030305;
  background: #ffffff;
  border-color: #ffffff;
}
.gallery-count { color: var(--muted); }
.gallery-count strong { color: var(--text); }

.slideshow-container { margin-bottom: 28px; }
.slideshow {
  position: relative;
  min-height: min(58vw, 580px);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}
.slide-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}
.slide-card.active { opacity: 1; pointer-events: auto; }
.slide-card[hidden], .masonry-item[hidden] { display: none; }
.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
  color: var(--muted);
}
.icon-button { width: 42px; padding: 0; }
.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.masonry-item { aspect-ratio: 1; }
.center-actions { justify-content: center; }
.gallery-shell .button.primary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--line);
  animation: none;
}
.gallery-shell .button.primary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.platform-buttons-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.platform-button {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 150px;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.platform-button:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); }
.platform-button img { width: 76px; height: 76px; object-fit: contain; }

.video-player {
  display: grid;
  gap: 14px;
}
.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: 28px;
  align-items: center;
}
.contact-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  min-height: auto;
}
.contact-card img {
  width: 180px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid transparent;
  background: linear-gradient(#08090d, #08090d) padding-box, conic-gradient(var(--rainbow)) border-box;
}
.email-link {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.admin-shell {
  display: grid;
  gap: 24px;
  padding: 28px 0 70px;
}
.admin-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.upload-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) auto;
  gap: 12px;
  align-items: end;
}
.upload-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}
.upload-form label span { display: block; }
.upload-form input {
  min-height: 42px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.admin-shell .button.primary {
  background: #ffffff;
  color: #030305;
  border-color: #ffffff;
  animation: none;
}
.status-message { margin: 12px 0 0; color: var(--muted); }
.status-message.error { color: #ff8aa8; }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.admin-image {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.admin-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}
.admin-image strong,
.admin-image small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-image small { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer a { color: var(--muted); text-decoration: none; }
.copyright-glow {
  font-weight: 800;
  background: linear-gradient(90deg, var(--rainbow-loop));
  background-size: 420% 100%;
  background-position: 72% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: footer-rainbow-flow 13s linear infinite;
}
@keyframes footer-rainbow-flow {
  from { background-position: 72% 50%; }
  to { background-position: 492% 50%; }
}

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.lightbox-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.9); }
.lightbox-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(1100px, 100%);
}
.lightbox-content { min-width: 0; text-align: center; }
.lightbox-content img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-caption, .lightbox-counter { color: var(--muted); margin-top: 8px; }
.lightbox-close { position: absolute; top: -50px; right: 0; width: 42px; padding: 0; }
.lightbox-nav { width: 42px; padding: 0; }

.not-found-page {
  min-height: calc(100vh - 150px);
  display: grid;
  align-items: center;
  padding: 72px 0;
}
.not-found-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 42px;
  align-items: center;
}
.not-found-copy h1 {
  font-size: clamp(5rem, 18vw, 12rem);
  line-height: 0.8;
}
.not-found-copy p {
  max-width: 520px;
  color: #d4d8e3;
  font-size: 1.15rem;
}
.not-found-visual {
  display: grid;
  place-items: center;
}
.glitch-card {
  width: min(360px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(8, 9, 13, 0.9), rgba(8, 9, 13, 0.9)) padding-box,
    conic-gradient(var(--rainbow)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.28);
  text-align: center;
}
.glitch-card span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.glitch-card strong {
  color: #ffffff;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 1;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .hero-grid, .contact-grid, .not-found-grid { grid-template-columns: 1fr; }
  .upload-form { grid-template-columns: 1fr; }
  h1 { font-size: clamp(3rem, 10vw, 4.6rem); }
  .hero-showcase { min-height: auto; justify-content: flex-start; }
  .avatar-orbit { width: min(300px, 70vw); }
  .feature-strip, .platform-buttons-grid { grid-template-columns: repeat(3, 1fr); }
  .page-links, .stats-grid { grid-template-columns: 1fr; }
  .stats-grid div { padding: 16px 0; }
}

@media (max-width: 620px) {
  .header-inner, .footer-inner, .toolbar { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
  .home-hero { min-height: auto; }
  h1 { font-size: clamp(2.6rem, 11.5vw, 3.7rem); }
  .hero-grid { padding: 48px 0; }
  .hero-showcase { align-items: flex-start; flex-direction: column; }
  .signal-panel { width: 100%; }
  .feature-strip, .platform-buttons-grid { grid-template-columns: repeat(2, 1fr); }
  .slideshow { min-height: 74vw; }
  .lightbox-container { grid-template-columns: 1fr; }
  .lightbox-nav { display: none; }
}
