:root {
  --bg: #000;
  --panel: #05080a;
  --panel-2: #0a0f13;
  --ink: #eef8ff;
  --muted: #88a1ad;
  --grid: #12191f;
  --cyan: #34e7ff;
  --green: #39ff8b;
  --pink: #ff4fd8;
  --amber: #ffd35a;
  --red: #ff4158;
  --violet: #8d78ff;
  --line: #1d2a32;
  --pixel-shadow: 4px 4px 0 #07151b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Courier New", "Lucida Console", monospace;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.3));
  z-index: -3;
}

.noise,
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise {
  background-image:
    radial-gradient(circle at 10% 20%, rgba(52,231,255,0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(57,255,139,0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 40% 70%, rgba(255,79,216,0.07) 0 1px, transparent 1px);
  background-size: 48px 48px, 64px 64px, 72px 72px;
  opacity: 0.8;
  z-index: -2;
}

.scanlines {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.035) 0,
    rgba(255,255,255,0.035) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: screen;
  opacity: 0.35;
  z-index: 10;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(16px, 4vw, 56px);
  background: rgba(0, 0, 0, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
  color: var(--green);
  text-shadow: 0 0 12px rgba(57,255,139,0.7);
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 8px rgba(57,255,139,0.6));
  animation: blinkMark 1.6s steps(2) infinite;
}

.site-header nav {
  gap: clamp(12px, 3vw, 32px);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-header nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  outline: none;
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: center;
  padding: clamp(40px, 7vw, 92px) clamp(16px, 5vw, 72px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(52,231,255,0.09) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(rgba(57,255,139,0.08) 1px, transparent 1px) 0 0 / 40px 40px;
  opacity: 0.92;
}

.hero-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.6), transparent 26%, transparent 72%, rgba(0,0,0,0.82)),
    linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.86));
}

.hero-bot {
  position: absolute;
  width: clamp(112px, 15vw, 208px);
  aspect-ratio: 1;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 18px rgba(52,231,255,0.35));
  opacity: 0.9;
}

.bot-a {
  left: 7%;
  top: 14%;
  animation: hoverBot 5s steps(5) infinite;
}

.bot-b {
  right: 11%;
  top: 12%;
  animation: hoverBot 6s steps(6) infinite reverse;
}

.bot-c {
  left: 17%;
  bottom: -2%;
  animation: hoverBot 5.5s steps(5) infinite;
}

.bot-d {
  right: 21%;
  bottom: 8%;
  animation: hoverBot 7s steps(7) infinite reverse;
}

.hero-logo-face {
  position: absolute;
  right: clamp(20px, 9vw, 150px);
  top: clamp(116px, 18vh, 210px);
  width: clamp(128px, 20vw, 256px);
  aspect-ratio: 1;
  image-rendering: pixelated;
  filter:
    drop-shadow(0 0 14px rgba(57,255,139,0.45))
    drop-shadow(0 0 28px rgba(57,255,139,0.18));
  opacity: 0.98;
  animation: logoPulse 3s steps(4) infinite;
}

.pixel-spark {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--green);
  box-shadow:
    16px 0 0 var(--cyan),
    0 16px 0 var(--pink),
    16px 16px 0 var(--amber);
  opacity: 0;
  animation: spark 2.4s steps(3) infinite;
}

.spark-a { left: 12%; top: 34%; animation-delay: 0.1s; }
.spark-b { right: 17%; top: 39%; animation-delay: 0.5s; }
.spark-c { left: 42%; bottom: 22%; animation-delay: 0.9s; }
.spark-d { right: 36%; top: 18%; animation-delay: 1.2s; }
.spark-e { left: 62%; bottom: 14%; animation-delay: 1.6s; }

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(57,255,139,0.7);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  margin: 0 0 22px;
  animation: titleGlitch 2.8s steps(2) infinite;
}

.pixel-title {
  --title-pixel: clamp(7px, 1.65vw, 18px);
  --title-gap: clamp(1px, 0.34vw, 4px);
  width: min(100%, 900px);
  min-height: calc((var(--title-pixel) * 7) + (var(--title-gap) * 6));
}

.pixel-title.is-rendered .title-fallback {
  display: none;
}

.pixel-title-grid {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--title-gap) * 2);
  width: max-content;
  max-width: 100%;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.16));
}

.pixel-letter {
  display: grid;
  grid-template-columns: repeat(5, var(--title-pixel));
  grid-template-rows: repeat(7, var(--title-pixel));
  gap: var(--title-gap);
}

.pixel-space {
  width: calc((var(--title-pixel) * 2) + (var(--title-gap) * 4));
  flex: 0 0 auto;
}

.pixel-cell {
  width: var(--title-pixel);
  height: var(--title-pixel);
  background: transparent;
}

.pixel-cell.on {
  background: #eef8ff;
  box-shadow:
    calc(var(--title-gap) * 1.8) 0 0 rgba(52,231,255,0.72),
    calc(var(--title-gap) * -1.8) 0 0 rgba(255,79,216,0.78),
    0 0 10px rgba(255,255,255,0.22);
}

.hero-text {
  max-width: 660px;
  margin-bottom: 28px;
  color: #c8d9e0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pixel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 138px;
  padding: 14px 18px;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 900;
  color: var(--ink);
  cursor: pointer;
  image-rendering: pixelated;
  box-shadow: var(--pixel-shadow);
  transition: transform 120ms steps(2), box-shadow 120ms steps(2), background 120ms steps(2);
}

.pixel-button.primary {
  background: var(--green);
  color: #00120a;
}

.pixel-button.secondary {
  background: var(--panel-2);
  border: 2px solid var(--cyan);
  color: var(--cyan);
}

.pixel-button:hover,
.pixel-button:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 #07151b;
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.hero-stats {
  position: absolute;
  right: clamp(16px, 5vw, 72px);
  bottom: clamp(20px, 5vw, 52px);
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 1px;
  max-width: 760px;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: 0 0 0 4px #020506, 0 0 28px rgba(52,231,255,0.1);
}

.hero-stats div {
  min-height: 82px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.84);
}

.hero-stats strong {
  display: block;
  color: var(--amber);
  font-size: clamp(1rem, 2vw, 1.75rem);
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.ticker {
  --eater-x: clamp(110px, 25vw, 360px);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #020304;
}

.ticker::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--eater-x);
  background:
    linear-gradient(90deg, #020304 0%, #020304 76%, rgba(2,3,4,0.84) 90%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

.ticker-track {
  display: flex;
  width: max-content;
  min-height: 52px;
  align-items: center;
  gap: 26px;
  color: var(--green);
  font-weight: 900;
  animation: tickerMove 26s linear infinite;
}

.ticker-track span {
  white-space: nowrap;
}

.code-track {
  padding-left: 100%;
  font-size: clamp(0.72rem, 1.45vw, 0.95rem);
  text-shadow: 0 0 12px rgba(57,255,139,0.52);
}

.code-track code {
  font: inherit;
  color: var(--green);
}

.pacman-chase {
  position: absolute;
  left: calc(var(--eater-x) - 32px);
  top: 50%;
  z-index: 5;
  width: 112px;
  height: 44px;
  transform: translateY(-50%);
  pointer-events: none;
}

.pacman-sprite {
  --pac-cell: 5px;
  position: absolute;
  left: 0;
  top: 4px;
  display: grid;
  grid-template-columns: repeat(7, var(--pac-cell));
  grid-template-rows: repeat(7, var(--pac-cell));
  gap: 1px;
  filter: drop-shadow(0 0 12px rgba(57,255,139,0.74));
}

.pacman-frame {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, var(--pac-cell));
  grid-template-rows: repeat(7, var(--pac-cell));
  gap: 1px;
}

.pacman-frame.shut {
  animation: pacFrameShut 0.42s steps(1) infinite;
}

.pacman-frame.open {
  animation: pacFrameOpen 0.42s steps(1) infinite;
}

.pac-cell {
  width: var(--pac-cell);
  height: var(--pac-cell);
}

.pac-cell.on {
  background: var(--green);
}

.section {
  scroll-margin-top: 72px;
  padding: clamp(56px, 8vw, 104px) clamp(16px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 #081a22;
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}

.trait-card {
  min-height: 230px;
  padding: 24px;
  background: var(--panel);
}

.trait-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  image-rendering: pixelated;
}

.bg-icon {
  background:
    linear-gradient(var(--green) 0 0) 0 0 / 12px 12px,
    linear-gradient(var(--cyan) 0 0) 28px 12px / 12px 12px,
    linear-gradient(var(--pink) 0 0) 12px 36px / 12px 12px;
  background-repeat: no-repeat;
}

.body-icon {
  background:
    linear-gradient(var(--cyan) 0 0) 16px 0 / 24px 8px,
    linear-gradient(#576371 0 0) 8px 8px / 40px 32px,
    linear-gradient(var(--green) 0 0) 24px 20px / 8px 16px,
    linear-gradient(#2a333b 0 0) 16px 40px / 8px 16px,
    linear-gradient(#2a333b 0 0) 32px 40px / 8px 16px;
  background-repeat: no-repeat;
}

.head-icon {
  background:
    linear-gradient(var(--amber) 0 0) 24px 0 / 8px 8px,
    linear-gradient(#59636d 0 0) 8px 8px / 40px 32px,
    linear-gradient(#05090a 0 0) 12px 20px / 32px 12px,
    linear-gradient(var(--pink) 0 0) 16px 20px / 8px 8px,
    linear-gradient(var(--pink) 0 0) 32px 20px / 8px 8px;
  background-repeat: no-repeat;
}

.face-icon {
  background:
    linear-gradient(#05090a 0 0) 4px 12px / 48px 28px,
    linear-gradient(var(--green) 0 0) 12px 20px / 8px 8px,
    linear-gradient(var(--green) 0 0) 36px 20px / 8px 8px,
    linear-gradient(var(--cyan) 0 0) 20px 32px / 16px 8px;
  background-repeat: no-repeat;
}

.trait-card h3 {
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.trait-card p,
.wl-copy {
  color: var(--muted);
  line-height: 1.55;
}

.gallery-section {
  background:
    linear-gradient(90deg, rgba(52,231,255,0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(rgba(255,79,216,0.035) 1px, transparent 1px) 0 0 / 32px 32px;
}

.traits-section {
  background:
    linear-gradient(90deg, rgba(57,255,139,0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(52,231,255,0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    #010203;
}

.bot-wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(8px, 1.35vw, 14px);
  margin-top: 34px;
  align-items: center;
}

.bot-tile {
  display: grid;
  place-items: center;
  min-height: clamp(82px, 8vw, 118px);
  animation: botFloatStable 4.8s steps(8, end) infinite;
  will-change: transform;
}

.bot-tile img {
  width: min(100%, 96px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 12px rgba(52,231,255,0.24));
}

.bot-tile:nth-child(2n) { animation-delay: 0.4s; }
.bot-tile:nth-child(3n) { animation-delay: 0.9s; }
.bot-tile:nth-child(5n) { animation-delay: 1.4s; }

.gold-section {
  background:
    linear-gradient(90deg, rgba(255,211,90,0.06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(rgba(52,231,255,0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    #010203;
}

.gold-layout {
  max-width: 820px;
}

.gold-description {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.6;
}

.collection-status {
  display: grid;
  gap: 16px;
}

.status-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: 0 0 0 4px #020506, 0 0 36px rgba(255,211,90,0.12);
}

.status-panel div {
  min-height: 88px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(255,211,90,0.05) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(rgba(57,255,139,0.04) 1px, transparent 1px) 0 0 / 12px 12px,
    rgba(0,0,0,0.88);
}

.status-panel strong,
.status-panel span {
  display: block;
}

.status-panel strong {
  color: var(--amber);
  font-size: clamp(1.28rem, 3vw, 2rem);
  line-height: 1;
  text-shadow: 0 0 12px rgba(255,211,90,0.28);
}

.status-panel span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.metadata-strip {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(52,231,255,0.35);
  background:
    linear-gradient(90deg, rgba(52,231,255,0.055) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(rgba(57,255,139,0.04) 1px, transparent 1px) 0 0 / 12px 12px,
    rgba(0,0,0,0.78);
  box-shadow: 0 0 26px rgba(52,231,255,0.08);
}

.traits-strip {
  max-width: 820px;
  margin-top: 24px;
}

.metadata-strip strong {
  color: var(--cyan);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.trait-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trait-chips span {
  min-height: 32px;
  padding: 8px 10px;
  border: 1px solid rgba(57,255,139,0.36);
  background: #020506;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 #07151b;
}

.gold-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(96px, 1fr));
  gap: clamp(12px, 2vw, 18px);
  margin-top: 34px;
}

.gold-card {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 178px;
  padding: 16px 12px;
  border: 1px solid rgba(255,211,90,0.42);
  background:
    linear-gradient(90deg, rgba(255,211,90,0.06) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(rgba(52,231,255,0.035) 1px, transparent 1px) 0 0 / 16px 16px,
    rgba(0,0,0,0.86);
  box-shadow:
    inset 0 0 22px rgba(255,211,90,0.08),
    0 0 22px rgba(255,211,90,0.1);
  animation: botFloatStable 5.2s steps(8, end) infinite;
}

.gold-card img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter:
    drop-shadow(0 0 10px rgba(255,211,90,0.34))
    drop-shadow(0 0 18px rgba(57,255,139,0.16));
}

.gold-card span {
  color: var(--amber);
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255,211,90,0.38);
}

.gold-card:nth-child(2n) { animation-delay: 0.35s; }
.gold-card:nth-child(3n) { animation-delay: 0.7s; }
.gold-card:nth-child(5n) { animation-delay: 1.1s; }

.game-section {
  background:
    radial-gradient(circle at 12% 20%, rgba(255,211,90,0.08) 0 1px, transparent 1px),
    linear-gradient(90deg, rgba(52,231,255,0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(57,255,139,0.04) 1px, transparent 1px) 0 0 / 24px 24px,
    #010203;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.runner-duel {
  position: relative;
  width: min(100%, 520px);
  height: 260px;
  margin-top: 28px;
  overflow: visible;
  pointer-events: none;
}

.runner-duel::before {
  content: none;
}

.runner-duel::after {
  content: none;
}

.runner-logo-card {
  position: absolute;
  left: clamp(24px, 5vw, 82px);
  top: 10px;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 220px;
  z-index: 1;
  transform-origin: center;
  animation: runnerLogoDrift 4.2s steps(8, end) infinite;
}

.runner-logo-mark {
  position: relative;
  display: block;
  width: clamp(148px, 24vw, 196px);
  height: clamp(148px, 24vw, 196px);
  background: url("assets/logo/ai-bots-logo-256.png") center / contain no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter:
    drop-shadow(0 0 16px rgba(57,255,139,0.5))
    drop-shadow(0 0 34px rgba(57,255,139,0.18));
  animation: runnerLogoPulse 2.2s steps(4, end) infinite;
}

.runner-logo-mark::before,
.runner-logo-mark::after,
.runner-logo-card::before,
.runner-logo-card::after {
  pointer-events: none;
}

.runner-logo-mark::before,
.runner-logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0.62;
  mix-blend-mode: screen;
}

.runner-logo-mark::before {
  transform: translate(-5px, 0);
  filter: brightness(1.6) sepia(1) hue-rotate(130deg) saturate(3);
  animation: runnerLogoGlitchCyan 1.6s steps(2, end) infinite;
}

.runner-logo-mark::after {
  transform: translate(5px, 0);
  filter: brightness(1.45) sepia(1) hue-rotate(255deg) saturate(3);
  animation: runnerLogoGlitchPink 1.9s steps(2, end) infinite;
}

.runner-logo-card::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 20px;
  width: clamp(148px, 24vw, 196px);
  height: clamp(148px, 24vw, 196px);
  background: radial-gradient(circle, rgba(57,255,139,0.3) 0 28%, rgba(52,231,255,0.1) 46%, transparent 70%);
  filter: blur(18px);
  opacity: 0.78;
  z-index: -1;
  animation: runnerLogoGlow 2.6s steps(4, end) infinite;
}

.runner-logo-card::after {
  content: none;
}

.runner-logo-label {
  color: var(--green);
  font-size: clamp(0.95rem, 2vw, 1.24rem);
  font-weight: 900;
  text-shadow:
    0 0 10px rgba(57,255,139,0.68),
    3px 0 0 rgba(52,231,255,0.2),
    -3px 0 0 rgba(255,79,216,0.18);
  animation: runnerLogoLabelFlicker 1.7s steps(2, end) infinite;
}

.game-console {
  width: min(100%, 720px);
  margin-left: auto;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(52,231,255,0.07) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(rgba(57,255,139,0.06) 1px, transparent 1px) 0 0 / 16px 16px,
    rgba(0,0,0,0.9);
  box-shadow:
    0 0 0 4px #020506,
    0 0 44px rgba(52,231,255,0.14);
}

.game-hud {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: var(--line);
}

.game-hud > span {
  min-height: 64px;
  padding: 12px;
  background: rgba(0,0,0,0.84);
}

.game-hud strong,
.game-hud small {
  display: block;
}

.game-hud strong {
  color: var(--amber);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  line-height: 1;
}

.pixel-hearts {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}

.pixel-heart {
  --heart-color: var(--red);
  position: relative;
  display: inline-block;
  width: 24px;
  height: 22px;
  filter: none;
}

.pixel-heart::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1px;
  width: 4px;
  height: 4px;
  background: transparent;
  box-shadow:
    4px 0 0 var(--heart-color),
    16px 0 0 var(--heart-color),
    0 4px 0 var(--heart-color),
    4px 4px 0 var(--heart-color),
    8px 4px 0 var(--heart-color),
    12px 4px 0 var(--heart-color),
    16px 4px 0 var(--heart-color),
    20px 4px 0 var(--heart-color),
    0 8px 0 var(--heart-color),
    4px 8px 0 var(--heart-color),
    8px 8px 0 var(--heart-color),
    12px 8px 0 var(--heart-color),
    16px 8px 0 var(--heart-color),
    20px 8px 0 var(--heart-color),
    4px 12px 0 var(--heart-color),
    8px 12px 0 var(--heart-color),
    12px 12px 0 var(--heart-color),
    16px 12px 0 var(--heart-color),
    8px 16px 0 var(--heart-color),
    12px 16px 0 var(--heart-color);
}

.pixel-heart::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 16px;
  height: 14px;
  background: rgba(255,65,88,0.1);
  box-shadow: 0 0 8px rgba(255,65,88,0.2);
  z-index: -1;
}

.pixel-heart.empty {
  --heart-color: #24313a;
  filter: none;
  opacity: 0.7;
}

.pixel-heart.empty::after {
  display: none;
}

.game-hud small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.game-screen {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: clamp(8px, 1.8vw, 14px);
  border: 2px solid var(--green);
  background: #000;
  box-shadow:
    inset 0 0 28px rgba(57,255,139,0.12),
    0 0 26px rgba(57,255,139,0.18);
}

#bot-game {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
}

.game-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.game-command {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #020506;
  color: var(--cyan);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 3px 3px 0 #07151b;
  text-align: center;
  transition: transform 120ms steps(2), box-shadow 120ms steps(2), background 120ms steps(2);
}

.game-command:hover,
.game-command:focus-visible {
  transform: translate(2px, 2px);
  background: var(--green);
  color: #00120a;
  box-shadow: 1px 1px 0 #07151b;
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.game-command.jump {
  background: var(--green);
  color: #00120a;
}

.game-status {
  min-height: 48px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.72);
  color: var(--green);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.score-share {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(52,231,255,0.34);
  background:
    linear-gradient(90deg, rgba(52,231,255,0.055) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(rgba(57,255,139,0.04) 1px, transparent 1px) 0 0 / 12px 12px,
    rgba(0,0,0,0.76);
  box-shadow: inset 0 0 22px rgba(52,231,255,0.08);
}

.score-share-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.score-share-head strong,
.score-share-head span {
  display: block;
}

.score-share-head strong {
  color: var(--green);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.score-share-head span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.score-shot-frame {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 0 20px rgba(57,255,139,0.1);
}

#score-shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.score-share-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wl-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.checker {
  padding: clamp(20px, 4vw, 34px);
  background:
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 4px #020506, 0 0 42px rgba(57,255,139,0.12);
}

.checker label {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
}

.checker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

.checker input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 2px solid #26333d;
  border-radius: 0;
  background: #000;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.checker input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(57,255,139,0.14);
}

.checker-status {
  min-height: 48px;
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(0,0,0,0.68);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.checker-status.pass {
  color: #00120a;
  background: var(--green);
  border-color: var(--green);
}

.checker-status.fail {
  color: #fff;
  background: #350711;
  border-color: var(--red);
}

.checker-status.warn {
  color: #140b00;
  background: var(--amber);
  border-color: var(--amber);
}

.x-section {
  background:
    linear-gradient(90deg, rgba(52,231,255,0.055) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(255,79,216,0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    #010203;
}

.x-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.6fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.x-copy {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.55;
}

.x-link {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  gap: 18px;
  min-height: 244px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(52,231,255,0.48);
  background:
    linear-gradient(90deg, rgba(57,255,139,0.08) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(rgba(52,231,255,0.07) 1px, transparent 1px) 0 0 / 16px 16px,
    #020506;
  box-shadow:
    8px 8px 0 #07151b,
    0 0 28px rgba(52,231,255,0.16);
  text-align: center;
}

.x-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(57,255,139,0.2) 42% 44%, transparent 44% 100%),
    repeating-linear-gradient(to bottom, transparent 0 10px, rgba(255,255,255,0.06) 10px 11px);
  opacity: 0.5;
  transform: translateX(-100%);
  animation: xSignalSweep 3.4s steps(12, end) infinite;
  z-index: -1;
}

.x-link:hover,
.x-link:focus-visible {
  color: var(--green);
  border-color: var(--green);
  outline: none;
  box-shadow:
    8px 8px 0 #07151b,
    0 0 34px rgba(57,255,139,0.24);
}

.pixel-x-icon {
  --x-cell: clamp(8px, 1.5vw, 14px);
  position: relative;
  display: block;
  width: calc(var(--x-cell) * 9);
  height: calc(var(--x-cell) * 9);
  color: var(--ink);
  image-rendering: pixelated;
  background:
    linear-gradient(currentColor 0 0) 0 0 / var(--x-cell) var(--x-cell),
    linear-gradient(currentColor 0 0) calc(var(--x-cell) * 8) 0 / var(--x-cell) var(--x-cell),
    linear-gradient(currentColor 0 0) var(--x-cell) var(--x-cell) / var(--x-cell) var(--x-cell),
    linear-gradient(currentColor 0 0) calc(var(--x-cell) * 7) var(--x-cell) / var(--x-cell) var(--x-cell),
    linear-gradient(currentColor 0 0) calc(var(--x-cell) * 2) calc(var(--x-cell) * 2) / var(--x-cell) var(--x-cell),
    linear-gradient(currentColor 0 0) calc(var(--x-cell) * 6) calc(var(--x-cell) * 2) / var(--x-cell) var(--x-cell),
    linear-gradient(currentColor 0 0) calc(var(--x-cell) * 3) calc(var(--x-cell) * 3) / var(--x-cell) var(--x-cell),
    linear-gradient(currentColor 0 0) calc(var(--x-cell) * 5) calc(var(--x-cell) * 3) / var(--x-cell) var(--x-cell),
    linear-gradient(currentColor 0 0) calc(var(--x-cell) * 4) calc(var(--x-cell) * 4) / var(--x-cell) var(--x-cell),
    linear-gradient(currentColor 0 0) calc(var(--x-cell) * 3) calc(var(--x-cell) * 5) / var(--x-cell) var(--x-cell),
    linear-gradient(currentColor 0 0) calc(var(--x-cell) * 5) calc(var(--x-cell) * 5) / var(--x-cell) var(--x-cell),
    linear-gradient(currentColor 0 0) calc(var(--x-cell) * 2) calc(var(--x-cell) * 6) / var(--x-cell) var(--x-cell),
    linear-gradient(currentColor 0 0) calc(var(--x-cell) * 6) calc(var(--x-cell) * 6) / var(--x-cell) var(--x-cell),
    linear-gradient(currentColor 0 0) var(--x-cell) calc(var(--x-cell) * 7) / var(--x-cell) var(--x-cell),
    linear-gradient(currentColor 0 0) calc(var(--x-cell) * 7) calc(var(--x-cell) * 7) / var(--x-cell) var(--x-cell),
    linear-gradient(currentColor 0 0) 0 calc(var(--x-cell) * 8) / var(--x-cell) var(--x-cell),
    linear-gradient(currentColor 0 0) calc(var(--x-cell) * 8) calc(var(--x-cell) * 8) / var(--x-cell) var(--x-cell);
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 14px rgba(238,248,255,0.3));
  animation: xGlitchMain 1.9s steps(2, end) infinite;
}

.pixel-x-icon::before,
.pixel-x-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-repeat: no-repeat;
  opacity: 0.78;
  mix-blend-mode: screen;
}

.pixel-x-icon::before {
  color: var(--cyan);
  transform: translate(-4px, 0);
  animation: xGlitchCyan 1.4s steps(2, end) infinite;
}

.pixel-x-icon::after {
  color: var(--pink);
  transform: translate(4px, 0);
  animation: xGlitchPink 1.7s steps(2, end) infinite;
}

.x-handle {
  color: var(--green);
  font-size: clamp(1.1rem, 2.6vw, 1.75rem);
  font-weight: 900;
  text-shadow: 0 0 14px rgba(57,255,139,0.54);
}

.creator-page {
  min-height: calc(100svh - 72px);
  padding: clamp(42px, 7vw, 86px) clamp(16px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(57,255,139,0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(rgba(57,255,139,0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    #000;
}

.creator-heading {
  max-width: 960px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.creator-title {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 8vw, 6rem);
  line-height: 0.95;
  color: var(--ink);
  text-transform: uppercase;
  text-shadow:
    4px 0 0 rgba(57,255,139,0.58),
    0 0 24px rgba(57,255,139,0.18);
  animation: titleGlitch 3.4s steps(2) infinite;
}

.creator-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(300px, 0.62fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

.pixel-lab,
.creator-controls {
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid var(--line);
}

.pixel-lab {
  padding: clamp(16px, 3vw, 24px);
}

.canvas-shell {
  display: grid;
  place-items: center;
  width: min(100%, 560px);
  margin-inline: auto;
  padding: clamp(10px, 2vw, 16px);
  border: 2px solid var(--green);
  background: #000;
  box-shadow:
    0 0 0 4px #020506,
    0 0 28px rgba(57,255,139,0.35),
    inset 0 0 28px rgba(57,255,139,0.08);
}

#bot-canvas {
  width: min(100%, 512px);
  aspect-ratio: 1;
  height: auto;
  display: block;
  background: #000;
  cursor: crosshair;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
}

.canvas-meta {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 900;
}

.creator-controls {
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 0 42px rgba(57,255,139,0.1);
}

.tool-group + .tool-group {
  margin-top: 28px;
}

.tool-group h2 {
  margin-bottom: 14px;
  font-size: 1.05rem;
  color: var(--cyan);
  text-transform: uppercase;
  text-shadow: none;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(28px, 1fr));
  gap: 10px;
}

.palette-swatch {
  aspect-ratio: 1;
  min-width: 28px;
  border: 2px solid #24313a;
  border-radius: 0;
  background: var(--swatch-color);
  cursor: pointer;
  box-shadow: inset 0 0 0 3px rgba(0,0,0,0.3);
}

.palette-swatch.active,
.palette-swatch:focus-visible {
  border-color: var(--green);
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.custom-color {
  display: grid;
  grid-template-columns: 1fr 56px;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.custom-color input {
  width: 56px;
  height: 42px;
  padding: 0;
  border: 2px solid var(--line);
  background: #000;
  cursor: pointer;
}

.segmented-tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.tool-button {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  background: #020506;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.tool-button.active,
.tool-button:hover,
.tool-button:focus-visible {
  background: var(--green);
  color: #00120a;
  outline: none;
}

.action-stack {
  display: grid;
  gap: 14px;
}

.action-stack .pixel-button {
  width: 100%;
}

.creator-readout {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #020506;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 900;
}

.download-link {
  width: fit-content;
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan);
}

.download-link:hover,
.download-link:focus-visible {
  color: var(--green);
  border-bottom-color: var(--green);
  outline: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(16px, 5vw, 72px);
  color: var(--muted);
  background: #010203;
}

.site-footer span:first-child {
  color: var(--green);
  font-weight: 900;
}

@keyframes hoverBot {
  0%, 100% { transform: translate(0, 0); }
  35% { transform: translate(8px, -12px); }
  70% { transform: translate(-8px, 8px); }
}

@keyframes spark {
  0%, 72%, 100% { opacity: 0; transform: translate(0, 0); }
  20%, 42% { opacity: 1; transform: translate(8px, -8px); }
}

@keyframes titleGlitch {
  0%, 86%, 100% { transform: translate(0, 0); }
  88% { transform: translate(4px, 0); }
  90% { transform: translate(-4px, 2px); }
  92% { transform: translate(0, -2px); }
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pacFrameOpen {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes pacFrameShut {
  0%, 49% { opacity: 0; }
  50%, 100% { opacity: 1; }
}

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

@keyframes logoPulse {
  0%, 100% {
    transform: translate(0, 0);
    filter:
      drop-shadow(0 0 14px rgba(57,255,139,0.45))
      drop-shadow(0 0 28px rgba(57,255,139,0.18));
  }
  45% {
    transform: translate(0, -8px);
    filter:
      drop-shadow(0 0 20px rgba(57,255,139,0.68))
      drop-shadow(0 0 34px rgba(57,255,139,0.26));
  }
}

@keyframes runnerLogoDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  22% { transform: translate(24px, -12px) rotate(0deg); }
  48% { transform: translate(42px, 18px) rotate(0deg); }
  72% { transform: translate(-8px, 28px) rotate(0deg); }
  88% { transform: translate(18px, -4px) rotate(0deg); }
}

@keyframes runnerLogoPulse {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    filter:
      drop-shadow(0 0 16px rgba(57,255,139,0.5))
      drop-shadow(0 0 34px rgba(57,255,139,0.18));
  }
  45% {
    transform: translate(0, -6px) scale(1.04);
    filter:
      drop-shadow(0 0 22px rgba(57,255,139,0.72))
      drop-shadow(0 0 42px rgba(52,231,255,0.2));
  }
}

@keyframes runnerLogoGlitchCyan {
  0%, 72%, 100% { transform: translate(-5px, 0); opacity: 0.42; }
  76% { transform: translate(-10px, -3px); opacity: 0.9; }
  82% { transform: translate(-2px, 3px); opacity: 0.52; }
}

@keyframes runnerLogoGlitchPink {
  0%, 70%, 100% { transform: translate(5px, 0); opacity: 0.38; }
  74% { transform: translate(10px, 3px); opacity: 0.86; }
  80% { transform: translate(1px, -3px); opacity: 0.5; }
}

@keyframes runnerLogoGlow {
  0%, 100% { opacity: 0.62; transform: scale(0.96); }
  46% { opacity: 0.98; transform: scale(1.12); }
  74% { opacity: 0.7; transform: scale(1.03); }
}

@keyframes runnerLogoLabelFlicker {
  0%, 82%, 100% { opacity: 1; transform: translate(0, 0); }
  84% { opacity: 0.62; transform: translate(3px, 0); }
  88% { opacity: 1; transform: translate(-3px, 0); }
}

@keyframes xSignalSweep {
  0%, 62% { transform: translateX(-105%); }
  82%, 100% { transform: translateX(105%); }
}

@keyframes xGlitchMain {
  0%, 78%, 100% { transform: translate(0, 0); }
  80% { transform: translate(3px, -2px); }
  84% { transform: translate(-3px, 2px); }
  88% { transform: translate(0, 0); }
}

@keyframes xGlitchCyan {
  0%, 74%, 100% { transform: translate(-4px, 0); opacity: 0.46; }
  78% { transform: translate(-8px, -2px); opacity: 0.95; }
  82% { transform: translate(0, 2px); opacity: 0.65; }
}

@keyframes xGlitchPink {
  0%, 70%, 100% { transform: translate(4px, 0); opacity: 0.44; }
  76% { transform: translate(9px, 2px); opacity: 0.94; }
  80% { transform: translate(0, -2px); opacity: 0.62; }
}

@keyframes blinkMark {
  0%, 80%, 100% { opacity: 1; }
  82%, 88% { opacity: 0.35; }
}

@media (max-width: 980px) {
  .hero {
    min-height: 78svh;
  }

  .hero-stats {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 34px;
  }

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

  .bot-wall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .wl-layout {
    grid-template-columns: 1fr;
  }

  .gold-layout {
    grid-template-columns: 1fr;
  }

  .gold-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }

  .game-layout {
    grid-template-columns: 1fr;
  }

  .runner-duel {
    width: min(100%, 520px);
  }

  .x-layout {
    grid-template-columns: 1fr;
  }

  .game-console {
    margin-left: 0;
  }

  .creator-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 74svh;
    padding-top: 42px;
  }

  .pixel-title {
    --title-pixel: clamp(6px, 2vw, 9px);
    --title-gap: 1px;
  }

  .hero-bot {
    width: 106px;
  }

  .bot-b,
  .bot-d {
    right: -10%;
  }

  .hero-logo-face {
    right: -28px;
    top: 92px;
    width: 112px;
    opacity: 0.75;
  }

  .bot-a,
  .bot-c {
    left: -8%;
  }

  .hero-stats,
  .checker-row {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .pixel-button {
    width: 100%;
  }

  .game-hud {
    grid-template-columns: 1fr;
  }

  .game-controls {
    grid-template-columns: 1fr;
  }

  .runner-duel {
    height: 206px;
  }

  .runner-logo-card {
    left: 22px;
    top: 12px;
    width: 160px;
  }

  .runner-logo-mark {
    width: 128px;
    height: 128px;
  }

  .score-share-actions {
    grid-template-columns: 1fr;
  }

  .score-share-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .gold-card {
    min-height: 146px;
  }

  .gold-card img {
    width: 84px;
    height: 84px;
  }

  .bot-wall {
    grid-template-columns: repeat(3, minmax(64px, 1fr));
  }

  .x-link {
    min-height: 210px;
  }

  .bot-tile {
    min-height: 82px;
  }

  .bot-tile img {
    width: 64px;
    height: 64px;
  }

  .site-footer {
    flex-direction: column;
  }

  .creator-page {
    padding-top: 32px;
  }

  .palette-grid {
    grid-template-columns: repeat(4, minmax(36px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
