/* =================================================================
   TAPE GENESIS · DARK CYBER GOLD LUXURY STYLESHEET
   ================================================================= */

:root {
  --bg-primary: #0b0b0c;
  --background: #0b0b0c;
  --foreground: #dad7d0;
  --primary: #b89b5e;
  --primary-foreground: #0b0b0c;
  --muted: #141416;
  --muted-foreground: #a3a19c;
  --border: rgba(163, 161, 156, 0.18);
  --gold-line: #8c7a4a;
  
  --bg-card: rgba(18, 20, 26, 0.85);
  --bg-card-border: rgba(184, 155, 94, 0.25);
  
  --gold-primary: #b89b5e;
  --gold-light: #ffd700;
  --gold-glow: rgba(184, 155, 94, 0.35);
  
  --cyan-primary: #00F0FF;
  --cyan-glow: rgba(0, 240, 255, 0.35);
  
  --text-primary: #dad7d0;
  --text-muted: #a3a19c;
  --text-dim: #787570;
  
  --ritual-heading: clamp(2.25rem, 4vw, 3.5rem);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Background Grids & Orbs */
.bg-circuit-grid {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.orb-gold {
  top: -100px;
  right: -50px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
}

.orb-cyan {
  bottom: 10%;
  left: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.85);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-chip {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 15px var(--gold-glow);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #FFF;
}

.brand-sub {
  display: block;
  font-size: 0.68rem;
  color: var(--gold-primary);
  letter-spacing: 2px;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-right: 8px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--gold-light);
}

.highlight-link {
  color: #FF5E5E;
  font-weight: 700;
  background: rgba(255, 77, 77, 0.12);
  border: 1px solid rgba(255, 77, 77, 0.3);
  padding: 4px 12px;
  border-radius: 14px;
}

.network-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--cyan-primary);
  font-family: var(--font-mono);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Buttons */
.btn {
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: none;
}

.btn-connect {
  background: linear-gradient(135deg, var(--gold-primary) 0%, #996515 100%);
  color: #000;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.btn-connect:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.5);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  color: #000;
  font-weight: 800;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding: 64px 0 80px 0;
}

.badge-pill {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  border-radius: 20px;
  font-size: 0.78rem;
  letter-spacing: 1.2px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

.text-gold-gradient {
  background: linear-gradient(135deg, #FFF8DC 0%, #FFD700 40%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.highlight {
  color: var(--cyan-primary);
  font-weight: 600;
}

.highlight-gold {
  color: var(--gold-light);
  font-weight: 700;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
}

/* 3D Cube Stage */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cube-stage {
  width: 300px;
  height: 300px;
  perspective: 1200px;
  margin: 24px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube-container {
  width: 300px;
  height: 300px;
  position: relative;
  transform-style: preserve-3d;
  transform-origin: 150px 150px 0;
  cursor: grab;
  transition: transform 0.1s ease-out;
}

.cube-container:active {
  cursor: grabbing;
}

.cube-solid-core {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 298px;
  height: 298px;
  background: #07090E;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.95);
  pointer-events: none;
}

.cube-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: #0D111A;
  border: 2px solid var(--gold-primary);
  box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.25), 0 0 25px rgba(212, 175, 55, 0.2);
  border-radius: 0 !important; /* Sharp right angles to seal the 8 corner vertices */
  overflow: hidden;
  user-select: none;
  box-sizing: border-box;
  backface-visibility: hidden;
  outline: 1px solid rgba(212, 175, 55, 0.4); /* Solid edge seal preventing subpixel light leakage */
}

/* Cube 3D Positioning (TranslateZ = 150px for exact 300px edge-to-edge seal) */
.face-front  { transform: rotateY(0deg) translateZ(150px); }
.face-back   { transform: rotateY(180deg) translateZ(150px); }
.face-right  { transform: rotateY(90deg) translateZ(150px); }
.face-left   { transform: rotateY(-90deg) translateZ(150px); }
.face-top    { transform: rotateX(90deg) translateZ(150px); }
.face-bottom { transform: rotateX(-90deg) translateZ(150px); }

.face-content {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 0;
}

.face-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.face-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(13, 17, 26, 0.95));
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0;
}

.rarity-tag {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 800;
}

.rarity-tag.ssr {
  background: rgba(255, 215, 0, 0.25);
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
}

.rarity-tag.tier-tianshu {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.35), rgba(186, 85, 211, 0.35));
  border: 1px solid #FFD700;
  color: #FFF;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  text-shadow: 0 0 4px #FFD700;
}

.rarity-tag.tier-tiangang {
  background: rgba(255, 119, 0, 0.25);
  border: 1px solid #FF7700;
  color: #FFAA44;
  box-shadow: 0 0 8px rgba(255, 119, 0, 0.3);
}

.rarity-tag.tier-disha {
  background: rgba(0, 240, 255, 0.2);
  border: 1px solid #00F0FF;
  color: #00F0FF;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.rarity-tag.tier-juyi {
  background: rgba(160, 176, 192, 0.2);
  border: 1px solid #A0B0C0;
  color: #E0E8F0;
}

.tier-filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-tier-filter {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tier-filter:hover {
  border-color: var(--gold-light);
  color: #fff;
  transform: translateY(-1px);
}

.btn-tier-filter.active {
  background: rgba(255, 215, 0, 0.2);
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.name-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFF;
}

.face-chip-board {
  width: 100%;
  height: 100%;
  background: #090C12 url('assets/circuit-gold.jpg') center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.cpu-core-label {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: 2px;
}

.cpu-core-id {
  font-size: 0.75rem;
  color: var(--cyan-primary);
  font-family: var(--font-mono);
  margin-top: 8px;
}

.cube-hint {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 10px;
}

/* Section Common */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Mining Section & Metrics Grid */
.mining-section {
  padding: 60px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
}

.highlight-card {
  border-color: rgba(255, 215, 0, 0.45);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(16, 20, 30, 0.8) 100%);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.metric-value {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1.1;
  margin-bottom: 8px;
}

.metric-value .unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.text-gold { color: var(--gold-light); }
.text-cyan { color: var(--cyan-primary); }
.text-glow-gold {
  color: #FFF2A7;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.metric-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Harvest Action Bar */
.harvest-bar {
  background: rgba(16, 20, 30, 0.9);
  border: 1px solid var(--gold-primary);
  border-radius: 14px;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}

.harvest-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.harvest-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.mono {
  font-family: var(--font-mono);
}

.btn-harvest {
  background: linear-gradient(135deg, #FFD700 0%, #D4AF37 50%, #AA771C 100%);
  color: #000;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.btn-harvest:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.7);
}

/* Vault Section */
.vault-section {
  padding: 40px 0 60px 0;
}

.vault-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.vault-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vault-badge {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--cyan-primary);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 12px;
  font-family: var(--font-mono);
}

.vault-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.suit-filter-group {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
}

.btn-filter {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.btn-filter:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-filter.active {
  background: linear-gradient(135deg, var(--gold-primary) 0%, #B8860B 100%);
  color: #000;
  font-weight: 700;
}

.miners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.miner-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.miner-card:hover {
  transform: translateY(-6px);
  border-color: #FFD700;
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.3);
}

.miner-card-thumb {
  width: 100%;
  aspect-ratio: 2 / 3; /* Perfectly matches the 720x1080 card aspect ratio! */
  position: relative;
  background: #0B0E14;
  overflow: hidden;
  cursor: zoom-in;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.miner-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.miner-card:hover .miner-card-thumb img {
  transform: scale(1.03);
}

.deck-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.5px;
}
.deck-pill.deck-qiankun {
  background: linear-gradient(135deg, rgba(160, 20, 40, 0.92) 0%, rgba(90, 10, 20, 0.92) 100%);
  border: 1px solid #FFD700;
  color: #FFF;
}
.deck-pill.deck-xingluo {
  background: linear-gradient(135deg, rgba(16, 50, 110, 0.92) 0%, rgba(8, 25, 60, 0.92) 100%);
  border: 1px solid #00F0FF;
  color: #FFF;
}

.miner-status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  z-index: 5;
  backdrop-filter: blur(6px);
}

.miner-status-badge.mining {
  background: rgba(0, 255, 128, 0.25);
  border: 1px solid #00FF80;
  color: #00FF80;
}

.miner-status-badge.idle {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #DDD;
}

.miner-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.miner-name {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.miner-specs {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 14px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.spec-row:last-child {
  margin-bottom: 0;
}

.miner-card-actions {
  display: flex;
  gap: 8px;
}

.miner-card-actions .btn {
  flex: 1;
  justify-content: center;
  font-size: 0.85rem;
}

/* Features Section */
.features-section {
  padding: 60px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  background: #05070B;
  padding: 40px 32px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: right;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .harvest-bar {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-links {
    text-align: center;
  }
}

/* =============================================================
   ARENA / DOU DI ZHU STYLES
   ============================================================= */

.arena-section {
  padding: 60px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.arena-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: rgba(16, 20, 30, 0.85);
  border: 1px solid rgba(255, 77, 77, 0.3);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-val {
  font-size: 1.15rem;
  font-weight: 800;
}

.ticker-text {
  font-size: 0.85rem;
  color: #FFB347;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poker-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--gold-primary);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.table-tier-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.tier-tab {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tier-tab:hover {
  border-color: var(--gold-light);
  color: #FFF;
}

.tier-tab.active {
  background: linear-gradient(135deg, #B8860B 0%, #D4AF37 100%);
  color: #000;
  border-color: #FFD700;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.poker-table {
  background: radial-gradient(circle at center, #0B3B24 0%, #051A10 70%, #030D08 100%);
  border: 8px solid #3A2810;
  outline: 2px solid var(--gold-primary);
  border-radius: 120px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
}

.table-center-pot {
  text-align: center;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 14px;
  padding: 12px 28px;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}

.pot-label {
  font-size: 0.8rem;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.pot-amount {
  font-size: 2rem;
  font-weight: 900;
  color: #FFF;
  font-family: var(--font-mono);
}

.pot-burn-hint {
  font-size: 0.72rem;
  color: #FF7777;
  margin-top: 2px;
}

.seats-layout {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 800px;
  margin-bottom: 36px;
}

.seat {
  background: rgba(0, 0, 0, 0.75);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  width: 200px;
  transition: transform 0.2s ease;
}

.seat-landlord {
  border: 2px solid #FFD700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.seat-peasant {
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.seat-badge {
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.seat-landlord .seat-badge {
  color: var(--gold-light);
}

.seat-peasant .seat-badge {
  color: var(--cyan-primary);
}

.seat-avatar {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.seat-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 4px;
}

.seat-deposit {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.table-actions {
  display: flex;
  gap: 16px;
}

@media (max-width: 768px) {
  .arena-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .seats-layout {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .poker-table {
    border-radius: 30px;
  }
}

/* Card Lightbox & Zoom Modal */
.card-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card-modal-content {
  background: linear-gradient(135deg, #161224 0%, #0d0a17 100%);
  border: 2px solid #D4AF37;
  border-radius: 20px;
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.35);
  animation: modalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.card-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #D4AF37;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s;
}
.card-modal-close:hover {
  transform: scale(1.2);
  color: #FFF;
}

.card-modal-body {
  display: flex;
  gap: 24px;
  padding: 28px;
  align-items: center;
}

.card-modal-body img {
  width: 320px;
  height: auto;
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
  cursor: zoom-in;
}

.card-zoom-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-zoom-badges {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.card-zoom-badges .badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid #D4AF37;
  color: #FFD700;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: bold;
}

.btn-deck-filter {
  background: rgba(20, 16, 35, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #A0AEC0;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-deck-filter:hover {
  border-color: #D4AF37;
  color: #FFF;
}
.btn-deck-filter.active {
  background: linear-gradient(135deg, #D4AF37 0%, #AA8010 100%);
  color: #000;
  font-weight: 800;
  border-color: #FFF;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

@media (max-width: 768px) {
  .card-modal-body {
    flex-direction: column;
    text-align: center;
  }
  .card-modal-body img {
    width: 220px;
  }
}

/* =================================================================
   PTAH GENESIS EDITORIAL LAYOUT SYSTEM (https://ptah.trade/genesis)
   ================================================================= */

body.ptah-theme {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
}

.site-wrap {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
}

/* Ptah Sticky Site Header */
.site-header {
  width: calc(100% - 32px);
  max-width: 1560px;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(11, 11, 12, 0.94);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.site-header .wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  letter-spacing: 0.12em;
  font-size: 16px;
  font-weight: 600;
  color: #FFF;
  text-decoration: none;
}

.brand-crest {
  font-size: 22px;
  filter: drop-shadow(0 0 8px rgba(184, 155, 94, 0.5));
}

.primary-navigation {
  display: flex;
  align-items: center;
}

.primary-navigation-list {
  display: flex;
  list-style: none;
  gap: 3px;
  flex-wrap: nowrap;
}

.primary-navigation-link {
  color: var(--muted-foreground);
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.primary-navigation-link:hover,
.primary-navigation-link.active {
  color: #FFF;
  background: rgba(255, 255, 255, 0.08);
}

.wallet-compact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.network-badge {
  font-size: 12px;
  color: var(--primary);
  background: rgba(184, 155, 94, 0.1);
  border: 1px solid rgba(184, 155, 94, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
}

/* Ptah Pill Buttons */
.ptah-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  user-select: none;
}

.ptah-button-gold {
  background: linear-gradient(135deg, #b89b5e 0%, #9a7d42 100%);
  color: #0b0b0c;
  border: none;
  box-shadow: 0 4px 14px rgba(184, 155, 94, 0.25);
}

.ptah-button-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.ptah-button-outline {
  background: transparent;
  border: 1px solid rgba(184, 155, 94, 0.4);
  color: var(--foreground);
}

.ptah-button-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(184, 155, 94, 0.08);
}

.ptah-button-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted-foreground);
}

.ptah-button-ghost:hover {
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Ritual Layout Grid */
.ritual-page {
  --ritual-heading: clamp(2.25rem, 4vw, 3.5rem);
}

.ritual-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(40px, 5vw, 64px);
  width: calc(100% - 96px);
  max-width: 1376px;
  margin: 40px auto 0;
  padding-bottom: 80px;
}

/* Sticky Left Inscription Column */
.ritual-inscription {
  position: sticky;
  top: 36px;
  display: flex;
  flex-direction: column;
  align-items: start;
  min-width: 0;
}

.ritual-name-glyphs {
  margin-bottom: 18px;
}

.glyph-pill {
  border: 1px solid var(--gold-line);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-family: var(--font-mono);
}

.ritual-inscription h1 {
  font-family: var(--font-sans);
  font-size: var(--ritual-heading);
  letter-spacing: -0.045em;
  font-weight: 400;
  line-height: 1.08;
  color: #FFF;
  text-wrap: balance;
}

.ritual-intro {
  max-width: 34ch;
  color: var(--foreground);
  margin-top: 24px;
  font-size: 15.5px;
  line-height: 1.75;
}

.ritual-entry {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  width: 100%;
}

.ritual-primary-action {
  width: 100%;
  border-radius: 999px;
  padding-inline: 24px;
  min-height: 48px;
  background: linear-gradient(135deg, #b89b5e 0%, #9a7d42 100%);
  color: #0b0b0c;
  font-weight: 700;
}

.ritual-secondary-action {
  width: 100%;
  border-radius: 999px;
  min-height: 44px;
}

.ritual-origin {
  max-width: 32ch;
  width: 100%;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.origin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.origin-label {
  color: var(--muted-foreground);
}

.origin-val {
  color: var(--foreground);
  font-weight: 500;
}

.ritual-ticker {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(184, 155, 94, 0.08);
  border: 1px solid rgba(184, 155, 94, 0.25);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--primary);
  width: 100%;
}

.ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00F0FF;
  box-shadow: 0 0 8px #00F0FF;
  animation: pulseTicker 1.5s infinite;
}

@keyframes pulseTicker {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

/* Master Scroll Right Column */
.ritual-scroll {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Section 1: Hero Stage with 3D 6-General Cube */
.ritual-hall {
  width: 100%;
}

.ritual-hall-plate {
  width: 100%;
  background: radial-gradient(circle at center, rgba(184, 155, 94, 0.12) 0%, rgba(14, 16, 22, 0.7) 65%, transparent 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 24px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.ritual-hall-caption {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.caption-block h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 8px;
}

.caption-block p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* Section Cards & Wrappers */
.ritual-section-card {
  background: rgba(14, 16, 22, 0.75);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  backdrop-filter: blur(12px);
}

.section-title-wrap {
  margin-bottom: 24px;
}

.section-badge {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--primary);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.section-title-wrap h2 {
  font-family: var(--font-sans);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #FFF;
}

.section-lead {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-top: 8px;
  max-width: 65ch;
}

/* 108 Vault Filters */
.vault-filters-card {
  background: rgba(11, 12, 16, 0.85);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-title {
  font-size: 13px;
  color: var(--muted-foreground);
  min-width: 72px;
}

.filter-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-search-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  flex: 1;
  min-width: 260px;
}

.search-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: #FFF;
  font-size: 13.5px;
  width: 100%;
}

.counter-badge {
  font-size: 12px;
  color: var(--primary);
  white-space: nowrap;
}

/* Mining Metrics Grid Ptah Luxury Style */
.ptah-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.ptah-metric-box {
  background: rgba(11, 12, 16, 0.8);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}

.ptah-action-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Platform Editorial Founder */
.platform-editorial.platform-origin {
  background: rgba(14, 16, 22, 0.7);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
}

.platform-state {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--primary);
  border: 1px solid var(--gold-line);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.platform-body h2 {
  font-family: var(--font-sans);
  font-size: 26px;
  color: #FFF;
  margin-bottom: 12px;
}

.platform-body p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-bottom: 12px;
}

.contract-pill-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.contract-label {
  font-size: 13px;
  color: var(--muted-foreground);
}

.contract-val {
  font-size: 13.5px;
  color: var(--primary);
}

.platform-final-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Platform Footer */
.platform-footer {
  border-top: 1px solid var(--border);
  padding: 36px 48px;
  background: #080809;
  margin-top: 60px;
}

.footer-wrap {
  width: calc(100% - 96px);
  max-width: 1376px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted-foreground);
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--primary);
}

/* Responsive Breakpoints identical to ptah.trade/genesis */
@media (max-width: 1100px) {
  .site-header {
    width: calc(100% - 48px);
  }
  .ritual-layout {
    width: calc(100% - 48px);
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.6fr);
    gap: 32px;
  }
  .ritual-inscription h1 {
    font-size: 38px;
  }
  .ritual-intro {
    font-size: 15px;
  }
  .ritual-hall-caption {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .site-header {
    width: calc(100% - 32px);
    padding: 12px 0;
  }
  .primary-navigation {
    display: none;
  }
  .ritual-layout {
    width: calc(100% - 32px);
    display: block;
    margin-top: 24px;
  }
  .ritual-inscription {
    position: relative;
    top: auto;
    margin-bottom: 40px;
  }
  .ritual-inscription h1 {
    font-size: 32px;
  }
  .footer-wrap {
    width: calc(100% - 32px);
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}


/* =================================================================
   TOKENOMICS ANTI-SPIRAL PATCHES UI (4 CORE ENGINES)
   1. Gacha Section (Dual-track Minting)
   2. Silicon Durability & Maintenance
   3. Synthesis Fusion Furnace (3-in-1 Burn)
   4. RWA Tapeout Milestone Progress
   ================================================================= */

/* --- 1. Gacha Section --- */
.gacha-section {
  padding: 60px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}
.gacha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.gacha-card {
  background: linear-gradient(145deg, rgba(22, 18, 36, 0.95) 0%, rgba(12, 9, 20, 0.98) 100%);
  border: 2px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.gacha-card:hover {
  transform: translateY(-6px);
  border-color: #FFD700;
  box-shadow: 0 15px 45px rgba(212, 175, 55, 0.25);
}
.gacha-card.master-track {
  border-color: rgba(255, 77, 77, 0.45);
}
.gacha-card.master-track:hover {
  border-color: #FF4D4D;
  box-shadow: 0 15px 45px rgba(255, 77, 77, 0.3);
}
.gacha-badge-top {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.badge-shard {
  background: rgba(0, 240, 255, 0.15);
  color: #00F0FF;
  border: 1px solid #00F0FF;
}
.badge-master {
  background: rgba(255, 77, 77, 0.15);
  color: #FF4D4D;
  border: 1px solid #FF4D4D;
}
.gacha-header h3 {
  font-size: 1.4rem;
  color: #FFF;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gacha-price-tag {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #FFD700;
  margin: 12px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.gacha-price-tag .fiat-hint {
  font-size: 0.82rem;
  color: #A0AEC0;
  font-weight: 400;
}
.gacha-rates {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 0.85rem;
  line-height: 1.7;
}
.rate-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 4px 0;
}
.rate-item:last-child {
  border-bottom: none;
}
.gacha-burn-rule {
  font-size: 0.8rem;
  color: #FF7777;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}
.gacha-actions {
  display: flex;
  gap: 12px;
}
.gacha-actions .btn {
  flex: 1;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 0.92rem;
}

/* --- Gacha Opening Modal --- */
.gacha-open-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.gacha-open-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.gacha-open-content {
  background: linear-gradient(135deg, #1b162b 0%, #0d0a17 100%);
  border: 2px solid #FFD700;
  border-radius: 24px;
  padding: 36px;
  max-width: 640px;
  width: 95%;
  text-align: center;
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.gacha-open-modal.show .gacha-open-content {
  transform: scale(1);
}
.gacha-reveal-img {
  width: 220px;
  height: 330px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  margin: 20px auto;
  border: 2px solid #FFD700;
  display: block;
}

/* --- 2. Durability & Thermal Maintenance --- */
.durability-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.durability-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
}
.durability-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.btn-maintain {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid #00F0FF;
  color: #00F0FF;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 700;
}
.btn-maintain:hover {
  background: #00F0FF;
  color: #000;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* --- 3. Fusion Furnace (3-in-1 Synthesis) --- */
.fusion-section {
  padding: 60px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}
.fusion-panel {
  background: linear-gradient(135deg, rgba(20, 16, 32, 0.95) 0%, rgba(10, 8, 18, 0.98) 100%);
  border: 2px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 36px;
  margin-top: 28px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
}
.fusion-slots-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.fusion-slot {
  width: 140px;
  height: 210px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px dashed rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.fusion-slot:hover {
  border-color: #FFD700;
  background: rgba(212, 175, 55, 0.08);
}
.fusion-slot.filled {
  border-style: solid;
  border-color: #00F0FF;
}
.fusion-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.fusion-arrow {
  font-size: 2rem;
  color: #FFD700;
  animation: pulseArrow 1.5s infinite;
}
@keyframes pulseArrow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}
.fusion-slot.result-slot {
  border: 2px solid #FFD700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
}

/* --- 4. RWA Tapeout Milestone Progress --- */
.milestone-card {
  background: rgba(14, 11, 24, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 32px;
}
.milestone-progress-bar {
  width: 100%;
  height: 16px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.3);
  margin: 16px 0 8px 0;
  position: relative;
}
.milestone-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF4D4D 0%, #FFD700 50%, #00F0FF 100%);
  border-radius: 8px;
  transition: width 1s ease;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}
.milestone-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #A0AEC0;
}


/* =============================================================
   COMPACT LAYOUT OVERRIDES & BLIND BOX MYSTERY REVEAL
   ============================================================= */

.ritual-layout {
  padding: 24px 0 !important;
  gap: 32px !important;
}

.ritual-intro {
  margin-bottom: 20px !important;
  line-height: 1.6 !important;
  font-size: 0.95rem !important;
}

.ritual-origin {
  margin-top: 24px !important;
  padding-top: 16px !important;
  gap: 8px !important;
}

.origin-item {
  padding: 6px 0 !important;
}

.gacha-card {
  padding: 22px 18px !important;
}

.blindbox-cover-art {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blindbox-cover-art:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.5) !important;
}

/* 10-Card Gacha Reveal Grid */
.gacha-grid-card {
  background: #141923;
  border: 1px solid #D4AF37;
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease;
}

.gacha-grid-card:hover {
  transform: translateY(-3px);
  border-color: #00F0FF;
}

.gacha-grid-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 5px;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}
