/* 로딩·일시정지·결과 화면 */

/* 로딩 */
.s-loading { position: absolute; inset: 0; background: var(--bg0); overflow: hidden; display: flex; flex-direction: column; animation: fadeIn 0.3s both; }
.s-loading.out { opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none; }
.s-loading .bg { position: absolute; inset: -3%; background-size: cover; background-position: center; animation: drift 30s ease-in-out infinite alternate; filter: saturate(0.85); }
.s-loading .dim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 6, 11, 0.95) 0%, rgba(4, 6, 11, 0.8) 40%, rgba(4, 6, 11, 0.35) 75%, rgba(4, 6, 11, 0.6) 100%), linear-gradient(0deg, rgba(4, 6, 11, 0.95) 0%, rgba(4, 6, 11, 0) 40%); }
.s-loading .top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; padding: 26px 48px 0; }
.s-loading .top .status { font-family: var(--f-cap); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.s-loading .top .status i { width: 8px; height: 8px; background: var(--amber); animation: pulse 1s infinite; }
.s-loading.horror .top .status i { background: var(--danger); box-shadow: 0 0 10px rgba(255, 59, 48, 0.7); }
.s-loading.horror .bg { filter: saturate(0.6) contrast(1.1) brightness(0.85); }
.s-loading.horror .area { color: #ff6b61; }
.s-loading.horror .prog i { background: linear-gradient(90deg, var(--amber), #ff5a4f); box-shadow: 0 0 12px rgba(255, 90, 79, 0.6); }
.s-loading > .top, .s-loading > .mid, .s-loading > .bottom { z-index: 2; }
.s-end.fail.horror .hero h1 { color: #ff6057; text-shadow: 0 0 48px rgba(255, 59, 48, 0.45), 0 2px 0 rgba(0, 0, 0, 0.7); }
.s-end.horror > .hero, .s-end.horror > .stats, .s-end.horror > .foot { position: relative; z-index: 2; }
.s-end.fail.horror { background: radial-gradient(ellipse at 50% 30%, rgba(70, 4, 10, 0.92) 0%, rgba(6, 2, 4, 0.98) 70%); }
.s-loading .mid { position: relative; flex: 1; display: grid; grid-template-columns: minmax(380px, 560px) 1fr minmax(260px, 320px); gap: 40px; padding: 30px 48px 0; min-height: 0; }
.s-loading .area { font-family: var(--f-cap); font-size: 13px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--amber); animation: slideInL 0.5s 0.1s var(--ease) both; }
.s-loading .mtitle { font-family: var(--f-title); font-size: 54px; line-height: 1; color: #fff; margin-top: 6px; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7); animation: slideInL 0.5s 0.2s var(--ease) both; }
.s-loading .role { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--text2); animation: slideInL 0.5s 0.3s var(--ease) both; }
.s-loading .role .chip { font-size: 10px; }
.s-loading .brief { margin-top: 22px; animation: slideInL 0.5s 0.4s var(--ease) both; }
.s-loading .brief .cap { margin-bottom: 6px; display: block; }
.s-loading .brief p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text2); max-width: 520px; }
.s-loading .objs { align-self: start; animation: riseIn 0.5s 0.5s var(--ease) both; }
.s-loading .objs .cap { display: block; margin-bottom: 8px; }
.s-loading .objs li { list-style: none; display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text); }
.s-loading .objs ul { margin: 0; padding: 0; }
.s-loading .objs li .n { font-family: var(--f-num); font-weight: 700; color: var(--amber); min-width: 18px; }
.s-loading .bottom { position: relative; padding: 0 48px 28px; display: flex; flex-direction: column; gap: 14px; }
.s-loading .tip { display: flex; gap: 12px; align-items: flex-start; max-width: 720px; font-size: 13px; color: var(--text2); }
.s-loading .tip .cap { color: var(--amber); padding-top: 2px; white-space: nowrap; }
.s-loading .prog { position: relative; height: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.s-loading .prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--amber); box-shadow: 0 0 12px var(--amber); transition: width 0.25s var(--ease); }
.s-loading .prog-row { display: flex; justify-content: space-between; font-family: var(--f-cap); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.s-loading .prog-row b { font-family: var(--f-num); font-weight: 700; font-size: 13px; color: var(--text); letter-spacing: 0; }
.s-loading .squad { align-self: start; display: flex; flex-direction: column; gap: 6px; animation: riseIn 0.5s 0.6s var(--ease) both; }
.s-loading .squad .cap { margin-bottom: 4px; }
.s-loading .squad .p { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: rgba(255, 255, 255, 0.04); border-left: 2px solid var(--line2); font-size: 13px; }
.s-loading .squad .p.me { border-left-color: var(--amber); }
.s-loading .squad .p .i { width: 22px; height: 22px; background: linear-gradient(160deg, #22304f, #0d1426); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--f-num); font-weight: 700; font-size: 11px; color: var(--amber); }
.s-loading .err { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; background: rgba(2, 4, 8, 0.7); backdrop-filter: blur(6px); }
.s-loading .err .box { width: 440px; max-width: calc(100% - 32px); padding: 28px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.s-loading .err h2 { font-family: var(--f-title); font-size: 26px; font-weight: 400; }
.s-loading .err p { margin: 0; color: var(--text2); font-size: 13px; }
.s-loading .err code { display: block; font-size: 11px; color: var(--muted); max-height: 80px; overflow: auto; white-space: pre-wrap; word-break: break-all; text-align: left; width: 100%; background: rgba(0, 0, 0, 0.35); padding: 8px; }

/* 일시정지 */
.s-pause { position: absolute; inset: 0; display: flex; background: linear-gradient(90deg, rgba(4, 6, 11, 0.92) 0%, rgba(4, 6, 11, 0.7) 50%, rgba(4, 6, 11, 0.45) 100%); backdrop-filter: blur(6px); animation: fadeIn 0.2s both; }
.s-pause .col { width: 460px; padding: 60px 56px; display: flex; flex-direction: column; }
.s-pause .cap { margin-bottom: 4px; }
.s-pause h1 { font-family: var(--f-title); font-size: 44px; line-height: 1; color: #fff; }
.s-pause .sub { color: var(--text2); font-size: 13px; margin: 8px 0 28px; }
.s-pause .menu-list { gap: 4px; }
.s-pause .right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.s-pause .right .settings-panel { max-width: 640px; max-height: calc(100vh - 80px); overflow: auto; }
/* 설정 탭 화면 (2026-10-23 U9): 탭은 위에 고정, 탭 안만 스크롤 */
.s-pause .right .settings-panel.fps { width: 100%; max-width: 760px; height: min(860px, calc(100vh - 80px)); max-height: none; overflow: hidden; }
.s-pause .right .perf-warn { max-width: 460px; max-height: calc(100vh - 80px); overflow: auto; }

/* 결과 */
.s-end { position: absolute; inset: 0; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 30%, rgba(14, 22, 44, 0.9) 0%, rgba(4, 6, 11, 0.97) 70%); animation: fadeIn 0.5s both; overflow: auto; }
.s-end.fail { background: radial-gradient(ellipse at 50% 30%, rgba(50, 6, 10, 0.9) 0%, rgba(4, 6, 11, 0.97) 70%); }
.s-end .hero { text-align: center; padding: 54px 20px 14px; }
.s-end .hero .cap { font-size: 12px; letter-spacing: 0.5em; animation: fadeIn 0.6s 0.2s both; }
.s-end .hero h1 { font-family: var(--f-title); font-size: 76px; line-height: 1; color: #fff; margin-top: 8px; animation: bigin2 0.7s 0.1s var(--ease) both; }
.s-end.success .hero h1 { color: var(--amber2); text-shadow: 0 0 40px rgba(255, 178, 30, 0.35); }
.s-end.fail .hero h1 { color: #ff5247; text-shadow: 0 0 40px rgba(255, 59, 48, 0.35); }
.s-end .hero .reason { font-size: 15px; color: var(--text2); margin-top: 10px; animation: fadeIn 0.6s 0.5s both; }
.s-end .hero .next { font-size: 13.5px; color: var(--amber); margin-top: 8px; letter-spacing: 0.02em; animation: fadeIn 0.6s 0.9s both; }
.s-end .hero .ln { width: 60px; height: 2px; background: var(--amber); margin: 16px auto 0; }
.s-end.fail .hero .ln { background: var(--danger); }
@keyframes bigin2 { 0% { opacity: 0; transform: scale(1.2); letter-spacing: 0.3em; } 100% { opacity: 1; transform: none; letter-spacing: 0.01em; } }
.s-end .stats { width: 820px; max-width: calc(100% - 40px); margin: 10px auto 0; animation: riseIn 0.5s 0.6s var(--ease) both; }
.s-end .meta { display: flex; justify-content: center; gap: 36px; margin-bottom: 14px; }
.s-end .meta div { text-align: center; }
.s-end .meta .v { font-family: var(--f-num); font-weight: 700; font-size: 26px; color: #fff; line-height: 1; }
.s-end .meta .v.ok { color: var(--green); }
.s-end .meta .v.no { color: var(--danger); }
.s-end table { width: 100%; border-collapse: collapse; }
.s-end th { font-family: var(--f-cap); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 500; text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.s-end td { padding: 10px 16px; font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.s-end td.num, .s-end th.num { text-align: right; }
.s-end td.num { font-family: var(--f-num); font-weight: 700; font-size: 17px; }
.s-end tr.me td { background: rgba(255, 178, 30, 0.08); }
.s-end tr.me td:first-child { border-left: 2px solid var(--amber); }
.s-end tr.mvp td:first-child .mvp { font-family: var(--f-cap); font-size: 9px; letter-spacing: 0.2em; color: #15120a; background: var(--amber); padding: 1px 5px; margin-left: 8px; vertical-align: middle; }
.s-end .st { font-family: var(--f-cap); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.s-end .st.inf { color: var(--poison); }
.s-end .st.dead, .s-end .st.zombie { color: var(--danger); }
.s-end .st.extracted, .s-end .st.ok { color: var(--green); }
.s-end .foot { display: flex; justify-content: center; padding: 22px 20px 40px; animation: fadeIn 0.5s 0.9s both; }

@media (max-width: 900px) {
  .s-loading .mid { grid-template-columns: 1fr; gap: 20px; padding: 20px 16px 0; overflow: auto; }
  .s-loading .top, .s-loading .bottom { padding-left: 16px; padding-right: 16px; }
  .s-loading .mtitle { font-size: 38px; }
  .s-pause .col { width: 100%; padding: 30px 20px; }
  .s-pause .right { display: none; }
  .s-end .hero h1 { font-size: 48px; }
}

/* 로딩 화면: 그래픽 가속 꺼짐 한 줄 */
.s-loading .perf-line { display: flex; align-items: center; gap: 10px; max-width: 720px; padding: 8px 12px; border-left: 3px solid var(--amber); background: rgba(16, 11, 4, 0.82); font-size: 13px; color: var(--text); }
.s-loading .perf-line .pw-ico { width: 18px; height: 18px; }
/* 가벼운 HUD 모드(낮음·최저 품질)에서 일시정지 화면 흐림 끔 */
.zs-lite-game .s-pause { backdrop-filter: none; background: linear-gradient(90deg, rgba(4, 6, 11, 0.96) 0%, rgba(4, 6, 11, 0.86) 50%, rgba(4, 6, 11, 0.7) 100%); }
/* 일시정지 메뉴 [보이스톡] (V12, ui/voicepanel.js): 내 마이크 + 사람마다 음소거. 이름과 그림만 */
.s-pause .right .voice-panel { width: 100%; max-width: 420px; max-height: calc(100vh - 80px); overflow: auto; padding-bottom: 14px; }
.voice-panel .vp-row { display: flex; align-items: center; gap: 12px; margin: 0 16px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.voice-panel .vp-row.me { border-bottom-color: rgba(255, 255, 255, 0.18); }
.voice-panel .vp-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); flex: none; transition: background 0.12s, box-shadow 0.12s; }
.voice-panel .vp-row.talk .vp-dot { background: var(--green); box-shadow: 0 0 8px rgba(93, 255, 122, 0.8); }
.voice-panel .vp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: #fff; }
.voice-panel .vp-mic, .voice-panel .vp-mute { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; min-width: 44px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 16px; background: rgba(255, 255, 255, 0.05); color: #fff; cursor: pointer; font: inherit; }
.voice-panel .vp-mic:hover, .voice-panel .vp-mute:hover { border-color: rgba(255, 178, 30, 0.7); }
.voice-panel .ico { width: 17px; height: 17px; display: block; }
.voice-panel .ico .m { fill: currentColor; }
.voice-panel .ico .w { stroke: currentColor; }
.voice-panel .ico .sl { stroke: var(--danger); opacity: 0; }
.voice-panel .kc { min-width: 18px; height: 18px; padding: 0 4px; border: 1px solid rgba(255, 255, 255, 0.3); border-bottom-width: 2px; border-radius: 3px; font-family: var(--f-cap); font-size: 11px; line-height: 15px; text-align: center; box-sizing: border-box; }
.voice-panel .kc:empty { display: none; }
.voice-panel .vp-mic.off, .voice-panel .vp-mic.na { color: rgba(255, 255, 255, 0.45); }
.voice-panel .vp-mic.off .ico .sl, .voice-panel .vp-mic.na .ico .sl, .voice-panel .vp-mic.denied .ico .sl { opacity: 1; }
.voice-panel .vp-mic.na { opacity: 0.4; pointer-events: none; }
.voice-panel .vp-mic.denied { opacity: 0.6; color: rgba(255, 255, 255, 0.45); }
.voice-panel .vp-mic.on, .voice-panel .vp-mic.live { border-color: rgba(93, 255, 122, 0.6); }
.voice-panel .vp-mic.live { color: var(--green); }
.voice-panel .vp-mic.wait { animation: pulse 1s infinite; }
.voice-panel .vp-mute.muted { color: rgba(255, 255, 255, 0.45); border-color: rgba(255, 59, 48, 0.55); }
.voice-panel .vp-mute.muted .ico .w { opacity: 0; }
.voice-panel .vp-mute.muted .ico .sl { opacity: 1; }
