@font-face {
  font-family: "Jakarta";
  src: url("/fonts/jakarta.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #f6f6f7;
  --card: #ffffff;
  --ink: #14131a;
  --ink-2: #3d3c47;
  --muted: #6e6d78;
  --faint: #9c9ba6;
  --line: #e7e7eb;
  --line-2: #d9d9df;
  --nav: #14131a;
  --nav-2: #22212b;
  --yellow: #ffc950;
  --yellow-soft: #fff6e0;
  --green: #1f8a3b;
  --green-soft: #e8f5ec;
  --red: #d33a32;
  --red-soft: #fdeceb;
  --blue: #3b6fe0;
  --blue-soft: #edf2fd;
  --amber-soft: #fff6e6;
  --amber-line: #f0d39a;
  --amber-ink: #7a5300;
  --radius: 10px;
  --font: "Jakarta", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

html { background: var(--bg); overflow-x: clip; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.hidden { display: none !important; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.wide { max-width: 1320px; }

.sprite { image-rendering: pixelated; }

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

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

.nav { background: var(--nav); color: #fff; }
.nav-inner { display: flex; align-items: center; gap: 16px; height: 60px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo img { image-rendering: pixelated; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-link { color: #cfcfd8; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav-link:hover { color: #fff; text-decoration: none; }

.btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn-yellow:hover { background: #ffd36e; text-decoration: none; }

@media (max-width: 719px) { .hide-sm { display: none !important; } }

/* ---------- product page ---------- */

.page-head { padding: 28px 0 18px; }
.page-head h1 { margin: 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 48px; }

@media (min-width: 960px) {
  .product { grid-template-columns: minmax(0, 1fr) 372px; grid-template-rows: auto 1fr; gap: 24px; }
  .side { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 16px; }
  .more { grid-column: 1; }
}

.stack { display: grid; gap: 20px; min-width: 0; }

.card { background: var(--card); border-radius: var(--radius); }
.pad { padding: 20px; }
@media (min-width: 720px) { .pad { padding: 24px; } }

.label { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.label.gap { margin-top: 28px; }

.chip-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--yellow);
  border-radius: 8px;
  background: var(--yellow-soft);
  font-weight: 600;
  font-size: 14px;
}

.helper { display: block; margin-top: 10px; font-size: 14px; }

/* package tiles */

.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pack {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 2px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.12s;
}

.pack:hover { border-color: #b8b7c2; }
.pack[aria-checked="true"] { border-color: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); background: var(--yellow-soft); }

.pack[aria-checked="true"]::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2314131a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.pack-badge {
  position: absolute;
  top: 0;
  left: 12px;
  padding: 2px 8px;
  border-radius: 0 0 6px 6px;
  background: var(--yellow);
  font-size: 11px;
  font-weight: 600;
}

.pack-art { width: 56px; height: 56px; margin: 6px 0 4px -6px; object-fit: none; object-position: 50% 62%; }
.pack-qty { font-size: 15px; font-weight: 600; }
.pack-eta { font-size: 13px; color: var(--muted); }
.pack-price { margin-top: 8px; font-weight: 700; color: var(--green); }
.pack-price.tbd { color: var(--faint); font-weight: 500; font-size: 13px; }

/* fields */

.fields { display: grid; gap: 14px; }
@media (min-width: 720px) { .fields.two { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }

.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--ink-2); }

input[type="email"], input[type="text"], input[type="password"], input[type="number"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.12s, box-shadow 0.12s;
}

input::placeholder { color: var(--faint); }
input:hover { border-color: #b8b7c2; }

input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(255, 201, 80, 0.55);
}

.pw-row { position: relative; }
.pw-row input { padding-right: 64px; }
.pw-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 10px;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding-top: 4px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }

.turnstile { margin-top: 14px; }

/* recent catches */

.section-head { margin-bottom: 16px; }
.section-head h2, .section-title { margin: 0; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.section-head p { margin: 4px 0 0; font-size: 14px; }
.section-title { margin-bottom: 14px; }

.species { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.species li { display: grid; justify-items: center; gap: 0; padding: 8px 6px 10px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.species img { width: 64px; height: 64px; object-fit: none; object-position: 50% 62%; }
.species-name { font-size: 13px; font-weight: 500; line-height: 1.3; }
.species-count { font-size: 12px; color: var(--muted); }

.link-btn { margin-top: 12px; padding: 0; border: 0; background: none; color: var(--blue); font: inherit; font-size: 14px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

.footnote { margin: 14px 0 0; font-size: 12px; color: var(--muted); line-height: 1.55; }
.footnote:empty { display: none; }

/* side summary */

.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.rows li span { color: var(--muted); }
.rows li b { font-weight: 500; text-align: right; }
@media (min-width: 720px) { .rows li { padding: 14px 24px; } }

.side-body { padding: 16px 20px 20px; }
@media (min-width: 720px) { .side-body { padding: 18px 24px 24px; } }

.stepper { display: grid; grid-template-columns: 44px 1fr 44px; gap: 6px; }
.stepper button { height: 42px; border: 0; border-radius: 6px; background: var(--bg); color: var(--ink); font: inherit; font-size: 18px; cursor: pointer; }
.stepper button:hover:not(:disabled) { background: #ececf0; }
.stepper button:disabled { color: var(--line-2); cursor: default; }
.stepper input { height: 42px; border: 0; border-radius: 6px; background: var(--bg); text-align: center; font-weight: 500; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stock { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.total span { font-weight: 600; }
.total .amount { font-size: 1.5rem; font-weight: 700; color: var(--green); letter-spacing: -0.01em; }
.total .amount.tbd { color: var(--ink); font-size: 1.1rem; font-weight: 600; }

.btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn-buy:hover:not(:disabled) { background: #2b2a35; }
.btn-buy:disabled { opacity: 0.6; cursor: default; }

.error { margin: 10px 0 0; color: var(--red); font-size: 13px; }
.error:empty { display: none; }
.checkout-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--bg); color: var(--ink-2); font-size: 13px; }

.trust { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.trust li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 13px; color: var(--ink-2); }
.trust svg { width: 18px; height: 18px; margin-top: 1px; color: var(--blue); }

/* how it works + faq */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.steps li { counter-increment: s; font-size: 14px; color: var(--muted); }
.steps li b::before { content: counter(s) ". "; color: var(--faint); }
.steps li b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-weight: 500; font-size: 15px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 4px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 14px; max-width: 62em; }

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

.foot { margin-top: 32px; background: var(--nav); color: #a3a2ae; font-size: 13px; }
.foot-inner { display: grid; gap: 20px; padding-top: 32px; padding-bottom: 24px; }
@media (min-width: 720px) { .foot-inner { grid-template-columns: 1fr minmax(0, 400px); align-items: center; } }
.foot p { margin: 8px 0 0; }
.foot .logo { font-size: 1rem; }
.track-form label { display: block; color: #fff; font-weight: 600; margin-bottom: 8px; }
.track { display: flex; gap: 8px; }
.track input { height: 40px; font-size: 14px; background: var(--nav-2); border-color: #34333f; color: #fff; min-width: 0; }
.track-err { color: #ff9a8f; margin: 6px 0 0; }
.track-err:empty { display: none; }
.legal { border-top: 1px solid #2a2933; padding-top: 16px; padding-bottom: 22px; font-size: 12px; color: #7d7c89; }
.legal p { margin: 0 0 4px; }

/* ---------- status page ---------- */

.order-wrap { max-width: 920px; padding-top: 24px; padding-bottom: 48px; display: grid; gap: 16px; }

.order-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; }
.order-head h1 { margin: 0; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.order-head .sub { color: var(--muted); font-size: 13px; margin: 2px 0 0; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--blue-soft); color: var(--blue); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.active, .badge.queued { background: var(--green-soft); color: var(--green); }
.badge.completed { background: var(--yellow-soft); color: #7a5400; }
.badge.failed, .badge.refunded { background: var(--red-soft); color: var(--red); }
.badge.needs_login { background: var(--amber-soft); color: var(--amber-ink); }

.track-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.track-steps li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 13px; color: var(--faint); }
.track-steps li::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.track-steps li:first-child::before { display: none; }
.track-steps i { position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); font-style: normal; font-size: 12px; font-weight: 600; color: var(--faint); }
.track-steps li.done, .track-steps li.now { color: var(--ink); }
.track-steps li.done::before, .track-steps li.now::before { background: var(--ink); }
.track-steps li.done i { background: var(--ink); border-color: var(--ink); color: #fff; }
.track-steps li.now i { border-color: var(--ink); color: var(--ink); }
.track-steps.stopped li.now i { border-color: var(--red); color: var(--red); }

.progress { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.progress-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.count { margin: 0; font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.count small { font-size: 0.5em; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.phase { margin: 0 0 4px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-align: right; }
.phase:empty { display: none; }
.bar { height: 8px; margin: 12px 0 12px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.bar > div { height: 100%; width: 0; border-radius: 999px; background: var(--yellow); transition: width 0.6s ease; }
.status-line { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 46em; }
.meta { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.cooldown { margin-top: 20px; padding: 18px; border-radius: 10px; background: var(--nav); color: #fff; }
.cd-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cd-label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #a3a2ae; }
.cd-timer { margin: 2px 0 0; font-size: 2.6rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cd-ready { margin: 2px 0 0; font-size: 13px; color: #cfcfd8; }
.cd-bar { height: 6px; margin: 16px 0 10px; border-radius: 999px; background: #34333f; overflow: hidden; }
.cd-bar > div { height: 100%; width: 0; border-radius: 999px; background: var(--yellow); transition: width 1s linear; }
.cd-note { margin: 0; font-size: 12px; color: #a3a2ae; }

.login-fix { box-shadow: inset 0 0 0 1px var(--amber-line); }
.login-fix h2 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 700; }
.login-reason { margin: 0 0 6px; padding: 12px 14px; border-radius: 8px; background: var(--amber-soft); color: var(--amber-ink); font-size: 14px; }
.login-fix .field { margin-top: 12px; }
.login-fix .hint { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); }

.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.card-head h2, .card > h2 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.card-head .meta { margin: 0; }

.catches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.catches li { display: grid; justify-items: center; align-content: start; gap: 1px; padding: 12px 10px 14px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.catches li.caught { background: linear-gradient(180deg, var(--yellow-soft), #fff 70%); border-color: #f3e1b0; }
.catches img { width: 96px; height: 96px; object-fit: contain; }
.catches li.slot { border-style: dashed; border-color: var(--line-2); }
.catches li.slot img { opacity: 0.25; width: 40px; height: 40px; margin: 28px 0 22px; image-rendering: pixelated; }
.dex { font-size: 12px; color: var(--faint); }
.catch-name { font-weight: 600; font-size: 15px; }
.catch-meta { font-size: 12px; color: var(--muted); white-space: pre-line; line-height: 1.5; }
.slot .catch-name { color: var(--faint); font-weight: 500; font-size: 14px; }
.empty { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

.activity { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.ev { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0 10px 22px; border-top: 1px solid var(--line); font-size: 14px; }
.ev:first-child { border-top: 0; padding-top: 2px; }
.ev::before { content: ""; position: absolute; left: 4px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.ev:first-child::before { top: 9px; }
.ev time { color: var(--faint); font-size: 12px; white-space: nowrap; }
.ev-step::before { background: var(--blue); }
.ev-found::before { background: var(--yellow); }
.ev-caught::before, .ev-done::before { background: var(--green); }
.ev-caught .ev-text, .ev-done .ev-text { font-weight: 600; }
.ev-warn::before { background: var(--red); }
.ev-skipped .ev-text, .ev-info .ev-text { color: var(--ink-2); }

.linkbox { display: flex; gap: 8px; margin-top: 12px; }
.linkbox input { font-size: 13px; height: 42px; min-width: 0; background: var(--bg); border-color: transparent; }
.btn-dark { flex: none; height: 42px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-dark:hover { background: #2b2a35; }

/* ---------- admin ---------- */

.admin-wrap { max-width: 1320px; padding-top: 24px; padding-bottom: 40px; }
.admin-login { max-width: 400px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar h2 { margin: 0; font-size: 1.1rem; }
.toolbar span { display: flex; gap: 8px; }
.block-title { margin: 0 0 12px; font-size: 1.05rem; }
.btn { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.btn:hover:not(:disabled) { background: var(--bg); }
.btn.danger { color: var(--red); border-color: #f0c4c0; }
.btn.danger:hover:not(:disabled) { background: var(--red-soft); }
.btn:disabled { opacity: 0.5; cursor: default; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafafb; }
th { background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 500; }
td code { font-size: 12px; }
td.note { white-space: normal; min-width: 140px; max-width: 220px; color: var(--muted); }
td.actions .row { display: flex; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
