  <style>
/* ============================
   DESIGN SYSTEM & VARIABLES
============================ */
:root {
  --gold: #c9a35e;
  --gold-glow: rgba(201, 163, 94, 0.6);
  --cyan: #00e0ff;
  --cyan-glow: rgba(0, 224, 255, 0.4);
  --bg-dark: #000;
  --bg-card: #0a0a0a;
  --text-primary: #fff;
  --text-secondary: #aaa;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px var(--cyan-glow);
  --border-radius: 12px;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Orbitron', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================
   ENHANCED SPLASH SCREEN
============================ */
#splash-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, #020203 0%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#splash-overlay.fade-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

#splash-content { text-align: center; animation: splashFadeIn 0.8s ease-out; }

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

#splash-title {
  font-size: 2rem;
  margin: 1.5rem 0 0.5rem;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.8; }
}

.btn {
  background: linear-gradient(135deg, var(--gold), #d4b684);
  color: #000;
  border: none;
  padding: 0.8rem 2rem;
  margin: 0.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--gold-glow); }
.btn:active { transform: translateY(0); }

/* ============================
   FIRST VISIT TUTORIAL
============================ */
#tutorial-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1800;
  animation: fadeIn 0.4s ease;
}
#tutorial-overlay.active { display: flex; }

.tutorial-content {
  text-align: center;
  max-width: 600px;
  padding: 2rem;
  animation: slideUp 0.5s ease-out;
}

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

.tutorial-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow);
}

.tutorial-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.tutorial-step {
  background: rgba(0, 224, 255, 0.05);
  border: 1px solid var(--cyan);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1rem 0;
  transition: var(--transition-smooth);
}
.tutorial-step:hover { background: rgba(0, 224, 255, 0.1); transform: translateX(5px); }
.tutorial-step i { font-size: 2rem; color: var(--cyan); margin-bottom: 0.5rem; display: block; }

#skip-tutorial {
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: 'Orbitron', sans-serif;
  margin-top: 1rem;
}
#skip-tutorial:hover { background: var(--cyan); color: #000; box-shadow: 0 0 20px var(--cyan-glow); }

/* ============================
   DISCOVERY PROGRESS TRACKER
============================ */
#discovery-tracker {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid var(--gold);
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  z-index: 1000;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateX(-20px);
  transition: var(--transition-smooth);
}
#discovery-tracker.visible { opacity: 1; transform: translateX(0); }
#discovery-tracker h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-bar {
  width: 200px;
  height: 8px;
  background: rgba(201, 163, 94, 0.2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  border-radius: 10px;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--gold-glow);
}
.portals-found { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.3rem; }

/* ============================
   MAIN CARD ENHANCEMENTS
============================ */
.main-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
}

.media-container {
  position: relative;
  perspective: 1500px;
  transform-style: preserve-3d;
  animation: cardEntrance 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardEntrance {
  0% { opacity: 0; transform: translateY(50px) rotateX(15deg) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) rotateX(0) scale(1); }
}

/* Breathing animation for card */
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.02); }
}
.media-container.idle #missionImage { animation: breathe 6s ease-in-out infinite; }

/* Interactive zone highlights */
.clickable-area {
  position: absolute;
  transition: var(--transition-bounce);
  filter: brightness(1);
  cursor: pointer;
  transform-origin: center;
  border: none;
  background: transparent;
  padding: 0;
}

/* Center portal special styling */
.clickable-area.center {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 224, 255, 0.03) 0%, transparent 70%);
}

.clickable-area.center::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  border-radius: 50%;
  pointer-events: none;
  animation: centerPulse 3s ease-in-out infinite;
}

@keyframes centerPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.1; }
  50%      { transform: scale(1.05); opacity: 0.2; }
}

.clickable-area.center:hover::before {
  opacity: 0.4;
  animation: centerPulseFast 1s ease-in-out infinite;
}

@keyframes centerPulseFast {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50%      { transform: scale(1.1); opacity: 0.6; }
}

.clickable-area::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.clickable-area:hover::before { opacity: 1; animation: pulseGlow 1.5s ease-in-out infinite; }

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.2); opacity: 0.8; }
}

.clickable-area:hover {
  filter: brightness(1.3) drop-shadow(0 0 15px var(--cyan));
  transform: scale(1.15);
  z-index: 10;
}

.clickable-area.discovered { filter: brightness(1.1); }

.clickable-area.discovered::after {
  content: '✓';
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--gold);
  color: #000;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 0 10px var(--gold-glow);
  animation: checkmarkPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkmarkPop {
  0% { transform: scale(0) rotate(-180deg); }
  100% { transform: scale(1) rotate(0); }
}

/* ============================
   TOOLTIP
============================ */
.info-line {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  border: 2px solid var(--cyan);
  padding: 1rem 1.8rem;
  border-radius: var(--border-radius);
  min-width: 320px;
  max-width: 500px;
  text-align: center;
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 30px rgba(0, 224, 255, 0.5), 0 0 60px rgba(0, 0, 0, 0.8);
  z-index: 100;
}

.info-line.visible {
  opacity: 1;
  transform: translateX(-50%) scale(1.02);
}

#infoParticle {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: particlePulse 1s ease-in-out infinite;
  box-shadow: 0 0 10px var(--cyan);
}

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

#infoText { font-size: 0.95rem; color: var(--cyan); font-weight: 500; }

/* ============================
   ICON BAR
============================ */
.icons-container {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin: 2rem auto;
  padding: 1.2rem 2rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: iconBarSlideIn 0.8s ease-out 0.5s both;
}

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

.icons-container a {
  position: relative;
  color: #fff;
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.icons-container a::before {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: rgba(0, 0, 0, 0.95);
  color: var(--cyan);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  border: 1px solid var(--cyan);
  font-family: 'Orbitron', sans-serif;
}

.icons-container a:hover {
  transform: translateY(-5px);
  background: rgba(0, 224, 255, 0.1);
  box-shadow: 0 5px 20px var(--cyan-glow);
  color: var(--cyan);
}

.icons-container a:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

/* ============================
   MATRIX BTC OVERLAY
============================ */
#matrix-btc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  overflow: hidden;
}

#matrix-btc-overlay.active { display: flex; animation: fadeIn 0.3s ease; }

#matrix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  z-index: 1;
}

.btc-data-container {
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.btc-data-container.visible { opacity: 1; transform: scale(1); }

.btc-main-price {
  font-size: 5rem;
  font-weight: bold;
  color: #00ff00;
  text-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00;
  margin-bottom: 1rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.1em;
  animation: glitchPrice 3s infinite;
}

@keyframes glitchPrice {
  0%, 90%, 100% { text-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00; }
  95% { text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000; transform: translateX(2px); }
}

.btc-label {
  font-size: 1.5rem;
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00;
  margin-bottom: 2rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.2em;
}

.btc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 2rem auto;
}

.btc-stat-card {
  background: rgba(0, 255, 0, 0.05);
  border: 1px solid #00ff00;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
  transition: all 0.3s ease;
}

.btc-stat-card:hover {
  background: rgba(0, 255, 0, 0.1);
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
  transform: translateY(-5px);
}

.btc-stat-label {
  font-size: 0.9rem;
  color: #00ff00;
  opacity: 0.7;
  margin-bottom: 0.5rem;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.btc-stat-value {
  font-size: 1.5rem;
  color: #00ff00;
  font-weight: bold;
  text-shadow: 0 0 10px #00ff00;
  font-family: 'Courier New', monospace;
}
.btc-stat-value.negative { color: #ff0000; text-shadow: 0 0 10px #ff0000; }

.btc-mini-chart {
  background: rgba(0, 255, 0, 0.05);
  border: 1px solid #00ff00;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.chart-placeholder {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  opacity: 0.7;
}

.btc-close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  background: transparent;
  border: 2px solid #00ff00;
  color: #00ff00;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  font-family: 'Courier New', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}
.btc-close-btn:hover {
  background: #00ff00;
  color: #000;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
}

.btc-loading {
  font-size: 2rem;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 20px #00ff00;
  animation: pulse 1.5s infinite;
}

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

/* ============================
   EVENTS MODAL
============================ */
#events-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  z-index: 1500;
  pointer-events: none;
}
#events-overlay.active { display: flex; pointer-events: auto; animation: fadeIn 0.3s ease; }

.events-modal {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  border: 2px solid var(--cyan);
  border-radius: var(--border-radius);
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 0 50px var(--cyan-glow);
  animation: modalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalSlideIn {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.events-modal h2 {
  color: var(--cyan);
  text-align: center;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px var(--cyan-glow);
  font-size: 1.8rem;
}

#close-overlay {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  padding: 0.8rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
}
#close-overlay:hover { background: var(--cyan); color: #000; box-shadow: 0 0 20px var(--cyan-glow); }

/* ============================
   RESPONSIVE / ACCESSIBILITY
============================ */
@media (max-width: 768px) {
  #discovery-tracker { top: 10px; left: 10px; padding: 0.8rem 1rem; }
  .progress-bar { width: 150px; }
  .tutorial-content h2 { font-size: 1.8rem; }
  .icons-container { gap: 0.5rem; padding: 1rem 1.5rem; }
  .icons-container a { width: 40px; height: 40px; font-size: 1.2rem; }
  .clickable-area.center { width: 150px !important; height: 150px !important; }
  .info-line { min-width: 280px; max-width: 85vw; font-size: 0.9rem; padding: 0.8rem 1.2rem; top: 20%; }
  .btc-main-price { font-size: 3rem; }
  .btc-stats-grid { grid-template-columns: 1fr; gap: 1rem; }
  .btc-stat-card { padding: 1rem; }
  .btc-close-btn { top: 15px; right: 15px; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.clickable-area:focus,
.icons-container a:focus,
button:focus { outline: 2px solid var(--cyan); outline-offset: 4px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
  </style>
