@import url("https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap");

/* =========================================================
   NYAN CAT IN HOOD
   Pixel Web3 / Game UI
   ========================================================= */

:root {
  --ash: #f1f1ed;
  --ash-dark: #dcdcd5;
  --black: #101010;
  --white: #ffffff;
  --lime: #ceff00;
  --pink: #ef3f9b;
  --pink-soft: #ff79bd;
  --grid: rgba(16, 16, 16, 0.07);
  --max-width: 1180px;
  --body-font: "Space Mono", "Courier New", monospace;
  --pixel-headline: "Pixelify Sans", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ash);
  color: var(--black);
  font-family: var(--body-font);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  z-index: -2;
}

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

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

.site-shell {
  width: 100%;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.site-header {
  width: 100%;
  padding: 18px 24px;
  position: relative;
  z-index: 50;
}

.nav-bar {
  width: min(100%, var(--max-width));
  min-height: 72px;
  margin: 0 auto;
  padding: 10px 12px 10px 14px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 3px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.logo-box {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  border: 3px solid var(--black);
  background: var(--lime);
  display: grid;
  place-items: center;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand-copy strong {
  font-size: 15px;
}

.brand-copy small {
  font-size: 10px;
  opacity: 0.6;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
}

.nav-links a {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 4px;
}

.nav-links a:hover {
  color: var(--pink);
}

.nav-cta {
  flex: 0 0 auto;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 4px;
  margin: 4px 0;
  background: var(--black);
}

/* =========================================================
   GLOBAL BUTTONS
   ========================================================= */

.pixel-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}

.pixel-button:hover {
  background: var(--black);
  color: var(--white);
}

.pixel-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--black);
}

.pixel-button-lime {
  background: var(--lime);
}

.pixel-button-pink {
  background: var(--pink);
  color: var(--black);
}

.pixel-button-dark {
  background: var(--black);
  color: var(--white);
}

.pixel-button-dark:hover {
  background: var(--pink);
  color: var(--black);
}

/* =========================================================
   SHARED SECTIONS
   ========================================================= */

.section {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 100px 28px;
  position: relative;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.pink-text {
  color: var(--pink);
}

.section-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 3px solid var(--black);
  padding-top: 12px;
  margin-bottom: 58px;
  font-size: 10px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--pixel-headline);
  font-weight: 700;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(56px, 9vw, 118px);
  line-height: 0.8;
}

h1 span {
  color: var(--pink);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 90px);
  line-height: 0.82;
}

h3 {
  font-family: var(--pixel-headline);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
}

p {
  line-height: 1.55;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 740px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
  padding-top: 80px;
  padding-bottom: 130px;
  overflow: hidden;
}

.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 3;
}

.hero-description {
  max-width: 600px;
  font-size: 15px;
}

.ca-box {
  width: min(100%, 590px);
  margin: 28px 0 22px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 3px solid var(--black);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--black);
}

.ca-box > div {
  min-width: 0;
  flex: 1;
}

.ca-label {
  display: block;
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 900;
  opacity: 0.55;
}

.ca-box code {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.copy-button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 3px solid var(--black);
  background: var(--lime);
  padding: 8px 11px;
  font-family: var(--body-font);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.copy-button:hover {
  background: var(--pink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-art {
  width: 100%;
  max-width: 500px;
  justify-self: end;
  position: relative;
  background: var(--white);
  transform: rotate(1deg);
}

.pixel-frame {
  border: 5px solid var(--black);
  box-shadow: 10px 10px 0 var(--black);
  overflow: hidden;
}

.hero-art {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  justify-self: end;
  position: relative;
  background: var(--white);
  overflow: hidden;
}

.hero-art .hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.art-caption {
  min-height: 40px;
  padding: 10px 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--lime);
  border-top: 5px solid var(--black);
  font-size: 10px;
  font-weight: 900;
}

.corner-pixel {
  width: 15px;
  height: 15px;
  position: absolute;
  z-index: 3;
  background: var(--pink);
}

.corner-tl { top: -5px; left: -5px; }
.corner-tr { top: -5px; right: -5px; }
.corner-bl { bottom: 35px; left: -5px; }
.corner-br { bottom: 35px; right: -5px; }

.pixel-cloud {
  position: absolute;
  width: 120px;
  height: 30px;
  background: var(--white);
  opacity: 0.8;
  z-index: 0;
}

.pixel-cloud::before,
.pixel-cloud::after {
  content: "";
  position: absolute;
  background: var(--white);
}

.pixel-cloud::before {
  width: 48px;
  height: 48px;
  left: 20px;
  bottom: 0;
}

.pixel-cloud::after {
  width: 58px;
  height: 58px;
  right: 15px;
  bottom: 0;
}

.cloud-one {
  top: 190px;
  left: 40px;
}

.cloud-two {
  bottom: 200px;
  right: 45%;
  transform: scale(0.65);
}

.pixel-ground {
  position: absolute;
  height: 34px;
  left: -5%;
  right: -5%;
  bottom: 60px;
  background:
    linear-gradient(135deg, transparent 10px, var(--pink) 10px) 0 0 / 20px 20px,
    var(--pink);
  clip-path: polygon(
    0 35%, 3% 35%, 3% 15%, 6% 15%, 6% 40%, 10% 40%,
    10% 10%, 14% 10%, 14% 45%, 18% 45%, 18% 20%,
    22% 20%, 22% 55%, 27% 55%, 27% 25%, 31% 25%,
    31% 50%, 36% 50%, 36% 12%, 40% 12%, 40% 42%,
    44% 42%, 44% 18%, 48% 18%, 48% 55%, 53% 55%,
    53% 22%, 57% 22%, 57% 45%, 61% 45%, 61% 10%,
    65% 10%, 65% 48%, 69% 48%, 69% 20%, 73% 20%,
    73% 52%, 78% 52%, 78% 14%, 82% 14%, 82% 43%,
    86% 43%, 86% 25%, 90% 25%, 90% 48%, 94% 48%,
    94% 15%, 97% 15%, 97% 35%, 100% 35%, 100% 100%, 0 100%
  );
}

/* =========================================================
   LORE
   ========================================================= */

.lore {
  padding-top: 70px;
}

.lore-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
}

.lore-art {
  background: var(--black);
  transform: rotate(-1.2deg);
}

.dark-frame {
  border-color: var(--black);
  box-shadow: 10px 10px 0 var(--pink);
}

.lore-art img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.lore-copy {
  max-width: 620px;
}

.lore-copy p:not(.eyebrow) {
  font-size: 14px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 35px;
}

.stat-card {
  min-height: 105px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
}

.stat-card strong {
  font-size: 28px;
}

.stat-card span {
  font-size: 9px;
  font-weight: 900;
}

.lime-card {
  background: var(--lime);
}

.pink-card {
  background: var(--pink);
}

/* =========================================================
   BUY
   ========================================================= */

.buy {
  padding-top: 130px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 55px;
}

.section-heading > p:last-child {
  max-width: 500px;
  font-size: 14px;
}

.buy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.game-card {
  min-height: 360px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 4px solid var(--black);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--black);
}

.pink-card-large {
  background: var(--pink);
}

.card-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 35px;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
}

.pixel-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 25px;
  display: grid;
  place-items: center;
  border: 4px solid var(--black);
  background: var(--lime);
  box-shadow: 5px 5px 0 var(--black);
  font-size: 28px;
  font-weight: 900;
}

.arrow-icon {
  background: var(--white);
}

.cat-icon {
  background: var(--pink);
}

.game-card p {
  min-height: 70px;
  font-size: 12px;
}

.game-card .pixel-button {
  margin-top: auto;
}

/* =========================================================
   TOKENOMICS
   ========================================================= */

.tokenomics {
  padding-top: 140px;
}

.tokenomics-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.token-copy {
  max-width: 380px;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.token-card {
  min-height: 190px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 4px solid var(--black);
  background: var(--white);
  box-shadow: 7px 7px 0 var(--black);
}

.token-card span,
.token-card small {
  font-size: 10px;
  font-weight: 900;
}

.token-card strong {
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -0.08em;
}

/* =========================================================
   COMMUNITY
   ========================================================= */

.community {
  padding-top: 120px;
}

.community-box {
  min-height: 430px;
  padding: clamp(35px, 7vw, 75px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 5px solid var(--black);
  background: var(--black);
  color: var(--white);
  box-shadow: 12px 12px 0 var(--pink);
}

.community-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.community-copy h2 {
  color: var(--lime);
}

.community-copy p:last-child {
  max-width: 520px;
  font-size: 14px;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  position: relative;
  z-index: 2;
}

.community-actions .pixel-button-dark {
  background: var(--white);
  color: var(--black);
}

.pixel-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pixel-stars span {
  position: absolute;
  color: var(--pink);
  font-size: 30px;
}

.pixel-stars span:nth-child(1) { top: 15%; right: 14%; }
.pixel-stars span:nth-child(2) { top: 55%; right: 7%; color: var(--lime); }
.pixel-stars span:nth-child(3) { bottom: 13%; left: 50%; color: var(--pink); }
.pixel-stars span:nth-child(4) { top: 20%; left: 9%; color: var(--lime); }

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  width: min(100%, var(--max-width));
  margin: 70px auto 0;
  padding: 25px 28px 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 3px solid var(--black);
  font-size: 10px;
}

.footer div {
  display: grid;
  gap: 5px;
}

.footer strong {
  font-size: 13px;
}

.footer span {
  opacity: 0.65;
}

/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media (max-width: 900px) {
  .nav-links {
    gap: 12px;
  }

  .brand {
    min-width: 160px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-copy {
    display: contents;
  }

  .hero .eyebrow {
    grid-column: 1;
    grid-row: 1;
    text-align: center;
  }

  .hero h1 {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
  }

  .hero-art {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
    width: min(100%, 570px);
  }

  .hero-description {
    grid-column: 1;
    grid-row: 4;
    max-width: 650px;
    margin-inline: auto;
    text-align: center;
  }

  .ca-box {
    grid-column: 1;
    grid-row: 5;
    width: 100%;
    margin-inline: auto;
  }

  .hero-actions {
    grid-column: 1;
    grid-row: 6;
    justify-content: center;
  }

  .lore-grid,
  .tokenomics-layout {
    grid-template-columns: 1fr;
  }

  .lore-copy {
    max-width: 760px;
  }

  .buy-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 310px;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 12px;
  }

  .nav-bar {
    min-height: 62px;
    padding: 8px 10px;
    position: relative;
    flex-wrap: wrap;
    box-shadow: 4px 4px 0 var(--black);
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .logo-box {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand-copy strong {
    font-size: 12px;
  }

  .brand-copy small {
    font-size: 9px;
  }

  .menu-toggle {
    display: block;
    order: 2;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    display: none;
    width: 100%;
    order: 3;
    padding: 12px 0 4px;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    min-height: 40px;
    display: grid;
    place-items: center;
    border: 2px solid var(--black);
    background: var(--ash);
    font-size: 10px;
  }

  .nav-links a:hover {
    background: var(--pink);
    color: var(--black);
  }

  .section {
    padding: 75px 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 65px;
    padding-bottom: 105px;
    gap: 30px;
  }

  h1 {
    font-size: clamp(45px, 14vw, 78px);
    line-height: 0.82;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(43px, 13vw, 70px);
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-art {
    width: 100%;
    max-width: 500px;
    transform: none;
    box-shadow: 7px 7px 0 var(--black);
  }

  .pixel-frame {
    border-width: 4px;
  }

  .art-caption {
    border-top-width: 4px;
  }

  .ca-box {
    align-items: stretch;
    padding: 10px;
    flex-direction: column;
    box-shadow: 4px 4px 0 var(--black);
  }

  .ca-box code {
    font-size: 11px;
  }

  .copy-button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .pixel-button,
  .game-card .pixel-button,
  .community-actions .pixel-button {
    width: 100%;
  }

  .pixel-ground {
    bottom: 30px;
  }

  .section-topline {
    margin-bottom: 40px;
    font-size: 8px;
  }

  .lore-grid {
    gap: 45px;
  }

  .lore-art img {
    aspect-ratio: 1 / 1;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 80px;
  }

  .buy {
    padding-top: 90px;
  }

  .game-card {
    min-height: 330px;
    padding: 20px;
    box-shadow: 6px 6px 0 var(--black);
  }

  .tokenomics {
    padding-top: 90px;
  }

  .token-grid {
    grid-template-columns: 1fr;
  }

  .token-card {
    min-height: 145px;
  }

  .community {
    padding-top: 90px;
  }

  .community-box {
    min-height: 480px;
    padding: 32px 22px;
    box-shadow: 7px 7px 0 var(--pink);
  }

  .community-actions {
    flex-direction: column;
  }

  .footer {
    margin-top: 50px;
    padding: 22px 18px 30px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .section {
    padding-inline: 15px;
  }

  .hero {
    gap: 26px;
  }

  h1 {
    font-size: clamp(40px, 13.5vw, 58px);
  }

  .eyebrow {
    font-size: 9px;
  }

  .hero-description,
  .lore-copy p:not(.eyebrow),
  .section-heading > p:last-child,
  .token-copy,
  .community-copy p:last-child {
    font-size: 12px;
  }

  .brand-copy strong {
    font-size: 11px;
  }

  .nav-bar {
    margin-right: 4px;
  }
}
