/* 11-22 우님 「커피 주문할 때 대화가 게임 같지 않고 딱딱해」: 사장님 대화·메뉴·자리 고르기를 처방사 대화창(rx-prescriber)처럼 — 얼굴 동그라미·이름표·짧은 말·큰 단추 */
dialog.owner-game{width:min(440px,calc(100vw - 24px));box-sizing:border-box;padding:22px 16px 16px;border-radius:18px;background:#fffaf0;border:2px solid #c9a24a;box-shadow:0 12px 32px rgba(40,30,10,.25);color:#24392f}
dialog.owner-game .owner-face{float:left;width:64px;height:64px;border-radius:50%;object-fit:cover;border:3px solid #c9a24a;background:#f3e6c4;margin:-4px 12px 6px 0}
dialog.owner-game .speaker{display:inline-block;padding:4px 12px;border-radius:999px;background:#345b48;color:#fff;font-weight:800;font-size:13px;margin:0 0 6px;letter-spacing:0}
dialog.owner-game h2{font-size:19px;line-height:1.35;margin:2px 0 4px}
dialog.owner-game h2+p{margin:0 0 12px;font-weight:600;color:#3e5246}
dialog.owner-game .dialogue-choices,dialog.owner-game .owner-cards{clear:both}
dialog.owner-game .owner-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:8px;margin:0}
dialog.owner-game .owner-cards[hidden]{display:none}
dialog.owner-game .owner-cards button{display:grid;align-content:center;justify-items:center;gap:3px;min-height:96px;padding:12px 8px;border-radius:14px;border:1.5px solid #d9c48e;background:#fff;color:#24392f;font:inherit;text-align:center;cursor:pointer}
dialog.owner-game .owner-cards button i{font-style:normal;font-size:28px;line-height:1}
dialog.owner-game .owner-cards button b{font-size:15px}
dialog.owner-game .owner-cards button span{font-size:12px;line-height:1.35;color:#6a7a6e}
dialog.owner-game .owner-cards button:hover,dialog.owner-game .owner-cards button:focus-visible{border-color:#345b48;background:#f4f8f2}
dialog.owner-game #coffee-beans{grid-template-columns:1fr}
dialog.owner-game #coffee-beans button{min-height:58px;justify-items:start;text-align:left;padding:10px 14px}
dialog.owner-game .coffee-beans-title{margin:0 0 2px;font-weight:700}
#coffee-order-dialog:has(#coffee-beans:not([hidden])) .owner-cards:not(#coffee-beans){display:none}
dialog.owner-game .dialogue-choices button i{font-style:normal;margin-right:6px}
dialog.owner-game .dialogue-aside{clear:both;margin-top:10px}
@media(max-width:420px){dialog.owner-game .owner-cards{grid-template-columns:repeat(2,1fr)}dialog.owner-game #coffee-beans{grid-template-columns:1fr}}
/* 메뉴판 대화창: style.css의 폰 화면 순서(flex·order)가 얼굴·말을 맨 아래로 보냈음 → 게임식에선 그냥 위에서 아래로 */
#coffee-order-dialog.owner-game{width:min(440px,calc(100vw - 24px))}
#coffee-order-dialog.owner-game[open]{display:block}
/* 사장님 첫 대화: owner-dialogue.css(어두운 아래 띠)를 덮어 처방사 대화창처럼 밝게 */
dialog.owner-dialogue.owner-game{background:#fffaf0;color:#24392f;border:2px solid #c9a24a;border-radius:18px;box-shadow:0 12px 32px rgba(40,30,10,.25);padding:20px 16px 14px;width:min(440px,calc(100% - 24px))}
dialog.owner-dialogue.owner-game .speaker{display:inline-block;color:#fff;font-size:13px;letter-spacing:0;margin:0 0 6px}
dialog.owner-dialogue.owner-game h2{font-size:19px;font-weight:700;margin:2px 0 4px;color:#24392f}
dialog.owner-dialogue.owner-game p{color:#3e5246;font-weight:600;font-size:14px;margin:0 0 10px}
dialog.owner-dialogue.owner-game .close{color:#5b6b5f}
dialog.owner-dialogue.owner-game .dialogue-choices{grid-template-columns:1fr;gap:6px;margin-top:8px}
#owner-dialog.owner-game .dialogue-choices>button{min-height:46px;border:1px solid #b7bda9;border-radius:12px;background:#fff;color:#254b39;font-weight:700;font-size:15px;padding:10px 14px}
#owner-dialog.owner-game .dialogue-choices>button:first-child{border:0;background:#345b48;color:#fff}
#owner-dialog.owner-game .dialogue-choices>button::before{content:none}
#owner-dialog.owner-game .dialogue-choices>button:hover{background:#f4f8f2}
#owner-dialog.owner-game .dialogue-choices>button:first-child:hover{background:#2b4c3c}
dialog.owner-dialogue.owner-game .dialogue-aside button{color:#5b6b5f}
/* 11-22 최종 검수 ③: 둘째 줄이 얼굴 아래로 떨어짐 → 얼굴은 왼쪽 위에 고정, 글은 얼굴 오른쪽 칸 안에서만 줄바꿈 · 아래 글자 잘림 → 창 높이 넉넉히 */
dialog.owner-game{position:fixed}
dialog.owner-game .owner-face{position:absolute;left:14px;top:16px;float:none;margin:0}
dialog.owner-game>.speaker,dialog.owner-game>h2,dialog.owner-game>h2+p{margin-left:78px}
dialog.owner-game>h2+p{min-height:22px}
dialog.owner-dialogue.owner-game,dialog.owner-game{max-height:min(82svh,680px);overflow:auto}
dialog.owner-game .dialogue-aside button{background:none;border:0;box-shadow:none;padding:6px 0;min-height:32px;color:#5b6b5f;font:600 13px/1.4 inherit;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
/* 커피 안내(초록)가 떠 있는 동안 위쪽 상태 말풍선은 숨김(두 개가 겹쳤음) — 안내에 사장님 말이 들어감 */
body.coffee-hinting #status{visibility:hidden}
/* 11-22 최종 검수 ①: 판이 올라가 있을 때 청음 창이 화면을 다 덮어 판 도는 장면이 안 보였음 → 아래쪽 작은 창(높이 40% 이하), 위는 3D 그대로 */
#turntable-dialog.deck-playing{inset:auto 0 max(8px,env(safe-area-inset-bottom));top:auto;margin:0 auto;width:min(620px,calc(100vw - 16px));max-height:40svh;overflow:auto;padding:12px 14px 0;border-radius:16px}
#turntable-dialog.deck-playing::backdrop{background:transparent;backdrop-filter:none}
#turntable-dialog.deck-playing[open]{display:flex;flex-direction:column}
#turntable-dialog.deck-playing>.eyebrow,#turntable-dialog.deck-playing>#deck-price{display:none}
#turntable-dialog.deck-playing>h2{order:0;font-size:18px;line-height:1.3;margin:0 40px 2px 0}
#turntable-dialog.deck-playing>#deck-artist{order:0;margin:0 0 6px;font-size:13px}
#turntable-dialog.deck-playing>.dialog-actions{order:2;position:static;display:flex;flex-wrap:wrap;gap:6px;padding:6px 0 8px;border-top:0;background:transparent}
#turntable-dialog.deck-playing>.dialog-actions>:is(button,a){flex:1 1 140px;min-height:40px;font-size:13px}
#turntable-dialog.deck-playing>.listening-content{order:1;display:block;padding-bottom:4px}
#turntable-dialog.deck-playing .listening-info{display:none}   /* 작품 소개는 판 소개 창에 그대로 있음 — 작은 창에선 제목·플레이어·단추만 */
#turntable-dialog.deck-playing .listening-media .fine{margin:4px 0 0}
#owner-dialog.owner-game>.speaker,#owner-dialog.owner-game>h2,#owner-dialog.owner-game>h2+p{margin-left:78px}   /* owner-dialogue.css의 여백 규칙보다 우선 */
/* 11-23 전체 점검 ②: 화면 맨 아래 재생바(listen-bar.mjs, 높이 64px, html[data-rx-listen-bar])가 청음 창 아래쪽 「Spotify에서 검색」 단추를 덮었음 → 재생바가 떠 있는 동안 창을 재생바 위로 */
html[data-rx-listen-bar="1"] #turntable-dialog.deck-playing{bottom:calc(72px + env(safe-area-inset-bottom));max-height:min(40svh,calc(100svh - 160px))}
html[data-rx-listen-bar="1"] #turntable-dialog:not(.deck-playing){max-height:calc(100svh - 160px);margin-bottom:80px}
