/* Erocs site, design B (Data Sublime Field): pure black and pure white, one monospace face, bars and hairlines.
   States show by inversion and line density, never by grey or colour. */
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ground: #000;
  --ink: #fff;
  --hair: 1px solid var(--ink);
  --H: clamp(560px, 100svh, 1100px);
  --gut: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --press: cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: dark;
  /* wallet picker (wallet-ui.ts) reads these */
  --wk-bg: #000;
  --wk-fg: #fff;
  --wk-line: #fff;
  --wk-row: #000;
  --wk-radius: 0;
  --wk-accent: #fff;
  --wk-muted: #fff;
  --wk-error: #fff;
  --wk-scrim: rgba(0, 0, 0, 0.74);
}
html.neg { --ground: #fff; --ink: #000; color-scheme: light; }
.inv { --ground: #fff; --ink: #000; color-scheme: light; }
html.neg .inv { --ground: #000; --ink: #fff; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); }
body {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "calt" 0, "tnum" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--ground); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a[href=""], a:not([href]).xl { display: none !important; }
html:not(.js) .js-only { display: none !important; }

/* ---------- controls ---------- */
.btn {
  position: relative; display: inline-grid; place-items: center; min-height: 44px; padding: 0 16px;
  border: var(--hair); border-radius: 0; background: var(--ground); color: var(--ink); text-decoration: none; cursor: pointer;
  font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  transition: background-color 150ms var(--press), color 150ms var(--press), transform 150ms var(--press);
}
.btn > * { grid-area: 1 / 1; }
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--ground); }
.btn:active { transform: scale(0.97); }
.btn[aria-busy="true"] { cursor: progress; }
.btn:disabled { cursor: not-allowed; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, var(--ground) 1px 4px); color: var(--ink); }
.btn .sv { visibility: hidden; }
.btn[data-state="idle"] .sv-idle, .btn[data-state="busy"] .sv-busy, .btn[data-state="ok"] .sv-ok, .btn[data-state="err"] .sv-err { visibility: visible; }
.btn.small { min-height: 36px; padding: 0 12px; }
/* the wallet button: wallet-ui.ts writes its text (Connect, Sign in, short address) */
button[data-wallet-button] { min-width: 120px; }
button[data-wallet-button][data-state="connected"] { text-transform: none; letter-spacing: 0; }
.wnotice { position: fixed; left: 50%; top: 64px; transform: translateX(-50%); z-index: 40; background: var(--ink); color: var(--ground); padding: 8px 14px; font-size: 13px; }

/* the big round button: a ring of 60 minute ticks with one notch */
.dial {
  position: relative; display: grid; place-items: center; width: var(--dial, 150px); aspect-ratio: 1; border-radius: 50%;
  border: var(--hair); color: var(--ink); background: var(--ground); text-decoration: none; font-size: 16px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: background-color 150ms var(--press), color 150ms var(--press), transform 150ms var(--press);
}
.dial::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  background: repeating-conic-gradient(var(--ink) 0 0.9deg, transparent 0.9deg 6deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  mask: radial-gradient(closest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
}
.dial::after {
  content: ""; position: absolute; top: 2px; left: calc(50% - 1px); width: 2px; height: 14px; background: var(--ink);
  transform-origin: 1px calc(var(--dial, 150px) / 2 - 3px); transform: rotate(var(--notch, 113deg));
}
.dial:hover, .dial:focus-visible { background: var(--ink); color: var(--ground); }
.dial:hover::before, .dial:focus-visible::before { background: repeating-conic-gradient(var(--ground) 0 0.9deg, transparent 0.9deg 6deg); }
.dial:hover::after, .dial:focus-visible::after { background: var(--ground); }
.dial:active { transform: scale(0.97); }
.dial > span { position: relative; text-align: center; }
.dial small { display: block; font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; margin-top: 2px; }

.stamp { display: inline-block; padding: 2px 8px; background: var(--ink); color: var(--ground); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.tagline { display: inline-block; font-size: 13px; padding: 0 6px; border: var(--hair); }
.mark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.mark svg { display: block; }
.mark b { font-weight: 700; font-size: 16px; letter-spacing: 0.18em; }
.mark span { font-size: 13px; }

.seg { display: inline-flex; border: var(--hair); flex-wrap: wrap; }
.seg button, .seg a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 0; background: var(--ground); cursor: pointer; font-size: 13px; text-decoration: none; transition: background-color 150ms var(--press), color 150ms var(--press); }
.seg > * + * { border-left: var(--hair) !important; }
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--ink); color: var(--ground); }
.seg [aria-pressed="false"]:hover, .seg a:not([aria-current]):hover { background: repeating-linear-gradient(90deg, var(--ink) 0 1px, var(--ground) 1px 3px); }

.field { display: flex; border: var(--hair); min-height: 48px; }
.field span { display: grid; place-items: center; padding: 0 12px; border-right: var(--hair); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px; outline: none; font-size: 16px; }
.field:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.hint { font-size: 13px; min-height: 20px; margin: 6px 0 12px; }
.hint.err { animation: shake 280ms var(--press); }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.radio { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; cursor: pointer; }
.radio input { appearance: none; width: 16px; height: 16px; border: var(--hair); border-radius: 50%; margin: 0; }
.radio input:checked { background: radial-gradient(circle, var(--ink) 0 4px, transparent 4.5px); }
fieldset { border: var(--hair); margin: 0 0 16px; padding: 12px 16px 16px; }
legend { padding: 0 6px; font-size: 13px; }

/* ---------- page frame ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 var(--gut); background: var(--ground); border-bottom: var(--hair); }
.top nav.pages { display: flex; align-self: stretch; overflow-x: auto; scrollbar-width: none; margin-right: auto; }
.top nav.pages a { display: flex; align-items: center; padding: 0 14px; font-size: 13px; text-decoration: none; border-left: var(--hair); white-space: nowrap; transition: background-color 150ms var(--press), color 150ms var(--press); }
.top nav.pages a:last-child { border-right: var(--hair); }
.top nav.pages a[aria-current="page"] { background: var(--ink); color: var(--ground); }
.top nav.pages a:not([aria-current]):hover { background: repeating-linear-gradient(90deg, var(--ink) 0 1px, var(--ground) 1px 3px); }
.top .right { display: flex; gap: 8px; align-items: center; }

main.page { padding: 40px var(--gut) 72px; min-height: 60svh; }
.band { position: relative; height: clamp(260px, 38svh, 420px); border-bottom: var(--hair); }
.band canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.band .note { position: absolute; right: var(--gut); top: 10px; margin: 0; font-size: 13px; background: var(--ground); padding: 0 6px; pointer-events: none; }
.grid2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.q { margin: 0 0 20px; font-size: 28px; line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; max-width: 26ch; text-wrap: balance; }
.ans { font-size: clamp(48px, 5.2vw, 76px); line-height: 1; font-weight: 300; letter-spacing: -0.04em; margin: 0 0 8px; white-space: nowrap; }
.sub { margin: 0 0 24px; font-size: 16px; max-width: 56ch; }
.small { font-size: 13px; }
.facts { display: grid; grid-template-columns: auto 1fr; margin: 0 0 24px; font-size: 14px; }
.facts dt, .facts dd { padding: 6px 0; border-top: var(--hair); }
.facts dd { margin: 0; padding-left: 24px; text-align: right; overflow-wrap: anywhere; }
.facts .why { font-size: 13px; display: block; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
h2.h { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.judg { font-size: 13px; border-left: 3px solid var(--ink); padding: 4px 0 4px 12px; margin: 0 0 16px; }
.empty { padding: 24px 0; border-top: var(--hair); border-bottom: var(--hair); }
.empty b { display: block; font-weight: 600; margin-bottom: 4px; }
.empty p { margin: 0 0 12px; font-size: 14px; }
.loading { height: 120px; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, var(--ground) 1px 9px); background-size: 18px 100%; animation: sweep 1.2s linear infinite; }
@keyframes sweep { to { background-position: 18px 0; } }
.mono { overflow-wrap: anywhere; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; font-size: 13px; padding: 0 8px 8px; border-bottom: var(--hair); white-space: nowrap; }
td { padding: 0 8px; height: 48px; border-bottom: var(--hair); white-space: nowrap; }
th.n, td.n { text-align: right; }
td.m { max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
tbody tr[data-href] { cursor: pointer; transition: background-color 150ms var(--press), color 150ms var(--press); }
tbody tr[data-href]:hover, tbody tr[data-href]:focus-visible, tbody tr.hot { background: var(--ink); color: var(--ground); outline: none; }
tbody tr.faint td { border-bottom-style: dashed; }
.bar { display: inline-block; width: 18px; height: 10px; vertical-align: -1px; background: currentColor; }
.bar.out { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.scroll { overflow-x: auto; }

.foot { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding: 28px var(--gut); border-top: var(--hair); font-size: 13px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- landing ---------- */
.front { position: relative; height: var(--H); min-height: 560px; display: grid; grid-template-rows: max(calc(var(--H) * 0.58), calc(var(--H) - 300px)) 1fr; }
.field-wrap { position: relative; border-bottom: var(--hair); }
.field-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.strip { position: absolute; inset: 0 0 auto 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; padding: 0 var(--gut); }
.strip .count { order: 1; font-size: 13px; margin: 0; background: var(--ground); padding: 0 6px; }
.strip nav { order: 2; display: flex; gap: 8px; align-items: center; }
.reading { position: absolute; z-index: 2; right: var(--gut); top: calc(var(--H) * 0.13); min-width: min(31vw, 460px); padding: 14px 18px 16px; background: var(--ground); border: var(--hair); }
.reading .lbl { font-size: 13px; display: flex; justify-content: space-between; gap: 16px; }
.reading .val { font-size: min(8vw, calc(var(--H) * 0.13)); line-height: 1; font-weight: 300; letter-spacing: -0.04em; margin: 12px 0 10px; white-space: nowrap; }
.reading .fx { font-size: 16px; }
.panel { display: grid; grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr); gap: 40px; align-items: start; padding: calc(var(--H) * 0.035) var(--gut) 0; }
.who { display: grid; gap: 12px; max-width: 620px; }
.who .row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.front h1 { margin: 0; font-size: 28px; line-height: 1.05; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; max-width: 22ch; }
.story { margin: 0; font-size: 16px; min-height: 3em; max-width: 60ch; }
.story .caret { display: inline-block; width: 0.55em; height: 1.05em; vertical-align: -0.15em; background: var(--ink); margin-left: 2px; }
.status { margin: 0; font-size: 13px; max-width: 64ch; }
.ways { display: flex; gap: 16px; padding-top: 4px; }
.read { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 2px; font-size: 14px; margin: 0; }
.read dt { white-space: nowrap; }
.read dd { margin: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.read .src { grid-column: 1 / -1; font-size: 13px; margin-top: 8px; padding-top: 8px; border-top: var(--hair); text-align: left; white-space: normal; }
.token { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 20px; font-size: 14px; }
.token b { display: block; font-size: 22px; font-weight: 400; }
html[data-app="1"]:not([data-mint=""]) .pre { display: none !important; }
html:not([data-app="1"]) .post, html[data-mint=""] .post { display: none !important; }
html.js .front .who > *, html.js .front .ways, html.js .front .read { opacity: 0; transform: translateY(10px); }
html.js.ready .front .who > *, html.js.ready .front .ways, html.js.ready .front .read { opacity: 1; transform: none; transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
html.js.ready .front .ways { transition-delay: 120ms; }
html.js.ready .front .read { transition-delay: 220ms; }

/* ---------- receipts and checks ---------- */
.embed { border: var(--hair); padding: 16px; margin: 0 0 16px; display: grid; gap: 8px; font-size: 14px; min-height: 120px; }
.embed .hd { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.embed .ph { height: 48px; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, var(--ground) 1px 6px); }
.embed iframe { max-width: 100%; }
.checks { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: c; }
.checks li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-top: var(--hair); font-size: 14px; }
.checks li::before { counter-increment: c; content: counter(c, decimal-leading-zero); font-size: 13px; padding-top: 2px; }
.checks .res { font-size: 22px; font-weight: 600; min-width: 40px; text-align: center; border: var(--hair); line-height: 36px; height: 38px; padding: 0 6px; }
.checks li.pass .res { background: var(--ink); color: var(--ground); }
.checks .out { font-size: 13px; overflow-wrap: anywhere; }
.hours { width: 100%; }
.hours td.out { white-space: normal; overflow-wrap: anywhere; height: auto; padding: 10px 8px; }
#hours { overflow-x: auto; }
.hold { position: relative; overflow: hidden; }
.hold .fill { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.hold span { position: relative; mix-blend-mode: difference; color: #fff; }

/* ---------- docs, rules, program: chapters alternate grounds ---------- */
.ch { background: var(--ground); color: var(--ink); padding: 72px var(--gut); position: relative; overflow-x: clip; }
.kick { font-size: 13px; margin: 0 0 16px; display: flex; gap: 16px; }
.ch h1 { margin: 0 0 24px; font-size: clamp(32px, 4.8vw, 68px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; max-width: 20ch; }
.ch h2 { margin: 0 0 20px; font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; max-width: 24ch; }
.ch h3 { font-size: 20px; font-weight: 500; margin: 32px 0 10px; }
.ch p, .ch li { max-width: 70ch; }
.ch code { font: inherit; border-bottom: 1px dashed currentColor; }
.ch table { margin: 8px 0 16px; }
.ch td, .ch th { white-space: normal; vertical-align: top; height: auto; padding: 10px 12px 10px 0; }
.docbody section { padding: 64px var(--gut); border-top: var(--hair); overflow-x: clip; }
.docbody section:nth-child(even) { --ground: #fff; --ink: #000; background: var(--ground); color: var(--ink); color-scheme: light; }
.docbody section > h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 20px; max-width: 24ch; }
.docbody section > h2::before { content: counter(doc, decimal-leading-zero) "  "; counter-increment: doc; font-size: 13px; vertical-align: top; letter-spacing: 0; margin-right: 12px; }
.docbody section > h3 { font-size: 20px; font-weight: 500; margin: 32px 0 10px; }
.docbody { counter-reset: doc; }
.docbody p, .docbody li { max-width: 72ch; }
.docbody ol, .docbody ul { padding-left: 22px; }
.docbody li { margin-bottom: 8px; }
.docbody code { font: inherit; border-bottom: 1px dashed currentColor; }
.docbody table { margin: 12px 0; font-size: 14px; }
.docbody td, .docbody th { white-space: normal; vertical-align: top; height: auto; padding: 10px 12px 10px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 0; border: var(--hair); margin: 24px 0 0; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 13px; text-decoration: none; border-right: var(--hair); }
.toc a:hover { background: var(--ink); color: var(--ground); }
.rulestext { white-space: pre-wrap; font-size: 15px; max-width: 86ch; margin: 0; }
.keys td:first-child { white-space: nowrap; font-weight: 600; }


/* ---------- app: one question at a time ---------- */
.trail { display: flex; align-self: stretch; overflow-x: auto; scrollbar-width: none; margin-right: auto; }
.trail a { display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 13px; text-decoration: none; border-left: var(--hair); white-space: nowrap; transition: background-color 150ms var(--press), color 150ms var(--press); }
.trail a:last-child { border-right: var(--hair); }
.trail a b { font-weight: 600; }
.trail a[aria-current="step"] { background: var(--ink); color: var(--ground); }
.trail a:not([aria-current]):hover { background: repeating-linear-gradient(90deg, var(--ink) 0 1px, var(--ground) 1px 3px); }
.watched { list-style: none; margin: 0 0 16px; padding: 0; }
.watched li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; min-height: 52px; border-top: var(--hair); font-size: 14px; }
.watched li:last-child { border-bottom: var(--hair); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chips .btn, .watched .btn { text-transform: none; letter-spacing: 0; }
.inbox { list-style: none; margin: 0; padding: 0; }
.inbox li { display: grid; gap: 4px; padding: 14px 0; border-top: var(--hair); font-size: 14px; }
.inbox li.new { border-left: 3px solid var(--ink); padding-left: 12px; }
.inbox .meta { font-size: 13px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: var(--hair); margin: 0 0 16px; }
.plans > div { padding: 14px; font-size: 14px; display: grid; gap: 8px; align-content: start; }
.plans > div + div { border-left: var(--hair); }
.plans b { font-size: 26px; font-weight: 400; }
.plans .on { background: var(--ink); color: var(--ground); }
.confirm { border: var(--hair); padding: 16px; margin: 0 0 16px; display: grid; gap: 8px; font-size: 14px; }
.confirm .cost { font-size: 13px; }
.salts { font-size: 13px; }
.salts td { white-space: normal; overflow-wrap: anywhere; height: auto; padding: 8px; vertical-align: top; }
@media (max-width: 960px) {
  .app-top { flex-wrap: wrap; height: auto; padding-top: 6px; padding-bottom: 6px; row-gap: 6px; }
  .app-top .trail { order: 4; flex-basis: 100%; height: 44px; margin-right: 0; }
}
@media (max-width: 720px) {
  .plans { grid-template-columns: 1fr; }
  .plans > div + div { border-left: 0; border-top: var(--hair); }
  .watched li { grid-template-columns: 1fr auto; }
  .watched li .n2 { display: none; }
}

/* ---------- command palette ---------- */
.palette { position: fixed; inset: 0; z-index: 50; display: grid; justify-items: center; align-items: start; padding-top: 128px; background: rgba(0, 0, 0, 0.7); }
.palette .box { width: min(640px, calc(100vw - 32px)); background: var(--ground); border: var(--hair); animation: pop 100ms var(--ease) both; }
.palette input { width: 100%; height: 48px; border: 0; border-bottom: var(--hair); background: transparent; padding: 0 16px; outline: none; font-size: 16px; }
.palette ul { list-style: none; margin: 0; padding: 8px; max-height: min(300px, 60vh); overflow: auto; }
.palette li { display: flex; justify-content: space-between; gap: 16px; padding: 0 8px; min-height: 36px; align-items: center; cursor: pointer; font-size: 14px; margin-bottom: 4px; }
.palette li[aria-selected="true"] { background: var(--ink); color: var(--ground); }
.palette kbd { font: inherit; font-size: 13px; }
.palette .ft { display: flex; justify-content: space-between; padding: 8px 16px; border-top: var(--hair); font-size: 13px; }
@keyframes pop { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: none; } }

.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; padding: 10px 16px; background: var(--ink); color: var(--ground); font-size: 14px; animation: toastIn 400ms var(--ease) both; }
@keyframes toastIn { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- wallet picker in this design (wallet-ui.ts owns the markup) ---------- */
.wk-backdrop .wk-panel { border-radius: 0; padding: 0; }
.wk-backdrop .wk-head { padding: 12px 16px; margin: 0; border-bottom: 1px solid #fff; }
.wk-backdrop .wk-title { font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.wk-backdrop .wk-x { min-width: 44px; min-height: 44px; }
.wk-backdrop .wk-label { font-size: 13px; margin: 16px 16px 8px; }
.wk-backdrop .wk-row, .wk-backdrop .wk-grid { margin-left: 16px; margin-right: 16px; width: calc(100% - 32px); }
.wk-backdrop .wk-row { min-height: 56px; border-radius: 0; transition: background-color 150ms var(--press), color 150ms var(--press); }
.wk-backdrop .wk-row:hover, .wk-backdrop .wk-tile:hover { background: #fff; color: #000; border-color: #fff; }
.wk-backdrop .wk-row:hover .wk-tag { color: #000; }
.wk-backdrop .wk-tile { min-height: 48px; border-radius: 0; font-size: 14px; transition: background-color 150ms var(--press), color 150ms var(--press); }
.wk-backdrop .wk-tag { font-size: 13px; }
.wk-backdrop .wk-err { margin: 12px 16px 0; padding: 8px 12px; border: 1px solid #fff; font-size: 13px; }
.wk-backdrop .wk-note { margin: 16px; font-size: 13px; }
body > .wk-panel { border-radius: 0; }

@media (max-width: 1100px) {
  .panel { grid-template-columns: minmax(0, 1fr) auto; }
  .read { grid-column: 1 / -1; }
  .front { height: auto; grid-template-rows: calc(var(--H) * 0.6) auto; }
}
@media (max-width: 960px) {
  .grid2 { grid-template-columns: 1fr; gap: 24px; }
  .top { gap: 8px; }
  .top nav.pages { display: none; }
  .top .right { margin-left: auto; }
}
@media (max-width: 720px) {
  :root { --gut: 16px; }
  .front { grid-template-rows: 56svh auto; min-height: 0; }
  .strip { height: 52px; }
  .strip .count { display: none; }
  .strip nav { margin-left: auto; }
  .reading { top: auto; bottom: 12px; right: 12px; min-width: 0; padding: 8px 12px 10px; }
  .reading .val { font-size: 44px; margin: 6px 0; }
  .reading .fx { font-size: 13px; }
  .panel { grid-template-columns: 1fr; gap: 24px; padding: 24px var(--gut) 40px; }
  .front h1 { font-size: 24px; }
  .ways { --dial: 120px; }
  .dial small { display: none; }
  .q { font-size: 21px; }
  .band .note { display: none; }
  .token { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr; }
  .top .right .btn { padding: 0 10px; }
  button[data-wallet-button] { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
