
#lobbyPanel {
  --lb-gold: #e8c778;
  --lb-gold-hi: #fff0b0;
  --lb-gold-deep: #8b632a;
  --lb-ink: #080b10;
  --lb-panel: rgba(16, 20, 27, .9);
  --lb-line: rgba(226, 190, 112, .18);
  --lb-muted: #8d929d;
  position: fixed;
  inset: 0;
  z-index: 100000;
  overflow: hidden;
  color: #eee9df;
  background:
    radial-gradient(ellipse at 50% -15%, rgba(177, 127, 45, .2), transparent 48%),
    radial-gradient(circle at 8% 80%, rgba(46, 80, 105, .16), transparent 34%),
    radial-gradient(circle at 92% 74%, rgba(117, 52, 44, .12), transparent 32%),
    linear-gradient(145deg, #0b0e14, #05070a 72%);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  isolation: isolate;
}
#lobbyPanel *, #lobbyPanel *::before, #lobbyPanel *::after { box-sizing: border-box; }
#lobbyPanel button, #lobbyPanel input { font: inherit; }
#lobbyPanel button { -webkit-tap-highlight-color: transparent; }
.lb-world { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.lb-world::before {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.lb-world::after { content: "⚜"; position: absolute; left: 50%; top: 45%; transform: translate(-50%,-50%); font-size: min(66vw,760px); color: rgba(208,171,93,.018); line-height: 1; }
.lb-halo { position: absolute; width: 46vw; height: 46vw; border: 1px solid rgba(230,195,119,.06); border-radius: 50%; left: 50%; top: 44%; transform: translate(-50%,-50%); box-shadow: 0 0 0 70px rgba(230,195,119,.015), 0 0 0 140px rgba(230,195,119,.01); }
.lb-ember { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #f1ce7d; box-shadow: 0 0 9px #dc9e3c; opacity: 0; animation: lbRise 9s linear infinite; }
@keyframes lbRise { 0% { transform: translateY(20px); opacity: 0; } 20% { opacity: .55; } 80% { opacity: .18; } 100% { transform: translateY(-70vh); opacity: 0; } }
.lb-shell { height: 100%; max-width: 1600px; margin: auto; padding: 22px 28px 24px; display: flex; flex-direction: column; }
.lb-topbar { min-height: 72px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--lb-line); padding-bottom: 17px; flex: none; }
.lb-brand { display: flex; align-items: center; gap: 13px; min-width: 260px; }
.lb-brand-mark { width: 46px; height: 50px; display: grid; place-items: center; color: var(--lb-gold-hi); font-size: 27px; background: linear-gradient(145deg,rgba(229,190,108,.17),rgba(94,62,20,.04)); border: 1px solid rgba(235,199,123,.35); clip-path: polygon(50% 0,100% 19%,91% 80%,50% 100%,9% 80%,0 19%); }
.lb-brand-title { font-family: "STKaiti","KaiTi",serif; font-size: 26px; letter-spacing: 4px; color: #f4e4bd; text-shadow: 0 2px 18px rgba(232,199,120,.2); }
.lb-live { display: flex; align-items: center; justify-content: center; gap: 9px; flex: 1; color: #a9a298; font-size: 12px; letter-spacing: 1px; }
.lb-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #66d6a0; box-shadow: 0 0 12px rgba(102,214,160,.8); }
.lb-live.offline .lb-live-dot { background: #d19a61; box-shadow: 0 0 10px rgba(209,154,97,.5); }
.lb-top-actions { display: flex; gap: 9px; align-items: center; }
.lb-btn { border: 1px solid rgba(225,194,130,.25); border-radius: 7px; padding: 10px 15px; background: rgba(255,255,255,.035); color: #c9c2b4; cursor: pointer; transition: .2s ease; font-size: 12px; }
.lb-btn:hover { color: #fff1c5; border-color: rgba(238,201,122,.58); background: rgba(226,185,98,.09); transform: translateY(-1px); }
.lb-btn-gold { color: #211708; font-weight: 700; border-color: #e3c076; background: linear-gradient(135deg,#f3dfa4,#c79a4d); box-shadow: 0 4px 18px rgba(203,158,74,.16); }
.lb-btn-gold:hover { color: #160f05; background: linear-gradient(135deg,#fff0ba,#d9ac5b); }
.lb-btn-ghost { background: transparent; border-color: rgba(255,255,255,.1); }
.lb-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(220px,270px) minmax(400px,1fr) minmax(270px,330px); gap: 20px; padding-top: 20px; }
.lb-column { min-height: 0; display: flex; flex-direction: column; }
.lb-panel { position: relative; background: linear-gradient(155deg,rgba(24,28,36,.89),rgba(10,13,18,.91)); border: 1px solid var(--lb-line); border-radius: 12px; box-shadow: 0 14px 45px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.025); }
.lb-panel::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 1px; background: linear-gradient(90deg,transparent,rgba(248,219,150,.42),transparent); }
.lb-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; flex: none; }
.lb-section-title { color: #e9d7ad; font-size: 14px; letter-spacing: 2px; font-weight: 700; }
.lb-count { color: #87817a; font-size: 11px; white-space: nowrap; }
.lb-count b { color: var(--lb-gold); font-size: 17px; margin-right: 3px; }

.lb-self {
  overflow: hidden; flex: none;
  
  background:
    linear-gradient(165deg, rgba(44,49,60,.42) 0%, rgba(16,19,26,.72) 38%, rgba(8,10,14,.9) 100%),
    radial-gradient(120% 70% at 50% -8%, rgba(234,203,136,.09), transparent 62%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
  border-color: rgba(226,196,133,.2);
  box-shadow: 0 18px 50px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.45);
}

.lb-self::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.02) 20%, transparent 42%, transparent 100%);
}

.lb-self-banner { height: 82px; position: relative; background: none; border-bottom: 0; }
.lb-self-id { padding: 0 18px 17px; text-align: center; margin-top: -39px; position: relative; }
.lb-avatar { width: 74px; height: 74px; margin: auto; border-radius: 50%; display: grid; place-items: center; font-size: 37px; background: radial-gradient(circle at 40% 30%,#3a3327,#11151b 70%); border: 2px solid #d8b668; box-shadow: 0 0 0 5px #11151b,0 0 0 6px rgba(220,183,106,.25),0 8px 30px #000; }
.lb-avatar.royal { border-color: #b89be8; box-shadow: 0 0 0 5px #11151b,0 0 0 6px rgba(175,138,231,.38),0 0 25px rgba(175,138,231,.2); }
.lb-avatar.divine { border-color: #fff0a8; box-shadow: 0 0 0 5px #11151b,0 0 0 6px rgba(255,232,146,.55),0 0 30px rgba(255,213,101,.3); }
.lb-avatar.darkmoon { border-color: #cfc6ec; box-shadow: 0 0 0 5px #11151b,0 0 0 6px rgba(201,192,236,.42),0 0 24px rgba(150,136,210,.32); background: radial-gradient(circle at 38% 26%,#4b4568,#211d33 48%,#07060c 100%); }

button.lb-avatar { padding: 0; font-family: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s; }
button.lb-avatar:hover { transform: translateY(-1px); }
button.lb-avatar:active { transform: scale(.96); }
.lb-self-name { margin-top: 13px; color: #fff0c9; font-size: 19px; font-weight: 700; letter-spacing: 1px; overflow-wrap: anywhere; word-break: break-word; }   
.lb-self-rank { margin-top: 7px; display: inline-flex; gap: 6px; align-items: center; border: 1px solid rgba(230,193,115,.25); border-radius: 20px; padding: 4px 11px; color: #d7bb7f; background: rgba(213,167,74,.06); font-size: 11px; }
.lb-self-title { color: #8c8578; font-size: 11px; margin-top: 9px; }
.lb-self-sign { margin: 14px 4px 0; color: #aaa294; font-family: "STKaiti","KaiTi",serif; font-size: 14px; line-height: 1.65; min-height: 23px; }
.lb-self-deck { margin: 15px 16px 16px; }
.lb-small-label { color: #8d8371; font-size: 10px; letter-spacing: 1px; display: flex; justify-content: space-between; margin-bottom: 9px; }
.lb-small-label span:last-child { color: #5f626b; letter-spacing: 0; }
.lb-deck-icons { display: grid; grid-template-columns: repeat(6,1fr); gap: 5px; }
.lb-card-mini { aspect-ratio: .8; display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 5px; border: 1px solid rgba(225,190,112,.2); background: linear-gradient(145deg,#2c261b,#12161c); color: #eed9a6; font-size: 19px; }
.lb-card-mini .pc-card-icon { width: 100%; height: 100%; object-fit: cover; }
.lb-card-mini .pc-card-emoji { line-height: 1; }
.lb-card-mini.empty { color: #4d4e52; border-style: dashed; background: rgba(255,255,255,.015); }

.lb-self-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: none; margin-top: 18px; }

.lb-roster-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 18px; }
.lb-player-list { flex: 1; min-height: 120px; overflow-y: auto; padding-right: 5px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: max-content; gap: 11px; align-content: start; }
.lb-player { min-width: 0; position: relative; overflow: hidden; padding: 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; background: linear-gradient(135deg,rgba(255,255,255,.034),rgba(255,255,255,.012)); transition: .2s ease; }
.lb-player:hover { border-color: rgba(230,195,121,.3); background: linear-gradient(135deg,rgba(230,195,121,.065),rgba(255,255,255,.015)); transform: translateY(-2px); box-shadow: 0 9px 22px rgba(0,0,0,.2); }
.lb-player.unavailable { opacity: .66; }
.lb-player.unavailable:hover { transform: none; }
.lb-player-top { display: flex; align-items: center; gap: 10px; min-width: 0; }

.lb-peer-avatar { width: 46px; height: 46px; flex: none; display: grid; place-items: center; font-size: 24px; background: linear-gradient(145deg,#332c20,#12171e); border: 1px solid rgba(224,188,112,.32); border-radius: 50%; }
.lb-peer-main { min-width: 0; flex: 1; }
.lb-peer-name { color: #e9e2d5; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-status { flex: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; color: #71c99c; font-size: 9px; }
.lb-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.lb-status.busy { color: #d59864; }
.lb-status.away { color: #b9a466; }
.lb-status.newbie { color: #70b9a0; }
.lb-peer-career { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.055); display: flex; align-items: center; gap: 8px; min-height: 34px; }
.lb-mini-flag { width: 19px; height: 25px; flex: none; clip-path: polygon(0 0,100% 0,100% 77%,50% 100%,0 77%); display: inline-grid; place-items: center; font-size: 10px; color: #f8e6b5; background: #78352e; border-top: 2px solid #d3b875; vertical-align: -6px; margin-right: 4px; }
.lb-mini-flag.azure { background: #284d70; }.lb-mini-flag.violet { background: #594071; }.lb-mini-flag.emerald { background: #2e614c; }.lb-mini-flag.amber { background: #8a5b22; }.lb-mini-flag.ivory { background: #8a8474; }.lb-mini-flag.obsidian { background: #282b31; }.lb-mini-flag.rose { background: #7c4054; }.lb-mini-flag.shadow { background: #2a2438; }
.lb-mini-flag svg { width: 15px; height: 15px; display: block; }



.lb-flag { position: relative; display: inline-block; width: 30px; height: 40px; flex: none; vertical-align: -14px; margin-right: 7px; }
.lb-flag .pc-flag { position: absolute; left: 0; top: 0; transform: scale(.45); transform-origin: top left; filter: none; }
.lb-peer-favorites { color: #85817a; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }

.lb-peer-rank { color: #aa9367; font-size: 10px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-player-bottom { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.lb-player-acts { display: flex; align-items: center; gap: 8px; flex: 1; }
.lb-player-acts .lb-view-career { flex: 1; min-width: 0; }
.lb-player-acts .lb-challenge { flex: none; }
.lb-view-career { border: 1px solid rgba(229,189,105,.34); border-radius: 5px; background: linear-gradient(135deg,rgba(150,120,190,.18),rgba(90,70,140,.08)); color: #c9b8e8; padding: 6px 11px; font-size: 11px; cursor: pointer; white-space: nowrap; }
.lb-view-career:hover { background: linear-gradient(135deg,#b9a3e0,#7b62b8); color: #14101f; }

.lb-chat-name-link { color: #cbb17c; cursor: pointer; border-bottom: 1px dotted rgba(203,177,124,.5); }
.lb-chat-name-link:hover { color: #ffe7a5; border-bottom-color: #ffe7a5; }
.lb-challenge { border: 1px solid rgba(229,189,105,.42); border-radius: 5px; background: linear-gradient(135deg,rgba(223,179,87,.17),rgba(169,112,38,.08)); color: #e6c77f; padding: 7px 14px; font-size: 11px; cursor: pointer; white-space: nowrap; }
.lb-challenge:hover { background: linear-gradient(135deg,#e8cb89,#bb8b3d); color: #1c1306; }
.lb-empty { grid-column: 1/-1; min-height: 250px; display: grid; place-items: center; text-align: center; color: #777168; }
.lb-empty-icon { width: 74px; height: 74px; margin: 0 auto 16px; display: grid; place-items: center; border: 1px solid rgba(226,190,113,.17); border-radius: 50%; color: #8a734a; font-size: 30px; background: rgba(226,190,113,.025); }
.lb-empty-title { color: #b6a88d; font-size: 15px; letter-spacing: 2px; }
.lb-empty-sub { margin-top: 9px; color: #5f6168; font-size: 11px; line-height: 1.8; }

.lb-player-list.lb-list-empty { align-content: center; padding-top: 33px; }

.lb-chat-panel { flex: 1; min-height: 200px; padding: 17px 15px 13px; display: flex; flex-direction: column; }
.lb-chat-log { flex: 1; min-height: 100px; overflow-y: auto; padding: 2px 5px 8px 1px; }

.lb-chat-log.lb-chat-empty { display: flex; flex-direction: column; scrollbar-width: none; }
.lb-chat-log.lb-chat-empty::-webkit-scrollbar { width: 0; height: 0; }
.lb-chat-welcome { flex: 1; color: #66666a; text-align: center; font-size: 11px; line-height: 1.9; padding: 20px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lb-chat-welcome b { display: block; color: #a39377; font-size: 24px; margin-bottom: 10px; font-weight: 400; line-height: 1; }
.lb-message { display: flex; gap: 8px; margin: 0 0 13px; }
.lb-message-avatar { width: 27px; height: 27px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(226,190,113,.08); border: 1px solid rgba(226,190,113,.12); font-size: 14px; }
.lb-message-body { min-width: 0; }
.lb-message-name { color: #938874; font-size: 10px; margin-bottom: 4px; }
.lb-message-text { display: inline-block; color: #c8c4bc; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.045); border-radius: 3px 9px 9px 9px; padding: 7px 9px; font-size: 12px; line-height: 1.55; word-break: break-word; }
.lb-message.mine { flex-direction: row-reverse; }
.lb-message.mine .lb-message-body { text-align: right; }
.lb-message.mine .lb-message-name { color: #c5a767; }
.lb-message.mine .lb-message-text { color: #ead9b5; background: rgba(196,151,66,.1); border-color: rgba(221,181,104,.13); border-radius: 9px 3px 9px 9px; }
.lb-chat-compose { display: flex; gap: 7px; padding-top: 11px; border-top: 1px solid var(--lb-line); flex: none; }
.lb-chat-compose input { flex: 1; min-width: 0; height: 38px; padding: 8px 10px; color: #e9e1d1; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.08); border-radius: 6px; outline: none; font-size: 12px; }
.lb-chat-compose input:focus { border-color: rgba(230,194,118,.4); }
.lb-chat-send { width: 48px; border: 1px solid rgba(225,188,111,.32); border-radius: 6px; color: #e0c384; background: rgba(215,169,77,.09); cursor: pointer; }
.lb-chat-send:hover { background: rgba(215,169,77,.2); }
.lb-chat-note { color: #4e5056; font-size: 9px; text-align: center; margin-top: 8px; flex: none; }

#mpMenu { --lb-gold:#e8c778; --lb-line:rgba(226,190,112,.18); font-family:"Microsoft YaHei","PingFang SC",sans-serif; }
#mpMenu *, #mpMenu *::before, #mpMenu *::after { box-sizing:border-box; }
.mp-flow-card { width:min(94vw,600px); max-height:90vh; max-height:90dvh; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.mp-flow-content { width:100%; min-width:0; display:flex; flex-direction:column; align-items:center; text-align:center; }
#mpMenu h2 { margin:0 0 8px !important; color:#f0dba9 !important; font-family:"STKaiti","KaiTi",serif !important; font-size:28px !important; letter-spacing:2px; text-shadow:0 2px 18px rgba(232,199,120,.18) !important; }
#mpMenu p { max-width:100%; color:#918a7d !important; line-height:1.7; }
#mpMenu button { max-width:100%; min-height:42px; color:#dfca98 !important; border:1px solid rgba(229,189,105,.28) !important; border-radius:8px !important; background:linear-gradient(135deg,rgba(223,179,87,.12),rgba(169,112,38,.045)) !important; box-shadow:none !important; text-shadow:none !important; cursor:pointer; transition:border-color .18s,color .18s,background .18s; }
#mpMenu button:hover { color:#fff0bc !important; border-color:rgba(238,201,122,.62) !important; background:linear-gradient(135deg,rgba(223,179,87,.22),rgba(169,112,38,.09)) !important; }
#mpMenu input { max-width:100%; color:#f0dba9 !important; border:1px solid rgba(229,189,105,.36) !important; background:rgba(0,0,0,.3) !important; border-radius:8px !important; outline:none; }
#mpMenu input:focus { border-color:rgba(238,201,122,.7) !important; box-shadow:0 0 0 2px rgba(230,194,118,.07); }
#mpMenu #mpInfo { color:#a39b8c; }
#mpMenu #mpKeyPad > div > div { color:#f0d88f !important; border:1px solid rgba(229,189,105,.42) !important; background:rgba(226,190,113,.055) !important; }
#mpMenu.lb-low-perf { backdrop-filter:none !important; }
#mpMenu.lb-low-perf *, #mpMenu.lb-low-perf *::before, #mpMenu.lb-low-perf *::after { animation:none !important; transition:none !important; }
.lb-rank-card { width:min(94vw,520px); max-height:88vh; display:flex; flex-direction:column; overflow:hidden; }
.lb-rank-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.lb-rank-head .lb-modal-title { margin:0; }
.lb-rank-mine { display:flex; align-items:center; gap:10px; padding:11px 13px; margin-bottom:12px; border:1px solid rgba(230,194,119,.3); border-radius:9px; background:rgba(226,190,113,.065); }
.lb-rank-medal { font-size:24px; }
.lb-rank-mine-name { flex:1; min-width:0; color:#d9cdb5; font-size:13px; text-align:left; }
.lb-rank-mine-name span, .lb-rank-mine-score { color:#edcf87; font-size:18px; font-weight:700; }
.lb-rank-list { flex:1; min-height:20vh; max-height:52vh; overflow-y:auto; -webkit-overflow-scrolling:touch; touch-action:pan-y !important; padding:4px 6px; border:1px solid rgba(226,190,112,.09); border-radius:9px; background:rgba(0,0,0,.24); }
.lb-rank-note { margin-top:10px; color:#65636a; font-size:10px; line-height:1.7; text-align:center; }

#lobbyModePick, #lobbyDevicePick, #lobbyChallenge, #lobbyWaitBox { font-family: "Microsoft YaHei","PingFang SC",sans-serif; }
.lb-modal-card { position: relative; width: min(92vw,570px); max-height: 90vh; overflow-y: auto; padding: 27px; color: #eee7d9; text-align: center; border: 1px solid rgba(232,195,116,.4); border-radius: 15px; background: radial-gradient(ellipse at 50% 0,rgba(202,155,66,.13),transparent 50%),linear-gradient(155deg,#191b22,#0b0d12); box-shadow: 0 25px 100px #000,0 0 45px rgba(218,175,88,.09); }
.lb-modal-card::before, .lb-modal-card::after { content: "◆"; position: absolute; top: 12px; color: #a48346; font-size: 10px; }.lb-modal-card::before { left: 14px; }.lb-modal-card::after { right: 14px; }
.lb-modal-title { margin-top: 9px; color: #f0dba9; font-family: "STKaiti","KaiTi",serif; font-size: 26px; letter-spacing: 2px; }
.lb-modal-peer { color: #8d8b88; font-size: 12px; margin: 9px 0 20px; }
.lb-modal-peer b { color: #dbc18a; }

.lb-modal-rule { display: flex; align-items: center; gap: 9px; width: min(100%,300px); margin: 6px auto 20px; color: #a48346; font-size: 9px; }
.lb-modal-rule::before, .lb-modal-rule::after { content: ""; flex: 1; height: 1px; }
.lb-modal-rule::before { background: linear-gradient(90deg,transparent,rgba(232,195,116,.45)); }
.lb-modal-rule::after { background: linear-gradient(90deg,rgba(232,195,116,.45),transparent); }


.lb-choice-grid { display: grid; width: 100%; grid-template-columns: repeat(3,1fr); gap: 14px; }
.lb-choice { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 176px; padding: 24px 16px 20px; border: 1px solid rgba(232,196,121,.2); border-radius: 14px; color: #d7c6a4; background: radial-gradient(ellipse at 50% 0,rgba(226,183,95,.1),transparent 62%),linear-gradient(160deg,rgba(226,183,95,.075),rgba(255,255,255,.012)); box-shadow: inset 0 1px rgba(255,240,190,.05); cursor: pointer; transition: .2s ease; overflow: hidden; }
.lb-choice::after { content: ""; position: absolute; left: 18%; right: 18%; top: 0; height: 1px; background: linear-gradient(90deg,transparent,rgba(240,208,135,.55),transparent); }
.lb-choice:hover { transform: translateY(-4px); border-color: rgba(237,201,126,.6); background: radial-gradient(ellipse at 50% 0,rgba(226,183,95,.2),transparent 62%),linear-gradient(160deg,rgba(226,183,95,.15),rgba(255,255,255,.025)); box-shadow: 0 14px 34px rgba(0,0,0,.34),0 0 22px rgba(226,183,95,.12); }
.lb-choice-icon { display: block; font-size: 46px; line-height: 1; margin-bottom: 16px; filter: drop-shadow(0 4px 14px rgba(226,183,95,.3)); }
.lb-choice-name { display: block; color: #f1ddaa; font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.lb-choice-desc { display: block; color: #8d8b88; font-size: 12px; line-height: 1.6; margin-top: 9px; }
.lb-map-grid { grid-template-columns: repeat(2,1fr); }
.lb-map-choice { min-height: 155px; }
.lb-modal-foot { color: #65666b; font-size: 10px; line-height: 1.8; margin: 16px 0; }
.lb-modal-back { border: 0; background: transparent; color: #88837a; padding: 8px 18px; cursor: pointer; font-size: 12px; }
.lb-modal-back:hover { color: #e3c788; }
.lb-duel-seal { width: 72px; height: 72px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(235,197,117,.4); color: #e5c274; background: radial-gradient(circle,rgba(229,190,107,.14),transparent); font-size: 34px; box-shadow: 0 0 0 7px rgba(229,190,107,.035),0 0 30px rgba(229,190,107,.12); }
.lb-challenge-meta { display: flex; justify-content: center; gap: 9px; margin: 16px 0; }
.lb-meta-chip { padding: 7px 12px; border-radius: 20px; border: 1px solid rgba(230,194,119,.18); color: #cbb17c; background: rgba(230,194,119,.05); font-size: 11px; }
.lb-timer { height: 4px; max-width: 280px; margin: 20px auto 8px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.08); }
.lb-timer > div { height: 100%; border-radius: inherit; background: linear-gradient(90deg,#a76b32,#f0d18a); }
.lb-timer-text { color: #8a7c65; font-size: 10px; margin-bottom: 19px; }
.lb-duel-actions { display: flex; gap: 11px; }
.lb-duel-actions .lb-btn { flex: 1; padding: 13px; font-size: 14px; }
.lb-btn-danger { color: #bd8c7c; border-color: rgba(184,101,78,.25); background: rgba(151,65,45,.07); }
.lb-vs-strip { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 17px 0; }
.lb-vs-avatar { text-align: center; min-width: 90px; }
.lb-vs-avatar .lb-peer-avatar { margin: auto; width: 52px; height: 52px; }
.lb-vs-name { color: #bdb3a2; font-size: 11px; margin-top: 8px; }
.lb-mobile-tabs { display: none; }


.lb-mobile-tab.unread {
  color: #f7e3ae;
  border-color: rgba(232,196,121,.48);
  background: linear-gradient(135deg,rgba(226,183,95,.22),rgba(169,112,38,.1));
  animation: lbTabUnreadGlow 1.6s ease-in-out infinite;
}
@keyframes lbTabUnreadGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(232,196,121,0), inset 0 1px rgba(255,240,190,.06); }
  50% { box-shadow: 0 0 15px rgba(232,196,121,.55), inset 0 1px rgba(255,240,190,.14); }
}


@media (max-width: 1120px) {
  .lb-shell { padding: 18px; }
  .lb-mobile-tabs { flex: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 14px; padding: 5px; border: 1px solid var(--lb-line); border-radius: 9px; background: rgba(5,8,12,.68); }
  .lb-mobile-tab { min-width: 0; min-height: 40px; padding: 8px 3px; border: 1px solid transparent; border-radius: 6px; color: #88847c; background: transparent; cursor: pointer; font-size: 12px; white-space: nowrap; }
  .lb-mobile-tab.active { color: #f1d998; border-color: rgba(232,196,121,.3); background: linear-gradient(135deg,rgba(226,183,95,.17),rgba(169,112,38,.08)); box-shadow: inset 0 1px rgba(255,240,190,.06); }
  .lb-layout { display: block; flex: 1; min-height: 0; overflow: hidden; padding-top: 14px; }
  .lb-layout > .lb-column { display: none; min-height: 0; height: 100%; }
  .lb-layout > .lb-column.lb-mobile-active { display: flex; }
  .lb-self-column { overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
  
  .lb-self { width: min(540px,100%); margin: 0 auto; flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .lb-self-banner { flex: none; }
  .lb-self-id { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  
  #lobbyPanel .lb-self-id { padding-bottom: 18px; gap: 16px; }
  #lobbyPanel .lb-self-actions { margin-top: 0; width: 100%; }
  #lobbyPanel .lb-self-id .lb-avatar { margin: 0 auto; }
  #lobbyPanel .lb-self-name, #lobbyPanel .lb-self-rank, #lobbyPanel .lb-self-title, #lobbyPanel .lb-self-sign { margin-top: 0; }
  .lb-roster-panel { width: min(880px,100%); height: 100%; min-height: 0; margin: 0 auto; }
  .lb-player-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 3px; }
  .lb-chat-column { min-height: 0; }
  .lb-chat-panel { width: min(760px,100%); height: 100%; min-height: 0; margin: 0 auto; }
  .lb-chat-log { min-height: 0; max-height: none; overscroll-behavior: contain; }
}
@media (max-width: 720px) {
  #lobbyPanel { overflow: hidden; }
  .lb-shell { height: 100%; height: 100dvh; min-height: 0; padding: 12px; }
  .lb-topbar { flex-wrap: wrap; gap: 8px 10px; padding-bottom: 8px; min-height: 0; }
  .lb-brand { min-width: 0; flex: 1 1 auto; }
  .lb-brand-mark { width: 37px; height: 41px; font-size: 22px; flex: none; }
  .lb-brand-title { font-size: 20px; letter-spacing: 2px; white-space: nowrap; }
  .lb-live { order: 3; flex-basis: 100%; justify-content: flex-start; font-size: 10px; }
  .lb-top-actions { order: 0; width: auto; margin-left: auto; gap: 6px; flex: none; }
  
  #lobbyPanel .lb-top-actions .lb-btn { flex: 0 0 auto; min-width: 0; padding: 7px 13px; font-size: 11px; white-space: nowrap; }
  .lb-top-actions .lb-career-top { display: none; }
  .lb-mobile-tabs { flex: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; margin-top: 11px; padding: 4px; border: 1px solid var(--lb-line); border-radius: 9px; background: rgba(5,8,12,.68); }
  .lb-mobile-tab { min-width: 0; min-height: 40px; padding: 8px 3px; border: 1px solid transparent; border-radius: 6px; color: #88847c; background: transparent; cursor: pointer; font-size: 12px; white-space: nowrap; }
  .lb-mobile-tab.active { color: #f1d998; border-color: rgba(232,196,121,.3); background: linear-gradient(135deg,rgba(226,183,95,.17),rgba(169,112,38,.08)); box-shadow: inset 0 1px rgba(255,240,190,.06); }
  .lb-layout { display: block; flex: 1; min-height: 0; overflow: hidden; padding-top: 11px; }
  .lb-layout > .lb-column { display: none; min-height: 0; height: 100%; }
  .lb-layout > .lb-column.lb-mobile-active { display: flex; }
  .lb-self-column { overflow-y: auto; overscroll-behavior: contain; }
  .lb-self { width: 100%; }
  .lb-self-id { padding-bottom: 11px; }
  .lb-self-banner { height: 54px; }
  .lb-self-id { margin-top: -31px; }
  .lb-avatar { width: 59px; height: 59px; font-size: 29px; }
  .lb-self-name { font-size: 17px; margin-top: 10px; }
  .lb-self-sign { margin-top: 8px; font-size: 13px; }
  .lb-self-stats { margin-top: 10px; }
  .lb-self-stat { padding: 9px 2px; }
  .lb-self-stat b { font-size: 17px; }
  .lb-self-deck { margin-top: 11px; margin-bottom: 11px; }
  .lb-card-mini { font-size: 16px; }
  .lb-roster-panel { padding: 14px 11px; min-height: 0; height: 100%; }
  .lb-player-list { display: grid; grid-template-columns: 1fr; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 3px; }
  .lb-empty { min-height: 210px; }
  .lb-chat-column { min-height: 0; }
  .lb-chat-panel { min-height: 0; height: 100%; }
  .lb-chat-log { min-height: 0; max-height: none; overscroll-behavior: contain; }
  .lb-chat-compose input { font-size: 16px; }
  .lb-chat-send { min-width: 48px; min-height: 42px; }
  #mpMenu { padding:10px; }
  .mp-flow-card { padding:22px 14px; }
  #mpMenu h2 { font-size:24px !important; }
  #mpMenu button { min-height:44px; }
  .lb-modal-card { padding: 24px 16px; }
  .lb-modal-title { font-size: 23px; }
  .lb-choice-grid { grid-template-columns: 1fr; gap: 10px; }
  .lb-choice { min-height: 96px; display: grid; grid-template-columns: 54px 1fr; text-align: left; align-items: center; padding: 14px 16px; }
  .lb-choice::after { top: 16%; bottom: 16%; left: 0; right: auto; width: 1px; height: auto; background: linear-gradient(180deg,transparent,rgba(240,208,135,.55),transparent); }
  .lb-choice-icon { grid-row: 1/3; font-size: 36px; margin: 0; }
  .lb-choice-name { font-size: 16px; }
  .lb-choice-desc { margin-top: 4px; }
  .lb-map-grid { grid-template-columns: 1fr 1fr; }
  .lb-map-choice { display: block; min-height: 125px; text-align: center; }
  .lb-map-choice .lb-choice-icon { margin-bottom: 8px; }
}
@media (max-width: 380px) {
  .lb-brand-title { font-size: 18px; letter-spacing: 1px; }
  .lb-mobile-tab { font-size: 11px; }
}

#lobbyPanel.lb-no-grid .lb-mobile-tabs { display: flex; }
#lobbyPanel.lb-no-grid .lb-mobile-tab { flex: 1; }
#lobbyPanel.lb-no-grid .lb-player-list { display: block; }
#lobbyPanel.lb-no-grid .lb-player { margin-bottom: 11px; }
#lobbyPanel.lb-no-grid .lb-layout { display: block; }
#lobbyPanel.lb-no-grid .lb-column { margin-bottom: 15px; }
#lobbyPanel.lb-no-grid .lb-choice { display: block; }
#lobbyPanel .lb-player-list,
#lobbyPanel .lb-chat-log,
#lobbyPanel .lb-self-column { -webkit-overflow-scrolling: touch; }
#lobbyPanel.lb-low-perf .lb-ember,
#lobbyPanel.lb-low-perf .lb-halo { display: none; }
#lobbyPanel.lb-low-perf .lb-world::before { display: none; }
#lobbyPanel.lb-low-perf *,
#lobbyPanel.lb-low-perf *::before,
#lobbyPanel.lb-low-perf *::after { animation: none !important; transition: none !important; }
@media (max-width: 340px) {
  .lb-shell { padding: 9px; }
  .lb-brand-mark { width: 32px; height: 36px; font-size: 19px; }
  .lb-brand-title { font-size: 16px; }
  #lobbyPanel .lb-top-actions .lb-btn { padding: 6px 10px; font-size: 10px; }
  .lb-mobile-tab { font-size: 10px; }
  .lb-section-head { gap: 6px; }
  .lb-section-title { font-size: 13px; letter-spacing: 1px; }
  .lb-count { font-size: 9px; }
  #mpKeyPad > div > div { width:44px !important; height:54px !important; margin:0 4px !important; font-size:29px !important; }
}
@media (prefers-reduced-motion: reduce) {
  #lobbyPanel *, #lobbyPanel *::before, #lobbyPanel *::after { animation: none !important; transition: none !important; }
  .lb-ember { display: none; }
}








#lobbyPanel .lb-self-column,
#lobbyPanel .lb-player-list,
#lobbyPanel .lb-chat-log,
#lobbyPanel .lb-rank-list,
#lobbyPanel #lobbyPresetPanel {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
#lobbyPanel,
#lobbyPanel .kscroll,
#lobbyPanel .lb-self-column,
#lobbyPanel .lb-player-list,
#lobbyPanel .lb-chat-log,
#lobbyPanel .lb-rank-list,
#lobbyPanel #lobbyPresetPanel {
  scrollbar-width: none;      
  -ms-overflow-style: none;   
}
#lobbyPanel .kscroll::-webkit-scrollbar,
#lobbyPanel .lb-self-column::-webkit-scrollbar,
#lobbyPanel .lb-player-list::-webkit-scrollbar,
#lobbyPanel .lb-chat-log::-webkit-scrollbar,
#lobbyPanel .lb-rank-list::-webkit-scrollbar,
#lobbyPanel #lobbyPresetPanel::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}









.lb-pick-grid2 { grid-template-columns: repeat(2, 1fr); }
.lb-map-grid { grid-template-columns: repeat(3, 1fr); }
.lb-choice-locked { opacity: .38; cursor: not-allowed; filter: grayscale(.65); }
.lb-choice-locked:hover { transform: none; border-color: rgba(232,196,121,.2); background: radial-gradient(ellipse at 50% 0,rgba(226,183,95,.1),transparent 62%),linear-gradient(160deg,rgba(226,183,95,.075),rgba(255,255,255,.012)); box-shadow: inset 0 1px rgba(255,240,190,.05); }
.lb-choice[disabled] { pointer-events: none; }


#mpMenu .lb-choice { min-height: 176px !important; padding: 24px 16px 20px !important; border: 1px solid rgba(232,196,121,.2) !important; border-radius: 14px !important; color: #d7c6a4 !important; background: radial-gradient(ellipse at 50% 0,rgba(226,183,95,.1),transparent 62%),linear-gradient(160deg,rgba(226,183,95,.075),rgba(255,255,255,.012)) !important; box-shadow: inset 0 1px rgba(255,240,190,.05) !important; text-shadow: none !important; }
#mpMenu .lb-choice:hover { transform: translateY(-4px); border-color: rgba(237,201,126,.6) !important; background: radial-gradient(ellipse at 50% 0,rgba(226,183,95,.2),transparent 62%),linear-gradient(160deg,rgba(226,183,95,.15),rgba(255,255,255,.025)) !important; box-shadow: 0 14px 34px rgba(0,0,0,.34),0 0 22px rgba(226,183,95,.12) !important; }
#mpMenu .lb-choice-icon { font-size: 46px !important; margin-bottom: 16px !important; }
#mpMenu .lb-choice-name { color: #f1ddaa !important; font-size: 18px !important; }
#mpMenu .lb-choice-desc { font-size: 12px !important; margin-top: 9px !important; }
#mpMenu .lb-map-choice { min-height: 196px !important; }
#mpMenu .lb-choice-locked { opacity: .38 !important; }
#mpMenu button.lb-modal-back { min-height: 0 !important; border: 0 !important; background: transparent !important; color: #88837a !important; }
@media (max-width: 720px) {
  

  .lb-pick-grid2 { grid-template-columns: 1fr; }
  .lb-map-grid { grid-template-columns: 1fr; }
  .lb-map-choice { display: grid; grid-template-columns: 54px 1fr; text-align: left; align-items: center; min-height: 96px; }
  .lb-map-choice .lb-choice-icon { margin-bottom: 0; }
  #mpMenu .lb-choice { min-height: 96px !important; display: grid; grid-template-columns: 54px 1fr; text-align: left; align-items: center; padding: 14px 16px !important; }
  #mpMenu .lb-map-choice { min-height: 96px !important; display: grid; grid-template-columns: 54px 1fr; text-align: left; }
  #mpMenu .lb-choice-locked { opacity: .38 !important; }
}
