:root {
  --bg: #020610;
  --panel: rgba(5, 13, 26, 0.74);
  --panel-strong: rgba(7, 16, 31, 0.9);
  --line: rgba(223, 255, 0, 0.28);
  --line-soft: rgba(255, 255, 255, 0.14);
  --text: #f5f8ff;
  --muted: #b7c0d2;
  --lime: #d7ff00;
  --lime-2: #a8ff00;
  --cyan: #34f6ff;
  --pink: #ff49b8;
  --purple: #a257ff;
  --orange: #ff7a18;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

img,
svg {
  max-width: 100%;
}

body::selection {
  background: var(--lime);
  color: #061000;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 28px clamp(18px, 4vw, 48px) 34px;
}

.cyber-bg,
.cat-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.cyber-bg {
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(101, 71, 255, 0.18), transparent 26%),
    radial-gradient(circle at 82% 24%, rgba(255, 116, 24, 0.18), transparent 22%),
    radial-gradient(circle at 46% 55%, rgba(52, 246, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #020610 0%, #050716 58%, #080415 100%);
}

.cyber-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(52, 246, 255, 0.28) 0 1px, transparent 1.5px);
  background-position:
    9% 18%,
    68% 34%;
  background-size:
    122px 116px,
    164px 148px;
  opacity: 0.2;
  animation: starDrift 18s linear infinite;
}

.cyber-bg::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -31%;
  left: -18%;
  height: 58%;
  background-image:
    linear-gradient(rgba(255, 0, 200, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 200, 0.34) 1px, transparent 1px);
  background-size: 78px 48px;
  transform: perspective(480px) rotateX(62deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 82%);
  opacity: 0.78;
  animation: gridPulse 4s ease-in-out infinite;
}

.cat-field {
  z-index: 1;
}

.pixel-cat {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  transform: translate3d(-50%, -50%, 0);
  filter: blur(var(--blur)) drop-shadow(0 0 22px currentColor);
  opacity: 0.72;
  animation: catFloat 9s ease-in-out infinite;
  animation-delay: var(--delay);
}

.cat-sprite {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  shape-rendering: crispEdges;
}

.cat-purple { color: #9b55ff; }
.cat-gold { color: #ffce1a; }
.cat-cyan { color: #32f3ff; }
.cat-pink { color: #ff4aa8; }
.cat-orange { color: #ff7417; }
.cat-blue { color: #9dd4ff; }
.cat-violet { color: #b64cff; }

.cat-main,
.cat-ear,
.cat-leg {
  fill: currentColor;
}

.cat-glow {
  fill: rgba(255, 255, 255, 0.48);
}

.cat-shadow {
  fill: rgba(0, 0, 0, 0.42);
}

.cat-eye {
  fill: #071018;
}

.cat-mouth {
  fill: #111827;
}

.site-header,
.page-main {
  position: relative;
  z-index: 2;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: 22px;
  width: min(100%, 1480px);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  color: var(--text);
}

.brand-logo {
  display: block;
  width: clamp(58px, 5.8vw, 86px);
  height: clamp(58px, 5.8vw, 86px);
  object-fit: contain;
  image-rendering: pixelated;
  filter:
    drop-shadow(0 0 10px rgba(52, 246, 255, 0.45))
    drop-shadow(0 0 16px rgba(215, 255, 0, 0.18));
}

.brand-mark {
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg, #ff4b9d 0%, #ffb032 27%, #fff16a 47%, #3ff3ff 74%, #76f2ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(35px, 4.1vw, 54px);
  font-weight: 900;
  line-height: 0.9;
  text-shadow:
    0 0 9px rgba(52, 246, 255, 0.32),
    2px 2px 0 rgba(255, 73, 184, 0.38),
    -2px -1px 0 rgba(215, 255, 0, 0.16);
  image-rendering: pixelated;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.soon-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border: 1px solid rgba(0, 255, 157, 0.55);
  border-radius: 6px;
  background: rgba(0, 255, 157, 0.12);
  color: #00ff9d;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 0 14px rgba(0, 255, 157, 0.18);
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 16px rgba(215, 255, 0, 0.8);
  opacity: 0;
  transform: scaleX(0.48);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.wallet-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  justify-self: end;
}

.wallet-button,
.neon-button {
  border: 0;
  cursor: pointer;
}

.wallet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--lime);
  border-radius: 8px;
  background: rgba(4, 8, 15, 0.7);
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
  box-shadow: inset 0 0 18px rgba(215, 255, 0, 0.04), 0 0 18px rgba(215, 255, 0, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.wallet-button:hover,
.wallet-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(13, 22, 28, 0.86);
  box-shadow: inset 0 0 20px rgba(215, 255, 0, 0.08), 0 0 22px rgba(215, 255, 0, 0.25);
}

.wallet-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.wallet-icon,
.button-icon,
.card-icon {
  flex: none;
}

.wallet-status {
  min-height: 16px;
  color: var(--lime);
  font-size: 11px;
  line-height: 1.3;
  text-align: right;
}

.wallet-modal[hidden] {
  display: none;
}

.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
}

.wallet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 3, 10, 0.7);
  backdrop-filter: blur(8px);
}

.wallet-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  border: 1px solid rgba(215, 255, 0, 0.32);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(9, 18, 34, 0.96), rgba(4, 9, 20, 0.94)),
    rgba(4, 10, 18, 0.94);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62), 0 0 36px rgba(215, 255, 0, 0.12);
  overflow: hidden;
}

.wallet-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-dialog h2 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.wallet-dialog p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.wallet-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.wallet-dialog-body {
  display: grid;
  gap: 12px;
  padding: 18px 24px 24px;
}

.wallet-provider-option,
.wallet-panel-button,
.connected-wallet-card,
.wallet-empty {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.wallet-provider-option,
.connected-wallet-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  text-align: left;
}

.wallet-provider-option {
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.wallet-provider-option:hover,
.wallet-provider-option:focus-visible {
  border-color: rgba(215, 255, 0, 0.64);
  background: rgba(215, 255, 0, 0.09);
  transform: translateY(-1px);
}

.wallet-provider-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(215, 255, 0, 0.38);
  border-radius: 8px;
  background: rgba(215, 255, 0, 0.08);
  color: var(--lime);
  font-weight: 950;
  overflow: hidden;
}

.wallet-provider-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wallet-provider-option strong,
.connected-wallet-card strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.2;
}

.wallet-provider-option small,
.connected-wallet-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.wallet-panel-button {
  min-height: 48px;
  cursor: pointer;
  background: linear-gradient(90deg, var(--lime), var(--lime-2));
  color: #061000;
  font-size: 15px;
  font-weight: 950;
}

.wallet-panel-button.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.wallet-empty {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.wallet-empty strong {
  color: #ffffff;
}

.wallet-empty span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.page-main {
  width: min(100%, 1480px);
  margin: 0 auto;
  min-width: 0;
}

.home-main {
  padding-top: clamp(36px, 5vw, 72px);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(450px, 1.15fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: start;
  min-width: 0;
}

.intro-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(215, 255, 0, 0.28);
  border-radius: 8px;
  background: rgba(5, 12, 20, 0.64);
  color: var(--lime);
  font-size: 14px;
  font-weight: 850;
}

.hero-title {
  max-width: 640px;
  margin: 26px 0 26px;
  color: #ffffff;
  font-size: clamp(46px, 5.7vw, 86px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-title .lime {
  display: block;
  color: var(--lime);
  text-shadow: 0 0 28px rgba(215, 255, 0, 0.36);
}

.feature-list {
  display: grid;
  gap: 18px;
  max-width: 600px;
  min-width: 0;
}

.feature-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.feature-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--lime);
}

.feature-item p,
.info-panel p {
  margin: 0;
  color: #d8deeb;
  font-size: 14px;
  line-height: 1.58;
  min-width: 0;
  overflow-wrap: anywhere;
}

.rarity-panel {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(8, 17, 31, 0.78), rgba(3, 8, 18, 0.62)),
    rgba(4, 10, 20, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.rarity-table-wrap {
  overflow-x: auto;
  padding: 18px 20px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(215, 255, 0, 0.55) rgba(255, 255, 255, 0.06);
}

.rarity-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

.rarity-table th,
.rarity-table td {
  padding: 15px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  vertical-align: middle;
  text-align: left;
}

.rarity-table th {
  color: var(--lime);
  font-size: 13px;
  line-height: 1.15;
}

.rarity-table td {
  color: #f4f7ff;
  font-size: 14px;
}

.rarity-table tr:last-child td {
  border-bottom: 0;
}

.buy-cell {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.person-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  color: var(--lime);
  font-size: 0;
}

.person-icon::before,
.person-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid currentColor;
}

.person-icon::before {
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.person-icon::after {
  bottom: 0;
  width: 14px;
  height: 8px;
  border-radius: 9px 9px 2px 2px;
  border-bottom: 0;
}

.result-lines {
  display: grid;
  gap: 3px;
  color: #eef2ff;
  line-height: 1.2;
}

.rarity-name {
  font-weight: 850;
  white-space: nowrap;
}

.rare { color: #e6ddff; }
.pulse { color: #ff5cdf; }
.surge { color: #37f6ff; }
.phantom { color: #b981ff; }
.legendary { color: #ff7a18; }
.mythic { color: #f4db1b; }

.mini-cats {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mini-cat {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 18px;
  background: var(--cat-color);
  box-shadow:
    0 0 10px color-mix(in srgb, var(--cat-color), transparent 50%),
    inset 0 -4px 0 rgba(0, 0, 0, 0.16);
  clip-path: polygon(9% 32%, 20% 32%, 20% 6%, 34% 28%, 66% 28%, 80% 6%, 80% 32%, 91% 32%, 91% 100%, 9% 100%);
}

.mini-cat::before,
.mini-cat::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 3px;
  height: 4px;
  background: #061018;
}

.mini-cat::before { left: 7px; }
.mini-cat::after { right: 7px; }

.rarity-notes {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 12px;
  padding: 0 20px 20px;
}

.info-panel {
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(3, 8, 16, 0.56);
}

.info-panel.split {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.info-panel strong {
  color: var(--lime);
}

.horse-icon {
  color: var(--cyan);
}

.center-main {
  display: grid;
  min-height: calc(100svh - 128px);
  place-items: center;
  padding: 48px 0;
}

.action-card {
  width: min(100%, 560px);
  padding: clamp(34px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(8, 16, 30, 0.82), rgba(2, 7, 17, 0.78)),
    rgba(4, 10, 18, 0.72);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(18px);
}

.card-icon-box {
  display: grid;
  width: 118px;
  height: 118px;
  margin: 0 auto 26px;
  place-items: center;
  border: 2px solid var(--lime);
  border-radius: 14px;
  color: var(--lime);
  box-shadow: 0 0 24px rgba(215, 255, 0, 0.16);
}

.market-icon-box {
  border: 0;
  box-shadow: none;
}

.action-card h1,
.launch-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.action-card p {
  margin: 18px 0 32px;
  color: #f2f4f9;
  font-size: clamp(16px, 2vw, 20px);
}

.neon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(100%, 400px);
  min-height: 62px;
  padding: 0 22px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--lime), var(--lime-2));
  color: #061000;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 0 28px rgba(215, 255, 0, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.neon-button:hover,
.neon-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(215, 255, 0, 0.36);
}

.external-link {
  display: block;
  margin-top: 28px;
  color: #ffffff;
  font-size: clamp(15px, 1.8vw, 18px);
  overflow-wrap: anywhere;
}

.launch-main {
  padding-top: clamp(34px, 4vw, 58px);
}

.launch-panel {
  width: min(100%, 1060px);
  margin: 0 auto;
}

.launch-heading {
  margin-bottom: 24px;
  text-align: center;
}

.launch-title {
  font-size: clamp(32px, 4vw, 44px);
}

.launch-heading p {
  margin: 12px 0 0;
  color: #e7ebf5;
  font-size: 14px;
}

.launch-mechanism-card {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid rgba(215, 255, 0, 0.24);
  border-left-color: rgba(52, 246, 255, 0.58);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(52, 246, 255, 0.08), transparent 34%),
    rgba(4, 10, 18, 0.62);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24), inset 0 0 20px rgba(215, 255, 0, 0.03);
  backdrop-filter: blur(14px);
}

.launch-mechanism-card h2 {
  margin: 0 0 10px;
  color: var(--lime);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.2;
  letter-spacing: 0;
}

.launch-mechanism-card p {
  margin: 7px 0 0;
  color: #d8deeb;
  font-size: 14px;
  line-height: 1.58;
}

.token-form {
  display: grid;
  gap: 18px 52px;
  padding: 0 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 52px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0 14px;
  font-size: 15px;
  box-shadow: inset 0 0 0 1px transparent;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field textarea {
  min-height: 68px;
  padding-top: 13px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(215, 255, 0, 0.65);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 3px rgba(215, 255, 0, 0.1);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa5b8;
}

.launch-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding-top: 26px;
}

.chain-text {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
}

.chain-text strong {
  color: var(--lime);
}

.launch-connect {
  min-width: 315px;
  background: linear-gradient(90deg, var(--lime), var(--lime-2));
  color: #061000;
  border-color: transparent;
}

.my-nfts-main {
  padding-top: clamp(34px, 4vw, 58px);
}

.my-nfts-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.my-nfts-title {
  margin: 18px 0 0;
  color: #ffffff;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(215, 255, 0, 0.12);
}

.collection-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 850;
}

.collection-meta span {
  padding: 8px 10px;
  border: 1px solid rgba(215, 255, 0, 0.24);
  border-radius: 7px;
  background: rgba(5, 12, 20, 0.62);
}

.nft-state-panel {
  width: min(100%, 620px);
  margin: clamp(44px, 8vw, 92px) auto 0;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(8, 16, 30, 0.84), rgba(2, 7, 17, 0.76)),
    rgba(4, 10, 18, 0.72);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(18px);
}

.nft-state-panel h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.nft-state-panel p {
  margin: 16px auto 28px;
  max-width: 460px;
  color: #d8deeb;
  font-size: 16px;
  line-height: 1.55;
}

.nft-state-panel p span {
  color: var(--lime);
  font-weight: 850;
}

.neon-button.compact,
.market-link {
  width: auto;
  min-width: 210px;
  min-height: 52px;
  padding: 0 22px;
  font-size: 15px;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.nft-loader {
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
  border: 3px solid rgba(215, 255, 0, 0.18);
  border-top-color: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(215, 255, 0, 0.18);
  animation: spin 850ms linear infinite;
}

.nft-collection {
  display: grid;
  gap: 24px;
}

.rarity-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(4, 10, 18, 0.58);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.rarity-filter::-webkit-scrollbar {
  display: none;
}

.rarity-filter-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.rarity-filter-button:hover,
.rarity-filter-button.active {
  border-color: rgba(215, 255, 0, 0.72);
  background: rgba(215, 255, 0, 0.12);
  color: var(--lime);
}

.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.nft-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(10, 20, 35, 0.78), rgba(4, 9, 18, 0.84)),
    rgba(4, 10, 18, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nft-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 255, 0, 0.48);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.46), 0 0 28px rgba(215, 255, 0, 0.12);
}

.nft-image-wrap {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(215, 255, 0, 0.08), transparent 34%),
    rgba(0, 0, 0, 0.24);
}

.nft-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.nft-card-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.nft-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.nft-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.rarity-badge {
  justify-self: start;
  padding: 7px 10px;
  border: 1px solid currentColor;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 950;
}

.rarity-badge.rare { color: #e6ddff; }
.rarity-badge.pulse { color: #ff5cdf; }
.rarity-badge.surge { color: #37f6ff; }
.rarity-badge.phantom { color: #b981ff; }
.rarity-badge.legendary { color: #ff7a18; }
.rarity-badge.mythic { color: #f4db1b; }

@keyframes catFloat {
  0%,
  100% {
    transform: translate3d(-50%, -50%, 0) translateY(0) translateX(0) scale(1);
  }
  50% {
    transform: translate3d(-50%, -50%, 0) translateY(-18px) translateX(var(--drift)) scale(1.05);
  }
}

@keyframes starDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-80px, 40px, 0); }
}

@keyframes gridPulse {
  0%,
  100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .top-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 4px 2px 8px;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .rarity-panel {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-shell {
    padding: 16px 14px 26px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .top-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 4px 0 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .nav-link {
    flex: 0 0 auto;
    min-height: 34px;
    font-size: 14px;
    scroll-snap-align: start;
  }

  .soon-badge {
    min-height: 16px;
    padding: 0 5px;
    font-size: 9px;
  }

  .wallet-button {
    min-height: 42px;
    padding: 0 10px;
    font-size: 12px;
  }

  .wallet-icon {
    width: 18px;
    height: 18px;
  }

  .wallet-status {
    max-width: 150px;
    font-size: 10px;
  }

  .home-main,
  .launch-main,
  .my-nfts-main {
    padding-top: 24px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .intro-pill {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero-title {
    margin: 20px 0 22px;
    max-width: 100%;
    font-size: clamp(34px, 10.8vw, 46px);
    line-height: 1;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .feature-list {
    gap: 16px;
  }

  .feature-item {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 11px;
  }

  .feature-icon {
    width: 26px;
    height: 26px;
  }

  .feature-icon svg {
    width: 26px;
    height: 26px;
  }

  .feature-item p,
  .info-panel p,
  .launch-mechanism-card p {
    font-size: 12.5px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .rarity-panel {
    margin: 0 -4px;
    border-radius: 10px;
  }

  .rarity-table-wrap {
    padding: 12px 10px 8px;
  }

  .rarity-table {
    min-width: 560px;
  }

  .rarity-table th,
  .rarity-table td {
    padding: 11px 6px;
  }

  .rarity-table th,
  .rarity-table td {
    font-size: 12px;
  }

  .mini-cat {
    width: 18px;
    height: 15px;
  }

  .rarity-notes {
    grid-template-columns: 1fr;
    padding: 0 10px 12px;
  }

  .info-panel.split {
    grid-template-columns: 1fr;
  }

  .center-main {
    min-height: calc(100svh - 156px);
    padding: 34px 0;
  }

  .action-card {
    padding: 28px 18px;
    border-radius: 12px;
  }

  .card-icon-box {
    width: 86px;
    height: 86px;
    margin-bottom: 20px;
  }

  .card-icon {
    max-width: 72px;
    max-height: 72px;
  }

  .action-card h1,
  .launch-title {
    font-size: clamp(30px, 9vw, 38px);
  }

  .action-card p {
    margin: 14px 0 24px;
    font-size: 15px;
  }

  .neon-button {
    min-height: 54px;
    font-size: 15px;
  }

  .external-link {
    margin-top: 22px;
    font-size: 14px;
  }

  .launch-heading {
    margin-bottom: 18px;
  }

  .launch-mechanism-card {
    margin-bottom: 18px;
    padding: 15px 14px;
    border-radius: 9px;
  }

  .launch-mechanism-card h2 {
    font-size: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .token-form {
    gap: 16px;
  }

  .launch-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 20px;
  }

  .chain-text {
    font-size: 15px;
  }

  .launch-connect {
    width: 100%;
    min-width: 0;
  }

  .my-nfts-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .collection-meta {
    justify-content: flex-start;
    gap: 8px;
  }

  .collection-meta span {
    padding: 7px 8px;
    font-size: 11px;
  }

  .my-nfts-title {
    margin-top: 14px;
    font-size: clamp(34px, 11vw, 48px);
  }

  .nft-state-panel {
    margin-top: 34px;
    padding: 26px 18px;
  }

  .nft-state-panel h2 {
    font-size: 28px;
  }

  .nft-state-panel p {
    font-size: 14px;
  }

  .empty-actions,
  .neon-button.compact,
  .market-link {
    width: 100%;
  }

  .rarity-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -14px;
    padding: 10px 14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .rarity-filter-button {
    flex: none;
  }

  .nft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .nft-image-wrap {
    padding: 10px;
  }

  .nft-card-body {
    gap: 10px;
    padding: 12px;
  }

  .nft-card h2 {
    font-size: 15px;
  }

  .nft-card p {
    font-size: 12px;
  }

  .rarity-badge {
    padding: 6px 8px;
    font-size: 11px;
  }

  .pixel-cat {
    width: calc(var(--size) * 0.72);
    opacity: 0.58;
  }
}

@media (max-width: 420px) {
  .site-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .top-nav {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .wallet-button {
    max-width: 154px;
  }

  .wallet-button [data-wallet-label] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .wallet-dialog {
    width: 100%;
  }

  .wallet-dialog-head,
  .wallet-dialog-body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-title {
    font-size: clamp(31px, 10.5vw, 40px);
  }

  .rarity-table {
    min-width: 520px;
  }

  .nft-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .site-shell {
    padding-right: 10px;
    padding-left: 10px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .wallet-button {
    max-width: 136px;
    min-height: 38px;
    padding: 0 8px;
    font-size: 11px;
  }

  .nav-link {
    font-size: 13px;
  }

  .hero-title {
    font-size: 30px;
    line-height: 1.03;
  }

  .intro-pill {
    font-size: 11px;
  }

  .feature-item {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px;
  }

  .feature-icon,
  .feature-icon svg {
    width: 24px;
    height: 24px;
  }

  .feature-item p,
  .info-panel p,
  .launch-mechanism-card p {
    font-size: 12px;
  }
}
