/* GLOBAL — prevent text cursor on interactive elements */
button, [onclick], .shop-tab, .upgrade-item, .meme-nav-btn,
.nav-btn, .btn-primary, .btn-outline, .wallet-option-btn,
.ca-copy-btn, .copy-btn, .meme-gallery-frame, .meme-dot {
  cursor: pointer !important;
  user-select: none;
  -webkit-user-select: none;
}

/* IMAGE & ICON UTILITIES */
.ticker-fish { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; }
.ticker-icon { width: 14px; height: 14px; vertical-align: middle; stroke: currentColor; }
.logo-steven-img { width: 38px; height: 38px; object-fit: contain; animation: bob 2s ease-in-out infinite; }
.btn-fish-icon { width: 22px; height: 22px; object-fit: contain; }
.badge-icon { width: 16px; height: 16px; }
.steven-hero-img { width: 260px; height: 260px; object-fit: contain; filter: drop-shadow(0 12px 40px rgba(125,34,227,0.5)); }
.steven-arena-img { width: 320px; height: 320px; object-fit: contain; cursor: pointer; transition: transform 0.15s; animation: stevenIdle 2s ease-in-out infinite; filter: drop-shadow(6px 6px 0 rgba(0,0,0,0.8)); }
.steven-arena-img:hover { animation: none; transform: scale(1.1) rotate(4deg); filter: drop-shadow(8px 8px 0 rgba(0,0,0,1)); }
.fish-item-img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 6px; transition: transform 0.2s; }
.fish-item:hover .fish-item-img { transform: scale(1.15) rotate(-8deg); }
.card-fish-img { width: 36px; height: 36px; object-fit: contain; }
.card-icon-wrap { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.card-icon-wrap svg { width: 28px; height: 28px; }
.card-icon-wrap.purple { background: rgba(125,34,227,0.2); color: #d8baff; }
.card-icon-wrap.salmon { background: rgba(255,107,107,0.2); color: #FF6B6B; }
.card-icon-wrap.yellow { background: rgba(223,237,0,0.2); color: #dfed00; }
.card-icon-wrap.cyan { background: rgba(76,214,255,0.2); color: #4cd6ff; }
.drop-icon { width: 28px; height: 28px; color: var(--salmon); }
.submit-icon-svg { width: 48px; height: 48px; flex-shrink: 0; color: var(--purple-light); }
.step-icon-wrap { width: 52px; height: 52px; background: rgba(125,34,227,0.2); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.step-icon-wrap svg { width: 26px; height: 26px; color: var(--purple-light); }
.step-steven-img { width: 36px; height: 36px; object-fit: contain; }
.step-arrow { color: var(--outline); display: flex; align-items: center; justify-content: center; padding: 0 8px; }
.step-arrow svg { width: 28px; height: 28px; }
.contract-icon { width: 24px; height: 24px; color: var(--purple-light); flex-shrink: 0; }
.footer-steven-img { width: 36px; height: 36px; object-fit: contain; }
.info-icon { margin-bottom: 8px; color: var(--purple-light); }
.info-icon svg { width: 24px; height: 24px; }
.draggable-fish-img { width: 64px; height: 64px; object-fit: contain; pointer-events: none; }

:root {
  --bg: #8BE9FD; /* Bright sky blue */
  --deep: #5CE1E6; /* Slightly darker blue */
  --surface: #ffffff;
  --surface-hi: #f8f9fa;
  --on-bg: #000000;
  --on-muted: #333333;
  --purple: #ff9800;
  --purple-light: #ffd180;
  --yellow: #FFD54F;
  --cyan: #58b0f0;
  --salmon: #FF6B6B;
  --green: #2DE371;
  --outline: #000000;
  --font-head: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Hanken Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--on-bg);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  /* Prevent horizontal scroll on mobile */
  max-width: 100vw;
  /* Font smoothing — makes fonts render identically on mobile and desktop */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* Prevent accidental horizontal swipe on touch devices */
.feed-section, .shop-area, .clicker-container, .shop-content {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* UTILITIES */
.mono { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: 0.05em; }
.green { color: var(--green); }
.yellow { color: var(--yellow); }
.cyan { color: var(--cyan); }
.salmon { color: var(--salmon); }
.muted { color: var(--on-muted); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* TICKER */
.ticker-bar {
  background: var(--purple);
  overflow: hidden;
  padding: 8px 0;
  white-space: nowrap;
  border-bottom: 2px solid var(--yellow);
}
.ticker-track {
  display: inline-flex;
  gap: 60px;
  animation: ticker 30s linear infinite;
}
.ticker-track span { font-size: 14px; font-family: var(--font-mono); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 4px solid var(--outline);
  padding: 16px 0;
  transition: all 0.3s;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.logo-text {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  color: var(--on-bg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-body);
  transition: color 0.2s, transform 0.2s;
  letter-spacing: 0.02em;
}
.nav-link:hover {
  color: var(--salmon);
  transform: translateY(-2px);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--outline);
  background: var(--surface);
  color: var(--on-bg);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 2px 2px 0 var(--outline);
}
.nav-social-btn svg { width: 18px; height: 18px; }
.nav-social-btn:hover {
  background: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--outline);
}

/* WALLET CONNECT PILL BUTTON */
.wallet-connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 3px solid var(--outline);
  color: var(--on-bg);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-head);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--outline);
}
.wallet-connect-btn svg {
  width: 14px;
  height: 14px;
}
.wallet-connect-btn:hover {
  background: rgba(45,227,113,0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(45,227,113,0.25);
  border-color: var(--green);
  color: var(--green);
}
.wallet-connect-btn.connected {
  border-color: #000;
  color: #000;
  background: #dcfce7;
}
.wallet-connect-btn.connected:hover {
  background: #bbf7d0;
  border-color: #000;
  color: #000;
}

/* BUY PILL BUTTON */
.nav-btn {
  background: var(--yellow) !important;
  color: #000 !important;
  font-weight: 800;
  font-size: 14px;
  padding: 8px 22px;
  border-radius: 100px;
  text-decoration: none;
  font-family: var(--font-head);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 4px 4px 0 #000 !important;
  border: 3px solid #000 !important;
  display: inline-flex;
  align-items: center;
}
.nav-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 4px 20px rgba(223,237,0,0.3) !important;
}

/* HERO */
.hero {
  min-height: 90vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 100px 40px 60px;
}
.hero-bg-gradient {
  position: absolute; inset: 0; z-index: 0;
  background: transparent;
}
.hero-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-content {
  position: relative; z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 2px solid var(--salmon);
  border-radius: 100px; padding: 6px 16px;
  font-size: 14px; font-weight: 600; color: var(--salmon);
  margin-bottom: 24px; text-decoration: none;
  animation: pulse-badge 2s ease-in-out infinite;
  transition: transform 0.2s, background 0.2s;
}
.hero-badge:hover { transform: translateY(-2px); background: var(--surface-hi); color: #fff; }
@keyframes pulse-badge { 0%,100%{box-shadow:0 0 0 0 rgba(255,107,107,0.4)} 50%{box-shadow:0 0 0 8px rgba(255,107,107,0)} }

.hero-title {
  font-family: var(--font-head); font-weight: 800; line-height: 1;
  margin-bottom: 24px;
}
.title-line1 {
  display: block; font-size: clamp(56px,8vw,96px);
  color: var(--on-bg);
}
.title-line2 {
  display: block; font-size: clamp(72px,12vw,128px);
  color: var(--yellow);
  transform: rotate(-2deg); display: inline-block;
  text-shadow: 6px 6px 0 #000;
}
.hero-sub {
  font-size: 20px; color: var(--on-muted); margin-bottom: 36px; line-height: 1.5;
}
.hero-cta-group { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; justify-content: center; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: #000; font-weight: 800; font-size: 16px;
  padding: 14px 28px; border-radius: 100px; text-decoration: none;
  box-shadow: 4px 4px 0 #000; border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: var(--font-head);
}
.btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 #000; }
.btn-primary:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 #000; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.03); color: var(--cyan); font-weight: 800; font-size: 16px;
  padding: 14px 32px; border-radius: 100px; text-decoration: none;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 15px rgba(76,214,255,0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: var(--font-head);
}
.btn-ghost:hover { 
  background: var(--cyan); color: #000; 
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 25px rgba(76,214,255,0.5);
}

/* REDESIGNED HERO TYPOGRAPHY & ELEMENTS */
.hero-title-main {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 28px;
  text-align: center;
  font-size: clamp(56px, 10vw, 105px);
  letter-spacing: -0.02em;
}
.hero-title-main span {
  display: block;
}
.hero-title-main .title-white {
  color: var(--on-bg);
}
.hero-title-main .title-yellow {
  color: var(--yellow);
  text-shadow: 4px 4px 0 #000;
  -webkit-text-stroke: 3px #000;
  paint-order: stroke fill;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(16px, 2.5vw, 21px);
  color: var(--on-muted);
  margin-bottom: 36px;
  line-height: 1.5;
  text-align: center;
}

/* PREMIUM CTA BUTTONS */
.btn-hero-buy {
  background: var(--yellow) !important;
  color: #000 !important;
  border: 3px solid #000 !important;
  box-shadow: 6px 6px 0 #000 !important;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  border-radius: 100px;
  padding: 14px 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-hero-buy:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(223,237,0,0.3) !important;
}
.btn-hero-buy svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.btn-hero-feed {
  background: var(--surface) !important;
  color: #000 !important;
  border: 3px solid #000 !important;
  border-radius: 100px;
  padding: 14px 32px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 6px 6px 0 #000 !important;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-hero-feed:hover {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 25px rgba(76,214,255,0.4) !important;
  transform: translateY(-3px) scale(1.03);
  color: var(--cyan) !important;
}
.btn-hero-feed svg {
  width: 16px;
  height: 16px;
}

/* PREMIUM STATS ROW */
.hero-stats-row {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 5vw, 64px);
  margin-top: 48px;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}
.hero-stat-card {
  text-align: center;
  min-width: 140px;
}
.hero-stat-card .stat-val {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
  display: block;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}
.hero-stat-card .stat-val.gains {
  color: var(--green);
  text-shadow: 3px 3px 0 #000;
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
}
.hero-stat-card .stat-val.members {
  color: var(--yellow);
  text-shadow: 3px 3px 0 #000;
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
}
.hero-stat-card .stat-val.burned {
  color: var(--salmon);
  text-shadow: 3px 3px 0 #000;
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
}
.hero-stat-card .stat-lbl {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--on-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* SOCIAL BADGE */
.hero-social-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 3px solid #000;
  border-radius: 100px;
  padding: 6px 18px;
  color: #000;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
  text-decoration: none;
  box-shadow: 4px 4px 0 #000;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hero-social-badge:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 #000;
}
.hero-social-badge:hover {
  background: rgba(255, 107, 107, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,107,107,0.2);
}

/* DECORATIVE FLOATING ANIMATIONS */
@keyframes floatFish {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-10px) rotate(8deg) scale(1.05); }
}
@keyframes floatFish2 {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(10px) rotate(-8deg) scale(0.95); }
}

/* SECTION HEADER LEFT-ALIGN */
.section-header-left {
  text-align: left;
  margin-bottom: 56px;
  max-width: 800px;
}
.section-label-coral {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--salmon);
  display: block;
  margin-bottom: 12px;
}
.section-title-white {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 56px);
  color: var(--on-bg);
  line-height: 1.1;
  margin-bottom: 16px;
}
.logo-steven-img-nav {
  animation: bobNav 2.5s ease-in-out infinite;
  background: rgba(125, 34, 227, 0.1);
  border-radius: 50%;
  border: 2px solid #000;
  padding: 6px;
  box-shadow: 2px 2px 0 #000;
  box-sizing: content-box;
}
@keyframes bobNav {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.05); }
}

.hero-steven {
  position: absolute; right: 40px; bottom: 40px; z-index: 2;
  pointer-events: none;
}
.steven-bounce { animation: stevenFloat 3s ease-in-out infinite; position: relative; }
@keyframes stevenFloat {
  0%,100%{transform:translateY(0) rotate(-3deg)}
  50%{transform:translateY(-20px) rotate(3deg)}
}
/* steven-hero-img defined above */
.speech-bubble {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  background: var(--yellow); color: #000; font-family: var(--font-head);
  font-weight: 800; font-size: 14px; padding: 8px 16px; border-radius: 12px;
  white-space: nowrap; box-shadow: 3px 3px 0 #000; border: 2px solid #000;
}
.speech-bubble::after {
  content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--yellow);
}

/* SECTIONS */
.section { padding: 120px 0; }
.section-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--purple-light); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(36px,5vw,56px); line-height: 1.1;
  margin-bottom: 16px;
}
.section-title.tilted { transform: rotate(-1.5deg); display: inline-block; }
.section-sub { color: var(--on-muted); font-size: 18px; margin-bottom: 48px; max-width: 600px; }

/* STICKER CARDS */
.sticker-card {
  background: var(--surface); border: 3px solid var(--outline);
  border-radius: 16px; padding: 28px;
  box-shadow: 6px 6px 0 #000;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sticker-card:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 #000; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.about-card { display: flex; flex-direction: column; gap: 16px; position: relative; }
.glass-card {
  background: var(--surface);
  border: 3px solid var(--outline);
  box-shadow: 6px 6px 0 #000;
}
.about-card-visual {
  height: 180px; width: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative; margin-bottom: 8px;
}
.about-3d-img {
  max-height: 160px; max-width: 100%; object-fit: contain;
  z-index: 2; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.3));
}
.about-card:hover .about-3d-img { transform: translateY(-15px) scale(1.1) rotate(5deg); }
.about-glow { display: none; }
.about-glow.purple { display: none; }
.about-glow.salmon { display: none; }
.about-glow.yellow { display: none; }
.about-glow.cyan { display: none; }

.about-card h3 { font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--on-bg); }
.about-card p { color: var(--on-muted); font-size: 15px; line-height: 1.6; }

/* FEED SECTION */
.feed-section { background: var(--deep); }
.feed-arena {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  background: var(--surface); border: 4px solid var(--outline);
  border-radius: 24px; padding: 32px; box-shadow: 8px 8px 0 #000;
}

.arena-steven { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.arena-steven-body { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.steven-main-emoji {
  font-size: 100px; cursor: pointer;
  animation: stevenIdle 2s ease-in-out infinite;
  transition: transform 0.2s;
}
.steven-main-emoji:hover { animation: none; transform: scale(1.15) rotate(5deg); }
@keyframes stevenIdle { 0%,100%{transform:rotate(-2deg)} 50%{transform:rotate(2deg)} }
.steven-speech {
  /* Float above the bird — never push it around */
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  white-space: nowrap;
  pointer-events: none;
  background: #fff; color: #000; font-family: var(--font-head);
  font-weight: 800; font-size: 13px; padding: 6px 16px;
  border-radius: 100px; border: 2px solid #000; box-shadow: 3px 3px 0 #000;
  opacity: 0;
  transition: opacity 0.15s;
  max-width: 90%;
  text-overflow: ellipsis;
  overflow: hidden;
}
.steven-speech.active {
  opacity: 1;
}
.drop-zone {
  width: 200px; height: 80px;
  border: 3px dashed var(--salmon); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.drop-zone.drag-over {
  background: rgba(255,107,107,0.15); border-color: var(--yellow);
  transform: scale(1.05);
}
.drop-zone-inner { font-family: var(--font-mono); font-size: 12px; color: var(--salmon); text-align: center; }

/* BUY SECTION */
.buy-section { background: var(--bg); }
.buy-steps { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.step-card { flex: 1; min-height: 380px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.step-num { 
  position: absolute; top: 20px; left: 24px; font-size: 14px; 
  opacity: 0.5; font-weight: 800; z-index: 10;
}
.step-card-visual {
  height: 160px; width: 100%; display: flex; align-items: center; justify-content: center;
  position: relative; margin: 20px 0;
}
.step-3d-img {
  max-height: 130px; max-width: 100%; object-fit: contain; z-index: 2;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.3));
}
.step-card:hover .step-3d-img { transform: scale(1.15) rotate(3deg); }
.step-card h3 { font-family: var(--font-head); font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--on-muted); line-height: 1.5; }
.step-arrow { color: var(--outline); font-size: 24px; opacity: 0.5; }

/* FISH SHOP */
.fish-shop { display: flex; flex-direction: column; gap: 16px; }
.shop-header {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--outline); padding-bottom: 12px;
}
.shop-title { font-family: var(--font-head); font-weight: 800; font-size: 18px; }

.token-balance { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.balance-value { font-size: 20px; color: var(--yellow); text-shadow: 2px 2px 0 #000; -webkit-text-stroke: 1px #000; font-weight: 800; }
.fish-items { display: grid; grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); gap: 12px; }
.fish-item {
  background: var(--surface-hi); border: 2px solid var(--outline);
  border-radius: 12px; padding: 14px; text-align: center;
  cursor: pointer; transition: all 0.2s; position: relative;
}
.fish-item:hover { border-color: var(--cyan); transform: translateY(-3px); }
.fish-item.hot { border-color: var(--salmon); }
.fish-badge {
  position: absolute; top: -10px; right: -8px;
  background: var(--salmon); color: #000; font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: 100px; border: 2px solid #000;
}
.fish-emoji { font-size: 32px; margin-bottom: 6px; }
.fish-name { font-family: var(--font-head); font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.fish-cost { font-size: 13px; color: var(--yellow); margin-bottom: 2px; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; font-weight: 800; }
.fish-burn { font-size: 11px; color: var(--salmon); margin-bottom: 8px; font-weight: 700; }
.buy-fish-btn {
  background: var(--purple); color: #fff; border: none; border-radius: 100px;
  padding: 5px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: var(--font-head);
  transition: transform 0.15s, background 0.2s;
}
.buy-fish-btn:hover { background: var(--yellow); color: #000; transform: scale(1.05); }

/* FEED LOG */
.feed-log { background: var(--deep); border-radius: 12px; padding: 16px; max-height: 140px; overflow-y: auto; }
.log-title { font-family: var(--font-mono); font-size: 12px; color: var(--on-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.log-title svg { width: 14px; height: 14px; }
.log-entry { font-size: 13px; color: var(--on-muted); padding: 3px 0; border-bottom: 1px solid var(--outline); }
.log-entry:last-child { border-bottom: none; color: var(--on-bg); }

/* INFO BANNER */
.info-banner-section {
  background: var(--deep);
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
  padding: 20px 0;
}

.info-banner-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.info-banner-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  padding: 4px 16px;
}

.info-banner-icon { display: none; } /* old emoji icons hidden */

.info-banner-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid rgba(255,107,107,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--salmon);
}

.info-banner-icon-box svg { width: 16px; height: 16px; }

.info-banner-icon-box.trophy {
  background: rgba(255, 214, 0, 0.12);
  border-color: rgba(255,214,0,0.3);
  color: #ffd600;
}

.info-banner-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-banner-text strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}

.info-banner-text span {
  font-size: 13px;
  color: var(--on-muted);
  line-height: 1.5;
}

.info-banner-divider {
  width: 1px;
  background: var(--outline);
  margin: 0 8px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .info-banner-row { flex-direction: column; gap: 16px; }
  .info-banner-divider { width: 100%; height: 1px; margin: 0; }
}

/* BURN TRACKER (legacy, hidden) */
.burn-tracker {
  display: none;
}
.burn-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.burn-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.burn-title svg { width: 22px; height: 22px; color: var(--salmon); }
.burn-numbers { font-size: 14px; }
.burn-bar-track {
  width: 100%; height: 28px; background: var(--deep);
  border-radius: 100px; border: 2px solid var(--outline);
  overflow: visible; position: relative; margin-bottom: 12px;
}
.burn-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--salmon), #ff9f00);
  border-radius: 100px; transition: width 0.8s cubic-bezier(0.23,1,0.32,1);
  position: relative; min-width: 0;
  box-shadow: 0 0 16px rgba(255,107,107,0.6);
}
.burn-bar-fill::after {
  content: ''; position: absolute; right: 0; top: 50%;
  transform: translate(50%,-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--salmon);
  box-shadow: 0 0 10px rgba(255,107,107,0.8);
}
.burn-milestones { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.burn-ms {
  position: absolute; top: -20px;
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; color: var(--on-muted);
}
.burn-ms::before {
  content: ''; position: absolute; bottom: -6px; left: 50%;
  transform: translateX(-50%); width: 1px; height: 34px;
  background: var(--outline);
}
.burn-footer { display: flex; align-items: center; gap: 0; font-size: 14px; flex-wrap: wrap; }

/* LEADERBOARD */
.leaderboard-section { background: var(--deep); }
.leaderboard-wrap {
  background: var(--surface); border: 2px solid var(--outline);
  border-radius: 20px; overflow: hidden; box-shadow: 4px 4px 0 #000;
  display: flex; flex-direction: column;
}
.lb-header {
  display: grid; grid-template-columns: 72px 1fr 160px;
  padding: 14px 24px; background: var(--deep);
  border-bottom: 2px solid var(--outline);
  font-family: var(--font-mono); font-size: 11px; color: var(--on-muted);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.lb-list {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) var(--surface-hi);
}
.lb-list::-webkit-scrollbar { width: 6px; }
.lb-list::-webkit-scrollbar-track { background: var(--surface-hi); }
.lb-list::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }
.lb-search-wrap {
  padding: 12px 0 10px 0;
  flex-shrink: 0;
}
.lb-search-input {
  width: 100%;
  background: #fff;
  border: 3px solid #000;
  border-radius: 12px;
  padding: 10px 14px;
  color: #000;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  outline: none;
  box-sizing: border-box;
  box-shadow: 2px 2px 0 #000;
  transition: all 0.2s;
}
.lb-search-input:focus {
  border-color: var(--yellow);
  box-shadow: 4px 4px 0 #000;
  transform: translate(-2px, -2px);
}
.lb-search-input::placeholder { color: var(--on-muted); }
#tab-leaderboard {
  display: none;
  flex-direction: column;
  padding: 12px 16px 0 16px;
  overflow: hidden;
}
#tab-leaderboard.active {
  display: flex;
}
.lb-no-results {
  padding: 32px 24px;
  text-align: center;
  color: var(--on-muted);
  font-size: 14px;
}
.lb-row {
  display: grid; grid-template-columns: 72px 1fr 160px;
  padding: 16px 24px; border-bottom: 1px solid var(--outline);
  align-items: center; transition: background 0.2s;
}
.lb-row:hover { background: var(--surface-hi); }
.lb-row.lb-me { background: rgba(125,34,227,0.15); border-left: 3px solid var(--purple); }
.lb-row.lb-top1 { background: rgba(255,215,0,0.05); }
.lb-row.lb-top2 { background: rgba(192,192,192,0.04); }
.lb-row.lb-top3 { background: rgba(205,127,50,0.04); }
.lb-row.lb-top1 .lb-rank-num { color: #FFD700; font-size: 24px; text-shadow: 0 0 12px rgba(255,215,0,0.5); }
.lb-row.lb-top2 .lb-rank-num { color: #C0C0C0; font-size: 22px; text-shadow: 0 0 10px rgba(192,192,192,0.4); }
.lb-row.lb-top3 .lb-rank-num { color: #CD7F32; font-size: 20px; text-shadow: 0 0 8px rgba(205,127,50,0.4); }
.lb-rank { display: flex; align-items: center; justify-content: center; }
.lb-rank-num { font-family: var(--font-head); font-weight: 800; font-size: 16px; }
.lb-user { display: flex; align-items: center; gap: 12px; }
.lb-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--purple); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 14px; color: #fff;
  flex-shrink: 0;
}
.lb-name { font-family: var(--font-head); font-weight: 700; font-size: 15px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.lb-wallet { font-family: var(--font-mono); font-size: 11px; color: var(--on-muted); }
.lb-fish-count { font-family: var(--font-mono); font-size: 14px; color: var(--cyan); font-weight: 700; text-align: right; }
.lb-you-tag { font-size: 11px; color: var(--purple-light); font-family: var(--font-mono); font-weight: 600; margin-left: 4px; }
.lb-prestige-badge { font-size: 11px; color: #FFD700; font-family: var(--font-mono); font-weight: 700; margin-left: 5px; background: rgba(255,215,0,0.12); border: 1px solid rgba(255,215,0,0.35); border-radius: 100px; padding: 1px 6px; vertical-align: middle; }
.lb-empty { padding: 48px 24px; text-align: center; }
.lb-empty-icon { font-size: 48px; margin-bottom: 12px; }
.lb-empty-title { font-family: var(--font-head); font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.lb-empty-sub { font-size: 14px; color: var(--on-muted); }
.lb-my-row {
  border-top: 2px solid var(--purple); padding: 20px 24px;
  background: rgba(125,34,227,0.1);
}
.lb-my-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lb-my-inner svg { width: 20px; height: 20px; color: var(--purple-light); }

/* ═══════════════════════════════════════════════════
   WALLET MODAL — 2-step connect + nickname flow
═══════════════════════════════════════════════════ */
.wallet-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.82); backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.wallet-modal-overlay.open { display: flex; }

.wallet-modal {
  background: var(--surface);
  border: 1.5px solid rgba(125,34,227,0.5);
  border-radius: 24px;
  width: 100%; max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(125,34,227,0.1);
  position: relative;
  overflow: hidden;
  animation: modalIn 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
}

.wallet-modal::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--yellow));
}

@keyframes modalIn {
  from { transform: scale(0.88) translateY(24px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

/* Each step is a flex column */
.wallet-modal-step {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  gap: 0;
}

/* Header inside modal */
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
  text-align: left;
}
.modal-header-text { flex: 1; }
.modal-header h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--on-bg);
  margin: 0;
  line-height: 1.2;
}
.modal-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #15803d;
  margin-bottom: 4px;
}
.btn-icon {
  background: none; border: none; color: var(--on-muted);
  cursor: pointer; padding: 4px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.btn-icon:hover { color: var(--on-bg); background: var(--surface-hi); }
.btn-icon svg { width: 20px; height: 20px; }

.modal-sub {
  font-size: 14px;
  color: var(--on-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Wallet option buttons */
.wallet-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.wallet-option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-hi);
  border: 1.5px solid var(--outline);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175,0.885,0.32,1.275);
  text-align: left;
  width: 100%;
}
.wallet-option-btn:hover {
  border-color: var(--purple);
  background: rgba(125,34,227,0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(125,34,227,0.2);
}
.wallet-option-btn.connecting {
  opacity: 0.55;
  cursor: wait !important;
}
.wallet-option-btn img {
  width: 38px; height: 38px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
}
.wallet-option-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wallet-option-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: var(--on-bg);
}
.wallet-option-desc {
  font-size: 12px;
  color: var(--on-muted);
}
.wallet-option-arrow {
  width: 18px; height: 18px;
  color: var(--outline);
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}
.wallet-option-btn:hover .wallet-option-arrow {
  color: var(--purple-light);
  transform: translateX(3px);
}

/* Footnote under options */
.modal-footnote {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #333333;
  font-weight: 700;
}
.modal-footnote svg { width: 13px; height: 13px; flex-shrink: 0; color: #000; }

/* ── Step 2: Nickname ── */
.nickname-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.nickname-input-row {
  display: flex;
  align-items: center;
  background: var(--deep);
  border: 2px solid var(--outline);
  border-radius: 12px;
  padding: 0 14px;
  transition: border-color 0.2s;
}
.nickname-input-row:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(125,34,227,0.15);
}
.nickname-prefix {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: #000000;
  margin-right: 6px;
}
.nickname-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #000000;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  padding: 14px 0;
  user-select: text !important;
  -webkit-user-select: text !important;
  pointer-events: all !important;
  cursor: text !important;
}
.nickname-input::placeholder { color: rgba(0, 0, 0, 0.4); font-weight: 600; }
.nickname-addr {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #333333;
  font-weight: 700;
  padding: 0 2px;
}

.nickname-save-btn {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 14px;
}

.btn-full { width: 100%; justify-content: center; }

.btn-text-link {
  background: none;
  border: none;
  color: #333333;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  transition: color 0.2s;
  font-family: var(--font-body);
  font-weight: 700;
}
.btn-text-link:hover { color: var(--salmon); }
.btn-text-link svg { width: 14px; height: 14px; }

/* FISH PLAYGROUND */
.fish-playground { position: fixed; inset: 0; pointer-events: none; z-index: 200; }
.draggable-fish {
  position: absolute; font-size: 40px; cursor: grab; pointer-events: all;
  user-select: none; transition: transform 0.1s;
  filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.5));
}
.draggable-fish:hover { transform: scale(1.2) rotate(10deg); }
.draggable-fish.grabbed { cursor: grabbing; transform: scale(1.3); z-index: 999; }

/* MEME PLAYER */
/* ── MEME GALLERY ── */
.meme-gallery-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.meme-gallery-frame {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.2s, box-shadow 0.2s;
}

.meme-gallery-frame:hover {
  transform: translateY(-4px);
  box-shadow: 6px 8px 0 #000;
}

.meme-gallery-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0a0818;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.meme-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: block;
}

/* slide animations */
.meme-exit-next  .meme-gallery-img { opacity: 0; transform: translateX(-30px) scale(0.96); }
.meme-exit-prev  .meme-gallery-img { opacity: 0; transform: translateX(30px)  scale(0.96); }
.meme-enter-next .meme-gallery-img { animation: slide-in-right 0.25s ease forwards; }
.meme-enter-prev .meme-gallery-img { animation: slide-in-left  0.25s ease forwards; }

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(30px)  scale(0.96); }
  to   { opacity: 1; transform: translateX(0)      scale(1); }
}
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-30px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0)     scale(1); }
}

.meme-gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  padding: 24px 16px 12px;
  opacity: 0;
  transition: opacity 0.2s;
}
.meme-gallery-frame:hover .meme-gallery-overlay { opacity: 1; }

.meme-gallery-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
}

/* nav arrows */
.meme-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--outline);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  box-shadow: 2px 2px 0 #000;
}
.meme-nav-btn:hover {
  background: var(--purple);
  border-color: var(--purple);
  transform: scale(1.1);
}
.meme-nav-btn:active { transform: scale(0.95); }

/* footer: dots + counter */
.meme-gallery-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
}

.meme-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.meme-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--outline);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.meme-dot.active {
  background: var(--purple);
  transform: scale(1.35);
}
.meme-dot:hover:not(.active) { background: var(--purple-light); }

.meme-counter {
  font-size: 12px;
  color: var(--on-muted);
  letter-spacing: 0.08em;
}

/* responsive */
@media (max-width: 600px) {
  .meme-gallery-frame { max-width: 100%; }
  .meme-nav-btn { width: 38px; height: 38px; font-size: 22px; }
  .meme-gallery-wrap { gap: 10px; }
}

.submit-meme-box {
  background: var(--surface); border: 2px dashed var(--purple);
  border-radius: 16px; padding: 28px;
}
.submit-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.submit-icon { font-size: 40px; }

/* TOKENOMICS */
.token-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.token-card { background: var(--surface); border: 2px solid var(--outline); border-radius: 24px; padding: 40px; box-shadow: 4px 4px 0 #000; display: flex; flex-direction: column; gap: 32px; }
.donut-chart { width: 200px; height: 200px; transform: rotate(-90deg); }
.donut-label-big { font-family: var(--font-head); font-size: 16px; font-weight: 800; fill: var(--on-bg); transform: rotate(90deg); transform-origin: 50px 50px; }
.donut-label-sm { font-family: var(--font-mono); font-size: 8px; fill: var(--on-muted); transform: rotate(90deg); transform-origin: 50px 50px; }
.token-ring { display: flex; justify-content: center; }
.token-legend { display: flex; flex-direction: column; gap: 12px; }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.legend-item span:last-child { margin-left: auto; }
.token-info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card { display: flex; flex-direction: column; gap: 6px; }
.info-label { font-size: 11px; color: var(--on-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.info-value { font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.info-sub { font-size: 13px; color: var(--on-muted); }

/* BUY */
.buy-section { background: var(--deep); }

/* 4-column grid on desktop, scales down responsively */
.buy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.buy-grid .step-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px 20px 20px;
}

.buy-grid .step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--purple-light);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.buy-grid .step-card-visual {
  height: 180px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 15px;
  margin-bottom: 8px;
}

.buy-grid .step-3d-img {
  max-height: 160px;
  max-width: 100%;
  object-fit: contain;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.3));
}

.buy-grid .step-card:hover .step-3d-img {
  transform: translateY(-15px) scale(1.1) rotate(5deg);
}

.buy-grid .step-content { margin-top: 8px; }
.buy-grid .step-content h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  margin-bottom: 6px;
}
.buy-grid .step-content p {
  font-size: 13px;
  color: var(--on-muted);
  line-height: 1.55;
}

/* legacy */
.buy-steps { display: flex; align-items: center; gap: 0; flex-wrap: wrap; margin-bottom: 48px; }
.step-card { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--font-mono); font-size: 12px; color: var(--purple-light); }
.step-emoji { font-size: 36px; }
.step-card h3 { font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.step-card p { font-size: 14px; color: var(--on-muted); }
.step-arrow { font-size: 32px; color: var(--outline); padding: 0 16px; }
.contract-box {
  background: var(--surface); border: 2px solid var(--purple); border-radius: 16px;
  padding: 24px 28px; display: flex; align-items: center; gap: 16px;
  box-shadow: 4px 4px 0 var(--purple); flex-wrap: wrap;
}
.contract-label { font-size: 12px; color: var(--on-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.contract-address { color: var(--cyan); font-size: 14px; flex: 1; word-break: break-all; }
.copy-btn {
  background: var(--purple); color: #fff; border: none; border-radius: 100px;
  padding: 8px 20px; font-weight: 700; cursor: pointer; font-family: var(--font-head);
  transition: background 0.2s, transform 0.15s;
}
.copy-btn:hover { background: var(--yellow); color: #000; transform: scale(1.05); }

/* ── CA BOX ── */
.ca-box {
  background: var(--surface);
  border: 3px solid #000;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 32px;
  box-shadow: 4px 4px 0 rgba(125,34,227,0.4);
  position: relative;
  overflow: hidden;
}

/* Compact version in hero */
.hero-ca-box {
  max-width: 440px;
  margin: 0 auto;
  padding: 10px 14px;
  margin-bottom: 0;
  border-radius: 12px;
  box-shadow: 3px 3px 0 rgba(125,34,227,0.35);
}

.hero-ca-box .ca-box-label { margin-bottom: 6px; }
.hero-ca-box .ca-address { font-size: 12px; }
.hero-ca-box .ca-copy-btn { padding: 5px 10px; font-size: 11px; }

.ca-box::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ca-box-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ca-label-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #000;
  font-weight: 800;
}

.ca-network-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  background: #dcfce7;
  border: 2px solid #000;
  color: #000;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.06em;
}

.ca-box-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ca-address {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #000;
  font-weight: 700;
  flex: 1;
  word-break: break-all;
  line-height: 1.4;
}

.ca-copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  color: #000;
  border: 2px solid #000;
  border-radius: 10px;
  padding: 8px 16px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 3px 3px 0 #000;
}

.ca-copy-btn svg { width: 14px; height: 14px; }

.ca-copy-btn:hover {
  background: #f59e0b;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 #000;
}

.ca-copy-btn.copied {
  background: #2ee371;
  color: #000;
}

@media (max-width: 520px) {
  .ca-address { font-size: 11px; }
  .ca-copy-btn { padding: 7px 12px; font-size: 12px; }
}

/* ROADMAP */
.roadmap-line { display: flex; flex-direction: column; gap: 0; position: relative; }
.roadmap-line::before {
  content: ''; position: absolute; left: 19px; top: 0; bottom: 0;
  width: 3px; background: repeating-linear-gradient(to bottom, var(--purple) 0, var(--purple) 8px, transparent 8px, transparent 16px);
}
.roadmap-item { display: flex; gap: 24px; align-items: flex-start; padding-bottom: 32px; }
.rm-dot {
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface-hi);
  border: 2px solid var(--outline); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px; flex-shrink: 0; z-index: 1;
}
.done-dot { background: var(--green); border-color: var(--green); color: #000; font-weight: 800; }
.rm-card { flex: 1; }
.rm-card.dim { opacity: 0.5; }
.rm-phase { font-size: 11px; color: var(--on-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.rm-card h3 { font-family: var(--font-head); font-weight: 800; font-size: 20px; margin-bottom: 6px; }
.rm-card p { font-size: 15px; color: var(--on-muted); }

/* FOOTER */
.footer { background: #000; border-top: 2px solid var(--outline); padding: 60px 0 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-logo { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--yellow); margin-bottom: 12px; }
.footer-brand p { color: var(--on-muted); font-size: 14px; max-width: 300px; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.social-btn {
  background: var(--surface); border: 2px solid var(--outline); color: var(--on-bg);
  text-decoration: none; border-radius: 100px; padding: 10px 20px;
  font-size: 14px; font-weight: 600; transition: all 0.2s;
}
.social-btn:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid var(--outline); padding-top: 24px; font-size: 13px; color: var(--on-muted); text-align: center; }

/* CONFETTI */
.confetti-piece {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 10px; height: 10px; border-radius: 2px;
  animation: confettiFall 1.5s ease-in forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* EATING ANIMATION */
.eat-anim {
  position: fixed; z-index: 999; pointer-events: none;
  font-size: 30px; animation: floatUp 1.2s ease-out forwards;
}
@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-120px) scale(2); opacity: 0; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .buy-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 80px 20px 40px; flex-direction: column; }
  .hero-steven { position: relative; right: auto; bottom: auto; margin-top: 32px; }
  .feed-arena { grid-template-columns: 1fr; }
  .token-grid { grid-template-columns: 1fr; }
  .buy-steps { flex-direction: column; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .step-arrow { transform: rotate(90deg); padding: 8px 0; }
  .token-info-cards { grid-template-columns: 1fr 1fr; }
  .lb-header, .lb-row { grid-template-columns: 52px 1fr 120px; }
}

@media (max-width: 480px) {
  .buy-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--deep);
  border-top: 1.5px solid var(--outline);
  padding: 64px 0 0;
  margin-top: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Top: logo + tagline + socials */
.footer-top {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.footer-logo-text {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  color: var(--yellow);
}

.footer-tagline {
  font-size: 14px;
  color: #000000;
  line-height: 1.6;
  flex: 1;
  min-width: 180px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1.5px solid var(--outline);
  color: #000000;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-social-btn:hover {
  background: rgba(125,34,227,0.2);
  border-color: var(--purple);
  color: var(--purple-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(125,34,227,0.25);
}

/* Divider */
.footer-divider {
  height: 1px;
  background: var(--outline);
  margin: 0 0 40px;
  opacity: 0.6;
}

/* Nav columns */
.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-heading {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 4px;
}

.footer-nav-link {
  font-size: 14px;
  color: #111111;
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
  font-weight: 600;
}

a.footer-nav-link:hover {
  color: var(--on-bg);
}

.muted-text {
  font-size: 13px;
  color: #222222;
  font-weight: 600;
}

.footer-ca-mini {
  background: rgba(125,34,227,0.1);
  border: 1px solid rgba(125,34,227,0.3);
  border-radius: 8px;
  padding: 8px 12px;
}

.footer-ca-addr {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #1a0b2e;
  word-break: break-all;
  font-weight: 700;
}

/* Bottom: disclaimer + copyright */
.footer-bottom {
  padding: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.footer-disclaimer {
  font-size: 12px;
  color: #111111;
  line-height: 1.6;
  max-width: 680px;
  font-weight: 500;
}

.footer-copy {
  font-size: 13px;
  color: #000000;
  font-family: var(--font-mono);
  font-weight: 600;
}

@media (max-width: 768px) {
  .footer-inner { padding: 0 20px; }
  .footer-top { flex-direction: column; gap: 20px; }
  .footer-nav-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .footer-nav-grid { grid-template-columns: 1fr; }
  .footer-socials { flex-wrap: wrap; }
}

/* ─── STEVEN CLICKER GAME STYLES ────────────────────────────────────────────────── */
.clicker-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  position: relative;
  height: 580px;
}

/* ── Left panel (feed-arena inside game) ── */
.clicker-container > .feed-arena {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--outline);
  border-radius: 20px;
  box-shadow: 4px 4px 0 #000;
  padding: 0;
  height: 100%;
  overflow: hidden;
  grid-template-columns: unset;
}

/* ── Scoreboard (top) ── */
.arena-scoreboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 24px 12px;
  flex-shrink: 0;
  text-align: center;
  gap: 4px;
}

.arena-score-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-muted);
}

.arena-score-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 56px; /* JS overrides this dynamically */
  color: var(--yellow);
  line-height: 1.1;
  text-shadow: 4px 4px 0 #000;
  -webkit-text-stroke: 3px #000;
  paint-order: stroke fill;
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  transition: font-size 0.3s ease;
}

.arena-score-unit {
  font-size: 0.55em;
  color: #000;
  -webkit-text-stroke: 0;
  text-shadow: none;
  opacity: 0.8;
}

.arena-sps {
  font-size: 13px;
  color: var(--on-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.arena-sps span {
  color: #000;
  font-weight: 800;
}

/* ── Center: Steven ── */
.steven-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
  /* circular glow behind steven */
  background: radial-gradient(circle at 50% 60%, rgba(125, 34, 227, 0.18) 0%, transparent 65%);
}

.steven-pedestal {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* pulsing ring */
.steven-pedestal::before {
  content: '';
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.1);
  animation: pedestal-pulse 2s ease-in-out infinite;
  pointer-events: none;
}

.steven-pedestal::after {
  content: 'TAP TO FEED';
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(0,0,0,0.4);
  font-weight: 800;
  white-space: nowrap;
  animation: pedestal-pulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pedestal-pulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scale(1.04); }
}

/* only the ::before ring uses scale without translateX */
.steven-pedestal::before {
  animation: ring-pulse 2s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50%       { opacity: 0.7;  transform: scale(1.06); }
}

.steven-pedestal:active { transform: scale(0.93); }
.steven-pedestal:active::before { opacity: 0; }

/* ── Footer bar (bottom) ── */
.arena-footer {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 20px;
  border-top: 1px solid var(--outline);
  background: var(--deep);
  border-radius: 0 0 18px 18px;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.arena-footer-stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.arena-footer-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(0,0,0,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.arena-footer-label::after {
  content: ':';
}

.arena-footer-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  color: #000;
  white-space: nowrap;
}

.arena-footer-wallet {
  color: #000;
}

.arena-footer-token {
  font-size: 11px;
  opacity: 0.75;
}

.arena-footer-divider {
  width: 1px;
  height: 20px;
  background: var(--outline);
  margin: 0 10px;
  flex-shrink: 0;
}

.arena-faucet-btn {
  margin-left: auto;
}

/* ── Right panel (shop-area) ── */
.shop-area {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--outline);
  border-radius: 20px;
  box-shadow: 4px 4px 0 #000;
  overflow: hidden;
  height: 100%;
}

/* LOCK OVERLAY */
.game-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(15, 11, 33, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border: 2px solid var(--outline);
}

.lock-card {
  max-width: 440px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px;
}

.lock-icon-svg {
  width: 64px;
  height: 64px;
  color: var(--salmon);
  animation: lock-wobble 4s ease-in-out infinite;
}

@keyframes lock-wobble {
  0%, 100% { transform: rotate(0); }
  90% { transform: rotate(0); }
  92% { transform: rotate(-8deg); }
  94% { transform: rotate(8deg); }
  96% { transform: rotate(-4deg); }
  98% { transform: rotate(4deg); }
}

.lock-card h3 {
  font-family: var(--font-head);
  font-size: 28px;
  color: #fff;
}

.lock-card p {
  color: var(--on-muted);
  font-size: 15px;
  line-height: 1.6;
}

.lock-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
}

.crew-locked-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 35px 20px;
  background: rgba(125, 34, 227, 0.05);
  border: 2px dashed rgba(125, 34, 227, 0.4);
  border-radius: 16px;
  margin: 10px 0;
  gap: 16px;
}

.crew-lock-icon {
  width: 48px;
  height: 48px;
  color: var(--purple, #7d22e3);
  animation: lock-wobble 4s ease-in-out infinite;
}

.crew-locked-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  color: #000;
  margin: 0;
}

.crew-locked-card p {
  color: rgba(0, 0, 0, 0.65);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  max-width: 320px;
}

.crew-unlock-btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  box-shadow: 0 4px 15px rgba(125, 34, 227, 0.4);
  transition: all 0.2s ease;
}

.crew-unlock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(125, 34, 227, 0.6);
}

.crew-unlock-btn:active {
  transform: translateY(0);
}

.crew-unlock-hint {
  font-family: var(--font-mono);
  font-size: 11px !important;
  color: #b45309 !important; /* Dark orange for warning */
  font-weight: 700;
  opacity: 1;
}

/* ── PURCHASED / MAXED PREMIUM ITEM ── */
.upgrade-item.premium-item.maxed {
  border-color: rgba(46, 227, 113, 0.7) !important;
  border-width: 2px !important;
  background: linear-gradient(135deg, rgba(46,227,113,0.12) 0%, rgba(125,34,227,0.10) 100%) !important;
  box-shadow: 0 0 22px rgba(46,227,113,0.22), inset 0 0 20px rgba(46,227,113,0.05) !important;
  cursor: default !important;
  pointer-events: none !important;
  position: relative;
  overflow: hidden;
}

/* Left accent stripe on owned items */
.upgrade-item.premium-item.maxed::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #2ee371, rgba(46,227,113,0.3));
  border-radius: 2px 0 0 2px;
}

/* shimmer sweep — staggered via nth-child so all look lively but unique */
.upgrade-item.premium-item.maxed::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(46,227,113,0.08) 50%, transparent 100%);
  animation: premium-shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

#premiumUpgradeList .upgrade-item.premium-item.maxed:nth-child(2)::after { animation-delay: -1.3s; }
#premiumUpgradeList .upgrade-item.premium-item.maxed:nth-child(3)::after { animation-delay: -2.6s; }
#premiumUpgradeList .upgrade-item.premium-item.maxed:nth-child(4)::after { animation-delay: -3.9s; }

@keyframes premium-shimmer {
  0%        { left: -60%; }
  55%, 100% { left: 130%; }
}

.upgrade-item.premium-item.maxed:hover {
  transform: none !important;
}

/* Unowned premium items look locked/dim */
.upgrade-item.premium-item:not(.maxed) {
  opacity: 0.82;
}
.upgrade-item.premium-item:not(.maxed):hover {
  opacity: 1;
}

/* icon glow when maxed */
.upgrade-icon-wrap.icon-maxed {
  background: rgba(46,227,113,0.22) !important;
  box-shadow: 0 0 16px rgba(46,227,113,0.45);
  filter: drop-shadow(0 0 8px rgba(46,227,113,0.6));
  font-size: 22px !important;
}

/* Owned item name gets green color */
.upgrade-item.premium-item.maxed .upgrade-name {
  color: #2ee371 !important;
}

/* ⚡ ACTIVE badge */
.premium-active-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.premium-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(46,227,113,0.18);
  border: 1.5px solid rgba(46,227,113,0.7);
  color: #2ee371;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 100px;
  box-shadow: 0 0 8px rgba(46,227,113,0.2);
}

.premium-boost-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(46,227,113,0.8);
  font-weight: 700;
}

/* ✓ checkmark badge */
.premium-owned-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(46,227,113,0.25);
  border: 2px solid #2ee371;
  color: #2ee371;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(46,227,113,0.45);
}

/* CLICKER ARENA */
.clicker-arena {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  position: relative;
  height: 100%;
  overflow: hidden;
}

.clicker-scoreboard {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.offerings-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 4px;
}

.offerings-total {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  color: var(--yellow);
  text-shadow: 4px 4px 0 #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.offerings-total .unit {
  font-size: 0.7em;
  text-shadow: none;
}

.offerings-rate {
  font-size: 14px;
  margin-top: 6px;
}

.multiplier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffd600;
  border: 2px solid #000;
  color: #000;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 100px;
  margin-top: 0;
  box-shadow: 2px 2px 0 #000;
  animation: boost-pulse 2s ease-in-out infinite alternate;
}

@keyframes boost-pulse {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

.multiplier-badge svg {
  width: 13px;
  height: 13px;
  color: #000;
}

.clicker-steven-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.clicker-steven-pedestal {
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125,34,227,0.3) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.5);
  border: 2px dashed rgba(255, 255, 255, 0.05);
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  -webkit-user-drag: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.clicker-steven-pedestal::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(125,34,227,0.1);
  animation: rotatePedestal 20s linear infinite;
  pointer-events: none;
}

@keyframes rotatePedestal {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.clicker-steven-pedestal:hover {
  transform: scale(1.03);
  background: radial-gradient(circle, rgba(125,34,227,0.4) 0%, transparent 70%);
}

.clicker-steven-pedestal:active {
  transform: scale(0.95);
}

.clicker-steven-img {
  width: 360px;
  height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  -webkit-user-drag: none !important;
  animation: clickerStevenIdle 3s ease-in-out infinite;
}

@keyframes clickerStevenIdle {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

.click-speech {
  position: absolute;
  top: -32px;
  left: 50%;
  background: var(--yellow);
  color: #000;
  border: 1.5px solid #000;
  border-radius: 8px;
  padding: 4px 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 10px;
  box-shadow: 2px 2px 0 #000;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8) translate(-50%, -50%);
  transform-origin: bottom center;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.click-speech.active {
  opacity: 1;
  transform: scale(1) translate(-50%, -50%);
}

.click-speech::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--yellow);
}

.clicker-stats-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--outline);
  padding-top: 16px;
  font-size: 12px;
}

/* TOKENOMICS BUTTON */
.btn-hero-tokenomics {
  background: var(--purple-light) !important;
  color: #000 !important;
  border: 3px solid #000 !important;
  box-shadow: 6px 6px 0 #000 !important;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  border-radius: 100px;
  padding: 14px 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-hero-tokenomics:hover {
  transform: translateY(-3px) scale(1.03) rotate(-2deg);
  filter: brightness(1.05);
  box-shadow: 0 8px 24px rgba(255, 209, 128, 0.5) !important;
}
.btn-hero-tokenomics svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* SHOPS & TABS */
.clicker-shops {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--outline);
  border-radius: 20px;
  box-shadow: 4px 4px 0 #000;
  overflow: hidden;
  height: 100%;
}

.shop-tabs {
  display: flex;
  background: var(--deep);
  border-bottom: 2px solid var(--outline);
}

.shop-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 11px 4px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12px;
  color: var(--on-muted);
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
  white-space: nowrap;
}

.shop-tab.active {
  color: #000;
  -webkit-text-stroke: 0;
  text-shadow: none;
  background: #fff;
  border-bottom: 4px solid #000;
}

.shop-tab:hover:not(.active) {
  color: #000;
  background: rgba(0,0,0,0.05);
}

.shop-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: none;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) var(--surface-hi);
}

.shop-content::-webkit-scrollbar {
  width: 8px;
}

.shop-content::-webkit-scrollbar-track {
  background: var(--surface-hi);
  border-radius: 4px;
}

.shop-content::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 4px;
}

.shop-content::-webkit-scrollbar-thumb:hover {
  background: var(--purple-light);
}

.shop-content.active {
  display: block;
}
/* Leaderboard tab overrides generic .shop-content.active — needs flex for search+list layout */
#tab-leaderboard.active {
  display: flex !important;
}

.shop-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-section-title svg {
  width: 14px;
  height: 14px;
}

/* UPGRADE ITEM */
.upgrade-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upgrade-item {
  display: flex;
  align-items: center;
  background: var(--surface-hi);
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 12px 16px;
  gap: 12px;
  transition: all 0.2s;
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.upgrade-item:hover:not(.disabled) {
  border-color: var(--purple-light);
  transform: translateX(4px);
}

.upgrade-item.disabled {
  opacity: 0.5;
}

.upgrade-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(125,34,227,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.upgrade-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.upgrade-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  color: #000;
}

.upgrade-effect {
  font-size: 11px;
  color: #059669;
  font-weight: 700;
}

.upgrade-cost-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.upgrade-cost {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: #b45309;
}

.upgrade-owned {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #9333ea;
  background: rgba(147, 51, 234, 0.15);
  padding: 4px 10px;
  border-radius: 100px;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.upgrade-buy-btn {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-head);
}

.upgrade-buy-btn:hover:not(:disabled) {
  background: var(--yellow);
  color: #000;
}

.upgrade-buy-btn:disabled {
  background: var(--outline);
  color: rgba(255,255,255,0.3);
  cursor: not-allowed;
}

/* PREMIUM SHOP SPECIALS */
.premium-intro {
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  font-size: 13px;
}

.premium-intro strong {
  display: block;
  color: var(--salmon);
  margin-bottom: 4px;
  font-size: 14px;
}

.premium-intro p {
  color: var(--on-muted);
  line-height: 1.5;
}

.upgrade-item.premium-item {
  border-color: rgba(255,107,107,0.3);
}

.upgrade-item.premium-item .upgrade-icon-wrap {
  background: rgba(255, 107, 107, 0.15);
  color: var(--salmon);
}

.upgrade-item.premium-item .upgrade-cost {
  color: var(--salmon);
}

.upgrade-item.premium-item .upgrade-buy-btn {
  background: var(--salmon);
}

.upgrade-item.premium-item .upgrade-buy-btn:hover:not(:disabled) {
  background: #fff;
  color: #000;
}

/* FAUCET CONSOLE BOX */
.console-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--outline);
  border-radius: 16px;
  padding: 20px 24px;
}

.console-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.console-icon {
  width: 44px;
  height: 44px;
  color: var(--yellow);
  flex-shrink: 0;
}

.console-text-col {
  flex: 1;
}

.console-text-col strong {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  margin-bottom: 2px;
}

.console-text-col p {
  font-size: 13px;
  color: var(--on-muted);
}

/* FLOATING DYNAMIC CLICK NUMBERS */
.floating-click-text {
  position: fixed;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  color: var(--yellow);
  text-shadow: 2px 2px 0 #000;
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
  pointer-events: none;
  z-index: 1000;
  white-space: nowrap;
  animation: floatClickUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes floatClickUp {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -100px) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -150px) scale(0.8);
    opacity: 0;
  }
}

/* RESPONSIVE FOR CLICKER */
@media (max-width: 900px) {
  .clicker-container {
    grid-template-columns: 1fr;
    height: auto;
    gap: 16px;
  }

  /* old classes */
  .clicker-shops {
    height: 460px;
    min-height: unset;
  }
  .clicker-arena {
    height: auto;
    min-height: 400px;
    padding: 20px 16px;
  }
  .clicker-steven-pedestal {
    width: 280px !important;
    height: 280px !important;
  }
  .clicker-steven-img {
    width: 220px !important;
    height: 220px !important;
  }

  /* new classes */
  .clicker-container > .feed-arena {
    height: auto;
    min-height: 380px;
  }
  .shop-area {
    height: 500px;
  }
  .arena-scoreboard {
    padding: 14px 16px 10px;
  }
  .arena-score-value {
    font-size: 40px;
  }
  .steven-arena-img {
    width: 160px !important;
    height: 160px !important;
  }
  .arena-footer {
    padding: 8px 14px;
  }
}

/* ── MOBILE GAME OPTIMIZATIONS (<=480px) ── */
@media (max-width: 480px) {
  /* Prevent any horizontal scrolling */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Kill horizontal swipe-scroll in the game panel */
  .feed-section {
    touch-action: pan-y;
  }

  /* old classes */
  .clicker-arena {
    min-height: 340px;
    padding: 14px 10px;
  }
  .clicker-steven-pedestal {
    width: 200px !important;
    height: 200px !important;
  }
  .clicker-steven-img {
    width: 150px !important;
    height: 150px !important;
  }

  /* ── Arena layout: taller clicker zone on mobile ── */
  .clicker-container {
    gap: 12px;
  }
  .clicker-container > .feed-arena {
    min-height: 380px;  /* taller on mobile so Steven is more visible */
  }

  /* ── Score header: compact but readable ── */
  .arena-scoreboard {
    padding: 10px 12px 6px;
    gap: 2px;
  }
  .arena-score-value {
    font-size: 30px;
    -webkit-text-stroke: 2px #000;
  }
  .arena-sps {
    font-size: 10px;
  }

  /* ── BIGGER Steven image on mobile ── */
  .steven-arena-img {
    width: 160px !important;
    height: 160px !important;
  }
  /* Bigger pulse ring to match */
  .steven-pedestal::before {
    width: 185px;
    height: 185px;
  }

  /* ── Footer bar: stays compact ── */
  .arena-footer {
    padding: 8px 10px;
    gap: 4px;
  }
  .arena-footer-label,
  .arena-footer-value {
    font-size: 11px;
  }
  .arena-footer-divider {
    height: 16px;
    margin: 0 6px;
  }

  /* ── Shop / Upgrade panel ── */
  .shop-area {
    height: auto;
    min-height: 440px;
    max-height: 480px;
  }

  /* ── Tab bar: 5 tabs need smaller font so they all fit ── */
  .shop-tab {
    font-size: 10px;
    padding: 10px 2px;
    letter-spacing: -0.01em;
  }

  /* ── Upgrade items: fix text overflow ── */
  .upgrade-item {
    padding: 10px 10px;
    gap: 8px;
    align-items: flex-start;  /* top-align so long text doesn't push icon */
  }
  .upgrade-icon-wrap {
    width: 38px;
    height: 38px;
    min-width: 38px;    /* prevent shrinking */
    font-size: 20px;
    margin-top: 2px;
  }
  .upgrade-details {
    min-width: 0;       /* allow flex child to shrink */
    flex: 1;
    overflow: hidden;
  }
  .upgrade-name {
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;  /* allow wrapping */
    word-break: break-word;
  }
  .upgrade-effect {
    font-size: 10px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
  }
  .upgrade-cost-row {
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 3px;
  }
  .upgrade-cost {
    font-size: 10px;
  }
  .upgrade-owned {
    font-size: 10px;
    padding: 3px 7px;
    /* move below rather than to the far right on small screens */
    margin-left: 0;
  }
  .upgrade-buy-btn {
    font-size: 11px;
    padding: 5px 10px;
    white-space: nowrap;
  }

  /* ── Synergy banners: wrap text properly ── */
  .synergy-banner {
    font-size: 11px;
    word-break: break-word;
  }

  /* ── Premium header: compact ── */
  .premium-header h3 {
    font-size: 14px;
  }
  .premium-header p {
    font-size: 11px;
  }

  /* ── Leaderboard: narrower rank column ── */
  .lb-header, .lb-row {
    grid-template-columns: 44px 1fr 90px;
    padding: 10px 10px;
    font-size: 12px;
  }
  .lb-name {
    font-size: 12px;
  }
  .lb-wallet {
    display: none; /* hide wallet addr on tiny screens */
  }
  .lb-fish-count {
    font-size: 11px;
  }

  /* ── Prestige button ── */
  .prestige-btn {
    padding: 8px 12px;
    font-size: 13px;
    gap: 6px;
  }
  .prestige-btn-sub {
    font-size: 9px;
  }

  /* ── Lock overlay ── */
  .game-lock-overlay {
    padding: 16px;
  }
  .lock-card {
    padding: 24px 16px !important;
    gap: 16px !important;
  }
  .lock-card h3 {
    font-size: 20px !important;
  }
  .lock-icon-svg {
    width: 48px !important;
    height: 48px !important;
  }
}

/* DISABLED UPGRADE STATE */
.upgrade-item.disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(0.5);
}

/* PHANTOM MOCK MODAL STYLING */
.phantom-mock-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease-out;
}

.phantom-mock-window {
  width: 380px;
  background: #18132b;
  border: 2px solid #512da8;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(81, 45, 168, 0.4), 4px 4px 0 #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #fff;
  transform: scale(0.95);
  animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
  to { transform: scale(1); }
}

.phantom-mock-header {
  background: #231b3d;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.phantom-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  color: #ab9ff2;
}

.phantom-logo-img {
  width: 24px;
  height: 24px;
}

.phantom-close {
  background: none;
  border: none;
  color: var(--on-muted);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}

.phantom-close:hover {
  color: #fff;
}

.phantom-mock-body {
  padding: 24px;
}

.phantom-connecting {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  gap: 16px;
  text-align: center;
}

.phantom-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: #7d22e3;
  border-radius: 50%;
  animation: phantomSpin 1s linear infinite;
}

@keyframes phantomSpin {
  to { transform: rotate(360deg); }
}

.phantom-connecting h3 {
  font-family: var(--font-head);
  font-size: 20px;
  color: #fff;
}

.phantom-connecting p {
  color: var(--on-muted);
  font-size: 14px;
}

.phantom-request {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.dapp-connection-graphic {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 8px;
}

.dapp-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--surface-hi);
  border: 2px solid var(--outline);
  padding: 4px;
}

.connection-line {
  color: var(--purple-light);
  animation: pulse-glow 1.5s infinite alternate;
}

.phantom-logo-large {
  width: 52px;
  height: 52px;
}

.phantom-request h3 {
  font-family: var(--font-head);
  font-size: 22px;
  color: #fff;
}

.dapp-url {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--purple-light);
  background: rgba(125, 34, 227, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: -12px;
}

.phantom-permissions-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
}

.permissions-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.phantom-permissions-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.phantom-permissions-card li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phantom-permissions-card li svg {
  width: 16px;
  height: 16px;
  color: #2DE371;
}

.phantom-actions {
  display: flex;
  width: 100%;
  gap: 12px;
  margin-top: 10px;
}

.phantom-btn-reject {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--outline);
  color: #fff;
  padding: 12px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.phantom-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
}

.phantom-btn-approve {
  flex: 1;
  background: #512da8;
  border: none;
  color: #fff;
  padding: 12px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(81, 45, 168, 0.4);
}

.phantom-btn-approve:hover {
  background: #673ab7;
  transform: translateY(-2px);
}

/* FLYING SEAGULL SWOOPING ANIMATION */
.flying-seagull {
  position: fixed;
  width: 44px;
  height: 24px;
  z-index: 10005;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}

.seagull-body {
  position: relative;
  width: 22px;
  height: 12px;
  background: #ffffff;
  border-radius: 60% 60% 50% 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.seagull-head {
  position: absolute;
  right: -5px;
  top: -4px;
  width: 11px;
  height: 11px;
  background: #ffffff;
  border-radius: 50%;
}

.seagull-beak {
  position: absolute;
  right: -5px;
  top: 3px;
  width: 0;
  height: 0;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-left: 6px solid #ffab00;
}

.seagull-wing {
  position: absolute;
  top: -8px;
  width: 18px;
  height: 10px;
  background: #e2e8f0;
  border-radius: 50% 50% 0 0;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

.seagull-wing.wing-left {
  left: -12px;
  transform-origin: bottom right;
  animation: flapLeft 0.12s ease-in-out infinite alternate;
}

.seagull-wing.wing-right {
  right: -12px;
  transform-origin: bottom left;
  animation: flapRight 0.12s ease-in-out infinite alternate;
}

@keyframes flapLeft {
  0% { transform: rotate(-15deg) translateY(0); }
  100% { transform: rotate(45deg) translateY(-2px); }
}

@keyframes flapRight {
  0% { transform: rotate(15deg) translateY(0); }
  100% { transform: rotate(-45deg) translateY(-2px); }
}

/* PASSIVE MARINE & FEED PARTICLES */
.flying-feed-particle {
  position: fixed;
  z-index: 10006;
  pointer-events: none;
  font-size: 28px;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s ease-in;
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

/* MYSTERY/LOCKED UPGRADES FOR MANUAL AND FISHING CREW */
.upgrade-item.mystery-item {
  background: rgba(12, 10, 24, 0.45) !important;
  border: 1px dashed rgba(139, 92, 246, 0.15) !important;
  opacity: 0.5;
  cursor: help !important;
  transform: none !important;
  box-shadow: none !important;
  transition: all 0.3s ease;
}

.upgrade-item.mystery-item:hover {
  opacity: 0.75;
  border-color: rgba(139, 92, 246, 0.4) !important;
  background: rgba(12, 10, 24, 0.6) !important;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.1) !important;
}

.upgrade-item.mystery-item .upgrade-icon-wrap {
  background: rgba(30, 27, 46, 0.8) !important;
  border: 1px solid rgba(139, 92, 246, 0.1) !important;
  color: #6d28d9 !important;
  filter: grayscale(0.5);
  font-size: 1.1rem;
}

.upgrade-item.mystery-item .upgrade-name {
  color: #94a3b8 !important;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.upgrade-item.mystery-item .upgrade-effect {
  color: #475569 !important;
}

.upgrade-item.mystery-item .upgrade-cost-row .upgrade-cost {
  color: #334155 !important;
  font-family: var(--font-mono);
}

.upgrade-item.mystery-item .upgrade-owned {
  background: rgba(15, 23, 42, 0.6) !important;
  color: #475569 !important;
  border-color: rgba(139, 92, 246, 0.1) !important;
}

/* ─── ACHIEVEMENTS ─────────────────────────────────────────────────────────── */
.achievements-header {
  margin-bottom: 16px;
}
.ach-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.achievements-header h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: #000;
  margin: 0;
}
.achievements-header p {
  font-size: 13px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}
.ach-count-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  background: var(--yellow);
  border: 2px solid #000;
  color: #000;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 2px 2px 0 #000;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.achievement-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 10px 12px;
  border-radius: 14px;
  border: 3px solid #000;
  background: #fff;
  box-shadow: 4px 4px 0 #000;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  gap: 6px;
  min-height: 110px;
}

.achievement-badge.unlocked {
  border-color: #000;
  background: color-mix(in srgb, var(--ach-color, var(--purple)) 20%, #fff);
  box-shadow: 4px 4px 0 #000;
}

.achievement-badge.unlocked:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 #000;
}

.achievement-badge.locked {
  opacity: 0.45;
  filter: grayscale(0.6);
}

/* Visible-locked: goal is shown but not yet earned */
.achievement-badge.visible-locked {
  opacity: 0.55;
  filter: grayscale(0.5);
  border-color: rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  cursor: default;
}
.achievement-badge.visible-locked .ach-name {
  color: var(--on-muted);
  opacity: 0.75;
}
.achievement-badge.visible-locked .ach-desc {
  opacity: 0.65;
}
.achievement-badge.visible-locked:hover {
  opacity: 0.7;
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.14);
}

/* Secret-locked: hidden until earned */
.achievement-badge.secret-locked {
  opacity: 0.35;
  filter: grayscale(1);
  border-color: rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.15);
  cursor: default;
}
.achievement-badge.secret-locked .ach-name,
.achievement-badge.secret-locked .ach-desc {
  color: var(--on-muted);
  opacity: 0.5;
  font-style: italic;
}
.achievement-badge.secret-locked:hover {
  opacity: 0.45;
  transform: none;
}

.ach-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(125,34,227,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.achievement-badge.unlocked .ach-icon-wrap {
  background: color-mix(in srgb, var(--ach-color, var(--purple)) 18%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--ach-color, var(--purple)) 40%, transparent);
}

.ach-glow-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--ach-color, var(--purple));
  opacity: 0.5;
  animation: ach-ring-pulse 2.5s ease-in-out infinite;
}

@keyframes ach-ring-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.1); }
}

.ach-icon {
  font-size: 22px;
  line-height: 1;
}

.ach-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12px;
  color: #000;
  line-height: 1.2;
}

.ach-desc {
  font-size: 10px;
  color: #1f2937;
  font-weight: 700;
  line-height: 1.4;
  max-width: 120px;
}

.ach-check {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 10px;
  color: var(--ach-color, var(--green));
  font-weight: 900;
  opacity: 0.8;
}

/* ─── ACHIEVEMENT TOAST ──────────────────────────────────────────────────── */
.achievement-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 2px solid var(--yellow);
  border-radius: 16px;
  padding: 12px 20px 12px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(223,237,0,0.15);
  z-index: 99999;
  pointer-events: none;
  min-width: 240px;
}
.achievement-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.ach-toast-icon {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(223,237,0,0.5));
}
.ach-toast-body {
  display: flex;
  flex-direction: column;
}
.ach-toast-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow);
  font-weight: 700;
}
.ach-toast-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

/* ─── PRESTIGE BUTTON ─────────────────────────────────────────────────────── */
.prestige-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 2px solid #000;
  background: var(--purple, #7d22e3);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 800;
  box-shadow: 4px 4px 0 #000;
  animation: prestige-pulse 2s ease-in-out infinite;
  transition: transform 0.2s, box-shadow 0.2s;
}
.prestige-btn:hover {
  transform: scale(1.04);
  box-shadow: 6px 6px 0 #000;
}
.prestige-btn-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 6px rgba(216,186,255,0.8));
  animation: spin-slow 6s linear infinite;
}
.prestige-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.prestige-btn-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--purple-light);
  letter-spacing: 0.05em;
}
.prestige-btn-sub {
  font-size: 10px;
  color: var(--on-muted);
  font-family: var(--font-mono);
  font-weight: 400;
}

@keyframes prestige-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(125,34,227,0.3), 0 0 30px rgba(125,34,227,0.1); }
  50%       { box-shadow: 0 0 28px rgba(125,34,227,0.6), 0 0 50px rgba(125,34,227,0.25), 0 0 6px rgba(216,186,255,0.3) inset; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── PRESTIGE LEVEL BADGE ───────────────────────────────────────────────── */
.prestige-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--purple, #7d22e3);
  border: 2px solid #000;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 100px;
  margin-top: 0;
  letter-spacing: 0.04em;
  box-shadow: 2px 2px 0 #000;
}

.arena-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

/* ─── THIEF EVENT ──────────────────────────────────────────────────────────── */
.thief-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 5, 25, 0.75);
  backdrop-filter: blur(6px);
  animation: thief-fade-in 0.3s ease;
}
.thief-overlay.thief-exit {
  animation: thief-fade-out 0.4s ease forwards;
}
@keyframes thief-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes thief-fade-out { from { opacity: 1; } to { opacity: 0; } }

.thief-card {
  background: var(--surface);
  border: 3px solid #FF6B6B;
  border-radius: 24px;
  box-shadow: 0 0 60px rgba(255,107,107,0.4), 4px 4px 0 #000;
  padding: 36px 44px 32px;
  text-align: center;
  max-width: 380px;
  width: 90vw;
  animation: thief-shake 0.6s ease;
}
@keyframes thief-shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-8px) rotate(-2deg); }
  40%     { transform: translateX(8px)  rotate(2deg); }
  60%     { transform: translateX(-6px) rotate(-1deg); }
  80%     { transform: translateX(6px)  rotate(1deg); }
}

.thief-bird {
  font-size: 72px;
  display: block;
  margin-bottom: 12px;
  transition: transform 0.12s ease;
  cursor: pointer;
  user-select: none;
  filter: drop-shadow(0 0 16px rgba(255,107,107,0.6));
  animation: thief-hover 1.5s ease-in-out infinite;
}
@keyframes thief-hover {
  0%,100% { transform: translateY(0) rotate(-4deg); }
  50%     { transform: translateY(-10px) rotate(4deg); }
}

.thief-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(255,107,107,0.5);
}
.thief-sub {
  color: var(--on-muted);
  font-size: 13px;
  margin-bottom: 22px;
  line-height: 1.5;
}
.thief-progress-wrap { margin-bottom: 14px; }
.thief-progress-bar {
  height: 12px;
  background: var(--surface-hi);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--outline);
  margin-bottom: 6px;
}
.thief-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6B6B, #dfed00);
  border-radius: 6px;
  transition: width 0.1s ease;
}
.thief-clicks-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-muted);
}
.thief-countdown {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  color: #000;
  margin-bottom: 20px;
  transition: color 0.3s;
}
.thief-countdown.thief-urgent { color: #ef4444; animation: thief-pulse 0.5s ease infinite; }
@keyframes thief-pulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

.thief-click-btn {
  background: #ef4444;
  color: #fff;
  border: 3px solid #000;
  border-radius: 14px;
  padding: 14px 32px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
  letter-spacing: 0.04em;
  transition: transform 0.08s, box-shadow 0.08s;
  width: 100%;
  user-select: none;
}
.thief-click-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #8B0000, 1px 1px 0 #000;
}

/* ─── FRIES FRENZY EVENT ───────────────────────────────────────────────────── */
.falling-fries {
  position: fixed;
  top: -80px;
  font-size: 64px;
  cursor: pointer;
  z-index: 8000;
  user-select: none;
  animation: fries-fall 5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
  transform-origin: center;
}
@keyframes fries-fall {
  0%   { top: -80px; transform: rotate(-15deg) scale(0.8); }
  20%  { transform: rotate(10deg) scale(1.1); }
  50%  { transform: rotate(-5deg) scale(1); }
  100% { top: 45vh; transform: rotate(5deg) scale(1); }
}
.falling-fries:hover {
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 1));
  transform: scale(1.1) !important;
}
.falling-fries.fries-caught {
  animation: fries-catch 0.3s ease forwards;
}
@keyframes fries-catch {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
.falling-fries.fries-miss {
  animation: fries-miss 0.5s ease forwards;
}
@keyframes fries-miss {
  0%   { opacity: 1; }
  100% { top: 110vh; opacity: 0; }
}

/* Frenzy arena glow effect */
.frenzy-arena {
  box-shadow: 0 0 0 3px #dfed00, 0 0 40px rgba(223,237,0,0.35) !important;
  animation: frenzy-border-pulse 0.8s ease-in-out infinite !important;
}
@keyframes frenzy-border-pulse {
  0%,100% { box-shadow: 0 0 0 3px #dfed00, 0 0 40px rgba(223,237,0,0.35); }
  50%     { box-shadow: 0 0 0 4px #dfed00, 0 0 60px rgba(223,237,0,0.6); }
}

/* Frenzy HUD badge */
.frenzy-hud {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 8500;
  background: linear-gradient(135deg, #2a2000, #1a1500);
  border: 3px solid #dfed00;
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 30px rgba(223,237,0,0.4), 4px 4px 0 #000;
  animation: frenzy-hud-in 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.frenzy-hud.frenzy-hud-exit {
  animation: frenzy-hud-out 0.4s ease forwards;
}
@keyframes frenzy-hud-in  { from { transform: translateX(120%) scale(0.8); opacity: 0; } to { transform: translateX(0) scale(1); opacity: 1; } }
@keyframes frenzy-hud-out { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }

.frenzy-hud-icon { font-size: 32px; animation: frenzy-spin 1s linear infinite; }
@keyframes frenzy-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.frenzy-hud-body { display: flex; flex-direction: column; }
.frenzy-hud-label {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  color: #dfed00;
  letter-spacing: 0.06em;
}
.frenzy-hud-timer {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

/* ─── THIEF EVENT ──────────────────────────────────────────────────────────── */
.thief-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 5, 25, 0.75);
  backdrop-filter: blur(6px);
  animation: thief-fade-in 0.3s ease;
}
.thief-overlay.thief-exit {
  animation: thief-fade-out 0.4s ease forwards;
}
@keyframes thief-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes thief-fade-out { from { opacity: 1; } to { opacity: 0; } }

.thief-card {
  background: var(--surface);
  border: 3px solid #FF6B6B;
  border-radius: 24px;
  box-shadow: 0 0 60px rgba(255,107,107,0.4), 4px 4px 0 #000;
  padding: 36px 44px 32px;
  text-align: center;
  max-width: 380px;
  width: 90vw;
  animation: thief-shake 0.6s ease;
}
@keyframes thief-shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-8px) rotate(-2deg); }
  40%     { transform: translateX(8px)  rotate(2deg); }
  60%     { transform: translateX(-6px) rotate(-1deg); }
  80%     { transform: translateX(6px)  rotate(1deg); }
}

.thief-bird {
  font-size: 72px;
  display: block;
  margin-bottom: 12px;
  transition: transform 0.12s ease;
  cursor: pointer;
  user-select: none;
  filter: drop-shadow(0 0 16px rgba(255,107,107,0.6));
  animation: thief-hover 1.5s ease-in-out infinite;
}
@keyframes thief-hover {
  0%,100% { transform: translateY(0) rotate(-4deg); }
  50%     { transform: translateY(-10px) rotate(4deg); }
}

.thief-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(255,107,107,0.5);
}
.thief-sub {
  color: var(--on-muted);
  font-size: 13px;
  margin-bottom: 22px;
  line-height: 1.5;
}
.thief-progress-wrap { margin-bottom: 14px; }
.thief-progress-bar {
  height: 12px;
  background: var(--surface-hi);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--outline);
  margin-bottom: 6px;
}
.thief-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6B6B, #dfed00);
  border-radius: 6px;
  transition: width 0.1s ease;
}
.thief-clicks-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-muted);
}
.thief-countdown {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  color: #000;
  margin-bottom: 20px;
  transition: color 0.3s;
}
.thief-countdown.thief-urgent { color: #ef4444; animation: thief-pulse 0.5s ease infinite; }
@keyframes thief-pulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

.thief-click-btn {
  background: #ef4444;
  color: #fff;
  border: 3px solid #000;
  border-radius: 14px;
  padding: 14px 32px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
  letter-spacing: 0.04em;
  transition: transform 0.08s, box-shadow 0.08s;
  width: 100%;
  user-select: none;
}
.thief-click-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #8B0000, 1px 1px 0 #000;
}

/* ─── FRIES FRENZY EVENT ───────────────────────────────────────────────────── */
.falling-fries {
  position: fixed;
  top: -80px;
  font-size: 64px;
  cursor: pointer;
  z-index: 8000;
  user-select: none;
  animation: fries-fall 5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}
@keyframes fries-fall {
  0%   { top: -80px; transform: rotate(-15deg) scale(0.8); }
  20%  { transform: rotate(10deg) scale(1.1); }
  50%  { transform: rotate(-5deg) scale(1); }
  100% { top: 45vh; transform: rotate(5deg) scale(1); }
}
.falling-fries.fries-caught {
  animation: fries-catch 0.3s ease forwards;
}
@keyframes fries-catch {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
.falling-fries.fries-miss {
  animation: fries-miss 0.5s ease forwards;
}
@keyframes fries-miss {
  0%   { opacity: 1; }
  100% { top: 110vh; opacity: 0; }
}

/* Frenzy arena glow */
.frenzy-arena {
  box-shadow: 0 0 0 3px #dfed00, 0 0 40px rgba(223,237,0,0.35) !important;
  animation: frenzy-border-pulse 0.8s ease-in-out infinite !important;
}
@keyframes frenzy-border-pulse {
  0%,100% { box-shadow: 0 0 0 3px #dfed00, 0 0 40px rgba(223,237,0,0.35); }
  50%     { box-shadow: 0 0 0 4px #dfed00, 0 0 60px rgba(223,237,0,0.6); }
}

/* Frenzy HUD badge */
.frenzy-hud {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 8500;
  background: linear-gradient(135deg, #2a2000, #1a1500);
  border: 3px solid #dfed00;
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 30px rgba(223,237,0,0.4), 4px 4px 0 #000;
  animation: frenzy-hud-in 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.frenzy-hud.frenzy-hud-exit {
  animation: frenzy-hud-out 0.4s ease forwards;
}
@keyframes frenzy-hud-in  { from { transform: translateX(120%) scale(0.8); opacity:0; } to { transform: translateX(0) scale(1); opacity:1; } }
@keyframes frenzy-hud-out { from { transform: translateX(0); opacity:1; } to { transform: translateX(120%); opacity:0; } }

.frenzy-hud-icon { font-size: 32px; animation: frenzy-spin 1s linear infinite; }
@keyframes frenzy-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.frenzy-hud-body { display: flex; flex-direction: column; }
.frenzy-hud-label {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  color: #dfed00;
  letter-spacing: 0.06em;
}
.frenzy-hud-timer {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

/* ─── SYNERGY SYSTEM ─────────────────────────────────────────────────────── */
.synergy-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(125, 34, 227, 0.1);
  border: 1.5px solid rgba(125, 34, 227, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--on-muted);
  line-height: 1.5;
}
.synergy-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.synergy-banner-text strong { color: var(--purple-light); }
.synergy-banner-text .syn-pill {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 2px;
  font-size: 10px;
  padding: 1px 6px;
}

.synergy-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.syn-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 0;
  white-space: nowrap;
  cursor: default;
  transition: opacity 0.15s;
  opacity: 0.8;
}

/* Incoming: synergy currently active — bold dark green */
.syn-pill.syn-active {
  color: #15803d;
  font-weight: 700;
}

/* Incoming: synergy not yet unlocked — dark charcoal gray */
.syn-pill.syn-pending {
  color: #555555;
  font-weight: 600;
}

/* Outgoing: this upgrade boosts another — deep purple */
.syn-pill.syn-gives {
  color: #6b21a8;
  font-weight: 600;
}

/* Outgoing: bonus already being delivered — bold green */
.syn-pill.syn-gives.syn-gives-on {
  color: #15803d;
  font-weight: 700;
}

/* Active multiplier badge next to upgrade name */
.syn-active-mult {
  display: inline-block;
  color: #2DE371;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 0 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ─── PRESTIGE VISUAL PROGRESSION ───────────────────────────────────────── */

/* The bling overlay sits on top of Steven, pointer-events off so clicks pass through */
.steven-bling-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

/* Individual accessories — base positioning */
.bling-hat {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 44px;
  animation: bling-float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(255,215,0,0.6));
}
.bling-hat.crown-hat {
  font-size: 48px;
  filter: drop-shadow(0 0 16px rgba(255,215,0,0.9));
  animation: bling-float 2.5s ease-in-out infinite, crown-glow 2s ease-in-out infinite;
}
.bling-hat.halo-hat {
  top: -28px;
  font-size: 52px;
  animation: bling-float 2s ease-in-out infinite, halo-spin 6s linear infinite;
  filter: drop-shadow(0 0 20px rgba(255,215,0,1));
}
.bling-scepter {
  position: absolute;
  bottom: 5%;
  right: 0%;
  font-size: 36px;
  animation: bling-float 2.8s ease-in-out infinite 0.4s;
  filter: drop-shadow(0 0 12px rgba(125,34,227,0.8));
}
.bling-glasses {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  animation: bling-float 3.2s ease-in-out infinite 0.3s;
}
.bling-chain {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  animation: bling-float 3.8s ease-in-out infinite 0.6s;
  filter: drop-shadow(0 2px 6px rgba(255,215,0,0.5));
}
.bling-diamond {
  position: absolute;
  top: 8%;
  right: 2%;
  font-size: 26px;
  animation: bling-float 2.2s ease-in-out infinite 0.2s, diamond-sparkle 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(76,214,255,0.8));
}
.bling-monocle {
  position: absolute;
  bottom: 12%;
  right: 4%;
  font-size: 22px;
  animation: bling-float 4s ease-in-out infinite 0.8s;
}

/* Sparkles scattered around Steven */
.bling-spark {
  position: absolute;
  font-size: 18px;
  animation: bling-twinkle 1.8s ease-in-out infinite;
}
.bling-spark.bs1 { top: 8%;  left: 2%;   animation-delay: 0s;    font-size: 16px; }
.bling-spark.bs2 { top: 15%; right: 4%;  animation-delay: 0.6s;  font-size: 14px; }
.bling-spark.bs3 { bottom: 25%; left: 6%; animation-delay: 1.1s;  font-size: 16px; }
.bling-spark.bs4 { top: 40%;  right: 0%; animation-delay: 0.3s;  font-size: 20px; }
.bling-spark.bs5 { bottom: 15%; right: 8%; animation-delay: 0.9s; font-size: 18px; }

/* LEGEND text below Steven */
.bling-legend {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: #dfed00;
  text-shadow: 0 0 12px rgba(223,237,0,0.9), 0 0 24px rgba(223,237,0,0.5);
  animation: legend-pulse 1.2s ease-in-out infinite;
}

/* ── Keyframes ── */
@keyframes bling-float {
  0%,100% { transform: translateX(-50%) translateY(0);   }
  50%      { transform: translateX(-50%) translateY(-8px); }
}
@keyframes bling-twinkle {
  0%,100% { opacity: 1;   transform: scale(1);    }
  50%      { opacity: 0.3; transform: scale(0.6);  }
}
@keyframes diamond-sparkle {
  0%,100% { filter: drop-shadow(0 0 8px rgba(76,214,255,0.6));  }
  50%      { filter: drop-shadow(0 0 20px rgba(76,214,255,1));   }
}
@keyframes crown-glow {
  0%,100% { filter: drop-shadow(0 0 12px rgba(255,215,0,0.8)); }
  50%      { filter: drop-shadow(0 0 28px rgba(255,215,0,1));   }
}
@keyframes halo-spin {
  from { transform: translateX(-50%) rotate(0deg);   }
  to   { transform: translateX(-50%) rotate(360deg); }
}
@keyframes legend-pulse {
  0%,100% { opacity: 1;   letter-spacing: 0.25em; }
  50%      { opacity: 0.7; letter-spacing: 0.30em; }
}

/* ── Arena stage backgrounds per prestige tier ── */
/* Tier 1: subtle gold tint */
.steven-stage.prestige-tier-1 {
  background: radial-gradient(circle at 50% 65%, rgba(255,215,0,0.12) 0%, transparent 60%);
}
/* Tier 2: gold ring visible */
.steven-stage.prestige-tier-2 {
  background: radial-gradient(circle at 50% 65%, rgba(255,215,0,0.18) 0%, transparent 60%);
}
/* Tier 3: richer gold glow */
.steven-stage.prestige-tier-3 {
  background: radial-gradient(circle at 50% 65%, rgba(255,215,0,0.22) 0%, transparent 55%);
}
/* Tier 4: golden arena */
.steven-stage.prestige-tier-4 {
  background: radial-gradient(circle at 50% 65%, rgba(255,215,0,0.28) 0%, transparent 55%);
}
/* Tier 5: beach vibes — teal horizon + gold sun */
.steven-stage.prestige-tier-5 {
  background:
    radial-gradient(circle at 50% 30%, rgba(255,215,0,0.25) 0%, transparent 40%),
    radial-gradient(circle at 50% 95%, rgba(0,180,216,0.15) 0%, transparent 50%);
}
/* Tier 6: golden throne room */
.steven-stage.prestige-tier-6 {
  background:
    radial-gradient(circle at 50% 30%, rgba(255,215,0,0.35) 0%, transparent 45%),
    radial-gradient(circle at 50% 95%, rgba(76,214,255,0.15) 0%, transparent 50%);
}
/* Tier 7: Monaco luxury — purple-gold */
.steven-stage.prestige-tier-7 {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,215,0,0.15) 0%, transparent 40%),
    radial-gradient(circle at 70% 20%, rgba(125,34,227,0.2)  0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(76,214,255,0.15) 0%, transparent 50%);
}
/* Tier 8: Cosmic — multi-color */
.steven-stage.prestige-tier-8 {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,107,107,0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(125,34,227,0.18) 0%, transparent 40%),
    radial-gradient(circle at 50% 55%, rgba(255,215,0,0.22) 0%, transparent 45%),
    radial-gradient(circle at 50% 95%, rgba(76,214,255,0.18) 0%, transparent 50%);
}
/* Tier 9–10: Full space/galaxy */
.steven-stage.prestige-tier-9,
.steven-stage.prestige-tier-10 {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,107,107,0.15) 0%, transparent 35%),
    radial-gradient(circle at 80% 15%, rgba(125,34,227,0.22) 0%, transparent 35%),
    radial-gradient(circle at 50% 55%, rgba(255,215,0,0.28) 0%, transparent 40%),
    radial-gradient(circle at 50% 95%, rgba(76,214,255,0.22) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(45,227,113,0.10) 0%, transparent 35%);
  animation: cosmic-shift 8s ease-in-out infinite;
}
@keyframes cosmic-shift {
  0%,100% { filter: hue-rotate(0deg);   }
  50%      { filter: hue-rotate(30deg);  }
}

/* Prestige ring color progression on the pulsing pedestal ring */
.prestige-tier-1 .steven-pedestal::before,
.prestige-tier-2 .steven-pedestal::before { border-color: rgba(255,215,0,0.5); }
.prestige-tier-3 .steven-pedestal::before,
.prestige-tier-4 .steven-pedestal::before { border-color: rgba(255,215,0,0.7); box-shadow: 0 0 20px rgba(255,215,0,0.3); }
.prestige-tier-5 .steven-pedestal::before,
.prestige-tier-6 .steven-pedestal::before { border-color: rgba(255,215,0,0.9); box-shadow: 0 0 30px rgba(255,215,0,0.5); border-width: 3px; }
.prestige-tier-7 .steven-pedestal::before,
.prestige-tier-8 .steven-pedestal::before { border-color: rgba(216,186,255,0.9); box-shadow: 0 0 40px rgba(125,34,227,0.6); border-width: 3px; }
.prestige-tier-9 .steven-pedestal::before,
.prestige-tier-10 .steven-pedestal::before {
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 2px #dfed00, 0 0 60px rgba(223,237,0,0.6);
  animation: pedestal-pulse 1.5s ease-in-out infinite, cosmic-ring 4s linear infinite;
}
@keyframes cosmic-ring {
  0%   { box-shadow: 0 0 0 2px #dfed00, 0 0 60px rgba(223,237,0,0.6); }
  33%  { box-shadow: 0 0 0 2px #4cd6ff, 0 0 60px rgba(76,214,255,0.6); }
  66%  { box-shadow: 0 0 0 2px #d8baff, 0 0 60px rgba(216,186,255,0.6); }
  100% { box-shadow: 0 0 0 2px #dfed00, 0 0 60px rgba(223,237,0,0.6); }
}

/* ─── THIEF VILLAIN REDESIGN ─────────────────────────────────────────────── */
.thief-villain-stage {
  position: relative;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.thief-crow-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  cursor: pointer;
  animation: crow-swoop 1.2s ease-in-out infinite;
  transition: transform 0.12s ease;
}
.thief-crow-body {
  position: absolute;
  top: 0; left: 0;
  font-size: 80px;
  line-height: 1;
  filter: drop-shadow(0 4px 16px rgba(255,80,80,0.7));
}
.thief-crow-mask {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  animation: mask-wobble 0.8s ease-in-out infinite;
}
.thief-crow-bag {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 26px;
  animation: bag-swing 1s ease-in-out infinite;
  transform-origin: top center;
}
.thief-crow-claw {
  position: absolute;
  bottom: 2px;
  left: 0;
  font-size: 18px;
  opacity: 0.7;
  animation: claw-grab 0.6s ease-in-out infinite alternate;
}
.thief-crow-wrap.thief-hit .thief-crow-body {
  filter: drop-shadow(0 0 20px rgba(255,50,50,1)) brightness(1.5);
}
.thief-slash-text {
  position: absolute;
  top: 0; right: 10px;
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 900;
  color: #FF6B6B;
  text-shadow: 0 0 15px rgba(255,107,107,0.8);
  animation: slash-flash 0.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes crow-swoop {
  0%,100% { transform: translateY(0) rotate(-5deg);  }
  50%      { transform: translateY(-12px) rotate(5deg); }
}
@keyframes mask-wobble {
  0%,100% { transform: translateX(-50%) rotate(-8deg); }
  50%      { transform: translateX(-50%) rotate(8deg);  }
}
@keyframes bag-swing {
  0%,100% { transform: rotate(-15deg); }
  50%      { transform: rotate(15deg);  }
}
@keyframes claw-grab {
  from { transform: translateY(0);    opacity: 0.5; }
  to   { transform: translateY(-6px); opacity: 1;   }
}
@keyframes slash-flash {
  0%,100% { opacity: 1; transform: scale(1);    }
  50%      { opacity: 0.5; transform: scale(1.2); }
}


/* ─── SYNERGY SYSTEM ─────────────────────────────────────────────────────── */
.synergy-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(125, 34, 227, 0.1);
  border: 1.5px solid rgba(125, 34, 227, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--on-muted);
  line-height: 1.5;
}
.synergy-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.synergy-banner-text strong { color: var(--purple-light); }

/* ── Input error shake ────────────────────────────────────── */
@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX(5px); }
}
.input-error {
  border-color: #FF4444 !important;
  box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.3) !important;
  animation: shakeInput 0.4s ease;
}

/* ── Leaderboard prestige tag ─────────────────────────────── */
.lb-prestige-tag {
  display: inline-block;
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #dfed00;
  background: rgba(223, 237, 0, 0.12);
  border: 1px solid rgba(223, 237, 0, 0.3);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

/* ── Premium shop divider ─────────────────────────────────── */
.premium-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 8px;
  color: var(--on-muted);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.premium-divider::before,
.premium-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--outline);
}

/* AVATAR SELECT STYLING */
.avatar-select-label {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  color: #000;
  margin-top: 16px;
  margin-bottom: 8px;
}
.avatar-grid-select {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.avatar-select-option {
  aspect-ratio: 1;
  background: var(--surface-hi);
  border: 2px solid var(--outline);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 4px;
}
.avatar-select-option:hover {
  transform: translateY(-2px);
  background: var(--purple-light);
  border-color: var(--purple);
}
.avatar-select-option.active {
  background: #ab9ff2;
  border-color: #512da8;
  box-shadow: 3px 3px 0 #000;
}
.avatar-select-option img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Leaderboard avatar image */
.lb-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--surface-hi);
  border: 2px solid var(--outline);
}

/* ─── RAIN FRIES ───────────────────────────────────────────────────────────── */
.rain-fry {
  position: fixed;
  top: -50px;
  font-size: 32px;
  z-index: 8000;
  pointer-events: none;
  animation: fall-down linear forwards;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

@keyframes fall-down {
  0%   { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(360deg); }
}

/* =========================================================
   MOBILE RESPONSIVENESS OVERRIDES
   ========================================================= */
@media (max-width: 768px) {
  /* Container and Padding Adjustments */
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 20px 40px; min-height: auto; }

  /* Navigation adjustments */
  .nav { position: relative !important; } /* Disable sticky header */
  .nav-inner { padding: 0 16px; flex-wrap: wrap; gap: 12px; justify-content: center; }
  .nav-links { display: none; } /* Hide text links on very small screens to fit the wallet button */
  .nav-actions { margin-left: auto; margin-right: auto; }
  .logo-text { font-size: 20px; }
  
  /* Hero section adjustments */
  .hero-title-main { font-size: clamp(42px, 12vw, 56px); }
  .hero-sub { font-size: 16px; }
  .hero-steven { position: static; display: flex; justify-content: center; margin-top: 30px; }
  .steven-hero-img { width: 180px; height: 180px; }
  .hero-stats-row { flex-direction: column; gap: 24px; margin-top: 32px; }
  .btn-primary, .btn-ghost, .btn-hero-buy, .btn-hero-feed { width: 100%; justify-content: center; text-align: center; }
  .hero-cta-group { flex-direction: column; width: 100%; padding: 0 20px; }

  /* Meme Vault mobile scaling */
  .meme-gallery-wrap { position: relative; padding: 0; }
  .meme-gallery-frame { width: 100%; max-width: 100%; margin: 0; }
  .meme-nav-btn { position: absolute; z-index: 10; top: 50%; transform: translateY(-50%); background: var(--yellow); box-shadow: 2px 2px 0 #000; }
  .meme-prev { left: 0; }
  .meme-next { right: 0; }

  /* About Grid to 1 column */
  .about-grid { grid-template-columns: 1fr; }
  .about-card-visual { height: 120px; }
  .about-3d-img { max-height: 100px; }

  /* Feed Arena to 1 column, full screen height feeling */
  .feed-section { padding: 0 !important; }
  .clicker-container { padding: 0; }
  .feed-arena {
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    gap: 30px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    min-height: 85vh; /* Makes it feel like a full app screen */
    justify-content: space-between;
  }
  .steven-stage { flex: 1; display: flex; align-items: center; justify-content: center; }
  .steven-arena-img { width: 340px; height: 340px; max-width: 90vw; max-height: 50vh; }
  .drop-zone { width: 100%; display: none; } /* Drop zone isn't useful on mobile */

  /* Buy Steps to 1 column */
  .buy-steps { flex-direction: column; gap: 24px; }
  .step-card { min-height: auto; padding: 24px; }
  .step-card-visual { height: 120px; }
  .step-3d-img { max-height: 100px; }
  .step-arrow { transform: rotate(90deg); margin: 10px 0; }

  /* General Typography & Headers */
  .section-title-white, .section-title { font-size: 32px; }
  .section-header-left { margin-bottom: 32px; text-align: center; }
  .section-sub { font-size: 15px; margin-bottom: 32px; text-align: center; }

  /* Shop Items */
  .fish-items { grid-template-columns: repeat(2, 1fr); }
  
  /* Leaderboard & Modals */
  .lb-modal-content, .wallet-modal-content { width: 95%; max-width: none; margin: 20px; padding: 24px 16px; }
  .lb-search-input { width: 100%; }
  .lb-filters { flex-direction: column; align-items: stretch; }
  .lb-filter-btn { width: 100%; }
}
