/* styles.css */

:root {
  /* base */
  --bg: #030a12;
  --bg-2: #061420;
  --bg-card: #0a1a2a;
  --fg: #e8f4fc;
  --muted: #6a8fa8;

  /* ice palette */
  --ice-1: #bfe2ff;
  --ice-2: #56a4f5;
  --ice-3: #2864b4;
  --ice-4: #0a2a52;
  --ice-glow: rgba(86, 164, 245, 0.25);

  /* accent (replacing yellow) */
  --accent: #56a4f5;
  --accent-soft: rgba(86, 164, 245, 0.15);
  --accent-glow: 0 0 20px rgba(86, 164, 245, 0.4);

  /* semantic */
  --success: #4ade80;
  --danger: #ff5577;
  --warning: #f59e0b;

  /* misc */
  --border: rgba(86, 164, 245, 0.12);
  --border-strong: rgba(86, 164, 245, 0.25);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========== ICE INTRO — WebGL frozen glass ========== */
.ice-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: transparent;
}

/* Real site, blurred behind the ice (the "looking through glass" layer).
   Blur is reduced frame-by-frame by ice-intro.js as the ice melts. */
.ice-refract {
  position: absolute;
  inset: -2%;
  transform: scale(1.04);
  backdrop-filter: blur(9px) saturate(0.95) brightness(1.10);
  -webkit-backdrop-filter: blur(9px) saturate(0.95) brightness(1.10);
}

/* Procedural ice surface (frost, facets, cracks, sparkle) drawn on top. */
.ice-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.ice-brand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  will-change: opacity;
}

.ice-brand img {
  width: clamp(70px, 12vw, 120px);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(120, 190, 255, 0.7));
}

.ice-brand span {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(0.7rem, 2.4vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  color: rgba(20, 50, 80, 0.95);
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.9);
}

.ice-skip {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 2;
  padding: 0.5rem 1rem;
  background: rgba(10, 26, 42, 0.55);
  border: 1px solid rgba(150, 200, 255, 0.35);
  border-radius: 2px;
  color: rgba(220, 240, 255, 0.9);
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s;
}

.ice-skip:hover {
  background: rgba(40, 100, 180, 0.5);
  border-color: rgba(150, 200, 255, 0.7);
}

@media (max-width: 480px) {
  .ice-skip { bottom: 18px; right: 18px; }
}

/* Lock scroll while the intro is on screen */
html.intro-lock,
body.intro-lock {
  overflow: hidden !important;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ambient */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cracks {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.08;
}

.cracks path {
  fill: none;
  stroke: url(#cg);
  stroke-width: 1.5;
}

.stars {
  position: absolute;
  inset: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--ice-1);
  border-radius: 50%;
  opacity: 0;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.8; }
}

/* shell */
.shell {
  position: relative;
  z-index: 1;
}

/* nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(3, 10, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--fg);
}

.brand-logo {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 8px rgba(86, 164, 245, 0.4));
  transition: filter 0.3s;
}

.brand:hover .brand-logo {
  filter: drop-shadow(0 0 12px rgba(126, 200, 255, 0.6));
}

.brand .nm {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: var(--ice-1);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.ice-cube {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, rgba(191, 226, 255, 0.08) 0%, rgba(86, 164, 245, 0.12) 100%);
  border: 1px solid rgba(86, 164, 245, 0.2);
  border-radius: 2px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.ice-cube::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.ice-cube:hover::before {
  left: 100%;
}

.ice-cube:hover {
  color: var(--fg);
  border-color: var(--ice-2);
  background: linear-gradient(135deg, rgba(191, 226, 255, 0.15) 0%, rgba(86, 164, 245, 0.2) 100%);
  box-shadow: 0 0 20px rgba(86, 164, 245, 0.2), inset 0 0 15px rgba(191, 226, 255, 0.05);
  transform: translateY(-1px);
}

.ice-cube .crack {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.ice-cube:active .crack {
  opacity: 1;
}

.ice-cube .crack::before,
.ice-cube .crack::after {
  content: '';
  position: absolute;
  background: rgba(191, 226, 255, 0.6);
}

.ice-cube .crack::before {
  top: 20%;
  left: 30%;
  width: 2px;
  height: 60%;
  transform: rotate(-20deg);
  box-shadow: 8px -5px 0 rgba(191, 226, 255, 0.4), -6px 8px 0 rgba(191, 226, 255, 0.3);
}

.ice-cube .crack::after {
  top: 40%;
  right: 25%;
  width: 1px;
  height: 40%;
  transform: rotate(25deg);
  box-shadow: -4px 6px 0 rgba(191, 226, 255, 0.4);
}

.ice-cube:active {
  transform: scale(0.97);
  background: linear-gradient(135deg, rgba(191, 226, 255, 0.25) 0%, rgba(86, 164, 245, 0.3) 100%);
}

.cube-inner {
  position: relative;
  z-index: 1;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang {
  display: flex;
  gap: 0.25rem;
}

.lang button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lang button.active {
  background: var(--ice-3);
  border-color: var(--ice-2);
  color: var(--fg);
}

.lang button:hover:not(.active) {
  border-color: var(--ice-3);
  color: var(--fg);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ice-2), var(--ice-3));
  color: var(--fg);
  box-shadow: var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(86, 164, 245, 0.5);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-blue {
  background: var(--ice-3);
  color: var(--fg);
  border: 1px solid var(--ice-2);
}

.btn-blue:hover {
  background: var(--ice-2);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--ice-2);
}

.btn.full {
  width: 100%;
}

/* hero */
.hero {
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ice-2);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero h1 .o {
  color: var(--muted);
  font-weight: 400;
}

.hero h1 .y {
  color: var(--ice-2);
  text-shadow: 0 0 30px rgba(86, 164, 245, 0.5);
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2rem;
}

.lede b {
  color: var(--fg);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* usage bar */
.usage {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1rem 1.25rem;
}

.usage.is-mint {
  border-color: var(--ice-3);
  background: linear-gradient(135deg, var(--bg-card), rgba(40, 100, 180, 0.1));
}

.u-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.u-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.u-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.u-track {
  height: 8px;
  background: var(--bg);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.u-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ice-3), var(--ice-2));
  border-radius: 2px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px var(--ice-2);
}

.u-pct {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--ice-2);
  text-align: right;
}

/* stage */
.stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.float-stat {
  position: absolute;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  line-height: 1.5;
  padding: 0.5rem 0.75rem;
  background: rgba(10, 26, 42, 0.8);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.fs1 { top: 10%; left: 5%; }
.fs2 { bottom: 15%; right: 5%; }

.crystal {
  position: relative;
  width: 220px;
  height: 220px;
}

.ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--ice-3);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.ring.dash {
  border-style: dashed;
  animation-direction: reverse;
  animation-duration: 30s;
  opacity: 0.5;
}

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

.hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 0 40px rgba(86, 164, 245, 0.6)) drop-shadow(0 0 80px rgba(126, 200, 255, 0.3));
  animation: hero-pulse 3s ease-in-out infinite;
}

@keyframes hero-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 0 40px rgba(86, 164, 245, 0.6)) drop-shadow(0 0 80px rgba(126, 200, 255, 0.3));
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    filter: drop-shadow(0 0 60px rgba(126, 200, 255, 0.8)) drop-shadow(0 0 100px rgba(86, 164, 245, 0.5));
  }
}

.burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border: 1px solid rgba(191, 226, 255, 0.1);
  border-radius: 50%;
  animation: burst 2s ease-out infinite;
}

@keyframes burst {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.pip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

/* ticker */
.ticker {
  background: var(--ice-4);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 0.75rem 0;
}

.run {
  display: flex;
  gap: 3rem;
  animation: scroll 20s linear infinite;
  width: max-content;
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

.run span {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--ice-1);
  white-space: nowrap;
}

/* blocks */
.block {
  padding: 100px 0;
}

.sec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: end;
}

.sec-head h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
}

.sec-head p {
  color: var(--muted);
  font-size: 1rem;
}

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--ice-2);
  text-transform: uppercase;
}

.eyebrow.line {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.eyebrow.line::before {
  content: attr(data-no);
  color: var(--muted);
}

.eyebrow.line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* mint */
.mint-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.session-card,
.mint-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.5rem;
}

.session-card {
  border-color: var(--ice-3);
}

.session-bars {
  margin: 1.5rem 0;
}

.earn-readout {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.earn-lbl {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.earn-big {
  font-family: 'Unbounded', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ice-2);
}

.arrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.mint-card .row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.mint-card .row:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
}

.mint-card .k {
  color: var(--muted);
  font-size: 0.9rem;
}

.mint-card .v {
  font-weight: 600;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
}

.mint-card .v.pop {
  color: var(--ice-2);
  padding: 0.2rem 0.6rem;
  background: var(--accent-soft);
  border-radius: 2px;
}

.mint-card .meta {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.step:hover {
  border-color: var(--ice-3);
  transform: translateY(-4px);
}

.step .n {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.step .ic {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--ice-2);
}

.step h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.step .cmd {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--ice-2);
  background: var(--bg);
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  border: 1px solid var(--border);
}

/* ladder */
.ladder {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lrow {
  display: grid;
  grid-template-columns: 60px 1fr 200px 60px;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.lp {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ice-2);
}

.ld {
  font-size: 0.9rem;
}

.ld s {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.lbar {
  height: 6px;
  background: var(--bg);
  border-radius: 2px;
  overflow: hidden;
}

.lbar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ice-3), var(--ice-2));
  border-radius: 2px;
}

.lout {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ice-1);
  text-align: right;
}

/* vault */
.vault {
  padding: 100px 0 60px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.vault-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.thaw-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.thaw-btn:hover {
  border-color: var(--ice-2);
  color: var(--fg);
}

.thaw-btn .dot {
  width: 8px;
  height: 8px;
  background: var(--ice-2);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.vault-row {
  overflow: hidden;
  margin-top: 2rem;
}

.marquee {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  width: max-content;
  animation: marquee 40s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


.specimen {
  position: relative;
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.specimen:hover {
  border-color: var(--ice-2);
  transform: scale(1.02);
}

.specimen .pic {
  aspect-ratio: 1;
  overflow: hidden;
}

.specimen .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.specimen:hover .pic img {
  transform: scale(1.1);
}

.specimen .frost {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 10, 18, 0.3) 0%, rgba(3, 10, 18, 0.9) 100%);
  backdrop-filter: blur(2px);
  transition: opacity 0.3s;
}

.specimen:hover .frost,
.specimen.thawed .frost {
  opacity: 0;
}

.frost-lbl {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--ice-1);
  white-space: nowrap;
  transition: opacity 0.3s;
}

.specimen:hover .frost-lbl,
.specimen.thawed .frost-lbl {
  opacity: 0;
}

.specimen .traits {
  padding: 1rem;
  transition: all 0.3s;
}

.specimen .traits .id,
.specimen .traits .rar,
.specimen .traits ul li,
.specimen .traits ul li b {
  color: rgba(255, 255, 255, 0.5);
  filter: blur(3px);
  transition: all 0.3s;
}

.specimen:hover .traits .id,
.specimen.thawed .traits .id {
  color: var(--fg);
  filter: none;
}

.specimen:hover .traits .rar,
.specimen.thawed .traits .rar {
  filter: none;
}

.specimen:hover .traits ul li,
.specimen.thawed .traits ul li {
  color: var(--muted);
  filter: none;
}

.specimen:hover .traits ul li b,
.specimen.thawed .traits ul li b {
  color: var(--fg);
  filter: none;
}

.traits .id {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.traits .rar {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.specimen .traits .rar.legendary, .rar.legendary { background: rgba(245, 200, 66, 0.18); color: #f5c842; }
.specimen .traits .rar.rare, .rar.rare { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.specimen .traits .rar.common, .rar.common { background: rgba(34, 197, 94, 0.2); color: #22c55e; }

.traits ul {
  list-style: none;
  font-size: 0.8rem;
}

.traits li {
  color: var(--muted);
  padding: 0.2rem 0;
}

.traits li b {
  color: var(--fg);
  font-weight: 500;
}

/* faq */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--fg);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-q:hover {
  background: rgba(86, 164, 245, 0.05);
}

.faq-q .qn {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--ice-2);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-a {
  max-height: 200px;
}

.faq-a .inner {
  padding: 0 1.5rem 1.25rem 3.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-a .mono {
  font-family: 'Space Mono', monospace;
  color: var(--ice-2);
}

/* skill */
.skill-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 3rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.skill-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-title .icon {
  width: 32px;
  height: 32px;
  background: var(--ice-4);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.skill-title h3 {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  font-weight: 700;
}

.skill-title span {
  font-size: 0.8rem;
  color: var(--muted);
}

.skill-actions {
  display: flex;
  gap: 0.5rem;
}

.skill-actions button {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.skill-actions button:hover {
  border-color: var(--ice-2);
  color: var(--fg);
}

.skill-code {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 1.5rem;
  background: var(--bg);
}

.skill-code.open {
  max-height: 500px;
  padding: 1.5rem;
  overflow: auto;
}

.skill-code pre {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--fg);
  white-space: pre-wrap;
  word-break: break-word;
}

.skill-code .comment { color: var(--muted); }
.skill-code .keyword { color: var(--ice-2); }
.skill-code .string { color: #4ade80; }

/* footer */
.foot {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.foot-cta {
  text-align: center;
  margin-bottom: 4rem;
}

.foot-cta h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.foot-cta .y {
  color: var(--ice-2);
}

.foot-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.foot-links a {
  display: block;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s;
}

.foot-links a:hover {
  border-color: var(--ice-3);
  transform: translateY(-2px);
}

.foot-links .k {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.foot-links .v {
  font-size: 0.9rem;
  color: var(--fg);
  font-weight: 500;
}

.foot-links .arr {
  color: var(--ice-2);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.foot-bottom a {
  color: var(--muted);
  text-decoration: none;
}

.foot-bottom a:hover {
  color: var(--fg);
}

/* toasts */
.toasts {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1000;
  max-width: 360px;
}

.toast {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: toast-in 0.3s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

/* utils */
.hidden { display: none !important; }

.mono {
  font-family: 'Space Mono', monospace;
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

/* wallet modal */
.wallet-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
}

.wallet-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  width: 90%;
  max-width: 360px;
  overflow: hidden;
}

.wallet-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.wallet-modal-header h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.wallet-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
}

.wallet-modal-close:hover {
  color: var(--fg);
}

.wallet-modal-list {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--fg);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.wallet-option:hover {
  border-color: var(--ice-2);
  background: var(--accent-soft);
}

.wallet-option img {
  width: 32px;
  height: 32px;
  border-radius: 2px;
}

.wallet-option .wallet-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.wallet-none {
  text-align: center;
  color: var(--muted);
  padding: 1rem;
}

/* responsive */
/* Burger button — hidden on desktop */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ice-1);
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .stage {
    min-height: 300px;
  }

  .sec-head {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

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

  .foot-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-burger {
    display: flex;
  }

  /* Nav links → выпадающее меню */
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(3, 10, 18, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav-links.open {
    max-height: 70vh;
    padding: 0.75rem 1.5rem 1rem;
  }

  .ice-cube {
    width: 100%;
    justify-content: flex-start;
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }

  .hero {
    padding: 110px 0 60px;
    min-height: auto;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .lede {
    font-size: 1rem;
  }

  /* Stage: убираем absolute float-stats чтобы не налезали */
  .stage {
    min-height: 260px;
  }

  .float-stat {
    font-size: 0.6rem;
    padding: 0.35rem 0.5rem;
  }

  .block {
    padding: 64px 0;
  }

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

  .vault-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .skill-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
  }

  .skill-actions {
    width: 100%;
  }

  .skill-actions button {
    flex: 1;
  }

  .lrow {
    grid-template-columns: 50px 1fr 50px;
  }

  .lrow .ld s,
  .lrow .lbar {
    display: none;
  }

  .foot-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 1rem;
  }

  .brand .nm {
    font-size: 0.55rem;
  }

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

  .nav .wrap {
    height: 60px;
  }

  .nav-links {
    top: 60px;
  }

  .js-connect {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .hero {
    padding: 90px 0 48px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .tag {
    font-size: 0.65rem;
  }

  .block {
    padding: 48px 0;
  }

  .session-card,
  .mint-card {
    padding: 1.25rem;
  }

  .run {
    gap: 1.5rem;
  }

  .run span {
    font-size: 0.7rem;
  }

  .float-stat {
    display: none;
  }

  .install-hint code {
    font-size: 0.72rem !important;
  }

  .foot-cta h2 {
    font-size: 1.6rem;
  }
}

/* Блокируем скролл body когда открыто мобильное меню */
body.nav-locked {
  overflow: hidden;
}

/* Install code copy feedback */
code[data-copied="true"]::after {
  content: "Copied!";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--success);
  font-size: .75rem;
}

/* Sold-out state — when 2222/2222 minted, minting is closed everywhere */
.btn[disabled],
.btn.disabled,
.js-connect[disabled] {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(.3);
}
body.is-soldout #supplyRemain {
  color: var(--ice-2);
  font-weight: 700;
  letter-spacing: .04em;
}
