/* 夏祭り屋台さばき */
:root {
  --yc-bg: #fbf3e6; --yc-ink: #2b1d12; --yc-sub: #6b5440; --yc-card: #fffaf2; --yc-line: #e6d2b5;
  --yc-ai: #233062; --yc-shu: #e2462c; --yc-gold: #f2b233; --yc-wood: #c8955a; --yc-wood-d: #8a5a2b;
  --yc-good: #3aa65a; --yc-ok: #e8a12c; --yc-bad: #d9473a;
}
@media (prefers-color-scheme: dark) {
  :root { --yc-bg: #14152a; --yc-ink: #f6ead8; --yc-sub: #c9b79c; --yc-card: #1f2140; --yc-line: #3a3c66; }
}
body { background: var(--yc-bg); color: var(--yc-ink); }
.mn-app { max-width: 760px; }
.yc-center { text-align: center; }
.yc-ghost { background: transparent !important; }
.yc-big { font-size: 1.08rem; min-height: 52px; }
.yc-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.yc-row .mn-btn { min-height: 44px; }

/* ---------- タイトル ---------- */
.yc-title { display: grid; gap: 14px; }
.yc-hero { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #1b1f45; }
.yc-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yc-hero-fallback { position: absolute; inset: 0; background: linear-gradient(180deg, #24306a 0%, #5a2f6b 55%, #e0753a 100%); }
.yc-hero-fallback span.l1, .yc-hero-fallback span.l2, .yc-hero-fallback span.l3 { position: absolute; top: 10%; width: 26px; height: 34px; border-radius: 45%; background: radial-gradient(circle at 50% 40%, #ffd27a, #e2462c 70%); box-shadow: 0 0 22px #ff9a4a; }
.yc-hero-fallback .l1 { left: 58%; } .yc-hero-fallback .l2 { left: 72%; top: 14%; } .yc-hero-fallback .l3 { left: 86%; }
.yc-hero-fallback .ice, .yc-hero-fallback .tako { position: absolute; bottom: 10%; font-size: 64px; }
.yc-hero-fallback .ice { right: 22%; } .yc-hero-fallback .tako { right: 6%; font-size: 48px; }
.yc-hero-text { position: absolute; left: 0; top: 0; bottom: 0; width: 60%; padding: 6% 5%; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(90deg, rgba(16,18,46,.78), rgba(16,18,46,0)); color: #fff; }
.yc-kicker { margin: 0 0 6px; font-size: clamp(11px, 2.8vw, 15px); font-weight: 700; color: #ffd9a8; text-shadow: 0 1px 3px #000; }
.yc-logo { margin: 0; font-size: clamp(30px, 8.6vw, 54px); line-height: 1.05; font-weight: 900; letter-spacing: .02em; text-shadow: 0 3px 0 var(--yc-shu), 0 4px 12px rgba(0,0,0,.6); }
.yc-friend { border: 2px solid var(--yc-shu); border-radius: 12px; padding: 10px 12px; background: var(--yc-card); display: grid; gap: 2px; }
.yc-friend span { font-size: 13px; color: var(--yc-sub); }
.yc-daily { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--yc-card); border: 1px solid var(--yc-line); }
.yc-daily b { display: block; } .yc-daily small { color: var(--yc-sub); font-size: 12px; }
.yc-daily.lock { opacity: .7; }
.yc-daily-done { text-align: right; font-weight: 700; font-size: 13px; } .yc-daily-done small { display: block; }
.yc-lockmark { font-size: 22px; }
.yc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; }
.yc-stat { background: var(--yc-card); border: 1px solid var(--yc-line); border-radius: 10px; padding: 6px 8px; text-align: center; }
.yc-stat small { display: block; font-size: 11px; color: var(--yc-sub); } .yc-stat b { font-size: 15px; }
.yc-howto { font-size: 13px; color: var(--yc-sub); margin: 0; }

/* ---------- 章 ---------- */
.yc-chapter { display: grid; gap: 10px; }
.yc-ch-scene { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #2a2f63; }
.yc-ch-scene.sq { aspect-ratio: 1/1; max-width: 420px; width: 100%; margin: 0 auto; }
.yc-ch-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yc-ch-bg.fb { background: linear-gradient(180deg, #2c3a78, #a0522d); display: grid; place-items: center; }
.yc-ch-bg.fb.night { background: radial-gradient(circle at 30% 20%, #ff9a4a 0 4%, transparent 5%), radial-gradient(circle at 70% 15%, #ffd27a 0 3%, transparent 4%), linear-gradient(180deg, #0f1236, #3a1f4a); }
.yc-endemo { font-size: 90px; }
.yc-ch-faces { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: flex-end; gap: 4%; height: 78%; }
.yc-ch-face { height: 100%; width: auto; max-width: 46%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.yc-ch-face.sub { height: 86%; }
.yc-ch-face.emo { font-size: 84px; line-height: 1; height: auto; align-self: center; }
.yc-ch-day { margin: 0; font-size: 13px; color: var(--yc-shu); font-weight: 800; }
.yc-ch-title { margin: 0; font-size: 22px; }
.yc-ch-text p { margin: 0 0 .7em; line-height: 1.9; }
.yc-tip { background: var(--yc-card); border-left: 4px solid var(--yc-gold); padding: 8px 12px; border-radius: 6px; font-size: 14px; margin: 0; }
.yc-new { background: var(--yc-card); border: 1px dashed var(--yc-shu); border-radius: 10px; padding: 8px 12px; }
.yc-new ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; }
.yc-tag { display: inline-block; font-size: 11px; font-weight: 800; color: #fff; background: var(--yc-shu); border-radius: 4px; padding: 1px 5px; margin-right: 4px; }

/* ---------- 営業画面 ---------- */
body.yc-playing .mn-app { padding-top: 4px; padding-bottom: 4px; }
.yc-game { display: flex; flex-direction: column; height: calc(100vh - 64px); height: calc(100dvh - 64px); min-height: 560px; max-height: 980px; gap: 6px; user-select: none; -webkit-user-select: none; }
.yc-hud { display: flex; align-items: center; gap: 8px; font-size: 14px; flex: none; }
.yc-hud-day { font-weight: 800; white-space: nowrap; }
.yc-time { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.yc-clock { font-variant-numeric: tabular-nums; min-width: 3.4em; }
.yc-timebar { flex: 1; height: 8px; border-radius: 4px; background: var(--yc-line); overflow: hidden; }
.yc-timebar i { display: block; height: 100%; background: linear-gradient(90deg, #f2b233, #e2462c 60%, #4b3a8f); }
.yc-money, .yc-fol { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yc-fol { color: var(--yc-shu); }

.yc-street { --dusk: 0; position: relative; flex: none; height: clamp(118px, 22vh, 190px); border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, #f39a5a calc((1 - var(--dusk)) * 100%), #1d2350), color-mix(in srgb, #ffd6a0 calc((1 - var(--dusk)) * 100%), #4a2f5a)); }
.yc-street.night { background: linear-gradient(180deg, #0f1236, #3a1f4a); }
.yc-street-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(calc(1 - var(--dusk) * .3)); }
.yc-street::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 16px; background: repeating-linear-gradient(90deg, var(--yc-ai) 0 46px, #1a2350 46px 48px); z-index: 1; border-bottom: 2px solid #111a40; }
.yc-counter { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: linear-gradient(180deg, var(--yc-wood), var(--yc-wood-d)); z-index: 3; }
.yc-line { position: absolute; left: 6px; bottom: 14px; display: flex; align-items: flex-end; gap: 2px; z-index: 2; }
.yc-waitrow { position: absolute; right: 6px; bottom: 14px; display: flex; align-items: flex-end; gap: 0; z-index: 2; flex-direction: row-reverse; max-width: 48%; }
.yc-cust { position: relative; border: 0; padding: 0; background: none; width: 62px; height: clamp(84px, 16vh, 140px); display: flex; align-items: flex-end; justify-content: center; cursor: pointer; }
.yc-line .yc-cust:not(.front) { width: 46px; opacity: .9; }
.yc-line .yc-cust:not(.front) .yc-face { transform: scale(.82); transform-origin: bottom center; }
.yc-cust.waiting { width: 52px; }
.yc-waitrow .yc-cust { margin-left: -6px; }
.yc-face.img { height: 100%; width: auto; max-width: 120%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.yc-face.emo { font-size: 42px; line-height: 1; background: #ffe9c8; border-radius: 50% 50% 12px 12px; width: 56px; height: 64px; display: grid; place-items: center; box-shadow: 0 3px 0 rgba(0,0,0,.2); }
.yc-cust.waiting .yc-face.emo { width: 46px; height: 54px; font-size: 32px; }
.yc-cust.vip .yc-face { outline: 3px solid var(--yc-gold); border-radius: 12px; }
.yc-cust.front .yc-face { animation: yc-bob 1s ease-in-out infinite; }
.yc-callout { position: absolute; top: 0; left: 50%; transform: translate(-50%, -2px); background: #fff; color: #2b1d12; font-size: 11px; font-weight: 800; border-radius: 8px; padding: 2px 6px; white-space: nowrap; box-shadow: 0 2px 0 var(--yc-shu); z-index: 4; }
.yc-num { position: absolute; top: 2px; right: 0; background: var(--yc-wood); color: #2b1d12; font-weight: 900; font-size: 12px; border: 2px solid var(--yc-wood-d); border-radius: 4px; padding: 0 4px; z-index: 4; }
.yc-pat { position: absolute; left: 50%; bottom: 2px; width: 40px; margin-left: -20px; height: 5px; border-radius: 3px; background: rgba(0,0,0,.35); z-index: 4; overflow: hidden; }
.yc-pat::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); background: color-mix(in srgb, #4cd36a calc(var(--p) * 100%), #e84a3a); }
.yc-more, .yc-empty { color: #fff; font-weight: 700; font-size: 13px; text-shadow: 0 1px 3px #000; padding: 0 8px 10px; }
@keyframes yc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.yc-pop { position: absolute; left: 6px; right: 6px; top: 20px; z-index: 6; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.yc-pop.on { opacity: 1; transform: none; }
.yc-say { background: #fff; color: #2b1d12; border-radius: 12px; padding: 6px 10px; box-shadow: 0 3px 0 rgba(0,0,0,.25); font-size: 13px; display: grid; gap: 2px; max-width: 92%; }
.yc-say span { font-weight: 800; color: var(--yc-shu); }
.yc-judge { display: flex; gap: 8px; background: rgba(255,250,242,.97); color: #2b1d12; border-radius: 12px; padding: 6px 8px; box-shadow: 0 4px 0 rgba(0,0,0,.25); align-items: center; }
.yc-judge.love { box-shadow: 0 0 0 3px var(--yc-shu), 0 4px 0 rgba(0,0,0,.25); }
.yc-judge-face { position: relative; width: 64px; height: 72px; flex: none; display: grid; place-items: end center; }
.yc-jface.img { height: 72px; width: auto; object-fit: contain; } .yc-jface.emo { font-size: 40px; }
.yc-react { position: absolute; top: -6px; right: -8px; width: 34px; height: 34px; object-fit: contain; animation: yc-pop .5s ease-out; }
.yc-react.emo { font-size: 26px; width: auto; height: auto; }
.yc-judge-body { flex: 1; min-width: 0; }
.yc-judge-top { display: flex; align-items: baseline; gap: 8px; font-size: 12px; }
.yc-total { font-size: 24px; color: var(--yc-shu); }
.yc-tipline { display: flex; gap: 8px; font-size: 12px; align-items: baseline; flex-wrap: wrap; }
.yc-tipline b { color: #b8860b; font-size: 15px; }
@keyframes yc-pop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.yc-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 10px; }
.yc-scores.big { grid-template-columns: 1fr; gap: 4px; }
.yc-sc { display: grid; grid-template-columns: 3.4em 1fr 2em; gap: 4px; align-items: center; font-size: 11px; }
.yc-scores.big .yc-sc { font-size: 14px; grid-template-columns: 5em 1fr 2.4em; }
.yc-sc b { text-align: right; }
.yc-scbar { height: 6px; background: rgba(0,0,0,.12); border-radius: 3px; overflow: hidden; }
.yc-scores.big .yc-scbar { height: 10px; }
.yc-scbar i { display: block; height: 100%; } .yc-scbar i.g { background: var(--yc-good); } .yc-scbar i.o { background: var(--yc-ok); } .yc-scbar i.b { background: var(--yc-bad); }

.yc-work { flex: 1; display: flex; gap: 6px; min-height: 0; }
.yc-nav { flex: none; width: 52px; display: flex; flex-direction: column; gap: 6px; }
.yc-noren { position: relative; flex: 1; max-height: 92px; min-height: 48px; border: 0; border-radius: 0 0 10px 10px; background: var(--yc-ai); color: #fff; font-weight: 900; font-size: 18px; cursor: pointer; writing-mode: vertical-rl; display: flex; align-items: center; justify-content: center; letter-spacing: .1em;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 70% 100%, 70% 82%, 30% 82%, 30% 100%, 0 100%); padding-bottom: 12%; box-shadow: inset 0 6px 0 rgba(255,255,255,.12); transition: transform .12s; }
.yc-noren.tako { background: #6b2f1e; }
.yc-noren.on { background: var(--yc-shu); transform: translateX(4px); }
.yc-noren-t { font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }
.yc-badge { position: absolute; top: 3px; right: 3px; writing-mode: horizontal-tb; background: var(--yc-gold); color: #2b1d12; font-size: 11px; font-weight: 900; border-radius: 9px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 3px; letter-spacing: 0; }
.yc-badge.fire { top: auto; bottom: 22%; right: 50%; transform: translateX(50%); background: rgba(0,0,0,.4); color: #ffd27a; font-size: 10px; }

.yc-station { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.yc-tray { flex: none; display: flex; gap: 6px; overflow-x: auto; min-height: 46px; align-items: center; scrollbar-width: none; }
.yc-tray-empty { font-size: 12px; color: var(--yc-sub); }
.yc-cup { flex: none; position: relative; display: flex; align-items: center; gap: 2px; min-height: 44px; min-width: 64px; padding: 2px 8px 2px 4px; border-radius: 10px; border: 2px solid var(--yc-line); background: var(--yc-card); color: inherit; cursor: pointer; }
.yc-cup.on { border-color: var(--yc-shu); box-shadow: 0 0 0 2px color-mix(in srgb, var(--yc-shu) 30%, transparent); }
.yc-cup-n { font-weight: 900; font-size: 13px; background: var(--yc-wood); color: #2b1d12; border-radius: 4px; padding: 0 4px; }
.yc-cup-face.img { height: 36px; width: 36px; object-fit: cover; object-position: top; border-radius: 50%; }
.yc-cup-face.emo { font-size: 22px; }
.yc-cup-i { font-size: 16px; }

.yc-stage { position: relative; flex: 1; min-height: 160px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); }
.yc-cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }
.yc-ticketbox { position: absolute; right: 4px; top: 4px; width: 27%; max-width: 116px; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); transform-origin: top center; animation: yc-swing 2.4s ease-in-out infinite; }
.yc-ticket { width: 100%; height: auto; display: block; }
@keyframes yc-swing { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
.yc-hint { position: absolute; left: 6px; right: 31%; top: 6px; background: rgba(35,48,98,.92); color: #fff; font-size: 13px; font-weight: 700; border-radius: 10px; padding: 6px 9px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.yc-hint.on { opacity: 1; }
.yc-fly { position: absolute; left: 40%; top: 40%; font-size: 30px; font-weight: 900; pointer-events: none; animation: yc-fly .9s ease-out forwards; text-shadow: 0 2px 0 #fff, 0 0 8px #fff; }
.yc-fly.g { color: var(--yc-good); } .yc-fly.o { color: var(--yc-ok); } .yc-fly.b { color: var(--yc-bad); }
@keyframes yc-fly { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { transform: translateY(-6px) scale(1.15); opacity: 1; } 100% { transform: translateY(-50px) scale(1); opacity: 0; } }

.yc-ctrl { flex: none; display: grid; gap: 6px; }
.yc-ctrl-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: stretch; }
.yc-ctrl-row.acts { flex-wrap: nowrap; }
.yc-ctrl-row.acts .mn-btn { flex: 1; min-height: 46px; }
.yc-next { flex: 2 !important; font-weight: 900; }
.yc-hold { flex: 1; min-height: 56px; font-size: 17px; font-weight: 900; background: #e9f4fb; color: #1b4f7a; border: 2px solid #8cc3e6; touch-action: none; }
.yc-hold.on { background: #bfe1f5; transform: scale(.98); }
.yc-bottle { flex: 1 1 52px; min-width: 52px; max-width: 86px; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 10px; border: 2px solid var(--yc-line); background: var(--yc-card); color: inherit; cursor: pointer; padding: 3px 2px; }
.yc-bottle small { font-size: 10px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.yc-bottle.on { border-color: var(--c, var(--yc-shu)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--yc-shu)) 40%, transparent); }
.yc-bottle.top.on { border-color: var(--yc-shu); }
.yc-bt-img { width: 30px; height: 30px; object-fit: contain; }
.yc-bt-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--c); border: 2px solid rgba(0,0,0,.2); }
.yc-bt-emo { font-size: 22px; line-height: 1; }
.yc-warm { display: flex; align-items: center; gap: 4px; font-weight: 800; padding: 0 8px; border-radius: 10px; background: var(--yc-card); border: 1px solid var(--yc-line); }
.yc-warm-img { width: 26px; height: 26px; object-fit: contain; }
.yc-fill { flex: 1; min-height: 52px; font-weight: 900; }

/* ---------- 結果 ---------- */
.yc-result { display: grid; gap: 12px; }
.yc-res-head { display: flex; gap: 10px; align-items: center; }
.yc-res-face { width: 84px; height: 84px; object-fit: cover; object-position: top; border-radius: 50%; background: #ffe9c8; flex: none; }
.yc-res-face.emo { font-size: 54px; display: grid; place-items: center; }
.yc-res-kicker { margin: 0; font-size: 13px; color: var(--yc-shu); font-weight: 800; }
.yc-res-line { margin: 2px 0 0; font-weight: 800; font-size: 16px; line-height: 1.5; }
.yc-res-big { display: flex; gap: 10px; align-items: stretch; }
.yc-res-big > div { flex: 1; background: var(--yc-card); border: 2px solid var(--yc-line); border-radius: 14px; padding: 8px 14px; }
.yc-res-big small { display: block; font-size: 12px; color: var(--yc-sub); }
.yc-res-big b { font-size: 44px; font-weight: 900; color: var(--yc-shu); font-variant-numeric: tabular-nums; }
.yc-res-big .rank { flex: 0 0 96px; text-align: center; }
.yc-res-big .rank b { color: var(--yc-ink); }
.yc-res-big .rank.rS b, .yc-res-big .rank.rA b { color: var(--yc-gold); }
.yc-newbest { margin: 0; text-align: center; font-weight: 900; color: var(--yc-shu); }
.yc-shop { background: var(--yc-card); border: 1px solid var(--yc-line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.yc-shop h3 { margin: 0; font-size: 16px; }
.yc-tool { display: grid; grid-template-columns: 48px 1fr auto; gap: 8px; align-items: center; }
.yc-tool small { display: block; font-size: 12px; color: var(--yc-sub); }
.yc-tool-img { width: 48px; height: 48px; object-fit: contain; }
.yc-tool-img.emo { font-size: 30px; display: grid; place-items: center; }
.yc-tool .mn-btn { min-height: 44px; white-space: nowrap; }
.yc-have { font-size: 12px; font-weight: 800; color: var(--yc-good); }
.yc-adbox:empty, .yc-prbox:empty { display: none; }

/* ---------- 図鑑 ---------- */
.yc-zukan { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 60vh; overflow: auto; }
.yc-z { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 6px; align-items: center; border: 1px solid var(--yc-line); border-radius: 10px; padding: 4px 6px; }
.yc-z.no { opacity: .55; }
.yc-z.perfect { border-color: var(--yc-gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--yc-gold) 40%, transparent); }
.yc-z small { display: block; font-size: 11px; color: var(--yc-sub); line-height: 1.3; }
.yc-zface.img { width: 44px; height: 44px; object-fit: cover; object-position: top; border-radius: 50%; }
.yc-zface.emo { font-size: 26px; text-align: center; }
.yc-zmark { position: absolute; top: 2px; right: 4px; font-size: 10px; font-weight: 900; color: #fff; background: var(--yc-gold); border-radius: 4px; padding: 0 4px; }

@media (min-width: 720px) {
  .yc-nav { width: 64px; }
  .yc-ticketbox { max-width: 140px; }
  .yc-cust { width: 84px; }
  .yc-line .yc-cust:not(.front) { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .yc-cust.front .yc-face, .yc-ticketbox, .yc-react { animation: none; }
  .yc-fly { animation-duration: .01s; }
  .yc-pop, .yc-noren { transition: none; }
}
/* 営業中の通知は上に出し、操作ボタンをふさがない */
body.yc-playing .mn-toast { top: 70px; bottom: auto; pointer-events: none; opacity: .94; }
body.yc-playing .mn-toast { top: 58px; padding: 5px 14px; font-size: 12px; white-space: nowrap; max-width: 94vw; overflow: hidden; text-overflow: ellipsis; }
.yc-street.night .yc-street-bg { filter: brightness(.72) saturate(.85) blur(1px); }

/* ---------- 第三者レビュー1回目の修正 ---------- */
.yc-ticketbox { width: 38%; max-width: 160px; transition: transform .35s ease; transform-origin: top right; z-index: 3; }
.yc-ticketbox.zoom { animation: none; transform: scale(1.75) translate(-14%, 3%); }
.yc-hint { right: 41%; }
@media (min-width: 720px) { .yc-ticketbox { max-width: 180px; } .yc-hint { right: auto; max-width: 42%; } }
.yc-pop { left: auto; right: 6px; width: min(70%, 340px); top: 20px; }
.yc-say { font-size: 12px; padding: 4px 9px; max-width: 100%; }
.yc-judge { padding: 4px 6px; gap: 6px; }
.yc-judge-face { width: 40px; height: 44px; }
.yc-jface.img { height: 44px; }
.yc-jface.emo { font-size: 28px; }
.yc-react { width: 24px; height: 24px; top: -4px; right: -6px; }
.yc-judge-top { gap: 6px; align-items: center; flex-wrap: wrap; }
.yc-total { font-size: 20px; }
.yc-tipv { color: #b8860b; font-size: 15px; }
.yc-folv { color: var(--yc-shu); font-weight: 800; }
.yc-quick { background: var(--yc-gold); color: #2b1d12; font-weight: 900; font-size: 11px; border-radius: 4px; padding: 0 4px; }
.yc-judge-parts { display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: 11px; font-weight: 800; }
.yc-judge-parts .g { color: var(--yc-good); } .yc-judge-parts .o { color: #b87400; } .yc-judge-parts .b { color: var(--yc-bad); }
.yc-note { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; line-height: 18px; z-index: 5; font-size: 12px; font-weight: 800; color: #fff; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(140,30,20,.88); opacity: 0; transition: opacity .2s; pointer-events: none; }
.yc-note.on { opacity: 1; }
.yc-hurry { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); background: var(--yc-gold); color: #2b1d12; font-size: 10px; font-weight: 900; border-radius: 4px; padding: 0 3px; z-index: 4; white-space: nowrap; }
.yc-cup-h { font-size: 13px; }
.yc-noren.ready { box-shadow: inset 0 0 0 3px #b8f06a; }
.yc-noren.alert { animation: yc-alert .6s steps(2) infinite; }
@keyframes yc-alert { 0% { background: #d9221a; } 100% { background: #6b2f1e; } }
.yc-street.shu::before { background: repeating-linear-gradient(90deg, var(--yc-shu) 0 46px, #9b2a18 46px 48px); }
.yc-deco-l { position: absolute; top: 14px; width: 34px; height: 46px; object-fit: contain; z-index: 2; filter: drop-shadow(0 0 8px rgba(255,140,60,.8)); }
.yc-deco-l.l { left: 8px; } .yc-deco-l.r { right: 8px; }
.yc-kanban { position: absolute; left: 4px; bottom: 18px; z-index: 1; background: #6b4423; color: #fff3dc; font-weight: 900; font-size: 11px; line-height: 1.15; padding: 4px 5px; border-radius: 4px; border: 2px solid #3b2412; writing-mode: vertical-rl; opacity: .9; }
.yc-theme { position: absolute; left: 6px; top: 20px; z-index: 2; background: rgba(35,48,98,.88); color: #fff; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 6px; max-width: 60%; }
.yc-tip.theme.ok { border-left-color: var(--yc-good); }
.yc-tool-img.txt { display: grid; place-items: center; background: var(--yc-ai); color: #fff; font-weight: 900; font-size: 14px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .yc-noren.alert { animation: none; background: #d9221a; } .yc-ticketbox { transition: none; } }
.yc-ticketbox.small { width: 25%; max-width: 110px; }

/* ---------- 第三者レビュー2回目の修正 ---------- */
.yc-ticketbox.side { width: 30%; max-width: 150px; }
.yc-ticketbox.zoom { transform: scale(1.4) translate(-6%, 0); }
/* 判定の札は店先の下（カウンターの上）に細く。番号札・気長さゲージは札より前 */
.yc-line, .yc-waitrow { z-index: auto; }
.yc-num, .yc-pat, .yc-hurry { z-index: 8; }
.yc-pop.judge { top: auto; bottom: 20px; left: 50%; right: auto; width: min(62%, 320px); transform: translate(-50%, 6px); }
.yc-pop.judge.on { transform: translate(-50%, 0); }
.yc-pop.judge .yc-judge { background: rgba(255,250,242,.94); }
.yc-theme { position: static; max-width: none; flex: none; font-size: 12px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yc-tip.good { border-left-color: var(--yc-good); }
.yc-noren.ready { animation: yc-ready 1s steps(2) infinite; }
@keyframes yc-ready { 0% { box-shadow: inset 0 0 0 3px #b8f06a; } 100% { box-shadow: inset 0 0 0 3px transparent; } }
.yc-tool-img.kanban { display: grid; place-items: center; background: linear-gradient(180deg, #8a5a2b, #6b4423); color: #fff3dc; font-weight: 900; font-size: 12px; line-height: 1.1; border-radius: 4px; border: 2px solid #3b2412; width: 34px; margin: 0 7px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .yc-noren.ready { animation: none; box-shadow: inset 0 0 0 3px #b8f06a; } }

/* ---------- 第三者レビュー3回目の修正 ---------- */
/* 鉄板の下の段は1行固定（高さが変わらない） */
.yc-warm { flex: 0 0 auto; min-width: 104px; white-space: nowrap; font-size: 14px; height: 52px; }
.yc-fill { white-space: nowrap; height: 52px; min-height: 52px; font-size: 16px; padding: 0 10px; }
/* 判定の札：1行・低く、カウンターの板の上だけ */
.yc-pop.judge { bottom: 1px; width: min(70%, 300px); }
.yc-pop.judge .yc-judge { padding: 1px 8px; gap: 6px; border-radius: 8px; height: 26px; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.yc-pop.judge .yc-judge-face { width: 26px; height: 26px; }
.yc-pop.judge .yc-jface.img { height: 26px; }
.yc-pop.judge .yc-jface.emo { font-size: 18px; }
.yc-pop.judge .yc-react { width: 18px; height: 18px; top: -6px; right: -6px; }
.yc-pop.judge .yc-judge-top { flex-wrap: nowrap; white-space: nowrap; gap: 6px; }
.yc-pop.judge .yc-total { font-size: 16px; }
.yc-pop.judge .yc-tipv { font-size: 13px; }
.yc-pop.judge .yc-judge-body > :not(.yc-judge-top) { display: none; }
/* 注文直後の木札は上（店先の方）へ開く。作業台の赤線を覆わない */
.yc-stage { overflow: visible; }
.yc-cv { border-radius: 12px; }
.yc-ticketbox { z-index: 9; }
.yc-ticketbox.zoom { transform-origin: bottom right; transform: translateY(calc(-100% + 24px)) scale(1.3); }
/* お知らせの帯は店先の上（暖簾の下）。下のカウンターは判定の札専用 */
.yc-note { top: 16px; bottom: auto; }
.yc-pop:not(.judge) { top: 38px; }

/* ---------- レビュー4回目の仕上げ ---------- */
.yc-callout { z-index: 10; }
.yc-pop.judge { bottom: -1px; z-index: 4; }
.yc-pop.judge .yc-judge { height: 20px; padding: 0 8px; }
.yc-pop.judge .yc-judge-face { width: 20px; height: 20px; }
.yc-pop.judge .yc-jface.img { height: 20px; }
.yc-pop.judge .yc-total { font-size: 14px; }
.yc-pop.judge .yc-tipv, .yc-pop.judge .yc-folv { font-size: 12px; }
.yc-pop.judge .yc-react { width: 14px; height: 14px; top: -4px; right: -4px; }
.yc-warm-t { display: flex; flex-direction: column; line-height: 1.15; }
.yc-warm-k { font-size: 10px; font-weight: 800; color: var(--yc-sub); white-space: nowrap; }
.yc-warm-k:empty { display: none; }
.yc-ctrl-row.one { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.yc-ctrl-row.one::-webkit-scrollbar { display: none; }
.yc-ctrl-row.one .yc-bottle { flex: 1 0 50px; min-width: 50px; max-width: 86px; }
.yc-hint.up { top: -50px; left: 100px; right: 0; max-width: none; font-size: 12px; padding: 4px 8px; }
