/* ===== 펼친 메뉴판: 책갈피 탭 · 단품 · 세트 · 오마카세 · 랜덤 ===== */
/* 종이 페이지 안에서는 버튼·칩이 종이 색에 맞게 (다크/라이트 공통) */
.page { --surface: #fffdf8; --surface-2: #fff; --surface-3: #fff1e0; --border: rgba(120, 90, 60, .18); --border-2: rgba(120, 90, 60, .38); --text: #3f3a33; --text-2: #6b5d4d; --muted: #8a8070; --mode-color: var(--tab-color, #c98a64); }
.page .hint { color: #8a8070; }
.page .chip { color: #5d5043; }
.page .chip.on { background: color-mix(in srgb, var(--tab-color) 16%, #fff); border-color: var(--tab-color); color: #3f3a33; }
.page .btn-ghost:hover { background: rgba(120, 90, 60, .08); }

.book-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: -6px; padding: 0 14px; position: relative; z-index: 1; }
.book-tab { display: flex; align-items: center; gap: 10px; padding: 10px 14px 14px; border-radius: 14px 14px 0 0; text-align: left; color: #fff; background: color-mix(in srgb, var(--tab-color) 55%, #2a2230); border: 0; box-shadow: inset 0 -8px 12px -10px rgba(0, 0, 0, .5); transform: translateY(6px); transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .25s; min-width: 0; }
.book-tab:hover { transform: translateY(0); background: color-mix(in srgb, var(--tab-color) 75%, #2a2230); }
.book-tab.on { transform: translateY(0); background: #fffaf1; color: #3f3a33; box-shadow: 0 -6px 16px -8px rgba(0, 0, 0, .35); border-top: 4px solid var(--tab-color); }
.bt-icon { font-size: 24px; flex: none; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .15)); }
.bt-text { display: flex; flex-direction: column; min-width: 0; }
.bt-text b { font-size: 16px; font-weight: 900; }
.bt-text em { font-style: normal; font-size: 11.5px; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root[data-theme="light"] .book-tab:not(.on) { background: color-mix(in srgb, var(--tab-color) 70%, #fff); color: #fff; }
.spread { position: relative; z-index: 2; border-top: 4px solid var(--tab-color); }
.page-foot { margin-top: auto; font-size: 12.5px; color: #8a8070; padding-top: 6px; border-top: 1px dashed rgba(120, 90, 60, .2); }
.page-title span { color: #7a3e3e; }

/* 세트: 묶음 제목 */
.menu-sec { display: flex; flex-direction: column; gap: 8px; }
.menu-sec h3 { font-size: 14px; font-weight: 900; color: #6b4a2f; letter-spacing: -.01em; }
.set-card.flex-card { background: linear-gradient(135deg, #fff6e0, #ffe9d6); border: 1.5px dashed #e3a06b; }
.set-card.flex-card strong { font-size: 15px; }

/* 시간 고르기: 칩 + 직접 조절 */
.time-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.time-stepper { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 999px; border: 1px dashed rgba(120, 90, 60, .35); background: #fff; }
.time-stepper.on { border-style: solid; border-color: var(--tab-color); background: color-mix(in srgb, var(--tab-color) 14%, #fff); }
.time-stepper b { min-width: 72px; text-align: center; font-size: 13px; font-weight: 800; }
.ts-btn { width: 30px; height: 30px; border-radius: 50%; font-size: 18px; font-weight: 800; color: #6b5d4d; display: grid; place-items: center; }
.ts-btn:hover { background: rgba(120, 90, 60, .1); }

/* 오마카세: 주방장 */
.omk-left, .rnd-left { gap: 16px; }
.chef-wrap { display: flex; align-items: flex-end; gap: 12px; }
.chef { position: relative; width: 96px; flex: none; aspect-ratio: 1 / 1.25; }
.chef .chef-art { width: 100%; height: 100%; object-fit: contain; display: block; }
.chef.has-art .chef-fallback { display: none; }
.chef-fallback { position: absolute; inset: 0; animation: chefBob 3.2s ease-in-out infinite; }
@keyframes chefBob { 50% { transform: translateY(-3px); } }
.toque { position: absolute; left: 14%; right: 14%; top: 0; height: 36%; }
.toque i { position: absolute; bottom: 30%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .05), 0 2px 4px rgba(0, 0, 0, .12); }
.toque i:nth-child(1) { left: 0; } .toque i:nth-child(2) { left: 27%; bottom: 46%; } .toque i:nth-child(3) { right: 0; }
.toque::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: 0; height: 38%; border-radius: 6px; background: #fff; box-shadow: 0 2px 3px rgba(0, 0, 0, .12); }
.chef-face { position: absolute; left: 16%; right: 16%; top: 30%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffe2c8, #ffc9a3); box-shadow: 0 3px 6px rgba(0, 0, 0, .15); z-index: 1; }
.chef-face .eye { position: absolute; top: 44%; width: 9%; height: 13%; border-radius: 50%; background: #3a2a22; animation: blink 4.5s infinite; }
.chef-face .eye.l { left: 30%; } .chef-face .eye.r { right: 30%; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.chef-face .blush { position: absolute; top: 58%; width: 16%; height: 9%; border-radius: 50%; background: #ff9aa8; opacity: .7; }
.chef-face .blush.l { left: 14%; } .chef-face .blush.r { right: 14%; }
.chef-face .mouth { position: absolute; left: 42%; top: 62%; width: 16%; height: 9%; border: 2.5px solid #3a2a22; border-top: 0; border-radius: 0 0 12px 12px; }
.chef-body { position: absolute; left: 10%; right: 10%; bottom: 0; height: 26%; border-radius: 40% 40% 12px 12px; background: #fff; box-shadow: 0 3px 6px rgba(0, 0, 0, .12); }
.chef-body i { position: absolute; left: 34%; right: 34%; top: 0; height: 40%; border-radius: 0 0 50% 50%; background: #ff7a8a; }
.chef-bubble { position: relative; flex: 1; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1.5px solid rgba(120, 90, 60, .18); font-size: 13.5px; font-weight: 700; line-height: 1.5; color: #4a3d30; box-shadow: 0 6px 14px -8px rgba(120, 80, 40, .4); margin-bottom: 14px; }
.omk-q { display: flex; flex-direction: column; gap: 8px; }
.omk-label { font-size: 13.5px; font-weight: 900; color: #4a3d30; }
.omk-label em { font-style: normal; font-weight: 600; font-size: 11.5px; color: #9a8b78; margin-left: 4px; }
.opt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.omk-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; font-weight: 800; color: #4a3d30; }
.omk-toggle em { font-style: normal; font-weight: 600; font-size: 11.5px; color: #9a8b78; margin-left: 4px; }
.omk-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.omk-toggle .sw { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #e3d8ca; transition: background .2s; flex: none; }
.omk-toggle .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.omk-toggle input:checked + .sw { background: var(--tab-color); }
.omk-toggle input:checked + .sw::after { transform: translateX(18px); }
.omk-toggle input:focus-visible + .sw { outline: 2px solid var(--tab-color); outline-offset: 2px; }

/* 코스 카드 (고급 레스토랑 메뉴 느낌) */
.course-card, .cap-card { position: relative; padding: 18px 18px 16px; border-radius: 14px; background: #fffdf7; border: 1.5px solid rgba(120, 90, 60, .2); box-shadow: inset 0 0 0 5px #fffdf7, inset 0 0 0 6px rgba(201, 138, 100, .35), 0 12px 24px -16px rgba(80, 50, 20, .5); display: flex; flex-direction: column; gap: 12px; }
.cc-head { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.cc-kicker { font-family: Georgia, "Times New Roman", serif; letter-spacing: .35em; font-size: 11px; color: var(--tab-color); font-weight: 700; }
.cc-head strong { font-size: 20px; font-weight: 900; color: #3f2f24; }
.cc-date { font-size: 12px; color: #9a8b78; }
.cc-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 12.5px; color: #6b5d4d; }
.cc-meta b { color: #3f2f24; }
.cc-tl { display: flex; gap: 3px; height: 8px; } .cc-tl i { display: block; border-radius: 4px; flex-basis: 0; min-width: 4px; }
.cc-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; }
.cc-list li { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.cc-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: color-mix(in srgb, var(--mode-color) 16%, #fff); flex: none; }
.cc-name { display: flex; flex-direction: column; min-width: 0; }
.cc-name b { font-size: 14px; color: #3f2f24; }
.cc-name em { font-style: normal; font-size: 12px; color: #8a7b68; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-dots { flex: 1; min-width: 12px; border-bottom: 2px dotted rgba(120, 90, 60, .3); transform: translateY(4px); }
.cc-min { font-weight: 800; font-size: 13.5px; color: #3f2f24; white-space: nowrap; }
.cc-notes { padding: 10px 12px; border-radius: 10px; background: #fff6ea; font-size: 12.5px; color: #5d4d3c; }
.cc-notes b { display: block; margin-bottom: 4px; font-size: 13px; }
.cc-notes ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; }
.course-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.course-actions .grow { flex: 1; }

/* 랜덤: 뽑기 기계 */
.gacha { position: relative; width: min(220px, 70%); aspect-ratio: 1 / 1.15; margin: 0 auto; }
.gacha .gacha-art { width: 100%; height: 100%; object-fit: contain; display: block; }
.gacha.has-art .gacha-fallback { display: none; }
.gacha-fallback { position: absolute; inset: 0; }
.g-dome { position: absolute; left: 6%; right: 6%; top: 0; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .95), rgba(220, 240, 255, .55) 45%, rgba(170, 210, 245, .45)); box-shadow: inset 0 -10px 24px rgba(90, 140, 200, .25), 0 6px 14px rgba(0, 0, 0, .12); border: 4px solid #fff; }
.g-dome i { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(180deg, var(--c) 50%, #fff 50%); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08), 0 2px 3px rgba(0, 0, 0, .12); transform: translate(-50%, -50%) rotate(var(--r)); }
.g-shine { position: absolute; left: 16%; top: 10%; width: 28%; height: 16%; border-radius: 50%; background: rgba(255, 255, 255, .8); transform: rotate(-30deg); filter: blur(1px); }
.g-body { position: absolute; left: 12%; right: 12%; bottom: 0; height: 40%; border-radius: 18px 18px 22px 22px; background: linear-gradient(180deg, #ff9fb4, #ff7d98); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .08), 0 10px 18px -8px rgba(200, 60, 90, .55); }
.g-label { position: absolute; left: 0; right: 0; top: 10%; text-align: center; font: 900 11px/1 Georgia, serif; letter-spacing: .3em; color: #fff; opacity: .9; }
.g-knob { position: absolute; left: 14%; top: 36%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .1), 0 2px 4px rgba(0, 0, 0, .15); }
.g-knob i { position: absolute; left: 42%; top: 10%; width: 16%; height: 80%; border-radius: 6px; background: #ffb547; }
.g-slot { position: absolute; right: 14%; top: 40%; width: 30%; height: 34%; border-radius: 10px; background: #5a2b3a; box-shadow: inset 0 4px 6px rgba(0, 0, 0, .4); }
.g-drop { position: absolute; right: 22%; bottom: 10%; width: 14%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(180deg, #ffd166 50%, #fff 50%); box-shadow: 0 3px 4px rgba(0, 0, 0, .2); opacity: 0; }
.gacha.drawing .g-dome { animation: domeShake .35s ease-in-out 3; }
.gacha.drawing .g-dome i { animation: capJiggle .3s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -40ms); }
.gacha.drawing .g-knob { animation: knobTurn 1s cubic-bezier(.5, 0, .3, 1) forwards; }
.gacha.drawing .g-drop { animation: capDrop .6s .55s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes domeShake { 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
@keyframes capJiggle { to { transform: translate(-50%, -62%) rotate(calc(var(--r) + 25deg)); } }
@keyframes knobTurn { to { transform: rotate(360deg); } }
@keyframes capDrop { 0% { opacity: 0; transform: translateY(-30px) scale(.6); } 60% { opacity: 1; } 100% { opacity: 1; transform: translateY(18px) scale(1.25); } }
.kind-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kind { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 12px; text-align: left; background: #fff; border: 1.5px solid rgba(120, 90, 60, .18); color: #4a3d30; transition: border-color .2s, transform .2s, background .2s; }
.kind b { font-size: 13px; } .kind em { font-style: normal; font-size: 11px; color: #9a8b78; line-height: 1.35; }
.kind:hover { transform: translateY(-2px); border-color: rgba(120, 90, 60, .38); }
.kind.on { border-color: var(--tab-color); background: color-mix(in srgb, var(--tab-color) 12%, #fff); }
.btn-draw { align-self: center; padding: 13px 34px; font-size: 17px; font-weight: 900; border-radius: 999px; }
.btn-draw:disabled { opacity: .6; }
.cap-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cap-row { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 14px; background: #fff; border: 1.5px solid color-mix(in srgb, var(--mode-color) 35%, #fff); }
.cap-thumb { position: relative; width: 84px; flex: none; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #10131b; }
.cap-thumb canvas, .cap-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cap-timer { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; }
.cap-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cap-text b { font-size: 13.5px; color: #3f2f24; }
.cap-text em { font-style: normal; font-size: 12px; color: #8a7b68; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap-min { font-weight: 900; font-size: 14px; color: #3f2f24; padding-right: 8px; white-space: nowrap; }
.cap-card.reveal .cap-row { animation: capIn .5s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--d) * 110ms + 80ms); }
.cap-card.reveal .cc-head { animation: capIn .45s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes capIn { from { opacity: 0; transform: translateY(14px) scale(.92); } }
.cap-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 30px 10px; color: #4a3d30; }
.cap-empty strong { font-size: 18px; font-weight: 900; }
.cap-empty .hint { max-width: 300px; line-height: 1.5; }
.cap-mystery { display: flex; gap: 10px; }
.cap-mystery i { width: 48px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 900 20px/1 system-ui; font-style: normal; color: #fff; background: linear-gradient(180deg, #b8a6ff 50%, #fff 50%); text-shadow: 0 1px 2px rgba(0, 0, 0, .3); box-shadow: 0 4px 8px rgba(0, 0, 0, .12); animation: chefBob 2.4s ease-in-out infinite; }
.cap-mystery i:nth-child(2) { background: linear-gradient(180deg, #ff8fa3 50%, #fff 50%); animation-delay: .3s; }
.cap-mystery i:nth-child(3) { background: linear-gradient(180deg, #ffd166 50%, #fff 50%); animation-delay: .6s; }

/* ===== 테이블: 💡 조명 (누르면 낮 ↔ 밤) ===== */
.obj-lamp .obj-fallback { position: relative; display: block; aspect-ratio: 3 / 4; }
.obj-lamp .lamp { position: absolute; inset: 0; }
.lamp-shade { position: absolute; left: 14%; right: 14%; top: 6%; height: 36%; border-radius: 50% 50% 10px 10px / 70% 70% 10px 10px; background: linear-gradient(180deg, #ffe1a1, #f7c46b); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .08), 0 6px 10px rgba(0, 0, 0, .25); z-index: 2; }
.lamp-shade i { position: absolute; left: 12%; top: 18%; width: 22%; height: 22%; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.lamp-bulb { position: absolute; left: 40%; top: 36%; width: 20%; aspect-ratio: 1; border-radius: 50%; background: #e9e1cf; z-index: 1; transition: background .3s, box-shadow .3s; }
.lamp-stem { position: absolute; left: 47%; top: 40%; width: 6%; height: 44%; border-radius: 4px; background: linear-gradient(90deg, #c9a27a, #e8c8a2, #c9a27a); }
.lamp-base { position: absolute; left: 22%; right: 22%; bottom: 4%; height: 12%; border-radius: 50%; background: linear-gradient(180deg, #e8c8a2, #c69c72); box-shadow: 0 6px 10px rgba(0, 0, 0, .3); }
.lamp-chain { position: absolute; right: 30%; top: 40%; width: 2px; height: 20%; background: #b08a63; z-index: 1; transform-origin: top center; }
.lamp-chain i { position: absolute; left: -4px; bottom: -8px; width: 10px; height: 10px; border-radius: 50%; background: #ffb547; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.lamp-glow, .lamp-pool { position: absolute; pointer-events: none; opacity: 0; transition: opacity .5s; }
.lamp-glow { left: -40%; right: -40%; top: -20%; height: 110%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 140, .55), rgba(255, 200, 120, .15) 60%, transparent); }
.lamp-pool { left: -120%; right: 0; top: 40%; height: 120%; background: radial-gradient(50% 45% at 70% 30%, rgba(255, 220, 150, .3), transparent 70%); }
.lamp-on .lamp-glow, .lamp-on .lamp-pool { opacity: 1; }
.lamp-on .lamp-bulb { background: #fff4c2; box-shadow: 0 0 14px 6px rgba(255, 220, 140, .8); }
.lamp-on .lamp-shade { background: linear-gradient(180deg, #ffe9b8, #ffcf74); }
.obj-lamp.clickable:hover .lamp-chain, .obj-lamp.clickable:focus-visible .lamp-chain { animation: chainPull .6s ease-in-out; }
@keyframes chainPull { 30% { transform: translateY(6px); } 60% { transform: translateY(-2px); } }
.lamp-off .obj-lamp .obj-label em, .lamp-on .obj-lamp .obj-label em { white-space: nowrap; }
/* 낮(조명 끔): 테이블에 따뜻한 빛 웅덩이 대신 창가 햇살 */
.lamp-off .table-surface::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .22) 0 18%, transparent 18% 26%, rgba(255, 255, 255, .14) 26% 36%, transparent 36%); mix-blend-mode: soft-light; }
/* 조명이 바뀔 때: 램프 위치에서 빛이 퍼지듯 */
:root.vt-light::view-transition-old(root) { animation: none; }
:root.vt-light::view-transition-new(root) { animation: lightReveal .7s cubic-bezier(.4, 0, .2, 1); }
@keyframes lightReveal { from { clip-path: circle(0 at var(--lx, 90%) var(--ly, 10%)); } to { clip-path: circle(150vmax at var(--lx, 90%) var(--ly, 10%)); } }

/* ===== 할 일 책자: 파일 하나 · 쌓기 · 책자 펼치기를 각각 따로 강조 ===== */
.obj-notebook.clickable:hover, .obj-notebook.clickable:focus-within { transform: translate(calc(var(--mx) * var(--depth) * -26px), calc(var(--my) * var(--depth) * -18px)) rotate(var(--rot)); filter: none; }
.nb-stack { border-radius: 14px; transition: transform .3s cubic-bezier(.2, .8, .2, 1), filter .3s; outline: 0; }
.nb-stack:hover:not(:has(.nb-file:hover)), .nb-stack:focus-visible { transform: translateY(-6px); filter: drop-shadow(0 0 18px rgba(255, 214, 150, .6)); }
.nb-open-hint { position: absolute; left: 50%; bottom: -6px; transform: translate(-50%, 6px); z-index: 6; padding: 4px 12px; border-radius: 999px; background: #3f2f24; color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.nb-stack:hover:not(:has(.nb-file:hover)) .nb-open-hint, .nb-stack:focus-visible .nb-open-hint { opacity: 1; transform: translate(-50%, 0); }
.nb-file { cursor: pointer; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, outline-color .25s; outline: 2.5px solid transparent; outline-offset: 2px; }
.nb-file:not(.empty):hover, .nb-file:not(.empty):focus-visible { z-index: 5; transform: translate(-4px, -10px) rotate(0deg) scale(1.04); outline-color: #ffb547; box-shadow: 0 16px 26px -8px rgba(0, 0, 0, .45); }
.nb-peek { position: absolute; right: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; background: #ffb547; color: #3f2f24; font-size: 10.5px; font-weight: 900; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s; pointer-events: none; }
.nb-file:hover .nb-peek, .nb-file:focus-visible .nb-peek { opacity: 1; transform: scale(1); }
.nb-actions .btn { transition: transform .2s, box-shadow .2s, background .2s; }
.nb-actions .btn:hover, .nb-actions .btn:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 3px rgba(255, 214, 150, .7), 0 8px 16px -6px rgba(0, 0, 0, .45); }
.obj-notebook:has(.nb-stack:hover:not(:has(.nb-file:hover))) .obj-label { background: #fff; color: #2c2118; }
@media (hover: none) { .nb-peek { opacity: .9; transform: none; } }

/* ===== 반응형 ===== */
@media (max-width: 760px) {
  .book-tabs { grid-template-columns: repeat(2, 1fr); padding: 0; gap: 6px; margin-bottom: 8px; }
  .book-tab { border-radius: 14px; transform: none; padding: 10px 12px; }
  .book-tab.on { border-top: 0; box-shadow: 0 0 0 2px var(--tab-color); }
  .bt-icon { font-size: 22px; }
  .spread { border-top-width: 0; }
  .kind-chips { grid-template-columns: 1fr; }
  .kind { flex-direction: row; align-items: baseline; gap: 8px; }
  .chef { width: 78px; }
  .cap-thumb { width: 70px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .book-tab { padding: 6px 12px 10px; }
  .bt-text em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chef-fallback, .cap-mystery i, .chef-face .eye { animation: none; }
  .cap-card.reveal .cap-row, .cap-card.reveal .cc-head { animation: none; }
}

/* ===== 주문 창: 무엇을 할지 (할 일 책자와 연결) ===== */
.op-task { align-items: flex-start; }
.op-tasks { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.task-pick { display: flex; flex-direction: column; gap: 1px; max-width: 240px; min-width: 0; padding: 7px 12px; border-radius: 12px; text-align: left; background: var(--surface-2); border: 1.5px solid var(--border); color: var(--text); transition: border-color .2s, background .2s, transform .2s; }
.task-pick b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-pick em { font-style: normal; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-pick:hover { transform: translateY(-1px); border-color: var(--border-2); }
.task-pick.on { border-color: var(--mode-color); background: color-mix(in srgb, var(--mode-color) 16%, transparent); }
.task-pick.ghost { border-style: dashed; background: transparent; }
.task-add { display: flex; gap: 6px; flex: 1 1 240px; }
.task-add input { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1.5px solid var(--mode-color); color: var(--text); font: inherit; font-size: 13.5px; }
.op-task-hint { margin-top: -6px; }
.btn:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.3); }

/* ===== 할 일 창: ▶ 지금 하기 (맨 위) ===== */
.tf-now { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; margin-bottom: 4px; border-radius: 16px; background: color-mix(in srgb, var(--mode-color) 12%, var(--surface-2)); border: 1.5px solid color-mix(in srgb, var(--mode-color) 45%, transparent); }
.tf-now-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tf-now-head b { font-size: 15px; font-weight: 900; }
.tf-now-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tf-now-row .pl-chips { flex: 1; min-width: 0; }
.tf-now .btn-start { flex: none; }
.tf-now-note { margin: 0; font-size: 12px; }
@media (max-width: 600px) { .tf-now .btn-start { width: 100%; justify-content: center; } }
/* 조명 갓: 예전 장식 스타일의 기울기(-12°)가 남아 있던 것 바로잡기 */
.obj-lamp .lamp-shade { transform: none; }
/* 메뉴판 페이지가 내용물 때문에 화면보다 넓어지지 않게 (휴대폰에서 오른쪽이 잘리던 문제) */
.spread { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.spread > .page { min-width: 0; }
@media (max-width: 760px) { .spread { grid-template-columns: minmax(0, 1fr); } }
