/* =========================================================
   $JASON — colors pulled straight from the photo:
   sky blue background, cream + tan fur, black nose.
   ========================================================= */
:root {
  --sky: #5d8fdb;
  --sky-light: #8db3ea;
  --sky-deep: #3c6cc0;
  --cream: #fff6e8;
  --cream-dark: #f6e6cc;
  --tan: #d99a5b;
  --ink: #161616;
  --white: #ffffff;
  --gold: #f5c542;

  --border: 4px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --radius: 22px;

  --font-display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

.card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: var(--border);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: #2a2a2a; }
.btn-small { padding: 6px 16px; font-size: 16px; box-shadow: 3px 3px 0 var(--ink); }
.btn-big { width: 100%; padding: 18px 26px; font-size: 28px; }
.btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.btn:disabled { cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--ink); opacity: 0.55; }

.chip {
  display: inline-block;
  padding: 6px 14px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1180px, calc(100% - 48px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 26px;
  background: var(--cream);
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 28px;
  text-decoration: none;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-weight: 800;
  text-decoration: none;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  transform: scaleX(0);
  transition: transform 0.15s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-buy { font-size: 18px; padding: 10px 20px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  background: var(--sky);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(110px, 13vw, 190px);
  line-height: 0.9;
  color: var(--cream);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 8px 8px 0 var(--ink);
  letter-spacing: 2px;
}
.hero-tagline {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.1;
  color: var(--ink);
}
.hero-sub {
  margin: 14px 0 0;
  max-width: 470px;
  color: var(--ink);
  font-size: 19px;
}

.ca-card {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 540px;
  padding: 8px 8px 8px 16px;
  background: var(--cream);
  border: var(--border);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}
.ca-label {
  font-family: var(--font-display);
  font-size: 18px;
  padding: 2px 10px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 8px;
}
.ca-value {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-buttons { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { position: relative; justify-self: center; }
.hero-frame {
  width: min(480px, 38vw);
  aspect-ratio: 1;
  border: 5px solid var(--ink);
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--sky);
  transform: rotate(3deg);
  animation: bob 5s ease-in-out infinite;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

@keyframes bob {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50%      { transform: rotate(1.5deg) translateY(-12px); }
}

.zzz {
  position: absolute;
  font-family: var(--font-display);
  color: var(--cream);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  opacity: 0;
  animation: float-z 4.5s ease-in infinite;
  pointer-events: none;
}
.z1 { top: 8%;  right: -4%; font-size: 40px; animation-delay: 0s; }
.z2 { top: -2%; right: -10%; font-size: 56px; animation-delay: 1.5s; }
.z3 { top: -12%; right: -2%; font-size: 76px; animation-delay: 3s; }
@keyframes float-z {
  0%   { opacity: 0; transform: translate(0, 20px) rotate(-10deg); }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translate(30px, -40px) rotate(12deg); }
}

/* drifting clouds */
.cloud {
  position: absolute;
  z-index: 1;
  background: var(--sky-light);
  border-radius: 999px;
  opacity: 0.7;
  animation: drift linear infinite;
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.cloud::before { width: 55%; height: 170%; left: 15%; bottom: 20%; }
.cloud::after  { width: 40%; height: 130%; right: 12%; bottom: 25%; }
.cloud-1 { width: 220px; height: 60px; top: 20%; left: -260px; animation-duration: 70s; }
.cloud-2 { width: 160px; height: 46px; top: 68%; left: -200px; animation-duration: 95s; animation-delay: -40s; }
.cloud-3 { width: 280px; height: 72px; top: 85%; left: -320px; animation-duration: 120s; animation-delay: -80s; }
@keyframes drift { to { transform: translateX(calc(100vw + 400px)); } }

/* ---------- marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--cream);
  border-top: var(--border);
  border-bottom: var(--border);
  overflow: hidden;
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  font-family: var(--font-display);
  font-size: 26px;
  text-transform: uppercase;
  animation: scroll 30s linear infinite;
}
.marquee-track span:nth-child(even) { color: var(--tan); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section-cream { background: var(--cream); }
.section-sky { background: var(--sky); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 64px;
  line-height: 1;
}
.section-sky .section-title {
  color: var(--cream);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--ink);
}
.section-lead { margin: 18px 0 0; font-size: 20px; }

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-card { padding: 48px 52px; transform: rotate(-1deg); }
.about-card .section-title { margin-bottom: 18px; }
.about-card p { margin: 0 0 14px; font-size: 19px; }
.about-card p:last-child { margin-bottom: 0; font-weight: 900; }

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.fact {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--sky);
  transition: transform 0.15s ease;
}
.fact:nth-child(1) { transform: rotate(-3deg); }
.fact:nth-child(2) { transform: rotate(2deg); background: var(--tan); }
.fact:nth-child(3) { transform: rotate(2deg); background: var(--tan); }
.fact:nth-child(4) { transform: rotate(-2deg); }
.fact:hover { transform: rotate(0) scale(1.05); }
.fact span { font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.fact strong { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.1; }

/* ---------- pfp generator ---------- */
.gen {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
}
.gen-frame {
  position: relative;
  align-self: center;
  width: 500px;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--sky-deep);
  box-shadow: var(--shadow-lg);
}
.gen-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}
.gen-frame.is-idle img { filter: blur(14px) saturate(0.8); transform: scale(1.1); }
.gen-mystery {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 180px;
  color: var(--cream);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 8px 8px 0 var(--ink);
}
.gen-frame:not(.is-idle) .gen-mystery { display: none; }
.gen-frame.is-landing { animation: land 0.5s cubic-bezier(.3,1.6,.5,1); }
@keyframes land {
  0%   { transform: scale(0.92); }
  60%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.gen-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 20px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-6deg);
}
.gen-frame.is-rare { animation: land 0.5s cubic-bezier(.3,1.6,.5,1), rare-glow 1.2s ease-in-out 0.5s 3; }
@keyframes rare-glow {
  0%, 100% { box-shadow: var(--shadow-lg); }
  50%      { box-shadow: var(--shadow-lg), 0 0 0 10px var(--gold); }
}

.gen-panel {
  padding: 36px 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream);
}
.gen-kicker {
  margin: 0;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sky-deep);
}
.gen-name {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 46px;
  line-height: 1.05;
}
.gen-meta { margin: 6px 0 20px; min-height: 1.55em; font-size: 16px; }
.gen-left {
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.gen-left .pip {
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sky);
}
.gen-left .pip.is-used { background: transparent; }
.gen-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
/* your 3 pulls */
.mine { margin-top: 24px; padding-top: 18px; border-top: 3px dashed rgba(22, 22, 22, 0.2); }
.mine-title {
  margin: 0 0 10px;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.mine-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mine-slot {
  position: relative;
  padding: 0;
  aspect-ratio: 1;
  border: 3px dashed rgba(22, 22, 22, 0.35);
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 30px;
  color: rgba(22, 22, 22, 0.3);
}
.mine-slot.is-filled {
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--sky-deep);
  cursor: pointer;
  transition: transform 0.12s ease;
}
.mine-slot.is-filled:hover { transform: translate(-2px, -2px); }
.mine-slot.is-active { outline: 3px solid var(--sky-deep); outline-offset: 3px; }
.mine-slot img { width: 100%; height: 100%; object-fit: cover; }

/* community wall */
.wall { margin-top: 80px; }
.wall-title {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
  color: var(--cream);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink);
}
.wall-sub { margin: 10px 0 30px; text-align: center; font-size: 17px; }
.wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 108px));
  justify-content: center;
  gap: 18px;
}
.wall-item {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  background: var(--sky-deep);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease;
}
.wall-item:nth-child(3n + 1) { transform: rotate(-2deg); }
.wall-item:nth-child(3n + 2) { transform: rotate(1.5deg); }
.wall-item:nth-child(5n) { transform: rotate(-1deg); }
.wall-item:hover { transform: rotate(0) scale(1.06); z-index: 1; }
.wall-item img { width: 100%; height: 100%; object-fit: cover; }
.wall-item figcaption {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 1px 7px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.wall-item .mini-rare {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

/* ---------- how to buy ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.step { position: relative; padding: 46px 26px 30px; }
.step:nth-child(odd) { transform: rotate(-1.5deg); }
.step:nth-child(even) { transform: rotate(1.5deg); }
.step-num {
  position: absolute;
  top: -26px;
  left: 22px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--sky);
  border: var(--border);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 28px;
  box-shadow: 3px 3px 0 var(--ink);
}
.step:nth-child(even) .step-num { background: var(--tan); }
.step h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.1; }
.step p { margin: 0; font-size: 17px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--cream); padding: 80px 0 60px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-dog {
  width: 96px;
  height: 96px;
  border: 4px solid var(--cream);
  border-radius: 50%;
  object-fit: cover;
}
.footer-logo { margin: 14px 0 0; font-family: var(--font-display); font-size: 56px; line-height: 1; }
.footer-links { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.footer-links a { font-weight: 900; text-decoration: none; font-size: 18px; }
.footer-links a:hover { color: var(--tan); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 100;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--cream);
  border: 3px solid var(--cream);
  border-radius: 999px;
  font-weight: 900;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- coin cursor (mouse only) ---------- */
.coin-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.coin-on, html.coin-on * { cursor: none !important; }
  .coin-cursor {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    background: var(--sky);
    box-shadow:
      0 0 0 2px #8a6412,
      inset 0 0 0 2px #fff1b8,
      0 6px 14px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    will-change: transform;
  }
  .coin-cursor.is-on { opacity: 1; }
  .coin-cursor img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 42%;
    transform: scale(1.25);
  }
  /* shiny coin glare */
  .coin-cursor::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 45%);
  }
}

/* =========================================================
   Smaller screens (desktop first, then shrink)
   ========================================================= */
@media (max-width: 1050px) {
  .nav-links { gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .gen-frame { width: 380px; }
}

@media (max-width: 900px) {
  body { font-size: 17px; }
  .container, .hero-inner { padding: 0 22px; }
  .nav { padding: 8px 8px 8px 20px; }
  .nav-links { display: none; }
  .nav-logo { font-size: 24px; }
  .nav-buy { font-size: 16px; padding: 8px 16px; }

  .hero { min-height: auto; padding: 120px 0 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .ca-card { width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-frame { width: min(400px, 78vw); }
  .hero-tagline { font-size: 34px; }

  .section { padding: 80px 0; }
  .section-title { font-size: 48px; }

  .about { grid-template-columns: 1fr; }
  .about-card { padding: 34px 28px; }

  .gen { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .gen-frame { width: min(440px, 100%); }
  .gen-panel { width: 100%; max-width: 440px; }
}

@media (max-width: 560px) {
  .hero-title { font-size: 96px; -webkit-text-stroke: 5px var(--ink); text-shadow: 6px 6px 0 var(--ink); }
  .hero-tagline { font-size: 30px; }
  .hero-buttons .btn { font-size: 17px; padding: 10px 16px; }
  .ca-value { font-size: 13px; }
  .section-title { font-size: 40px; }
  .steps { grid-template-columns: 1fr; }
  .facts { gap: 14px; }
  .fact strong { font-size: 22px; }
  .gen-panel { padding: 26px 22px; }
  .gen-name { font-size: 36px; }
  .btn-big { font-size: 24px; }
  .gen-actions { gap: 10px; }
  .gen-actions .btn { font-size: 16px; padding: 10px 8px; }
  .gen-mystery { font-size: 130px; }
  .wall-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 14px; }
  .wall-title { font-size: 30px; }
  .footer-logo { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
