@font-face {
  font-family: "Lilita One";
  src: url("assets/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #0b2340;
  --sea-deep: #0e2f59;
  --panel-0: #123a6b;
  --panel-1: #1b4c88;
  --panel-2: #2259a0;
  --panel-3: #2a66b0;
  --line: #5b8ad0;
  --text: #ffffff;
  --text-2: #d4e5ff;
  --text-3: #9cbbe6;
  --accent: #ffcc3d;
  --accent-hover: #ffd968;
  --accent-ink: #4a2b00;
  --spawn: #5ccc7a;
  --multiply: #ad83ff;
  --evolve: #c9d6e2;
  --cream: #fff4de;
  --cream-ink: #3a271a;
  --coral: #ff9d86;
  --gold: #ffd76a;
  --teal: #6fdcd0;
  --violet: #c3a6ff;
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --reading: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter-left: max(20px, env(safe-area-inset-left, 0px));
  --gutter-right: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--panel-0);
  color: var(--text);
  font-family: var(--body);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.5;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
a:focus-visible, .btn:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 5; }
.skip:focus { left: 12px; top: 12px; }

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

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  background-color: var(--panel-1);
  background-image:
    radial-gradient(ellipse 80% 70% at 50% 250px, rgba(11, 35, 64, 0) 30%, rgba(11, 35, 64, 0.62) 100%),
    repeating-conic-gradient(from -7.5deg at 50% 250px, #1f5290 0deg 15deg, #17427a 15deg 30deg);
  border-bottom: 5px solid var(--ink);
}

.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 26px;
  padding: 18px var(--gutter-right) 0 var(--gutter-left);
  font-size: 16px;
}
.top a { color: var(--text-2); text-decoration: none; padding: 6px 2px; }
.top a:hover { color: var(--text); text-decoration: underline; }

.hero-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 18px var(--gutter-right) 64px var(--gutter-left);
}

.mascot { position: relative; width: clamp(170px, 46vw, 250px); aspect-ratio: 1; }
.mascot img, .mascot-float, .mascot-head, .mascot-eye { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.mascot-porthole { position: absolute; left: 12.89%; top: 12.89%; width: 74.22%; height: 74.22%; border-radius: 50%; overflow: hidden; }
.mascot-porthole img { left: -17.37%; top: -17.37%; width: 134.74%; height: 134.74%; max-width: none; }
.mascot-float { animation: bob 3.4s ease-in-out infinite alternate; }
.mascot-head { transform-origin: 45.3% 84%; animation: nod 5.1s ease-in-out infinite alternate; }
.mascot-eye--left { transform-origin: 44.1% 55.5%; animation: blink 5.3s linear infinite; }
.mascot-eye--right { transform-origin: 58.6% 53.9%; animation: blink 5.3s linear infinite; }
.mascot-antenna--back { transform-origin: 80.9% 62.1%; animation: sway 2.7s ease-in-out infinite alternate; }
.mascot-antenna--front { transform-origin: 75% 65.2%; animation: sway 2.3s ease-in-out infinite alternate-reverse; }

@keyframes bob { from { transform: translateY(3px); } to { transform: translateY(-5px); } }
@keyframes nod { from { transform: rotate(-1.4deg); } to { transform: rotate(1.6deg); } }
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.08); } }

.logo {
  --letter: clamp(58px, 21.5vw, 128px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -6px;
}
.logo-row { display: flex; height: var(--letter); }
.logo-row img { height: 100%; width: auto; max-width: none; margin-right: calc(var(--letter) * -0.15); animation: drop 0.62s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.logo-row img:last-child { margin-right: 0; }
.logo-row--title { margin-top: calc(var(--letter) * -0.12); }
.logo-row img:nth-child(1) { animation-delay: 0.05s; }
.logo-row img:nth-child(2) { animation-delay: 0.11s; }
.logo-row img:nth-child(3) { animation-delay: 0.17s; }
.logo-row img:nth-child(4) { animation-delay: 0.23s; }
.logo-row img:nth-child(5) { animation-delay: 0.29s; }
.logo-row--title img:nth-child(1) { animation-delay: 0.36s; }
.logo-row--title img:nth-child(2) { animation-delay: 0.42s; }
.logo-row--title img:nth-child(3) { animation-delay: 0.48s; }
.logo-row--title img:nth-child(4) { animation-delay: 0.54s; }
.logo-row--title img:nth-child(5) { animation-delay: 0.6s; }
.logo-joiner {
  position: absolute;
  left: 50%;
  top: calc(var(--letter) * 0.94);
  height: calc(var(--letter) * 0.62);
  width: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  animation: stamp 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) 0.78s both;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@keyframes drop { from { transform: translateY(-46%) scale(0.86); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes stamp { from { transform: translate(-50%, -50%) scale(0.2) rotate(-40deg); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }

.tagline {
  font-family: var(--display);
  font-size: clamp(30px, 6.4vw, 50px);
  line-height: 1.08;
  color: var(--accent);
  text-shadow: 0 3px 0 var(--ink), 0 6px 14px rgba(11, 35, 64, 0.5);
  margin-top: 6px;
  text-wrap: balance;
}
.lede { max-width: 34em; color: var(--text-2); font-size: clamp(17px, 2.2vw, 20px); text-wrap: pretty; }

.status { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin-top: 4px; }
.stamp {
  padding: 7px 16px 6px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 35, 64, 0.5);
  color: var(--text-2);
  font-size: 16px;
  letter-spacing: 0.02em;
}
.stamp--main { border-color: var(--accent); color: var(--accent); }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  color: var(--accent-ink);
  background: var(--accent);
  border: 4px solid var(--ink);
  border-radius: 16px;
  padding: 14px 28px 15px;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.12s ease;
}
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }

/* Bands */

.band { padding-block: clamp(48px, 8vw, 84px); }
.band--deep { background: var(--sea-deep); border-block: 5px solid var(--ink); }
.band h2 { font-size: clamp(32px, 5.6vw, 52px); text-align: center; text-shadow: 0 3px 0 var(--ink); }
.band-lede { max-width: 36em; margin: 14px auto 0; text-align: center; color: var(--text-2); text-wrap: balance; }
.band .status { margin-top: 40px; }

/* Shots */

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 30px 26px; margin-top: 36px; }
.shot { margin: 0; min-width: 0; }
.shot-frame {
  display: block;
  border: 5px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 8px 0 rgba(11, 35, 64, 0.55);
  aspect-ratio: 16 / 9;
}
.shot-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { margin-top: 14px; text-align: center; color: var(--text-2); font-size: 17px; text-wrap: balance; }

/* How it plays */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 38px; counter-reset: step; }
.step {
  position: relative;
  background: var(--panel-1);
  border: 4px solid var(--ink);
  border-radius: 20px;
  padding: 30px 22px 24px;
  box-shadow: 0 6px 0 var(--ink);
  min-width: 0;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: -22px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 24px;
  color: var(--accent-ink);
  background: var(--accent);
  border: 4px solid var(--ink);
  border-radius: 50%;
}
.step h3 { font-size: 27px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 17px; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kinds li { font-family: var(--display); font-size: 17px; color: var(--ink); border: 3px solid var(--ink); border-radius: 10px; padding: 3px 11px 4px; }
.kind--spawn { background: var(--spawn); }
.kind--multiply { background: var(--multiply); }
.kind--evolve { background: var(--evolve); }

/* Roster */

.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-top: 38px; }
.critter {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--panel-0);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 12px 16px 12px 12px;
  min-width: 0;
}
.critter-art {
  flex: none;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, var(--tint) 78%);
}
.critter-art img { max-width: 78px; max-height: 78px; width: auto; height: auto; }
.critter--coral { --tint: var(--coral); }
.critter--gold { --tint: var(--gold); }
.critter--teal { --tint: var(--teal); }
.critter--violet { --tint: var(--violet); }
.critter-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.critter-text strong { font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.1; }
.critter-text span { color: var(--text-2); font-size: 15.5px; line-height: 1.38; }

/* Finishers */

.calls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 34px auto 0; max-width: 900px; }
.calls li {
  font-family: var(--display);
  font-size: clamp(18px, 2.6vw, 23px);
  color: var(--accent);
  background: var(--ink);
  border: 3px solid var(--accent);
  border-radius: 12px;
  padding: 6px 14px 7px;
  transform: rotate(var(--tilt, -1.2deg));
}
.calls li:nth-child(2n) { --tilt: 1.4deg; }
.calls li:nth-child(3n) { --tilt: -0.4deg; color: var(--text); border-color: var(--line); }
.calls li:nth-child(5n) { --tilt: 2deg; }

/* Footer */

.foot { background: var(--ink); padding-block: 34px 40px; color: var(--text-3); font-size: 15.5px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.foot-mark { display: flex; align-items: center; gap: 12px; color: var(--text-2); }
.foot-mark img { width: 44px; height: 44px; border-radius: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: var(--text-2); }
.foot-small { flex-basis: 100%; font-family: var(--reading); font-weight: 400; font-size: 13.5px; line-height: 1.5; }

/* Reading pages: privacy, support */

.page-head { background: var(--panel-1); border-bottom: 5px solid var(--ink); padding-block: 20px 34px; }
.page-head .wrap { max-width: 760px; }
.table-scroll + p { margin-top: 14px; }
.page-head .home { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--display); font-size: 22px; }
.page-head .home img { width: 46px; height: 46px; border-radius: 10px; }
.page-head h1 { font-size: clamp(34px, 6vw, 52px); margin-top: 26px; text-shadow: 0 3px 0 var(--ink); }
.page-head p { color: var(--text-2); margin-top: 8px; }
.reading { max-width: 760px; padding-block: 38px 64px; font-family: var(--reading); font-weight: 400; font-size: 17px; line-height: 1.65; color: var(--text-2); }
.reading h2 { font-size: 27px; color: var(--text); margin: 38px 0 10px; }
.reading h2:first-child { margin-top: 0; }
.reading p + p, .reading ul + p, .reading p + ul { margin-top: 12px; }
.reading ul { list-style: disc; padding-left: 22px; margin-top: 12px; }
.reading h2 + ul { margin-top: 0; }
.reading li + li { margin-top: 6px; }
.reading strong { color: var(--text); font-weight: 600; }
.note { background: var(--sea-deep); border: 3px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.table-scroll { overflow-x: auto; margin-top: 12px; }
.reading table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15.5px; }
.reading th, .reading td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--panel-3); }
.reading th { color: var(--text); font-weight: 600; }
.copyable { user-select: all; color: var(--text); font-weight: 600; }

.lost { text-align: center; padding-block: 56px 80px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.lost img { width: 150px; height: 150px; border-radius: 30px; border: 5px solid var(--ink); }
.lost h1 { font-size: clamp(36px, 7vw, 56px); text-shadow: 0 3px 0 var(--ink); }
.lost p { color: var(--text-2); max-width: 30em; }

@media (min-width: 900px) {
  .hero-in { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mascot-float, .mascot-head, .mascot-eye, .mascot-antenna, .logo-row img, .logo-joiner { animation: none; }
  .btn { transition: none; }
}
