/* COPIED VERBATIM from Mark's site (pump-sniper-work public/site.css, commit 5a62344) by tools/sync-from-mark.sh - do not edit here; her additions go in web.css. */
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-600.woff2") format("woff2");
}
:root {
  --bg: #110d0a;
  --elev: #1c1510;
  --fg: #f6ead6;
  --muted: #c4a888;
  --subtle: #8a6f58;
  --accent: #e8943a;
  --accent-fg: #1a1008;
  --danger: #e24b3a;
  --border: rgba(232, 148, 58, 0.16);
  --display: Fraunces, Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100dvh;
  color: var(--fg);
  font: 16px/1.5 var(--sans);
  background-color: #110d0a;
  background-image:
    linear-gradient(180deg, rgba(17, 13, 10, 0.28) 0%, rgba(17, 13, 10, 0.42) 48%, rgba(12, 8, 6, 0.55) 100%),
    url("/field.jpg");
  background-size: cover;
  background-position: center 62%;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button:not(:disabled) { cursor: pointer; }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
}
.site-header a { color: var(--muted); padding: 8px 10px; }
.site-header a:hover, .site-header a[aria-current="page"] { color: var(--fg); }
.brand { font-family: var(--display); font-size: 20px; letter-spacing: -0.03em; color: var(--fg) !important; display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; display: block; }
.nav { display: flex; gap: 4px; font-size: 14px; }
.eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--subtle); }
h1 { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin: 16px 0 0; font-size: clamp(32px, 5vw, 48px); }
.lead { max-width: 36rem; color: var(--muted); font-size: 16px; line-height: 1.6; margin-top: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 20px; border: 0; border-radius: 8px; font-size: 14px; font-weight: 600;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: 0 0 0 1px var(--border); }
@media (max-width: 640px) { .site-header { padding: 14px 16px; } html, body { background-attachment: scroll; } }

/* Shared product theme. Assets remain local; no third-party font requests. */
:root {
  --bg: #0b1018; --elev: #121a26; --fg: #edf2fa; --muted: #a4b1c3;
  --subtle: #8796ac; --accent: #83adff; --accent-fg: #0b1730;
  --danger: #ff8a95; --border: #263244;
  --display: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
html, body { background: var(--bg); color: var(--fg); }
button, input, textarea { font-family: var(--sans); }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px;
}
button:disabled { cursor: not-allowed; opacity: .5; }
::selection { background: #365485; color: #fff; }
.site-header { background: #0e1520; border-color: var(--border); }
.brand { font-weight: 600; letter-spacing: -.6px; }
.site-header a { border-radius: 8px; }
.site-header a:hover { background: #1b2636; }
.site-header a[aria-current="page"] { color: #b5ceff; background: #1c2b43; }
.btn { border-radius: 10px; transition: background .15s ease; }
.btn-primary:hover { background: #a0bfff; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--accent); color: #0b1730 !important; }
.skip-link:focus { top: 12px; }

/* Comfortable controls and restrained scrollbars across every page. */
html { scrollbar-gutter: stable; }
* { scrollbar-width: thin; scrollbar-color: #bdc4b1 transparent; }
button, input, textarea { transition: border-color .15s ease, background-color .15s ease; }
input:disabled { opacity: 1; color: var(--muted); cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) {
  button, input, textarea, .nav a { transition: none; }
}

/* A bot's last 50 trades, opened by tapping its card on the Paper page. */
.hist-dialog { width: min(980px, calc(100vw - 32px)); max-width: none; max-height: min(86dvh, 900px); padding: 0; border: 0; background: transparent; color: inherit; overflow: visible; }
.hist-dialog::backdrop { background: rgba(4, 7, 12, .72); }
/* sniper.css hides #sel-hist while the bot board shows (body.multi #sel-hist); inside the window it always shows. */
body.multi .hist-dialog #sel-hist, .hist-dialog > .panel { display: flex; flex-direction: column; max-height: min(86dvh, 900px); overflow: hidden; }
.hist-dialog .panel-head { position: static; }
.hist-dialog .hist-scroll { overflow: auto; -webkit-overflow-scrolling: touch; }
.hist-dialog th { position: sticky; top: 0; z-index: 1; }
.hist-close { flex: 0 0 auto; width: 36px; height: 36px; margin-left: 4px; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--fg); font-size: 20px; line-height: 1; }
.hist-close:hover { background: rgba(255, 255, 255, .06); }
@media (max-width: 640px) {
  .hist-dialog { width: 100vw; max-height: 90dvh; margin: auto 0 0; }
  body.multi .hist-dialog #sel-hist, .hist-dialog > .panel { max-height: 90dvh; border-radius: 16px 16px 0 0; }
  .hist-dialog th, .hist-dialog td { padding: 10px 8px; }
}
/* Paper page with the bot board: the launch-sniper panels (live launches, rules, bankroll) are retired (Mark, 2026-09-22). */
body.multi #grid, body.multi #stack-card { display: none; }
