/* ─── Variables ─────────────────────────────────────────── */
:root {
  --gold:        #c9a84c;
  --gold-light:  #e8c96a;
  --gold-dark:   #7a5f20;
  --bg:          #08080f;
  --bg-mid:      #0d0d1a;
  --surface:     #110e1c;
  --red:         #8b0000;
  --text:        #f0e6c8;
  --text-muted:  #9e8f74;
  --border:      rgba(201,168,76,0.35);
}

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

/* ─── Base ──────────────────────────────────────────────── */
html { scroll-behavior:smooth; }

body {
  font-family: 'EB Garamond', Georgia, serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ─── Background ─────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,   rgba(139,0,0,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%,  rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 50%,  rgba(13,13,26,1) 0%, var(--bg) 100%);
  z-index: 0;
  pointer-events: none;
}

/* Floating rune symbols */
.bg-runes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  padding: 40px;
  gap: 40px;
}

.bg-runes span {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--gold);
  opacity: 0.04;
  animation: runeFloat 8s ease-in-out infinite;
  display: inline-block;
}

.bg-runes span:nth-child(2) { animation-delay: 1s; }
.bg-runes span:nth-child(3) { animation-delay: 2s; }
.bg-runes span:nth-child(4) { animation-delay: 3s; }
.bg-runes span:nth-child(5) { animation-delay: 4s; }
.bg-runes span:nth-child(6) { animation-delay: 5s; }
.bg-runes span:nth-child(7) { animation-delay: 6s; }
.bg-runes span:nth-child(8) { animation-delay: 7s; }

@keyframes runeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.04; }
  50%       { transform: translateY(-18px) rotate(5deg); opacity: 0.07; }
}

/* ─── Page Wrap ──────────────────────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── Header ─────────────────────────────────────────────── */
header {
  width: 100%;
  padding: 28px 40px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(8,8,15,0.9), transparent);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.logo {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--gold-light);
  letter-spacing: 0.18em;
  text-shadow:
    0 0 20px rgba(201,168,76,0.5),
    0 0 60px rgba(201,168,76,0.15);
}

.logo-deco {
  color: var(--gold);
  font-size: 1.1rem;
  opacity: 0.7;
  animation: pulse 3s ease-in-out infinite;
}

.logo-deco:last-child { animation-delay: 1.5s; }

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 8px;
  transition: color 0.25s;
}

nav a:hover,
nav a.active {
  color: var(--gold-light);
}

.nav-sep {
  color: var(--gold-dark);
  font-size: 0.75rem;
}

/* ─── Main ───────────────────────────────────────────────── */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

/* ─── Card Frame ─────────────────────────────────────────── */
.card-frame {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 18px;
  box-shadow:
    0 0 0 4px rgba(201,168,76,0.08),
    0 0 30px rgba(201,168,76,0.12),
    0 20px 60px rgba(0,0,0,0.7);
  animation: cardIn 0.8s cubic-bezier(0.16,1,0.3,1) both;
  position: relative;
  overflow: hidden;
}

.card-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.05) 0%, transparent 60%);
  pointer-events: none;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.card-name {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.08em;
}

.card-type {
  font-size: 0.65rem;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
}

/* Card Art */
.card-art {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(ellipse at center, #1a1030 0%, #08080f 100%);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(139,0,0,0.15), transparent 60%),
    radial-gradient(circle at 70% 30%, rgba(201,168,76,0.08), transparent 60%);
}

.card-art-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.eye-ra {
  font-size: 5rem;
  line-height: 1;
  animation: eyeGlow 4s ease-in-out infinite;
  display: block;
  margin-bottom: 10px;
}

@keyframes eyeGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(201,168,76,0.4), 0 0 60px rgba(201,168,76,0.1); }
  50%       { text-shadow: 0 0 40px rgba(201,168,76,0.8), 0 0 100px rgba(201,168,76,0.3); }
}

.art-label {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* Card Body */
.card-body {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  text-align: center;
}

.card-tagline {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-style: italic;
}

/* Card Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  width: 100%;
  padding: 20px;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  border-top: 1px solid var(--border);
  text-transform: uppercase;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 480px) {
  header { padding: 20px 20px 14px; }
  main   { padding: 40px 16px; }
  .card-frame { padding: 14px; }
  .eye-ra { font-size: 3.5rem; }
}
