:root {
  --bg: #16161a; --panel: #1d1d22; --line: #2c2c33; --heap: #3a3a40;
  --text: #ececf0; --muted: #9a9aa3; --ember: #ff8a1f; --glow: #ffb347; --neg: #ff6b4a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto; max-width: 64rem; padding: 0 1rem 2rem;
  background: var(--bg); color: var(--text);
  font: 1rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--ember); }
a:hover { color: var(--glow); }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }
.num, table { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.neg { color: var(--neg); }

header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding: 1rem 0; }
header h1 { margin: 0; flex: 1 1 18rem; max-width: 34rem; }
header h1 img { display: block; width: 100%; height: auto; }
.channel { font-weight: 600; }

.status { padding: 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }

section { margin: 1.25rem 0; padding: 1.25rem; background: var(--panel); border: 1px solid var(--line); border-radius: .75rem; }
h2 { margin: 0 0 .75rem; font-size: 1.25rem; letter-spacing: .02em; }
section p { margin: .5rem 0; }

.big { margin: 0; line-height: 1.1; }
.big .num { font-size: clamp(2.5rem, 11vw, 4.5rem); font-weight: 800; color: var(--glow); text-decoration: none; overflow-wrap: anywhere; }
.big a.num:hover { text-decoration: underline; }
.big .unit { display: inline-block; font-size: 1.25rem; color: var(--muted); }
.big-note { font-size: 1.5rem; font-weight: 600; color: var(--glow); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1rem 0; }
.tiles div { padding: .75rem 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: .5rem; }
.tiles dt { font-size: .85rem; color: var(--muted); }
.tiles dd { margin: .25rem 0 0; font-size: 1.4rem; font-weight: 700; }

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { font-size: .8rem; font-weight: 600; color: var(--muted); }
.r, thead th:not(:first-child) { text-align: right; }
#burns thead th:last-child { text-align: left; }
.txs a + a { margin-left: .5rem; }
.nw { white-space: nowrap; }

.steps { margin: 0; padding-left: 1.5rem; }
.steps li { margin: .35rem 0; }
.steps li::marker { color: var(--ember); font-weight: 700; }

.addrs { margin: 0; }
.addrs div { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.addrs div:last-child { border-bottom: 0; }
.addrs dt { font-size: .85rem; color: var(--muted); }
.addrs dd { margin: .25rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.addrs code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; min-width: 0; }
.copy {
  font: inherit; font-size: .85rem; padding: .3rem .8rem; cursor: pointer;
  color: var(--text); background: var(--heap); border: 1px solid #55555c; border-radius: .4rem;
}
.copy:hover { border-color: var(--ember); }

footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

@media (max-width: 40rem) {
  section { padding: 1rem; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles dd { font-size: 1.2rem; }
  th, td { padding: .5rem .4rem; }
  #burns td:first-child, #burns th { white-space: normal; }
}
