/* Inter, the body face named in the logo kit. Self hosted because the CSP is
   style-src 'self', which blocks a Google Fonts stylesheet. One variable file
   covers every weight the site uses. SIL OFL 1.1, see fonts/inter-LICENSE.txt. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bg: #0b0b0f;
  --panel: #15151c;
  --panel-2: #1d1d27;
  --line: #2a2a36;
  --text: #f4f2ee;
  --muted: #9a98a6;
  --sun-1: #ff7a18;
  --sun-2: #ff2e63;
  --sun-3: #7b2ff7;
  --live: #23d18b;
  --held: #ffb020;
  --sold: #6b6a75;
  --missed: #a8564a;
  --radius: 14px;
  --grad: linear-gradient(100deg, var(--sun-1), var(--sun-2) 55%, var(--sun-3));
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  /* Display face. The brand display type is Neuropol, which the kit free
     desktop license does not allow serving from a website, so Neuropol stays
     in the outlined logo SVG only. Heavy Inter stands in here. */
  --display: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --display-weight: 800;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
main { min-height: 70vh; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(11, 11, 15, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; height: 34px; width: auto; }
.brand-mark-sm { display: none; height: 26px; width: auto; }
/* The full wordmark crowds the nav on a phone, so drop to the mark alone. */
@media (max-width: 560px) {
  .brand-logo { display: none; }
  .brand-mark-sm { display: block; }
}
.top nav { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 26px); font-size: 14px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }
.top nav a.btn { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border: 0; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:disabled { background: var(--panel-2); color: var(--muted); cursor: not-allowed; transform: none; filter: none; }
.btn-small { padding: 8px 14px; font-size: 13px; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-buy { width: 100%; padding: 18px; font-size: 18px; letter-spacing: 0.02em; }

/* Hero */
.hero { padding: clamp(56px, 10vw, 120px) clamp(16px, 4vw, 48px) 40px; max-width: 1100px; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.hero h1 { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(36px, 7vw, 76px); line-height: 1.02; margin: 0 0 18px; letter-spacing: -0.01em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 560px; margin: 0; }

/* Next drop */
.next { padding: 0 clamp(16px, 4vw, 48px); max-width: 1100px; margin: 0 auto 24px; }
.next-inner {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding: 26px 28px; border-radius: var(--radius);
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 122, 24, .18), transparent 60%), var(--panel);
  border: 1px solid var(--line);
}
.next h2 { margin: 0; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(22px, 3vw, 32px); }
.next-time { margin: 6px 0 0; color: var(--muted); }

.timer { display: flex; gap: 10px; }
.timer div {
  min-width: 70px; padding: 10px 8px; text-align: center; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line);
}
.timer span { display: block; font-family: var(--display); font-weight: var(--display-weight); font-size: 30px; font-variant-numeric: tabular-nums; }
.timer small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; }

/* Sections + grid */
.section { padding: 36px clamp(16px, 4vw, 48px); max-width: 1100px; margin: 0 auto; }
.section.narrow { max-width: 620px; }
.section.center { text-align: center; padding-top: 90px; padding-bottom: 90px; }
.section.center .lede { margin: 0 auto 28px; }
.section-title { font-family: var(--display); font-weight: var(--display-weight); font-size: 22px; margin: 0 0 20px; display: flex; align-items: baseline; gap: 12px; }
.section-title small { font-family: var(--font); font-size: 13px; color: var(--muted); font-weight: 400; }
.empty { color: var(--muted); padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.grid-one { grid-template-columns: minmax(0, 560px); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: #3a3a4a; }
.card-img { position: relative; display: block; text-decoration: none; aspect-ratio: 1 / 1; background: var(--panel-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 18px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card h3 a { text-decoration: none; }
.card-big h3 { font-size: 24px; }
/* Pills group to the left, price always sits hard right, whether there are two
   children or three. space-between alone scattered them once the console
   badge joined. */
.meta { display: flex; justify-content: flex-start; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 14px; }
.meta .price { color: var(--text); font-weight: 700; font-size: 17px; margin-left: auto; }
.plat {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.meta.big .price { font-size: 26px; }
.one { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.countdown { margin: 10px 0 0; font-variant-numeric: tabular-nums; color: var(--sun-1); font-weight: 700; }
.state-sold .card-img img { filter: grayscale(.85) brightness(.7); }
.state-missed .card-img img { filter: grayscale(.5) brightness(.8); }
.grid-vault .card:hover { transform: none; }

.img-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: 14px; }
.img-placeholder.big { aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--panel); }

/* Badges */
.badge {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: var(--panel-2); color: var(--text);
}
.card-img .badge { position: absolute; top: 12px; left: 12px; }
.badge-live { background: var(--live); color: #04140d; }
.badge-upcoming { background: var(--grad); color: #fff; }
.badge-held { background: var(--held); color: #1d1300; }
.badge-sold { background: var(--sold); color: #fff; }
.badge-missed { background: var(--missed); color: #fff; }
.badge-hidden { background: #333; color: var(--muted); }

/* Drop page */
.drop {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  padding: 40px clamp(16px, 4vw, 48px); max-width: 1180px; margin: 0 auto;
}
.main-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: var(--panel); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .65; }
.thumb.active, .thumb:hover { border-color: var(--sun-2); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.info h1 { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(30px, 4.5vw, 48px); line-height: 1.05; margin: 14px 0 12px; }
.info .meta { margin-bottom: 24px; }
.info form { margin: 0; }
.info .timer { margin-bottom: 10px; }
.desc { margin-top: 28px; color: #d9d7e0; }
.specs-title { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
.specs { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.specs li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); margin-right: 12px; vertical-align: middle; }

/* Notify */
.notify {
  width: min(1004px, calc(100% - 2 * clamp(16px, 4vw, 48px))); margin: 30px auto; padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 56px);
  border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(120% 160% at 100% 0%, rgba(123, 47, 247, .28), transparent 60%),
              radial-gradient(120% 160% at 0% 100%, rgba(255, 46, 99, .22), transparent 60%), var(--panel);
  border: 1px solid var(--line);
}
.notify h2 { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(24px, 4vw, 36px); margin: 0 0 6px; }
.notify > p { color: var(--muted); margin: 0 0 20px; }
.notify-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.notify-form input[type=email] { flex: 1 1 240px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Forms */
input, textarea, select {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--sun-2); outline-offset: 1px; border-color: transparent; }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form label input, .form label textarea { color: var(--text); width: 100%; }

.flash { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; font-size: 15px; }
.flash.ok { background: rgba(35, 209, 139, .12); border: 1px solid rgba(35, 209, 139, .4); }
.flash.bad { background: rgba(255, 46, 99, .12); border: 1px solid rgba(255, 46, 99, .45); }
.fine { color: var(--muted); font-size: 13px; }

/* Admin */
.admin-wrap { max-width: 1240px; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.admin-head h1 { margin: 0; font-family: var(--display); font-weight: var(--display-weight); }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tbl { width: 100%; border-collapse: collapse; margin-bottom: 44px; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.tbl th, .tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr.done { opacity: .5; }
.tbl-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-actions form, .ship-form { display: flex; gap: 6px; margin: 0; }
.row-actions select, .ship-form input { padding: 6px 8px; font-size: 13px; }
.row-actions button, .ship-form button { font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; }
button.danger { color: #ff8aa5; }
.addr { white-space: nowrap; font-size: 13px; }
.img-edit { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; }
.img-edit legend { color: var(--muted); font-size: 14px; padding: 0 6px; }
.img-row { display: flex; align-items: center; gap: 16px; }
.img-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.img-row label { display: flex; gap: 6px; align-items: center; color: var(--text); }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 60px; padding: 36px clamp(16px, 4vw, 48px); text-align: center; }
.foot-brand { font-weight: 700; margin: 0 0 10px; }
.foot .fine { max-width: 720px; margin: 6px auto; }

/* Marketing blocks */
.mk-wrap { max-width: 1100px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 48px) 8px; }
.mk {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px) 0;
}
.mk + .mk { border-top: 1px solid var(--line); }
/* Every other row puts the media on the right. The source order never changes,
   so the text still follows its own heading for a screen reader. */
.mk-flip .mk-media { order: 2; }
.mk-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  line-height: 0;
}
.mk-media img, .mk-video { width: 100%; height: auto; display: block; }
.mk-video { background: #000; }
.mk-text h2 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.1;
  margin: 0 0 14px;
}
.mk-text p { margin: 0 0 14px; color: var(--muted); font-size: 17px; }
.mk-text p:last-child { margin-bottom: 0; }
.mk-cta { margin-top: 22px; }

@media (max-width: 760px) {
  .mk { grid-template-columns: 1fr; gap: 20px; }
  /* Stacked, the media always leads, flipped or not. */
  .mk-flip .mk-media { order: 0; }
}

/* 404 page */
.nf { max-width: 720px; margin: 0 auto; padding: clamp(48px, 9vw, 110px) clamp(16px, 4vw, 48px) 40px; text-align: center; }
.nf-art { width: min(420px, 90%); height: auto; margin: 0 auto 28px; display: block; }
.nf h1 { margin: 10px 0 18px; line-height: 0; }
.nf-title-art { width: min(460px, 86%); height: auto; }
.nf .lede { margin: 0 auto 30px; }
.nf-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.nf-spark { animation: nf-flicker 1.6s steps(2, end) infinite; }
@keyframes nf-flicker { 0%, 60% { opacity: 1; } 70% { opacity: 0; } 80% { opacity: 1; } 90%, 100% { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) { .nf-spark { animation: none; } }

@media (max-width: 820px) {
  .drop { grid-template-columns: 1fr; padding-top: 20px; }
  .timer div { min-width: 58px; }
  .timer span { font-size: 24px; }
  .top nav a:not(.btn) { display: none; }
  .tbl { display: block; overflow-x: auto; }
}

/* Long form text: the privacy policy, and anything else that is mostly
   paragraphs. The rest of the site is cards and short lines, so none of the
   existing rules give a comfortable measure for reading. */
.prose h2 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 2rem 0 .6rem;
}
.prose p,
.prose li { line-height: 1.65; margin: 0 0 .9rem; }
.prose ul { padding-left: 1.1rem; margin: 0 0 .9rem; }
.prose li { margin-bottom: .45rem; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
  padding: .1em .35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, .07);
}
.prose a { text-decoration: underline; }

/* Subheadings inside long form legal text. Smaller than the section headings
   above them, and not uppercased, so the hierarchy is readable at a glance. */
.prose h3 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: .95rem;
  letter-spacing: .01em;
  color: var(--text);
  margin: 1.4rem 0 .5rem;
}
.prose .btn { margin: .2rem 0 .4rem; }

/* The cookie notice.

   A bar pinned to the bottom rather than a modal, because it is a disclosure
   and not a gate: under the opt out model nothing is waiting on an answer, so
   it must never cover the page or trap focus. It is rendered with the hidden
   attribute and revealed by app.js, which is why there is no animation on
   first paint to get wrong. */
.notice {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  margin: 0 auto;
  max-width: 54rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.notice p {
  margin: 0;
  flex: 1 1 22rem;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--muted);
}
.notice p a { color: var(--text); text-decoration: underline; }
.notice .btn { flex: 0 0 auto; }
.notice[hidden] { display: none; }

@media (max-width: 480px) {
  .notice { left: .6rem; right: .6rem; bottom: .6rem; }
  .notice .btn { width: 100%; }
}

/* A checkbox label must not inherit the stacked grid the text inputs use, or
   the box lands on its own line and stretches to full width. */
.form label.check { display: flex; align-items: center; gap: 10px; color: var(--text); }
.form label.check input { width: auto; }
.form label small.err { color: var(--sun-2); }

/* Shell snippets in the admin: the recovery commands are long single lines and
   must stay copyable, so they scroll rather than wrap into something that
   would paste back as two broken commands. */
.section pre {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow-x: auto;
}
.section pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  white-space: pre;
  color: var(--text);
}

/* The next drop photo. Fixed square so a portrait and a landscape shot give
   the same banner height, and object-fit rather than letterboxing because a
   controller photo survives a centre crop better than it survives bars. */
.next-text { flex: 1 1 240px; }
.next-media {
  flex: 0 0 auto;
  display: block;
  width: 132px;
  height: 132px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
}
.next-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 560px) {
  .next-media { width: 100%; height: 190px; }
}
