:root {
  --black: #000000;
  --elevated: #111827;
  --surface: #1f2937;
  --green: #19d184;
  --lime: #bfff00;
  --pink: #ff1dce;
  --gold: #facc15;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --border: rgba(209, 213, 219, 0.14);
  --glass-border: rgba(197, 255, 93, 0.24);
  --glass-bg: rgba(5, 18, 12, 0.58);
  --glass-bg-strong: rgba(4, 14, 9, 0.62);
  --glass-blur: blur(14px) saturate(1.18);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 26px rgba(25, 209, 132, 0.08);
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: var(--text);
  font-family: var(--font-body);
}

@media (hover: hover) and (pointer: fine) {
  body.cursor-enabled,
  body.cursor-enabled * {
    cursor: none !important;
  }

  body.cursor-enabled input,
  body.cursor-enabled textarea,
  body.cursor-enabled select {
    cursor: text !important;
  }

  body.cursor-enabled canvas {
    cursor: crosshair !important;
  }
}

button,
input,
a {
  font: inherit;
}

.site-cursor {
  --cursor-ring-x: 50vw;
  --cursor-ring-y: 50vh;
  --cursor-dot-x: 50vw;
  --cursor-dot-y: 50vh;
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 120;
  opacity: 1;
  transition: opacity 0.18s ease;
}

.site-cursor.is-hidden {
  opacity: 0;
}

.site-cursor-ring,
.site-cursor-dot {
  position: absolute;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.18s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.18s ease;
}

.site-cursor-ring {
  left: var(--cursor-ring-x);
  top: var(--cursor-ring-y);
  width: 28px;
  height: 28px;
  border: 1px solid rgba(177, 255, 215, 0.75);
  background: radial-gradient(circle, rgba(183, 255, 0, 0.08) 0%, rgba(25, 209, 132, 0.03) 54%, transparent 72%);
  box-shadow:
    0 0 18px rgba(25, 209, 132, 0.18),
    inset 0 0 12px rgba(223, 255, 240, 0.06);
  backdrop-filter: blur(1px);
}

.site-cursor-dot {
  left: var(--cursor-dot-x);
  top: var(--cursor-dot-y);
  width: 7px;
  height: 7px;
  background: linear-gradient(135deg, #e9fff2 0%, #19d184 62%, #bfff00 100%);
  box-shadow:
    0 0 10px rgba(223, 255, 240, 0.32),
    0 0 18px rgba(25, 209, 132, 0.28);
}

.site-cursor.is-pressed .site-cursor-ring {
  width: 24px;
  height: 24px;
}

.site-cursor.is-pressed .site-cursor-dot {
  transform: translate(-50%, -50%) scale(0.82);
}

.app-shell {
  min-height: 100svh;
  padding: 0;
  background:
    linear-gradient(180deg, #183d2a 0%, #08160f 44%, #000201 100%);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(130, 255, 183, 0.2) 0%, rgba(25, 209, 132, 0.09) 26%, transparent 58%),
    linear-gradient(105deg, transparent 0%, rgba(111, 255, 164, 0.11) 36%, rgba(111, 255, 164, 0.18) 48%, rgba(111, 255, 164, 0.08) 61%, transparent 88%),
    linear-gradient(180deg, rgba(166, 255, 197, 0.08), transparent 36%, rgba(0, 0, 0, 0.64) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 34%, transparent 66%, rgba(0, 0, 0, 0.1)),
    rgba(12, 32, 21, 0.4);
  box-shadow: inset 0 -220px 260px rgba(0, 0, 0, 0.58);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(109, 255, 166, 0.14) 0%, rgba(25, 209, 132, 0.07) 28%, transparent 62%);
  pointer-events: none;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  opacity: 0.58;
  background-image:
    linear-gradient(rgba(197, 255, 93, 0.115) 2px, transparent 2px),
    linear-gradient(90deg, rgba(25, 209, 132, 0.11) 2px, transparent 2px);
  background-size: 116px 116px;
  mask-image: linear-gradient(to bottom, black 0%, black 54%, transparent 94%);
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  width: min(96vw, 1280px);
  margin: 0 auto;
  padding: 18px 0;
  border-bottom: 0;
}

.brand-lockup,
.wallet-cluster,
.section-row,
.card-footer {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 14px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  text-shadow: 0 0 22px rgba(25, 209, 132, 0.24);
}

.brand-logo {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  display: inline-block;
  background:
    linear-gradient(120deg, #dffff0 0%, var(--green) 42%, var(--lime) 78%, rgba(255, 29, 206, 0.62) 100%);
  -webkit-mask: url("./assets/ritual-logo.png") center / contain no-repeat;
  mask: url("./assets/ritual-logo.png") center / contain no-repeat;
  filter:
    drop-shadow(0 0 10px rgba(25, 209, 132, 0.7))
    drop-shadow(0 0 22px rgba(25, 209, 132, 0.28));
}

.wallet-cluster {
  gap: 10px;
  transform: translateX(-18px);
}

.wallet-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.wallet-btn {
  border: 1px solid var(--green);
  color: #ffffff;
  background: linear-gradient(110deg, #137d55 0%, #19d184 48%, #5fcf16 100%);
  box-shadow: 0 0 28px rgba(25, 209, 132, 0.28);
}

.wallet-btn:hover {
  border-color: rgba(223, 255, 240, 0.78);
  color: #ffffff;
  background: linear-gradient(110deg, #168a5d 0%, #22e092 42%, #73dc20 100%);
  box-shadow:
    0 0 14px rgba(223, 255, 240, 0.18),
    0 0 34px rgba(25, 209, 132, 0.26);
}

.status-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(25, 209, 132, 0.28);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--green);
  background: rgba(25, 209, 132, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
}

.status-pill.muted {
  border-color: rgba(156, 163, 175, 0.18);
  color: var(--muted);
  background: rgba(156, 163, 175, 0.06);
}

.workspace {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(22px, 5vw, 64px);
  align-items: center;
}

.centered-workspace {
  grid-template-columns: minmax(320px, 620px);
  justify-content: center;
  align-items: start;
  gap: 18px;
  padding-top: clamp(4px, 1vw, 10px);
}

.centered-eyebrow {
  justify-self: center;
  margin-bottom: 0;
}

.mint-title {
  width: min(96vw, 1280px);
  max-width: none;
  margin: 0;
  color: #f8fff9;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.35vw, 48px);
  font-weight: 800;
  line-height: 1.04;
  text-align: center;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(223, 255, 240, 0.12);
}

.title-line {
  display: block;
}

.mint-title .signature-word {
  display: inline-block;
  color: transparent;
  background: linear-gradient(110deg, #dffff0, var(--green) 36%, var(--lime) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1.14em;
  text-shadow: 0 0 24px rgba(25, 209, 132, 0.24);
}

.mint-subtitle {
  justify-self: center;
  max-width: 620px;
  margin: -6px 0 4px;
  color: rgba(238, 255, 244, 0.72);
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 0 18px rgba(223, 255, 240, 0.12);
}

.centered-workspace .preview-column,
.centered-workspace .bottom-controls {
  width: min(100%, 620px);
  justify-self: center;
}

.centered-workspace .card-stage {
  min-height: auto;
  padding-top: 0;
}

.bottom-controls {
  display: grid;
  gap: 24px;
  margin-top: 0;
}

.control-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr);
  gap: 12px;
}

.headline-block h1 {
  margin: 0;
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.94;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: #ddffae;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 0 18px rgba(191, 255, 0, 0.34);
}

.lead {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.action-tile {
  min-height: 98px;
  text-align: left;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.68);
  padding: 16px;
  cursor: pointer;
}

.action-tile:hover,
.outline-btn:hover {
  border-color: rgba(25, 209, 132, 0.56);
  box-shadow: 0 0 32px rgba(25, 209, 132, 0.12);
}

.tile-index {
  display: block;
  color: var(--pink);
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 12px;
}

.action-tile strong,
.action-tile small {
  display: block;
}

.action-tile small {
  margin-top: 5px;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.twitter-field {
  gap: 0;
}

.avatar-load-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  height: 52px;
  margin: 0;
  border-radius: 18px;
  padding: 0 18px;
  border: 1px solid rgba(128, 255, 180, 0.34);
  color: #dffff0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 54%),
    rgba(4, 13, 9, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 22px rgba(25, 209, 132, 0.1);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: var(--glass-blur);
}

.avatar-load-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.avatar-load-btn:hover {
  color: #ffffff;
  border-color: rgba(128, 255, 180, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 54%),
    rgba(8, 28, 18, 0.74);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 22px rgba(25, 209, 132, 0.22);
}

.handle-input-wrap {
  position: relative;
  display: block;
}

.handle-prefix {
  position: absolute;
  left: 18px;
  top: 50%;
  z-index: 1;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  text-shadow: none;
  transform: translateY(-50%);
  pointer-events: none;
}

.field > span:not(.handle-input-wrap),
.section-row span {
  color: var(--muted);
  font-size: 12px;
}

.field input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: var(--glass-bg);
  color: var(--text);
  padding: 0 18px;
  outline: none;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
}

.handle-input-wrap input {
  padding-left: 40px;
  padding-right: 18px;
}

.field-hint {
  display: block;
  margin-top: 8px;
  padding-left: 0;
  color: rgba(223, 255, 240, 0.72);
  font-size: 13px;
  text-align: center;
}

.field input:focus,
button:focus-visible,
canvas:focus-visible {
  border-color: var(--green);
  outline: 0;
  box-shadow:
    var(--glass-shadow),
    0 0 0 2px rgba(25, 209, 132, 0.22),
    0 0 24px rgba(25, 209, 132, 0.18);
}

.compact {
  margin-top: 0;
}

.signature-block {
  margin-top: 0;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: var(--glass-bg);
  padding: 12px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
}

.section-row {
  justify-content: space-between;
  margin-bottom: 10px;
}

#signatureCanvas {
  display: block;
  width: 100%;
  height: 138px;
  border-radius: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    rgba(0, 0, 0, 0.26);
  background-size: 24px 24px;
  cursor: crosshair;
  touch-action: none;
}

.mint-panel {
  margin-top: 12px;
  border: 1px solid rgba(197, 255, 93, 0.18);
  border-radius: 14px;
  background: rgba(5, 18, 12, 0.56);
  padding: 14px;
  box-shadow: 0 0 34px rgba(25, 209, 132, 0.08);
}

.primary-btn,
.outline-btn,
.ghost-btn {
  min-height: 42px;
  border-radius: 14px;
  padding: 0 16px;
  cursor: pointer;
}

.primary-btn {
  border: 1px solid var(--green);
  color: #ffffff;
  background: linear-gradient(110deg, #137d55 0%, #19d184 48%, #5fcf16 100%);
  font-weight: 800;
  box-shadow: 0 0 28px rgba(25, 209, 132, 0.28);
}

.primary-btn:hover {
  border-color: rgba(223, 255, 240, 0.78);
  color: #ffffff;
  background: linear-gradient(110deg, #168a5d 0%, #22e092 42%, #73dc20 100%);
  box-shadow:
    0 0 14px rgba(223, 255, 240, 0.18),
    0 0 34px rgba(25, 209, 132, 0.26);
}

.mint-wide-btn {
  width: 100%;
  min-height: 66px;
  margin-top: 0;
  border-radius: 14px;
  font-size: 22px;
  letter-spacing: 0;
}

.outline-btn,
.ghost-btn {
  border: 1px solid rgba(197, 255, 93, 0.22);
  color: #dffff0;
  background: rgba(5, 20, 13, 0.54);
}

.ghost-btn {
  min-height: 32px;
  border: 0;
  color: #bfff00;
  background: transparent;
  padding: 0 10px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 500;
  transition: transform 160ms ease, color 160ms ease, text-shadow 160ms ease;
}

.ghost-btn:hover {
  color: #ddff62;
  transform: scale(1.08);
  text-shadow:
    0 0 10px rgba(191, 255, 0, 0.58),
    0 0 22px rgba(25, 209, 132, 0.28);
}

.status-text {
  min-height: 22px;
  margin: 10px 0 0;
  padding-left: 8px;
  color: rgba(223, 255, 240, 0.72);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}

.social-links {
  position: fixed;
  right: clamp(18px, 2.6vw, 38px);
  top: 50%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  margin-top: 0;
  transform: translateY(-50%);
}

.social-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  box-shadow: none;
  transition: transform 160ms ease, color 160ms ease, text-shadow 160ms ease;
}

.social-links a:hover {
  color: rgba(255, 255, 255, 0.9);
  transform: scale(1.12);
  text-shadow:
    0 0 12px rgba(223, 255, 240, 0.2),
    0 0 24px rgba(25, 209, 132, 0.18);
}

.social-links svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.social-ritual-logo {
  width: 42px;
  height: 42px;
  display: block;
  background: currentColor;
  -webkit-mask: url("./assets/ritual-logo.png") center / contain no-repeat;
  mask: url("./assets/ritual-logo.png") center / contain no-repeat;
}

.card-stage {
  display: grid;
  place-items: center;
  min-height: 540px;
  perspective: 1400px;
}

.identity-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --card-scale: 1;
  --shine-x: -18%;
  position: relative;
  overflow: hidden;
  width: min(100%, 336px);
  aspect-ratio: 0.72;
  border: 7px solid transparent;
  border-radius: 20px;
  padding: 20px;
  background:
    linear-gradient(#102418, #102418) padding-box,
    linear-gradient(135deg, #f2fff4 0%, #98f6b7 18%, #143820 45%, #dffff0 66%, #19d184 100%) border-box;
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.44),
    0 0 10px rgba(223, 255, 240, 0.78),
    0 0 22px rgba(118, 255, 166, 0.64),
    0 0 34px rgba(25, 209, 132, 0.28),
    inset 0 0 0 1px rgba(223, 255, 240, 0.14);
  transform: scale(var(--card-scale)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

.card-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background:
    linear-gradient(90deg, transparent 0%, rgba(143, 255, 181, 0.06) 34%, rgba(223, 255, 240, 0.1) 50%, rgba(25, 209, 132, 0.06) 66%, transparent 100%);
}

.metal-lines {
  position: absolute;
  inset: -22%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.78;
  background:
    linear-gradient(104deg, transparent 0%, transparent 16%, rgba(223, 255, 240, 0.1) 21%, rgba(98, 255, 158, 0.22) 27%, rgba(8, 28, 18, 0.06) 35%, transparent 43%),
    linear-gradient(104deg, transparent 0%, transparent 43%, rgba(11, 37, 24, 0.06) 49%, rgba(167, 255, 199, 0.16) 55%, rgba(25, 209, 132, 0.25) 62%, transparent 72%),
    linear-gradient(104deg, transparent 0%, transparent 68%, rgba(223, 255, 240, 0.08) 73%, rgba(56, 233, 136, 0.18) 80%, transparent 90%);
  filter: blur(0.2px);
  mix-blend-mode: screen;
}

.metal-lines::before {
  content: "";
  position: absolute;
  inset: 16% -10%;
  background:
    linear-gradient(104deg, transparent 0%, transparent 30%, rgba(4, 14, 9, 0.42) 40%, rgba(188, 255, 212, 0.18) 52%, rgba(27, 181, 113, 0.22) 61%, rgba(4, 14, 9, 0.16) 72%, transparent 86%);
  opacity: 0.85;
}

.identity-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.18), transparent 46%);
  transform: translateX(var(--shine-x)) rotate(8deg);
  opacity: 0.28;
  pointer-events: none;
  mix-blend-mode: screen;
}

.identity-card.is-pointer-tilting {
  --card-scale: 1.045;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 12px rgba(223, 255, 240, 0.84),
    0 0 28px rgba(118, 255, 166, 0.68),
    0 0 40px rgba(25, 209, 132, 0.32),
    inset 0 0 0 2px rgba(197, 255, 93, 0.48);
}

.card-footer {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.7vw, 12px);
}

.card-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 0;
  align-items: start;
  transform: translateZ(32px);
}

.avatar-frame {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 14px;
  padding: 7px;
  background:
    linear-gradient(#102418, #102418) padding-box,
    linear-gradient(135deg, #f2fff4 0%, #98f6b7 20%, #143820 46%, #dffff0 68%, #19d184 100%) border-box;
  border: 2px solid transparent;
  box-shadow: 0 0 28px rgba(25, 209, 132, 0.18);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.card-kicker {
  color: #bfff00;
  font-family: var(--font-mono);
  font-size: 12px;
}

.card-copy h2 {
  margin: 6px 0 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.card-copy p {
  margin: 0;
  max-width: 28ch;
  color: #dffff0;
  line-height: 1.35;
}

.signature-preview {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 78px;
  margin-top: -8px;
  opacity: 0.96;
  transform: translateZ(44px);
}

.signature-preview svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.card-mini-footer {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateZ(34px);
}

.card-mini-logo {
  width: 30px;
  height: 30px;
  display: inline-block;
  background:
    linear-gradient(120deg, #dffff0 0%, var(--green) 44%, var(--lime) 100%);
  -webkit-mask: url("./assets/ritual-logo.png") center / contain no-repeat;
  mask: url("./assets/ritual-logo.png") center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(25, 209, 132, 0.5));
}

.card-mini-footer span:last-child {
  color: transparent;
  background: linear-gradient(110deg, #dffff0, var(--green) 42%, var(--lime) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.card-footer {
  position: absolute;
  left: clamp(18px, 4vw, 26px);
  right: clamp(18px, 4vw, 26px);
  bottom: clamp(16px, 3vw, 22px);
  color: rgba(223, 255, 240, 0.66);
  transform: translateZ(26px);
}

.card-stage {
  position: relative;
  grid-template-columns: 1fr;
  gap: 0;
}

.identity-card {
  --accent: #19d184;
  --accent-2: #bfff00;
  --glass: rgba(223, 255, 240, 0.62);
  --edge-gradient: linear-gradient(135deg, #f8fff9 0%, #8edcff 18%, #ffa7f3 34%, #bfff00 50%, #19d184 68%, #f8fff9 100%);
  --holo-gradient: linear-gradient(118deg, transparent 0%, rgba(255, 255, 255, 0.34) 14%, rgba(103, 220, 255, 0.28) 28%, rgba(255, 178, 245, 0.24) 42%, rgba(191, 255, 0, 0.22) 56%, transparent 72%);
  width: min(100%, 328px);
  aspect-ratio: 900 / 1250;
  border: 0;
  border-radius: 22px;
  padding: 10px 10px 56px;
  background:
    linear-gradient(rgba(230, 255, 244, 0.34), rgba(230, 255, 244, 0.2)) padding-box,
    var(--edge-gradient) border-box;
  border: 5px solid transparent;
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.44),
    0 0 16px color-mix(in srgb, var(--accent) 70%, transparent),
    0 0 42px color-mix(in srgb, var(--accent) 36%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px) saturate(1.35);
}

.identity-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.34), transparent 18%),
    var(--holo-gradient);
  opacity: 0.56;
  transform: translateX(calc(var(--shine-x) * 0.7)) rotate(10deg);
  mix-blend-mode: screen;
  pointer-events: none;
}

.identity-card::after {
  inset: -30%;
  background: linear-gradient(115deg, transparent 24%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.05), transparent 54%);
  opacity: 0.3;
}

.identity-card.is-pointer-tilting {
  box-shadow: none;
}

.identity-card.card-theme-green {
  --accent: #19d184;
  --accent-2: #bfff00;
  --edge-gradient: linear-gradient(135deg, #effff6 0%, #90f8bd 25%, #19d184 52%, #103a25 78%, #dffff0 100%);
  --holo-gradient: linear-gradient(118deg, transparent 0%, rgba(223, 255, 240, 0.3) 16%, rgba(25, 209, 132, 0.26) 38%, rgba(191, 255, 0, 0.22) 58%, transparent 78%);
}

.identity-card.card-theme-gold {
  --accent: #facc15;
  --accent-2: #fff1a3;
  --edge-gradient: linear-gradient(135deg, #fff8d0 0%, #facc15 28%, #9a6a00 58%, #fff3a3 82%, #ffffff 100%);
  --holo-gradient: linear-gradient(118deg, transparent 0%, rgba(255, 248, 208, 0.35) 16%, rgba(250, 204, 21, 0.26) 40%, rgba(255, 255, 255, 0.22) 58%, transparent 78%);
}

.identity-card.card-theme-purple {
  --accent: #a78bfa;
  --accent-2: #f0abfc;
  --edge-gradient: linear-gradient(135deg, #ffffff 0%, #c4b5fd 24%, #7c3aed 52%, #f0abfc 78%, #ffffff 100%);
  --holo-gradient: linear-gradient(118deg, transparent 0%, rgba(255, 255, 255, 0.3) 16%, rgba(167, 139, 250, 0.3) 40%, rgba(240, 171, 252, 0.24) 60%, transparent 80%);
}

.identity-card.card-theme-rainbow {
  --accent: #ffe5f8;
  --accent-2: #f0abfc;
}

.identity-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.identity-card::before,
.identity-card::after {
  display: none;
}

.card-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  object-fit: contain;
  transform: translateZ(0);
}

.holo-sheen,
.card-noise,
.metal-lines {
  display: none;
}

.identity-card .avatar-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 15px;
  padding: 0;
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 22px color-mix(in srgb, var(--accent) 30%, transparent);
}

.identity-card .avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  border-radius: 14px;
  filter: saturate(1.08) contrast(1.02);
}

.card-corner-logo {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 54px;
  height: 54px;
  z-index: 3;
  background: var(--edge-gradient);
  -webkit-mask: url("./assets/ritual-logo.png") center / contain no-repeat;
  mask: url("./assets/ritual-logo.png") center / contain no-repeat;
  filter:
    drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 72%, transparent))
    drop-shadow(0 0 18px color-mix(in srgb, var(--accent-2) 28%, transparent));
}

.photo-shade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.42) 44%, rgba(0, 0, 0, 0.76) 100%),
    radial-gradient(ellipse at 28% 100%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%);
  pointer-events: none;
}

.card-lower-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 28px;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 134px;
  gap: 12px;
  align-items: end;
}

.card-copy h2,
.card-lower-copy h2 {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.65vw, 18px);
  font-weight: 700;
  line-height: 1;
}

.signature-preview {
  width: 162px;
  height: 70px;
  margin: 0;
  color: var(--accent);
}

.signature-preview svg polyline {
  stroke-width: 18;
}

.signature-preview svg polyline {
  stroke: currentColor;
}

.card-bottom-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 3;
  color: rgba(3, 20, 13, 0.72);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32),
    0 -1px 0 rgba(0, 0, 0, 0.34),
    0 0 1px rgba(0, 0, 0, 0.32);
  transform: translateZ(28px);
}

.identity-card.card-theme-rainbow .card-bottom-title {
  color: rgba(255, 229, 248, 0.88);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.38),
    0 -1px 0 rgba(86, 16, 62, 0.38),
    0 0 10px rgba(255, 167, 243, 0.2);
}

.theme-picker {
  position: absolute;
  left: calc(50% + 182px);
  top: 50%;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.theme-dot {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(25, 209, 132, 0.12);
}

.theme-dot.is-active {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

.theme-rainbow {
  background: linear-gradient(135deg, #8edcff, #f0abfc, #bfff00, #19d184);
}

.theme-green {
  background: linear-gradient(135deg, #dffff0, #19d184, #bfff00);
}

.theme-gold {
  background: linear-gradient(135deg, #fff8d0, #facc15, #9a6a00);
}

.theme-purple {
  background: linear-gradient(135deg, #ffffff, #a78bfa, #7c3aed, #f0abfc);
}

.telemetry-strip {
  display: grid;
  grid-template-columns: 1.15fr repeat(2, 1fr);
  gap: 0;
  width: min(100%, 465px);
  margin: 18px auto 0;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
}

.telemetry-strip div {
  min-height: 58px;
  padding: 10px 14px;
  background: transparent;
}

.telemetry-strip div + div {
  border-left: 1px solid var(--glass-border);
}

.network-action-cell {
  display: grid;
  place-items: center;
}

.network-switch-btn {
  width: auto;
  min-height: 38px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: #66ffad;
  background: rgba(5, 18, 12, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: var(--glass-blur);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.08;
  padding: 0 16px;
}

.network-switch-btn:hover {
  color: #8cffc2;
  box-shadow:
    0 0 12px rgba(223, 255, 240, 0.14),
    0 0 28px rgba(25, 209, 132, 0.22);
}

button.is-loading {
  cursor: default;
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: #bfff00;
  border-radius: 999px;
  animation: buttonSpin 0.72s linear infinite;
  vertical-align: -2px;
}

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

.toast-viewport {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 44px));
  pointer-events: none;
}

.ritual-toast {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(197, 255, 93, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(8, 26, 16, 0.86), rgba(2, 8, 5, 0.82)),
    rgba(5, 18, 12, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 44px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(25, 209, 132, 0.13);
  backdrop-filter: blur(18px) saturate(1.2);
  pointer-events: auto;
  animation: toastIn 0.2s ease-out;
}

.ritual-toast.is-dismissing {
  animation: toastOut 0.18s ease-in forwards;
}

.toast-orb {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: #66ffad;
  box-shadow: 0 0 16px rgba(102, 255, 173, 0.8);
}

.ritual-toast[data-type="loading"] .toast-orb {
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-top-color: #bfff00;
  background: transparent;
  animation: buttonSpin 0.72s linear infinite;
}

.ritual-toast[data-type="success"] .toast-orb {
  background: #bfff00;
  box-shadow: 0 0 18px rgba(191, 255, 0, 0.82);
}

.ritual-toast[data-type="error"] .toast-orb {
  background: #ff6b6b;
  box-shadow: 0 0 18px rgba(255, 107, 107, 0.7);
}

.ritual-toast[data-type="cancelled"] .toast-orb {
  background: #9ca3af;
  box-shadow: 0 0 16px rgba(156, 163, 175, 0.45);
}

.toast-copy strong,
.toast-copy span {
  display: block;
}

.toast-copy strong {
  color: #f7fff9;
  font-size: 14px;
  font-weight: 800;
}

.toast-copy span {
  margin-top: 3px;
  color: rgba(243, 244, 246, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

.mint-success-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 18%, rgba(102, 255, 173, 0.16), transparent 42%),
    rgba(0, 6, 3, 0.62);
  backdrop-filter: blur(14px) saturate(1.12);
}

.mint-success-modal {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 20px;
  width: min(94vw, 610px);
  max-height: calc(100vh - 56px);
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(197, 255, 93, 0.28);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(11, 40, 25, 0.76), rgba(1, 8, 5, 0.88)),
    rgba(5, 18, 12, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 80px rgba(25, 209, 132, 0.22),
    0 28px 90px rgba(0, 0, 0, 0.68);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: rgba(243, 244, 246, 0.78);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover {
  color: #ffffff;
  background: rgba(102, 255, 173, 0.12);
}

.modal-copy {
  max-width: 520px;
  text-align: center;
}

.modal-kicker {
  color: #bfff00;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: lowercase;
}

.modal-copy h2 {
  margin: 8px 0 0;
  color: transparent;
  background: linear-gradient(105deg, #eafff3 0%, #8dffc2 34%, #19d184 58%, #bfff00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--font-display);
  font-size: clamp(34px, 5.6vw, 54px);
  line-height: 0.96;
  text-shadow: 0 0 34px rgba(25, 209, 132, 0.22);
}

.modal-profile-name {
  display: block;
  margin-top: 4px;
  color: rgba(247, 255, 249, 0.92);
  font-family: var(--font-display);
  font-size: clamp(22px, 3.8vw, 36px);
  font-weight: 800;
  line-height: 1;
}

.modal-copy p {
  margin: 18px 0 0;
  color: rgba(243, 244, 246, 0.74);
  font-size: 15px;
}

.success-card-image {
  display: block;
  width: min(280px, 72vw);
  max-width: 100%;
  height: auto;
  border: 0;
  border-radius: 30px;
  cursor: zoom-in;
  filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.46));
  touch-action: manipulation;
  transition: transform 180ms ease, filter 180ms ease;
  user-select: auto;
  -webkit-user-select: auto;
  -webkit-touch-callout: default;
}

.success-card-image:hover,
.success-card-image:focus-visible {
  transform: translateY(-2px) scale(1.015);
  filter: drop-shadow(0 26px 58px rgba(25, 209, 132, 0.22));
  outline: none;
}

.mint-receipt {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(197, 255, 93, 0.2);
  border-radius: 18px;
  background: rgba(0, 12, 7, 0.48);
}

.mint-receipt div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mint-receipt span {
  color: var(--muted);
  font-size: 12px;
}

.mint-receipt strong {
  overflow-wrap: anywhere;
  color: #f7fff9;
  font-family: var(--font-mono);
  font-size: 13px;
}

.modal-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
}

.modal-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(102, 255, 173, 0.32);
  border-radius: 999px;
  color: #f7fff9;
  background: rgba(5, 18, 12, 0.72);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.card-zoom-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 22%, rgba(102, 255, 173, 0.15), transparent 38%),
    rgba(0, 5, 3, 0.82);
  backdrop-filter: blur(16px) saturate(1.12);
}

.zoom-card-image {
  display: block;
  width: min(520px, 84vw);
  max-height: calc(100vh - 72px);
  object-fit: contain;
  border-radius: 34px;
  filter: drop-shadow(0 34px 78px rgba(0, 0, 0, 0.62));
  user-select: auto;
  -webkit-user-select: auto;
  -webkit-touch-callout: default;
}

.zoom-close {
  position: fixed;
  top: 22px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(102, 255, 173, 0.28);
  border-radius: 999px;
  color: rgba(247, 255, 249, 0.9);
  background: rgba(4, 18, 11, 0.72);
  box-shadow: 0 0 28px rgba(25, 209, 132, 0.18);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.zoom-close:hover {
  color: #ffffff;
  background: rgba(25, 209, 132, 0.16);
}

@media (max-width: 620px) {
  .mint-success-backdrop {
    padding:
      max(14px, env(safe-area-inset-top))
      max(14px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .mint-success-modal {
    width: 100%;
    max-width: calc(100vw - 28px);
    max-height: calc(100svh - 28px);
    margin-inline: auto;
    justify-self: center;
    box-sizing: border-box;
    padding: 22px 16px 18px;
    gap: 16px;
  }

  .modal-copy,
  .mint-receipt,
  .modal-actions {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .success-card-image {
    width: min(250px, 68vw);
    max-width: 100%;
  }

  .modal-close {
    top: 10px;
    right: 10px;
  }

  .card-zoom-backdrop {
    padding:
      max(14px, env(safe-area-inset-top))
      max(14px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .zoom-card-image {
    width: min(100%, 92vw);
    max-height: calc(100svh - 28px);
  }
}


.telemetry-strip span,
.telemetry-strip strong {
  display: block;
}

.telemetry-strip span {
  color: var(--muted);
  font-size: 12px;
}

.telemetry-strip strong {
  margin-top: 5px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
}

#networkMetric[data-network-state="wrong"] {
  color: #ff6b6b;
}

#networkMetric[data-network-state="ritual"] {
  color: #66ffad;
}

@media (max-width: 940px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .card-stage {
    min-height: auto;
  }

  .identity-card {
    transform: scale(var(--card-scale)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .identity-card {
    transition: none;
  }
}

@media (max-width: 620px) {
  .app-shell {
    padding: 0;
  }

  .hero-panel {
    min-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .topbar,
  .wallet-cluster {
    align-items: stretch;
    flex-direction: column;
  }

  .control-grid,
  .control-row,
  .telemetry-strip {
    grid-template-columns: 1fr;
  }

  .card-body {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .signature-preview {
    height: 72px;
  }

  .social-links {
    right: 10px;
    gap: 8px;
  }

  .social-links a {
    width: 36px;
    height: 36px;
  }

  .social-links svg {
    width: 20px;
    height: 20px;
  }
}

/* Starvy-inspired green redesign */
:root {
  --font-display: "Inter", "Archivo", system-ui, sans-serif;
  --font-body: "Inter", "Barlow", system-ui, sans-serif;
}

.app-shell {
  background:
    radial-gradient(ellipse at 50% 36%, rgba(35, 220, 129, 0.18) 0%, rgba(12, 68, 41, 0.09) 28%, transparent 62%),
    linear-gradient(180deg, #050908 0%, #07110d 54%, #010302 100%);
}

.hero-panel {
  background:
    radial-gradient(ellipse at 50% 43%, rgba(56, 255, 156, 0.28) 0%, rgba(22, 120, 71, 0.13) 26%, rgba(3, 12, 8, 0) 58%),
    radial-gradient(circle at 68% 18%, rgba(178, 255, 107, 0.1), transparent 20%),
    linear-gradient(180deg, rgba(9, 25, 17, 0.38), rgba(0, 0, 0, 0.84));
  box-shadow: inset 0 -240px 280px rgba(0, 0, 0, 0.66);
}

.hero-panel::before {
  background:
    linear-gradient(rgba(101, 255, 166, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 255, 166, 0.055) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(ellipse at 50% 42%, black 0%, black 56%, transparent 82%);
  opacity: 0.82;
}

.hero-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 430px;
  width: min(780px, 78vw);
  height: 190px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 49% 10%, rgba(226, 255, 235, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 41% 22%, rgba(166, 255, 199, 0.52) 0 1px, transparent 2px),
    radial-gradient(circle at 57% 28%, rgba(166, 255, 199, 0.42) 0 1px, transparent 2px),
    radial-gradient(ellipse at 50% 26%, rgba(113, 255, 171, 0.42) 0%, rgba(25, 209, 132, 0.18) 28%, transparent 72%);
  filter: blur(0.4px);
  opacity: 0.84;
  animation: particleDrift 4.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes particleDrift {
  0%,
  100% {
    opacity: 0.55;
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  50% {
    opacity: 0.98;
    background-position: 18px -22px, -28px -34px, 34px -18px, 0 0;
  }
}

.ambient-grid {
  display: none;
}

.topbar {
  width: min(88vw, 1140px);
  padding: 12px 0 4px;
}

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

.brand-lockup {
  gap: 9px;
  font-size: 21px;
  font-weight: 800;
}

.wallet-cluster {
  transform: none;
}

.wallet-btn,
.primary-btn,
.nav-action-btn {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 24px;
  border: 1px solid rgba(170, 255, 191, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 48%),
    linear-gradient(110deg, #137d55 0%, #19d184 48%, #5fcf16 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.13),
    0 0 0 4px rgba(25, 209, 132, 0.08),
    0 0 30px rgba(25, 209, 132, 0.3);
}

.wallet-btn:hover,
.primary-btn:hover,
.nav-action-btn:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 48%),
    linear-gradient(110deg, #168a5d 0%, #22e092 44%, #73dc20 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 0 4px rgba(25, 209, 132, 0.1),
    0 0 28px rgba(25, 209, 132, 0.26);
}

.nav-action-btn {
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.centered-workspace {
  grid-template-columns: minmax(320px, 980px);
  gap: 8px;
  min-height: calc(100svh - 76px);
  align-content: start;
  padding-top: 14px;
  padding-bottom: 6px;
}

.mint-title {
  width: min(96vw, 1060px);
  font-size: clamp(31px, 3.72vw, 60px);
  font-weight: 800;
  line-height: 1.06;
  color: #effff5;
  text-shadow: 0 0 34px rgba(223, 255, 240, 0.1);
}

.mint-title .signature-word {
  background: linear-gradient(110deg, #dffff0 0%, #74ffc0 32%, #19d184 58%, #bfff00 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.mint-subtitle {
  margin: 0 0 16px;
  max-width: 620px;
  color: rgba(238, 255, 244, 0.74);
  font-size: clamp(14px, 1.18vw, 18px);
  line-height: 1.45;
}

.ritual-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(360px, 1fr);
  gap: 34px;
  align-items: start;
  width: min(96vw, 980px);
  margin: 0 auto;
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid rgba(128, 255, 180, 0.34);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(19, 63, 42, 0.5), rgba(5, 12, 10, 0.72)),
    rgba(4, 12, 9, 0.76);
  box-shadow:
    0 -34px 92px rgba(25, 209, 132, 0.2),
    0 -8px 34px rgba(191, 255, 0, 0.14),
    -82px 0 150px rgba(82, 255, 160, 0.18),
    82px 0 150px rgba(82, 255, 160, 0.18),
    0 34px 90px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.18);
}

.ritual-showcase::before {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  top: -42px;
  height: 108px;
  background:
    radial-gradient(ellipse at 50% 70%, rgba(231, 255, 239, 0.82), rgba(78, 255, 156, 0.48) 30%, rgba(25, 209, 132, 0.2) 58%, transparent 82%);
  filter: blur(20px);
  pointer-events: none;
}

.ritual-showcase::after {
  content: "";
  display: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(rgba(118, 255, 174, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 255, 174, 0.045) 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  pointer-events: none;
}

.showcase-spark {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(229, 255, 238, 0.9);
  box-shadow:
    0 0 10px rgba(229, 255, 238, 0.72),
    0 0 22px rgba(119, 255, 174, 0.82);
  animation: sparkLift 3.2s ease-out infinite;
  animation-fill-mode: both;
  pointer-events: none;
}

.spark-two {
  animation-delay: 0.8s;
}

.spark-three {
  animation-delay: 1.7s;
}

.spark-four {
  animation-delay: 0.35s;
  width: 6px;
  height: 6px;
}

.spark-five {
  animation-delay: 1.15s;
}

.spark-six {
  animation-delay: 2.25s;
  width: 4px;
  height: 4px;
}

@keyframes sparkLift {
  0% {
    opacity: 0;
    transform: translate(0, 10px) scale(0.2);
  }
  22% {
    opacity: 0.92;
    transform: translate(-4px, -10px) scale(0.75);
  }
  100% {
    opacity: 0;
    transform: translate(var(--spark-x, 80px), -90px) scale(0.15);
  }
}

.spark-one {
  --spark-x: -72px;
}

.spark-two {
  --spark-x: 86px;
}

.spark-three {
  --spark-x: 24px;
}

.spark-four {
  --spark-x: -130px;
}

.spark-five {
  --spark-x: 132px;
}

.spark-six {
  --spark-x: -8px;
}

.ritual-showcase .preview-column,
.ritual-showcase .bottom-controls {
  position: relative;
  z-index: 1;
  width: 100%;
}

.ritual-showcase .preview-column {
  display: grid;
  justify-items: center;
}

.ritual-showcase .card-stage {
  min-height: auto;
  gap: 16px;
  width: 100%;
  justify-items: center;
}

.ritual-showcase .identity-card {
  width: min(100%, 306px);
}

.theme-picker {
  position: static;
  display: flex;
  justify-content: center;
  gap: 9px;
  transform: none;
}

.theme-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 0 14px rgba(25, 209, 132, 0.16);
}

.theme-dot.is-active {
  outline: 0;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--dot-glow, #19d184) 24%, transparent),
    0 0 18px color-mix(in srgb, var(--dot-glow, #19d184) 72%, transparent);
}

.theme-dot:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--dot-glow, #19d184) 24%, transparent),
    0 0 18px color-mix(in srgb, var(--dot-glow, #19d184) 72%, transparent);
}

.theme-rainbow {
  --dot-glow: #ffe5f8;
}

.theme-green {
  --dot-glow: #19d184;
}

.theme-gold {
  --dot-glow: #facc15;
}

.theme-purple {
  --dot-glow: #a78bfa;
}

.bottom-controls {
  gap: 16px;
  min-width: 0;
}

.control-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.telemetry-strip {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  grid-template-columns: 1.18fr 1fr 1fr;
  border-radius: 18px;
  border-color: rgba(128, 255, 180, 0.28);
  background: rgba(4, 13, 9, 0.54);
}

.field input,
.signature-block,
.network-switch-btn {
  border-radius: 18px;
  border-color: rgba(128, 255, 180, 0.28);
  background: rgba(4, 13, 9, 0.54);
}

.field input {
  height: 52px;
}

.signature-block {
  padding: 14px;
}

#signatureCanvas {
  height: 150px;
  border-radius: 16px;
  background:
    linear-gradient(rgba(118, 255, 174, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 255, 174, 0.035) 1px, transparent 1px),
    rgba(0, 0, 0, 0.24);
  background-size: 26px 26px;
}

.network-switch-btn,
.mint-wide-btn {
  border-radius: 999px;
}

.network-switch-btn {
  min-height: 40px;
  color: #66ffad;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  padding: 0 18px;
}

.network-switch-btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: rgba(223, 255, 240, 0.86);
  filter: drop-shadow(0 0 8px rgba(25, 209, 132, 0.34));
  position: static;
  transform: none;
}

.network-switch-btn span {
  color: #66ffad;
}

.testnet-live-cell strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #66ffad !important;
}

.testnet-live-cell i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #36ff88;
  box-shadow: 0 0 12px rgba(54, 255, 136, 0.78);
  animation: livePulse 1.35s ease-in-out infinite;
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.mint-wide-btn {
  min-height: 58px;
  font-size: 18px;
}

.status-text {
  width: min(96vw, 980px);
  margin: 4px auto 0;
  padding-left: 0;
  color: rgba(223, 255, 240, 0.62);
  text-align: center;
}

.section-jump-row {
  width: min(96vw, 980px);
  margin: 6px auto 0;
  display: flex;
  justify-content: flex-end;
}

.section-jump-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(128, 255, 180, 0.28);
  border-radius: 999px;
  color: #dffff0;
  background: rgba(4, 13, 9, 0.54);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-weight: 700;
}

.section-jump-btn:hover {
  border-color: rgba(191, 255, 0, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 18px rgba(25, 209, 132, 0.12);
}

.minted-cards-section {
  width: min(96vw, 980px);
  margin: 18px auto 0;
  padding-top: 28px;
}

.minted-cards-divider {
  display: block;
  height: 1px;
  width: min(96vw, 980px);
  max-width: 100%;
  margin-bottom: 24px;
  margin-left: 0;
  margin-right: auto;
  background: linear-gradient(90deg, transparent 0%, rgba(25, 209, 132, 0.32) 18%, rgba(191, 255, 0, 0.44) 50%, rgba(25, 209, 132, 0.32) 82%, transparent 100%);
}

.minted-cards-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 18px;
}

.minted-cards-header h2 {
  margin: 0;
  color: transparent;
  background: linear-gradient(110deg, #dffff0 0%, #74ffc0 32%, #19d184 58%, #bfff00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.95vw, 34px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
  text-align: left;
  text-shadow: 0 0 28px rgba(25, 209, 132, 0.12);
}

.minted-cards-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.minted-card-item {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.minted-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 900 / 1250;
  object-fit: cover;
  border-radius: 22px;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: zoom-in;
}

.minted-card-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.minted-card-meta strong,
.minted-card-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.minted-card-meta strong {
  color: #f8fff9;
  font-size: 13px;
  font-weight: 700;
}

.minted-card-meta span {
  color: rgba(223, 255, 240, 0.62);
  font-family: var(--font-mono);
  font-size: 11px;
}

.minted-cards-empty {
  grid-column: 1 / -1;
  padding: 26px 0 10px;
  color: rgba(223, 255, 240, 0.56);
  text-align: center;
}

.minted-cards-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}

.pagination-btn {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(128, 255, 180, 0.24);
  border-radius: 999px;
  color: #dffff0;
  background: rgba(4, 13, 9, 0.54);
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}

.pagination-btn.is-active {
  color: #ffffff;
  border-color: rgba(191, 255, 0, 0.44);
  background: linear-gradient(110deg, #137d55 0%, #19d184 48%, #5fcf16 100%);
}

@media (max-width: 900px) {
  .ritual-showcase {
    grid-template-columns: 1fr;
    width: min(94vw, 620px);
  }

  .ritual-showcase .identity-card {
    width: min(100%, 320px);
  }

  .minted-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-height: 940px) and (min-width: 901px) {
  .topbar {
    padding: 10px 0 4px;
  }

  .centered-workspace {
    min-height: calc(100svh - 66px);
    padding-top: 10px;
    padding-bottom: 6px;
    gap: 8px;
  }

  .mint-title {
    font-size: clamp(30px, 3.45vw, 58px);
  }

  .mint-subtitle {
    margin-bottom: 14px;
  }

  .ritual-showcase {
    padding: 18px;
    gap: 26px;
  }

  .status-text {
    margin-top: 4px;
  }

  .section-jump-row {
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  body {
    overflow-x: hidden;
  }

  .app-shell,
  .hero-panel,
  .workspace,
  .centered-workspace,
  .ritual-showcase,
  .preview-column,
  .card-stage {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .workspace {
    padding: 18px 12px 28px;
  }

  .centered-workspace {
    padding-top: 18px;
    padding-left: 0;
    padding-right: 0;
  }

  .mint-subtitle {
    margin-bottom: 34px;
  }

  .ritual-showcase {
    width: min(92vw, 620px);
    padding: 16px;
    gap: 22px;
    margin-inline: auto;
  }

  .ritual-showcase .preview-column,
  .ritual-showcase .card-stage {
    width: 100%;
    justify-items: center;
    align-items: start;
  }

  .identity-card {
    width: min(82vw, 340px);
    max-width: 100%;
    margin-inline: auto;
    transform-origin: center center;
  }

  .card-preview-image {
    display: block;
    width: 100%;
    height: auto;
  }

  .topbar {
    width: 100%;
    box-sizing: border-box;
    margin-inline: auto;
    padding-left: 12px;
    padding-right: 12px;
  }

  .preview-column,
  .bottom-controls,
  .telemetry-strip,
  .control-row,
  .signature-block,
  .mint-wide-btn,
  .status-text {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-self: center;
  }

  .social-links {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    margin: 6px auto 0;
    flex-direction: row;
    justify-content: center;
  }

  .section-jump-row,
  .minted-cards-section {
    width: min(92vw, 620px);
  }

  .section-jump-row,
  .minted-cards-header {
    justify-content: center;
  }

  .minted-cards-header h2 {
    text-align: center;
  }

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

  .network-switch-btn {
    min-height: 42px;
    padding: 0 14px;
    gap: 6px;
    font-size: 11px;
    line-height: 1.02;
  }

  .network-switch-btn svg {
    width: 15px;
    height: 15px;
  }

  .network-switch-btn span {
    font-size: 11px;
    line-height: 1.02;
    letter-spacing: 0;
  }
}
