/* 主公府 lobby: two big main entries (武將培養 / 裝備圖鑑), the difficulty + start row, then the secondary entries */
.sc-lobby-panel { width: min(96vw, calc(1100px*var(--m))); padding: 8px 16px 14px; gap: max(8px, calc(12px*var(--u))); }
.lb-main { display: flex; gap: max(10px, calc(18px*var(--u))); width: 100%; }
.lb-card { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: max(8px, calc(14px*var(--u)));
  height: max(150px, calc(230px*var(--m))); padding: 0 calc(10px*var(--u)); border-width: 14px 20px; overflow: visible; }
.lb-card:hover, .lb-card:focus-visible { filter: brightness(1.12) drop-shadow(0 0 12px rgba(255,200,90,.75)); transform: translateY(-2px); }
.lb-card:active { transform: scale(.97); }
.lb-art { position: relative; flex: 0 0 48%; height: 100%; display: block; pointer-events: none; }
.lb-art::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: 4%; height: 26%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,210,110,.55), rgba(255,210,110,0) 70%); }
.lb-pic { position: absolute; bottom: 0; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); transition: transform .25s; }
.lb-pic0 { left: 18%; width: 64%; height: 124%; z-index: 3; bottom: -4%; }
.lb-pic1 { left: -6%; width: 52%; height: 102%; z-index: 1; transform: rotate(-6deg); }
.lb-pic2 { right: -6%; width: 52%; height: 102%; z-index: 2; transform: rotate(6deg); }
.lb-codex .lb-pic { height: 92%; bottom: 4%; }
.lb-codex .lb-pic0 { left: 25%; width: 50%; height: 104%; transform: rotate(-12deg); filter: drop-shadow(0 0 10px rgba(255,59,48,.75)) drop-shadow(0 4px 6px rgba(0,0,0,.6)); }
.lb-codex .lb-pic1 { transform: rotate(-28deg); }
.lb-codex .lb-pic2 { transform: rotate(22deg); }
.lb-card:hover .lb-pic0, .lb-card:focus-visible .lb-pic0 { transform: translateY(-4px) scale(1.04); }
.lb-codex:hover .lb-pic0, .lb-codex:focus-visible .lb-pic0 { transform: rotate(-12deg) translateY(-4px) scale(1.04); }
.lb-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; }
.lb-name { font-size: max(20px, calc(38px*var(--u))); font-weight: 900; color: var(--gold-hi); letter-spacing: 2px; white-space: normal; overflow-wrap: break-word; line-height: 1.1; max-width: 100%; }
:lang(en) .lb-name, .lb-name:lang(en) { letter-spacing: 0; font-size: max(18px, calc(32px*var(--u))); }
.lb-sub { font-size: max(13px, calc(18px*var(--u))); font-weight: 700; color: #fbe9c4; text-shadow: 0 1px 0 #2a0805, 0 0 4px rgba(0,0,0,.7); line-height: 1.25; }
.lb-card .sc-badge { top: -6px; right: -4px; min-width: 30px; height: 30px; border-radius: 15px; font-size: 16px; }
.lb-card .tut-point { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 5; }
.lb-go { display: flex; align-items: center; gap: max(10px, calc(18px*var(--u))); width: 100%; }
.lb-go .sc-diffbox { flex: 1 1 auto; min-width: 0; width: auto; }
.lb-go .sc-start { flex: 0 0 auto; width: max(200px, calc(330px*var(--u))); }
/* 無盡模式 entry: beside 開始守城, quieter than it; locked = grey with a padlock and the unlock hint */
.lb-go .sc-endless { flex: 0 0 auto; width: max(150px, calc(230px*var(--u))); min-height: max(54px, calc(74px*var(--u))); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 8px; text-align: center; filter: hue-rotate(235deg) saturate(1.1); }
.sc-endless .sc-enname { font-size: max(16px, calc(24px*var(--u))); font-weight: 900; color: #f3e2ff; white-space: nowrap; line-height: 1.1; }
.sc-endless .sc-ensub { font-size: max(11px, calc(14px*var(--u))); font-weight: 700; color: #fbe9c4; line-height: 1.15; text-shadow: 0 1px 0 #2a0805, 0 0 3px #000; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lb-go .sc-endless.locked { filter: grayscale(1) brightness(.75); }
.sc-endless.locked .sc-enname { color: #ddd; }
.lb-sub-row { gap: max(6px, calc(10px*var(--u))); }
.lb-sub-row .sc-menubtn { min-height: max(60px, calc(74px*var(--u))); font-size: max(13px, calc(17px*var(--u))); }

@media (max-height: 520px) {
  .sc-lobby-panel { width: min(97vw, 860px); padding: 4px 10px 8px; gap: 6px; }
  .lb-card { height: 124px; border-width: 10px 14px; gap: 6px; }
  .lb-name { font-size: 22px; letter-spacing: 1px; }
  .lb-sub { font-size: 13px; }
  .lb-go .sc-start { width: 180px; }
  .lb-go .sc-endless { width: 140px; min-height: 46px; padding: 2px 6px; }
  .sc-endless .sc-enname { font-size: 16px; }
  .sc-endless .sc-ensub { font-size: 11px; -webkit-line-clamp: 1; }
  .lb-sub-row .sc-menubtn { min-height: 50px; height: 50px; max-height: 50px; font-size: 11px; flex-direction: column; gap: 0; border-width: 5px 6px; padding: 0 1px; }
  .lb-sub-row .sc-menubtn .sc-blabel { line-height: 1.05; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .lb-sub-row .sc-micon.pic { width: 24px; height: 24px; flex: none; }
}
@media (max-height: 420px) {
  .lb-card { height: 104px; }
  .lb-name { font-size: 20px; }
  .lb-sub { font-size: 12px; }
  .lb-art { flex-basis: 42%; }
  .lb-go .sc-start { width: 150px; }
  .lb-go .sc-endless { width: 124px; min-height: 44px; }
  .sc-endless .sc-enname { font-size: 15px; }
  .lb-sub-row .sc-micon:not(.pic) { display: none; }
  .lb-sub-row .sc-micon.pic { width: 22px; height: 22px; }
  .lb-sub-row .sc-menubtn { min-height: 48px; height: 48px; max-height: 48px; }
}
