/* ANGELBET 라이브 카지노·슬롯 로비(2026-11-20) - 디자인 angel.css·pages.css 위에 얹는 것만. 게임 카드·게임사 칸이 단추(button)가 되어 생긴 차이,
   불러오는 동안의 빈 자리, 더 보기, 슬롯 게임사 화면 표시, 화면 위 게임 창. */

/* 머리 사실·종류 단추: 받기 전 높이를 잡아 둔다(받은 뒤 아래 칸이 밀리지 않게) */
.phead-facts[data-ab-facts]:empty { min-height: 18px; }
.lobby-tools .picks[data-ab-segs]:empty { min-height: 40px; }

/* 게임 카드·라이브 게임사 칸이 단추: 글자 정렬·폭을 링크 카드와 같게 */
.lobby button.game { width: 100%; text-align: left; }
.lobby button.vendor { width: 100%; }
.lobby .game-thumb { background: linear-gradient(160deg, var(--sky-1) 0%, var(--sky-2) 100%); }
.lobby .game:focus-visible .game-thumb span { opacity: 1; transform: translate(-50%, 0); }

/* 로고가 없는 게임사(새로 붙은 곳): 칸 가운데 이름 */
.lobby .vendor .ab-vname { display: grid; place-items: center; height: 38px; max-width: 100%; overflow: hidden; font-family: var(--display); font-size: 15px; font-weight: 700; line-height: 1.15; color: #fff; text-align: center; }
.lobby .vendor .ab-vname + small { display: none; }

/* 게임사 칸 그림(2026-11-27 작업 요청 #297): 칸을 세로 3:4 카드로 - 천사 그림(.vendor-art) 위, 아래 남색 판(.vendor-meta)에 로고·이름·게임 수.
   그림이 없는 게임사(.has-art 없음)는 같은 크기의 남색 칸 가운데에 로고·이름. 한 줄 칸 수: 넓은 화면 8, 1180 이하 6, 1023 이하 5, 휴대폰 3 */
.lobby .vendors { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.lobby .vendor, .lobby .vendors.with-n .vendor { position: relative; height: auto; min-height: 0; aspect-ratio: 3 / 4; overflow: hidden; }
.lobby .vendor.has-art { padding: 0; background: var(--sky-2); }
.lobby .vendor img.vendor-art { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; object-position: 50% 0; transition: transform 0.4s var(--ease); }
.lobby .vendor.has-art:hover img.vendor-art { transform: scale(1.05); }
.lobby .vendor .vendor-meta { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 30px 8px 9px; background: linear-gradient(to bottom, rgba(11, 42, 111, 0) 0, rgba(11, 42, 111, 0.9) 28px, var(--navy) 60%, var(--navy-900) 100%); }
.lobby .vendor .vendor-meta img { height: 28px; max-width: 88%; filter: drop-shadow(0 1px 2px rgba(8, 29, 77, 0.55)); }
.lobby .vendor .vendor-meta img.mono { filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(8, 29, 77, 0.55)); }
.lobby .vendor .vendor-meta small { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.lobby .vendor .vendor-meta .vendor-n { margin-top: -1px; font-size: 11.5px; }
.lobby .vendor .vendor-meta .ab-vname { height: 28px; font-size: 13.5px; white-space: nowrap; }
.lobby .vendors.with-n .ab-skel-li .vendor { min-height: 0; }
@media (max-width: 1180px) { .lobby .vendors { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .lobby .vendors { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .lobby .vendors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lobby .vendor, .lobby .vendors.with-n .vendor { height: auto; min-height: 0; }
  .lobby .vendor .vendor-meta { padding: 24px 5px 7px; gap: 2px; background: linear-gradient(to bottom, rgba(11, 42, 111, 0) 0, rgba(11, 42, 111, 0.9) 22px, var(--navy) 60%, var(--navy-900) 100%); }
  .lobby .vendor .vendor-meta img { height: 24px; max-width: 92%; }
  .lobby .vendor .vendor-meta .ab-vname { height: auto; min-height: 24px; font-size: 12px; white-space: normal; }
  .lobby .vendor .vendor-meta small { font-size: 11.5px; line-height: 1.2; }
  .lobby .vendor .vendor-meta small:not(.vendor-n) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; text-overflow: clip; overflow-wrap: anywhere; } /* 긴 게임사 이름은 두 줄까지(좁은 칸에서 잘리지 않게) */
  .lobby .vendor .vendor-meta .vendor-n { font-size: 11px; }
  .lobby .vendor .vendor-meta .ab-vname + small:not(.vendor-n) { display: none; } /* 로고가 없어 이름을 크게 쓴 칸은 아래 이름 줄을 감춘다(위 두 줄 규칙이 되살리지 않게) */
}

/* 슬롯 게임사 화면: 고른 게임사 칸 */
.lobby .vendor.is-on { box-shadow: 0 0 0 3px var(--gold), 0 14px 28px rgba(11, 42, 111, 0.3); }
.sub-h .ab-sub-link { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-family: var(--body); font-size: 14px; font-weight: 800; color: var(--blue); white-space: nowrap; }
.sub-h .ab-sub-link:hover { color: var(--blue-700); }
.lobby .sub-h[data-ab-ghead] > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* 불러오는 동안의 빈 자리 */
.ab-skel { display: block; pointer-events: none; animation: ab-skel 1.4s ease-in-out infinite; }
.vendor.ab-skel { background: linear-gradient(140deg, #dbe8fa 0%, #c6dbf7 100%); box-shadow: none; }
.game-thumb.ab-skel { border-color: #fff; }
.lobby .vendors.with-n .ab-skel-li .vendor { min-height: 106px; }
@keyframes ab-skel { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* 더 보기 */
.ab-more { display: flex; justify-content: center; padding: 18px 0 2px; }
.ab-more[hidden] { display: none; }
.ab-more .btn { min-width: 200px; }

/* ── 화면 위 게임 창 ── */
html.ab-gl-open { overflow: hidden; }
.ab-gl { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ab-gl[hidden] { display: none; }
.ab-gl-back { position: absolute; inset: 0; background: rgba(8, 29, 77, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ab-gl-box { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); width: min(1320px, 100%); min-width: 0; height: min(860px, 100%); overflow: hidden; border-radius: 22px; background: var(--navy-900); box-shadow: var(--shadow-2); }
.ab-gl-bar { display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 6px 0 18px; background: #fff; border-bottom: 1px solid var(--line); }
.ab-gl-bar b { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--navy); }
.ab-gl-st { flex: none; margin-right: 4px; font-size: 13px; font-weight: 800; color: var(--ink-3); white-space: nowrap; }
.ab-gl-st[data-st="ok"] { color: #1f9d5a; }
.ab-gl-st[data-st="err"] { color: #d6334f; }
.ab-gl-st[data-st="need"] { color: var(--gold-600); }
.ab-gl-bar button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--navy); transition: background 0.2s; }
.ab-gl-bar button:hover { background: var(--sky-1); }
.ab-gl-bar button[hidden] { display: none; }
.ab-gl-stage { position: relative; min-height: 0; background: #000; }
.ab-gl-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ab-gl-msg { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center; color: #fff; background: radial-gradient(120% 90% at 50% 0%, #17449f 0%, var(--navy) 55%, var(--navy-900) 100%); }
.ab-gl-msg[hidden] { display: none; }
.ab-gl-msg p { max-width: 440px; font-size: 15.5px; font-weight: 700; line-height: 1.65; }
.ab-gl-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ab-gl-act:empty { display: none; }
.ab-gl-act .btn { min-width: 132px; }
.ab-gl-spin { width: 40px; height: 40px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.22); border-top-color: var(--gold); animation: ab-spin 0.9s linear infinite; }
.ab-gl-msg:not([data-st="load"]) .ab-gl-spin { display: none; }
@keyframes ab-spin { to { transform: rotate(360deg); } }
.ab-gl-box:fullscreen { width: 100%; height: 100%; border-radius: 0; }

/* 그림이 없는 게임(공급사가 그림을 주지 않거나 깨진 것): 솔루션이 주는 게임 색 바탕 위에 게임 이름 */
.lobby .game-thumb.ab-noimg { display: grid; place-items: center; padding: 12px; background: var(--ab-grad, linear-gradient(160deg, #17449f 0%, var(--navy-900) 100%)); }
.lobby .game-thumb.ab-noimg em { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--display); font-size: 16px; font-style: normal; font-weight: 700; line-height: 1.25; color: #fff; text-align: center; word-break: keep-all; overflow-wrap: anywhere; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }

@media (max-width: 767px) {
  .lobby .vendor .ab-vname { height: 32px; font-size: 13px; }
  .lobby .game-thumb.ab-noimg { padding: 8px; }
  .lobby .game-thumb.ab-noimg em { font-size: 13px; }
  .ab-more .btn { width: 100%; }
  .ab-gl { padding: 0; }
  .ab-gl-box { width: 100%; height: 100%; border-radius: 0; }
  .ab-gl-bar { height: 52px; padding-left: 14px; }
  .ab-gl-bar b { font-size: 15px; }
}
