/* ============================================================================
   SPARSHARKMARC.CH × MARCFOIS.FINANCE
   16-Bit Retro Arcade Platformer meets Modern Swiss FinTech Bento Design
   ============================================================================ */

:root {
  --ocean-blue: #0055FF;
  --ocean-dark: #003BB5;
  --coin-gold: #FFD700;
  --coin-amber: #FFA000;
  --level-green: #00E676;
  --arcade-dark: #12131A;
  --arcade-card: #1B1D29;
  --bg-light: #F4F6FB;
  --danger-red: #FF3B5C;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-light);
  color: var(--arcade-dark);
}

/* Retro Pixel Typography Classes */
.font-pixel {
  font-family: 'Press Start 2P', monospace;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.font-arcade {
  font-family: 'Silkscreen', monospace;
  letter-spacing: 0.02em;
}

.font-mono-num {
  font-family: 'JetBrains Mono', monospace;
}

/* Retro Arcade Subtle Grid Background */
.bg-arcade-grid {
  background-color: #F4F6FB;
  background-image:
    linear-gradient(to right, rgba(0, 85, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 85, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

.bg-arcade-dark-grid {
  background-color: #12131A;
  background-image:
    linear-gradient(to right, rgba(255, 215, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 230, 118, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Neo-Brutalist / Mario Question-Block Cards & Shadows */
.bento-card {
  background: #FFFFFF;
  border: 3px solid #12131A;
  border-radius: 20px;
  box-shadow: 6px 6px 0px #12131A;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 10px 0px #12131A;
}

.bento-card-dark {
  background: #1B1D29;
  color: #FFFFFF;
  border: 3px solid #12131A;
  border-radius: 20px;
  box-shadow: 6px 6px 0px #0055FF;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}

.bento-card-dark:hover {
  transform: translateY(-4px);
  box-shadow: 8px 10px 0px #FFD700;
}

/* Mario Question Block Style */
.question-block {
  background: linear-gradient(180deg, #FFE54C 0%, #FFD700 60%, #F5B700 100%);
  border: 3px solid #12131A;
  border-radius: 14px;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.7),
    inset 0 -3px 0 rgba(180, 110, 0, 0.5),
    5px 5px 0px #12131A;
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
}

.question-block::before,
.question-block::after {
  content: '';
  position: absolute;
  top: 6px;
  width: 5px;
  height: 5px;
  background: #12131A;
  border-radius: 1px;
}

.question-block::before {
  left: 6px;
}

.question-block::after {
  right: 6px;
}

.question-block:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.8),
    7px 11px 0px #12131A;
}

.question-block:active,
.question-block.hit-bounce {
  animation: blockHit 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes blockHit {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-16px) scale(1.08); }
  70% { transform: translateY(3px) scale(0.97); }
  100% { transform: translateY(0) scale(1); }
}

/* Arcade Buttons */
.btn-arcade-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #FFD700;
  color: #12131A;
  font-weight: 800;
  border: 3px solid #12131A;
  border-radius: 14px;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.75),
    5px 5px 0px #12131A;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.btn-arcade-gold:hover {
  background: #FFDF33;
  transform: translate(-2px, -3px);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.9),
    7px 8px 0px #12131A;
}

.btn-arcade-gold:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0px #12131A;
}

.btn-arcade-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #0055FF;
  color: #FFFFFF;
  font-weight: 800;
  border: 3px solid #12131A;
  border-radius: 14px;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.35),
    5px 5px 0px #12131A;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.btn-arcade-blue:hover {
  background: #1A66FF;
  transform: translate(-2px, -3px);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.45),
    7px 8px 0px #12131A;
}

.btn-arcade-blue:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0px #12131A;
}

.btn-arcade-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #00E676;
  color: #12131A;
  font-weight: 800;
  border: 3px solid #12131A;
  border-radius: 14px;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.6),
    5px 5px 0px #12131A;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.btn-arcade-green:hover {
  background: #26FF8A;
  transform: translate(-2px, -3px);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.75),
    7px 8px 0px #12131A;
}

.btn-arcade-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #FFFFFF;
  color: #12131A;
  font-weight: 700;
  border: 3px solid #12131A;
  border-radius: 14px;
  box-shadow: 4px 4px 0px #12131A;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.btn-arcade-white:hover {
  background: #FFF9DB;
  transform: translate(-2px, -3px);
  box-shadow: 6px 7px 0px #12131A;
}

/* Floating Coins & Animations */
@keyframes floatCoin {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(4deg); }
}

.animate-coin-float {
  animation: floatCoin 2.8s ease-in-out infinite;
}

.animate-coin-float-delayed {
  animation: floatCoin 3.2s ease-in-out 1.1s infinite;
}

/* Pop-up Coin Particle when clicking blocks */
.coin-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  font-weight: bold;
  color: #12131A;
  background: #FFD700;
  border: 2px solid #12131A;
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: 3px 3px 0px #12131A;
  animation: coinPopUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes coinPopUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.7);
  }
  40% {
    opacity: 1;
    transform: translateY(-42px) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translateY(-78px) scale(0.9);
  }
}

/* Custom Range Sliders (Arcade Style) */
input[type="range"].arcade-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  background: #E2E8F0;
  border: 2px solid #12131A;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

input[type="range"].arcade-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  background: #FFD700;
  border: 3px solid #12131A;
  border-radius: 8px;
  box-shadow: 2px 2px 0px #12131A;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

input[type="range"].arcade-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  background: #00E676;
}

input[type="range"].arcade-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: #FFD700;
  border: 3px solid #12131A;
  border-radius: 8px;
  box-shadow: 2px 2px 0px #12131A;
  cursor: pointer;
}

/* Smartphone Arcade Mockups for Social Hub */
.phone-mockup {
  border: 4px solid #12131A;
  border-radius: 28px;
  background: #12131A;
  box-shadow: 7px 7px 0px #12131A;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.phone-mockup:hover {
  transform: translateY(-6px);
}

.phone-notch {
  width: 90px;
  height: 16px;
  background: #12131A;
  margin: 0 auto;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Active Tab / Button states */
.world-nav-btn.active {
  background-color: #FFD700;
  color: #12131A;
  box-shadow: 3px 3px 0px #000000;
}

.quest-tab-btn.active {
  background-color: #0055FF;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 5px 5px 0px #12131A;
}

.quest-select-card.selected {
  background-color: #FFFBEB;
  border-color: #0055FF;
  box-shadow: 6px 6px 0px #0055FF;
}

/* RPG Stat Bar Fill Animation */
.stat-bar-fill {
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: #12131A;
}
::-webkit-scrollbar-thumb {
  background: #FFD700;
  border: 2px solid #12131A;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00E676;
}

