/* =========================================================
   $SHREK — cartoon / sticker vibe
   ========================================================= */
:root {
  --bg-0: #1e2f26;
  --bg-1: #2a4036;
  --ink: #152018;
  --surface: rgba(255, 255, 255, 0.1);
  --surface-2: rgba(255, 248, 220, 0.14);
  --border: rgba(21, 32, 24, 0.55);
  --border-strong: rgba(255, 200, 90, 0.55);

  --text: #fff9ec;
  --text-muted: #b8d4c4;
  --text-faint: rgba(184, 212, 196, 0.9);

  --accent: #dfff4f;
  --accent-warm: #ffb54d;
  --accent-dim: #c8e830;
  --accent-sky: #8ce0ff;
  --accent-sky-dim: rgba(140, 224, 255, 0.5);
  --accent-cyan: var(--accent-sky);
  --accent-cyan-dim: var(--accent-sky-dim);
  --grid-line: rgba(255, 200, 120, 0.12);
  --glow-primary: 0 4px 0 rgba(21, 32, 24, 0.35);
  --glow-cyan: 0 3px 0 rgba(21, 32, 24, 0.3);
  --cartoon-shadow: 5px 5px 0 var(--ink);
  --cartoon-shadow-sm: 3px 3px 0 var(--ink);

  --container: 1040px;
  --header-h: 64px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;

  --ease: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 180ms;
  --dur-slow: 320ms;

  --shadow-sm: 3px 3px 0 rgba(21, 32, 24, 0.35);
  --shadow: 5px 5px 0 rgba(21, 32, 24, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body.site {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-0);
  overflow-x: hidden;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}
:focus-visible {
  outline: 3px solid var(--accent-warm);
  outline-offset: 3px;
  border-radius: 10px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #000;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 9999;
}
.skip-link:focus {
  left: 10px;
}

/* Background — cinematic photo + veil + stars */
.fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg-0);
}
.fx__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("./assets/hero-shrek-cinematic.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 56% 22%;
}
.fx__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    165deg,
    rgba(30, 47, 38, 0.82) 0%,
    rgba(36, 55, 45, 0.72) 40%,
    rgba(28, 42, 34, 0.58) 65%,
    rgba(24, 38, 30, 0.85) 100%
  );
}
.fx__stars {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0.12;
}
.fx__blob {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.22;
}
.fx__blob--a {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: rgba(255, 200, 120, 0.18);
}
.fx__blob--b {
  width: 360px;
  height: 360px;
  bottom: -100px;
  left: -60px;
  background: rgba(180, 255, 140, 0.12);
}

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

.hero,
.section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero > .container,
.section > .container {
  position: relative;
  z-index: 1;
}
.hero::before,
.hero::after,
.section::before,
.section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero::before,
.hero::after {
  opacity: 1;
}

/* Per-section cartoon backdrop layers */
#home.hero::before {
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 210, 120, 0.35) 0%, transparent 38%),
    radial-gradient(circle at 88% 65%, rgba(190, 255, 150, 0.22) 0%, transparent 42%),
    radial-gradient(ellipse 90% 55% at 50% 100%, rgba(120, 200, 160, 0.28) 0%, transparent 50%);
}
#home.hero::after {
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12) 2px,
    transparent 2.5px
  );
  background-size: 36px 36px;
  opacity: 0.35;
  mix-blend-mode: soft-light;
}
#about.about-section::before {
  background-image: radial-gradient(circle 380px at 25% 35%, rgba(130, 200, 150, 0.22), transparent 68%),
    radial-gradient(circle 420px at 78% 65%, rgba(90, 185, 130, 0.2), transparent 70%);
  background-size: 140% 140%;
  background-position: 10% 20%, 90% 80%;
  animation: aboutAurora 16s ease-in-out infinite alternate;
}
#about.about-section::after {
  background-image: radial-gradient(circle, rgba(8, 24, 18, 0.45) 2px, transparent 2.5px);
  background-size: 28px 28px;
  animation: aboutDotScroll 22s linear infinite;
  opacity: 0.55;
}
#tokenomics.section {
  background: linear-gradient(180deg, rgba(32, 48, 40, 0.65) 0%, rgba(26, 40, 32, 0.45) 100%);
}
#tokenomics.section::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 220, 140, 0.2) 2px, transparent 2.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 15%, transparent 70%);
  opacity: 0.55;
}
#tokenomics.section::after {
  background: radial-gradient(circle at 0% 50%, rgba(255, 180, 100, 0.12), transparent 45%),
    radial-gradient(circle at 100% 40%, rgba(160, 230, 255, 0.1), transparent 42%);
}
#chart.section--alt {
  background: linear-gradient(180deg, rgba(36, 52, 44, 0.75) 0%, rgba(28, 42, 36, 0.55) 100%);
  border-block-color: rgba(255, 200, 100, 0.35);
}
#chart.section::before {
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 22px,
    rgba(255, 200, 120, 0.06) 22px,
    rgba(255, 200, 120, 0.06) 24px
  );
  opacity: 0.7;
}
#chart.section::after {
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 200, 0.15), transparent 45%);
}
#how.section {
  background: linear-gradient(180deg, rgba(28, 44, 36, 0.5) 0%, rgba(32, 50, 42, 0.7) 100%);
}
#how.section::before {
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0 3px,
    transparent 3px,
    transparent 56px
  );
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  opacity: 0.5;
}
#how.section::after {
  background: radial-gradient(circle at 85% 85%, rgba(255, 190, 120, 0.18), transparent 42%);
}
#gallery.section--alt {
  background: linear-gradient(180deg, rgba(34, 50, 42, 0.72) 0%, rgba(26, 40, 34, 0.55) 100%);
  border-block-color: rgba(180, 255, 200, 0.22);
}
#gallery.section::before {
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 240, 180, 0.12) 0%, transparent 55%);
  background-size: 80px 80px;
  opacity: 0.45;
}
#gallery.section::after {
  background: radial-gradient(circle at 75% 10%, rgba(255, 160, 120, 0.14), transparent 38%);
}
#community.section {
  background: radial-gradient(ellipse 110% 90% at 50% 110%, rgba(200, 255, 140, 0.15), transparent 52%),
    linear-gradient(180deg, rgba(26, 40, 32, 0.45) 0%, rgba(30, 46, 38, 0.65) 100%);
}
#community.section::before {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 36px,
    rgba(255, 255, 255, 0.04) 36px,
    rgba(255, 255, 255, 0.04) 38px
  );
  opacity: 0.45;
}
#community.section::after {
  background: radial-gradient(circle at 50% 0%, rgba(255, 220, 150, 0.18), transparent 48%);
}

/* Scroll progress */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  z-index: 200;
  background: rgba(21, 32, 24, 0.35);
  border-radius: 0 0 8px 8px;
}
.progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent), #fff59a);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 0 rgba(21, 32, 24, 0.35);
  transition: width 80ms linear;
}

/* Header */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(36, 54, 44, 0.9);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.topbar.is-scrolled {
  background: rgba(30, 46, 38, 0.96);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.14);
}
.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: cover;
  border: 3px solid var(--ink);
  box-shadow: var(--cartoon-shadow-sm);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 2px;
}
.brand__name {
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand__row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.brand__symbol {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav__link {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav__link:hover {
  color: var(--ink);
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--cartoon-shadow-sm);
}
.topbar__cta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

/* Buttons */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px;
  border: 3px solid var(--ink);
  color: var(--text);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover {
  transform: translate(-2px, -2px);
}
.btn:active {
  transform: translate(1px, 1px);
}
.btn--primary {
  background: linear-gradient(180deg, #f6ff9a 0%, var(--accent) 45%, #c8e830 100%);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: var(--cartoon-shadow);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #ffffb0 0%, #e8ff6a 50%, var(--accent-dim) 100%);
  box-shadow: 7px 7px 0 var(--ink);
}
.btn--primary:active {
  box-shadow: var(--cartoon-shadow-sm);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--ink);
  color: var(--text);
  box-shadow: var(--cartoon-shadow-sm);
}
.btn--ghost:hover {
  background: rgba(255, 230, 180, 0.15);
  border-color: var(--ink);
  box-shadow: var(--cartoon-shadow);
}
.btn--sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 999px;
  border-width: 3px;
}
.btn--lg {
  padding: 15px 22px;
  font-size: 16px;
  border-radius: 999px;
  border-width: 3px;
}
.btn__icon {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Mobile menu */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--cartoon-shadow-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 49;
  padding: 16px 20px 20px;
  transform: translateY(-110%);
  transition: transform var(--dur-slow) var(--ease-out);
  background: rgba(42, 64, 54, 0.98);
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.12);
  pointer-events: none;
}
.mobile[aria-hidden="false"] {
  transform: translateY(0);
  pointer-events: auto;
}
.mobile__panel {
  display: grid;
  gap: 6px;
}
.mobile__link {
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid var(--ink);
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--cartoon-shadow-sm);
}
.mobile__row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.mobile__row .btn {
  flex: 1;
  padding: 12px 14px;
}
.mobile__scrim {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.mobile__scrim.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Hero — single column, centered (mascot hidden; Shrek lives in .fx__photo) */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 40px 0 64px;
}
.hero .hero__art {
  display: none;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  width: 100%;
}
.hero__copy {
  max-width: 520px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__title {
  margin: 0 0 12px;
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
.hero__titleTop {
  display: block;
  font-size: clamp(38px, 5.2vw, 56px);
  color: var(--text);
  font-weight: 700;
  text-shadow: 3px 3px 0 rgba(21, 32, 24, 0.35);
}
.hero__titleBottom {
  display: block;
  font-size: clamp(50px, 8.5vw, 92px);
  color: var(--accent);
  font-weight: 700;
  text-shadow: 4px 4px 0 #2a5c40, 8px 8px 0 rgba(21, 32, 24, 0.25);
}
.hero__subtitle {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  max-width: 42ch;
}
.hero__subtitle strong {
  color: var(--text);
  font-weight: 600;
}
.hero__cta-wrap {
  display: grid;
  grid-template-columns: minmax(0, max-content);
  width: max-content;
  max-width: 100%;
  justify-items: stretch;
  margin-inline: auto;
  gap: 10px;
}
.hero .hero__cta-wrap .hero__actions {
  margin-bottom: 0;
  justify-content: center;
}
.hero .hero__cta-wrap .ca {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

/* Home hero — ~20% larger type, buttons, mint row */
.hero .hero__inner {
  gap: 34px;
}
.hero .hero__copy {
  max-width: 624px;
}
.hero .hero__title {
  margin: 0 0 14px;
}
.hero .hero__titleTop {
  font-size: clamp(45.6px, 6.24vw, 67.2px);
  text-shadow: 4px 4px 0 rgba(21, 32, 24, 0.35);
}
.hero .hero__titleBottom {
  font-size: clamp(60px, 10.2vw, 110.4px);
  text-shadow: 5px 5px 0 #2a5c40, 10px 10px 0 rgba(21, 32, 24, 0.25);
}
.hero .hero__subtitle {
  font-size: 22px;
  max-width: 50ch;
}
.hero .hero__actions {
  gap: 12px;
  margin-bottom: 10px;
}
.hero .hero__actions .btn {
  font-size: 18px;
  padding: 18px 26px;
}
.hero .hero__actions .btn__icon {
  width: 19px;
  height: 19px;
}
.hero .ca {
  gap: 10px;
  padding: 11px 14px 11px 16px;
  border-radius: 19px;
}
.hero .ca__value {
  font-size: 13px;
}
.hero .ca__copy {
  font-size: 13px;
  padding: 8px 14px;
}
.hero .ca__copy svg {
  width: 14px;
  height: 14px;
}

/* Contract address row */
.ca {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 16px;
  border-radius: 20px;
  background: rgba(255, 250, 235, 0.12);
  border: 3px solid var(--ink);
  box-shadow: var(--cartoon-shadow-sm);
  max-width: 100%;
  min-width: 0;
  width: 100%;
}
.ca__value {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ca__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-warm);
  border: 3px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.ca__copy:hover {
  background: #ffc97a;
  transform: translate(-1px, -1px);
}
.ca__copy svg {
  width: 14px;
  height: 14px;
}
.ca__copy.is-copied {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--ink);
}

/* Hero art */
.hero__art {
  order: -1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mascot {
  position: relative;
  width: min(260px, 70vw);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.mascot__halo {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 120, 0.35), transparent 65%);
  filter: blur(28px);
}
.mascot__orb {
  position: relative;
  width: 78%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 248, 220, 0.12);
  border: 3px solid var(--ink);
  box-shadow: var(--cartoon-shadow-sm);
}
.mascot__logo {
  width: 76%;
  height: 76%;
  object-fit: cover;
  border-radius: 50%;
}
.mascot__shrek,
.mascot__donkey {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}
.mascot__shrek {
  width: 32%;
  bottom: -2%;
  left: -2%;
  transform: rotate(-3deg);
}
.mascot__donkey {
  width: 26%;
  top: 4%;
  right: -2%;
  transform: rotate(5deg);
}

/* Sections */
.section {
  padding: clamp(48px, 8vw, 88px) 0;
}
.section--alt {
  background: rgba(40, 58, 48, 0.55);
  border-block: 4px solid var(--ink);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.section__title {
  margin: 0;
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-shadow: 3px 3px 0 rgba(21, 32, 24, 0.35);
}
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.section__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
  max-width: 40ch;
}

/* About — animated swamp strip + dossier (no white/cream) */
.about-section {
  background: linear-gradient(125deg, #142820, #1a3328, #234d3d, #1e3a30, #163024) !important;
  background-size: 400% 400%;
  animation: aboutSectionGradient 18s ease infinite;
  border-block: 4px solid var(--ink) !important;
}
@media (prefers-reduced-motion: reduce) {
  .about-section {
    animation: none;
    background-size: 100% 100%;
  }
  #about.about-section::before,
  #about.about-section::after {
    animation: none;
  }
}
@keyframes aboutSectionGradient {
  0%,
  100% {
    background-position: 0% 40%;
  }
  50% {
    background-position: 100% 60%;
  }
}
.about-dossier {
  margin-top: 4px;
  padding: clamp(22px, 4vw, 34px) clamp(18px, 4vw, 30px) clamp(26px, 5vw, 38px);
  border-radius: 28px;
  background-color: #15221c;
  background-image: radial-gradient(circle at 2px 2px, rgba(0, 0, 0, 0.28) 2px, transparent 2.5px);
  background-size: 18px 18px;
  border: 4px solid var(--ink);
  box-shadow: var(--cartoon-shadow);
}
.about-dossier__title {
  margin: 0 0 clamp(18px, 3vw, 26px);
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--accent);
}
.about-dossier__titleThe {
  display: inline-block;
  margin-right: 0.28em;
  padding-bottom: 4px;
  border-bottom: 4px solid #e84d3d;
}
.about-dossier__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 4vw, 40px);
  align-items: start;
}
@media (min-width: 800px) {
  .about-dossier__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: clamp(28px, 4vw, 48px);
    align-items: center;
  }
}
.about-dossier__figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: clamp(12px, 3vw, 24px);
  border-radius: 22px;
  border: 3px solid rgba(21, 32, 24, 0.35);
  background: rgba(8, 18, 14, 0.28);
}
.about-dossier__img {
  width: min(100%, 320px);
  max-height: min(48vh, 400px);
  height: auto;
  object-fit: contain;
  transform-origin: 50% 88%;
  animation: aboutShrekTilt 5.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .about-dossier__img {
    animation: none !important;
  }
}
@keyframes aboutShrekTilt {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-12px) rotate(4deg);
  }
}
.about-dossier__copy {
  font-family: "Space Mono", ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.78;
  color: #9bc4ae;
}
@media (min-width: 560px) {
  .about-dossier__copy {
    font-size: 14px;
  }
}
.about-dossier__copy p {
  margin: 0 0 1.05rem;
}
.about-dossier__copy > .about-dossier__lead {
  margin: 0 0 1.25rem;
}
.about-dossier__meme {
  padding-top: 0.25rem;
  border-top: 3px dashed rgba(223, 255, 79, 0.25);
}
.about-dossier__memeTitle {
  margin: 0 0 0.75rem;
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-warm);
}
.about-dossier__meme p:last-child {
  margin-bottom: 0;
}
.about-dossier__copy strong {
  color: #c8f0d4;
  font-weight: 700;
}
@keyframes aboutAurora {
  0% {
    background-position: 5% 15%, 95% 85%;
  }
  100% {
    background-position: 95% 55%, 5% 45%;
  }
}
@keyframes aboutDotScroll {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 28px 28px;
  }
}

/* Cards */
.card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(168deg, #3d5248 0%, #2f4038 100%);
  border: 3px solid var(--ink);
  box-shadow: var(--cartoon-shadow-sm);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.card:hover {
  border-color: var(--ink);
  background: linear-gradient(168deg, #455a4f 0%, #354840 100%);
  transform: translate(-2px, -2px);
  box-shadow: var(--cartoon-shadow);
}

/* Community */
.community {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
  background: linear-gradient(165deg, #4a6248 0%, #3a5040 100%);
  border: 4px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--cartoon-shadow);
}
.community__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-warm);
}
.community__title {
  margin: 0 0 8px;
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 2px 2px 0 rgba(21, 32, 24, 0.35);
}
.community__copy {
  min-width: 0;
  max-width: 52ch;
}
.community__text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 16px;
  font-weight: 600;
}
.community__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* Tokenomics — one panel: stat cells + shared action strip */
.tok__panel {
  border-radius: var(--radius-lg);
  border: 3px solid var(--ink);
  background: linear-gradient(168deg, rgba(28, 48, 38, 0.96) 0%, rgba(16, 30, 24, 0.98) 100%);
  box-shadow: var(--cartoon-shadow);
  padding: clamp(16px, 3vw, 22px);
}
.tok__panel .tok__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tok__panel .tok__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(168deg, rgba(52, 72, 62, 0.5) 0%, rgba(36, 54, 46, 0.45) 100%);
  border: 2px solid rgba(21, 32, 24, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: none;
}
.tok__panel .tok__card:hover {
  background: linear-gradient(168deg, rgba(62, 84, 72, 0.58) 0%, rgba(44, 64, 54, 0.52) 100%);
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
.tok__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid var(--ink);
  color: var(--accent);
  box-shadow: 2px 2px 0 var(--ink);
}
.tok__icon svg {
  width: 20px;
  height: 20px;
}
.tok__meta {
  min-width: 0;
}
.tok__k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.tok__v {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
}
.tok__v--network::before {
  content: "> ";
  color: var(--accent-warm);
  font-weight: 800;
  margin-right: 0.12em;
}
.tok__panel .tok__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: clamp(14px, 3vw, 20px);
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(21, 32, 24, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.tok__panel .tok__actions .btn {
  min-height: 52px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  gap: 10px;
  justify-content: center;
  border-radius: 14px;
  width: 100%;
}
.tok__panel .tok__actions .btn--ghost {
  background: linear-gradient(180deg, rgba(255, 250, 230, 0.16) 0%, rgba(160, 210, 180, 0.12) 100%);
  color: #e8f8ee;
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.tok__panel .tok__actions .btn--ghost:hover {
  background: linear-gradient(180deg, rgba(255, 235, 190, 0.28) 0%, rgba(180, 230, 200, 0.18) 100%);
  box-shadow: 5px 5px 0 var(--ink);
}
.tok__panel .tok__actions .btn--primary {
  background: linear-gradient(180deg, #fff8c4 0%, var(--accent) 38%, #9bc948 100%);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink), inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}
.tok__panel .tok__actions .btn--primary:hover {
  background: linear-gradient(180deg, #fffce8 0%, #e8ff5a 42%, #8ab83a 100%);
  box-shadow: 6px 6px 0 var(--ink), inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}
.tok__panel .tok__actions .btn__icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
@media (max-width: 520px) {
  .tok__panel .tok__actions {
    grid-template-columns: 1fr;
  }
}
.btn.is-copied {
  background: var(--accent) !important;
  color: var(--ink) !important;
  border-color: var(--ink) !important;
  box-shadow: var(--cartoon-shadow-sm) !important;
}

/* Chart */
.embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--ink);
  background: rgba(21, 32, 24, 0.5);
  box-shadow: var(--cartoon-shadow);
}
.embed iframe {
  width: 100%;
  height: min(70vh, 640px);
  border: 0;
  display: block;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.step {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.step__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid var(--ink);
  color: var(--accent-warm);
  box-shadow: var(--cartoon-shadow-sm);
}
.step__icon svg {
  width: 22px;
  height: 22px;
}
.step__title {
  margin: 0;
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.step__text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 15px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gcard {
  position: relative;
  padding: 10px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 3px solid var(--ink);
  background: linear-gradient(165deg, #3d5248, #2c3e34);
  aspect-ratio: 4 / 3;
  box-shadow: var(--cartoon-shadow-sm);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.gcard:hover {
  border-color: var(--ink);
  transform: translate(-2px, -2px) scale(1.01);
  box-shadow: var(--cartoon-shadow);
}
.gcard img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 400ms var(--ease-out);
}
.gcard:hover img {
  transform: scale(1.02);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}
.lightbox[hidden] {
  display: none;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  border: 0;
  cursor: zoom-out;
  animation: fadeIn 200ms var(--ease);
}
.lightbox__panel {
  position: relative;
  width: min(920px, 100%);
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--ink);
  background: var(--bg-1);
  box-shadow: var(--cartoon-shadow);
  animation: pop 220ms var(--ease-out);
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pop {
  from {
    transform: translateY(8px) scale(0.99);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.lightbox__img {
  width: 100%;
  max-height: min(78vh, 720px);
  object-fit: contain;
  background: #0a0b0d;
}
.lightbox__cap {
  padding: 12px 16px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
}
.lightbox__x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  background: var(--accent-warm);
  color: var(--ink);
  box-shadow: var(--cartoon-shadow-sm);
  display: grid;
  place-items: center;
}
.lightbox__x:hover {
  background: var(--surface);
}
.lightbox__x svg {
  width: 18px;
  height: 18px;
}

/* Reveal — scroll down vs scroll up */
[data-reveal] {
  opacity: 0;
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
}
[data-reveal]:not(.is-in)[data-reveal-from="down"],
[data-reveal]:not(.is-in):not([data-reveal-from]) {
  transform: translateY(26px);
}
[data-reveal]:not(.is-in)[data-reveal-from="up"] {
  transform: translateY(-26px);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  z-index: 180;
  opacity: 0;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  pointer-events: none;
}
.toast:not([hidden]) {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast__inner {
  padding: 12px 18px;
  background: var(--accent);
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  box-shadow: var(--cartoon-shadow-sm);
}

/* Responsive */
@media (max-width: 960px) {
  .nav,
  .topbar__cta {
    display: none;
  }
  .burger {
    display: inline-flex;
  }

  .hero {
    padding: 28px 0 40px;
    min-height: auto;
  }
  .mascot {
    width: min(220px, 62vw);
  }

  .tok__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .section__head {
    margin-bottom: 22px;
  }

  .community {
    flex-direction: column;
    align-items: stretch;
  }
  .community__actions {
    width: 100%;
  }
  .community__actions .btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 28px);
  }

  .brand__text {
    display: none;
  }

  .hero .hero__cta-wrap {
    width: 100%;
    max-width: 100%;
    gap: 8px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn {
    width: 100%;
  }

  .hero .ca {
    padding: 9px 11px 9px 12px;
    gap: 8px;
    border-radius: 16px;
  }
  .hero .ca__value {
    font-size: 12px;
  }
  .hero .ca__copy {
    font-size: 12px;
    padding: 6px 12px;
  }
  .hero .ca__copy svg {
    width: 13px;
    height: 13px;
  }

  .ca {
    flex-wrap: wrap;
    gap: 8px;
  }
  .ca__value {
    flex: 1 1 auto;
    padding-left: 2px;
    font-size: 12px;
  }
  .ca__copy {
    flex: none;
  }

  .tok__grid {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mascot__shrek {
    width: 34%;
  }
  .mascot__donkey {
    width: 28%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
