:root {
  --bg: #0b0710;
  --bg-2: #120a1c;
  --deep: #5e4a8a;
  --purple: #8b6fc0;
  --bright: #9d7fd4;
  --lav: #b39ddb;
  --text: #ece8f3;
  --muted: #a394c2;
  --line: rgba(179, 157, 219, 0.14);
  --line-soft: rgba(179, 157, 219, 0.08);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 320ms;
  animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(1100px 700px at 50% -10%, rgba(94, 74, 138, 0.45), transparent 60%),
    radial-gradient(800px 600px at 85% 110%, rgba(139, 111, 192, 0.2), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

#bg-shader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: none;
}

.has-webgl #bg-shader {
  display: block;
  animation: bgfade 700ms ease both;
}

@keyframes bgfade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html:not(.has-webgl) body {
  background:
    radial-gradient(1100px 700px at 50% -10%, rgba(94, 74, 138, 0.55), transparent 60%),
    radial-gradient(800px 600px at 85% 110%, rgba(139, 111, 192, 0.25), transparent 55%),
    var(--bg);
}

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

.wrap {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 12dvh 24px 10dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: pagein 460ms var(--ease-out) both;
}

@keyframes pagein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wrap, .social, .item, .collection-cta, #bg-shader {
    animation: none;
    opacity: 1;
    transform: none;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(179, 157, 219, 0.05);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  backdrop-filter: blur(12px);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--bright);
  box-shadow: 0 0 10px var(--bright);
}

.intro {
  text-align: center;
  margin-top: 28px;
}

.avatar {
  width: 144px;
  height: 144px;
  margin: 0 auto;
  border-radius: 30px;
  filter: drop-shadow(0 24px 64px rgba(94, 74, 138, 0.55));
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 30px;
  image-rendering: auto;
}

h1 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-top: 22px;
}

h1 .accent {
  color: var(--lav);
}

.tag {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

.socials {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 7px;
  border-radius: 20px;
  background: rgba(179, 157, 219, 0.05);
  border: 1px solid var(--line-soft);
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), background 220ms var(--ease-out);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 620ms var(--ease-out) forwards;
}

.social:nth-child(1) { animation-delay: 60ms; }
.social:nth-child(2) { animation-delay: 130ms; }
.social:nth-child(3) { animation-delay: 200ms; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.icon {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(11, 7, 16, 0.55);
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

.icon svg {
  width: 24px;
  height: 24px;
}

.meta {
  flex: 1 1 auto;
  min-width: 0;
}

.meta .name {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.meta .handle {
  color: var(--muted);
  font-size: 0.85rem;
}

.go {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  margin-right: 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(179, 157, 219, 0.08);
  color: var(--lav);
  transition: transform 220ms var(--ease-out);
}

.go svg { width: 16px; height: 16px; }

@media (hover: hover) and (pointer: fine) {
  .social:hover {
    transform: translateY(-2px);
    border-color: var(--line);
    background: rgba(179, 157, 219, 0.09);
  }
  .social:hover .go {
    transform: translate(2px, -2px) scale(1.05);
    color: var(--text);
  }
}

.social:active {
  transform: scale(0.985);
}

.foot {
  margin-top: 42px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.reward .wrap {
  max-width: 600px;
}

.back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 30px;
  transition: color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.back svg { width: 14px; height: 14px; }
.back:hover { color: var(--text); transform: translateX(-2px); }

.card {
  border-radius: 24px;
}

.card-inner {
  border-radius: 24px;
  padding: 30px 26px;
  background: rgba(11, 7, 16, 0.55);
  border: 1px solid var(--line-soft);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.r-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.r-thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.r-kicker {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.r-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 2px;
}

.r-desc {
  color: var(--muted);
  margin-top: 18px;
  font-size: 0.96rem;
}

.steps {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(179, 157, 219, 0.04);
  border: 1px solid var(--line-soft);
  transition: border-color 240ms var(--ease-out), background 240ms var(--ease-out);
}

.step.done {
  border-color: rgba(157, 127, 212, 0.4);
  background: rgba(94, 74, 138, 0.18);
}

.step-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  transition: background 240ms var(--ease-out), color 240ms var(--ease-out), border-color 240ms var(--ease-out);
}

.step.done .step-num {
  background: var(--bright);
  border-color: var(--bright);
  color: var(--bg);
}

.step-body { flex: 1 1 auto; min-width: 0; }
.step-body .t { font-weight: 500; font-size: 0.96rem; }
.step-body .s { color: var(--muted); font-size: 0.82rem; }

.step-btn {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(179, 157, 219, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 200ms var(--ease-out);
}
.step-btn:hover { background: rgba(179, 157, 219, 0.16); }
.step-btn:active { transform: scale(0.96); }
.step.done .step-btn { opacity: 0.5; pointer-events: none; }

.unlock {
  margin-top: 22px;
}

.btn-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--bg);
  background: linear-gradient(180deg, var(--lav), var(--purple));
  cursor: pointer;
  box-shadow: 0 16px 40px -16px rgba(157, 127, 212, 0.8);
  transition: transform 160ms var(--ease-out), filter 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.btn-main:hover { filter: brightness(1.06); }
.btn-main:active { transform: scale(0.98); }

.btn-main:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: rgba(179, 157, 219, 0.07);
  border: 1px solid var(--line-soft);
  box-shadow: none;
}

.btn-main .ico { width: 18px; height: 18px; display: grid; place-items: center; }
.btn-main .ico svg { width: 18px; height: 18px; }

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(11, 7, 16, 0.35);
  border-top-color: var(--bg);
  animation: spin 600ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hint {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.reveal {
  margin-top: 22px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(94, 74, 138, 0.16);
  border: 1px solid rgba(157, 127, 212, 0.35);
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.reveal .r2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
}
.reveal .r3 { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

.icon.mini {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.icon.mini svg { width: 20px; height: 20px; }

.loading {
  color: var(--muted);
  text-align: center;
  padding: 20px 0;
}

.collection-cta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(94, 74, 138, 0.28), rgba(157, 127, 212, 0.12));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.07);
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 620ms var(--ease-out) 280ms forwards;
}
.collection-cta:active { transform: scale(0.985); }

.cc-icon {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(11, 7, 16, 0.5);
  border: 1px solid var(--line-soft);
  color: var(--lav);
}
.cc-icon svg { width: 24px; height: 24px; }
.cc-meta { flex: 1 1 auto; min-width: 0; }
.cc-title {
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}
.cc-sub { display: block; color: var(--muted); font-size: 0.84rem; }

@media (hover: hover) and (pointer: fine) {
  .collection-cta:hover { transform: translateY(-2px); border-color: rgba(179, 157, 219, 0.3); }
  .collection-cta:hover .go { transform: translate(2px, -2px) scale(1.05); color: var(--text); }
}

.wrap.wide { max-width: 880px; justify-content: flex-start; padding-top: 9dvh; }

.col-head { text-align: center; margin: 8px 0 36px; }
.col-head h1 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 3rem);
  letter-spacing: -0.03em;
}
.col-head .accent { color: var(--lav); }

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

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(179, 157, 219, 0.05);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.tab:hover { color: var(--text); border-color: var(--line); }
.tab:active { transform: scale(0.97); }

.tab.active {
  color: var(--bg);
  background: linear-gradient(180deg, var(--lav), var(--purple));
  border-color: transparent;
}

.tab-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(11, 7, 16, 0.18);
  font-size: 0.72rem;
  font-weight: 600;
}
.tab:not(.active) .tab-count {
  background: rgba(179, 157, 219, 0.12);
  color: var(--muted);
}

.tab-ico { display: inline-grid; place-items: center; }
.tab-ico svg { width: 15px; height: 15px; }

.badge-new {
  display: inline-block;
  vertical-align: middle;
  margin-left: 7px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(180deg, var(--lav), var(--purple));
}

.notfound { text-align: center; align-items: center; }
.big-404 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(5rem, 22vw, 9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--lav), var(--deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.notfound h1 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  letter-spacing: -0.02em;
}
.notfound .collection-cta {
  width: 100%;
  max-width: 420px;
  margin-top: 28px;
  text-align: left;
}

.item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(179, 157, 219, 0.05);
  border: 1px solid var(--line-soft);
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), background 220ms var(--ease-out);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 560ms var(--ease-out) forwards;
}
.item:active { transform: scale(0.985); }

.item-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(11, 7, 16, 0.55);
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
}
.item-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: auto;
}
.item-body { flex: 1 1 auto; min-width: 0; }
.item-title {
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}
.item-tag {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

@media (hover: hover) and (pointer: fine) {
  .item:hover { transform: translateY(-2px); border-color: var(--line); background: rgba(179, 157, 219, 0.09); }
  .item:hover .go { transform: translate(2px, -2px) scale(1.05); color: var(--text); }
}

.empty { text-align: center; color: var(--muted); margin-top: 30px; }

.form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.lbl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}
.lbl-hint { color: var(--muted); font-size: 0.76rem; font-weight: 400; }

.field {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(11, 7, 16, 0.55);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}
.field::placeholder { color: rgba(163, 148, 194, 0.55); }
.field:focus {
  outline: none;
  border-color: rgba(157, 127, 212, 0.55);
  background: rgba(11, 7, 16, 0.75);
}
textarea.field { resize: vertical; min-height: 52px; }
.field.file { padding: 10px 12px; font-size: 0.84rem; }
.field.file::file-selector-button {
  margin-right: 12px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(179, 157, 219, 0.1);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.icon-preview {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(11, 7, 16, 0.55);
  border: 1px solid var(--line-soft);
}
.icon-preview img { width: 46px; height: 46px; object-fit: contain; image-rendering: pixelated; }

.form-row { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.form-row .btn-main { width: auto; flex: 1 1 auto; padding: 14px 20px; }
.form-error { color: #ff8a8a; font-size: 0.84rem; }

.ghost-btn {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(179, 157, 219, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 200ms var(--ease-out), color 200ms var(--ease-out);
}
.ghost-btn:hover { background: rgba(179, 157, 219, 0.13); }
.ghost-btn:active { transform: scale(0.97); }
.ghost-btn.sm { padding: 7px 12px; font-size: 0.8rem; }
.ghost-btn.danger:hover { background: rgba(255, 120, 120, 0.14); color: #ff9b9b; }

.login { width: 100%; max-width: 420px; margin: 6dvh auto 0; }

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.panel-head h1 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  letter-spacing: -0.02em;
}
.panel-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.editor { position: sticky; top: 24px; }

.list { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(179, 157, 219, 0.05);
  border: 1px solid var(--line-soft);
  transition: border-color 200ms var(--ease-out);
}
.row.active { border-color: rgba(157, 127, 212, 0.5); background: rgba(94, 74, 138, 0.16); }
.row-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(11, 7, 16, 0.55);
  border: 1px solid var(--line-soft);
}
.row-icon img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.row-body { flex: 1 1 auto; min-width: 0; }
.row-title { display: block; font-weight: 600; font-size: 0.96rem; }
.row-sub { display: block; color: var(--muted); font-size: 0.78rem; }
.row-actions { flex: 0 0 auto; display: flex; gap: 6px; }

@media (max-width: 720px) {
  .panel-grid { grid-template-columns: 1fr; }
  .editor { position: static; }
}

@media (max-width: 480px) {
  .wrap { padding: 7dvh 18px 8dvh; }
  .card-inner { padding: 24px 18px; }
  .step { flex-wrap: wrap; }
  .step-btn { margin-left: 42px; }
  .grid { grid-template-columns: 1fr; }
  .row-actions { flex-direction: column; }
}
