/* 2026-11-20 화면 다듬기: 확인 창 가격 줄, 음성채팅 창 버튼 배치, 게임 화면 상단 띠, 현장 조사 시작 버튼 */

/* 확인 창 가격 줄: "토큰비용 (토큰 그림)10" / "토큰비용 무료" */
.checkout-confirm-dialog .briefing-confirm-price{display:grid;gap:6px;white-space:normal}
.briefing-confirm-lead{display:block}
.briefing-confirm-cost{display:inline-flex;align-items:center;gap:6px;font-size:17px;font-weight:700;line-height:1.4}
.briefing-confirm-token{width:26px;height:26px;object-fit:contain;flex:none}
.briefing-confirm-cost b{font-size:21px;font-weight:900}
.briefing-confirm-cost .briefing-confirm-free{color:var(--accent,#ffc928)}

/* 음성채팅 창: ?는 오른쪽 위 작은 동그라미, 나머지 버튼은 같은 너비로 한 줄에 */
.voice-chat-popover .voice-chat-menu{display:flex!important;flex-wrap:wrap;gap:8px}
.voice-chat-popover .voice-chat-menu>.voice-chat-button{flex:1 1 0;min-width:0;min-height:42px;padding:8px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;justify-content:center;text-align:center}
.voice-chat-popover .voice-chat-menu>[data-voice=mic]{flex-basis:100%}
.voice-chat-popover .voice-chat-menu>[hidden]{display:none!important}
.voice-chat-popover .voice-chat-menu>.voice-chat-help-button{position:absolute;top:11px;right:12px;flex:none;width:28px;min-width:28px;height:28px;min-height:28px;padding:0;border-radius:50%!important;font-size:13px;font-weight:700;line-height:1;display:grid;place-items:center;border:1px solid currentColor;opacity:.85}
.voice-chat-popover .voice-chat-menu>.voice-chat-help-button[aria-expanded=true]{opacity:1}
.voice-chat-popover::before{min-height:28px;line-height:28px;margin-bottom:10px!important;padding-right:40px}

/* 게임 화면: 맨 위 상단바는 스크롤과 함께 올라가고, 단계 띠만 위에 붙는다(두 띠가 겹치지 않게). */
body.in-game .topbar{position:relative;top:auto}

/* 현장 조사 시작 버튼: 가로로 넓혀 가운데에 */
.stage-actions:has(>.investigation-start){justify-content:center}
.stage-actions>.investigation-start{flex:1 1 100%;align-items:center}
.investigation-start>.button.big{width:min(100%,310px);justify-content:center}

/* 사진 크게 보기 창은 바탕이 늘 어두우므로 제목도 밝은 글자로 */
.photo-lightbox header strong{color:#f5f2ee}

/* 조사 토큰 칸: 빈 칸은 편집기 테두리색, 남은 토큰은 편집기 버튼색(모든 색상 모드) */
:root .pips{gap:5px}
:root .pips i{height:7px;background:color-mix(in srgb,var(--frame-base,#a88c55) 22%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--frame-base,#a88c55) 70%,transparent)}
:root .pips i.on{background:var(--mode-button,#ffc06a);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--mode-button,#ffc06a) 70%,#000),0 0 6px color-mix(in srgb,var(--mode-button,#ffc06a) 45%,transparent)}

/* 그림 지도 위 장소 칸은 색상 모드와 관계없이 반투명(지도 그림이 보이게) */
:root[data-color-remap] .illustrated-plan .tile{background:rgba(15,20,25,.14)}

/* 장소 살펴보기: 조사한 자리는 돋보기 대신 단서 번호(공개는 버튼색 채움, 비공개는 버튼색 테두리) */
:root .scene-clue.found{width:auto;min-width:42px;padding:0 8px;border-radius:21px;background:var(--mode-button,#e2b84e)!important;color:var(--mode-button-ink,#241c0a)!important;border:2px solid color-mix(in srgb,var(--mode-button,#e2b84e) 55%,#fff)}
:root .scene-clue.found.private{background:var(--mode-panel,#211e16)!important;color:var(--mode-button,#e2b84e)!important;border:2px dashed var(--mode-button,#e2b84e)}
.scene-clue-no{font:900 16px/1 system-ui,sans-serif;letter-spacing:.02em;white-space:nowrap}
@media(max-width:600px){:root .scene-clue.found{min-width:30px;padding:0 6px;border-radius:15px}.scene-clue-no{font-size:13px}}

/* 잠긴 장소: 그림을 가리고 자물쇠 그림을 올린다(지도 칸과 장소 살펴보기 모두). 색은 색상 모드·편집기 버튼색을 따른다. */
.locked-cover{position:absolute;inset:0;z-index:6;display:grid;place-items:center;align-content:center;gap:6px;pointer-events:none;
 background:var(--mode-panel,#17150f);background-image:repeating-linear-gradient(135deg,color-mix(in srgb,var(--mode-button,#e2b84e) 7%,transparent) 0 10px,transparent 10px 20px);color:var(--mode-button,#e2b84e);border-radius:inherit}
.locked-cover .ico{width:30px;height:30px;stroke-width:2}
.locked-cover b{font-size:13px;font-weight:800;letter-spacing:.04em}
.tile.locked .locked-cover .ico{width:36px;height:36px}
.tile.locked .tile-head,.tile.locked .tile-clue-count{position:relative;z-index:7}
.investigation-image.locked{min-height:200px;overflow:hidden;border-radius:12px}
.investigation-image.locked .scene-clue,.investigation-image.locked .image-original-button{display:none}
.investigation-image.locked .locked-cover .ico{width:44px;height:44px}

/* 로고 오른쪽 위 작은 회색 Beta 표시(홈 화면 편집기 → 상단 로고에서 켜고 끔) */
.topbar .brand{position:relative}
:root:not([data-brand-beta=off]) .topbar .brand::after{content:"Beta";position:absolute;top:4px;right:14px;transform:translateX(100%);padding:1px 5px;border:1px solid color-mix(in srgb,var(--muted,#9a948a) 55%,transparent);border-radius:6px;color:var(--muted,#9a948a);background:color-mix(in srgb,var(--page,#15130f) 70%,transparent);font:700 9.5px/1.3 system-ui,sans-serif;letter-spacing:.04em;pointer-events:none;white-space:nowrap}
@media(max-width:700px){:root:not([data-brand-beta=off]) .topbar .brand::after{font-size:8.5px;padding:0 4px;right:10px;top:2px}}

/* 작품 그림 위 좌우 화살표: 편집기 테두리색 바탕 + 흰 화살표 + 밝은 테두리 고리(어느 그림·색상 모드에서도 보이게) */
:root :is(.home-rail-shell,.home-feature)>.home-arrows button{background:var(--frame-base,#4d3a2a)!important;color:#fff!important;border-color:color-mix(in srgb,var(--frame-highlight,#c9a45a) 70%,#fff)!important;box-shadow:0 0 0 2px #ffffffd9,0 4px 16px #0009!important}
:root :is(.home-rail-shell,.home-feature)>.home-arrows button:hover{background:color-mix(in srgb,var(--frame-base,#4d3a2a) 80%,#fff)!important;color:#fff!important}
:root :is(.home-rail-shell,.home-feature)>.home-arrows button svg{stroke:#fff}

/* 출석 버튼 레드닷이 버튼 모서리에 잘리지 않게: 둥근/네모 테두리는 잘라내기를 끄고(모양은 border-radius가 유지), 8각형일 때는 점을 안쪽으로 */
:root:is([data-frame-shape=rounded],[data-frame-shape=square]) button.att-check.att-check.att-check.att-check:is(#att-check-frame,.att-check){clip-path:none!important;overflow:visible}
.att-check .attendance-dot{z-index:8;width:11px;height:11px}
:root:not([data-frame-shape=rounded]):not([data-frame-shape=square]) .att-check .attendance-dot{top:4px;right:6px}
