/* ============ TOKENS ============ */
:root{
  --cream: #f4ecdd;
  --paper: #fffaf0;
  --paper-2: #efe4cf;
  --ink: #1c140c;
  --ink-soft: #4a3c2c;
  --hoodie: #8a5a2f;
  --hoodie-dark: #5f3d1f;
  --hoodie-light: #c4915c;
  --skin: #d8d2c6;
  --green: #00c805;
  --green-dark: #049d38;
  --green-text: #037029;
  --red-text: #a3271c;
  --red: #e2483d;
  --shadow: 0 6px 0 var(--ink);
  --shadow-sm: 0 3px 0 var(--ink);
  --radius: 18px;
  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ticker-h: 36px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
ul{list-style:none}
button{font-family:inherit;cursor:pointer}

/* accessibility: respect reduced-motion preference */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* custom scrollbar */
html{ scrollbar-color: var(--hoodie) var(--cream); scrollbar-width: thin; }
::-webkit-scrollbar{ width:11px; height:11px; }
::-webkit-scrollbar-track{ background: var(--cream); }
::-webkit-scrollbar-thumb{ background: var(--hoodie); border-radius:999px; border:2px solid var(--cream); }
::-webkit-scrollbar-thumb:hover{ background: var(--hoodie-dark); }

/* scroll progress bar */
.scroll-progress{
  position: fixed; top:0; left:0; height:3px; width:0%;
  background: linear-gradient(90deg, var(--green), var(--hoodie));
  z-index: 1000; transition: width .08s linear;
}

/* scroll reveal */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .65s cubic-bezier(.2,.7,.2,1), transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible{ opacity:1; transform:none; }

/* scroll to top */
.scroll-top{
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--cream); border: 2.5px solid var(--cream);
  font-size: 1.2rem; box-shadow: 0 3px 0 rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.3);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transform: translateY(12px) scale(.85); pointer-events:none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.scroll-top.visible{ opacity:1; transform:none; pointer-events:auto; }
.scroll-top:hover{ background: var(--hoodie-dark); }
@media (max-width: 640px){
  .scroll-top{ width:42px; height:42px; bottom:1rem; right:1rem; font-size:1.05rem; }
}

.grain{
  position:fixed; inset:0; pointer-events:none; z-index:999; opacity:.05; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow{
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--hoodie-dark);
  margin-bottom: .5rem;
}

h1,h2,h3{ font-family: var(--font-display); font-weight:600; color:var(--ink); line-height:1.1; }

.ink-underline{
  position:relative;
  display:inline-block;
}
.ink-underline::after{
  content:"";
  position:absolute; left:0; right:0; bottom:.05em; height:.34em;
  background: var(--green);
  z-index:-1; opacity:.55; border-radius:3px;
}

/* ============ BUTTONS ============ */
.btn{
  position: relative; overflow: hidden;
  display:inline-flex; align-items:center; justify-content:center; gap:.4rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  font-weight: 700;
  font-size: .95rem;
  font-family: var(--font-display);
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn::before{
  content:""; position:absolute; top:0; bottom:0; left:-60%; width:40%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); transition: left .55s ease;
  pointer-events:none;
}
.btn:hover::before{ left: 130%; }
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.btn--buy{ background: var(--green); color: var(--ink); }
.btn--ghost{ background: var(--paper); color: var(--ink); }
.btn--sm{ padding:.55rem 1rem; font-size:.82rem; }
.btn--lg{ padding: 1.1rem 2.2rem; font-size: 1.1rem; }

/* ============ NAV ============ */
.nav{
  position: sticky; top: var(--ticker-h); z-index: 100;
  background: rgba(244,236,221,.88);
  backdrop-filter: blur(10px);
  border-bottom: 2.5px solid var(--ink);
  transition: box-shadow .25s ease, background .25s ease;
}
.nav.scrolled{ background: rgba(244,236,221,.97); box-shadow: 0 6px 18px rgba(28,20,12,.1); }

/* ============ BUY TICKER ============ */
.ticker{
  position: sticky; top:0; z-index: 101;
  background: var(--ink);
  border-bottom: 2.5px solid var(--ink);
  overflow: hidden; white-space: nowrap;
  height: var(--ticker-h);
  display:flex; align-items:center;
}
.ticker__track{
  display:inline-flex; align-items:center; gap: 2.6rem;
  padding-left: 2.6rem;
  animation: tickerScroll 60s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker__track{ animation-play-state: paused; }
@keyframes tickerScroll{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
.ticker__item{
  display:inline-flex; align-items:center; gap:.5rem;
  font-family: var(--font-mono); font-size:.76rem; font-weight:600;
  color: var(--cream);
}
.ticker__item strong{ color: var(--green); letter-spacing:.04em; }
.ticker__dot{
  width:7px; height:7px; border-radius:50%; background: var(--green);
  box-shadow: 0 0 6px var(--green); flex-shrink:0;
}
.nav__inner{
  max-width: 1200px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding: .85rem 1.5rem;
  gap: 1.5rem;
}
.brand{ display:flex; align-items:center; gap:.55rem; font-family:var(--font-display); font-weight:700; font-size:1.25rem; }
.brand__mark{ width:34px; height:34px; border-radius:50%; object-fit:cover; border:2px solid var(--ink); }
.footer__brand .brand__mark{ border-color: var(--cream); }
.nav__links{ display:flex; gap:1.6rem; align-items:center; }
.nav__links a{ font-weight:600; font-size:.92rem; position:relative; transition: color .15s ease; }
.nav__links a:hover{ color: var(--hoodie-dark); }
.nav__links a::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:3px;
  background: var(--green); border-radius:2px; transform: scaleX(0); transform-origin:center;
  transition: transform .2s ease;
}
.nav__links a:hover::after{ transform: scaleX(.6); }
.nav__links a.active{ color: var(--hoodie-dark); }
.nav__links a.active::after{ transform: scaleX(1); }
.nav__cta{ flex-shrink:0; }
.nav__actions{ display:flex; align-items:center; gap:.7rem; flex-shrink:0; }
.ca-pill{
  display:flex; align-items:center; gap:.4rem;
  background: var(--paper); border:2px solid var(--ink); border-radius:999px;
  padding:.5rem .8rem; font-family: var(--font-mono); font-size:.72rem; font-weight:700;
  color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, background .2s ease;
}
.ca-pill:hover{ transform: translateY(-2px); }
.ca-pill:active{ transform: translateY(1px); }
.ca-pill.copied{ background: var(--green); }
.ca-pill__label{ color: var(--ink-soft); text-transform:uppercase; letter-spacing:.05em; font-size:.62rem; }
.ca-pill.copied .ca-pill__label{ color: rgba(28,20,12,.65); }
.ca-pill__addr{ white-space:nowrap; }
.ca-pill__icon{ color: var(--ink-soft); flex-shrink:0; }
.ca-pill--mobile{ margin: 0 1.5rem 1rem; justify-content:center; }
.nav__burger{ display:none; flex-direction:column; gap:5px; background:none; border:none; padding:.4rem; }
.nav__burger span{ width:24px; height:3px; background:var(--ink); border-radius:2px; }
.nav__mobile{
  display:none; flex-direction:column; gap:0;
  border-top: 2.5px solid var(--ink);
  background: var(--paper);
}
.nav__mobile a{ padding: 1rem 1.5rem; font-weight:600; border-bottom:1px solid var(--paper-2); }
.nav__mobile .btn{ margin: 1rem 1.5rem; }
.nav__mobile.open{ display:flex; }

/* ============ HERO ============ */
.hero{
  position: relative;
  max-width: 1200px; margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display:grid; grid-template-columns: 1.15fr .85fr; gap: 2rem;
  align-items:center;
  overflow: hidden;
}

.hero__inner{ position:relative; z-index:1; }
.hero__title{ font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 1.1rem; }
.hero__sub{ font-size: 1.05rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 1.8rem; }
.hero__ctas{ display:flex; gap: .9rem; flex-wrap:wrap; margin-bottom: 2.2rem; }
.hero__stats{
  display:grid; grid-template-columns: repeat(4,1fr); gap: .8rem;
  background: var(--paper); border:2.5px solid var(--ink); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow);
}
.hstat{ display:flex; flex-direction:column; gap:.25rem; transition: transform .2s ease; }
.hstat:hover{ transform: translateY(-2px); }
.hstat__label{ font-family: var(--font-mono); font-size:.68rem; text-transform:uppercase; letter-spacing:.06em; color: var(--ink-soft); }
.hstat__value{ font-family: var(--font-mono); font-weight:700; font-size:1.05rem; }

.hero__art{ position:relative; z-index:1; display:flex; justify-content:center; }
.hero__art::before{
  content:""; position:absolute; inset: -10%;
  background: radial-gradient(circle, rgba(0,200,5,.22), transparent 65%);
  filter: blur(10px); z-index:-1;
  animation: glowPulse 5s ease-in-out infinite;
}
@keyframes glowPulse{ 0%,100%{ opacity:.6; transform:scale(1);} 50%{ opacity:1; transform:scale(1.08);} }
.mascot--hero{
  width: min(100%, 340px); border-radius: 28px; border: 3px solid var(--ink);
  box-shadow: var(--shadow); background: var(--paper);
  animation: float 4.5s ease-in-out infinite;
}
@keyframes float{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }

/* ============ SECTIONS ============ */
.section{ max-width:1200px; margin:0 auto; padding: 5rem 1.5rem; scroll-margin-top: calc(var(--ticker-h) + 76px); }
.section--flip{ background: var(--paper-2); max-width:none; border-top:2.5px solid var(--ink); border-bottom:2.5px solid var(--ink); }
.section--flip > *{ max-width:1200px; margin-left:auto; margin-right:auto; }
.section__head{ text-align:center; max-width:640px; margin: 0 auto 3rem; }
.section__head h2{ font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section__sub{ color:var(--ink-soft); margin-top:.6rem; }

/* about */
.about-center{ display:flex; justify-content:center; }
.about-card{
  background: var(--paper); border:2.5px solid var(--ink); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.about-card--lead{ max-width: 760px; }
.about-card:hover{ transform: translateY(-3px); box-shadow: 0 9px 0 var(--ink); }
.about-card p + p{ margin-top: 1rem; }

/* chain grid */
.chain-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.chain-card{
  background: var(--paper); border:2.5px solid var(--ink); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.chain-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.chain-card h3{ font-size:1.15rem; margin-bottom:.6rem; }
.chain-card p{ color: var(--ink-soft); font-size:.95rem; }
.chain-card--highlight{ background: var(--green); }
.chain-card--highlight p{ color: rgba(28,20,12,.75); }

/* jake */
.jake-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items:start; }
.jake-art{ display:flex; justify-content:center; }
.mascot--jake{
  width:100%; max-width:320px; border-radius: 22px; border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm); background: var(--paper);
}
.jake-copy{ max-width: 60ch; padding-top: .3rem; }
.jake-copy h2{ font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-top:.4rem; }
.jake-copy h2 + p{ margin-top:1.4rem; color: var(--ink-soft); }
.jake-copy p + p{ margin-top:1rem; color: var(--ink-soft); }
.jake-copy strong{ color: var(--ink); }
.jake-links{ display:flex; gap:.8rem; margin-top:1.5rem; flex-wrap:wrap; }

/* tracker */
.tracker-stats{
  display:grid; grid-template-columns: repeat(4,1fr); gap:1rem;
  margin-bottom: 1.5rem;
}
.tstat{
  background: var(--paper); border:2.5px solid var(--ink); border-radius: 14px;
  padding: 1rem 1.1rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, background-color .4s ease;
}
.tstat:hover{ transform: translateY(-3px); box-shadow: var(--shadow); }
.tstat.pulse{ animation: statPulse .7s ease; }
@keyframes statPulse{
  0%{ background-color: var(--paper); }
  35%{ background-color: #ddf6df; }
  100%{ background-color: var(--paper); }
}
.tstat__label{ display:block; font-family:var(--font-mono); font-size:.68rem; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft); margin-bottom:.35rem; }
.tstat__value{ display:block; font-family:var(--font-mono); font-weight:700; font-size:1.15rem; }
.tstat__value.up{ color: var(--green-text); }
.tstat__value.down{ color: var(--red-text); }
.tracker-controls{ display:flex; align-items:center; gap:1rem; flex-wrap:wrap; margin-bottom:2rem; font-size:.85rem; color:var(--ink-soft); }
.tracker-status{ font-family:var(--font-mono); }
.refresh-icon{ display:inline-block; transition: transform .3s ease; }
.refresh-icon.spinning{ animation: spin .8s linear infinite; }
@keyframes spin{ to{ transform: rotate(360deg); } }
.chart-embed{
  border:2.5px solid var(--ink); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow);
  height: 560px; background:var(--paper);
}
.chart-embed iframe{ width:100%; height:100%; border:none; }

/* memes */
.meme-grid{
  column-count: 3; column-gap: 1.2rem;
}
.meme-card{
  display:block; break-inside: avoid; margin-bottom: 1.2rem;
  background: var(--paper); border:2.5px solid var(--ink); border-radius: var(--radius);
  overflow:hidden; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.meme-card:hover{ transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow); }
.meme-card__img{ display:block; width:100%; height:auto; cursor: zoom-in; }

/* lightbox */
.lightbox{
  position: fixed; inset:0; z-index: 300;
  background: rgba(28,20,12,.9);
  display:flex; align-items:center; justify-content:center; padding: 3rem 1.5rem;
}
.lightbox.hidden{ display:none; }
.lightbox__img{
  max-width: min(100%, 900px); max-height: 88vh; border-radius: 14px;
  border: 3px solid var(--cream); box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox__close{
  position:absolute; top: 1.2rem; right: 1.2rem;
  background: var(--paper); border:2px solid var(--ink); border-radius:999px;
  width:42px; height:42px; font-weight:700; font-size:1.1rem;
}
.lightbox__nav{
  position:absolute; top:50%; transform: translateY(-50%);
  background: var(--paper); border:2px solid var(--ink); border-radius:999px;
  width:46px; height:46px; font-size:1.1rem;
}
.lightbox__nav--prev{ left: 1.2rem; }
.lightbox__nav--next{ right: 1.2rem; }
@media (max-width: 640px){
  .lightbox__nav{ width:38px; height:38px; }
  .lightbox__nav--prev{ left:.5rem; }
  .lightbox__nav--next{ right:.5rem; }
  .lightbox__close{ top:.6rem; right:.6rem; }
}

/* merch — all sample photos are portrait shots, so cells match that aspect
   ratio (close to the images' own ~0.7-0.8 ratio) instead of forcing them
   into a wide landscape frame, which was cropping most of each photo away. */
.merch-gallery{
  display:grid; grid-template-columns: repeat(2,1fr); gap: 1.2rem; margin-bottom: 2.6rem;
}
.merch-gallery__item{
  aspect-ratio: 3/4;
  border:2.5px solid var(--ink); border-radius: var(--radius); overflow:hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  position:relative; background: var(--paper-2);
}
.merch-gallery__item:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.merch-gallery__item img{
  width:100%; height:100%; object-fit:cover; object-position: center top; display:block;
  transition: transform .4s ease;
}
.merch-gallery__item:hover img{ transform: scale(1.05); }
.merch-cta{ display:flex; justify-content:center; }
@media (max-width: 560px){
  .merch-gallery{ grid-template-columns: 1fr; gap:.8rem; }
}

/* community builds */
.community-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.community-card{
  display:block; background: var(--paper); border:2.5px solid var(--ink); border-radius: var(--radius);
  overflow:hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.community-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.community-builder{
  display:flex; align-items:center; gap:.5rem; margin-top:.7rem; padding: 0 .2rem;
  font-size:.86rem; color: var(--ink-soft);
}
.community-builder:hover{ color: var(--ink); }
.community-builder__avatar{ width:28px; height:28px; border-radius:50%; border:1.5px solid var(--ink); display:block; }
.community-card__chrome{
  display:flex; align-items:center; gap:.5rem; padding:.6rem .8rem;
  background: var(--paper-2); border-bottom: 2.5px solid var(--ink);
}
.community-card__dot{ width:9px; height:9px; border-radius:50%; background: var(--ink); opacity:.25; }
.community-card__url{
  font-family: var(--font-mono); font-size:.72rem; color: var(--ink-soft);
  margin-left:.3rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.community-card__shot-wrap{ aspect-ratio: 8/5; overflow:hidden; background: var(--paper-2); }
.community-card__shot{
  width:100%; height:100%; object-fit:cover; object-position: top; display:block;
  transition: transform .4s ease;
}
.community-card:hover .community-card__shot{ transform: scale(1.04); }
.community-card__body{ padding: 1.1rem 1.2rem 1.3rem; }
.community-card__title{ font-family: var(--font-display); font-weight:600; font-size:1.1rem; display:flex; align-items:center; gap:.4rem; }
.community-card__title .arrow{ font-size:.85rem; opacity:.5; transition: transform .2s ease, opacity .2s ease; }
.community-card:hover .community-card__title .arrow{ transform: translate(3px,-3px); opacity:1; }
.community-card__desc{ margin-top:.4rem; font-size:.88rem; color: var(--ink-soft); }
@media (max-width: 600px){
  .community-grid{ grid-template-columns: 1fr; }
}

/* game */
.game-wrap{ display:grid; grid-template-columns: auto 1fr; gap:2rem; align-items:start; justify-content:center; min-width:0; }
.game-frame{
  position:relative; border:2.5px solid var(--ink); border-radius: var(--radius);
  overflow:hidden; box-shadow: var(--shadow); background: #eef6ea;
  width: 480px; max-width: 100%; min-width:0;
}
#gameCanvas{ display:block; width:100%; height:auto; background: linear-gradient(180deg,#eef6ea,#f8f1e0); }
.game-overlay{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap: .8rem; background: rgba(244,236,221,.92); text-align:center; padding: 1.5rem;
}
.game-overlay__title{ font-family: var(--font-display); font-size:1.6rem; font-weight:700; }
.game-overlay__sub{ color: var(--ink-soft); max-width: 34ch; font-size:.9rem; }
.game-overlay.hidden{ display:none; }
.game-overlay--pause{ background: rgba(28,20,12,.78); }
.game-overlay--pause .game-overlay__title{ color: var(--cream); }
.game-side{ display:flex; flex-direction:column; gap:1.2rem; min-width:220px; }
.game-score{ display:flex; gap:1.5rem; background:var(--paper); border:2.5px solid var(--ink); border-radius:14px; padding:1rem 1.2rem; box-shadow:var(--shadow-sm); }
.game-score__label{ display:block; font-family:var(--font-mono); font-size:.7rem; text-transform:uppercase; color:var(--ink-soft); }
.game-score__value{ display:block; font-family:var(--font-mono); font-weight:700; font-size:1.4rem; }
.game-tip{ font-size:.88rem; color:var(--ink-soft); }
.game-controls-mobile{ display:none; gap:.8rem; }

/* game HUD */
.game-hud{
  max-width: 1200px; margin: 0 auto 1rem; padding: 0 1.5rem;
  display:flex; flex-wrap:wrap; gap: .8rem; align-items:center; justify-content:center;
}
.ghud-item{
  background: var(--paper); border:2px solid var(--ink); border-radius: 12px;
  padding: .5rem .9rem; display:flex; flex-direction:column; gap:.1rem; min-width:84px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.ghud-item:hover{ transform: translateY(-2px); }
.ghud-item.pulse{ animation: statPulse .7s ease; }
.ghud-label{ font-family: var(--font-mono); font-size:.62rem; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-soft); }
.ghud-value{ font-family: var(--font-mono); font-weight:700; font-size:1.05rem; }
.ghud-item--goal .ghud-value{ color: var(--hoodie-dark); }
.ghud-item--wallet{ background: var(--green); }
.ghud-item--wallet .ghud-label{ color: #0d3d08; }
.ghud-item--combo{ background: #ffe9a8; border-color: var(--ink); }
.ghud-item--combo.hidden{ display:none; }
.ghud-item--combo .ghud-value{ color: #8a5a00; }
.ghud-item--combo.tierup{ animation: comboTierUp .4s ease; }
@keyframes comboTierUp{ 0%{ transform:scale(1);} 40%{ transform:scale(1.25) rotate(-3deg);} 100%{ transform:scale(1);} }
.ghud-icon-btn{
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--shadow-sm);
  font-size: 1.1rem; display:flex; align-items:center; justify-content:center;
  transition: transform .15s ease;
}
.ghud-icon-btn:hover{ transform: translateY(-2px); }
.ghud-icon-btn:active{ transform: translateY(1px); }

/* boss bar */
.boss-bar-wrap{
  max-width: 480px; margin: 0 auto 1rem; padding: 0 1.5rem;
  display:flex; flex-direction:column; gap:.3rem; align-items:center;
}
.boss-bar-wrap.hidden{ display:none; }
.boss-bar-label{ font-family: var(--font-mono); font-weight:700; font-size:.78rem; letter-spacing:.06em; color: var(--red-text); }
.boss-bar-track{
  width:100%; height:16px; background: var(--paper); border:2.5px solid var(--ink); border-radius:999px; overflow:hidden;
}
.boss-bar-fill{ height:100%; width:100%; background: linear-gradient(90deg, var(--red), #ff8a7a); transition: width .25s ease; }
.boss-bar-fill.low{ animation: bossLow .8s ease-in-out infinite; }
@keyframes bossLow{ 0%,100%{ filter:brightness(1);} 50%{ filter:brightness(1.35);} }
.boss-bar-label.shake{ animation: shakeText .4s ease; }
@keyframes shakeText{ 0%,100%{ transform:translateX(0);} 25%{ transform:translateX(-3px);} 75%{ transform:translateX(3px);} }

/* shop modal */
.shop-modal{
  position: fixed; inset:0; z-index: 200;
  background: rgba(28,20,12,.55);
  display:flex; align-items:center; justify-content:center; padding: 1.5rem;
}
.shop-modal.hidden{ display:none; }
.shop-panel{
  background: var(--cream); border:2.5px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); max-width: 640px; width:100%; max-height: 85vh; overflow-y:auto;
  padding: 1.6rem;
}
.shop-panel__head{ display:flex; align-items:center; gap:1rem; margin-bottom: 1.2rem; flex-wrap:wrap; }
.shop-panel__head h3{ font-size:1.4rem; flex:1; }
.shop-wallet{ font-size:.85rem; color: var(--ink-soft); }
.shop-wallet strong{ color: var(--green-text); font-family: var(--font-mono); }
.shop-close{
  background: var(--paper); border:2px solid var(--ink); border-radius:999px;
  width:32px; height:32px; font-weight:700; line-height:1;
}
.shop-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.shop-card{
  background: var(--paper); border:2.5px solid var(--ink); border-radius: 14px;
  padding: 1rem; display:flex; flex-direction:column; gap:.5rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.shop-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow); }
.shop-card__title{ font-weight:700; font-size:.95rem; }
.shop-card__desc{ font-size:.8rem; color: var(--ink-soft); flex:1; }
.shop-card__tier{ font-family: var(--font-mono); font-size:.72rem; color: var(--hoodie-dark); }
.shop-card__buy{ align-self:flex-start; }
.shop-card__buy:disabled{ opacity:.45; cursor:not-allowed; transform:none !important; }
.shop-stats{
  display:grid; grid-template-columns: repeat(3,1fr); gap:.8rem; margin-top:1.2rem;
}
.shop-stat{
  background: var(--ink); border-radius: 12px; padding: .7rem .5rem; text-align:center;
}
.shop-stat__label{ display:block; font-family:var(--font-mono); font-size:.62rem; text-transform:uppercase; color:rgba(244,236,221,.6); }
.shop-stat__value{ display:block; font-family:var(--font-mono); font-weight:700; font-size:1.15rem; color:var(--cream); margin-top:.2rem; }
.shop-note{ margin-top:1.2rem; font-size:.78rem; color: var(--ink-soft); }
@media (max-width: 480px){
  .shop-stats{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .shop-grid{ grid-template-columns:1fr; }
  .game-hud{ gap:.5rem; }
  .ghud-item{ min-width:72px; padding:.4rem .6rem; }
}

/* ============ FOOTER ============ */
.footer{ background: var(--ink); color: var(--cream); padding: 3rem 1.5rem 2rem; }
.footer__inner{ max-width:1200px; margin:0 auto; display:flex; flex-direction:column; gap:1.5rem; align-items:center; text-align:center; }
.footer__brand{ display:flex; align-items:center; gap:.5rem; font-family:var(--font-display); font-weight:700; font-size:1.2rem; }
.footer__links{ display:flex; gap:1.4rem; flex-wrap:wrap; justify-content:center; font-size:.9rem; }
.footer__links a{ opacity:.85; }
.footer__links a:hover{ opacity:1; color: var(--green); }
.footer__disclaimer{ max-width: 640px; font-size:.78rem; opacity:.55; line-height:1.6; }
.footer__copy{ font-size:.78rem; opacity:.5; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px){
  .hero{ grid-template-columns:1fr; padding-top:2.5rem; }
  .hero__art{ order:-1; }
  .mascot--hero{ max-width:220px; }
  .hero__stats{ grid-template-columns: repeat(2,1fr); }
  .jake-grid{ grid-template-columns:1fr; }
  .jake-art{ order:-1; }
  .chain-grid{ grid-template-columns:1fr; }
  .tracker-stats{ grid-template-columns: repeat(2,1fr); }
  .meme-grid{ column-count: 2; }
  .game-wrap{ grid-template-columns:1fr; justify-items:center; width:100%; }
  .game-frame{ width:100%; max-width:480px; }
  .game-side{ width:100%; min-width:0; max-width:480px; }
  .nav__links{ display:none; }
  .nav__actions{ display:none; }
  .nav__burger{ display:flex; }
  .game-controls-mobile{ display:flex; }
}
@media (max-width: 560px){
  .meme-grid{ column-count: 1; }
  .hero__stats{ grid-template-columns: repeat(2,1fr); }
  .tracker-stats{ grid-template-columns: repeat(2,1fr); }
  .section{ padding: 3.5rem 1.2rem; }
}
