/*
 * nobacoin.xyz (21 November). The look comes from the logo: the faceted
 * N-dragon and its violet-to-teal gradient on a near-black base.
 */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("/fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --bg: #07060d;
  --bg-2: #0c0a16;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #efecf8;
  --muted: #a39dba;
  --faint: #6f6987;
  --violet: #8b5cf6;
  --violet-2: #7d4ee6;
  --lavender: #cbaaff;
  --sky: #8ea6e0;
  --teal: #3cc8bd;
  --good: #3cd6a0;
  --warn: #f5b14c;
  --bad: #f06c8a;
  --grad: linear-gradient(120deg, #d3b4ff 0%, #9d74f8 38%, #6f9ae6 68%, #3cc8bd 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(60, 200, 189, 0.14));
  --radius: 18px;
  --radius-s: 12px;
  --wrap: 1180px;
  --gutter: 16px;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

@media (min-width: 720px) {
  :root {
    --gutter: 28px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  /* The page's own light: a violet glow up top, a teal one further down. */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% -10%, rgba(139, 92, 246, 0.16), transparent 70%),
    radial-gradient(50vw 40vh at -10% 60%, rgba(60, 200, 189, 0.07), transparent 70%), var(--bg);
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(139, 92, 246, 0.45);
  color: #fff;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
}

/* ---------- The bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7, 6, 13, 0.62);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s,
    background 0.3s;
}

.bar.scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 6, 13, 0.82);
}

.bar .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 17px/1 var(--display);
  letter-spacing: -0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav {
  display: none;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition:
    color 0.2s,
    background 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--panel-2);
}

.bar .btn {
  margin-left: auto;
}

.menu-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.menu-btn svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 1100px) {
  .nav {
    display: flex;
  }

  .bar .btn {
    margin-left: 8px;
  }

  .menu-btn {
    display: none;
  }
}

.sheet {
  position: fixed;
  inset: 64px 0 auto 0;
  z-index: 49;
  background: rgba(10, 8, 18, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter) 20px;
  display: grid;
  gap: 2px;
  transform-origin: top;
  animation: sheet-in 0.25s var(--ease);
}

.sheet a {
  padding: 14px 8px;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.sheet a:last-child {
  border-bottom: 0;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ---------- Buttons ---------- */

.btn {
  --h: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--text);
  font: 600 15px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease),
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--panel-2);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn.small {
  --h: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn.primary {
  border: 0;
  color: #0b0716;
  background: var(--grad);
  background-size: 160% 100%;
  background-position: 0 0;
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.7);
}

.btn.primary:hover {
  background-position: 100% 0;
  box-shadow: 0 14px 38px -10px rgba(60, 200, 189, 0.55);
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--lavender);
  font: 600 12.5px/1 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.lead {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.6;
  max-width: 60ch;
}

.muted {
  color: var(--muted);
}

code,
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

/* ---------- Sections ---------- */

section {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 0;
}

.head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.head p {
  margin: 16px 0 0;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  padding: 24px;
  transition:
    border-color 0.3s,
    transform 0.3s var(--ease),
    background 0.3s;
}

.card:hover {
  border-color: var(--line-2);
}

a.card {
  display: block;
  text-decoration: none;
}

a.card:hover {
  transform: translateY(-3px);
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid rgba(203, 170, 255, 0.22);
  color: var(--lavender);
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .grid.two,
  .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 980px) {
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid.four {
    grid-template-columns: repeat(4, 1fr);
  }
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lavender);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
}

.arrow::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.arrow:hover::after {
  transform: translateX(3px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.tag.live {
  color: var(--good);
  border-color: rgba(60, 214, 160, 0.3);
}

.tag.live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: ping 2s infinite;
}

.tag.soon {
  color: var(--warn);
  border-color: rgba(245, 177, 76, 0.3);
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 6px transparent;
  }
}

/* ---------- The hero ---------- */

.hero {
  padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}

/* minmax(0, …): the long contract address must not widen the column past a phone's screen. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 40px;
  }
}

.hero h1 {
  font-size: clamp(46px, 10vw, 96px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hero h1 small {
  display: block;
  margin-top: 14px;
  font: 600 clamp(18px, 2.6vw, 24px) / 1.3 var(--display);
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero .lead {
  margin: 22px 0 0;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.addr {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 26px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  width: fit-content;
}

.addr span {
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.addr code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 13.5px;
  min-width: 0;
}

.copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font: 600 13px/1 var(--body);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.copy svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.copy:hover {
  background: rgba(255, 255, 255, 0.1);
}

.copy.done {
  color: var(--good);
}

/* The dragon itself. */

.stage {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 560px);
  margin: 0 auto;
  --px: 0;
  --py: 0;
}

/*
 * The facet grid: a div takes the size, the round fade and the spin, and the
 * svg fills it. On the svg itself (21 November) the insets didn't size it and
 * the fade didn't apply, so it drew a square with a hard edge under the dragon.
 */
.stage .facets {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  animation: drift 40s linear infinite;
}

.stage .facets svg {
  width: 100%;
  height: 100%;
}

.stage .facets path {
  fill: none;
  stroke: rgba(203, 170, 255, 0.14);
  stroke-width: 1;
}

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

.aura {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(139, 92, 246, 0.55),
    rgba(60, 200, 189, 0.45),
    rgba(142, 166, 224, 0.4),
    rgba(203, 170, 255, 0.55),
    rgba(139, 92, 246, 0.55)
  );
  filter: blur(58px);
  opacity: 0.75;
  animation:
    spin 18s linear infinite,
    breathe 6s ease-in-out infinite;
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@keyframes breathe {
  50% {
    opacity: 0.45;
    scale: 0.92;
  }
}

.ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(203, 170, 255, 0.16);
}

.ring::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 14px var(--teal);
}

.ring.outer {
  inset: 0;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.07);
  animation: spin 60s linear infinite reverse;
}

.ring.inner {
  animation: spin 24s linear infinite;
}

.ring.outer::after {
  background: var(--lavender);
  box-shadow: 0 0 14px var(--lavender);
}

/*
 * Noba's neon wireframe (her video) glows in first, then the solid dragon
 * fills its lines from the bottom up. The wire sits in its own layer with
 * a screen blend, so the video's black drops out against the page.
 */
.mark {
  position: absolute;
  inset: 13%;
  transform: translate(calc(var(--px) * 10px), calc(var(--py) * 10px));
  transition: transform 0.6s var(--ease);
}

.mark.wire {
  mix-blend-mode: screen;
}

.bob {
  position: absolute;
  inset: 0;
  animation: float 7s ease-in-out infinite;
}

.mark video,
.mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mark.wire video {
  transition: opacity 2s ease;
}

.stage.filled .mark.wire video {
  opacity: 0.35;
}

.mark.solid img {
  opacity: 0;
  clip-path: inset(100% 0 0 0);
}

/*
 * The glow under the dragon sits on its wrapper, not on the image: the
 * image's clip (the fill) would cut a shadow off at the image's own edge,
 * a straight line under the dragon (Ivan, 21 November).
 */
.mark.solid .bob {
  filter: drop-shadow(0 30px 50px rgba(80, 40, 180, 0.55));
}

.stage.filled .mark.solid img {
  animation: fill 1.8s var(--ease) forwards;
}

/* A light passing over the dragon now and then, once it's solid. */
.mark.solid .bob::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 60%
  );
  background-size: 250% 100%;
  -webkit-mask: url("/img/noba-mark.webp") center / contain no-repeat;
  mask: url("/img/noba-mark.webp") center / contain no-repeat;
  mix-blend-mode: overlay;
}

.stage.filled .mark.solid .bob::after {
  opacity: 1;
  animation: shine 7s ease-in-out 2s infinite;
}

@keyframes fill {
  from {
    opacity: 0;
    clip-path: inset(100% 0 0 0);
  }
  25% {
    opacity: 1;
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes float {
  50% {
    transform: translateY(-14px);
  }
}

@keyframes shine {
  0%,
  65% {
    background-position: 120% 0;
  }
  100% {
    background-position: -40% 0;
  }
}

/* Asked for less motion: the solid dragon, still. */
@media (prefers-reduced-motion: reduce) {
  .mark.wire {
    display: none;
  }

  .mark.solid img {
    opacity: 1;
    clip-path: none;
  }
}

.shard {
  position: absolute;
  width: var(--s, 40px);
  aspect-ratio: 1;
  background: linear-gradient(
    140deg,
    rgba(211, 180, 255, 0.9),
    rgba(125, 78, 230, 0.55) 55%,
    rgba(60, 200, 189, 0.5)
  );
  clip-path: polygon(50% 0, 100% 70%, 30% 100%);
  opacity: 0.75;
  transform: translate(calc(var(--px) * var(--d, 20px)), calc(var(--py) * var(--d, 20px)))
    rotate(var(--r, 0deg));
  transition: transform 0.8s var(--ease);
}

.shard > i {
  display: block;
  width: 100%;
  height: 100%;
  background: inherit;
  animation: bob var(--t, 9s) ease-in-out infinite;
}

.shard:nth-child(odd) {
  clip-path: polygon(0 20%, 100% 0, 60% 100%);
}

@keyframes bob {
  50% {
    transform: translateY(-12px) rotate(8deg);
  }
}

/* ---------- The live numbers ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: clamp(36px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

@media (min-width: 820px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  padding: 20px 22px;
  background: var(--bg-2);
}

.stat dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat dd {
  margin: 8px 0 0;
  font: 600 clamp(20px, 3vw, 28px) / 1.1 var(--display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat dd sub {
  font-size: 0.58em;
  vertical-align: -0.2em;
  margin: 0 1px;
}

.stat dd small {
  margin-left: 6px;
  font: 600 13px/1 var(--body);
  letter-spacing: 0;
}

.up {
  color: var(--good);
}

.down {
  color: var(--bad);
}

.stats-note {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 13px;
}

.stats-note a {
  color: var(--muted);
}

/* ---------- Ecosystem ---------- */

.eco {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .eco {
    grid-template-columns: 1.35fr 1fr;
  }
}

.eco .feature {
  padding: clamp(24px, 4vw, 36px);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(139, 92, 246, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.eco .feature h3 {
  font-size: clamp(22px, 3vw, 28px);
}

.apps {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

@media (min-width: 560px) {
  .apps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.apps a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.apps a:hover {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.04);
}

.apps b {
  display: block;
  font-size: 15px;
}

.apps small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.apps svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--lavender);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side {
  display: grid;
  gap: 16px;
}

.bots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* ---------- The game ---------- */

.game {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(70% 90% at 0% 100%, rgba(60, 200, 189, 0.16), transparent 60%),
    radial-gradient(70% 90% at 100% 0%, rgba(139, 92, 246, 0.22), transparent 60%), var(--bg-2);
  overflow: hidden;
}

@media (min-width: 900px) {
  .game {
    grid-template-columns: 1fr 1fr;
  }
}

.steps {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: rgba(0, 0, 0, 0.22);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--grad);
  color: #0b0716;
  font: 700 13px/1 var(--display);
}

.steps b {
  display: block;
}

.steps span {
  color: var(--muted);
  font-size: 14.5px;
}

.egg {
  position: relative;
  aspect-ratio: 1;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.egg .shell {
  width: 62%;
  aspect-ratio: 0.78;
  border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%;
  background:
    radial-gradient(40% 30% at 35% 28%, rgba(255, 255, 255, 0.5), transparent 70%),
    conic-gradient(from 200deg at 50% 60%, #7d4ee6, #3cc8bd, #8ea6e0, #cbaaff, #7d4ee6);
  box-shadow:
    inset -18px -24px 40px rgba(20, 8, 60, 0.55),
    0 40px 80px -20px rgba(139, 92, 246, 0.6);
  animation: wobble 4.5s ease-in-out infinite;
  transform-origin: 50% 90%;
}

.egg .crack {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.egg .crack svg {
  width: 62%;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 2.2;
  fill: none;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: crack 4.5s ease-in-out infinite;
}

@keyframes wobble {
  0%,
  60%,
  100% {
    rotate: 0deg;
  }
  66% {
    rotate: -6deg;
  }
  72% {
    rotate: 5deg;
  }
  78% {
    rotate: -3deg;
  }
  84% {
    rotate: 2deg;
  }
}

@keyframes crack {
  0%,
  55% {
    stroke-dashoffset: 220;
  }
  80%,
  100% {
    stroke-dashoffset: 0;
  }
}

/* ---------- Tokenomics ---------- */

.supply {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .supply {
    grid-template-columns: 1fr 1.25fr;
  }
}

.big {
  padding: clamp(24px, 4vw, 36px);
}

.big .num {
  display: block;
  margin-top: 10px;
  font: 800 clamp(34px, 6vw, 58px) / 1 var(--display);
  letter-spacing: -0.03em;
}

.meter {
  height: 10px;
  margin-top: 26px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  width: var(--w, 100%);
  border-radius: inherit;
  background: var(--grad);
  transition: width 1.6s var(--ease);
}

.facts {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

@media (min-width: 560px) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fact {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--bg-2);
}

.fact svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fact b {
  display: block;
  font-size: 15.5px;
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.fact a {
  font-size: 13.5px;
  color: var(--lavender);
}

/* ---------- Buy ---------- */

.buy .card {
  display: flex;
  flex-direction: column;
}

.buy .card .links {
  margin-top: auto;
  padding-top: 20px;
}

.buy .who {
  display: block;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--faint);
  font-size: 13px;
}

.buy .card.first {
  border-color: rgba(203, 170, 255, 0.35);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(139, 92, 246, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.warning {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(245, 177, 76, 0.28);
  border-radius: var(--radius);
  background: rgba(245, 177, 76, 0.06);
  color: #f3dcb8;
  font-size: 14.5px;
}

.warning svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--warn);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.warning p {
  margin: 0;
}

/* ---------- Roadmap ---------- */

/*
 * Noba's review (21 November): the two-column lists looked tight, small and
 * out of line. Each phase is a drop-down now: its number, name, quarter,
 * progress and status in the header; opened, its steps drop in one by one,
 * one column, a large round mark beside each. The current phase starts open.
 */
.road {
  position: relative;
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 30px;
  --fill: 0;
}

.road::before,
.road::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}

.road::after {
  bottom: auto;
  height: calc((100% - 80px) * var(--fill));
  background: linear-gradient(180deg, var(--lavender), var(--violet), var(--teal));
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.phase {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  transition:
    border-color 0.3s,
    background 0.3s;
}

.phase.open {
  border-color: rgba(203, 170, 255, 0.28);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(139, 92, 246, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

/* The phases swipe in from the side, one after another. */
.js .phase[data-reveal] {
  transform: translateX(-34px);
}

.phase::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 34px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  background: var(--bg);
  z-index: 1;
  transition:
    border-color 0.4s,
    box-shadow 0.4s,
    background 0.4s;
}

.phase.lit::before {
  border-color: var(--lavender);
  background: var(--violet);
  box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.18);
}

.phase > h3 {
  margin: 0;
  font: inherit;
  letter-spacing: normal;
}

.phase-head {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.phase-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(203, 170, 255, 0.25);
  background: var(--grad-soft);
  color: var(--lavender);
  font: 700 19px/1 var(--display);
}

.phase.complete .phase-num {
  border: 0;
  background: var(--grad);
  color: #0b0716;
}

.phase-name {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.phase-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.phase-title b {
  font: 600 clamp(17px, 2.4vw, 21px) / 1.2 var(--display);
  letter-spacing: -0.01em;
}

.phase-name small {
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.progress {
  display: block;
  height: 4px;
  max-width: 280px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  width: var(--p);
  border-radius: inherit;
  background: var(--grad);
}

.chev {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}

.phase.open .chev {
  transform: rotate(180deg);
}

.phase-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}

.phase.open .phase-body,
html:not(.js) .phase-body {
  grid-template-rows: 1fr;
}

.phase-body > div {
  overflow: hidden;
}

.steps-list {
  margin: 0;
  padding: 0 22px 14px 82px;
  list-style: none;
}

@media (max-width: 560px) {
  .steps-list {
    padding-left: 20px;
  }
}

.steps-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.steps-list li > i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px dashed var(--line-2);
}

.steps-list li.done > i {
  border: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0716' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E")
      center / 14px no-repeat,
    var(--grad);
  box-shadow: 0 4px 14px -4px rgba(139, 92, 246, 0.6);
}

.steps-list li.now > i {
  border: 2px solid var(--warn);
}

.steps-list li.now > i::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warn);
  animation: beat 1.6s ease-in-out infinite;
}

.steps-list b {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.steps-list span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.steps-list li.next b {
  color: var(--muted);
}

/* Opened, the steps fall in one by one (--i is each step's place, set by site.js). */
.phase.open .steps-list li {
  animation: drop 0.55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes beat {
  50% {
    transform: scale(0.6);
    opacity: 0.5;
  }
}

/* ---------- Community ---------- */

.social {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .social {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .social {
    grid-template-columns: repeat(3, 1fr);
  }
}

.social a {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social svg {
  flex: none;
  width: 26px;
  height: 26px;
  fill: currentColor;
  color: var(--lavender);
}

.social b {
  display: block;
  font-size: 15.5px;
}

.social small {
  color: var(--muted);
  font-size: 13.5px;
}

.builders {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(90deg, rgba(139, 92, 246, 0.12), rgba(60, 200, 189, 0.1)), var(--bg-2);
}

@media (min-width: 820px) {
  .builders {
    grid-template-columns: 1fr auto;
  }
}

.builders .links {
  margin: 0;
}

/* ---------- Footer ---------- */

footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  color: var(--muted);
  font-size: 14px;
}

footer .cols {
  display: grid;
  gap: 28px;
}

@media (min-width: 820px) {
  footer .cols {
    grid-template-columns: 1.4fr repeat(4, 1fr);
  }
}

footer h4 {
  margin: 0 0 12px;
  color: var(--text);
  font: 600 13px/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

footer .fine {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  color: var(--faint);
  font-size: 13px;
}

footer .fine code {
  color: var(--muted);
  word-break: break-all;
}

/* ---------- Doc pages (developers, devnet, game) ---------- */

.page-head {
  padding: clamp(40px, 8vw, 88px) 0 clamp(24px, 4vw, 40px);
}

.page-head h1 {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-head .lead {
  margin-top: 18px;
}

.doc {
  display: grid;
  gap: 40px;
  padding-bottom: 40px;
}

@media (min-width: 1020px) {
  .doc {
    grid-template-columns: 220px 1fr;
    gap: 56px;
  }
}

.toc {
  display: none;
}

@media (min-width: 1020px) {
  .toc {
    display: block;
    position: sticky;
    top: 96px;
    align-self: start;
  }
}

.toc a {
  display: block;
  padding: 6px 0 6px 14px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.toc a.on,
.toc a:hover {
  color: var(--text);
  border-left-color: var(--lavender);
}

.doc section {
  padding: 0 0 28px;
}

.doc h2 {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 16px;
}

.doc h3 {
  margin: 28px 0 10px;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc p strong,
.doc li strong {
  color: var(--text);
}

.doc ol,
.doc ul {
  padding-left: 22px;
}

.doc li {
  margin: 6px 0;
}

.kv {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  overflow: hidden;
}

.kv div {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.kv div:first-child {
  border-top: 0;
}

@media (min-width: 640px) {
  .kv div {
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: center;
  }
}

.kv dt {
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
}

.kv dd {
  margin: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14.5px;
}

.kv dd code {
  overflow-wrap: anywhere;
}

.kv .copy {
  height: 28px;
  padding: 0 8px;
}

.switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  margin-bottom: 16px;
}

.switch button {
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 14px/1 var(--body);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.switch button[aria-selected="true"] {
  background: var(--grad);
  color: #0b0716;
}

pre {
  position: relative;
  margin: 14px 0;
  padding: 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #0a0913;
  overflow-x: auto;
  font: 13px/1.65 var(--mono);
  color: #dcd6f0;
}

pre .copy {
  position: absolute;
  top: 10px;
  right: 10px;
  height: 28px;
}

pre .k {
  color: #c4a1ff;
}

pre .s {
  color: #7fdcc9;
}

pre .c {
  color: #6f6987;
}

.note {
  padding: 14px 16px;
  border-left: 3px solid var(--violet);
  border-radius: 0 10px 10px 0;
  background: rgba(139, 92, 246, 0.08);
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- The faucet ---------- */

.tap {
  display: grid;
  gap: 16px;
}

@media (min-width: 960px) {
  .tap {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.tap form {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14.5px;
}

.field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: 500 15px/1 var(--mono);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.field input:focus {
  outline: none;
  border-color: var(--lavender);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.field input[aria-invalid="true"] {
  border-color: var(--bad);
}

.result {
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 15px;
}

.result.ok {
  border: 1px solid rgba(60, 214, 160, 0.35);
  background: rgba(60, 214, 160, 0.08);
}

.result.no {
  border: 1px solid rgba(240, 108, 138, 0.35);
  background: rgba(240, 108, 138, 0.08);
}

.result a {
  color: var(--lavender);
}

.tank {
  display: grid;
  gap: 14px;
}

.tank .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14.5px;
}

.tank .row b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ---------- Reveal on scroll (only with JavaScript) ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- The creator (Noba, 21 November) ---------- */

.creator-band {
  padding: 0;
}

.made-by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  padding: 20px 24px;
  border: 1px solid rgba(203, 170, 255, 0.25);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(80% 140% at 0% 50%, rgba(139, 92, 246, 0.2), transparent 70%), var(--bg-2);
  text-decoration: none;
  transition:
    border-color 0.3s,
    transform 0.3s var(--ease);
}

.made-by:hover {
  border-color: rgba(203, 170, 255, 0.5);
  transform: translateY(-2px);
}

.made-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid rgba(203, 170, 255, 0.3);
}

.made-mark img {
  width: 38px;
  height: 38px;
}

.made-by small {
  display: block;
  color: var(--lavender);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.made-by b {
  display: block;
  margin-top: 4px;
  font: 600 clamp(17px, 2.4vw, 21px) / 1.25 var(--display);
  letter-spacing: -0.01em;
}

.made-by .arrow {
  margin-left: auto;
}

.creator {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-bottom: 24px;
}

@media (min-width: 900px) {
  .creator {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 56px;
  }
}

.portrait {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 420px);
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.35), transparent 75%), var(--bg-2);
}

.portrait .ring {
  inset: 0;
  border-color: rgba(203, 170, 255, 0.25);
  animation: spin 30s linear infinite;
}

.portrait img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 24px 40px rgba(80, 40, 180, 0.55));
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 8px 16px;
  border: 1px solid rgba(203, 170, 255, 0.25);
  border-radius: 999px;
  background: var(--grad-soft);
  font-weight: 600;
  font-size: 14.5px;
}

.aim {
  margin: 28px 0 0;
  padding: 22px 24px;
  border-left: 3px solid transparent;
  border-image: var(--grad) 1;
  background: rgba(255, 255, 255, 0.03);
}

.aim p {
  margin: 0;
  font: 500 clamp(18px, 2.6vw, 23px) / 1.45 var(--display);
  letter-spacing: -0.01em;
}

.aim cite {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--line);
}

.roles div {
  padding: 14px 16px;
  background: var(--bg-2);
}

.roles dt {
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.roles dd {
  margin: 6px 0 0;
  font-weight: 600;
}

.about-noba .links {
  margin-top: 28px;
}
