@font-face {
  font-family: "Luckiest Guy";
  src: url("/assets/fonts/luckiest-guy.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Anton;
  src: url("/assets/fonts/anton.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url("/assets/fonts/nunito-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url("/assets/fonts/nunito-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url("/assets/fonts/nunito-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --cyan: #7aedff;
  --cyan-2: #5ad8ef;
  --gold: #ffd640;
  --gold-dk: #f0b400;
  --red: #d62428;
  --red-dk: #a71b1e;
  --black: #141414;
  --ink: #171717;
  --muted: #3a3a3a;
  --cream: #fff8e6;
  --white: #ffffff;
  --npc: #9a9a9a;
  --npc-bg: #d8d8d8;
  --line: 3px solid var(--black);
  --shadow: 6px 6px 0 var(--black);
  --shadow-sm: 4px 4px 0 var(--black);
  --font-display: "Luckiest Guy", "Arial Black", Impact, system-ui, sans-serif;
  --font-tick: Anton, "Arial Narrow", Impact, sans-serif;
  --font-body: Nunito, "Segoe UI", system-ui, sans-serif;
  --nav-h: 4.15rem;
  --max: 70rem;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.35), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(255,214,64,0.28), transparent 32%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dk); text-underline-offset: 0.15em; }
a:hover { color: var(--black); }
button { font: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3 {
  margin: 0 0 0.55rem;
  line-height: 0.95;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--black);
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 9vw, 5.4rem); }
h2 { font-size: clamp(1.85rem, 6vw, 3.35rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.55rem); }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 80;
  background: var(--gold);
  color: var(--black);
  padding: 0.5rem 0.85rem;
  font-weight: 800;
  border: var(--line);
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--gold);
  border-bottom: var(--line);
}
.nav-inner {
  width: min(100% - 1.25rem, var(--max));
  margin-inline: auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--black);
  min-width: 0;
}
.brand img {
  width: 2.6rem;
  height: 2.6rem;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: var(--cyan);
  flex: 0 0 auto;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  line-height: 1;
}
.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: var(--line);
  background: var(--cream);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 3px;
  background: var(--black);
  border-radius: 2px;
  position: relative;
  margin: 0 auto;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav.is-open .nav-toggle-bars { background: transparent; }
.nav.is-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.nav-panel {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-panel a {
  color: var(--black);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
}
.nav-panel a:hover { text-decoration: underline; }
.nav-panel .btn { text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  border: var(--line);
  cursor: pointer;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  color: var(--cream);
  background: var(--red);
  white-space: nowrap;
}
.btn:hover { background: var(--red-dk); color: var(--cream); }
.btn:focus-visible,
.ca-copy:focus-visible,
.nav-toggle:focus-visible,
.nav-panel a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  background: var(--red);
  opacity: 0.85;
}
.btn-ghost {
  background: var(--cream);
  color: var(--black);
}
.btn-ghost:hover { background: var(--white); color: var(--black); }

/* Hero */
.hero { padding: 1.5rem 0 0; }
.hero-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: center;
}
.logo-wrap {
  background: transparent;
  max-width: 28rem;
  margin-inline: auto;
}
.hero-logo {
  width: 100%;
  height: auto;
  border: 4px solid var(--black);
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: var(--cyan);
}
.kicker {
  font-family: var(--font-tick);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
  color: var(--red-dk);
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 36rem;
  color: var(--muted);
}
.launch-pill {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 0.28rem 0.75rem;
  background: var(--black);
  color: var(--gold);
  font-family: var(--font-tick);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: 999px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}
.ca-box {
  background: var(--black);
  color: var(--cream);
  border: var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}
.ca-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.ca-label {
  font-family: var(--font-tick);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}
.ca-copy {
  appearance: none;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.ca-copy:hover:not(:disabled) { background: var(--gold); color: var(--black); }
.ca-copy:disabled { opacity: 0.85; cursor: not-allowed; }
.ca-value {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.4;
  word-break: break-all;
  overflow-wrap: anywhere;
  color: var(--cream);
}
.hero-strip {
  margin-top: 2rem;
  border-top: var(--line);
  border-bottom: var(--line);
  overflow: hidden;
  background: var(--cyan);
}
.hero-strip img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  object-position: center top;
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-lede { max-width: 40rem; margin-bottom: 1.5rem; }
.lore { background: var(--cream); border-top: var(--line); border-bottom: var(--line); }
.lore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 1.6rem;
}
.panel {
  border: var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 0.6rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.panel-npc {
  background: var(--npc-bg);
  color: #2a2a2a;
}
.panel-npc h3, .panel-npc .panel-tag { color: #333; }
.panel-main {
  background: var(--gold);
}
.panel-tag {
  font-family: var(--font-tick);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 0.4rem;
}
.lore-body { max-width: 46rem; }
.lore-body p { font-size: 1.08rem; }

/* Buy steps */
.steps {
  list-style: none;
  margin: 1.5rem 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.35rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--cream);
  border: 3px solid var(--black);
  border-radius: 50%;
  flex: 0 0 auto;
  line-height: 1;
  padding-top: 0.15rem;
}
.buy-cta {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

/* Tokenomics */
.tokenomics { background: var(--cyan-2); border-top: var(--line); border-bottom: var(--line); }
.tok-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}
.tok {
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  padding: 1rem 0.9rem 0.4rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.tok p:last-child { font-size: 0.95rem; }
.tok-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--red);
  margin: 0 0 0.15rem;
  line-height: 0.9;
}
.tok-label {
  font-family: var(--font-tick);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
}

/* FAQ */
.faq-list { display: grid; gap: 0.7rem; margin-top: 1.2rem; }
details {
  background: var(--white);
  border: var(--line);
  border-radius: 14px;
  padding: 0.2rem 0.9rem;
  box-shadow: var(--shadow-sm);
}
summary {
  cursor: pointer;
  font-weight: 800;
  padding: 0.85rem 0;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  float: right;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--red);
}
details[open] summary::after { content: "–"; }
details p { padding-bottom: 0.4rem; }

/* Disclaimer + footer */
.disclaimer {
  background: var(--black);
  color: #f3f3f3;
  border-top: var(--line);
}
.disclaimer h2 { color: var(--gold); }
.disclaimer p { color: #e8e8e8; max-width: 54rem; }
.footer {
  background: var(--gold);
  border-top: var(--line);
  padding: 1.4rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
}
.footer-note { margin: 0; font-weight: 700; font-size: 0.92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; }
.footer-links a { color: var(--black); font-weight: 800; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.is-hidden, [hidden] { display: none !important; }

/* 404 */
.page-404 { min-height: 100dvh; display: flex; flex-direction: column; }
.error-wrap {
  width: min(100% - 2rem, 40rem);
  margin: auto;
  padding: 3rem 0;
  text-align: center;
}
.error-wrap .lede { margin-inline: auto; }

/* Responsive */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .logo-wrap { max-width: 20rem; }
  .tok-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--gold);
    border-bottom: var(--line);
    padding: 0.75rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .nav.is-open .nav-panel { display: flex; }
  .nav-panel a { padding: 0.55rem 0.2rem; }
  .nav-panel .btn { width: 100%; margin-top: 0.35rem; }
  .lore-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 400px) {
  .wrap, .hero-inner { width: min(100% - 1.25rem, var(--max)); }
  .tok-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.05rem, 12vw, 2.6rem); }
  .btn { white-space: normal; text-align: center; }
  .ca-top { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* Homepage avatar teaser */
.creator-tease {
  background: var(--gold);
  border-top: var(--line);
  border-bottom: var(--line);
}
.tease-inner { max-width: 42rem; }
.tease-inner .btn { margin-top: 0.3rem; }


/* Hero why pill + donations narrative */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin: 0 0 1.1rem;
}
.hero-pills .launch-pill { margin: 0; }
.why-pill {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-tick);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: 999px;
  border: 2px solid var(--black);
  text-decoration: none;
  line-height: 1.3;
}
.why-pill:hover { background: var(--cream); color: var(--black); }

.why {
  background: #c8f6ff;
  border-bottom: var(--line);
}
.why .section-lede { max-width: 44rem; }

.why-block {
  background: var(--gold);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.2rem 1.3rem;
  margin: 0 0 1.4rem;
}
.why-block-tag {
  font-family: var(--font-tick);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--red-dk);
  margin: 0 0 0.35rem;
}
.why-block-title {
  font-size: clamp(1.45rem, 4vw, 2.15rem);
  margin: 0 0 1rem;
}
.why-reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.why-reasons li {
  background: var(--cream);
  border: var(--line);
  border-radius: 14px;
  padding: 0.95rem 0.95rem 0.55rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  min-width: 0;
}
.why-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--cream);
  border: 3px solid var(--black);
  border-radius: 50%;
  flex: 0 0 auto;
  line-height: 1;
  padding-top: 0.12rem;
}
.why-reason-title {
  font-size: 1.15rem;
  margin: 0 0 0.3rem;
  line-height: 1.05;
}
.why-reasons p:last-child { margin-bottom: 0.35rem; }

.give-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.4rem;
}
.panel-give { background: var(--white); }
.panel-give .panel-tag { color: var(--red-dk); }

.donation-log {
  background: var(--black);
  color: var(--cream);
  border: var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 0.85rem;
  box-shadow: var(--shadow-sm);
  max-width: 46rem;
}
.donation-log-tag {
  font-family: var(--font-tick);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
  margin: 0 0 0.2rem;
}
.donation-log-status {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--gold);
  margin: 0 0 0.45rem;
  line-height: 0.95;
}
.donation-log p:last-child { margin-bottom: 0.2rem; color: #f3f3f3; }

@media (max-width: 720px) {
  .why-reasons,
  .give-grid { grid-template-columns: 1fr; }
  .why-block { padding: 1rem 0.85rem 1.05rem; }
}
