/* ab-minigame — 2026-11-19 에이에이 AA BET 화면 덧칠 */
/* 미니게임 묶음 전용. 레퍼런스 클래스(tmt-game, game-nav, tmt-btn-bet …)는 aabet-ref.css 가 그리고, 여기선 우리 구조에 맞춘 빈틈만 메운다 */

/* ───────── 게임 탭 ───────── */
.game-nav .game-nav-1depth.ab-mg-nav1 { overflow-x: auto; scrollbar-width: none; }
.game-nav .game-nav-1depth.ab-mg-nav1::-webkit-scrollbar { display: none; }
.ab-mg .game-nav .game-nav-2depth { gap: 8px; align-items: stretch; }
.ab-mg .game-nav .game-nav-2depth .tmt-game-selector--horizontal--item { margin-right: 0 !important; min-width: 0; flex: 1 1 0; }
.ab-mg .game-nav .tmt-game-selector--horizontal--item img { object-fit: contain; }
.ab-mg-nav2__time { text-align: center; } /* # 확인요망 - 2026-11-20 레퍼런스는 위 틈 없음 */

/* ───────── 영상 칸 ───────── */
/* .game-iframe 는 flex 라서 .broadcast 가 내용 폭으로 줄어들면 frameHandleResize 가 잘못 잰다 → 칸 폭 전체를 쓰게 */
/* # 확인요망 - 2026-11-20 여백은 레퍼런스(.tmt-game .game-iframe 위 10px·아래 0) 그대로 */
.ab-mg .game-iframe { min-width: 0; }
.ab-mg .game-iframe > .broadcast { width: 100%; min-width: 0; overflow: hidden; }

/* ───────── 배팅 칸 ───────── */
/* # 확인요망 - 2026-11-20 레퍼런스는 배당표(고정 396)+테두리 때문에 오른쪽 칸이 398 아래로 안 줄고 영상 칸이 나머지를 씀 → 같은 결과로 */
.ab-mg .tmt-game-item-wrap { min-width: 398px; }
.ab-mg .ab-mg-card { position: relative; }
.ab-mg .ab-mg-card .el-loading-mask { z-index: 5; }
.ab-mg .ab-mg-card .el-loading-spinner { left: 0; right: 0; width: 100%; margin-top: 0; transform: translateY(-50%); }
/* # 확인요망 - 2026-11-20 머리 상자 세로 맞춤은 레퍼런스(늘림) 그대로 — 가운데 맞춤 덧칠 지움 */
.ab-mg .header-box .game-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ab-mg-group__title { color: #9aa0ab; font-size: 13px; font-weight: 600; padding: 8px 8px 0; }
.ab-mg-grid { display: grid; gap: 8px; padding: 4px; }
.ab-mg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ab-mg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ab-mg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ab-mg .ab-mg-grid--3 .tmt-btn-bet,
.ab-mg .ab-mg-grid--4 .tmt-btn-bet { padding-right: 6px; }

/* # 확인요망 - 2026-11-20 레퍼런스 배당 버튼은 마우스를 올려도 테두리·바탕·손가락 모양이 그대로(실측) → 우리 주황 테두리·손가락 지움 */
.ab-mg .tmt-btn-bet { min-width: 0; user-select: none; }
.ab-mg .ab-btn-left { min-width: 0; gap: 6px; }
.ab-mg .ab-btn-label { font-size: 13px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-mg .ab-btn-rate { flex-shrink: 0; padding-left: 4px; }
.ab-mg .tmt-game-item .el-tag--mini { flex-shrink: 0; overflow: visible; }
.ab-mg .tmt-game-item .el-tag--mini.ab-tag-xs { font-size: 12px; letter-spacing: -1px; }
/* # 확인요망 - 2026-11-20 사다리 조합 작은 숫자: 레퍼런스 규칙(aabet-ref .el-badge__content 22px 원·13px, 휴대폰 17px·9px) 그대로 — 덧칠 지움 */

/* 바카라 버튼은 한 칸에 꽉 차게 */
.ab-mg .baccara-betting-layout { padding: 4px 0; }
.ab-mg .baccara-row .bet-item .tmt-btn-bet,
.ab-mg .baccara-row .bet-item-tie .tmt-btn-bet { width: 100%; }
.ab-mg .baccara-row .bet-item-tie { max-width: 49%; }

/* ───────── 나의 베팅내역 ───────── */
.ab-mg-bets .bet-title { padding: 9px 4px 6px 10px; }
.ab-mg-bets .el-table { background: transparent; }
/* # 확인요망 - 2026-11-20 머리 칸 여백은 레퍼런스(PC 0 · 휴대폰 5px 3px) 그대로 — 덧칠 지움 */
.ab-mg-bets .el-table td.el-table__cell > .cell { padding: 0 3px; line-height: 1.35; font-size: 12px; }
.ab-mg-bets .el-table .el-table__empty-block { min-height: 245px; }
.ab-mg-bets__round { font-weight: 700; }
.ab-mg-bets__game { color: #9aa0ab; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-mg-bets__pick { word-break: keep-all; }
.ab-mg-res { font-weight: 700; }
.ab-mg-res--W { color: #ffcc00; }
.ab-mg-res--L { color: #ff5a5a; }
.ab-mg-res--I { color: #9aa0ab; }
.ab-mg-res--N { color: #3be43b; }
.ab-mg-res__win { color: #ffcc00; font-size: 11px; }
.ab-mg-bets .el-pagination { display: flex; justify-content: center; align-items: center; }
.ab-mg-bets .el-pagination .el-pager li { cursor: pointer; }

/* ───────── 미니게임 목록 (/minigame) ───────── */
.ab-mg-list__cell { width: 246px; max-width: 100%; }
.ab-mg-list .tmt-game-mini-list--item { background: transparent; border: 0; overflow: hidden; }
.ab-mg-list .tmt-game-mini-list--item .ab-mg-list__thumb { display: block; width: 246px; height: 164px; object-fit: cover; object-position: center 35%; background: #111; }
.ab-mg-list .tmt-game-mini-list--item a { cursor: pointer; }
/* # 확인요망 - 2026-11-20 레퍼런스 .tmt-game-mini-list--item 은 hover 효과 없음 → 밝아짐 지움 */

/* ───────── 휴대폰 (<992) : 레퍼런스 .sm:layout 규칙을 우리 화면에 맞춤 ───────── */
@media (max-width: 991.98px) {
    .ab-mg .tmt-game--box { flex-wrap: wrap; }
    .ab-mg .tmt-game--box .game-iframe { width: 100%; }
    .ab-mg .tmt-game--box .tmt-game-item-wrap { margin: 15px 0 0; width: 100%; min-width: 0; }
    .ab-mg .tmt-game--box .tmt-game-item .el-card__header .header-box .game-title { font-size: 15px; line-height: 27px; padding: 7px 0 7px 5px; }
    .ab-mg .tmt-game--box .tmt-game-item .tmt-btn-bet { font-size: 15px; padding: 10px 9px; min-height: 53px; }
    /* # 확인요망 - 2026-11-20 레퍼런스 휴대폰 배당표: 칸 여백 4px 2px → 버튼 사이 4px·양끝 2px, 버튼 높이 53(줄 높이 30 + 위아래 10 + 테두리) */
    .ab-mg .ab-mg-grid { gap: 4px; padding: 4px 2px; }
    .ab-mg .tmt-game--box .tmt-game-item .tmt-btn-bet.double { padding: 10px 5px 10px 10px; }
    .ab-mg .tmt-game--box .tmt-game-item .el-tag--mini { font-size: 15px; height: 30px; line-height: 29px; width: 30px; }
    .ab-mg .tmt-game--box .tmt-game-item .el-tag--mini.small { font-size: 12px; }
    /* 레퍼런스 휴대폰 그림(/@kabet/m/…)은 못 받아서 PC 그림을 줄여 쓴다 */
    .ab-mg .tmt-game--box .tmt-game-item .el-tag--mini.red { background: url(/@kabet/icon/icon-red.png) center / cover no-repeat !important; }
    .ab-mg .tmt-game--box .tmt-game-item .el-tag--mini.blue { background: url(/@kabet/icon/icon-blue.png) center / cover no-repeat !important; }
    .ab-mg .tmt-game--box .tmt-game-item .el-tag--mini.green { background: url(/@kabet/icon/icon-green.png) center / cover no-repeat !important; }
    .ab-mg .tmt-game--box .tmt-game-item .el-tag--mini.ab-tag-xs { font-size: 10px; }
    .ab-mg .tmt-game-count-down-to-close-time--wrap { padding: 5px; }
    .ab-mg .game-nav .game-nav-2depth { flex-wrap: wrap; justify-content: flex-start; gap: 0 7.5px; }
    .ab-mg .game-nav .game-nav-2depth .tmt-game-selector--horizontal--item { flex: 0 0 auto; margin-bottom: .5rem !important; margin-right: 0 !important; width: calc(33.33333% - 5px); white-space: normal; } /* # 확인요망 - 2026-11-20 글자 크기는 레퍼런스(.sm:layout 11px) 그대로 */
    /* # 확인요망 - 2026-11-20 4칸 줄도 레퍼런스 .double 여백(10 5 10 10) 그대로 — 덧칠 지움 */
    .ab-mg .ab-btn-label { font-size: 12px; }
    .ab-mg-list__cell { width: 100%; }
    .ab-mg-list .tmt-game-mini-list--item .ab-mg-list__thumb { width: 100%; height: auto; aspect-ratio: 246 / 164; }
}

/* # 확인요망 - 2026-11-20 나의 베팅내역 머리 체크칸: 레퍼런스는 내역이 없어도 흰 칸(테두리 #777) — Element 는 빈 표면 회색(잠김)으로 바꿔서 모양만 맞춤 */
.tmt-bet-list-game .el-table th .el-checkbox__input.is-disabled .el-checkbox__inner { background-color: #fff; border-color: #777; }
