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

:root {
  --gold: #f0c44a;
  --gold-bright: #ffe27a;
  --cream: #fff6e4;
  --ink: #fff4dc;
  --muted: #d4b98a;
  --night: #120e0a;
  --panel: #1c1610;
  --void: #0b0906;
  --inner-ear: #ffb5a8;
  --print: #fff4e4;
  --font-display: "Fredoka", "Archivo Black", Impact, sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

html { scroll-behavior: smooth; }

section[id],
#contract,
#chart {
  scroll-margin-top: 5.6rem;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(255, 213, 74, 0.14), transparent 36%),
    radial-gradient(ellipse at 90% 40%, rgba(255, 181, 168, 0.08), transparent 32%),
    var(--night);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.paw-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse fill='%23ffd54a' cx='50' cy='70' rx='23' ry='18'/%3E%3Cellipse fill='%23ffd54a' cx='20' cy='38' rx='11' ry='14' transform='rotate(-20 20 38)'/%3E%3Cellipse fill='%23ffd54a' cx='39' cy='22' rx='11' ry='14' transform='rotate(-7 39 22)'/%3E%3Cellipse fill='%23ffd54a' cx='61' cy='22' rx='11' ry='14' transform='rotate(7 61 22)'/%3E%3Cellipse fill='%23ffd54a' cx='80' cy='38' rx='11' ry='14' transform='rotate(20 80 38)'/%3E%3C/svg%3E");
  background-size: 150px 150px;
}

.paw-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  overflow: hidden;
}

.paw-stamp {
  position: absolute;
  width: var(--paw-size, 42px);
  height: var(--paw-size, 42px);
  margin: calc(var(--paw-size, 42px) / -2) 0 0 calc(var(--paw-size, 42px) / -2);
  color: var(--gold-bright);
  filter: drop-shadow(0 0 8px rgba(255, 213, 74, 0.4));
  transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--rot, 0deg)) scale(0.4);
  animation: paw-press var(--paw-life, 1.4s) ease-out forwards;
}

.paw-stamp.is-walk { color: rgba(255, 213, 74, 0.7); animation-name: paw-walk-fade; }
.paw-stamp svg { width: 100%; height: 100%; display: block; }

@keyframes paw-press {
  0% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(0.35); }
  16% { opacity: 0.95; transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(1.1); }
  42% { opacity: 0.82; transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(1); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(calc(var(--rot) + 8deg)) scale(0.88); }
}

@keyframes paw-walk-fade {
  0% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(0.5); }
  14% { opacity: 0.7; transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(1); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(0.92); }
}

.ear {
  position: absolute;
  top: -18px;
  z-index: 3;
  width: 30px;
  height: 32px;
  background: var(--gold-bright);
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.ear::after {
  content: "";
  position: absolute;
  inset: 7px 7px 4px;
  background: var(--inner-ear);
}

.ear-l {
  left: 22px;
  border-radius: 8px 90% 20% 90%;
  transform: rotate(-28deg);
}

.ear-l::after { border-radius: 6px 90% 20% 90%; }

.ear-r {
  right: 22px;
  border-radius: 90% 8px 90% 20%;
  transform: rotate(28deg);
}

.ear-r::after { border-radius: 90% 6px 90% 20%; }

.hero-cat { position: relative; }

/* Top nav */
.site-header {
  position: fixed;
  top: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(1120px, calc(100% - 1.6rem));
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem 0.55rem 0.75rem;
  background: rgba(11, 9, 6, 0.82);
  border: 2px solid rgba(255, 213, 74, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--gold-bright);
  min-width: 0;
}

.nav-logo {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold-bright);
}

.nav-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
}

.nav-socials { display: flex; gap: 0.35rem; }
.nav-social,
.nav-buy {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.75rem;
}

.nav-social {
  background: var(--gold-bright);
  color: #120800 !important;
}

.nav-buy {
  background: linear-gradient(135deg, #ffe27a, var(--gold));
  color: #140d04 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--gold-bright);
  border-radius: 99px;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.7rem;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 5.6rem 4vw 0;
}

.hero-banner {
  height: min(68vh, 620px);
  border-radius: 2.2rem;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-sheet {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 2rem));
  margin: -7.5rem auto 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  align-items: center;
  padding: 1.3rem 1.5rem 1.4rem;
  background: rgba(18, 14, 10, 0.92);
  border: 3px solid var(--gold-bright);
  border-radius: 2rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero-cat {
  width: 148px;
  flex-shrink: 0;
}

.hero-cat .ear {
  width: 36px;
  height: 40px;
  top: -16px;
}

.hero-logo,
.tile-portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--gold-bright);
  box-shadow: 0 0 28px rgba(255, 213, 74, 0.35);
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.92;
  margin-bottom: 0.55rem;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--inner-ear);
}

.hero-lead {
  color: var(--muted);
  max-width: 36em;
  margin-bottom: 1rem;
}

.hero-lead strong { color: var(--gold-bright); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.2rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.92rem;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.18s ease;
}

.btn:hover { transform: translateY(-3px) scale(1.03); }

.btn-primary {
  background: linear-gradient(135deg, #ffe27a, var(--gold));
  color: #140d04;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--gold);
}

.btn-copy {
  background: var(--gold-bright);
  color: #140d04;
  flex-shrink: 0;
}

.ticker-wrap {
  margin: 2rem 4vw 0;
  overflow: hidden;
  background: var(--gold-bright);
  color: #140d04;
  border-radius: 999px;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: max-content;
  padding: 0.7rem 0;
  font-family: var(--font-display);
  animation: slide 22s linear infinite;
}

@keyframes slide { to { transform: translateX(-50%); } }

main { position: relative; z-index: 1; }

/* Bento lore */
.bento {
  width: min(1120px, calc(100% - 8vw));
  margin: 4rem auto 0;
  display: grid;
  grid-template-columns: 1.45fr 0.75fr 0.95fr;
  grid-template-areas:
    "story story portrait"
    "story story portrait"
    "stat1 stat2 portrait";
  gap: 1rem;
}

.tile {
  background: var(--panel);
  border: 2px solid rgba(255, 213, 74, 0.35);
  border-radius: 1.6rem;
  padding: 1.4rem 1.3rem;
}

.tile-story { grid-area: story; }
.tile-story h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.95;
  margin-bottom: 0.9rem;
}
.tile-story p { color: var(--muted); margin-bottom: 0.7rem; }
.tile-story strong { color: var(--gold-bright); }

.tile-stat { display: grid; align-content: center; }
.tile-stat-a { grid-area: stat1; }
.tile-stat-b { grid-area: stat2; }
.tile-stat b {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold-bright);
}
.tile-stat span { color: var(--muted); }

.tile-portrait {
  grid-area: portrait;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1rem 1.2rem;
}
.tile-portrait .hero-cat { width: min(220px, 80%); }
.tile-portrait p {
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 2px dashed var(--gold);
}

/* Viral */
.viral {
  width: min(1240px, calc(100% - 6vw));
  margin: 5rem auto 0;
}

.viral-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16em, 0.85fr);
  gap: 1.2rem 2rem;
  align-items: end;
  margin-bottom: 1.6rem;
}

.viral-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.9;
}

.viral-aside p {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.viral-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.viral-files a {
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 213, 74, 0.5);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--gold-bright);
  background: rgba(255, 213, 74, 0.08);
}

.viral-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: start;
}

.embed-stage {
  position: relative;
  min-width: 0;
  margin-top: 18px;
  background: var(--panel);
  border: 3px solid var(--gold);
  border-radius: 1.5rem;
  overflow: visible;
  padding: 0.85rem;
}

.embed-stage-bar {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  margin-bottom: 0.7rem;
}

.embed-stage-bar a { color: var(--muted); text-decoration: none; }

.social-card {
  position: absolute;
  inset: 2.5rem 0.85rem 0.85rem;
  z-index: 2;
  background: #fff;
  color: #111;
  padding: 1rem;
  text-align: left;
  border-radius: 1rem;
}

.social-card header { display: grid; margin-bottom: 0.6rem; }
.social-card header span { color: #666; font-size: 0.85rem; }
.social-card p { font-weight: 600; margin-bottom: 0.8rem; }
.social-card a {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  color: #111;
}

.embed-frame {
  display: block;
  min-height: 320px;
  overflow: hidden;
  background: #fff;
  border-radius: 1.1rem;
}

.embed-stage.is-embedded .social-card { display: none; }
.embed-stage.is-embedded .embed-frame { min-height: 0; overflow: visible; }

.embed-featured .embed-frame,
.embed-featured.is-embedded .embed-frame {
  min-height: 620px;
}

.ig-embed .instagram-media {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.tiktok-embed {
  max-width: 100% !important;
  min-width: min(325px, 100%) !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.tiktok-embed-frame iframe,
.ig-embed iframe,
.tweet-embed iframe,
.tweet-embed twitter-widget {
  max-width: 100% !important;
}

blockquote.twitter-tweet { display: none; }

/* Gallery */
.gallery { margin: 5rem 0 0; }
.gallery-head {
  width: min(1120px, calc(100% - 8vw));
  margin: 0 auto 1.2rem;
}
.gallery-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
}
.gallery-head p:last-child {
  color: var(--muted);
  margin-top: 0.45rem;
  max-width: 28em;
}

.meme-wall {
  width: min(1120px, calc(100% - 8vw));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.meme-wall figure {
  margin: 0;
  background: var(--print);
  padding: 0.5rem 0.5rem 1.45rem;
  border-radius: 1.25rem;
  box-shadow: 8px 14px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}

.meme-wall figure:nth-child(odd) { transform: rotate(-1.4deg); }
.meme-wall figure:nth-child(even) { transform: rotate(1.6deg); }
.meme-wall figure:hover {
  transform: rotate(0deg) scale(1.03);
  z-index: 2;
}

.meme-wall img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.85rem;
  background: #111;
}

.meme-wall .span-wide { grid-column: span 2; }
.meme-wall .span-wide img { aspect-ratio: 16 / 9; }

.meme-wall figcaption {
  margin-top: 0.5rem;
  padding: 0 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #4a3822;
}

/* Trade */
.trade {
  width: min(1120px, calc(100% - 8vw));
  margin: 4.5rem auto 0;
  display: grid;
  gap: 1.2rem;
}

.trade-ca {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem 1.4rem;
  align-items: center;
  padding: 1.4rem 1.4rem 1rem;
  background: var(--panel);
  border: 3px solid var(--gold);
  border-radius: 1.8rem;
}

.trade-ca h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.9;
}

.ca-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.ca-address {
  flex: 1;
  font-family: var(--font-mono);
  font-weight: 700;
  word-break: break-all;
  color: var(--gold-bright);
}

.ca-address.is-tba {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: 0.18em;
  text-align: center;
}

.copy-toast {
  grid-column: 1 / -1;
  min-height: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold-bright);
  opacity: 0;
}

.copy-toast.show { opacity: 1; }

.chart-wrapper {
  min-height: 460px;
  background: #000;
  border: 3px solid var(--gold);
  border-radius: 1.6rem;
  overflow: hidden;
}

.chart-wrapper.is-tba {
  min-height: 260px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 213, 74, 0.16), transparent 58%),
    #000;
}

.chart-tba { text-align: center; color: var(--ink); padding: 2rem; }
.chart-tba span {
  display: block;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  font-size: 0.75rem;
}
.chart-tba strong {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold-bright);
}
.chart-tba p { color: var(--muted); }

.dexscreener-embed {
  width: 100%;
  height: 540px;
  border: 0;
  display: block;
}

.trade-chart .text-link { margin-top: 0.8rem; }

/* Buy */
.buy {
  width: min(1120px, calc(100% - 8vw));
  margin: 5rem auto 0;
  padding-bottom: 3rem;
}

.buy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 2rem;
}

.buy-path {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-bottom: 2rem;
}

.buy-path::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold-bright) 0 12px, transparent 12px 22px);
}

.buy-path li {
  position: relative;
  z-index: 1;
  padding: 0 0.6rem;
  text-align: center;
}

.buy-path b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  background: var(--gold-bright);
  color: #140d04;
  font-family: var(--font-display);
}

.buy-path h3 {
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
}

.buy-path p { color: var(--muted); font-size: 0.92rem; }

.footer {
  margin: 0 4vw 1.4rem;
  padding: 1.6rem 1.6rem 1.3rem;
  background: var(--void);
  border: 2px solid var(--gold);
  border-radius: 1.8rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem 1rem;
  align-items: center;
}

.footer img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold-bright);
}

.footer strong { display: block; font-family: var(--font-display); }
.footer span,
.footer p { color: var(--muted); font-size: 0.82rem; }
.footer p { grid-column: 1 / -1; max-width: 46em; }

.footer-links { display: flex; gap: 1rem; }
.footer-links a {
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .paw-layer, .ticker-track { animation: none; }
  .paw-layer { display: none; }
}

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 5.1rem;
    left: 0.8rem;
    right: 0.8rem;
    display: none;
    flex-direction: column;
    background: var(--void);
    padding: 0.8rem 0 1rem;
    border: 2px solid var(--gold);
    border-radius: 1.4rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1.1rem; }
  .nav-title { font-size: 0.86rem; }

  .hero { padding-top: 5.2rem; }
  .hero-banner { height: 42vh; border-radius: 1.4rem; }
  .hero-sheet {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    margin-top: -4.5rem;
    padding: 1.2rem;
  }
  .hero-actions { justify-content: center; }

  .bento,
  .viral-board,
  .trade-ca,
  .buy-path,
  .footer {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .tile-story,
  .tile-stat,
  .tile-portrait { grid-area: auto; }

  .buy-path::before { display: none; }
  .buy-path li { text-align: left; padding: 0.8rem 0; }
  .buy-path b { margin: 0 0 0.5rem; }

  .meme-wall {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-scroll { grid-auto-columns: minmax(240px, 78vw); padding-inline: 6vw; }
  .footer { justify-items: start; }
}

@media (max-width: 1100px) {
  .viral-intro,
  .viral-board {
    grid-template-columns: 1fr;
  }
  .viral-board {
    max-width: 440px;
    margin-inline: auto;
  }
}
