/* Palette lifted from the "era" wordmark: flat saturated fills, thick ink outlines, hard
   offset shadows. Cream paper instead of a dark glass overlay. */
:root {
  --paper: #fff6e3;
  --paper-deep: #f8e9c9;
  --white: #fffdf7;
  --ink: #171412;
  --ink-soft: #5a524a;
  --line: #e2d4b8;
  --red: #e8352a;
  --orange: #ff7b1c;
  --green: #2fb52a;
  --yellow: #ffd51f;
  --sky: #5cc3f2;
  --sky-pale: #d6f0fd;
  --pink: #f06aa8;
  --night: #16222c;
  --ok: #238a25;
  --bad: #c92d1f;
  --warn: #c7820a;
  --radius: 18px;
  --outline: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --display: "Arial Rounded MT Bold", "Nunito", "Varela Round", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, .facts dt, .brand-tag, .stamp span, .steps li::before, .features li::before, .stats dt {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.01em;
}

img { max-width: 100%; }

/* ---- top bar ---------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 10px clamp(16px, 5vw, 56px);
  background: var(--paper);
  border-bottom: var(--outline);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 76px; height: auto; }

.brand-tag {
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  font-size: 14px;
  letter-spacing: .08em;
}

.nav { display: flex; gap: 2px; margin-right: auto; }

.nav a {
  padding: 7px 12px;
  border-radius: 10px;
  border: 2px solid transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover, .nav a:focus-visible { border-color: var(--ink); background: var(--white); }

.status {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
}

.status li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
}

.dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); background: #cfc6b5; }

.status li[data-state="up"] .dot { background: var(--green); }
.status li[data-state="down"] .dot { background: var(--red); }

main { flex: 1; }

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

.hero {
  background:
    radial-gradient(circle at 1px 1px, rgba(23, 20, 18, .14) 1.2px, transparent 1.6px) 0 0 / 18px 18px,
    linear-gradient(180deg, var(--sky-pale), var(--paper) 78%);
  border-bottom: var(--outline);
}

.hero-grid {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 5vw, 56px) 56px;
}

.logo {
  display: block;
  width: min(360px, 70%);
  height: auto;
  margin: 0 0 18px -6px;
  filter: drop-shadow(5px 6px 0 rgba(23, 20, 18, .18));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 5.2vw, 62px);
  line-height: .98;
  text-wrap: balance;
}

h1::after {
  content: "";
  display: block;
  width: 120px;
  height: 10px;
  margin-top: 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red) 0 25%, var(--orange) 0 50%, var(--green) 0 75%, var(--yellow) 0);
}

.lead {
  max-width: 32em;
  margin: 18px 0 28px;
  color: var(--ink-soft);
  font-size: 17px;
}

.lead b { color: var(--ink); }

.facts { display: flex; gap: 12px; margin: 0; flex-wrap: wrap; }

.facts div {
  padding: 10px 16px 8px;
  border: var(--outline);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}

.facts dt { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.facts dd { margin: 2px 0 0; color: var(--ink-soft); font-size: 13px; font-weight: 700; }

.party {
  position: relative;
  display: flex;
  align-items: flex-end;
  margin-top: 46px;
  height: 200px;
}

.party .postcard {
  position: absolute;
  left: 110px;
  bottom: 18px;
  width: 330px;
  height: auto;
  border: var(--outline);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
  z-index: 0;
}

.party img:not(.postcard) {
  position: relative;
  z-index: 1;
  width: auto;
  height: 180px;
  margin-right: -26px;
  filter: drop-shadow(0 8px 0 rgba(23, 20, 18, .22));
}

.party img:nth-child(3) { height: 192px; z-index: 2; }

.party .pet { height: 64px; margin-left: 26px; animation: hop 2.4s ease-in-out infinite; }

@keyframes hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- form card --------------------------------------------------------- */

.card {
  position: relative;
  padding: clamp(22px, 4vw, 32px);
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--ink);
}

.sticker {
  position: absolute;
  top: -16px;
  right: 22px;
  padding: 5px 14px;
  border: var(--outline);
  border-radius: 999px;
  background: var(--yellow);
  font: 900 14px/1.3 var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: rotate(4deg);
}

.card h2 { margin: 0; font-size: 28px; }
.card-lead { margin: 4px 0 14px; color: var(--ink-soft); font-size: 14px; }

label { display: block; margin-top: 14px; font-weight: 700; font-size: 14px; }

.field { position: relative; }

input[type="text"], input:not([type]), input[type="password"], input[type="email"], input[type="tel"] {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: box-shadow .12s;
}

.field input { padding-right: 96px; }

input::placeholder { color: #a39a8c; }

input:focus { outline: none; box-shadow: 0 0 0 4px var(--sky); }

input[aria-invalid="true"] { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

.badge, .reveal {
  position: absolute;
  right: 8px;
  top: calc(50% + 3px);
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 800;
}

.badge { padding: 3px 9px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper-deep); }
.badge[data-tone="ok"] { background: var(--green); color: #fff; }
.badge[data-tone="bad"] { background: var(--red); color: #fff; }
.badge[data-tone="wait"] { color: var(--ink-soft); }

.reveal {
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.reveal:hover { background: var(--yellow); }

.hint { min-height: 1.4em; margin: 5px 0 0; font-size: 13px; color: var(--ink-soft); }
.hint[data-tone="bad"] { color: var(--bad); font-weight: 700; }
.hint[data-tone="ok"] { color: var(--ok); font-weight: 700; }

.meter {
  height: 8px;
  margin-top: 8px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper-deep);
  overflow: hidden;
}

.meter span { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s, background .2s; }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  font-weight: 400;
  color: var(--ink-soft);
}

.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); }

button { font: inherit; }

.primary, .secondary {
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  border: var(--outline);
  border-radius: 14px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 17px;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .06s, box-shadow .06s, background .15s;
}

.primary { background: var(--yellow); color: var(--ink); }
.secondary { background: var(--white); color: var(--ink); }

.primary:hover { background: var(--orange); }
.secondary:hover { background: var(--paper-deep); }
.primary:active, .secondary:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.primary:disabled { background: var(--paper-deep); color: var(--ink-soft); cursor: progress; transform: none; }

.optional { color: var(--ink-soft); font-weight: 600; }

.otp-input {
  width: 100%;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .5em;
  text-align: center;
  text-indent: .5em;
}

.otp-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }

.text-button {
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.text-button:disabled { color: var(--ink-soft); text-decoration: none; cursor: default; }

.message { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; font-weight: 700; text-align: center; }
.message[data-tone="bad"] { color: var(--bad); }

.done { text-align: center; }

.stamp {
  width: 92px;
  height: 92px;
  margin: 2px auto 14px;
  padding: 7px;
  border: var(--outline);
  border-radius: 50%;
  background: conic-gradient(var(--red) 0 25%, var(--orange) 0 50%, var(--green) 0 75%, var(--yellow) 0);
  transform: rotate(-8deg);
}

.stamp span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: var(--outline);
  border-radius: 50%;
  background: var(--white);
  font-size: 24px;
}

.done ol { text-align: left; margin: 18px 0 0; padding-left: 22px; color: var(--ink-soft); }
.done li { margin: 6px 0; }

code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-deep);
  font-size: 13px;
  color: var(--ink);
}

/* ---- sections ---------------------------------------------------------- */

.band { padding: clamp(48px, 8vw, 88px) 0; border-bottom: var(--outline); }
.band.sky { background: var(--sky-pale); }
.band.night { background: var(--night); color: #fff; }
.band.night .eyebrow { color: var(--yellow); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 56px); }

.band h2 { margin: 0; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.05; text-wrap: balance; }
.band p { color: var(--ink-soft); }
.band.night p { color: #c9d3dc; }
.band b { color: inherit; }

.section-lead { margin: 10px 0 28px; max-width: 40em; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.about h2 { margin-bottom: 16px; }

.hero-art {
  position: relative;
  margin: 0;
  border: var(--outline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}

.hero-art img { display: block; width: 100%; height: auto; }

.hero-art figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 800;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: feature;
}

.features li {
  position: relative;
  padding: 22px 20px 18px 22px;
  border: var(--outline);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}

.features li::before {
  counter-increment: feature;
  content: counter(feature, decimal-leading-zero);
  position: absolute;
  top: -14px;
  left: 16px;
  padding: 2px 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--sky);
  font-size: 13px;
}

.features li:nth-child(2)::before { background: var(--orange); }
.features li:nth-child(3)::before { background: var(--green); }
.features li:nth-child(4)::before { background: var(--yellow); }
.features li:nth-child(5)::before { background: var(--red); color: #fff; }
.features li:nth-child(6)::before { background: var(--pink); }

.features h3 { margin: 0 0 6px; font-size: 17px; }
.features p { margin: 0; font-size: 14px; }

.stats { margin-top: 40px; }
.stats h3 { margin: 0 0 14px; font-size: 18px; }

.stats dl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; }

.stats dl div {
  --tone: var(--yellow);
  padding: 12px 14px;
  border: var(--outline);
  border-radius: 12px;
  background: var(--tone);
  box-shadow: 4px 4px 0 var(--ink);
}

.stats dl div[data-tone="red"] { --tone: var(--red); color: #fff; }
.stats dl div[data-tone="orange"] { --tone: var(--orange); }
.stats dl div[data-tone="sky"] { --tone: var(--sky); }
.stats dl div[data-tone="green"] { --tone: var(--green); color: #fff; }
.stats dl div[data-tone="yellow"] { --tone: var(--yellow); }
.stats dl div[data-tone="pink"] { --tone: var(--pink); }

.stats dt { font-size: 22px; }
.stats dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; opacity: .92; }
.stats dl div[data-tone="red"] dd, .stats dl div[data-tone="green"] dd { color: #fff; }

/* ---- memories ---------------------------------------------------------- */

.memory {
  background:
    radial-gradient(circle at 1px 1px, rgba(23, 20, 18, .12) 1.2px, transparent 1.6px) 0 0 / 18px 18px,
    var(--paper-deep);
}

.album {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.album li {
  padding: 12px 12px 14px;
  border: var(--outline);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}

.album li:nth-child(2) { transform: rotate(1.2deg) translateY(14px); }
.album li:nth-child(3) { transform: rotate(-.6deg); }

.album img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 3px; }

.album figcaption { margin: 10px 2px 0; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.album figcaption b { color: var(--ink); }

.memory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  margin-top: 56px;
}

/* The original Sera 4 speech bubble: white, 1 px dark border, 5 px radius. */
.bubbles { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }

.bubbles li {
  position: relative;
  align-self: flex-start;
  max-width: 85%;
  padding: 7px 12px;
  border: 1px solid #2b2622;
  border-radius: 5px;
  background: #fff;
  color: #1b1816;
  font-size: 14px;
  line-height: 1.3;
}

.bubbles li::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -8px;
  border: 8px solid transparent;
  border-top-color: #2b2622;
  border-bottom: 0;
  border-left-width: 5px;
  border-right-width: 5px;
}

.bubbles li:nth-child(even) { align-self: flex-end; }
.bubbles li:nth-child(even)::after { left: auto; right: 18px; }

.bubbles li.shout {
  background: #fff3a6;
  border: 2px solid var(--orange);
  box-shadow: 3px 3px 0 rgba(23, 20, 18, .18);
  font-weight: 700;
}

.bubbles li.shout::after { border-top-color: var(--orange); }

.promises { display: grid; gap: 16px; }

.promises article {
  --tone: var(--yellow);
  padding: 18px 20px 18px 24px;
  border: var(--outline);
  border-left-width: 14px;
  border-left-color: var(--tone);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}

.promises article[data-tone="green"] { --tone: var(--green); }
.promises article[data-tone="yellow"] { --tone: var(--yellow); }
.promises article[data-tone="pink"] { --tone: var(--pink); }

.promises h3 { margin: 0 0 6px; font-size: 19px; }
.band .promises p { margin: 0; font-size: 14px; }

.memory-note { margin: 32px 0 0; font-size: 13px; }

/* ---- jobs -------------------------------------------------------------- */

.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.job {
  --tone: var(--yellow);
  position: relative;
  display: flex;
  flex-direction: column;
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s;
}

.job::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 200px;
  background:
    radial-gradient(circle at 1px 1px, rgba(23, 20, 18, .16) 1.2px, transparent 1.6px) 0 0 / 14px 14px,
    var(--tone);
  border-bottom: var(--outline);
}

.job > div { position: relative; padding: 10px 20px 20px; }

.job:hover { transform: translate(-3px, -3px); }

.job[data-tone="red"] { --tone: #ff8a7c; }
.job[data-tone="silver"] { --tone: #c3cfe0; }
.job[data-tone="pink"] { --tone: #f6a3cc; }
.job[data-tone="blue"] { --tone: var(--sky); }
.job[data-tone="gold"] { --tone: var(--yellow); }
.job[data-tone="brown"] { --tone: #e4b483; }

.job img {
  position: relative;
  width: 100%;
  height: 200px;
  padding-top: 14px;
  object-fit: contain;
  filter: drop-shadow(0 6px 0 rgba(23, 20, 18, .25));
}

.job h3 {
  display: inline-block;
  margin: 0;
  padding: 2px 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--tone);
  font-size: 20px;
}

.band .job .quote { margin: 10px 0 10px; color: var(--ink-soft); font-style: italic; font-size: 14px; }

.job dl { margin: 0; font-size: 13px; }
.job dl div { display: flex; gap: 8px; padding: 4px 0; border-top: 2px dotted var(--line); }
.job dt { flex: 0 0 96px; color: var(--ink-soft); }
.job dd { flex: 1; min-width: 0; margin: 0; font-weight: 700; }

/* ---- monsters ---------------------------------------------------------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.chip {
  padding: 7px 16px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

.bestiary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }

.bestiary li {
  position: relative;
  padding: 16px 16px 18px;
  border: 3px solid #fff;
  border-radius: var(--radius);
  background: #22323e;
  text-align: center;
  box-shadow: 5px 5px 0 var(--yellow);
}

.bestiary li[hidden] { display: none; }

.bestiary img { width: 100%; height: 140px; object-fit: contain; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .45)); transition: transform .2s; }
.bestiary li:hover img { transform: scale(1.06) translateY(-4px); }

.bestiary h3 { margin: 10px 0 4px; font-size: 18px; color: #fff; }
.band .bestiary p { margin: 0; font-size: 13px; }

.tier {
  position: absolute;
  top: -12px;
  left: 12px;
  padding: 2px 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  background: var(--green);
  color: #fff;
}

[data-tier="menengah"] .tier { background: var(--orange); color: var(--ink); }
[data-tier="kuat"] .tier { background: var(--red); }

/* ---- lands ------------------------------------------------------------- */

.lands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }

.lands li {
  position: relative;
  border: var(--outline);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 13 / 12;
  box-shadow: var(--shadow);
  background: var(--night);
}

.lands img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lands li:hover img { transform: scale(1.05); }

.lands li > div {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 14px 12px;
  background: var(--white);
  border-top: var(--outline);
}

.lands h3 { margin: 0; font-size: 18px; }
.band .lands p { margin: 2px 0 0; font-size: 13px; }

/* ---- call to action ---------------------------------------------------- */

.cta {
  background:
    radial-gradient(circle at 1px 1px, rgba(23, 20, 18, .18) 1.2px, transparent 1.6px) 0 0 / 18px 18px,
    var(--orange);
}

.steps { text-align: center; }

.steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 30px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  text-align: left;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 18px 16px 62px;
  border: var(--outline);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink-soft);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 18px;
}

.steps b { color: var(--ink); }

.primary.link, .secondary.link { display: inline-block; width: auto; margin: 0; padding: 13px 36px; text-decoration: none; }

.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.lead a { color: var(--ink); font-weight: 700; }

/* ---- download page ----------------------------------------------------- */

.nav a[aria-current="page"] { border-color: var(--ink); background: var(--yellow); }

.nav a.nav-cta { border-color: var(--ink); background: var(--yellow); }

.dl-hero .wrap { padding-top: clamp(28px, 5vw, 56px); padding-bottom: 56px; }

.dl-hero .lead { max-width: 38em; }

.dl-detected {
  display: inline-block;
  margin: -10px 0 26px;
  padding: 4px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--ink);
}

.dl-card[data-platform="windows"] { --tone: var(--sky); }
.dl-card[data-platform="android"] { --tone: var(--green); }

.dl-card.is-mine { box-shadow: 8px 8px 0 var(--tone), 8px 8px 0 3px var(--ink); }

.dl-pick { background: var(--tone); }

.dl-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }

.dl-icon {
  flex: none;
  width: 64px;
  height: 64px;
  padding: 12px;
  border: var(--outline);
  border-radius: 16px;
  background: var(--tone);
  fill: var(--ink);
}

.dl-head h2 { margin: 0; font-size: 30px; line-height: 1; }
.dl-sub { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; font-weight: 700; }

.dl-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }

.dl-facts div { padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); }
.dl-facts dt { color: var(--ink-soft); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.dl-facts dd { margin: 2px 0 0; font: 900 16px/1.2 var(--display); overflow-wrap: anywhere; }

.dl-req { flex: 1; margin: 0 0 20px; padding: 0; list-style: none; font-size: 14px; color: var(--ink-soft); }
.dl-req li { position: relative; padding: 3px 0 3px 22px; }
.dl-req li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--tone);
}
.dl-req b { color: var(--ink); }

.dl-button { width: 100%; text-align: center; }

.dl-error { margin: 22px 0 0; font-weight: 700; color: var(--bad); }

.dl-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 30px; }

.dl-guide {
  padding: 22px 24px;
  border: var(--outline);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}

.dl-guide h3 { margin: 0 0 12px; font-size: 20px; }

.dl-steps { margin: 0; padding: 0; list-style: none; counter-reset: guide; }

.dl-steps li {
  counter-increment: guide;
  position: relative;
  padding: 6px 0 10px 44px;
  color: var(--ink-soft);
  font-size: 15px;
}

.dl-steps li::before {
  content: counter(guide);
  position: absolute;
  left: 0;
  top: 4px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font: 900 15px/1 var(--display);
}

.dl-guide[data-platform="windows"] .dl-steps li::before { background: var(--sky); }
.dl-guide[data-platform="android"] .dl-steps li::before { background: var(--green); color: #fff; }

.dl-steps b, .dl-steps a { color: var(--ink); }
.dl-steps code { overflow-wrap: anywhere; }

.dl-release { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: start; }

.dl-date { margin: 6px 0 0; font-weight: 700; }
.dl-notes { margin: 14px 0 0; font-size: 16px; color: var(--ink); }

.dl-hash {
  padding: 16px 18px;
  border: var(--outline);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}

.dl-hash summary { cursor: pointer; font-weight: 800; }
.band .dl-hash p { margin: 10px 0; font-size: 13px; }
.dl-hash dl { margin: 0; }
.dl-hash dl div { padding: 8px 0; border-top: 2px dotted var(--line); }
.dl-hash dt { font-size: 12px; font-weight: 800; }
.dl-hash dd { margin: 4px 0 0; }
.dl-hash dd code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }

.dl-cta-lead { margin: 10px auto 24px; max-width: 34em; color: var(--ink) !important; }

/* ---- footer ------------------------------------------------------------ */

.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px clamp(16px, 5vw, 56px);
  background: var(--night);
  color: #c9d3dc;
  font-size: 13px;
  text-align: center;
}

.foot img { width: 56px; height: auto; }

/* ---- responsive -------------------------------------------------------- */

@media (max-width: 1020px) {
  .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bestiary, .lands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav { display: none; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .card { margin-top: 10px; }
  .party .postcard { left: 80px; width: 280px; }
}

@media (max-width: 860px) {
  .dl-grid, .dl-guides, .dl-release { grid-template-columns: minmax(0, 1fr); }
  .album { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .album li:nth-child(2) { transform: rotate(1.2deg); }
  .memory-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .features, .steps ol { grid-template-columns: minmax(0, 1fr); }
  .jobs { grid-template-columns: minmax(0, 1fr); }
  .bestiary, .lands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .party { height: 150px; margin-top: 34px; }
  .party img:not(.postcard) { height: 130px; }
  .party img:nth-child(3) { height: 140px; }
  .party .pet { height: 48px; }
  .party .postcard { left: 60px; bottom: 10px; width: 220px; }
  .logo { width: min(280px, 80%); }
}

@media (max-width: 420px) {
  .dl-facts { grid-template-columns: minmax(0, 1fr); }
  .dl-card { padding: 22px 18px 20px; }
  .status { width: 100%; justify-content: space-between; }
  .status li { padding: 4px 8px; }
  .facts dt { font-size: 24px; }
  .party .postcard { display: none; }
  .party .pet { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .party .pet { animation: none; }
  .job, .bestiary img, .lands img, .primary, .secondary { transition: none; }
}
