:root {
  --bg: #050605;
  --panel: #0d100e;
  --panel-2: #131712;
  --panel-border: rgba(58, 161, 121, 0.22);
  --panel-border-strong: rgba(50, 243, 141, 0.5);
  --ink: #06120c;
  --text: #eef7f1;
  --text-dim: #93a89c;
  --text-faint: #7c8c82;
  --error: #ff5c5c;
  --title: #32f38d;
  --subtitle: #32f38d;
  --accent-gold: #ffb05c;
  --font-display: "Fredoka", sans-serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-color: var(--panel-border-strong) var(--panel);
}

::selection {
  background: var(--subtitle);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--panel);
}

::-webkit-scrollbar-thumb {
  background: var(--panel-border-strong);
  border-radius: 999px;
  border: 3px solid var(--panel);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--subtitle);
}

:focus-visible {
  outline: 2px solid var(--subtitle);
  outline-offset: 2px;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background: var(--panel);
  font-family: var(--font-body);
  touch-action: manipulation;
  color: var(--text);
}

html.site-loading,
html.site-loading body {
  overflow: hidden;
  height: 100%;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #050605;
  transition: opacity 0.5s ease;
}

.loading-screen-hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-wordmark {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #32f38d;
}

.loading-gif {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 50%;
}

.loading-bar-track {
  width: 220px;
  height: 6px;
  border-radius: 999px;
  background: rgba(58, 161, 121, 0.22);
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: #32f38d;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.ambient-gradient-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  width: 100%;
  height: 100%;
  filter: blur(50px);
  opacity: 0.9;
}

.flock-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 65px;
  padding: 0 28px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--panel-border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-logo {
  width: 37.8px;
  height: 37.8px;
  object-fit: contain;
  display: block;
  transition: opacity 0.15s ease;
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-wordmark-wrap {
  position: relative;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.nav-eyes-bg {
  position: absolute;
  inset: -10px -6px;
  background: url("assets/banner-eyes-nav.webp") center / contain no-repeat;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.navbar.is-scrolling .nav-eyes-bg {
  opacity: 1;
}

.navbar.is-scrolling .nav-wordmark {
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .nav-wordmark-wrap:hover .nav-eyes-bg {
    opacity: 1;
  }

  .nav-wordmark-wrap:hover .nav-wordmark {
    opacity: 0;
  }
}

.nav-wordmark {
  position: relative;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--subtitle);
  transition: opacity 0.35s ease;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.navbar-toggle {
  display: none;
  position: relative;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  padding: 0;
  margin: 4px 6px;
  cursor: pointer;
}

.navbar-toggle-bar {
  position: absolute;
  left: 1px;
  right: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.navbar-toggle-bar:nth-child(1) {
  top: 0;
}

.navbar-toggle-bar:nth-child(2) {
  top: 8px;
}

.navbar-toggle-bar:nth-child(3) {
  top: 16px;
}

.navbar-toggle.is-open .navbar-toggle-bar:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.navbar-toggle.is-open .navbar-toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.is-open .navbar-toggle-bar:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

.nav-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-dim);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--subtitle);
}

#party-btn.is-playing {
  color: var(--subtitle);
  animation: party-glow 1.4s ease-in-out infinite;
}

@keyframes party-glow {
  0%, 100% {
    text-shadow: 0 0 6px rgba(50, 243, 141, 0.5);
  }
  50% {
    text-shadow: 0 0 14px rgba(50, 243, 141, 1);
  }
}

.buy-dropdown {
  position: relative;
}

.buy-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  z-index: 20;
}

.buy-dropdown.open .buy-dropdown-menu {
  display: block;
}

.buy-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.buy-dropdown-menu a:hover {
  background: rgba(50, 243, 141, 0.1);
  color: var(--subtitle);
}

.btn {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.btn-primary {
  background: var(--subtitle);
  color: var(--ink);
  border: 1px solid var(--subtitle);
}

.btn-outline {
  background: transparent;
  color: var(--subtitle);
  border: 1px solid var(--subtitle);
}

/* ---------- HUD chrome (reusable across sections) ---------- */

.hud-frame {
  position: relative;
}

.hud-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  z-index: 1;
  --hf-size: 18px;
  --hf-thick: 2px;
  --hf-color: var(--panel-border-strong);
  background:
    linear-gradient(var(--hf-color), var(--hf-color)) top left / var(--hf-size) var(--hf-thick) no-repeat,
    linear-gradient(var(--hf-color), var(--hf-color)) top left / var(--hf-thick) var(--hf-size) no-repeat,
    linear-gradient(var(--hf-color), var(--hf-color)) top right / var(--hf-size) var(--hf-thick) no-repeat,
    linear-gradient(var(--hf-color), var(--hf-color)) top right / var(--hf-thick) var(--hf-size) no-repeat,
    linear-gradient(var(--hf-color), var(--hf-color)) bottom left / var(--hf-size) var(--hf-thick) no-repeat,
    linear-gradient(var(--hf-color), var(--hf-color)) bottom left / var(--hf-thick) var(--hf-size) no-repeat,
    linear-gradient(var(--hf-color), var(--hf-color)) bottom right / var(--hf-size) var(--hf-thick) no-repeat,
    linear-gradient(var(--hf-color), var(--hf-color)) bottom right / var(--hf-thick) var(--hf-size) no-repeat;
}

.hero {
  position: relative;
  text-align: center;
  flex-shrink: 0;
  width: 100%;
  min-height: calc(100vh - 65px);
  min-height: calc(100dvh - 65px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px 18px;
  overflow: hidden;
  background: var(--bg);
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center 30%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(8, 20, 70, 0.85) 0%, rgba(8, 20, 70, 0.85) 22%, rgba(8, 20, 70, 0) 55%);
  pointer-events: none;
}

/* ---------- buy / join-the-flock CTA section ---------- */

.buy-section {
  width: 100%;
  max-width: 1100px;
  flex-shrink: 0;
  padding: 0 40px;
  margin-top: 64px;
  scroll-margin-top: 85px;
  text-align: center;
}

.buy-head .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.buy-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 400px) 1fr;
  gap: 24px;
  align-items: center;
}

.buy-art {
  display: flex;
}

.buy-art-cloud {
  justify-content: flex-end;
}

.buy-art-research {
  justify-content: flex-start;
}

.buy-art img {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  border: 2px solid var(--panel-border);
  background: var(--panel);
  transition: border-color 0.2s ease, margin-top 0.2s ease;
}

.buy-art:hover img {
  border-color: var(--subtitle);
  margin-top: -2px;
}

.buy-cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(50, 243, 141, 0.12), rgba(50, 243, 141, 0.03));
  border: 2px solid var(--panel-border-strong);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.buy-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.buy-stat-n {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
}

.buy-stat-l {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.buy-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.buy-link {
  width: 100%;
  text-align: center;
  text-decoration: none;
  padding: 13px 20px;
  font-size: 13px;
}

/* ---------- gallery conveyor belt ---------- */

.gallery-section {
  width: 100%;
  max-width: 1100px;
  flex-shrink: 0;
  padding: 0 40px;
  margin-top: 90px;
  margin-bottom: 90px;
  text-align: center;
}

.images-grid-eyebrow {
  margin-bottom: 8px;
  font-size: 10px;
}

.gallery-section .section-headline {
  font-size: 28px;
}

.gallery-section .section-sub {
  margin-bottom: 32px;
}

.gallery-belts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-belt {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.gallery-belt--mirror {
  transform: scaleX(-1);
}

.gallery-belt--mirror .gallery-belt-item {
  transform: scaleX(-1);
}

.gallery-belt-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.gallery-belt-item {
  flex: 0 0 auto;
  width: 220px;
  height: 220px;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}

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

.gallery-see-more {
  margin-top: 28px;
  display: inline-block;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 6.4vw, 72px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--subtitle);
}

.hero-sub {
  color: #ffffff;
  font-size: 15px;
  font-weight: 400;
  max-width: 420px;
}

.hero-text {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 100%;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.hero-text .hero-sub {
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-text .hero-headline {
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

/* ---------- contract-address chip (hero) ---------- */

.ca-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 8, 6, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 176, 92, 0.4);
  border-radius: 999px;
  padding: 7px 8px 7px 14px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.ca-chip:hover {
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

.ca-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  flex-shrink: 0;
}

.ca-chip-text {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.ca-chip-action {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--accent-gold);
  padding: 3px 8px;
  border-radius: 999px;
}

.ca-chip.is-copied .ca-chip-action {
  background: var(--subtitle);
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

/* ---------- shared section text ---------- */

.section-headline {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--title);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-dim);
  font-size: 14px;
  max-width: 480px;
}

.section-headline.center,
.section-sub.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.lime {
  color: var(--subtitle);
}

/* ---------- what is robbie ---------- */

.what-is {
  width: 100%;
  max-width: 1100px;
  padding: 0 40px;
  margin-top: 56px;
  scroll-margin-top: 85px;
}

.what-is-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  align-items: center;
  position: relative;
}

/* .what-is-image now lives inside .what-is-copy in the HTML (needed so
   mobile can float it and wrap text around it) -- on desktop, .what-is-copy
   stays a normal block (column 1, original text flow/spacing untouched)
   and .what-is-image is pulled out with absolute positioning to sit over
   column 2, reconstructing the original two-column split. */
.what-is-copy {
  margin-left: 20%;
}

.what-is-lead {
  color: var(--subtitle);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin: 10px 0 16px;
}

.what-is-body {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 22px;
}

.what-is-image {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: calc(50% - 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.dot-grid {
  position: absolute;
  inset: 10%;
  background-image: radial-gradient(rgba(58, 161, 121, 0.35) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  z-index: 0;
}

.what-is-image img {
  position: relative;
  z-index: 1;
  width: 70%;
  max-width: 310px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 3px solid var(--subtitle);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.speech-bubble {
  position: absolute;
  z-index: 2;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.bubble-1 {
  top: 8%;
  right: 6%;
}

.bubble-2 {
  bottom: 14%;
  left: 4%;
}

/* ---------- getting started ---------- */

.getting-started {
  width: 100%;
  max-width: 1100px;
  padding: 0 40px;
  margin-top: 56px;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.step-card {
  background: var(--panel);
  border: 2px solid var(--panel-border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 0.2s, margin-top 0.2s;
}

.step-card:hover {
  border-color: var(--subtitle);
  margin-top: -2px;
}

.step-card .btn {
  margin-top: auto;
}

.step-badge {
  display: inline-block;
  background: rgba(50, 243, 141, 0.15);
  color: var(--subtitle);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--subtitle);
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .hero-slide {
    transition: none;
  }

  .nav-eyes-bg,
  .nav-wordmark {
    transition: none;
  }

  #party-btn.is-playing {
    animation: none;
    text-shadow: 0 0 10px rgba(50, 243, 141, 0.8);
  }

  .navbar.is-scrolling .nav-eyes-bg {
    opacity: 0;
  }

  .navbar.is-scrolling .nav-wordmark {
    opacity: 1;
  }
}

/* ---------- faq ---------- */

.faq-section {
  width: 100%;
  max-width: 700px;
  padding: 90px 24px 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-list {
  width: 100%;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 4px 16px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--title);
  font-size: 18px;
  margin-left: 12px;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
  padding-bottom: 16px;
}

/* ---------- footer ---------- */

.site-footer {
  width: 100%;
  border-top: 1px solid var(--panel-border);
  background: var(--bg);
  padding: 26px 40px 30px;
  text-align: center;
}

.footer-logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--subtitle);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12px;
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--subtitle);
  opacity: 0.8;
}

.footer-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--panel-border);
  transition: border-color 0.2s ease;
}

.footer-icon-dex {
  border-radius: 50%;
}

/* x-icon.png's badge is a mid-gray (~94,95,98) that only computes to about
   2.95:1 contrast against the dark panel background -- inverting it
   brightens the badge to ~7.4:1. */
.footer-icon-x {
  filter: invert(1);
}

.footer-links a:hover .footer-icon {
  border-color: var(--subtitle);
}

.footer-disclaimer {
  color: var(--text-faint);
  font-family: var(--font-body);
  font-size: 12px;
  max-width: 560px;
  margin: 0 auto 12px;
  line-height: 1.6;
}

/* ---------- article pages ---------- */

.article {
  width: 100%;
  max-width: 720px;
  padding: 70px 24px 100px;
  margin: 0 auto;
}

.article-back {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 18px;
}

.article-back:hover {
  color: var(--subtitle);
}

.guide-steps {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.guide-step {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.guide-step-n {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.guide-step:hover {
  color: var(--subtitle);
}

.guide-step.is-active {
  background: var(--subtitle);
  color: var(--ink);
  cursor: default;
}

.guide-step.is-active:hover {
  color: var(--ink);
}

.article-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--title);
  margin-bottom: 28px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--subtitle);
  margin: 32px 0 12px;
}

.article-body p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.article-body ol,
.article-body ul {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px 22px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body a {
  color: var(--subtitle);
  text-decoration: underline;
}

.article-body a:hover {
  color: var(--title);
}

.article-body code {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--subtitle);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  word-break: break-all;
}

.article-callout {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13px;
  color: var(--text-dim);
  margin: 20px 0;
}

.article-next {
  margin-top: 40px;
}

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

.play-btn {
  font-size: 16px;
  padding: 14px 40px;
}

.play-btn[hidden] {
  display: none;
}

.game-page-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px;
  text-decoration: none;
}

.game-layout {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
}

.game-layout:has(#game-wrap:not([hidden])) {
  padding: 24px 16px;
}

.game-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(5, 6, 5, 0.85);
  backdrop-filter: blur(6px);
}

.game-backdrop[hidden] {
  display: none;
}

body.game-popup-open {
  overflow: hidden;
  --game-popup-w: min(860px, 92vw);
}

.game-popup-inner {
  position: relative;
}

body.game-popup-open .game-popup-inner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 401;
}

body.game-popup-open .dj-widget {
  top: 50%;
  left: min(calc(50vw + var(--game-popup-w) / 2 + 16px), calc(100vw - 166px));
  right: auto;
  bottom: auto;
  z-index: 402;
  transform: translateY(calc(-50% + var(--game-popup-w) * 0.2442 + 16px));
}

#game-wrap {
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  overflow: hidden;
  width: min(860px, 92vw);
  aspect-ratio: 860 / 420;
}

#game-wrap[hidden] {
  display: none;
}

#game-wrap canvas {
  display: block;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

#score {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
  pointer-events: none;
  user-select: none;
  font-variant-numeric: tabular-nums;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  font-size: 11px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.75);
}

.close-btn-popup {
  top: -44px;
  right: 0;
}

.dj-widget {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom, 0px) + 12px);
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dj-widget[hidden] {
  display: none;
}

.dj-gif {
  width: 150px;
  height: 150px;
  object-fit: contain;
  cursor: pointer;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: opacity 0.15s ease;
}

.dj-gif.is-paused {
  opacity: 0.45;
}

.dj-volume {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 20px;
  padding: 4px 10px;
}

.dj-mute-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: #fff;
  padding: 0;
  cursor: pointer;
}

.dj-mute-btn .icon-speaker-mute {
  display: none;
}

.dj-mute-btn.is-muted .icon-speaker-wave {
  display: none;
}

.dj-mute-btn.is-muted .icon-speaker-mute {
  display: inline;
}

.dj-volume input[type="range"] {
  width: 70px;
  accent-color: var(--subtitle);
  cursor: pointer;
}

.scoreboard {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  width: min(260px, calc(100% - 20px));
  height: 310px;
  max-height: calc(100% - 30px);
  overflow: hidden;
  background: rgba(13, 16, 14, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.scoreboard[hidden] {
  display: none;
}

.scoreboard-result {
  flex-shrink: 0;
  text-align: center;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--panel-border);
}

.scoreboard-result-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--error);
  margin: 0 0 6px;
}

.scoreboard-result-stats {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 0 0 6px;
}

.scoreboard-result-stat {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 12px;
  color: var(--text);
}

.scoreboard-result-stat-n {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scoreboard-result-hint {
  font-size: 11px;
  color: var(--subtitle);
  margin: 0;
}

.scoreboard-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--title);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}

.scoreboard-total {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--panel-border);
}

.scoreboard-total-n {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--subtitle);
  font-variant-numeric: tabular-nums;
}

.scoreboard-total-l {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.scoreboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.scoreboard-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 6px;
  border-radius: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.scoreboard-row:last-child {
  border-bottom: none;
}

.scoreboard-rank {
  width: 16px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
}

.scoreboard-row:nth-child(1) .scoreboard-rank {
  color: var(--subtitle);
}

.scoreboard-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scoreboard-score {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--subtitle);
  font-variant-numeric: tabular-nums;
}

.scoreboard-empty {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}

.highscore-form {
  flex-shrink: 0;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--panel-border);
}

.highscore-form[hidden] {
  display: none;
}

.highscore-form-label {
  display: block;
  font-size: 11px;
  color: var(--subtitle);
  margin-bottom: 6px;
}

.highscore-form-row {
  display: flex;
  gap: 6px;
}

.highscore-name-input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 12px;
  padding: 7px 8px;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
}

.highscore-name-input:focus {
  outline: none;
  border-color: var(--subtitle);
}

.highscore-submit {
  padding: 7px 12px;
  font-size: 11px;
}

/* ---------- media gallery ---------- */

.media-page {
  width: 100%;
  max-width: 1100px;
  padding: 70px 40px 110px;
  text-align: center;
}

.media-page .section-headline,
.media-page .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.media-page .section-headline {
  color: var(--subtitle);
}

.media-page .section-sub {
  max-width: 560px;
}

.media-tabs {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.media-tab {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}

.media-tab:hover {
  border-color: var(--subtitle);
  color: var(--subtitle);
}

.media-tab.active {
  background: var(--subtitle);
  border-color: var(--subtitle);
  color: var(--ink);
}

.media-empty {
  margin-top: 40px;
  color: var(--text-dim);
  font-size: 14px;
}

.media-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.media-item {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.media-item:hover {
  border-color: var(--subtitle);
  transform: translateY(-2px);
}

.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.85);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  max-width: min(90vw, 900px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-img,
.lightbox-video {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-img[hidden],
.lightbox-video[hidden] {
  display: none;
}

.lightbox-caption {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}

.lightbox-counter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--ink);
  background: var(--subtitle);
  padding: 4px 14px;
  border-radius: 999px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: #ffffff;
  cursor: pointer;
  padding: 8px;
}

.lightbox-close:hover {
  color: var(--subtitle);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  border-color: var(--subtitle);
  color: var(--subtitle);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .navbar {
    padding: 0 14px;
  }

  .nav-wordmark {
    font-size: 24px;
  }

  .navbar-right {
    gap: 10px;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-actions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--panel-border);
    padding: 4px 28px 20px;
  }

  .navbar-actions.is-open {
    display: flex;
  }

  .navbar-actions .nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 0;
    border-bottom: 1px solid var(--panel-border);
  }

  .buy-dropdown {
    display: none;
  }

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

  .hero-slide-banner {
    background-image: url("assets/robbie_vertical_2.png") !important;
  }

  .hero-slide-42 {
    background-image: url("assets/robbie_vertical_1.png") !important;
  }

  .what-is {
    padding: 0 16px;
  }

  .what-is-grid {
    grid-template-columns: 1fr;
  }

  .what-is-copy {
    margin-left: 0;
  }

  .what-is-image {
    position: static;
    float: right;
    transform: none;
    width: 46%;
    min-height: 0;
    margin: 0 0 8px 10px;
  }

  .what-is-image img {
    width: 100%;
    max-width: none;
  }

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

  .buy-section {
    padding: 0 16px;
    margin-top: 32px;
  }

  .buy-grid {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  /* Side art dropped on mobile -- the CTA card gets full width and focus
     instead of sharing the section with two photos. */
  .buy-art {
    display: none;
  }

  .buy-cta-card {
    padding: 26px 20px;
  }

  .gallery-section {
    padding: 0 20px;
  }

  .gallery-belt-item {
    width: 140px;
    height: 140px;
  }
}

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

  .lightbox {
    padding: 16px;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .dj-widget {
    bottom: max(16px, env(safe-area-inset-bottom, 0px) + 12px);
    right: 12px;
  }

  .dj-gif {
    width: 96px;
    height: 96px;
  }

  .dj-volume input[type="range"] {
    width: 46px;
  }
}
