/* ══════════════════════════════════════════════════════════
   MAX 카지노 — 루비/샴페인 마감 (max16 2026-10-01)
   style.css(체스 네이비) 뒤에 로드. 색은 이미 루비로 치환됨.
   여기선 '시안 이미지'(assets/max/*.webp)와 레이아웃만 시안(1512px)에 맞춘다.
   시안 좌표: 히어로 0~371 / 로고 x600~892,y34~300 / 네비 371~432(61px)
             라이브 x62~736 · 슬롯 x768~1442, y456~605 / 판 4개 y689, 폭325 x316
   ══════════════════════════════════════════════════════════ */

/* ── 페이지 배경: 루비 살롱 ── */
html{ background:#0d0607 !important; }   /* 고정배경이 안 닿는 영역 흰색 방지 */
body{
  background:
    linear-gradient(180deg,rgba(13,6,7,0.40) 0%,rgba(13,6,7,0.30) 45%,rgba(13,6,7,0.55) 100%),
    url('/user16/images/max/pagebg.webp') center top no-repeat,
    linear-gradient(180deg,#1a0a0d 0%,#0d0607 100%) !important;
  background-color:#0d0607 !important;
  background-attachment: fixed, fixed, scroll !important;
  background-size: auto, cover, auto !important;
}
@media(max-width:1200px){ body{ background-size: auto, cover, auto !important; } }
@media(max-width:900px){  body{ background-size: auto, cover, auto !important; } }
.realtime-section .info-box{ backdrop-filter:none !important; }

/* ── 히어로: 시안 1504:371(≈2170/535) ── */
#banner-slider{ aspect-ratio: 2170 / 535 !important; height:auto !important; max-height:560px !important; }
.banner-pc{ object-fit:cover !important; object-position:center center !important; }
.banner-fx-vignette{ opacity:0 !important; }           /* 시안엔 비네트 없음 */
.banner-content{ top:45% !important; }                 /* 로고 세로중심 45% */
.banner-title.chess-title{ margin:0 !important; }
.chess-logo-img{ width:min(19.4vw, 380px) !important; height:auto !important; }
/* 명판·소제목은 로고 이미지(logo.webp)에 '맥스 카지노' 가 이미 들어있어 숨김 */
.banner-info{ display:none !important; }

/* ── 헤더(네비) — 루비 띠 ── */
.header-section{
  background:url('/user16/images/max/nav.webp') center / 100% 100% no-repeat, #2a0f14 !important;
  border:none !important; box-shadow:0 2px 12px rgba(0,0,0,.5) !important;
}
.header-main .container{ height:61px !important; }
.nav-row .nav-item{ height:61px !important; }
.nav-row .nav-item, .nav-row .nav-item span{
  color:#f3e6d0 !important; -webkit-text-fill-color:#f3e6d0 !important; background:none !important;
}
.nav-row .nav-item i{ color:#e9c58f !important; -webkit-text-fill-color:#e9c58f !important; }
.nav-row .nav-item:hover, .nav-row .nav-item:hover span{
  color:#ffffff !important; -webkit-text-fill-color:#ffffff !important;
}

/* ── 로그인/회원가입 버튼 — 시안 이미지 ── */
.before-login .btn-grp{ gap:8px !important; align-items:center !important; }
.login-link, .join-link{
  background:transparent !important; border:none !important; box-shadow:none !important;
  padding:0 !important; height:40px !important; min-width:0 !important;
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
}
/* 버튼 이미지엔 글자가 없다 → .text 를 가운데 얹는다 */
.login-link .text, .join-link .text{
  position:static !important; width:auto !important; height:auto !important;
  clip:auto !important; overflow:visible !important;
  font-weight:800 !important; font-size:14px !important; letter-spacing:.01em !important;
  background:none !important;
}
.login-link .text{ color:#ffffff !important; -webkit-text-fill-color:#ffffff !important;
  text-shadow:0 1px 2px rgba(0,0,0,.45) !important; }
.join-link .text{ color:#5a1e14 !important; -webkit-text-fill-color:#5a1e14 !important; }
.login-link{ width:100px !important;
  background:url('/user16/images/max/btn-login.webp') center / 100% 100% no-repeat !important; }
.join-link{ width:106px !important;
  background:url('/user16/images/max/btn-signup.webp') center / 100% 100% no-repeat !important; }
.login-link:hover, .join-link:hover{ filter:brightness(1.08) !important; transform:translateY(-1px) !important; }

/* ── 토글 2종: 라이브 / 슬롯 배너 (이미지에 프레임·글자 내장) ── */
/* 토글 컨테이너 = 게임사 그리드(.live-grid)·정보판과 같은 폭(1280/padding24)
   → 버튼이 작아지고 좌우끝(140/1372)이 게임사 카드와 정확히 맞음 */
.toggle-section .container{
  display:flex !important; flex-direction:row !important; justify-content:center !important;
  align-items:stretch !important; gap:24px !important;
  max-width:1280px !important; margin:0 auto !important; height:auto !important; padding:0 24px !important;
}
.toggle-btn{ flex:1 1 0 !important; width:auto !important; height:auto !important; }
.toggle-casino .toggle-frame, .toggle-slot .toggle-frame{
  clip-path:none !important; background:none !important; border:none !important;
  box-shadow:none !important; height:auto !important; aspect-ratio:auto !important;
}
.toggle-frame::before, .toggle-frame::after{ display:none !important; }
.toggle-overlay, .toggle-btn .text-panel{ display:none !important; }
.toggle-img{
  position:static !important; inset:auto !important; width:100% !important; height:auto !important;
  object-fit:contain !important; display:block !important; min-height:0 !important;
  filter:drop-shadow(0 8px 20px rgba(0,0,0,.55)) !important;
}
.toggle-btn:hover{ transform:translateY(-3px) !important; filter:brightness(1.05) !important; }

/* ── 하단 정보판 4개 — 루비 프레임(이미지에 상단 띠 내장) ── */
.chess-boards{ gap:20px !important; }
.info-box{
  background:url('/user16/images/max/panel.webp') center / 100% 100% no-repeat !important;
  border:none !important; border-radius:14px !important; overflow:hidden !important;
  box-shadow:0 6px 20px rgba(0,0,0,.5) !important;
  aspect-ratio: 1.03 / 1 !important;
}
.info-box:hover{ border:none !important; box-shadow:0 8px 26px rgba(0,0,0,.6) !important; }
.info-header{
  background:transparent !important; border-bottom:none !important; box-shadow:none !important;
  padding:15px 18px !important;
}
.info-header-icon{ color:#e9c58f !important; filter:drop-shadow(0 0 5px rgba(200,38,61,.35)) !important; }
.info-header-title{
  background:linear-gradient(180deg,#fff1d6 0%,#eacf9a 60%,#d9b07a 100%) !important;
  -webkit-background-clip:text !important; background-clip:text !important;
  -webkit-text-fill-color:transparent !important;
}
.info-header::after{ color:rgba(243,230,208,.55) !important; }
.info-header:hover::after{ color:#f3d9a8 !important; }
.info-body{ min-height:0 !important; }

/* ── 좁은 화면 ── */
@media(max-width:900px){
  .toggle-pc{ display:block !important; }
  .toggle-mobile{ display:none !important; }
  .toggle-section .container{ flex-direction:column !important; gap:10px !important; max-width:560px !important; }
  .toggle-btn{ width:100% !important; flex:none !important; }
  #banner-slider{ aspect-ratio:auto !important; height:230px !important; max-height:none !important; }
  .chess-logo-img{ width:min(52vw, 260px) !important; }
  .banner-content{ top:46% !important; }
  .info-box{ aspect-ratio:auto !important; }
}
@media(max-width:520px){
  #banner-slider{ height:180px !important; }
  .chess-logo-img{ width:min(56vw, 220px) !important; }
}

/* ══════════════════════════════════════════════════════════
   라이브카지노 게임사 카드 뒷배경만 432 로 교체 (max16d 2026-10-01)
   #live-grid-row1 의 .live-thumb 배경(기존 card_bg_chess.png=버건디)을 432 루비무대로.
   딜러(girl)·게임사 로고는 그 위에 그대로. 슬롯 카드는 배경이 없어 영향 없음.
   ══════════════════════════════════════════════════════════ */
#live-grid-row1 .live-thumb{
  background-image:url('/user16/images/max/cardframe.webp') !important;
  background-size:cover !important; background-position:center !important; background-repeat:no-repeat !important;
}
