/* Splash Fall — splashfall.chiptang.com */

:root {
  --pink: #ff3d8b;
  --orange: #ff8a1f;
  --yellow: #ffd60a;
  --lime: #7ce83a;
  --cyan: #22d3ee;
  --violet: #9b5cff;

  --night-top: #28125c;
  --night-mid: #1d3a96;
  --night-bottom: #1268c4;

  --bg: #fbf8f4;
  --surface: #ffffff;
  --surface-alt: #f4efe9;
  --text: #1d1733;
  --muted: #5d5775;
  --line: rgba(29, 23, 51, 0.1);
  --shadow: 0 1px 2px rgba(29, 23, 51, 0.06), 0 14px 36px rgba(29, 23, 51, 0.1);
  --tile: #6f6d6a;

  --wordmark: linear-gradient(90deg, var(--pink), var(--orange) 55%, var(--yellow));
  --radius: 22px;
  --gutter: 20px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0b22;
    --surface: #1a1535;
    --surface-alt: #151030;
    --text: #f4f1ff;
    --muted: #b6afd6;
    --line: rgba(255, 255, 255, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

h2 {
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 900;
}

h3 {
  font-size: 20px;
  font-weight: 800;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: #1d1733;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Night band (hero and page headers) ---------- */

.night {
  position: relative;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(60% 55% at 50% 18%, rgba(155, 92, 255, 0.45), transparent 70%),
    linear-gradient(180deg, var(--night-top) 0%, var(--night-mid) 62%, var(--night-bottom) 100%);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.nav a {
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.86);
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Paint splats and falling troopers behind the night band. */
.decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.splat {
  position: absolute;
  width: 220px;
  height: 220px;
  opacity: 0.9;
}

.splat.s1 { color: var(--yellow); left: -70px; bottom: 60px; transform: rotate(-12deg); }
.splat.s2 { color: var(--cyan); right: -80px; bottom: 140px; width: 260px; height: 260px; }
.splat.s3 { color: var(--violet); left: 7%; top: 90px; width: 90px; height: 90px; opacity: 0.8; }
.splat.s4 { color: var(--orange); right: 9%; top: 70px; width: 110px; height: 110px; transform: rotate(40deg); }
.splat.s5 { color: var(--lime); left: 44%; bottom: -60px; width: 150px; height: 150px; opacity: 0.75; }

.page-head .splat.s1 { width: 150px; height: 150px; bottom: -50px; }
.page-head .splat.s2 { width: 170px; height: 170px; bottom: -40px; }

.trooper {
  position: absolute;
  top: -150px;
  width: 58px;
  height: 76px;
  opacity: 0.9;
  animation: fall 22s linear infinite;
}

.trooper.t1 { left: 6%; color: var(--pink); animation-duration: 21s; animation-delay: -4s; }
.trooper.t2 { left: 22%; color: var(--orange); width: 44px; height: 58px; animation-duration: 15s; animation-delay: -11s; }
.trooper.t3 { left: 71%; color: var(--violet); width: 66px; height: 86px; animation-duration: 26s; animation-delay: -16s; }
.trooper.t4 { left: 86%; color: var(--cyan); animation-duration: 19s; animation-delay: -2s; }
.trooper.t5 { left: 55%; color: var(--lime); width: 40px; height: 52px; animation-duration: 17s; animation-delay: -8s; }

@keyframes fall {
  0% { transform: translateY(0) rotate(-7deg); }
  25% { transform: translateY(250px) rotate(7deg); }
  50% { transform: translateY(500px) rotate(-7deg); }
  75% { transform: translateY(750px) rotate(7deg); }
  100% { transform: translateY(1000px) rotate(-7deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trooper { animation: none; top: auto; }
  .trooper.t1 { top: 120px; }
  .trooper.t2 { top: 300px; }
  .trooper.t3 { top: 180px; }
  .trooper.t4 { top: 360px; }
  .trooper.t5 { top: 80px; }
}

/* ---------- Home hero ---------- */

/* The night sky stops partway down the screenshot, so the shot overhangs the page below. */
.hero {
  --overhang: 110px;
  background-size: 100% calc(100% - var(--overhang));
  background-repeat: no-repeat;
}

.hero .decor {
  bottom: var(--overhang);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 36px var(--gutter) 44px;
  text-align: center;
}

.hero-icon {
  width: 132px;
  height: 132px;
  margin: 0 auto 22px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12), 0 18px 50px rgba(255, 61, 139, 0.45);
}

.pill {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wordmark {
  font-size: clamp(52px, 11vw, 104px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  background: var(--wordmark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(255, 61, 139, 0.35));
}

.lede {
  max-width: 600px;
  margin: 20px auto 0;
  font-size: clamp(18px, 2.4vw, 21px);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 14px rgba(20, 10, 60, 0.55);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 61, 139, 0.45);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.hero-shot {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(9, 6, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.section.after-hero {
  padding-top: 64px;
}

/* ---------- Sections ---------- */

.section {
  padding: 80px 0;
}

.section.alt {
  background: var(--surface-alt);
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
}

.section-head p {
  margin-top: 12px;
  font-size: 18px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

/* The cast and the power-ups: five across, then three, then two on a phone. */
.grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The six modes: three by two, then two by three on a phone. */
.grid.modes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .grid.modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.grid.five .cast p {
  font-size: 15px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card p {
  margin-top: 8px;
  color: var(--muted);
}

.badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
}

.badge .blob {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.badge .glyph {
  position: relative;
  width: 30px;
  height: 30px;
  color: #fff;
}

.pink { color: var(--pink); }
.orange { color: var(--orange); }
.yellow { color: var(--yellow); }
.lime { color: var(--lime); }
.cyan { color: var(--cyan); }
.violet { color: var(--violet); }

/* Numbered steps */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 64px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 22px;
  left: 26px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-weight: 900;
}

.step:nth-child(2)::before { background: var(--orange); }
.step:nth-child(3)::before { background: var(--violet); }
.step:nth-child(4)::before { background: var(--cyan); }

/* Cast cards: a 3D render from the game's home screen, then the name. */
.cast {
  padding: 14px;
  text-align: center;
}

.cast img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 16px;
  /* The 3D cutouts float on the game's night sky. */
  background: radial-gradient(circle at 50% 38%, #4a3bb0 0%, #28125c 72%);
}

.cast h3 {
  margin-top: 14px;
}

.cast p {
  margin: 6px 6px 8px;
  font-size: 16px;
}

/* Preview video */
.preview {
  margin: 0 0 26px;
}

.preview video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #0f0b22;
  box-shadow: var(--shadow);
}

/* Gallery: three across, two on a tablet, one on a phone. */
.gallery {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1080px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
}

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: var(--tile);
}

.shot figcaption {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

.fineprint {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

/* Checklist */
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checks li {
  position: relative;
  padding-left: 36px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%231d1733' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.split {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.checks.spaced {
  margin-top: 26px;
}

.split .menu-shot {
  border-radius: 26px;
  box-shadow: var(--shadow);
}

/* Call to action */
.cta {
  text-align: center;
  padding: 72px 0 84px;
}

.cta .wordmark {
  font-size: clamp(38px, 7vw, 64px);
}

.cta p {
  margin: 16px auto 0;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

/* ---------- Inner pages ---------- */

.page-head .wrap.intro {
  position: relative;
  z-index: 1;
  padding-top: 26px;
  padding-bottom: 64px;
  max-width: 820px;
}

.page-head h1 {
  font-size: clamp(40px, 7vw, 60px);
  font-weight: 900;
}

.page-head p {
  margin-top: 14px;
  max-width: 620px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
}

.prose {
  max-width: 820px;
  padding-top: 56px;
  padding-bottom: 80px;
}

.prose h2 {
  font-size: clamp(24px, 3.4vw, 30px);
  margin: 48px 0 12px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 12px;
}

.prose ul {
  margin: 0;
  padding-left: 22px;
}

.prose li + li {
  margin-top: 8px;
}

.prose .muted {
  color: var(--muted);
}

.summary {
  margin-bottom: 44px;
  border-left: 6px solid var(--lime);
}

.summary h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 48px;
}

.contact .button.primary {
  flex-shrink: 0;
}

.contact .address {
  font-weight: 800;
  word-break: break-all;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 800;
  font-size: 18px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-alt);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 22px 20px;
  color: var(--muted);
}

.faq .answer p + p,
.faq .answer p + ol,
.faq .answer ol + p {
  margin-top: 10px;
}

.faq .answer ol {
  margin: 0;
  padding-left: 22px;
}

/* ---------- 404 ---------- */

.lost {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.lost .center {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
  padding: 40px var(--gutter) 80px;
}

.lost .wordmark {
  font-size: clamp(90px, 22vw, 180px);
}

.lost p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Footer ---------- */

.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.footer .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer .brand {
  color: var(--text);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer nav a {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.footer nav a:hover {
  text-decoration: underline;
}

.footer .legal {
  margin-top: 18px;
  font-size: 13px;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .nav a { padding: 6px 10px; }
  .section { padding: 60px 0; }
  .hero { --overhang: 60px; }
  .hero .splat.s1 { width: 120px; height: 120px; left: -55px; bottom: 170px; }
  .hero .splat.s2 { width: 140px; height: 140px; right: -70px; bottom: 300px; }
  .hero .splat.s3 { width: 64px; height: 64px; top: 64px; left: 2%; }
  .hero .splat.s4 { width: 76px; height: 76px; top: 56px; right: 3%; }
  .trooper { opacity: 0.7; }
  .section.after-hero { padding-top: 48px; }
  .card { padding: 22px; }
  .step { padding-top: 60px; }
  .step::before { left: 22px; }
}
