:root {
  --bg: #0b0f14;
  --bg-alt: #0f151c;
  --card: #141b24;
  --card-2: #18212c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e9eef3;
  --muted: #94a3b3;
  --grass: #6cd44c;
  --grass-d: #3f9b2b;
  --grass-dd: #2a6b1c;
  --diamond: #5ce1e6;
  --gold: #ffd84a;
  --redstone: #ff5252;
  --amethyst: #a682e5;
  --pixel: 'Press Start 2P', monospace;
  --sans: 'Manrope', system-ui, sans-serif;
  --radius: 6px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.65 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--grass); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, 'JetBrains Mono', monospace; }
::selection { background: var(--grass); color: #0b0f14; }

h2 {
  font: 400 clamp(18px, 3.2vw, 30px)/1.45 var(--pixel);
  margin: 0 0 18px;
  letter-spacing: .5px;
}
h3 { margin: 0 0 16px; font-size: 20px; font-weight: 800; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 32px); }

.kicker {
  font: 400 11px/1 var(--pixel);
  color: var(--grass);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: '';
  width: 10px; height: 10px;
  background: var(--grass);
  box-shadow: 0 0 12px var(--grass);
  animation: blink 2.4s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .35; } }

.lead { color: var(--muted); max-width: 640px; margin: -4px 0 40px; font-size: 17px; }

/* Buttons */

.btn {
  --c: var(--grass-d);
  --c-top: var(--grass);
  --c-bot: var(--grass-dd);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(var(--c-top), var(--c));
  box-shadow: inset 0 -4px 0 var(--c-bot), inset 0 2px 0 rgba(255,255,255,.25), 0 6px 20px -8px var(--c);
  color: #fff;
  font: 800 15px/1 var(--sans);
  text-shadow: 0 2px 0 rgba(0,0,0,.35);
  cursor: pointer;
  transition: transform .15s var(--ease), filter .15s, box-shadow .15s;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 var(--c-bot), inset 0 2px 0 rgba(255,255,255,.2); }
.btn:disabled { cursor: not-allowed; filter: grayscale(1) brightness(.7); transform: none; }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-ghost {
  --c: #2a3441; --c-top: #364252; --c-bot: #1b222c;
}
.btn-diamond { --c: #1fa8b0; --c-top: #4fd8de; --c-bot: #12737a; }
.btn.loading .btn-label { opacity: 0; }
.btn.loading::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  background: #fff;
  animation: pixelspin .8s steps(4) infinite;
}
@keyframes pixelspin { to { transform: rotate(360deg); } }

/* Loader */

.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .5s, visibility .5s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-cube {
  width: 40px; height: 40px;
  background: var(--grass);
  box-shadow: inset 0 -12px 0 #866043, 0 0 30px var(--grass-d);
  animation: hop .6s var(--ease) infinite alternate;
}
@keyframes hop { to { transform: translateY(-20px) rotate(90deg); } }

/* Nav */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(16px, calc((100% - 1180px) / 2));
  transition: background .3s, backdrop-filter .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 15, 20, .78);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
  padding-block: 10px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font: 400 13px/1 var(--pixel);
  color: var(--text);
  text-decoration: none !important;
}
.nav-logo img { width: 30px; height: 30px; border-radius: 6px; transition: transform .4s var(--ease); }
.nav-logo:hover img { transform: rotate(-12deg) scale(1.15); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  color: var(--muted);
  padding: 8px 12px;
  font-weight: 700;
  font-size: 14px;
  position: relative;
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--grass);
  transform: scaleX(0);
  transition: transform .25s var(--ease);
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links .btn { margin-left: 10px; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 3px; background: var(--text); margin: 4px 0; transition: transform .3s, opacity .3s; }
.nav.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 110%, #3a2a5c 0%, transparent 60%),
    radial-gradient(80% 60% at 80% 20%, #1a2a52 0%, transparent 70%),
    linear-gradient(#060912, #0d1530 55%, #1c1840);
  padding: 110px 0 120px;
}
.sky { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 1.5s; }
.hero-shots {
  position: absolute; inset: -24px;
  transition: translate .8s var(--ease);
  will-change: transform;
}
.hero-shot {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  transition: opacity 2.2s ease;
}
.hero-shot.on { opacity: 1; }
.hero-shot.run { animation: kenburns 10s linear both; }
@keyframes kenburns {
  from { transform: scale(1.04); }
  to { transform: scale(1.16) translate(var(--kx), var(--ky)); }
}
.hero-shots::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 45% at 50% 46%, rgba(6, 9, 18, .55), transparent 75%),
    linear-gradient(180deg, rgba(6, 9, 18, .82), rgba(6, 9, 18, .2) 32%, rgba(6, 9, 18, .3) 62%, rgba(11, 15, 20, .96));
}
.hero.has-shots .sky { opacity: .5; }
.hero.has-shots .moon { opacity: 0; }
.moon { transition: opacity 1.5s; }
.moon {
  position: absolute; top: 14%; right: 12%;
  width: 64px; height: 64px;
  background:
    linear-gradient(#d9d7b8, #d9d7b8) 18% 22% / 25% 25% no-repeat,
    linear-gradient(#d9d7b8, #d9d7b8) 62% 56% / 19% 19% no-repeat,
    linear-gradient(#e4e2c6, #e4e2c6) 30% 72% / 13% 13% no-repeat,
    #f1f0d9;
  box-shadow: 0 0 60px 10px rgba(241, 240, 217, .25), 0 0 140px 40px rgba(160, 170, 255, .12);
  image-rendering: pixelated;
  animation: moon 12s ease-in-out infinite alternate;
}
@keyframes moon { to { transform: translateY(14px); } }
.scene { position: absolute; inset: 0; perspective: 900px; pointer-events: none; }
.float {
  position: absolute;
  width: var(--s); height: var(--s);
  animation: bob var(--bob) ease-in-out infinite alternate;
  pointer-events: auto;
  cursor: pointer;
  transition: translate .6s var(--ease);
}
@keyframes bob { from { transform: translateY(-12px); } to { transform: translateY(12px); } }
.cube {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: spin var(--dur) linear infinite;
  transition: scale .35s var(--ease), opacity .35s;
}
.float:hover .cube { scale: 1.12; }
.float.broken .cube { scale: 0; opacity: 0; }
@keyframes spin {
  from { transform: rotateX(var(--rx)) rotateY(0deg); }
  to { transform: rotateX(var(--rx)) rotateY(360deg); }
}
.cube .f {
  position: absolute; inset: 0;
  background-size: 100% 100%;
  image-rendering: pixelated;
  backface-visibility: hidden;
}
.cube .f::after { content: ''; position: absolute; inset: 0; background: #000; opacity: var(--shade, 0); }
.f-front { transform: translateZ(calc(var(--s) / 2)); --shade: .15; }
.f-back { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); --shade: .15; }
.f-right { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); --shade: .3; }
.f-left { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); --shade: .3; }
.f-top { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.f-bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); --shade: .5; }
.shard {
  position: fixed;
  width: 10px; height: 10px;
  image-rendering: pixelated;
  pointer-events: none;
  z-index: 60;
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 16px;
  max-width: 900px;
}
.title-wrap { position: relative; display: inline-block; }
.title {
  margin: 0;
  font: 400 clamp(20px, 5.4vw, 60px)/1.2 var(--pixel);
  color: #f3f3f3;
  letter-spacing: 2px;
  text-shadow:
    0 2px 0 #b8b8b8, 0 4px 0 #9a9a9a, 0 6px 0 #7c7c7c, 0 8px 0 #5e5e5e,
    0 14px 24px rgba(0, 0, 0, .55);
  background: linear-gradient(100deg, #fff 0 40%, #b6ff9a 50%, #fff 60% 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 6s linear infinite, rise 1s var(--ease) both;
}
.title span { display: block; }
.title-big { font-size: 1.45em; letter-spacing: 6px; }
@supports (-webkit-background-clip: text) {
  .title { -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 4px 0 #6c6c6c) drop-shadow(0 4px 0 #4a4a4a) drop-shadow(0 12px 18px rgba(0,0,0,.5)); }
}
@keyframes shimmer { to { background-position: -300% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.splash {
  position: absolute;
  right: -10%; bottom: 4px;
  font: 400 clamp(9px, 1.5vw, 15px)/1 var(--pixel);
  color: var(--gold);
  text-shadow: 2px 2px 0 #3f3600;
  transform: rotate(-18deg);
  white-space: nowrap;
  animation: splash .55s ease-in-out infinite alternate;
  cursor: pointer;
  user-select: none;
}
@keyframes splash { from { scale: 1; } to { scale: 1.1; } }
.tagline {
  color: #c7d0dc;
  font-size: clamp(16px, 2vw, 19px);
  max-width: 620px;
  margin: 56px auto 30px;
  animation: rise 1s .15s var(--ease) both;
}

.status {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px;
  margin: 18px 0 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  animation: rise 1s .35s var(--ease) both;
}
.dot { width: 10px; height: 10px; background: #687482; position: relative; }
.status.online .dot { background: var(--grass); }
.status.online .dot::after {
  content: ''; position: absolute; inset: 0;
  background: var(--grass);
  animation: ping 1.6s ease-out infinite;
}
.status.offline .dot { background: var(--redstone); }
@keyframes ping { to { transform: scale(3); opacity: 0; } }
.status-text b { color: var(--text); }
.status-heads { display: flex; }
.status-heads img {
  width: 22px; height: 22px;
  margin-left: -4px;
  border: 2px solid #0d1530;
  image-rendering: pixelated;
  animation: pop .4s var(--ease) both;
}
@keyframes pop { from { transform: scale(0); } }
.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: rise 1s .45s var(--ease) both;
}

.scroll-hint {
  position: absolute; bottom: 70px; left: 50%; z-index: 2;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: #fff;
  animation: scrollhint 1.8s var(--ease) infinite;
}
@keyframes scrollhint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

.ground {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: 48px;
  background-size: 48px 48px;
  image-rendering: pixelated;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .4);
}
.ground-flip { position: relative; height: 32px; background-size: 32px 32px; box-shadow: none; }

/* Sections */

.section { padding: clamp(70px, 10vw, 120px) 0; position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-alt::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent);
  opacity: .5;
  pointer-events: none;
}
.section > .container { position: relative; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }

.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

/* About */

.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.about-text p { color: #c3ccd7; font-size: 17px; margin: 0 0 16px; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.social {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--text);
  font-weight: 700;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
  text-decoration: none !important;
}
.social:hover { transform: translateY(-2px); border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.social svg { width: 20px; height: 20px; fill: var(--c); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-grid.has-deck { grid-template-columns: 1fr 1.05fr; grid-template-areas: 'text deck' 'stats stats'; row-gap: 56px; }
.about-grid.has-deck > :first-child { grid-area: text; }
.about-grid.has-deck .stats { grid-area: stats; grid-template-columns: repeat(4, 1fr); }

/* Screenshot deck */

.deck {
  grid-area: deck;
  position: relative;
  width: 100%; max-width: 560px;
  justify-self: center;
  aspect-ratio: 16 / 11;
  cursor: zoom-in;
  outline: none;
}
.deck-card {
  position: absolute; left: 3%; right: 3%; bottom: 2%;
  aspect-ratio: 16 / 9;
  padding: 7px;
  background: #c6c6c6;
  box-shadow: inset -4px -4px 0 #555, inset 4px 4px 0 #fff, 0 26px 50px -18px rgba(0, 0, 0, .85);
  transition: transform .8s var(--ease), opacity .6s, filter .6s;
}
.deck-card img { display: block; width: 100%; height: 100%; object-fit: cover; background: #1b1b1b; }
.deck:hover .deck-card:first-child, .deck:focus-visible .deck-card { box-shadow: inset -4px -4px 0 #555, inset 4px 4px 0 #fff, 0 26px 50px -18px rgba(0, 0, 0, .85), 0 0 0 3px var(--grass); }

/* Cinematic band */

.band { position: relative; height: clamp(320px, 78vh, 760px); }
.band-frame {
  --e: 1; --p: .5;
  position: absolute; inset: 0;
  overflow: hidden;
  background: #05070a;
  clip-path: inset(calc((1 - var(--e)) * 10%) calc((1 - var(--e)) * 16%) round calc((1 - var(--e)) * 28px));
}
.band-img {
  position: absolute; inset: -12% 0;
  background: center / cover no-repeat;
  opacity: 0;
  transform: translate3d(0, calc((.5 - var(--p)) * 16%), 0) scale(calc(1.2 - var(--e) * .2));
  transition: opacity 1.2s;
}
.band.loaded .band-img { opacity: 1; }
.band-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 20, .45), transparent 28%, transparent 58%, rgba(11, 15, 20, .8));
  pointer-events: none;
}
.band-tag {
  position: absolute; left: max(6%, calc((100% - 1180px) / 2)); bottom: 11%; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 11px/1 var(--pixel);
  color: #fff;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .6);
  opacity: var(--e);
  translate: 0 calc((1 - var(--e)) * 30px);
}
.band-tag::before { content: ''; width: 10px; height: 10px; background: var(--grass); box-shadow: 0 0 12px var(--grass); }
.band-splash {
  position: absolute; right: max(6%, calc((100% - 1180px) / 2)); bottom: 11%; z-index: 2;
  font: 400 clamp(10px, 1.6vw, 17px)/1 var(--pixel);
  color: var(--gold);
  text-shadow: 2px 2px 0 #3f3600;
  transform: rotate(-10deg);
  animation: splash .55s ease-in-out infinite alternate;
  cursor: pointer;
  user-select: none;
  opacity: var(--e);
}

/* Section backgrounds */

.shot-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shot-bg-img {
  position: absolute; inset: -14% 0;
  background: center / cover no-repeat;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  will-change: transform;
}
.shot-bg.loaded .shot-bg-img { opacity: var(--o); }
.shot-full { --o: .17; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.shot-full::after { content: ''; position: absolute; inset: 0; background: radial-gradient(75% 70% at 50% 50%, transparent 20%, rgba(11, 15, 20, .85)); }
.shot-side, .shot-top {
  --o: .75;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.shot-side {
  left: 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%), linear-gradient(transparent, #000 18%, #000 55%, transparent 95%);
  mask-image: linear-gradient(90deg, transparent, #000 55%), linear-gradient(transparent, #000 18%, #000 55%, transparent 95%);
}
.shot-top {
  bottom: 35%;
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 70%), linear-gradient(transparent, #000 25%, transparent);
  mask-image: linear-gradient(90deg, transparent 10%, #000 70%), linear-gradient(transparent, #000 25%, transparent);
}

/* Gallery */

.gallery { overflow: hidden; }
.marquee {
  display: grid; gap: 16px;
  margin: 44px -3% 0;
  transform: rotate(-2deg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee.reveal { transform: rotate(-2deg) translateY(28px); }
.marquee.reveal.in { transform: rotate(-2deg); }
.marquee-row { overflow: hidden; padding: 8px 0; }
.marquee-track {
  display: flex; gap: 16px;
  width: max-content;
  animation: marquee var(--dur) linear infinite;
}
.marquee-row.rev .marquee-track { animation-direction: reverse; }
.marquee-row:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.shot {
  position: relative;
  flex: none;
  width: clamp(220px, 27vw, 380px);
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #11161d;
  cursor: zoom-in;
  box-shadow: 0 0 0 1px var(--line-2), 0 18px 34px -18px #000;
  transition: transform .4s var(--ease), box-shadow .3s;
}
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.9); transition: transform .7s var(--ease), filter .4s; }
.shot:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 0 0 2px var(--grass), 0 24px 40px -18px #000; z-index: 1; }
.shot:hover img { transform: scale(1.08); filter: none; }
.shot:focus-visible { outline: 3px solid var(--grass); outline-offset: 2px; }

/* Lightbox */

.lightbox {
  position: fixed; inset: 0; z-index: 85;
  display: grid; place-items: center;
  padding: 64px 84px 118px;
  background: rgba(3, 5, 8, .93);
  backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage {
  position: relative;
  width: min(100%, calc((100vh - 182px) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px rgba(0, 0, 0, .8);
  touch-action: pan-y;
  user-select: none;
}
.lb-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.lb-thumb { filter: blur(3px); }
.lb-img { opacity: 0; transition: opacity .25s; }
.lb-img.ready { opacity: 1; }
.lb-btn {
  position: absolute; top: calc(50% - 27px); translate: 0 -50%;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 0; border-radius: 4px;
  color: #fff;
  background: linear-gradient(#364252, #2a3441);
  box-shadow: inset 0 -4px 0 #1b222c, inset 0 2px 0 rgba(255, 255, 255, .2);
  cursor: pointer;
  transition: transform .15s var(--ease), filter .15s;
}
.lb-btn:hover { filter: brightness(1.2); transform: translateY(-2px); }
.lb-btn:active { transform: translateY(1px); }
.lb-btn svg { width: 18px; height: 18px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-close {
  position: absolute; right: 16px; top: 12px;
  width: 44px; height: 44px;
  background: none; border: 0;
  color: var(--muted);
  font-size: 34px; line-height: 1;
  cursor: pointer;
  transition: color .2s, transform .3s var(--ease);
}
.lb-close:hover { color: var(--text); transform: rotate(90deg); }
.lb-count { position: absolute; left: 22px; top: 26px; font: 400 11px/1 var(--pixel); color: var(--muted); }
.lb-strip {
  position: absolute; left: 0; right: 0; bottom: 18px;
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 4px calc(50% - 50px);
  scrollbar-width: none;
}
.lb-strip::-webkit-scrollbar { display: none; }
.lb-strip button {
  flex: none;
  width: 100px; aspect-ratio: 16 / 9;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  background: #000;
  opacity: .4;
  cursor: pointer;
  transition: opacity .2s, border-color .2s, transform .2s var(--ease);
}
.lb-strip button:hover { opacity: .8; }
.lb-strip button.on { opacity: 1; border-color: var(--grass); transform: translateY(-3px); }
.lb-strip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stat {
  position: relative;
  padding: 26px 22px;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s;
}
.stat:hover { transform: translateY(-4px); border-color: var(--line-2); }
.stat::before {
  content: '';
  position: absolute; right: -16px; top: -16px;
  width: 80px; height: 80px;
  background: var(--tex) 0 0 / 100% 100%;
  image-rendering: pixelated;
  opacity: .18;
  transform: rotate(12deg);
  transition: transform .5s var(--ease), opacity .3s;
}
.stat:hover::before { transform: rotate(-6deg) scale(1.15); opacity: .35; }
.stat-value { font: 400 clamp(22px, 3vw, 32px)/1 var(--pixel); color: var(--c, var(--grass)); margin-bottom: 12px; }
.stat-label { color: var(--muted); font-weight: 700; font-size: 14px; }

/* Features */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.feature {
  position: relative;
  padding: 28px 24px;
  transform-style: preserve-3d;
  transition: transform .2s ease-out, border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.feature::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(108, 212, 76, .12), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.feature:hover { border-color: rgba(108, 212, 76, .35); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); }
.feature:hover::after { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 18px;
}
.feature-icon img { width: 32px; height: 32px; image-rendering: pixelated; transition: transform .4s var(--ease); }
.feature:hover .feature-icon img { transform: scale(1.25) rotate(-8deg); }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Mini cubes */

.mini-cube { --s: 64px; width: var(--s); height: var(--s); perspective: 500px; margin-bottom: 22px; }
.mini-cube .cube { --rx: -24deg; --dur: 14s; }
.flow-step:hover .mini-cube .cube, .modal-cube:hover .cube { animation-duration: 3s; }

/* Democracy */

.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 40px; }
.flow-step {
  position: relative;
  padding: 30px 26px;
}
.flow-step:hover { transition: transform .15s ease-out, border-color .3s, box-shadow .3s; border-color: var(--line-2); box-shadow: 0 24px 50px -28px #000; }
.flow-step:not(:last-child)::after {
  content: '';
  position: absolute; right: -24px; top: 50%; z-index: 1;
  width: 12px; height: 12px;
  border-top: 4px solid var(--grass); border-right: 4px solid var(--grass);
  transform: translateY(-50%) rotate(45deg);
  animation: nudge 1.4s ease-in-out infinite;
}
@keyframes nudge { 50% { translate: 5px 0; } }
.flow-n {
  position: absolute; right: 24px; top: 26px;
  font: 400 26px/1 var(--pixel);
  color: rgba(255, 255, 255, .07);
}
.flow-step h3 { font: 400 16px/1.4 var(--pixel); margin-bottom: 12px; }
.flow-step p { margin: 0; color: #c3ccd7; }
.flow-step:nth-child(1) h3 { color: #ff6b5e; }
.flow-step:nth-child(2) h3 { color: #d9b77a; }
.flow-step:nth-child(3) h3 { color: var(--gold); }
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fact {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--card);
  font-weight: 800;
}
.fact::before { content: ''; width: 8px; height: 8px; background: var(--grass); box-shadow: 0 0 10px var(--grass); }

/* Seasons */

.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.season-none {
  display: block;
  padding: 11px;
  border: 1px dashed var(--line-2);
  border-radius: 4px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.season.no-world .season-banner { filter: saturate(.55) brightness(.8); }
.season.no-world:hover .season-banner { filter: none; }
.season.has-world { border-color: rgba(92, 225, 230, .35); box-shadow: 0 0 50px -25px rgba(92, 225, 230, .5); }
.season {
  padding: 0;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.season:hover { transition: transform .15s ease-out, border-color .3s, box-shadow .3s; border-color: rgba(92, 225, 230, .35); box-shadow: 0 30px 60px -30px #000, 0 0 50px -25px rgba(92, 225, 230, .5); }
.season-banner {
  position: relative;
  height: 170px;
  background: var(--tex) 0 0 / 48px 48px;
  image-rendering: pixelated;
  overflow: hidden;
  transition: background-position 6s linear, filter .4s;
}
.season:hover .season-banner { background-position: 96px -48px; }
.season-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .7));
}
.season-banner::after {
  content: '';
  position: absolute; inset: -50%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .18) 50%, transparent 60%);
  transform: translateX(-60%);
  transition: transform 1s var(--ease);
}
.season:hover .season-banner::after { transform: translateX(60%); }
.season-num {
  position: absolute; left: 22px; bottom: 18px;
  font: 400 56px/1 var(--pixel);
  color: #fff;
  text-shadow: 5px 5px 0 rgba(0, 0, 0, .55);
}
.season-num small { display: block; font-size: 10px; margin-bottom: 12px; color: rgba(255, 255, 255, .85); text-shadow: 2px 2px 0 rgba(0, 0, 0, .6); }
.season-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.season-body h3 { font-size: 19px; margin-bottom: 6px; }
.season-period { color: var(--muted); font-size: 14px; font-weight: 600; }
.season-desc { color: #c3ccd7; margin: 12px 0 0; }
.season-foot { margin-top: auto; padding-top: 22px; display: grid; gap: 8px; text-align: center; }
.season-meta { color: var(--muted); font-size: 13px; font-weight: 600; }
.badge {
  align-self: flex-start;
  margin-top: 10px;
  padding: 4px 8px;
  border-radius: 3px;
  font: 400 9px/1.3 var(--pixel);
  background: rgba(255, 255, 255, .07);
  color: var(--muted);
}

/* Mods */

.mods { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.mod-col {
  position: relative;
  padding: 30px 28px 28px;
  display: flex; flex-direction: column; align-items: flex-start;
  overflow: hidden;
}
.mod-col::before {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(92, 225, 230, .12), transparent 70%);
  pointer-events: none;
}
.mod-col:first-child::before { background: radial-gradient(circle, rgba(255, 82, 82, .1), transparent 70%); }
.mod-col h3 { margin: 14px 0 6px; font-size: 20px; }
.mod-col p { margin: 0 0 24px; color: var(--muted); }
.mod-col:hover .mini-cube .cube { animation-duration: 3s; }
.mod-badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 3px;
  font: 400 9px/1.3 var(--pixel);
  background: rgba(92, 225, 230, .12);
  color: var(--diamond);
}
.mod-badge-req { background: rgba(255, 82, 82, .14); color: var(--redstone); }
.mod-foot { margin-top: auto; width: 100%; display: grid; gap: 8px; text-align: center; }

/* Code modal */

.modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(3, 5, 8, .75);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-card {
  position: relative;
  width: min(440px, 100%);
  padding: 34px 28px 28px;
  text-align: center;
  transform: translateY(24px) scale(.96);
  transition: transform .4s var(--ease);
}
.modal.open .modal-card { transform: none; }
.modal-close {
  position: absolute; right: 12px; top: 10px;
  width: 36px; height: 36px;
  background: none; border: 0;
  color: var(--muted);
  font-size: 26px; line-height: 1;
  cursor: pointer;
  transition: color .2s, transform .3s var(--ease);
}
.modal-close:hover { color: var(--text); transform: rotate(90deg); }
.modal-cube { display: grid; place-items: center; margin-bottom: 6px; }
.modal-cube .mini-cube { --s: 72px; }
.modal-card h3 { font: 400 16px/1.4 var(--pixel); margin-bottom: 8px; }
.modal-sub { color: var(--muted); margin: 0 0 22px; font-weight: 600; }
.code-inputs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px; }
.code-inputs input {
  height: 58px;
  padding: 0;
  text-align: center;
  font: 400 22px/1 var(--pixel);
  caret-color: var(--diamond);
}
.code-inputs input:focus { border-color: var(--diamond); box-shadow: 0 0 0 4px rgba(92, 225, 230, .15); }
.code-inputs input.bad { border-color: var(--redstone); animation: shake .35s; }
.code-inputs input.ok { border-color: var(--grass); background: rgba(108, 212, 76, .12); animation: pop .3s var(--ease); }
.code-msg { min-height: 22px; margin-bottom: 12px; color: var(--redstone); font-weight: 700; font-size: 14px; }
.code-msg.good { color: var(--grass); }

/* Form */

.apply-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.form { padding: 30px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row .field-sm { max-width: none; }
.row:has(.field-sm) { grid-template-columns: 1fr 130px; }
.field { display: block; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; position: relative; }
.field > span { display: block; font-size: 13px; font-weight: 700; color: #b9c4d0; margin-bottom: 7px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: #0b1016;
  color: var(--text);
  border: 2px solid #232d39;
  border-radius: 4px;
  font: 600 15px/1.4 var(--sans);
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { border-color: var(--grass); box-shadow: 0 0 0 4px rgba(108, 212, 76, .15); background: #0d141b; }
.field.invalid input, .field.invalid textarea { border-color: var(--redstone); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.err { display: block; color: var(--redstone); font-size: 12px; font-weight: 700; min-height: 0; margin-top: 4px; }
.err:empty { display: none; }
.counter { position: absolute; right: 0; top: 0; font-size: 12px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 0; }
.chips span {
  display: inline-block;
  padding: 8px 12px;
  border: 2px solid #232d39;
  border-radius: 4px;
  font-size: 14px; font-weight: 700;
  color: #b9c4d0;
  transition: all .2s var(--ease);
  user-select: none;
}
.chips label:hover span { border-color: #3a4757; }
.chips input:checked + span { border-color: var(--grass); background: rgba(108, 212, 76, .12); color: #fff; transform: translateY(-2px); }
.chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(108, 212, 76, .35); }
.check { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; margin: 4px 0 6px; }
.check input { position: absolute; opacity: 0; width: 0; }
.check .box {
  flex: none;
  width: 24px; height: 24px;
  border: 2px solid #3a4757;
  border-radius: 3px;
  background: #0b1016;
  display: grid; place-items: center;
  transition: all .2s var(--ease);
}
.check .box::after { content: ''; width: 10px; height: 10px; background: var(--grass); transform: scale(0); transition: transform .25s var(--ease); }
.check input:checked + .box { border-color: var(--grass); }
.check input:checked + .box::after { transform: scale(1); }
.check input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(108, 212, 76, .35); }
.form-error { color: var(--redstone); font-weight: 700; margin: 12px 0; min-height: 0; }
.form-error:empty { display: none; }
.form .btn-block { margin-top: 14px; }

.side { display: grid; gap: 20px; }
.preview { text-align: center; overflow: hidden; }
.preview-stage { position: relative; display: grid; place-items: center; margin: -24px -24px 0; height: 264px; overflow: hidden; }
.preview-bg {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  filter: brightness(.6) saturate(1.1);
}
.preview-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--card-2)); }
.preview-glow {
  position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 212, 76, .35), transparent 65%);
  animation: breathe 3s ease-in-out infinite alternate;
}
@keyframes breathe { to { transform: scale(1.2); opacity: .6; } }
.preview-stage img {
  position: relative;
  height: 220px;
  image-rendering: pixelated;
  filter: drop-shadow(0 16px 12px rgba(0, 0, 0, .6));
  animation: idle 2.6s ease-in-out infinite alternate;
  transition: opacity .3s;
}
.preview-stage img.loading { opacity: .3; }
@keyframes idle { to { transform: translateY(-8px); } }
.preview-name { font: 400 14px/1.4 var(--pixel); margin-top: 8px; word-break: break-all; }
.preview-hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.check-form h3 { font-size: 17px; }
.check-row { display: flex; gap: 10px; }
.check-row input { min-width: 0; }
.check-result { margin-top: 14px; font-weight: 700; font-size: 14px; }
.check-result:empty { display: none; }
.check-result .st { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 4px; background: rgba(255, 255, 255, .04); animation: rise .4s var(--ease); }
.check-result img { width: 36px; height: 36px; image-rendering: pixelated; }
.st-pending { color: var(--gold); }
.st-approved { color: var(--grass); }
.st-rejected { color: var(--redstone); }
.check-result .note { color: var(--muted); font-weight: 600; font-size: 13px; margin-top: 4px; }

.success { text-align: center; padding: 50px 24px; animation: rise .6s var(--ease); }
.success-head { width: 96px; height: 96px; image-rendering: pixelated; margin-bottom: 16px; animation: hop .5s var(--ease) 4 alternate; }
.success p { color: var(--muted); max-width: 460px; margin: 0 auto 24px; }
.hidden { display: none !important; }

/* FAQ */

.faq { margin-top: 36px; display: grid; gap: 12px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s;
}
.faq details[open] { border-color: rgba(108, 212, 76, .35); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  font-weight: 800;
  font-size: 16px;
  position: relative;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 22px; top: 50%;
  font: 400 16px/1 var(--pixel);
  color: var(--grass);
  transform: translateY(-50%);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-body { padding: 0 22px; color: var(--muted); display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease), padding .35s var(--ease); }
.faq-body > div { overflow: hidden; }
.faq details.show .faq-body { grid-template-rows: 1fr; padding-bottom: 20px; }

/* Footer */

.footer { background: #07090d; position: relative; overflow: hidden; }
.footer > .container, .footer > .ground { position: relative; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 36px 0 44px; }
.footer-logo { display: flex; align-items: center; gap: 12px; font: 400 14px/1 var(--pixel); margin-bottom: 12px; }
.footer-logo img { width: 32px; height: 32px; border-radius: 6px; }
.footer-sub { color: #5d6977; font-size: 12px; max-width: 420px; }
.footer-ip { color: var(--muted); font-weight: 700; }
.footer-ip code { color: var(--text); }

/* Toast */

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 95;
  padding: 12px 18px 12px 14px;
  display: flex; align-items: center; gap: 12px;
  background: #212121;
  border: 2px solid #555;
  box-shadow: inset 0 0 0 2px #000, 0 10px 30px rgba(0, 0, 0, .5);
  color: #fff;
  font-weight: 700;
  transform: translate(-50%, calc(100% + 60px));
  visibility: hidden;
  transition: transform .45s var(--ease), visibility .45s;
  max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast img { width: 32px; height: 32px; image-rendering: pixelated; }
.toast small { display: block; font: 400 9px/1.4 var(--pixel); color: var(--gold); margin-bottom: 4px; }

body.shake { animation: bigshake .5s; }
@keyframes bigshake {
  10%, 90% { transform: translate(-2px, 1px); }
  20%, 80% { transform: translate(4px, -2px); }
  30%, 50%, 70% { transform: translate(-6px, 3px); }
  40%, 60% { transform: translate(6px, -3px); }
}
.flash { position: fixed; inset: 0; z-index: 99; background: #fff; pointer-events: none; animation: flash .6s forwards; }
@keyframes flash { to { opacity: 0; } }

/* Responsive */

@media (max-width: 960px) {
  .about-grid, .apply-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-grid.has-deck { grid-template-columns: 1fr; grid-template-areas: 'text' 'deck' 'stats'; row-gap: 40px; }
  .about-grid.has-deck .stats { grid-template-columns: 1fr 1fr; }
  .shot-side, .shot-top { --o: .45; left: 0; }
  .seasons { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .burger { display: block; position: relative; z-index: 2; }
  .nav-logo span { font-size: 10px; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(300px, 82vw);
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 80px 20px 20px;
    background: rgba(11, 15, 20, .97);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
  }
  .nav.open .nav-links { transform: none; }
  .nav-links a:not(.btn) { padding: 12px; font-size: 16px; }
  .nav-links .btn { margin: 12px 0 0; }
  .flow, .mods, .seasons, .row, .row:has(.field-sm) { grid-template-columns: 1fr; }
  .flow { gap: 30px; }
  .flow-step:not(:last-child)::after { right: 50%; top: auto; bottom: -22px; transform: translateX(50%) rotate(135deg); }
  .moon { width: 44px; height: 44px; right: 8%; }
  .float { opacity: .55; }
  .float:nth-child(1), .float:nth-child(7) { display: none; }
  .splash { right: -2%; bottom: -10px; }
  .scroll-hint { display: none; }
  .form { padding: 22px; }
  .code-inputs { gap: 6px; }
  .code-inputs input { height: 50px; font-size: 18px; }
  .band { height: 56vh; }
  .band-splash { bottom: auto; top: 12%; }
  .lightbox { padding: 56px 0 104px; }
  .lb-stage { width: 100%; }
  .lb-btn { top: auto; bottom: 108px; translate: none; width: 44px; height: 44px; }
  .lb-prev { left: calc(50% - 52px); }
  .lb-next { right: calc(50% - 52px); }
  .lb-strip button { width: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .marquee-row { overflow-x: auto; }
  .marquee.reveal { transform: rotate(-2deg); }
}

