/* What's for Dinner? 3D — HUD styling. Same night-purple palette + dish identity
   colors as the 2D game; here the UI floats over a full-screen WebGL canvas. */
:root {
  --bg: #1b1430; --card: #281d46e6; --card2: #33265c; --ink: #f6f1ff;
  --muted: #b7a9d8; --line: #4a3585; --gold: #ffce5c; --gold-deep: #e0a92e;
  --good: #5fd6a0; --bad: #ff7a8a; --warn: #ffb454; --accent: #8a6cf0;
  --d0: #f0b24e; --d0a: #ffd98a; --d0b: #ef9f3a; --d0ink: #4a3206;
  --d1: #46bcae; --d1a: #8fe3d6; --d1b: #38ad9f; --d1ink: #06352f;
  --d2: #e2708a; --d2a: #f5a8bb; --d2b: #d55b78; --d2ink: #47101f;   /* dish 3 — coral */
  --d3: #6cbf5a; --d3a: #a5e394; --d3b: #57a848; --d3ink: #103b0d;   /* dish 4 — leaf  */
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font: 15px/1.45 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink); background: var(--bg);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#anchors { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#hud.screen-on { pointer-events: auto; overflow-y: auto; background: radial-gradient(120% 80% at 50% -10%, #2a1d4dee 0%, #1b1430f5 55%); }
#hud > * { pointer-events: auto; }

.center { text-align: center; } .muted { color: var(--muted); }
.good { color: var(--good); } .bad { color: var(--bad); } .warn { color: var(--warn); }

.btn {
  display: inline-block; border: 0; border-radius: 14px; padding: 13px 22px; font-size: 1.02rem; font-weight: 800;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #3a2700;
  box-shadow: 0 4px 14px rgba(224,169,46,.35); cursor: pointer;
}
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--gold); border: 1.5px solid var(--gold-deep); box-shadow: none; }

/* ── icons ── */
.ico { display: inline-flex; width: 34px; height: 34px; position: relative; }
.ico svg, .glyph { width: 100%; height: 100%; }
.ico.sm { width: 22px; height: 22px; }
.ico.plated { background: #f3ecff22; border-radius: 50%; padding: 4px; }
.dish-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ── intro / cuisine screens ── */
.screen { max-width: 560px; margin: 0 auto; padding: 40px 16px 48px; text-align: center; }
.intro-title { font-size: 2rem; margin: 18px 0 6px; }
.preview-badge { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: .74rem; font-weight: 800;
  background: rgba(138,108,240,.2); border: 1px solid var(--accent); color: #cfc2ff; }
.preview-badge-sep { margin: 0 6px; opacity: .5; }
.preview-badge-tag { font-weight: 700; letter-spacing: .3px; text-transform: uppercase; font-size: .66rem; opacity: .82; }
.intro-hook { font-size: 1.12rem; font-weight: 800; margin: 18px 10px 4px; }
.intro-lead { font-size: .92rem; color: var(--muted); margin: 0 16px 14px; }
.pass-note { font-size: .74rem; color: var(--muted); margin-top: 12px; } .pass-note b { color: var(--gold); }
.dish-marquee { overflow: hidden; margin: 10px -16px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-track { display: flex; gap: 14px; width: max-content; animation: mq 36s linear infinite; padding: 6px 0; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq-chip { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 86px; }
.mq-plate .ico { width: 56px; height: 56px; }
.mq-name { font-size: .64rem; color: var(--muted); line-height: 1.2; }
.day-head h1 { font-size: 1.4rem; margin: 8px 0; }
.tip { font-size: .85rem; margin: 4px 14px 14px; }
.cuisine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.cuisine-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--card2); color: var(--ink); cursor: pointer; font: inherit; }
.cuisine-card.all { grid-column: 1 / -1; border-color: var(--gold); }
.cz-dishes { display: flex; gap: 6px; } .cz-plate .ico { width: 44px; height: 44px; }
.cz-l { font-weight: 800; font-size: .86rem; }

/* ── shared overlay chrome ── */
.top-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) 12px 8px; }
.bar-title { font-size: 1.15rem; margin: 0; text-shadow: 0 2px 8px #0008; }
.day-pill { background: var(--gold); color: #3a2700; font-weight: 800; font-size: .8rem; padding: 3px 11px; border-radius: 20px; flex-shrink: 0; }
.cz-chip { margin-left: auto; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--card); color: var(--gold); font-size: .76rem; font-weight: 700; cursor: pointer; }
.backbtn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); font-size: 1.2rem; cursor: pointer; flex-shrink: 0; }
.bottom-dock { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px max(14px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: linear-gradient(180deg, transparent, #140e26cc 30%); }

/* ── homecoming speech bubbles (3D-anchored) ── */
.anchor { position: fixed; left: 0; top: 0; transition: opacity .3s; will-change: transform; max-width: 250px; }
.speech { display: flex; flex-direction: column; gap: 6px; background: #fffdf4; color: #3a2f22; border-radius: 14px;
  padding: 10px 12px; box-shadow: 0 6px 18px #0007; font-size: .82rem; line-height: 1.35; position: relative; margin-bottom: 12px; }
.speech::after { content: ""; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  border: 9px solid transparent; border-top-color: #fffdf4; border-bottom: 0; }
.bub-who { display: flex; align-items: center; gap: 6px; font-size: .78rem; }
.bub-face { width: 22px; height: 22px; display: inline-flex; } .bub-face svg { width: 100%; height: 100%; }
.role-tag { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: #a5772a; font-weight: 800; }
.dish-chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: #f4e8cc;
  border-radius: 20px; padding: 3px 10px 3px 4px; font-weight: 700; font-size: .76rem; }
.anchor .react-bubble { background: #fffdf4; color: #3a2f22; border-radius: 14px; padding: 8px 12px; font-weight: 700;
  font-size: .86rem; box-shadow: 0 6px 18px #0007; position: relative; margin-bottom: 12px; }
.anchor .react-bubble::after { content: ""; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  border: 9px solid transparent; border-top-color: #fffdf4; border-bottom: 0; }
.anchor .react-bubble.angry { background: #ffe3e3; } .anchor .react-bubble.angry::after { border-top-color: #ffe3e3; }

/* ── plan phase ── */
.plan-top { align-items: flex-start; }
.plan-top .timeline { flex: 1; }
.timeline { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px 4px; backdrop-filter: blur(6px); }
.lane { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 6px; margin: 2px 0; }
.lane-h { display: flex; align-items: center; gap: 3px; font-size: .58rem; color: var(--muted); font-weight: 700; }
.lane-ic { width: 14px; height: 14px; display: inline-flex; } .lane-ic svg { width: 100%; height: 100%; }
.track { position: relative; height: 20px; background: #00000030; border-radius: 6px; overflow: hidden; }
.blk { position: absolute; top: 2px; bottom: 2px; border-radius: 5px; display: flex; align-items: center; gap: 3px;
  padding: 0 4px; font-size: .6rem; font-weight: 700; overflow: hidden; white-space: nowrap; cursor: pointer; }
.blk.sel { outline: 2px solid #fff; box-shadow: 0 0 10px var(--gold); z-index: 2; animation: selPulse 1.1s ease-in-out infinite; }
@keyframes selPulse { 50% { box-shadow: 0 0 16px var(--gold); } }
.blk-n { flex-shrink: 0; min-width: 12px; height: 12px; border-radius: 50%; background: #00000038;
  display: inline-flex; align-items: center; justify-content: center; font-size: .54rem; font-weight: 900; }
.blk.d0 { background: linear-gradient(180deg, var(--d0a), var(--d0b)); color: var(--d0ink); }
.blk.d1 { background: linear-gradient(180deg, var(--d1a), var(--d1b)); color: var(--d1ink); }
.blk.d2 { background: linear-gradient(180deg, var(--d2a), var(--d2b)); color: var(--d2ink); }
.blk.d3 { background: linear-gradient(180deg, var(--d3a), var(--d3b)); color: var(--d3ink); }
.blk.tweak { opacity: .85; }
.blk.clear { background: repeating-linear-gradient(135deg, #d8cbb6, #d8cbb6 6px, #c8b9a2 6px, #c8b9a2 12px); color: #4a3a26; }
/* a mega-step's passive tail: the dish finishing on its own (not tappable) */
.blk.tail { opacity: .45; border: 1px dashed #ffffff66; cursor: default; }
.blk.tail .blk-n { background: none; }
/* stove-full chooser */
.pot-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.pot-row { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); background: var(--card2);
  border-radius: 12px; padding: 9px 12px; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.pot-row:hover { border-color: var(--gold); }
.pot-dot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
.pot-dot.d0 { background: var(--d0); } .pot-dot.d1 { background: var(--d1); }
.pot-dot.d2 { background: var(--d2); } .pot-dot.d3 { background: var(--d3); }
.pot-meta { display: flex; flex-direction: column; min-width: 0; font-size: .82rem; }
.pot-meta span { color: var(--muted); font-size: .68rem; }
.pot-go { margin-left: auto; color: var(--gold); font-weight: 800; font-size: .78rem; flex-shrink: 0; }
.blk-l { overflow: hidden; text-overflow: ellipsis; } .blk-t { margin-left: auto; opacity: .75; }
.tl-overlay { position: absolute; inset: 0; pointer-events: none; }
.tl-body { position: relative; }
.flag { position: absolute; top: -2px; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.flag::before { content: ""; flex: 1; width: 2px; background: currentColor; opacity: .55; }
.flag.ok { color: var(--good); } .flag.miss { color: var(--bad); }
.flag-face { width: 18px; height: 18px; order: -1; } .flag-face svg { width: 100%; height: 100%; }
.flag-m { font-size: .56rem; font-weight: 800; }
.mk-mark { position: absolute; top: 0; bottom: 0; border-left: 2px dashed var(--gold); }
.mk-mark span { position: absolute; top: -2px; left: 3px; font-size: .6rem; font-weight: 800; color: var(--gold); }
.playhead { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; box-shadow: 0 0 10px #ffce5c; border-radius: 2px; }

.coach { position: absolute; top: 96px; left: 12px; right: 12px; margin: 0 auto; max-width: 560px; display: flex; gap: 10px;
  align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; font-size: .78rem; backdrop-filter: blur(6px); }
.coach.empty { justify-content: center; color: var(--muted); }
.coach-mk b { font-size: 1.05rem; color: var(--gold); } .coach-mk small { color: var(--muted); margin-left: 2px; }
.coach-eat { display: flex; gap: 8px; }
.eat { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.eat.ok { color: var(--good); } .eat.late { color: var(--bad); }
.eat-face { width: 20px; height: 20px; } .eat-face svg { width: 100%; height: 100%; }
.coach-tip { margin-left: auto; color: var(--muted); } .coach-tip.warn { color: var(--warn); }
.coach-fix { margin-left: auto; border: 1.5px solid var(--gold-deep); background: rgba(255,206,92,.12);
  color: var(--gold); border-radius: 10px; padding: 4px 10px; font: inherit; font-size: .72rem;
  font-weight: 800; cursor: pointer; }
.coach-fix:hover { background: rgba(255,206,92,.22); }
/* the reorder bar (replaces the coach row while a timeline block is selected) */
.order-pop { justify-content: center; }
.op-chip { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-size: .68rem; font-weight: 900; flex-shrink: 0; }
.op-chip.d0 { background: var(--d0); color: var(--d0ink); } .op-chip.d1 { background: var(--d1); color: var(--d1ink); }
.op-chip.d2 { background: var(--d2); color: var(--d2ink); } .op-chip.d3 { background: var(--d3); color: var(--d3ink); }
.op-label { font-weight: 700; font-size: .76rem; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-btn { padding: 5px 10px; font-size: .74rem; border-radius: 10px; }
.op-mk { color: var(--gold); font-weight: 900; font-size: .82rem; }

.tray { gap: 6px; }
.palette { display: flex; gap: 8px; width: 100%; max-width: 720px; flex-wrap: wrap;
  max-height: 42vh; overflow-y: auto; scrollbar-width: thin; }   /* 4 dishes stay scrollable, kitchen stays visible */
.palette .dish-plan { flex: 1 1 46%; min-width: 300px; }
.dish-plan { flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; backdrop-filter: blur(8px); }
.dish-plan.d0 { border-top: 3px solid var(--d0); } .dish-plan.d1 { border-top: 3px solid var(--d1); }
.dish-plan.d2 { border-top: 3px solid var(--d2); } .dish-plan.d3 { border-top: 3px solid var(--d3); }
.dp-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.dp-plate .ico { width: 34px; height: 34px; }
.dp-meta { min-width: 0; display: flex; flex-direction: column; }
.dp-meta b { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-sub { font-size: .64rem; color: var(--muted); }
.dp-status { margin-left: auto; font-size: .64rem; font-weight: 800; color: var(--muted); flex-shrink: 0; }
.dp-status.good { color: var(--good); }
.dp-undo { border: 1px solid var(--line); background: var(--card2); color: var(--gold); border-radius: 8px; padding: 2px 7px; cursor: pointer; }
.dp-face { width: 24px; height: 24px; flex-shrink: 0; } .dp-face svg { width: 100%; height: 100%; }
.chunk-strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.tile { position: relative; flex: 0 0 108px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  border-radius: 10px; padding: 6px 7px; border: 1.5px solid var(--line); background: var(--card2); color: var(--ink);
  font: inherit; text-align: left; cursor: grab; }
.tile-ic { width: 22px; height: 22px; } .tile-ic svg { width: 100%; height: 100%; }
.tile-l { font-size: .62rem; font-weight: 700; line-height: 1.2; height: 2.4em; overflow: hidden; }
.tile-meta { font-size: .6rem; color: var(--muted); }
.tile.ready.d0 { border-color: var(--d0); box-shadow: 0 0 9px #f0b24e55; }
.tile.ready.d1 { border-color: var(--d1); box-shadow: 0 0 9px #46bcae55; }
.tile.ready.d2 { border-color: var(--d2); box-shadow: 0 0 9px #e2708a55; }
.tile.ready.d3 { border-color: var(--d3); box-shadow: 0 0 9px #6cbf5a55; }
.tile.done { opacity: .45; cursor: default; }
.tile.locked { opacity: .55; cursor: pointer; }
.tile-grab { position: absolute; top: 4px; right: 5px; font-size: .56rem; color: var(--gold); font-weight: 800; }
.tile-chk { position: absolute; top: 3px; right: 6px; color: var(--good); font-weight: 900; }
.tile-ord { position: absolute; top: 4px; right: 5px; width: 16px; height: 16px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: .62rem; font-weight: 900; }
.tile.d0 .tile-ord { background: var(--d0); color: var(--d0ink); }
.tile.d1 .tile-ord { background: var(--d1); color: var(--d1ink); }
.tile.d2 .tile-ord { background: var(--d2); color: var(--d2ink); }
.tile.d3 .tile-ord { background: var(--d3); color: var(--d3ink); }
.tile-lock { position: absolute; top: 3px; right: 5px; font-size: .66rem; }
.drag-ghost { position: fixed; z-index: 100; pointer-events: none; transform: translate(-50%, -80%) rotate(-3deg) scale(1.06);
  opacity: .92; box-shadow: 0 14px 30px #000a; cursor: grabbing; }
.drag-src { opacity: .35; }
.rack-label { font-size: .62rem; color: var(--muted); margin: 6px 2px 4px; }
.spicerack { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.shaker { display: flex; flex-direction: column; align-items: center; gap: 1px; border-radius: 10px; padding: 4px 6px;
  border: 1.5px solid var(--line); background: var(--card2); color: var(--ink); font: inherit; cursor: pointer; flex: 0 0 auto; }
.shaker .ico { width: 20px; height: 20px; }
.shaker.on { border-color: var(--good); box-shadow: 0 0 8px #5fd6a066; }
.sh-l { font-size: .56rem; font-weight: 700; max-width: 64px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-c { font-size: .54rem; color: var(--muted); }
.plan-controls { flex-direction: row; display: flex; gap: 8px; width: 100%; max-width: 720px; }
.plan-controls .serve { flex: 1; }
.sm2 { padding: 10px 14px; }

/* ── step modal ── */
.modal-back { position: fixed; inset: 0; background: #0009; display: flex; align-items: center; justify-content: center; z-index: 60; }
.modal { width: min(420px, 92vw); max-height: 80vh; overflow-y: auto; background: #2b204d; border: 1px solid var(--line);
  border-radius: 18px; padding: 16px; position: relative; }
.modal-x { position: absolute; top: 10px; right: 10px; border: 0; background: var(--card2); color: var(--ink);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.m-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.m-face { width: 34px; height: 34px; } .m-face svg { width: 100%; height: 100%; }
.m-title { display: flex; flex-direction: column; } .m-sub { font-size: .72rem; color: var(--muted); }
.m-tags { display: flex; gap: 8px; align-items: center; font-size: .74rem; margin-bottom: 8px; }
.m-dur { color: var(--gold); font-weight: 800; }
.mstate.good { color: var(--good); } .mstate.rdy { color: var(--gold); } .mstate.lck { color: var(--muted); }
.msteps { margin: 0; padding: 0 0 0 2px; list-style: none; }
.mstep { display: flex; gap: 9px; padding: 7px 0; border-top: 1px solid #ffffff14; font-size: .82rem; }
.mstep-n { width: 20px; height: 20px; border-radius: 50%; background: var(--card2); color: var(--gold);
  font-size: .68rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mstep-meta { display: block; font-size: .68rem; color: var(--muted); }
.m-actions { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; }

/* ── serving ── */
.cook-note { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 8px 18px; font-size: .88rem; backdrop-filter: blur(6px); }
.cook-note b { color: var(--gold); }

/* ── verdict ── */
.verdict-dock { position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: min(560px, 100vw);
  background: linear-gradient(180deg, #1f163ae8, #140e26f2); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 20px 20px 0 0; padding: 6px 14px max(14px, env(safe-area-inset-bottom)); backdrop-filter: blur(10px);
  animation: dockUp .5s .9s ease-out backwards; transition: transform .5s cubic-bezier(.3, 1, .3, 1); }
@keyframes dockUp { from { transform: translate(-50%, 105%); } }
/* folded: the dock tucks down to just its grab handle so the 3D reactions are the show */
.verdict-dock.folded { transform: translate(-50%, calc(100% - 44px)); }
.v-grab { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 34px;
  background: none; border: 0; color: var(--muted); font: inherit; font-size: .76rem; font-weight: 700;
  letter-spacing: .04em; cursor: pointer; }
.v-grab:hover { color: var(--ink); }
.v-chev { font-size: .9rem; line-height: 1; }
.v-mini { display: none; color: var(--gold); font-weight: 900; }
.verdict-dock.folded .v-mini { display: inline; }
.v-headline { font-size: 1.3rem; margin: 0 0 2px; text-align: center; }
.v-headline.good { color: var(--good); } .v-headline.warn { color: var(--warn); } .v-headline.bad { color: var(--bad); }
.v-sub { margin: 0 0 10px; font-size: .8rem; }
.tight-chip { color: var(--gold); font-weight: 800; }
.v-cards { display: flex; gap: 8px; flex-wrap: wrap; }
.v-cards .v-card { flex: 1 1 46%; }
.v-card { flex: 1; display: flex; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-width: 0; }
.v-card.good { border-color: #5fd6a055; } .v-card.bad { border-color: #ff7a8a55; }
.v-face { width: 34px; height: 34px; flex-shrink: 0; } .v-face svg { width: 100%; height: 100%; }
.v-meta { display: flex; flex-direction: column; gap: 2px; font-size: .74rem; min-width: 0; }
.v-sat { font-size: .84rem; } .v-brk { color: var(--muted); font-size: .68rem; }
.flavor-tip { font-size: .66rem; line-height: 1.3; color: var(--muted); }
.flavor-tip.good { color: var(--good); } .flavor-tip.miss { color: var(--warn); }
.score-final { text-align: center; margin: 10px 0 4px; }
.score-final .big { font-size: 2rem; font-weight: 900; color: var(--gold); }
.score-final.bad .big { color: var(--bad); }
.stars { display: block; font-size: 1.1rem; color: var(--gold); letter-spacing: .2em; }
.gate-note { font-size: .78rem; margin: 4px 0; }
.v-controls { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }

/* ── creator entries + emoji dishes ── */
.intro-creator { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.creator-btn { font-size: .84rem; padding: 9px 16px; }
.intro-powered { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px;
  font-size: .74rem; font-weight: 700; letter-spacing: .3px; color: var(--muted); opacity: .85; }
.powered-logo { height: 20px; width: auto; display: block; border-radius: 5px; }
.dish-emoji { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 1.4em; line-height: 1; }

/* ── recipe editor ── */
.editor { max-width: 760px; text-align: left; }
.editor .day-head, .editor .tip, .editor .controls, .editor .ed-sum { text-align: center; }
.ed-meta { display: flex; gap: 10px; margin: 6px 0 12px; }
.ed-field { display: flex; flex-direction: column; gap: 3px; }
.ed-name-field { flex: 1; }
.ed-label { font-size: .68rem; font-weight: 800; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.ed-in { background: var(--card2); border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink);
  font: inherit; padding: 8px 10px; }
.ed-in:focus { outline: none; border-color: var(--accent); }
.ed-icon { width: 64px; text-align: center; font-size: 1.3rem; }
.ed-steps { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.ed-step { display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px 8px; flex-wrap: wrap; }
.ed-n { width: 20px; height: 20px; border-radius: 50%; background: var(--card2); color: var(--gold);
  font-size: .68rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ed-ic { width: 22px; height: 22px; flex-shrink: 0; } .ed-ic svg { width: 100%; height: 100%; }
.ed-method { width: 140px; } .ed-what { flex: 1; min-width: 140px; } .ed-min { width: 62px; }
.ed-unit { font-size: .7rem; color: var(--muted); }
.ed-place { width: 110px; }
.ed-hands { font-size: .66rem; font-weight: 800; color: var(--warn); white-space: nowrap; }
.ed-hands.off { color: var(--good); }
.ed-row-btns { display: flex; gap: 4px; margin-left: auto; }
.ed-b { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--card2);
  color: var(--ink); cursor: pointer; font-size: .8rem; }
.ed-b:disabled { opacity: .3; cursor: default; }
.ed-sum { font-size: .78rem; margin: 8px 0 14px; }
.editor .controls { display: flex; gap: 10px; justify-content: center; }
.intro-privacy { margin-top: 14px; font-size: .68rem; color: var(--muted); }
.intro-privacy code { color: var(--gold); }

/* ── kitchen designer ── */
.design-tip { font-size: .8rem; } .design-tip b { color: var(--gold); }
.prop-tray { display: flex; gap: 8px; overflow-x: auto; width: 100%; max-width: 720px; padding: 4px 2px; }
.prop-chip { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 0 0 76px;
  border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font: inherit; font-size: .68rem; font-weight: 700; padding: 8px 4px; cursor: pointer; }
.prop-chip.on { border-color: var(--gold); box-shadow: 0 0 12px #ffce5c66; }
.prop-emoji { font-size: 1.5rem; line-height: 1; }
.prop-edit { display: flex; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; box-shadow: 0 8px 22px #0008; }
.prop-edit .ed-b { width: 32px; height: 32px; font-size: .95rem; }
.dg-tabs { display: flex; gap: 6px; width: 100%; max-width: 720px; }
.dg-tab { flex: 1; padding: 8px; border-radius: 12px 12px 0 0; border: 1.5px solid var(--line); border-bottom: 0;
  background: var(--card); color: var(--muted); font: inherit; font-weight: 800; font-size: .82rem; cursor: pointer; }
.dg-tab.on { color: var(--gold); border-color: var(--gold-deep); background: var(--card2); }
.prop-chip.hh-add { border-style: dashed; color: var(--gold); }
.hh-panel { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; justify-content: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px;
  width: 100%; max-width: 720px; }
.hh-who { font-weight: 800; font-size: .9rem; }
.hh-field { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.hh-cycle { display: flex; align-items: center; gap: 6px; }
.hh-swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #ffffff44; display: inline-block; }
.hh-style { min-width: 62px; text-align: center; font-size: .76rem; font-weight: 800; color: var(--gold); }
.hh-name { width: 130px; }
.hh-build { width: auto; padding: 0 10px; font-size: .76rem; font-weight: 800; }
.hh-del { border-color: var(--bad); }

/* ── Day-1 tutorial ── */
.tut-card { position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%); width: min(430px, 92vw);
  background: #2b204df5; border: 1.5px solid var(--accent); border-radius: 18px; padding: 14px 18px 14px;
  z-index: 70; box-shadow: 0 18px 50px #000a; text-align: center; animation: tutIn .35s ease-out backwards; }
.tut-card.low { top: auto; bottom: 118px; transform: translateX(-50%); }
.tut-card.high { top: 64px; transform: translateX(-50%); }
@keyframes tutIn { from { opacity: 0; margin-top: 14px; } }
.tut-dots { display: flex; gap: 5px; justify-content: center; margin-bottom: 8px; }
.tut-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.tut-dots span.on { background: var(--gold); }
.tut-dots span.done { background: var(--accent); }
.tut-title { display: block; font-size: 1.05rem; margin-bottom: 5px; }
.tut-body { margin: 0 0 12px; font-size: .87rem; line-height: 1.5; }
.tut-body b { color: var(--gold); }
.tut-actions { display: flex; align-items: center; justify-content: center; gap: 14px; }
.tut-go { padding: 10px 18px; font-size: .92rem; }
.tut-skip { background: none; border: 0; color: var(--muted); font: inherit; font-size: .74rem;
  cursor: pointer; text-decoration: underline; }
.tut-skip:hover { color: var(--ink); }
.tut-bar { position: absolute; top: 148px; left: 50%; transform: translateX(-50%); display: flex; align-items: center;
  gap: 14px; background: #2b204df5; border: 1.5px solid var(--accent); border-radius: 20px; padding: 8px 18px;
  z-index: 70; font-size: .88rem; font-weight: 700; box-shadow: 0 10px 30px #0008; max-width: 92vw;
  animation: tutIn .35s ease-out backwards; }
.tut-bar-txt b { color: var(--gold); }
/* action-beat spotlights */
.tut-drag .tile.ready { animation: tilePulse 1.15s ease-in-out infinite; }
@keyframes tilePulse { 50% { box-shadow: 0 0 18px var(--gold); transform: translateY(-2px); } }
.tut-serve #serve:not(:disabled) { animation: servePulse 1.15s ease-in-out infinite; }
@keyframes servePulse { 50% { box-shadow: 0 0 26px var(--gold); } }

/* ── toast ── */
#toast { position: fixed; top: 18%; left: 50%; transform: translate(-50%, -8px); z-index: 90; background: #2b204d;
  border: 1.5px solid var(--warn); color: var(--ink); border-radius: 14px; padding: 10px 16px; font-size: .86rem;
  font-weight: 700; opacity: 0; transition: all .25s; pointer-events: none; max-width: 84vw; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.ok { border-color: var(--good); }

@media (max-width: 640px) {
  .palette { flex-direction: column; }
  .coach { top: 118px; flex-wrap: wrap; }
  .coach-tip { flex-basis: 100%; margin-left: 0; }
}
