/* Noodle Critic (ui/critic-ui.js): Goals > Critic panel, announcement card, newspaper review. Brown/gold palette. */
#criticPanel { color: #f2e9d8; font-size: 13px; }
.cr-dim { color: #c9b393; font-size: 12px; font-weight: normal; }
.cr-h { margin: 10px 0 6px; font-weight: bold; font-size: 13px; display: flex; gap: 8px; align-items: baseline; }
.cr-card { background: #2b2320; border: 2px solid #6b4a34; border-radius: 8px; padding: 10px; margin: 0 0 8px; }
.cr-card.quiet { border-style: dashed; }
.cr-head { display: flex; gap: 10px; align-items: center; }
.cr-face { width: 48px; height: 64px; image-rendering: pixelated; flex: 0 0 auto; background: #3d3129; border: 2px solid #e8b84b; border-radius: 6px; padding: 2px; box-sizing: content-box; object-fit: contain; }
.cr-face.dim { filter: grayscale(0.8) brightness(0.8); border-color: #6b4a34; }
.cr-face.sm { width: 18px; height: 24px; padding: 0; border-width: 1px; vertical-align: middle; margin-right: 6px; }
.cr-kick { margin: 0; font-size: 11px; color: #c9b393; text-transform: uppercase; letter-spacing: 0.5px; }
.cr-name { margin: 0; font-size: 16px; font-weight: bold; color: #e8b84b; }
.cr-when { margin: 2px 0 0; font-size: 12px; line-height: 1.35; }
.cr-taste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 4px; }
.cr-taste li { background: #3d3129; border-radius: 4px; padding: 4px 6px; font-size: 12px; line-height: 1.3; border-left: 4px solid #6b4a34; }
.cr-taste li b { display: block; font-size: 11px; color: #c9b393; text-transform: uppercase; }
.cr-taste li small { display: block; color: #e9dcc4; font-size: 11px; }
.cr-taste li.like { border-left-color: #6fbf73; }
.cr-taste li.dis { border-left-color: #e0705a; }
.cr-taste li.wal { border-left-color: #e8b84b; }
.cr-pick { display: grid; gap: 4px; }
.cr-opt { display: grid; gap: 2px; text-align: left; min-height: 44px; padding: 6px 8px; background: #3d3129; color: #f2e9d8; border: 2px solid #6b4a34; border-radius: 6px; font-size: 13px; }
.cr-opt .nm { font-weight: bold; }
.cr-opt .st { font-size: 11px; color: #c9b393; }
.cr-opt .st b { color: #f2e9d8; }
.cr-opt .st em { color: #ff9a86; font-style: normal; }
.cr-opt.sel { border-color: #e8b84b; background: #4a3a2c; box-shadow: inset 0 0 0 1px #e8b84b; }
.cr-opt:disabled { opacity: 0.7; }
.cr-opt:focus-visible, .cr-ok:focus-visible, .cr-logrow:focus-visible { outline: 3px solid #e8b84b; outline-offset: 1px; }
.cr-meter { color: #e8b84b; letter-spacing: -1px; font-size: 10px; }
.cr-meter i { color: #5a4a3e; font-style: normal; }
.cr-rule { margin: 8px 0 0; font-size: 11px; color: #c9b393; line-height: 1.4; }
.cr-rule b { color: #f2e9d8; }
.cr-boost { margin: 0 0 8px; padding: 6px 8px; background: #3a4a2a; border: 2px solid #6fbf73; border-radius: 6px; font-size: 12px; }
.cr-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cr-logrow { width: 100%; display: flex; gap: 8px; align-items: center; min-height: 44px; padding: 6px 8px; background: #3d3129; color: #f2e9d8; border: 2px solid #6b4a34; border-radius: 6px; text-align: left; }
.cr-logrow .t { display: grid; font-size: 13px; min-width: 0; }
.cr-logrow small { color: #c9b393; font-size: 11px; }
.cr-bowls { display: inline-flex; gap: 2px; flex: 0 0 auto; }
.cr-bowls img { width: 20px; height: 10px; image-rendering: pixelated; }
.cr-bowls.big { justify-content: center; gap: 4px; }
.cr-bowls.big img { width: 40px; height: 20px; }
.cr-bowls.big img.on { animation: cr-stamp 320ms cubic-bezier(.2,1.6,.4,1) backwards; animation-delay: calc(var(--i) * 140ms + 200ms); }
@keyframes cr-stamp { from { transform: scale(2.2) rotate(-12deg); opacity: 0; } }
.cr-ok { min-height: 44px; padding: 8px 18px; background: #e8b84b; color: #2b2320; border: 2px solid #6b4a34; border-radius: 6px; font-weight: bold; font-size: 14px; justify-self: center; }

/* announcement card: floats above the tab bar, never pauses the clock */
.cr-float { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 55;
  width: min(380px, calc(100vw - 16px)); max-height: calc(100dvh - 120px); overflow: auto; display: grid; gap: 6px;
  background: #3d3129; border: 3px solid #e8b84b; border-radius: 10px; padding: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.55); color: #f2e9d8;
  animation: cr-rise 280ms cubic-bezier(.2,1.3,.4,1); }
.cr-float.out { opacity: 0; transition: opacity 160ms ease-in; }
.cr-float .cr-card { margin: 0; }
.cr-news { margin: 0; justify-self: start; background: #c9522f; color: #fbf1dc; font-weight: bold; font-size: 11px; letter-spacing: 1px; padding: 2px 8px; border-radius: 3px; }
@keyframes cr-rise { from { transform: translate(-50%, 28px); opacity: 0; } }

/* the newspaper review (modal: .modal-open pauses the clock) */
.cr-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(20, 14, 10, 0.75); animation: cr-fade 160ms ease-out; }
.cr-modal.out { opacity: 0; transition: opacity 160ms ease-in; }
@keyframes cr-fade { from { opacity: 0; } }
.cr-paper { width: 100%; max-width: 380px; max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box; display: grid; gap: 8px;
  background: #f4ecd8; color: #2b2320; border: 3px solid #2b2320; border-radius: 4px; padding: 12px 14px;
  box-shadow: 6px 8px 0 rgba(0,0,0,0.45); animation: cr-drop 380ms cubic-bezier(.2,1.2,.4,1); transform-origin: 50% 0; }
@keyframes cr-drop { from { transform: translateY(-30px) rotate(-4deg) scale(0.9); opacity: 0; } }
.cr-paper header { border-bottom: 3px double #2b2320; padding-bottom: 4px; text-align: center; }
.cr-paper .mast { margin: 0; font: 900 22px/1 Georgia, "Times New Roman", serif; letter-spacing: 2px; }
.cr-paper .issue { margin: 2px 0 0; font-size: 11px; color: #5a4a3e; }
.cr-paper h3 { margin: 0; font: 700 20px/1.15 Georgia, "Times New Roman", serif; text-align: center; }
.cr-paper .by { margin: 0; font-size: 12px; color: #5a4a3e; text-align: center; }
.cr-paper .by .cr-face { background: #e9dcc4; border-color: #2b2320; }
.cr-paper blockquote { margin: 0; padding: 6px 10px; border-left: 4px solid #c9522f; font: italic 15px/1.4 Georgia, "Times New Roman", serif; background: #efe4c9; }
.cr-score { width: 100%; border-collapse: collapse; font-size: 12px; }
.cr-score th { text-align: left; padding: 4px 6px 4px 0; vertical-align: top; width: 58px; }
.cr-score td { padding: 4px 0; vertical-align: top; border-top: 1px solid #cdbf9f; }
.cr-score th { border-top: 1px solid #cdbf9f; }
.cr-score td.n { text-align: right; font: 700 15px/1 ui-monospace, Consolas, monospace; white-space: nowrap; padding-left: 6px; }
.cr-score td.n small { font-size: 10px; color: #5a4a3e; }
.cr-score ul { list-style: none; margin: 0; padding: 0; }
.cr-score li.hit b { color: #2f7a36; }
.cr-score li.miss b { color: #b3261e; }
.cr-score li.meh b { color: #8a6a2a; }
.cr-score tr.tot th, .cr-score tr.tot td { border-top: 2px solid #2b2320; }
.cr-rew { margin: 0; font-size: 12px; padding: 6px 8px; background: #2b2320; color: #f2e9d8; border-radius: 4px; }
.cr-rew b { color: #e8b84b; }
.cr-tip { margin: 0; font-size: 12px; color: #5a4a3e; }
.cr-paper .cr-ok { border-color: #2b2320; }
/* six Goals sections: let the segment scroll instead of squeezing labels */
#shSheet-goals .sh-seg { overflow-x: auto; scrollbar-width: none; }
#shSheet-goals .sh-seg button { flex: 1 0 auto; padding: 0 8px; }
/* supplier promise, invite, feature stamp, news ticker */
.cr-gift { margin: 8px 0 0; padding: 6px 8px; background: #3d3129; border-left: 4px solid #8fb8de; border-radius: 4px; font-size: 12px; line-height: 1.35; }
.cr-gift b { color: #e8b84b; }
.cr-tag { display: inline-block; margin-left: 4px; padding: 0 6px; background: #e8b84b; color: #2b2320; border-radius: 3px; font-size: 11px; font-weight: bold; }
.cr-invite { display: grid; gap: 4px; margin: 0 0 8px; }
.cr-invite small { color: #c9b393; font-size: 11px; }
.cr-inv { min-height: 44px; padding: 8px 12px; background: #e8b84b; color: #2b2320; border: 2px solid #6b4a34; border-radius: 6px; font-weight: bold; font-size: 13px; }
.cr-inv:disabled { background: #3d3129; color: #c9b393; }
.cr-inv:focus-visible { outline: 3px solid #e8b84b; outline-offset: 1px; }
.cr-feat { margin: 0; justify-self: center; background: #b3261e; color: #fbf1dc; font: 900 13px/1 Georgia, "Times New Roman", serif; letter-spacing: 3px; padding: 4px 10px; border-radius: 2px; transform: rotate(-3deg); }
.cr-paper.feat { border-color: #b3261e; box-shadow: 6px 8px 0 rgba(0,0,0,0.45), 0 0 0 3px #e8b84b; }
.cr-ticker { position: fixed; top: calc(4px + env(safe-area-inset-top, 0px)); left: 8px; right: 8px; z-index: 56; display: flex; gap: 8px; align-items: center; overflow: hidden;
  background: #2b2320; color: #f2e9d8; border: 2px solid #e8b84b; border-radius: 6px; padding: 4px 8px; font-size: 13px; pointer-events: none; }
.cr-ticker b { flex: 0 0 auto; background: #b3261e; color: #fbf1dc; padding: 1px 6px; border-radius: 3px; font-size: 11px; letter-spacing: 1px; }
.cr-ticker span { white-space: nowrap; animation: cr-tick 16s linear forwards; }
@keyframes cr-tick { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .cr-float, .cr-modal, .cr-paper, .cr-bowls.big img.on, .cr-ticker span { animation: none !important; transition: none !important; }
}
