/* Vault — MTG collection manager */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: oklch(0.20 0.014 65);
  --bg-2: oklch(0.23 0.014 65);
  --surface: oklch(0.26 0.014 65);
  --surface-2: oklch(0.30 0.015 65);
  --border: oklch(0.36 0.014 65);
  --border-2: oklch(0.44 0.018 70);
  --text: oklch(0.96 0.012 85);
  --text-2: oklch(0.82 0.012 80);
  --muted: oklch(0.62 0.014 70);
  --gold: oklch(0.80 0.13 80);
  --gold-2: oklch(0.88 0.12 85);
  --copper: oklch(0.66 0.13 50);
  --danger: oklch(0.66 0.18 25);
  --good: oklch(0.70 0.14 145);

  --mana-w: oklch(0.92 0.04 85);
  --mana-u: oklch(0.66 0.14 245);
  --mana-b: oklch(0.45 0.04 300);
  --mana-r: oklch(0.62 0.19 28);
  --mana-g: oklch(0.58 0.14 145);
  --mana-c: oklch(0.65 0.012 70);
  --mana-m: oklch(0.74 0.15 60);

  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Subtle textured gradient on body */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 1200px 600px at 80% -10%, oklch(0.36 0.04 70 / 0.4), transparent 60%),
    radial-gradient(ellipse 800px 600px at -10% 110%, oklch(0.30 0.06 50 / 0.3), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Giant "V" watermark — Vault's own brand glyph, faded into the page */
body::after {
  content: 'V';
  position: fixed;
  bottom: -8vh; right: -3vw;
  font-family: var(--display);
  font-size: 80vh;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
  line-height: 0.8;
  letter-spacing: -0.05em;
  filter: blur(0.5px);
  user-select: none;
}
#root { position: relative; z-index: 1; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---- Layout ---- */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  background: oklch(0.20 0.014 65 / 0.7);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
}
.brand .mark {
  width: 28px; height: 28px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  transform: rotate(45deg);
  align-self: center;
}
.brand .mark span { transform: rotate(-45deg); }
.brand .title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand .subtitle { white-space: nowrap; }
.brand .subtitle {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-left: 4px;
}
.nav {
  display: flex; gap: 2px;
  margin-left: auto;
}
.nav button {
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-2);
  border-bottom: 1px solid transparent;
  transition: all .15s;
}
.nav button:hover { color: var(--text); }
.nav button.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

main { padding: 28px; max-width: 1480px; margin: 0 auto; width: 100%; }

/* ---- Headings ---- */
.h-display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.05;
}
.h1 { font-family: var(--display); font-weight: 600; font-size: 44px; line-height: 1.05; margin: 0; }
.h2 { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.1; margin: 0; }
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0;
}
.label-mono {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ---- Stat cards ---- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.stat.accent::before { background: linear-gradient(90deg, var(--copper), transparent); }
.stat.good::before { background: linear-gradient(90deg, var(--good), transparent); }
.stat.bad::before { background: linear-gradient(90deg, var(--danger), transparent); }
.stat .label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 8px; }
.stat .value { font-family: var(--display); font-size: 36px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; }
.stat .value .currency { font-size: 18px; color: var(--text-2); margin-right: 2px; vertical-align: top; position: relative; top: 6px; }
.stat .delta { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 8px; }
.stat .delta.up { color: var(--good); }
.stat .delta.down { color: var(--danger); }

/* clickable stat (Market value -> Valuation) */
.stat-link { cursor: pointer; transition: border-color .15s, transform .15s, background .15s; }
.stat-link:hover { border-color: var(--gold); transform: translateY(-2px); }
.stat-link:focus-visible { outline: none; border-color: var(--gold); }
.stat-link-cue { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: var(--muted); opacity: 0; transition: opacity .15s; }
.stat-link:hover .stat-link-cue { opacity: 1; color: var(--gold); }

/* freshness indicator */
.freshness { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; color: var(--muted); }
.freshness .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--muted); flex: none; }
.freshness .sep { opacity: 0.4; }
.freshness .asof { color: var(--text-2); }
.freshness.fresh .dot { background: var(--good); box-shadow: 0 0 6px var(--good); }
.freshness.fresh { color: var(--good); }
.freshness.aging .dot { background: var(--gold); }
.freshness.stale .dot { background: var(--danger); box-shadow: 0 0 6px oklch(0.66 0.18 25 / 0.6); }
.freshness.stale { color: var(--danger); }

/* ---- Valuation chart ---- */
.legend-sw { width: 14px; height: 10px; border-radius: 2px; flex: none; }
.legend-sw.gold { background: var(--gold); }
.legend-sw.copper { background: var(--copper); }
.legend-sw.band { background: linear-gradient(180deg, oklch(0.80 0.13 80 / 0.45), oklch(0.80 0.13 80 / 0.1)); border: 1px solid oklch(0.80 0.13 80 / 0.4); }
.vc-market { animation: vc-draw 1.1s ease-out both; }
@keyframes vc-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .vc-market { animation: none; } }
.vc-tip {
  position: absolute; top: 8px; pointer-events: none;
  background: oklch(0.18 0.012 60 / 0.94); backdrop-filter: blur(6px);
  border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 10px 12px; min-width: 150px; z-index: 5;
}
.vc-tip-month { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 8px; }
.vc-tip-row { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--text-2); margin-top: 4px; }
.vc-tip-row b { margin-left: auto; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.vc-tip-row.gain b { color: var(--gold); }
.vc-tip .sw { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.vc-tip .sw.gold { background: var(--gold); }
.vc-tip .sw.copper { background: var(--copper); }
.vc-tip .sw.band { background: oklch(0.80 0.13 80 / 0.35); border: 1px solid oklch(0.80 0.13 80 / 0.5); }
.vc-tip-add { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 10px; color: var(--good); }

/* ---- Refresh / Update now ---- */
.spinner-xs { width: 12px; height: 12px; border-width: 2px; }
.refresh-btn { display: inline-flex; align-items: center; gap: 7px; }
.refresh-btn .rfx { font-size: 13px; line-height: 1; }
.refresh-btn:not(:disabled):hover .rfx { transform: rotate(90deg); transition: transform .2s; display: inline-block; }
.refresh-btn:disabled { opacity: 0.7; cursor: progress; }
.refresh-bar { height: 3px; border-radius: 2px; background: oklch(0.32 0.014 65 / 0.6); overflow: hidden; }
.refresh-bar > div { height: 100%; background: linear-gradient(90deg, var(--gold), var(--copper)); transition: width .2s; }

/* ---- Ledger (scroll + filter) ---- */
.ledger-scroll { max-height: 408px; overflow-y: auto; }
.ledger-tbl thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--surface);
  box-shadow: inset 0 -1px 0 var(--border);
}
.ledger-foot {
  padding: 10px 16px; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.ledger-scroll::-webkit-scrollbar { width: 10px; }
.ledger-scroll::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 5px; border: 3px solid var(--surface); }

/* ---- Section ---- */
.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; gap: 16px; }
.section-head .actions { display: flex; gap: 8px; align-items: center; }

/* ---- Panels ---- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.panel-tight { padding: 12px; }
.panel-flush { padding: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  transition: all .15s;
}
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn.primary { background: var(--gold); color: oklch(0.16 0.012 60); border-color: var(--gold); }
.btn.primary:hover { background: var(--gold-2); color: oklch(0.16 0.012 60); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 10px; font-size: 10px; }
.btn.xs { padding: 4px 8px; font-size: 9px; }
.bulk-link { color: var(--text-2); border-color: transparent; letter-spacing: 0.04em; }
.bulk-link:not(:disabled):hover { color: var(--gold); border-color: var(--border-2); }
.bulk-link:disabled { opacity: 0.4; cursor: not-allowed; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-2);
  white-space: nowrap;
}
.chip.active { color: var(--gold); border-color: var(--gold); background: oklch(0.78 0.13 80 / 0.08); }
.chip:hover { color: var(--text); cursor: pointer; }

/* ---- Inputs ---- */
.input, .select, textarea.input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--gold); }
textarea.input { font-family: var(--mono); font-size: 12px; line-height: 1.6; resize: vertical; }

/* ---- Tables ---- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; vertical-align: middle; }
.tbl th {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.tbl td { border-bottom: 1px solid oklch(0.30 0.014 65 / 0.5); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: oklch(0.30 0.014 65 / 0.3); }
.tbl td.num, .tbl th.num { text-align: right; font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.tbl td.muted { color: var(--muted); }

/* ---- Mana pips ---- */
.mana { display: inline-flex; gap: 3px; }
.pip {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  border: 1px solid oklch(0 0 0 / 0.25);
  color: oklch(0.16 0.012 60);
}
.pip.W { background: var(--mana-w); }
.pip.U { background: var(--mana-u); color: white; }
.pip.B { background: var(--mana-b); color: white; }
.pip.R { background: var(--mana-r); color: white; }
.pip.G { background: var(--mana-g); color: white; }
.pip.C { background: var(--mana-c); }
.pip.M { background: linear-gradient(135deg, var(--mana-r), var(--mana-u)); color: white; border-color: var(--gold); }
.pip.sm { width: 14px; height: 14px; font-size: 8px; }

/* ---- Bars (set ranking) ---- */
.bar-row { display: grid; grid-template-columns: 60px 1fr 90px 70px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid oklch(0.30 0.014 65 / 0.4); }
.bar-row:last-child { border-bottom: none; }
.bar-row .code { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: 0.06em; }
.bar-row .name { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .val { font-family: var(--mono); font-size: 12px; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.bar-row .qty { font-family: var(--mono); font-size: 11px; text-align: right; color: var(--muted); }
.bar-row .bar { grid-column: 1 / -1; height: 3px; background: oklch(0.32 0.014 65 / 0.6); margin-top: 4px; border-radius: 2px; overflow: hidden; }
.bar-row .bar > div { height: 100%; background: linear-gradient(90deg, var(--gold), var(--copper)); }

/* ---- Card grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.card-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all .15s;
  display: flex; flex-direction: column;
}
.card-tile:hover { border-color: var(--gold); transform: translateY(-2px); }
.card-tile .img-wrap {
  aspect-ratio: 488 / 680;
  background: oklch(0.18 0.012 60);
  position: relative;
  overflow: hidden;
}
.card-tile .img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-tile .img-wrap .placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 10px, var(--surface) 10px 20px);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-align: center;
  padding: 16px;
}
.card-tile .meta { padding: 10px 12px; }
.card-tile .meta .name { font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.15; }
.card-tile .meta .sub { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.card-tile .meta .val { color: var(--gold); }
.card-tile .badge {
  position: absolute; top: 8px; right: 8px;
  padding: 3px 7px;
  background: oklch(0.16 0.012 60 / 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  border-radius: 2px;
}
.card-tile .badge.foil { background: linear-gradient(135deg, oklch(0.7 0.1 280), oklch(0.7 0.1 30)); color: white; border-color: white; }

/* ---- Set tile ---- */
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.set-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all .15s;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 130px;
  position: relative;
  overflow: hidden;
}
.set-tile:hover { border-color: var(--gold); }
.set-tile::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold) var(--pct, 0%), transparent var(--pct, 0%));
}
.set-tile .code-row { display: flex; justify-content: space-between; align-items: baseline; }
.set-tile .code { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; }
.set-tile .qty { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.set-tile .name { font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.15; flex: 1; }
.set-tile .val { font-family: var(--mono); font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---- Deck coverage ---- */
.coverage-grid { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .coverage-grid { grid-template-columns: 1fr; } }
.deck-row {
  display: grid;
  grid-template-columns: 36px 1fr 90px 90px 60px;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid oklch(0.30 0.014 65 / 0.4);
  font-size: 13px;
}
.deck-row.head { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); border-bottom: 1px solid var(--border); }
.deck-row.missing { background: oklch(0.62 0.18 25 / 0.05); }
.deck-row.partial { background: oklch(0.78 0.13 80 / 0.05); }
.deck-row.owned { }
.deck-row .qty { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); }
.deck-row .have { font-family: var(--mono); font-size: 12px; }
.deck-row .have.full { color: var(--good); }
.deck-row .have.part { color: var(--gold); }
.deck-row .have.none { color: var(--danger); }
.deck-row .cost { font-family: var(--mono); font-size: 12px; text-align: right; }

.progress-bar { height: 6px; background: oklch(0.30 0.014 65); border-radius: 3px; overflow: hidden; }
.progress-bar > div { height: 100%; background: linear-gradient(90deg, var(--good), var(--gold)); transition: width .6s ease; }

/* ---- Timeline chart ---- */
.timeline-svg { width: 100%; height: 160px; display: block; }

/* ---- Misc ---- */
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.kbd {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid var(--border-2);
  border-radius: 3px;
  background: var(--bg-2);
  color: var(--text-2);
}

.spinner {
  width: 12px; height: 12px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Detail drawer ---- */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: oklch(0.10 0.012 60 / 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(640px, 100vw);
  background: var(--bg-2);
  border-left: 1px solid var(--gold);
  z-index: 101;
  overflow-y: auto;
  padding: 28px;
  animation: drawer-in .25s ease-out;
}
.drawer-bg {
  position: absolute; top: 0; right: -10%; width: 80%; height: 60%;
  pointer-events: none; user-select: none;
  opacity: 0.07;
  filter: blur(14px);
  z-index: 0;
}
.drawer-bg img { width: 100%; height: 100%; object-fit: contain; }
.drawer > *:not(.drawer-bg) { position: relative; z-index: 1; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer .close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-2);
}
.drawer .close:hover { color: var(--gold); border-color: var(--gold); }

/* ---- Two-col ---- */
.col-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media (max-width: 1100px) { .col-2 { grid-template-columns: 1fr; } }

/* ---- Donut chart ---- */
.donut { transform: rotate(-90deg); }
.donut circle { fill: none; }

/* ---- Pulse ---- */
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ---- Toast ---- */
.toast {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  z-index: 200;
}
