:root {
  --black: #101014;
  --panel: rgba(14, 13, 20, 0.72);
  --panel-strong: rgba(18, 16, 28, 0.88);
  --purple: #8a4dff;
  --purple-soft: #c2a6ff;
  --purple-dark: #4b2a99;
  --red: #a32626;
  --white: #f2f2f2;
  --muted: #a9a8b8;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  font-family: Bahnschrift, "Segoe UI Semibold", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- background fx ---------- */

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -5;
  overflow: hidden;
}

.bg-base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(138, 77, 255, 0.24), transparent 30%),
    radial-gradient(circle at 82% 38%, rgba(87, 45, 170, 0.2), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(163, 38, 38, 0.14), transparent 38%),
    linear-gradient(160deg, #06060a 0%, #101014 45%, #1a1228 100%);
  animation: bgPulse 10s ease-in-out infinite alternate;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at 50% 20%, black 0, transparent 70%);
}

.bg-fog {
  position: absolute;
  inset: -20%;
  filter: blur(60px);
  opacity: 0.35;
  mix-blend-mode: screen;
}

.fog-a {
  background: radial-gradient(circle at 20% 30%, rgba(138, 77, 255, 0.4), transparent 30%);
  animation: fogA 20s ease-in-out infinite alternate;
}

.fog-b {
  background: radial-gradient(circle at 80% 70%, rgba(163, 38, 38, 0.2), transparent 28%);
  animation: fogB 24s ease-in-out infinite alternate;
}

.bg-light-beam {
  position: absolute;
  left: 6%;
  top: -15%;
  width: 46vw;
  height: 95vh;
  background: linear-gradient(105deg, transparent 0 34%, rgba(138, 77, 255, 0.16) 48%, transparent 68%);
  filter: blur(16px);
  opacity: 0.6;
  transform-origin: top left;
  animation: beamSweep 12s ease-in-out infinite alternate;
}

.bg-dust {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    radial-gradient(circle, rgba(242, 242, 242, 0.35) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(138, 77, 255, 0.45) 0 1px, transparent 1.4px);
  background-size: 130px 130px, 180px 180px;
  background-position: 0 0, 46px 66px;
  animation: dustFall 20s linear infinite;
}

.bg-grain {
  position: absolute;
  inset: -20%;
  opacity: 0.05;
  background-image: radial-gradient(circle, rgba(255,255,255,0.3) 0 1px, transparent 1px);
  background-size: 34px 34px;
  animation: grain 0.9s steps(2) infinite;
}

.bg-scanline {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(255, 255, 255, 0.06) 5px);
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, transparent 0, rgba(0,0,0,0.1) 45%, rgba(0,0,0,0.85) 100%);
}

@keyframes bgPulse {
  from { filter: saturate(0.9) brightness(0.85); }
  to { filter: saturate(1.15) brightness(1); }
}
@keyframes fogA {
  from { transform: translate3d(-2%, 1%, 0) scale(1); }
  to { transform: translate3d(4%, -3%, 0) scale(1.1); }
}
@keyframes fogB {
  from { transform: translate3d(3%, -2%, 0) scale(1.05); }
  to { transform: translate3d(-4%, 2%, 0) scale(1); }
}
@keyframes grain {
  from { transform: translate(0,0); }
  to { transform: translate(16px, -10px); }
}
@keyframes beamSweep {
  from { transform: rotate(-8deg) translateX(-8%); opacity: 0.4; }
  to { transform: rotate(8deg) translateX(12%); opacity: 0.7; }
}
@keyframes dustFall {
  from { background-position: 0 -140px, 46px -190px; }
  to { background-position: 0 800px, 46px 940px; }
}

/* ---------- embers (floating particles) ---------- */

.embers {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.ember {
  position: absolute;
  bottom: -20px;
  width: var(--size, 4px);
  height: var(--size, 4px);
  border-radius: 50%;
  background: var(--purple-soft);
  box-shadow: 0 0 8px 2px rgba(138, 77, 255, 0.6);
  opacity: 0;
  animation: emberRise var(--duration, 9s) linear forwards;
}

@keyframes emberRise {
  0% { transform: translate(0, 0); opacity: 0; }
  8% { opacity: var(--opacity, 0.7); }
  90% { opacity: var(--opacity, 0.7); }
  100% { transform: translate(var(--drift, 40px), -110vh); opacity: 0; }
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: rippleOut 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleOut {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--purple), #6a35d6);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(138, 77, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 30px rgba(138, 77, 255, 0.5);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* ---------- eyebrow ---------- */

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(138, 77, 255, 0.14);
  color: var(--purple-soft);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* ---------- title / logo ---------- */

.wip-title {
  margin: 0 0 36px;
  line-height: 0;
}

.logo-img {
  width: min(560px, 88vw);
  height: auto;
  filter: drop-shadow(0 10px 34px rgba(138, 77, 255, 0.45));
}

.wip-title.glitch .logo-img {
  animation: glitchShift 0.22s steps(2, end) 2;
}

@keyframes glitchShift {
  0% { transform: translate(0, 0); filter: drop-shadow(0 10px 34px rgba(138, 77, 255, 0.45)); }
  20% { transform: translate(-5px, 1px); filter: drop-shadow(-4px 0 #ff2b6d) drop-shadow(4px 0 #2bd7ff); }
  40% { transform: translate(5px, -1px); filter: drop-shadow(4px 0 #ff2b6d) drop-shadow(-4px 0 #2bd7ff); }
  60% { transform: translate(-3px, 0); filter: drop-shadow(-3px 0 #ff2b6d) drop-shadow(3px 0 #2bd7ff); }
  80% { transform: translate(3px, 1px); filter: drop-shadow(3px 0 #ff2b6d) drop-shadow(-3px 0 #2bd7ff); }
  100% { transform: translate(0, 0); filter: drop-shadow(0 10px 34px rgba(138, 77, 255, 0.45)); }
}

/* ---------- coming soon page ---------- */

.wip {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.loader {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(138, 77, 255, 0.15);
  border-top-color: var(--purple);
  border-right-color: var(--purple-soft);
  animation: spin 1.1s linear infinite;
  filter: drop-shadow(0 0 10px rgba(138, 77, 255, 0.5));
}

.loader-core {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple-soft);
  box-shadow: 0 0 18px 4px rgba(138, 77, 255, 0.7);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

.wip-status {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--purple-soft);
  text-transform: uppercase;
}

.message-wrap {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 20px;
}

.message {
  color: var(--muted);
  font-size: 15px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.message.hide {
  opacity: 0;
  transform: translateY(10px);
}

.progress-shell {
  width: min(360px, 80vw);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 40px;
}

.progress {
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), #d7c6ff);
  box-shadow: 0 0 18px rgba(138, 77, 255, 0.7);
  animation: progressSlide 2.2s ease-in-out infinite;
}

@keyframes progressSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.discord-link {
  margin-bottom: 22px;
}

.wip-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

@media (max-width: 480px) {
  .loader {
    width: 76px;
    height: 76px;
  }
}
