@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #020202;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --panel: rgba(13, 13, 13, 0.68);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.065), transparent 26%),
    var(--bg);
  font-family:
    "Orbitron", "Aptos", "SF Pro Display", "Neue Haas Grotesk Text", "Helvetica Neue",
    Arial, sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
}

[hidden] {
  display: none !important;
}

button,
input,
textarea,
select {
  font-family:
    "Orbitron", "Aptos", "SF Pro Display", "Neue Haas Grotesk Text", "Helvetica Neue",
    Arial, sans-serif;
  font-size: inherit;
  font-weight: inherit;
}

button {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nowrap {
  white-space: nowrap;
}

.sidebar {
  position: fixed;
  inset: 94px auto 16px 16px;
  z-index: 20;
  width: 150px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 7, 7, 0.66);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.side-item,
.social-link {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.brand-mark {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 24;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 7, 7, 0.66);
  overflow: visible;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(255, 255, 255, 0.06);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.brand-mark:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.38),
    0 0 26px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.brand-mark:focus-visible,
.side-item:focus-visible,
.social-link:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible,
.home-action:focus-visible,
.hold-button:focus-visible,
.icon-button:focus-visible,
.gallery-arrow:focus-visible,
.gallery-dots button:focus-visible,
.model-arrow:focus-visible,
input:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.64);
  outline-offset: 2px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 0;
  filter:
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.2))
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.12));
}

.side-menu {
  display: grid;
  align-content: start;
  gap: 7px;
}

.side-item {
  justify-content: flex-start;
  gap: 10px;
  height: 42px;
  padding: 0 13px;
}

.side-item:hover,
.side-item.is-active,
.social-link:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.06);
}

.side-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    text-shadow 180ms ease,
    transform 180ms ease;
}

.side-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0.76;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

.side-item:hover .side-label,
.side-item.is-active .side-label {
  color: #fff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.38),
    0 0 24px rgba(255, 255, 255, 0.18);
}

.side-item:hover .side-icon,
.side-item.is-active .side-icon {
  color: #fff;
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.28));
  transform: translateY(-1px);
}

.social-links {
  display: grid;
  gap: 7px;
  align-self: end;
}

.social-link {
  display: grid;
  place-items: center;
  height: 44px;
  border-color: var(--line);
}

.x-link::before {
  content: "X";
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
}

.opensea-link img {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.14));
}

.shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px clamp(18px, 3vw, 44px) 44px 186px;
}

.page-section {
  display: none;
  min-height: calc(100vh - 64px);
  animation: pageIn 360ms ease both;
}

.page-section.is-active {
  display: grid;
}

.page-section[hidden] {
  display: none !important;
}

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

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.012)),
    var(--panel);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-section,
.gallery-section,
.viewer-section,
.whitelist-section,
.admin-section {
  align-content: center;
  justify-items: center;
}

.home-card,
.gallery-panel,
.whitelist-card,
.admin-card {
  width: min(1060px, 100%);
}

.home-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
  justify-items: center;
  padding: clamp(18px, 3vw, 34px);
  width: min(1120px, 100%);
}

.hero-logo {
  width: min(190px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  justify-self: center;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 24px 60px rgba(0, 0, 0, 0.38);
}

.home-hero {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
  text-align: center;
}

.home-hero .section-kicker {
  margin-bottom: 0;
}

.home-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 7.2vw, 88px);
  line-height: 0.86;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.08);
}

.home-hero p {
  max-width: 36rem;
  margin: 0;
  color: #fff;
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.45;
  font-weight: 500;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.home-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.84);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.home-action-primary {
  background: #fff;
  color: #050505;
}

.home-action:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.home-action-primary:hover {
  background: #fff;
  color: #050505;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.16);
}

.home-preview-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: clamp(7px, 1vw, 12px);
  width: min(820px, 100%);
}

.home-preview-card {
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.home-preview-card.is-featured {
  transform: scale(1.045);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(255, 255, 255, 0.075);
}

.home-preview-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(560px, 100%);
  max-width: 560px;
  margin: 22px 0 0;
}

.detail-grid div {
  min-height: 48px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.detail-grid dt,
.detail-grid dd {
  margin: 0;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.detail-grid dt {
  opacity: 0.64;
  font-weight: 500;
  text-transform: uppercase;
}

.detail-grid dd {
  margin-top: 8px;
  font-weight: 600;
}

.home-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(760px, 100%);
  max-width: 760px;
  margin: 0;
}

.rarity-panel {
  display: grid;
  gap: 14px;
  width: min(900px, 100%);
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.046), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.026);
}

.rarity-head {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.rarity-head .section-kicker {
  margin-bottom: 0;
}

.rarity-head p {
  max-width: 48rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(10px, 0.95vw, 12px);
  font-weight: 500;
  line-height: 1.55;
}

.rarity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.rarity-tier {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 254px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.012)),
    rgba(0, 0, 0, 0.18);
}

.rarity-tier::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  background: radial-gradient(circle at 50% 36%, var(--tier-glow), transparent 52%);
}

.rarity-example {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.26);
  box-shadow:
    0 0 18px var(--tier-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.rarity-tier strong {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(13px, 1.18vw, 16px);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.rarity-tier p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.55;
}

.tier-meter {
  position: relative;
  z-index: 1;
  align-self: end;
  height: 5px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.tier-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--tier-line);
  box-shadow: 0 0 14px var(--tier-line);
}

.is-common {
  --tier-glow: rgba(76, 163, 255, 0.42);
  --tier-line: rgba(76, 163, 255, 0.84);
  box-shadow: 0 0 22px rgba(76, 163, 255, 0.08);
}

.is-rare {
  --tier-glow: rgba(176, 103, 255, 0.42);
  --tier-line: rgba(176, 103, 255, 0.86);
  box-shadow: 0 0 22px rgba(176, 103, 255, 0.09);
}

.is-ultra {
  --tier-glow: rgba(255, 54, 54, 0.42);
  --tier-line: rgba(255, 54, 54, 0.86);
  box-shadow: 0 0 22px rgba(255, 54, 54, 0.1);
}

.is-legendary {
  --tier-glow: rgba(255, 213, 84, 0.42);
  --tier-line: rgba(255, 213, 84, 0.88);
  box-shadow: 0 0 22px rgba(255, 213, 84, 0.1);
}

.is-common .tier-meter span {
  width: 82%;
}

.is-rare .tier-meter span {
  width: 54%;
}

.is-ultra .tier-meter span {
  width: 20%;
}

.is-legendary .tier-meter span {
  width: 8%;
}

.lore-panel {
  display: grid;
  gap: 10px;
  width: min(760px, 100%);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.025);
}

.lore-panel .section-kicker {
  margin-bottom: 0;
}

.lore-copy {
  display: grid;
  gap: 10px;
}

.lore-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(12px, 1.05vw, 14px);
  font-weight: 600;
  line-height: 1.58;
}

.lore-copy strong {
  color: #fff;
  font-weight: 700;
}

.gallery-panel {
  display: grid;
  gap: clamp(10px, 1.45vw, 18px);
  padding: clamp(14px, 2vw, 22px);
  width: min(980px, 100%);
}

.gallery-copy {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.gallery-copy .section-kicker {
  margin-bottom: 0;
}

.gallery-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(16px, 1.65vw, 22px);
  line-height: 1;
  font-weight: 600;
}

.gallery-viewer {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.25vw, 16px);
  width: 100%;
  margin: 0;
  min-width: 0;
  justify-self: center;
}

.gallery-frame {
  position: relative;
  aspect-ratio: 1;
  width: min(600px, calc(100vh - 300px), 100%);
  justify-self: center;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.032);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.gallery-arrow {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.gallery-arrow:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.07);
}

.gallery-arrow:active {
  transform: scale(0.98);
}

.gallery-arrow span {
  width: 13px;
  height: 13px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  opacity: 0.86;
}

.gallery-prev span {
  transform: rotate(135deg);
}

.gallery-next span {
  transform: rotate(-45deg);
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  min-height: 8px;
}

.gallery-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition:
    width 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.gallery-dots button.is-active {
  width: 20px;
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.22);
}

.viewer-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(560px, 68vh) auto;
  width: min(1060px, 100%);
  min-width: 0;
  overflow: hidden;
  contain: layout paint;
}

.viewer-toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
}

.icon-button {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.icon-button:hover,
.icon-button.is-active {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.07);
}

.icon-button::before {
  content: "";
  position: absolute;
}

.auto-icon::before {
  display: none;
}

.auto-icon::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid currentColor;
}

.zoom-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.zoom-control input {
  width: clamp(120px, 18vw, 210px);
  accent-color: #ffffff;
}

.stage-wrap {
  position: relative;
  min-height: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 46%, rgba(255, 255, 255, 0.024), transparent 38%),
    radial-gradient(circle at 76% 30%, rgba(255, 255, 255, 0.012), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.006), rgba(0, 0, 0, 0));
}

.stage-wrap::before,
.stage-wrap::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.stage-wrap::before {
  inset: 7% 12%;
  border-radius: 999px;
  background:
    linear-gradient(105deg, transparent 12%, rgba(255, 255, 255, 0.024) 46%, transparent 58%);
  opacity: 0.2;
  filter: blur(34px);
  transform: rotate(-9deg);
}

.stage-wrap::after {
  inset: auto 18% 8%;
  height: 18%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.26);
  filter: blur(30px);
}

.stage-wrap:active {
  cursor: grabbing;
}

.stage-wrap.has-glb-viewer {
  cursor: default;
  touch-action: auto;
}

.stage-wrap.has-glb-viewer:active {
  cursor: default;
}

#robotCanvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  transition: opacity 220ms ease;
}

.robot-model-viewer {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  background: transparent;
  transition: opacity 260ms ease;
  --poster-color: transparent;
  --progress-bar-color: rgba(255, 255, 255, 0.88);
  --progress-bar-height: 2px;
  filter: brightness(0.82) contrast(1.08) saturate(0.96);
  cursor: grab;
}

.robot-model-viewer:active {
  cursor: grabbing;
}

.stage-wrap.has-glb-viewer #robotCanvas {
  opacity: 0;
  pointer-events: none;
}

.stage-wrap.has-glb-viewer .robot-model-viewer {
  opacity: 1;
  pointer-events: auto;
}

.viewer-help {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: grid;
  gap: 5px;
  min-width: 124px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.58);
  background: rgba(0, 0, 0, 0.24);
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.viewer-help span {
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.model-nav {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 46px minmax(180px, auto) 46px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.model-arrow {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.model-arrow:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.07);
}

.model-arrow:active {
  transform: scale(0.98);
}

.model-arrow span {
  width: 11px;
  height: 11px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
}

.model-prev span {
  transform: rotate(135deg);
}

.model-next span {
  transform: rotate(-45deg);
}

.model-details {
  display: grid;
  min-width: 180px;
  min-height: 42px;
  place-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.viewer-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.52)),
    rgba(0, 0, 0, 0.72);
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
  transition:
    opacity 520ms ease,
    transform 720ms ease,
    visibility 520ms ease;
  visibility: hidden;
}

.viewer-loading.is-visible {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

.viewer-section.is-active .viewer-loading {
  animation: viewerLoadOut 2200ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.viewer-loading img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 0;
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.22))
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.12));
  animation: loadingFloat 1400ms ease-in-out infinite;
}

.viewer-loading span {
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes loadingFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes viewerLoadOut {
  0%,
  72% {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.015);
  }
}

.webgl-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.whitelist-card,
.admin-card {
  padding: clamp(18px, 4vw, 34px);
}

.section-kicker {
  margin-bottom: 18px;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.whitelist-form,
.admin-login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.whitelist-form label,
.admin-login label,
.share-step,
.human-check,
.captcha-code-row {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.whitelist-form span,
.admin-login span,
.share-step > span,
.human-check-head > span,
.captcha-code-row > span {
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

.whitelist-form input,
.admin-login input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 0 12px;
}

.whitelist-form input::placeholder,
.admin-login input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.share-step {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.share-step p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.5;
}

.primary-button,
.secondary-button,
.ghost-button,
.hold-button {
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: #fff;
  color: #050505;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    box-shadow 160ms ease;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.ghost-button {
  height: 34px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font-size: 11px;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.hold-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
  box-shadow: none;
}

.primary-button:disabled:hover {
  transform: none;
  box-shadow: none;
}

.human-check {
  grid-column: 1 / -1;
  grid-template-columns: minmax(210px, 0.54fr) minmax(180px, 1fr) auto;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.human-check-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#captchaCanvas {
  width: 100%;
  height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
}

.hold-button {
  position: relative;
  min-width: 172px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.hold-progress {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scaleX(0);
  transform-origin: left;
  background: rgba(255, 255, 255, 0.18);
}

.hold-text {
  position: relative;
  z-index: 1;
}

.hold-button.is-verified {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.human-hint {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  line-height: 1.45;
}

.turnstile-box {
  display: grid;
  grid-column: 1 / -1;
  min-height: 72px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.turnstile-box[hidden] {
  display: none;
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.whitelist-form > .primary-button,
.admin-login > .primary-button {
  align-self: end;
}

.form-message {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 260ms ease,
    visibility 260ms ease;
}

.success-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.success-card {
  display: grid;
  justify-items: center;
  width: min(410px, 100%);
  padding: 34px;
  text-align: center;
  transform: translateY(10px) scale(0.98);
  transition: transform 360ms cubic-bezier(0.19, 1, 0.22, 1);
}

.success-modal.is-visible .success-card {
  transform: translateY(0) scale(1);
}

.success-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 999px;
  overflow: visible;
  background: #18b764;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 20px rgba(24, 183, 100, 0.38),
    0 0 46px rgba(24, 183, 100, 0.22);
}

.success-icon::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(24, 183, 100, 0.34);
  border-radius: inherit;
  filter: blur(2px);
}

.success-fluid {
  display: none;
}

.success-check {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 16px;
  border-left: 4px solid #fff;
  border-bottom: 4px solid #fff;
  opacity: 1;
  transform: rotate(-45deg);
}

.success-card h2 {
  margin: 0;
  color: #fff;
  font-size: 19px;
  line-height: 1.22;
  font-weight: 600;
}

.success-note {
  max-width: 28em;
  margin: 12px 0 22px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.55;
}

.admin-dashboard {
  display: grid;
  gap: 12px;
}

.admin-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.admin-count span,
.admin-list {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.admin-count strong {
  color: #fff;
  font-size: 19px;
}

.admin-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
}

.admin-entry {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.admin-entry strong {
  color: #fff;
  font-size: 11px;
  word-break: break-all;
}

@media (max-width: 980px) {
  .home-card {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    width: 220px;
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rarity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-preview-strip {
    width: min(760px, 100%);
  }

  .viewer-panel {
    grid-template-rows: auto minmax(500px, 62vh) auto;
  }

  .gallery-viewer {
    grid-template-columns: auto auto auto;
    gap: 10px;
  }

  .gallery-frame {
    width: min(560px, calc(100vh - 280px), 100%);
  }
}

@media (max-width: 680px) {
  .sidebar {
    inset: 78px auto 10px 10px;
    width: 108px;
    padding: 7px;
  }

  .brand-mark {
    top: 10px;
    left: 10px;
    width: 56px;
    height: 56px;
  }

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

  .side-item,
  .social-link {
    height: 38px;
  }

  .side-item {
    gap: 7px;
    padding: 0 9px;
  }

  .side-icon {
    flex-basis: 14px;
    width: 14px;
    height: 14px;
  }

  .side-label {
    font-size: 9px;
    letter-spacing: 0.055em;
  }

  .shell {
    padding: 12px 12px 36px 128px;
  }

  .page-section {
    min-height: auto;
  }

  .home-card,
  .gallery-panel,
  .whitelist-card,
  .admin-card {
    padding: 18px;
  }

  .home-card {
    gap: 14px;
  }

  .home-hero h1 {
    font-size: 34px;
  }

  .home-hero p {
    font-size: 12px;
  }

  .home-action {
    min-width: 124px;
    height: 36px;
    font-size: 9px;
  }

  .home-preview-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(390px, 100%);
  }

  .home-preview-card:nth-child(4),
  .home-preview-card:nth-child(5) {
    display: none;
  }

  .home-stats {
    width: 100%;
  }

  .rarity-panel,
  .lore-panel {
    padding: 14px;
  }

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

  .rarity-tier {
    min-height: auto;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
  }

  .rarity-example {
    grid-row: span 3;
  }

  .detail-grid,
  .whitelist-form,
  .admin-login,
  .share-step {
    grid-template-columns: 1fr;
  }

  .viewer-panel {
    grid-template-rows: auto 430px auto;
  }

  .gallery-viewer {
    grid-template-columns: auto auto auto;
    gap: 7px;
  }

  .gallery-frame {
    width: min(100%, calc(100vh - 260px));
  }

  .gallery-arrow {
    width: 38px;
    height: 54px;
  }

  .gallery-copy h1 {
    font-size: 18px;
  }

  .viewer-toolbar {
    flex-wrap: wrap;
  }

  .zoom-control {
    width: 100%;
    margin-left: 0;
  }

  .zoom-control input {
    flex: 1;
    width: auto;
  }

  .viewer-help {
    top: 9px;
    right: 9px;
    min-width: 108px;
    padding: 8px;
  }

  .viewer-help span {
    font-size: 7px;
  }

  .model-nav {
    grid-template-columns: 40px minmax(150px, auto) 40px;
    gap: 8px;
    padding: 9px;
  }

  .model-arrow {
    width: 40px;
    height: 38px;
  }

  .model-details {
    min-width: 150px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 9px;
  }
}
