:root {
  --bg: #f4f1ec; --surface: #fffdfa; --sunken: #ece8e1; --tint: #f8f5f0;
  --ink: #18161b; --ink-2: #45424a; --muted: #85818a; --line: #e5e0d8; --line-2: #d5cfc5;
  --night: #16131b; --night-2: #221d28; --night-3: #2e2836; --cream: #efe6da;
  --accent: #7a2e46; --accent-hover: #64253a; --accent-soft: #f3e7eb; --gold: #e2c3a6;
  --ok: #2f6f4c; --err: #a5402f;
  --r-sm: 8px; --r: 12px; --r-lg: 20px;
  --shadow: 0 1px 1px rgba(46, 34, 30, .04), 0 12px 32px -18px rgba(46, 34, 30, .22);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --serif: "Instrument Serif", "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 15px/1.6 "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  letter-spacing: -0.01em; -webkit-font-smoothing: antialiased;
}
body::after { /* 화면 전체에 아주 옅은 종이 질감 */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[hidden] { display: none !important; }
b { font-weight: 600; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.display { margin: 0; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.2; font-weight: 700; letter-spacing: -0.035em; }

/* ---------- 브랜드 ---------- */
.brand { display: flex; align-items: center; gap: 10px; }
.mark { width: 30px; height: 30px; border-radius: 9px; background: var(--night); display: grid; place-items: center; }
.mark svg { width: 18px; height: 18px; fill: var(--gold); }
.brand-name { font-weight: 700; letter-spacing: .2em; font-size: 13px; }
.brand-sub { color: var(--muted); font-size: 14px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.tag { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--accent); border: 1px solid #e3cbd3; padding: 2px 7px; border-radius: 5px; }

/* ---------- 1. 입장 화면 ---------- */
.gate { min-height: calc(100dvh - 68px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
@media (max-width: 960px) { .gate { grid-template-columns: 1fr; } .gate-right { display: none !important; } }
.gate-left { display: flex; flex-direction: column; padding: 36px clamp(24px, 6vw, 88px) 32px; }
.gate-body { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 480px; padding: 56px 0 40px; animation: rise .7s var(--ease) both; }
.gate-body { container-type: inline-size; }
/* 제목은 PC·모바일 모두 두 줄로 (2026-10-20 소피 요청). 긴 줄이 약 10em 이라 글 상자 너비의 9.6% 를 넘지 않게 줄인다 */
.gate h1 { margin: 0 0 18px; font-size: min(46px, 9.6cqi); line-height: 1.32; font-weight: 700; letter-spacing: -0.035em; white-space: nowrap; }
.lede { margin: 0 0 36px; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; text-wrap: pretty; max-width: 440px; }
.gate-foot { margin: 0; font-size: 12.5px; color: var(--muted); }
.entry { display: flex; flex-direction: column; gap: 14px; }

.gate-right { position: relative; overflow: hidden; background: var(--night); color: var(--cream); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 44px; padding: 56px clamp(28px, 5vw, 72px); }
.glow { position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 78% 18%, rgba(196, 112, 140, .28), transparent 70%),
  radial-gradient(50% 45% at 12% 88%, rgba(226, 195, 166, .16), transparent 70%); }
.pass-deck { position: relative; display: grid; width: min(100%, 440px); animation: float 7s ease-in-out infinite; }
.pass-deck .pass { grid-area: 1 / 1; transition: transform .9s var(--ease), opacity .9s var(--ease); transform: translateX(46px) rotate(3deg) scale(.92); opacity: 0; }
.pass-deck .pass.is-next { opacity: .35; transition: transform 0s, opacity .6s .6s; }  /* 왼쪽으로 나간 카드는 안 보이는 채로 뒤에 다시 쌓인다 */
.pass-deck .pass.is-active { transform: rotate(-2.5deg); opacity: 1; z-index: 2; }
.pass-deck .pass.is-prev { transform: translateX(-115%) rotate(-9deg); opacity: 0; z-index: 3; }
.pass-dots { position: relative; display: flex; gap: 8px; margin-top: -18px; }
.pass-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(239, 230, 218, .22); transition: width .5s var(--ease), background .5s var(--ease); }
.pass-dots i.on { width: 22px; background: var(--gold); }
.pass { position: relative; width: 100%; border-radius: 18px; background: linear-gradient(160deg, #2b2431, #1d1923); border: 1px solid rgba(239, 230, 218, .1); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05); }
.pass-top { display: flex; justify-content: space-between; padding: 18px 22px; font-size: 10.5px; letter-spacing: .18em; color: var(--gold); border-bottom: 1px solid rgba(239, 230, 218, .08); }
.pass-route { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 26px 22px 20px; }
.pass-route div { display: flex; flex-direction: column; }
.pass-route .to { text-align: right; }
.pass-route small, .pass-grid small { font-size: 10px; letter-spacing: .16em; color: #8f8697; }
.pass-route b { font-family: var(--serif); font-weight: 400; font-size: 54px; line-height: 1; letter-spacing: 0; color: #fbf4ea; }
.pass-route span { font-size: 12.5px; color: #b5abb9; }
.pass-plane { flex: 1; height: 24px; stroke: #8f8697; stroke-width: 1.2; fill: none; }
.pass-plane .fill { fill: var(--gold); stroke: none; }
.pass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; padding: 4px 22px 22px; }
.pass-grid div { display: flex; flex-direction: column; gap: 3px; }
.pass-grid b { font-size: 13.5px; font-weight: 500; color: #eee4d8; }
.pass-stub { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-top: 1px dashed rgba(239, 230, 218, .18); }
.pass-stub::before, .pass-stub::after { content: ""; position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--night); }
.pass-stub::before { left: -9px; } .pass-stub::after { right: -9px; }
.bars { width: 128px; height: 30px; background: repeating-linear-gradient(90deg, #cfc3b6 0 2px, transparent 2px 4px, #cfc3b6 4px 5px, transparent 5px 9px, #cfc3b6 9px 12px, transparent 12px 14px); opacity: .7; }
.pass-stub span { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); letter-spacing: 0; }
.gate-points { position: relative; list-style: none; margin: 0; padding: 0; width: min(100%, 440px); display: flex; flex-direction: column; gap: 18px; }
.gate-points li { display: grid; grid-template-columns: 20px 1fr; column-gap: 12px; }
.gate-points li::before { content: ""; grid-row: span 2; width: 6px; height: 6px; margin: 9px 0 0 6px; border-radius: 50%; background: var(--gold); }
.gate-points b { font-size: 14.5px; font-weight: 600; color: #f6eee3; }
.gate-points span { font-size: 13px; color: #a79eab; line-height: 1.55; }
/* 첫 화면 오른쪽: 면접 화면 미리보기 카드 (2026-10-22, 탑승권 대신). 실제 면접실처럼 면접관 영상 + 자막 + 내 화면 */
.room-deck { position: relative; display: grid; width: min(100%, 460px); }
.room-card { grid-area: 1 / 1; position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--night-2);
  border: 1px solid rgba(239, 230, 218, .12); box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .85), 0 0 0 6px rgba(255, 255, 255, .025);
  transition: transform .9s var(--ease), opacity .9s var(--ease); transform: translateX(40px) scale(.94); opacity: 0; }
.room-card.is-active { transform: none; opacity: 1; z-index: 2; }
.room-card.is-next { opacity: 0; transition: transform 0s, opacity .6s .6s; }
.room-card.is-prev { transform: translateX(-40px) scale(.96); opacity: 0; z-index: 3; }
.room-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.room-card.is-active > img { animation: kenburns 4.2s ease-out both; }
.room-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 12, 18, .45), transparent 28%, transparent 55%, rgba(14, 12, 18, .78)); }
.rc-tag, .rc-who, .rc-sub, .rc-me { position: absolute; z-index: 1; }
.rc-tag { top: 14px; left: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(14, 12, 18, .6); backdrop-filter: blur(6px); font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #fbf4ea; }
.rc-tag::first-letter { color: #ff6b6b; }
.rc-who { top: 14px; right: 14px; display: flex; flex-direction: column; align-items: flex-end; font-size: 11.5px; color: #d9d0dc; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.rc-who b { font-size: 15px; color: #fff; font-weight: 600; }
.rc-sub { left: 16px; right: 16px; bottom: 16px; margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(14, 12, 18, .72); backdrop-filter: blur(8px);
  font-size: 14px; line-height: 1.45; color: #fff; text-align: center; text-wrap: balance; }
.room-card.is-active .rc-sub { animation: rise .6s .5s var(--ease) both; }
.rc-me { left: 16px; bottom: 78px; display: flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; background: rgba(47, 111, 76, .88); font-size: 11px; font-weight: 600; color: #e6fbef; }
.wave { display: flex; align-items: center; gap: 2px; height: 12px; }
.wave i { width: 2px; height: 100%; border-radius: 1px; background: #a8f0c4; animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -.2s; } .wave i:nth-child(3) { animation-delay: -.45s; } .wave i:nth-child(4) { animation-delay: -.1s; } .wave i:nth-child(5) { animation-delay: -.6s; }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.pass-dots { margin-top: -22px; }
.lineup { position: relative; width: min(100%, 460px); }
.lineup-title { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--gold); }
.faces { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.faces figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.faces img { width: 100%; aspect-ratio: 1; border-radius: 14px; object-fit: cover; object-position: center 25%; border: 1px solid rgba(239, 230, 218, .14); filter: saturate(.9); transition: transform .3s var(--ease), filter .3s; }
.faces figure:hover img { transform: translateY(-3px); filter: none; }
.faces figcaption { display: flex; flex-direction: column; align-items: center; font-size: 11px; font-weight: 600; color: #f1e8dd; line-height: 1.25; }
.faces small { font-size: 10px; font-weight: 400; color: #8f8697; }
.gate-stats { position: relative; width: min(100%, 460px); margin: 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-top: 1px solid rgba(239, 230, 218, .1); padding-top: 18px; }
.gate-stats div + div { padding-left: 18px; border-left: 1px solid rgba(239, 230, 218, .1); }
.gate-stats dt { font-family: var(--serif); font-size: 34px; line-height: 1; color: #fbf4ea; }
.gate-stats dd { margin: 6px 0 0; font-size: 12px; color: #a79eab; }
.gate-right { gap: 32px; }
/* 휴대폰: 오른쪽 패널이 숨으므로 왼쪽에 얼굴 줄 */
.faces-mini { display: none; align-items: center; gap: 12px; margin: -16px 0 28px; }
.faces-mini span { display: flex; }
.faces-mini img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: center 25%; border: 2px solid var(--bg); margin-left: -9px; }
.faces-mini img:first-child { margin-left: 0; }
.faces-mini small { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 960px) { .faces-mini { display: flex; } }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- 입력 공통 ---------- */
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); min-width: 0; }
.field .label { display: block; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.hint { font-size: 12.5px; font-weight: 400; color: var(--muted); line-height: 1.5; text-wrap: pretty; min-height: 1.5em; }
select, input:not([type]), input[type=text] {
  font: inherit; font-weight: 400; font-size: 15px; height: 48px; padding: 0 16px; width: 100%;
  border: 1px solid var(--line-2); border-radius: var(--r); color: var(--ink); background: var(--surface);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
select { appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%2385818a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
select:hover, input:not([type]):hover { border-color: #bfb8ad; }
select:focus-visible, input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input::placeholder { color: #aaa5ad; }
#code { height: 58px; font-size: 22px; font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .32em; text-transform: lowercase; }
#code::placeholder { font: 400 15px "Pretendard Variable", sans-serif; letter-spacing: 0; }

/* 동의 */
.consent { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--ink); font-weight: 400; }
.check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid #bfb8ad; border-radius: 5px; background: #fff; cursor: pointer; display: grid; place-items: center; transition: background .15s var(--ease), border-color .15s var(--ease); }
.check input::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.check.all { padding: 14px 16px; font-weight: 600; border-bottom: 1px solid var(--line); }
.check i { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--accent); margin-right: 4px; }
.consent-item { padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.consent-item + .consent-item { border-top: 1px solid var(--line); }
details { display: contents; }
summary { margin-left: auto; font-size: 12.5px; color: var(--muted); cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
summary::-webkit-details-marker { display: none; }
summary:hover, details[open] summary { color: var(--ink); }
.terms { flex-basis: 100%; margin: 6px 0 4px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--tint); font-size: 12.5px; line-height: 1.55; display: grid; grid-template-columns: 84px 1fr; gap: 6px 10px; animation: rise .3s var(--ease) both; }
.terms dt { color: var(--muted); font-weight: 500; }
.terms dd { margin: 0; color: var(--ink-2); text-wrap: pretty; }

/* ---------- 버튼 ---------- */
button {
  font: inherit; font-size: 14px; font-weight: 500; height: 42px; padding: 0 18px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease), opacity .2s;
}
/* 선택된 버튼(항공사 카드·단계 칩·난이도)은 hover 가 덮지 않는다. 휴대폰은 누른 뒤 hover 가 남아 선택 표시가 흰색으로 덮였다 (2026-10-20) */
@media (hover: hover) { button:hover:not(:disabled):not([aria-pressed="true"]):not([aria-selected="true"]) { border-color: #bfb8ad; background: #fff; } }
button:active:not(:disabled) { transform: translateY(1px) scale(.99); }
button:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
button:disabled { opacity: .4; cursor: not-allowed; }
button.primary { background: var(--night); border-color: var(--night); color: #fbf4ea; }
button.primary:hover:not(:disabled) { background: #2a2431; border-color: #2a2431; box-shadow: 0 10px 24px -12px rgba(22, 19, 27, .6); }
button.big { height: 56px; font-size: 15.5px; font-weight: 600; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.arrow { transition: transform .25s var(--ease); }
button:hover .arrow { transform: translateX(4px); }
button.link { height: auto; padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
button.link:hover:not(:disabled) { background: none; color: var(--ink); }
.form-error { margin: 0 2px; font-size: 13px; color: var(--err); }
.form-error:empty { display: none; }

/* ---------- 2. 설정 화면 ---------- */
.topbar { max-width: 1180px; margin: 0 auto; padding: 22px 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.mode-tabs { display: flex; gap: 4px; background: var(--sunken, #ece8e1); padding: 4px; border-radius: 12px; }
.mode-tabs a { padding: 7px 16px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-2, #45424a); text-decoration: none; white-space: nowrap; }
.mode-tabs a.on { background: var(--surface, #fffdfa); color: var(--ink, #18161b); box-shadow: 0 1px 1px rgba(46, 34, 30, .04), 0 6px 16px -10px rgba(46, 34, 30, .3); }

.who-chip { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-2); }
#userchip { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
#userchip:empty { display: none; }
main { max-width: 1180px; margin: 0 auto; padding: 8px 28px 72px; }
.setup { animation: rise .6s var(--ease) both; }
.setup-head { margin: 24px 0 28px; }
/* 면접 고르기 제목 오른쪽 도움말 링크 (2026-10-23) */
.setup-head { position: relative; }
.help-links { position: absolute; top: 0; right: 0; display: flex; gap: 8px; }
.help-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s; }
.help-links a:hover { border-color: var(--accent); color: var(--accent); }
.help-links svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) { .help-links { position: static; margin-bottom: 18px; } }
.mode { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--r); background: #fbf1e1; color: #7a4b0c; font-size: 14px; }

.airlines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }  /* 항공사 4곳 (싱가포르 추가) */
@media (max-width: 1000px) { .airlines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.airline { position: relative; height: auto; padding: 22px 22px 20px; text-align: left; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 12px; box-shadow: var(--shadow); overflow: hidden; }
/* 마우스가 있는 기기에서만 떠오르게 한다. 휴대폰은 누른 뒤에도 hover 가 남아서, 선택한 카드가 흰 배경으로 덮여 흐리게 보였다 (2026-10-20) */
@media (hover: hover) { .airline:hover:not(:disabled):not([aria-selected="true"]) { border-color: var(--line-2); background: var(--surface); transform: translateY(-2px); } }
.airline .code { grid-row: span 2; font-family: var(--serif); font-size: 46px; line-height: .9; letter-spacing: 0; color: #cfc6ba; transition: color .25s var(--ease); }
.airline .name { font-size: 16px; font-weight: 600; color: var(--ink); }
.airline .meta { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.airline[aria-selected="true"] { background: var(--night); border-color: var(--night); box-shadow: 0 18px 40px -22px rgba(22, 19, 27, .8); }
.airline[aria-selected="true"] .name { color: #fbf4ea; }
.airline[aria-selected="true"] .meta { color: #a79eab; }
.airline[aria-selected="true"] .code { color: var(--gold); }
/* 항공사마다 카드 위에 가는 색 띠 (선택하면 굵어진다) */
.airline::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--al, var(--accent)); opacity: .8; transition: height .25s var(--ease); }
.airline[aria-selected="true"]::before { height: 5px; opacity: 1; }
.airline[data-al="QR"] { --al: #8a1538; } .airline[data-al="EK"] { --al: #c8102e; } .airline[data-al="EY"] { --al: #bd8b13; } .airline[data-al="SQ"] { --al: #1d3c78; }
.airline .meta { grid-column: 1; line-height: 1.45; }
@media (max-width: 700px) { .airlines { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .airline { padding: 16px 14px 14px; grid-template-columns: 1fr; } .airline .code { grid-row: auto; position: absolute; top: 12px; right: 12px; font-size: 26px; } .airline .name { font-size: 14.5px; padding-right: 40px; word-break: keep-all; } .airline .meta { font-size: 11.5px; } }  /* 휴대폰도 두 칸 (2026-10-22) */
.t-faces { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #3d3544; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.t-faces small { font-size: 10.5px; letter-spacing: .06em; color: #a99fae; white-space: nowrap; }
.t-faces span { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.t-faces img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: center 25%; border: 2px solid var(--night); margin-left: -7px; }
.t-faces img:only-child { width: 40px; height: 40px; border-color: var(--gold); }

/* 단계: 이름 + 시간 + 한 줄 설명 카드 (2026-10-22, 작은 칩에서 바꿈) */
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 16px 0 36px; }
.chip { position: relative; height: auto; padding: 14px 16px 13px; border-radius: 14px; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; align-items: baseline;
  background: var(--surface); border-color: var(--line); color: var(--ink); }
.chip b { font-size: 15px; font-weight: 600; }
.chip small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip span { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.chip[aria-pressed="true"] b { color: var(--accent); }
.chip[aria-pressed="true"]::after { content: "✓"; position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; display: grid; place-items: center; }

.setup-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .setup-grid { grid-template-columns: 1fr; } }
.settings { display: flex; flex-direction: column; gap: 22px; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.row.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 600px) { .row.two { grid-template-columns: 1fr; } }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; gap: 4px; border-radius: var(--r); background: var(--sunken); }
.seg button { height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); }
@media (hover: hover) { .seg button:hover:not(:disabled):not([aria-pressed="true"]) { background: rgba(255, 255, 255, .5); } }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(46, 34, 30, .12); }

.file { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--r); cursor: pointer; background: var(--tint); transition: border-color .2s var(--ease), background .2s var(--ease); }
.file:hover, .file.drag { border-color: var(--accent); background: var(--accent-soft); }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file:has(input:focus-visible) { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.file-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; border: 1px solid var(--line); }
.file-ic svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.file-name { font-size: 13.5px; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.file.has .file-name { color: var(--ink); font-weight: 500; }

.summary { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.summary .eyebrow { margin-bottom: 2px; }
.summary-card { padding: 0; background: none; }
.summary-card .ticket { margin-bottom: 0; }
/* 설정 화면 균형: 왼쪽은 설정 + 시작 전 확인, 오른쪽은 탑승권과 시작 버튼만 (2026-10-20 소피 요청) */
.setup-left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.prep { padding: 22px 28px; border-radius: var(--r-lg); background: var(--sunken); }
.prep-title { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.prep .tips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 12px; }
@media (max-width: 700px) { .prep .tips { grid-template-columns: 1fr; } }
/* 오늘의 면접 탑승권 (설정 화면 오른쪽) */
.ticket { background: var(--night); color: var(--cream); border-radius: 16px; padding: 16px 18px 14px; margin-bottom: 16px; }
.t-top { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .16em; color: #a99fae; margin-bottom: 10px; }
.t-route { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.t-route b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; color: #fbf4ea; }
.t-route small { font-size: 11.5px; color: #a99fae; }
.t-route .to { text-align: right; }
.t-line { flex: 1; border-top: 1.5px dashed #5a5160; position: relative; }
.t-line::after { content: "✈"; position: absolute; right: -2px; top: -11px; font-size: 14px; color: var(--gold); }
.t-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; border-top: 1px dashed #3d3544; padding-top: 10px; }
.t-grid small { display: block; font-size: 10.5px; letter-spacing: .06em; color: #a99fae; }
.t-grid b { font-size: 13.5px; font-weight: 600; color: #fbf4ea; }
/* 같은 브라우저에서 이미 동의했으면 동의 항목을 접어 둔다 */
.consent-done { display: none; padding: 12px 16px; font-size: 13.5px; align-items: center; justify-content: space-between; gap: 8px; }
.consent.done > :not(.consent-done) { display: none; }
.consent.done > .consent-done { display: flex; }
.consent-done button { border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.sum-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.sum-line small { font-size: 12.5px; color: var(--muted); }
.sum-line b { font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.tips { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: tip; display: flex; flex-direction: column; gap: 9px; }
.tips li { position: relative; padding-left: 26px; counter-increment: tip; font-size: 13px; color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }
.tips li::before { content: counter(tip); position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }

/* ---------- 면접실 ---------- */
.room { margin-top: 8px; background: var(--night); border-radius: 24px; padding: 18px; color: #e8e3ea; box-shadow: 0 30px 60px -30px rgba(22, 19, 27, .6); }
.stage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .stage { grid-template-columns: 1fr; } .room { padding: 12px; } }
.panel { position: relative; background: var(--night-2); border-radius: 16px; aspect-ratio: 4 / 3; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.avatar { width: 128px; height: 128px; border-radius: 38px; background: var(--night-3); display: grid; place-items: center; font-family: var(--serif); font-size: 64px; color: var(--gold); transition: box-shadow .2s var(--ease); }
.avatar.speaking { animation: pulse 1.1s infinite; }
.avatar.photo { background-size: cover; background-position: center 20%; } .avatar.photo #initial { visibility: hidden; }  /* 목소리만 나오는 면접: 면접관 사진 */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(226, 195, 166, .4); } 100% { box-shadow: 0 0 0 26px rgba(226, 195, 166, 0); } }
.who { margin-top: 18px; color: #fff; text-align: center; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.who span { color: #9c93a1; font-size: 12.5px; }
.subtitle { position: absolute; bottom: 14px; left: 16px; right: 16px; margin: 0; color: #fff; background: rgba(14, 12, 18, .72); backdrop-filter: blur(8px); padding: 10px 14px; border-radius: 12px; text-align: center; font-size: 15px; line-height: 1.5; text-wrap: balance; }
.subtitle:empty { display: none; }
video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.pvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pnote { z-index: 1; opacity: 0; transition: opacity .45s ease-in-out; }  /* 면접관이 답을 듣고 메모하는 짧은 영상: 실시간 영상 위에 겹친다 */
.pnote.on { opacity: 1; }  /* 시작과 끝에 실시간 영상과 겹쳐 서서히 바뀐다 */
.panel.interviewer:has(.pvideo:not([hidden])) .who { position: absolute; top: 12px; left: 12px; margin: 0; text-align: left; background: rgba(14, 12, 18, .6); padding: 6px 12px; border-radius: 10px; }
.badge { position: absolute; top: 12px; left: 12px; background: rgba(14, 12, 18, .65); color: #fff; padding: 5px 11px 5px 24px; border-radius: 8px; font-size: 12px; font-weight: 500; }
.badge::before { content: ""; position: absolute; left: 11px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #8f8697; }
.badge.on { background: rgba(47, 111, 76, .92); }
.badge.on::before { background: #a8f0c4; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.live { position: absolute; bottom: 12px; left: 12px; right: 12px; color: #fff; font-size: 12px; background: rgba(14, 12, 18, .55); padding: 6px 10px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.live:empty { display: none; }
.transcript { min-height: 48px; margin: 16px 6px 0; color: #bdb4c1; font-size: 15px; }
.controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 14px 4px 2px; margin-top: 6px; border-top: 1px solid var(--night-3); }
.controls button { background: var(--night-3); border-color: var(--night-3); color: #ece6ee; }
.controls button:hover:not(:disabled) { background: #3a3343; border-color: #3a3343; }
.controls button.primary { background: var(--gold); border-color: var(--gold); color: var(--night); }
.toggle { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #9c93a1; margin-right: auto; cursor: pointer; }
.toggle input { accent-color: var(--gold); }
.timer { color: #9c93a1; font-size: 13px; margin-right: 6px; font-variant-numeric: tabular-nums; }

/* 디스커션 과제지 */
.panel.paper { background: var(--night-3); padding: 18px; }
.sheet { background: #fdfaf5; color: #1f1c22; width: 100%; max-width: 420px; aspect-ratio: 1 / 1.414; max-height: 100%; padding: 26px 24px; border-radius: 4px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); overflow: auto; font-family: Georgia, "Times New Roman", serif; }
.sheet-head { margin: 0 0 14px; font: 600 11px/1.4 "Pretendard Variable", sans-serif; letter-spacing: .14em; color: var(--accent); }
.sheet-task { margin: 0 0 16px; font-size: 15px; line-height: 1.6; }
.sheet-task.long { font-size: 13px; line-height: 1.4; margin-bottom: 10px; } .sheet:has(.long) { padding: 18px 22px; } .sheet:has(.long) .sheet-head { margin-bottom: 10px; }  /* 카드를 넘치는 긴 과제 */
.sheet-task.xlong { font-size: 12px; line-height: 1.35; } .sheet:has(.xlong) .sheet-mine { margin: 10px 0 0; padding: 8px 10px; font: 600 13px/1.5 "Pretendard Variable", sans-serif; background: #fff4e5; color: #8a4b00; border-radius: 6px; }
.sheet-task .sheet-options { margin: 6px 0; padding-left: 1.6em; } .sheet-task p { margin: 0; }
.sheet-rule { margin: 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.dsub { min-height: 1.6em; margin: 12px 0 0; text-align: center; color: #ece6ee; }
.dsub:empty { display: none; }
/* 입문 실시간 팁: 지금 해 볼 행동(굵게) + 이유(작게) */
.tip { display: flex; flex-direction: column; gap: 4px; margin: 12px auto 0; max-width: 760px; padding: 12px 16px 12px 14px; border-radius: var(--r); background: rgba(226, 195, 166, .12); border-left: 3px solid var(--gold); color: #f3ece4; font-size: 15px; line-height: 1.5; animation: tip-in .35s var(--ease); }
.tip[hidden] { display: none; }
.tip-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--gold); }
.tip #tip-why { font-size: 13px; color: #bdb4c1; }
@keyframes tip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.peers { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.peer { background: var(--night-2); color: #fff; border-radius: 14px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; transition: opacity .3s var(--ease); }
.peer .pav { width: 72px; height: 72px; border-radius: 22px; background: var(--night-3); display: grid; place-items: center; font-size: 22px; font-weight: 600; }
.peer .pav img { width: 100%; height: 100%; border-radius: 22px; object-fit: cover; }
.peer.speaking .pav img { outline: 2px solid var(--gold); outline-offset: 3px; }
.peer.away { opacity: .35; } .peer.gone { opacity: .2; filter: grayscale(1); }
.peer.speaking .pav { animation: pulse 1.1s infinite; }
.peer small { margin-top: -4px; font-size: 11px; color: var(--gold); letter-spacing: .02em; }  /* 싱가포르 디베이트: 찬반 표시 */

/* ---------- 리포트 ---------- */
.result { margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 40px 48px 48px; animation: rise .6s var(--ease) both; }
@media (max-width: 600px) { .result { padding: 24px 18px; } }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.result-head .eyebrow { margin: 0; }
.actions { display: flex; gap: 8px; }
#reportmeta { margin: 14px 0 0; }
#report { max-width: 760px; font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
#report h1, #report h2, #report h3 { color: var(--ink); letter-spacing: -0.025em; line-height: 1.35; }
#report h1 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.035em; margin: 28px 0 6px; }
#report .report-meta { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
#report .verdict { display: inline-block; margin: 4px 0 6px; padding: 8px 14px; border-radius: 10px; background: var(--night); color: #fbf4ea; font-size: 16px; font-weight: 600; }
/* 판정 등급: 높음 초록, 보통 호박, 낮음 붉은색 + 3칸 막대 (2026-10-22) */
#report .verdict { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 14px; font-size: 17px; }
#report .verdict.tone-3 { background: #1f5a3c; } #report .verdict.tone-2 { background: #8a5a12; } #report .verdict.tone-1 { background: #8c3426; }
.vmeter { display: inline-flex; gap: 3px; align-items: flex-end; height: 18px; }
.vmeter i { width: 5px; border-radius: 2px; background: rgba(255, 255, 255, .28); }
.vmeter i:nth-child(1) { height: 8px; } .vmeter i:nth-child(2) { height: 13px; } .vmeter i:nth-child(3) { height: 18px; }
.vmeter i.on { background: #fff; }
/* 판정 근거 항목을 카드로 */
#report h2 + ul { list-style: none; padding: 0; display: grid; gap: 12px; }
#report h2 + ul > li { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: 0 1px 1px rgba(46, 34, 30, .03); }
#report h2 + ul > li:has(.side-pass) { border-left: 3px solid var(--ok); }
#report h2 + ul > li:has(.side-fail) { border-left: 3px solid var(--err); }
#report h2 + ul > li > ul { padding-left: 18px; font-size: 14.5px; }
/* 고칠 점과 다음 연습 (2026-10-22) */
#report .fix { margin: 12px 0; padding: 16px 18px 6px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); border-left: 3px solid var(--accent); }
#report .fix h3 { margin: 0 0 8px; font-size: 16px; }
#report .fix ul { margin: 0 0 10px; padding-left: 18px; font-size: 14.5px; }
#report .fix li { margin-bottom: 6px; }
#report .fix li.say { list-style: none; margin-left: -18px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--ink); font-size: 15px; }
#report .fix.plan { border-left-color: var(--gold); background: var(--tint); }
#report .fix.plan > p:first-child { margin: 0 0 6px; font-weight: 700; color: var(--ink); }
#report .fix .locked { margin: 0 0 10px; }
/* 말하기 측정값 */
.mpanel h2 { margin-bottom: 14px; }
.mgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mcard { padding: 14px 14px 12px; border-radius: var(--r); background: var(--tint); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.mcard small { font-size: 12px; color: var(--muted); }
.mcard b { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mcard b em { font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.mbar { height: 5px; border-radius: 3px; background: var(--sunken); overflow: hidden; margin-top: 4px; }
.mbar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.mnote { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
@media print { .mcard { break-inside: avoid; } #report .verdict { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
#report .side { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 5px; font-size: 12px; font-weight: 600; vertical-align: 1px; }
#report .side.side-pass { background: #e6f1ea; color: var(--ok); }
#report .side.side-fail { background: #f6e6e2; color: var(--err); }
#report > ul > li { margin-bottom: 14px; } #report > ul > li > ul { margin-top: 4px; color: var(--ink-2); }
#report blockquote p { margin: 0; } #report h2 { font-size: 19px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); } #report h2:first-child { border-top: 0; padding-top: 0; margin-top: 28px; }
#report h3 { font-size: 16px; margin-top: 28px; }
#report table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 16px 0; }
#report th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
#report th, #report td { border-bottom: 1px solid var(--line); padding: 10px 10px 10px 0; vertical-align: top; }
#report blockquote { margin: 16px 0; padding: 12px 18px; border-left: 2px solid var(--accent); background: var(--tint); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2); }
#report code { font-size: 13px; background: var(--sunken); padding: 1px 5px; border-radius: 4px; }
.loading { color: var(--muted); }
.loading::after { content: ""; display: block; margin-top: 20px; height: 12px; width: 62%; border-radius: 6px; background: linear-gradient(90deg, var(--sunken), #f8f5f0, var(--sunken)); background-size: 200% 100%; animation: shimmer 1.4s infinite; box-shadow: 0 26px 0 var(--sunken), 0 52px 0 var(--sunken); }
@keyframes shimmer { to { background-position: -200% 0; } }
.log { color: var(--muted); font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media print {
  body { background: #fff; } body::after { display: none; }
  .topbar, #gate { display: none !important; }
  main { max-width: none; padding: 0; }
  main > :not(#result), #result .actions, #log { display: none !important; }
  .result { box-shadow: none; border: 0; padding: 0; }
  #report { max-width: none; }
  #report h2, #report h3 { break-after: avoid; } #report tr { break-inside: avoid; }
}

.feedback { max-width: 760px; margin: 28px 0 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.feedback p { margin: 0 0 6px; } .feedback a { color: var(--ink); font-weight: 600; }
@media print { .feedback { display: none !important; } }

.recdot { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(180, 40, 40, .85); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.fb-form { display: grid; gap: 10px; margin-top: 10px; } .fb-form label { display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.fb-form textarea, .fb-form select { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); }
.fb-row { display: flex; align-items: center; gap: 12px; } .fb-row button { white-space: nowrap; flex: none; } .fb-msg { font-size: 13.5px; color: var(--ink-2); }
.fb-final { margin-top: 18px; } .fb-final summary { cursor: pointer; font-weight: 600; color: var(--ink); }

/* 플라이드 사이트 상단 메뉴 (flyde.online 과 같은 모양) */
.site-nav { position: sticky; top: 0; z-index: 40; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 8vw, 200px); background: rgba(14, 27, 46, .95); backdrop-filter: blur(10px); color: #fff; }
.site-nav a { color: inherit; text-decoration: none; }
.site-logo { font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace; font-weight: 500; letter-spacing: .22em; font-size: 15px; }
.site-logo span { color: #B8925A; }
.site-links { display: flex; gap: 28px; font-size: 15px; }
.site-links a { opacity: .8; }
.site-links a:hover, .site-links a[aria-current] { opacity: 1; }
.site-links a[aria-current] { box-shadow: inset 0 -2px 0 #B8925A; padding-bottom: 4px; }
.site-actions { display: flex; align-items: center; gap: 14px; }
.site-home { font-size: 14px; opacity: .8; white-space: nowrap; }
.site-home:hover { opacity: 1; }
.site-cta { padding: 10px 20px; border-radius: 999px; background: #B8925A; font-size: 14px; font-weight: 700; white-space: nowrap; }
.site-cta:hover { background: #A6824D; }
.in-room .site-nav { display: none; }
@media (max-width: 860px) { .site-links { display: none; } }

/* 카타르 HireVue: 실제 진행 화면(2026-10 녹화)처럼 흰 바탕에 질문 글과 내 카메라만. 면접관 없음 */
.hv { --hv: #5c0a32; background: #f5f5f6; color: #222; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-height: 560px; font-family: "Pretendard Variable", Arial, sans-serif; }
.hv-top { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 14px 24px; }
.hv-brand { font: 700 20px/1 Georgia, "Times New Roman", serif; letter-spacing: .04em; color: var(--hv); }
.hv-user { font-size: 14px; color: var(--hv); letter-spacing: .03em; }
.hv-body { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 22px 20px; }
.hv-meta { display: flex; justify-content: space-between; font-size: 12px; color: #555; }
.hv-bar { height: 5px; background: #e2e4e8; border-radius: 3px; margin: 8px 0 18px; overflow: hidden; }
.hv-bar i { display: block; height: 100%; width: 0; background: var(--hv); transition: width .4s; }
.hv-q { margin: 0 0 24px; font: 800 clamp(18px, 2.6vw, 25px)/1.3 "Pretendard Variable", Arial, sans-serif; color: #2a2a2e; }
.hv-card { width: min(380px, 100%); margin: 0 auto; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 22px 22px 10px; text-align: center; }
.hv-video { position: relative; background: #000; aspect-ratio: 3 / 2; display: flex; }
.hv-video video { width: 100%; height: 100%; object-fit: cover; }
.hv-rec { position: absolute; top: 8px; left: 8px; background: rgba(0, 0, 0, .6); color: #ff4d4d; font-size: 13px; padding: 3px 8px; border-radius: 4px; }
.hv-rec b { color: #fff; font-weight: 600; margin-left: 4px; }
.hv-attempt { margin: 10px 0 0; font-size: 14px; color: #444; }
.hv-foot { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 12px 24px; }
.hv-back { background: none; border: 0; color: #333; font-size: 15px; opacity: .6; }
.hv-next { background: var(--hv); color: #fff; border: 0; border-radius: 4px; padding: 10px 18px; font-size: 15px; cursor: pointer; }
.hv-next:disabled { opacity: .5; cursor: default; }
.room.hirevue .stage, .room.hirevue .transcript, .room.hirevue .dsub, .room.hirevue .controls .toggle, .room.hirevue #done { display: none; }

/* 상황 안내(모든 난이도): 프리셀렉션 시작 설명, 전신 안내 */
.room { position: relative; }
.notice { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 20; width: min(540px, calc(100% - 32px)); background: #fff8ec; color: #3a2a12; border: 1px solid #e9c98f; border-radius: 12px; padding: 14px 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.notice b { display: block; font-size: 15px; margin-bottom: 4px; }
.notice p { margin: 0; font-size: 14px; line-height: 1.6; white-space: pre-line; }
.notice button { margin-top: 10px; }
.notice-pose { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #f1e3c8; }
.notice-pose.ok { background: #d9f2df; color: #1d6b34; }
.notice.modal { position: absolute; inset: 0; transform: none; width: auto; box-shadow: none; margin: 0; z-index: 5; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: rgba(14, 12, 18, .82); color: #f4efe6; border: 0; border-radius: 24px; padding: 32px; }
.notice.modal b { font-size: 20px; margin-bottom: 12px; }
.notice.modal p { max-width: 560px; font-size: 15px; text-align: left; }

/* ---------- 로그인 (30일 이용권, 2026-10-22) ---------- */
.login { display: grid; gap: 10px; }
.login-btn { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.login-btn.kakao { background: #fee500; border-color: #fee500; color: rgba(0, 0, 0, .85); }
.login-btn:hover { filter: brightness(.97); }
.login-note { margin: 2px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.login-note a, .me-box a, .buy-link { color: var(--accent); }
.me-box .admin-tag { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; }
.login .link { justify-self: center; }
.me-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface); font-size: 14px; }
.buy-link { font-size: 14px; font-weight: 600; }
.consent-item label em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 4px; }
.free-note { margin: 0; padding: 12px 16px; border-radius: var(--r); background: var(--accent-soft); color: var(--ink-2); font-size: 14px; }
/* 오늘 남은 무료 체험 자리: 서버가 세는 실제 숫자 (하루 30자리) */
.free-spots { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.free-spots b { font-size: 15px; }
.free-note .free-spots { margin: 8px 0 0; }
/* 무료 체험: 영상 면접관이 1분 뒤 음성으로 바뀐다는 안내 */
.free-switch { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); width: min(92%, 460px); margin: 0; padding: 10px 14px; border-radius: 12px;
  background: rgba(14, 12, 18, .82); color: #fbf4ea; font-size: 13.5px; line-height: 1.55; text-align: center; z-index: 5; }
.free-switch a { color: var(--gold, #e9c9b4); font-weight: 600; }
.resume { height: auto; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font: inherit; font-weight: 600;
  color: var(--accent); text-align: left; cursor: pointer; }
/* 로그인 전 첫 화면: 동의 항목과 입장 버튼을 숨기고 시작 버튼만 (2026-10-23) */
.entry.need-login > #consent, .entry.need-login > #enter { display: none; }
/* 로그인 팝업 */
.login-sheet { width: min(420px, calc(100vw - 32px)); padding: 36px 28px 28px; border: 0; border-radius: var(--r-lg, 20px); background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px rgba(20, 14, 20, .28); text-align: center; }
.login-sheet[open] { animation: sheet-in .28s var(--ease, ease) both; }
.login-sheet::backdrop { background: rgba(20, 16, 24, .55); backdrop-filter: blur(3px); }
.login-sheet h2 { margin: 0 0 10px; font-size: 24px; letter-spacing: -0.03em; }
.login-sheet .sheet-lede { margin: 0 0 22px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.login-sheet .sheet-foot { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (max-width: 600px) {  /* 휴대폰: 화면 아래에서 올라오는 시트 */
  .login-sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  @keyframes sheet-in { from { transform: translateY(100%); } }
}

/* ---------- 무료 체험 리포트 잠금과 코칭 안내 (2026-10-22) ---------- */
#report .locked { color: var(--muted); font-size: 14px; }
#report .locked::before { content: "🔒 "; }
#report .unlock-progress { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); margin: 24px 0 8px; }
#report .unlock-progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--sunken); overflow: hidden; }
#report .unlock-progress i { display: block; height: 100%; background: var(--accent); }
#report .unlock { margin: 12px 0 32px; padding: 22px 22px 24px; border: 1px solid #e3cbd3; border-radius: var(--r-lg); background: var(--accent-soft); }
#report .unlock.coach { background: var(--tint); border-color: var(--line-2); }
#report .unlock-title { margin: 0 0 12px; font-weight: 700; color: var(--ink); font-size: 16.5px; }
#report .unlock-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 16px; background: var(--surface); border-radius: var(--r-sm); overflow: hidden; }
#report .unlock-table th, #report .unlock-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
#report .unlock-table td:first-child { color: var(--muted); }
#report .unlock-table td:last-child, #report .unlock-table th:last-child { font-weight: 600; color: var(--ink); }
#report .unlock-btn { display: inline-block; padding: 12px 18px; border-radius: var(--r-sm); background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
#report .unlock-btn:hover { background: var(--accent-hover); }
@media print { #report .unlock, #report .unlock-progress { display: none; } }

/* ---------- 휴대폰 면접실 (2026-10-23): 한 화면에 면접관을 크게, 내 카메라는 영상통화처럼 오른쪽 위 작은 창 ---------- */
@media (max-width: 760px) {
  .in-room .topbar { display: none; }
  .in-room main { padding: 0; }
  .room { margin: 0; min-height: 100dvh; border-radius: 0; box-shadow: none; display: flex; flex-direction: column;
    padding: calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom)); }
  .stage { position: relative; display: block; }
  .panel.interviewer { width: 100%; aspect-ratio: 3 / 4; max-height: 60dvh; }
  /* 디스커션: 과제지와 조원까지 한 화면에 들어가도록 면접관 화면을 가로로 낮춘다 */
  .stage:has(.paper:not([hidden])) .panel.interviewer { aspect-ratio: 16 / 11; max-height: 32dvh; }
  .stage:has(.paper:not([hidden])) .panel.me { width: 22%; }
  .panel.paper { aspect-ratio: auto; margin-top: 10px; padding: 10px; }
  .panel.paper .sheet { aspect-ratio: auto; max-width: none; padding: 16px; }
  .panel.me { position: absolute; top: 10px; right: 10px; z-index: 3; width: 28%; aspect-ratio: 3 / 4; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 8px 20px rgba(0, 0, 0, .45); }
  .panel.me { overflow: visible; }
  .panel.me video { border-radius: 12px; }
  /* 상태 표시(대기·내 차례·예약됨…)는 작은 창 바로 아래, 오른쪽 맞춤으로 (긴 문구도 잘리지 않게) */
  .panel.me .badge { top: calc(100% + 6px); bottom: auto; left: auto; right: 0; white-space: nowrap; font-size: 11.5px; }
  .panel.me .recdot { top: 6px; right: 6px; padding: 2px 7px; font-size: 10px; }
  .panel.me .live { display: none; }  /* 작은 창에서는 측정값을 숨긴다 (리포트에는 그대로 나온다) */
  .peers { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 6px; margin-top: 10px; }
  .peer { padding: 8px 4px; font-size: 11.5px; }
  .peer .pav, .peer .pav img { width: 48px; height: 48px; border-radius: 15px; }
  .transcript { min-height: 0; margin: 10px 4px 0; font-size: 14px; }
  .controls { margin-top: auto; position: sticky; bottom: 0; z-index: 4; background: var(--night); padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .controls .toggle { flex-basis: 100%; }
  .controls button { flex: 1 1 40%; min-height: 48px; }
  .hv { min-height: 100%; border-radius: 12px; }
  .hv-top, .hv-foot { padding: 12px 16px; }
}

/* ---------- 대기실 (2026-10-23): 면접 전 대기 상황을 골라 보는 장면 ---------- */
.waiting { scroll-margin-top: 72px; margin-top: 8px; background: var(--night); color: #e8e3ea; border-radius: 24px; padding: 18px 22px 28px; min-height: 70vh; box-shadow: 0 30px 60px -30px rgba(22, 19, 27, .6); }
.wt-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--night-3); }
.wt-step { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--gold); }
.wt-skip { height: auto; padding: 6px 10px; border: 0; background: none; color: #9c93a1; font: inherit; font-size: 13px; cursor: pointer; }
.wt-body { max-width: 620px; margin: 0 auto; padding-top: 28px; animation: rise .5s var(--ease) both; }
.wt-place { margin: 0 0 10px; font-size: 13px; color: #9c93a1; }
.wt-narr { margin: 0 0 22px; font-size: 17px; line-height: 1.7; color: #f4efe6; text-wrap: pretty; }
.wt-pic { position: relative; margin: 0 0 18px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--night-2); box-shadow: 0 0 0 3px #3a3140, 0 0 0 5px #8a7350; }  /* 옛 시뮬레이션 게임의 그림 창 */
.wt-pic img { display: block; width: 100%; height: 100%; object-fit: cover; animation: fade .5s var(--ease) both; }
.wt-pic figcaption { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(22, 19, 27, .72); font-size: 12px; color: #f4efe6; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.wt-who { margin: 0 0 26px; padding: 14px 16px 16px; border-radius: 16px; background: var(--night-2); border: 1px solid var(--night-3); }
.wt-name { display: flex; align-items: baseline; gap: 8px; }
.wt-name b { font-size: 14px; color: var(--gold); }
.wt-name span { font-size: 12px; color: #9c93a1; }
.wt-play { margin-left: auto; height: auto; padding: 4px 10px; border: 1px solid var(--night-3); border-radius: 999px; background: none; color: #bdb4c1; font: inherit; font-size: 12px; cursor: pointer; }
.wt-line.mine { margin: 0 0 14px; color: var(--gold); }
.wt-q { margin: 0 0 20px; }
.wt-q p { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #bdb4c1; }
.wt-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.wt-opts button { height: auto; padding: 10px 14px; border: 1px solid var(--night-3); border-radius: 999px; background: var(--night-2); color: #f4efe6; font: inherit; font-size: 14px; cursor: pointer; }
.wt-opts button.on { border-color: var(--gold); background: var(--gold); color: var(--night); font-weight: 600; }
.wt-same { display: block; width: 100%; margin-top: 10px; height: auto; padding: 12px; border: 1px solid var(--night-3); border-radius: 14px; background: none; color: #bdb4c1; font: inherit; font-size: 14px; cursor: pointer; }
.waiting .primary:disabled { opacity: .4; cursor: default; }
.wt-line { margin: 6px 0 4px; font-size: 17px; line-height: 1.55; color: #fff; font-family: var(--serif); font-style: italic; }
.wt-ko { margin: 0; font-size: 13px; color: #9c93a1; }
.wt-ask { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: #bdb4c1; }
.wt-choices { display: flex; flex-direction: column; gap: 10px; }
.wt-choices button { height: auto; padding: 14px 16px; border: 1px solid var(--night-3); border-radius: 14px; background: var(--night-2); color: #f4efe6;
  font: inherit; font-size: 15px; font-weight: 600; text-align: left; line-height: 1.5; cursor: pointer; transition: border-color .15s, transform .15s; }
.wt-choices button small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: #bdb4c1; font-style: italic; }
@media (hover: hover) { .wt-choices button:hover { border-color: var(--gold); transform: translateY(-1px); } }
.wt-picked { margin: 0 0 14px; font-size: 14px; color: var(--gold); font-weight: 600; }
.wt-verdict { display: flex; flex-direction: column; gap: 4px; margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; border-left: 4px solid; font-size: 14px; line-height: 1.6; }
.wt-verdict b { font-size: 15px; }
.wt-verdict.good { background: rgba(47, 111, 76, .22); border-color: #5fbf86; } .wt-verdict.good b { color: #8fe0ad; }
.wt-verdict.ok { background: rgba(226, 195, 166, .12); border-color: var(--gold); } .wt-verdict.ok b { color: var(--gold); }
.wt-verdict.risk { background: rgba(180, 60, 60, .2); border-color: #d97272; } .wt-verdict.risk b { color: #f2a0a0; }
.wt-basis { margin: 0 0 24px; font-size: 13px; line-height: 1.6; color: #9c93a1; }
.wt-basis b { margin-right: 6px; color: #bdb4c1; }
.wt-next { width: 100%; }
.waiting .primary { background: var(--gold); border-color: var(--gold); color: var(--night); }  /* 어두운 바탕에서 보이도록 */
.wt-title { margin: 0 0 16px; font-size: 22px; color: #fff; }
.wt-sum { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wt-sum li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 14px; line-height: 1.5; }
.wt-sum li span { flex: none; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.wt-sum li small { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.wt-sum li.good span { background: #d9f2df; color: #1d6b34; } .wt-sum li.ok span { background: #f1e3c8; color: #7a5a1c; } .wt-sum li.risk span { background: #f6d9d9; color: #9a2f2f; }
.wt-report { margin-top: 32px; }
.wt-report > p { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .waiting { margin: 0 -28px; border-radius: 0; min-height: calc(100dvh - 120px); padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); }
  .wt-narr { font-size: 16px; }
}
/* 일시 정지와 이어 하기 (2026-10-23) */
.paused-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 12px 16px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.paused-box[hidden] { display: none; }
.paused-screen { max-width: 520px; margin: 56px auto; padding: 0 16px; text-align: center; color: var(--ink-2); line-height: 1.6; }
.paused-screen .display { margin: 6px 0 14px; color: var(--ink); }
.paused-screen .primary { margin-top: 18px; }
