/* 플듀 붕어빵 장사 진단소 — iq.css(진단소 공용 버튼·접수·광고·로그인) 위에 덮어 씀
   색: 겨울밤 포장마차 · 노릇한 붕어빵 금색 · 리어카 빨강 · 장부 종이 */
body.iq.bb {
  --ink: #120a05; --navy: #2a1a10; --navy2: #35221a; --navy3: #432c20; --steel: #5a3e2c;
  --purple: #7a4a2a; --violet: #ffb36b; --cyan: #ffd35a; --cyan2: #e0a92a; --magenta: #ff6b8a;
  --yellow: #ffd35a; --green: #5ec46a; --red: #e0524a; --orange: #ff8a3d; --cream: #fbf1dc; --muted: #c4a888; --dim: #8a6e52;
  --paper: #fbf1dc; --paper2: #ead8b4; --pink: #ff6b8a;
  --glow: 0 0 12px rgba(255,211,90,.4);
  background: radial-gradient(1000px 520px at 50% -12%, rgba(255,140,60,.18), transparent 60%), radial-gradient(900px 600px at 50% 120%, rgba(255,211,90,.08), transparent 60%), #2a1a10;
}
body.bb .topbar { background: rgba(26,14,8,.94); border-bottom: 2px solid #7a4a2a; box-shadow: 0 2px 18px rgba(0,0,0,.5); }
body.bb .tb-title { color: var(--yellow); }
body.bb .panel { background: linear-gradient(180deg, rgba(67,44,32,.95), rgba(42,26,16,.97)); box-shadow: 0 -3px 0 0 #7a4a2a, 0 3px 0 0 #7a4a2a, -3px 0 0 0 #7a4a2a, 3px 0 0 0 #7a4a2a, 0 0 0 6px var(--ink), 0 0 30px rgba(0,0,0,.4); }
body.bb .pbtn.red { --c: #c8322a; } body.bb .pbtn.cyan { --c: #2a8a5a; --t: #fff; } body.bb .pbtn.yellow { --c: #e0a92a; --t: #2a1a06; } body.bb .pbtn.violet { --c: #6a4aa8; }
body.bb main#app { max-width: 980px; margin: 0 auto; padding: 0 16px 40px; position: relative; z-index: 2; }
canvas { image-rendering: pixelated; }

/* ---------- 입구 ---------- */
.zt-hero { position: relative; height: clamp(260px, 46vw, 420px); margin: 0 -16px; overflow: hidden; background: #120a05; }
.zt-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.zt-logo { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; pointer-events: none; }
.zt-logo small { display: block; letter-spacing: .3em; font-size: 12px; color: var(--yellow); opacity: .9; text-shadow: 0 2px 0 #000; }
.zt-logo h1 { margin: 6px 0 4px; font-size: clamp(30px, 7vw, 58px); line-height: 1.05; color: #fff4e0; text-shadow: 0 3px 0 #000, 0 0 24px rgba(200,50,42,.7); }
.zt-logo h1 span { color: var(--yellow); text-shadow: 0 3px 0 #000, 0 0 18px rgba(255,180,60,.7); }
.zt-logo p { margin: 0; color: #f0dcc0; font-size: 15px; text-shadow: 0 2px 0 #000; }
.zt-q { text-align: center; margin: 18px auto 6px; font-size: clamp(17px, 3.6vw, 22px); color: var(--cream); word-break: keep-all; }
.zt-q b { color: var(--yellow); }
.zt-menu { display: grid; gap: 8px; max-width: 560px; margin: 0 auto; }
.zt-menu .pbtn { width: calc(100% - 6px); }
.zt-row { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.zt-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 640px; margin: 16px auto; }
.zt-feat div { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); padding: 10px; text-align: center; font-size: 13px; color: var(--muted); word-break: keep-all; }
.zt-feat b { display: block; font-size: 22px; margin-bottom: 4px; }
@media (max-width: 560px) { .zt-feat { grid-template-columns: 1fr; } }
.banner { max-width: 640px; margin: 10px auto; padding: 10px 14px; background: rgba(200,50,42,.2); box-shadow: inset 0 0 0 2px #c8322a; text-align: center; }

/* ---------- 플레이 화면 ---------- */
.zp { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto auto 1fr; background: #1a0f08; }
.zp-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 8px 12px; padding-top: max(8px, var(--ad-top, 0px)); background: #1a0e08; border-bottom: 1px solid #4a3020; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.zp-day { font-size: 24px; font-weight: 700; color: var(--paper); white-space: nowrap; }
.zp-day small { font-size: 12px; color: var(--muted); margin-left: 6px; }
.zp-top .hud { background: transparent; box-shadow: none; border: 0; padding: 0; margin: 0; height: auto; position: static; }
.hud { flex: 1; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; min-width: 0; font-size: 14px; }
.hud-cash b { font-size: 18px; color: var(--yellow); font-variant-numeric: tabular-nums; }
.hud-cash.low b { color: #ff6b5a; animation: blink 1s steps(2) infinite; }
.hud-rep { display: inline-flex; align-items: center; gap: 5px; } .hud-rep .bar { width: 70px; height: 8px; background: #3a2414; box-shadow: inset 0 0 0 1px #000; } .hud-rep .bar i { display: block; height: 100%; background: #ffb92e; transition: width .5s; }
.hud-info { color: var(--muted); font-size: 13px; }
.hud-timer { margin-left: auto; font-weight: 700; color: var(--cream); } .hud-timer.low { color: #ff6b5a; }
@keyframes blink { 50% { opacity: .35; } }
@media (max-width: 640px) { .zp-top { flex-wrap: wrap; } .hud { order: 3; flex-basis: 100%; } .zp-day { flex: 1; font-size: 20px; } }
.zp-stage { position: relative; aspect-ratio: 32 / 13; max-height: 40vh; width: 100%; overflow: hidden; background: #000; }
.zp-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 640px) { .zp-stage { aspect-ratio: 16 / 9; max-height: 30vh; } }
.zp-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; padding: 14px; max-width: 1100px; width: 100%; margin: 0 auto; align-content: start; }
@media (max-width: 860px) { .zp-main { grid-template-columns: 1fr; padding: 10px 10px calc(16px + var(--ad-bottom, 0px)); } }
.journal { position: relative; color: #3a2414; background-color: #f6e6c4; background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(160,110,60,.14) 27px 28px), linear-gradient(180deg, #fbf1dc, #efdcb4); padding: 20px 18px 14px; box-shadow: 0 0 0 3px #1a0f08, 6px 6px 0 rgba(0,0,0,.45); min-height: 220px; }
.journal .jt { font-size: 17px; line-height: 1.75; margin: 0 0 12px; min-height: 3.4em; word-break: keep-all; }
.journal .jt .cur { display: inline-block; width: .55em; background: #3a2414; animation: blink .8s steps(2) infinite; }
.journal .stamp, .plan .stamp { position: absolute; right: 10px; top: -12px; transform: rotate(5deg); padding: 3px 10px; font-size: 13px; font-weight: 700; color: #c8322a; border: 2px solid #c8322a; background: rgba(251,241,220,.94); }
.choices { display: grid; gap: 8px; }
.ch { position: relative; display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: #2a1a06; background: rgba(255,255,255,.6); border: 0; box-shadow: inset 0 0 0 2px #c9a46a; cursor: pointer; transition: transform .1s, background .1s; touch-action: manipulation; }
.ch:hover, .ch:focus-visible { background: #fff7e2; transform: translateX(3px); outline: none; box-shadow: inset 0 0 0 2px #c8322a; }
.ch .k { flex: 0 0 auto; display: inline-grid; place-items: center; width: 26px; height: 26px; font-size: 13px; font-weight: 700; color: var(--paper); background: #3a2414; }
.ch .tx { flex: 1; word-break: keep-all; }
.ch:disabled { opacity: .5; cursor: default; transform: none; }
.ch.picked { background: #fff2c9; box-shadow: inset 0 0 0 3px #c8322a; opacity: 1; }
.outcome .om { font-size: 16px; line-height: 1.7; margin: 0 0 10px; word-break: keep-all; }
.deltas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.deltas span { font-size: 14px; padding: 4px 9px; color: #fff; background: #3a3a3a; animation: popIn .35s backwards; }
.deltas .up { background: #2e7d32; } .deltas .dn { background: #b3221a; }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } }
.notes { margin: 0 0 10px; padding: 0; list-style: none; font-size: 14px; color: #6a4a2a; }
.next-btn { margin-top: 6px; }
.wait-note, .wait-box { margin: 10px 0 0; padding: 12px; text-align: center; background: rgba(58,36,20,.08); font-size: 15px; color: #6a4a2a; animation: pulseTxt 1.6s ease-in-out infinite; }
.wait-box small { color: #8a6a40; }
@keyframes pulseTxt { 50% { opacity: .55; } }
.side { display: grid; gap: 10px; align-content: start; }
.card { background: #2e1d12; box-shadow: inset 0 0 0 2px #4a3020; padding: 12px; }
.card h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.empty { font-size: 13px; color: var(--dim); line-height: 1.6; word-break: keep-all; }
.mchips { display: grid; gap: 4px; }
.mchip { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 6px; background: rgba(255,255,255,.04); border-left: 4px solid var(--c); }
.costs { display: grid; gap: 4px; font-size: 13px; color: var(--muted); } .costs b { color: var(--cream); }
.fish { image-rendering: pixelated; vertical-align: middle; }
.pl-list { list-style: none; margin: 0; padding: 0; }
.pl-list li { display: grid; grid-template-columns: 18px 28px 1fr auto; gap: 6px; align-items: center; padding: 4px 0; border-bottom: 1px solid #3a2616; font-size: 13px; }
.pl-list li .r { color: var(--muted); text-align: center; } .pl-list li .nm { min-width: 0; } .pl-list li .nm b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pl-list li .nm small { color: var(--muted); font-size: 11px; }
.pl-list li.out { opacity: .5; }

/* ---------- 장사 계획 ---------- */
.plan { position: relative; }
.pl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.pl-head h3 { margin: 4px 0 0; font-size: 20px; }
.fc { text-align: right; } .fc small { display: block; font-size: 11px; color: #8a6a40; } .fc b { font-size: 20px; letter-spacing: 1px; color: #e0a92a; } .fc .s1, .fc .s2 { color: #8a8aa0; }
.pl-tip { margin: 8px 0 12px; padding: 8px 10px; background: rgba(58,36,20,.08); font-size: 14px; line-height: 1.6; word-break: keep-all; }
.pl-others { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; } .pl-others span { padding: 3px 8px; background: #3a2414; color: var(--cream); }
.pl-row { margin: 0 0 12px; }
.pl-row > label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.pl-menus { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.pl-menus button { display: grid; justify-items: center; gap: 2px; padding: 8px 6px; font: inherit; font-size: 14px; color: #2a1a06; background: rgba(255,255,255,.55); border: 0; box-shadow: inset 0 0 0 2px #c9a46a; cursor: pointer; touch-action: manipulation; }
.pl-menus button small { font-size: 11px; color: #8a6a40; }
.pl-menus button.on { background: #fff4d6; box-shadow: inset 0 0 0 3px var(--c), 0 0 0 2px #3a2414; }
.pl-step { display: inline-flex; align-items: center; gap: 8px; }
.pl-step button { width: 40px; height: 40px; font: inherit; font-size: 22px; background: #3a2414; color: var(--cream); border: 0; cursor: pointer; touch-action: manipulation; }
.pl-step b { min-width: 110px; text-align: center; font-size: 22px; font-variant-numeric: tabular-nums; }
.pl-row input[type=range] { display: block; width: 100%; margin: 8px 0 2px; accent-color: #c8322a; height: 28px; }
.pl-hint { display: block; font-size: 12.5px; color: #8a6a40; }
.pl-cost { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px; background: #3a2414; color: var(--cream); font-size: 13.5px; margin-bottom: 12px; }
.pl-cost b { color: var(--yellow); } .pl-cost .good { color: #9be08a; }
.pl-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; }
.pl-btns .pbtn small { display: block; font-size: 11px; opacity: .8; }

/* ---------- 정산서 ---------- */
.rep h3 { margin: 0 0 8px; font-size: 20px; }
.rep-cust { font-size: 16px; margin-bottom: 8px; } .rep-cust b { font-size: 24px; color: #c8322a; } .rep .dn { color: #b3221a; } .rep .up { color: #2e7d32; }
.qbar { display: flex; height: 14px; box-shadow: inset 0 0 0 1px #3a2414; overflow: hidden; } .qbar i { display: block; min-width: 0; }
.qlbl { display: block; font-size: 12.5px; color: #6a4a2a; margin: 4px 0 10px; }
.rep-grid { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 15px; padding: 10px 12px; background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 2px #c9a46a; }
.rep-grid b { text-align: right; font-variant-numeric: tabular-nums; }
.rep-grid .tot { border-top: 2px dashed #c9a46a; padding-top: 6px; font-size: 18px; }
.rep.closed .rep-grid { opacity: .85; }
.m-month { margin-top: 12px; padding: 10px 12px; background: #3a2414; color: var(--cream); }
.m-month h4 { margin: 0 0 6px; } .m-month ol { list-style: none; margin: 0; padding: 0; }
.m-month li { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 8px; padding: 4px 0; font-size: 14px; border-bottom: 1px solid #5a3e2c; align-items: center; }
.m-month .up { color: #9be08a; } .m-month .dn { color: #ff8a7a; }

/* ---------- 굽기 ---------- */
.bk { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-rows: auto auto auto 1fr auto auto; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: radial-gradient(800px 400px at 50% 100%, rgba(255,120,40,.25), transparent 70%), #1a0f08; color: var(--cream); animation: popIn .25s; max-width: 980px; margin: 0 auto; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.bk-top { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; }
.bk-time { grid-row: span 2; text-align: center; } .bk-time b { font-size: 42px; line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; } .bk-time small { display: block; font-size: 11px; color: var(--muted); }
.bk.late .bk-time b { color: #ff6b5a; animation: blink .5s steps(2) infinite; }
.bk-tbar { height: 10px; background: #3a2414; } .bk-tbar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff6b5a, #ffd35a); }
.bk-stat { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); } .bk-stat b { color: var(--cream); }
.bk-queue { display: flex; gap: 6px; overflow-x: auto; min-height: 92px; padding: 4px 2px; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 2px #3a2616; scrollbar-width: thin; }
.cust { position: relative; flex: 0 0 auto; width: 74px; display: grid; justify-items: center; gap: 2px; padding: 4px 2px 6px; font: inherit; color: #2a1a06; background: #fbf1dc; border: 0; box-shadow: inset 0 0 0 2px #c9a46a; cursor: pointer; animation: custIn .3s; touch-action: manipulation; }
.cust canvas { width: 40px; height: 40px; }
.cust .ord { display: flex; align-items: center; gap: 2px; font-size: 18px; line-height: 1; } .cust .ord img { width: 30px; height: auto; } .cust .ord b { font-size: 14px; margin-left: 2px; }
.cust .pat { position: absolute; left: 4px; right: 4px; bottom: 2px; height: 4px; background: rgba(0,0,0,.15); } .cust .pat em { display: block; height: 100%; background: #5ec46a; transition: width .2s linear; }
.cust.hurry .pat em { background: #e0524a; } .cust.hurry { animation: wob .4s infinite; }
.cust.can { box-shadow: inset 0 0 0 3px #5ec46a, 0 0 12px rgba(94,196,106,.6); }
.cust.paid { animation: paid .45s forwards; } .cust.leave { animation: leave .4s forwards; } .cust.no { animation: shk .3s; }
@keyframes custIn { from { transform: translateY(-20px); opacity: 0; } }
@keyframes paid { to { transform: translateY(-30px) scale(1.1); opacity: 0; } }
@keyframes leave { to { transform: translateX(40px); opacity: 0; filter: grayscale(1); } }
@keyframes wob { 50% { transform: rotate(-3deg); } }
@keyframes shk { 20% { transform: translate(-6px, 2px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-4px, 1px); } 80% { transform: translate(3px, 0); } }
.bk-help { text-align: center; font-size: 14px; color: var(--yellow); min-height: 1.4em; word-break: keep-all; } .bk-help.pop { animation: popIn .3s; }
.bk-molds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: center; }
@media (min-width: 560px) { .bk-molds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 720px) { .bk-molds { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); } }
.mold { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 6px 8px; font: inherit; color: var(--cream); background: linear-gradient(180deg, #3a3a40, #222226); border: 0; box-shadow: inset 0 0 0 3px #111, inset 0 -6px 0 #18181b; cursor: pointer; min-height: 150px; touch-action: manipulation; }
.mold .k { position: absolute; left: 5px; top: 3px; font-size: 11px; color: #888; }
.mold canvas { width: 100%; max-width: 170px; height: auto; aspect-ratio: 48 / 28; }
.mold small { font-size: 12.5px; color: #ccc; }
.mbar { position: relative; width: 90%; height: 9px; background: #111; overflow: hidden; }
.mbar .z1 { position: absolute; top: 0; bottom: 0; background: rgba(94,196,106,.55); } .mbar .z2 { position: absolute; top: 0; bottom: 0; background: rgba(224,169,42,.45); }
.mbar b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255,255,255,.85); box-shadow: 2px 0 0 #fff; }
.mold.on { background: linear-gradient(180deg, #4a3a30, #2a2018); }
.mold.ready { box-shadow: inset 0 0 0 3px #5ec46a, 0 0 18px rgba(94,196,106,.55); } .mold.ready small { color: #9be08a; font-weight: 700; }
.mold.warn { box-shadow: inset 0 0 0 3px #e0a92a; } .mold.burn { box-shadow: inset 0 0 0 3px #e0524a; animation: smoke 1s infinite; } .mold.burn small { color: #ff8a7a; }
@keyframes smoke { 50% { filter: brightness(.7) contrast(1.2); } }
.bk-pop { position: absolute; left: 50%; top: 20%; transform: translateX(-50%); font-weight: 700; font-size: 16px; text-shadow: 0 2px 0 #000; pointer-events: none; animation: popUp .7s forwards; white-space: nowrap; }
@keyframes popUp { to { transform: translate(-50%, -30px); opacity: 0; } }
.bk-fill { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.bk-fill button { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px 10px 22px; font: inherit; font-size: 14px; color: var(--cream); background: #3a2414; border: 0; box-shadow: inset 0 0 0 2px #5a3e2c; border-left: 6px solid var(--c); cursor: pointer; touch-action: manipulation; }
.bk-fill button .k { position: absolute; left: 4px; top: 2px; font-size: 10px; color: var(--dim); }
.bk-fill button b { margin-left: 4px; padding: 1px 7px; background: #1a0f08; color: var(--yellow); font-variant-numeric: tabular-nums; }
.bk-fill button.on { background: #6a3a1a; box-shadow: inset 0 0 0 3px var(--yellow); }
.bk-bot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.bk.end { animation: fadeOut .6s forwards; } @keyframes fadeOut { to { opacity: 0; } }

/* ---------- 연출 ---------- */
.fx-month { position: fixed; inset: 0; z-index: 115; display: grid; place-items: center; background: #1a0f08; color: var(--paper); text-align: center; animation: fxDay 1.5s ease forwards; pointer-events: none; padding: 20px; }
.fx-month.s-w { background: radial-gradient(circle, #2a2a4a, #0a0a1a); } .fx-month.s-s { background: radial-gradient(circle, #6a4a1a, #2a1a06); }
.fx-month b { display: block; font-size: clamp(44px, 12vw, 92px); letter-spacing: .06em; }
.fx-month small { display: block; font-size: 16px; color: var(--muted); word-break: keep-all; margin-top: 4px; }
.fx-month .fc { display: block; margin-top: 6px; color: #e0a92a; font-size: 22px; letter-spacing: 2px; }
.fx-month.go { animation: fxDay 2.3s ease forwards; } .fx-month.go b { font-size: clamp(36px, 9vw, 64px); color: var(--yellow); } .fx-month .howto { margin-top: 12px; color: #ffe7a8; font-size: 15px; }
@keyframes fxDay { 0% { opacity: 0; } 15%, 75% { opacity: 1; } 100% { opacity: 0; } }
.closing { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; text-align: center; padding: 20px; background: #0a0604; overflow: hidden; animation: popIn .5s; }
.closing .cl-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.closing.win .cl-bg { opacity: .7; }
.cl-shutter { position: absolute; left: 0; right: 0; top: 0; height: 0; background: repeating-linear-gradient(180deg, #6a6a72 0 10px, #4a4a52 10px 14px); box-shadow: 0 6px 0 #222; animation: shutter 1.6s .3s ease-in forwards; }
@keyframes shutter { to { height: 62%; } }
.cl-in { position: relative; z-index: 1; padding: 16px; background: rgba(10,6,4,.6); }
.closing .dd { font-size: clamp(36px, 10vw, 76px); color: #ff7a5a; text-shadow: 0 0 30px rgba(255,90,60,.6), 0 4px 0 #000; margin: 0; }
.closing.win .dd { color: #ffd35a; text-shadow: 0 0 30px rgba(255,211,90,.6), 0 4px 0 #000; }
.closing .dc { font-size: clamp(16px, 4vw, 22px); color: var(--paper); margin: 12px auto 22px; max-width: 640px; word-break: keep-all; line-height: 1.6; }

/* ---------- 장사 일지 (결과) ---------- */
.rec { max-width: 820px; margin: 14px auto; color: #3a2414; background: linear-gradient(180deg, var(--paper), #efdcb4); box-shadow: 0 0 0 3px #1a0f08, 8px 8px 0 rgba(0,0,0,.5); padding: 0 0 18px; position: relative; overflow: hidden; }
.rc-hero { position: relative; height: clamp(220px, 42vw, 320px); background: #000; }
.rc-hero .rc-street { position: absolute; inset: 0; width: 100%; height: 100%; }
.rc-hero::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, #1a0f08); }
.rc-hero-in { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 18px 14px; color: var(--cream); }
.rc-lbl { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .25em; color: #ffd35a; text-shadow: 0 2px 0 #000; }
.rc-who { display: flex; gap: 10px; align-items: center; } .rc-who .av { width: 52px; height: 52px; box-shadow: 0 0 0 2px #fff4e0; } .rc-who b { display: block; font-size: 17px; } .rc-who small { color: #e8c8a0; font-size: 13px; }
.rc-head { margin: 8px 0 4px; font-size: clamp(24px, 5.6vw, 40px); line-height: 1.15; color: #ff8a6a; text-shadow: 0 3px 0 #000; word-break: keep-all; }
.rc-head.win { color: #ffd35a; }
.rc-pct { display: inline-block; margin-right: 6px; padding: 3px 10px; background: #ffd35a; color: #2a1a06; font-size: 13px; font-weight: 700; }
.rc-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: #c9a46a; border-bottom: 3px solid #3a2414; }
.rc-stats div { background: #fbf1dc; padding: 10px 6px; text-align: center; } .rc-stats small { display: block; font-size: 11.5px; color: #8a6a40; } .rc-stats b { display: block; font-size: 17px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.rc-stats .up { color: #2e7d32; } .rc-stats .dn { color: #b3221a; }
@media (max-width: 640px) { .rc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rc-cause { display: flex; gap: 12px; align-items: center; margin: 14px 18px 0; padding: 12px 14px; background: rgba(179,34,26,.08); border-left: 5px solid #b3221a; }
.rc-cause small { display: block; font-size: 12px; color: #8a2a1a; } .rc-cause b { font-size: 17px; line-height: 1.5; word-break: keep-all; }
.rc-cause .shutter { flex: 0 0 48px; height: 40px; background: repeating-linear-gradient(180deg, #8a8a92 0 5px, #5a5a62 5px 7px); box-shadow: inset 0 0 0 2px #333; }
.rc-cause.win { background: rgba(46,125,50,.1); border-color: #2e7d32; } .rc-cause.win small { color: #2e7d32; } .rc-cause .ribbon { font-size: 34px; }
.rc-type { margin: 14px 18px; padding: 16px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 2px #3a2414; }
.rt-k { display: block; font-size: 12px; letter-spacing: .12em; color: #8a6a40; margin-bottom: 6px; }
.rc-type .tn { display: flex; gap: 12px; align-items: center; } .rc-type .tn .ic { font-size: 54px; line-height: 1; filter: drop-shadow(0 3px 0 rgba(0,0,0,.2)); } .rc-type .tn b { font-size: clamp(22px, 5vw, 30px); } .rc-type .tn p { margin: 2px 0 0; font-style: italic; color: #6a4a2a; word-break: keep-all; }
.rt-long { font-size: 15.5px; line-height: 1.85; margin: 12px 0 0; word-break: keep-all; }
.rt-sw { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; } .rt-sw h5 { margin: 0 0 4px; font-size: 14px; } .rt-sw ul { margin: 0; padding-left: 18px; line-height: 1.7; font-size: 14px; }
.rt-scene { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; } .rt-scene p { margin: 0; padding: 10px; background: rgba(58,36,20,.08); font-size: 14px; line-height: 1.6; word-break: keep-all; }
.pair { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; } .pair span { padding: 4px 9px; background: #3a2414; color: var(--paper); }
.rt-tip { margin: 12px 0 0; padding: 10px 12px; background: #3a2414; color: #ffe7a8; font-size: 14px; line-height: 1.6; word-break: keep-all; }
.rc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 18px; }
.rc-card { margin: 0 0 14px; padding: 14px; background: rgba(255,255,255,.4); box-shadow: inset 0 0 0 2px #c9a46a; min-width: 0; }
.rec > .rc-card { margin: 0 18px 14px; }
.rc-card h4 { margin: 0 0 8px; font-size: 15px; color: #6a4a2a; }
.radar { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto 6px; image-rendering: auto; }
.abil-row { display: grid; grid-template-columns: 82px 1fr 34px; gap: 8px; align-items: center; font-size: 13px; margin: 5px 0; }
.abil-row .bar { height: 10px; background: rgba(0,0,0,.12); } .abil-row .bar i { display: block; height: 100%; }
.abil-row em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.reviews { display: grid; gap: 8px; }
.rv { display: grid; grid-template-columns: 36px 1fr; gap: 8px; align-items: start; padding: 8px; background: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.rv canvas { width: 32px; height: 32px; background: #f3e2b8; } .rv .st { color: #e0a92a; font-size: 14px; letter-spacing: 1px; } .rv p { margin: 2px 0 0; font-size: 14px; line-height: 1.5; word-break: keep-all; }
.sold { list-style: none; margin: 0; padding: 0; } .sold li { display: grid; grid-template-columns: 26px 40px 1fr auto; gap: 6px; align-items: center; padding: 4px 0; border-bottom: 1px dashed rgba(120,80,40,.25); font-size: 14px; } .sold .md { text-align: center; }
.graph { display: block; width: 100%; height: auto; aspect-ratio: 900 / 260; image-rendering: auto; background: rgba(255,255,255,.35); }
.glg { display: flex; gap: 6px 12px; flex-wrap: wrap; font-size: 12px; color: #6a4a2a; margin-top: 4px; } .glg i { display: inline-block; width: 10px; height: 10px; margin-right: 3px; vertical-align: -1px; }
.anal { margin: 0; padding-left: 18px; line-height: 1.8; font-size: 14.5px; word-break: keep-all; }
.tl { list-style: none; margin: 0; padding: 0 0 0 6px; border-left: 3px solid rgba(120,80,40,.3); }
.tl li { position: relative; display: grid; grid-template-columns: 46px 26px 1fr; align-items: center; gap: 4px; padding: 5px 0 5px 10px; font-size: 14px; word-break: keep-all; }
.tl li::before { content: ""; position: absolute; left: -8px; top: 50%; width: 11px; height: 11px; margin-top: -6px; border-radius: 50%; background: #e0c088; box-shadow: 0 0 0 2px #fbf1dc; }
.tl li b { color: #8a2a1a; font-size: 12px; } .tl li .ic { font-size: 18px; text-align: center; }
.tl li.end::before { background: #b3221a; } .tl li.end.win::before { background: #2e7d32; } .tl li.end span:last-child { font-weight: 700; }
.diary { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.6; } .diary li { padding: 4px 0; border-bottom: 1px dashed rgba(120,80,40,.25); word-break: keep-all; } .diary li b { color: #8a2a1a; margin-right: 6px; }
.rec-foot { margin: 6px 18px 0; font-size: 12px; color: #8a6a40; }
@media (max-width: 640px) { .rt-sw, .rt-scene, .rc-two { grid-template-columns: 1fr; } .rc-type, .rc-cause { margin-left: 10px; margin-right: 10px; } .rc-two, .rec > .rc-card { margin-left: 10px; margin-right: 10px; } }
.share-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px auto; max-width: 820px; } .share-row .pbtn { flex: 1 1 140px; }
.m-final { max-width: 820px; margin: 14px auto 0; padding: 14px; background: #3a2414; color: var(--cream); box-shadow: 0 0 0 3px #e0a92a; }
.m-final h3 { margin: 0 0 8px; color: var(--yellow); } .m-final ol { list-style: none; margin: 0; padding: 0; }
.m-final li { display: grid; grid-template-columns: 34px 36px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #5a3e2c; } .m-final li .r { font-size: 20px; text-align: center; }
.m-final li .nm small { display: block; color: var(--muted); font-size: 12px; } .m-final .up { color: #9be08a; } .m-final .dn { color: #ff8a7a; } .m-final li.out { opacity: .7; }

/* ---------- 친구 대결 대기실 ---------- */
.lb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; } @media (max-width: 600px) { .lb-two { grid-template-columns: 1fr; } }
.lb-two .card { display: grid; gap: 8px; } .lb-two input { padding: 12px; font: inherit; font-size: 20px; letter-spacing: .3em; text-align: center; background: #1a0f08; color: var(--cream); border: 1px solid #7a4a2a; }
.code { color: var(--yellow); letter-spacing: .15em; }
.lb-link { display: flex; gap: 6px; margin: 8px 0; } .lb-link input { flex: 1; min-width: 0; padding: 8px; font: inherit; font-size: 13px; background: #1a0f08; color: var(--cream); border: 1px solid #7a4a2a; }
.lb-players { list-style: none; margin: 10px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.lb-players li { display: flex; gap: 8px; align-items: center; padding: 8px; background: #2e1d12; box-shadow: inset 0 0 0 2px #4a3020; animation: popIn .3s; flex-wrap: wrap; }
.lb-players .tag { font-size: 11px; padding: 2px 6px; background: #e0a92a; color: #2a1a06; } .lb-players .tag.off { background: #555; color: #ddd; }
.note { font-size: 14px; color: var(--muted); line-height: 1.6; word-break: keep-all; }

/* ---------- 랭킹 ---------- */
.rk-list { list-style: none; margin: 0; padding: 0; }
.rk-list li { display: grid; grid-template-columns: 36px auto 1fr auto; gap: 10px; align-items: center; padding: 8px 6px; border-bottom: 1px solid #4a3020; }
.rk-list li .r { font-size: 16px; text-align: center; color: var(--muted); }
.rk-list li .nm { min-width: 0; } .rk-list li .nm b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-list li .nm small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-list li .d { font-size: 15px; color: var(--muted); white-space: nowrap; } .rk-list li .d.win { color: var(--yellow); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.tabs button { font: inherit; font-size: 14px; padding: 7px 12px; color: var(--cream); background: #3a2414; border: 0; cursor: pointer; }
.tabs button.on { background: #c8322a; color: #fff; }

/* ---------- 방송 진단소 현황판 ---------- */
.bc-wrap { max-width: 1320px; margin: 0 auto; padding: 12px 16px 40px; }
.bc-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.bc-head h1 { margin: 0; font-size: clamp(22px, 4vw, 34px); color: var(--paper); flex: 1; min-width: 220px; } .bc-head h1 small { display: block; font-size: 14px; color: var(--muted); }
.bc-state { padding: 6px 12px; font-size: 14px; background: #b3221a; color: #fff; } .bc-state.open { background: #2e7d32; }
.bc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bc-grid .wide { grid-column: span 2; }
@media (max-width: 980px) { .bc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .bc-grid { grid-template-columns: 1fr; } .bc-grid .wide { grid-column: auto; } }
.bc-card { background: #2e1d12; box-shadow: inset 0 0 0 2px #4a3020; padding: 14px; min-width: 0; }
.bc-card h3 { margin: 0 0 10px; font-size: 15px; color: var(--yellow); }
.bc-card .bc-big { background: none; box-shadow: none; border: 0; padding: 0; }
.bc-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.bc-big b { display: block; font-size: 30px; color: var(--cream); font-variant-numeric: tabular-nums; line-height: 1.1; } .bc-big small { color: var(--muted); font-size: 12.5px; }
.bc-qr { background: #fff; padding: 8px; width: 170px; max-width: 100%; } .bc-qr svg { display: block; width: 100%; height: auto; }
.bc-join { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .bc-url { font-size: 13px; word-break: break-all; color: var(--yellow); }
.alive-list, .feed, .cause-list { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow: auto; }
.alive-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 5px 0; font-size: 14px; border-bottom: 1px solid #3a2616; }
.alive-list li.st b { color: #ffd35a; } .alive-list li small { color: var(--muted); font-variant-numeric: tabular-nums; }
.feed li { padding: 6px 0; font-size: 14px; border-bottom: 1px solid #3a2616; animation: feedIn .5s; word-break: keep-all; }
.feed li b { color: #ff8a7a; } .feed li.win b { color: #9be08a; } .feed li small { color: var(--muted); }
@keyframes feedIn { from { background: rgba(255,211,90,.25); } }
.cause-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 6px 0; font-size: 14px; border-bottom: 1px solid #3a2616; word-break: keep-all; } .cause-list li em { font-style: normal; color: #ff8a7a; }
.rk-list li.muted { display: block; color: var(--muted); }
.hbar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 40px; gap: 8px; align-items: center; font-size: 13px; margin: 5px 0; } .hbar .b { height: 12px; background: #1a0f08; } .hbar .b i { display: block; height: 100%; background: var(--c, #e0a92a); transition: width .6s; } .hbar em { font-style: normal; text-align: right; color: var(--muted); }
.mdist { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; align-items: end; height: 110px; } .mdist div { display: grid; align-content: end; justify-items: center; gap: 2px; height: 100%; font-size: 10.5px; color: var(--muted); } .mdist i { display: block; width: 100%; background: linear-gradient(180deg, #ffd35a, #c8322a); min-height: 2px; transition: height .6s; } .mdist b { font-size: 11px; color: var(--cream); }
.bc-ctrl { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.bc-pred { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .bc-pred input { width: 90px; padding: 8px; font: inherit; background: #1a0f08; color: var(--cream); border: 1px solid #7a4a2a; }
.bc-form { display: grid; gap: 10px; max-width: 560px; } .bc-form label { display: grid; gap: 4px; font-size: 14px; } .bc-form input, .bc-form select { padding: 10px; font: inherit; background: #1a0f08; color: var(--cream); border: 1px solid #7a4a2a; }
.bc-mine { list-style: none; padding: 0; margin: 10px 0 0; } .bc-mine li { padding: 8px 0; border-bottom: 1px solid #4a3020; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .bc-mine li a { color: var(--yellow); }
.bc-street { width: 100%; aspect-ratio: 32 / 11; display: block; }

body.bb.reduce *, body.bb.reduce *::before { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { body.bb * { animation-duration: .01s !important; } }

.hbar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .mold { min-height: 120px; } }

/* ---------- 2판 (11-20): 날씨·상점·굽기 손맛·손님 종류·엔딩·업적·도감 ---------- */
.pl-wx { margin: 0 0 10px; } .pl-wx > small { display: block; font-size: 12px; color: #8a6a40; margin-bottom: 4px; }
.pl-wx > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.pl-wx span { display: grid; justify-items: center; padding: 6px 2px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 2px #c9a46a; font-size: 22px; line-height: 1.1; }
.pl-wx span em { font-style: normal; font-size: 10px; color: #8a6a40; } .pl-wx span b { font-size: 12px; }
.pl-wx .w-cold, .pl-wx .w-snow { box-shadow: inset 0 0 0 2px #5aa0ff; } .pl-wx .w-rain { box-shadow: inset 0 0 0 2px #7a8aa0; } .pl-wx .w-hot { box-shadow: inset 0 0 0 2px #e0524a; }
.pl-shop { margin: 0 0 12px; background: #3a2414; color: var(--cream); } .pl-shop summary { cursor: pointer; padding: 10px 12px; font-weight: 700; } .pl-shop summary small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; padding: 0 10px 10px; }
.shop .it { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto auto; gap: 0 8px; text-align: left; padding: 8px; font: inherit; color: var(--cream); background: #2a1a10; border: 0; box-shadow: inset 0 0 0 2px #7a4a2a; cursor: pointer; touch-action: manipulation; }
.shop .it .ic { grid-row: span 3; font-size: 26px; align-self: center; text-align: center; } .shop .it b { font-size: 14px; } .shop .it small { font-size: 11.5px; color: var(--muted); line-height: 1.4; word-break: keep-all; } .shop .it em { font-style: normal; font-size: 14px; color: var(--yellow); font-weight: 700; }
.shop .it:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--yellow); } .shop .it.off { opacity: .55; cursor: default; } .shop .it.s-POOR em { color: #ff8a7a; } .shop .it.s-MAXED em { color: #9be08a; }
.rep-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; } .rep-chips span { font-size: 12.5px; padding: 3px 8px; background: rgba(58,36,20,.12); } .rep-chips .hot { background: #e0a92a; color: #2a1a06; font-weight: 700; } .rep-chips .dn { color: #b3221a; }
.fx-month .wx { display: block; margin-top: 6px; font-size: 26px; letter-spacing: 6px; }
/* 굽기 */
.bk-tbar { position: relative; } .bk-tbar .rz { position: absolute; top: 0; bottom: 0; background: rgba(255,90,60,.45); box-shadow: 0 0 0 1px #ff5a3c; }
.bk-stat .cb { color: var(--yellow); font-weight: 700; } .bk-stat .cb.hot { color: #ff6b3c; animation: popIn .3s; text-shadow: 0 0 8px #ff6b3c; }
.bk-rush { text-align: center; font-weight: 700; color: #fff; background: linear-gradient(90deg, #c8322a, #ff8a3d, #c8322a); padding: 4px; animation: blink .6s steps(2) infinite; }
.bk.rush .bk-queue { box-shadow: inset 0 0 0 2px #ff5a3c, 0 0 18px rgba(255,90,60,.4); }
.bk.wx-rain::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(105deg, transparent 0 22px, rgba(170,190,220,.08) 22px 23px); }
.bk.wx-cold, .bk.wx-snow { background: radial-gradient(800px 400px at 50% 100%, rgba(120,170,255,.18), transparent 70%), #120c10; }
.cust .kd { position: absolute; left: 2px; top: 1px; font-size: 14px; } .cust .po { position: absolute; right: 2px; top: 1px; font-size: 12px; }
.cust.k-granny { background: #fff3f8; } .cust.k-youtuber { background: #f0f4ff; box-shadow: inset 0 0 0 2px #5a7ad8; } .cust.k-jerk { background: #ffece6; box-shadow: inset 0 0 0 2px #c8322a; } .cust.k-students { width: 84px; } .cust.k-worker .pat em { background: #e0a92a; } .cust.k-rainy { background: #eef4fa; }
.mold.pouring { background: linear-gradient(180deg, #4a4030, #2a2018); }
.pbar { position: relative; width: 90%; height: 9px; background: #111; overflow: hidden; } .pbar .z1 { position: absolute; top: 0; bottom: 0; background: rgba(94,196,106,.6); } .pbar b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #f3d9a0; box-shadow: 2px 0 0 #fff; }
.mold.nofill { box-shadow: inset 0 0 0 3px #5aa0ff, 0 0 14px rgba(90,160,255,.5); } .mold.nofill small { color: #9fd0ff; font-weight: 700; }
.bk-fill button b { display: inline-flex; gap: 4px; align-items: baseline; } .bk-fill button b small { font-size: 11px; color: var(--muted); }
.bk-legend { font-size: 11px; color: var(--dim); }
/* 결과 */
.rc-end { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 1; text-align: center; padding: 6px 14px; background: rgba(26,14,8,.78); box-shadow: 0 0 0 2px #e0a92a; white-space: nowrap; }
.rc-end small { display: block; font-size: 11px; color: #e0a92a; letter-spacing: .2em; } .rc-end b { font-size: clamp(16px, 3.6vw, 22px); color: #fff4e0; }
.rc-end-d { margin: 12px 18px 0; padding: 10px 14px; background: #3a2414; color: #ffe7a8; font-size: 14.5px; line-height: 1.7; word-break: keep-all; }
.achs { display: flex; flex-wrap: wrap; gap: 6px; } .achs span { font-size: 13px; padding: 4px 10px; background: #3a2414; color: #ffd35a; }
.shopsum { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; } .shopsum span { font-size: 13px; padding: 4px 8px; background: rgba(58,36,20,.1); }
@media (max-width: 640px) { .rc-end { top: 8px; } }
/* 도감 */
.cx-sec { margin: 14px 0; } .cx-sec h3 { margin: 0 0 6px; font-size: 16px; } .cx-sec h3 small { font-size: 12px; color: var(--muted); font-weight: 400; }
.cx-bar { height: 6px; background: #1a0f08; margin-bottom: 8px; } .cx-bar i { display: block; height: 100%; background: linear-gradient(90deg, #e0a92a, #ffd35a); }
.cx-grid { display: grid; gap: 6px; } .cx-grid.ach { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } .cx-grid.end { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } .cx-grid.menu { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); } .cx-grid.kind, .cx-grid.ev { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.cx { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 6px; text-align: center; background: #2a1a10; box-shadow: inset 0 0 0 2px #4a3020; opacity: .55; }
.cx.on { opacity: 1; box-shadow: inset 0 0 0 2px #e0a92a; } .cx .ic { font-size: 26px; } .cx b { font-size: 13px; } .cx small { font-size: 11px; color: var(--muted); line-height: 1.4; word-break: keep-all; } .cx em { position: absolute; right: 4px; top: 2px; font-style: normal; font-size: 11px; color: var(--yellow); }
.cx canvas { width: 100%; height: auto; aspect-ratio: 32 / 15; }

/* 굽는 법 연습 (11-20) */
.bk.tut .bk-help { min-height: 1.4em; }
.bk-coach { position: fixed; left: 50%; bottom: calc(120px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 126; width: min(560px, calc(100vw - 24px)); padding: 12px 14px; background: #fff7e2; color: #2a1a06; box-shadow: 0 0 0 3px #e0a92a, 0 10px 30px rgba(0,0,0,.5); pointer-events: auto; }
.bk-coach.pop { animation: popIn .3s; }
.bk-coach b { display: block; font-size: 18px; line-height: 1.4; word-break: keep-all; } .bk-coach b span { font-size: 22px; }
.bk-coach p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: #5a3a1a; word-break: keep-all; }
.cc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; } .cc-n { font-size: 12px; color: #a0702a; font-weight: 700; }
.cc-skip { font: inherit; font-size: 12px; background: none; border: 0; color: #8a6a4a; text-decoration: underline; cursor: pointer; }
.cc-fish { margin-top: 6px; font-size: 24px; letter-spacing: 4px; }
[data-tut] { position: relative; z-index: 2; outline: 4px solid #ffd35a; outline-offset: 2px; animation: tutPulse 1s ease-in-out infinite; }
@keyframes tutPulse { 50% { outline-color: rgba(255,211,90,.25); } }
.bk-tutend { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 16px; background: rgba(10,6,2,.82); animation: popIn .25s; }
.bk-tutend > div { width: min(460px, 100%); padding: 20px; background: #fff7e2; color: #2a1a06; box-shadow: 0 0 0 4px #e0a92a; display: grid; gap: 10px; }
.bk-tutend b { font-size: 22px; text-align: center; } .bk-tutend p { margin: 0; font-size: 15px; line-height: 1.6; word-break: keep-all; }
.bk-tutend ol, .bk-tutend ul { margin: 0; padding-left: 22px; font-size: 15px; line-height: 1.7; word-break: keep-all; } .bk-tutend ul { font-size: 13.5px; color: #5a3a1a; }
@media (prefers-reduced-motion: reduce) { [data-tut] { animation: none; } }
@media (max-width: 560px) { .bk-coach { bottom: calc(96px + env(safe-area-inset-bottom)); } .bk-coach b { font-size: 16px; } }
.bk.tut .bk-time, .bk.tut .bk-tbar, .bk.tut #bkEnd { visibility: hidden; }
.cc-fish .off { opacity: .22; filter: grayscale(1); } .cc-fish small { font-size: 14px; color: #a0702a; letter-spacing: 0; }
