@font-face { font-family: 'Trirong'; font-weight: 400; font-display: swap; src: url(/fonts/trirong-400.woff2) format('woff2'); }
@font-face { font-family: 'Trirong'; font-weight: 700; font-display: swap; src: url(/fonts/trirong-700.woff2) format('woff2'); }
@font-face { font-family: 'Trirong'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/trirong-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Vazirmatn'; font-weight: 300 900; font-display: swap; src: url(/fonts/vazirmatn-300-900.woff2) format('woff2'); }
@font-face { font-family: 'M PLUS 1 Code'; font-weight: 400 600; font-display: swap; src: url(/fonts/mplus-code-400-600.woff2) format('woff2'); }

:root {
  --page: #f3f0e8; --paper: #fbf8f0; --paper-2: #f2ecdd; --ink: #1b1f36; --quiet: #5f6175; --rule: rgba(27, 31, 54, .14);
  --madder: #a8322b; --madder-d: #7c1f1c; --madder-l: #f1d6cc; --indigo: #26346b; --indigo-d: #182249; --indigo-l: rgba(38, 52, 107, .22);
  --saffron: #d99a2b; --wool: #efe3c8; --ash: #d2b98c; --green: #6f8a4a;
  --r: 3px;
  --disp: 'Trirong', 'Times New Roman', serif; --text: 'Vazirmatn', system-ui, sans-serif; --mono: 'M PLUS 1 Code', ui-monospace, monospace;
  --guard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14'%3E%3Crect width='24' height='14' fill='%23efe3c8'/%3E%3Crect width='24' height='2.5' fill='%2326346b'/%3E%3Crect y='11.5' width='24' height='2.5' fill='%2326346b'/%3E%3Cpath d='M6 3.5 L9.5 7 L6 10.5 L2.5 7Z' fill='%23a8322b'/%3E%3Cpath d='M18 3.5 L21.5 7 L18 10.5 L14.5 7Z' fill='%2326346b'/%3E%3Ccircle cx='12' cy='7' r='1.2' fill='%23d99a2b'/%3E%3Ccircle cx='0' cy='7' r='1.2' fill='%23d99a2b'/%3E%3Ccircle cx='24' cy='7' r='1.2' fill='%23d99a2b'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--page); font: 400 17px/1.62 var(--text); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--disp); font-weight: 700; line-height: 1.05; margin: 0 0 .42em; letter-spacing: -.01em; }
h1 em, h2 em { font-weight: 400; color: var(--madder); }
h2 { font-size: 34px; }
h3 { font-size: 25px; }
p { margin: 0 0 .8em; }
code, .mono { font-family: var(--mono); }
.mono { font-size: .86em; }
.wrap, .hint .addr, .ledger .addr { overflow-wrap: anywhere; word-break: break-all; }
.quiet { color: var(--quiet); }
.error { color: var(--madder); }
small { font-size: .85em; }

.ca-strip { background: var(--indigo-d); color: var(--wool); text-align: center; padding: 8px 16px; font-size: 14px; overflow-wrap: anywhere; }
.ca-strip a { color: #f3c870; }
.mode-note { display: none !important; }

/* a woven guard stripe under the header and above the footer */
.guard { height: 14px; background: var(--guard) repeat-x 0 0 / 24px 14px; }

.top { display: flex; align-items: center; gap: 30px; max-width: 1340px; margin: 0 auto; padding: 20px 32px 18px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 42px/1 var(--disp); letter-spacing: -.01em; color: var(--ink); }
.mark svg { width: 52px; height: 52px; }
.top nav { display: flex; gap: 26px; margin-left: 12px; font-weight: 600; font-size: 16px; }
.top nav a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.top nav a.on { border-bottom-color: var(--madder); }
.top nav a:hover { border-bottom-color: var(--saffron); }
.top nav .x { color: var(--quiet); font-weight: 400; }
.top .wallet { margin-left: auto; font-family: var(--mono); }

/* buttons: madder wool with an indigo lip; the second choice is undyed wool with an indigo edge */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none;
  font: 700 17px/1 var(--text); letter-spacing: .01em; color: #fff8ec; background: linear-gradient(180deg, #bb3d34, #9a2b25); border: 0; border-radius: 4px;
  padding: 15px 24px; box-shadow: inset 0 1px 0 rgba(255, 220, 200, .45), inset 0 -3px 0 rgba(0, 0, 0, .12), 0 4px 0 var(--indigo-d), 0 10px 18px -10px rgba(27, 31, 54, .6);
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 220, 200, .45), 0 1px 0 var(--indigo-d); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.ghost { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 2px var(--indigo), 0 4px 0 var(--indigo-d), 0 10px 18px -12px rgba(27, 31, 54, .5); }
.btn.ghost:active { box-shadow: inset 0 0 0 2px var(--indigo), 0 1px 0 var(--indigo-d); }
.btn.small { font-size: 15px; padding: 10px 15px; }
.btn.big { font-size: 19px; padding: 18px 30px; }
.top .btn.wallet { font-weight: 500; }

main { max-width: 1340px; margin: 0 auto; padding: 0 32px 40px; }
.loading { padding: 80px 0; color: var(--quiet); }

/* hero: words on the limewashed wall, the carpet on its frame */
.hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 48px; align-items: center; margin-top: 34px; }
.hero-text { padding: 10px 0 10px 4px; }
.hero h1 { font-size: clamp(56px, 5.6vw, 86px); line-height: 1; margin-bottom: 24px; letter-spacing: -.02em; }
.hero h1 em { font-style: italic; }
.lede { font-size: 19px; line-height: 1.6; max-width: 560px; color: #2c3050; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 0; }
.hero-scene { position: relative; height: 600px; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(27, 31, 54, .12), 0 30px 50px -28px rgba(27, 31, 54, .6); background: #ece7dc; }
.hero-scene.linked { cursor: pointer; }
.unrug-scene { width: 100%; height: 100%; display: block; }
.scene-cap { position: absolute; left: 16px; top: 14px; font: 600 14px var(--text); color: var(--ink); background: rgba(251, 248, 240, .9); padding: 4px 10px; border-radius: 3px; box-shadow: inset 0 -2px 0 var(--madder); }
.scene-cap:empty { display: none; }
.totals { max-width: 940px; margin: 46px auto 0; text-align: center; font: italic 400 23px/1.45 var(--disp); color: var(--ink); }

/* scene text */
.unrug-scene .tag-txt { font: 700 11px var(--text); fill: var(--ink); }
.unrug-scene .t-title { font: italic 400 21px var(--disp); fill: var(--madder); }
.unrug-scene .t-id { font: 500 12px var(--mono); fill: var(--ink); }
.unrug-scene .t-small { font: 800 10.5px var(--text); letter-spacing: .2em; fill: var(--quiet); }
.unrug-scene .t-big { font: 700 30px var(--disp); fill: var(--ink); }
.unrug-scene .t-unit { font: 700 12px var(--text); letter-spacing: .12em; fill: var(--quiet); }
.unrug-scene .ticket.paid .t-small { fill: var(--madder); }
.unrug-scene .skein { animation: sway 6s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg); } }
.unrug-scene .needle > * { animation: stitch 1.8s ease-in-out infinite; }
@keyframes stitch { 50% { transform: translate(3px, -3px); } }
@media (prefers-reduced-motion: reduce) { .unrug-scene .skein, .unrug-scene .needle > * { animation: none; } }

/* board: rows laid out like carpet samples with a woven edge on the left */
.board { margin-top: 44px; }
.board-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.board-top h2 { font-size: 52px; margin: 0; }
.tabs { display: flex; gap: 0; border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 2px var(--indigo); }
.tabs button { font: 600 15px var(--text); border: 0; border-left: 2px solid var(--indigo); background: var(--paper); padding: 9px 16px; cursor: pointer; color: var(--quiet); }
.tabs button:first-child { border-left: 0; }
.tabs button.on { color: #fff8ec; background: var(--indigo); }
.tabs small { opacity: .75; font-weight: 400; }
.slips { position: relative; background: var(--paper); border-radius: var(--r); box-shadow: 0 1px 0 rgba(27, 31, 54, .1), 0 18px 40px -30px rgba(27, 31, 54, .55); overflow: hidden; }
.slip {
  position: relative; display: grid; grid-template-columns: 150px minmax(0, 1.25fr) minmax(0, 1.7fr) 150px 118px; gap: 22px; align-items: center;
  padding: 16px 24px 16px 38px; text-decoration: none; border-bottom: 1px solid var(--rule); transition: background .15s;
}
.slip::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: var(--guard) repeat-y 0 0 / 24px 14px; transform-origin: 0 0; }
.slip:not(.head)::before { background: linear-gradient(90deg, var(--madder) 0 9px, var(--indigo) 9px 14px); }
.slip.s-returned::before { background: linear-gradient(90deg, var(--saffron) 0 9px, var(--indigo) 9px 14px); }
.slip.s-expired::before, .slip.s-closed::before { background: linear-gradient(90deg, #c9c3b4 0 9px, #8d8a96 9px 14px); }
.slip.head::before { display: none; }
a.slip:hover { background: #f7eee0; }
.slip.head { font: 600 13px var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--quiet); padding-top: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--indigo-l); }
.slip-id { display: grid; gap: 0; }
.slip-id .mono { font-size: 17px; }
.slip-st { font: italic 400 17px var(--disp); color: var(--quiet); }
.s-open .slip-st { color: var(--madder); font-weight: 700; font-style: normal; }
.s-returned .slip-st { color: var(--indigo); font-weight: 700; }
.slip-what { font-weight: 700; overflow-wrap: anywhere; }
.slip-what i { font-style: normal; color: var(--quiet); font-weight: 400; }
.slip-meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.slip-pct { font: 700 25px var(--disp); white-space: nowrap; }
.slip-pct small { font: 400 13px var(--text); color: var(--quiet); }
.slip-reward { display: grid; }
.slip-reward b { font: 700 23px var(--disp); }
.slip-reward small, .slip-time small { color: var(--quiet); }
.slip-time { font-weight: 700; font-size: 15px; }
.empty { padding: 26px 24px 26px 38px; margin: 0; color: var(--quiet); font: italic 400 21px var(--disp); }

/* the meter: a carpet strip, knotted pile to the share returned, bare warp beyond, a brass pin at the agreed share */
.rugmeter { position: relative; height: 30px; }
.rugmeter.big { height: 40px; }
.rm-warp { position: absolute; left: 0; right: 0; top: 8px; height: 16px; border-radius: 1px;
  background: repeating-linear-gradient(90deg, #7d7262 0 2px, #efe6d2 2px 4px); box-shadow: 0 0 0 2px var(--indigo), 0 3px 0 2px var(--indigo-d); }
.rm-pile { position: absolute; left: 0; top: 8px; height: 16px; width: calc(var(--p) * 100%); border-radius: 1px;
  background:
    linear-gradient(45deg, transparent 0 44%, rgba(239, 227, 200, .55) 44% 52%, transparent 52%) 0 0 / 18px 16px,
    linear-gradient(-45deg, transparent 0 44%, rgba(239, 227, 200, .55) 44% 52%, transparent 52%) 0 0 / 18px 16px,
    radial-gradient(circle at 9px 8px, var(--indigo) 0 2.6px, transparent 2.8px) 0 0 / 18px 16px,
    var(--madder);
  transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.rm-pin { position: absolute; z-index: 2; top: -1px; left: calc(var(--t) * 100%); width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f6e3a4, #c9a243 55%, #86621e); box-shadow: 0 0 0 1px #6d4f17; }
.rm-pin::after { content: ''; position: absolute; left: 50%; top: 11px; width: 2px; height: 16px; margin-left: -1px; background: linear-gradient(#a9adb6, #6b707b); }
.rugmeter.big .rm-warp, .rugmeter.big .rm-pile { top: 12px; height: 20px; }
.rugmeter.big .rm-pin { width: 15px; height: 15px; margin-left: -7.5px; top: 0; }
.rugmeter.big .rm-pin::after { top: 14px; height: 22px; }
.m-expired .rm-pile, .m-closed .rm-pile { filter: grayscale(.85) opacity(.6); }

/* three roles under a woven stripe */
.sides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 64px; background: var(--paper); border-radius: var(--r); box-shadow: 0 1px 0 rgba(27, 31, 54, .1), 0 18px 40px -30px rgba(27, 31, 54, .5); position: relative; padding-top: 14px; overflow: hidden; }
.sides::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--guard) repeat-x 0 0 / 24px 14px; }
.sides article { padding: 26px 28px; border-left: 1px solid var(--rule); }
.sides article:first-child { border-left: 0; }
.sides h3 { font-size: 30px; }
.sides p { margin: 0; color: #2c3050; }

/* pages */
.page { padding-top: 26px; }
.narrow { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: 62px; margin-bottom: 18px; }
.prose h2 { font-size: 31px; margin-top: 36px; }
.prose p.big { font: italic 400 23px/1.5 var(--disp); }
.prose code { background: var(--paper); padding: 1px 6px; border-radius: 3px; border: 1px solid var(--rule); }

/* repair form */
.post { max-width: 780px; margin: 0 auto; }
.post-head h1 { font-size: 62px; }
.post-head p { font: italic 400 21px/1.5 var(--disp); max-width: 660px; }
.form { margin-top: 26px; display: grid; background: var(--paper); border-radius: var(--r); box-shadow: 0 1px 0 rgba(27, 31, 54, .1), 0 18px 40px -30px rgba(27, 31, 54, .55); position: relative; padding-top: 14px; overflow: hidden; }
.form::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--guard) repeat-x 0 0 / 24px 14px; }
.field { padding: 22px 26px; display: grid; gap: 10px; border-top: 1px solid var(--rule); }
.field:first-child { border-top: 0; }
.field > label { font: 700 24px var(--disp); }
.hint { margin: 0; font-size: 15px; color: var(--quiet); }
.field input[type=text], .field input[type=number], .field select {
  width: 100%; font: 400 17px var(--text); padding: 13px 14px; border: 1.5px solid rgba(27, 31, 54, .45); border-radius: 3px; background: #fff; color: var(--ink); min-width: 0;
}
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--madder-l); border-color: var(--madder); }
.field input.mono { font-family: var(--mono); font-size: 15px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > input { flex: 1 1 220px; }
.chip { overflow-wrap: anywhere; word-break: break-all; display: inline-flex; align-items: center; gap: 6px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 3px; padding: 6px 10px; max-width: 100%; }
.chip .x { border: 0; background: none; cursor: pointer; font-size: 17px; line-height: 1; padding: 0 2px; }
.picks { display: grid; gap: 8px; }
.pick { display: grid; grid-template-columns: 22px auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: 3px; cursor: pointer; background: #fff; }
.pick.on { border-color: var(--madder); background: #fbf0ea; }
.pick input { width: 18px; height: 18px; accent-color: var(--madder); }
.pick-amt { font-weight: 700; overflow-wrap: anywhere; }
.pick-amt.big { font: 700 24px var(--disp); }
.slider { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.slider input { width: 100%; accent-color: var(--madder); height: 28px; }
.big-out { font: 700 48px var(--disp); min-width: 3ch; text-align: right; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chipbtn { font: 600 16px var(--text); padding: 10px 16px; border: 1.5px solid rgba(27, 31, 54, .4); border-radius: 3px; background: #fff; cursor: pointer; color: var(--ink); }
.chipbtn.on { background: var(--indigo); color: #fff8ec; border-color: var(--indigo-d); }
.submit { background: var(--paper-2); border-radius: 0 0 var(--r) var(--r); }
.note { margin: 0; font-weight: 700; min-height: 1.4em; overflow-wrap: anywhere; }

/* one repair */
.b-head h1 { font-size: 62px; margin: 6px 0 4px; }
.back-link { text-decoration: none; font-weight: 600; color: var(--quiet); }
.back-link:hover { color: var(--ink); }
.b-sub { color: var(--quiet); font: italic 400 19px var(--disp); }
.b-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 40px; align-items: start; margin-top: 16px; }
.b-left { position: sticky; top: 16px; }
.scene-big { height: 640px; position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(27, 31, 54, .12), 0 24px 40px -24px rgba(27, 31, 54, .6); }
.b-right { display: grid; gap: 16px; }
.card { background: var(--paper); border-radius: var(--r); padding: 24px 26px; min-width: 0; box-shadow: 0 1px 0 rgba(27, 31, 54, .1), 0 18px 40px -32px rgba(27, 31, 54, .55); }
.card h2 { font-size: 33px; }
.card h3 { font-size: 25px; }
.offer { position: relative; padding-top: 34px; overflow: hidden; }
.offer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--guard) repeat-x 0 0 / 24px 14px; }
.offer-line { font: 400 20px/1.55 var(--disp); }
.offer-line .addr { font: 500 14px var(--mono); }
.bars { display: grid; gap: 16px; margin: 18px 0 14px; }
.bar-top { display: flex; gap: 12px; align-items: baseline; margin-bottom: 4px; flex-wrap: wrap; }
.bar-top b { font: 700 23px var(--disp); }
.bar-pct { margin-left: auto; font: 700 27px var(--disp); }
.status-line { margin: 0; font-weight: 700; }
.add .amt { display: flex; align-items: center; gap: 8px; border: 1.5px solid rgba(27, 31, 54, .45); border-radius: 3px; background: #fff; padding: 0 14px 0 4px; flex: 1 1 160px; }
.add .amt input { border: 0; font: 700 27px var(--disp); width: 100%; padding: 8px 6px; background: none; min-width: 0; color: var(--ink); }
.add .amt span { font-weight: 700; }
.holder p { margin-bottom: .7em; }
.memo-box { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule); display: grid; gap: 10px; justify-items: start; }
.memo-box p { margin: 0; font-size: 15px; color: var(--quiet); }
.b-ledgers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.ledger { list-style: none; margin: 0; padding: 0; display: grid; }
.ledger li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.ledger li:first-child { border-top: 0; }
.ledger li > span { min-width: 0; overflow-wrap: anywhere; }
.ledger li.late { color: var(--quiet); }
.ledger li.out b { color: var(--indigo); }
.signed { grid-column: 1 / -1; }
.msg { font: 400 13.5px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; background: var(--paper-2); border-left: 4px solid var(--madder); border-radius: 2px; padding: 14px 16px; margin: 6px 0 12px; }
.closebox { grid-column: 1 / -1; box-shadow: inset 0 0 0 1.5px var(--madder); }
/* the paid card: wool paper with a woven edge along the top */
.paid-card {
  position: relative; display: grid; gap: 4px; margin: 26px auto 0; max-width: 400px; background: var(--paper); border-radius: 3px; overflow: hidden;
  padding: 34px 24px 20px; text-align: center; justify-items: center; box-shadow: inset 0 0 0 1px var(--indigo-l), 0 18px 40px -26px rgba(27, 31, 54, .7);
}
.paid-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--guard) repeat-x 0 0 / 24px 14px; }
.paid-amt { font: 700 44px var(--disp); color: var(--ink); }
.paid-card.hit { animation: hit .25s ease-out; }
@keyframes hit { 40% { transform: scale(1.035); } }
.yarn-layer { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }

/* dialog, toast */
dialog { border: 0; border-radius: 4px; padding: 14px 0 0; background: var(--paper); color: var(--ink); width: min(460px, calc(100vw - 32px)); box-shadow: 0 30px 60px -20px rgba(27, 31, 54, .6); background-image: var(--guard); background-repeat: repeat-x; background-size: 24px 14px; }
dialog::backdrop { background: rgba(27, 31, 54, .45); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px 6px; }
.dlg-head h2 { font-size: 29px; margin: 0; }
.dlg-x { border: 0; background: none; font-size: 30px; cursor: pointer; line-height: 1; color: var(--ink); }
.dlg-body { padding: 8px 24px 24px; display: grid; gap: 12px; }
.wallets { display: grid; gap: 8px; }
.wallet-pick { display: flex; align-items: center; gap: 12px; font: 600 17px var(--text); padding: 12px 14px; border: 1.5px solid rgba(27, 31, 54, .35); border-radius: 3px; background: #fff; cursor: pointer; color: var(--ink); }
.wallet-pick:hover { border-color: var(--madder); }
.wallet-pick img { width: 28px; height: 28px; border-radius: 6px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--indigo-d); color: var(--wool); padding: 12px 18px; border-radius: 3px; font-weight: 600; z-index: 70; max-width: calc(100vw - 32px); box-shadow: inset 0 -3px 0 var(--madder); }

.foot { max-width: 1340px; margin: 56px auto 0; padding: 0 32px 50px; font-size: 14px; color: var(--quiet); display: grid; gap: 4px; }
.foot .guard { margin-bottom: 24px; }
.foot .policy { color: var(--ink); font-size: 16px; }
.foot .links a { color: var(--ink); }

@media (max-width: 1100px) {
  .slip { grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1.3fr) 120px; }
  .slip-time { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .top { flex-wrap: wrap; gap: 12px 18px; padding: 16px; }
  .mark { font-size: 36px; }
  .mark svg { width: 44px; height: 44px; }
  .top nav { order: 3; width: 100%; margin: 0; gap: 18px; overflow-x: auto; font-size: 15px; white-space: nowrap; }
  .top nav a { flex: none; }
  main { padding: 0 16px 30px; }
  .hero { gap: 26px; margin-top: 22px; }
  .hero-text { padding: 0; }
  .hero h1 { font-size: clamp(46px, 12.5vw, 76px); }
  .lede { font-size: 17px; }
  .hero-scene { height: auto; aspect-ratio: 560 / 680; }
  .totals { font-size: 20px; text-align: left; margin-top: 36px; }
  .board-top h2 { font-size: 42px; }
  .slip { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; padding: 14px 16px 14px 30px; }
  .slip::before { width: 10px; }
  .slip.head { display: none; }
  .slip-what { grid-column: 1 / -1; order: 3; }
  .slip-meter { grid-column: 1 / -1; order: 4; }
  .slip-reward { order: 2; text-align: right; }
  .slip-time { display: none; }
  .empty { padding-left: 30px; }
  .sides { grid-template-columns: minmax(0, 1fr); }
  .sides article { border-left: 0; border-top: 1px solid var(--rule); padding: 22px 20px; }
  .sides article:first-child { border-top: 0; }
  .b-grid, .b-ledgers { grid-template-columns: minmax(0, 1fr); }
  .b-left { position: static; }
  .scene-big { height: auto; aspect-ratio: 560 / 680; }
  .b-head h1, .prose h1, .post-head h1 { font-size: 46px; }
  .card { padding: 20px 18px; }
  .offer { padding-top: 30px; }
  .field { padding: 18px; }
  .foot { padding: 0 16px 40px; }
  .pick { grid-template-columns: 22px minmax(0, 1fr); gap: 4px 12px; }
  .pick > :not(input) { grid-column: 2; }
  .row > input { flex-basis: 100%; }
}
