/* Loyal Cart: the receipt. Paper, thermal print, rubber stamps. */
:root {
  --bg: #d9d3c7;
  --bg2: #cfc8ba;
  --paper: #fbfaf5;
  --ink: #1c1a17;
  --ink2: #3a3630;
  --dim: #8d877b;
  --red: #c8351f;
  --green: #2e7a3a;
  --serif: "Fraunces", Georgia, serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --print: "VT323", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 4px 4px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.9em; background: rgba(28, 26, 23, 0.07); padding: 1px 5px; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--paper); }

/* ------------------------------------------------------------ bar */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 48px;
  background: rgba(217, 211, 199, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
}
.brand { font-family: var(--print); font-size: 26px; letter-spacing: 0.06em; text-decoration: none; white-space: nowrap; }
.brand span { margin: 0 4px; }
.bar nav { display: flex; gap: 6px; margin-left: auto; }
.bar nav a { font-size: 13px; font-weight: 700; text-decoration: none; padding: 6px 12px; border: 2px solid transparent; }
.bar nav a:hover, .bar nav a.on { border-color: var(--ink); background: var(--paper); }
.live { display: flex; align-items: center; gap: 8px; font-family: var(--print); font-size: 20px; color: var(--dim); white-space: nowrap; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.live.on { color: var(--ink); }
.live.on i { background: #3fbf4f; box-shadow: 0 0 0 3px rgba(63, 191, 79, 0.2); animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

/* ------------------------------------------------------------ type */
.eyebrow { font-family: var(--print); font-size: 21px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 14px; color: var(--ink2); }
h1, h2, h3 { font-family: var(--serif); margin: 0; }
h1 {
  font-weight: 900; font-size: clamp(56px, 7.4vw, 112px); line-height: 0.9; letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 100;
}
h1 i, h2 i { font-weight: 400; font-style: italic; }
h2 { font-weight: 900; font-size: clamp(38px, 4.6vw, 68px); line-height: 0.95; letter-spacing: -0.03em; }
h3 { font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }
.head { max-width: 760px; margin-bottom: 44px; }
.sub { font-size: 15px; max-width: 640px; margin: 18px 0 0; }

/* ------------------------------------------------------------ buttons */
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 15px;
  padding: 15px 22px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  text-decoration: none; box-shadow: 4px 4px 0 var(--ink); transition: transform 0.12s, box-shadow 0.12s;
}
.btn.dark { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--red); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn.dark:hover { box-shadow: 6px 6px 0 var(--red); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

/* ------------------------------------------------------------ receipt primitives */
.printer {
  position: relative; z-index: 3; height: 34px; border-radius: 0 0 14px 14px;
  background: linear-gradient(#2b2924, #1d1b18); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
}
.printer::after { content: ""; position: absolute; left: 30px; right: 30px; bottom: 9px; height: 4px; background: #0b0a09; border-radius: 4px; }
.printer i { position: absolute; right: 18px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: #6bd46b; box-shadow: 0 0 8px #6bd46b; }
.printer.busy i { animation: blink 0.25s infinite; }
.paper-wrap { position: relative; overflow: hidden; margin: -8px 8px 0; padding: 0 32px 50px; }
.paper-wrap .receipt { transform: rotate(var(--tilt, 2deg)); transform-origin: 50% 0; }
.hero-till { --tilt: 2.2deg; }
.arena-till { --tilt: -1.6deg; }
#txWin { transform: rotate(-1.8deg); }
#txRefuse { transform: rotate(1.6deg); margin-top: 18px; }
.receipt {
  position: relative; background: var(--paper); color: #262420;
  font-family: var(--print); font-size: 23px; line-height: 1.1;
  padding: 30px 28px 44px;
  filter: drop-shadow(0 18px 22px rgba(40, 30, 10, 0.2));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 51% repeat-x,
    linear-gradient(#000 0 0) top / 100% 50% no-repeat;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 51% repeat-x,
    linear-gradient(#000 0 0) top / 100% 50% no-repeat;
}
.receipt::before { /* faint fold lines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0 32%, rgba(0, 0, 0, 0.03) 33%, rgba(255, 255, 255, 0.5) 34%, transparent 36% 65%, rgba(0, 0, 0, 0.03) 66%, rgba(255, 255, 255, 0.5) 67%, transparent 69%);
}
.receipt hr { border: 0; border-top: 2px dashed #9a9385; margin: 10px 0; }
.receipt .c { text-align: center; }
.receipt .row { position: relative; display: flex; justify-content: space-between; gap: 12px; }
.receipt .big { font-size: 38px; line-height: 1; }
.receipt .dim { color: var(--dim); }
.receipt .small { font-size: 18px; margin-top: 6px; }
.receipt .bar-code {
  height: 46px; margin-top: 14px;
  background: repeating-linear-gradient(90deg, #262420 0 2px, transparent 2px 4px, #262420 4px 7px, transparent 7px 9px, #262420 9px 10px, transparent 10px 13px);
}
.feed { animation: feed 2.4s steps(24) both; }
@keyframes feed { from { translate: 0 -100%; } to { translate: 0 0; } }
.reprint { animation: reprint 0.45s steps(6) both; }
@keyframes reprint { from { translate: 0 -38px; } to { translate: 0 0; } }

.stamp, .row.stamped::after {
  font-family: var(--serif); font-weight: 900; letter-spacing: 0.02em; white-space: nowrap; line-height: 1;
  border: 4px solid currentColor; border-radius: 8px; padding: 4px 12px 3px;
  mix-blend-mode: multiply; opacity: 0.9;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stamp.red, .row.stamped::after { color: var(--red); }
.stamp.ink { color: #233a8f; }
.row.stamped::after {
  content: attr(data-stamp); position: absolute; right: 64px; top: 50%; font-size: 21px;
  transform: translateY(-50%) rotate(-6deg); animation: thunk 0.32s var(--delay, 0s) cubic-bezier(0.3, 1.6, 0.5, 1) both; z-index: 2;
}
.row.stamped.paid::after { color: #233a8f; }
@keyframes thunk { from { transform: translateY(-50%) rotate(-6deg) scale(1.9); opacity: 0; } }

/* ------------------------------------------------------------ hero */
.hero {
  display: grid; grid-template-columns: 1.08fr 1fr; gap: 40px; align-items: start;
  min-height: calc(100vh - 62px); padding: 0 48px 40px; max-width: 1440px; margin: 0 auto;
}
.hero-copy { padding-top: clamp(40px, 9vh, 110px); }
.lede { font-size: 16px; max-width: 540px; margin: 26px 0 30px; }
.facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 2px solid var(--ink); max-width: 560px; }
.facts li { flex: 1 1 150px; padding: 12px 14px 0 0; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; }
.facts b { font-family: var(--serif); font-weight: 900; font-size: 34px; line-height: 1; }
.facts span { font-size: 12.5px; line-height: 1.3; }
.facts i { grid-column: 2; font-family: var(--print); font-style: normal; font-size: 17px; color: var(--dim); }
.facts li.live-ok i { color: var(--green); }
.facts li.live-ok i::before { content: "● "; }
.hero-till { width: min(470px, 100%); margin: 0 auto; }

/* ------------------------------------------------------------ sections */
main > section { max-width: 1440px; margin: 0 auto; padding: 110px 48px; }
main > section + section { border-top: 2px dashed rgba(28, 26, 23, 0.25); }

/* arena */
.arena-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.levers { position: sticky; top: 90px; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.tab {
  font-family: var(--mono); font-weight: 700; font-size: 16px; text-align: left; cursor: pointer;
  padding: 14px 16px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink); transition: transform 0.12s, box-shadow 0.12s;
}
.tab span { display: block; font-family: var(--print); font-size: 18px; font-weight: 400; color: var(--dim); }
.tab:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.tab.on { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--red); transform: translate(2px, 2px); }
.tab.on span { color: #bdb6a8; }
.pane { background: var(--paper); border: 2px solid var(--ink); padding: 24px 24px 20px; }
.pane h3 { margin-bottom: 6px; }
.pane p { margin: 0 0 16px; }
.slider { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin: 8px 0 18px; }
.slider span { font-weight: 700; font-size: 13px; }
.slider output { font-family: var(--print); font-size: 26px; min-width: 96px; text-align: right; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border: 2px solid var(--ink); background:
    linear-gradient(90deg, var(--red) 0 var(--p, 0%), transparent var(--p, 0%)), repeating-linear-gradient(90deg, rgba(28, 26, 23, 0.25) 0 1px, transparent 1px 10px);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 30px; background: var(--ink); border: 3px solid var(--paper); outline: 2px solid var(--ink); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 26px; background: var(--ink); border: 3px solid var(--paper); border-radius: 0; }
input[type="range"]:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
textarea {
  width: 100%; font-family: var(--print); font-size: 21px; line-height: 1.15; padding: 12px 14px; resize: vertical;
  border: 2px solid var(--ink); background: #fffdf3; color: var(--ink); margin-bottom: 14px;
}
textarea:focus { outline: 3px solid var(--red); outline-offset: 2px; }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.versus div { border: 2px solid var(--ink); padding: 10px 12px; }
.versus span { display: block; font-size: 12px; line-height: 1.3; }
.versus b { font-family: var(--print); font-weight: 400; font-size: 28px; }
.versus .bad { background: #f6dcd5; }
.versus .good { background: #dcebd5; }
.note { font-size: 13.5px; line-height: 1.55; border-left: 4px solid var(--ink); padding-left: 12px; margin: 0 !important; }
.note.flash { background: rgba(200, 53, 31, 0.08); }
.tally { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border-top: 2px solid var(--ink); }
.tally div { padding: 12px 10px 0 0; }
.tally b { display: block; font-family: var(--serif); font-weight: 900; font-size: 46px; line-height: 1; transition: color 0.2s; }
.tally span { font-size: 12px; line-height: 1.3; display: block; }
.tally b.bump { color: var(--red); animation: bump 0.4s; }
@keyframes bump { 40% { transform: scale(1.25); } }

.arena-till { width: min(500px, 100%); margin: 0 auto; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 3px 0; position: relative; }
.lines li .who { min-width: 0; }
.lines li .who small { display: block; font-size: 17px; color: var(--dim); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lines li .sc { text-align: right; }
.lines li .sc small { display: block; font-size: 16px; color: var(--dim); line-height: 1; }
.lines li.winner .who b::after { content: " ★"; }
.lines li.winner { background: linear-gradient(90deg, rgba(28, 26, 23, 0.06), transparent); }
.lines li.bribed .who b::after { content: " + tip"; color: var(--red); }
.hide-tip .lines li.bribed .who b::after { content: none; }
.hide-tip .lines li.bribed.winner .who b::after { content: " ★"; color: inherit; }
.lines li.injected .who small { color: var(--red); }
.pay {
  font-family: var(--print); font-size: 19px; padding: 0 8px; border: 2px solid #262420; background: transparent; color: #262420; cursor: pointer;
}
.pay:hover { background: #262420; color: var(--paper); }
.lines .stamp { position: absolute; right: 120px; top: 50%; font-size: 22px; transform: translateY(-50%) rotate(-6deg); animation: thunk 0.3s cubic-bezier(0.3, 1.6, 0.5, 1) both; pointer-events: none; }
.lines .stamp.ink { color: #233a8f; }
#filtered .row, #arExtras .row { color: var(--dim); }
#arExtras .row b { color: #262420; font-weight: 400; }
#arExtras .row.hot b { color: var(--red); }

/* proof */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; max-width: 1180px; }
.tx { position: relative; }
.receipt.slim { font-size: 21px; }
.tlines { min-height: 170px; padding-bottom: 40px; }
.tlines div { word-break: break-all; }
.tlines .g { color: var(--green); }
.tlines .r { color: var(--red); }
.tlines .y { color: #8a6412; }
.tlines .d { color: var(--dim); }
.tlines .cursor { display: inline-block; width: 10px; height: 18px; background: #262420; animation: blink 1s steps(1) infinite; }
.tx-link { display: block; text-align: center; font-size: 19px; margin-top: 10px; color: var(--dim); }
.tx-link:hover { color: #262420; }
.tx > .stamp { position: absolute; right: 26px; bottom: 128px; font-size: 32px; transform: rotate(-8deg); opacity: 0; }
.tx.done > .stamp { animation: thunk2 0.34s cubic-bezier(0.3, 1.6, 0.5, 1) both; opacity: 0.9; }
@keyframes thunk2 { from { transform: rotate(-8deg) scale(1.9); opacity: 0; } }
[data-state].ok { color: var(--green); }

/* how */
.stubs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stubs li {
  position: relative; background: var(--paper); padding: 22px 22px 24px 30px; min-height: 230px;
  box-shadow: 0 10px 20px -12px rgba(40, 30, 10, 0.35);
}
.stubs li::before { /* perforation */
  content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 6px;
  background: radial-gradient(circle, var(--bg) 2.4px, transparent 2.8px) 0 0 / 6px 11px repeat-y;
}
.stubs .n { display: block; font-family: var(--serif); font-weight: 900; font-size: 54px; line-height: 1; margin-bottom: 12px; color: var(--red); }
.stubs h3 { margin-bottom: 8px; }
.stubs p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.tips { display: grid; grid-template-columns: 0.8fr 2fr; gap: 40px; margin-top: 64px; align-items: start; }
.tips p { margin: 10px 0 0; font-size: 14px; }
.slips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.slip { background: var(--paper); padding: 18px 18px 30px; font-size: 13px; line-height: 1.5; position: relative;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 51% repeat-x, linear-gradient(#000 0 0) top / 100% 50% no-repeat;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 51% repeat-x, linear-gradient(#000 0 0) top / 100% 50% no-repeat; }
.slip span { font-family: var(--print); font-size: 19px; text-transform: uppercase; color: var(--dim); }
.slip b { display: block; font-family: var(--print); font-weight: 400; font-size: 36px; line-height: 1.1; }
.slip p { margin: 6px 0 8px; }
.slip a { font-family: var(--print); font-size: 18px; }

/* recheck */
.cmds { display: grid; gap: 12px; max-width: 1040px; }
.cmd { display: grid; grid-template-columns: 240px 1fr auto; gap: 18px; align-items: center; background: var(--ink); color: var(--paper); padding: 14px 18px; }
.cmd span { font-size: 13px; color: #bdb6a8; }
.cmd code { background: none; color: #f2eee4; font-size: 13.5px; overflow-x: auto; white-space: nowrap; }
.cmd button { font-family: var(--mono); font-weight: 700; font-size: 13px; padding: 8px 14px; border: 2px solid var(--paper); background: transparent; color: var(--paper); cursor: pointer; }
.cmd button:hover { background: var(--paper); color: var(--ink); }
.hashes { max-width: 1040px; margin-top: 22px; border: 2px solid var(--ink); background: var(--paper); }
.hashes summary { cursor: pointer; padding: 14px 18px; font-weight: 700; }
.hashes dl { display: grid; grid-template-columns: 230px 1fr; gap: 6px 18px; margin: 0; padding: 0 18px 18px; font-size: 13px; }
.hashes dt { color: var(--dim); }
.hashes dd { margin: 0; word-break: break-all; }

/* fine print */
.fine-paper { max-width: 760px; margin: 0 auto; background: var(--paper); padding: 46px 52px 64px; box-shadow: 0 24px 40px -24px rgba(40, 30, 10, 0.4);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 51% repeat-x, linear-gradient(#000 0 0) top / 100% 50% no-repeat;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 51% repeat-x, linear-gradient(#000 0 0) top / 100% 50% no-repeat; }
.fine-paper ol { margin: 26px 0 0; padding-left: 26px; font-size: 13.5px; line-height: 1.6; }
.fine-paper li { margin-bottom: 12px; padding-left: 6px; }
.fine-paper li::marker { font-family: var(--print); font-size: 20px; }
.prior { font-size: 12.5px; color: var(--ink2); border-top: 2px dashed #9a9385; padding-top: 16px; margin: 26px 0 0; }

/* footer */
.foot { text-align: center; padding: 70px 24px 90px; border-top: 2px solid var(--ink); }
.thanks { font-family: var(--print); font-size: clamp(24px, 3.4vw, 40px); letter-spacing: 0.06em; }
.foot p { font-size: 13px; color: var(--ink2); margin: 10px auto 18px; max-width: 640px; }
.foot nav { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-size: 13px; font-weight: 700; }

/* toast: a printed slip */
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 30; transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  width: min(560px, calc(100vw - 32px)); background: var(--paper); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  font-size: 13.5px; line-height: 1.5; padding: 14px 18px; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast a { font-weight: 700; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .stubs { grid-template-columns: repeat(2, 1fr); }
  .tips { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  body { font-size: 14.5px; }
  .bar { padding: 10px 16px; gap: 12px; }
  .brand { font-size: 21px; }
  .brand span, .bar nav { display: none; }
  .live { margin-left: auto; font-size: 18px; }
  .hero { grid-template-columns: 1fr; padding: 0 16px 20px; min-height: 0; gap: 26px; }
  .hero-copy { padding-top: 34px; }
  h1 { font-size: 56px; }
  .lede { font-size: 14.5px; }
  .facts li { flex-basis: 33%; padding-right: 6px; }
  .facts b { font-size: 28px; }
  main > section { padding: 70px 16px; }
  .arena-grid { grid-template-columns: 1fr; gap: 34px; }
  .levers { position: static; }
  .tab { padding: 10px 10px; font-size: 14px; }
  .pane { padding: 18px 16px; }
  .slider { grid-template-columns: 1fr auto; }
  .slider span { grid-column: 1 / -1; }
  .paper-wrap { margin: -8px 0 0; padding: 0 18px 44px; }
  .hero-till, .arena-till { --tilt: 1.4deg; }
  .receipt { font-size: 20px; padding: 24px 18px 40px; }
  .receipt .big { font-size: 32px; }
  .lines li .who { min-width: 0; }
.lines li .who small { max-width: 170px; }
  .proof-grid { grid-template-columns: 1fr; gap: 30px; }
  .tlines { padding-bottom: 54px; }
  .tx > .stamp { font-size: 22px; right: 20px; bottom: 112px; }
  .stubs { grid-template-columns: 1fr; }
  .stubs li { min-height: 0; }
  .slips { grid-template-columns: 1fr; }
  .cmd { grid-template-columns: 1fr auto; }
  .cmd span { grid-column: 1 / -1; }
  .hashes dl { grid-template-columns: 1fr; }
  .hashes dd { margin-bottom: 8px; }
  .fine-paper { padding: 32px 22px 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .tx > .stamp { opacity: 0.9; }
}

/* ------------------------------------------------------------ what-if, voided receipts, verify */
.tabs { grid-template-columns: repeat(4, 1fr); }
.btn.small { padding: 8px 14px; font-size: 13px; margin-top: 14px; }
.void-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px 18px; }
.void {
  position: relative; background: var(--paper); padding: 14px 16px 16px; font-family: var(--print); font-size: 20px; line-height: 1.15;
  transform: rotate(var(--r, 0deg)); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 10px 18px -12px rgba(0,0,0,.45);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 94% 100%, 88% calc(100% - 6px), 82% 100%, 76% calc(100% - 6px), 70% 100%, 64% calc(100% - 6px), 58% 100%, 52% calc(100% - 6px), 46% 100%, 40% calc(100% - 6px), 34% 100%, 28% calc(100% - 6px), 22% 100%, 16% calc(100% - 6px), 10% 100%, 4% calc(100% - 6px), 0 100%);
}
.void hr { border: 0; border-top: 2px dashed #9a9385; margin: 8px 0; }
.void .c { text-align: center; }
.void .dim { color: var(--dim); }
.void .small { font-size: 16px; }
.void .vlabel { font-size: 24px; text-transform: uppercase; min-height: 2.3em; }
.void .row { display: flex; justify-content: space-between; gap: 8px; font-size: 17px; }
.void .row span:last-child { text-align: right; overflow-wrap: anywhere; }
.void .vstate { font-size: 17px; margin-top: 6px; min-height: 1.2em; }
.void .vstate.good { color: var(--green); }
.void .vstate.bad { color: var(--red); }
.void .tx-link { display: inline-block; margin-top: 6px; font-family: var(--mono); font-size: 12px; }
.void .stamp { position: static; display: block; width: max-content; margin: 12px 0 2px auto; font-size: 22px; transform: rotate(-8deg); opacity: .85; }
.void .tx-link { display: block; }
.void .tx-link { position: relative; z-index: 1; }
.verify { margin-top: 26px; border: 2px solid var(--ink); background: var(--paper); padding: 18px 20px; }
.verify-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.verify-head b { display: block; font-family: var(--serif); font-size: 22px; }
.verify-head span { font-size: 13.5px; color: var(--ink2); }
.verify-out { margin-top: 18px; max-width: 560px; }
.verify-out .vrow { display: grid; grid-template-columns: 54px 1fr; gap: 0 10px; padding: 3px 0; }
.verify-out .vrow span { font-weight: 400; }
.verify-out .vrow.pass span { color: var(--green); }
.verify-out .vrow.fail span { color: var(--red); }
.verify-out .vrow small { grid-column: 2; color: var(--dim); font-size: 16px; overflow-wrap: anywhere; }
[data-state].cached { color: #8a5a00; }
@media (max-width: 900px) {
  .tabs { grid-template-columns: repeat(2, 1fr); }
  .void-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
}
@media (max-width: 520px) {
  .void-grid { grid-template-columns: 1fr; }
}
