:root {
  --paper:#f7f3e9;
  --ink:#3e382e;
  --muted:#817765;
  --red:#b94332;
  --cream:#fff0cc;
  --line:#ded7c6;
  --reel-width:208px;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:repeating-linear-gradient(90deg,transparent 0,transparent 5px,#493a2403 5px,#493a2403 6px);
}
button,input,select {
  font:inherit;
}
button,a,input,select {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
}
button:disabled,select:disabled,input:disabled {
  cursor:wait;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible {
  outline:3px solid #296d76;
  outline-offset:5px;
}
button {
  color:inherit;
}
a {
  color:inherit;
}
.site-header {
  max-width:1320px;
  margin:auto;
  padding:26px 40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  text-decoration:none;
  font-family:Georgia,serif;
  font-weight:700;
  font-size:21px;
}
.text-button {
  border:0;
  background:none;
  padding:10px 0;
  font-size:12px;
  font-weight:600;
}
.text-button span {
  margin-left:10px;
}
.text-button:hover {
  color:var(--red);
}
main {
  padding:0 28px;
}
.intro {
  text-align:center;
  padding:47px 0 30px;
}
.eyebrow {
  font-family:ui-monospace,SFMono-Regular,monospace;
  letter-spacing:2px;
  font-size:10px;
  font-weight:600;
  color:var(--red);
  margin:0 0 16px;
}
.eyebrow span {
  font-size:17px;
  vertical-align:-2px;
  margin-right:5px;
}
h1 {
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(36px,4.4vw,58px);
  font-weight:400;
  letter-spacing:-2.2px;
  margin:0 0 15px;
}
h1 em {
  color:var(--red);
  font-weight:400;
}
.subtitle {
  color:var(--muted);
  font-size:13px;
  line-height:1.7;
  margin:0;
}
h2 {
  font-family:Georgia,"Songti SC",serif;
  font-size:27px;
  font-weight:400;
  letter-spacing:-.6px;
  margin:0;
}
.table-settings {
  max-width:730px;
  margin:0 auto 38px;
  background:#fffcf5;
  border:1px solid var(--line);
  border-radius:14px;
  display:grid;
  grid-template-columns:1fr 1fr;
  box-shadow:0 3px 0 #d9cdb51c;
}
.setting {
  padding:22px 26px;
}
.restaurant-setting {
  border-right:1px solid var(--line);
}
.setting label {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:9px;
  letter-spacing:1.2px;
  font-weight:700;
  color:var(--muted);
  min-height:24px;
}
.step {
  color:var(--red);
  font-family:monospace;
  font-size:10px;
}
.select-wrap {
  position:relative;
}
.select-wrap>span {
  position:absolute;
  right:0;
  top:10px;
  pointer-events:none;
}
.select-wrap select {
  font-family:Georgia,"Songti SC",serif;
  font-size:25px;
  background:transparent;
  border:0;
  appearance:none;
  width:100%;
  color:var(--ink);
  padding:8px 25px 3px 0;
  cursor:pointer;
}
.restaurant-setting p {
  font-size:10px;
  color:var(--muted);
  margin:5px 0 0;
}
.count-setting label output {
  font-family:Georgia,serif;
  font-size:25px;
  color:var(--red);
  letter-spacing:0;
  margin-left:auto;
}
.count-setting small {
  font-family:inherit;
  color:var(--muted);
  font-size:12px;
  font-weight:400;
}
input[type=range] {
  appearance:none;
  width:100%;
  height:5px;
  border-radius:5px;
  margin:23px 0 15px;
  background:linear-gradient(to right,var(--red) 0 var(--progress,33.33%),#e6dfd1 var(--progress,33.33%) 100%);
  cursor:pointer;
}
input[type=range]::-webkit-slider-thumb {
  appearance:none;
  width:19px;
  height:19px;
  border:4px solid #fffcf5;
  border-radius:50%;
  background:var(--red);
  box-shadow:0 0 0 1px #b9433255,0 2px 4px #492b2522;
}
input[type=range]::-moz-range-thumb {
  width:12px;
  height:12px;
  border:4px solid #fffcf5;
  border-radius:50%;
  background:var(--red);
  box-shadow:0 0 0 1px #b9433255;
}
.range-labels {
  display:flex;
  justify-content:space-between;
  font-size:9px;
  color:var(--muted);
}
.range-labels b {
  font-family:monospace;
  font-weight:500;
  padding:0 5px;
  color:#b0a38d;
}
.machine-section {
  display:flex;
  flex-direction:column;
  align-items:center;
}
.machine-stage {
  position:relative;
  width:min(var(--machine-width,980px),calc(100% - 52px));
  margin-right:38px;
  margin-bottom:22px;
  transition:width .35s ease;
}
.machine {
  position:relative;
  isolation:isolate;
  padding:0 24px 20px;
  border-radius:27px;
  background:linear-gradient(135deg,#db674b 0%,#c24a35 45%,#a53529 100%);
  box-shadow:inset 0 2px 2px #ffe2b985,inset 0 -5px 4px #7c261885,0 7px 0 #852c22,0 18px 32px #63463426;
}
.machine:before {
  content:"";
  position:absolute;
  inset:7px;
  border:1px solid #ffd69e4d;
  border-radius:21px;
  pointer-events:none;
}
.marquee {
  height:85px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:28px;
  color:var(--cream);
  text-shadow:0 1px 1px #73271d;
}
.marquee>span {
  font-size:24px;
}
.marquee div {
  text-align:center;
}
.marquee small {
  display:block;
  font-family:monospace;
  font-size:7px;
  letter-spacing:2.2px;
  margin-bottom:8px;
}
.marquee strong {
  font-size:13px;
  letter-spacing:3px;
  font-weight:800;
}
.reel-frame {
  position:relative;
  background:linear-gradient(#fce3ae,#d5b678);
  border-radius:15px;
  padding:8px;
  box-shadow:0 0 0 2px #852c2299,inset 0 2px 3px #7c421d55;
}
.reel-frame:before,.reel-frame:after {
  position:absolute;
  top:47%;
  color:#fff1c9;
  font-size:19px;
  z-index:3;
  filter:drop-shadow(0 1px 1px #502719);
  pointer-events:none;
}
.reel-frame:before {
  content:"▸";
  left:-14px;
}
.reel-frame:after {
  content:"◂";
  right:-14px;
}
.reel-scroll {
  overflow-x:auto;
  overscroll-behavior-x:contain;
  border-radius:9px;
  background:#4b3123;
  scrollbar-color:#d4b77c #4b3123;
  scrollbar-width:thin;
}
.reels {
  display:grid;
  grid-template-columns:repeat(var(--count,4),minmax(var(--reel-width),1fr));
  gap:7px;
  padding:7px;
  min-width:100%;
}
.reel {
  height:248px;
  position:relative;
  overflow:hidden;
  border-radius:5px;
  background:#f6eedc;
  box-shadow:0 1px 4px #0007;
}
.reel:after {
  content:"";
  position:absolute;
  inset:0;
  box-shadow:inset 0 8px 9px -7px #29170f99,inset 0 -8px 9px -7px #29170f55;
  pointer-events:none;
  z-index:2;
}
.reel-track {
  position:absolute;
  width:100%;
  top:0;
  will-change:transform;
}
.dish-card {
  height:248px;
  display:flex;
  flex-direction:column;
  background:#fbf5e7;
  text-align:center;
  position:relative;
}
.dish-card img {
  width:100%;
  height:164px;
  object-fit:cover;
  flex-shrink:0;
}
.dish-card .dish-info {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  flex:1;
  padding:8px 5px;
  gap:6px;
}
.dish-card h3 {
  font-family:Georgia,"Songti SC",SimSun,serif;
  font-size:20px;
  line-height:1.2;
  margin:0;
  font-weight:600;
  overflow-wrap:anywhere;
}
.dish-card p {
  font-size:10px;
  color:var(--muted);
  margin:0;
}
.dish-card .dish-number {
  position:absolute;
  top:9px;
  left:9px;
  background:#fffcf4e8;
  border-radius:50%;
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  font-size:10px;
  font-family:monospace;
  color:#8b6f48;
}
.placeholder-note {
  position:absolute;
  top:142px;
  right:7px;
  font-size:7px;
  letter-spacing:.7px;
  color:#806d4b;
}
.reel[data-settled="true"] {
  animation:settle .35s ease;
}
.machine-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:20px 2px 0;
  gap:10px;
  min-height:23px;
}
.machine-status {
  font:8px ui-monospace,monospace;
  letter-spacing:1px;
  color:var(--cream);
  background:#7e291f;
  padding:8px 12px;
  border-radius:20px;
  box-shadow:inset 0 1px 2px #4a1b1266;
  display:flex;
  align-items:center;
  gap:7px;
}
.machine-status i {
  display:block;
  width:5px;
  height:5px;
  background:#b0cb7b;
  border-radius:50%;
  box-shadow:0 0 5px #bcdd8b88;
}
.spinning .machine-status i {
  background:#ffd274;
  animation:blink .6s infinite alternate;
}
.has-overflow .serial {
  display:none;
}
.has-overflow .reel-scroll {
  scrollbar-width:none;
}
.has-overflow .reel-scroll::-webkit-scrollbar {
  display:none;
}
.reel-navigator {
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-width:0;
  padding:0 10px;
  border:1px solid #72251e;
  border-radius:18px;
  background:linear-gradient(#8c3024,#a9402d);
  box-shadow:inset 0 2px 4px #51190c66,0 1px 0 #f6b07c70;
}
.reel-navigator>span {
  color:#ffe2a9;
  font:20px Georgia,serif;
  text-shadow:0 -1px 1px #4f2118;
  pointer-events:none;
}
#reel-position {
  flex:1;
  min-width:0;
  width:100%;
  height:34px;
  margin:0;
  border-radius:8px;
  background:transparent;
  cursor:ew-resize;
  touch-action:pan-y;
}
#reel-position::-webkit-slider-runnable-track {
  height:10px;
  border:1px solid #5b2418;
  border-radius:8px;
  background:linear-gradient(#4f281e,#713d29);
  box-shadow:inset 0 2px 3px #23100b99,0 1px 0 #ffd29680;
}
#reel-position::-moz-range-track {
  height:8px;
  border:1px solid #5b2418;
  border-radius:8px;
  background:linear-gradient(#4f281e,#713d29);
  box-shadow:inset 0 2px 3px #23100b99,0 1px 0 #ffd29680;
}
#reel-position::-webkit-slider-thumb {
  appearance:none;
  width:40px;
  height:26px;
  margin-top:-9px;
  border:1px solid #8b7760;
  border-radius:7px;
  background:repeating-linear-gradient(90deg,#6b62567a 0 1px,#fffdf3a6 1px 2px,transparent 2px 4px) center/14px 12px no-repeat,linear-gradient(#fff9e8 0%,#d8cbb6 42%,#b7a58b 48%,#f1e7d3 100%);
  box-shadow:inset 0 1px 0 #fffef3,inset 0 -1px 1px #8b755c,0 3px 4px #3f170e88;
}
#reel-position::-moz-range-thumb {
  width:38px;
  height:24px;
  border:1px solid #8b7760;
  border-radius:7px;
  background:repeating-linear-gradient(90deg,#6b62567a 0 1px,#fffdf3a6 1px 2px,transparent 2px 4px) center/14px 12px no-repeat,linear-gradient(#fff9e8 0%,#d8cbb6 42%,#b7a58b 48%,#f1e7d3 100%);
  box-shadow:inset 0 1px 0 #fffef3,inset 0 -1px 1px #8b755c,0 3px 4px #3f170e88;
}
#reel-position:active::-webkit-slider-thumb {
  box-shadow:inset 0 1px 2px #8b755c,0 1px 2px #3f170e88;
}
#reel-position:active::-moz-range-thumb {
  box-shadow:inset 0 1px 2px #8b755c,0 1px 2px #3f170e88;
}
.serial {
  font:7px monospace;
  letter-spacing:1px;
  color:#f3cb9c;
}
.screw {
  position:absolute;
  width:7px;
  height:7px;
  border-radius:50%;
  background:linear-gradient(100deg,#9c9280,#eee8d7,#918671);
  box-shadow:0 1px 2px #68271a;
}
.screw:after {
  content:"";
  position:absolute;
  width:5px;
  height:1px;
  top:3px;
  left:1px;
  background:#5c5344;
  transform:rotate(-35deg);
}
.tl {
  top:15px;
  left:15px;
}
.tr {
  top:15px;
  right:15px;
}
.bl {
  bottom:15px;
  left:15px;
}
.br {
  bottom:15px;
  right:15px;
}
.feet {
  position:absolute;
  bottom:-16px;
  left:30px;
  right:30px;
  display:flex;
  justify-content:space-between;
  z-index:-1;
}
.feet i {
  width:37px;
  height:19px;
  border-radius:0 0 5px 5px;
  background:#3d3228;
  box-shadow:0 2px 2px #0002;
}
.lever {
  position:absolute;
  right:-51px;
  top:100px;
  width:52px;
  height:194px;
  background:none;
  border:0;
  touch-action:none;
  --travel:0px;
}
.lever-label {
  position:absolute;
  top:-18px;
  left:8px;
  font:8px monospace;
  letter-spacing:1px;
  color:var(--muted);
  white-space:nowrap;
}
.lever-mount {
  position:absolute;
  bottom:14px;
  left:-2px;
  width:33px;
  height:48px;
  border-radius:8px;
  background:linear-gradient(90deg,#686157,#ded8c9,#8d887d);
  box-shadow:1px 2px 3px #0003;
}
.lever-mount:after {
  content:"";
  position:absolute;
  width:27px;
  height:27px;
  right:-10px;
  top:10px;
  border:1px solid #80786a;
  border-radius:50%;
  background:linear-gradient(120deg,#faf6e8,#9e9b8d);
}
.lever-arm {
  position:absolute;
  bottom:34px;
  height:calc(120px - var(--travel));
  width:10px;
  left:25px;
  border-radius:8px;
  background:linear-gradient(90deg,#8a8173,#f8f5ec 45%,#999385);
  box-shadow:2px 1px 3px #0002;
  transition:height .3s;
}
.lever-ball {
  position:absolute;
  top:calc(23px + var(--travel));
  left:7px;
  width:44px;
  height:44px;
  border-radius:50%;
  background:radial-gradient(circle at 30% 23%,#fa9374 0,#dd6046 23%,#a33527 75%);
  box-shadow:1px 4px 5px #692d2c33,inset 0 0 0 1px #a9321d33;
  transition:top .3s;
}
.lever-ball:before {
  content:"";
  position:absolute;
  width:13px;
  height:6px;
  left:8px;
  top:7px;
  background:#ffddc898;
  border-radius:50%;
  transform:rotate(-35deg);
  filter:blur(.5px);
}
.lever.dragging .lever-ball,.lever.dragging .lever-arm {
  transition:none;
}
.lever.pulled {
  --travel:72px;
}
.pull-controls {
  text-align:center;
  max-width:440px;
  width:100%;
  padding:8px 0 0;
}
.pull-controls>p:first-child {
  font-family:Georgia,serif;
  font-style:italic;
  font-size:15px;
  color:var(--muted);
  margin:12px 0 17px;
}
.primary-button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:15px;
  background:var(--ink);
  border:1px solid #332e26;
  color:#fff4dc;
  border-radius:40px;
  width:100%;
  min-height:54px;
  font-weight:600;
  font-size:13px;
  box-shadow:0 3px 0 #251e16;
  transition:transform .15s,background .15s;
}
.primary-button:hover {
  background:#534737;
}
.primary-button:active {
  transform:translateY(2px);
  box-shadow:0 1px 0 #251e16;
}
.primary-button:disabled {
  opacity:.65;
}
.primary-button>span:first-child {
  font-size:20px;
  font-weight:400;
}
.microcopy {
  font-size:9px;
  color:#928773;
  margin:17px 0 0;
}
.scroll-hint {
  font-size:10px;
  color:var(--muted);
  margin:6px 0 0;
}
.scroll-hint span {
  margin-left:7px;
}
.results {
  max-width:930px;
  margin:38px auto 0;
  border-top:1px solid var(--line);
  padding-top:28px;
}
.result-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.result-heading .eyebrow {
  font-size:8px;
  margin-bottom:9px;
}
.results h2 {
  font-size:25px;
}
.results ol {
  list-style:none;
  padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:10px;
  margin:22px 0 14px;
}
.results li {
  display:flex;
  align-items:center;
  gap:10px;
  padding:13px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fffcf5;
  font-size:13px;
}
.results li>span {
  font:10px monospace;
  color:var(--red);
}
.results li small {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:5px;
}
.total {
  font-size:11px;
  color:var(--muted);
  text-align:right;
  line-height:1.7;
}
footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:1240px;
  margin:43px auto 0;
  padding:20px 0;
  border-top:1px solid var(--line);
  font-size:9px;
  color:var(--muted);
}
footer button {
  font-size:9px!important;
}
dialog {
  border:1px solid var(--line);
  border-radius:20px;
  padding:30px;
  max-width:760px;
  width:calc(100% - 30px);
  max-height:86dvh;
  color:var(--ink);
  background:var(--paper);
  box-shadow:0 25px 70px #2e201b44;
}
dialog::backdrop {
  background:#30251c77;
  backdrop-filter:blur(5px);
}
.dialog-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:20px;
}
.dialog-heading .eyebrow {
  font-size:8px;
}
.close-button {
  border:1px solid var(--line);
  border-radius:50%;
  background:#fffcf5;
  font-size:24px;
  width:40px;
  height:40px;
  flex-shrink:0;
}
dialog p {
  font-size:12px;
  line-height:1.8;
  color:var(--muted);
}
input[type=search] {
  border:1px solid var(--line);
  border-radius:8px;
  width:100%;
  background:#fffcf5;
  color:var(--ink);
  padding:12px 14px;
  margin:8px 0 15px;
  font-size:14px;
}
.category-filters {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-bottom:20px;
}
.category-filters button {
  border:1px solid var(--line);
  background:#fffcf5;
  border-radius:20px;
  padding:8px 13px;
  font-size:11px;
  min-height:36px;
}
.category-filters button[aria-pressed=true] {
  background:var(--ink);
  color:var(--cream);
  border-color:var(--ink);
}
.menu-items {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.menu-item {
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid var(--line);
  background:#fffcf5;
  border-radius:10px;
  padding:10px;
}
.menu-item img {
  width:57px;
  height:57px;
  object-fit:cover;
  border-radius:5px;
}
.menu-item h3 {
  font-size:13px;
  margin:0 0 6px;
}
.menu-item p {
  font-size:10px;
  line-height:1.4;
  margin:0;
}
.menu-note {
  font-size:10px!important;
  border-top:1px solid var(--line);
  padding-top:15px;
  margin-top:20px;
}
.credit {
  padding:15px 0;
  border-top:1px solid var(--line);
}
.credit h3 {
  font-size:14px;
  margin:0;
}
.credit p {
  margin:6px 0;
}
.credit a {
  color:var(--red);
}
.error {
  color:var(--red);
  font-size:14px;
  text-align:center;
  max-width:540px;
  padding:15px;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
[hidden] {
  display:none!important;
}
@keyframes settle {
  0% {
    filter:brightness(1.15);
  }
  100% {
    filter:brightness(1);
  }
}
@keyframes blink {
  to {
    opacity:.45;
  }
}
@media(min-width:1400px) {
  .intro {
    padding-top:54px;
  }
  .table-settings {
    margin-bottom:43px;
  }
}
@media(max-width:700px) {
  .site-header {
    padding:19px 20px;
  }
  .brand {
    font-size:18px;
  }
  .site-header .text-button {
    font-size:10px;
  }
  main {
    padding:0 16px;
  }
  .intro {
    padding:34px 0 26px;
  }
  h1 {
    font-size:38px;
    letter-spacing:-1.7px;
  }
  .subtitle {
    font-size:11px;
    max-width:290px;
    margin:auto;
  }
  .eyebrow {
    font-size:8px;
    letter-spacing:1.5px;
  }
  .table-settings {
    margin-bottom:30px;
  }
  .setting {
    padding:17px;
  }
  .setting label {
    font-size:8px;
    letter-spacing:.6px;
  }
  .count-setting label {
    flex-wrap:wrap;
    gap:5px;
  }
  .count-setting label output {
    font-size:22px;
  }
  .count-setting small {
    display:none;
  }
  .select-wrap select {
    font-size:23px;
  }
  .range-labels {
    font-size:8px;
  }
  .range-labels b {
    display:none;
  }
  .machine-stage {
    margin-right:36px;
    width:min(var(--machine-width),calc(100% - 42px));
  }
  .machine {
    padding:0 16px 17px;
    border-radius:23px;
  }
  .marquee {
    height:76px;
    gap:14px;
  }
  .marquee strong {
    font-size:10px;
    letter-spacing:1.8px;
  }
  .marquee small {
    font-size:6px;
    letter-spacing:1.3px;
  }
  .marquee>span {
    font-size:17px;
  }
  .machine-bottom {
    justify-content:center;
    margin-top:16px;
  }
  .serial {
    display:none;
  }
  .machine-status {
    font-size:7px;
    letter-spacing:.4px;
    padding:8px;
  }
  .reel-frame {
    padding:6px;
  }
  .reels {
    gap:6px;
    padding:5px;
  }
  .lever {
    right:-45px;
    transform:scale(.88);
    transform-origin:left center;
  }
  .pull-controls {
    max-width:340px;
    padding-top:6px;
  }
  .pull-controls>p:first-child {
    font-size:14px;
  }
  .microcopy {
    font-size:8px;
  }
  .scroll-hint {
    font-size:9px;
  }
  .results {
    margin-top:30px;
  }
  .results h2 {
    font-size:22px;
  }
  .results ol {
    grid-template-columns:1fr 1fr;
  }
  .results li {
    font-size:11px;
    padding:10px;
  }
  .result-heading .text-button {
    font-size:10px;
    flex-shrink:0;
  }
  footer {
    margin:30px 20px 0;
    font-size:8px;
    gap:15px;
  }
  dialog {
    padding:22px;
  }
  .menu-items {
    grid-template-columns:1fr;
  }
  .menu-item img {
    width:65px;
    height:58px;
  }
  dialog h2 {
    font-size:25px;
  }
}
@media(max-width:370px) {
  h1 {
    font-size:32px;
  }
  .setting {
    padding:13px;
  }
  .setting label {
    font-size:7px;
  }
  .range-labels {
    font-size:7px;
  }
  .marquee {
    gap:8px;
  }
  .marquee strong {
    font-size:9px;
  }
  .marquee small {
    font-size:5px;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}
