/* ══════════════════════════════════════════
   FANATIC EMPIRE — source.css
   Dark Luxury / Gold Edition
══════════════════════════════════════════ */

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

:root {
  --gold:        #c9a84c;
  --gold-light:  #f0d080;
  --gold-dark:   #8a6820;
  --black:       #080808;
  --surface:     #0e0e0e;
  --surface-2:   #161616;
  --border:      rgba(201, 168, 76, 0.18);
  --text:        #e8e0d0;
  --text-muted:  #6b6251;
  --cx: 50vw;
  --cy: 50vh;
}

html, body {
  min-height: 100%;
  font-family: 'Raleway', sans-serif;
  background: var(--black);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NOISE TEXTURE ── */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── GLOW ORBS ── */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  z-index: 0;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  top: -150px; right: -150px;
  animation: drift 12s ease-in-out infinite alternate;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  animation: drift 16s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(40px, 30px); }
}

/* Cursor glow */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle 350px at var(--cx) var(--cy), rgba(201,168,76,0.055), transparent);
}

/* ── PAGE WRAPPER ── */
.page {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  position: relative;
}
.page.active { display: flex; }

/* ── NAV ── */
.top-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-link {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--gold); }
.nav-back { color: var(--gold-dark); }
.nav-back:hover { color: var(--gold-light); }

/* ── MAIN CONTENT ── */
.main-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 32px;
}

/* ── EMPIRE BADGE ── */
.empire-badge {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  color: var(--gold-dark);
  text-transform: uppercase;
  border: 1px solid var(--gold-dark);
  padding: 5px 16px;
  border-radius: 2px;
}

/* ── AVATAR ── */
.avatar-wrap {
  position: relative;
  width: 150px;
  height: 150px;
}
.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark), var(--gold)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin-ring 8s linear infinite;
}
@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(201,168,76,0.3);
  background: var(--surface-2);
}
.avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── TITLE BLOCK ── */
.title-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.empire-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.05em;
  color: var(--text);
  text-shadow: 0 0 60px rgba(201,168,76,0.15);
}
.empire-title .gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 200px;
}
.divider span:not(.diamond) {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dark), transparent);
}
.diamond {
  font-size: 0.5rem;
  color: var(--gold);
}
.sub-title {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── ACTIONS ── */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 3px;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  white-space: nowrap;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.06);
  transform: translateY(-1px);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--black);
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(201,168,76,0.25);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  box-shadow: 0 8px 32px rgba(201,168,76,0.4);
  transform: translateY(-2px);
}

/* ── CONTACT PILL ── */
.contact-pill {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.contact-pill a {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.contact-pill a:hover { color: var(--gold); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--border);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  padding: 10px 24px;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 100;
  text-transform: uppercase;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── FOOTER ── */
.bottom-bar {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
}

/* ══════════════════════════════════════════
   TOS PAGE
══════════════════════════════════════════ */
.tos-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 80px;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.tos-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.tos-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--text);
}
.tos-title .gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tos-meta {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
}

.tos-body {
  width: 100%;
  background: rgba(201,168,76,0.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 60px 48px;
  min-height: 400px;
  position: relative;
}

/* Placeholder — remove this section when you add real content */
.tos-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}
.placeholder-icon {
  font-size: 1.5rem;
  color: var(--gold-dark);
  animation: pulse-dot 3s ease-in-out infinite;
}
.tos-placeholder p {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  max-width: 300px;
  line-height: 1.8;
}

/* TOS text styles — add your content inside .tos-body using these elements */
.tos-body h2 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  margin-top: 40px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.tos-body h2:first-child { margin-top: 0; }
.tos-body p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(232,224,208,0.7);
  margin-bottom: 16px;
  font-weight: 300;
}
.tos-body ul {
  margin: 0 0 16px 20px;
}
.tos-body li {
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(232,224,208,0.65);
  margin-bottom: 8px;
  font-weight: 300;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .top-nav { padding: 18px 20px; }
  .main-content { padding: 40px 16px; gap: 24px; }
  .empire-title { font-size: 2.2rem; }
  .tos-body { padding: 40px 24px; }
  .actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}