/* ═══════════════════════════════════════════════════════════════
   $LUCKY — styles.css
   Emerald green · Gold · Neon glow · Irish vibes
═══════════════════════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────────────────────── */
:root {
  --bg:           #050f07;
  --bg-mid:       #071a0a;
  --bg-section:   #0a2312;
  --green-deep:   #0d4a18;
  --green-mid:    #1a7a2e;
  --green-neon:   #22c55e;
  --green-glow:   rgba(34,197,94,.45);
  --gold:         #f5c518;
  --gold-light:   #ffe066;
  --gold-dark:    #b8860b;
  --gold-glow:    rgba(245,197,24,.55);
  --white:        #f0fdf4;
  --white-dim:    rgba(240,253,244,.75);
  --white-faint:  rgba(240,253,244,.35);
  --border:       rgba(245,197,24,.2);
  --border-green: rgba(34,197,94,.2);
  --card-bg:      rgba(255,255,255,.04);
  --radius:       20px;
  --font-head:    'Fredoka One', cursive;
  --font-body:    'Nunito', sans-serif;
  --font-pixel:   'Press Start 2P', monospace;
  --transition:   .25s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background-image: url('lucky-coin-bg.png');
  background-size: cover; background-position: center;
  opacity: .04; pointer-events: none;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; }
ul { list-style: none; }
strong { color: var(--gold-light); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }
::selection { background: var(--gold); color: #000; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold); }
.section-label {
  font-size: .78rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--green-neon); font-weight: 900; margin-bottom: 8px; display: block;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--gold);
  text-shadow: 0 0 30px var(--gold-glow), 0 0 60px rgba(245,197,24,.2);
  line-height: 1.1; margin-bottom: 8px;
}
.section-sub { color: var(--white-dim); font-size: 1rem; font-weight: 600; margin-top: 8px; }
.section-header { text-align: center; margin-bottom: 56px; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

#canvas-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }


#sound-panel { position: fixed; bottom: 104px; right: 24px; z-index: 800; width: 48px; height: 48px; }
#sound-panel-tab { width: 48px; height: 48px; border-radius: 50%; background: rgba(8,28,12,.9); border: 2px solid var(--border); color: var(--white); font-size: 1.25rem; cursor: pointer; backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); box-shadow: 0 4px 20px rgba(0,0,0,.4); position: relative; z-index: 1; }
#sound-panel-tab:hover { border-color: var(--gold); box-shadow: 0 0 22px var(--gold-glow); transform: scale(1.1); }
#sound-panel-body { position: absolute; bottom: 58px; right: 0; width: 240px; background: rgba(5,18,8,.96); backdrop-filter: blur(18px); border: 1px solid var(--border); border-radius: 18px; padding: 18px 16px; box-shadow: 0 8px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(245,197,24,.06); opacity: 0; transform: translateY(6px) scale(.96); pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
#sound-panel.open #sound-panel-body { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.sp-section { display: flex; flex-direction: column; gap: 10px; }
.sp-head { display: flex; align-items: center; gap: 7px; }
.sp-icon { font-size: 1rem; line-height: 1; flex-shrink: 0; }
.sp-lbl { flex: 1; font-weight: 800; font-size: .88rem; color: var(--white); letter-spacing: .5px; }
.sp-toggle { padding: 4px 10px; border-radius: 20px; border: 1.5px solid rgba(255,255,255,.15); background: transparent; color: var(--white-faint); font-size: .68rem; font-weight: 900; letter-spacing: 1.5px; cursor: pointer; transition: all .2s; font-family: var(--font-body); }
.sp-toggle.sp-on { background: var(--green-neon); border-color: var(--green-neon); color: #000; box-shadow: 0 0 12px rgba(34,197,94,.45); }
.sp-slider-row { display: flex; align-items: center; gap: 8px; cursor: default; }
.sp-vol-icon { font-size: .85rem; opacity: .6; flex-shrink: 0; line-height: 1; }
.sp-pct { font-size: .72rem; color: var(--gold); font-weight: 800; width: 36px; text-align: right; flex-shrink: 0; }
.sp-slider { -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); outline: none; cursor: pointer; }
.sp-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--gold); cursor: pointer; box-shadow: 0 0 8px rgba(245,197,24,.65); transition: transform .18s, box-shadow .18s; }
.sp-slider::-webkit-slider-thumb:hover { transform: scale(1.35); box-shadow: 0 0 16px rgba(245,197,24,.9); }
.sp-slider::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: var(--gold); cursor: pointer; border: none; box-shadow: 0 0 8px rgba(245,197,24,.65); }
.sp-divider { height: 1px; background: var(--border); margin: 6px 0; }

#loading-screen { position: fixed; inset: 0; z-index: 10000; background: radial-gradient(ellipse at center, #0d3a14, #050f07); display: flex; align-items: center; justify-content: center; transition: opacity .8s ease, transform .8s ease; }
#loading-screen.hidden { opacity: 0; pointer-events: none; }
.loader-content { text-align: center; }
.loader-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; animation: loader-spin 1.2s linear infinite; }
.loader-icon-img { width: 100px; height: auto; display: block; filter: drop-shadow(0 0 20px rgba(245,197,24,.6)); }
@keyframes loader-spin { 0% { transform: rotateY(0) scale(1); } 50% { transform: rotateY(180deg) scale(1.2); } 100% { transform: rotateY(360deg) scale(1); } }
.loader-heading { font-family: var(--font-head); font-size: 1.8rem; color: var(--gold); margin-bottom: 24px; text-shadow: 0 0 20px var(--gold-glow); }
.loader-bar { width: 260px; height: 8px; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; margin: 0 auto 16px; }
.loader-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--green-neon), var(--gold)); border-radius: 4px; transition: width .05s linear; }
.loader-clovers { font-size: 1.4rem; opacity: .7; animation: pulse-fade 1s ease-in-out infinite; }
@keyframes pulse-fade { 0%,100%{opacity:.4} 50%{opacity:.9} }

nav#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 700; height: 68px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; background: rgba(5,15,7,.8); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); transition: height var(--transition), background var(--transition); }
nav#navbar.scrolled { height: 58px; background: rgba(5,10,6,.95); }
.nav-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 1.6rem; color: var(--gold); text-shadow: 0 0 14px var(--gold-glow); animation: neon-pulse-gold 3s ease-in-out infinite; }
@keyframes neon-pulse-gold { 0%,100% { text-shadow: 0 0 14px var(--gold-glow), 0 0 30px rgba(245,197,24,.2); } 50% { text-shadow: 0 0 24px var(--gold-glow), 0 0 60px rgba(245,197,24,.35), 0 0 90px rgba(245,197,24,.15); } }
.logo-shamrock { font-size: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--white-dim); font-weight: 700; font-size: .92rem; letter-spacing: .4px; transition: color var(--transition), text-shadow var(--transition); }
.nav-links a:hover { color: var(--gold); text-shadow: 0 0 10px var(--gold-glow); }
.nav-faq-link { color: var(--green-neon) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 701; }
.hamburger span { display: block; width: 26px; height: 2.5px; background: var(--gold); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; top: 68px; left: 0; right: 0; z-index: 699; background: rgba(5,10,6,.97); backdrop-filter: blur(16px); flex-direction: column; border-bottom: 1px solid var(--border); }
.mobile-menu.open { display: flex; }
.mob-link { padding: 16px 28px; color: var(--white-dim); font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.05); transition: color var(--transition), background var(--transition); }
.mob-link:hover { color: var(--gold); background: rgba(245,197,24,.06); }
.mob-buy { color: var(--gold) !important; font-family: var(--font-head); font-size: 1.1rem; }

.ticker-wrap { position: sticky; top: 68px; z-index: 600; background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark)); overflow: hidden; padding: 8px 0; }
.ticker-track { display: flex; gap: 0; white-space: nowrap; animation: ticker-move 22s linear infinite; font-family: var(--font-head); font-size: .9rem; color: #000; will-change: transform; }
.ticker-track span { padding: 0 28px; }
@keyframes ticker-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px; border-radius: 50px; border: none; font-family: var(--font-head); font-size: 1.05rem; cursor: pointer; position: relative; overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); white-space: nowrap; }
.btn-shine { position: absolute; top: -50%; left: -120%; width: 60%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-20deg); transition: left .45s ease; pointer-events: none; }
.btn:hover .btn-shine { left: 140%; }
.btn:hover { transform: translateY(-4px) scale(1.04); }
.btn-coin { background: linear-gradient(135deg, #d4a017, var(--gold), var(--gold-light), var(--gold)); color: #000; font-weight: 900; box-shadow: 0 0 24px rgba(245,197,24,.5), 0 4px 16px rgba(0,0,0,.4); }
.btn-coin:hover { box-shadow: 0 0 50px rgba(245,197,24,.8), 0 8px 24px rgba(0,0,0,.4); }
.btn-pub { background: linear-gradient(135deg, #1a5e2c, var(--green-mid), var(--green-neon)); color: var(--white); box-shadow: 0 0 24px rgba(34,197,94,.4), 0 4px 16px rgba(0,0,0,.4); }
.btn-pub:hover { box-shadow: 0 0 50px rgba(34,197,94,.7), 0 8px 24px rgba(0,0,0,.4); }
.btn-nav-buy { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #000; font-family: var(--font-head); padding: 10px 22px; border-radius: 50px; border: none; font-size: .92rem; cursor: pointer; font-weight: 900; box-shadow: 0 0 18px rgba(245,197,24,.4); transition: box-shadow var(--transition), transform var(--transition); white-space: nowrap; }
.btn-nav-buy:hover { box-shadow: 0 0 36px rgba(245,197,24,.7); transform: translateY(-2px); }

#hero { min-height: 100vh; display: flex; align-items: center; padding-top: 100px; position: relative; overflow: hidden; z-index: 1; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg-img { position: absolute; inset: 0; background-image: url('lucky-coin-bg.png'); background-size: cover; background-position: center; will-change: transform; filter: blur(18px) brightness(.55); transform: scale(1.04); transition: filter 1.1s ease, transform 1.1s ease; }
.hero-bg-img.loaded { filter: blur(0px) brightness(1); transform: scale(1); animation: hero-zoom 30s ease-in-out infinite alternate; }
@keyframes hero-zoom { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }
.hero-bg-overlay { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, transparent 0%, transparent 38%, rgba(5,9,7,.55) 60%, rgba(5,9,7,.85) 80%, #050f07 100%), linear-gradient(to right, rgba(5,9,7,.72) 0%, transparent 24%), linear-gradient(to left, rgba(5,9,7,.72) 0%, transparent 24%), linear-gradient(to bottom, rgba(5,9,7,.6) 0%, transparent 20%), radial-gradient(ellipse at 62% 46%, rgba(5,9,7,.08) 0%, rgba(5,9,7,.40) 55%, rgba(5,9,7,.72) 100%); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; width: 100%; padding: 80px 0 140px; position: relative; z-index: 2; }
.hero-text { background: linear-gradient(135deg, rgba(4,12,6,.38) 0%, rgba(4,12,6,.20) 100%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 24px; padding: 40px 36px; border: 1px solid rgba(34,197,94,.08); }
.eyebrow { font-size: .82rem; letter-spacing: 3px; text-transform: uppercase; color: var(--green-neon); font-weight: 900; margin-bottom: 14px; display: block; text-shadow: 0 1px 10px rgba(0,0,0,.9); }
.hero-headline { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.1; color: var(--white); margin-bottom: 20px; text-shadow: 0 2px 24px rgba(0,0,0,.85), 0 0 60px rgba(0,0,0,.5); }
.rainbow-text { background: linear-gradient(90deg, #e74c3c, #e67e22, #f1c40f, #22c55e, #3498db, #9b59b6, #e74c3c); background-size: 300% 100%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: rainbow-shift 4s linear infinite; }
@keyframes rainbow-shift { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
.hero-sub { font-size: clamp(.95rem, 1.8vw, 1.1rem); color: var(--white-dim); line-height: 1.75; margin-bottom: 32px; font-weight: 600; max-width: 520px; text-shadow: 0 1px 10px rgba(0,0,0,.85); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.contract-box { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 14px; padding: 12px 18px; }
.ca-label { font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--green-neon); font-weight: 900; }
.ca-addr { font-family: monospace; font-size: .82rem; color: var(--gold-light); word-break: break-all; flex: 1; }
.ca-copy { background: var(--gold); color: #000; border: none; padding: 6px 14px; border-radius: 8px; font-weight: 900; font-size: .8rem; cursor: pointer; transition: background var(--transition), transform var(--transition); white-space: nowrap; }
.ca-copy:hover { background: var(--gold-light); transform: scale(1.06); }
.ca-copy.copied { background: var(--green-neon); color: var(--white); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.mascot-wrap { position: relative; z-index: 2; }
.mascot-coin { width: min(360px, 80vw); height: min(360px, 80vw); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 80px rgba(245,197,24,.6), 0 0 160px rgba(245,197,24,.2); animation: float-coin 3.8s ease-in-out infinite; will-change: transform; overflow: hidden; }
.mascot-coin-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
@keyframes float-coin { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-20px) rotate(3deg); } }
.mascot-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(245,197,24,.25); animation: ring-pulse 2.8s ease-in-out infinite; }
.ring-1 { animation-delay: 0s; } .ring-2 { inset: -16px; animation-delay: .5s; } .ring-3 { inset: -32px; border-width: 1px; animation-delay: 1s; }
@keyframes ring-pulse { 0%,100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.06); opacity: .15; } }
.hero-rainbow-arc { position: absolute; z-index: 1; width: 480px; height: 240px; top: -30px; left: 50%; transform: translateX(-50%); border-radius: 240px 240px 0 0; background: transparent; border: 12px solid transparent; border-bottom: none; background-clip: padding-box; box-shadow: 0 -8px 0 rgba(155,89,182,.3), 0 -16px 0 rgba(52,152,219,.25), 0 -24px 0 rgba(46,204,113,.2), 0 -32px 0 rgba(241,196,15,.25); opacity: .5; filter: blur(4px); }
.fog-layer { position: absolute; bottom: 0; left: -10%; width: 120%; border-radius: 50%; pointer-events: none; z-index: 3; }
.fog-a { height: 180px; background: radial-gradient(ellipse at 50% 100%, rgba(26,122,46,.18) 0%, transparent 70%); filter: blur(50px); animation: fog-drift 9s ease-in-out infinite; }
.fog-b { height: 220px; background: radial-gradient(ellipse at 40% 100%, rgba(13,74,24,.12) 0%, transparent 65%); filter: blur(70px); animation: fog-drift 13s ease-in-out infinite reverse; opacity: .7; }
.fog-c { height: 140px; background: radial-gradient(ellipse at 65% 100%, rgba(34,197,94,.08) 0%, transparent 60%); filter: blur(40px); animation: fog-drift 7s ease-in-out infinite .5s; opacity: .5; }
@keyframes fog-drift { 0%,100% { transform: translateX(-4%) scaleY(1); } 50% { transform: translateX(4%) scaleY(1.25); } }

.hill-divider { position: relative; z-index: 2; margin: 0; line-height: 0; overflow: hidden; }
.hill-divider svg { width: 100%; height: 100px; }
.hill-flip svg { transform: scaleX(-1); }

#about { padding: 100px 0; position: relative; z-index: 1; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.about-art { display: flex; justify-content: center; align-items: center; }
.pot-illustration { position: relative; width: 280px; height: 280px; display: flex; align-items: center; justify-content: center; }
.pot-shine { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(245,197,24,.15) 0%, transparent 65%); animation: pulse-shine 3s ease-in-out infinite; }
@keyframes pulse-shine { 0%,100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.15); opacity: 1; } }
.pot-emoji { z-index: 1; animation: float-coin 4s ease-in-out infinite .5s; }
.pot-emoji-img { width: 180px; height: auto; display: block; filter: drop-shadow(0 0 30px rgba(245,197,24,.6)) drop-shadow(0 0 60px rgba(245,197,24,.3)); }
.float-spark { position: absolute; left: calc(50% + var(--dx) * 110px); top: calc(50% + var(--dy) * 110px); font-size: 1.3rem; animation: spark-float 2.5s ease-in-out infinite var(--d); }
@keyframes spark-float { 0%,100% { transform: translateY(0) scale(1); opacity: .8; } 50% { transform: translateY(-12px) scale(1.3); opacity: .4; } }
.about-text p { font-size: 1.02rem; line-height: 1.82; color: var(--white-dim); font-weight: 600; margin-bottom: 16px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.badge { background: rgba(245,197,24,.08); border: 1px solid rgba(245,197,24,.3); color: var(--gold-light); font-size: .8rem; font-weight: 800; padding: 7px 16px; border-radius: 30px; letter-spacing: 1px; transition: background var(--transition), box-shadow var(--transition); }
.badge:hover { background: rgba(245,197,24,.16); box-shadow: 0 0 12px rgba(245,197,24,.3); }

#tokenomics { padding: 100px 0; position: relative; z-index: 1; }
.tknmx-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.pot-column { display: flex; flex-direction: column; gap: 40px; }
.pot-vessel { display: flex; flex-direction: column; align-items: center; cursor: default; }
.pot-rim { width: 180px; height: 40px; background: linear-gradient(180deg, #3a3a3a, #222); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 2rem; position: relative; z-index: 2; box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.pot-body { width: 160px; height: 180px; background: linear-gradient(135deg, #2a2a2a, #111); border-radius: 0 0 80px 80px / 0 0 80px 80px; position: relative; overflow: hidden; margin-top: -4px; box-shadow: 0 8px 30px rgba(0,0,0,.6), inset 0 0 20px rgba(0,0,0,.3); }
.pot-fill { position: absolute; bottom: 0; left: 0; right: 0; height: 0%; background: linear-gradient(to top, #c8960c, var(--gold), var(--gold-light)); transition: height 2.2s cubic-bezier(.4,0,.2,1); display: flex; align-items: flex-start; justify-content: center; overflow: hidden; }
.gold-coins { display: flex; flex-wrap: wrap; gap: 2px; padding: 8px 4px; justify-content: center; animation: coins-shimmer 2s ease-in-out infinite; }
.gold-coins span { font-size: .85rem; }
@keyframes coins-shimmer { 0%,100% { opacity: .8; } 50% { opacity: 1; } }
.pot-base { width: 120px; height: 16px; background: linear-gradient(180deg, #1a1a1a, #0d0d0d); border-radius: 0 0 10px 10px; margin-top: 2px; box-shadow: 0 4px 8px rgba(0,0,0,.4); }
.pie-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.pie-donut { width: 220px; height: 220px; border-radius: 50%; background: conic-gradient(#f5c518 0% 80%, #22c55e 80% 90%, #1a7a2e 90% 97%, #0d4a18 97% 100%); position: relative; box-shadow: 0 0 50px rgba(245,197,24,.3); animation: pie-spin-in 1.4s cubic-bezier(.4,0,.2,1) both; }
@keyframes pie-spin-in { from { transform: rotate(-180deg) scale(.5); opacity: 0; } to { transform: rotate(0) scale(1); opacity: 1; } }
.pie-center { position: absolute; inset: 22%; background: var(--bg-mid); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.pie-legend { display: flex; flex-direction: column; gap: 7px; width: 100%; }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; color: var(--white-dim); }
.ldot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.tknmx-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tknmx-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 18px; text-align: center; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; transform-style: preserve-3d; }
.tknmx-card:hover { box-shadow: 0 16px 50px rgba(245,197,24,.2); }
.card-glow-inner { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(245,197,24,.06) 0%, transparent 70%); pointer-events: none; }
.card-icon-big { font-size: 2.2rem; margin-bottom: 10px; }
.card-value { font-family: var(--font-head); font-size: 1.5rem; color: var(--gold); margin-bottom: 4px; text-shadow: 0 0 12px rgba(245,197,24,.4); }
.card-lbl { font-size: .75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white-faint); font-weight: 800; }

#how-to-buy { padding: 100px 0; position: relative; z-index: 1; }
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.step-card { background: var(--card-bg); border: 1px solid var(--border-green); border-radius: var(--radius); padding: 30px 18px; text-align: center; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; transform-style: preserve-3d; }
.step-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green-neon), var(--gold)); }
.step-card:hover { box-shadow: 0 16px 50px rgba(34,197,94,.2); }
.step-num { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #000; font-family: var(--font-head); font-size: 1.2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; box-shadow: 0 0 16px rgba(245,197,24,.5); }
.step-icon { font-size: 2.2rem; margin-bottom: 12px; }
.step-title { font-family: var(--font-head); font-size: 1.15rem; color: var(--gold); margin-bottom: 10px; }
.step-desc { font-size: .88rem; color: var(--white-dim); line-height: 1.65; font-weight: 600; }
.htb-cta { text-align: center; margin-top: 48px; }

#spinner { padding: 100px 0; position: relative; z-index: 1; }
.spinner-layout { display: flex; justify-content: center; }
.spinner-wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.spinner-frame { position: relative; filter: drop-shadow(0 0 40px rgba(245,197,24,.4)); }
#spinnerCanvas { display: block; border-radius: 50%; }
.spinner-needle { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 28px solid var(--gold); filter: drop-shadow(0 0 8px var(--gold-glow)); z-index: 10; }
.spin-btn { font-size: 1.1rem; padding: 16px 44px; }
.spin-result { min-height: 64px; text-align: center; font-family: var(--font-head); font-size: 1.8rem; color: var(--gold); text-shadow: 0 0 20px var(--gold-glow), 0 0 40px rgba(245,197,24,.3); }
.spin-result.pop { animation: result-pop .4s cubic-bezier(.4,0,.2,1); }
@keyframes result-pop { 0% { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
#confetti-container { position: fixed; inset: 0; pointer-events: none; z-index: 5000; }
.confetti-piece { position: absolute; width: 10px; height: 10px; border-radius: 2px; animation: confetti-fall linear forwards; will-change: transform; }
@keyframes confetti-fall { 0% { transform: translateY(-20px) rotate(0deg); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; } }

#stats { padding: 100px 0; position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat-card { background: rgba(5,15,7,.85); border: 2px solid rgba(34,197,94,.3); border-radius: 16px; overflow: hidden; box-shadow: 0 0 30px rgba(34,197,94,.1), inset 0 0 20px rgba(0,0,0,.3); transition: box-shadow .3s, border-color .3s; }
.stat-card:hover { border-color: var(--green-neon); box-shadow: 0 0 50px rgba(34,197,94,.25), inset 0 0 20px rgba(0,0,0,.3); }
.stat-screen { background: #010f04; padding: 22px 16px 16px; border-bottom: 2px solid rgba(34,197,94,.3); text-align: center; }
.stat-screen-label { font-family: var(--font-pixel); font-size: .45rem; color: var(--green-neon); letter-spacing: 2px; margin-bottom: 10px; opacity: .8; }
.stat-num { font-family: var(--font-pixel); font-size: clamp(.85rem, 2vw, 1.1rem); color: var(--gold); text-shadow: 0 0 10px var(--gold-glow), 0 0 30px rgba(245,197,24,.3); animation: neon-flicker 6s linear infinite; line-height: 1.4; }
@keyframes neon-flicker { 0%,90%,100% { opacity: 1; } 92% { opacity: .85; } 94% { opacity: 1; } 96% { opacity: .9; } }
.stat-foot { padding: 12px 16px; text-align: center; font-size: .8rem; font-weight: 800; color: var(--green-neon); letter-spacing: 1px; }
.stat-text-val {
  font-family: var(--font-pixel); font-size: clamp(.7rem, 1.8vw, .95rem); color: var(--gold);
  text-shadow: 0 0 10px var(--gold-glow), 0 0 30px rgba(245,197,24,.3);
  animation: neon-flicker 6s linear infinite; line-height: 1.4;
}

#gallery { padding: 100px 0; position: relative; z-index: 1; }
.carousel-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; overflow: hidden; }
.meme-carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; flex: 1; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.meme-carousel::-webkit-scrollbar { display: none; }
.meme-card { flex-shrink: 0; width: 220px; height: 220px; scroll-snap-align: start; transform-style: preserve-3d; }
.meme-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--bg-section), var(--green-deep)); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; position: relative; overflow: hidden; transition: box-shadow .3s; }
.meme-placeholder:hover { box-shadow: 0 0 40px rgba(245,197,24,.25); }
.meme-mark { font-size: 3.5rem; opacity: .35; }
.meme-title { font-family: var(--font-head); font-size: 1rem; color: var(--gold-light); text-align: center; padding: 0 12px; opacity: .8; }
.carousel-arrow { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(245,197,24,.12); border: 1px solid var(--border); color: var(--gold); font-size: 1rem; cursor: pointer; transition: background var(--transition), box-shadow var(--transition); display: flex; align-items: center; justify-content: center; }
.carousel-arrow:hover { background: rgba(245,197,24,.22); box-shadow: 0 0 16px rgba(245,197,24,.3); }
.gallery-cta { text-align: center; }

/* Vault Coming Soon */
.vault-coming-soon {
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: 24px; padding: 60px 40px; text-align: center;
  max-width: 600px; margin: 0 auto;
  box-shadow: 0 0 40px rgba(245,197,24,.06);
  transition: box-shadow .3s;
}
.vault-coming-soon:hover { box-shadow: 0 0 60px rgba(245,197,24,.12); }
.vault-cs-icon { font-size: 4rem; margin-bottom: 18px; animation: float-coin 4s ease-in-out infinite; }
.vault-cs-title {
  font-family: var(--font-head); font-size: 1.6rem; color: var(--gold);
  text-shadow: 0 0 20px var(--gold-glow); margin-bottom: 12px;
}
.vault-cs-sub {
  font-size: .95rem; color: var(--white-dim); line-height: 1.7; font-weight: 600;
  max-width: 420px; margin: 0 auto 20px;
}
.vault-cs-emojis {
  font-size: 1.6rem; letter-spacing: 8px; opacity: .5;
  animation: pulse-fade 2.5s ease-in-out infinite;
}

#lore { padding: 100px 0; position: relative; z-index: 1; }
.lore-panels { display: flex; flex-direction: column; gap: 28px; }
.lore-panel { display: flex; align-items: center; gap: 40px; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 24px; padding: 36px 40px; transition: box-shadow .3s; }
.lore-panel:hover { box-shadow: 0 0 40px rgba(245,197,24,.1); }
.lore-panel-alt { flex-direction: row-reverse; background: rgba(34,197,94,.03); border-color: var(--border-green); }
.panel-art { font-size: 5rem; flex-shrink: 0; line-height: 1; filter: drop-shadow(0 0 20px rgba(245,197,24,.4)); animation: float-coin 5s ease-in-out infinite; }
.panel-content { flex: 1; }
.panel-num { font-family: var(--font-pixel); font-size: .6rem; color: var(--green-neon); letter-spacing: 2px; display: block; margin-bottom: 10px; opacity: .8; }
.panel-headline { font-family: var(--font-head); font-size: 1.4rem; color: var(--gold); margin-bottom: 12px; line-height: 1.3; }
.panel-body { font-size: .95rem; color: var(--white-dim); line-height: 1.75; font-weight: 600; }

#roadmap { padding: 100px 0 60px; position: relative; z-index: 1; }
.rainbow-road { position: relative; height: 160px; margin-bottom: 48px; overflow: visible; }
.rainbow-arc-road { position: absolute; left: 5%; right: 5%; top: 0; height: 300px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; overflow: hidden; }
.rb-band { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.rb-1 { background: #9b59b6; height: 100%; opacity: .6; } .rb-2 { background: #3498db; height: 88%; opacity: .6; } .rb-3 { background: #2ecc71; height: 75%; opacity: .6; } .rb-4 { background: #f1c40f; height: 62%; opacity: .6; } .rb-5 { background: #e67e22; height: 48%; opacity: .6; } .rb-6 { background: #e74c3c; height: 35%; opacity: .6; }
.lep-walker { position: absolute; bottom: 4px; left: 5%; font-size: 2.2rem; line-height: 1; filter: drop-shadow(0 0 12px rgba(245,197,24,.5)); transition: left .2s linear; will-change: left; z-index: 5; }
.phases-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.phase-card { background: rgba(5,15,7,.9); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 18px; text-align: center; transition: transform .3s, box-shadow .3s; transform-style: preserve-3d; }
.phase-card:hover { box-shadow: 0 12px 40px rgba(245,197,24,.2); }
.phase-dot { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.5rem; box-shadow: 0 0 22px rgba(245,197,24,.4); }
.ph-1 { background: linear-gradient(135deg, #27ae60, #2ecc71); } .ph-2 { background: linear-gradient(135deg, #8e44ad, #9b59b6); } .ph-3 { background: linear-gradient(135deg, #c8960c, var(--gold)); } .ph-4 { background: linear-gradient(135deg, #2980b9, #3498db); }
.phase-tag { font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--green-neon); font-weight: 900; margin-bottom: 6px; }
.phase-name { font-family: var(--font-head); font-size: 1.05rem; color: var(--gold); margin-bottom: 14px; line-height: 1.2; }
.phase-list { text-align: left; }
.phase-list li { font-size: .84rem; color: var(--white-dim); padding: 4px 0; font-weight: 600; display: flex; gap: 7px; align-items: flex-start; }
.phase-list li::before { content: '☘️'; font-size: .75rem; flex-shrink: 0; margin-top: 3px; }

#countdown { padding: 100px 0; position: relative; z-index: 1; }
.countdown-inner { text-align: center; max-width: 700px; margin: 0 auto; background: rgba(5,20,8,.7); border: 1px solid var(--border); border-radius: 32px; padding: 60px 40px; box-shadow: 0 0 80px rgba(245,197,24,.15), 0 0 160px rgba(245,197,24,.06); animation: countdown-pulse 3s ease-in-out infinite; }
@keyframes countdown-pulse { 0%,100% { box-shadow: 0 0 60px rgba(245,197,24,.12), 0 0 120px rgba(245,197,24,.04); } 50% { box-shadow: 0 0 100px rgba(245,197,24,.22), 0 0 200px rgba(245,197,24,.09); } }
.countdown-pot { font-size: 4rem; margin: 16px 0 28px; animation: float-coin 4s ease-in-out infinite; }
.countdown-display { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 20px; flex-wrap: wrap; }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cd-num { font-family: var(--font-pixel); font-size: clamp(1.8rem, 5vw, 3rem); color: var(--gold); background: rgba(0,0,0,.4); padding: 16px 20px; border-radius: 12px; min-width: 80px; text-align: center; border: 1px solid rgba(245,197,24,.3); text-shadow: 0 0 20px var(--gold-glow); animation: neon-flicker 8s linear infinite; }
.cd-lbl { font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--white-faint); font-weight: 800; }
.cd-sep { font-family: var(--font-pixel); font-size: 2rem; color: var(--gold); padding-bottom: 20px; animation: blink-sep 1s step-end infinite; }
@keyframes blink-sep { 0%,100%{opacity:1} 50%{opacity:.2} }
.cd-caption { font-size: .9rem; color: var(--white-faint); font-weight: 700; letter-spacing: 1px; }

#community { padding: 100px 0; position: relative; z-index: 1; overflow: hidden; }
.community-glow { position: absolute; top: 50%; left: 50%; width: 700px; height: 700px; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(34,197,94,.07) 0%, transparent 70%); pointer-events: none; z-index: 0; }
.community-inner { text-align: center; max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.hype-line { font-size: 1.1rem; color: var(--white-dim); font-weight: 700; line-height: 1.7; font-style: italic; margin: 16px 0 44px; }
.social-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; }
.social-tg { background: #229ED9; color: #fff; box-shadow: 0 0 24px rgba(34,158,217,.4); }
.social-tg:hover { box-shadow: 0 0 50px rgba(34,158,217,.7); }
.social-x { background: #111; color: #fff; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 0 20px rgba(255,255,255,.08); }
.social-x:hover { box-shadow: 0 0 40px rgba(255,255,255,.2); }
.social-dex { background: linear-gradient(135deg, #a855f7, #6366f1); color: #fff; box-shadow: 0 0 24px rgba(168,85,247,.4); }
.social-dex:hover { box-shadow: 0 0 50px rgba(168,85,247,.7); }

footer { background: rgba(2,8,3,.9); border-top: 1px solid rgba(245,197,24,.12); padding: 52px 24px 32px; text-align: center; position: relative; z-index: 1; }
.footer-logo { font-family: var(--font-head); font-size: 2rem; color: var(--gold); text-shadow: 0 0 16px var(--gold-glow); display: block; margin-bottom: 20px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--white-faint); font-size: .88rem; font-weight: 700; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-disclaimer { font-size: .78rem; color: rgba(240,253,244,.3); max-width: 520px; margin: 0 auto 14px; line-height: 1.7; }
.footer-copy { font-size: .75rem; color: rgba(240,253,244,.2); }

[data-tilt] { transform-style: preserve-3d; }

@media (max-width: 1024px) { .steps-grid { grid-template-columns: repeat(2,1fr); } .phases-grid { grid-template-columns: repeat(2,1fr); } .stats-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 860px) { .hero-bg-img { background-position: 68% center; } .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; } .hero-text { order: 2; padding: 28px 22px; } .hero-visual { order: 1; } .hero-btns { justify-content: center; } .contract-box { justify-content: center; } .about-grid { grid-template-columns: 1fr; gap: 40px; } .about-art { order: -1; } .tknmx-layout { grid-template-columns: 1fr; } .tknmx-cards { grid-template-columns: repeat(2,1fr); } .pot-column { align-items: center; } .nav-links, .btn-nav-buy { display: none; } .hamburger { display: flex; } .lore-panel { flex-direction: column; text-align: center; gap: 24px; padding: 28px; } .lore-panel-alt { flex-direction: column; } }
@media (max-width: 600px) { .hero-bg-overlay { background: linear-gradient(to bottom, transparent 0%, transparent 28%, rgba(5,9,7,.7) 52%, rgba(5,9,7,.92) 72%, #050f07 100%), linear-gradient(to right, rgba(5,9,7,.78) 0%, transparent 28%), linear-gradient(to left, rgba(5,9,7,.78) 0%, transparent 28%), linear-gradient(to bottom, rgba(5,9,7,.65) 0%, transparent 18%), radial-gradient(ellipse at 62% 46%, rgba(5,9,7,.12) 0%, rgba(5,9,7,.52) 55%, rgba(5,9,7,.82) 100%); } .steps-grid { grid-template-columns: 1fr; } .phases-grid { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: 1fr 1fr; } .tknmx-cards { grid-template-columns: 1fr 1fr; } .countdown-display { gap: 4px; } .cd-num { font-size: 1.4rem; padding: 10px 12px; min-width: 60px; } .mascot-coin { width: 240px; height: 240px; } }
@media (max-width: 400px) { .stats-grid { grid-template-columns: 1fr; } .hero-btns .btn { font-size: .9rem; padding: 12px 22px; } }

/* ══════════════════════════════════════════════
   TELEGRAM POPUP MODAL
══════════════════════════════════════════════ */
.tg-modal {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.tg-modal.open { opacity: 1; pointer-events: all; }
.tg-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
}
.tg-modal-box {
  position: relative; z-index: 1;
  background: linear-gradient(165deg, #071d0e 0%, #03100a 100%);
  border: 2px solid var(--gold);
  border-radius: 24px; padding: 28px 26px 24px;
  width: 380px; max-width: 90vw;
  box-shadow: 0 20px 80px rgba(0,0,0,.6), 0 0 40px rgba(245,197,24,.12);
  transform: scale(.9) translateY(20px);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.tg-modal.open .tg-modal-box { transform: scale(1) translateY(0); }
.tg-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(245,197,24,.2);
}
.tg-modal-title {
  font-family: var(--font-head); font-size: 1.3rem;
  color: var(--gold); text-shadow: 0 0 16px rgba(245,197,24,.4);
}
.tg-modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: var(--white-dim); cursor: pointer; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.tg-modal-close:hover { background: rgba(200,40,40,.35); color: #fff; }
.tg-modal-links { display: flex; flex-direction: column; gap: 12px; }
.tg-modal-link {
  display: flex; align-items: center; gap: 14px;
  background: rgba(34,158,217,.08); border: 1px solid rgba(34,158,217,.25);
  border-radius: 16px; padding: 16px 18px;
  color: var(--white); text-decoration: none;
  transition: background .22s, border-color .22s, transform .15s, box-shadow .22s;
}
.tg-modal-link:hover {
  background: rgba(34,158,217,.18); border-color: #229ED9;
  transform: scale(1.02); box-shadow: 0 0 20px rgba(34,158,217,.25);
}
.tg-link-icon { font-size: 1.6rem; flex-shrink: 0; }
.tg-link-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.tg-link-name { font-weight: 800; font-size: 1rem; color: var(--white); }
.tg-link-url { font-size: .78rem; color: rgba(34,158,217,.8); font-weight: 600; }
.tg-link-arrow {
  font-size: 1.2rem; color: var(--gold); font-weight: 900; flex-shrink: 0;
  transition: transform .2s;
}
.tg-modal-link:hover .tg-link-arrow { transform: translateX(4px); }
.tg-modal-link-primary {
  background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.35);
}
.tg-modal-link-primary:hover {
  background: rgba(34,197,94,.22); border-color: var(--green-neon);
  box-shadow: 0 0 20px rgba(34,197,94,.25);
}

/* ══════════════════════════════════════════════
   LIVE CHART — DEXSCREENER
══════════════════════════════════════════════ */
#chart { padding: 100px 0; position: relative; z-index: 1; }

/* Token info bar */
.dex-info-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-bottom: 32px;
}
.dex-info-item {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 22px; text-align: center;
  min-width: 140px; flex: 1; max-width: 200px;
  transition: box-shadow .3s, border-color .3s;
}
.dex-info-item:hover { border-color: var(--gold); box-shadow: 0 0 20px rgba(245,197,24,.15); }
.dex-info-label {
  font-size: .65rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green-neon); font-weight: 900; display: block; margin-bottom: 6px;
}
.dex-info-value {
  font-family: var(--font-pixel); font-size: .85rem; color: var(--gold);
  text-shadow: 0 0 8px rgba(245,197,24,.3);
}
.dex-info-value.positive { color: #22c55e; text-shadow: 0 0 8px rgba(34,197,94,.3); }
.dex-info-value.negative { color: #ef4444; text-shadow: 0 0 8px rgba(239,68,68,.3); }

/* Chart frame */
.dex-chart-wrap { max-width: 960px; margin: 0 auto; }
.dex-chart-frame {
  width: 100%; height: 500px;
  background: rgba(5,15,7,.6); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.4), 0 0 30px rgba(245,197,24,.06);
  position: relative;
}
.dex-chart-frame iframe {
  width: 100%; height: 100%; border: none; display: block;
}

/* Placeholder state */
.dex-chart-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 40px;
}
.dex-placeholder-icon { font-size: 5rem; animation: float-coin 4s ease-in-out infinite; }
.dex-placeholder-title {
  font-family: var(--font-head); font-size: 1.6rem; color: var(--gold);
  text-shadow: 0 0 20px var(--gold-glow);
}
.dex-placeholder-sub { font-size: .92rem; color: var(--white-dim); max-width: 380px; line-height: 1.7; font-weight: 600; }
.dex-placeholder-clovers { font-size: 1.4rem; opacity: .5; animation: pulse-fade 2s ease-in-out infinite; }

/* Links below chart */
.dex-chart-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 24px;
}
.btn-dex-link {
  background: var(--card-bg); border: 1px solid var(--border);
  color: var(--gold-light); padding: 10px 20px; border-radius: 30px;
  font-family: var(--font-body); font-size: .84rem; font-weight: 800;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .25s, border-color .25s, box-shadow .25s, transform .25s;
  cursor: pointer; text-decoration: none;
}
.btn-dex-link:hover {
  background: rgba(245,197,24,.1); border-color: var(--gold);
  box-shadow: 0 0 18px rgba(245,197,24,.25); transform: translateY(-2px);
}
.btn-dex-link.disabled { opacity: .4; pointer-events: none; }

@media (max-width: 700px) {
  .dex-chart-frame { height: 400px; }
  .dex-info-bar { gap: 8px; }
  .dex-info-item { min-width: 100px; padding: 10px 14px; }
  .dex-info-value { font-size: .72rem; }
}
@media (max-width: 480px) {
  .dex-chart-frame { height: 340px; border-radius: 14px; }
  .dex-info-item { flex: 1 1 calc(50% - 8px); max-width: none; }
}

/* ══════════════════════════════════════════════
   LUCKY THE LEPRECHAUN — FAQ ASSISTANT
   💬 Chat button → Leprechaun appears → Speech bubble FAQ
══════════════════════════════════════════════ */

/* ── Backdrop ─────────────────────────────────── */
#lucky-backdrop {
  position: fixed; inset: 0; z-index: 940;
  background: rgba(0,0,0,.5);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
#lucky-backdrop.active { opacity: 1; pointer-events: all; }

/* ── 💬 Chat button — fixed bottom-right ───────── */
#lucky-chat-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 960;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, #0d4a18, #1a7a2e);
  color: #fff;
  font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 28px rgba(34,197,94,.45), 0 0 0 4px rgba(34,197,94,.12);
  transition: transform .25s ease, box-shadow .25s ease, opacity .35s ease;
  animation: lucky-chat-pulse 3s ease-in-out infinite;
}
#lucky-chat-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 36px rgba(245,197,24,.55), 0 0 0 6px rgba(245,197,24,.15);
}
#lucky-chat-btn.hidden {
  opacity: 0; pointer-events: none; transform: scale(.4);
}
@keyframes lucky-chat-pulse {
  0%,100% { box-shadow: 0 4px 28px rgba(34,197,94,.45), 0 0 0 4px rgba(34,197,94,.12); }
  50%     { box-shadow: 0 4px 40px rgba(245,197,24,.5), 0 0 0 8px rgba(245,197,24,.1); }
}

/* ── FAQ scene wrapper ─────────────────────────── */
#lucky-faq {
  position: fixed;
  bottom: 0; left: 0;
  z-index: 950;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}
#lucky-faq.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Leprechaun character — slides up from below ── */
#lucky-char-wrap {
  position: fixed;
  bottom: -360px;
  left: 16px;
  z-index: 951;
  width: 280px;
  pointer-events: none;
  transition: bottom .6s cubic-bezier(.34, 1.56, .64, 1);
}
#lucky-faq.open #lucky-char-wrap {
  bottom: 0;
}
#lucky-char-inner {
  position: relative;
  animation: lucky-idle-bob 3s ease-in-out infinite;
}
#lucky-faq.open #lucky-char-inner.lucky-exit {
  animation: lucky-hat-tip .4s ease forwards;
}
#lucky-char-img {
  width: 100%; height: auto;
  display: block;
  filter: drop-shadow(0 0 24px rgba(34,197,94,.5)) drop-shadow(0 0 10px rgba(245,197,24,.3));
}
#lucky-char-fallback {
  width: 100%; height: 260px;
  font-size: 160px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 0 24px rgba(34,197,94,.5));
}
@keyframes lucky-idle-bob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}
@keyframes lucky-hat-tip {
  0%   { transform: rotate(0deg)   scale(1); }
  35%  { transform: rotate(-14deg) scale(1.06) translateY(-6px); }
  70%  { transform: rotate(6deg)   scale(1.02); }
  100% { transform: rotate(0deg)   scale(1); }
}

/* ── Sparkles around leprechaun ────────────────── */
.lucky-sparkle {
  position: absolute; pointer-events: none; font-size: 18px;
  animation: lucky-sparkle-float 3s ease-in-out infinite;
}
.lucky-s1 { top: 12%; right: 0; animation-delay: 0s; }
.lucky-s2 { top: 38%; right: -5px; animation-delay: 1.1s; }
.lucky-s3 { top: 5%; left: 10px; animation-delay: .6s; }
@keyframes lucky-sparkle-float {
  0%,100% { transform: translateY(0) scale(1); opacity: .6; }
  50%     { transform: translateY(-14px) scale(1.3); opacity: 1; }
}

/* ── Speech bubble FAQ panel ───────────────────── */
#lucky-panel {
  position: fixed;
  bottom: 80px;
  left: 280px;
  z-index: 952;
  width: 370px;
  max-height: min(540px, 78vh);
  overflow-y: auto; overflow-x: hidden;
  background: linear-gradient(165deg, #071d0e 0%, #03100a 100%);
  border: 2px solid var(--gold);
  border-radius: 28px;
  padding: 24px 22px 20px;
  box-shadow:
    0 16px 70px rgba(0,0,0,.55),
    0 0 30px rgba(245,197,24,.12),
    inset 0 1px 0 rgba(255,255,255,.04);
  color: var(--white);
  opacity: 0;
  transform: translateX(-30px) scale(.9);
  pointer-events: none;
  transition: opacity .35s .12s ease, transform .35s .12s cubic-bezier(.34, 1.56, .64, 1);
}
#lucky-panel::-webkit-scrollbar { width: 5px; }
#lucky-panel::-webkit-scrollbar-track { background: transparent; }
#lucky-panel::-webkit-scrollbar-thumb { background: rgba(245,197,24,.3); border-radius: 4px; }
#lucky-faq.open #lucky-panel {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: all;
}

/* ── Speech bubble tail — triangle pointing left to leprechaun ── */
.lucky-bubble-tail {
  position: absolute;
  bottom: 60px;
  left: -22px;
  width: 0; height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-right: 24px solid #071d0e;
  filter: drop-shadow(-4px 2px 3px rgba(0,0,0,.25));
}

/* ── Panel header ──────────────────────────────── */
.lucky-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(245,197,24,.2);
}
.lucky-panel-title {
  font-family: var(--font-head); font-size: 1.55rem;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(245,197,24,.45);
}
.lucky-close-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: var(--white-dim); cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.lucky-close-btn:hover { background: rgba(200,40,40,.35); color: #fff; }

/* ── Question buttons ──────────────────────────── */
#lucky-q-list { display: flex; flex-direction: column; gap: 8px; }
#lucky-q-list[hidden] { display: none; }
.lucky-q {
  background: rgba(13,74,24,.55);
  border: 1px solid rgba(34,197,94,.28);
  border-radius: 18px; padding: 12px 18px;
  color: var(--white); font-family: var(--font-body); font-size: .9rem; font-weight: 700;
  cursor: pointer; text-align: left; position: relative; overflow: hidden;
  transition: background .22s, border-color .22s, transform .15s, box-shadow .22s;
}
.lucky-q:hover {
  background: rgba(26,122,46,.7);
  border-color: var(--gold);
  transform: scale(1.02);
  box-shadow: 0 0 18px rgba(245,197,24,.25);
}
.lucky-q::after {
  content: ''; position: absolute; top: 0; left: -110%; width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245,197,24,.22), transparent);
  transition: left .42s ease; pointer-events: none;
}
.lucky-q:hover::after { left: 155%; }
.lucky-q:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Answer view ───────────────────────────────── */
#lucky-ans-view { display: flex; flex-direction: column; gap: 14px; }
#lucky-ans-view[hidden] { display: none; }
#lucky-ans-bubble {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(34,197,94,.2);
  border-left: 3px solid var(--green-neon);
  border-radius: 16px; padding: 16px 18px;
  min-height: 80px; font-size: .92rem; line-height: 1.75;
  color: var(--white-dim);
}
.lucky-ans-actions { display: flex; gap: 10px; }
#lucky-back, #lucky-close2 {
  flex: 1; padding: 11px 14px; border-radius: 18px;
  font-family: var(--font-body); font-size: .84rem; font-weight: 800;
  cursor: pointer; transition: background .2s ease, transform .15s ease;
}
#lucky-back {
  background: rgba(13,74,24,.7); border: 1px solid rgba(34,197,94,.38);
  color: var(--white);
}
#lucky-back:hover { background: rgba(26,122,46,.8); transform: scale(1.03); }
#lucky-close2 {
  background: rgba(245,197,24,.1); border: 1px solid rgba(245,197,24,.38);
  color: var(--gold-light);
}
#lucky-close2:hover { background: rgba(245,197,24,.2); transform: scale(1.03); }

/* ── Burst particles ───────────────────────────── */
.lucky-burst-particle {
  position: absolute; pointer-events: none; font-size: 17px; z-index: 10;
  animation: lucky-burst 1.1s ease-out forwards;
  animation-delay: var(--d, 0s);
}
@keyframes lucky-burst {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(calc(var(--dx, 0) * 70px), calc(var(--dy, -1) * 80px)) scale(.25); opacity: 0; }
}

/* ── Moon easter egg particles ─────────────────── */
.lucky-moon-particle {
  position: fixed; pointer-events: none; font-size: 20px; z-index: 9999;
  left: var(--x, 50vw); top: -28px;
  animation: lucky-moon-fall 1.9s ease-in forwards;
  animation-delay: var(--d, 0s);
}
@keyframes lucky-moon-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(380deg); opacity: 0; }
}

/* ── Mobile responsive — Lucky ─────────────────── */
@media (max-width: 700px) {
  #lucky-chat-btn { bottom: 20px; right: 20px; width: 56px; height: 56px; font-size: 26px; }
  #lucky-char-wrap { left: 8px; width: 180px; }

  /* Panel becomes bottom sheet on mobile */
  #lucky-panel {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    width: 100%;
    max-height: 72vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%) scale(1);
    transition: opacity .3s ease, transform .4s cubic-bezier(.32, .72, 0, 1);
  }
  #lucky-faq.open #lucky-panel { transform: translateY(0) scale(1); }
  .lucky-bubble-tail { display: none; }
}