/* Penny Bots — an automat: black and jade vitrolite, nickel chrome, copper pennies, a red 402 lamp */
@font-face { font-family: "Unica One"; src: url(../assets/fonts/UnicaOne.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poiret One"; src: url(../assets/fonts/PoiretOne.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url(../assets/fonts/Urbanist-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url(../assets/fonts/Urbanist-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url(../assets/fonts/Urbanist-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url(../assets/fonts/Urbanist-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --glass: #101614; --glass2: #19221F; --jade: #1F5C4E; --jade-d: #133D34; --mint: #A6D8C4;
  --nickel: #E5E9E7; --nickel2: #CDD4D1; --chrome: #9EA8AB; --ink: #141B19; --ink2: #47534F;
  --copper: #B4652B; --copper-hi: #E09A5F; --copper-d: #73401A; --lamp: #D23F31; --ok: #23805F; --leaf: #F5F6F2;
  --sign: "Unica One", "Urbanist", system-ui, sans-serif; --deco: "Poiret One", "Urbanist", system-ui, sans-serif;
  --text: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --code: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --w: 1200px; --gut: max(16px, calc((100vw - var(--w)) / 2));
  --steel: linear-gradient(180deg, #F4F6F5 0%, #C3CBC9 38%, #EEF1F0 52%, #A9B3B2 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--text); color: var(--ink); background: var(--glass); overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; }
code { font-family: var(--code); font-size: .88em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--copper-hi); outline-offset: 3px; }
.sprite { position: absolute; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--copper); color: #fff; padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- pull buttons (chrome handles) */
.pull { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 15px; text-decoration: none;
  background: linear-gradient(180deg, #E8A46D, var(--copper) 55%, #94501F); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 2px 0 var(--copper-d), 0 6px 14px rgba(0,0,0,.18); text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.pull:hover { filter: brightness(1.06); }
.pull:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 1px 0 var(--copper-d); }
.pull.alt { background: var(--steel); color: var(--ink); text-shadow: none; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #7D8886, 0 6px 14px rgba(0,0,0,.16); }
.pull.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; text-shadow: none; }
.pull:disabled { opacity: .45; cursor: default; filter: none; transform: none; }
.pull svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- 1. the wall */
.wall { position: relative; padding: 40px var(--gut) 72px; color: var(--nickel);
  background: repeating-linear-gradient(180deg, transparent 0 118px, rgba(166,216,196,.06) 118px 120px), radial-gradient(120% 70% at 50% 0%, #1E2D29 0%, var(--glass) 60%); }
.wall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--steel); }
.sign { position: relative; max-width: 860px; margin: 0 auto 44px; padding: 34px 28px 30px; text-align: center; border-radius: 26px;
  background: linear-gradient(180deg, #16201D, #0C1210); box-shadow: inset 0 0 0 3px #3B4844, inset 0 0 0 9px #0C1210, inset 0 0 0 11px #6F7B78, 0 18px 50px rgba(0,0,0,.45); }
.bulbs { position: absolute; inset: 3px; border-radius: 24px; border: 5px dotted #FFE2B6; pointer-events: none; filter: drop-shadow(0 0 3px rgba(255,190,120,.9)); animation: twinkle 1.6s ease-in-out infinite; }
@keyframes twinkle { 50% { border-color: #C98A55; filter: drop-shadow(0 0 1px rgba(255,190,120,.4)); } }
.sign h1 { margin: 0; font: 400 clamp(58px, 11vw, 138px)/.92 var(--sign); letter-spacing: .02em;
  background: linear-gradient(180deg, #FFD0A0 0%, var(--copper-hi) 35%, var(--copper) 62%, #8A4A1C 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(224,154,95,.35)); }
.sign .sub { margin: 14px 0 0; font: 400 clamp(19px, 2.6vw, 28px)/1.25 var(--deco); color: var(--mint); letter-spacing: .03em; }
.wall-grid { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr) 250px; gap: 30px; align-items: start; }
.intro { font-size: 16.5px; color: #CFD8D4; }
.intro .lead { font-size: 19px; line-height: 1.5; color: #fff; margin-top: 0; }
.intro b { color: var(--copper-hi); font-weight: 600; }
.go { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 16px; }
.hint { font-size: 14.5px; color: var(--mint); }

.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 14px; border-radius: 10px; background: linear-gradient(180deg, #2A3532, #18201E); box-shadow: inset 0 0 0 2px #56625F, 0 20px 40px rgba(0,0,0,.4); }
.door { position: relative; display: flex; flex-direction: column; padding: 0; border: 0; background: none; text-align: left; perspective: 700px; }
.frame { position: relative; display: block; aspect-ratio: 4 / 4.4; border-radius: 6px; padding: 7px; background: var(--steel); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.inside { position: absolute; inset: 7px; border-radius: 3px; padding: 10px 9px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 18%, #FFF4DC 0%, #F1D9A6 55%, #C59B5C 100%); color: #3A2410; font-size: 12.5px; line-height: 1.3; }
.inside b { font: 400 15px/1.1 var(--sign); color: var(--copper-d); }
.inside .got { min-height: 3.9em; overflow-wrap: anywhere; }
.door .flap { position: absolute; inset: 7px; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 3px; transform-origin: 0 50%; transition: transform .55s cubic-bezier(.3,.7,.2,1); backface-visibility: hidden;
  background: linear-gradient(115deg, rgba(255,255,255,.18) 0 18%, rgba(255,255,255,0) 30% 62%, rgba(255,255,255,.1) 70%), linear-gradient(180deg, #2F4C45, #1A2D29); box-shadow: inset 0 0 0 2px #B9C3C1, inset 0 0 0 4px #24332F; }
.flap .name { font: 400 clamp(15px, 1.3vw, 19px)/1.05 var(--deco); color: #F0CF98; text-align: center; padding: 0 18px 0 8px; text-shadow: 0 0 10px rgba(240,207,152,.35); font-weight: 700; }
.flap .knob { position: absolute; right: 7px; top: 50%; width: 7px; height: 20px; margin-top: -10px; border-radius: 5px; background: var(--steel); box-shadow: 0 1px 2px rgba(0,0,0,.5); }
.door.open .flap { transform: rotateY(-104deg); }
.door .dplate { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; padding: 5px 8px; border-radius: 4px; background: #0C1210; box-shadow: inset 0 0 0 1px #3C4845; }
.dplate .price { font: 400 15px/1 var(--sign); color: #F3E3C7; font-variant-numeric: tabular-nums; }
.dplate .slotm { position: relative; width: 34px; height: 16px; border-radius: 3px; background: var(--steel); }
.dplate .slotm::before { content: ""; position: absolute; left: 7px; right: 7px; top: 6px; height: 4px; border-radius: 2px; background: #101614; transition: background .2s, box-shadow .2s; }
.door.ask .slotm::before { background: var(--lamp); box-shadow: 0 0 10px 2px rgba(210,63,49,.8); }
.door.paid .slotm::before { background: #46C493; box-shadow: 0 0 10px 2px rgba(70,196,147,.7); }
.dplate .lamp402 { position: absolute; top: -14px; right: -4px; font: 400 11px/1 var(--sign); color: #fff; background: var(--lamp); border-radius: 3px; padding: 2px 4px; opacity: 0; transition: opacity .2s; }
.door.ask .lamp402 { opacity: 1; }
.coin-drop { position: absolute; right: 16px; bottom: 30px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F2B27A, var(--copper) 60%, var(--copper-d)); opacity: 0; pointer-events: none; }
.door.drop .coin-drop { animation: drop .45s ease-in forwards; }
@keyframes drop { 0% { opacity: 1; transform: translateY(-40px) scale(1); } 85% { opacity: 1; transform: translateY(14px) scaleY(.55); } 100% { opacity: 0; transform: translateY(16px) scaleY(.2); } }
.door:hover .frame { box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 0 0 0 2px var(--copper-hi); }

.till { border-radius: 10px; background: var(--steel); padding: 10px; box-shadow: 0 16px 36px rgba(0,0,0,.4); color: var(--ink); }
.till-top { display: flex; justify-content: center; padding: 7px 0 10px; font: 400 18px/1 var(--sign); letter-spacing: .04em; }
.tape { list-style: none; margin: 0; padding: 10px 12px 16px; height: 286px; overflow: hidden; background: #FCFCFA; color: #2B2B2B; font: 400 14px/1.35 var(--sign); font-variant-numeric: tabular-nums;
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 34px); mask: linear-gradient(180deg, transparent 0, #000 34px); display: flex; flex-direction: column; justify-content: flex-end; }
.tape li { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; padding: 4px 0; border-bottom: 1px dashed #CFCFC8; animation: print .35s ease-out; }
.tape li small { grid-column: 1 / -1; color: #6B6B66; font: 500 11.5px/1.3 var(--text); }
.tape li.you b { color: var(--copper-d); }
@keyframes print { from { transform: translateY(14px); opacity: 0; } }
.till-sum { margin: 10px 0 0; display: grid; gap: 6px; }
.till-sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 8px; border-radius: 5px; background: #0E1412; color: var(--nickel); }
.till-sum dt { font-size: 13px; color: #B8C3BF; }
.till-sum dd { margin: 0; font: 400 22px/1 var(--sign); color: var(--copper-hi); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- the coin selector (navigation) */
.selector { position: fixed; right: 18px; bottom: 18px; z-index: 40; }
.dial-btn { width: 74px; height: 74px; border-radius: 50%; border: 0; padding: 6px; background: var(--steel); box-shadow: 0 6px 18px rgba(0,0,0,.4), inset 0 0 0 1px rgba(0,0,0,.2); }
.dial-face { display: grid; place-items: center; align-content: center; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 38% 30%, #F2B27A, var(--copper) 55%, var(--copper-d)); color: #fff; box-shadow: inset 0 0 0 3px rgba(115,64,26,.6); }
.dial-face small { font: 600 10.5px/1 var(--text); opacity: .85; }
.dial-face b { font: 400 28px/1 var(--sign); }
.dial-wrap { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; background: rgba(8,12,11,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dial { position: relative; width: 344px; height: 344px; }
.dial-disc { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #DDE3E1 0 36%, #AEB8B6 37%, #F2F4F3 60%, #A3AEAC 100%); box-shadow: 0 24px 60px rgba(0,0,0,.6), inset 0 0 0 2px rgba(0,0,0,.2); transition: transform .5s cubic-bezier(.4,0,.2,1); }
.hole { position: absolute; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; border: 0; display: grid; place-items: center; align-content: center; gap: 1px;
  background: radial-gradient(circle at 50% 40%, #1E2A27, #0B110F); color: var(--nickel); box-shadow: inset 0 3px 6px rgba(0,0,0,.7), 0 1px 0 #fff; }
.hole b { font: 400 21px/1 var(--sign); color: var(--copper-hi); }
.hole small { font: 600 9.5px/1 var(--text); letter-spacing: .02em; }
.hole[aria-current="true"] { box-shadow: inset 0 3px 6px rgba(0,0,0,.7), 0 0 0 3px var(--copper-hi); }
.hole:hover b, .hole:focus-visible b { color: #fff; }
.dial-card { position: absolute; left: 50%; top: 50%; width: 118px; height: 118px; margin: -59px 0 0 -59px; border-radius: 50%; display: grid; place-items: center; align-content: center; text-align: center; padding: 10px;
  background: #FBFBF7; color: var(--ink); box-shadow: inset 0 0 0 4px #C7CFCC; pointer-events: none; }
.dial-card b { font: 400 17px/1.05 var(--sign); }
.dial-card small { font-size: 11px; color: var(--ink2); margin-top: 4px; }
.dial-stop { position: absolute; right: 22px; bottom: 40px; width: 40px; height: 12px; border-radius: 6px; background: linear-gradient(180deg, #F4F6F5, #8C9795); transform: rotate(-35deg); box-shadow: 0 2px 4px rgba(0,0,0,.5); }

/* ---------------------------------------------------------------- sections */
.sec { padding: 92px var(--gut) 96px; position: relative; }
.sec.light { background: var(--nickel); }
.sec.dark { background: var(--glass2); color: var(--nickel); }
.sec.jade { background: radial-gradient(60% 50% at 20% 10%, rgba(255,255,255,.07), transparent 70%), linear-gradient(160deg, #22675A, var(--jade-d)); color: #EAF3EF; }
.sec + .sec::before, main > .sec:first-child::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--steel); opacity: .9; }
.head { display: flex; gap: 22px; align-items: center; margin-bottom: 38px; }
.head .no { flex: none; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font: 400 34px/1 var(--sign); color: #fff;
  background: radial-gradient(circle at 36% 30%, #F2B27A, var(--copper) 55%, var(--copper-d)); box-shadow: inset 0 0 0 4px rgba(115,64,26,.55), inset 0 0 0 6px rgba(242,178,122,.5), 0 4px 10px rgba(0,0,0,.25); }
.head h2 { margin: 0; font: 400 clamp(32px, 4.4vw, 50px)/1 var(--sign); letter-spacing: .01em; }
.head p { margin: 8px 0 0; font-size: 18px; max-width: 62ch; opacity: .86; }

/* ---------------------------------------------------------------- 2. the 402 counter */
.counter-ctl { display: grid; gap: 16px; margin-bottom: 26px; }
.menu { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.menu button { border: 0; border-radius: 6px; padding: 10px 8px 9px; text-align: center; background: #fff; box-shadow: inset 0 0 0 1px var(--nickel2); }
.menu button b { display: block; font: 400 17px/1.1 var(--sign); }
.menu button span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ink2); }
.menu button[aria-checked="true"] { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 2px var(--copper); }
.menu button[aria-checked="true"] span { color: var(--copper-hi); }
.ctl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--steel); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.seg-note { margin: 0; flex: 1 1 240px; font-size: 15px; color: var(--ink2); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.booths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.window { padding: 12px 16px; border-radius: 12px 12px 0 0; background: var(--steel); display: flex; flex-direction: column; }
.window.shop { text-align: right; }
.wlabel { font: 400 24px/1 var(--sign); }
.wsub { font-size: 13.5px; color: var(--ink2); }
.tray { list-style: none; margin: 0; padding: 22px 18px; min-height: 180px; display: flex; flex-direction: column; gap: 14px; border-radius: 0 0 12px 12px;
  background: linear-gradient(90deg, rgba(31,92,78,.05), transparent 30% 70%, rgba(180,101,43,.05)), repeating-linear-gradient(90deg, #DCE2DF 0 2px, #E1E6E4 2px 6px); box-shadow: inset 0 2px 8px rgba(0,0,0,.12); }
.tray:empty::before { content: "The tray is empty."; color: var(--ink2); font-size: 15px; align-self: center; margin: auto; }
.tk { position: relative; max-width: min(660px, 78%); border-radius: 6px; background: #fff; padding: 12px 16px 14px; box-shadow: 0 2px 0 #C5CCC9, 0 8px 16px rgba(0,0,0,.08); animation: slide .38s ease-out; }
.tk.a { align-self: flex-start; border-left: 6px solid var(--jade); }
.tk.s { align-self: flex-end; border-right: 6px solid var(--copper); }
.tk.in-a { align-self: flex-start; width: min(480px, 94%); background: #EEF5F2; box-shadow: inset 0 0 0 1px #C6DDD3; }
.tk.in-s { align-self: flex-end; background: #FBF2EA; box-shadow: inset 0 0 0 1px #EBD3BF; }
.tk.a.enter { animation-name: slide-r; }
@keyframes slide { from { transform: translateX(26px); opacity: 0; } }
@keyframes slide-r { from { transform: translateX(-26px); opacity: 0; } }
.tk h3 { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font: 600 16px/1.3 var(--text); }
.tk h3 .n { font: 400 15px/1 var(--sign); color: #fff; background: var(--ink); border-radius: 50%; width: 24px; height: 24px; display: inline-grid; place-items: center; }
.tk h3 .st { font: 400 18px/1 var(--sign); }
.tk h3 .st.r { color: var(--lamp); }
.tk h3 .st.g { color: var(--ok); }
.tk p { margin: 4px 0; font-size: 15px; }
.tk pre { margin: 6px 0 0; padding: 10px 12px; border-radius: 4px; background: #F2F4F3; font: 13px/1.45 var(--code); white-space: pre-wrap; overflow-wrap: anywhere; }
.meters { display: grid; gap: 7px; margin-top: 8px; }
.meter { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.meter .bar { position: relative; height: 10px; border-radius: 5px; background: #D7E4DE; overflow: hidden; }
.meter .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--jade); }
.meter .bar i + i { background: repeating-linear-gradient(135deg, var(--copper) 0 4px, var(--copper-hi) 4px 8px); }
.meter.over .bar i + i { background: repeating-linear-gradient(135deg, var(--lamp) 0 4px, #F08A7E 4px 8px); }
.walk { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; font: 12.5px/1.6 var(--code); }
.walk li { padding: 1px 6px; border-radius: 3px; background: #F2E3D6; }
.walk li.end { background: #CFE7DC; font-weight: 700; }
.walk li.more { background: none; color: var(--ink2); font-family: var(--text); }
.walk li.bad { background: #F6D5D0; font-weight: 700; }
.verdict { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 700; }
.verdict svg { width: 18px; height: 18px; }
.verdict.g { color: var(--ok); }
.verdict.r { color: var(--lamp); }
.counter-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 22px; align-items: start; }
.ledger-strip b { display: block; font: 400 19px/1.2 var(--sign); margin-bottom: 8px; }
.ledger-strip ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ledger-strip li { padding: 5px 10px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 13.5px; }
.ledger-strip li em { font-style: normal; color: var(--copper-hi); }
.ledger-strip li.none { background: none; color: var(--ink2); padding-left: 0; }
.counter-sum { margin: 0; padding: 14px 16px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--nickel2); font-size: 15.5px; }

/* ---------------------------------------------------------------- 3. the fee ruler */
.rule-box { display: grid; gap: 18px; }
.rule { position: relative; border-radius: 10px; padding: 0; background: linear-gradient(180deg, #F6F7F3, #E4E8E3); box-shadow: inset 0 0 0 2px #9EA8AB, 0 18px 40px rgba(0,0,0,.4); color: var(--ink); overflow: hidden; touch-action: none; cursor: ew-resize; }
.rule svg { width: 100%; height: auto; }
.rule .tick { stroke: #222; }
.rule .lab { font: 400 14px var(--sign); fill: #222; }
.rule .scale-n { font: 400 17px var(--sign); fill: #222; }
.rule .pct { font: 600 11.5px var(--text); fill: #3A4440; }
.rule .over { fill: url(#hatch); }
.rule .flag { font: 700 11.5px var(--text); fill: var(--copper-d); }
.rule .cur { fill: rgba(166,216,196,.18); stroke: #6E8B82; stroke-width: 1; }
.rule .hair { stroke: var(--lamp); stroke-width: 2; }
.rule .read { font: 400 16px var(--sign); fill: #fff; }
.rule .readbg { fill: var(--ink); }
.rule-ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; align-items: end; }
.lever { display: grid; gap: 8px; font-size: 15px; }
.lever span { display: flex; justify-content: space-between; gap: 10px; }
.lever output { font: 400 19px/1 var(--sign); color: var(--copper-hi); font-variant-numeric: tabular-nums; }
.sec.light .lever output { color: var(--copper-d); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(180deg, #8C9795, #D9DFDD); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(180deg, #8C9795, #D9DFDD); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; border: 0; background: radial-gradient(circle at 36% 30%, #F2B27A, var(--copper) 55%, var(--copper-d)); box-shadow: 0 2px 4px rgba(0,0,0,.4); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; border: 0; background: radial-gradient(circle at 36% 30%, #F2B27A, var(--copper) 55%, var(--copper-d)); box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 0; border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 600; background: rgba(255,255,255,.1); color: var(--nickel); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.chips button:hover { background: rgba(255,255,255,.18); }
.rule-read { margin: 0; font-size: 18px; line-height: 1.55; color: #fff; }
.rule-read b { color: var(--copper-hi); font-weight: 600; }
.rule-note { margin: 0; font-size: 14px; color: #A9B7B2; max-width: 92ch; }

/* ---------------------------------------------------------------- 4. the change booth */
.booth { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.booth-window { border-radius: 160px 160px 10px 10px; padding: 16px; background: var(--steel); box-shadow: 0 24px 50px rgba(0,0,0,.35); color: var(--ink); }
.grille { height: 92px; border-radius: 150px 150px 0 0; margin-bottom: 10px; background: repeating-linear-gradient(90deg, #C99A5E 0 4px, #6D4A22 4px 5px, transparent 5px 22px), radial-gradient(120% 140% at 50% 100%, #1A2421 40%, #0B100E); box-shadow: inset 0 0 0 3px #C99A5E; }
.glass { position: relative; height: 470px; border-radius: 4px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 3px #5E6967; }
.glass iframe { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); border: 0; }
.glass-wait { position: absolute; inset: 3px; display: grid; place-items: center; text-align: center; padding: 20px; background: repeating-linear-gradient(135deg, #F3F5F4 0 14px, #EAEDEC 14px 28px); color: var(--ink2); font-size: 15px; transition: opacity .4s; }
.glass-wait.off { opacity: 0; pointer-events: none; }
.sill { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; font-size: 14.5px; }
.sill a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.sill svg { width: 15px; height: 15px; }
.plate-s { font: 400 15px/1 var(--sign); padding: 6px 10px; border-radius: 4px; background: linear-gradient(180deg, #E7C08A, #B88947); color: #3A260C; }
.booth-desk { display: grid; gap: 22px; }
.coin-ca { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px 20px; align-items: center; }
.big-coin { width: 170px; height: 170px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); }
.ca-slot p { margin: 0; font-size: 14.5px; color: #CFE3DA; }
.ca-line { grid-column: 1 / -1; display: block; padding: 11px 14px; border-radius: 6px; background: #0C1210; color: #F3E3C7; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; box-shadow: inset 0 2px 6px rgba(0,0,0,.6); }
.big-coin .rim { font: 400 17.5px var(--sign); fill: #FBE3C7; letter-spacing: .02em; }
.big-coin .face-t { font: 400 64px var(--sign); fill: #FBE3C7; }
.big-coin .face-s { font: 400 24px var(--sign); fill: #FBE3C7; }
.ca-slot { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.ca-label { font: 400 17px/1 var(--sign); color: var(--mint); }
.ok { font-size: 14px; color: var(--mint); min-height: 1.2em; }
.rates { border-radius: 8px; padding: 18px 22px 16px; background: #0D1311; box-shadow: inset 0 0 0 2px #3B4744, inset 0 0 0 6px #0D1311, inset 0 0 0 7px #2A3431; }
.rates h3 { margin: 0 0 10px; text-align: center; font: 400 22px/1 var(--deco); font-weight: 700; color: #F0CF98; letter-spacing: .04em; }
.rates dl { margin: 0; }
.rates dl div { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; }
.rates dt { flex: none; font-size: 15.5px; color: #E4ECE9; }
.rates dl div::after { content: ""; order: 2; flex: 1; border-bottom: 2px dotted #4E5D59; transform: translateY(-4px); }
.rates dd { order: 3; margin: 0; font: 400 19px/1 var(--sign); color: #fff; font-variant-numeric: tabular-nums; }
.rates dd.up { color: #6FD8AC; }
.rates dd.down { color: #F49A8E; }
.rates-at { margin: 10px 0 0; font-size: 12.5px; color: #93A39E; text-align: center; }
.plates { display: flex; flex-wrap: wrap; gap: 10px; }
.plate { display: grid; padding: 8px 14px; border-radius: 5px; background: linear-gradient(180deg, #EBC995, #B98A48); color: #33220B; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 0 #7E5A28; }
.plate small { font-size: 11.5px; font-weight: 600; }
.plate b { font: 400 18px/1.1 var(--sign); }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.slot-l { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; text-decoration: none; background: rgba(0,0,0,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.slot-l:hover { background: rgba(0,0,0,.34); }
.mouth { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 8px; background: var(--steel); }
.mouth img { width: 34px; height: 34px; border-radius: 6px; object-fit: contain; background: #fff; }
.slot-l b { display: block; font-size: 15.5px; }
.slot-l small { display: block; font-size: 13px; opacity: .8; }

/* ---------------------------------------------------------------- 5. a roll of pennies */
.roll-box { display: grid; gap: 20px; }
.roll-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; align-items: center; }
.root-coin { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 12.5px; color: var(--ink2); }
.coin-s { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; font: 400 15px/1 var(--sign); color: #fff; background: radial-gradient(circle at 36% 30%, #9FC9BA, var(--jade) 60%, var(--jade-d)); box-shadow: inset 0 0 0 4px rgba(10,40,33,.5), 0 4px 10px rgba(0,0,0,.25); }
.wrapper { position: relative; display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 22px; border-radius: 40px; min-height: 96px; align-items: center;
  background: linear-gradient(180deg, #F7F1E6, #E2D6C1 50%, #F4ECDD); box-shadow: inset 0 0 0 1px #CDBFA6, 0 10px 24px rgba(0,0,0,.12); }
.wrapper::before, .wrapper::after { content: ""; position: absolute; top: 8px; bottom: 8px; width: 12px; background: repeating-linear-gradient(180deg, #CDBFA6 0 3px, transparent 3px 6px); }
.wrapper::before { left: 6px; } .wrapper::after { right: 6px; }
.pn { position: relative; display: grid; place-items: center; align-content: center; width: 60px; height: 60px; border-radius: 50%; font: 400 12px/1.05 var(--sign); color: #FFF1E2; text-align: center;
  background: radial-gradient(circle at 36% 30%, #F2B27A, var(--copper) 58%, var(--copper-d)); box-shadow: inset 0 0 0 3px rgba(115,64,26,.6), 0 2px 4px rgba(0,0,0,.25); transition: transform .3s, opacity .3s, filter .3s; }
.pn i { font-style: normal; font-size: 10px; opacity: .8; }
.pn.spent { opacity: .35; filter: grayscale(.7); transform: scale(.86); }
.pn.next { box-shadow: inset 0 0 0 3px rgba(115,64,26,.6), 0 0 0 3px var(--jade), 0 0 14px rgba(31,92,78,.6); }
.roll-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.check { padding: 16px 18px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--nickel2); min-height: 110px; }
.check p { margin: 0 0 6px; }
.check .walk li { background: #F2E3D6; }
.roll-count { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.roll-count div { padding: 12px 14px; border-radius: 8px; background: var(--ink); color: #fff; }
.roll-count dt { font-size: 13px; color: #B9C5C1; }
.roll-count dd { margin: 4px 0 0; font: 400 30px/1 var(--sign); color: var(--copper-hi); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 6. a day at the automat */
.day-ctl { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: flex-end; margin-bottom: 30px; }
.levers { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.levers legend { font: 400 18px/1 var(--sign); margin-bottom: 10px; color: var(--mint); }
.levers label { position: relative; cursor: pointer; }
.levers input { position: absolute; opacity: 0; inset: 0; }
.levers label > span { display: block; padding: 10px 14px; border-radius: 8px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); font-weight: 700; min-width: 132px; }
.levers small { display: block; font-weight: 400; font-size: 12.5px; color: #A9B7B2; max-width: 170px; }
.levers input:checked + span { background: var(--steel); color: var(--ink); box-shadow: 0 0 0 2px var(--copper-hi); }
.levers input:checked + span small { color: var(--ink2); }
.levers input:focus-visible + span { outline: 3px solid var(--copper-hi); outline-offset: 3px; }
.odos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.odo { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 16px 10px 14px; border-radius: 10px; background: var(--steel); color: var(--ink); font-size: 14px; font-weight: 600; }
.wheels { display: flex; gap: 2px; padding: 5px; border-radius: 5px; background: #0B0F0E; box-shadow: inset 0 3px 6px rgba(0,0,0,.8); max-width: 100%; }
.wh { position: relative; width: 25px; height: 38px; overflow: hidden; border-radius: 2px; background: linear-gradient(180deg, #2E3634, #0E1312 30% 70%, #2E3634); }
.wh span { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; transition: transform .45s cubic-bezier(.3,.6,.3,1); }
.wh span i { height: 38px; display: grid; place-items: center; font: 400 26px/1 var(--sign); font-style: normal; color: #F2F2EE; }
.wh.sep { width: 9px; background: none; }
.wh.sep::after { content: attr(data-c); position: absolute; inset: 0; display: grid; place-items: end center; padding-bottom: 6px; font: 400 22px/1 var(--sign); color: #F2F2EE; }
.odo.copper .wh { background: linear-gradient(180deg, #8A4A1C, #5A2C0F 30% 70%, #8A4A1C); }
.day-state { margin: 22px 0 0; font-size: 16.5px; color: #D5DEDA; }
.day-state b { color: var(--copper-hi); font-weight: 600; }
.board { margin-top: 26px; padding: 20px 22px; border-radius: 10px; background: #0E1412; box-shadow: inset 0 0 0 1px #33403C; }
.board h3 { margin: 0 0 12px; font: 400 22px/1 var(--sign); }
.board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.board li { display: grid; grid-template-columns: 190px minmax(0, 1fr) 230px; gap: 14px; align-items: center; font-size: 14.5px; }
.board li .bar { height: 16px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.board li .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--copper-d), var(--copper-hi)); }
.board li b { font-weight: 700; }
.board li span:last-child { text-align: right; color: #CFD8D4; }
.board-note { margin: 12px 0 0; font-size: 13px; color: #93A39E; }

/* ---------------------------------------------------------------- 7. the agent's purse */
.purse { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 30px; align-items: start; }
.clasp { display: grid; gap: 18px; padding: 22px; border-radius: 14px; background: var(--steel); box-shadow: 0 14px 30px rgba(0,0,0,.12); }
.allow { border: 0; margin: 0; padding: 0; }
.allow legend { font-size: 15px; margin-bottom: 8px; }
.allow div { display: flex; flex-wrap: wrap; gap: 6px; }
.allow label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #fff; font-size: 14px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--nickel2); }
.allow input { accent-color: var(--jade); margin: 0; }
.errand h3 { margin: 0 0 10px; font: 400 24px/1 var(--sign); }
.list { list-style: none; margin: 0; padding: 0; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--nickel2); }
.list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 14px; border-top: 1px solid #E3E8E6; font-size: 15px; }
.list li:first-child { border-top: 0; }
.list li .k { font: 400 15px/1 var(--sign); color: var(--ink2); }
.list li small { display: block; font-size: 13px; color: var(--ink2); }
.list li .res { font-weight: 700; display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.list li .res svg { width: 16px; height: 16px; }
.list li.paid .res { color: var(--ok); }
.list li.no .res { color: var(--lamp); }
.list li.no small { color: #9A3227; }
.spent { margin: 12px 0 0; font-size: 15.5px; }

/* ---------------------------------------------------------------- 8. the bulletin in its binder */
.binder-sec { background: radial-gradient(70% 60% at 50% 0%, #26443C, #0F1A17 75%); color: var(--nickel); }
.binder { position: relative; }
.spread { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 10px; padding: 14px; background: linear-gradient(180deg, #2E3C38, #1C2724); box-shadow: 0 30px 60px rgba(0,0,0,.5), inset 0 0 0 2px #46534F; }
.spread::before { content: ""; position: absolute; left: 50%; top: 70px; bottom: 70px; width: 34px; margin-left: -17px; z-index: 2; pointer-events: none;
  background: radial-gradient(closest-side, transparent 0 62%, #C9D0CE 66% 88%, transparent 92%) center top/34px 34px repeat-y; background-size: 34px 34px; background-repeat: space; }
.leaf { display: none; position: relative; background: var(--leaf); color: #1D2321; padding: 34px 40px 36px 52px; font-size: 15.5px; line-height: 1.62; min-height: 640px; }
.leaf.on { display: block; animation: turn .35s ease-out; }
@keyframes turn { from { opacity: .3; } }
.leaf.on.left { border-radius: 4px 0 0 4px; box-shadow: inset -14px 0 18px -14px rgba(0,0,0,.35); }
.leaf.on.right { border-radius: 0 4px 4px 0; box-shadow: inset 14px 0 18px -14px rgba(0,0,0,.35); padding-left: 44px; }
.leaf::before { content: ""; position: absolute; left: 16px; top: 80px; bottom: 80px; width: 14px; background: radial-gradient(circle, #1C2724 0 5px, transparent 5.5px) center/14px 96px space; }
.leaf.right::before { display: none; }
.leaf::after { content: attr(data-p); position: absolute; bottom: 12px; right: 18px; font: 400 14px/1 var(--sign); color: #808B87; }
.bul-mast { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 18px; padding-bottom: 8px; border-bottom: 3px double #1D2321; font: 400 17px/1 var(--sign); }
.bul-mast b { font-weight: 400; color: var(--copper-d); }
.bul-mast span { font-size: 14px; }
.bul-title { margin: 0 0 10px; font: 400 30px/1.12 var(--sign); }
.bul-by { margin: 0 0 18px; color: #56615D; font-size: 14.5px; }
.leaf h4 { display: flex; gap: 10px; align-items: baseline; margin: 0 0 8px; font: 400 23px/1.15 var(--sign); }
.leaf h4 + p { margin-top: 0; }
.leaf * + h4 { margin-top: 22px; }
.leaf h4 span { color: var(--copper-d); }
.leaf p { margin: 0 0 12px; }
.leaf ul { margin: 0 0 12px; padding-left: 20px; }
.leaf li { margin-bottom: 6px; }
.leaf code { background: #E9ECE6; padding: 1px 4px; border-radius: 3px; }
.leaf .aside { font-size: 13.5px; color: #5B6662; border-left: 3px solid var(--copper); padding-left: 10px; }
.leaf .nc { font-size: 14px; padding: 10px 12px; border-radius: 6px; background: #EAEFEC; box-shadow: inset 0 0 0 1px #CBD5D1; }
.bt { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 14px; font-variant-numeric: tabular-nums; }
.bt caption { caption-side: bottom; text-align: left; font-size: 12.5px; color: #5B6662; padding-top: 6px; }
.bt th { text-align: right; font-weight: 700; border-bottom: 2px solid #1D2321; padding: 5px 6px; }
.bt td { text-align: right; padding: 5px 6px; border-bottom: 1px solid #D4DAD6; }
.bt th:first-child, .bt td:first-child { text-align: left; }
.bt .card-row td { color: #8B3A2B; }
.bt td.ok { background: #DDEFE6; }
.bfig { margin: 10px 0 14px; }
.bfig figcaption { font-size: 12.5px; color: #5B6662; margin-bottom: 6px; }
.bfig pre { margin: 0; padding: 10px 12px; border-radius: 4px; background: #E9ECE6; font: 11.5px/1.45 var(--code); white-space: pre-wrap; overflow-wrap: anywhere; }
.chainfig { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font: 11.5px/1.3 var(--code); }
.chainfig span { padding: 4px 6px; border-radius: 3px; background: #F1E1D2; }
.chainfig span.root { background: #CFE7DC; }
.chainfig em { font-style: normal; color: var(--copper-d); font-family: var(--text); font-weight: 700; }
.recalc { display: grid; gap: 8px; justify-items: start; font-size: 13.5px; color: #4D5854; }
.recalc .pull { color: #1D2321; padding: 8px 14px; font-size: 14px; }
.refs { padding-left: 22px; font-size: 14px; }
.refs li { margin-bottom: 8px; }
.colophon { font-size: 13px; color: #5B6662; }
.binder-ctl { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.pg-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pg-dots button { width: 34px; height: 34px; border-radius: 50%; border: 0; font: 400 15px/1 var(--sign); background: rgba(255,255,255,.1); color: var(--nickel); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.pg-dots button[aria-current="true"] { background: radial-gradient(circle at 36% 30%, #F2B27A, var(--copper) 55%, var(--copper-d)); color: #fff; box-shadow: none; }

/* ---------------------------------------------------------------- 9. the parts catalogue */
.order { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.slip { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 16px 18px; border-radius: 6px; text-decoration: none; background: #fff; box-shadow: inset 0 0 0 1px var(--nickel2), 0 3px 0 #C5CCC9; }
.slip:hover { box-shadow: inset 0 0 0 2px var(--copper), 0 3px 0 #C5CCC9; }
.slip svg { grid-row: span 3; width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--ink); color: #fff; }
.slip b { font: 400 19px/1.1 var(--sign); }
.slip span { font-size: 14px; color: var(--ink2); }
.slip small { font: 11px/1.4 var(--code); color: #6A7672; overflow-wrap: anywhere; }
.cat { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .85fr); gap: 28px; align-items: start; }
.cat h3 { margin: 0 0 12px; font: 400 24px/1 var(--sign); padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.cat-col > p { font-size: 15px; }
.code-s { margin: 0 0 14px; padding: 14px 16px; border-radius: 8px; background: var(--ink); color: #E3ECE8; font: 12.5px/1.55 var(--code); overflow-x: auto; }
.parts { display: grid; }
.part { border-bottom: 1px solid #C8D0CD; }
.part summary { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 9px 0; cursor: pointer; list-style: none; }
.part summary::-webkit-details-marker { display: none; }
.part summary .pno { font: 400 14px/1.4 var(--sign); color: var(--copper-d); }
.part summary b { font: 400 14px/1.4 var(--code); overflow-wrap: anywhere; }
.part[open] summary b { color: var(--copper-d); }
.part p { margin: 0 0 12px 62px; font-size: 14.5px; color: #33403C; }
.files { list-style: none; margin: 0; padding: 0; }
.files li { border-bottom: 1px solid #C8D0CD; }
.files button { width: 100%; display: grid; gap: 2px; text-align: left; padding: 9px 0; border: 0; background: none; }
.files b { font: 400 14px/1.3 var(--code); }
.files small { font: 11px/1.3 var(--code); color: #6A7672; }
.files button:hover b { color: var(--copper-d); }
.viewer { margin-top: 28px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--nickel2), 0 14px 30px rgba(0,0,0,.1); }
.viewer-bar { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 12px 16px; background: var(--steel); }
.viewer-bar b { font: 600 15px/1.2 var(--code); }
.viewer-bar span { flex: 1; font: 11.5px/1.4 var(--code); color: #4A5552; overflow-wrap: anywhere; }
.viewer-bar .pull { padding: 6px 14px; font-size: 14px; }
.viewer-body { max-height: 620px; overflow: auto; }
.lines { margin: 0; padding: 12px 0; font: 12.5px/1.55 var(--code); counter-reset: ln; }
.lines span { display: block; padding: 0 16px 0 0; white-space: pre; }
.lines span::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 46px; margin-right: 14px; padding-right: 8px; text-align: right; color: #9AA5A1; border-right: 1px solid #E1E6E4; }
.md { padding: 18px 26px 22px; font-size: 15.5px; max-width: 900px; }
.md h1, .md h2, .md h3 { font: 400 26px/1.15 var(--sign); margin: 22px 0 8px; }
.md h1 { font-size: 34px; margin-top: 4px; }
.md pre { padding: 12px 14px; border-radius: 6px; background: var(--ink); color: #E3ECE8; font: 12.5px/1.5 var(--code); overflow-x: auto; }
.md table { border-collapse: collapse; margin: 10px 0; font-size: 14px; display: block; overflow-x: auto; }
.md th, .md td { padding: 6px 10px; border-bottom: 1px solid #D4DAD6; text-align: left; vertical-align: top; }
.md th { border-bottom: 2px solid var(--ink); }
.md code { background: #EDF0EE; padding: 1px 4px; border-radius: 3px; }

/* ---------------------------------------------------------------- the coin return (footer) */
.coinret { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: 40px var(--gut) 72px; background: var(--steel); color: var(--ink); border-top: 6px solid #0C1210; }
.cr-cup { width: 190px; height: 130px; border-radius: 16px 16px 60px 60px; display: grid; place-items: center; background: radial-gradient(90% 80% at 50% 30%, #1F2826, #070A09); box-shadow: inset 0 6px 14px rgba(0,0,0,.8), 0 1px 0 #fff; }
.cr-lever { display: flex; align-items: center; gap: 12px; border: 0; background: none; color: #E7ECEA; text-align: left; font: 400 19px/1.1 var(--sign); }
.cr-lever small { display: block; font: 500 12px/1.3 var(--text); color: #9FB0AA; }
.lever-k { width: 22px; height: 52px; border-radius: 11px; background: linear-gradient(90deg, #8C9795, #F2F4F3 45%, #9AA4A2); box-shadow: 0 3px 6px rgba(0,0,0,.6); transition: transform .2s; }
.cr-lever:hover .lever-k { transform: translateY(4px); }
.cr-plaque { padding: 16px 22px; border-radius: 8px; background: linear-gradient(180deg, #EBC995, #B98A48); color: #33220B; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 3px 0 #7E5A28; font-size: 14.5px; }
.cr-plaque p { margin: 0 0 6px; }
.cr-name { font: 400 26px/1.1 var(--sign); }
.cr-links { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0 0 !important; font-weight: 700; }
.cr-ed { display: grid; justify-items: end; text-align: right; gap: 2px; }
.cr-ed small { font-size: 12.5px; color: var(--ink2); }
.cr-ed b { font: 400 42px/1 var(--sign); }

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1180px) {
  .wall-grid { grid-template-columns: minmax(0, 1fr) 250px; }
  .intro { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 30px; }
  .intro .lead { grid-column: 1 / -1; }
  .menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cat-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .booth { grid-template-columns: minmax(0, 1fr); }
  .spread { grid-template-columns: minmax(0, 1fr); }
  .spread::before { display: none; }
  .leaf.on.left, .leaf.on.right { border-radius: 4px; box-shadow: none; padding-left: 52px; }
  .leaf.right::before { display: block; }
  .purse { grid-template-columns: minmax(0, 1fr); }
  .odos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counter-foot { grid-template-columns: minmax(0, 1fr); }
  .board li { grid-template-columns: 150px minmax(0, 1fr); }
  .board li span:last-child { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wall { padding-top: 22px; }
  .sign { padding: 26px 16px 22px; margin-bottom: 28px; }
  .wall-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .intro { display: block; }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; }
  .frame { aspect-ratio: 4 / 3.2; }
  .tape { height: 190px; }
  .sec { padding: 64px var(--gut) 70px; }
  .head { gap: 14px; align-items: flex-start; }
  .head .no { width: 54px; height: 54px; font-size: 26px; }
  .head p { font-size: 16px; }
  .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booths { gap: 8px; }
  .wlabel { font-size: 20px; }
  .wsub { font-size: 12px; }
  .tray { padding: 14px 8px; }
  .tk { max-width: 94%; padding: 10px 12px 12px; }
  .meter { grid-template-columns: 92px minmax(0, 1fr); }
  .meter > span:last-child { grid-column: 1 / -1; }
  .rule-ctl { grid-template-columns: minmax(0, 1fr); }
  .glass { height: 400px; }
  .booth-window { border-radius: 110px 110px 10px 10px; padding: 12px; }
  .grille { height: 64px; }
  .roll-row { grid-template-columns: minmax(0, 1fr); }
  .wrapper { border-radius: 26px; padding: 14px 18px; justify-content: center; }
  .pn { width: 52px; height: 52px; }
  .roll-count { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .odos { gap: 10px; }
  .wh { width: 19px; height: 30px; }
  .wh span i { height: 30px; font-size: 21px; }
  .wh.sep { width: 6px; }
  .wh.sep::after { font-size: 17px; padding-bottom: 4px; }
  .board li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .leaf { padding: 26px 18px 34px 38px; min-height: 0; }
  .leaf.on.left, .leaf.on.right { padding-left: 38px; }
  .leaf::before { left: 10px; width: 12px; }
  .bul-title { font-size: 24px; }
  .bt { font-size: 12.5px; }
  .bt th, .bt td { padding: 4px 3px; }
  .binder-ctl { display: grid; grid-template-columns: 1fr 1fr; }
  .binder-ctl .pg-dots { grid-column: 1 / -1; grid-row: 1; }
  .binder-ctl .pull { justify-content: center; padding: 9px 12px; font-size: 14px; }
  .bul-mast { flex-wrap: wrap; gap: 4px 10px; }
  .coin-ca { grid-template-columns: 120px minmax(0, 1fr); }
  .big-coin { width: 120px; height: 120px; }
  .order { grid-template-columns: minmax(0, 1fr); }
  .cat { grid-template-columns: minmax(0, 1fr); }
  .coinret { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding-bottom: 120px; }
  .cr-links { justify-content: center; }
  .cr-ed { justify-items: center; text-align: center; }
  .selector { right: 12px; bottom: 12px; }
  .dial-btn { width: 62px; height: 62px; }
  .dial { transform: scale(.94); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
