/* BRIDGE Interview Room — 검정 글자, 큰 글씨(굵게 아님), 단순한 화면 */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; color: #000; background: #f5f5f7; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: #0a5bd3; }
button, select, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.offscreen { position: fixed; left: -9999px; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }

.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; background: #fff; border-bottom: 1px solid #d2d2d7; }
.brand { font-size: 21px; font-weight: 700; color: #1d1d1f; letter-spacing: -0.02em; margin-right: 22px; }
.top .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
.top .meta > span:not(.brand) { padding-left: 14px; border-left: 1px solid #d2d2d7; margin-right: 10px; }
.top .meta > span.sub { border-left: 0; padding-left: 0; }
.top .meta { font-size: 17px; }
.top .meta span { margin-right: 12px; }
.top .you { font-size: 16px; color: #000; }
.top .timer { font-variant-numeric: tabular-nums; font-size: 19px; }

.wrap { max-width: 680px; margin: 0 auto; padding: 28px 16px 48px; }
.wrap.wide { max-width: 1120px; }
.card { background: #fff; border: 1px solid #d2d2d7; border-radius: 18px; padding: 22px; }
h1 { font-size: 26px; font-weight: 500; margin: 0 0 8px; }
h2 { font-size: 21px; font-weight: 500; margin: 0 0 6px; }
p { margin: 8px 0; }
.sub { font-size: 15px; color: #3a3a3c; }
.consent { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #d2d2d7; border-radius: 12px; padding: 12px 14px; margin: 10px 0; font-size: 16px; }
.consent input { width: 20px; height: 20px; margin-top: 4px; flex: none; }
.btn { display: inline-block; border: 1px solid #d2d2d7; background: #fff; color: #000; border-radius: 12px; padding: 13px 18px; font-size: 17px; text-decoration: none; }
.btn.primary { background: #0a5bd3; border-color: #0a5bd3; color: #fff; }
.btn.danger { border-color: #e0a0a0; color: #b00020; }
.btn.wide { width: 100%; text-align: center; }
.btn.on { background: #000; color: #fff; border-color: #000; }
.btn:disabled { opacity: .45; cursor: default; }
.notice { border-left: 4px solid #d93025; padding: 8px 0 8px 14px; margin: 10px 0 18px; font-size: 16px; }
.err { color: #b00020; font-size: 16px; }
select { border: 1px solid #d2d2d7; border-radius: 12px; padding: 11px 12px; background: #fff; color: #000; font-size: 16px; max-width: 100%; }
.field { display: block; margin: 10px 0; font-size: 16px; }
.field select { display: block; width: 100%; margin-top: 6px; }

/* 첫 화면 */
.joinrow { display: flex; gap: 10px; margin: 14px 0 6px; }
.codebox { flex: 1; border: 1px solid #d2d2d7; border-radius: 12px; padding: 13px 14px; font-size: 18px; letter-spacing: .02em; color: #000; }
.codebox:focus { outline: 2px solid #0a5bd3; outline-offset: 1px; }

/* 입장 전 설정 */
.setup { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
.preview-col { background: #fff; border: 1px solid #d2d2d7; border-radius: 18px; padding: 16px; }
.preview { position: relative; background: #1c1c1e; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; }
.preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.preview-off { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; background: #2c2c2e; }
.preview-name { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; }
.preview-name::after { content: attr(data-name); background: rgba(255,255,255,.92); color: #000; font-size: 16px; padding: 4px 12px; border-radius: 8px; }
.devrow { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.devrow .btn { flex: none; width: 150px; text-align: center; padding: 11px 12px; font-size: 16px; }
.devrow select { flex: 1; min-width: 0; }
.themes-label { margin: 16px 0 8px; font-size: 16px; }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme { position: relative; border: 2px solid #d2d2d7; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: #e5e5ea center/cover no-repeat; cursor: pointer; padding: 0; color: #000; }
.theme.sel { border-color: #0a5bd3; box-shadow: 0 0 0 2px #0a5bd3 inset; }
.theme span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.92); font-size: 14px; padding: 3px 6px; text-align: center; }
.theme.none { background: #fff; }
.theme.blur { background: linear-gradient(135deg, #cfd8e3, #eef2f6); filter: none; }
.theme.plain { background: #f2f2f2; }
.theme.blur::before { content: ""; position: absolute; inset: 20% 30%; border-radius: 50%; background: #9aa7b5; filter: blur(8px); }

/* 방 */
.stage { position: relative; background: #111; min-height: calc(100vh - 150px); padding: 10px; }
.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tile { position: relative; background: #1c1c1e; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .15s; }
.tile video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.tile.me video { transform: scaleX(-1); }
.tile.speaking { animation: speak 1s ease-in-out infinite; }
@keyframes speak { 0%, 100% { outline-color: #34c759; } 50% { outline-color: rgba(52,199,89,.15); } }
.tile .name { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; pointer-events: none; }
.tile .name span { display: inline-block; background: rgba(255,255,255,.92); color: #000; font-size: 16px; padding: 4px 12px; border-radius: 8px; }
.tile .muted { position: absolute; right: 10px; top: 10px; background: rgba(255,255,255,.92); color: #000; font-size: 14px; padding: 3px 8px; border-radius: 8px; }
.tile .hand { position: absolute; left: 10px; top: 10px; font-size: 30px; line-height: 1; background: rgba(255,255,255,.92); padding: 4px 8px; border-radius: 10px; animation: handblink .7s ease-in-out infinite; }
@keyframes handblink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(1.12); } }
.tile.novideo::after { content: attr(data-initial); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 44px; color: #fff; background: #2c2c2e; }
.tile.novideo .name, .tile.novideo .muted, .tile.novideo .hand { z-index: 1; }

.bar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 10px 12px; background: #fff; border-top: 1px solid #d2d2d7; }
.bar .btn { padding: 11px 14px; font-size: 16px; }
.bar .spacer { flex: 1; }
.bar .hint { font-size: 14px; color: #3a3a3c; width: 100%; text-align: center; }

/* 바텀시트 */
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet-card { background: #fff; border-radius: 18px 18px 0 0; width: min(720px, 100%); max-height: 80vh; overflow: auto; padding: 18px 18px 26px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sheet-head .btn { padding: 8px 12px; font-size: 15px; }
.copyrow { display: flex; gap: 8px; align-items: center; margin: 8px 0 14px; }
.copyrow input { flex: 1; border: 1px solid #d2d2d7; border-radius: 12px; padding: 11px 12px; font-size: 16px; color: #000; min-width: 0; }
.copyrow .btn { padding: 11px 14px; font-size: 15px; flex: none; }
.bigcode { font-size: 24px; letter-spacing: .06em; }

/* 피드백 */
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #d2d2d7; border-radius: 14px; padding: 14px; margin: 8px 0; cursor: pointer; background: #fff; }
.choice input { width: 20px; height: 20px; margin-top: 4px; flex: none; }
.choice.sel { border-color: #0a5bd3; background: #eef4ff; }
.choice .t { font-size: 18px; }
.choice .d { font-size: 15px; color: #3a3a3c; }
textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #d2d2d7; border-radius: 12px; margin-top: 10px; }
.flag { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #e0a0a0; background: #fff4f4; border-radius: 12px; padding: 12px; margin-top: 14px; font-size: 15px; }
.meta-line { font-size: 18px; margin: 4px 0 2px; }
.notice-box { border-left: 4px solid #c0392b; background: #fbf3f2; padding: 12px 14px; margin-top: 14px; font-size: 15px; line-height: 1.6; }
.filebox { border: 1px dashed #b8b8bd; border-radius: 12px; padding: 12px 14px; margin-top: 12px; font-size: 15px; }
.filebox input[type=file] { margin-top: 8px; font-size: 15px; max-width: 100%; }
@media (max-width: 860px) { .setup { grid-template-columns: 1fr; } }
@media (max-width: 600px) { body { font-size: 16px; } .grid { grid-template-columns: 1fr; } .stage { min-height: calc(100vh - 170px); } .devrow .btn { width: 120px; } .themes { grid-template-columns: repeat(2, 1fr); } }

/* 첫 화면 경고 (부드럽게 깜빡임) */
.warn { border: 1px solid #e4b4b4; background: #fff6f6; border-radius: 12px; padding: 12px 14px; margin: 12px 0 4px; animation: warnblink 1.8s ease-in-out infinite; }
.warn p { margin: 0; }
.warn .ko { font-size: 16px; color: #8a1c1c; line-height: 1.6; }
.warn .en { font-size: 14px; color: #3a3a3c; margin-top: 6px; }
@keyframes warnblink { 0%, 100% { border-color: #e4b4b4; background: #fff6f6; } 50% { border-color: #d93025; background: #ffecec; } }
@media (prefers-reduced-motion: reduce) { .warn { animation: none; } }