/* BatchPad. A late-90s browser window on a night desktop; the page inside is a trading terminal.
   Every surface is a raster from art/ui.py, nine-sliced here. One accent: the mint of the BatchPad mark. */
@font-face { font-family: "Silkscreen"; src: url(/fonts/Silkscreen-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url(/fonts/Silkscreen-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist Pixel"; src: url(/fonts/GeistPixel-Square.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/GeistMono-Var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0a0a0b;
  --page: #0a0a0b;
  --mint: #4df9ae;
  --mint-dim: #1a8a5e;
  --red: #ff5c70;
  --grey: #c0c0c0;
  --grey-lo: #808080;
  --navy: #16203e;
  --text: #e8ebf0;
  --muted: #9aa4b6;
  --px: "Silkscreen", "Courier New", monospace;
  /* type system (research 2026-09-29, research/fonts/): Silkscreen for headings, Geist Pixel for every text and
     control, Geist Mono for figures and addresses (same vertical metrics as Geist Pixel, tabular, has the subscript
     digits of the prices; also the per-glyph fallback of the pixel face) */
  --sans: "Geist Pixel", "Geist Mono", "Segoe UI", Tahoma, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Consolas", monospace;
  --gap: 20px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #1b264e url(/ui/sky.png) repeat-x top left / 64px 100%;
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--mint); }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px dashed var(--mint); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- the desktop: clouds drift across the whole screen ---------------- */
.clouds { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.clouds img { position: absolute; left: 0; image-rendering: pixelated; animation: drift linear infinite; will-change: transform; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
.desk-icon {
  position: fixed; left: 24px; top: 24px; z-index: 1; display: grid; justify-items: center; gap: 6px; width: 110px;
  background: none; border: 0; cursor: pointer; padding: 8px; color: #fff; font: 700 16px var(--px); text-shadow: 1px 1px 0 #000;
}
.desk-icon img { width: 64px; image-rendering: pixelated; }
.desk-icon:focus-visible span, .desk-icon:hover span { background: #1f7a5e; }

/* ---------------- the browser window ---------------- */
.ie {
  position: fixed; z-index: 2; left: 50%; top: 12px; bottom: 12px; width: min(1760px, calc(100vw - 24px)); transform: translateX(-50%);
  display: flex; flex-direction: column;
  border: 4px solid transparent; border-image: url(/ui/raised.png) 4 fill / 4px stretch; image-rendering: pixelated;
  background-clip: padding-box; color: #000;
}
.ie.max { left: 0; top: 0; bottom: 0; width: 100vw; transform: none; }
.ie.shade { bottom: auto; }
.ie.shade > :not(.ie-title) { display: none; }
.ie-title {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 4px 0 8px; margin: 2px;
  background: url(/ui/titlebar.png) 0 0 / 100% 100%; color: #fff; user-select: none;
  font: 700 16px var(--px); letter-spacing: .02em;
}
.ie-title img { width: 30px; height: auto; image-rendering: auto; }
.ie-title .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .ie-title .t .brand { display: none; } }
.tb-btn {
  width: 32px; height: 28px; display: grid; place-items: center; cursor: pointer; padding: 0 0 4px;
  border: 4px solid transparent; border-image: url(/ui/raised.png) 4 fill / 4px; color: #000; font: 700 18px/1 var(--px);
}
.tb-btn:active { border-image-source: url(/ui/pressed.png); }

.ie-menu { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px 6px; border-bottom: 2px solid var(--grey-lo); }
.ie-menu a {
  color: #000; text-decoration: none; font: 500 17px var(--sans); padding: 6px 12px; min-height: 36px; display: inline-flex; align-items: center;
}
.ie-menu a u { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ie-menu .short { display: none; }
.ie-menu a:hover, .ie-menu a[aria-current="page"] { background: #0a0a0b; color: var(--mint); }

.ie-bars { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 2px solid #fff; box-shadow: 0 2px 0 var(--grey-lo); }
.ie-tools { display: flex; align-items: stretch; gap: 2px; padding: 4px 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.ie-tools .sep { width: 2px; margin: 6px 6px; background: var(--grey-lo); box-shadow: 1px 0 0 #fff; flex: none; }
.tool {
  flex: none; display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 78px; min-height: 66px; padding: 4px 8px;
  background: none; border: 4px solid transparent; cursor: pointer; color: #000; font: 500 16px var(--sans); text-decoration: none;
}
.tool img { width: 34px; height: 34px; }
.tool:hover:not(:disabled) { border-image: url(/ui/raised.png) 4 fill / 4px; }
.tool:active:not(:disabled) { border-image: url(/ui/pressed.png) 4 fill / 4px; }
.tool:disabled { opacity: .45; cursor: default; }
.tool.on { border-image: url(/ui/pressed.png) 4 fill / 4px; }
.throbber {
  width: 96px; margin: 4px 6px; display: grid; place-items: center; position: relative; overflow: hidden;
  border: 4px solid transparent; border-image: url(/ui/field-dark.png) 4 fill / 4px;
}
.throbber .blocks { position: relative; width: 64px; height: 34px; }
.throbber img { position: absolute; image-rendering: auto; }
.throbber .b { width: 18px; top: 0; transition: transform .45s cubic-bezier(.5, 0, .9, .4), opacity .2s; }
.throbber .b1 { left: 0; } .throbber .b2 { left: 23px; } .throbber .b3 { left: 46px; }
.throbber .bar { left: 0; bottom: 0; width: 64px; }
.throbber.drop .b { transform: translateY(24px); opacity: 0; }

.ie-addr { display: flex; align-items: center; gap: 8px; padding: 6px 8px; }
.ie-addr label { font: 500 17px var(--sans); color: #333; }
.ie-addr .field { flex: 1; min-width: 0; }
.ie-addr input { width: 100%; border: 0; background: transparent; outline: none; font: 400 17px var(--mono); padding: 6px 8px; color: #000; }

.field { border: 4px solid transparent; border-image: url(/ui/field.png) 4 fill / 4px; background-clip: padding-box; color: #000; }
.well { border: 4px solid transparent; border-image: url(/ui/field-dark.png) 4 fill / 4px; color: var(--mint); font: 400 16px/1.4 var(--mono); padding: 10px 12px; word-break: break-all; }

/* ---------------- the page inside ---------------- */
.ie-view {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; margin: 0 2px 2px;
  border: 4px solid transparent; border-image: url(/ui/field-dark.png) 4 fill / 4px;
  background: var(--page); color: var(--text); scroll-behavior: smooth;
}
.ie-view::-webkit-scrollbar { width: 18px; }
.ie-view::-webkit-scrollbar-track { background: #dfdfdf; }
.ie-view::-webkit-scrollbar-thumb { background: var(--grey); border: 2px solid; border-color: #fff #000 #000 #fff; }
.page { max-width: 1640px; margin: 0 auto; padding: 16px 18px 40px; }

.banner {
  display: grid; justify-items: center; gap: 10px; padding: 18px 16px 18px; margin-bottom: var(--gap);
  border: 12px solid transparent; border-image: url(/ui/panel.png) 12 fill / 12px; image-rendering: pixelated;
}
.banner .wm { width: min(460px, 80%); height: auto; image-rendering: auto; }
.banner p { margin: 0; font: 500 19px var(--sans); color: var(--text); text-align: center; }
.banner p b { color: var(--mint); font-weight: 600; }
.mini-banner { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px; }
.mini-banner img { height: 34px; width: auto; }

.cols.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cols { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(320px, 1fr); gap: var(--gap); align-items: start; }
.stack { display: grid; gap: var(--gap); min-width: 0; }
.panel {
  border: 12px solid transparent; border-image: url(/ui/panel.png) 12 fill / 12px; image-rendering: pixelated;
  padding: 14px 16px; min-width: 0;
}
.panel > * { image-rendering: auto; }
.head {
  display: flex; align-items: center; gap: 10px; min-height: 44px; margin: -2px -2px 14px; padding: 6px 12px;
  border: 4px solid transparent; border-image: url(/ui/mint.png) 4 fill / 4px; color: #000;
  font: 700 18px/1.2 var(--px); letter-spacing: .02em;
}
.head small { margin-left: auto; font: 500 15px var(--sans); letter-spacing: 0; }
.title-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 30px 0 16px; font: 700 20px var(--px); color: #fff; }
.title-row::before, .title-row::after { content: ""; width: 60px; height: 4px; background: url(/ui/m-bar.png) center / 100% 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 18px; cursor: pointer;
  border: 4px solid transparent; border-image: url(/ui/raised.png) 4 fill / 4px; color: #000; text-decoration: none; text-align: center;
  font: 600 17px var(--sans); user-select: none;
}
.btn:active:not(:disabled) { border-image-source: url(/ui/pressed.png); transform: translate(1px, 1px); }
.btn img { width: 22px; height: 22px; }
.btn.go { border-image-source: url(/ui/mint.png); min-height: 56px; font: 700 18px var(--px); letter-spacing: .02em; padding: 8px 22px; }
.btn.go:active:not(:disabled) { border-image-source: url(/ui/mint-pressed.png); }
.btn.go::before { content: "\25B6"; font-size: 13px; }
.btn.go::after { content: "\25C0"; font-size: 13px; }
.btn.sell { border-image-source: url(/ui/red.png); }
.btn.dark { border-image-source: url(/ui/dark.png); color: var(--text); }
.btn.dark:active:not(:disabled) { border-image-source: url(/ui/dark-pressed.png); }
.btn:disabled, .btn[aria-disabled="true"] { filter: grayscale(1) contrast(.8); opacity: .55; cursor: not-allowed; }
.btn.wide { width: 100%; }
.btn.small { min-height: 38px; padding: 4px 12px; font-size: 15px; }
.brand-mark { width: 22px; height: 22px; object-fit: contain; }

.reels { display: inline-flex; gap: 2px; vertical-align: middle; }
.reel {
  width: 30px; height: 40px; background: url(/ui/reels.png) 0 0 / 30px 440px repeat-y; image-rendering: pixelated;
  border: 2px solid; border-color: #000 #3a3f4a #3a3f4a #000; box-sizing: content-box; transition: background-position .35s cubic-bezier(.3, 1.4, .5, 1);
}
.reels .colon { font: 700 30px/40px var(--px); color: var(--mint); padding: 0 2px; }
.reels.sm .reel { width: 18px; height: 24px; background-size: 18px 264px; }
.reels.sm .colon { font-size: 18px; line-height: 24px; }
.cap { font: 400 15px var(--sans); color: var(--muted); margin: 6px 0 0; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: 16px; }
.kv dd { margin: 0; text-align: right; font: 600 17px var(--mono); color: #fff; }
.kv dd.buy, .buy { color: var(--mint); }
.kv dd.sell, .sell-c { color: var(--red); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.demo-tag { display: inline-block; padding: 2px 8px; background: #ffd84d; color: #000; font: 700 14px var(--px); }

/* ---------------- the big batch ---------------- */
.batch-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr); gap: 18px; align-items: center; }
.stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; margin: 0 auto; }
.stage canvas { width: 100%; height: 100%; display: block; }
.stage .clock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; pointer-events: none; }
.stage .clock .lbl { font: 700 15px var(--px); color: var(--muted); background: var(--page); padding: 0 6px; white-space: nowrap; }
.stage .clock .lbl.price { color: var(--mint); font: 600 15px var(--mono); }
.stage .clock .reels { background: var(--page); padding: 4px; }
.stage .clock.hot .lbl { color: #fff; }
.stage .clock.thump .reels { animation: thump .32s cubic-bezier(.2, 1.6, .4, 1); }
.stage .clock.hot .reel { filter: drop-shadow(0 0 6px rgba(77, 249, 174, .55)); }
@keyframes thump { 0% { transform: scale(1.14); } 100% { transform: scale(1); } }
.reel.spinning { filter: blur(.4px) drop-shadow(0 0 8px rgba(77, 249, 174, .6)); }
.hero-coin { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; min-width: 0; }
.pic { width: 56px; height: 56px; flex: none; object-fit: cover; border: 4px solid transparent; border-image: url(/ui/field-dark.png) 4 fill / 4px; background: #111; image-rendering: auto; }
.pic.lg { width: 96px; height: 96px; }
.coin-name { font: 700 19px var(--px); color: #fff; line-height: 1.15; overflow-wrap: anywhere; }
.ticker { font: 600 16px var(--mono); color: var(--mint); }
.hero-nav { display: flex; gap: 8px; margin-top: 12px; }
.hero-nav .btn { flex: none; }
.hero-nav .btn.go { flex: 1; padding: 8px 10px; }

/* ---------------- coin list ---------------- */
.coins { display: grid; gap: 12px; }
.coin-row {
  display: grid; grid-template-columns: 56px minmax(0, 1.3fr) auto minmax(0, 1.2fr) minmax(120px, .9fr) auto; gap: 14px; align-items: center;
  padding: 10px 12px; border: 4px solid transparent; border-image: url(/ui/dark.png) 4 fill / 4px; color: var(--text); text-decoration: none;
}
.coin-row:hover { border-image-source: url(/ui/dark-pressed.png); }
.coin-row .stat { font: 500 15px var(--sans); color: var(--muted); }
.coin-row .stat b { font: 600 16px var(--mono); color: #fff; }
.prog { height: 16px; border: 2px solid; border-color: #000 #3a3f4a #3a3f4a #000; background: #0d0f12; position: relative; }
.prog i { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(90deg, var(--mint) 0 8px, transparent 8px 10px); }
.prog-cap { font: 500 14px var(--sans); color: var(--muted); margin-top: 4px; }
.chip { display: inline-block; padding: 2px 8px; font: 700 13px var(--px); color: #000; background: var(--mint); }
.chip.grey { background: var(--grey); }
.chip.red { background: var(--red); }
.empty { text-align: center; padding: 26px 12px; color: var(--muted); }
.empty b { color: #fff; display: block; font: 700 18px var(--px); margin-bottom: 6px; }

/* ---------------- sidebar ---------------- */
.odo { display: grid; justify-items: center; gap: 6px; text-align: center; }
.odo .head { justify-self: stretch; }
.token-card { display: grid; gap: 12px; }
.token-card .tk { display: flex; align-items: center; gap: 12px; }
.token-card .tk img { width: 64px; }
.token-card .tk b { font: 700 22px var(--px); color: #fff; display: block; }
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.links .btn.go { grid-column: 1 / -1; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; font-size: 16px; }
.steps li img { width: 40px; height: 40px; object-fit: contain; }
.steps li b { color: #fff; font-weight: 600; }

/* ---------------- coin page ---------------- */
.coin-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.coin-head .meta { flex: 1; min-width: 220px; display: grid; gap: 6px; }
.coin-head .coin-name { font-size: 26px; }
.chart { width: 100%; height: 300px; display: block; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.tabs button { min-height: 46px; border: 4px solid transparent; border-image: url(/ui/dark.png) 4 fill / 4px; background: none; cursor: pointer; font: 700 17px var(--px); color: var(--muted); }
.tabs button[aria-selected="true"].b { border-image: url(/ui/mint.png) 4 fill / 4px; color: #000; }
.tabs button[aria-selected="true"].s { border-image: url(/ui/red.png) 4 fill / 4px; color: #000; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font: 500 16px var(--sans); color: var(--muted); }
.form .field input, .form .field textarea { width: 100%; border: 0; outline: none; background: transparent; padding: 8px 10px; font: 400 18px var(--mono); color: #000; resize: vertical; }
.form .field textarea { font-family: var(--sans); font-size: 17px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.presets button { min-height: 40px; padding: 4px 12px; border: 4px solid transparent; border-image: url(/ui/dark.png) 4 fill / 4px; background: none; cursor: pointer; font: 600 15px var(--mono); color: var(--text); }
.presets button[aria-pressed="true"] { border-image: url(/ui/mint-pressed.png) 4 fill / 4px; color: #000; }
.quote { display: grid; gap: 4px; padding: 10px 12px; border: 4px solid transparent; border-image: url(/ui/field-dark.png) 4 fill / 4px; font-size: 16px; }
.quote b { font: 600 17px var(--mono); color: var(--mint); }
.msg { min-height: 24px; font: 500 16px var(--sans); color: var(--muted); overflow-wrap: anywhere; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--mint); }
.orders { width: 100%; border-collapse: collapse; font-size: 15px; }
.orders th { text-align: left; font: 700 13px var(--px); color: var(--muted); padding: 6px 6px; border-bottom: 2px solid #23262d; }
.orders td { padding: 7px 6px; border-bottom: 1px solid #1a1d22; font-family: var(--mono); white-space: nowrap; }
.orders td.r, .orders th.r { text-align: right; }
.table-wrap { overflow-x: auto; max-height: 360px; overflow-y: auto; }
.hist { display: grid; gap: 6px; font: 400 15px var(--mono); }
.hist div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; background: #111317; }
.hist div b { color: var(--mint); font-weight: 600; }
.born { display: grid; gap: 10px; justify-items: start; }
.born .badge { display: flex; align-items: center; gap: 10px; font: 700 18px var(--px); color: var(--mint); }
.born .badge img { width: 56px; }

/* ---------------- launch dialog ---------------- */
.dialog { max-width: 720px; margin: 0 auto; }
.pickpic { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; }
.pick { display: grid; gap: 8px; justify-items: start; }
.pick .cap { margin: 0; overflow-wrap: anywhere; }
.form .pick label.btn { display: inline-flex; color: #000; font: 600 17px var(--sans); }
#lf-pic:focus-visible + .cap, .pick label:focus-within { outline: 2px dashed var(--mint); }
.pickpic .pic { width: 120px; height: 120px; }
.cost { display: grid; gap: 4px; font-size: 16px; }

/* ---------------- docs: a help viewer ---------------- */
.help { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--gap); align-items: start; }
.help nav { position: sticky; top: 0; }
.help summary { list-style: none; cursor: pointer; }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: "\25BE"; margin-left: auto; font-size: 16px; }
.help details:not([open]) summary { margin-bottom: 0; }
.help details:not([open]) summary::after { content: "\25B8"; }
.help nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.help nav a { display: flex; gap: 10px; align-items: center; padding: 8px 8px; color: var(--text); text-decoration: none; font: 500 16px var(--sans); }
.help nav a img { width: 22px; }
.help nav a:hover, .help nav a.on { background: #1f7a5e; color: #fff; }
.paper { overflow-wrap: anywhere; min-width: 0; border: 4px solid transparent; border-image: url(/ui/field.png) 4 fill / 4px; color: #111; padding: 22px 28px 34px; font: 400 17px/1.65 var(--sans); }
.paper h2 { font: 700 22px var(--px); margin: 34px auto 10px; color: #000; scroll-margin-top: 10px; }
.paper h2:first-child { margin-top: 0; }
.help { max-width: 1260px; margin: 0 auto; }
.paper h3 { font: 600 18px var(--sans); margin: 20px auto 6px; }
.paper > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.paper ol, .paper ul { padding-left: 1.3em; }
.paper li + li { margin-top: 6px; }
.paper code, .paper .f { font: 500 15.5px var(--mono); background: #eef0f3; padding: 1px 5px; }
.paper .formula { display: block; text-align: center; font: 600 18px var(--mono); background: #0a0a0b; color: var(--mint); padding: 14px 16px; margin: 12px auto; overflow-x: auto; }
.paper table { border-collapse: collapse; margin: 12px auto; width: 100%; font-size: 16px; }
.paper th, .paper td { border: 1px solid #b9bec7; padding: 6px 10px; text-align: left; vertical-align: top; }
.paper th { background: #e6e8ec; }
.paper .addr { font: 500 14.5px var(--mono); word-break: break-all; }
.paper a { color: #0b6b4a; }
.paper .fine { margin-top: 34px; font-size: 14px; line-height: 1.5; color: #6b7280; overflow-wrap: anywhere; }
.paper .note { border-left: 4px solid var(--mint-dim); background: #f2fbf7; padding: 10px 14px; margin: 12px auto; }
.paper .scheme { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px auto; }
.paper .scheme div { background: #0a0a0b; color: var(--text); padding: 14px 10px; font-size: 15px; line-height: 1.4; display: grid; grid-template-rows: 44px auto 1fr; gap: 8px; justify-items: center; align-items: start; text-align: center; }
.paper .scheme img { width: 44px; height: 44px; object-fit: contain; align-self: center; }
.paper .scheme b { color: var(--mint); font: 700 14px var(--px); }

/* ---------------- error page, IE style ---------------- */
.nf { max-width: 680px; margin: 30px auto; background: #fff; color: #000; padding: 26px 30px; border: 4px solid transparent; border-image: url(/ui/field.png) 4 fill / 4px; }
.nf h1 { font: 700 24px var(--sans); margin: 0 0 10px; }

/* ---------------- toasts ---------------- */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 5; max-width: min(420px, calc(100vw - 40px)); padding: 12px 16px; color: #000; font: 500 16px var(--sans);
  border: 4px solid transparent; border-image: url(/ui/raised.png) 4 fill / 4px; }
.toast b { font-family: var(--px); }

/* ---------------- phone ---------------- */
@media (max-width: 980px) {
  .cols, .cols.even, .batch-hero, .help { grid-template-columns: minmax(0, 1fr); }
  .help nav { position: static; }
  .coin-row { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .coin-row .pic { width: 48px; height: 48px; }
  .coin-row .hide-sm { display: none; }
  .coin-row .prog-box { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .ie { left: 0; top: 0; bottom: 0; width: 100vw; transform: none; }
  .ie-title { height: 40px; }
  .ie-title .tb-btn.mx { display: none; }
  .ie-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 4px; }
  .ie-menu a { justify-content: center; padding: 4px 6px; font-size: 16px; white-space: nowrap; min-height: 40px; }
  .ie-menu .long { display: none; }
  .ie-menu .short { display: inline; }
  .wide-only { display: none !important; }
  .ie-tools { justify-content: space-around; }
  .ie-bars { grid-template-columns: minmax(0, 1fr); }
  .throbber { display: none; }
  .tool { min-width: 56px; min-height: 48px; padding: 2px; font-size: 0; gap: 0; }
  .tool img { width: 30px; height: 30px; }
  .tool span { font-size: 0; }
  .ie-tools { padding: 2px 4px; }
  .ie-tools .sep { margin: 8px 2px; }
  .ie-addr { padding: 4px 6px; }
  .ie-addr label { display: none; }
  .page { padding: 12px 10px 30px; }
  .head { flex-wrap: wrap; row-gap: 2px; font-size: 16px; }
  .head small { flex-basis: 100%; margin-left: 0; font-size: 14px; }
  .coin-head { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; }
  .coin-head .pic.lg { width: 72px; height: 72px; }
  .coin-head .meta { min-width: 0; }
  .coin-head .coin-name { font-size: 20px; }
  .coin-head > div:last-child { grid-column: 1 / -1; min-width: 0 !important; }
  .chart { height: 200px; }
  .banner { padding: 14px 10px; }
  .banner p { font-size: 17px; }
  .title-row { font-size: 17px; margin: 22px 0 12px; }
  .title-row::before, .title-row::after { width: 32px; }
  .hero-coin { justify-content: center; }
  .kv { max-width: 420px; margin: 0 auto; }
  .panel { padding: 10px 8px; }
  .paper { padding: 16px 14px 24px; }
  .paper .scheme { grid-template-columns: 1fr 1fr; }
  .paper table { display: block; overflow-x: auto; }
  .paper th, .paper td { overflow-wrap: normal; word-break: normal; min-width: 104px; }
  .paper td.addr { min-width: 190px; overflow-wrap: anywhere; }
  .pickpic { grid-template-columns: 80px minmax(0, 1fr); }
  .pickpic .pic { width: 80px; height: 80px; }
  .links { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .clouds img { animation: none; }
  .reel { transition: none; }
  .stage .clock.thump .reels { animation: none; }
  .ie-view { scroll-behavior: auto; }
}

/* short screens: the banner steps back so the batch is on the first screen */
@media (max-height: 900px) and (min-width: 761px) {
  .banner { padding: 10px 16px; gap: 6px; }
  .banner .wm { width: min(330px, 60%); }
  .banner p { font-size: 17px; }
}
