/* The site wears the game's clothes: same palette, same painted art, same
   chunky outlined-everything look, and the same LETTERING — the typeface is
   served straight out of the game's font folder rather than a web font that
   only looks similar. */
@font-face {
  font-family: 'Luckiest Guy';
  src: url('/gamefont/LuckiestGuy.ttf') format('truetype');
  font-display: swap;
}

:root {
  /* every scrap of text on this page is cartoon: the game's face for anything
     loud, a rounded comic hand for body copy where long runs need to stay
     readable */
  --face-loud: 'Luckiest Guy', 'Arial Black', system-ui, sans-serif;
  --face-body: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', 'Trebuchet MS', system-ui, sans-serif;
  --void: #0b0620;
  --void-2: #12082a;
  --panel: #1a0f38;
  --ink: #2a1150;
  --pink: #ff8ab6;
  --teal: #8ef7ff;
  --gold: #ffd166;
  --green: #7ce34f;
  --violet: #b78ef7;
  --text: #e8dcff;
  --dim: #9aa6dd;
  --shadow: 0 8px 0 rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--face-body);
  overflow-x: hidden;
}

/* the painted nebula, slowly drifting, with a vignette so text stays readable */
.sky {
  position: fixed; inset: -6%;
  background: url('/art/banner_space.jpg') center/cover no-repeat;
  filter: saturate(1.05);
  animation: drift 46s ease-in-out infinite alternate;
  z-index: 0;
}
/* The painted nebula is scenery, not the subject. Sunk well back so the page
   reads as a NIGHT SKY carried by the twinkling stars on the canvas above it —
   at lighter values the banner's own colour banding showed as hard horizontal
   seams drifting across the page. */
.sky::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(8,5,26,.48), rgba(8,5,26,.93) 70%),
    linear-gradient(rgba(8,5,26,.74), rgba(8,5,26,.96));
}
@keyframes drift {
  from { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
  to   { transform: scale(1.14) translate3d(1.5%, 1.5%, 0); }
}

/* the live galaxy: turning starfield + ships crossing it, drawn on one canvas */
#galaxy { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
/* the old DOM starfield is gone — a few hundred elements animating every frame
   was costing layout for something the canvas does better */
.stars { display: none; }

.wrap { position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; padding: 0 20px 90px; }

h1, h2, h3, .chunky {
  font-family: var(--face-loud);
  letter-spacing: .5px; text-transform: uppercase;
}
.hide { display: none !important; }

/* ------------------------------------------------------------------ hero */
header.hero { text-align: center; padding: 44px 0 20px; position: relative; }

/* the game's own painted logo, gently breathing */
.logo-art {
  width: min(720px, 88vw); height: auto; display: block; margin: 0 auto;
  filter: drop-shadow(0 12px 0 rgba(0,0,0,.45));
  animation: bob 4.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }

/* Their ship, parked beside the title. Barely moving — a slow idle hover, not
   a flight. It scrolls away with the hero because it is part of it. */
.hero-ship {
  position: absolute; left: clamp(0px, 1.4vw, 30px); top: 104px;
  width: clamp(72px, 8.6vw, 124px); height: auto;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.55));
  animation: idle-hover 5.5s ease-in-out infinite;
  pointer-events: none; z-index: 3;
}
/* The art is drawn flying LEFT, so it gets mirrored to face right — towards the
   title it is parked next to. scaleX(-1) mirrors the rotation along with it,
   which is what puts the nose down on the right-hand side. The bob rocks around
   that angle rather than crossing back through level. */
@keyframes idle-hover {
  0%, 100% { transform: translateY(0) scaleX(-1) rotate(-9deg); }
  50%      { transform: translateY(-8px) scaleX(-1) rotate(-4deg); }
}
@media (max-width: 900px) { .hero-ship { display: none; } }

.tagline-art { width: min(420px, 70vw); height: auto; margin: 6px auto 0; display: block; opacity: .95; }
.tagline {
  color: var(--pink); font-size: clamp(15px, 2.3vw, 22px); margin: 12px 0 0;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  font-family: var(--face-loud);
  text-shadow: 0 3px 0 var(--ink);
}
.blurb { color: var(--text); max-width: 720px; margin: 22px auto 0; line-height: 1.7; font-size: 16px; opacity: .92; }

/* the crew, floating in at their own pace */
.crew { display: flex; justify-content: center; align-items: flex-end; gap: clamp(6px, 3vw, 40px); margin: 26px 0 6px; }
.crew-img {
  height: clamp(120px, 18vw, 210px); width: auto;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.6));
  transition: transform .25s ease;
}
.crew-img:hover { transform: translateY(-10px) scale(1.06) rotate(-2deg); }
.c1 { animation: float 3.4s ease-in-out infinite; }
.c2 { animation: float 3.9s ease-in-out .3s infinite; height: clamp(140px, 21vw, 250px); }
.c3 { animation: float 3.1s ease-in-out .6s infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* --------------------------------------------------------------- countdown */
.countdown { margin: 34px auto 0; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cd-cell {
  background: linear-gradient(#241653, #170d38);
  border: 4px solid var(--violet); border-radius: 16px; box-shadow: var(--shadow);
  min-width: 104px; padding: 14px 10px; position: relative;
}
.cd-cell::after {
  content: ''; position: absolute; inset: 4px 4px auto; height: 40%;
  background: linear-gradient(rgba(255,255,255,.14), transparent); border-radius: 10px;
}
.cd-num {
  font-family: var(--face-loud); font-size: 42px; color: var(--teal);
  line-height: 1; text-shadow: 0 4px 0 var(--ink);
}
.cd-num.tick { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(1.28); color: #fff; } 100% { transform: scale(1); } }
.cd-lab { font-size: 11px; letter-spacing: 2px; color: var(--dim); margin-top: 8px; }
.release-line {
  margin-top: 18px; color: var(--gold); font-weight: 700; letter-spacing: 3px;
  font-family: var(--face-loud); text-shadow: 0 3px 0 var(--ink);
}

/* ---------------------------------------------------------------- buttons */
.cta { margin: 34px 0 0; display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn {
  font-family: var(--face-loud); font-size: 20px;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 17px 36px; border-radius: 16px; border: 4px solid var(--ink);
  cursor: pointer; color: var(--ink); background: var(--gold);
  box-shadow: 0 7px 0 var(--ink); transition: transform .09s, box-shadow .09s, filter .2s;
  text-decoration: none; display: inline-block;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); }
.btn.ghost { background: transparent; color: var(--teal); border-color: var(--teal); box-shadow: 0 7px 0 #14405a; }
/* The pre-order button is a PLACEHOLDER — no store, no checkout, no payment
   processor. It has to look unavailable, not clickable-and-broken. */
.btn[disabled] {
  background: #46406b; color: #b9b4d8; border-color: #2b2748;
  box-shadow: 0 7px 0 #221f3c; cursor: not-allowed; filter: grayscale(.35);
}
.btn[disabled]:hover { filter: grayscale(.35); }
.btn[disabled]:active { transform: none; box-shadow: 0 7px 0 #221f3c; }
.price {
  color: var(--gold); font-weight: 700; font-size: 22px;
  font-family: var(--face-loud); text-shadow: 0 3px 0 var(--ink);
}
.note {
  margin: 16px auto 0; max-width: 580px; font-size: 13px; color: var(--dim);
  background: rgba(0,0,0,.35); border-left: 4px solid var(--pink);
  padding: 11px 15px; border-radius: 0 10px 10px 0; text-align: left;
}

/* --------------------------------------------------------------- sections */
section { margin-top: 86px; }
/* Headings sit in FRONT of a painted comic starburst. isolation + a negative
   z-index keeps the burst genuinely behind the letters — without it the
   pseudo-element painted straight over the first character. */
.sec-title {
  font-size: clamp(22px, 3.4vw, 32px); color: var(--gold); margin: 0 0 6px;
  text-shadow: 0 4px 0 var(--ink), 0 0 18px rgba(11,6,32,.9);
  position: relative; display: inline-block; isolation: isolate;
  padding-left: 76px;
}
.sec-title span { position: relative; z-index: 1; }
.sec-title::before {
  content: ''; position: absolute; left: -22px; top: 50%; width: 104px; height: 104px;
  transform: translateY(-50%) rotate(-8deg);
  background: url('/art/burst_comic.png') center/contain no-repeat;
  opacity: .55; z-index: -1; pointer-events: none;
  animation: burst-spin 22s linear infinite;
}
@keyframes burst-spin {
  from { transform: translateY(-50%) rotate(-8deg); }
  to   { transform: translateY(-50%) rotate(352deg); }
}
.sec-sub { color: var(--dim); margin: 0 0 22px; font-size: 14px; }

/* goo dripping off the bottom of each section */
section::after {
  content: ''; display: block; height: 58px; margin-top: 40px;
  background: url('/art/drip_goo.png') repeat-x top center;
  /* wider tile and lower opacity: at 34px it repeated so tightly it read as a
     barcode along the page rather than as goo hanging off a shelf */
  background-size: auto 58px; opacity: .28;
}
section:last-of-type::after { display: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
/* Cards wear a DRAWN frame, not a CSS rectangle and not the old riveted metal
   plate — that one read as a painted window. This one is inked by hand with
   lumpy mismatched corners. Slice numbers measured off the art (808x520, hole
   at 104/127/122/133) so the corner blobs stay whole at any card size and only
   the straight runs repeat. */
.card {
  background: linear-gradient(#22154a, #170d36) padding-box;
  border: 30px solid transparent;
  border-image: url('/art/frame_goofy.png') 104 127 122 133 round;
  padding: 6px 10px 12px;
  transition: transform .2s, filter .2s;
  filter: drop-shadow(0 8px 0 rgba(0,0,0,.4));
}
.card:hover { transform: translateY(-7px) rotate(-.7deg) scale(1.02); filter: drop-shadow(0 12px 0 rgba(0,0,0,.45)) brightness(1.06); }
.card h3 { margin: 0 0 10px; font-size: 16px; color: var(--gold); }
.card p { margin: 0; color: var(--dim); line-height: 1.6; font-size: 14px; }

/* ---------------------------------------------------------------- trailer */
.trailer-box {
  max-width: 960px; margin: 0 auto; background: #000;
  border: 4px solid var(--teal); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow);
}
.trailer-box video { display: block; width: 100%; height: auto; background: #000; }
.empty { border: 4px dashed #3f2c78; border-radius: 20px; padding: 44px; text-align: center; color: var(--dim); }

/* -------------------------------------------------- screenshot gallery */
.gallery { position: relative; max-width: 960px; margin: 0 auto; }
.gal-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 18px; scrollbar-width: none; border-radius: 20px;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-slide {
  margin: 0; flex: 0 0 100%; scroll-snap-align: center; cursor: zoom-in;
  border: 4px solid var(--violet); border-radius: 18px; overflow: hidden;
  background: #000; box-shadow: var(--shadow);
}
.gal-slide img { display: block; width: 100%; height: auto; }
.gal-slide figcaption {
  padding: 10px 14px; font-family: var(--face-loud); font-size: 13px;
  letter-spacing: 1px; color: var(--violet); background: var(--panel);
}
.gal-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 52px; height: 52px; border-radius: 50%; border: 4px solid var(--gold);
  background: var(--panel); color: var(--gold); font-size: 22px; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .15s, background .15s;
  font-family: var(--face-loud); line-height: 1;
}
.gal-btn:hover { transform: translateY(-50%) scale(1.12); background: var(--ink); }
.gal-btn.prev { left: -18px; }
.gal-btn.next { right: -18px; }
.gal-dots { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.gal-dot {
  width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--violet);
  background: transparent; cursor: pointer; padding: 0; transition: background .15s, border-color .15s;
}
.gal-dot.on, .gal-dot:hover { background: var(--gold); border-color: var(--gold); }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(6,3,18,.92);
  display: grid; place-items: center; cursor: zoom-out; padding: 24px;
  animation: fade .18s ease;
}
.lightbox img {
  max-width: 96vw; max-height: 92vh; border: 5px solid var(--gold);
  border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.7);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ----------------------------------------------------------------- worlds */
.worlds { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.world { margin: 0; text-align: center; }
.world img {
  width: 100%; max-width: 210px; height: auto; margin: 0 auto;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.6));
  animation: spin-bob 7s ease-in-out infinite;
}
@keyframes spin-bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
.world figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 5px; }
.world b {
  font-family: var(--face-loud); font-size: 15px; color: var(--gold);
  text-shadow: 0 3px 0 var(--ink); letter-spacing: .5px;
}
.world span { color: var(--dim); font-size: 13px; font-style: italic; }
.world.soon .qmark {
  width: 180px; height: 180px; margin: 0 auto; border-radius: 50%;
  border: 5px dashed #4a3a86; display: grid; place-items: center;
  font-family: var(--face-loud); font-size: 74px; color: #4a3a86;
  animation: spin-bob 9s ease-in-out infinite;
}

/* ---------------------------------------------------------------- updates */
/* A different drawn frame from the cards — taped-up scrap of paper, so a dev
   post doesn't look like another feature card. The tape sits entirely inside the
   corner slices; when it spilled past them the 9-slice stamped it down every
   edge like a row of studs. 813x520, hole at 106/101/104/107. */
.update {
  background: linear-gradient(#22154a, #170d36) padding-box;
  border: 28px solid transparent;
  border-image: url('/art/frame_note.png') 106 101 104 107 round;
  padding: 4px 10px 10px; margin-bottom: 18px;
  filter: drop-shadow(0 8px 0 rgba(0,0,0,.4));
}
.update .meta { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.update .date { color: var(--dim); font-size: 12px; letter-spacing: 1px; }
.tag {
  font-family: var(--face-loud); font-size: 10px; letter-spacing: 1px;
  padding: 4px 11px; border-radius: 999px; background: var(--green); color: var(--ink);
  border: 2px solid var(--ink);
}
.tag.FIX { background: var(--teal); }
.tag.ART { background: var(--pink); }
.tag.BUILD { background: var(--gold); }
.update h3 { margin: 0 0 8px; font-size: 18px; color: var(--text); }
.update p { margin: 0; color: var(--dim); line-height: 1.7; white-space: pre-wrap; font-size: 14px; }

footer { margin-top: 80px; text-align: center; color: #5d5a86; font-size: 12px; }
footer a { color: var(--dim); }

/* reveal-on-scroll, so the page assembles itself as you go */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ admin */
.admin-bar {
  position: sticky; top: 0; z-index: 5; background: var(--void-2);
  border-bottom: 4px solid var(--violet); padding: 14px 20px; margin-bottom: 26px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.admin-bar .who { color: var(--gold); font-weight: 700; letter-spacing: 1px; font-family: var(--face-loud); }
input, textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 3px solid #3f2c78; background: #120a2c; color: var(--text);
  font-family: inherit; font-size: 14px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
label { display: block; margin: 14px 0 6px; font-size: 12px; letter-spacing: 1px; color: var(--dim); text-transform: uppercase; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn.sm { font-size: 13px; padding: 10px 17px; border-width: 3px; box-shadow: 0 4px 0 var(--ink); }
.btn.danger { background: #ff6b6b; }
.toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  background: var(--green); color: var(--ink); font-weight: 700;
  padding: 14px 22px; border-radius: 14px; border: 3px solid var(--ink);
  box-shadow: var(--shadow); opacity: 0; transform: translateY(12px);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: none; }
.toast.bad { background: #ff6b6b; }
.muted { color: var(--dim); font-size: 13px; }
@media (max-width: 700px) {
  .row { grid-template-columns: 1fr; }
  .sec-title::before { display: none; }
}
