/* SpinCycle: a night-time retro laundromat, open 24/7. One stylesheet, no build step, no inline styles
   (the CSP forbids them: per-element values arrive as custom properties set through the CSSOM). */

@font-face { font-family: "Titan One"; src: url("/fonts/titan-one.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "VT323"; src: url("/fonts/vt323.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DSEG14"; src: url("/fonts/dseg14.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #142033;
  --ink-2: #44536b;
  --night: #121a3d;
  --night-2: #1d2758;
  --wall: #f6f0e2;
  --tile: #e8dfc9;
  --mint: #8fe3cf;
  --mint-2: #d3f5eb;
  --teal: #23a493;
  --teal-d: #0f6e60;
  --chrome: #e2e9ed;
  --chrome-2: #b4c1c9;
  --chrome-d: #7f909b;
  --pink: #ff9ecb;
  --pink-d: #c9327a;
  --baby: #a9dbff;
  --baby-d: #2f7fca;
  --neon: #ff3b4f;
  --butter: #ffd66b;
  --butter-d: #d99b0f;
  --paper: #fffdf7;
  --kraft: #d6b277;
  --up: #0f7a55;
  --down: #c8283d;
  --line: 3px;
  --font: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Titan One", "Bricolage", ui-rounded, system-ui, sans-serif;
  --lcd: "DSEG14", ui-monospace, monospace;
  --tape: "VT323", ui-monospace, "Courier New", monospace;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--wall);
  background-image:
    radial-gradient(ellipse 80% 420px at 50% 0, rgba(255, 247, 214, 0.95), rgba(255, 247, 214, 0) 72%),
    linear-gradient(var(--tile) 2px, transparent 2px),
    linear-gradient(90deg, var(--tile) 2px, transparent 2px);
  background-size: 100% 100%, 46px 46px, 46px 46px;
  background-repeat: no-repeat, repeat, repeat;
}
main { flex: 1 0 auto; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: 0.01em; }
a { color: var(--teal-d); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pink-d); }
:focus-visible { outline: 3px solid var(--baby-d); outline-offset: 3px; border-radius: 6px; }
button, input, textarea, select { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 300; background: var(--butter); color: var(--ink); padding: 8px 12px; border: var(--line) solid var(--ink); border-radius: 10px; font-weight: 700; }
.skip:focus { top: 8px; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--mono); }
.break { word-break: break-all; }
.small { font-size: 14px; }
.row { display: flex; flex-wrap: wrap; align-items: center; }
.gap { gap: 8px; }
.up { color: var(--up); }
.down { color: var(--down); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--display); font-size: 17px; line-height: 1.1; letter-spacing: 0.02em;
  padding: 12px 20px; color: var(--ink); background: var(--paper);
  border: var(--line) solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink);
  cursor: pointer; text-decoration: none; transition: transform 0.08s, box-shadow 0.08s, background-color 0.15s;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.6; transform: none; box-shadow: 0 4px 0 var(--ink); }
.btn-coin { background: var(--butter); }
.btn-mint { background: var(--mint); }
.btn-pink { background: var(--pink); }
.btn-ghost { background: var(--paper); }
.btn-wide { width: 100%; }
.btn-big { font-size: 20px; padding: 15px 22px; }
.coin {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #fff6cf 0 18%, #ffd66b 40%, #d99b0f 100%);
  border: 2.5px solid var(--ink); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.btn-mini {
  display: inline-flex; align-items: center; gap: 4px;
  font: 600 13px/1 var(--font); padding: 6px 10px; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 999px; cursor: pointer;
}
.btn-mini:hover { background: var(--mint-2); }
.btn-mini[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.link-btn { background: none; border: none; padding: 0; color: var(--teal-d); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; font: inherit; }

/* ---------- header: the shop front at night ---------- */
.hdr { position: relative; z-index: 30; color: #fff; background: linear-gradient(180deg, #0c1230, var(--night) 60%, var(--night-2)); border-bottom: var(--line) solid var(--ink); }
.hdr-in { max-width: 1320px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand:hover { color: inherit; }
.brand-mark { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 3px 0 #05081a); }
.neon {
  font-family: var(--display); font-size: 30px; line-height: 1; white-space: nowrap; letter-spacing: 0.01em;
  color: #ffe8ec;
  text-shadow: 0 0 1px #fff, 0 0 6px var(--neon), 0 0 16px var(--neon), 0 0 34px rgba(255, 59, 79, 0.55);
}
.neon b { font-weight: 400; color: #e6faff; text-shadow: 0 0 1px #fff, 0 0 6px #3fc8ff, 0 0 16px #3fc8ff, 0 0 32px rgba(63, 200, 255, 0.5); }
.neon-s { font-size: 26px; }
.open-sign {
  margin: 0; display: flex; align-items: center; gap: 8px; flex: none;
  font-family: var(--display); font-size: 15px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 10px; border: 2.5px solid #ff6b7a;
  box-shadow: 0 0 8px rgba(255, 59, 79, 0.75), inset 0 0 8px rgba(255, 59, 79, 0.45);
}
.o-open { color: #ffe1e5; text-shadow: 0 0 4px var(--neon), 0 0 12px var(--neon); animation: flicker 7s linear infinite; }
.o-hours { color: #fff3c9; text-shadow: 0 0 4px var(--butter), 0 0 12px var(--butter-d); }
@keyframes flicker {
  0%, 18%, 22%, 24.5%, 61%, 64%, 100% { opacity: 1; }
  19%, 23.5%, 62.5% { opacity: 0.22; text-shadow: none; }
}
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { font-family: var(--display); font-size: 15px; letter-spacing: 0.02em; color: #e3eaff; text-decoration: none; padding: 9px 14px; border-radius: 999px; border: 2.5px solid transparent; }
.nav a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--mint); border-color: var(--ink); box-shadow: 0 3px 0 #05081a; }
.cluster { display: inline-block; font: 700 11px/1 var(--mono); letter-spacing: 0.12em; color: var(--ink); background: var(--butter); padding: 5px 7px; border: 2px solid var(--ink); border-radius: 6px; margin-left: 8px; vertical-align: middle; }
.cluster[hidden] { display: none; }
.hdr .cluster { margin-left: 0; flex: none; }
.wallet-slot { flex: none; }
.btn-wallet {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 600 15px/1 var(--font); color: var(--ink); background: var(--paper);
  border: var(--line) solid var(--ink); border-radius: 999px; padding: 7px 14px 7px 8px;
  box-shadow: 0 3px 0 #05081a; cursor: pointer;
}
.btn-wallet:hover { background: #fff; }
.wb-coin { width: 24px; height: 24px; border-radius: 50%; flex: none; background: radial-gradient(circle at 36% 32%, #fff6cf 0 18%, #ffd66b 42%, #d99b0f 100%); border: 2.5px solid var(--ink); }
.btn-wallet.is-on .wb-coin { background: radial-gradient(circle at 36% 32%, #effffa 0 18%, var(--mint) 45%, var(--teal) 100%); }
.wb-addr { font-family: var(--mono); font-size: 14px; }
.wb-bal { font: 600 12px/1 var(--mono); color: var(--ink-2); border-left: 2px solid var(--chrome-2); padding-left: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; flex: none; padding: 0; border: 2.5px solid rgba(255, 255, 255, 0.55); border-radius: 12px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: #fff; }
.awning { position: absolute; left: 0; right: 0; top: 100%; height: 30px; pointer-events: none; filter: drop-shadow(0 4px 0 rgba(20, 32, 51, 0.85)); }
.awning::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--pink) 0 36px, #fff 36px 72px);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% 12px no-repeat, radial-gradient(circle 18px at 18px 12px, #000 97%, transparent 100%) 0 0 / 36px 30px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% 12px no-repeat, radial-gradient(circle 18px at 18px 12px, #000 97%, transparent 100%) 0 0 / 36px 30px repeat-x;
}

/* ---------- notes ---------- */
.note { margin: 0; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 14px; padding: 12px 16px; box-shadow: 0 4px 0 var(--ink); }
.note-house { background: #fff1c2; }
.note-ok { background: var(--mint-2); }
.note-warn { background: #ffe1ee; }
.warn { margin: 10px 0 0; padding: 8px 12px; border: 2px solid var(--down); border-radius: 10px; background: #ffe6ea; color: #8d1325; font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: center; padding-top: 70px; padding-bottom: 20px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0; font: 700 13px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-d); }
.hero h1 { font-size: clamp(42px, 6.4vw, 82px); line-height: 0.98; margin: 14px 0 18px; }
.hero h1 span, .page-h h1 span {
  display: inline-block; color: var(--pink);
  -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink);
}
.lede { font-size: 19px; line-height: 1.5; max-width: 34em; color: var(--ink-2); margin: 0; }
.lede b { color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.note-house { margin-top: 22px; max-width: 40em; }
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bubbles i {
  position: absolute; bottom: -50px; left: 10%; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0 14%, rgba(169, 219, 255, 0.28) 38%, rgba(255, 158, 203, 0.24) 72%, rgba(255, 255, 255, 0.7) 100%);
  border: 1.5px solid rgba(47, 127, 202, 0.35);
  animation: rise 11s linear infinite;
}
.bubbles i:nth-child(2) { left: 22%; width: 14px; height: 14px; animation-duration: 8s; animation-delay: -3s; }
.bubbles i:nth-child(3) { left: 38%; width: 34px; height: 34px; animation-duration: 14s; animation-delay: -7s; }
.bubbles i:nth-child(4) { left: 49%; width: 18px; height: 18px; animation-duration: 9s; animation-delay: -1s; }
.bubbles i:nth-child(5) { left: 58%; width: 22px; height: 22px; animation-duration: 12s; animation-delay: -9s; }
.bubbles i:nth-child(6) { left: 66%; width: 12px; height: 12px; animation-duration: 7s; animation-delay: -4s; }
.bubbles i:nth-child(7) { left: 74%; width: 40px; height: 40px; animation-duration: 16s; animation-delay: -12s; }
.bubbles i:nth-child(8) { left: 84%; width: 16px; height: 16px; animation-duration: 10s; animation-delay: -6s; }
.bubbles i:nth-child(9) { left: 92%; width: 24px; height: 24px; animation-duration: 13s; animation-delay: -2s; }
.bubbles i:nth-child(10) { left: 3%; width: 20px; height: 20px; animation-duration: 15s; animation-delay: -10s; }
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(16px, -280px); }
  85% { opacity: 0.9; }
  100% { transform: translate(-8px, -600px); opacity: 0; }
}

/* ---------- the change machine (stats) ---------- */
.changer { position: relative; z-index: 1; background: linear-gradient(180deg, #f5f8fa, #cdd8de); border: var(--line) solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink), inset 0 2px 0 #fff; padding-bottom: 16px; }
.changer-top { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px 9px; color: #fff; background: var(--neon); border-bottom: var(--line) solid var(--ink); border-radius: 19px 19px 0 0; }
.changer-top h2 { margin: 0; font-size: 28px; text-shadow: 2px 2px 0 var(--ink); }
.changer-sub { font-family: var(--display); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; }
.changer-rows { margin: 14px 16px 0; display: grid; gap: 8px; }
.changer-rows div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.changer-rows dt { font: 700 12px/1.1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.seg {
  margin: 0; min-width: 140px; text-align: right;
  font: 20px/1 var(--lcd); letter-spacing: 0.04em; color: #86f0cf; text-shadow: 0 0 8px rgba(134, 240, 207, 0.7);
  background: #0e1a17; border: var(--line) solid var(--ink); border-radius: 8px; padding: 8px 10px 7px;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.5);
}
.changer-foot { margin: 12px 16px 0; display: flex; justify-content: space-between; gap: 8px; font: 12px/1.3 var(--mono); color: var(--ink-2); }
.live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); border: 2px solid var(--ink); box-shadow: 0 0 8px var(--teal); animation: pulse 1.6s ease-in-out infinite; }
.live.is-off .live-dot { background: var(--neon); box-shadow: 0 0 8px var(--neon); animation: none; }
@keyframes pulse { 50% { opacity: 0.35; } }
.changer-tray { display: block; width: 58%; height: 22px; margin: 14px auto 0; background: #a6b4bc; border: var(--line) solid var(--ink); border-top: none; border-radius: 0 0 14px 14px; box-shadow: inset 0 7px 0 rgba(0, 0, 0, 0.28); }

/* ---------- the shelf (clean loads) ---------- */
.shelf-wrap { margin-top: 30px; }
.shelf-sign { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.shelf-sign h2 { margin: 0; display: inline-block; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-d); background: var(--paper); border: var(--line) solid var(--ink); border-radius: 10px; padding: 7px 14px 6px; box-shadow: 0 4px 0 var(--ink); transform: rotate(-1.5deg); }
.shelf-sign p { margin: 0; color: var(--ink-2); }
.shelf { position: relative; margin-top: 8px; }
.shelf-rail { display: flex; align-items: flex-end; gap: 16px; overflow-x: auto; overflow-y: hidden; padding: 22px 10px 0; min-height: 118px; scrollbar-width: thin; scrollbar-color: var(--chrome-d) transparent; }
.shelf-board { position: relative; height: 18px; background: linear-gradient(180deg, #f8dc9c, #d8a94f); border: var(--line) solid var(--ink); border-radius: 6px; box-shadow: 0 6px 0 rgba(20, 32, 51, 0.22); }
.shelf-board::before, .shelf-board::after { content: ""; position: absolute; top: 100%; width: 16px; height: 24px; background: var(--chrome-2); border: var(--line) solid var(--ink); border-top: none; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.shelf-board::before { left: 7%; }
.shelf-board::after { right: 7%; transform: scaleX(-1); }
.shelf-empty { margin: 0 0 14px; color: var(--ink-2); font-style: italic; }
.folded { position: relative; flex: none; display: block; width: 104px; padding-bottom: 2px; color: var(--ink); text-decoration: none; transition: transform 0.15s; }
.folded:hover { color: var(--ink); transform: translateY(-5px) rotate(-2deg); }
.folded-tag { position: absolute; top: -12px; right: -6px; max-width: 86px; font: 700 12px/1 var(--mono); background: var(--paper); border: 2px solid var(--ink); border-radius: 4px; padding: 4px 6px; transform: rotate(5deg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 0 var(--ink); }

/* a folded shirt: SVG body + the token picture printed on the chest */
.shirt { position: relative; display: block; width: 100px; aspect-ratio: 100 / 80; isolation: isolate; }
.shirt::before { content: ""; position: absolute; inset: 12% 3% -7% 3%; z-index: -1; background: var(--fb); border: var(--line) solid var(--ink); border-radius: 9px; }
.shirt-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.shirt-body { fill: var(--fa); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.shirt-fold { fill: none; stroke: rgba(20, 32, 51, 0.25); stroke-width: 2; }
.shirt-collar { fill: var(--fb); stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; }
.shirt-placket { fill: none; stroke: rgba(20, 32, 51, 0.3); stroke-width: 2; stroke-dasharray: 2 7; }
.shirt-pic { position: absolute; left: 50%; top: 59%; width: 36%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; border: 2.5px solid var(--ink); background: #fff; }
.flyer { position: fixed; left: 0; top: 0; z-index: 85; width: 96px; pointer-events: none; }

/* ---------- loads: picture or fabric swatch ---------- */
.art { display: block; width: 100%; height: 100%; }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.swatch { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: var(--fa); container-type: inline-size; }
.swatch-t { position: relative; font-family: var(--display); font-size: 14px; font-size: 21cqi; line-height: 1.15; color: var(--ink); background: rgba(255, 255, 255, 0.85); border-radius: 0.3em; padding: 0.05em 0.3em; max-width: 92%; overflow: hidden; white-space: nowrap; }
.pat-0 { background-image: repeating-linear-gradient(45deg, var(--fb) 0 9%, transparent 9% 18%); }
.pat-1 { background-image: radial-gradient(var(--fb) 28%, transparent 31%); background-size: 22% 22%; }
.pat-2 { background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.55) 50%, transparent 50%), linear-gradient(rgba(255, 255, 255, 0.55) 50%, transparent 50%); background-size: 24% 24%; }
.pat-3 { background-image: repeating-linear-gradient(0deg, var(--fb) 0 7%, transparent 7% 16%), repeating-linear-gradient(90deg, rgba(20, 32, 51, 0.13) 0 4%, transparent 4% 16%); }
.pat-4 { background-image: repeating-conic-gradient(var(--fb) 0 25%, transparent 0 50%); background-size: 26% 26%; }
.pat-5 { background-image: radial-gradient(circle at 50% 100%, transparent 32%, var(--fb) 33% 46%, transparent 47%); background-size: 26% 26%; }
.tbadge { display: inline-block; flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 2.5px solid var(--ink); background: #fff; vertical-align: middle; }

/* ---------- the porthole ---------- */
.port {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 9%; isolation: isolate;
  border-radius: 50%; border: var(--line) solid var(--ink);
  background: conic-gradient(from 200deg, #ffffff, #a7b6bf 18%, #f4f7f8 35%, #8b9ca6 55%, #eef3f5 72%, #9fb0b9 88%, #ffffff);
  box-shadow: 0 4px 0 rgba(20, 32, 51, 0.35), inset 0 0 0 3px rgba(255, 255, 255, 0.6);
}
.hinge { position: absolute; left: -8%; top: 36%; width: 12%; height: 28%; z-index: -1; background: linear-gradient(90deg, #8b9ca6, #e2e9ed); border: var(--line) solid var(--ink); border-radius: 7px; }
.glass {
  --lvl: calc(0.05 + var(--fill, 0) * 0.9);
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 50%;
  border: var(--line) solid var(--ink); transform: translateZ(0);
  background: radial-gradient(circle at 50% 42%, #2d5d74 0, #173449 62%, #0c1d2b 100%);
}
.port[data-ph="clean"] .glass { --lvl: 0; background: radial-gradient(circle at 50% 42%, #f2fbff, #c6e4f2 70%, #9fc8dc); }
.load { position: absolute; inset: 12%; overflow: hidden; border-radius: 50%; background: #fff; border: 3px solid rgba(255, 255, 255, 0.6); box-shadow: 0 0 0 3px rgba(12, 29, 43, 0.55); will-change: transform; }
.load::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 9%, rgba(255, 255, 255, 0.32) 13%, transparent 19% 44%, rgba(12, 29, 43, 0.28) 51%, transparent 58% 78%, rgba(255, 255, 255, 0.24) 85%, transparent 91%);
}
.water {
  position: absolute; left: -6%; right: -6%; bottom: 0; height: 100%; display: block;
  transform: translateY(calc((1 - var(--lvl)) * 100%));
  transition: transform 1.4s cubic-bezier(0.3, 0.7, 0.3, 1);
  background: linear-gradient(180deg, rgba(169, 219, 255, 0.32), rgba(47, 127, 202, 0.48));
}
.foam {
  position: absolute; left: -24px; right: 0; top: -9px; height: 14px; display: block;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 44%, transparent 50%) 0 2px / 12px 12px repeat-x,
    radial-gradient(circle, rgba(255, 214, 234, 0.9) 0 40%, transparent 46%) 6px 5px / 12px 10px repeat-x;
  opacity: 0.55;
}
.port.is-spinning .foam { opacity: 1; animation: slosh 1.1s linear infinite; }
@keyframes slosh { to { transform: translateX(12px); } }
.suds {
  position: absolute; inset: 0; display: block; opacity: 0; pointer-events: none;
  background:
    radial-gradient(circle at 28% 74%, rgba(255, 255, 255, 0.75) 0 3%, transparent 3.6%),
    radial-gradient(circle at 66% 82%, rgba(255, 255, 255, 0.65) 0 2.4%, transparent 3%),
    radial-gradient(circle at 47% 64%, rgba(255, 214, 234, 0.8) 0 2%, transparent 2.6%),
    radial-gradient(circle at 74% 66%, rgba(255, 255, 255, 0.6) 0 1.6%, transparent 2.2%);
}
.port.is-spinning .suds { opacity: 1; animation: suds 2.8s linear infinite; }
@keyframes suds { from { transform: translateY(18%); } to { transform: translateY(-34%); } }
.shine { position: absolute; inset: 0; display: block; border-radius: 50%; pointer-events: none; background: radial-gradient(ellipse 42% 26% at 32% 22%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 72%), linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%); }
.port.is-off .foam, .port.is-off .suds { animation-play-state: paused; }
.port.is-lost { filter: grayscale(0.85); }
.port.is-lost .glass { background: radial-gradient(circle at 50% 42%, #4a5763, #2a333c 70%); }

/* ---------- the floor ---------- */
.floor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; margin-top: 38px; }
.floor-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 16px; }
.floor-head h2 { margin: 0; font-size: 32px; }
.floor-head h2 small { font: 700 14px/1 var(--mono); color: var(--ink-2); letter-spacing: 0.04em; margin-left: 4px; }
.program { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: linear-gradient(#f2f6f8, #d3dde2); border: var(--line) solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); }
.program button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: 400 14px/1 var(--display); letter-spacing: 0.02em; padding: 9px 12px; color: var(--ink); background: transparent; border: 2px solid transparent; border-radius: 9px; cursor: pointer; }
.program button::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; background: #9aa7b0; border: 1.5px solid var(--ink); }
.program button:hover { background: rgba(255, 255, 255, 0.6); }
.program button[aria-pressed="true"] { background: var(--paper); border-color: var(--ink); }
.program button[aria-pressed="true"]::before { background: var(--neon); box-shadow: 0 0 6px var(--neon); }
.search { margin-left: auto; }
.search input, .field input, .field textarea, .amount input {
  width: 100%; font: 500 16px/1.3 var(--font); color: var(--ink); background: #fff;
  border: var(--line) solid var(--ink); border-radius: 12px; padding: 10px 14px;
  box-shadow: inset 0 3px 0 rgba(20, 32, 51, 0.08);
}
.search input { width: 220px; }
.search input::placeholder, .field input::placeholder, .field textarea::placeholder, .amount input::placeholder { color: #8a95a6; }
.floor {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 30px 22px;
  padding: 26px 20px 30px; border: var(--line) solid var(--ink); border-radius: 24px;
  background: repeating-conic-gradient(#d7efe7 0 25%, #f8f4ea 0 50%) 0 0 / 60px 60px;
  box-shadow: inset 0 12px 0 rgba(20, 32, 51, 0.05);
}
.floor:empty { display: none; }
.floor-empty { margin: 0; padding: 30px 24px; text-align: center; font-size: 18px; background: var(--paper); border: var(--line) dashed var(--ink); border-radius: 20px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; font: 700 14px/1 var(--mono); }
.pager[hidden] { display: none; }

/* a washing machine */
.mc { position: relative; display: block; color: var(--ink); text-decoration: none; }
.mc:hover { color: var(--ink); }
.mc:focus-visible { outline: none; }
.mc:focus-visible .mc-body { outline: 4px solid var(--baby-d); outline-offset: 4px; }
.mc-body {
  position: relative; display: block; padding-bottom: 10px; transform-origin: 50% 100%;
  background: linear-gradient(180deg, var(--mint) 0, #77d4bd 100%);
  border: var(--line) solid var(--ink); border-radius: 20px 20px 12px 12px;
  box-shadow: 0 5px 0 var(--ink), inset 0 -8px 0 rgba(20, 32, 51, 0.08), inset 7px 0 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.15s;
}
.mc:hover .mc-body { transform: translateY(-4px); }
.mc-panel { display: flex; align-items: center; gap: 8px; padding: 9px 10px; background: linear-gradient(#f7fafb, #d2dce1); border-bottom: var(--line) solid var(--ink); border-radius: 17px 17px 0 0; }
.mc-no { flex: none; font: 700 11px/1 var(--mono); letter-spacing: 0.04em; color: var(--ink-2); }
.lcd {
  --lc: #86f0cf; --lc-g: rgba(134, 240, 207, 0.6);
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px;
  font: 10.5px/1 var(--lcd); letter-spacing: 0.02em; white-space: nowrap; overflow: hidden;
  color: var(--lc); text-shadow: 0 0 6px var(--lc-g);
  background: #0e1a17; border: 2.5px solid var(--ink); border-radius: 7px; padding: 5px 6px 4px;
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.5);
}
.lcd-2 { opacity: 0.82; }
[data-ph="soak"] .lcd, .lcd[data-ph="soak"] { --lc: #9ad8ff; --lc-g: rgba(154, 216, 255, 0.6); }
[data-ph="wash"] .lcd, .lcd[data-ph="wash"] { --lc: #86f0cf; --lc-g: rgba(134, 240, 207, 0.6); }
[data-ph="rinse"] .lcd, .lcd[data-ph="rinse"] { --lc: #ff9fd0; --lc-g: rgba(255, 159, 208, 0.6); }
[data-ph="spin"] .lcd, .lcd[data-ph="spin"] { --lc: #ffd66b; --lc-g: rgba(255, 214, 107, 0.65); }
[data-ph="clean"] .lcd, .lcd[data-ph="clean"] { --lc: #ffffff; --lc-g: rgba(255, 255, 255, 0.7); }
.is-lost .lcd { --lc: #8d97a1; --lc-g: transparent; }
.knob { position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #c5d0d6 60%, #8b9ca6); border: 2.5px solid var(--ink); transition: transform 0.6s; }
.knob::after { content: ""; position: absolute; left: 50%; top: 1px; width: 3px; height: 7px; border-radius: 2px; background: var(--ink); transform: translateX(-50%); }
[data-ph="wash"] .knob { transform: rotate(90deg); }
[data-ph="rinse"] .knob { transform: rotate(180deg); }
[data-ph="spin"] .knob { transform: rotate(270deg); }
[data-ph="clean"] .knob { transform: rotate(360deg); }
.mc-door { display: block; padding: 14px 15% 6px; }
.mc-plate { display: block; margin: 6px 10px 0; padding: 6px 8px 5px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 9px; }
.mc-name { display: block; font: 700 15px/1.25 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-line { display: flex; justify-content: space-between; gap: 6px; font: 600 11.5px/1.35 var(--mono); color: var(--ink-2); }
.mc-sym { min-width: 0; color: var(--teal-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-cap { flex: none; white-space: nowrap; }
.mc-shadow { display: block; height: 10px; margin: 7px 12% 0; border-radius: 50%; background: rgba(20, 32, 51, 0.22); }
.mc-ribbon { display: none; }
.mc.is-house .mc-ribbon { display: block; position: absolute; top: -13px; right: -9px; font: 400 12px/1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 9px 5px; background: var(--neon); color: #fff; border: 2.5px solid var(--ink); border-radius: 7px; transform: rotate(4deg); box-shadow: 0 3px 0 var(--ink); }
.mc.is-house .mc-body { background: linear-gradient(180deg, #ffe9a8, var(--butter)); }
.mc.is-house .mc-plate { background: #fffaf0; }
.mc.is-lost .mc-body { background: linear-gradient(180deg, #d9dfe3, #b8c2c8); }
.mc.is-lost { opacity: 0.82; }
.mc.shake-1 .mc-body { animation: rattle 0.22s linear infinite; }
.mc.shake-2 .mc-body { animation: rattle2 0.15s linear infinite; }
.mc.shake-2 { animation: walk 2.4s ease-in-out infinite alternate; }
.mc.is-off, .mc.is-off .mc-body { animation-play-state: paused; }
@keyframes rattle { 0%, 100% { transform: none; } 25% { transform: translate(-1px, 0) rotate(-0.5deg); } 50% { transform: translate(1px, -1px) rotate(0.4deg); } 75% { transform: translate(0, 1px) rotate(-0.3deg); } }
@keyframes rattle2 { 0%, 100% { transform: none; } 20% { transform: translate(-2px, -1px) rotate(-1deg); } 40% { transform: translate(2px, 0) rotate(0.9deg); } 60% { transform: translate(-1px, -2px) rotate(-0.6deg); } 80% { transform: translate(1px, 1px) rotate(0.7deg); } }
@keyframes walk { from { transform: translateX(-4px); } to { transform: translateX(4px); } }

/* ---------- side: receipt printer + lost socks ---------- */
.side { display: grid; gap: 30px; position: sticky; top: 16px; }
.printer { position: relative; padding: 12px 14px 0; color: #fff; background: linear-gradient(180deg, #414c69, #232b44); border: var(--line) solid var(--ink); border-radius: 18px 18px 12px 12px; box-shadow: 0 5px 0 var(--ink); }
.printer-head { display: flex; align-items: center; justify-content: space-between; }
.printer-head h2 { margin: 0; font-size: 20px; letter-spacing: 0.04em; color: var(--butter); text-shadow: 0 2px 0 #000; }
.printer-led { width: 12px; height: 12px; border-radius: 50%; background: #6ff59a; border: 2px solid var(--ink); box-shadow: 0 0 10px #6ff59a; }
.printer-slot { height: 10px; margin: 10px -2px 0; background: #070a14; border: 2px solid #000; border-radius: 6px; }
.tape {
  position: relative; z-index: 1; margin: -5px 12px -16px; max-height: 480px; overflow: hidden;
  padding: 12px 12px 28px; color: #2b2b2b; background: var(--paper);
  box-shadow: inset 0 9px 8px -7px rgba(0, 0, 0, 0.45);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, transparent 0) bottom / 14px 10px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, transparent 0) bottom / 14px 10px repeat-x;
}
.tape::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(rgba(255, 253, 247, 0), var(--paper) 80%); pointer-events: none; }
.tape-list { list-style: none; margin: 0; padding: 0; font: 19px/1.12 var(--tape); }
.tape-list li { display: flex; gap: 10px; padding: 3px 0 2px; border-bottom: 1px dashed rgba(0, 0, 0, 0.14); }
.tape-list time { flex: none; color: #7c7c7c; }
.tape-list .t { min-width: 0; overflow-wrap: anywhere; }
.tape-list a { color: inherit; text-decoration-thickness: 1px; }
.b-in .t { color: #0d6e4c; }
.b-out .t { color: #b3192f; }
.b-phase .t { color: #2f55c4; }
.b-load .t { color: #333; }
.b-ding { background: #fff1b8; }
.b-ding .t { color: #a1127f; }
.tape-list li.is-new { animation: feed 0.6s ease-out; }
@keyframes feed { from { transform: translateY(-100%); opacity: 0; background: #fff3c2; } to { transform: none; opacity: 1; } }
.tape-empty { justify-content: center; color: #777; text-align: center; }

.lostbox { position: relative; padding: 24px 16px 16px; background: linear-gradient(180deg, #e6c890, var(--kraft)); border: var(--line) solid var(--ink); border-radius: 6px 6px 14px 14px; box-shadow: 0 5px 0 var(--ink); }
.lostbox::before, .lostbox::after { content: ""; position: absolute; top: -16px; width: 46%; height: 22px; background: #ecd29e; border: var(--line) solid var(--ink); border-radius: 4px; }
.lostbox::before { left: 3%; transform: skewX(-18deg) rotate(-5deg); }
.lostbox::after { right: 3%; transform: skewX(18deg) rotate(5deg); }
.lostbox h2 { margin: 0; font-size: 24px; letter-spacing: 0.08em; text-transform: uppercase; color: #5a3910; }
.lostbox h2 span { font: 700 13px/1 var(--mono); vertical-align: middle; background: #5a3910; color: #f3dfb8; padding: 3px 7px; border-radius: 999px; letter-spacing: 0; }
.lostbox h2 span:empty { display: none; }
.lostbox-note { margin: 6px 0 12px; font-size: 14px; color: #4f340e; }
.lostbox-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }
.lost-empty { grid-column: 1 / -1; margin: 0; font-style: italic; color: #4f340e; }
.lost-sock { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; color: #4f340e; text-decoration: none; font: 700 11px/1.2 var(--mono); transform: rotate(-6deg); transition: transform 0.15s; }
.lost-sock:nth-child(2n) { transform: rotate(7deg); }
.lost-sock:nth-child(3n) { transform: rotate(-12deg) translateY(3px); }
.lost-sock:hover { color: var(--ink); transform: rotate(0) translateY(-4px); }
.lost-sock > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sock { position: relative; display: block; width: 46px; aspect-ratio: 44 / 64; }
.sock-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sock-body { fill: var(--fa); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.sock-cuff { fill: none; stroke: rgba(255, 255, 255, 0.8); stroke-width: 3; }
.sock-heel { fill: none; stroke: rgba(20, 32, 51, 0.35); stroke-width: 2.5; stroke-linecap: round; }
.sock-pic { position: absolute; left: 16%; top: 26%; width: 50%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink); background: #fff; }
#lost-all { margin-top: 12px; }

/* ---------- DING ---------- */
.ding { position: fixed; left: 50%; top: 16vh; z-index: 90; display: flex; flex-direction: column; align-items: center; pointer-events: none; transform: translateX(-50%); animation: ding-in 2.9s ease forwards; }
.ding-bell { display: block; transform-origin: 50% 12%; animation: swing 0.42s ease-in-out 5 alternate; filter: drop-shadow(0 4px 0 var(--ink)); }
.ding-bell svg { display: block; width: 92px; height: 92px; }
.ding-bell path { fill: var(--butter); stroke: var(--ink); stroke-width: 1.5; }
.ding-word { font: 400 clamp(64px, 12vw, 150px)/0.95 var(--display); letter-spacing: 0.02em; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 0 26px var(--neon), 6px 6px 0 var(--ink); }
.ding-sub { margin-top: 8px; font: 400 22px/1.2 var(--display); padding: 6px 14px; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); }
.ding-flash { position: fixed; inset: 0; z-index: 89; pointer-events: none; background: radial-gradient(circle at 50% 30%, rgba(255, 246, 200, 0.92), rgba(255, 214, 107, 0.35) 42%, rgba(255, 214, 107, 0) 72%); animation: flash 0.9s ease-out forwards; }
@keyframes ding-in { 0% { opacity: 0; transform: translateX(-50%) scale(0.6); } 12% { opacity: 1; transform: translateX(-50%) scale(1.08); } 20% { transform: translateX(-50%) scale(1); } 80% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) translateY(-24px); } }
@keyframes swing { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }

/* ---------- toasts + modal ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 95; display: grid; gap: 10px; width: min(390px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; font-size: 14.5px; line-height: 1.4; background: var(--paper); border: var(--line) solid var(--ink); border-left-width: 10px; border-radius: 12px; box-shadow: 0 4px 0 var(--ink); transition: opacity 0.4s, transform 0.4s; }
.toast.is-out { opacity: 0; transform: translateY(8px); }
.toast-ok { border-left-color: var(--teal); }
.toast-err { border-left-color: var(--neon); }
.toast-warn { border-left-color: var(--butter-d); background: #fff6d6; }
.toast-info { border-left-color: var(--baby-d); }
.toast-stamp { flex: none; padding-top: 2px; font: 12px/1.3 var(--mono); color: var(--ink-2); }
.toast-msg { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast a { flex: none; font-weight: 700; }
.toast-x { flex: none; padding: 0 2px; font-size: 22px; line-height: 1; background: none; border: none; color: var(--ink); cursor: pointer; }
.modal-back { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(12, 17, 40, 0.62); }
.modal { width: min(470px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px 20px 20px; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 20px; box-shadow: 0 8px 0 var(--ink); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h2 { margin: 0; font-size: 26px; }
.modal-x { width: 38px; height: 38px; flex: none; font-size: 22px; line-height: 1; color: var(--ink); background: var(--chrome); border: 2.5px solid var(--ink); border-radius: 50%; cursor: pointer; }
.wallet-list { display: grid; gap: 8px; margin-top: 12px; }
.wallet-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; font: 600 16px var(--font); color: var(--ink); background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; cursor: pointer; }
.wallet-opt:hover { background: var(--mint-2); }
.wallet-opt span:nth-child(2) { flex: 1; }
.wallet-opt img { border-radius: 8px; }
.wallet-noicon { width: 28px; height: 28px; border-radius: 8px; background: var(--chrome); }
.wallet-none { margin: 0 0 12px; }
.wallet-bal { font: 700 20px/1.2 var(--mono); }
html.has-modal { overflow: hidden; }

/* ---------- footer: back out into the night ---------- */
.ftr { margin-top: 80px; color: #cdd6f4; background: var(--night); }
.ftr::before { content: ""; display: block; height: 18px; background: repeating-conic-gradient(var(--ink) 0 25%, #f6f0e2 0 50%) 0 0 / 18px 18px; border-top: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); }
.ftr-in { max-width: 1320px; margin: 0 auto; padding: 34px 24px 44px; display: grid; grid-template-columns: 1.1fr 0.8fr 1.5fr; gap: 30px; }
.ftr p { margin: 10px 0 0; }
.ftr a { color: #fff; }
.ftr a:hover { color: var(--pink); }
.ftr-joke { font-family: var(--display); color: var(--pink); letter-spacing: 0.02em; }
.ftr-nav { display: flex; flex-direction: column; gap: 8px; }
.ftr-fine p { margin: 0 0 10px; font-size: 13.5px; color: #a9b5dc; }

/* ---------- motion and size ---------- */
@media (max-width: 1100px) {
  .floor-layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 960px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 40; flex-direction: column; gap: 6px; padding: 14px 16px 22px; background: var(--night-2); border-bottom: var(--line) solid var(--ink); }
  .nav a { font-size: 18px; padding: 12px 16px; }
  body.nav-open .nav { display: flex; }
  .menu-btn { display: inline-flex; }
  .hdr-in { gap: 12px; }
  .wallet-slot { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 60px; }
  .changer { max-width: 560px; width: 100%; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .hdr-in { padding: 10px 16px; gap: 10px; }
  .open-sign, .hdr .cluster { display: none; }
  .neon { font-size: 25px; }
  .brand-mark { width: 34px; height: 34px; }
  .btn-wallet { padding: 6px 12px 6px 7px; font-size: 14px; }
  .wb-bal { display: none; }
  .hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .lede { font-size: 17px; }
  .seg { min-width: 120px; font-size: 18px; }
  .side { grid-template-columns: minmax(0, 1fr); }
  .floor-head h2 { font-size: 28px; }
  .program { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .program button { padding: 9px 6px; font-size: 13.5px; }
  .search { margin-left: 0; width: 100%; }
  .search input { width: 100%; }
  .floor { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; padding: 18px 10px 22px; border-radius: 18px; background-size: 44px 44px; }
  .mc-panel { gap: 5px; padding: 7px 7px; }
  .mc-no { display: none; }
  .lcd { font-size: 9.5px; padding: 4px 5px 3px; }
  .knob { width: 16px; height: 16px; }
  .mc-door { padding: 10px 11% 4px; }
  .mc-plate { margin: 5px 7px 0; padding: 5px 6px 4px; }
  .mc-name { font-size: 13.5px; }
  .mc-line { font-size: 10.5px; flex-direction: column; gap: 0; }
  .mc.is-house .mc-ribbon { font-size: 10px; right: -4px; }
  .pager { flex-wrap: wrap; justify-content: center; }
  .ftr-in { grid-template-columns: minmax(0, 1fr); padding: 28px 16px 36px; }
  .toasts { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .bubbles { display: none; }
  .ding { animation: none !important; }
  .ding-flash { display: none; }
}

/* =====================================================================================
   inner pages
   ===================================================================================== */
.page { padding-top: 64px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 28px; }
.page-h > div { max-width: 760px; }
.page-h h1 { font-size: clamp(40px, 5.6vw, 70px); line-height: 1; margin: 12px 0 14px; }
.price-tag { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 190px; padding: 12px 18px 12px; background: var(--butter); border: var(--line) solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); transform: rotate(2deg); text-align: center; }
.price-tag span { font: 700 12px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.price-tag b { font: 400 30px/1.1 var(--display); }
.price-tag small { font-size: 13px; }
.panel { background: var(--paper); border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); padding: 16px 18px 18px; }
.panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-h h2 { margin: 0; font-size: 22px; }
.aside { font: 600 12px/1.3 var(--mono); color: var(--ink-2); }
.empty-line { margin: 6px 0; color: var(--ink-2); font-style: italic; }
.loading { font: 400 24px var(--display); padding: 60px 0; text-align: center; }
.notfound { padding: 30px 0 20px; }
.notfound h1 { font-size: clamp(40px, 6vw, 70px); margin: 10px 0; }
.crumbs { font: 600 13px/1.2 var(--mono); color: var(--ink-2); margin-bottom: 18px; }
.tag { display: inline-block; font: 700 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); }
.tag-soak { background: var(--baby); }
.tag-wash { background: var(--mint); }
.tag-rinse { background: var(--pink); }
.tag-spin { background: var(--butter); }
.tag-clean { background: #fff; box-shadow: 0 0 0 3px var(--mint-2); }
.tag-house { background: var(--neon); color: #fff; }
.tag-lost { background: var(--chrome-2); }

/* ---------- form bits: label-maker tape, inputs ---------- */
.dymo { display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; font: 700 12.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: var(--ink); padding: 5px 9px 4px; border-radius: 3px; box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.12), 0 2px 0 rgba(0, 0, 0, 0.2); transform: rotate(-0.6deg); }
.dymo .count, .dymo .opt { font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: #b7c3d8; }
.dymo .count.over { color: var(--pink); }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field textarea { resize: vertical; min-height: 96px; }
.field [aria-invalid="true"], .drop[aria-invalid="true"] { border-color: var(--down); box-shadow: 0 0 0 3px rgba(200, 40, 61, 0.25); }
.prefixed { display: flex; align-items: center; background: #fff; border: var(--line) solid var(--ink); border-radius: 12px; overflow: hidden; }
.prefixed > span { padding: 0 0 0 14px; font: 700 18px var(--mono); color: var(--ink-2); }
.prefixed input { border: none; box-shadow: none; border-radius: 0; padding-left: 4px; text-transform: uppercase; }
.amount { display: flex; align-items: stretch; }
.amount input { border-radius: 12px 0 0 12px; font: 600 20px/1.2 var(--mono); }
.amount-u { display: flex; align-items: center; padding: 0 14px; font: 700 14px var(--mono); background: var(--chrome); border: var(--line) solid var(--ink); border-left: none; border-radius: 0 12px 12px 0; white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.help { font-size: 13.5px; color: var(--ink-2); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 16px; }
.form-err { min-height: 1.4em; margin: 0 0 10px; color: var(--down); font-weight: 700; }

/* ---------- launch: the console ---------- */
.launch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 30px; align-items: start; margin-top: 22px; }
#gate { margin-top: 10px; }
.console { background: linear-gradient(180deg, var(--mint), #7bd5bf); border: var(--line) solid var(--ink); border-radius: 26px; box-shadow: 0 7px 0 var(--ink), inset 8px 0 0 rgba(255, 255, 255, 0.28); overflow: hidden; }
.console-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; background: linear-gradient(#f7fafb, #d0dbe0); border-bottom: var(--line) solid var(--ink); }
.console-title { font: 400 20px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.lcd-wide { flex: 0 1 220px; font-size: 15px; padding: 9px 12px 8px; text-align: right; }
.console-body { margin: 20px; padding: 22px 22px 20px; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 18px; }
.drop { display: flex; align-items: center; gap: 18px; padding: 14px; background: #fff; border: var(--line) dashed var(--ink); border-radius: 16px; cursor: pointer; transition: background-color 0.15s; }
.drop:hover, .drop.is-over { background: var(--mint-2); }
.drop:focus-within { outline: 3px solid var(--baby-d); outline-offset: 3px; }
.drop-port { flex: none; width: 104px; height: 104px; padding: 10px; border-radius: 50%; border: var(--line) solid var(--ink); background: conic-gradient(from 200deg, #fff, #a7b6bf 18%, #f4f7f8 35%, #8b9ca6 55%, #eef3f5 72%, #9fb0b9 88%, #fff); }
.drop-glass { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: var(--line) solid var(--ink); background: radial-gradient(circle at 50% 40%, #cfeeff, #8cc6ea); position: relative; }
.drop-glass::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font: 400 34px/1 var(--display); color: var(--ink); }
.drop.has-file .drop-glass::after { content: none; }
.drop-art, .drop-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.drop-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.drop-t { font-weight: 700; overflow-wrap: anywhere; }
.drop-s { font-size: 13.5px; color: var(--ink-2); }
.coin-slot {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 76px;
  padding: 16px 20px 16px 96px; font: 400 21px/1.15 var(--display); letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #c9d5db 55%, #aab8c1); border: var(--line) solid var(--ink); border-radius: 18px;
  box-shadow: 0 6px 0 var(--ink), inset 0 2px 0 #fff; cursor: pointer; overflow: hidden; transition: transform 0.08s, box-shadow 0.08s;
}
.coin-slot::before { content: ""; position: absolute; left: 34px; top: 50%; width: 12px; height: 44px; transform: translateY(-50%); background: #0d1424; border-radius: 6px; box-shadow: 0 0 0 4px #e9eef1, 0 0 0 7px var(--ink); }
.coin-slot::after { content: ""; position: absolute; left: 22px; top: -40px; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 36% 32%, #fff6cf 0 18%, #ffd66b 42%, #d99b0f 100%); border: var(--line) solid var(--ink); transition: transform 0.45s cubic-bezier(0.5, 0, 0.6, 1); transform: translateY(0) scaleX(1); }
.coin-slot:hover:not(:disabled)::after { transform: translateY(60px) scaleX(0.3); }
.coin-slot:hover:not(:disabled) { background: linear-gradient(180deg, #ffffff, #fff1c4 55%, #ffd66b); }
.coin-slot:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink), inset 0 2px 0 #fff; }
.coin-slot:disabled { cursor: not-allowed; color: #5d6b80; background: linear-gradient(180deg, #f2f4f5, #c6ced3); }
.coin-slot[aria-busy="true"] { cursor: progress; }
.coin-slot[aria-busy="true"]::after { animation: coin-drop 0.9s ease-in infinite; }
@keyframes coin-drop { from { transform: translateY(0) scaleX(1); } to { transform: translateY(60px) scaleX(0.3); } }
.cycle-lamps { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 18px 0 0; padding: 0; }
.cycle-lamps li { display: flex; flex-direction: column; align-items: center; gap: 5px; font: 700 10.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.cycle-lamps li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #c3ccd2; border: 2.5px solid var(--ink); }
.cycle-lamps li.is-done::before { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.cycle-lamps li.is-on { color: var(--ink); }
.cycle-lamps li.is-on::before { background: var(--butter); box-shadow: 0 0 10px var(--butter); animation: pulse 0.8s ease-in-out infinite; }
.launch-side { display: grid; gap: 26px; }
.side-h { font-size: 22px; margin: 0 0 14px; }
.mc-preview { max-width: 250px; margin: 0 auto; }
.mc-preview .mc-body { transform: none !important; }
.pv-desc { margin: 14px 0 0; padding: 10px 14px; font-size: 14.5px; background: var(--paper); border: 2.5px dashed var(--ink); border-radius: 12px; white-space: pre-line; overflow-wrap: anywhere; }
.receipt { position: relative; padding: 18px 20px 28px; background: var(--paper); border: 2px solid rgba(20, 32, 51, 0.18); box-shadow: 0 8px 18px rgba(20, 32, 51, 0.16); transform: rotate(-1deg);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, transparent 0) bottom / 14px 10px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, transparent 0) bottom / 14px 10px repeat-x; }
.receipt h2 { margin: 0 0 10px; font: 22px/1 var(--tape); letter-spacing: 0.08em; text-transform: uppercase; text-align: center; border-bottom: 2px dashed rgba(20, 32, 51, 0.35); padding-bottom: 8px; }
.receipt-rows { margin: 0; font: 20px/1.25 var(--tape); }
.receipt-rows div { display: flex; justify-content: space-between; gap: 10px; }
.receipt-rows dd { margin: 0; }
.receipt-rows .total { margin-top: 6px; padding-top: 6px; border-top: 2px dashed rgba(20, 32, 51, 0.35); font-size: 24px; }
.receipt-note { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }
.care { padding: 16px 18px 14px; background: #fff; border: var(--line) solid var(--ink); border-radius: 6px 6px 22px 22px; box-shadow: 0 5px 0 var(--ink); }
.care h2 { margin: 0 0 8px; font-size: 18px; text-transform: uppercase; letter-spacing: 0.1em; text-align: center; }
.care ul { margin: 0; padding: 0 0 0 18px; font-size: 14.5px; }
.care li { margin: 4px 0; }

/* ---------- token: one machine up close ---------- */
.tk-top { display: grid; grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); gap: 40px; align-items: start; }
.big-body { position: relative; padding-bottom: 18px; background: linear-gradient(180deg, var(--mint), #77d4bd); border: var(--line) solid var(--ink); border-radius: 30px 30px 18px 18px; box-shadow: 0 8px 0 var(--ink), inset 10px 0 0 rgba(255, 255, 255, 0.3), inset 0 -12px 0 rgba(20, 32, 51, 0.08); }
.big-body.is-house { background: linear-gradient(180deg, #ffe9a8, var(--butter)); }
.big-body.is-lost { background: linear-gradient(180deg, #d9dfe3, #b8c2c8); }
.big-panel { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: linear-gradient(#f7fafb, #d0dbe0); border-bottom: var(--line) solid var(--ink); border-radius: 27px 27px 0 0; }
.big-no { flex: none; font: 700 13px/1 var(--mono); color: var(--ink-2); }
.lcd-big { font-size: 17px; gap: 6px; padding: 9px 11px 8px; }
.knob-big { width: 28px; height: 28px; }
.knob-big::after { height: 9px; }
.big-door { padding: 26px 13% 10px; }
.big-ribbon { display: block; position: absolute; top: -14px; right: -10px; font: 400 13px/1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; padding: 7px 10px 6px; background: var(--neon); color: #fff; border: 2.5px solid var(--ink); border-radius: 8px; transform: rotate(4deg); box-shadow: 0 3px 0 var(--ink); }
.big-ribbon[hidden] { display: none !important; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 14px 16px 0; padding: 10px 8px; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 14px; }
.timeline li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.timeline b { font: 400 14px/1 var(--display); }
.timeline small { font: 600 10.5px/1 var(--mono); color: var(--ink-2); }
.tl-lamp { width: 18px; height: 18px; border-radius: 50%; background: #c3ccd2; border: 2.5px solid var(--ink); }
.timeline li.is-done .tl-lamp { background: var(--teal); }
.timeline li.is-on .tl-lamp { background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: pulse 1.2s ease-in-out infinite; }
.timeline li.tl-clean.is-on .tl-lamp { background: var(--butter); box-shadow: 0 0 12px var(--butter); }
.timeline li.is-on b { color: var(--pink-d); }
.tk-id { min-width: 0; }
.tk-id h1 { font-size: clamp(36px, 5vw, 62px); margin: 10px 0 8px; overflow-wrap: anywhere; }
.tk-sym { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.tk-sym > span:first-child { font: 700 20px/1 var(--mono); color: var(--teal-d); margin-right: 6px; overflow-wrap: anywhere; }
#tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tk-desc { margin: 0 0 14px; font-size: 17px; white-space: pre-line; overflow-wrap: anywhere; max-width: 42em; }
.tk-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; }
.tk-links a { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 12px; font-weight: 700; color: var(--ink); text-decoration: none; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); }
.tk-links a:hover { background: var(--mint-2); }
.tk-links small { font: 500 12px var(--mono); color: var(--ink-2); }
.tk-addrs { display: grid; gap: 4px; margin: 0 0 18px; font-size: 14px; }
.tk-addrs div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-addrs dt { min-width: 92px; font: 700 11.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.tk-addrs dd { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--mono); }
.care-label { position: relative; max-width: 560px; padding: 14px 18px 14px; background: #fff; border: var(--line) solid var(--ink); border-radius: 4px 4px 4px 4px; box-shadow: 0 5px 0 var(--ink); }
.care-label::before { content: ""; position: absolute; left: 50%; top: -11px; width: 60px; height: 14px; transform: translateX(-50%); background: #fff; border: var(--line) solid var(--ink); border-bottom: none; border-radius: 6px 6px 0 0; }
.care-h { display: flex; justify-content: space-between; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font: 700 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.care-seen { letter-spacing: 0.02em; color: var(--ink-2); text-transform: none; }
.care-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.care-stats div { min-width: 0; }
.care-stats dt { font: 700 10.5px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.care-stats dd { margin: 2px 0 0; font: 400 19px/1.15 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.care-stats small { font: 600 11px var(--mono); margin-left: 3px; color: var(--ink-2); }
.to-ding { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 0; padding-top: 8px; border-top: 2px dashed rgba(20, 32, 51, 0.35); font: 700 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.to-ding b { font: 400 22px/1 var(--display); letter-spacing: 0; text-transform: none; color: var(--pink-d); }
#note { margin-top: 30px; }
.tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 28px; align-items: start; margin-top: 34px; }
.tk-main, .tk-side { display: grid; gap: 26px; min-width: 0; }
.chart { height: 260px; background: #fff; border-radius: 10px; }
.chart canvas { display: block; width: 100%; height: 100%; }
.tlog { width: 100%; border-collapse: collapse; font: 14px/1.3 var(--mono); }
.tlog th { text-align: left; font: 700 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); padding: 0 6px 8px; border-bottom: 2px solid var(--ink); }
.tlog td { padding: 7px 6px; border-bottom: 1px dashed rgba(20, 32, 51, 0.2); white-space: nowrap; }
.tlog .r, .rtable .r { text-align: right; }
.coinop { background: linear-gradient(180deg, #f6f9fa, #dbe4e8); }
.venue { font: 700 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; border: 2px solid var(--ink); border-radius: 6px; background: var(--baby); }
.venue.is-amm { background: var(--butter); }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 14px; background: var(--ink); border-radius: 14px; }
.sides button { padding: 10px; font: 400 18px/1 var(--display); color: #dfe8ff; background: transparent; border: none; border-radius: 10px; cursor: pointer; }
.sides button[aria-pressed="true"][data-side="buy"] { background: var(--mint); color: var(--ink); }
.sides button[aria-pressed="true"][data-side="sell"] { background: var(--pink); color: var(--ink); }
.quote { display: grid; gap: 5px; margin: 0 0 12px; padding: 10px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; font-size: 14.5px; }
.quote div { display: flex; justify-content: space-between; gap: 12px; }
.quote dt { color: var(--ink-2); }
.quote dd { margin: 0; font: 600 14px/1.4 var(--mono); text-align: right; overflow-wrap: anywhere; }
.slip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 12px; }
.slip[hidden] { display: none; }
.slip-custom input { width: 96px; padding: 5px 8px; font: 600 13px var(--mono); border: 2px solid var(--ink); border-radius: 999px; }
.bal { margin: 10px 0 0; font: 600 13px/1.4 var(--mono); color: var(--ink-2); text-align: center; }
.coinbox { background: #fff6d8; }
.claimable { margin: 6px 0 12px; font: 400 36px/1 var(--display); }
.claimable small { font: 700 14px var(--mono); }
.regs { list-style: none; margin: 0 0 8px; padding: 0; }
.regs li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding: 6px 0; border-bottom: 1px dashed rgba(20, 32, 51, 0.2); font: 14px/1.3 var(--mono); }
.regs li.is-top { background: linear-gradient(90deg, #fff1b8, transparent); }
.regs .n { color: var(--ink-2); font-weight: 700; }
.regs .v { text-align: right; font-weight: 700; }
.regs .v small { display: block; font-weight: 500; color: var(--ink-2); }
.regs .empty-line { display: block; }

/* ---------- regulars: corkboard + loyalty card ---------- */
.totals-strip { display: flex; gap: 10px; margin: 0; flex-wrap: wrap; }
.totals-strip div { padding: 10px 14px; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); min-width: 110px; }
.totals-strip dt { font: 700 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.totals-strip dd { margin: 4px 0 0; font: 400 24px/1 var(--display); }
.reg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; }
.cork {
  padding: 22px 22px 30px; border: 10px solid #b07a41; border-radius: 10px; outline: var(--line) solid var(--ink); box-shadow: 0 8px 0 var(--ink), inset 0 0 0 3px var(--ink);
  background-color: #c99d63;
  background-image: radial-gradient(rgba(97, 58, 18, 0.35) 1px, transparent 1.6px), radial-gradient(rgba(255, 236, 200, 0.35) 1px, transparent 1.6px);
  background-size: 9px 9px, 13px 13px; background-position: 0 0, 4px 6px;
}
.cork-h { margin: 0 0 18px; display: inline-block; padding: 6px 14px; font-size: 22px; background: var(--paper); border: 2.5px solid var(--ink); transform: rotate(-1.5deg); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }
.cork-h small { font: 600 12px var(--mono); color: var(--ink-2); }
.cork-empty { margin: 0; padding: 20px; background: var(--paper); border: 2.5px solid var(--ink); }
.polaroids { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 26px 20px; }
.polaroid { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; background: #fff; border: 2px solid rgba(20, 32, 51, 0.5); box-shadow: 0 6px 12px rgba(40, 20, 0, 0.35); transform: rotate(-2deg); min-width: 0; }
.polaroid:nth-child(2n) { transform: rotate(2.4deg); }
.polaroid:nth-child(3n) { transform: rotate(-0.8deg) translateY(6px); }
.polaroid:nth-child(5n) { transform: rotate(3.2deg); }
.polaroid.is-me { box-shadow: 0 0 0 4px var(--butter), 0 6px 12px rgba(40, 20, 0, 0.35); }
.pin { position: absolute; left: 50%; top: -9px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9aa5, var(--neon) 50%, #9b1022); border: 2px solid var(--ink); z-index: 1; }
.polaroid:nth-child(3n+2) .pin { background: radial-gradient(circle at 35% 30%, #d7f0ff, var(--baby-d) 55%, #164c80); }
.polaroid:nth-child(3n) .pin { background: radial-gradient(circle at 35% 30%, #fff6cf, var(--butter) 50%, #a86f00); }
.pol-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; background-color: var(--fa); border: 2px solid var(--ink); }
.pol-ico { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: #fff; border: var(--line) solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.pol-place { position: absolute; top: 16px; left: 16px; font: 400 18px/1 var(--display); background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; padding: 4px 7px; }
.polaroid.is-top .pol-place { background: var(--butter); }
.pol-wallet { margin-top: 6px; font: 700 15px/1.2 var(--mono); color: var(--ink); }
.pol-rank { display: block; }
.pol-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 4px 0 0; padding-top: 6px; border-top: 1.5px dashed rgba(20, 32, 51, 0.3); }
.pol-stats dt { font: 700 9.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.pol-stats dd { margin: 2px 0 0; font: 700 13px/1.2 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pol-stats small { font-weight: 500; }
.you { display: inline-block; margin-left: 6px; font: 700 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; background: var(--butter); border: 1.5px solid var(--ink); border-radius: 4px; padding: 3px 5px; vertical-align: middle; }
.polaroid .you { position: absolute; top: 16px; right: 16px; margin: 0; }
.rank { display: inline-flex; align-items: center; gap: 5px; font: 700 12.5px/1 var(--mono); padding: 4px 8px 4px 6px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); white-space: nowrap; }
.rank-rookie { background: var(--baby); }
.rank-regular { background: var(--mint); }
.rank-king { background: var(--butter); }
.rank-baron { background: var(--pink); }
.rank-owner { background: #fff; }
.rank-none { background: var(--chrome); }
.owner-badge { display: inline-flex; align-items: center; gap: 4px; width: max-content; font: 700 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 7px; margin: 4px 0 0; background: var(--ink); color: var(--butter); border-radius: 5px; }
.owner-badge.sm { margin: 0 0 0 6px; padding: 3px 5px; font-size: 10px; vertical-align: middle; }
.reg-side { display: grid; gap: 26px; }
.loyalty { position: relative; padding: 0 0 18px; background: #fffaf0; border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); overflow: hidden; }
.loyalty-top { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 18px; background: repeating-linear-gradient(90deg, var(--pink) 0 18px, #fff 18px 36px); border-bottom: var(--line) solid var(--ink); }
.loyalty-top h2 { margin: 0; font-size: 22px; background: var(--paper); padding: 2px 8px; border: 2px solid var(--ink); border-radius: 8px; }
.loyalty-brand { font: 400 15px/1 var(--display); background: var(--ink); color: #fff; padding: 4px 8px; border-radius: 6px; }
#me-body { padding: 14px 18px 0; display: grid; gap: 10px; }
.loyalty-who { display: flex; align-items: center; gap: 12px; }
.loyalty-who b { display: block; font: 400 22px/1.1 var(--display); }
.loyalty-who .mono { font-size: 13px; color: var(--ink-2); }
.loyalty-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; }
.loyalty-stats dt { font: 700 10px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.loyalty-stats dd { margin: 3px 0 0; font: 700 15px/1.1 var(--mono); }
.loyalty-text { margin: 0; font-size: 14.5px; }
.punches { list-style: none; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin: 4px 0 0; padding: 10px; background: #fff; border: 2px dashed var(--ink); border-radius: 10px; }
.punches li { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); }
.punches li.is-punched { background: radial-gradient(circle, var(--wall) 0 45%, var(--ink) 47% 100%); }
.meter { display: block; height: 18px; background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: repeating-linear-gradient(45deg, var(--pink) 0 8px, var(--pink-d) 8px 16px); }
.rule-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; border: var(--line) solid var(--ink); }
.rank-rules { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.rank-rules li { display: flex; align-items: center; gap: 12px; }
.rank-rules b { display: block; font: 400 17px/1.2 var(--display); }
.rank-rules span { font-size: 14.5px; }
.ledger { margin-top: 34px; }
.table-scroll { overflow-x: auto; }
.rtable { width: 100%; border-collapse: collapse; font: 14px/1.3 var(--mono); }
.rtable th { text-align: left; font: 700 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); padding: 0 8px 8px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.rtable td { padding: 8px; border-bottom: 1px dashed rgba(20, 32, 51, 0.2); white-space: nowrap; }
.rtable tr.is-me td { background: #fff1b8; }
.c-ix { color: var(--ink-2); }

/* ---------- how ---------- */
.manual { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; }
.toc { position: sticky; top: 16px; padding: 14px 16px; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); }
.toc ol { margin: 0; padding: 0 0 0 22px; display: grid; gap: 6px; font-weight: 700; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--pink-d); text-decoration: underline; }
.sections { display: grid; gap: 22px; min-width: 0; }
.sec { padding: 22px 26px 24px; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 20px; box-shadow: 0 5px 0 var(--ink); }
.sec h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 28px; }
.ix { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; font-size: 20px; color: var(--ink); background: var(--mint); border: var(--line) solid var(--ink); border-radius: 50%; }
.sec p { max-width: 46em; }
.sec-risk { background: #ffe9ef; }
.sec-risk .ix { background: var(--neon); color: #fff; }
.cycle-demo { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 30px; align-items: center; margin: 18px 0 20px; padding: 20px; border: var(--line) solid var(--ink); border-radius: 18px; background: repeating-conic-gradient(#d7efe7 0 25%, #f8f4ea 0 50%) 0 0 / 50px 50px; }
.cycle-demo .mc-preview { width: 100%; }
.cycle-ctl { padding: 16px 18px; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); }
.cyc-sol { margin: 10px 0; font: 400 34px/1 var(--display); }
.cyc-msg { min-height: 1.5em; margin: 10px 0 0; font-weight: 700; }
input[type="range"] { width: 100%; height: 34px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--baby) 0 25%, var(--mint) 25% 60%, var(--pink) 60% 85%, var(--butter) 85%); border: 2.5px solid var(--ink); }
input[type="range"]::-moz-range-track { height: 9px; border-radius: 999px; background: linear-gradient(90deg, var(--baby) 0 25%, var(--mint) 25% 60%, var(--pink) 60% 85%, var(--butter) 85%); border: 2.5px solid var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: radial-gradient(circle at 36% 32%, #fff6cf 0 18%, #ffd66b 42%, #d99b0f 100%); border: var(--line) solid var(--ink); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--butter); border: var(--line) solid var(--ink); }
.ptable { width: 100%; border-collapse: collapse; }
.ptable th { text-align: left; font: 700 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); padding: 0 8px 8px; border-bottom: 2px solid var(--ink); }
.ptable td { padding: 9px 8px; border-bottom: 1px dashed rgba(20, 32, 51, 0.2); vertical-align: top; }
.ptable .num { font-family: var(--mono); white-space: nowrap; }
.drum-demo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 18px 0 8px; }
.drum-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.drum-fig .port { max-width: 160px; }
.drum-fig figcaption b { display: block; font: 400 18px/1.1 var(--display); }
.drum-fig figcaption span { font-size: 14px; color: var(--ink-2); }
.costs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.costs div { padding: 12px 14px; background: #fff; border: var(--line) solid var(--ink); border-radius: 14px; }
.costs dt { font: 700 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.costs dd { margin: 6px 0; font: 400 32px/1 var(--display); }
.costs dd small { font: 700 14px var(--mono); margin-left: 3px; }
.costs p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.ticks { margin: 0; padding: 0 0 0 20px; display: grid; gap: 8px; }

/* ---------- 404 ---------- */
.lost-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: center; min-height: 52vh; }
.lost-page h1 { font-size: clamp(44px, 7vw, 92px); line-height: 0.98; margin: 12px 0 16px; }
.lost-page h1 span { display: inline-block; color: var(--pink); -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); }
.lone { position: relative; height: 320px; }
.lone .line { position: absolute; left: -20px; right: -20px; top: 20px; height: 3px; background: var(--ink); transform: rotate(-3deg); }
.lone .peg { position: absolute; left: 50%; top: 4px; width: 16px; height: 40px; margin-left: -8px; background: var(--butter); border: var(--line) solid var(--ink); border-radius: 4px; z-index: 1; }
.lone-sock { position: absolute; left: 50%; top: 26px; width: 150px; height: 218px; margin-left: -75px; transform-origin: 50% 0; animation: dangle 3.2s ease-in-out infinite alternate; --fa: var(--pink); }
.lone-sock .sock-body { stroke-width: 2.2; }
.lone-tag { position: absolute; left: 50%; top: 250px; margin-left: 20px; font: 700 14px/1 var(--mono); padding: 5px 8px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 4px; transform: rotate(6deg); }
@keyframes dangle { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

@media (max-width: 1100px) {
  .launch-layout, .tk-grid, .reg-layout { grid-template-columns: minmax(0, 1fr); }
  .tk-side { order: -1; }
  .launch-side { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .manual { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc ol { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}
@media (max-width: 900px) {
  .tk-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .big { max-width: 460px; width: 100%; margin: 0 auto; }
  .costs { grid-template-columns: 1fr 1fr; }
  .lost-page { grid-template-columns: minmax(0, 1fr); }
  .lone { height: 300px; max-width: 300px; margin: 0 auto; width: 100%; }
}
@media (max-width: 680px) {
  .page { padding-top: 52px; }
  .page-h h1 { font-size: clamp(36px, 10.5vw, 52px); }
  .price-tag { transform: none; min-width: 0; }
  .console-body { margin: 12px; padding: 16px 14px; }
  .console-top { padding: 12px 14px; }
  .console-title { font-size: 16px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .drop { gap: 12px; padding: 10px; }
  .drop-port { width: 80px; height: 80px; padding: 7px; }
  .coin-slot { font-size: 17px; padding: 14px 14px 14px 78px; min-height: 68px; }
  .coin-slot::before { left: 28px; }
  .coin-slot::after { left: 16px; }
  .cycle-lamps li { font-size: 9px; letter-spacing: 0; }
  .care-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .big-door { padding: 20px 11% 8px; }
  .lcd-big { font-size: 14px; }
  .timeline { margin: 12px 10px 0; padding: 8px 4px; }
  .timeline b { font-size: 12px; }
  .timeline small { font-size: 9.5px; }
  .tlog th:nth-child(2), .tlog td:nth-child(2) { display: none; }
  .chart { height: 210px; }
  .cork { padding: 16px 12px 22px; border-width: 7px; }
  .polaroids { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .polaroid { padding: 7px 7px 9px; }
  .pol-ico { width: 54px; height: 54px; }
  .pol-place { top: 12px; left: 12px; font-size: 15px; }
  .pol-wallet { font-size: 13px; }
  .pol-stats dd { font-size: 11.5px; }
  .pol-stats dt { font-size: 8.5px; }
  .sec { padding: 18px 16px 20px; }
  .sec h2 { font-size: 23px; }
  .cycle-demo { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .cycle-demo .mc-preview { max-width: 220px; }
  .drum-demo { gap: 12px; }
  .drum-fig figcaption span { font-size: 12px; }
  .costs { grid-template-columns: minmax(0, 1fr); }
  .totals-strip div { min-width: 0; flex: 1; }
  .ptable td:nth-child(3) { font-size: 14px; }
}
