/* ============================================================
   答題畫面、教具、作答區、提示、回饋與解題面板
   ============================================================ */
.screen--play {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 80px 3vw 30px;
}
.play-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 253, 247, .82);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: var(--shadow-sm);
}
.play-title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.play-title span { font-size: 13px; font-weight: 800; color: var(--wood); }
.play-title strong { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 27px); line-height: 1.2; }
.play-stats { display: flex; gap: 6px; }

.play-sub { display: flex; align-items: center; gap: 16px; margin: 12px 2px; }
.timer {
  position: relative;
  flex: 1;
  height: 24px;
  border-radius: 999px;
  background: #ecd9bb;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(90, 55, 20, .16);
}
.timer__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #73b77e, #9ccf84);
  transition: width .2s linear, background .3s;
}
.timer__text {
  position: relative;
  z-index: 1;
  display: block;
  padding-right: 12px;
  text-align: right;
  font-size: 13px;
  font-weight: 900;
  line-height: 24px;
  color: #355c36;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}
.timer.is-low .timer__fill { background: linear-gradient(90deg, #e47d58, #f0b357); }
.timer.is-low .timer__text { color: #6b3218; }
.timer.is-over .timer__fill { background: #c9b59a; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 240px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: #dfcdb2; box-shadow: inset 0 1px 2px rgba(80, 50, 20, .15); }
.dots i.is-done { background: var(--nori-2); }
.dots i.is-now { background: var(--orange); box-shadow: 0 0 0 4px rgba(233, 139, 63, .22); }
.dots i.is-miss { background: #d8837b; }

.play-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 18px;
  align-items: start;
}
.visual-panel {
  position: relative;
  min-width: 0;
  padding: 16px;
  border-radius: 26px;
  background: rgba(255, 253, 247, .8);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow);
}
.visual { min-height: 280px; display: grid; align-content: center; }
.visual-zoom { position: absolute; right: 12px; top: 12px; background: rgba(255, 250, 240, .92); }
.qa-panel { min-width: 0; display: grid; gap: 12px; }
.question-card {
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.question-card__top { display: flex; align-items: center; gap: 8px; }
.q-index { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--muted); }
.question-card__prompt {
  margin-top: 8px;
  font-size: clamp(20px, 2.3vw, 27px);
  line-height: 1.55;
  font-weight: 800;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}
.qa-tail { display: grid; gap: 10px; }
.hint-box {
  padding: 13px 16px;
  border-radius: 16px;
  background: #fff3cf;
  border: 2px dashed #e4bd66;
  color: #6b4a11;
  font-size: 16px;
  line-height: 1.65;
  animation: slide-up .25s ease;
}
.hint-box[hidden] { display: none; }
.hint-box strong { display: block; font-size: 13px; letter-spacing: .08em; color: #a06b13; }
.hint-box p { margin-top: 3px; }
.hint-box--step { background: #eaf7f0; border-color: #95c7ab; color: #27523e; }
.hint-box--step strong { color: #2d6a4c; }
.answer-dock {
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 252, 244, .92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.answer-area { min-height: 92px; }
.play-actions { display: flex; gap: 8px; margin-top: 10px; }
.play-actions .btn { flex: 1; }
.play-actions .btn[hidden] { display: none; }

/* ---------- 選擇題 ---------- */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-btn {
  position: relative;
  min-height: 68px;
  padding: 10px 14px 10px 48px;
  border-radius: 15px;
  border: 2px solid #e8d2ac;
  background: #fffaf0;
  color: var(--ink);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  text-align: left;
  box-shadow: 0 3px 0 rgba(104, 66, 33, .13);
  transition: transform .13s, background .13s, border-color .13s, opacity .2s;
}
.choice-btn::before {
  content: attr(data-letter);
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  display: grid; place-items: center;
  width: 27px; height: 27px;
  border-radius: 8px;
  background: #f5e4c5;
  color: #8a6437;
  font-size: 13px;
  font-weight: 900;
}
.choice-btn:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--orange); background: #fff5df; }
.choice-btn:active:not(:disabled) { transform: translateY(1px); }
.choice-btn.is-wrong { background: #ffe9e6; border-color: #d58378; animation: shake .35s; opacity: .82; }
.choice-btn.is-wrong::before { background: #f4c3bd; color: #8d2f27; content: "✕"; }
.choice-btn.is-correct { background: #e8f7ec; border-color: #63a878; box-shadow: 0 0 0 4px rgba(99, 168, 120, .18); }
.choice-btn.is-correct::before { background: #c3e8cc; color: #24623b; content: "✓"; }
.choice-btn.is-dimmed { opacity: .35; }
.choice-btn:disabled { cursor: default; }

/* ---------- 便當盒選項 ---------- */
.grid-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-choice {
  padding: 10px;
  border-radius: 15px;
  border: 2px solid #e8d2ac;
  background: #fffaf0;
  box-shadow: 0 3px 0 rgba(104, 66, 33, .13);
  transition: transform .13s, border-color .13s, background .13s;
}
.grid-choice:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--orange); background: #fff5df; }
.grid-choice.is-wrong { border-color: #d58378; background: #ffe9e6; animation: shake .35s; opacity: .8; }
.grid-choice.is-correct { border-color: #63a878; background: #e8f7ec; box-shadow: 0 0 0 4px rgba(99, 168, 120, .18); }
.grid-choice__label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 800; color: var(--ink-soft); }
.mini-bento {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 2px;
  padding: 5px;
  border-radius: 8px;
  background: #f6e8ca;
  border: 2px solid #e6cfa8;
}
.mini-bento__cell { aspect-ratio: 1; border-radius: 3px; background: #fffdf7; padding: 1px; }
.mini-bento__cell svg { width: 100%; height: 100%; display: block; }

/* ---------- 數字鍵盤 ---------- */
.numpad { display: grid; gap: 8px; }
.numpad__display {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  border-radius: 14px;
  background: #2f4a3d;
  color: #fffdf3;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, .25);
  overflow: hidden;
}
.numpad__ghost { position: absolute; left: 14px; font-size: 12px; color: rgba(255, 253, 243, .6); letter-spacing: .12em; }
.numpad__value { font-family: ui-monospace, "SFMono-Regular", monospace; font-size: 40px; font-weight: 800; letter-spacing: .06em; }
.numpad__keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.numpad__key {
  min-height: 52px;
  border-radius: 13px;
  border: 1px solid #e2cba3;
  background: #fffaf0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 3px 0 rgba(104, 66, 33, .14);
  transition: transform .1s, background .1s;
}
.numpad__key:hover:not(:disabled) { background: #fff2d8; }
.numpad__key:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 rgba(104, 66, 33, .12); }
.numpad__key--soft { background: #f5e7ce; color: #7b5a37; font-size: 20px; }
.numpad__key--submit {
  background: linear-gradient(180deg, #81bd8c, #4f9b6a);
  border-color: #3c7f54;
  color: #fff;
  font-size: 19px;
}
.numpad__key:disabled { opacity: .55; }

/* ---------- 便當格點選 ---------- */
.tap-wrap { display: grid; gap: 8px; max-width: 100%; overflow-x: auto; padding-bottom: 2px; }
.tap-board {
  --tap-cell: clamp(44px, 6vw, 56px);
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--tap-cell));
  width: max-content;
  margin-inline: auto;
  gap: 5px;
  padding: 8px;
  border-radius: 16px;
  background: #f6e8ca;
  border: 3px solid #e2c79d;
  box-shadow: inset 0 3px 8px rgba(100, 60, 20, .12);
}
.tap-cell {
  width: var(--tap-cell);
  min-width: 44px;
  min-height: 44px;
  aspect-ratio: 1;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #e9d5b0;
  background: #fffdf6;
  transition: transform .1s, background .1s, border-color .1s;
}
.tap-cell svg { width: 100%; height: 100%; opacity: .2; transition: opacity .12s, transform .12s; }
.tap-cell:hover svg { opacity: .5; }
.tap-cell.is-on { background: #fff2c9; border-color: var(--orange); }
.tap-cell.is-on svg { opacity: 1; transform: scale(1.04); }
.tap-cell.is-correct { background: #e4f6e8; border-color: #63a878; }
.tap-cell.is-correct svg { opacity: 1; }
.tap-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tap-count { font-size: 15px; font-weight: 800; color: var(--ink-soft); }
.tap-count b { font-size: 24px; color: var(--orange); }
.tap-submit { min-width: 150px; }

/* ---------- 教具 ---------- */
.tool {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
  color: var(--ink);
}
.tool__title { font-size: 15px; font-weight: 900; color: var(--ink-soft); text-align: center; letter-spacing: .02em; }
.tool__stage { width: 100%; display: grid; place-items: center; }
.tool__caption { font-size: 14px; color: var(--muted); text-align: center; }
.tool__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.tool__legend span { padding: 3px 9px; border-radius: 999px; background: #fff3d8; border: 1px solid #ecd6ae; font-size: 12.5px; color: #7a5730; }
.tool__legend b { font-size: 15px; color: var(--orange); }

.bento {
  width: min(100%, 560px);
  padding: 10px;
  border-radius: 20px;
  background: linear-gradient(145deg, #c98954, #a96a3b 58%, #8f572c);
  box-shadow: 0 8px 0 #7b4923, 0 16px 26px rgba(85, 50, 20, .24), inset 0 2px 0 rgba(255, 255, 255, .3);
  border: 2px solid #825027;
}
.bento__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 3px;
  padding: 8px;
  border-radius: 14px;
  background: #fdf3dc;
  box-shadow: inset 0 3px 8px rgba(100, 60, 20, .16);
}
.bento__cell {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  padding: 2px;
  border-radius: 6px;
  background: #fffdf6;
  border: 1px solid #f0e2c8;
}
.bento__cell.is-lit { background: #fff0b8; border-color: #e8bd4e; box-shadow: 0 0 0 2px rgba(232, 189, 78, .35); }
.bento__cell svg { width: 100%; height: 100%; display: block; }
.bento--dense { padding: 7px; }
.bento--dense .bento__grid { gap: 2px; padding: 5px; }
.bento--dense .bento__cell { border-radius: 3px; padding: 1px; }

.plate-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.plate {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 7px 7px 5px;
  border-radius: 14px;
  background: #fffdf8;
  border: 2px solid #ecdbbd;
  box-shadow: 0 3px 0 rgba(104, 66, 33, .1);
}
.plate__food {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: 74px;
  min-height: 60px;
  align-content: center;
  padding: 4px;
  border-radius: 50%;
  background: #f2f8f4;
  border: 2px solid #d9e9dd;
}
.plate__food.is-unknown { grid-template-columns: 1fr; background: #fff6df; border-color: #e9cf9e; }
.plate__item { display: block; width: 100%; aspect-ratio: 1; }
.plate__item svg { width: 100%; height: 100%; }
.plate__label { font-size: 10.5px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.unknown-mark { font-family: var(--font-display); font-size: 30px; font-weight: 900; color: #b78a3d; text-align: center; }
.group-heap { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 440px; padding: 10px; border-radius: 16px; background: #fff9ea; border: 2px dashed #e8cf9f; }
.group-heap__item { width: 22px; height: 22px; }
.group-heap__item svg { width: 100%; height: 100%; }
.group-question { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.group-question__badge { padding: 4px 10px; border-radius: 999px; background: #eef7f1; border: 1px solid #cde4d6; font-size: 13px; font-weight: 800; color: #396a51; }
.group-question__badge--ask { background: #fff1c9; border-color: #ecd28c; color: #8a5d10; }
.group-question__arrow { font-weight: 900; color: #b18a4c; }

.leftover { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 10px; }
.leftover__tag { padding: 2px 10px; border-radius: 999px; background: #ffe8d8; color: #a64e2a; font-size: 12px; font-weight: 900; }
.leftover__plate { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 220px; padding: 7px; border-radius: 50%; background: #fff4df; border: 2px dashed #dda25f; }
.leftover__plate .plate__item { width: 22px; height: 22px; }
.leftover__label { font-size: 12px; color: var(--muted); font-weight: 700; }

.compare { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.compare__side { flex: 1; min-width: 0; display: grid; justify-items: center; gap: 4px; }
.compare__side .bento { width: 100%; max-width: 240px; padding: 6px; border-radius: 14px; }
.compare__side .bento__grid { padding: 5px; gap: 2px; }
.compare__label { font-size: 12px; font-weight: 800; color: var(--ink-soft); text-align: center; }
.compare__equal { font-family: var(--font-display); font-size: 32px; font-weight: 900; color: var(--wood); }

.tool__stage--vertical { max-width: 370px; }
.vertical-svg { width: 100%; max-width: 360px; height: auto; display: block; }
.vertical-svg .v-num { font-family: ui-monospace, "SFMono-Regular", monospace; font-size: 52px; font-weight: 900; fill: #3c2a1e; }
.vertical-svg .v-num--ask { fill: #c58a2d; }
.vertical-svg .v-op { font-family: var(--font-display); font-size: 42px; font-weight: 900; fill: #a86a3b; }

.receipt {
  position: relative;
  width: min(100%, 380px);
  padding: 24px 22px 18px;
  background:
    linear-gradient(180deg, rgba(255, 253, 246, .96), rgba(255, 248, 231, .96));
  border: 1px solid #e4cea5;
  border-radius: 6px 6px 14px 14px;
  box-shadow: 0 6px 0 rgba(104, 66, 33, .1), 0 14px 26px rgba(104, 66, 33, .14);
  font-family: ui-monospace, "SFMono-Regular", monospace;
}
.receipt::before, .receipt::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 8px;
  background: radial-gradient(circle at 8px -2px, transparent 7px, #fff8e9 7.5px) repeat-x;
  background-size: 16px 8px;
}
.receipt::before { top: -1px; transform: rotate(180deg); }
.receipt::after { bottom: -1px; }
.receipt__food { display: flex; justify-content: center; margin-bottom: 6px; }
.receipt__food svg { width: 58px; height: 58px; }
.receipt__lines { list-style: none; display: grid; gap: 5px; }
.receipt__lines li { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; border-bottom: 1px dashed #e8d7b8; padding-bottom: 5px; }
.receipt__lines span { color: #7a6047; }
.receipt__lines b { color: #3c2a1e; }
.receipt__total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 10px; font-family: var(--font-body); }
.receipt__total span { font-size: 14px; font-weight: 800; color: #7a6047; }
.receipt__total strong { font-size: 30px; color: var(--plum); }
.receipt__note { margin-top: 6px; font-family: var(--font-body); font-size: 12.5px; color: #8e7358; text-align: center; }

.tap-guide { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.tap-guide__order { display: grid; justify-items: center; padding: 10px 16px; border-radius: 14px; background: #fff5da; border: 2px dashed #e4bd66; }
.tap-guide__big { font-family: var(--font-display); font-size: 44px; font-weight: 900; color: var(--orange); line-height: 1; }
.tap-guide__order span { font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.tap-guide__order small { font-size: 11px; color: var(--muted); }
.tap-guide__rows { display: grid; gap: 2px; padding: 6px; border-radius: 10px; background: #f6e8ca; border: 2px solid #e2c79d; }
.mini-row { display: flex; gap: 2px; }
.mini-row__cell { width: 16px; height: 16px; border-radius: 3px; background: #fffdf7; border: 1px solid #efdfc4; }
.mini-row__cell svg { width: 100%; height: 100%; }
.tap-guide__hint { flex-basis: 100%; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ---------- 回饋 ---------- */
.feedback {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: calc(var(--footer-h) + 18px + env(safe-area-inset-bottom, 0px));
  width: min(92vw, 600px);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.feedback.is-show { opacity: 1; transform: translate(-50%, 0); }
.feedback__bubble {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: #fffdf7;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
}
.feedback__face { font-size: 34px; line-height: 1; }
.feedback__text { font-size: 17px; font-weight: 800; line-height: 1.45; }
.feedback__sub { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.feedback--good .feedback__bubble { background: #eefaf1; border-color: #9fd0ae; }
.feedback--bad .feedback__bubble { background: #fff1ed; border-color: #ecb1a8; }
.feedback--hint .feedback__bubble { background: #fff8df; border-color: #eccd85; }
.feedback--combo .feedback__bubble { background: #fff0d6; border-color: #f0b357; }
.feedback--time .feedback__bubble { background: #f4f0e7; border-color: #ccb99d; }

/* ---------- 解題面板 ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(50, 32, 18, .5);
  backdrop-filter: blur(3px);
}
.sheet[hidden] { display: none; }
.sheet__card {
  width: min(620px, 100%);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 26px;
  background: var(--cream);
  border: 2px solid #f1ddba;
  box-shadow: var(--shadow-lg);
  animation: pop-in .35s cubic-bezier(.2, 1.2, .4, 1);
}
.sheet__card h2 { font-family: var(--font-display); font-size: 26px; }
.sheet__lead { margin-top: 6px; color: var(--muted); font-size: 16px; }
.sheet__steps { display: grid; gap: 10px; margin-top: 16px; counter-reset: step; list-style: none; }
.sheet__steps li { position: relative; padding: 12px 14px 12px 52px; border-radius: 14px; background: #fff6e0; border: 1px solid #ecd5a9; font-size: 16px; line-height: 1.6; }
.sheet__steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
}
.sheet__answer { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: #e8f7ec; border: 2px solid #9fd0ae; font-size: 18px; font-weight: 800; color: #245c39; text-align: center; }
.sheet__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.sheet--zoom .sheet__card--zoom { width: min(900px, 100%); }
.visual--zoom { min-height: 0; }
.visual--zoom .bento { max-width: 640px; }

@media (max-width: 980px) {
  .play-stage { grid-template-columns: 1fr; }
  .visual { min-height: 220px; }
  .play-title strong { font-size: 21px; }
  .feedback__sub { display: none; }
}

@media (max-width: 620px) {
  .screen--play { padding: 74px 10px 24px; }
  .play-head { padding: 8px 10px; gap: 8px; }
  .play-title { gap: 5px; }
  .play-title span { font-size: 11px; }
  .play-title strong { font-size: 18px; }
  .play-stats .pill { padding: 3px 7px; font-size: 12px; }
  .play-stats .pill b { font-size: 15px; }
  .play-sub { gap: 8px; margin: 8px 0; }
  .dots { max-width: 130px; gap: 4px; }
  .dots i { width: 10px; height: 10px; }
  .visual-panel { padding: 10px; border-radius: 20px; }
  .visual { min-height: 130px; }
  .question-card { padding: 13px 14px; }
  .question-card__prompt { font-size: 24px; }
  .answer-dock { padding: 8px; }
  .choice-grid, .grid-choice-grid { gap: 7px; }
  .choice-btn { min-height: 52px; padding-left: 42px; font-size: 22px; }
  .choice-btn::before { width: 24px; height: 24px; left: 9px; }
  .numpad__display { min-height: 62px; }
  .numpad__value { font-size: 34px; }
  .numpad__key { min-height: 48px; font-size: 22px; }
  .numpad__key--submit { font-size: 17px; }
  .tap-board { grid-template-columns: repeat(var(--cols), var(--tap-cell)); gap: 4px; padding: 6px; }
  .tap-cell { min-width: 44px; min-height: 44px; }
  .feedback { bottom: calc(var(--footer-h) + 10px + env(safe-area-inset-bottom, 0px)); }
  .feedback__bubble { padding: 10px 12px; gap: 8px; }
  .feedback__text { font-size: 14.5px; }
  .feedback__face { font-size: 26px; }
  .compare { gap: 4px; }
  .compare__label { font-size: 10.5px; }
  .plate__food { width: 60px; }
  .plate__label { font-size: 9.5px; }
  .receipt { padding: 20px 14px 14px; }
  .receipt__total strong { font-size: 26px; }
  .sheet { padding: 10px; }
  .sheet__card { max-height: calc(100vh - 30px); }
}

/* ---- 提示與鷹架 ---- */
.hint-box__visual {
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: var(--radius-md);
  background: #fff8ea;
  border: 2px dashed #e8cfa6;
}
.hint-box__visual svg { width: 100%; height: auto; max-height: 210px; }
.hint-box__note { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.visual.is-hint .svg-bento__cell { opacity: .92; }
.visual.is-hint .svg-bento__row.is-focus { filter: drop-shadow(0 0 6px #ffb703); }
.tap-board.is-shake { animation: shake .45s ease; }
.btn[hidden], .hint-box[hidden], .feedback[hidden], .combo-badge[hidden], .numpad-display[hidden], .steps-panel[hidden], .sheet[hidden], .dialog[hidden], .cheat[hidden] { display: none !important; }
.level-card__best { display: block; margin-top: 4px; font-size: .82rem; color: var(--ink-soft); }
@media (max-width: 720px) { .level-card__best { display: none; } }
