/* Mythical Beasts & Guardians - High-Art Styling */
:root {
  --bg-dark: #07090e;
  --bg-card: rgba(18, 22, 34, 0.82);
  --bg-card-hover: rgba(28, 34, 52, 0.95);
  --gold-primary: #d4af37;
  --gold-light: #f9e29d;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --text-main: #f0f3fa;
  --text-muted: #8e9bb0;
  
  --fire-color: #ff3b30;
  --water-color: #007aff;
  --earth-color: #34c759;
  --air-color: #5ac8fa;
  --void-color: #bf5af2;
  
  --font-heading: 'Cinzel', 'Noto Serif SC', serif, Georgia;
  --font-body: 'Cinzel Decorative', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Particle Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.content-wrapper {
  position: relative;
  z-index: 1;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  background: rgba(9, 12, 20, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.9rem 2rem;
  z-index: 100;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.logo-seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-family: var(--font-heading);
  font-weight: 800;
  background: radial-gradient(circle, #3a1512 0%, #150807 100%);
  color: var(--gold-light);
  box-shadow: 0 0 16px var(--gold-glow);
}

.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 2px;
  color: var(--gold-light);
  text-shadow: 0 0 10px var(--gold-glow);
  line-height: 1.1;
}

.logo-text span {
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(16, 20, 32, 0.85);
  padding: 4px 6px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  justify-self: center;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.25s ease;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid transparent;
}

nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

nav a.active {
  color: #0b0e14;
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.45);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.network-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 20, 32, 0.85);
  border: 1px solid rgba(52, 199, 89, 0.35);
  color: #34c759;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.network-badge:hover {
  border-color: #34c759;
  background: rgba(52, 199, 89, 0.12);
  box-shadow: 0 0 12px rgba(52, 199, 89, 0.3);
}

.network-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 8px #34c759;
  animation: pulseNetwork 2s infinite;
}

@keyframes pulseNetwork {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

button {
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s ease;
}

.btn-gold {
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
  color: #0a0a0d;
  font-weight: 700;
  border: 1px solid var(--gold-light);
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 0.88rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
  filter: brightness(1.06);
}

.btn-outline {
  background: rgba(20, 24, 38, 0.6);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 0.88rem;
  letter-spacing: 1px;
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

/* =========================================
   GENESIS SUMMONING STAGE (EXACT SAME LEVEL)
   ========================================= */
.genesis-summon-header {
  text-align: center;
  width: 100%;
  max-width: 860px;
  margin: 1.2rem auto 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0;
}

.genesis-cards-level {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0;
}

@media (max-width: 960px) {
  .genesis-cards-level {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  width: fit-content;
}

.hero-grand-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 1.5px;
  color: #fff;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #ffd700 0%, #ffae19 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.25);
}

.hero-grand-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 620px;
}

/* Integrated Mint Terminal Card */
.mint-terminal-card {
  background: radial-gradient(circle at 50% 20%, rgba(28, 22, 38, 0.95) 0%, rgba(12, 15, 24, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 20px;
  padding: 1.8rem 2rem;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.75), 0 0 30px rgba(212, 175, 55, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  width: 100%;
  height: 100%;
}

.mint-terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-title h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.terminal-status-badge {
  font-size: 0.72rem;
  color: #34c759;
  background: rgba(52, 199, 89, 0.12);
  border: 1px solid rgba(52, 199, 89, 0.3);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.mint-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 580px) {
  .mint-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mint-metrics-grid .m-cell {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
}

.mint-metrics-grid .m-cell .m-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-light);
}

.mint-metrics-grid .m-cell .m-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.mint-metrics-grid .m-cell.highlight .m-val {
  color: #34c759;
}

/* =========================================
   COLLECTION MINT PROGRESS BAR
   ========================================= */
.mint-progress-section {
  background: rgba(10, 14, 24, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), 0 2px 12px rgba(0, 0, 0, 0.25);
}

.mint-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.progress-lbl-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-tag {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  color: #ffd700;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 2px 7px;
  border-radius: 6px;
}

.progress-count {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.progress-count strong {
  color: #ffd700;
  font-weight: 800;
  font-size: 1.05rem;
}

.progress-lbl-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remaining-highlight {
  color: #34c759;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
}

.remaining-highlight strong {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  color: #34c759;
}

.progress-percent-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 12px;
}

.mint-progress-track {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  position: relative;
  overflow: visible;
}

.mint-progress-fill {
  height: 100%;
  min-width: 6px;
  max-width: 100%;
  background: linear-gradient(90deg, #d4af37 0%, #ffd700 50%, #fff6b3 100%);
  border-radius: 10px;
  position: relative;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.5);
}

.progress-glow-head {
  position: absolute;
  right: -4px;
  top: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 20%, #ffd700 80%);
  box-shadow: 0 0 10px #ffd700, 0 0 20px rgba(255, 215, 0, 0.85);
  animation: pulseGlowHead 2s infinite ease-in-out;
}

@keyframes pulseGlowHead {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

.mint-control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 16px;
  flex-wrap: wrap;
}

.stepper-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.total-tribute-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.total-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.total-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-light);
}

.btn-summon-hero {
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
  color: #0a0a0d;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--gold-light);
  border-radius: 28px;
  padding: 14px 28px;
  box-shadow: 0 4px 22px rgba(212, 175, 55, 0.45);
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
}

.btn-summon-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.65);
  filter: brightness(1.08);
}

.btn-summon-hero:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.5);
  transform: none;
}

.mint-security-footnote {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* Ecosystem Utility Highlights Row */
.ecosystem-features-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0;
}

@media (max-width: 960px) {
  .ecosystem-features-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.eco-feature-card {
  background: rgba(14, 18, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.6rem 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.eco-feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
  background: rgba(22, 28, 44, 0.95);
}

.eco-icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.eco-feature-card h4 {
  font-family: var(--font-heading);
  color: var(--gold-light);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.eco-feature-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 0.9rem;
}

.eco-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
}

.holo-card-footer {
  text-align: center;
  margin-top: 10px;
}

.holo-inspect-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Holographic Artwork Showcase Column */
.summon-right-showcase {
  display: flex;
  justify-content: center;
}

.hero-holo-card {
  position: relative;
  background: radial-gradient(circle at 50% 30%, rgba(35, 24, 55, 0.92) 0%, rgba(12, 15, 24, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 20px;
  padding: 1.8rem 2rem;
  box-shadow: 0 0 50px rgba(191, 90, 242, 0.28), 0 20px 40px rgba(0, 0, 0, 0.85);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.hero-holo-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
  box-shadow: 0 0 65px rgba(255, 215, 0, 0.4), 0 25px 50px rgba(0, 0, 0, 0.95);
}

.holo-card-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  position: relative;
  z-index: 5;
}

.holo-img-wrapper {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  background: #080a10;
  aspect-ratio: 1 / 1;
  max-width: 380px;
  width: 100%;
  margin: auto;
  flex-shrink: 0;
}

.hero-slider-track {
  display: flex;
  width: 200%;
  height: 100%;
  will-change: transform;
}

.hero-slide-item {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.holo-floating-tag {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 14, 24, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 20px;
  padding: 5px 16px;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  color: var(--gold-light);
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.5px;
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.holo-slide-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.holo-slide-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  transition: width 2.5s linear;
}

/* Five Elements Banner */
.elements-ribbon {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.el-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 20px;
  background: rgba(18, 22, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.el-pill.fire  { border-color: var(--fire-color);  color: var(--fire-color);  box-shadow: 0 0 10px rgba(255, 59, 48, 0.2); }
.el-pill.water { border-color: var(--water-color); color: var(--water-color); box-shadow: 0 0 10px rgba(0, 122, 255, 0.2); }
.el-pill.earth { border-color: var(--earth-color); color: var(--earth-color); box-shadow: 0 0 10px rgba(52, 199, 89, 0.2); }
.el-pill.air   { border-color: var(--air-color);   color: var(--air-color);   box-shadow: 0 0 10px rgba(90, 200, 250, 0.2); }
.el-pill.void  { border-color: var(--void-color);  color: var(--void-color);  box-shadow: 0 0 10px rgba(191, 90, 242, 0.2); }

.tab-section {
  display: none;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3.5rem;
}

.tab-section.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--gold-light);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1rem;
}

/* Mint Section - Dedicated Clean Terminal */
.mint-container {
  display: block;
  max-width: 620px;
  margin: 1rem auto 3rem;
  background: radial-gradient(circle at 50% 20%, rgba(30, 22, 42, 0.92) 0%, rgba(12, 15, 24, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 24px;
  padding: 2.5rem 3rem;
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.15), 0 20px 40px rgba(0, 0, 0, 0.85);
}

@media (max-width: 640px) {
  .mint-container {
    padding: 1.8rem 1.4rem;
  }
}

.mint-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mint-stepper {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 16px;
  border-radius: 30px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mint-stepper button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold-primary);
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mint-stepper span {
  font-size: 1.3rem;
  font-weight: 700;
  min-width: 30px;
  text-align: center;
}

.mint-price-summary {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--gold-primary);
  padding: 12px 16px;
  border-radius: 4px;
}

.mint-price-summary div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.mint-price-summary .total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
  margin-top: 8px;
}

/* =========================================
   PENTAGONAL ALTAR (ELEMENT CONVERGENCE)
   ========================================= */
.altar-container {
  background: radial-gradient(circle at center, rgba(35, 18, 55, 0.95) 0%, rgba(13, 10, 24, 0.98) 60%, #06050b 100%);
  border: 1px solid rgba(191, 90, 242, 0.35);
  border-radius: 24px;
  padding: 3rem 2rem;
  box-shadow: 0 0 60px rgba(191, 90, 242, 0.2), 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

.altar-circle-diagram {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 520px;
  margin: 1.5rem auto 2.5rem;
}

.altar-pentagram-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  height: 440px;
  pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(191, 90, 242, 0.45));
  animation: spinMandala 140s linear infinite;
}

@keyframes spinMandala {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.altar-slot {
  position: absolute;
  width: 108px;
  height: 128px;
  transform: translate(-50%, -50%);
  background: rgba(14, 18, 28, 0.94);
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.altar-slot:hover {
  transform: translate(-50%, -50%) translateY(-4px) scale(1.06);
  border-color: var(--gold-light);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.35);
}

.altar-slot.active {
  border-style: solid;
  transform: translate(-50%, -50%) scale(1.06);
}

.altar-slot.active.fire  { border-color: var(--fire-color);  box-shadow: 0 0 25px rgba(255, 59, 48, 0.6); }
.altar-slot.active.water { border-color: var(--water-color); box-shadow: 0 0 25px rgba(0, 122, 255, 0.6); }
.altar-slot.active.earth { border-color: var(--earth-color); box-shadow: 0 0 25px rgba(52, 199, 89, 0.6); }
.altar-slot.active.air   { border-color: var(--air-color);   box-shadow: 0 0 25px rgba(90, 200, 250, 0.6); }
.altar-slot.active.void  { border-color: var(--void-color);  box-shadow: 0 0 25px rgba(191, 90, 242, 0.6); }

.altar-slot img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.altar-slot .slot-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.altar-slot .slot-status {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Altar Slot Coordinates */
#slot-fire  { top: 12%; left: 50%; }
#slot-water { top: 40%; left: 88%; }
#slot-earth { top: 88%; left: 74%; }
#slot-air   { top: 88%; left: 26%; }
#slot-void  { top: 40%; left: 12%; }

/* Altar Central Core Sphere */
.altar-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #3d1052 0%, #150920 100%);
  border: 2px solid var(--void-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(191, 90, 242, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.altar-core.ready {
  border-color: #ffd700;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.8);
  animation: pulseCore 1.6s infinite alternate;
}

@keyframes pulseCore {
  from { transform: translate(-50%, -50%) scale(1); filter: brightness(1); }
  to { transform: translate(-50%, -50%) scale(1.08); filter: brightness(1.3); }
}

.altar-core span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
  text-align: center;
  padding: 0 8px;
}

.altar-action-bar {
  text-align: center;
  margin-top: 1.5rem;
}

/* Unlocked Companion Showcase */
.companion-unlocked-card {
  display: none;
  background: rgba(20, 15, 30, 0.95);
  border: 2px solid var(--gold-primary);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 0 40px var(--gold-glow);
  animation: popIn 0.5s ease;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.companion-grid {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.companion-grid img {
  width: 240px;
  height: 240px;
  border-radius: 12px;
  border: 2px solid var(--void-color);
}

.companion-info {
  max-width: 500px;
}

.companion-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

/* =========================================
   LORE GAME: TRIAL OF THE FIVE ELEMENTS
   ========================================= */
.game-briefing-card {
  background: rgba(15, 18, 28, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.briefing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.briefing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  transition: all 0.3s ease;
}

.briefing-col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.8rem 1rem;
}

.briefing-col h5 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--gold-light);
}

.briefing-col p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Sealed Sanctum (Locked Screen) */
.game-locked-container {
  background: rgba(10, 12, 18, 0.95);
  border: 2px dashed rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

.sealed-sanctum-box {
  max-width: 600px;
  margin: 0 auto;
}

.sealed-icon-glow {
  font-size: 3.8rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
  animation: floatSeal 3s infinite ease-in-out;
}

@keyframes floatSeal {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.sealed-lock-badge {
  display: inline-block;
  background: rgba(255, 69, 58, 0.15);
  border: 1px solid rgba(255, 69, 58, 0.4);
  color: #ff5252;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* Top HUD Bar */
.game-hud-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-stat-pill {
  background: rgba(15, 18, 28, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.hud-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hud-val {
  font-weight: 700;
  color: #fff;
}

.hud-val.gold { color: #ffd700; text-shadow: 0 0 8px rgba(255, 215, 0, 0.4); }
.hud-val.fire { color: #ff5252; }

/* Champion Selector Carousel */
.champion-selector-wrapper {
  margin-bottom: 1.8rem;
  background: rgba(12, 15, 24, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 14px;
  padding: 1rem;
}

.champion-selector-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.champion-list-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 10px;
  scrollbar-width: thin;
}

.champion-item-card {
  flex: 0 0 160px;
  background: rgba(18, 22, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.champion-item-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.champion-item-card.selected {
  border: 2px solid #ffd700;
  background: rgba(30, 26, 15, 0.85);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.4);
}

.champion-item-card img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 6px;
}

.champion-item-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.champion-selected-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ffd700;
  color: #000;
  font-size: 0.6rem;
  font-weight: 900;
  border-radius: 4px;
  padding: 1px 5px;
  text-transform: uppercase;
}

/* In-Page Victory Notification Banner */
.game-victory-banner {
  background: linear-gradient(90deg, rgba(30, 24, 10, 0.95), rgba(45, 34, 10, 0.95));
  border: 2px solid #ffd700;
  border-radius: 12px;
  padding: 1rem 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.35);
  animation: popIn 0.4s ease;
}

.victory-banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.game-container {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.battle-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.combatant-card {
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.combatant-card.player { border-color: var(--gold-primary); }
.combatant-card.boss { border-color: var(--void-color); }

.combatant-badges-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.rank-badge {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--gold-light);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.rank-badge.boss {
  background: rgba(255, 59, 48, 0.12);
  border-color: rgba(255, 59, 48, 0.3);
  color: #ff5252;
}

.combat-stats-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.combat-stats-row span {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.combatant-card img {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hp-bar-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  height: 16px;
  width: 100%;
  margin: 10px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #34c759, #30d158);
  width: 100%;
  transition: width 0.4s ease;
}

.hp-fill.boss-hp {
  background: linear-gradient(90deg, #ff3b30, #af52de);
}

.vs-badge {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gold-light);
  text-shadow: 0 0 15px var(--gold-glow);
  font-weight: 800;
}

.combat-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.combat-btn {
  background: rgba(20, 24, 38, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 140px;
}

.combat-btn span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.combat-btn:hover:not(:disabled) {
  border-color: var(--gold-light);
  background: rgba(212, 175, 55, 0.15);
  transform: translateY(-2px);
}

.combat-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.combat-log {
  background: rgba(6, 8, 12, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  height: 160px;
  overflow-y: auto;
  padding: 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
}

.combat-log p {
  margin-bottom: 6px;
  line-height: 1.4;
}

.combat-log .log-highlight { color: var(--gold-light); font-weight: bold; }
.combat-log .log-player    { color: var(--air-color); }
.combat-log .log-enemy     { color: var(--fire-color); }
.combat-log .log-crit      { color: var(--void-color); font-weight: bold; }

/* =========================================
   COLLECTION GALLERY & EXPLORER
   ========================================= */
.gallery-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-select {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.filter-select option {
  background: #0f121b;
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.beast-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.beast-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.beast-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.beast-card-info {
  padding: 0.85rem 1rem;
}

.beast-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.beast-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--gold-light);
  width: 100%;
}

.beast-card .beast-tier-badge,
.beast-card .beast-traits-row {
  display: none !important;
}

.beast-tier-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  font-weight: 700;
}

.tier-Legendary { background: rgba(255, 122, 0, 0.22); color: #ff9500; border: 1px solid #ff7a00; box-shadow: 0 0 12px rgba(255, 122, 0, 0.4); }
.tier-Epic      { background: rgba(168, 85, 247, 0.22); color: #c084fc; border: 1px solid #a855f7; box-shadow: 0 0 12px rgba(168, 85, 247, 0.35); }
.tier-Rare      { background: rgba(59, 130, 246, 0.2);   color: #60a5fa; border: 1px solid #3b82f6; box-shadow: 0 0 10px rgba(59, 130, 246, 0.3); }
.tier-Uncommon  { background: rgba(52, 199, 89, 0.2);   color: #34c759; border: 1px solid #34c759; box-shadow: 0 0 8px rgba(52, 199, 89, 0.25); }
.tier-Common    { background: rgba(156, 163, 175, 0.15); color: #9ca3af; border: 1px solid #6b7280; }
.tier-Mythic    { background: rgba(244, 63, 94, 0.25);  color: #fb7185; border: 1px solid #f43f5e; box-shadow: 0 0 15px rgba(244, 63, 94, 0.45); }
.tier-Abyssal   { background: rgba(255, 59, 48, 0.25);  color: #ff5252; border: 1px solid #ff3b30; }

.combatant-card.player.tier-border-Mythic {
  border-color: #f43f5e;
  box-shadow: 0 0 30px rgba(244, 63, 94, 0.45);
}
.combatant-card.player.tier-border-Legendary {
  border-color: #ff7a00;
  box-shadow: 0 0 30px rgba(255, 122, 0, 0.4);
}
.combatant-card.player.tier-border-Epic {
  border-color: #a855f7;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.35);
}
.combatant-card.player.tier-border-Rare {
  border-color: #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.beast-traits-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.trait-tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

/* =========================================
   MODAL (INSPECTOR & METADATA VIEWER)
   ========================================= */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-primary);
  border-radius: 18px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.modal-content-grid img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--gold-primary);
}

.modal-meta-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  max-height: 150px;
  overflow-y: auto;
}

/* Footer */
footer {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(6, 8, 12, 0.95);
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--gold-light);
  text-decoration: none;
}

@media (max-width: 850px) {
  header { padding: 1rem; flex-direction: column; gap: 1rem; }
  .mint-container { grid-template-columns: 1fr; }
  .battle-arena { grid-template-columns: 1fr; }
  .modal-content-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
}

/* GIWA Testnet & Web3 Wallet UI */
.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(52, 199, 89, 0.15);
  border: 1px solid #34c759;
  color: #34c759;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.network-badge.wrong-network {
  background: rgba(255, 59, 48, 0.15);
  border-color: #ff3b30;
  color: #ff3b30;
}
.network-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(52, 199, 89, 0.4);
}
.network-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.contract-banner {
  display: none !important;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(9, 11, 16, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 14px;
  padding: 1.2rem 1.6rem;
  margin-bottom: 2rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}
.contract-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.contract-address-box {
  background: #050608;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #70e4ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  word-break: break-all;
}
.contract-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}
.toast {
  background: #121622;
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
  animation: slideInRight 0.3s ease;
  position: relative;
}
.toast.success { border-color: #34c759; }
.toast.error   { border-color: #ff3b30; }
.toast.info    { border-color: #5ac8fa; }
.toast a { color: var(--gold-light); text-decoration: underline; }
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* =========================================
   COMBAT ROUNDS, FLOATING NUMBERS & REWARDS VAULT
   ========================================= */
.combat-turn-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.combat-turn-banner.player-turn {
  background: rgba(10, 32, 48, 0.9);
  border: 1px solid #5ac8fa;
  color: #5ac8fa;
  box-shadow: 0 0 25px rgba(90, 200, 250, 0.35);
}

.combat-turn-banner.enemy-turn {
  background: rgba(45, 12, 18, 0.9);
  border: 1px solid #ff3b30;
  color: #ff5252;
  box-shadow: 0 0 25px rgba(255, 59, 48, 0.45);
  animation: pulseEnemyTurn 1.2s infinite alternate;
}

@keyframes pulseEnemyTurn {
  from { filter: brightness(1); }
  to { filter: brightness(1.3); }
}

.turn-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulseDot 1s infinite alternate;
}

@keyframes pulseDot {
  from { transform: scale(0.8); opacity: 0.7; }
  to { transform: scale(1.3); opacity: 1; }
}

/* Card Attack Animations */
.anim-lunge-player {
  animation: lungePlayer 0.38s ease;
}

.anim-lunge-enemy {
  animation: lungeEnemy 0.38s ease;
}

.anim-damage-shake {
  animation: damageShake 0.45s ease;
}

@keyframes lungePlayer {
  0% { transform: translateX(0); }
  40% { transform: translateX(35px) scale(1.04); }
  100% { transform: translateX(0); }
}

@keyframes lungeEnemy {
  0% { transform: translateX(0); }
  40% { transform: translateX(-35px) scale(1.04); }
  100% { transform: translateX(0); }
}

@keyframes damageShake {
  0% { transform: translateX(0); filter: brightness(2); }
  20% { transform: translateX(-10px) rotate(-1deg); }
  40% { transform: translateX(10px) rotate(1deg); }
  60% { transform: translateX(-7px); }
  80% { transform: translateX(7px); }
  100% { transform: translateX(0); filter: none; }
}

/* Floating Combat Numbers */
.combat-floating-num {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  pointer-events: none;
  z-index: 100;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.95), 0 2px 4px #000;
  animation: floatUpDmg 1.1s forwards ease-out;
}

.combat-floating-num.dmg-boss {
  color: #ffd700;
}

.combat-floating-num.dmg-player {
  color: #ff3b30;
}

.combat-floating-num.heal-player {
  color: #34c759;
}

.combat-floating-num.crit {
  font-size: 2.4rem;
  color: #ff2d55;
  text-shadow: 0 0 20px rgba(255, 45, 85, 0.8), 0 0 10px #000;
}

.combat-floating-num.stunned {
  font-size: 1.5rem;
  color: #5ac8fa;
  text-shadow: 0 0 15px rgba(90, 200, 250, 0.8);
}

@keyframes floatUpDmg {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.6);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -20px) scale(1.25);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -45px) scale(1.05);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -75px) scale(0.9);
  }
}

/* Rewards Vault & Soul Bazaar */
.rewards-vault-section {
  margin-top: 2.5rem;
  background: rgba(14, 17, 26, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.rewards-vault-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.vault-balance-badge {
  background: rgba(35, 28, 12, 0.9);
  border: 1px solid #ffd700;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.9rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vault-balance-badge strong {
  color: #ffd700;
  font-size: 1.15rem;
}

.rewards-vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.reward-item-card {
  background: rgba(22, 26, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.reward-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

.reward-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.reward-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.reward-cost {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 8px;
}

.reward-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0 0 14px;
  flex: 1;
}

.btn-redeem-reward {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.85rem;
}

/* =========================================
   OFFICIAL SOCIALS & COMMUNITY (X / OPENSEA)
   ========================================= */

/* Header Social Action Buttons */
.btn-social-header {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(14, 18, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 8px 14px;
  border-radius: 20px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-social-header svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

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

.btn-social-header:hover svg {
  transform: scale(1.12);
}

.btn-header-x {
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-header-x:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
}

.btn-header-opensea {
  border-color: rgba(32, 129, 226, 0.35);
  color: #8bc2ff;
}

.btn-header-opensea:hover {
  background: rgba(32, 129, 226, 0.15);
  border-color: #2081e2;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(32, 129, 226, 0.35);
}

/* =========================================
   ELITE WEB3 MULTI-COLUMN FOOTER
   ========================================= */
footer.site-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(180deg, rgba(8, 11, 16, 0.96) 0%, rgba(3, 4, 7, 1) 100%);
  padding: 3.5rem 2rem 2rem;
  margin-top: 4.5rem;
  color: var(--text-muted);
  width: 100%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.footer-tagline {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-primary);
  font-weight: 700;
}

.footer-lore-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 380px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.25s ease;
}

.footer-social-link svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.footer-social-link:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

.footer-social-link:hover svg {
  transform: scale(1.15);
}

.community-hint {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.footer-x-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(18, 23, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 11px 18px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  max-width: 270px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.footer-x-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.cta-arrow {
  color: var(--gold-light);
  font-size: 1.05rem;
}

.footer-bottom-bar {
  max-width: 1200px;
  margin: 1.6rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.contract-tiny-hash {
  font-family: monospace;
  color: rgba(212, 175, 55, 0.65);
}

@media (max-width: 850px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    text-align: center;
  }
  .footer-brand {
    justify-content: center;
  }
  .footer-lore-desc {
    margin: 0 auto;
  }
  .footer-links-list {
    align-items: center;
  }
  .footer-x-cta {
    margin: 0 auto;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .social-header-label {
    display: none;
  }
  .btn-social-header {
    padding: 8px 10px;
  }
}

