/* Text sizes account for the logical1080px stage being previewed at~360px. */
:root { --dim: #bdc7d9; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.studio-workspace { grid-template-columns: minmax(290px,.87fr) minmax(0,1.5fr); gap: 30px; padding-top: 22px; }
.stage-wrapper { width: min(100%,calc((100vh - 245px)*.5625)); }
.studio-brand small,.topbar-status,.session-time,.preview-format,.preview-footer .text-button { font-size: 12px; color: #c2ccdc; }
.eyebrow { color: #bdc7df; font-size: 11px; letter-spacing: 1px; }
.console-heading h2 { font-size: 20px; }.console-heading h2 span { color: #d9e0ef; }
.button,.button-ghost,.text-button { font-size: 14px; }
.metric strong { font-size: 24px; font-weight: 700; }
.metric span { color: #d1daeb; font-size: 13px; }
.studio-tabs button { font-size: 14px; min-height: 38px; color: #c4cee2; font-weight: 600; }
.studio-tabs button[aria-selected=true] { color: #f4eaff; }
.section-label,h3 { font-size: 16px; color: #f0f3fc; }
.section-heading p,.settings-row p { font-size: 13px; color: #c3cce0; }
.mode-badge,.small-tag,.key-hint { font-size: 11px; color: #c5cfe4; letter-spacing: .3px; }
.dock-input,select,textarea,.identity-fields input,.voice-preview-card .dock-input { font-size: 14px; color: #fff; background: #101724; line-height: 1.5; padding: 8px 11px; }
.dock-input::placeholder,textarea::placeholder { color: #afbdd3; }
.identity-fields label,.settings-card>label,.form-row>label { font-size: 13px; color: #d0dbef; font-weight: 500; }
.identity-fields { grid-template-columns: 1fr 1.5fr; }
.connection-footer,.connection-footer>span,.connection-footer .text-button { font-size: 12px; color: #c0d8d0; }
.connection-footer { flex-wrap: wrap; }
.connection-footer>span { white-space: normal; overflow-wrap: anywhere; }
.input-action .button { font-size: 14px; min-height: 38px; }
.ritual-button { min-height: 76px; padding: 11px 10px; gap: 8px; }
.ritual-copy strong { font-size: 14px; font-weight: 700; white-space: normal; line-height: 1.4; }
.ritual-copy small { font-size: 12px; color: #c3cde0; line-height: 1.5; }
.ritual-button kbd { opacity: 1; color: #c1cce1; font-size: 10px; }
.grand-button strong { font-size: 17px; }.grand-button small { font-size: 12px; color: #e1cdd6; }
.grand-button { min-height: 66px; padding: 10px 14px; }
.goal-summary h3 { font-size: 15px; color: #f1e7fa; }
.goal-summary-footer,.goal-summary-footer .text-button { font-size: 12px; color: #d2dced; }
.studio-leader-item { font-size: 14px; padding: 8px 0; }
.studio-leader-name { color: #eff3fc; }.studio-leader-merit { color: #ffe0a6; }
.studio-leader-rank { font-size: 12px; width: 25px; height: 25px; }
.leaderboard-empty,.form-note { font-size: 12px; color: #c0cce2; line-height: 1.7; }
.settings-row h3,.theme-option strong,.voice-preview-card h3 { font-size: 15px; }
.theme-option small { font-size: 12px; color: #c0cbe0; line-height: 1.5; }
.theme-option { padding-bottom: 15px; }
.segmented-control button,.audio-toggle-row { font-size: 14px; }
.settings-card .section-label .check-label,.toggle-pill,.audio-unlock p,.queue-line,.volume-label-line,.volume-label-line strong { font-size: 12px; color: #d4dfef; }
.audio-unlock .button,.settings-card>.button,.announcement-controls .button,.voice-preview-card .button { font-size: 14px; }
.audio-settings-grid,.scene-forms { gap: 14px; }
.activity-title { font-size: 15px; color: #f3f5fc; }.activity-meta { font-size: 13px; color: #c0cde3; }.activity-time { font-size: 12px; color: #b6c5e0; }
.activity-filters { grid-template-columns: 1fr; }
.activity-empty p { font-size: 14px; color: #c4cde0; }
.console-footer,.version-label { font-size: 11px; color: #bdc7de; }
.studio-toast { font-size: 15px; font-weight: 500; }
/* Solid dark plates keep gold and white text clear over the detailed temple. */
.stage-9x16 { --stage-text: #fffdf5; --stage-gold: #ffe7a8; }
.stage-9x16 .minimal-top-bar { flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.stage-9x16 .live-pill,.stage-9x16 .mini-stat-pill { background: #11131bf7; border: 1.5px solid #f0d6a0; font-size: 25px; font-weight: 700; padding: 8px 13px; color: #fff; max-width: 100%; }
.stage-9x16 .live-pill { max-width: 650px; }
.stage-9x16 .live-pill>span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-9x16 .ritual-hotspot { background: #11131bf7; font-size: 25px; font-weight: 700; padding: 7px 12px; gap: 7px; border-width: 1.5px; color: #fff0c4; }
.stage-9x16 .ritual-hotspot .hotspot-svg { width: 28px; height: 28px; }
.stage-9x16 .fortune-hotspot { top: 860px; }
.stage-9x16 .central-worshipper { width: 480px; }
.stage-9x16 .worshipper-wish-bubble { position: absolute; bottom: calc(100% + 12px); margin: 0; width: max-content; min-width: 280px; max-width: 560px; max-height: 142px; padding: 10px 16px; background: #11131bf7; border: 1.5px solid #ffdfa4; border-radius: 12px; font-size: 26px; font-weight: 600; color: #fff9e8; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; text-shadow: 0 2px 2px #000; }
.stage-9x16 .central-name-tag { position: absolute; top: 214px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 490px; margin: 0; padding: 7px 13px 7px 8px; border-radius: 12px; background: #10131cf7; border: 1.5px solid #ffe5a5; gap: 10px; }
.stage-9x16 .tag-avatar { width: 44px; height: 44px; font-size: 24px; }
.stage-9x16 .tag-texts { min-width: 0; line-height: 1.35; gap: 5px; }
.stage-9x16 .tag-name { font-size: 28px; max-width: 390px; color: #fff; font-weight: 800; }
.stage-9x16 .tag-sub { font-size: 22px; font-weight: 600; color: #ffe4a3; white-space: nowrap; max-width: 390px; overflow: hidden; text-overflow: ellipsis; }
.stage-9x16 .vip-rank-pill { background: #0d1018fa; border-width: 2px; padding: 5px 7px 5px 5px; gap: 5px; margin-top: -7px; }
.stage-9x16 .vip-rank-name { font-size: 21px; max-width: 108px; font-weight: 800; color: #fff; }
.stage-9x16 .vip-rank-num { font-size: 20px; width: 27px; height: 27px; }
.stage-9x16 .seat-badge { background: #0d1018f7; border-width: 2px; }
.stage-9x16 .seat-username { font-size: 17px; max-width: 90px; color: #fff; }
.stage-9x16 .bottom-hud-bar { height: 270px; bottom: 20px; left: 22px; right: 22px; grid-template-columns: 1.8fr 1fr; gap: 12px; }
.stage-9x16 .hud-left-col { gap: 12px; min-width: 0; }
.stage-9x16 .hud-active-notice { display: grid; grid-template-columns: 1fr; gap: 3px; height: 76px; min-height: 76px; padding: 7px 12px; justify-content: start; align-content: center; background: #10131cfa; border: 1.5px solid #e3c59a; text-align: left; line-height: 1.3; }
.stage-9x16 .hud-active-notice .flower-bullet,.stage-9x16 .hud-active-notice>span:nth-child(3) { display: none; }
.stage-9x16 #devoteeNameLine { font-size: 26px; font-weight: 800; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.stage-9x16 #devoteeActionTag { font-size: 22px; font-weight: 600; color: #ffe6ae; overflow: hidden; text-overflow: ellipsis; }
.stage-9x16 .hud-gift-cards { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; min-height: 0; }
.stage-9x16 .hud-gift-card { padding: 9px 7px; border: 1.5px solid #a997b7; background: #121620fa; min-width: 0; gap: 5px; }
.stage-9x16 .gift-coin-tag { font-size: 28px; font-weight: 800; letter-spacing: 0; color: #ffe29a; line-height: 1.3; text-align: center; }
.stage-9x16 .gift-card-body { flex-direction: column; justify-content: center; gap: 5px; text-align: center; }
.stage-9x16 .gift-svg { width: 28px; height: 28px; }
.stage-9x16 .gift-title { font-size: 25px; font-weight: 800; line-height: 1.3; color: #fff4d6; }
.stage-9x16 .gift-detail { display: block; color: #d6dfea; font-size: 18px; line-height: 1.3; text-align: center; }
.stage-9x16 .avatar-choice-hint { position: absolute; z-index: 60; top: 82px; left: 50%; transform: translateX(-50%); margin: 0; padding: 7px 13px; border: 1px solid #bcb2d3; border-radius: 10px; background: #10131ced; color: #f8f4ff; font: 500 23px/1.4 'Be Vietnam Pro',sans-serif; white-space: nowrap; pointer-events: none; }
.stage-9x16 .avatar-choice-hint strong { color: #ffe29a; font-weight: 800; }
.avatar-choice-help { margin: 10px 0 14px; }
.queue-line { flex-wrap: wrap; gap: 8px; }
.stage-9x16 .stage-voice-feedback { position: absolute; z-index: 61; top: 140px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 740px; padding: 9px 15px; display: flex; align-items: center; gap: 12px; border: 1px solid #d3b78a; border-radius: 12px; background: #10131cf2; color: #fff5dd; font-family: 'Be Vietnam Pro',sans-serif; pointer-events: none; }
.stage-9x16 .stage-voice-feedback[hidden] { display: none; }
.stage-voice-feedback strong { display: block; font-size: 24px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 670px; }
.stage-voice-feedback span:not(.voice-feedback-light) { display: block; font-size: 20px; color: #e2d8c8; line-height: 1.4; }
.voice-feedback-light { width: 10px; height: 10px; background: #ffce78; border-radius: 50%; flex: 0 0 10px; box-shadow: 0 0 9px #ffce7860; }
.stage-voice-feedback[data-phase="speaking"] .voice-feedback-light { background: #9ae4bd; box-shadow: 0 0 9px #9ae4bd60; }
.stage-9x16 .hud-right-leaderboard { padding: 10px 12px; border: 1.5px solid #e3c59a; background: #10131cfa; min-width: 0; }
.stage-9x16 .hud-lb-header { font-family: 'Be Vietnam Pro',sans-serif; font-size: 23px; line-height: 1.4; letter-spacing: 0; color: #ffedbc; margin-bottom: 5px; padding-bottom: 5px; white-space: nowrap; }
.stage-9x16 .hud-lb-list { display: grid; grid-template-rows: repeat(4,minmax(0,1fr)); gap: 8px; min-height: 0; }
.stage-9x16 .leader-item { font-size: 23px; gap: 5px; min-width: 0; line-height: 1.3; }
.stage-9x16 .leader-name { color: #fff; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-9x16 .leader-rank { width: 26px; height: 26px; min-width: 26px; font-size: 20px; border-width: 1.5px; margin-right: 3px; }
.stage-9x16 .leader-merit { color: #ffe4a4; margin-left: 3px; font-size: 22px; white-space: nowrap; }
.stage-9x16 .stage-goal { bottom: 308px; padding: 10px 16px; background: #10131cfa; border: 1.5px solid #debdf5; }
.stage-9x16 .stage-goal-copy { flex-direction: row; align-items: center; gap: 10px; font-size: 25px; margin-bottom: 8px; line-height: 1.3; }
.stage-9x16 .stage-goal-copy>span { white-space: normal; font-weight: 700; }
.stage-9x16 .stage-goal-copy strong { font-size: 23px; color: #f3d7fc; white-space: nowrap; }
.stage-9x16 .stage-goal-track { height: 8px; }
.stage-9x16 .sky-lantern { width: 340px; background: #321c16fa; padding: 20px; }
.stage-9x16 .sky-lantern::before { font-size: 23px; }.stage-9x16 .sky-lantern-user { font-size: 30px; }.stage-9x16 .sky-lantern-wish { font-size: 28px; line-height: 1.45; }
.stage-9x16 .fortune-modal-overlay { align-items: flex-start; padding-top: 235px; background: rgba(0,0,0,.15); }
.stage-9x16 .fortune-scroll-card { width: 780px; padding: 22px; max-height: 760px; overflow-y: auto; }
.stage-9x16 .fortune-badge { font-size: 26px; }.stage-9x16 .fortune-heading { font-size: 34px; line-height: 1.35; }.stage-9x16 .fortune-devotee { font-size: 26px; }
.stage-9x16 .fortune-poem { font-family: 'Be Vietnam Pro',sans-serif; font-size: 29px; line-height: 1.6; }.stage-9x16 .fortune-meaning { font-size: 28px; line-height: 1.55; }
.stage-9x16 .stage-announcement { background: #111724fa; }.stage-9x16 .announcement-kicker { font-size: 24px; letter-spacing: 1px; color: #ecd2ff; }.stage-9x16 .stage-announcement strong { font-size: 43px; }.stage-9x16 .stage-announcement p { font-size: 36px; }
@media(max-width:1100px) and (min-width:861px) { .studio-workspace { grid-template-columns: minmax(300px,1fr) minmax(0,1.4fr); gap: 22px; padding: 23px; }.ritual-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.scene-forms,.audio-settings-grid,.console-bottom-grid { grid-template-columns: 1fr; }.topbar-status { font-size: 11px; }.ritual-copy strong { font-size: 15px; }.metric strong { font-size: 25px; }.metric span { font-size: 12px; } }
@media(max-width:860px) { .studio-workspace { display: flex; }.stage-wrapper { width: min(100%,340px); }.identity-fields { grid-template-columns: 1fr; }.scene-forms,.audio-settings-grid { grid-template-columns: 1fr; }.ritual-copy strong { font-size: 16px; }.ritual-copy small { font-size: 12px; }.studio-tabs button { font-size: 14px; }.metric span { font-size: 12px; }.metric strong { font-size: 27px; } }
@media(max-width:540px) { .stage-wrapper { width: min(100%,310px); }.studio-tabs button { font-size: 13px; gap: 3px; }.studio-tabs .icon { display: none; }.dock-input,select,textarea,.identity-fields input,.voice-preview-card .dock-input { font-size: 16px; }.input-action { flex-wrap: wrap; }.input-action .dock-input { flex-basis: 100%; font-size: 16px; }.input-action .button { flex: 1; font-size: 14px; }.connection-footer>span,.connection-footer .text-button { font-size: 12px; }.ritual-button { padding: 14px 10px; gap: 5px; }.ritual-copy strong { font-size: 15px; }.ritual-copy small { font-size: 12px; }.metric strong { font-size: 23px; }.metric span { font-size: 11px; }.theme-option strong { font-size: 14px; }.theme-option small { font-size: 11px; }.grand-button small { font-size: 12px; }.settings-row h3 { font-size: 16px; }.console-heading h2 { font-size: 20px; }.console-heading h2 span { font-size: 17px; }.activity-title { font-size: 14px; }.activity-time { font-size: 11px; }.console-footer { font-size: 11px; } }
