:root {
  --void: #17111f;
  --panel: #231832;
  --panel-2: #302241;
  --ink: #fff7d9;
  --muted: #c8b6d8;
  --blue: #2879ff;
  --blue-2: #63d7ff;
  --violet: #8b55ff;
  --pink: #ff5ebc;
  --gold: #ffd05c;
  --line: #0b0710;
  --soft-line: rgba(255, 247, 217, .22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    repeating-linear-gradient(45deg, rgba(40, 121, 255, .10) 0 12px, rgba(255, 94, 188, .08) 12px 24px),
    var(--void);
  background-size: 24px 24px, 24px 24px, auto, auto;
}

body.detail-open {
  overflow: hidden;
}

body.gate-locked {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
}

.lookup-stage {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 26px 42px 52px;
}

.site-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-strip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  min-height: 64px;
  padding: 6px 16px 6px 8px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .32);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.brand-strip img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #000;
  image-rendering: pixelated;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-links-top {
  justify-content: flex-end;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 12px 7px 8px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .30);
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .34);
}

.social-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.social-link-x:hover,
.social-link-x:focus-visible {
  background: #16101f;
}

.social-link-telegram:hover,
.social-link-telegram:focus-visible {
  background: #1f2440;
}

.social-link-github:hover,
.social-link-github:focus-visible {
  background: #181521;
}

.social-link-buy {
  background: #2a2235;
}

.social-link-buy:hover,
.social-link-buy:focus-visible {
  background: #33263f;
}

.social-link-dexscreener:hover,
.social-link-dexscreener:focus-visible {
  background: #282033;
}

.social-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid var(--line);
  border-radius: 6px;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .20);
}

.social-icon-x {
  background: #08080b;
  color: #fff7d9;
}

.social-icon-buy {
  background: linear-gradient(135deg, var(--blue-2), var(--gold));
  color: #17111f;
}

.social-icon-dexscreener {
  background: linear-gradient(135deg, var(--gold), var(--pink));
  color: #17111f;
}

.social-icon-telegram {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
}

.social-icon-github {
  background: #0d1117;
  color: #fff7d9;
}

.social-icon-github svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.social-icon-telegram::before {
  content: "";
  width: 19px;
  height: 16px;
  background: #fff7d9;
  clip-path: polygon(0 44%, 100% 0, 74% 100%, 52% 64%, 34% 82%);
}

.social-copy {
  display: grid;
  min-width: 0;
  line-height: 1;
}

.social-copy strong {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1rem;
}

.social-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: .78rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 42px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-copy {
  padding-bottom: 44px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--blue-2);
  font-family: "Pixelify Sans", sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Pixelify Sans", sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  font-size: 5.2rem;
  line-height: .88;
  text-shadow: 5px 5px 0 var(--violet), 10px 10px 0 rgba(255, 208, 92, .48);
}

.lookup-panel {
  padding: 24px;
  border: 4px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    var(--panel);
  background-size: 16px 16px, 16px 16px, auto;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, .34);
}

.lookup-panel label {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.25rem;
}

.contract-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: #fff7d9;
  color: #1a1026;
  box-shadow: inset 0 -5px 0 rgba(40, 121, 255, .18);
}

.contract-label {
  color: #9b1d80;
  font-family: "Space Grotesk", sans-serif;
  font-size: .94rem;
  font-weight: 700;
}

.contract-address {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a1026;
  font-size: .92rem;
  font-weight: 800;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-address:hover,
.contract-address:focus-visible {
  color: #2879ff;
}

.contract-copy {
  position: relative;
  width: 42px;
  height: 42px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--gold);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .26);
}

.contract-copy:hover,
.contract-copy:focus-visible {
  transform: translateY(-1px);
}

.contract-copy:focus-visible,
.contract-address:focus-visible {
  outline: 3px solid var(--blue-2);
  outline-offset: 3px;
}

.contract-copy svg {
  position: absolute;
  inset: 7px;
  width: 24px;
  height: 24px;
  overflow: visible;
}

.contract-copy rect {
  fill: #fff7d9;
  stroke: var(--line);
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.input-row input {
  min-width: 0;
  min-height: 62px;
  border: 4px solid var(--line);
  border-radius: 8px;
  background: #fff7d9;
  color: #1a1026;
  padding: 0 18px;
  outline: none;
  font-weight: 700;
  box-shadow: inset 0 -6px 0 rgba(139, 85, 255, .22);
}

.input-row input:focus {
  background: #f6e7ff;
  box-shadow: inset 0 -6px 0 rgba(40, 121, 255, .22), 0 0 0 4px rgba(99, 215, 255, .34);
}

.input-row input[aria-invalid="true"] {
  border-color: var(--pink);
  box-shadow: inset 0 -6px 0 rgba(255, 94, 188, .24), 0 0 0 4px rgba(255, 94, 188, .28);
}

.input-row button,
.close-button {
  min-width: 118px;
  min-height: 62px;
  border: 4px solid var(--line);
  border-radius: 8px;
  background: var(--blue);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .30);
}

.input-row button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.input-row button:hover,
.close-button:hover {
  transform: translateY(-1px);
}

.input-row button:disabled:hover {
  transform: none;
}

.status-line {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.status-line[data-tone="ready"] {
  color: var(--blue-2);
}

.status-line[data-tone="loading"] {
  color: var(--gold);
}

.status-line[data-tone="success"] {
  color: #8dffca;
}

.status-line[data-tone="error"] {
  color: var(--pink);
}

.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    rgba(10, 6, 14, .92);
  background-size: 24px 24px, 24px 24px, auto;
  backdrop-filter: blur(8px);
}

.entry-gate[hidden] {
  display: none;
}

.entry-gate-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, 430px);
  padding: 24px;
  border: 4px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .07) 1px, transparent 1px),
    var(--panel);
  background-size: 16px 16px, 16px 16px, auto;
  text-align: center;
  box-shadow: 14px 14px 0 rgba(0, 0, 0, .38);
}

.entry-gate-card > img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: #000;
  image-rendering: pixelated;
}

.entry-gate-card h2 {
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  line-height: .92;
  text-shadow: 4px 4px 0 var(--violet), 8px 8px 0 rgba(255, 208, 92, .42);
}

.entry-gate-copy {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.entry-turnstile-host {
  width: min(100%, 330px);
  min-height: 65px;
  margin-top: 4px;
}

.entry-gate-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.35;
}

.entry-gate-status[data-tone="loading"] {
  color: var(--gold);
}

.entry-gate-status[data-tone="success"] {
  color: #8dffca;
}

.entry-gate-status[data-tone="error"] {
  color: var(--pink);
}

.result-section {
  padding: 34px 42px 72px;
  border-top: 4px solid var(--line);
  background: rgba(16, 10, 23, .58);
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 28px 42px 46px;
  border-top: 4px solid var(--line);
  background: rgba(16, 10, 23, .76);
}

.social-links-footer {
  align-items: stretch;
  justify-content: center;
}

.social-links-footer .social-link {
  width: 214px;
}

.result-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto 22px;
}

h2 {
  font-size: 2.5rem;
}

.scale-badge {
  padding: 8px 10px;
  border: 2px solid var(--soft-line);
  border-radius: 8px;
  color: var(--muted);
  font-size: .9rem;
}

.gallery {
  width: min(1180px, 100%);
  min-height: 230px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(192px, 1fr));
  gap: 14px;
}

.how-works-section {
  width: min(1180px, 100%);
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 22px;
  border: 4px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    var(--panel);
  background-size: 16px 16px, 16px 16px, auto;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, .30);
}

.how-works-art {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: #000;
  overflow: hidden;
}

.how-works-art img {
  display: block;
  width: min(280px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: pixelated;
}

.how-works-copy {
  display: grid;
  gap: 12px;
}

.how-works-copy h2 {
  max-width: 720px;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: .9;
  text-shadow: 4px 4px 0 var(--violet), 8px 8px 0 rgba(255, 208, 92, .42);
}

.how-works-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.how-works-note {
  padding: 12px 14px;
  border: 2px solid rgba(99, 215, 255, .34);
  border-radius: 8px;
  background: rgba(99, 215, 255, .08);
  color: var(--ink);
}

.market-hint {
  margin-top: 4px;
  padding: 12px 14px;
  border: 2px solid var(--soft-line);
  border-radius: 8px;
  background: rgba(255, 247, 217, .08);
  color: var(--ink);
}

.project-disclaimer {
  padding-top: 10px;
  border-top: 2px solid var(--soft-line);
  color: color-mix(in srgb, var(--muted) 82%, var(--ink));
  font-size: .88rem;
}

.evolution-section {
  width: min(1180px, 100%);
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: center;
  gap: 28px;
  padding: 22px;
  border: 4px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 24%, rgba(255, 208, 92, .18), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    #141020;
  background-size: auto, 16px 16px, 16px 16px, auto;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, .30);
}

.evolution-copy {
  display: grid;
  gap: 12px;
}

.evolution-copy h2 {
  max-width: 760px;
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  line-height: .9;
  text-shadow: 4px 4px 0 #2d2550, 8px 8px 0 rgba(255, 208, 92, .34);
}

.evolution-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.evolution-warning {
  padding: 12px 14px;
  border: 2px solid rgba(255, 208, 92, .34);
  border-radius: 8px;
  background: rgba(255, 208, 92, .08);
  color: var(--ink);
}

.evolution-art {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: #070914;
  overflow: hidden;
}

.evolution-art img {
  display: block;
  width: min(280px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  image-rendering: pixelated;
}

.gallery-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--ink);
  text-align: left;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .28);
}

.box-stage {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  image-rendering: pixelated;
}

.box-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.piece-image img,
.detail-svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.baby-layer {
  animation: babyFloat 2.8s linear infinite;
  will-change: transform;
}

.card-box {
  display: block;
  width: 192px;
  height: 192px;
  justify-self: center;
  border: 3px solid var(--line);
  border-radius: 4px;
  background: var(--void);
  --float-distance: -12px;
}

.gallery-card strong {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.1rem;
}

.gallery-card span:last-child {
  color: var(--muted);
  font-size: .9rem;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 192px;
  display: grid;
  gap: 8px;
  place-items: center;
  border: 3px dashed var(--soft-line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.empty-state small {
  color: var(--gold);
}

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
}

.detail-overlay.is-open {
  display: block;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 4, 12, .74);
}

.detail-dialog {
  position: relative;
  z-index: 1;
  width: min(1060px, calc(100vw - 34px));
  max-height: calc(100vh - 34px);
  overflow: auto;
  margin: 17px auto;
  display: grid;
  grid-template-columns: minmax(0, 540px) 1fr;
  gap: 26px;
  padding: 26px;
  border: 4px solid var(--line);
  border-radius: 8px;
  background: #f8edff;
  color: #1a1026;
  box-shadow: 14px 14px 0 rgba(0, 0, 0, .38);
}

.close-button {
  position: sticky;
  top: 0;
  grid-column: 1 / -1;
  justify-self: end;
  min-height: 46px;
  background: var(--pink);
  color: #fff7d9;
}

.detail-box {
  width: 480px;
  height: 480px;
  max-width: 100%;
  border: 4px solid var(--line);
  border-radius: 4px;
  background: var(--void);
  image-rendering: pixelated;
  --float-distance: -30px;
}

.detail-box-inner {
  width: 100%;
  height: 100%;
}

.detail-copy {
  align-self: center;
}

.detail-copy h3 {
  font-size: 3.2rem;
  line-height: .95;
  margin-bottom: 16px;
}

.detail-copy p:last-child {
  color: #5e4a68;
  line-height: 1.5;
}

.trait-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.trait-row {
  display: grid;
  grid-template-columns: 1fr 58px auto;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 10px 12px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: #fff7d9;
  box-shadow: 5px 5px 0 rgba(11, 7, 16, .18);
}

.trait-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.trait-copy span {
  color: #9b1d80;
  font-family: "Pixelify Sans", sans-serif;
  font-size: .85rem;
  font-weight: 700;
}

.trait-copy strong {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.1rem;
}

.trait-copy small {
  color: #6b5a72;
  font-size: .82rem;
}

.trait-swatch {
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 6px;
  background: var(--void);
}

.trait-swatch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.trait-row b {
  min-width: 68px;
  text-align: right;
  font-size: 1rem;
}

.copy-toast {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  pointer-events: none;
  padding: 7px 10px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #fff7d9;
  color: #1a1026;
  font-family: "Pixelify Sans", sans-serif;
  font-size: .95rem;
  font-weight: 700;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .30);
  opacity: 0;
  transform: translate(12px, -50%) scale(.96);
  transition: opacity .14s ease, transform .14s ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(16px, -50%) scale(1);
}

@media (max-width: 880px) {
  .lookup-stage,
  .result-section,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-links-top {
    justify-content: flex-start;
    width: 100%;
  }

  .social-link {
    flex: 1 1 220px;
  }

  .hero-grid,
  .how-works-section,
  .evolution-section,
  .detail-dialog {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3.8rem;
  }

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

  .contract-row {
    grid-template-columns: 1fr 42px;
  }

  .contract-label {
    grid-column: 1 / -1;
  }

  .result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .how-works-art {
    min-height: 220px;
  }

  .evolution-art {
    order: -1;
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .lookup-stage {
    padding-top: 16px;
  }

  .social-link {
    width: 100%;
  }

  .social-links-footer .social-link {
    width: 100%;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .card-box {
    width: 144px;
    height: 144px;
  }

  .detail-box {
    width: 384px;
    height: 384px;
  }
}

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

  18% {
    transform: translateY(calc(var(--float-distance, -18px) * .08));
  }

  26% {
    transform: translateY(calc(var(--float-distance, -18px) * .28));
  }

  36% {
    transform: translateY(calc(var(--float-distance, -18px) * .58));
  }

  48% {
    transform: translateY(calc(var(--float-distance, -18px) * .86));
  }

  58%,
  66% {
    transform: translateY(var(--float-distance, -18px));
  }

  74% {
    transform: translateY(calc(var(--float-distance, -18px) * .86));
  }

  84% {
    transform: translateY(calc(var(--float-distance, -18px) * .58));
  }

  90% {
    transform: translateY(calc(var(--float-distance, -18px) * .28));
  }

  96% {
    transform: translateY(calc(var(--float-distance, -18px) * .08));
  }

  99% {
    transform: translateY(0);
  }
}

.card-box {
  --float-distance: -12px;
}

.detail-box {
  --float-distance: -30px;
}
