:root {
  --ink: #101111;
  --paper: #f4edd7;
  --acid: #d7ff22;
  --yellow: #efc34b;
  --panel-border: 4px solid var(--ink);
  --hard-shadow: 7px 7px 0 var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: #020207; }

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  isolation: isolate;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 26%, rgba(234, 111, 224, .14), transparent 28%),
    radial-gradient(circle at 78% 66%, rgba(72, 211, 242, .12), transparent 31%),
    linear-gradient(155deg, #020207 0%, #080612 48%, #020c11 100%);
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  opacity: .6;
  background:
    linear-gradient(112deg, transparent 0 42%, rgba(255,255,255,.055) 48%, transparent 54%) 0 0 / 190% 100%,
    repeating-linear-gradient(90deg, rgba(83,219,245,.045) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(239,105,220,.038) 0 1px, transparent 1px 84px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 92%, transparent 100%);
  animation: stage-scan 16s linear infinite;
}

body::after {
  opacity: .76;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(99,229,255,.78) 0 1.5px, transparent 2.5px),
    radial-gradient(circle, rgba(255,128,227,.72) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,.5) 0 2px, transparent 3px);
  background-size: 190px 170px, 310px 260px, 250px 330px, 520px 430px;
  background-position: 18px 32px, 80px 120px, 140px 44px, 290px 210px;
  filter: drop-shadow(0 0 4px rgba(155, 218, 255, .6));
  animation: stage-particles 24s linear infinite;
}

button, input, select { font: inherit; }

[hidden] { display: none !important; }

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1024px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: visible;
  background: transparent;
  border-inline: 0;
}

.trading-banner {
  position: relative;
  z-index: 20;
  min-height: 76px;
  margin: 24px 44px 0;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: var(--panel-border);
  border-radius: 17px 17px 24px 17px;
  background:
    radial-gradient(circle at 30% 50%, rgba(255,255,255,.28) 0 2px, transparent 3px) 0 0 / 12px 12px,
    linear-gradient(105deg, #f7d047, #e7b526);
  box-shadow: 0 8px 0 rgba(0,0,0,.92);
  transform: rotate(-.3deg);
}

.banner-title {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(25px, 3.8vw, 40px);
  font-style: italic;
  letter-spacing: .3px;
  white-space: nowrap;
}

.banner-title span {
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: .58em;
  font-style: normal;
}

.banner-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.chain-list { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }

.chain-chip {
  padding: 9px 13px;
  color: #f1c63b;
  background: #171819;
  border: 2px solid #000;
  transform: skew(-12deg);
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 1px 1px #000;
}

.chain-cube { color: #ffc629; margin-right: 4px; }

.twitter-login-btn {
  min-height: 42px;
  padding: 8px 14px;
  border: 3px solid #111;
  border-radius: 999px;
  color: #f5f5f5;
  background: #111;
  box-shadow: 4px 4px 0 rgba(0,0,0,.55);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s, filter .12s;
}

.twitter-login-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.twitter-login-btn:focus-visible, #generate-button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 4px solid #58e88a;
  outline-offset: 3px;
}
.twitter-login-btn.is-connected { color: #111; background: linear-gradient(#f7f7f7, #d9d9d9); }

.factory-stage {
  position: relative;
  min-height: 1020px;
  margin-top: -8px;
  overflow: visible;
  isolation: isolate;
  background: transparent;
  border-top: 0;
}

.factory-stage::before,
.factory-stage::after {
  display: none;
}

@keyframes stage-scan {
  from { background-position: -70% 0, 0 0, 0 0; }
  to { background-position: 120% 0, 72px 0, 0 72px; }
}

@keyframes stage-particles {
  from { background-position: 18px 32px, 80px 120px, 140px 44px, 0 0, 0 0; }
  to { background-position: 18px -138px, 80px -120px, 140px -266px, 0 0, 0 0; }
}

.mini-card-wall {
  display: none;
}

.hero-card {
  position: absolute;
  z-index: 8;
  left: 56px;
  top: calc(108px + 5vh);
  width: 540px;
  aspect-ratio: 1.52 / 1;
  transform: rotate(-7deg);
  transform-origin: center;
  overflow: visible;
  filter:
    drop-shadow(0 0 10px rgba(255, 174, 244, .3))
    drop-shadow(0 0 22px rgba(102, 215, 255, .2))
    drop-shadow(0 22px 28px rgba(7, 1, 14, .72));
}

.hand-stage__back,
.hand-stage__thumb {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
}

.hand-stage__back {
  inset: 0;
  z-index: 2;
  top: 46%;
  left: -67%;
  width: 160%;
  height: 100%;
  object-fit: contain;
}

.hand-stage__thumb {
  z-index: 3;
  left: -17%;
  top: 69%;
  width: 39%;
  height: auto;
  object-fit: contain;
}

.card-slot {
  position: absolute;
  inset: 0;
  z-index: 2;
  box-sizing: border-box;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(48, 24, 72, .55);
}

.card-grip {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.card-grip--back { z-index: 1; }
.card-grip--front { z-index: 4; }

.card-grip__arm,
.card-grip__palm,
.card-grip__digit,
.card-grip__thumb {
  position: absolute;
  display: block;
  box-sizing: border-box;
  border: 1px solid rgba(244, 235, 255, .55);
  background:
    radial-gradient(circle at 38% 30%, rgba(255,255,255,.68), transparent 24%),
    linear-gradient(118deg, #9bdff2 0%, #f2c9ef 43%, #d6c6ff 68%, #7fcde8 100%);
  box-shadow:
    inset -10px -6px 18px rgba(88, 190, 219, .22),
    inset 8px 4px 16px rgba(255, 185, 235, .25),
    0 0 9px rgba(195, 220, 255, .72),
    0 0 22px rgba(229, 143, 229, .34);
}

.card-grip__arm {
  left: -105px;
  bottom: -128px;
  width: 382px;
  height: 80px;
  border-radius: 70% 46% 48% 70%;
  transform: rotate(8deg);
  transform-origin: right center;
}

.card-grip__palm {
  left: 112px;
  bottom: -88px;
  width: 172px;
  height: 126px;
  border-radius: 58% 48% 52% 46%;
  transform: rotate(2deg);
}

.card-grip__palm::after {
  content: "";
  position: absolute;
  right: 31px;
  top: 22px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 20%, #88e5ef 24% 48%, #ca8fe8 52% 100%);
  box-shadow: 0 0 8px #fff, 0 0 15px #86e6f0;
}

.card-grip__digit {
  width: 28px;
  border-radius: 70% 70% 45% 45%;
  transform-origin: 50% 92%;
}

.card-grip__digit::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 7px;
  width: 12px;
  height: 17px;
  border-radius: 50% 50% 42% 42%;
  background: linear-gradient(180deg, rgba(255,255,255,.74), rgba(232,179,238,.32));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}

.card-grip__digit--index { left: 226px; bottom: -48px; height: 86px; transform: rotate(22deg); }
.card-grip__digit--middle { left: 199px; bottom: -58px; height: 94px; transform: rotate(12deg); }
.card-grip__digit--ring { left: 173px; bottom: -60px; height: 84px; transform: rotate(3deg); }
.card-grip__digit--pinky { left: 149px; bottom: -57px; height: 70px; transform: rotate(-8deg); }

.card-grip__thumb {
  left: 108px;
  bottom: -5px;
  width: 142px;
  height: 42px;
  border-radius: 62% 52% 50% 58%;
  transform: rotate(-11deg);
  transform-origin: left center;
}

.card-slot--blank {
  background: linear-gradient(145deg, #f6b8d8 0%, #d8b0ec 35%, #a8d8f4 100%);
  border: 3px solid rgba(255, 255, 255, .82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .45),
    0 0 20px rgba(180, 120, 255, .25),
    0 14px 34px rgba(48, 24, 72, .45);
}

.card-slot--filled {
  overflow: hidden;
}

.card-face {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
  height: 100%;
  padding: 10px 12px 8px;
  box-sizing: border-box;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .88);
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .42) 0 8%, transparent 28%),
    radial-gradient(circle at 18% 88%, rgba(255, 255, 255, .22) 0 10%, transparent 32%),
    linear-gradient(145deg, #f6b8d8 0%, #dcb4ec 24%, #b8d4f8 58%, #9ad0ef 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .55),
    0 0 22px rgba(176, 118, 255, .32),
    0 14px 34px rgba(48, 24, 72, .45);
}

.card-face__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.card-face__bust {
  position: absolute;
  width: 54px;
  height: 68px;
  border-radius: 50% 50% 42% 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .08) 100%);
  opacity: .55;
}

.card-face__bust--left { left: 8px; top: 34px; transform: rotate(-8deg); }
.card-face__bust--right { right: 78px; top: 58px; width: 42px; height: 54px; opacity: .4; }

.card-face__palm {
  position: absolute;
  bottom: 18px;
  width: 46px;
  height: 62px;
  background:
    linear-gradient(180deg, transparent 0 38%, rgba(255, 255, 255, .22) 38% 42%, transparent 42%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, .24) 0 34%, transparent 36%);
  opacity: .5;
}

.card-face__palm--left { left: 10px; transform: rotate(-6deg); }
.card-face__palm--right { right: 24px; transform: rotate(8deg); }

.card-face__circuit {
  position: absolute;
  inset: 8px 12px auto;
  height: 42px;
  border-radius: 10px;
  opacity: .35;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, .55) 8% 8.5%, transparent 8.5% 20%, rgba(255, 255, 255, .45) 20% 20.5%, transparent 20.5% 100%),
    linear-gradient(0deg, transparent 0 48%, rgba(255, 255, 255, .4) 48% 52%, transparent 52% 100%);
}

.card-face__moon {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 14px;
  opacity: .85;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, .6));
}

.card-face__flare {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .65) 0 18%, transparent 62%);
}

.card-face__flare--a { left: 24%; top: 18%; }
.card-face__flare--b { right: 30%; bottom: 22%; width: 28px; height: 28px; }

.card-face__top {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1px;
  padding-top: 2px;
}

.card-face__brand {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 18px;
  letter-spacing: .5px;
  background: linear-gradient(90deg, #fff6b8 0%, #ffd4ef 45%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 #6d3f96) drop-shadow(1px 0 0 #6d3f96);
}

.card-face__cube {
  color: #8fd7ff;
  font-size: 16px;
  filter: drop-shadow(0 0 4px rgba(143, 215, 255, .8));
}

.card-face__rocket { font-size: 14px; }

.card-face__chain {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 0 #5f3a86, 1px 0 0 #5f3a86;
}

.card-face__trophy {
  position: absolute;
  right: 2px;
  top: 0;
  font-size: 28px;
  filter: drop-shadow(0 2px 2px rgba(90, 50, 20, .45));
}

.card-face__main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 10px;
  align-items: center;
  min-height: 0;
}

.card-face__portrait {
  width: 100%;
  aspect-ratio: 1;
}

.card-face__avatar-fallback {
  position: relative;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, .92);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #f7d2ea 0%, #d7eefb 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .65),
    0 0 12px rgba(255, 255, 255, .35);
}

.card-face__avatar {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-face__avatar-fallback:not(.has-avatar) .card-face__avatar {
  display: none;
}

.card-face__bull-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 36%, #f2a7c8 0 24%, #e889b2 24% 27%, transparent 27%),
    radial-gradient(ellipse at 50% 72%, #f0a2c4 0 34%, #d97aa8 34% 38%, transparent 38%),
    linear-gradient(180deg, #f8d2ea 0%, #d4ebfb 100%);
}

.card-face__bull-art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 30%;
  width: 58%;
  height: 42%;
  transform: translateX(-50%);
  border-radius: 48% 48% 42% 42%;
  background: linear-gradient(180deg, #f4a6c6 0%, #e98ab3 100%);
  box-shadow: inset -4px -6px 0 rgba(180, 80, 120, .18);
}

.card-face__bull-art::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: 72%;
  height: 34%;
  transform: translateX(-50%);
  border-radius: 40% 40% 20% 20%;
  background: linear-gradient(180deg, #78b9ef 0%, #5f9fd8 100%);
}

.card-face__bull-headband {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 24%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  color: #4f86c6;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 9px;
  letter-spacing: .4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .15);
}

.card-face__avatar-fallback.has-avatar .card-face__bull-art {
  display: none;
}

.card-face__info {
  position: relative;
  min-width: 0;
  padding-right: 42px;
}

.card-face__title {
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(28px, 5.2vw, 38px);
  line-height: .95;
  letter-spacing: 1px;
  color: #fff;
  -webkit-text-stroke: 1.2px #4f2f78;
  text-shadow:
    0 2px 0 #4f2f78,
    2px 0 0 #4f2f78,
    0 0 10px rgba(255, 255, 255, .35);
}

.card-face__tagline {
  margin: 4px 0 6px;
  font-size: clamp(10px, 1.5vw, 12px);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 0 #5f3a86, 1px 0 0 #5f3a86;
}

.card-face__fields {
  display: grid;
  gap: 3px;
}

.card-face__field {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(10px, 1.45vw, 13px);
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 0 #5f3a86, 1px 0 0 #5f3a86;
  white-space: nowrap;
}

.card-face__label { flex: 0 0 auto; }

.card-face__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-face__og-badge {
  position: absolute;
  right: 0;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  transform: translateY(-42%) rotate(45deg);
  background: linear-gradient(135deg, #fff7c8 0%, #d9f6ff 45%, #ffffff 100%);
  border: 2px solid rgba(255, 255, 255, .95);
  box-shadow:
    0 0 10px rgba(255, 255, 255, .55),
    inset 0 0 8px rgba(143, 215, 255, .35);
  clip-path: polygon(50% 0%, 92% 25%, 92% 75%, 50% 100%, 8% 75%, 8% 25%);
}

.card-face__og-badge span {
  transform: rotate(-45deg);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 11px;
  color: #4f2f78;
  text-shadow: 0 1px 0 #fff;
}

.card-face__footer {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(11px, 1.6vw, 13px);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 0 #5f3a86, 1px 0 0 #5f3a86;
}

.card-face__footer-mark {
  margin-left: 4px;
  font-size: 12px;
  opacity: .9;
}

.hero-card[data-tier="Gold"] .card-face {
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 245, 180, .42) 0 8%, transparent 28%),
    linear-gradient(145deg, #f8d4a0 0%, #e8c070 24%, #b8d4f8 58%, #9ad0ef 100%);
}

.hero-card[data-tier="Rookie"] .card-face {
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .42) 0 8%, transparent 28%),
    linear-gradient(145deg, #d8d0f8 0%, #b8b8ec 24%, #a8d8f4 58%, #98d8ef 100%);
}

/* Generated card: vaporwave OG reference treatment */
.hero-card.is-validated {
  left: 56px;
  top: calc(108px + 5vh);
  width: 540px;
  aspect-ratio: 1.52 / 1;
  transform: rotate(-7deg);
  transform-origin: center;
  filter:
    drop-shadow(0 0 10px rgba(255, 174, 244, .34))
    drop-shadow(0 0 22px rgba(102, 215, 255, .22))
    drop-shadow(0 22px 28px rgba(7, 1, 14, .72));
}

.hero-card.is-validated .card-slot--filled {
  isolation: isolate;
  overflow: visible;
  border-radius: 34px;
}

.hero-card.is-validated .card-slot--filled::before,
.hero-card.is-validated .card-slot--filled::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid rgba(224, 247, 255, .8);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(245,171,231,.72), rgba(87,215,231,.72));
  pointer-events: none;
}

.hero-card.is-validated .card-slot--filled::before {
  z-index: -2;
  transform: translate(-8px, 11px);
  opacity: .7;
}

.hero-card.is-validated .card-slot--filled::after {
  z-index: -1;
  transform: translate(-4px, 6px);
  opacity: .82;
}

.hero-card.is-validated .card-face {
  gap: 8px;
  padding: 16px 20px 13px;
  border: 6px solid rgba(255, 250, 255, .94);
  border-radius: 34px;
  background:
    linear-gradient(112deg, rgba(255,255,255,.14) 0 11%, transparent 24% 68%, rgba(255,255,255,.1) 82%, transparent 100%),
    repeating-linear-gradient(0deg, transparent 0 37px, rgba(255,255,255,.14) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 74px, rgba(255,255,255,.09) 75px 77px),
    radial-gradient(circle at 82% 12%, rgba(255,255,255,.42) 0 7%, transparent 24%),
    radial-gradient(circle at 18% 88%, rgba(255,255,255,.28) 0 10%, transparent 30%),
    linear-gradient(145deg, #f198dd 0%, #e0a7ef 29%, #9dcff5 57%, #47d7e7 100%);
  box-shadow:
    inset 0 0 0 2px rgba(164, 237, 255, .9),
    inset 0 0 22px rgba(255,255,255,.34),
    0 0 0 2px rgba(195, 225, 255, .56),
    0 0 22px rgba(255, 157, 239, .44),
    0 16px 34px rgba(31, 8, 49, .56);
}

.hero-card.is-validated .card-face::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 1;
  pointer-events: none;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 25px;
  box-shadow: inset 0 0 12px rgba(105, 226, 255, .25);
}

.hero-card.is-validated .card-face::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(105deg, transparent 12%, rgba(255,255,255,.18) 31%, transparent 45%),
    radial-gradient(circle at 29% 22%, rgba(255,255,255,.28), transparent 21%);
  mix-blend-mode: screen;
}

.hero-card.is-validated .card-face__decor { opacity: .92; }
.hero-card.is-validated .card-face__bust { width: 72px; height: 92px; opacity: .38; }
.hero-card.is-validated .card-face__bust--left { left: 12px; top: 62px; }
.hero-card.is-validated .card-face__bust--right { right: 48px; top: 78px; width: 58px; height: 75px; opacity: .3; }
.hero-card.is-validated .card-face__palm { width: 62px; height: 84px; opacity: .38; }
.hero-card.is-validated .card-face__palm--left { left: 16px; bottom: 28px; }
.hero-card.is-validated .card-face__palm--right { right: 18px; bottom: 32px; }
.hero-card.is-validated .card-face__circuit { inset: 13px 24px auto; height: 62px; opacity: .48; }
.hero-card.is-validated .card-face__moon { top: 9px; right: 14px; font-size: 23px; }
.hero-card.is-validated .card-face__flare--a { width: 58px; height: 58px; left: 28%; top: 14%; }
.hero-card.is-validated .card-face__flare--b { width: 44px; height: 44px; right: 28%; bottom: 18%; }

.hero-card.is-validated .card-face__top {
  gap: 0;
  padding-top: 0;
  transform: translateX(-6px);
}

.hero-card.is-validated .card-face__brand {
  gap: 7px;
  font-size: 31px;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #9f69ca 0%, #e893d7 48%, #ffd5ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 1px 0 #fff) drop-shadow(1px 0 0 #74468f);
}
.hero-card.is-validated .card-face__cube { font-size: 25px; }
.hero-card.is-validated .card-face__rocket { font-size: 23px; }
.hero-card.is-validated .card-face__chain { font-size: 17px; }
.hero-card.is-validated .card-face__trophy { right: 15px; top: 2px; font-size: 58px; }

.hero-card.is-validated .card-face__main {
  grid-template-columns: 33% 1fr;
  gap: 16px;
  padding: 0 7px;
}

.hero-card.is-validated .card-face__portrait { aspect-ratio: .96 / 1; }
.hero-card.is-validated .card-face__avatar-fallback {
  border-width: 5px;
  border-radius: 21px;
  background: linear-gradient(180deg, #f9c4ec 0%, #bfe8fb 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.48), 0 0 17px rgba(255,255,255,.55);
}

.hero-card.is-validated .card-face__bull-art {
  inset: 0;
  background: url("assets/card-face-vaporwave.png") 16% 55% / 460% auto no-repeat;
}

.hero-card.is-validated .card-face__bull-art::before,
.hero-card.is-validated .card-face__bull-art::after,
.hero-card.is-validated .card-face__bull-headband { display: none; }

.hero-card.is-validated .card-face__info { z-index: 3; padding-right: 100px; }
.hero-card.is-validated .card-face__title {
  font-size: 47px;
  line-height: .9;
  letter-spacing: 1.5px;
  -webkit-text-stroke: 1.8px #5e3b83;
  text-shadow: 0 3px 0 #5e3b83, 3px 0 0 #5e3b83, 0 0 14px rgba(255,255,255,.48);
}

.hero-card.is-validated .card-face__tagline { margin: 7px 0 8px; font-size: 17px; line-height: 1; }
.hero-card.is-validated .card-face__fields { gap: 5px; }
.hero-card.is-validated .card-face__field { gap: 5px; font-size: 17px; line-height: 1.1; }
.hero-card.is-validated .card-face__og-badge {
  right: -4px;
  width: 100px;
  height: 100px;
  transform: translateY(-44%) rotate(7deg);
  border: 3px solid #6c5b86;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92) 0 28%, transparent 29%),
    linear-gradient(35deg, #d5f7ff 0 34%, #ffffff 35% 54%, #dcbef1 55% 76%, #b6eff9 77% 100%);
  box-shadow: 0 0 14px rgba(255,255,255,.75), inset 0 0 12px rgba(85,177,229,.45);
  clip-path: polygon(50% 0, 100% 39%, 70% 100%, 30% 100%, 0 39%);
}
.hero-card.is-validated .card-face__og-badge::before {
  content: "";
  position: absolute;
  inset: 14% 18% 25%;
  border: 1px solid rgba(104,95,151,.45);
  clip-path: polygon(50% 0, 100% 42%, 68% 100%, 32% 100%, 0 42%);
}
.hero-card.is-validated .card-face__og-badge span { position: relative; z-index: 1; transform: none; font-size: 20px; }
.hero-card.is-validated .card-face__footer { padding-bottom: 2px; font-size: 19px; }
.hero-card.is-validated .card-face__footer-mark { font-size: 18px; }

.paper-panel, .validation-panel {
  border: var(--panel-border);
  color: #111;
  background:
    radial-gradient(circle, rgba(0,0,0,.12) .7px, transparent .8px) 0 0 / 5px 5px,
    rgba(245,237,210,.96);
  box-shadow: var(--hard-shadow);
}

.right-column {
  position: absolute;
  z-index: 10;
  right: 31px;
  top: 112px;
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.generator-panel {
  position: relative;
  width: 100%;
  padding: 27px 25px 32px;
  border-radius: 25px 14px 18px 22px;
}

.generator-panel:has(.twitter-profile:not([hidden])) { min-height: 0; }

.generator-panel h2, .factory-panel h2, .validation-panel h2 {
  margin: 0 0 10px;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  letter-spacing: .2px;
}

.generator-panel h2 { font-size: 39px; line-height: 1; }
#card-form { display: grid; gap: 7px; }

.twitter-profile {
  min-height: 68px;
  margin: 2px 0 5px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 3px solid #111;
  border-radius: 10px;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 #fff;
}

.avatar-thumb {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border: 3px solid #111;
  border-radius: 50%;
  object-fit: cover;
  background: #d8d1bc;
}

.twitter-profile div { min-width: 0; display: grid; gap: 2px; }
.twitter-profile span { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.twitter-profile strong { overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }

#card-form label { margin-top: 1px; font-size: 22px; line-height: 1; font-weight: 900; }

#card-form input, #card-form select {
  width: 100%;
  min-height: 42px;
  padding: 5px 10px;
  border: 3px solid #111;
  border-radius: 7px;
  color: #111;
  background: rgba(255,255,255,.87);
  font-size: 22px;
  box-shadow: inset 0 1px 0 #fff;
}

#card-form .is-invalid { border-color: #c81e12; outline: 3px solid rgba(200,30,18,.18); }

#generate-button {
  position: relative;
  min-height: 56px;
  margin-top: 14px;
  margin-bottom: 0;
  border: 4px solid #111;
  border-radius: 999px;
  color: #19220b;
  background: linear-gradient(#efff77 0%, #d4ff28 43%, #91bd1b 100%);
  box-shadow: inset 0 4px 0 rgba(255,255,255,.75), 0 7px 0 #1b2912;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 24px;
  cursor: pointer;
  transition: transform .12s, filter .12s;
}

#generate-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
#generate-button:active { transform: translateY(5px); box-shadow: inset 0 4px 0 rgba(255,255,255,.6), 0 2px 0 #1b2912; }
#generate-button:disabled { cursor: wait; filter: grayscale(.3); }
#generate-button.login-required {
  color: #2a2010;
  background: linear-gradient(#f0d27a 0%, #d9a52d 100%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.55), 0 6px 0 #4a3410;
}

.sticker {
  position: absolute;
  z-index: 12;
  border: 3px solid #111;
  color: #12212a;
  background: #f3e8c8;
  font-family: Impact, "Arial Black", sans-serif;
  font-style: italic;
  text-align: center;
  text-shadow: 1px 1px 0 #fff;
  box-shadow: 4px 4px 0 rgba(0,0,0,.55);
}

.sticker-wagmi { right: -21px; top: -23px; padding: 8px 12px; color: #f0a53d; font-size: 27px; transform: rotate(13deg); }
.sticker-og {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  font-size: 31px;
  clip-path: polygon(50% 0, 64% 17%, 86% 13%, 88% 36%, 100% 50%, 84% 65%, 87% 88%, 63% 86%, 50% 100%, 35% 84%, 13% 88%, 12% 64%, 0 50%, 16% 35%, 13% 13%, 37% 17%);
  background: linear-gradient(135deg, #f6efd7, #bcecf1 45%, #c3afd8 70%, #fff0c7);
}
.sticker-og-top { right: -16px; top: 54px; transform: rotate(7deg); }

.validation-panel {
  position: absolute;
  z-index: 11;
  left: 330px;
  top: 320px;
  width: 300px;
  padding: 15px 16px 13px;
  border-radius: 22px;
  background-color: rgba(238,235,220,.92);
}

.validation-panel h2 { font-size: 25px; }
.progress-row { display: flex; align-items: center; gap: 8px; }
.progress-track {
  width: 190px;
  height: 38px;
  overflow: hidden;
  border: 3px solid #111;
  border-radius: 5px;
  background: #e6e6e6;
}
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg, #39bc58, #41dc75); transition: width .16s linear; }
.progress-row strong { font-size: 22px; }
.validation-panel p { margin: 6px 0 0; font-size: 17px; line-height: 1.05; font-weight: 800; }

.factory-panel {
  position: relative;
  width: 100%;
  min-height: 0;
  padding: 30px 22px 22px;
  border-radius: 16px;
}
.factory-panel h2 { font-size: 26px; }
.factory-panel ul { margin: 12px 0 0; padding-left: 22px; font-size: 17px; line-height: 1.27; font-weight: 800; }
.factory-panel li + li { margin-top: 7px; }
.sticker-og-side { right: -24px; top: -48px; transform: rotate(13deg); }

.owned-card-panel {
  position: relative;
  width: 100%;
  padding: 28px 24px 24px;
  border-radius: 25px 14px 18px 22px;
}

.owned-card-panel h2 {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 10px;
}

.owned-copy {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
}

.owned-details {
  margin: 0;
  display: grid;
  gap: 10px;
}

.owned-details div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 3px solid #111;
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}

.owned-details dt {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.owned-details dd {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.bottom-cta {
  position: absolute;
  z-index: 9;
  right: 37px;
  bottom: 20px;
  padding: 11px 16px;
  border: 4px solid #111;
  color: #111;
  background: var(--paper);
  box-shadow: 5px 6px 0 #111;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 22px;
  text-decoration: none;
}

@media (max-width: 900px) {
  .trading-banner { margin-inline: 18px; }
  .banner-title { white-space: normal; }
  .chain-chip { padding-inline: 9px; font-size: 15px; }
  .generator-panel, .factory-panel, .right-column { right: 18px; }
  .validation-panel { left: 29vw; }
}

@media (max-width: 760px) {
  .page-shell { border: 0; }
  .trading-banner {
    min-height: auto;
    margin: 12px 10px 0;
    padding: 12px;
    align-items: flex-start;
    flex-direction: column;
  }
  .banner-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .twitter-login-btn { width: 100%; }
  .banner-title { width: 100%; font-size: 25px; line-height: 1; }
  .banner-title span { display: block; margin-top: 5px; }
  .chain-list { width: 100%; overflow: hidden; }
  .chain-chip { min-width: 0; flex: 1; padding-inline: 5px; font-size: 13px; text-align: center; }
  .factory-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    min-height: min(100vw, 620px);
    margin-top: -8px;
    padding: 20px 14px 48px;
    overflow: visible;
  }
  .hero-card,
  .hero-card.is-validated {
    position: relative;
    left: auto;
    top: auto;
    order: 1;
    width: min(84vw, 500px);
    aspect-ratio: 1.52 / 1;
    margin: 48px 0 42px;
    transform: rotate(-5deg);
    filter:
      drop-shadow(0 0 8px rgba(255, 174, 244, .38))
      drop-shadow(0 12px 18px rgba(7, 1, 14, .62));
  }
  .card-grip--back,
  .card-grip--front {
    transform: scale(.72);
    transform-origin: left bottom;
  }
  .hero-card.is-validated .card-face { gap: 3px; padding: 8px 10px 7px; border-width: 4px; border-radius: 22px; }
  .hero-card.is-validated .card-face::before { inset: 5px; border-width: 1px; border-radius: 16px; }
  .hero-card.is-validated .card-slot--filled { border-radius: 22px; }
  .hero-card.is-validated .card-face__top { transform: translateX(8px); }
  .hero-card.is-validated .card-face__brand { gap: 3px; font-size: 16px; }
  .hero-card.is-validated .card-face__cube { font-size: 14px; }
  .hero-card.is-validated .card-face__rocket { font-size: 13px; }
  .hero-card.is-validated .card-face__chain { font-size: 10px; }
  .hero-card.is-validated .card-face__trophy { right: 7px; top: 0; font-size: 31px; }
  .hero-card.is-validated .card-face__main { grid-template-columns: 33% 1fr; gap: 7px; padding-inline: 4px; }
  .hero-card.is-validated .card-face__avatar-fallback { border-width: 3px; border-radius: 13px; }
  .hero-card.is-validated .card-face__info { padding-right: 42px; }
  .hero-card.is-validated .card-face__title { font-size: 29px; letter-spacing: .5px; -webkit-text-stroke-width: 1px; }
  .hero-card.is-validated .card-face__tagline { margin: 3px 0 4px; font-size: 9px; }
  .hero-card.is-validated .card-face__fields { gap: 2px; }
  .hero-card.is-validated .card-face__field { gap: 2px; font-size: 9px; }
  .hero-card.is-validated .card-face__og-badge { right: -2px; width: 42px; height: 42px; border-width: 2px; }
  .hero-card.is-validated .card-face__og-badge span { font-size: 9px; }
  .hero-card.is-validated .card-face__footer { padding-bottom: 0; font-size: 10px; }
  .hero-card.is-validated .card-face__footer-mark { font-size: 10px; }
  .hero-card.is-validated .card-face__moon { top: 5px; right: 8px; font-size: 13px; }
  .hero-card.is-validated .card-face__bust { transform: scale(.6); transform-origin: top left; }
  .validation-panel, .right-column, .bottom-cta { position: relative; inset: auto; }
  .right-column {
    order: 2;
    z-index: 12;
    width: min(94vw, 430px);
    gap: 28px;
  }
  .generator-panel h2 { font-size: 34px; }
  .generator-panel { width: 100%; min-height: 0; }
  .validation-panel { order: 3; z-index: 12; width: min(92vw, 330px); }
  .factory-panel { width: 100%; min-height: 0; }
  .bottom-cta { order: 5; z-index: 12; align-self: flex-end; right: 10px; }
}

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

.community-feed {
  position: fixed;
  z-index: 30;
  left: 16px;
  bottom: 16px;
  width: min(92vw, 300px);
  padding: 12px 12px 10px;
  border: 3px solid #111;
  border-radius: 14px;
  color: #111;
  background:
    radial-gradient(circle, rgba(0, 0, 0, .08) .7px, transparent .8px) 0 0 / 5px 5px,
    linear-gradient(180deg, #f3ead2 0%, #e8dcc0 100%);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .72);
}

.community-feed__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-right: 0;
}

.community-feed__icon {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(1px 1px 0 #fff);
}

.community-feed__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: .3px;
  text-shadow: 2px 2px 0 #fff, -1px 0 0 #fff, 0 -1px 0 #fff;
}

.community-feed__close {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 2px solid #111;
  border-radius: 50%;
  color: #111;
  background: rgba(255, 255, 255, .72);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .55);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: filter .12s, transform .12s;
}

.community-feed__close:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.community-feed__close:focus-visible {
  outline: 3px solid #58e88a;
  outline-offset: 2px;
}

.community-feed__stats {
  margin: 0 0 10px;
  padding: 7px 10px;
  border: 2px solid #111;
  border-radius: 8px;
  background: rgba(255, 255, 255, .42);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.community-feed__stats strong {
  color: #b8861f;
  font-size: 16px;
}

.community-feed__status {
  margin: -4px 0 8px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  color: #8a3b12;
}

.community-feed__list {
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  list-style: none;
  display: grid;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: #111 #e0d3b8;
}

.community-feed__list::-webkit-scrollbar { width: 8px; }
.community-feed__list::-webkit-scrollbar-thumb {
  border: 2px solid #e0d3b8;
  border-radius: 8px;
  background: #111;
}

.community-feed__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 6px 8px;
  border: 2px solid #111;
  border-radius: 10px;
  background: rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}

.community-feed__item--new {
  animation: community-feed-pop .55s ease;
}

@keyframes community-feed-pop {
  0% { transform: translateY(8px); opacity: .2; }
  100% { transform: translateY(0); opacity: 1; }
}

.community-feed__avatar {
  width: 44px;
  aspect-ratio: 1;
  border: 2px solid #111;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

.community-feed__avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-feed__name {
  min-width: 0;
  overflow: hidden;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 17px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 2px 2px 0 #fff, -1px 0 0 #fff, 0 -1px 0 #fff;
}

.community-feed__meta {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.community-feed__rank {
  font-size: 13px;
  line-height: 1.1;
  color: #31253f;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

@media (max-width: 760px) {
  .community-feed {
    left: 10px;
    bottom: 10px;
    width: min(88vw, 280px);
    padding: 10px;
  }

  .community-feed__title { font-size: 24px; }
  .community-feed__list { max-height: 160px; }
  .community-feed__name { font-size: 15px; }
}
