/* Slimings: the game's home page. Colors and type are the game's own (doc 09). */
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("/fonts/nunito-semibold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/fonts/nunito-extrabold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-display: swap; src: url("/fonts/nunito-black.woff2") format("woff2"); }

:root {
  --ink: #1a0f1f;
  --plum-deep: #220f2c;
  --plum: #3b1d49;
  --plum-light: #5c3270;
  --lime: #a8f03c;
  --lime-light: #ddff94;
  --lime-dark: #5b9c19;
  --cream: #fff3dc;
  --cream-dim: #d9c9c4;
  --gold: #ffcd46;
  --lab: #57c26a;
  --drains: #3fc1b0;
  --caverns: #8f7bf0;
  --foundry: #f0993c;
  --wide: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--plum-deep);
  color: var(--cream);
  font: 600 1.0625rem/1.55 "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--lime); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 12px; }
h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); color: var(--lime); text-shadow: 0 3px 0 var(--ink), 0 0 1px var(--ink); letter-spacing: -0.01em; }
h3 { font-size: 1.4rem; }
p { margin: 0; text-wrap: pretty; }
.sub { color: var(--cream-dim); margin-top: 0.5rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  isolation: isolate;
  overflow: hidden;
  background: #17131d;
}
.hero-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 70% at 50% 38%, rgba(26, 15, 31, 0.15), rgba(26, 15, 31, 0.78) 70%),
    linear-gradient(180deg, rgba(26, 15, 31, 0.72) 0%, rgba(26, 15, 31, 0.1) 30%, rgba(34, 15, 44, 0.9) 100%);
}
nav.top {
  display: flex; justify-content: flex-end; gap: clamp(0.9rem, 3vw, 1.8rem);
  padding: 1rem clamp(1rem, 4vw, 2rem);
  font-weight: 800;
}
nav.top a { color: var(--cream); text-decoration: none; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); }
nav.top a:hover { color: var(--lime-light); }
.hero-body {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(0.6rem, 2.2vh, 1.4rem);
  padding: 0 1rem clamp(7.5rem, 20vh, 12rem);
  text-align: center;
}
.logo { width: min(90vw, 780px); filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55)); }
.tagline {
  font-size: clamp(1.15rem, 3.4vw, 1.75rem); font-weight: 800; color: var(--cream);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}
.cta { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: center; justify-content: center; margin-top: 0.5rem; }

.goo-button {
  --press: 0px;
  position: relative; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  font-weight: 900; font-size: 1.2rem; color: var(--ink); text-decoration: none;
  background: linear-gradient(180deg, var(--lime-light), var(--lime) 55%, #8fdc2e);
  border: 3px solid var(--ink);
  box-shadow: 0 calc(6px - var(--press)) 0 var(--ink), 0 14px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(var(--press));
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.goo-button:hover { --press: 2px; }
.goo-button:active { --press: 5px; }
.goo-button .glyph { font-size: 0.95em; }

.soon {
  display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.2;
  padding: 0.55rem 1.1rem; border-radius: 16px;
  background: rgba(26, 15, 31, 0.78); border: 2px solid var(--plum-light);
  text-align: left; text-decoration: none;
}
a.soon:hover { border-color: var(--lime); }
.soon strong { font-weight: 900; color: var(--cream); }
.soon span { font-size: 0.9rem; color: var(--cream-dim); }
.soon.inline { margin-top: 1.25rem; }

.mascot {
  position: absolute; left: 50%; bottom: 10px; width: clamp(150px, 26vw, 250px);
  transform: translateX(-50%); z-index: 1;
  animation: bob 3.6s ease-in-out infinite;
}
/* The goo the hero stands in: a lime band over its foot, dripping into the page. */
.drips {
  position: relative; z-index: 3; height: 64px; margin-top: -22px; margin-bottom: -42px; pointer-events: none;
  background: url("/img/drips.svg") repeat-x top center / 520px 64px;
}

/* ---- Sections ---- */
main > section { padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 4vw, 2rem); }
main > section > * { max-width: var(--wide); margin-inline: auto; }
main > section > h2, main > section > .sub { text-align: center; }

.lede { text-align: center; padding-top: clamp(2rem, 5vw, 3rem); }
.lede p { max-width: 40rem; margin-top: 1rem; font-size: 1.2rem; color: var(--cream-dim); }
.lede .punch { color: var(--lime-light); font-weight: 900; font-size: clamp(1.4rem, 4vw, 2rem); margin-top: 1.25rem; }

.features { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); max-width: var(--wide); margin-inline: auto; padding-top: 0 !important; }
.feature {
  position: relative; margin: 0 !important;
  background: linear-gradient(180deg, var(--plum-light), var(--plum) 40%);
  border: 3px solid var(--ink); border-radius: 26px; overflow: hidden;
  box-shadow: 0 8px 0 var(--ink), 0 18px 34px rgba(0, 0, 0, 0.35);
}
.feature::before { content: ""; display: block; height: 14px; background: var(--lime); border-bottom: 3px solid var(--ink); }
.feature video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #17131d; border-bottom: 3px solid var(--ink); }
.feature h3 { color: var(--lime-light); padding: 1.1rem 1.25rem 0; }
.feature p { padding: 0.5rem 1.25rem 1.4rem; color: var(--cream-dim); }

/* ---- Video players ---- */
.player { margin: 0; }
.player button, .player video {
  display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; position: relative;
  border: 3px solid var(--ink); border-radius: 22px; overflow: hidden; background: #17131d; cursor: pointer;
  box-shadow: 0 7px 0 var(--ink), 0 16px 30px rgba(0, 0, 0, 0.4);
}
.player video { cursor: auto; }
.player img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease, filter 300ms ease; }
.player button:hover img { transform: scale(1.03); filter: brightness(1.08); }
.player .play {
  position: absolute; inset: 0; margin: auto; width: 4.2rem; height: 4.2rem; border-radius: 50%;
  background: linear-gradient(180deg, var(--lime-light), var(--lime)); border: 3px solid var(--ink);
  box-shadow: 0 5px 0 var(--ink);
}
.player .play::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; transform: translateX(3px);
  border-left: 1.25rem solid var(--ink); border-top: 0.8rem solid transparent; border-bottom: 0.8rem solid transparent;
}
.player.big { margin: 1.75rem auto 0; max-width: 960px; }
.player.big .play { width: 5.5rem; height: 5.5rem; }
.player figcaption { margin-top: 0.9rem; font-weight: 900; font-size: 1.15rem; text-align: center; color: var(--cream); }
.video-grid { display: grid; gap: 1.75rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-top: 1.75rem; }

.trailer { background: linear-gradient(180deg, transparent, rgba(59, 29, 73, 0.55) 30%, transparent); }

/* ---- Chapters ---- */
.chapter-row { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1.75rem; }
.chapter {
  --tint: var(--lab);
  border: 3px solid var(--ink); border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 32%, var(--plum-deep)), var(--plum-deep));
  box-shadow: 0 7px 0 var(--ink), 0 16px 30px rgba(0, 0, 0, 0.35);
  display: flex; flex-direction: column;
}
.chapter.drains { --tint: var(--drains); }
.chapter.caverns { --tint: var(--caverns); }
.chapter.next { --tint: var(--foundry); border-style: dashed; border-color: var(--foundry); box-shadow: none; justify-content: center; min-height: 12rem; text-align: center; }
.chapter img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid var(--ink); }
.chapter > div { padding: 1rem 1.2rem 1.3rem; }
.chapter h3 span { display: block; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tint); margin-bottom: 0.25rem; }
.chapter p { color: var(--cream-dim); margin-top: 0.45rem; }

/* ---- Screenshots ---- */
.shots { padding-inline: 0 !important; }
.shot-wrap { position: relative; max-width: none !important; margin-top: 1.5rem; }
.shot-strip {
  position: relative; display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x proximity;
  overscroll-behavior-x: contain; padding: 0.5rem clamp(1rem, 4vw, 2rem) 1rem;
  scrollbar-width: none; cursor: grab;
}
.shot-strip::-webkit-scrollbar { display: none; }
/* While the mouse drags it, the strip follows the hand: no snapping until it lets go. */
.shot-strip.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
/* The width is given outright: a flex item never shrinks below its picture's own width, which
   once made every picture fill the strip and hid that there were more beside it. */
.shot-strip figure { flex: none; width: min(82vw, 720px); min-width: 0; margin: 0; scroll-snap-align: center; }
.shot-strip img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 7px 0 var(--ink);
  -webkit-user-drag: none; user-select: none;
}
.shot-strip figcaption {
  margin-top: 0.9rem; padding-inline: 0.5rem; text-align: center; font-weight: 800; color: var(--cream-dim);
  user-select: none;
}
/* Where the strip stands: a dot a picture, the lime one in view; a click goes there. */
.shot-dots { display: flex; justify-content: center; gap: 0.35rem; }
.shot-dots button {
  width: 1.9rem; height: 1.9rem; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.shot-dots button::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: var(--plum-light); border: 2px solid var(--ink); transition: background 150ms ease, scale 150ms ease;
}
.shot-dots button[aria-current="true"]::after { background: var(--lime); scale: 1.25; }
/* Arrows for a mouse: a wheel scrolls the page, not the strip. site.js shows them where they lead somewhere. */
.shot-nav {
  position: absolute; top: calc(50% - 4.5rem); z-index: 2; width: 3.4rem; height: 3.4rem; padding: 0;
  border-radius: 50%; border: 3px solid var(--ink); cursor: pointer;
  background: linear-gradient(180deg, var(--lime-light), var(--lime)); box-shadow: 0 5px 0 var(--ink);
}
.shot-nav.prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.shot-nav.next { right: clamp(0.5rem, 2vw, 1.5rem); }
.shot-nav::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 0.85rem; height: 0.85rem;
  border-top: 0.3rem solid var(--ink); border-right: 0.3rem solid var(--ink); border-radius: 2px;
  transform: translateX(-0.15rem) rotate(45deg);
}
.shot-nav.prev::after { transform: translateX(0.15rem) rotate(-135deg); }
.shot-nav:active { box-shadow: 0 1px 0 var(--ink); translate: 0 4px; }
.shot-nav[hidden] { display: none; }
@media (hover: none) { .shot-nav { display: none; } }

/* ---- Fair ---- */
.fair ul { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; gap: 0.9rem; max-width: 46rem; }
.fair li {
  position: relative; padding: 0.95rem 1.2rem 0.95rem 3.4rem; border-radius: 18px;
  background: var(--plum); border: 2px solid var(--plum-light); color: var(--cream-dim);
}
.fair li strong { color: var(--cream); font-weight: 900; }
.fair li::before {
  content: ""; position: absolute; left: 1.05rem; top: 1.05rem; width: 1.35rem; height: 1.35rem; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, var(--lime-light), var(--lime)); border: 2px solid var(--ink);
}

/* ---- Platforms ---- */
.platform-row { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1.75rem; }
.platform {
  padding: 1.5rem 1.3rem 1.6rem; text-align: center;
  background: linear-gradient(180deg, var(--plum-light), var(--plum) 55%);
  border: 3px solid var(--ink); border-radius: 24px;
  box-shadow: 0 7px 0 var(--ink), 0 16px 30px rgba(0, 0, 0, 0.35);
}
.platform svg {
  display: block; width: 5.4rem; height: 3.6rem; margin: 0 auto 0.9rem;
  fill: none; stroke: var(--lime); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
}
.platform svg .solid { fill: var(--plum); }
.platform .when {
  display: inline-block; margin-bottom: 0.7rem; padding: 0.1rem 0.8rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); background: var(--lime); border: 2px solid var(--ink);
}
.platform.later .when { background: var(--gold); }
.platform.last .when { background: var(--cream-dim); }
.platform.later svg { stroke: var(--gold); }
.platform.last svg { stroke: var(--cream-dim); }
.platform h3 { color: var(--cream); }
.platform p:not(.when) { color: var(--cream-dim); margin-top: 0.45rem; }

/* ---- Free to start ---- */
.start { text-align: center; }
.start img { width: 150px; margin-bottom: 0.75rem; animation: bob 3.6s ease-in-out infinite; }
.start > p { max-width: 38rem; margin-top: 0.9rem; color: var(--cream-dim); font-size: 1.15rem; }

/* ---- Footer ---- */
footer { padding: 2.5rem 1rem 3rem; text-align: center; background: var(--ink); color: var(--cream-dim); }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.75rem; font-weight: 800; margin-bottom: 1rem; }
footer a { color: var(--cream); text-decoration: none; }
footer a:hover { color: var(--lime-light); }

/* ---- Text pages (privacy, support) ---- */
.page-head { padding: 1rem clamp(1rem, 4vw, 2rem) 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.page-head .logo { width: min(52vw, 260px); }
.page-head a.back { font-weight: 800; color: var(--cream); text-decoration: none; }
.prose { max-width: 44rem; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem) 4rem; }
.prose h1 { font-size: clamp(2rem, 6vw, 3rem); color: var(--lime); text-shadow: 0 3px 0 var(--ink); margin-bottom: 1.25rem; }
.prose h2 { font-size: 1.35rem; color: var(--lime-light); text-shadow: none; margin: 2rem 0 0.5rem; text-align: left; }
.prose p, .prose li { color: var(--cream-dim); }
.prose p + p { margin-top: 0.85rem; }
.prose ul { padding-left: 1.2rem; }
.prose .note { margin-top: 2rem; padding: 1rem 1.2rem; border-radius: 16px; background: var(--plum); border: 2px solid var(--plum-light); }

@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mascot, .start img, .logo img { animation: none !important; }
  .hero-film { display: none; }
  .hero { background: #17131d url("/img/hero-poster.jpg") center / cover; }
}
@media (max-width: 560px) {
  nav.top { justify-content: center; flex-wrap: wrap; gap: 0.35rem 0.9rem; padding-inline: 0.75rem; font-size: 0.98rem; }
  .soon { align-items: center; text-align: center; }
}
