/* Hocked — look A "Ticket". Tokens and rules: D:/Projects/Hocked/DESIGN.md */
@font-face { font-family: "Darker Grotesque"; src: url("/assets/fonts/DarkerGrotesque-var.woff2?v=1") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Gabarito"; src: url("/assets/fonts/Gabarito-var.woff2?v=1") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Cutive Mono"; src: url("/assets/fonts/CutiveMono-400.woff2?v=1") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ground: #0a0b0a; --surface: #121412; --surface-2: #191c19; --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --ink: #f3f4f1; --ink-2: #b9bdb6; --muted: #7c8178;
  --paper: #eef0ec; --paper-ink: #121412; --paper-line: #c9cdc5; --paper-muted: #5c6158;
  --green: #33e27a; --green-ink: #06130a; --green-deep: #0b6b33; --red: #ff4d3d; --red-paper: #c4291c;
  --display: "Darker Grotesque", system-ui, sans-serif; --text: "Gabarito", system-ui, sans-serif; --type: "Cutive Mono", ui-monospace, monospace;
  --r: 14px; --wrap: 1280px; --gut: 48px;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hide { display: none !important; }

/* ---------- header ---------- */
.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: rgba(10, 11, 10, .92); backdrop-filter: blur(8px); }
.top .wrap { display: flex; align-items: center; height: 72px; gap: 36px; }
.brand { display: flex; align-items: center; gap: 10px; font: 900 30px/1 var(--display); letter-spacing: -.01em; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 26px; font-size: 15px; color: var(--ink-2); }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-color: var(--green); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.ca { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; background: none; }
.ca b { color: var(--ink); font-weight: 600; }
.ca code { font: 400 13px var(--type); color: var(--ink); }
.menu { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 42px; height: 42px; }
.menu span, .menu span::before, .menu span::after { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; content: ""; }
.menu span::before { position: absolute; top: -6px; } .menu span::after { position: absolute; top: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 13px 22px; font: 600 15px/1 var(--text); border: 0; text-decoration: none; white-space: nowrap; }
.btn-green { background: var(--green); color: var(--green-ink); }
.btn-green:hover { background: #4ff08d; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.btn-red { background: transparent; color: #ff8a7f; box-shadow: inset 0 0 0 1px rgba(255, 77, 61, .5); }
.btn-small { padding: 9px 14px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.wallet-btn img { width: 18px; height: 18px; border-radius: 4px; }

/* ---------- type ---------- */
h1 { font: 900 clamp(64px, 8.4vw, 128px)/.84 var(--display); letter-spacing: -.025em; }
h1 span { color: var(--muted); }
h2 { font: 900 clamp(48px, 5.2vw, 72px)/.88 var(--display); letter-spacing: -.02em; }
h3 { font: 800 30px/1 var(--display); }
.kicker { font-size: 15px; color: var(--green); margin-bottom: 18px; }
.lede { max-width: 540px; margin-top: 26px; font-size: 19px; color: var(--ink-2); }
.lede b { color: var(--ink); font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.page-head { padding: 64px 0 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.page-head p { max-width: 460px; color: var(--ink-2); }

/* ---------- hero ---------- */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.cta { display: flex; gap: 12px; margin-top: 34px; align-items: center; flex-wrap: wrap; }
.terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid var(--line); }
.terms div { padding: 16px 16px 0 0; }
.terms b { display: block; font: 800 34px/1 var(--display); }
.terms span { font-size: 13px; color: var(--muted); }

/* ---------- the ticket ---------- */
.ticket-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.ticket { position: relative; display: flex; width: 100%; max-width: 560px; transform: rotate(-2.4deg); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); color: var(--paper-ink); }
.ticket.flat { transform: none; }
.t-main { flex: 1; min-width: 0; background: var(--paper); border-radius: 10px 0 0 10px; padding: 26px 28px 22px; position: relative; }
.t-stub { width: 150px; flex: none; background: var(--paper); border-radius: 0 10px 10px 0; padding: 26px 18px; position: relative; }
.perf { position: absolute; right: -1px; top: 14px; bottom: 14px; width: 2px; background-image: linear-gradient(var(--paper-line) 55%, transparent 0); background-size: 2px 9px; }
.notch { position: absolute; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--ground); z-index: 3; }
.notch.t { top: -9px; } .notch.b { bottom: -9px; }
.t-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--paper-ink); padding-bottom: 12px; gap: 12px; }
.t-head .ttl { font: 900 30px/.9 var(--display); letter-spacing: -.01em; }
.t-head .ttl small { display: block; font: 500 12px/1.3 var(--text); letter-spacing: .02em; margin-top: 6px; color: #4a4f47; }
.t-no { font: 400 15px/1 var(--type); text-align: right; }
.t-no b { display: block; font: 700 26px/1 var(--text); letter-spacing: .04em; margin-top: 4px; color: var(--green-deep); }
.t-rows { margin-top: 2px; }
.t-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--paper-line); align-items: baseline; }
.t-row dt { font-size: 12px; color: var(--paper-muted); }
.t-row dd { font: 400 18px/1.25 var(--type); overflow-wrap: anywhere; }
.t-row dd .coin { display: inline-flex; align-items: center; gap: 8px; }
.t-row dd img { width: 22px; height: 22px; border-radius: 50%; }
.t-row dd small { display: block; font: 400 12px/1.4 var(--text); color: var(--paper-muted); margin-top: 2px; }
.t-row.big dd { font-size: 26px; }
.t-sig { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14px; font-size: 11px; color: var(--paper-muted); gap: 10px; }
.t-sig .line { border-top: 1px solid var(--paper-ink); min-width: 140px; padding-top: 4px; }
.stamp { position: absolute; transform: rotate(-14deg); border: 3px solid currentColor; font: 800 22px/1 var(--display); letter-spacing: .06em; padding: 6px 12px 4px; border-radius: 6px; opacity: .88; z-index: 2; text-align: center; }
.stamp small { display: block; font: 600 9px/1.2 var(--text); letter-spacing: .12em; }
.stamp.ex { right: -128px; bottom: 96px; color: var(--green-deep); }
.stamp.issued, .stamp.redeemed, .stamp.forfeit { right: 22px; bottom: 40px; }
.stamp.issued { color: var(--paper-ink); }
.stamp.redeemed { color: var(--green-deep); }
.stamp.forfeit { color: var(--red-paper); }
.t-stub .hole { position: absolute; top: 22px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--ground); }
.t-stub .s-ttl { font: 900 20px/.9 var(--display); margin-top: 26px; }
.t-stub .s-no { font: 700 18px/1 var(--text); color: var(--green-deep); margin: 10px 0 18px; letter-spacing: .04em; }
.t-stub dl div { margin-bottom: 12px; }
.t-stub dt { font-size: 11px; color: var(--paper-muted); }
.t-stub dd { font: 400 16px/1.2 var(--type); overflow-wrap: anywhere; }
.t-stub .keep { position: absolute; bottom: 22px; left: 18px; right: 18px; font-size: 11px; color: var(--paper-muted); border-top: 1px solid var(--paper-line); padding-top: 8px; }
.ticket-note { font-size: 13px; color: var(--muted); align-self: flex-end; margin-right: 40px; }

/* ---------- coin rail and grid ---------- */
.rail { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.rail .wrap { display: flex; align-items: center; gap: 30px; height: 76px; }
.rail .lbl { font-size: 13px; color: var(--muted); white-space: nowrap; }
.rail .c { display: flex; align-items: center; gap: 9px; font: 600 15px/1 var(--text); white-space: nowrap; text-decoration: none; }
.coin-img { border-radius: 50%; background: #e9ebe7; object-fit: cover; }
.rail .coin-img { width: 28px; height: 28px; }
section.blk { padding: 110px 0 0; }
.sh { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 40px; }
.sh p { max-width: 430px; color: var(--ink-2); }
.grid10 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; text-decoration: none; display: block; }
.cc:hover { border-color: var(--line-2); }
.cc .coin-img { width: 44px; height: 44px; }
.cc b { display: block; font: 800 26px/1 var(--display); margin-top: 14px; overflow-wrap: anywhere; }
.cc .nm { font-size: 13px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc .pool { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.ok { color: var(--green); } .bad { color: #ff8a7f; } .warn { color: #f5c76a; }

/* ---------- three states ---------- */
.states { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.st { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; min-height: 290px; position: relative; overflow: hidden; }
.st .n { font: 400 15px/1 var(--type); color: var(--muted); }
.st h3 { font: 900 44px/1 var(--display); margin: 14px 0 12px; }
.st p { color: var(--ink-2); font-size: 16px; max-width: 330px; position: relative; z-index: 1; }
.mini { position: absolute; right: -18px; bottom: -14px; width: 210px; height: 96px; background: var(--paper); border-radius: 8px; transform: rotate(-8deg); padding: 12px 14px; color: var(--paper-ink); font: 400 12px/1.4 var(--type); }
.mini .stp { position: absolute; right: 26px; top: -6px; transform: rotate(-12deg); font: 800 15px/1 var(--display); letter-spacing: .06em; border: 2px solid; padding: 3px 7px 1px; border-radius: 4px; background: var(--paper); }
.mini { padding-top: 26px; }
.stp.g { color: var(--green-deep); } .stp.r { color: var(--red-paper); } .stp.k { color: var(--paper-ink); }

/* ---------- panels, tables, stubs ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; min-width: 0; }
.panel > h3 { margin-bottom: 8px; }
.panel > p { color: var(--ink-2); font-size: 16px; }
.two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.empty { padding: 40px 0 26px; text-align: center; color: var(--muted); }
.empty .tk { display: block; width: 120px; height: 62px; border: 1.5px dashed rgba(255, 255, 255, .25); border-radius: 8px; margin: 0 auto 14px; }
.stubs { margin-top: 12px; }
.stub-row { display: grid; grid-template-columns: 96px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 120px; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.stub-row.head { font-size: 12px; color: var(--muted); padding: 10px 0; }
.stub-row .no { font: 400 15px var(--type); color: var(--ink-2); }
.stub-row .bag { display: flex; align-items: center; gap: 10px; min-width: 0; }
.stub-row .bag .coin-img { width: 26px; height: 26px; flex: none; }
.stub-row .bag span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; border-radius: 999px; padding: 5px 10px; border: 1px solid var(--line-2); white-space: nowrap; }
.pill.open { color: var(--ink); } .pill.red { color: #ff8a7f; border-color: rgba(255, 77, 61, .4); } .pill.green { color: var(--green); border-color: rgba(51, 226, 122, .4); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.tx { color: var(--muted); font-size: 13px; text-decoration: none; }
.tx:hover { color: var(--ink); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--ink-2); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.stat b { display: block; font: 800 34px/1 var(--display); margin-top: 6px; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- the counter ---------- */
.counter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: start; padding-bottom: 40px; }
.form { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.form > *, .field { min-width: 0; }
.field label, .label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.coins-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.coins-pick button { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; overflow: hidden; }
.coins-pick button .sym { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coins-pick button .coin-img { width: 30px; height: 30px; }
.coins-pick button small { font-size: 11px; color: var(--muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.coins-pick button[aria-pressed="true"] { border-color: var(--green); background: rgba(51, 226, 122, .08); }
.coins-pick button[disabled] { opacity: .4; }
.amount { display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.amount input { flex: 1; min-width: 0; background: none; border: 0; padding: 16px 0; font: 600 26px/1 var(--text); outline: none; }
.amount .unit { font-weight: 600; color: var(--muted); }
.amount .max { background: none; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; padding: 5px 10px; margin-left: 10px; color: var(--ink-2); }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.hint.err { color: #ff8a7f; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); } .facts dd { text-align: right; }
.notice { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); display: flex; gap: 12px; align-items: flex-start; }
.notice b { color: var(--ink); }
.notice.red { border-color: rgba(255, 77, 61, .45); }
.notice.green { border-color: rgba(51, 226, 122, .45); }
.steps { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); counter-reset: s; }
.steps li { list-style: none; display: flex; gap: 10px; align-items: center; }
.steps li::before { counter-increment: s; content: counter(s); width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12px; flex: none; }
.steps li.done::before { content: "✓"; background: var(--green); color: var(--green-ink); border-color: var(--green); }
.steps li.now { color: var(--ink); }
.holdings { display: grid; gap: 0; }
.holdings .h { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.holdings .h .coin-img { width: 30px; height: 30px; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 56px; padding-bottom: 40px; }
.docs nav { position: sticky; top: 100px; align-self: start; display: grid; gap: 6px; font-size: 15px; }
.docs nav a { text-decoration: none; color: var(--ink-2); padding: 4px 0; }
.docs nav a:hover { color: var(--ink); }
.doc { max-width: 760px; }
.doc section { padding-bottom: 46px; margin-bottom: 46px; border-bottom: 1px solid var(--line); }
.doc h2 { font-size: 52px; margin-bottom: 18px; }
.doc h4 { font: 700 18px/1.3 var(--text); margin: 22px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 20px; display: grid; gap: 6px; margin-top: 10px; }
.doc code { font: 400 15px var(--type); color: var(--ink); overflow-wrap: anywhere; }
.doc .formula { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 14px 0; font: 400 16px/1.6 var(--type); color: var(--ink); overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; table-layout: fixed; }
.doc td code { word-break: break-all; }
.doc th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.doc td { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; overflow-wrap: anywhere; }
.doc td + td, .doc th + th { padding-left: 16px; }
.addr { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; flex-wrap: wrap; }
.addr code { color: var(--ink); min-width: 0; word-break: break-all; }

/* ---------- toasts and the wallet picker ---------- */
.toast-box { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 60; max-width: min(380px, calc(100vw - 40px)); }
.toast { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; font-size: 14px; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
.toast.err { border-color: rgba(255, 77, 61, .5); } .toast.good { border-color: rgba(51, 226, 122, .5); }
.toast a { color: var(--green); }
.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); z-index: 50; display: grid; place-items: center; padding: 20px; }
.sheet { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 26px; width: 100%; max-width: 420px; }
.sheet h3 { margin-bottom: 6px; }
.sheet p { color: var(--ink-2); font-size: 15px; margin-bottom: 16px; }
.sheet .list { display: grid; gap: 8px; }
.sheet .list button, .sheet .list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; text-align: left; }
.sheet .list img { width: 26px; height: 26px; border-radius: 6px; }
.sheet .close { margin-top: 14px; width: 100%; }

/* ---------- footer ---------- */
footer.foot { margin-top: 120px; border-top: 1px solid var(--line); }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; padding-bottom: 40px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
footer.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.foot a { text-decoration: none; } footer.foot a:hover { color: var(--ink); }

/* ---------- 404 ---------- */
.lost { display: grid; place-items: center; text-align: center; padding: 120px 0; gap: 18px; }
.torn { width: 180px; height: 96px; background: var(--paper); border-radius: 8px; transform: rotate(-6deg); position: relative; clip-path: polygon(0 0, 100% 0, 92% 18%, 100% 34%, 90% 52%, 100% 70%, 93% 86%, 100% 100%, 0 100%); color: var(--paper-ink); font: 400 13px/1.5 var(--type); padding: 16px; text-align: left; }

/* ---------- widths ---------- */
@media (max-width: 1100px) {
  :root { --gut: 32px; }
  .grid10 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stamp.ex { right: 18px; bottom: auto; top: 120px; }
}
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 64px; padding-top: 48px; }
  .counter, .two, .split { grid-template-columns: minmax(0, 1fr); }
  .states { grid-template-columns: minmax(0, 1fr); }
  .grid10 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs nav { position: static; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .sh { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .menu { display: block; }
  .top.open .nav { display: grid; position: absolute; top: 72px; left: 0; right: 0; background: var(--ground); border-bottom: 1px solid var(--line); padding: 16px var(--gut) 22px; gap: 4px; font-size: 18px; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  body { font-size: 16px; }
  .top .wrap { gap: 12px; height: 64px; }
  .top.open .nav { top: 64px; }
  .brand { font-size: 26px; } .brand svg { width: 30px; height: 30px; }
  .top .ca { display: none; }
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .grid10 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coins-pick { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .coins-pick button small { display: none; }
  .ticket { transform: none; }
  .t-main { padding: 20px 16px 18px; }
  .t-stub { width: 92px; padding: 20px 10px; }
  .t-stub .keep { display: none; }
  .t-row { grid-template-columns: 92px minmax(0, 1fr); }
  .t-row dd { font-size: 15px; } .t-row.big dd { font-size: 20px; }
  .t-head .ttl { font-size: 24px; } .t-no b { font-size: 20px; }
  .t-main { padding-bottom: 58px; }
  .t-sig { display: none; }
  .stamp.ex { top: auto; bottom: 12px; left: 16px; right: auto; font-size: 14px; transform: rotate(-5deg); padding: 4px 9px 3px; }
  .stamp.issued, .stamp.redeemed, .stamp.forfeit { top: auto; bottom: 12px; left: 16px; right: auto; font-size: 16px; transform: rotate(-5deg); }
  .doc table th:nth-child(4), .doc table td:nth-child(4) { display: none; }
  .ticket-note { margin-right: 0; align-self: flex-start; }
  .stub-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .stub-row > :nth-child(4), .stub-row > :nth-child(3).wide { display: none; }
  .stub-row.head > :nth-child(4) { display: none; }
  .st { min-height: 300px; }
  section.blk { padding-top: 80px; }
  .rail .wrap { overflow-x: auto; scrollbar-width: none; }
}
@media (max-width: 380px) {
  .top .wrap { gap: 8px; }
  .brand { font-size: 22px; gap: 7px; } .brand svg { width: 26px; height: 26px; }
  .wallet-btn { padding: 10px 12px; font-size: 13px; }
  .menu { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
