:root {
  --board: #142b36;
  --board-dark: #0d1e26;
  --ink: #f4f1ea;
  --muted: #a9bcc4;
  --pink: #dd7272;
  --shadow: #221f20;
  --script: 'Kaushan Script', cursive;
  --hand: 'Mali', 'Comic Sans MS', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font-family: var(--hand);
  font-size: 17px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ---------- masthead: logo inside a comic speech bubble ---------- */
.masthead {
  padding: 22px 16px 40px;
  background: linear-gradient(#fff 0 42%, transparent 42%);
}
.bubble img { width: 100%; height: auto; }
.bubble {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 4px solid var(--shadow);
  border-radius: 38px;
  padding: 16px 22px;
  box-shadow: 8px 8px 0 var(--shadow);
}
.bubble::after {                     /* the bubble's tail */
  content: '';
  position: absolute;
  left: 22%;
  bottom: -26px;
  width: 30px;
  height: 30px;
  background: #fff;
  border-right: 4px solid var(--shadow);
  border-bottom: 4px solid var(--shadow);
  transform: skewY(40deg) rotate(10deg);
  box-shadow: 6px 6px 0 var(--shadow);
}

/* ---------- menu board ---------- */
.menu {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 8px;
}
@media (min-width: 860px) {
  .menu { columns: 2; column-gap: 56px; }
}

.status { text-align: center; color: var(--muted); padding: 40px 0; }
.status button {
  font: inherit; color: #fff; background: var(--pink); border: 0; border-radius: 999px;
  padding: 8px 18px; margin-top: 10px; cursor: pointer;
}

.cat {
  break-inside: avoid;
  padding: 10px 0 26px;
}

.cat-banner { margin: 0; }
.banner {
  width: auto;
  max-width: min(100%, 440px);
  max-height: 190px;
  margin: 0 0 8px -6px;
}

.cat-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  margin: 8px 0 14px;
  color: var(--c, #e8b04a);
  text-shadow: 3px 4px 0 var(--shadow);
  transform: rotate(-4deg);
  transform-origin: left center;
}

.items { list-style: none; margin: 0; padding: 0; }

.item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 5px 0;
}
.item.has-detail { cursor: pointer; }

.thumb {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .85);
  box-shadow: 2px 3px 0 var(--shadow);
  background: var(--board-dark);
}

.item-main { flex: 1; min-width: 0; }

.line {
  display: flex;
  align-items: baseline;
}
.name { letter-spacing: .02em; }
.dots {
  flex: 1;
  min-width: 18px;
  margin: 0 6px;
  border-bottom: 2px dotted rgba(244, 241, 234, .55);
  transform: translateY(-5px);
}
.price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

.desc {
  margin: 1px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.3;
}

.note {
  margin: 8px 0 0;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}

.interlude {
  break-inside: avoid;
  margin: 6px auto 28px;
  width: min(80%, 340px);
  transform: rotate(var(--tilt, -2deg));
  filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, .25));
}

.foot {
  text-align: center;
  color: var(--muted);
  font-family: var(--script);
  font-size: 26px;
  padding: 12px 16px 40px;
}
.foot p { margin: 0; }

/* ---------- item detail sheet ---------- */
.detail {
  width: min(92vw, 440px);
  padding: 0;
  border: 4px solid var(--shadow);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--shadow);
  background: #fff;
  color: var(--shadow);
  overflow: hidden;
}
.detail::backdrop { background: rgba(8, 18, 23, .72); }
.detail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eee; }
.detail img[hidden] { display: none; }
.detail-body { padding: 14px 20px 20px; }
.detail h3 { font-family: var(--script); font-weight: 400; font-size: 30px; margin: 0 0 6px; color: #b84a4a; }
.detail p { margin: 0 0 8px; }
.detail-price { font-weight: 600; font-size: 20px; }
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid var(--shadow);
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
