:root {
  --bg: #0f1e22;
  --ink: #f6efe1;
  --ink-soft: #c9c0ad;
  --card: #fbf6ea;
  --card-ink: #2b2418;
  --card-soft: #6e6350;
  --line: #ddd2bb;
  --gold: #d9a441;
  --gold-deep: #a8731b;
  --teal: #2f8f80;
  --ok: #2f8f5b;
  --bad: #c0462f;
  --warn: #c58a1c;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

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

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(10, 22, 26, .94) 0%, rgba(10, 22, 26, .78) 45%, rgba(10, 22, 26, .35) 100%),
    url("elim.webp") center 30% / cover no-repeat;
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(10, 22, 26, .92), rgba(10, 22, 26, .6));
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px clamp(16px, 5vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .04em;
  text-decoration: none;
}

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

.status li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--ink-soft);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7d8a8c;
}

.status li[data-state="up"] .dot { background: #4fd18b; box-shadow: 0 0 0 3px rgba(79, 209, 139, .2); }
.status li[data-state="down"] .dot { background: #ef6a4c; }

main { flex: 1; }

.layout {
  width: 100%;
  min-height: calc(100vh - 70px);
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
  padding: 24px clamp(16px, 5vw, 56px) 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 15em;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.1;
  font-weight: 700;
  text-wrap: balance;
}

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

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

.facts {
  display: flex;
  gap: clamp(20px, 4vw, 44px);
  margin: 0;
}

.facts dt {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.facts dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.card {
  background: var(--card);
  color: var(--card-ink);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  border-top: 4px solid var(--gold);
}

.card h2 {
  margin: 0 0 20px;
  font-size: 22px;
}

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

.optional { color: var(--card-soft); font-weight: 400; }

.field { position: relative; }

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

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

input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 143, 128, .2);
}

input[aria-invalid="true"] { border-color: var(--bad); }

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

.badge { padding: 3px 8px; border-radius: 999px; }
.badge[data-tone="ok"] { background: #e2f3e8; color: var(--ok); }
.badge[data-tone="bad"] { background: #f8e2dc; color: var(--bad); }
.badge[data-tone="wait"] { background: #efe9dc; color: var(--card-soft); }

.reveal {
  border: 0;
  background: none;
  color: var(--teal);
  cursor: pointer;
  padding: 6px;
}

.hint {
  min-height: 1.4em;
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--card-soft);
}

.hint[data-tone="bad"] { color: var(--bad); }
.hint[data-tone="ok"] { color: var(--ok); }

.meter {
  height: 4px;
  margin-top: 7px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

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

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

.check input { margin-top: 4px; accent-color: var(--teal); }

button { font: inherit; }

.primary, .secondary {
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .15s, transform .05s;
}

.primary {
  border: 0;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #2a1c05;
}

.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--card-ink);
}

.primary:hover, .secondary:hover { filter: brightness(1.06); }
.primary:active { transform: translateY(1px); }
.primary:disabled { filter: grayscale(.6); opacity: .7; cursor: progress; }

.message {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-size: 14px;
  text-align: center;
}

.message[data-tone="bad"] { color: var(--bad); }

.done { text-align: center; }

.seal {
  width: 64px;
  height: 64px;
  margin: 4px auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e2f3e8;
  color: var(--ok);
  font-size: 30px;
  font-weight: 700;
}

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

.done li { margin: 6px 0; }

code {
  padding: 1px 6px;
  border-radius: 5px;
  background: #efe7d6;
  font-size: 13px;
  color: var(--card-ink);
}

.foot {
  padding: 18px clamp(16px, 5vw, 56px);
  background: #0a1619;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

/* ---- navigation ------------------------------------------------------- */

.nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
  margin-left: 12px;
}

.nav a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.nav a:hover, .nav a:focus-visible { background: rgba(255, 255, 255, .1); color: var(--ink); }

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

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

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

.party img {
  width: auto;
  height: 180px;
  margin-right: -26px;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .45));
}

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

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

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

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

.band {
  padding: clamp(48px, 8vw, 88px) 0;
  background: rgba(10, 22, 26, .94);
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.band.alt { background: rgba(18, 36, 40, .96); }

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

.band h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  text-wrap: balance;
}

.band p { color: var(--ink-soft); }
.band b { color: var(--ink); }

.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 {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  transform: rotate(1.2deg);
}

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

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

.features li {
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-left: 3px solid var(--gold);
}

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

.stats { margin-top: 36px; }
.stats h3 { margin: 0 0 12px; font-size: 16px; color: var(--gold); letter-spacing: .04em; }

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

.stats dl div {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--card);
  color: var(--card-ink);
}

.stats dt { font-weight: 800; font-size: 18px; color: var(--gold-deep); }
.stats dd { margin: 2px 0 0; font-size: 13px; color: var(--card-soft); }

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

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

.job {
  --tone: #d9a441;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--card-ink);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
  transition: transform .2s;
}

.job::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 200px;
  background:
    radial-gradient(ellipse at 50% 85%, color-mix(in srgb, var(--tone) 45%, transparent), transparent 65%),
    linear-gradient(180deg, color-mix(in srgb, var(--tone) 22%, #fbf6ea), #fbf6ea);
}

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

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

.job[data-tone="red"] { --tone: #d0503a; }
.job[data-tone="silver"] { --tone: #7d8fb0; }
.job[data-tone="pink"] { --tone: #c06ad0; }
.job[data-tone="blue"] { --tone: #3a6fd0; }
.job[data-tone="gold"] { --tone: #e0b030; }
.job[data-tone="brown"] { --tone: #b07040; }

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

.job h3 {
  margin: 0;
  font-size: 21px;
  color: var(--card-ink);
  border-bottom: 3px solid var(--tone);
  display: inline-block;
}

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

.job dl { margin: 0; font-size: 13px; }
.job dl div { display: flex; gap: 8px; padding: 3px 0; border-top: 1px dashed var(--line); }
.job dt { flex: 0 0 96px; color: var(--card-soft); }
.job dd { flex: 1; min-width: 0; margin: 0; font-weight: 600; }

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

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

.chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #2a1c05; }

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

.bestiary li {
  position: relative;
  padding: 16px 16px 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #2a4a50 0%, #1a3034 62%);
  border: 1px solid rgba(255, 255, 255, .08);
  text-align: center;
}

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

.bestiary img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .4));
  transition: transform .25s;
}

.bestiary li:hover img { transform: scale(1.06) translateY(-4px); }

.bestiary h3 { margin: 10px 0 4px; font-size: 17px; }
.band .bestiary p { margin: 0; font-size: 13px; }

.tier {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  background: #2f8f5b;
  color: #fff;
}

[data-tier="menengah"] .tier { background: var(--warn); }
[data-tier="kuat"] .tier { background: var(--bad); }

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

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

.lands li {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 13 / 12;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .4);
}

.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: 36px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(8, 18, 20, .92));
}

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

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

.cta { background: linear-gradient(135deg, rgba(47, 143, 128, .92), rgba(17, 52, 58, .96)); }

.steps { text-align: center; }

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

.steps li {
  counter-increment: step;
  padding: 16px 18px 16px 58px;
  position: relative;
  border-radius: 12px;
  background: rgba(0, 0, 0, .22);
  color: var(--ink-soft);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #2a1c05;
  font-weight: 800;
}

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

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

@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: 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)); }
  .party { height: 140px; }
  .party img { height: 130px; }
  .party img:nth-child(2) { height: 140px; }
  .party .pet { height: 48px; }
}

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

@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding-top: 8px; }
  .lead { margin-bottom: 24px; }
  .backdrop {
    background:
      linear-gradient(180deg, rgba(10, 22, 26, .78) 0%, rgba(10, 22, 26, .94) 60%),
      url("elim.webp") center top / cover no-repeat;
  }
}

@media (max-width: 420px) {
  .status { width: 100%; justify-content: space-between; }
  .status li { padding: 5px 8px; }
  .facts dt { font-size: 24px; }
}
