:root {
  --ink: #3b2112;
  --ink-soft: #603818;
  --cream: #fbf1df;
  --cream-2: #f1dcb7;
  --cream-3: #e4bf86;
  --line: rgba(104, 63, 28, 0.22);
  --wood-dark: #4c260d;
  --wood: #7a451c;
  --wood-light: #a76727;
  --green: #67b56c;
  --orange: #df7b2d;
  --chart: #101721;
  --shadow: 0 18px 45px rgba(75, 43, 18, 0.15);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 251, 241, 0.96) 0 22%, rgba(252, 240, 219, 0.92) 45%, rgba(235, 203, 158, 0.78) 100%),
    linear-gradient(180deg, #fff8ea 0%, #f3dfbd 100%);
  font-family: "Trebuchet MS", Arial, sans-serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(92, 55, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 55, 24, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.45;
}

body::after {
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 34vh;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 100%, rgba(73, 62, 45, 0.18) 0 22%, transparent 23%),
    radial-gradient(ellipse at 82% 100%, rgba(73, 62, 45, 0.15) 0 26%, transparent 27%),
    linear-gradient(180deg, transparent 0%, rgba(134, 104, 72, 0.16) 100%);
  filter: blur(0.2px);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: block;
  color: var(--ink);
  background: #f4dec0 url("assets/loading-screen.png") center / cover no-repeat;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

body.loaded .loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-scene {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 520px;
}

.loadbar {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 4.2vh, 40px);
  z-index: 2;
  width: min(690px, 62vw);
  height: 64px;
  padding: 9px 88px 9px 10px;
  border: 3px solid #3d2110;
  border-radius: 10px;
  background: #f8ead1;
  box-shadow:
    inset 0 0 0 2px rgba(126, 77, 31, 0.35),
    0 6px 16px rgba(70, 39, 16, 0.15),
    0 0 0 12px rgba(248, 234, 209, 0.92);
  transform: translateX(-50%);
}

.loadbar-fill {
  height: 100%;
  width: 0;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 220, 128, 0.16), rgba(54, 24, 6, 0.12)),
    repeating-linear-gradient(0deg, rgba(255, 228, 163, 0.08) 0 2px, rgba(41, 18, 5, 0.08) 3px 4px),
    linear-gradient(90deg, #5b2a0b, #8e551f 60%, #683411);
  box-shadow: inset 0 2px 8px rgba(255, 227, 168, 0.35);
  transition: width 0.18s ease-out;
}

.loadbar strong {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 54px;
  text-align: right;
  font-family: "Courier New", monospace;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 900;
  color: var(--wood-dark);
}

.candles span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 18px;
  height: var(--h);
  border-radius: 2px;
  background: #d99e5f;
  box-shadow: 0 0 0 1px rgba(99, 55, 22, 0.08);
}

.candles span::before,
.candles span::after {
  position: absolute;
  left: 50%;
  width: 3px;
  content: "";
  transform: translateX(-50%);
  background: #d99e5f;
}

.candles span::before {
  top: -26px;
  height: 26px;
}

.candles span::after {
  bottom: -26px;
  height: 26px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  height: 74px;
  padding: 0 max(32px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 246, 231, 0.82);
  backdrop-filter: blur(12px);
}

.brand img {
  width: 190px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--wood);
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

.header-buy {
  justify-self: end;
}

.wood-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid #3b1b09;
  border-radius: var(--radius);
  color: #fff8ec;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(35, 15, 4, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 223, 155, 0.17), rgba(45, 19, 5, 0.12)),
    repeating-linear-gradient(0deg, rgba(255, 224, 153, 0.1) 0 2px, rgba(48, 22, 8, 0.08) 3px 5px),
    linear-gradient(90deg, #5a2b0d 0%, #8b501c 52%, #5c2d0e 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 231, 177, 0.22),
    inset 0 -4px 0 rgba(49, 20, 5, 0.25),
    0 4px 10px rgba(64, 34, 13, 0.22);
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.wood-button:hover,
.wood-button:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.brand-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 0 rgba(31, 12, 3, 0.42));
}

.brand-icon.telegram-logo {
  width: 24px;
  height: 24px;
}

.pumpfun-logo {
  border-radius: 50%;
}

.wood-button.big {
  width: min(244px, calc((100% - 24px) / 2));
  min-width: 206px;
  height: 55px;
  padding-inline: 14px;
  font-size: 16px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  min-height: 526px;
  padding-top: 72px;
  align-items: start;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 18px;
}

.wordmark {
  width: min(540px, 100%);
  margin-bottom: 18px;
  filter: drop-shadow(0 4px 0 rgba(65, 32, 10, 0.12));
}

h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.tagline {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3.1vw, 34px);
  font-weight: 900;
  line-height: 1.08;
}

.intro {
  max-width: 450px;
  margin: 16px 0 28px;
  color: #3d1d0e;
  font-size: 20px;
  line-height: 1.45;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
}

.contract {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  margin: 0 0 26px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  text-align: left;
}

.contract span {
  white-space: nowrap;
}

.contract small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.contract::after {
  content: "copy";
  padding: 3px 7px;
  border: 1px solid rgba(95, 54, 20, 0.28);
  border-radius: 5px;
  color: rgba(59, 33, 18, 0.74);
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.contract:hover::after,
.contract:focus-visible::after {
  opacity: 1;
}

.social-row {
  display: flex;
  gap: 18px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(45, 20, 7, 0.48);
  border-radius: 7px;
  color: #fff8ec;
  background:
    linear-gradient(180deg, rgba(255, 225, 168, 0.14), rgba(0, 0, 0, 0.08)),
    linear-gradient(145deg, #6f421d, #3f1f0b);
  box-shadow: inset 0 2px 0 rgba(255, 226, 166, 0.16), 0 4px 8px rgba(58, 32, 13, 0.18);
  font-size: 23px;
  font-weight: 800;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  filter: brightness(1.09);
  transform: translateY(-1px);
}

.social-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.social-logo.x-logo {
  width: 21px;
  height: 21px;
}

.social-logo.dex-logo {
  width: 23px;
  height: 23px;
  border-radius: 5px;
}

.hero-art {
  position: relative;
  min-height: 520px;
}

.hero-ape {
  position: relative;
  z-index: 2;
  width: min(570px, 100%);
  margin: -8px 0 0 auto;
  filter: drop-shadow(0 24px 22px rgba(59, 38, 17, 0.2));
}

.hero-candles {
  position: absolute;
  inset: 24px -42px 0 -90px;
  z-index: 1;
  opacity: 0.5;
}

.candles span {
  width: 18px;
  background: #e0a568;
}

.supply-card {
  position: absolute;
  z-index: 4;
  right: -22px;
  bottom: 70px;
  width: clamp(118px, 11vw, 148px);
  display: block;
  pointer-events: none;
}

.supply-card img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(78, 45, 17, 0.19));
}

.market {
  display: grid;
  grid-template-columns: minmax(0, 1.64fr) minmax(330px, 0.96fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 20px;
}

.chart-panel,
.stats-panel,
.gallery-section,
.lore-card,
.faq-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.chart-panel {
  overflow: hidden;
  min-height: 430px;
  color: #dce6ed;
  background: var(--chart);
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 0;
}

.chart-head p,
.price-line,
.volume {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 13px;
}

.chart-head p span {
  color: #fff;
  font-weight: 800;
}

.chart-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 55px;
  height: 27px;
  border: 1px solid rgba(112, 255, 157, 0.24);
  border-radius: 6px;
  color: #dfffea;
  background: rgba(50, 159, 92, 0.14);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.chart-open:hover,
.chart-open:focus-visible {
  border-color: rgba(112, 255, 157, 0.48);
  background: rgba(50, 159, 92, 0.24);
}

.price-line {
  display: flex;
  gap: 10px;
  padding: 8px 14px 0;
  color: #77d887;
}

.price-line span.is-positive {
  color: #77d887;
}

.price-line span.is-negative {
  color: #ff8b67;
}

.volume {
  padding: 5px 14px 0;
  color: #92b98c;
}

.dex-frame-wrap {
  position: relative;
  height: 340px;
  margin: 10px 8px 8px;
  overflow: hidden;
  border: 1px solid rgba(129, 151, 176, 0.16);
  border-radius: 6px;
  background: #0b1119;
}

.dex-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

.stats-panel {
  padding: 21px 24px 18px;
  background: rgba(246, 224, 190, 0.72);
}

.stats-panel h2,
.gallery-section h2,
.lore-card h2,
.faq-card h2 {
  margin: 0 0 15px;
  color: var(--ink-soft);
  text-align: center;
  text-transform: uppercase;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 23px;
  letter-spacing: 0;
  text-shadow: 0 1px 0 #fff2dc;
}

.token-pair,
.stats-note {
  margin: -7px 0 13px;
  color: rgba(59, 33, 18, 0.74);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stats-panel dl {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
}

.stats-panel dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 51px;
  padding: 0 17px;
  border: 1px solid rgba(121, 75, 32, 0.23);
  border-radius: 8px;
  background: rgba(255, 243, 222, 0.48);
  box-shadow: inset 0 2px 0 rgba(255, 250, 238, 0.42);
}

.stats-panel dt {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.stats-panel dd {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
}

.stats-note {
  margin: 0 0 13px;
  font-size: 11px;
}

.stats-buy {
  width: 100%;
  height: 54px;
  font-size: 18px;
}

.gallery-section {
  position: relative;
  margin-top: 42px;
  padding: 23px 27px 22px;
  background: rgba(248, 231, 202, 0.75);
}

.gallery-section h2 {
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  padding: 0 18px;
  background: #f7e6c9;
}

.gallery-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  overflow: hidden;
}

.gallery-track figure {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(80, 43, 17, 0.3);
  border-radius: 7px;
  overflow: hidden;
  background: #d5b073;
  aspect-ratio: 1 / 1;
  box-shadow: 0 6px 13px rgba(59, 35, 15, 0.12);
}

.gallery-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-track figure:hover img {
  transform: scale(1.04);
}

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 23px;
  margin-bottom: 30px;
}

.lore-card,
.faq-card {
  min-height: 263px;
  background: rgba(249, 233, 208, 0.78);
}

.lore-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 8px;
  padding: 20px 18px 0 23px;
  overflow: hidden;
}

.lore-card h2,
.faq-card h2 {
  text-align: left;
}

.lore-card p {
  max-width: 305px;
  margin: 0 0 12px;
  color: #241004;
  font-size: 16px;
  line-height: 1.18;
}

.lore-card img {
  align-self: end;
  width: 220px;
  filter: drop-shadow(0 13px 15px rgba(60, 35, 15, 0.18));
}

.faq-card {
  padding: 20px 23px 22px;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-list details {
  border: 1px solid rgba(119, 75, 36, 0.28);
  border-radius: 8px;
  background: rgba(255, 243, 222, 0.48);
  overflow: hidden;
}

.faq-list summary {
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 42px 0 16px;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  right: 16px;
  top: 50%;
  content: "+";
  font-size: 22px;
  font-weight: 400;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: -3px 16px 14px;
  color: rgba(42, 22, 8, 0.84);
  font-size: 14px;
  line-height: 1.35;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
}

.foot-brand img {
  width: 148px;
}

.site-footer p {
  margin: 0;
  color: rgba(55, 31, 15, 0.86);
  font-size: 14px;
}

.site-footer .social-row {
  justify-content: end;
}

.site-footer .icon-button {
  width: 35px;
  height: 35px;
  font-size: 18px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 15px;
  border: 1px solid rgba(59, 29, 11, 0.35);
  border-radius: 8px;
  color: #fff8ec;
  background: rgba(58, 30, 12, 0.94);
  box-shadow: 0 12px 28px rgba(48, 24, 9, 0.24);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes apeFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    padding-inline: 20px;
  }

  .main-nav {
    justify-content: center;
    gap: 18px;
    font-size: 12px;
  }

  .header-buy {
    min-width: 0;
    padding-inline: 14px;
  }

  .hero,
  .market,
  .story {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
    min-height: auto;
  }

  .hero-art {
    min-height: 400px;
    order: -1;
  }

  .hero-ape {
    width: min(490px, 88vw);
    margin-inline: auto;
  }

  .hero-copy {
    padding-top: 0;
  }

  .supply-card {
    right: 5%;
    bottom: 44px;
  }

  .market {
    margin-top: 34px;
  }

  .gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gallery-track::-webkit-scrollbar {
    display: none;
  }

  .gallery-track figure {
    flex: 0 0 min(35vw, 190px);
    scroll-snap-align: start;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    position: relative;
    height: auto;
    grid-template-columns: 1fr auto;
    padding-block: 13px;
  }

  .brand img {
    width: 158px;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
  }

  .header-buy {
    height: 42px;
    min-height: 42px;
    padding-inline: 12px;
    font-size: 0;
  }

  .header-buy .brand-icon {
    margin: 0;
  }

  .hero {
    gap: 10px;
    padding-top: 24px;
  }

  .hero-art {
    min-height: 330px;
  }

  .tagline {
    font-size: 26px;
  }

  .intro {
    font-size: 18px;
  }

  .cta-row {
    gap: 12px;
  }

  .wood-button.big {
    width: 100%;
  }

  .contract small {
    font-size: 13px;
  }

  .supply-card {
    width: 96px;
    bottom: 16px;
  }

  .market {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-panel {
    min-width: 0;
  }

  .gallery-section {
    padding-inline: 18px;
  }

  .gallery-track figure {
    flex-basis: 68vw;
  }

  .lore-card {
    grid-template-columns: 1fr 150px;
    padding-right: 10px;
  }

  .lore-card p {
    font-size: 14px;
  }

  .lore-card img {
    width: 160px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer .social-row {
    justify-content: center;
  }

  .loadbar {
    width: 88vw;
    height: 56px;
    padding: 8px 70px 8px 8px;
    bottom: clamp(22px, 4vh, 34px);
  }
}

@media (max-width: 460px) {
  .main-nav {
    font-size: 11px;
  }

  .hero-art {
    min-height: 285px;
  }

  .hero-candles {
    opacity: 0.32;
  }

  .wordmark {
    margin-bottom: 12px;
  }

  .tagline {
    font-size: 23px;
  }

  .intro {
    margin-bottom: 20px;
  }

  .social-row {
    gap: 12px;
  }

  .chart-head p {
    font-size: 11px;
  }

  .stats-panel dl div {
    padding-inline: 12px;
  }

  .stats-panel dd {
    font-size: 16px;
  }

  .lore-card {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }

  .lore-card img {
    width: 180px;
    justify-self: end;
    margin-top: -30px;
  }
}
