:root {
  --bg: #91997a;
  --paper: #eef0e7;
  --ink: #11120f;
  --muted: #5d624f;
  --line: rgba(17, 18, 15, 0.18);
  --acid: #e6f56f;
  --shadow: 0 20px 60px rgba(25, 28, 18, 0.18);
  --radius-lg: 32px;
  --radius-md: 20px;
  --wrap: min(1180px, calc(100% - 36px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.10), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body::selection { background: var(--ink); color: var(--paper); }

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.wrap { width: var(--wrap); margin-inline: auto; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: multiply;
  z-index: 20;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(0,0,0,.35) 0 .6px, transparent .75px),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,.5) 0 .6px, transparent .75px);
  background-size: 7px 7px, 9px 9px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  position: relative;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.04em;
  font-size: 1.1rem;
}

.brand-dot {
  width: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--acid);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.nav { display: flex; gap: 8px; }
.nav a {
  text-decoration: none;
  font-weight: 800;
  font-size: .8rem;
  padding: 10px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: rgba(238,240,231,.4);
  transition: transform .18s ease, background .18s ease;
}
.nav a:hover { transform: translateY(-2px); background: var(--paper); }

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 58px;
  align-items: center;
  padding: 56px 0 78px;
}

.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 16px;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .16em;
}

h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(4rem, 8.6vw, 7.8rem);
  line-height: .78;
  letter-spacing: -.08em;
  font-weight: 1000;
  text-transform: uppercase;
}
h1 span { display: block; }
h1 .outline {
  color: transparent;
  -webkit-text-stroke: 2.5px var(--ink);
  text-stroke: 2.5px var(--ink);
}

.lead {
  max-width: 540px;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: #2f332a;
  margin-bottom: 26px;
}

.ca-card {
  max-width: 650px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: rgba(238,240,231,.66);
  box-shadow: 7px 7px 0 var(--ink);
  overflow: hidden;
  margin-bottom: 24px;
}
.ca-label {
  padding: 11px 14px;
  border-bottom: 1.5px solid var(--ink);
  font-size: .7rem;
  letter-spacing: .14em;
  font-weight: 900;
}
.ca-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 10px 10px 14px;
}
.ca-row code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .95rem;
  font-weight: 800;
}
.copy-btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 13px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 14px;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  transition: transform .18s ease, opacity .18s ease;
}
.copy-btn:hover { transform: translateY(-2px); }
.copy-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .02em;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 6px 0 rgba(17,18,15,.18); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); }
.btn-accent { background: var(--acid); }

.hero-art { position: relative; display: grid; place-items: center; }
.image-card {
  width: min(540px, 100%);
  aspect-ratio: 1;
  border: 2.5px solid var(--ink);
  border-radius: 44px;
  overflow: hidden;
  box-shadow: 14px 14px 0 var(--ink), var(--shadow);
  transform: rotate(1.4deg);
  background: #8f9778;
  animation: float 5s ease-in-out infinite;
}
.image-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sticker {
  position: absolute;
  z-index: 3;
  background: var(--acid);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 11px 18px 10px;
  font-size: .75rem;
  font-weight: 950;
  box-shadow: 4px 4px 0 var(--ink);
}
.sticker-one { left: -10px; top: 12%; transform: rotate(-10deg); }
.sticker-two { right: -8px; bottom: 14%; transform: rotate(8deg); background: var(--paper); }

@keyframes float {
  0%,100% { transform: rotate(1.4deg) translateY(0); }
  50% { transform: rotate(.4deg) translateY(-8px); }
}

.ticker {
  width: 100%;
  border-block: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.ticker-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}
.ticker span { padding: 15px 0; font-weight: 950; letter-spacing: .06em; }
@keyframes marquee { to { transform: translateX(-50%); } }

.links-section, .dex-section { padding: 94px 0; }
.section-head { margin-bottom: 28px; }
h2 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: .9;
  letter-spacing: -.065em;
  font-weight: 1000;
}
.link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.link-card {
  min-height: 148px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 18px;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: rgba(238,240,231,.56);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.link-card:hover { transform: translateY(-4px); background: var(--paper); box-shadow: 7px 7px 0 var(--ink); }
.link-kicker { font-size: .68rem; font-weight: 950; opacity: .6; align-self: start; }
.link-title { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 1000; letter-spacing: -.05em; }
.link-arrow { font-size: 1.8rem; font-weight: 900; }

.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.mini-link {
  font-size: .74rem;
  font-weight: 950;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
}
.dex-frame-wrap {
  position: relative;
  min-height: 560px;
  border: 2px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  background: #161813;
  box-shadow: 10px 10px 0 var(--ink);
}
.dex-frame-wrap iframe { width: 100%; min-height: 560px; border: 0; display: block; background: #161813; }
.dex-fallback {
  min-height: 560px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  color: var(--paper);
  padding: 30px;
}
.dex-fallback strong { font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.05em; }
.dex-fallback span { color: #bfc3b3; }

.footer {
  border-top: 1.5px solid var(--ink);
  padding: 24px 0 38px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.footer-meta { display: flex; gap: 18px; flex-wrap: wrap; }
.muted { opacity: .55; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 40;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--paper);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: .72rem;
  font-weight: 950;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 34px; gap: 56px; }
  .hero-art { order: -1; width: min(650px, 94%); margin: 0 auto; }
  .image-card { width: min(590px, 100%); }
  .link-grid { grid-template-columns: 1fr; }
  .section-head-row { align-items: start; flex-direction: column; }
}

@media (max-width: 600px) {
  :root { --wrap: min(100% - 22px, 1180px); }
  .topbar { padding-top: 14px; }
  .nav a { padding: 8px 10px; font-size: .7rem; }
  h1 { font-size: clamp(3.6rem, 20vw, 5.6rem); }
  .hero { padding-bottom: 58px; }
  .ca-row { align-items: stretch; }
  .copy-text { display: none; }
  .copy-btn { width: 44px; justify-content: center; padding-inline: 0; }
  .cta-row { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .sticker { font-size: .65rem; padding: 9px 13px 8px; }
  .links-section, .dex-section { padding: 68px 0; }
  .link-card { min-height: 120px; padding: 18px; }
  .dex-frame-wrap, .dex-frame-wrap iframe, .dex-fallback { min-height: 500px; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
