/* Base tokens, reset, background, loader */
:root {
  --bg: #05060d;
  --bg-soft: rgba(8, 10, 18, 0.74);
  --panel: rgba(8, 10, 18, 0.58);
  --panel-strong: rgba(10, 12, 22, 0.92);
  --line: rgba(221, 181, 255, 0.22);
  --line-strong: rgba(255, 255, 255, 0.08);
  --text: #f7f1ff;
  --muted: #cbb6ea;
  --muted-soft: rgba(255, 255, 255, 0.72);
  --purple: #b763ff;
  --purple-2: #8d6aff;
  --blue: #54a9ff;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
  --sidebar-width: 290px;
  --header-height: 62px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: 1480px;
  --frame-width: min(1480px, calc(100vw - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
button { padding: 0; }

.shell-body.loading { overflow: hidden; }
.page-body { background: transparent; }
.page-content {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 12px 20px 70px;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.bg-image {
  z-index: -3;
  background: linear-gradient(rgba(5, 6, 13, 0.34), rgba(5, 6, 13, 0.84)), url("../../images/site-bg.jpg") center center / cover no-repeat;
  transform: scale(1.05);
  will-change: transform;
  animation: siteBgFloat 18s ease-in-out infinite;
}
.bg-overlay {
  z-index: -2;
  background:
    radial-gradient(circle at 20% 20%, rgba(191, 116, 255, 0.18), transparent 18%),
    radial-gradient(circle at 76% 22%, rgba(84, 169, 255, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(8, 9, 16, 0.4), rgba(5, 6, 13, 0.9));
  transition: transform 1.5s ease, filter 1.5s ease, opacity 1.5s ease;
}
.bg-overlay.music-active { animation: bgPulse 10s ease-in-out infinite; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(2, 3, 8, 0.96), rgba(4, 5, 10, 0.98));
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-inner {
  position: relative;
  width: min(78vw, 320px);
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.loader-inner img { width: 84%; }
.loader-inner p { margin: 16px 0 0; letter-spacing: 0.16em; color: #eadcff; }
.loader-ring {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--purple);
  border-right-color: var(--blue);
  animation: spin 1.6s linear infinite;
}
.loader-ring-2 { inset: 22%; animation-duration: 2.1s; animation-direction: reverse; }

