/* 2편 「마지막 커밋」 전용 스타일 (engine/css/game.css 를 덮어쓴다) */

/* 사원증 (잠금화면 프로필) */
.pm-badge { width: 100%; height: 100%; background: linear-gradient(180deg, #1d2440 0 28%, #f6f4ef 28%); color: #1d2440; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 6px; font-family: 'Pretendard', sans-serif; }
.pm-badge-top { color: #f6e7b8; font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.pm-badge-photo { width: 38%; aspect-ratio: 1; border-radius: 50%; margin: 6px 0 4px; background: #c9cdd8 radial-gradient(circle at 50% 38%, #8b93a8 0 22%, transparent 23%), radial-gradient(ellipse at 50% 100%, #8b93a8 0 45%, transparent 46%); border: 3px solid #fff; }
.pm-badge b { font-size: 13px; }
.pm-badge span { font-size: 9px; color: #666; }
.pm-badge code { font-size: 10px; margin-top: 2px; background: #1d2440; color: #fff; padding: 1px 6px; border-radius: 4px; }
.pm-badge.big { aspect-ratio: 5 / 7; width: 100%; height: auto; border-radius: 10px; padding: 18px 0 22px; }
.pm-badge.big .pm-badge-top { font-size: 22px; }
.pm-badge.big .pm-badge-photo { width: 42%; margin: 18px 0 10px; border-width: 5px; }
.pm-badge.big b { font-size: 30px; }
.pm-badge.big span { font-size: 17px; }
.pm-badge.big code { font-size: 22px; margin-top: 10px; padding: 3px 12px; }
.polaroid .pm-badge.big { box-shadow: inset 0 0 0 1px #0001; }

/* 워크톡 (슬랙풍) */
.wc { display: flex; height: 100%; }
.wc-side { width: 230px; flex: none; background: #3f0e40; color: #cfc3cf; display: flex; flex-direction: column; }
.wc-ws { color: #fff; font-weight: 800; padding: 14px 16px; border-bottom: 1px solid #ffffff22; display: flex; justify-content: space-between; align-items: baseline; }
.wc-ws small { font-weight: 400; color: #2bac76; font-size: 11px; }
.wc-list { overflow-y: auto; padding: 6px 8px 12px; }
.wc-list h5 { margin: 14px 8px 4px; font-size: 12px; color: #a99aa9; font-weight: 600; }
.wc-list button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; color: inherit; text-align: left; padding: 5px 8px; border-radius: 6px; font-size: 14px; }
.wc-list button:hover { background: #ffffff14; }
.wc-list button.on { background: #1164a3; color: #fff; }
.wc-list button.bold { color: #fff; font-weight: 700; }
.wc-list button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-list em { font-style: normal; background: #cd2553; color: #fff; font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 999px; }
.wc-list button span.wc-hash { flex: none; width: 18px; text-align: center; opacity: .7; }
.wc-typing { font-style: normal; color: #2bac76; }
.wc-av { width: 36px; height: 36px; border-radius: 8px; flex: none; font-size: 14px; }
.wc-av.xs { width: 20px; height: 20px; border-radius: 5px; font-size: 10px; }
.wc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; }
.wc-empty { margin: auto; color: #999; }
.wc-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid #e8e8e8; }
.wc-head b { font-size: 16px; }
.wc-head small { display: block; color: #888; font-size: 12px; }
.wc-call { border: 1px solid #ddd; background: #fff; border-radius: 6px; padding: 5px 12px; font-size: 13px; }
.wc-call:hover { background: #f5f5f5; }
.wc-scroll { flex: 1; overflow-y: auto; padding: 8px 0 14px; }
.wc-date { text-align: center; margin: 14px 0 6px; position: relative; }
.wc-date::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #eee; }
.wc-date span { position: relative; background: #fff; border: 1px solid #e3e3e3; border-radius: 999px; padding: 2px 12px; font-size: 12px; color: #555; font-weight: 600; }
.wc-new { color: #e01e5a; font-size: 12px; font-weight: 700; border-top: 1px solid #e01e5a; margin: 8px 16px; padding-top: 2px; text-align: right; }
.wc-msg { display: flex; gap: 10px; padding: 6px 16px; }
.wc-msg:hover { background: #f8f8f8; }
.wc-msg.cont { padding-top: 1px; padding-bottom: 1px; }
.wc-t2 { width: 36px; flex: none; font-size: 10px; color: transparent; text-align: right; padding-top: 3px; }
.wc-msg.cont:hover .wc-t2 { color: #999; }
.wc-body { flex: 1; min-width: 0; }
.wc-name { display: flex; gap: 8px; align-items: baseline; }
.wc-name b { font-size: 14.5px; }
.wc-name span { font-size: 11.5px; color: #999; }
.wc-name time { font-size: 11.5px; color: #999; }
.wc-body p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.wc-edited { color: #999; font-size: 12px; }
.wc-del { color: #999; font-style: italic; }
.wc-photo { border: 0; padding: 0; margin-top: 4px; border-radius: 8px; overflow: hidden; width: 300px; max-width: 100%; display: block; }
.wc-photo .art-img { aspect-ratio: 4/3; height: auto; }
.wc-thread-btn { margin-top: 4px; border: 1px solid transparent; background: none; color: #1264a3; font-size: 13px; font-weight: 600; padding: 3px 6px; border-radius: 6px; }
.wc-thread-btn:hover { border-color: #ddd; background: #fff; }
.wc-thread { margin: 4px 0 2px; border-left: 3px solid #e3e3e3; padding: 2px 0 2px 10px; }
.wc-tmsg { display: flex; gap: 8px; padding: 4px 0; }
.wc-tmsg b { font-size: 13.5px; }
.wc-tmsg time { font-size: 11px; color: #999; margin-left: 6px; }
.wc-tmsg p { margin: 1px 0 0; font-size: 14px; }
.wc-sys { text-align: center; color: #888; font-size: 12px; margin: 8px; }
.wc-typing-row { color: #888; font-size: 12px; padding: 4px 16px 0 62px; }
.wc-input { display: flex; gap: 8px; margin: 0 14px 14px; border: 1px solid #ccc; border-radius: 8px; padding: 6px; }
.wc-input:focus-within { border-color: #1264a3; }
.wc-input textarea { flex: 1; border: 0; outline: none; resize: none; padding: 6px; font-size: 14px; }
.wc-input button { border: 0; background: #007a5a; color: #fff; border-radius: 6px; padding: 0 14px; font-weight: 700; }
.wc-ro { margin: 0 14px 14px; padding: 12px; text-align: center; color: #999; background: #f6f6f6; border-radius: 8px; font-size: 13px; }

/* GateKeeper */
.gk { height: 100%; display: flex; flex-direction: column; background: #f3f5f9; }
.gk header { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px; background: #1d2a44; color: #fff; }
.gk header span { font-size: 12px; opacity: .8; }
.gk-days { display: flex; gap: 6px; padding: 10px 14px; flex-wrap: wrap; }
.gk-days button { border: 1px solid #ccd3e0; background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.gk-days button.on { background: #1d2a44; color: #fff; border-color: #1d2a44; }
.gk-tb { margin: 0 14px; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; font-size: 14px; }
.gk-tb th { text-align: left; padding: 9px 12px; background: #e8ecf3; font-size: 12.5px; color: #555; }
.gk-tb td { padding: 9px 12px; border-top: 1px solid #eef1f6; font-variant-numeric: tabular-nums; }
.gk-tb tr.em td { background: #fff4f1; }
.gk-note { font-size: 12px; color: #777; margin: 12px 16px; line-height: 1.5; }

/* CCTV 뷰어 */
.cv { display: flex; height: 100%; background: #111; color: #ddd; }
.cv-side { width: 170px; flex: none; background: #1a1a1a; padding: 10px; border-right: 1px solid #000; }
.cv-side h5 { margin: 10px 6px 6px; font-size: 11.5px; color: #888; }
.cv-side button { display: block; width: 100%; text-align: left; border: 0; background: none; color: #ccc; padding: 7px 10px; border-radius: 6px; font-size: 13px; }
.cv-side button:hover { background: #ffffff12; }
.cv-side button.on { background: #2b2b2b; color: #fff; }
.cv-main { flex: 1; min-width: 0; overflow-y: auto; }
.cv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 12px; }
.cv-th { position: relative; border: 0; padding: 0; background: #000; border-radius: 6px; overflow: hidden; }
.cv-th .art-img { aspect-ratio: 16/9; height: auto; filter: grayscale(.35) contrast(1.05); }
.cv-th:hover .art-img { filter: none; }
.cv-stamp { position: absolute; left: 8px; top: 6px; font: 600 13px/1 'Ubuntu Mono', monospace; color: #fff; text-shadow: 0 0 3px #000, 0 0 2px #000; letter-spacing: .5px; }
.cv-stamp.sm { font-size: 12px; }
.cv-view { padding: 12px; }
.cv-back { border: 0; background: #2b2b2b; color: #ddd; border-radius: 6px; padding: 6px 12px; margin-bottom: 10px; }
.cv-frame { position: relative; background: #000; }
.cv-frame .art-img { aspect-ratio: 16/9; height: auto; filter: grayscale(.3) contrast(1.05); }
.cv-frame .cv-stamp { font-size: 18px; left: 14px; top: 12px; }
.cv-rec { position: absolute; right: 14px; top: 12px; color: #ff4b4b; font: 700 14px/1 'Ubuntu Mono', monospace; text-shadow: 0 0 3px #000; }
.cv-info { padding: 20px 24px; }
.cv-info dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px; font-size: 14px; }
.cv-info dt { color: #888; }
.cv-info dd { margin: 0; }
.cv-none { color: #777; padding: 20px; }

/* 사이트: Ledger (재무 포털) */
.lg { padding: 0 0 30px; background: #f7f8fa; min-height: 100%; }
.lg-h { display: flex; gap: 12px; align-items: baseline; padding: 14px 24px; background: #0f5132; color: #fff; }
.lg-h span { opacity: .8; font-size: 13px; }
.lg-h em { margin-left: auto; font-style: normal; font-size: 12px; background: #ffffff22; padding: 2px 8px; border-radius: 4px; }
.lg-tabs { display: flex; gap: 18px; padding: 10px 24px; border-bottom: 1px solid #e3e6ea; background: #fff; font-size: 14px; color: #777; }
.lg-tabs .on { color: #0f5132; font-weight: 700; }
.lg h2 { padding: 0 24px; font-size: 18px; }
.lg h2 small { font-size: 12px; color: #888; font-weight: 400; }
.lg-tb { margin: 0 24px; border-collapse: collapse; width: calc(100% - 48px); background: #fff; font-size: 13.5px; }
.lg-tb th { text-align: left; padding: 9px 10px; border-bottom: 2px solid #ccd; font-size: 12.5px; color: #555; }
.lg-tb td { padding: 9px 10px; border-bottom: 1px solid #eee; font-variant-numeric: tabular-nums; }
.lg-tb td.num { text-align: right; }
.lg-note { margin: 12px 24px; font-size: 12px; color: #888; }

/* 사이트: 페이퍼문 */
.pmw header { display: flex; justify-content: space-between; padding: 18px 28px; }
.pmw header nav a { margin-left: 18px; color: #555; }
.pmw h1 { padding: 0 28px; }
.pmw-hero { padding: 70px 28px; background: linear-gradient(135deg, #1d2440, #3a3f6b); color: #fff; }
.pmw-hero h1 { padding: 0; font-size: 34px; line-height: 1.3; }
.pmw-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; padding: 10px 28px 30px; }
.pmw-p { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.pmw-av { width: 96px; height: 96px; border-radius: 50%; font-size: 28px; }
.pmw-p span { color: #888; font-size: 13px; }
.pmw-p p { font-size: 13px; color: #555; margin: 4px 0 0; }

/* 사이트: Streamo */
.st { background: #0e0e10; color: #efeff1; min-height: 100%; padding-bottom: 30px; }
.st-h { padding: 12px 20px; background: #18181b; }
.st-h b { color: #a970ff; }
.st-p { padding: 10px 20px; color: #adadb8; }
.st-ch { display: flex; gap: 10px; align-items: center; padding: 8px 20px; color: inherit; }
.st-ch small { color: #adadb8; }
.st-av { width: 40px; height: 40px; border-radius: 50%; }
.st-av.big { width: 72px; height: 72px; }
.st-prof { display: flex; gap: 16px; align-items: center; padding: 20px; }
.st-prof h2 { margin: 0 0 4px; }
.st-prof p { margin: 0; color: #adadb8; }
.st h3 { padding: 0 20px; }
.st-vod { display: grid; grid-template-columns: minmax(260px, 1.3fr) 1fr; gap: 16px; padding: 0 20px; }
.st-thumb { position: relative; }
.st-thumb .art-img { aspect-ratio: 16/9; height: auto; border-radius: 6px; }
.st-thumb span { position: absolute; right: 8px; bottom: 8px; background: #000c; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.st-info p { color: #adadb8; font-size: 13px; }
.st-chat { background: #18181b; border-radius: 8px; padding: 8px 12px; }
.st-chat h4 { margin: 4px 0 8px; font-size: 13px; color: #adadb8; }
.st-chat p { margin: 6px 0; color: #efeff1; font-size: 13.5px; }
.st-chat time { color: #adadb8; margin-right: 8px; font-variant-numeric: tabular-nums; }
.st-chat b { color: #a970ff; margin-right: 6px; }

/* 사이트: 그로스랩, 레드우드 */
.gl header { display: flex; gap: 12px; align-items: baseline; padding: 18px 28px; background: #111; color: #fff; }
.gl header b { letter-spacing: 3px; color: #39ff88; }
.gl-hero { padding: 60px 28px; background: radial-gradient(circle at 80% 20%, #1f6f4a, #0b1d14); color: #fff; }
.gl-hero h1 { font-size: 36px; line-height: 1.25; margin: 0 0 12px; }
.gl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; padding: 20px 28px; }
.gl-cards div { border: 1px solid #e3e3e3; border-radius: 10px; padding: 14px; }
.gl-cards p { color: #555; font-size: 14px; margin: 6px 0 0; }
.gl-foot { padding: 0 28px 30px; color: #999; font-size: 12px; }
.rw header { padding: 20px 28px; letter-spacing: 4px; }
.rw-hero { padding: 80px 28px; background: #7a1f1f; color: #fff; }
.rw-hero h1 { font-family: serif; font-size: 34px; margin: 0; }
.rw-team { padding: 20px 28px 40px; }

/* 모바일 */
.m .wc-side { width: 100% !important; }
.m .wc.detail .wc-side { display: none; }
.m .wc:not(.detail) .wc-main { display: none; }
.m .wc-photo { width: 240px; }
.m .cv { flex-direction: column; }
.m .cv-side { width: auto; display: flex; overflow-x: auto; gap: 4px; padding: 6px; border-right: 0; }
.m .cv-side h5 { display: none; }
.m .cv-side button { width: auto; white-space: nowrap; flex: none; }
.m .cv-grid { grid-template-columns: 1fr 1fr; }
.m .st-vod { grid-template-columns: 1fr; }
.m .lg-tb { font-size: 12px; }

/* GateKeeper 일련번호·관리 기록 */
.gk-tb td.gk-no { font-family: 'Ubuntu Mono', monospace; color: #8a93a6; font-size: 12px; }
.gk-days .gk-admin { margin-left: auto; }

/* 로그 (GNOME Logs) */
.sl { display: flex; height: 100%; background: #fafafa; color: #2e3436; }
.sl-side { width: 150px; flex: none; background: #ebebed; border-right: 1px solid #d6d6d9; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.sl-side button { text-align: left; padding: 8px 12px; border-radius: 6px; font-size: 14px; }
.sl-side button.on { background: #d6d6db; font-weight: 600; }
.sl-main { flex: 1; overflow: auto; }
.sl-list h5 { margin: 0; padding: 14px 18px 6px; font-size: 13px; color: #77767b; font-weight: 600; }
.sl-list button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid #ececee; text-align: left; background: #fff; }
.sl-list button:hover { background: #f3f3f5; }
.sl-list button span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sl-list button b { font-weight: 500; font-size: 14px; }
.sl-list button small { color: #77767b; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-list time { color: #77767b; font-size: 13px; font-variant-numeric: tabular-nums; }
.sl-detail { padding: 18px 24px; }
.sl-detail h3 { margin: 12px 0 16px; font-size: 18px; }
.sl-detail dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; margin: 0; font-size: 14px; }
.sl-detail dt { color: #77767b; }
.sl-detail dd { margin: 0; }
.sl-detail code { font-family: 'Ubuntu Mono', monospace; font-size: 12.5px; word-break: break-all; background: #f0f0f2; padding: 6px 8px; border-radius: 6px; display: block; }
.sl-back { padding: 6px 12px; border-radius: 6px; background: #ebebed; font-size: 13px; }
@media (max-width: 700px) {
  .sl { flex-direction: column; }
  .sl-side { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #d6d6d9; }
}

/* GateKeeper — 모바일: 좁은 표 */
.m .gk { overflow-x: auto; }
.m .gk header { padding: 10px 12px; }
.m .gk-days { padding: 8px 10px; gap: 4px; }
.m .gk-days button { padding: 4px 9px; font-size: 12px; }
.m .gk-tb { margin: 0 8px; font-size: 12.5px; }
.m .gk-tb th, .m .gk-tb td { padding: 7px 6px; }
.m .gk-tb td:nth-child(2), .m .gk-tb td:nth-child(4) { white-space: nowrap; }
.m .gk-note { margin: 10px 12px; }
