/* ================================================
   THE RETIRED ORCA — $RetiredOrca on Solana
   Full page + 3D game styles
   ================================================ */

:root {
  --ocean-deep: #0a1628;
  --ocean-mid: #0f2847;
  --ocean-light: #163d6b;
  --ocean-surface: #1a5276;
  --orca-black: #1a1a2e;
  --orca-white: #e8f4f8;
  --accent: #00e5ff;
  --accent2: #00ffc6;
  --gold: #ffd700;
  --danger: #ff4757;
  --text: #e0ecf1;
  --text-dim: #7fa8c9;
  --glass: rgba(15, 40, 71, 0.7);
  --glass-border: rgba(0, 229, 255, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Fredoka One', cursive;
  --font-body: 'Inter', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--ocean-deep);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(180deg, var(--ocean-deep) 0%, #071222 100%);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ocean-deep); }
::-webkit-scrollbar-thumb { background: var(--ocean-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ========== UTILITIES ========== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

kbd {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.85em;
  font-family: var(--font-body);
  background: rgba(0,229,255,0.15);
  border: 1px solid rgba(0,229,255,0.3);
  border-radius: 5px;
  color: var(--accent);
  margin: 0 2px;
}

/* ========== NAV ========== */
#topNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon { font-size: 1.7rem; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--accent); }

.nav-ca {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,229,255,0.08);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,229,255,0.2);
  font-size: 0.78rem;
  max-width: 320px;
}
.ca-label { color: var(--accent); font-weight: 700; white-space: nowrap; }
.ca-addr {
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
  font-family: monospace;
  font-size: 0.75rem;
}
.ca-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 2px;
  transition: transform 0.15s;
}
.ca-copy-btn:hover { transform: scale(1.2); }

.nav-socials {
  display: flex;
  gap: 10px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.25);
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s;
}
.social-btn:hover {
  background: rgba(0,229,255,0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,229,255,0.3);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--glass-border);
  color: var(--accent);
  font-size: 1.5rem;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* ========== HERO ========== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 80%, rgba(0,229,255,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 20%, rgba(0,255,198,0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--ocean-deep) 0%, var(--ocean-mid) 50%, var(--ocean-light) 100%);
}

.hero-bg-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0,229,255,0.15), rgba(0,229,255,0.03));
  border: 1px solid rgba(0,229,255,0.08);
  animation: bubbleFloat linear infinite;
}
@keyframes bubbleFloat {
  0% { transform: translateY(100vh) scale(0.5); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-100px) scale(1.2); opacity: 0; }
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 700px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--orca-white);
  text-shadow: 0 0 60px rgba(0,229,255,0.3);
}
.hero-title .flicker {
  background: linear-gradient(135deg, var(--accent), var(--gold), var(--accent2));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  padding: 16px 40px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ocean-deep);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 25px rgba(0,229,255,0.35);
  -webkit-text-fill-color: var(--ocean-deep);
}
.hero-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 40px rgba(0,229,255,0.5);
}

/* Hero Orca Character — Hawaiian shirt, pixel shades, OJ cocktail */
.hero-orca {
  position: absolute;
  bottom: 6%;
  right: 5%;
  z-index: 1;
  animation: orcaBob 4s ease-in-out infinite;
}
@keyframes orcaBob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}

.orca-scene {
  position: relative;
  width: 210px;
  height: 230px;
}

/* Beach chair back */
.chair-back {
  position: absolute;
  bottom: 0; left: 10px;
  width: 190px; height: 180px;
  background: repeating-linear-gradient(
    -45deg,
    #4a90d9 0px, #4a90d9 12px,
    #fff 12px, #fff 24px
  );
  border-radius: 18px 18px 8px 8px;
  transform: rotate(-5deg);
  opacity: 0.45;
  z-index: 0;
}

/* Orca body */
.orca-body {
  position: relative;
  z-index: 1;
}

/* Head */
.orca-head {
  position: relative;
  width: 130px; height: 110px;
  margin: 0 auto;
}
.head-dark {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, #2a2a3e, #111122);
  border-radius: 50% 50% 45% 45%;
}
.head-light {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 60px;
  background: radial-gradient(ellipse at 50% 30%, #f0f4f8, #d4dfe8);
  border-radius: 45% 45% 50% 50%;
}

/* White eye patches */
.eye-patch-l, .eye-patch-r {
  position: absolute;
  width: 22px; height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 34px;
}
.eye-patch-l { left: 24px; transform: rotate(-8deg); }
.eye-patch-r { right: 24px; transform: rotate(8deg); }

/* Pixel "Deal With It" Shades */
.pixel-shades {
  position: absolute;
  top: 30px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 22px;
  z-index: 5;
}
.lens-l, .lens-r {
  position: absolute;
  top: 4px;
  width: 36px; height: 14px;
  background: #111;
  border: 2.5px solid #222;
}
.lens-l { left: 4px; }
.lens-r { right: 4px; }
.lens-l::after, .lens-r::after {
  content: '';
  position: absolute;
  top: 2px; left: 3px;
  width: 8px; height: 4px;
  background: rgba(255,255,255,0.15);
}
/* Bridge */
.pixel-shades::before {
  content: '';
  position: absolute;
  top: 8px; left: 42px;
  width: 16px; height: 3px;
  background: #222;
}
/* Pixel accents on lenses (the "deal with it" pattern) */
.pixel {
  position: absolute;
  width: 5px; height: 5px;
  background: #fff;
}
.px1 { top: 6px; left: 10px; }
.px2 { top: 6px; left: 16px; }
.px3 { top: 11px; left: 13px; }
.px4 { top: 6px; right: 10px; }
.px5 { top: 6px; right: 16px; }
.px6 { top: 11px; right: 13px; }

/* Smug grin */
.orca-grin {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  width: 50px; height: 18px;
  border: 3px solid #2a2a3e;
  border-top: none;
  border-radius: 0 0 50% 50%;
}

/* Hawaiian Shirt */
.hawaiian-shirt {
  position: relative;
  width: 160px; height: 90px;
  margin: -10px auto 0;
  background: linear-gradient(135deg, #3db8e8, #5cc8f0, #3aace0);
  border-radius: 30% 30% 45% 45%;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.shirt-collar {
  position: absolute;
  top: -2px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 18px;
  background: #f0f4f8;
  border-radius: 0 0 50% 50%;
  z-index: 2;
}
/* Hawaiian flowers on shirt */
.flower {
  position: absolute;
  width: 18px; height: 18px;
  background: radial-gradient(circle, #fff 30%, rgba(255,255,255,0.4) 60%, transparent 70%);
  border-radius: 50%;
}
.flower::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  background: #ffd700;
  border-radius: 50%;
}
.f1 { top: 12px; left: 15px; }
.f2 { top: 35px; left: 55px; }
.f3 { top: 15px; right: 20px; }
.f4 { top: 55px; left: 25px; }
.f5 { top: 50px; right: 30px; }

/* Flipper + OJ glass */
.flipper-arm {
  position: absolute;
  bottom: 30px;
  right: -10px;
  width: 50px; height: 30px;
  background: #1a1a2e;
  border-radius: 40% 50% 50% 20%;
  transform: rotate(-15deg);
  z-index: 3;
}

.oj-glass {
  position: absolute;
  top: -45px; right: -8px;
  width: 28px; height: 38px;
  background: rgba(255,255,255,0.25);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 3px 3px 5px 5px;
  overflow: hidden;
}
.oj-liquid {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 70%;
  background: linear-gradient(180deg, #ffb830, #ff9500);
  border-radius: 0 0 3px 3px;
}
.oj-ice {
  position: absolute;
  width: 8px; height: 6px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  top: 10px; left: 4px;
  transform: rotate(10deg);
}
.oj-ice.i2 {
  top: 8px; left: 14px;
  width: 7px; height: 5px;
  transform: rotate(-15deg);
}
.oj-straw {
  position: absolute;
  width: 3px; height: 32px;
  background: #2a7fff;
  top: -8px; left: 8px;
  transform: rotate(12deg);
  border-radius: 2px;
}
.oj-orange {
  position: absolute;
  width: 16px; height: 16px;
  background: radial-gradient(circle at 40% 40%, #ffcc00, #ff8c00);
  border-radius: 50%;
  top: -6px; right: -4px;
  border: 1.5px solid #e67e00;
}
.oj-orange::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 1.5px;
  background: rgba(255,255,255,0.5);
  border-radius: 1px;
}

/* ========== STATS TICKER ========== */
#statsTicker {
  padding: 20px 0;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow-x: auto;
}
.ticker-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
  min-width: max-content;
}
.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 22px;
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: var(--radius-sm);
  min-width: 120px;
}
.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  font-weight: 700;
}
.stat-value {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--accent);
  font-family: var(--font-body);
}
.stat-updated .stat-value { color: var(--text-dim); font-size: 0.8rem; }

/* ========== SECTION TITLE (shared) ========== */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
  color: var(--orca-white);
}

/* ========== FULLSCREEN GAME OVERLAY ========== */
.game-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #040e1a;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.game-fullscreen.open {
  opacity: 1;
  visibility: visible;
}

/* Exit button */
.game-exit-btn {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 50;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,229,255,0.25);
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.game-exit-btn:hover {
  background: rgba(255, 71, 87, 0.3);
  border-color: var(--danger);
  color: var(--danger);
  transform: scale(1.1);
}

/* Canvas fills viewport */
#gameCanvas {
  display: block;
  width: 100vw;
  height: 100vh;
  position: absolute;
  inset: 0;
}

/* Secondary exit button on game-over */
.exit-btn-secondary {
  background: rgba(255,71,87,0.15) !important;
  border: 1px solid rgba(255,71,87,0.4) !important;
  color: var(--danger) !important;
  font-size: 0.85rem !important;
  padding: 8px 22px !important;
}

/* Game overlays (start / game-over) */
.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 14, 26, 0.88);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.overlay-box {
  text-align: center;
  padding: 48px 40px;
  max-width: 460px;
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 16px 60px rgba(0,0,0,0.5);
}
.overlay-orca {
  font-size: 4.5rem;
  margin-bottom: 16px;
  animation: orcaBob 2s ease-in-out infinite;
}
.overlay-box h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--orca-white);
}
.overlay-box p {
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.7;
  font-size: 0.95rem;
}
.overlay-controls-hint {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.78rem;
  color: var(--text-dim);
  opacity: 0.6;
}

.game-btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ocean-deep);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  margin: 6px;
  box-shadow: 0 4px 20px rgba(0,229,255,0.3);
}
.game-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 30px rgba(0,229,255,0.45);
}
.share-btn {
  background: linear-gradient(135deg, #1da1f2, #0d8ecf);
  color: white;
  font-size: 0.9rem;
  padding: 10px 24px;
}

/* HUD */
.game-hud {
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
}
.hud-item {
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(6px);
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
  border: 1px solid rgba(255,215,0,0.2);
}
.hud-speed { color: var(--accent); border-color: rgba(0,229,255,0.2); }

/* ========== ABOUT ========== */
#about {
  padding: 80px 24px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,229,255,0.03) 0%, transparent 50%),
    transparent;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.about-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,229,255,0.12);
}
.about-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.about-card p {
  color: var(--text-dim);
  line-height: 1.6;
  font-size: 0.92rem;
}

/* ========== TOKENOMICS ========== */
#tokenomics {
  padding: 80px 24px;
}
.tokenomics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.token-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.3s;
}
.token-card:hover { transform: translateY(-4px); }
.token-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.token-label {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== FOOTER ========== */
#footer {
  padding: 40px 24px;
  border-top: 1px solid var(--glass-border);
  background: rgba(7, 14, 28, 0.8);
  text-align: center;
}
.footer-inner { max-width: 700px; margin: 0 auto; }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}
.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent2); }
.footer-disclaimer {
  color: var(--text-dim);
  font-size: 0.72rem;
  opacity: 0.5;
  line-height: 1.5;
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--ocean-deep);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,229,255,0.4);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-socials { display: none; }
  .mobile-menu-btn { display: block; }

  /* Mobile menu open state */
  #topNav.menu-open .nav-links,
  #topNav.menu-open .nav-socials {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10, 22, 40, 0.97);
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    gap: 14px;
    align-items: center;
  }
  #topNav.menu-open .nav-socials {
    flex-direction: row;
    justify-content: center;
    top: auto;
    border-bottom: none;
    padding-top: 0;
  }

  .hero-orca { display: none; }

  .ticker-wrap {
    justify-content: flex-start;
  }


}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .overlay-box { padding: 24px 16px; }
  .overlay-box h3 { font-size: 1.5rem; }

  .stat-pill { min-width: 100px; padding: 8px 14px; }
}
