/* Refund Pad: a daylight general store in game pixel. Cream plaster, honey wood, paper slips, one action green.
   Fonts: Bitcount Prop Double (names, titles, buttons), Doto (receipt print, words only), Martian Mono (every number).
   Motion: 4 px grid, steps() only, transform/opacity only. */
:root {
  --cream: #FFF4DC; --wall: #FDF2DA; --paper: #FFFBEF; --shade: #E8D9B8; --honey: #D9A066; --wood: #A8693A; --dark: #6B3F22; --ink: #3B2416;
  --green: #4FA83D; --greenD: #2F7A2A; --gold: #F2C14E; --sky: #5CAAEB; --blush: #F49AA0; --red: #D9534F;
  --fd: "Bitcount Prop Double", "Courier New", monospace; --fp: "Doto", "Courier New", monospace; --fn: "Martian Mono", ui-monospace, monospace;
  --b: 4px; --u: 4px;
  --zigm: linear-gradient(#000 0 0) 0 8px/100% 100% no-repeat, conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) 0 0/16px 8px repeat-x;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 15px/1.55 var(--fn); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { image-rendering: pixelated; display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
a, button, [role=button], [role=tab], [role=option], [onclick], summary, label, .ca, select, .lv, #slips, #myslips, #ctabs { cursor: pointer; }
button { font: inherit; color: inherit; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 4px solid var(--sky); outline-offset: 2px; }
.num, .q dd, input.num { font-family: var(--fn); font-variant-numeric: tabular-nums; }
.doto { font-family: var(--fp); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ttl { font: 700 clamp(36px, 5.4vw, 68px)/1 var(--fd); margin: 0; letter-spacing: .01em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -240px; z-index: 99; background: var(--paper); border: var(--b) solid var(--ink); padding: 10px 14px; min-height: 44px; font: 800 13px/1.6 var(--fp); }
.skip:focus { top: 8px; }
.xg { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; image-rendering: pixelated; }

/* ------------------------------------------------------------------ buttons (boards, slips, the green drawer) */
.gbtn, .wb { --bg: var(--honey); --fg: var(--ink); --edge: var(--dark); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px 12px;
  font: 700 20px/1 var(--fd); letter-spacing: .02em; text-decoration: none; color: var(--fg); background: var(--bg); border: var(--b) solid var(--ink);
  box-shadow: inset 0 -6px 0 var(--edge), 0 6px 0 var(--ink); transition: transform .08s steps(2), box-shadow .08s steps(2); white-space: nowrap; }
.wb.honey { background: var(--honey) url(/assets/art/tile-wall.webp) 0 0/128px 128px; }
.wb.honey span, .wb.honey .xg { position: relative; }
.gbtn { --bg: var(--green); --fg: var(--paper); --edge: var(--greenD); font-size: 24px; }
.wb.paper { --bg: var(--paper); --edge: var(--shade); }
.wb.ret { --bg: var(--paper); --edge: var(--green); color: var(--greenD); }
.gbtn.sm, .wb.sm { min-height: 40px; font-size: 16px; padding: 6px 12px 10px; }
.gbtn:hover, .wb:hover { transform: translateY(-4px); box-shadow: inset 0 -6px 0 var(--edge), 0 10px 0 var(--ink); }
.gbtn:active, .wb:active { transform: translateY(6px); box-shadow: inset 0 -2px 0 var(--edge), 0 0 0 var(--ink); }
.gbtn:disabled, .gbtn.busy-off { --bg: var(--shade); --fg: var(--wood); --edge: #d6c39a; }
.gbtn:disabled:hover, .wb:disabled:hover { transform: none; box-shadow: inset 0 -6px 0 var(--edge), 0 6px 0 var(--ink); }
.busy { opacity: .85; }

/* ------------------------------------------------------------------ header: tabs on the wall, signs on chains */
.top { position: absolute; z-index: 30; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; gap: 18px; padding: 14px clamp(16px, 3vw, 40px) 0; pointer-events: none; }
.top > * { pointer-events: auto; }
body.inner .top { position: relative; background: var(--cream); border-bottom: var(--b) solid var(--ink); padding-bottom: 0; min-height: 96px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding-top: 6px; min-height: 44px; }
.brand img { width: 34px; height: auto; image-rendering: auto; }
.wm { font: 700 22px/1 var(--fd); letter-spacing: .02em; }
.wm i { font-style: normal; color: var(--wood); margin-left: 6px; }
.brand.sm .wm { font-size: 18px; }
.brand.sm { min-height: 44px; min-width: 44px; }
.tabs { display: flex; gap: 6px; padding-top: 8px; }
.tabs a { font: 800 14px/1 var(--fp); letter-spacing: .08em; text-decoration: none; padding: 9px 10px 8px; background: var(--paper); border: var(--b) solid var(--ink); border-top-width: 0; margin-top: -14px; padding-top: 22px; transition: transform .1s steps(2); }
.tabs a:hover { transform: translateY(4px); }
.tabs a[aria-current=page] { background: var(--gold); }
.sp { flex: 1; }
.signs { display: flex; gap: 10px; margin-top: -14px; }
.sign { position: relative; display: grid; place-items: end center; width: 126px; height: 78px; padding: 0 0 12px; border: 0; text-decoration: none; background: url(/assets/art/sign.webp) center top/126px 78px no-repeat; image-rendering: pixelated; transform-origin: 50% 0; transition: transform .12s steps(2); }
.sign .sl { font: 700 16px/1 var(--fd); color: var(--ink); letter-spacing: .02em; display: inline-flex; align-items: center; gap: 6px; height: 30px; }
.sign .xg { width: 18px; height: 18px; }
.sign:hover { transform: rotate(-3deg); }
.sign:active { transform: translateY(4px); }
.wsign .sl { font: 700 12px/1 var(--fn); }
.wsign.on .sl { color: var(--greenD); }
.mbtn { display: none; }
.mbuy { display: none !important; }

/* ------------------------------------------------------------------ CA plates */
.ca { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 6px 4px 12px; background: var(--paper); border: var(--b) solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.ca b { font: 800 14px/1 var(--fp); letter-spacing: .1em; }
.ca .num { font-size: 14px; font-weight: 700; }
.cbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 10px; border: 2px solid var(--ink); background: var(--shade); font: 800 13px/1 var(--fp); letter-spacing: .08em; }
.cbtn:hover { background: var(--gold); }
.stampi { width: 12px; height: 12px; background: var(--wood); box-shadow: 0 3px 0 var(--dark); }
.ca.copied .cbtn { background: var(--green); color: var(--paper); }
.ca.copied .stampi { background: var(--paper); }
.ca.ca-off .cbtn { opacity: .55; }

/* ------------------------------------------------------------------ 1. hero: the counter */
.hero { position: relative; height: max(100vh, 66.8vw); height: max(100dvh, 66.8vw); min-height: 680px; overflow: hidden; background: var(--wall); }
.scene { position: absolute; inset: 0; background: url(/assets/art/hero.webp) 50% 100%/cover no-repeat; image-rendering: pixelated; }
.wall { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(96px, 13vh, 132px) 16px 0; }
.name { margin: 0; font: 700 clamp(56px, min(10.4vw, 15vh), 156px)/.9 var(--fd); letter-spacing: .01em; color: var(--ink); }
.line { margin: 14px 0 0; font: 800 clamp(15px, 1.5vw, 21px)/1.35 var(--fp); letter-spacing: .05em; text-transform: uppercase; max-width: 38ch; background: var(--wall); padding: 2px 8px; }
.plank { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 14px; margin-top: 18px; }
@keyframes ring { 50% { transform: translateX(4px); } }
/* the register stands on the counter, right; its paper is the buy panel */
.till { position: absolute; z-index: 6; right: clamp(16px, 5vw, 96px); bottom: calc(max(100dvh, 66.8vw) * .405 - 16px); width: 316px; }
.reg, .drawer { z-index: 2; }
.reg { width: 316px; height: 276px; position: relative; z-index: 1; }
.tape { --zb: linear-gradient(#000 0 0) 0 0/100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) 0 100%/16px 8px repeat-x;
  position: absolute; z-index: 0; left: 28px; top: calc(100% + 10px); width: 260px; padding: 12px 12px 24px; background: var(--paper) url(/assets/art/tile-paper.webp) 0 0/128px; border: var(--b) solid var(--ink); border-top: 0; border-bottom: 0;
  -webkit-mask: var(--zb); mask: var(--zb); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.tape::before { content: ""; position: absolute; left: -4px; right: -4px; top: 0; height: 6px; background: var(--dark); }
.tape-h { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 6px; border-bottom: 2px dashed var(--ink); padding-bottom: 6px; }
.tape-h .amt input { font-size: 24px; }
.tape-h .doto { font-size: 12px; }
.coinpick { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 2px 8px; background: var(--gold); border: 2px solid var(--ink); font: 700 16px/1 var(--fd); }
.coinpick i { font-style: normal; font-size: 12px; }
.picklist { position: absolute; z-index: 9; left: 8px; right: 8px; top: 54px; margin: 0; padding: 4px; list-style: none; background: var(--paper); border: var(--b) solid var(--ink); box-shadow: 0 6px 0 var(--ink); max-height: 200px; overflow: auto; }
.picklist li { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; padding: 8px; border-bottom: 2px dotted var(--shade); }
.picklist li b { font: 700 16px/1.1 var(--fd); }
.picklist li span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picklist li i { grid-column: 1 / -1; font-style: normal; font-size: 11px; color: var(--wood); }
.picklist li[aria-selected=true], .picklist li:hover, .picklist li:focus { background: var(--cream); outline: none; }
.amt { display: flex; align-items: baseline; gap: 8px; }
.amt label { font-size: 12px; }
.amt input { width: 100%; min-width: 0; font-size: 28px; font-weight: 700; border: 0; border-bottom: 3px dotted var(--ink); background: transparent; color: var(--ink); padding: 0 2px; text-align: right; }
.amt .u { font: 800 14px/1 var(--fp); }
.keys { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.keys button { min-height: 36px; border: 2px solid var(--ink); background: var(--gold); box-shadow: inset 0 -4px 0 #c99a2e; font: 700 13px/1 var(--fn); padding: 0; }
.keys button:hover { transform: translateY(-2px); }
.keys button:active { transform: translateY(2px); box-shadow: none; }
.lever { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; gap: 6px; }
.lever button { min-height: 36px; border: 0; background: none; font: 800 11px/1.1 var(--fp); letter-spacing: .06em; padding: 0; text-align: center; color: var(--wood); }
.lever button[aria-checked=true] { color: var(--ink); text-decoration: underline 3px var(--green); text-underline-offset: 4px; }
.lever .lv { position: relative; height: 32px; background: var(--dark); border: 2px solid var(--ink); }
.lever .lv i { position: absolute; top: 2px; left: 2px; width: 14px; height: 24px; background: var(--gold); border: 2px solid var(--ink); transition: transform .12s steps(3); }
.lever.plain .lv i { transform: translateX(18px); background: var(--honey); }
.q { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.q div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.q dt { flex: 1; min-width: 0; font: 800 12px/1.3 var(--fp); letter-spacing: .04em; text-transform: uppercase; overflow: hidden; white-space: nowrap; }
.q dt::after { content: " ............................"; color: var(--shade); }
.q dd { margin: 0; font-weight: 700; white-space: nowrap; }
.q dd.g, .lines .g dd { color: var(--greenD); }
.why { margin: 0; font-size: 11.5px; line-height: 1.45; padding: 8px 10px; background: var(--cream); border: 2px dashed var(--wood); }

.drawer { position: absolute; z-index: 2; left: 12px; bottom: 6px; width: 224px; min-height: 56px; font-size: 19px; padding: 6px 8px 10px; }
.drawer .bl { white-space: normal; text-align: center; line-height: 1.05; }
/* three numbers: the top of the ribbon, hanging off the counter front */
.head-slip { position: absolute; z-index: 5; left: 50%; bottom: 0; transform: translateX(-50%); width: 300px; height: calc(max(100dvh, 66.8vw) * .405 - 8px); padding: 22px 22px 16px; background: var(--paper) url(/assets/art/tile-paper.webp) 0 0/128px; border-left: var(--b) solid var(--ink); border-right: var(--b) solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.head-slip::before { content: ""; position: absolute; left: -4px; right: -4px; top: -12px; height: 12px; background: var(--ink); clip-path: polygon(0 100%, 0 40%, 100% 40%, 100% 100%); }
.head-slip div { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 6px; border-bottom: 2px dashed var(--shade); padding-bottom: 8px; }
.head-slip span { font-size: 13px; }
.head-slip b { font-size: 26px; font-weight: 700; }
.head-slip i { font-style: normal; font-size: 12px; }

/* ------------------------------------------------------------------ 2. the ribbon */
.ribbon-wrap { position: relative; background: var(--cream) url(/assets/art/tile-plaster.webp) 0 0/256px; padding: 0 16px 72px; border-top: var(--b) solid var(--ink); }
.ribbon { position: relative; margin: 0 auto; width: min(600px, 100%); background: var(--paper) url(/assets/art/tile-paper.webp) 0 0/128px; border-left: var(--b) solid var(--ink); border-right: var(--b) solid var(--ink); padding: 28px clamp(14px, 3vw, 30px) 40px; }
.ribbon::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: -12px; height: 12px; background: var(--paper); clip-path: polygon(0 0, 4% 100%, 8% 0, 12% 100%, 16% 0, 20% 100%, 24% 0, 28% 100%, 32% 0, 36% 100%, 40% 0, 44% 100%, 48% 0, 52% 100%, 56% 0, 60% 100%, 64% 0, 68% 100%, 72% 0, 76% 100%, 80% 0, 84% 100%, 88% 0, 92% 100%, 96% 0, 100% 100%, 100% 0); }
.rb-head { text-align: center; border-bottom: 3px double var(--ink); padding-bottom: 14px; }
.rb-head h2 { margin: 0; font-size: clamp(20px, 3vw, 28px); }
.rb-sub { margin: 4px 0 12px; font-size: 13px; }
.find input { width: 100%; min-height: 44px; border: 0; border-bottom: 3px dotted var(--ink); background: transparent; font: 800 16px/1 var(--fp); letter-spacing: .08em; text-align: center; color: var(--ink); }
.find input::placeholder { color: var(--wood); }
.sorttabs { position: absolute; right: -4px; top: 120px; transform: translateX(100%); display: flex; flex-direction: column; gap: 6px; }
.sorttabs button { min-height: 44px; padding: 6px 12px 6px 10px; background: var(--shade); border: var(--b) solid var(--ink); border-left: 0; font: 800 13px/1 var(--fp); letter-spacing: .08em; text-align: left; transition: transform .1s steps(2); }
.sorttabs button[aria-selected=true] { background: var(--gold); transform: translateX(4px); }
.slips { display: grid; grid-template-columns: minmax(0, 1fr); }
.slips:empty { min-height: 1240px; }
.slip { min-width: 0; }
.slip { position: relative; padding: 18px 0 16px; border-bottom: 3px dashed var(--ink); }
.slip.on .sh .tk { background: var(--gold); }
.slip.feed { animation: feed .8s steps(8); }
@keyframes feed { from { transform: translateY(-32px); } to { transform: none; } }
.sh { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.sn { min-width: 0; display: grid; }
.sn .tk { font: 700 30px/1 var(--fd); width: fit-content; padding: 0 4px; }
.sn .doto { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no { font-size: 13px; color: var(--wood); }
.ctag { width: var(--s, 44px); height: var(--s, 44px); object-fit: cover; border: 3px solid var(--ink); background: var(--cream); }
.tagp { display: grid; place-items: center; background: var(--shade); position: relative; }
.tagp::before { content: ""; position: absolute; top: 4px; left: 4px; width: 6px; height: 6px; border: 2px solid var(--ink); background: var(--paper); }
.tagp b { font: 700 calc(var(--s, 44px) * .3)/1 var(--fd); letter-spacing: 0; }
.lines { margin: 12px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.ln { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ln dt { font: 800 13px/1.4 var(--fp); letter-spacing: .05em; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.ln dt::after { content: " ........................................................"; color: #d6c39a; }
.ln dd { margin: 0; font-size: 14px; font-weight: 700; white-space: nowrap; }
.ln dd small { font-weight: 400; color: var(--wood); }
.ln.gold dd { background: linear-gradient(transparent 55%, rgba(242,193,78,.55) 55%); }
.ln.off dd { color: var(--wood); }
.pstamp { position: absolute; right: 44px; top: 20px; transform: rotate(-6deg); border: 4px solid var(--wood); color: var(--wood); padding: 4px 8px 2px; font-size: 14px; background: var(--paper); }
.pstamp.g { border-color: var(--green); color: var(--greenD); }
.perf { height: 14px; margin: 14px -6px 10px; background: radial-gradient(circle, var(--ink) 0 3px, transparent 3.5px) 0 50%/16px 14px repeat-x; opacity: .7; }
.stub { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; padding: 8px 12px; background: var(--cream); border: 3px solid var(--ink); }
.stub .doto { font-size: 12px; }
.stub b { font-size: 26px; font-weight: 700; }
.stub .holes { grid-column: 1 / -1; display: flex; justify-content: space-between; }
.stub .holes i { width: 12px; height: 12px; border: 2px solid var(--ink); background: var(--paper); }
.stub .holes i.out { background: var(--ink); }
.stub .holes i.red { background: var(--red); }
.stub.idle b, .stub.idle .doto { color: var(--wood); }
.stub.done { background: var(--shade); }
.stub.done b { font-size: 14px; }
.sf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.acts { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.carow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; }
.carow .lab { font: 800 12px/1 var(--fp); letter-spacing: .1em; }
.cachip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 2px 8px; border: 2px solid var(--ink); background: var(--paper); font: 700 12px/1 var(--fn); }
.cachip .cl { font: 800 11px/1 var(--fp); letter-spacing: .08em; }
.cachip.copied { background: var(--green); color: var(--paper); }
.carow .lk { font: 800 11px/1 var(--fp); letter-spacing: .08em; text-decoration: underline 2px; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
.slip.grad { opacity: .92; }
.slip.demo .pstamp { top: 14px; border-color: var(--sky); color: #2f6fa8; }
.slip.invite { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 26px 8px; border-bottom: 0; }
.slip.invite p { margin: 0; font-size: 15px; }
.rb-more { margin: 26px auto 0; display: flex; width: fit-content; }

/* ------------------------------------------------------------------ 3. the returns hatch */
.hatch { background: #FEF4DD; border-top: var(--b) solid var(--ink); padding: 72px 16px 96px; }
.hatch-in, .back-in { max-width: 1120px; margin: 0 auto; }
.hatch .ttl, .back .ttl { text-align: center; }
.sub { text-align: center; margin: 10px auto 0; font-size: clamp(14px, 1.4vw, 18px); max-width: 52ch; }
.hatch-stage { position: relative; width: min(860px, 100%); margin: 28px auto 0; aspect-ratio: 192 / 128; }
.hwin { width: 100%; height: 100%; }
.hdemo { position: absolute; inset: 0; pointer-events: none; }
.dslip { position: absolute; left: 50%; top: 18%; width: 22%; transform: translate(-50%, 0); background: var(--paper); border: 3px solid var(--ink); padding: 6px 8px; display: grid; gap: 2px; text-align: center; opacity: 0; }
.dslip b { font-size: clamp(9px, 1.2vw, 13px); }
.dslip span, .dslip i { font-size: clamp(10px, 1.3vw, 14px); font-style: normal; font-weight: 700; }
.dcoins { position: absolute; left: 44%; top: 46%; width: 7%; opacity: 0; }
.dstamp { position: absolute; left: 60%; top: 10%; width: 14%; opacity: 0; }
.dret { position: absolute; left: 50%; top: 64%; transform: translateX(-50%) rotate(-6deg); border: 4px solid var(--green); color: var(--greenD); background: var(--paper); padding: 4px 10px 2px; font-size: clamp(12px, 1.8vw, 20px); opacity: 0; }
.hdemo.play .dslip { animation: dslip 6s steps(1) infinite; }
.hdemo.play .dcoins { animation: dcoins 6s steps(1) infinite; }
.hdemo.play .dstamp { animation: dstamp 6s steps(1) infinite; }
.hdemo.play .dret { animation: dret 6s steps(1) infinite; }
.hdemo.still .dret, .hdemo.still .dslip { opacity: 1; }
@keyframes dslip { 0% { opacity: 1; transform: translate(-50%, 0); } 25% { transform: translate(-50%, 16px); } 35% { transform: translate(-50%, 32px); opacity: 1; } 45% { opacity: 0; } 100% { opacity: 0; } }
@keyframes dcoins { 0%, 45% { opacity: 0; transform: none; } 50% { opacity: 1; transform: translateY(0); } 58% { transform: translateY(12px); } 66%, 92% { opacity: 1; transform: translateY(24px); } 93%, 100% { opacity: 0; } }
@keyframes dstamp { 0%, 62% { opacity: 0; transform: none; } 64% { opacity: 1; transform: translateY(-8px); } 68%, 92% { opacity: 1; transform: translateY(0); } 93%, 100% { opacity: 0; } }
@keyframes dret { 0%, 66% { opacity: 0; } 68%, 92% { opacity: 1; } 93%, 100% { opacity: 0; } }
.steps { list-style: none; padding: 0; margin: 36px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; }
.steps li { background: var(--paper); border: var(--b) solid var(--ink); box-shadow: 0 6px 0 var(--ink); padding: 16px 16px 18px; display: grid; gap: 8px; align-content: start; }
.steps b { font-size: 30px; font-weight: 700; color: var(--greenD); }
.steps li:nth-child(3) b { font: 700 28px/1 var(--fd); color: var(--ink); }
.steps span { font-size: 13.5px; line-height: 1.5; }
.shelf { margin: 48px auto 0; max-width: 980px; padding: 18px; background: var(--honey) url(/assets/art/tile-wall.webp) 0 0/128px; border: var(--b) solid var(--ink); box-shadow: inset 0 -10px 0 var(--dark); }
.shelf h3 { margin: 0 0 14px; font-size: 15px; color: var(--paper); background: var(--ink); width: fit-content; padding: 6px 10px 4px; }
.myslips { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding-bottom: 8px; }
.myslips .slip { background: var(--paper); border: var(--b) solid var(--ink); padding: 14px; -webkit-mask: var(--zigm); mask: var(--zigm); padding-top: 20px; }
.myslips .slip.invite { grid-column: 1 / -1; }
.slip.mine .note { font-size: 12.5px; margin: 10px 0 0; }
.slip.mine .acts { margin-top: 12px; }
.slip.mine .pstamp { top: 16px; right: 12px; }
.slip.tear .stub { animation: tear .45s steps(3) forwards; }
@keyframes tear { to { transform: translateY(24px) rotate(8deg); opacity: 0; } }

/* ------------------------------------------------------------------ 4. the back room */
.back { position: relative; background: var(--wall) url(/assets/art/backroom.webp) 50% 100%/cover no-repeat; image-rendering: pixelated; border-top: var(--b) solid var(--ink); padding: 72px 16px 120px; }
.back .ttl, .back .sub { background: var(--wall); width: fit-content; margin-left: auto; margin-right: auto; padding: 0 10px; }
.ctabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.ctabs button { min-height: 44px; padding: 6px 14px; border: var(--b) solid var(--ink); background: var(--paper); font: 700 18px/1 var(--fd); }
.ctabs button[aria-selected=true] { background: var(--gold); transform: translateY(-4px); box-shadow: 0 4px 0 var(--ink); }
.room { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; margin-top: 84px; align-items: start; }
.box, .oven { position: relative; background: var(--paper); border: var(--b) solid var(--ink); box-shadow: 0 8px 0 var(--ink); padding: 20px; }
.sbox { width: 138px; height: 138px; position: absolute; right: 16px; top: -64px; }
.busy-band { position: absolute; right: 24px; top: 8px; transform: rotate(-6deg); background: var(--paper); border: 3px solid var(--ink); padding: 4px 8px 2px; font-size: 14px; z-index: 2; }
.stacks { display: grid; grid-template-columns: repeat(10, 1fr); align-items: end; gap: 4px; height: 100px; margin: 26px 150px 8px 0; }
.stk { position: relative; display: grid; place-items: end center; height: 100%; }
.pile { position: relative; display: block; width: 100%; max-width: 44px; }
.pile img { width: 100%; height: auto; }
.band { position: absolute; left: -3px; right: -3px; top: 46%; height: 10px; background: var(--paper); border: 2px solid var(--ink); }
.stk.empty::after { content: ""; width: 70%; height: 6px; background: var(--shade); }
.legend { display: flex; gap: 16px; font: 800 11px/1 var(--fp); letter-spacing: .06em; margin-bottom: 14px; }
.legend i { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--ink); margin-right: 6px; vertical-align: -2px; }
.legend .lf { background: var(--gold); }
.legend .lr { background: var(--paper); }
.kv { margin: 0; display: grid; gap: 4px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px dotted var(--shade); padding: 4px 0; }
.kv dt { font: 800 13px/1.4 var(--fp); letter-spacing: .04em; text-transform: uppercase; }
.kv dd { margin: 0; font-size: 14px; font-weight: 700; text-align: right; }
.kv .gold dd { color: var(--dark); }
.oven h3 { margin: 0; font-size: 15px; }
.oven .big { font-size: clamp(34px, 4vw, 52px); font-weight: 700; margin: 8px 0 0; line-height: 1.05; }
.oven .cap { margin: 4px 0 14px; font-size: 13px; }
.donate { margin-top: 18px; padding-top: 14px; border-top: 3px double var(--ink); }
.donate label { font-size: 13px; }
.donate .row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.donate input { width: 110px; min-height: 44px; font-size: 18px; font-weight: 700; border: 0; border-bottom: 3px dotted var(--ink); background: transparent; color: var(--ink); text-align: right; }
.donate .u { font: 800 14px/1 var(--fp); }

/* ------------------------------------------------------------------ 5. storefront + footer */
.front { position: relative; aspect-ratio: 256 / 128; max-height: 92vh; min-height: 520px; width: 100%; overflow: hidden; border-top: var(--b) solid var(--ink); background: var(--sky); }
.front-scene { position: absolute; inset: 0; background: url(/assets/art/ending.webp) 50% 100%/cover no-repeat; image-rendering: pixelated; }
.board { position: absolute; left: 50%; top: 6%; transform: translateX(-50%); width: min(720px, calc(100% - 32px)); text-align: center; background: var(--honey) url(/assets/art/tile-wall.webp) 0 0/128px; border: var(--b) solid var(--ink); box-shadow: inset 0 -8px 0 var(--dark), 0 8px 0 var(--ink); padding: 22px 18px 28px; }
.board .ttl { color: var(--ink); }
.board .doto { margin: 8px 0 0; font-size: 16px; }
.board .plank { margin-top: 16px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 22px clamp(16px, 3vw, 40px) 28px; background: var(--ink); color: var(--cream); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot nav a { font: 800 13px/1 var(--fp); letter-spacing: .08em; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.foot nav a:hover { color: var(--gold); }
.foot .ca { box-shadow: none; color: var(--ink); }
.foot .fine { font-size: 12px; margin-left: auto; }
.foot .fine a { color: var(--gold); display: inline-flex; align-items: center; min-height: 36px; }
.donate label { display: inline-block; min-height: 32px; }

/* ------------------------------------------------------------------ toasts + tooltip */
.tstack { position: fixed; z-index: 90; right: 16px; bottom: 16px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 14px 14px 18px; background: var(--paper); border: var(--b) solid var(--ink); box-shadow: 0 6px 0 var(--ink); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 96% 100%, 92% calc(100% - 8px), 88% 100%, 84% calc(100% - 8px), 80% 100%, 76% calc(100% - 8px), 72% 100%, 68% calc(100% - 8px), 64% 100%, 60% calc(100% - 8px), 56% 100%, 52% calc(100% - 8px), 48% 100%, 44% calc(100% - 8px), 40% 100%, 36% calc(100% - 8px), 32% 100%, 28% calc(100% - 8px), 24% 100%, 20% calc(100% - 8px), 16% 100%, 12% calc(100% - 8px), 8% 100%, 4% calc(100% - 8px), 0 100%); font-size: 13px; }
.toast.ok { border-left: 12px solid var(--green); }
.toast.err { border-left: 12px solid var(--wood); }
.toast a { grid-column: 1; font: 800 12px/1 var(--fp); letter-spacing: .06em; }
.toast .tx { grid-row: 1; grid-column: 2; border: 0; background: none; font-size: 22px; line-height: 1; min-width: 32px; min-height: 32px; }
.tip { position: fixed; z-index: 95; max-width: 260px; padding: 8px 10px 14px; background: var(--paper); border: 3px solid var(--ink); font-size: 12px; pointer-events: none; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 90% 100%, 80% calc(100% - 6px), 70% 100%, 60% calc(100% - 6px), 50% 100%, 40% calc(100% - 6px), 30% 100%, 20% calc(100% - 6px), 10% 100%, 0 calc(100% - 6px)); }

/* ------------------------------------------------------------------ inner pages */
.page { max-width: 1120px; margin: 0 auto; padding: 48px 16px 96px; }
body.inner { background: var(--cream) url(/assets/art/tile-plaster.webp) 0 0/256px; }
.page > .ttl { margin-bottom: 8px; }
.lead { max-width: 64ch; font-size: 15px; margin: 8px 0 28px; }
.card { background: var(--paper); border: var(--b) solid var(--ink); box-shadow: 0 8px 0 var(--ink); padding: 22px; }
.card + .card { margin-top: 22px; }
.cap { font: 800 15px/1.2 var(--fp); letter-spacing: .08em; margin: 0 0 14px; text-transform: uppercase; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.grid2.tight { gap: 12px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .lab { font: 800 13px/1 var(--fp); letter-spacing: .08em; }
.field small { font-size: 12px; color: var(--dark); }
.inp { width: 100%; min-height: 46px; padding: 8px 10px; background: var(--cream); border: 3px solid var(--ink); border-bottom-style: dotted; color: var(--ink); font: 400 15px/1.3 var(--fn); }
textarea.inp { min-height: 90px; resize: vertical; }
.inp:focus { outline: none; background: var(--paper); border-style: solid; }
.drop { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 10px; border: 3px dashed var(--ink); background: var(--cream); font: 800 12px/1.3 var(--fp); letter-spacing: .06em; }
.drop img { width: 56px; height: 56px; object-fit: cover; border: 3px solid var(--ink); image-rendering: auto; }
.stepper { display: grid; grid-template-columns: 46px 1fr 46px; }
.stp { border: 3px solid var(--ink); background: var(--gold); font: 700 20px/1 var(--fn); min-height: 46px; }
.stepper .inp { text-align: center; border-left: 0; border-right: 0; font-weight: 700; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 2px dotted var(--shade); }
.rows dt { font: 800 13px/1.4 var(--fp); letter-spacing: .04em; text-transform: uppercase; }
.rows dd { margin: 0; font-weight: 700; text-align: right; }
.go { margin-top: 20px; }
.go .gbtn { width: 100%; }
.fine { font-size: 12px; line-height: 1.5; }
.receipt { -webkit-mask: var(--zigm); mask: var(--zigm); padding-top: 28px; }
.statline { font: 700 clamp(30px, 5vw, 60px)/1.05 var(--fd); margin: 0; }
.statline .num { font-family: var(--fn); font-weight: 700; }
.stats4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0; }
.stat { background: var(--paper); border: var(--b) solid var(--ink); padding: 14px; box-shadow: 0 6px 0 var(--ink); }
.stat b { display: block; font-size: 26px; }
.stat i { font: 800 11px/1.3 var(--fp); letter-spacing: .06em; font-style: normal; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { font: 800 12px/1.2 var(--fp); letter-spacing: .06em; text-align: left; padding: 10px 8px; border-bottom: 3px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 10px 8px; border-bottom: 2px dotted var(--shade); vertical-align: middle; }
.tbl td a { font-weight: 700; }
.tscroll { overflow-x: auto; background: var(--paper); border: var(--b) solid var(--ink); box-shadow: 0 6px 0 var(--ink); padding: 6px 10px; }
.mrow { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 2px dashed var(--shade); }
.mrow .t { text-decoration: none; display: grid; }
.mrow .t b { font: 700 18px/1.2 var(--fd); }
.mrow .t span { font-size: 12px; }
.mrow .r { text-align: right; font-weight: 700; }
.empty { padding: 18px; text-align: center; font-size: 13px; }
.empty b { display: block; font: 800 14px/1.3 var(--fp); letter-spacing: .08em; margin-bottom: 4px; }
.docs h2 { font: 700 30px/1.1 var(--fd); margin: 36px 0 12px; }
.docs p, .docs li { max-width: 72ch; font-size: 14px; }
.docs code { font-size: 12.5px; background: var(--shade); padding: 1px 4px; }
.lost { min-height: 100vh; display: grid; place-items: center; background: var(--wall) url(/assets/art/404.webp) 50% 100%/cover no-repeat; image-rendering: pixelated; padding: 16px; text-align: center; }
.lost .card { max-width: 520px; display: grid; justify-items: center; gap: 16px; -webkit-mask: var(--zigm); mask: var(--zigm); padding-top: 30px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .tabs a { font-size: 12px; padding-left: 7px; padding-right: 7px; }
}
@media (max-width: 980px) {
  .tabs { position: fixed; z-index: 40; left: 0; right: 0; top: 0; flex-direction: column; gap: 0; padding: 76px 16px 16px; background: var(--cream); border-bottom: var(--b) solid var(--ink); transform: translateY(-110%); visibility: hidden; transition: transform .15s steps(3), visibility 0s .15s; }
  .tabs a { margin: 0; padding: 14px 10px; border: 0; border-bottom: 2px dashed var(--shade); font-size: 16px; background: none; }
  body.menu-open .tabs { transform: none; visibility: visible; transition: transform .15s steps(3); }
  .mbtn { display: grid; gap: 4px; place-content: center; width: 46px; height: 46px; margin-top: 4px; border: var(--b) solid var(--ink); background: var(--paper); position: relative; z-index: 41; }
  .mbtn i { display: block; width: 20px; height: 3px; background: var(--ink); }
  .sorttabs { position: static; transform: none; flex-direction: row; justify-content: center; margin: 14px 0 4px; }
  .sorttabs button { border-left: var(--b) solid var(--ink); }
  .sorttabs button[aria-selected=true] { transform: translateY(-4px); }
  .room { grid-template-columns: 1fr; margin-top: 70px; }
  .steps { grid-template-columns: 1fr; }
  .stats4 { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
}
/* phones: the scene crops to the hatch + counter, the register steps out below the scene */
@media (max-width: 760px) {
  .top { padding: 10px 12px 0; gap: 10px; }
  .wm { font-size: 18px; }
  .brand img { width: 28px; }
  .brand { min-width: 44px; justify-content: center; }
  .signs { gap: 4px; margin-top: -10px; }
  .sign { width: 84px; height: 52px; background-size: 84px 52px; padding-bottom: 8px; }
  .sign .sl { font-size: 11px; height: 20px; }
  .sign .xg { width: 14px; height: 14px; }
  .wsign .sl { font-size: 9px; }
  .brand .wm { display: none; }
  .mbuy { display: inline-flex !important; }
  .drawer { position: relative; left: auto; bottom: auto; margin-top: -66px; width: 224px; }
  .hero { height: auto; min-height: 0; max-height: none; overflow: visible; display: flex; flex-direction: column; }
  .scene { position: relative; inset: auto; order: 2; width: 100%; aspect-ratio: 192 / 171; background-image: url(/assets/art/hero-m.webp); background-size: 100% 100%; }
  .wall { order: 1; padding-top: 92px; padding-bottom: 18px; }
  .name { font-size: clamp(44px, 14.5vw, 72px); }
  .line { font-size: 14px; }
  .plank { gap: 10px; }
  .hatchlink { display: none; }
  .head-slip { position: relative; order: 3; left: auto; bottom: auto; transform: none; margin: -56px auto 0; width: min(300px, calc(100% - 32px)); height: auto; padding-bottom: 20px; }
  .till { position: relative; order: 4; right: auto; bottom: auto; transform: none; margin: 32px auto 8px; width: 316px; padding-top: 0; display: flex; flex-direction: column; align-items: center; }
  .tape { position: relative; left: auto; top: auto; transform: none; width: min(300px, calc(100vw - 32px)); margin-top: -2px; }
  .reg { margin: 0 auto; }
  .drawer { left: 12px; }
  .ribbon { padding-top: 20px; }
  .sn .tk { font-size: 24px; }
  .pstamp { top: 16px; right: 40px; font-size: 12px; }
  .back { padding-top: 56px; }
  .sbox { position: relative; right: auto; top: auto; width: 92px; height: 92px; margin: -64px auto 0; }
  .stacks { margin-right: 0; margin-top: 12px; height: 70px; }
  .front { aspect-ratio: auto; min-height: 640px; }
  .front-scene { background-size: auto 100%; }
  .foot .fine { margin-left: 0; }
}
@media (max-width: 380px) {
  .sign { width: 72px; height: 45px; background-size: 72px 45px; }
  .sign .sl { font-size: 10px; height: 18px; }
  .till { width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.hwin.ring { animation: ring .5s steps(2) 3; }
@media (max-width: 380px) { .rb-more { white-space: normal; text-align: center; } }

/* ------------------------------------------------------------------ how it works: the returns counter film (own player) */
.film { padding: 56px clamp(16px, 3vw, 40px) 64px; background: var(--wall); border-top: var(--b) solid var(--ink); border-bottom: var(--b) solid var(--ink); }
.film-in { max-width: 1120px; margin: 0 auto; }
.player { position: relative; max-width: 1040px; margin: 28px auto 0; background: var(--paper); border: var(--b) solid var(--ink); box-shadow: 0 10px 0 var(--dark); padding: 14px; }
.vp-scr { position: relative; background: var(--ink); border: var(--b) solid var(--ink); aspect-ratio: 16/9; }
.vp-scr video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--cream); cursor: pointer; }
.vp-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); gap: 12px; }
.vp-big:hover { transform: translate(-50%, calc(-50% - 4px)); }
.vp-big:active { transform: translate(-50%, calc(-50% + 4px)); }
.vp-tri { display: inline-block; width: 0; height: 0; border-left: 14px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.vp-pp.on .vp-tri { width: 14px; height: 16px; border: 0; border-left: 5px solid currentColor; border-right: 5px solid currentColor; }
.vp-bar { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.vp-bar .wb { font: 700 14px/1 var(--fd); min-height: 44px; letter-spacing: 1px; }
.vp-pp { width: 52px; padding: 0 !important; }
.vp-tl { position: relative; flex: 1; min-width: 64px; height: 34px; background: var(--shade); border: var(--b) solid var(--ink); cursor: pointer; touch-action: none; }
.vp-fill { position: absolute; left: 0; top: 0; bottom: 0; max-width: 100%; background: var(--green); }
.vp-k { position: absolute; top: -10px; width: 16px; height: 48px; margin-left: -8px; background: var(--gold); border: 4px solid var(--ink); }
.vp-t { min-width: 120px; text-align: center; background: var(--paper); border: 4px solid var(--ink); padding: 8px; font: 700 14px/1.2 var(--fn); }
.vp-vol { display: flex; align-items: stretch; cursor: pointer; }
.vp-vol button { position: relative; width: 16px; height: 44px; padding: 0; background: transparent; border: 0; cursor: pointer; }
.vp-vol button::before { content: ""; position: absolute; left: 2px; right: 2px; bottom: 4px; background: var(--paper); border: 3px solid var(--ink); }
.vp-vol button:nth-child(1)::before { height: 14px; } .vp-vol button:nth-child(2)::before { height: 20px; } .vp-vol button:nth-child(3)::before { height: 26px; } .vp-vol button:nth-child(4)::before { height: 32px; }
.vp-vol button.on::before { background: var(--green); }
.player:fullscreen { display: flex; flex-direction: column; justify-content: center; padding: 18px; max-width: none; margin: 0; background: var(--paper); }
.player:fullscreen .vp-scr { max-height: calc(100vh - 100px); margin: 0 auto; width: min(100%, calc((100vh - 100px) * 16 / 9)); }
@media (max-width: 640px) { .vp-vol, .vp-m, .vp-fs { display: none; } .vp-t { min-width: 0; font-size: 12px; } .player { padding: 8px; } .vp-bar { gap: 6px; } }
