/* Menu page and bowl builder */
.builder-sec { padding-top: clamp(48px, 6vw, 80px); }
.builder { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: start; }
.stage-col { position: sticky; top: calc(var(--hdr) + 20px); }
.stage { padding: 24px 24px 22px; display: grid; gap: 10px; overflow: hidden; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(44, 246, 255, .06), transparent 30%); }
.stage-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.stage-code { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.stage-code [data-code] { color: var(--cyan); }
.bowl-name { margin-top: 6px; font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; color: var(--text); text-shadow: 0 0 18px rgba(255, 46, 151, .55); min-height: 2.2em; }
.bowl-name.swap { animation: name-swap .5s steps(4, end); }
@keyframes name-swap { 0% { opacity: .2; transform: translateX(-3px); color: var(--cyan); } 50% { opacity: .8; transform: translateX(2px); color: var(--mag); } 100% { opacity: 1; transform: none; } }
.stage-price { text-align: right; flex-shrink: 0; }
.stage-price span { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.stage-price b { font-family: var(--mono); font-weight: 400; font-size: 44px; line-height: 1; color: var(--yel); text-shadow: var(--glow-y); }
.bowl { width: 100%; max-width: 520px; height: auto; margin: -8px auto -4px; overflow: visible; }
.broth-fill { fill: var(--broth, #ecd7b4); transition: fill .7s var(--ease); }
.pour { opacity: 0; transform-box: fill-box; transform-origin: center; }
.pour.go { animation: pour .9s var(--ease) both; }
@keyframes pour { 0% { opacity: .7; transform: scale(.15); } 100% { opacity: 0; transform: scale(1); } }
.steam path { fill: none; stroke: var(--steam, rgba(255, 255, 255, .35)); stroke-width: 4; stroke-linecap: round; opacity: 0; animation: steam 3.6s var(--ease) infinite; transition: stroke .6s; }
.steam path:nth-child(2) { animation-delay: 1.2s; } .steam path:nth-child(3) { animation-delay: 2.4s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(24px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-26px); } }
.bowl-jp { font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif; font-size: 22px; font-weight: 700; letter-spacing: .3em; fill: #ff5aad; filter: drop-shadow(0 0 6px rgba(255, 46, 151, .8)); }
.rim { filter: drop-shadow(0 0 6px rgba(255, 46, 151, .8)); }
.sticks { filter: drop-shadow(0 0 5px rgba(44, 246, 255, .7)); }
.nd, .tp { opacity: 0; transform: translateY(-46px); transition: opacity .35s var(--ease), transform .65s var(--ease-back); }
.nd.on, .tp.on { opacity: 1; transform: none; }
.oil circle { transition: opacity .5s var(--ease); }

.meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.meter { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: center; }
.meter span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.meter b { font-weight: 400; font-size: 14px; color: var(--text); }
.bar { grid-column: 1 / -1; position: relative; height: 12px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .09) 0 calc(10% - 3px), transparent calc(10% - 3px) 10%); }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; --c: var(--mag);
  background: repeating-linear-gradient(90deg, var(--c) 0 calc(var(--seg) - 3px), transparent calc(var(--seg) - 3px) var(--seg));
  --seg: 10%; box-shadow: none; filter: drop-shadow(0 0 5px var(--c)); transition: width .6s var(--ease); }
.meter[data-k="heat"] .bar i { --c: #ff4a5c; }
.meter[data-k="rich"] .bar i { --c: var(--yel); }
.meter[data-k="crunch"] .bar i { --c: var(--cyan); }
.stage-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }

/* Controls */
.controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
.ctl { margin: 0; padding: 0; border: 0; min-width: 0; }
.ctl legend { display: flex; align-items: baseline; gap: 12px; padding: 0; margin-bottom: 14px; font-weight: 600; font-size: 24px; line-height: 1.2; }
.ctl legend .mono { font-size: 14px; color: var(--mag); text-shadow: 0 0 8px rgba(255, 46, 151, .6); }
.hint { margin: -6px 0 12px; color: var(--mut); font-size: 15px; }
.opts { display: grid; gap: 10px; }
.broths { grid-template-columns: 1fr 1fr; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt > span {
  display: grid; gap: 2px; height: 100%; padding: 14px 16px 14px 46px; position: relative;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.opt > span::before { content: ""; position: absolute; left: 16px; top: 18px; width: 16px; height: 16px; border-radius: 50%; background: var(--sw, var(--line-2)); box-shadow: 0 0 0 2px rgba(7, 6, 12, 1), 0 0 0 3px var(--line-2); transition: box-shadow .3s var(--ease); }
.opt b { font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 8px; }
.opt b em { font-style: normal; font-family: var(--mono); font-weight: 400; font-size: 15px; color: var(--yel); }
.opt small { color: var(--mut); font-size: 14px; line-height: 1.4; }
.opt:hover > span { border-color: rgba(44, 246, 255, .45); background: rgba(44, 246, 255, .04); }
.opt input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.opt input:checked + span { border-color: var(--mag); background: rgba(255, 46, 151, .09); box-shadow: inset 0 0 0 1px var(--mag), 0 0 22px -6px var(--mag); }
.opt input:checked + span::before { box-shadow: 0 0 0 2px rgba(7, 6, 12, 1), 0 0 0 3px var(--mag), 0 0 12px var(--mag); }

.chips .opt > span { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-weight: 500; font-size: 15px; line-height: 1.2; }
.chips .opt > span::before { position: static; flex-shrink: 0; width: 10px; height: 10px; border-radius: 0; background: transparent; box-shadow: inset 0 0 0 1.5px var(--dim); transform: rotate(45deg); }
.chips .opt em { font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.chips .opt input:checked + span { border-color: var(--cyan); background: rgba(44, 246, 255, .1); box-shadow: inset 0 0 0 1px var(--cyan), 0 0 18px -6px var(--cyan); }
.chips .opt input:checked + span::before { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.chips .opt input:checked + span em { color: var(--text); }
.chips .opt:active > span { transform: scale(.97); }
.chips[data-group="noodle"] .opt input:checked + span { border-color: var(--mag); background: rgba(255, 46, 151, .1); box-shadow: inset 0 0 0 1px var(--mag), 0 0 18px -6px var(--mag); }
.chips[data-group="noodle"] .opt input:checked + span::before { background: var(--mag); box-shadow: 0 0 8px var(--mag); }

/* Heat slider */
.heat { display: grid; gap: 8px; }
.heat input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: pointer; margin: 0; }
.heat input[type="range"]::-webkit-slider-runnable-track { height: 8px; background: linear-gradient(90deg, var(--cyan), var(--yel) 50%, #ff4a5c 80%, var(--mag)); box-shadow: 0 0 12px rgba(255, 46, 151, .35); }
.heat input[type="range"]::-moz-range-track { height: 8px; background: linear-gradient(90deg, var(--cyan), var(--yel) 50%, #ff4a5c 80%, var(--mag)); }
.heat input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; background: var(--bg); border: 2px solid var(--text); transform: rotate(45deg); box-shadow: 0 0 0 3px var(--bg), 0 0 14px rgba(255, 255, 255, .5); transition: box-shadow .3s var(--ease); }
.heat input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; background: var(--bg); border: 2px solid var(--text); border-radius: 0; transform: rotate(45deg); }
.heat input[type="range"]:focus-visible { outline: none; }
.heat input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--cyan), 0 0 18px var(--cyan); }
.heat input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 18px rgba(255, 46, 151, .8); }
.heat-scale { display: flex; justify-content: space-between; padding: 0 6px; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.heat-out { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.heat-out::before { content: "Heat level / "; color: var(--dim); }

.receipt { padding: 20px 22px; }
.lines { display: grid; gap: 4px; margin: 10px 0 12px; font-family: var(--mono); font-size: 14px; color: var(--mut); }
.lines li { display: flex; gap: 8px; align-items: baseline; }
.lines li::after { content: attr(data-p); color: var(--text); }
.lines li span { flex: 1 1 0; width: 0; min-width: 0; overflow: hidden; white-space: nowrap; }
.lines li span::after { content: " ................................................................"; color: rgba(255, 255, 255, .18); }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px dashed var(--line-2); font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mut); }
.receipt-total b { font-weight: 400; font-size: 26px; color: var(--yel); }

/* Full menu */
.menu-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.menu-col h3 { font-size: 26px; padding-bottom: 14px; border-bottom: 2px solid var(--mag); box-shadow: 0 6px 12px -10px var(--mag); margin-bottom: 8px; }
.menu-col:nth-child(2) h3 { border-color: var(--cyan); box-shadow: 0 6px 12px -10px var(--cyan); }
.menu-col:nth-child(3) h3 { border-color: var(--yel); box-shadow: 0 6px 12px -10px var(--yel); }
.mlist li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease), background .4s var(--ease); }
.mlist li:hover { padding-left: 8px; background: linear-gradient(90deg, rgba(255, 255, 255, .04), transparent); }
.mi { display: grid; gap: 2px; font-weight: 600; font-size: 18px; line-height: 1.3; }
.mi small { font-weight: 400; font-size: 15px; color: var(--mut); }
.mlist b { font-family: var(--mono); font-weight: 400; font-size: 18px; color: var(--yel); }

/* Order modal */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(4, 3, 8, .74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s var(--ease); overflow-y: auto; }
.modal.on { opacity: 1; }
.modal-card { width: min(620px, 100%); padding: 34px 32px 30px; transform: translateY(18px) scale(.98); transition: transform .5s var(--ease); background: linear-gradient(180deg, #16112a, #0b0915); }
.modal.on .modal-card { transform: none; }
.modal-card h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 14px 0 12px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line-2); cursor: pointer; transition: border-color .3s, color .3s; }
.modal-x:hover { border-color: var(--mag); color: var(--mag); }
.order-sum { margin-bottom: 22px; padding: 10px 12px; border-left: 2px solid var(--cyan); background: rgba(44, 246, 255, .06); font-size: 14px; color: var(--mut); }
.order-sum b { color: var(--text); font-weight: 400; }
.order-go { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 32px; }
.order-pay { font-size: 13px; color: var(--dim); }
.ticket {
  margin: 18px 0 32px; padding: 20px 22px; min-height: 280px; max-height: 52vh; overflow: auto; white-space: pre; tab-size: 2;
  font-family: var(--mono); font-size: 14px; line-height: 1.6; color: #b9ffcc;
  background: #04070a; border: 1px solid rgba(61, 255, 154, .35); box-shadow: inset 0 0 40px rgba(61, 255, 154, .08), 0 0 24px -8px rgba(61, 255, 154, .5);
  text-shadow: 0 0 6px rgba(61, 255, 154, .5);
}
.ticket .cur { display: inline-block; width: .6em; height: 1.1em; vertical-align: -2px; background: #b9ffcc; animation: blink 1s steps(1) infinite; }

/* House bowl presets, plant-based tags */
.ctl-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; font-weight: 600; font-size: 24px; line-height: 1.2; }
.ctl-h .mono { font-size: 14px; color: var(--mag); text-shadow: 0 0 8px rgba(255, 46, 151, .6); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.preset { display: inline-flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); cursor: pointer; font-size: 15px; text-align: left; transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease); }
.preset b { font-weight: 600; }
.preset em { font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--yel); }
.preset:hover { border-color: rgba(44, 246, 255, .45); }
.preset[aria-pressed="true"] { border-color: var(--yel); background: rgba(238, 255, 65, .07); box-shadow: inset 0 0 0 1px var(--yel), 0 0 18px -6px var(--yel); }
.np { display: none; margin-left: 4px; padding: 1px 6px; border: 1px solid rgba(255, 255, 255, .25); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.controls.plant .np { display: inline-block; }
.plant-badge { display: inline-block; margin-top: 8px; padding: 2px 8px; border: 1px solid #3dff9a; color: #3dff9a; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 0 10px -3px #3dff9a; }
.stage-price .plant-badge { display: inline-block; }
.stage-price .plant-badge[hidden] { display: none; }
.diet-note { min-height: 0; margin: 0; font-size: 13px; color: var(--yel); }
.diet-note:empty { display: none; }
.diet-note:not(:empty) { margin-top: 12px; }

/* By time of day */
.tod { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.tod h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; font-size: 26px; margin-bottom: 18px; }
.tod h3 .mono { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 400; }
.tod-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tod-list li { display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; padding: 18px 18px 16px; border: 1px solid var(--line); border-top: 2px solid var(--tc); background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent); box-shadow: 0 -8px 18px -14px var(--tc); }
.tod-list .mono { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.tod-list b { font-weight: 600; font-size: 19px; }
.tod-list small { color: var(--mut); font-size: 15px; line-height: 1.45; }
.tod-list em { font-style: normal; font-family: var(--mono); font-size: 18px; color: var(--yel); }

/* Order modal: eat in or take away */
.mode { margin: 0; padding: 0; border: 0; min-width: 0; }
.mode legend { padding: 0; margin-bottom: 8px; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.mode-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mode-opts label { position: relative; cursor: pointer; }
.mode-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mode-opts span { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); font-weight: 600; font-size: 15px; transition: border-color .3s var(--ease), background .3s var(--ease); }
.mode-opts input:checked + span { border-color: var(--cyan); background: rgba(44, 246, 255, .08); box-shadow: inset 0 0 0 1px var(--cyan); }
.mode-opts input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.book-tip { font-size: 13px; color: var(--mut); }
.book-tip a { color: var(--text); text-underline-offset: 3px; }
@media (max-width: 1100px) { .tod-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tod-list, .mode-opts { grid-template-columns: 1fr; } }

@media (max-width: 1100px) {
  .builder { grid-template-columns: 1fr; }
  .stage-col { position: relative; top: 0; }
  .bowl { max-width: 440px; }
}
@media (max-width: 960px) {
  .menu-cols { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 600px) {
  .stage { padding: 18px 16px; }
  .stage-price b { font-size: 34px; }
  .meters { gap: 10px; }
  .meter span { font-size: 11px; letter-spacing: .08em; }
  .broths { grid-template-columns: 1fr; }
  .stage-actions .btn:not(.ghost) { flex: 1; }
  .modal { padding: 10px; place-items: start center; padding-top: 24px; }
  .modal-card { padding: 28px 18px 22px; }
  .ticket { font-size: 12px; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .nd, .tp { transform: none; }
  .steam path { opacity: .5; }
}
