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

html { font-size: 16px; }

body {
  font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace;
  background: #07070b;
  background-attachment: fixed;
  color: #a8a8b0;
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Fog layers */
.fog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.fog::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(40, 30, 20, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(30, 25, 40, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(25, 20, 15, 0.18) 0%, transparent 50%);
  animation: drift 30s ease-in-out infinite alternate;
}

.fog::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background:
    radial-gradient(ellipse at 70% 60%, rgba(50, 35, 20, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 30% 40%, rgba(35, 25, 45, 0.08) 0%, transparent 45%);
  animation: drift 30s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(3%, 2%); }
}

/* Vignette */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(3, 3, 5, 0.7) 100%);
  pointer-events: none;
  z-index: 0;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 1;
}

.content {
  width: 100%;
  max-width: 560px;
  text-align: center;
}

/* Title */
.title {
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: 0;
  color: #d4c4a0;
  margin-bottom: 0.25rem;
  text-shadow: 0 0 40px rgba(180, 150, 100, 0.08);
}

.subtitle {
  font-size: 0.875rem;
  color: #585860;
  letter-spacing: 0.15em;
  margin-bottom: 4rem;
}

/* Sword divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.divider-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, #2a2530, transparent);
}

.divider-mark {
  width: 6px;
  height: 6px;
  background: #3a3040;
  transform: rotate(45deg);
}

/* Pillars */
.pillars {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  text-align: left;
}

.pillar { flex: 1; }

.pillar h2 {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4a4a52;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #1a1a22;
}

.pillar ul { list-style: none; }

.pillar li {
  font-size: 0.875rem;
  color: #78787e;
  padding: 0.375rem 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.pillar li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pillar.world li::before { background: #6b5a3e; }
.pillar.combat li::before { background: #5a3e3e; }
.pillar.soul li::before { background: #3e4a5a; }

/* CTA */
.cta { margin-bottom: 3rem; }

.cta-btn {
  display: inline-block;
  padding: 0.875rem 3rem;
  background: #0e0e14;
  color: #b0a080;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid #2a2520;
  transition: all 0.25s ease;
  cursor: default;
}

.cta-btn:hover {
  border-color: #8a7550;
  color: #d4c4a0;
  box-shadow: 0 0 25px rgba(140, 110, 60, 0.12), inset 0 0 25px rgba(140, 110, 60, 0.03);
}

.cta-meta {
  margin-top: 1rem;
  font-size: 0.6875rem;
  color: #3a3a42;
  letter-spacing: 0.08em;
}

/* Footer */
.footer {
  margin-top: 5rem;
  font-size: 0.6875rem;
  color: #2a2a32;
  letter-spacing: 0.08em;
}

.footer a {
  color: #3a3a44;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover { color: #5a5a64; }

/* Embers use fixed classes so the strict CSP never needs inline styles. */
.ember-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ember {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #c9a860;
  border-radius: 50%;
  opacity: 0;
  animation: rise linear infinite;
}

.ember:nth-child(1)  { left: 6%;  bottom: -8%;  animation-duration: 11s; animation-delay: 1s;  width: 1px; height: 1px; }
.ember:nth-child(2)  { left: 14%; bottom: -15%; animation-duration: 17s; animation-delay: 8s;  width: 2px; height: 2px; }
.ember:nth-child(3)  { left: 23%; bottom: -4%;  animation-duration: 13s; animation-delay: 4s;  width: 3px; height: 3px; }
.ember:nth-child(4)  { left: 31%; bottom: -12%; animation-duration: 19s; animation-delay: 11s; width: 1px; height: 1px; }
.ember:nth-child(5)  { left: 39%; bottom: -18%; animation-duration: 15s; animation-delay: 6s;  width: 2px; height: 2px; }
.ember:nth-child(6)  { left: 47%; bottom: -7%;  animation-duration: 10s; animation-delay: 13s; width: 2px; height: 2px; }
.ember:nth-child(7)  { left: 55%; bottom: -16%; animation-duration: 18s; animation-delay: 3s;  width: 3px; height: 3px; }
.ember:nth-child(8)  { left: 63%; bottom: -5%;  animation-duration: 12s; animation-delay: 9s;  width: 1px; height: 1px; }
.ember:nth-child(9)  { left: 71%; bottom: -11%; animation-duration: 16s; animation-delay: 5s;  width: 2px; height: 2px; }
.ember:nth-child(10) { left: 79%; bottom: -19%; animation-duration: 20s; animation-delay: 12s; width: 2px; height: 2px; }
.ember:nth-child(11) { left: 87%; bottom: -6%;  animation-duration: 14s; animation-delay: 2s;  width: 3px; height: 3px; }
.ember:nth-child(12) { left: 95%; bottom: -14%; animation-duration: 9s;  animation-delay: 7s;  width: 1px; height: 1px; }

@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0);
  }
  10% { opacity: 0.6; }
  90% { opacity: 0.2; }
  100% {
    opacity: 0;
    transform: translateY(-100vh) translateX(30px);
  }
}

@media (max-width: 600px) {
  .title { font-size: 2.25rem; letter-spacing: 0; }
  .pillars { flex-direction: column; gap: 1.5rem; }
  .cta-btn { width: 100%; padding: 0.875rem; }
}
