:root {
  --acid: #b7ff00;
  --lime: #78ff00;
  --green: #29ff57;
  --cyan: #67fff4;
  --pink: #ff5df7;
  --gold: #ffd45c;
  --black: #03040b;
  --win: #c8c8c8;
  --blue: #000082;
  --shadow: 0 0 22px rgba(124, 255, 0, .24), 0 16px 48px rgba(0, 0, 0, .68);
  --shell: min(1460px, calc(100vw - 28px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: #f7ffef;
  background: #000;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  cursor: crosshair;
}

@media (min-width: 981px) {
  body {
    zoom: .8;
  }
}

section,
article[id] {
  scroll-margin-top: 125px;
}

body::selection { background: var(--acid); color: #000; }

.space-bg,
.crt-scan,
.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.space-bg {
  z-index: -5;
  background-image: url("assets/img/background%20planet.png");
  background-repeat: repeat;
  background-size: 310px 230px;
  image-rendering: pixelated;
  animation: drift-bg 115s linear infinite;
}

.crt-scan {
  z-index: 50;
  opacity: .26;
  mix-blend-mode: overlay;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035), rgba(255,255,255,.035) 1px, transparent 1px, transparent 4px);
}

.cursor-glow {
  width: 190px;
  height: 190px;
  left: var(--mouse-x, -100px);
  top: var(--mouse-y, -100px);
  z-index: 49;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(124,255,0,.18), transparent 66%);
}

.windowish {
  color: #000;
  background: var(--win);
  border: 2px solid #fff;
  border-right-color: #3a3a3a;
  border-bottom-color: #3a3a3a;
  outline: 2px solid #000;
  box-shadow: var(--shadow);
}

.titlebar {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 6px 2px 9px;
  color: #fff;
  background: linear-gradient(90deg, #00007e, #2417c5 48%, #00a0b0);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #000;
  user-select: none;
}

.titlebar button {
  width: 20px;
  height: 18px;
  padding: 0;
  appearance: none;
  border: 2px solid #fff;
  border-right-color: #555;
  border-bottom-color: #555;
  background: #d0d0d0;
  color: #d00;
  font-size: 15px;
  line-height: 12px;
  font-weight: 900;
}

.topbar {
  position: fixed;
  z-index: 40;
  top: 10px;
  left: 50%;
  width: min(720px, calc(100vw - 46px));
  transform: translateX(-50%);
}

.topbar .titlebar { min-height: 24px; }

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px 7px 4px;
  background: #0a0a0a;
}

.nav-links a,
.link-cloud a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  color: #001000;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  padding: 5px 10px;
  border: 2px solid #efffd8;
  border-right-color: #1e6b00;
  border-bottom-color: #1e6b00;
  background: linear-gradient(#e9ffe1, #8cff00 45%, #39d600);
  box-shadow: 0 0 10px rgba(124,255,0,.3);
  cursor: pointer;
}

.nav-links a:hover,
.link-cloud a:hover,
.button:hover {
  transform: translateY(-1px) rotate(-.6deg);
  filter: saturate(1.25) contrast(1.05);
}

.ticker {
  height: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 1px 0;
  border-top: 2px solid #4a4a4a;
  background: #000;
  color: var(--acid);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 0 6px rgba(183,255,0,.65);
}

.ticker span {
  display: inline-block;
  min-width: max-content;
  padding-left: 0;
  word-spacing: 10px;
  animation: ticker 16s linear infinite;
  will-change: transform;
}

.cosmic-canvas {
  position: relative;
  min-height: 0;
  padding-top: 118px;
  padding-bottom: 88px;
}

.site-shell {
  position: relative;
  z-index: 5;
  width: var(--shell);
  margin: 0 auto;
}

.decor-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  display: none;
}

.decor-object {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s, 64px);
  max-width: none;
  opacity: var(--o, .86);
  transform: rotate(var(--r, 0deg));
  filter: drop-shadow(0 0 12px rgba(255,255,255,.18));
  user-select: none;
}

.planet-object {
  width: var(--planet-size, 98px);
  max-height: var(--planet-size, 98px);
  object-fit: contain;
}

.relic-object {
  width: var(--s, 64px);
  max-height: var(--s, 64px);
  object-fit: contain;
}

.decor-front { z-index: 4; }
.generated { filter: drop-shadow(0 0 14px rgba(180,255,0,.22)); }
.drift { animation: floaty 7.5s ease-in-out infinite; animation-delay: var(--d, 0s); }
.drift.slow { animation-duration: 11s; }

.decor-layer .planet-object,
.orbit-rail-layer {
  display: none;
}

.planet-field {
  position: absolute;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  overflow: hidden;
}

.planet-field-object {
  position: absolute;
  max-width: none;
  height: auto;
  max-height: none;
  object-fit: contain;
  opacity: var(--o, .92);
  transform: rotate(var(--r, 0deg));
  filter:
    drop-shadow(0 0 10px rgba(255,255,255,.2))
    drop-shadow(0 8px 12px rgba(0,0,0,.62));
  user-select: none;
}

.planet-field-drift {
  animation: floaty 8.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.orbit-rail-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}

.orbit-rail-object {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s, 112px);
  max-height: var(--s, 112px);
  object-fit: contain;
  max-width: none;
  opacity: var(--o, .9);
  transform: rotate(var(--r, 0deg));
  filter: drop-shadow(0 0 14px rgba(183,255,0,.24)) drop-shadow(0 10px 14px rgba(0,0,0,.55));
  user-select: none;
}

.rail-drift {
  animation: floaty 8.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.rail-drift.slow { animation-duration: 12s; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, .82fr) minmax(430px, 1.18fr);
  grid-template-rows: auto auto;
  gap: 24px 34px;
  align-items: end;
  min-height: 620px;
  padding-top: 86px;
}

.hero-brand {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.brand-lyme {
  position: relative;
  z-index: 2;
  width: min(340px, 25vw);
  filter: drop-shadow(0 18px 20px rgba(0,0,0,.78));
  transform: rotate(-1deg);
  animation: liem-idle 5.8s ease-in-out infinite;
  transform-origin: 50% 86%;
}

.brand-stamp {
  position: absolute;
  left: 7%;
  bottom: 28px;
  z-index: 3;
  padding: 7px 10px;
  color: #001000;
  background: #d7ff00;
  border: 2px dashed #000;
  box-shadow: 6px 7px 0 rgba(0,0,0,.5);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.hero-panel {
  position: relative;
  z-index: 8;
  width: min(100%, 660px);
  justify-self: start;
  align-self: center;
  transform: rotate(.35deg);
}

.hero-content {
  padding: 14px;
}

.window-content {
  padding: 14px;
  color: #050505;
  background:
    linear-gradient(rgba(250,250,242,.93), rgba(216,216,206,.93)),
    repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(0,0,0,.04) 8px, rgba(0,0,0,.04) 10px);
}

.eyebrow,
.warning-badge {
  display: inline-block;
  margin: 0 0 9px;
  padding: 5px 8px;
  color: #072800;
  background: #d7ff00;
  border: 2px dashed #000;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 900;
}

h1 {
  margin: 0;
  color: var(--acid);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(52px, 6.4vw, 96px);
  line-height: .86;
  letter-spacing: 0;
  text-shadow: 4px 4px 0 #000, 0 0 16px var(--green), 0 0 34px var(--acid);
  -webkit-text-stroke: 1.5px #000;
}

.dollar { color: #fff; }

.subtitle {
  margin: 8px 0 6px;
  color: #000;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(24px, 3vw, 38px);
  font-style: italic;
  font-weight: 900;
}

.copy,
.compact-copy p,
.window-content p {
  font-size: 15px;
  line-height: 1.45;
}

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

.button.primary { background: linear-gradient(#fff8a8, #ffd400 45%, #ff8c00); }
.button.chaos {
  color: #fff;
  text-shadow: 1px 1px 0 #000;
  background: linear-gradient(#ffd6ff, #ff4df6 45%, #7f00ff);
}
.button.tiny {
  min-height: 27px;
  padding: 5px 9px;
  font-size: 12px;
}

.prophecy-strip {
  grid-column: 2;
  align-self: start;
  width: min(100%, 660px);
  transform: rotate(-.5deg);
}

.shrine-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.panel {
  position: relative;
  z-index: 6;
}

.panel-prophecy { grid-column: span 5; transform: rotate(-.35deg); }
.panel-token { grid-column: span 4; transform: rotate(.3deg); }
.panel-links { grid-column: span 3; transform: rotate(-.4deg); }
.panel-oracle { grid-column: span 4; transform: rotate(.45deg); }
.panel-roadmap { grid-column: span 8; transform: rotate(-.25deg); }

h2 {
  margin: 0 0 9px;
  color: #000;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3.1vw, 42px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 2px 2px 0 var(--acid);
}

blockquote {
  margin: 12px 0 0;
  padding: 11px;
  color: #001000;
  background: #bdff00;
  border: 2px dashed #000;
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: 900;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.token-grid div {
  min-height: 61px;
  padding: 8px;
  color: #fff;
  background: #000;
  border: 2px solid var(--acid);
  box-shadow: inset 0 0 14px rgba(124,255,0,.14);
}

.token-grid dt {
  color: var(--cyan);
  font-family: "Courier New", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.token-grid dd {
  margin: 5px 0 0;
  color: var(--acid);
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.micro-copy {
  margin: 12px 0 0;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
}

.orbit-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: orbit;
}

.orbit-list li {
  counter-increment: orbit;
  min-height: 72px;
  padding: 10px 10px 10px 42px;
  position: relative;
  color: #f8ffe9;
  background: #050505;
  border: 2px solid #fff;
  border-left: 7px solid var(--pink);
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 0 16px rgba(124,255,0,.12);
}

.orbit-list li::before {
  content: counter(orbit);
  position: absolute;
  left: 9px;
  top: 10px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #000;
  background: var(--acid);
  border-radius: 50%;
}

.gallery-section {
  position: relative;
  z-index: 6;
  width: min(1040px, 78vw);
  margin: 34px auto 0;
  transform: rotate(.18deg);
}

.gallery-section .window-content {
  padding: 12px;
}

.gallery-section h2 {
  font-size: clamp(26px, 2.5vw, 38px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}

.section-heading p {
  max-width: 56ch;
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
}

.gallery-grid figure {
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.gallery-frame {
  height: auto;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #030303;
  border: 0;
  padding: 0;
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  image-rendering: auto;
  filter: none;
}

.gallery-grid figcaption {
  margin-top: 5px;
  color: var(--acid);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #000;
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, .8fr);
  gap: 24px;
  margin: 34px 0 0;
}

.panel-disclaimer { transform: rotate(-.2deg); }

.panel-note {
  align-self: start;
  padding: 14px;
  color: #000;
  background: #fff26b;
  border: 2px solid #000;
  box-shadow: 8px 9px 0 rgba(0,0,0,.55);
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 15px;
  transform: rotate(.8deg);
}

.footer {
  position: relative;
  z-index: 6;
  min-height: 128px;
  padding: 34px 18px 20px;
  color: var(--acid);
  background: #000;
  border-top: 3px ridge var(--acid);
  text-align: center;
  font-family: "Courier New", monospace;
  font-size: 13px;
  overflow: hidden;
}

.footer > * {
  position: relative;
  z-index: 2;
}

.footer marquee {
  color: var(--pink);
  font-weight: 900;
}

.footer-planet-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.footer-planet {
  position: absolute;
  width: var(--s, 70px);
  left: var(--x);
  top: var(--y);
  max-width: none;
  object-fit: contain;
  opacity: var(--o, .82);
  transform: rotate(var(--r, 0deg));
  filter: drop-shadow(0 0 10px rgba(183,255,0,.34)) drop-shadow(0 8px 12px rgba(0,0,0,.75));
  animation: floaty 9s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.draggable { touch-action: none; }
.dragging {
  cursor: grabbing;
  z-index: 35 !important;
  filter: saturate(1.35) drop-shadow(0 0 24px var(--acid));
}

.spawned-lyme {
  position: fixed;
  width: 72px;
  z-index: 45;
  pointer-events: none;
  animation: spawned 3.4s ease-in forwards;
  filter: drop-shadow(0 0 14px var(--acid));
}

.placeholder-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 70;
  padding: 10px 14px;
  color: var(--acid);
  background: #000;
  border: 3px solid var(--acid);
  box-shadow: 0 0 26px rgba(124,255,0,.48);
  font-family: "Courier New", monospace;
  font-weight: 900;
}

@keyframes drift-bg { to { background-position: 1240px 690px; } }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes floaty {
  0%,100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 2deg)); }
}
@keyframes liem-idle {
  0%,100% { transform: translateY(0) rotate(-1deg) scale(1); }
  35% { transform: translateY(-9px) rotate(.8deg) scale(1.015); }
  70% { transform: translateY(4px) rotate(-1.8deg) scale(.997); }
}
@keyframes ufo-path {
  0%,100% { transform: translate(0, 0) rotate(var(--r, 0deg)); }
  45% { transform: translate(22px, -12px) rotate(calc(var(--r, 0deg) + 2deg)); }
  70% { transform: translate(-16px, 8px) rotate(calc(var(--r, 0deg) - 2deg)); }
}
@keyframes spawned {
  0% { transform: translateY(0) rotate(0) scale(.4); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(-120vh) rotate(720deg) scale(1.45); opacity: 0; }
}

@media (max-width: 980px) {
  :root { --shell: min(94vw, 820px); }
  .topbar { position: sticky; top: 0; left: auto; width: 100%; transform: none; border-left: 0; border-right: 0; }
  .cosmic-canvas { padding-top: 16px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 260px; }
  .hero-brand { min-height: 300px; }
  .brand-lyme { width: min(320px, 70vw); }
  .brand-stamp { left: 50%; transform: translateX(-50%) rotate(-2deg); white-space: nowrap; }
  .prophecy-strip { grid-column: 1; width: 100%; }
  .shrine-grid { grid-template-columns: 1fr 1fr; }
  .panel-prophecy,
  .panel-token,
  .panel-links,
  .panel-oracle,
  .panel-roadmap { grid-column: span 1; }
  .panel-roadmap { grid-column: 1 / -1; }
  .orbit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottom-grid { grid-template-columns: 1fr; }
  .decor-object { transform: scale(.78) rotate(var(--r, 0deg)); transform-origin: center; }
  .planet-field,
  .orbit-rail-layer { display: none; }
}

@media (max-width: 620px) {
  .nav-links a { font-size: 11px; padding: 6px 8px; }
  .ticker { font-size: 13px; }
  .window-content { padding: 12px; }
  h1 { font-size: 78px; }
  h2 { font-size: 28px; }
  .hero-grid { padding-top: 210px; }
  .shrine-grid { grid-template-columns: 1fr; }
  .panel-prophecy,
  .panel-token,
  .panel-links,
  .panel-oracle,
  .panel-roadmap { grid-column: 1; }
  .token-grid,
  .orbit-list,
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-frame { height: auto; }
  .section-heading { display: block; }
}
