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

:root {
  --color-bg: #120f1f;
  --color-surface: rgba(24, 22, 43, 0.8);
  --color-surface-strong: rgba(34, 29, 56, 0.92);
  --color-border: rgba(224, 181, 83, 0.22);
  --color-border-strong: rgba(224, 181, 83, 0.48);
  --color-text: #f3ead4;
  --color-text-muted: #cdbf9a;
  --color-heading: #fff5d6;
  --color-accent: #e0b553;
  --color-accent-strong: #f6c86d;
  --color-secondary: #86a9c7;
  --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
  --font-display: "Arial Narrow", "Avenir Next Condensed", "Trebuchet MS", sans-serif;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.28);
}

html {
  scroll-behavior: smooth;
}

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 16px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top, rgba(94, 59, 28, 0.22), transparent 30%),
    linear-gradient(180deg, #191629 0%, var(--color-bg) 100%);
  color: var(--color-text);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Add styles for messages.html here */
.messages-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  padding: 15px 20px;
  border-radius: 8px;
  color: #1a0f2e;
  font-weight: bold;
  min-width: 250px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.message.message-success {
  background: linear-gradient(135deg, #d4a017, #ffd700);
}

.message.message-error {
  background: linear-gradient(135deg, #b33, #e66);
  color: white;
}

.brand-logo {
  position: relative;
  display: block;
  width: 150px;
  height: 150px;
  aspect-ratio: 640 / 543;
  isolation: isolate;
  overflow: visible;
}

.brand-logo__halo {
  position: absolute;
  inset: 16% 18% 24%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(213, 137, 255, 0.48), rgba(149, 76, 214, 0.18) 42%, rgba(34, 12, 68, 0) 72%);
  filter: blur(12px);
  opacity: 0.8;
  animation: brand-logo-halo 4.8s ease-in-out infinite;
  z-index: 0;
}

.brand-logo__svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.brand-logo__svg-layer {
  transform-origin: center;
  transform-box: view-box;
}

.brand-logo__svg-layer--glow {
  color: rgba(236, 188, 255, 0.68);
  opacity: 0.56;
  filter:
    drop-shadow(0 0 10px rgba(255, 222, 120, 0.16))
    drop-shadow(0 0 28px rgba(171, 88, 231, 0.38));
  animation: brand-logo-glow 4.8s ease-in-out infinite;
}

.brand-logo__svg-layer--base {
  color: #a35fd6;
  filter:
    drop-shadow(0 0 8px rgba(255, 215, 110, 0.1))
    drop-shadow(0 0 18px rgba(144, 78, 214, 0.2));
  animation: brand-logo-breathe 4.8s ease-in-out infinite;
}

.brand-logo__sweep {
  opacity: 0.95;
  mix-blend-mode: screen;
}

.brand-logo__sweep-beam {
  transform: translateX(0) skewX(-18deg);
  transform-origin: center;
  transform-box: fill-box;
  animation: brand-logo-sweep 5.8s linear infinite;
}

.brand-logo__sparkle {
  position: absolute;
  z-index: 3;
  width: 10%;
  aspect-ratio: 1;
  opacity: 0;
  background:
    radial-gradient(circle, rgba(255, 247, 209, 0.98) 0 18%, rgba(255, 247, 209, 0.24) 19% 40%, rgba(255, 247, 209, 0) 41%),
    linear-gradient(transparent 42%, rgba(255, 247, 209, 0.92) 42% 58%, transparent 58%),
    linear-gradient(90deg, transparent 42%, rgba(255, 247, 209, 0.92) 42% 58%, transparent 58%);
  filter: drop-shadow(0 0 10px rgba(255, 243, 189, 0.52));
}

.brand-logo__sparkle--one {
  top: 17%;
  right: 33%;
  animation: brand-logo-sparkle 3.8s ease-in-out infinite 0.3s;
}

.brand-logo__sparkle--two {
  top: 21%;
  right: 18%;
  width: 8%;
  animation: brand-logo-sparkle 4.3s ease-in-out infinite 1.4s;
}

.brand-logo__sparkle--three {
  top: 29%;
  right: 24%;
  width: 5.8%;
  animation: brand-logo-sparkle 4.8s ease-in-out infinite 2.1s;
}

@keyframes brand-logo-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.94;
  }

  45% {
    transform: scale(1.01);
    opacity: 1;
  }

  60% {
    transform: scale(1.008);
    opacity: 0.98;
  }
}

@keyframes brand-logo-glow {
  0%,
  100% {
    opacity: 0.36;
    transform: scale(1);
  }

  40% {
    opacity: 0.58;
    transform: scale(1.012);
  }

  70% {
    opacity: 0.5;
    transform: scale(1.006);
  }
}

@keyframes brand-logo-halo {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.94);
  }

  50% {
    opacity: 0.86;
    transform: scale(1.02);
  }
}

@keyframes brand-logo-sweep {
  0% {
    transform: translateX(0) skewX(-18deg);
  }

  100% {
    transform: translateX(1080px) skewX(-18deg);
  }
}

@keyframes brand-logo-sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.4) rotate(0deg);
  }

  20% {
    opacity: 0;
    transform: scale(0.4) rotate(0deg);
  }

  35% {
    opacity: 0.95;
    transform: scale(1) rotate(18deg);
  }

  52% {
    opacity: 0.5;
    transform: scale(0.68) rotate(32deg);
  }

  70% {
    opacity: 0;
    transform: scale(0.35) rotate(45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo__halo,
  .brand-logo__svg-layer--glow,
  .brand-logo__svg-layer--base,
  .brand-logo__sweep-beam,
  .brand-logo__sparkle {
    animation: none;
  }

  .brand-logo__sparkle {
    opacity: 0.35;
  }
}
