/* Last layer: one navigation and one content area. The playing HUD is untouched. */
.game-shell.phase-lobby .topbar.cf-main-topbar{position:absolute;inset:0 0 auto;box-sizing:border-box;z-index:35;min-height:72px;height:auto;padding:12px 28px;display:flex;align-items:center;gap:18px;background:#0d191ff5;border-bottom:1px solid #c7ad6740;pointer-events:auto;transform:none}
.cf-main-nav{display:flex;align-items:center;gap:5px;flex-shrink:0}
.cf-main-nav button{position:relative;border:0;background:transparent;color:#aebdc3;font-family:inherit;font-size:15px;font-weight:600;line-height:1.5;padding:12px 20px;border-radius:5px;cursor:pointer;white-space:nowrap}
.cf-main-nav button[aria-current=page]{color:#ffe4a0;background:#c9a65120;box-shadow:inset 0 -2px #e2bb60}
.cf-main-nav button:hover{background:#ffffff0b;color:#fff0c8}.cf-main-nav button i{position:absolute;right:9px;top:9px;width:5px;height:5px;border-radius:50%;background:#f7c65e}
.cf-account-strip{margin-left:auto;display:flex;gap:20px;align-items:center;min-width:0;color:#d5e0e1;font-size:13px}
.cf-account-gold,.cf-account-rank{display:flex;align-items:center;gap:7px;white-space:nowrap}.cf-account-gold b{color:#f5d072;font-variant-numeric:tabular-nums}.cf-account-gold small{color:#91a3a9}.cf-account-rank b{font-weight:500}
.cf-account-name{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;background:transparent;color:#e5edeb;cursor:pointer;padding:8px 0;text-align:right}
.cf-top-more{position:relative}.cf-top-more summary{cursor:pointer;list-style:none;font-size:22px;padding:0 5px}.cf-top-more>div{position:absolute;right:0;top:30px;width:140px;display:grid;padding:8px;background:#14252d;border:1px solid #41555d;border-radius:6px;box-shadow:0 10px 25px #0006}.cf-top-more a,.cf-top-more button{font:inherit;text-align:left;padding:9px;color:#e2e9e7;text-decoration:none;border:0;background:none;cursor:pointer}
.phase-lobby .cf-lobby-shell.online-panel{position:absolute!important;inset:88px 24px 22px!important;transform:none!important;width:auto!important;max-width:none!important;height:auto!important;max-height:none!important;overflow:auto!important;box-sizing:border-box;padding:20px!important}
.phase-lobby .cf-lobby-shell[data-nav-view]:not([data-nav-view=rooms])>.cf-lobby-room-view{display:none!important}
.phase-lobby .cf-lobby-shell[data-nav-view=rooms]>.cf-lobby-room-view{display:block!important}
.phase-lobby .cf-lobby-shell>.cf-nav-warehouse{display:block!important;min-width:0}
.phase-lobby .cf-lobby-shell>.cf-nav-warehouse>.cf-equipment-workspace{display:block!important}
.phase-lobby .cf-lobby-shell>.cf-nav-warehouse .cf-warehouse-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.phase-lobby .cf-lobby-shell>.cf-nav-warehouse .cf-drag-layout{grid-template-columns:250px minmax(0,1fr);gap:20px}
.phase-lobby .cf-lobby-shell .cf-room-tabs{display:none!important}
.phase-lobby .cf-lobby-shell .cf-lobby-columns{display:block!important}
.cf-lobby-notices:empty{display:none}.cf-lobby-notices .cf-progress-card{margin:12px 0}
.cf-nav-page{max-width:1200px;margin:0 auto;color:#d4dfdf;min-width:0}
.cf-nav-page>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.cf-nav-page>header small{color:#879fa7;font-size:11px;letter-spacing:2px}.cf-nav-page h2{font-size:26px;margin:7px 0;color:#eef1e9}.cf-nav-page>header>span{font-size:12px;color:#a99a8b}.cf-nav-page>header>span.is-online{color:#92c3af}
.cf-nav-page .cf-progress-card{margin:20px 0}.cf-nav-fine{font-size:12px;line-height:1.8;color:#8da2ab;margin:18px 0}.cf-nav-notice{background:#203b36;color:#b6dccc;padding:10px 14px;border-radius:5px;font-size:13px}.cf-nav-notice.is-error{background:#42262b;color:#f6b7b7}
.cf-career-rank{display:flex;align-items:center;gap:22px;padding:22px;background:linear-gradient(100deg,#2a332b,#13242b);border:1px solid #7f714540;border-radius:7px}.cf-career-rank h3{font-size:24px;margin:0 0 8px;color:#eace8a}.cf-career-rank p{margin:0;color:#a9b9bc;font-size:14px}
.cf-career-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.cf-career-stats article{padding:20px;background:#17282f;border:1px solid #35464c80;border-radius:7px;min-width:0}.cf-career-stats small{display:block;color:#91a7af;font-size:13px}.cf-career-stats strong{display:block;color:#e5e9df;font-size:25px;margin-top:10px;font-variant-numeric:tabular-nums}
.cf-board-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.cf-board-toolbar nav{display:flex;gap:8px}.cf-board-toolbar button{padding:10px 19px;border:1px solid #3c535d;border-radius:5px;background:#192d36;color:#b6c9cf;font-size:14px;cursor:pointer}.cf-board-toolbar button[aria-pressed=true]{color:#ffe6a1;border-color:#b69d60;background:#54492e}.cf-board-toolbar button:disabled{opacity:.5;cursor:default}
.cf-board-table-wrap{overflow:auto;border:1px solid #334951;border-radius:7px}.cf-board-table{border-collapse:collapse;width:100%;font-size:14px;table-layout:fixed}.cf-board-table th{background:#1d3038;color:#9db4bd;font-weight:500}.cf-board-table th,.cf-board-table td{padding:14px 18px;text-align:left;border-bottom:1px solid #2b414a}.cf-board-table th:first-child{width:64px}.cf-board-table th:last-child,.cf-board-table td:last-child{text-align:right}.cf-board-table td:nth-child(2)>span{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}.cf-board-table td small{color:#f1ce7e;margin-left:7px}.cf-board-table .cf-rank-badge{vertical-align:middle;margin-right:7px}.cf-board-table tr.is-self{background:#ac8b3d16;color:#f4db9c}.cf-board-empty{padding:55px 15px;text-align:center;color:#a4b8bf;border:1px dashed #3c5159;border-radius:7px}.cf-board-footer{display:flex!important;justify-content:space-between;gap:10px;padding:18px 0;font-size:12px;color:#9db1b8}
.cf-main-topbar button:focus-visible,.cf-main-topbar summary:focus-visible,.cf-board-toolbar button:focus-visible{outline:2px solid #e5c778;outline-offset:2px}
@media(max-width:1100px){.game-shell.phase-lobby .topbar.cf-main-topbar{padding:9px 16px;gap:10px}.cf-main-nav button{padding:12px 14px}.cf-account-strip{gap:12px}.cf-account-gold small{display:none}.cf-account-name{max-width:100px}}
@media(max-width:760px){.game-shell.phase-lobby .topbar.cf-main-topbar{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:8px 12px;min-height:96px}.cf-main-nav{justify-content:space-between;gap:0}.cf-main-nav button{font-size:14px;padding:8px 14px}.cf-account-strip{margin:0;justify-content:flex-end;gap:15px;font-size:12px;min-height:27px}.cf-account-gold{margin-right:auto}.cf-account-name{max-width:105px}.phase-lobby .cf-lobby-shell.online-panel{inset:112px 8px 8px!important;padding:14px!important}.phase-lobby .cf-lobby-shell>.cf-nav-warehouse .cf-drag-layout{grid-template-columns:1fr;gap:12px}.cf-career-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cf-career-stats article{padding:14px}.cf-career-stats strong{font-size:21px}.cf-nav-page h2{font-size:22px}.cf-board-toolbar nav{gap:4px}.cf-board-toolbar button{padding:8px 10px;font-size:12px}.cf-board-table{font-size:12px}.cf-board-table th,.cf-board-table td{padding:11px 6px}.cf-board-table th:first-child{width:32px;white-space:nowrap}.cf-board-table .cf-rank-badge{display:none}.cf-board-footer{flex-wrap:wrap}.cf-account-rank .cf-rank-badge{width:21px!important;height:21px!important}}
@media(max-height:500px) and (min-width:761px){.game-shell.phase-lobby .topbar.cf-main-topbar{min-height:52px;padding:3px 12px}.phase-lobby .cf-lobby-shell.online-panel{top:64px!important;padding:12px!important}}

.phase-lobby .cf-rooms-toolbar{justify-content:flex-end!important}
/* CombatInfo (original SwfMovie): compact title, red killer name, weapon art/name, white values.
   Reserve the bottom-right lanes for AC/HP, backpack, chat, then technical information. */
.game-shell .death-review.cf-technical-panel{position:fixed!important;right:16px!important;left:auto!important;top:auto!important;bottom:190px!important;transform:none!important;box-sizing:border-box;width:280px;max-width:calc(100vw - 32px);padding:12px 14px;background:linear-gradient(90deg,#11171ded,#11171dc9);border:0;border-top:1px solid #ffffff50;border-bottom:1px solid #ffffff20;border-radius:0;box-shadow:none;animation:none;pointer-events:none;color:#ccc;font-family:CFHD-Chinese,sans-serif}
.game-shell .cf-technical-panel header{display:flex;margin:0 0 12px;align-items:center;justify-content:space-between;gap:10px}.game-shell .cf-technical-panel header strong{font-size:18px;letter-spacing:.5px;color:#fff;font-weight:500}.game-shell .cf-technical-panel header span{font-size:11px;color:#aab0b4;white-space:nowrap}
.cf-technical-killer{display:flex;align-items:center;gap:12px}.cf-technical-killer small{font-size:12px;color:#ccc}.cf-technical-killer b{font-size:16px;color:#d56161;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cf-technical-weapon{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #ffffff18}.cf-technical-weapon img{width:112px;height:46px;object-fit:contain}.cf-technical-weapon strong{font-size:15px;text-align:right;color:#fff;font-weight:400}
.cf-technical-panel dl{margin:8px 0 0;display:grid;gap:5px}.cf-technical-panel dl>div{display:flex;justify-content:space-between;gap:10px}.cf-technical-panel dt{font-size:12px;color:#b0b8be}.cf-technical-panel dd{margin:0;font-size:12px;color:#fff}
.game-shell .backpack-launch{position:fixed!important;right:16px!important;left:auto!important;top:auto!important;bottom:110px!important;transform:none!important;z-index:9;font-size:12px;padding:5px 10px}
.game-shell #crossGameLobbyLink{display:none!important}
@media(max-width:640px){.game-shell .death-review.cf-technical-panel{right:10px!important;left:auto!important;width:246px;padding:10px 12px}.game-shell .backpack-launch{right:10px!important;left:auto!important}}
@media(max-height:500px){.game-shell .death-review.cf-technical-panel{right:10px!important;left:auto!important;bottom:160px!important;width:238px;padding:8px 10px}.game-shell .cf-technical-panel header{margin-bottom:6px}.game-shell .cf-technical-panel header strong{font-size:15px}.cf-technical-weapon{padding:3px 0}.cf-technical-weapon img{height:32px;width:88px}.cf-technical-panel dl{margin-top:5px;gap:2px}.game-shell .backpack-launch{bottom:80px!important}}

/* Alive: place bag access above the right weapon list; on death that list is hidden. */
.game-shell.phase-playing:not(.is-dead) .backpack-launch{bottom:280px!important}
