/* Common layout: header (.idx-topbar), left aside (.idx-aside), footer (.idx-ft),
   right member panel (.idx-user-board), mobile drawer / bottom bar / search chrome.
   Load after globals.css (design tokens). Scoped under .idx-page unless noted. */

/* 태블릿·모바일(≤1279px, 스포츠 레이아웃과 동일): 우측 유저보드는 헤더 아래 슬라이드 + 딤 백드롭 */
.idx-cart-board-backdrop {
  display: none;
}

@media (max-width: 1279px) {
  /* 베팅슬립 뒤 전체 화면 딤 — 본문·슬립 전부 덮고, 헤더·슬립 패널만 z-index로 위에 */
  .idx-cart-board-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    min-height: -webkit-fill-available;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    /* 본문·경기 카드·모바일 상세보다 위 — 터치는 딤이 받음 */
    z-index: 99990;
    background: rgba(0, 0, 0, 0.66);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    touch-action: manipulation;
    pointer-events: none;
  }

  /* 1) JS가 backdrop에 --open 클래스를 부여한 경우
     2) .idx-page에 idx-cart-board-open 클래스만 있는 경우(클래스 동기화 누락 대비)
     두 조건 어느 쪽이든 딤이 표시되도록 보강 */
  .idx-cart-board-backdrop.idx-cart-board-backdrop--open,
  body:has(.idx-page.idx-cart-board-open) .idx-cart-board-backdrop {
    display: block;
    pointer-events: auto !important;
    z-index: 99990 !important;
    touch-action: none;
  }

  .idx-page .idx-user-board {
    position: fixed;
    top: calc(var(--idx-topbar-h) + env(safe-area-inset-top, 0px));
    right: 0;
    left: auto;
    transform: translateX(100%);
    width: min(300px, 100vw);
    height: calc(100dvh - var(--idx-topbar-h) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    z-index: 230;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    box-shadow: -10px 0 28px rgba(0, 0, 0, 0.42);
    transition:
      transform 0.28s cubic-bezier(0.32, 0.72, 0, 1),
      opacity 0.18s ease,
      visibility 0.18s ease;
  }

  .idx-page.idx-cart-board-open .idx-user-board {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto !important;
    /* 딤(#idx-cart-board-backdrop)보다 위 — 슬립만 터치 */
    z-index: 100000 !important;
  }

  /* 상세 패널 백드롭(body 직속)이 카트 딤보다 히트를 가져가지 않게 */
  body:has(.idx-page.idx-cart-board-open) #idx-sp-detail-backdrop {
    pointer-events: none !important;
  }

  .idx-page.idx-cart-board-open > .idx-topbar {
    pointer-events: auto;
    position: relative;
    z-index: 100010 !important;
  }
}

/* 상단 카트 등: 선택 건수 배지 (16×16, 배경 #E91E8C) */
.idx-badge-count {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 50%;
  background-color: #e91e8c;
  color: #fff;
  font: 600 9px/1 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.04em;
  pointer-events: none;
}

.idx-badge-count.idx-badge-count--show {
  display: inline-flex;
}

.idx-badge-count.idx-badge-count--dense {
  font-size: 7px;
  letter-spacing: -0.08em;
}

.idx-page {
  --idx-topbar-h: 65px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--bg-page);
  min-height: 100vh;
  min-width: 320px;
}

.idx-page .idx-layout {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex: 1;
  width: 100%;
  min-width: 0;
}

.idx-page .idx-main-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: clamp(16px, 3vw, 30px) 0;
}

.idx-page .idx-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 0 clamp(16px, 4vw, 57px);
}

.idx-page .idx-main:has(> .idx-home) {
  align-items: center;
}

/* Topbar */
.idx-page .idx-topbar {
  position: relative;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: var(--idx-topbar-h);
  padding: 8px clamp(16px, 3vw, 24px);
  background: var(--bg-bar);
  border-bottom: 1px solid var(--border);
}

.idx-page .idx-topbar__start {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  flex: 1;
  min-width: 0;
}

.idx-page .idx-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.idx-page .idx-brand__logo {
  display: block;
  flex-shrink: 0;
  height: 26px;
  width: auto;
  max-width: min(180px, 45vw);
}

.idx-page .idx-marquee {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 500px;
  width: min(300px, 100%);
  padding: 12px 16px;
  background: var(--bg-panel);
  border-radius: var(--radius-sm);
}

.idx-page .idx-marquee__icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.idx-page .idx-marquee__text {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  font: 600 12px/1.45 var(--font-sans);
  letter-spacing: -0.06px;
  color: var(--text);
}

.idx-page .idx-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.idx-page .idx-topbar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: none;
  font: 600 14px/20px var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
}

.idx-page .idx-topbar__btn--ghost {
  min-width: 82px;
  background: var(--bg-panel);
  color: var(--text-body);
}

.idx-page .idx-topbar__btn--accent {
  min-width: 96px;
  background: var(--accent);
  color: var(--text);
}

.idx-page .idx-topbar__menu {
  display: none;
}

.idx-page .idx-topbar__actions--compact {
  display: none;
}

.idx-page .idx-topbar__iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.idx-page .idx-topbar__iconbtn--login {
  padding: 4px 5px;
  background: var(--bg-panel);
}

.idx-page .idx-topbar__iconbtn--join {
  padding: 0;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.idx-page .idx-topbar__iconbtn-img {
  display: block;
  flex-shrink: 0;
}

.idx-page .idx-topbar__iconbtn-img--join {
  width: 36px;
  height: 36px;
}

/* 로그인 후 헤더 — login-user 시안 */
.idx-page .idx-topbar__actions--user {
  display: none;
}

.idx-page.idx-page--logged-in .idx-topbar__actions--guest {
  display: none !important;
}

/* login-user 등 --guest 없는 예전 마크업: 로그인 후 게스트 영역 숨김 */
.idx-page.idx-page--logged-in .idx-topbar__actions.idx-topbar__actions--full:not(.idx-topbar__actions--user) {
  display: none !important;
}

.idx-page.idx-page--logged-in .idx-topbar__actions.idx-topbar__actions--compact:not(.idx-topbar__actions--user) {
  display: none !important;
}

.idx-page.idx-page--logged-in .idx-topbar__actions--user.idx-topbar__actions--full {
  display: flex;
}

.idx-page.idx-page--logged-in .idx-topbar__actions--user.idx-topbar__actions--compact {
  display: none;
}

.idx-page .idx-userbar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.idx-page .idx-userbar__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.idx-page .idx-userbar__avatar {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.idx-page .idx-userbar__name {
  font-family: "Noto Sans KR", var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.08px;
  line-height: 1.45;
  color: var(--text);
  white-space: nowrap;
}

.idx-page .idx-userbar__level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  background-color: var(--purple);
  border-radius: 4px;
}

.idx-page .idx-userbar__lv-label {
  font-family: "Noto Sans KR", var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  color: #ffffff;
  white-space: nowrap;
}

.idx-page .idx-userbar__lv-num {
  font-family: "Noto Sans KR", var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  color: #eeff00;
  white-space: nowrap;
}

.idx-page .idx-userbar__logout {
  position: relative;
  width: 82px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background-color: #303338;
  font: 600 14px/20px var(--font-sans);
  color: #d1d5dc;
  cursor: pointer;
  flex-shrink: 0;
}

.idx-page .idx-userbar__logout-img {
  display: none;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.idx-page .idx-userbar__logout:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.idx-page .idx-topbar__iconbtn--cart {
  position: relative;
  display: none;
  padding: 0;
  overflow: visible;
  background: var(--bg-panel);
}

.idx-page .idx-topbar__iconbtn--cart .idx-topbar__cart-ico-wrap {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
}

.idx-page .idx-topbar__iconbtn--cart .idx-topbar__cart-ico {
  position: absolute;
  inset: 0;
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: opacity 0.15s ease;
}

.idx-page .idx-topbar__iconbtn--cart .idx-topbar__cart-ico--on {
  opacity: 0;
}

.idx-page .idx-topbar__iconbtn--cart.idx-topbar__iconbtn--cart-active .idx-topbar__cart-ico--off {
  opacity: 0;
}

.idx-page .idx-topbar__iconbtn--cart.idx-topbar__iconbtn--cart-active .idx-topbar__cart-ico--on {
  opacity: 1;
}

.idx-page .idx-topbar__iconbtn--cart .idx-badge-count {
  top: -2px;
  right: -2px;
  min-width: 16px;
  width: auto;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-pill, 9999px);
}

.idx-page .idx-topbar__iconbtn--cart img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* 스포츠(해외/국내/스페셜/실시간) · 미니게임: JS가 body.idx-topbar-sports-cart-page 를 줄 때 + 본문 마커 */
body.idx-topbar-sports-cart-page .idx-page .idx-topbar__iconbtn--cart,
.idx-page:has(.board.sports_inter) .idx-topbar__iconbtn--cart,
.idx-page:has(.board.sports_dome) .idx-topbar__iconbtn--cart,
.idx-page:has(.board.sports_spec) .idx-topbar__iconbtn--cart,
.idx-page:has(.board.sports_real) .idx-topbar__iconbtn--cart,
.idx-page:has(.idx-mg-page) .idx-topbar__iconbtn--cart {
  display: inline-flex;
}

.idx-page .idx-topbar__iconbtn--user-logout {
  padding: 0;
  overflow: hidden;
  background: var(--bg-panel);
}

.idx-page .idx-topbar__iconbtn--user-logout picture,
.idx-page .idx-topbar__iconbtn--user-logout img {
  display: block;
  width: 36px;
  height: 36px;
}

.idx-page .idx-topbar__iconbtn--user-logout img {
  object-fit: contain;
}

.idx-page .idx-bottombar {
  display: none;
}

.idx-page .idx-find-popup {
  display: none;
}

.idx-find-backdrop {
  display: none;
}

.idx-page .idx-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 95;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(20, 21, 24, 0.52);
  cursor: pointer;
}

/* Aside shell */
.idx-page .idx-aside {
  display: flex;
  flex-direction: column;
  width: min(256px, 100%);
  flex-shrink: 0;
  padding: 10px 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  box-sizing: border-box;
}

.idx-page :is(.idx-aside__in, .idx-aside__sec) {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.idx-page .idx-aside__in {
  gap: 24px;
  padding: 0 16px 28px;
  box-sizing: border-box;
}

.idx-page .idx-aside__sec {
  gap: 8px;
}

.idx-page .idx-aside__ttl {
  margin: 0;
  min-height: 16px;
  font: 600 12px/16px var(--font-sans);
  color: var(--text-muted);
}

.idx-page .idx-aside__ban {
  display: block;
  width: 100%;
  height: auto;
}

.idx-page #idx-aside-banner-mount,
.idx-page .idx-aside-banner-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.idx-page .idx-aside-banner-list .banner_right1 {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
}

.idx-page .idx-aside-banner-list .banner_right1 .idx-aside__ban {
  border-radius: var(--radius-sm, 10px);
}

.idx-page .idx-wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 4px;
  height: 35px;
  padding: 0 20px;
  background: var(--bg-panel);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.idx-page .idx-wallet__item {
  flex-shrink: 0;
}

.idx-page :is(.idx-wallet__item, .idx-panel__line) {
  display: flex;
  align-items: center;
  gap: 6px;
}

.idx-page .idx-wallet__label {
  font: 500 12px/1.45 var(--font-sans);
  letter-spacing: -0.06px;
  color: var(--text-body);
  white-space: nowrap;
}

.idx-page .idx-menu__sub {
  font: 500 11px/18px var(--font-sans);
  color: var(--text-body);
}

.idx-page .idx-wallet__icon {
  flex-shrink: 0;
  width: 19px;
  height: 15px;
}

.idx-page .idx-wallet__icon--narrow {
  width: 12px;
}

.idx-page :is(.idx-wallet__item, .idx-nav__row, .idx-menu__row, .idx-aside__ban, .idx-panel__line) {
  cursor: pointer;
}

/* General nav + aside game menu list */
.idx-page :is(.idx-nav, .idx-menu) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.idx-page .idx-nav__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 30px;
  width: 100%;
  padding-left: 8px;
  border-radius: var(--radius-sm);
}

.idx-page :is(.idx-nav__ico, .idx-menu__ico) {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.idx-page .idx-nav__ico {
  width: 20px;
  height: 20px;
}

.idx-page .idx-menu__ico {
  width: 25px;
  height: 25px;
}

.idx-page :is(.idx-nav__ico img, .idx-nav__img, .idx-menu__ico img) {
  display: block;
  max-width: 100%;
  height: auto;
}

.idx-page .idx-nav__stroke {
  position: absolute;
  width: 83.33%;
  height: 91.66%;
  top: 8.34%;
  left: 16.67%;
}

.idx-page .idx-nav__glyph--event {
  position: absolute;
  width: 91.67%;
  height: 91.67%;
  top: 8.33%;
  left: 8.33%;
}

.idx-page .idx-nav__glyph--support {
  position: absolute;
  width: 91.67%;
  height: 95.84%;
  top: 4.16%;
  left: 8.33%;
}

.idx-page .idx-nav__row > .idx-nav__img--inline {
  flex-shrink: 0;
  width: 20px;
  height: 18px;
  object-fit: contain;
}

.idx-page .idx-nav__img--tile {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.idx-page .idx-nav__text {
  flex: 1;
  min-width: 0;
  font: 500 14px/20px var(--font-sans);
  color: var(--text-body);
  white-space: nowrap;
}

.idx-page .idx-nav__count {
  font: 600 14px/1.35 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #eeff00;
}

.idx-page .idx-nav__row[data-payback-claim] .idx-nav__ico img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.idx-page .idx-menu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 223px;
  min-height: 36px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.idx-page .idx-menu__row--active {
  background-color: #303338;
}

.idx-page .idx-menu__row--active .idx-menu__ttl {
  color: #fff;
}

.idx-page .idx-menu__row--active .idx-menu__sub {
  color: rgba(255, 255, 255, 0.88);
}

.idx-page .idx-menu__row:focus-visible {
  outline: 2px solid #fa52ff;
  outline-offset: 2px;
}

.idx-page .idx-menu__main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.idx-page .idx-menu__ico--ball img {
  position: absolute;
  width: 96%;
  height: 90.94%;
  top: 9.06%;
  left: 4%;
}

.idx-page .idx-menu__ico--trophy img {
  width: 16px;
  height: 23px;
}

.idx-page .idx-menu__slot {
  flex-shrink: 0;
  width: 25px;
  display: block;
}

.idx-page .idx-menu__ttl {
  margin: 0;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  min-height: 18px;
  font: 500 14px/18px var(--font-sans);
  color: var(--text-body);
  white-space: nowrap;
}

.idx-page .idx-menu__caret {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.idx-page .idx-menu__caret img {
  position: absolute;
  width: 66.67%;
  height: 79.16%;
  top: 20.84%;
  left: 33.33%;
}

/* Footer */
.idx-page .idx-ft {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(16px, 4vw, 50px);
  background: var(--bg-bar);
  border-top: 1px solid var(--border);
}

.idx-page .idx-ft__brand {
  display: flex;
  align-items: flex-end;
}

.idx-page .idx-ft__brand > span {
  font: 700 20px/1 var(--font-sans);
  letter-spacing: -0.8px;
  white-space: nowrap;
}

.idx-page .idx-ft__nex {
  color: var(--purple);
  line-height: 20px;
}

.idx-page .idx-ft__rest {
  color: var(--text);
  line-height: 16.3px;
}

.idx-page .idx-ft__legal {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: min(794px, 100%);
  flex: 1;
  min-width: 0;
}

.idx-page .idx-ft__txt {
  margin: 0;
  align-self: stretch;
  font: 400 12px/16px var(--font-sans);
  color: var(--text-muted);
  text-align: right;
}

.idx-page .idx-ft__hi {
  font-weight: 500;
  color: var(--purple);
}

@media (max-width: 1024px) {
  .idx-page .idx-marquee {
    display: none !important;
  }

  .idx-page.idx-page--logged-in .idx-userbar__logout {
    width: 44px;
    min-width: 44px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .idx-page.idx-page--logged-in .idx-userbar__logout-img {
    display: block;
  }

  .idx-page.idx-page--logged-in .idx-userbar__logout-txt {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* 로그인: 태블릿·모바일 — 우측 상단 모바일과 동일(카트 + 로그아웃 아이콘) */
  .idx-page.idx-page--logged-in .idx-topbar__actions--user.idx-topbar__actions--full {
    display: none !important;
  }

  .idx-page.idx-page--logged-in .idx-topbar__actions--user.idx-topbar__actions--compact {
    display: flex !important;
  }

  .idx-page .idx-menu__row {
    max-width: none;
  }

  /* 스크롤 시 상단 메뉴 고정 — ≤1024 햄버거 구간: 3열 그리드로 .idx-brand 로고 가운데 */
  .idx-page .idx-topbar {
    position: sticky;
    top: 0;
    align-self: stretch;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    display: grid;
    /* 좌·우 동일 1fr → 가운데 auto 열이 화면 수평 중앙에 오도록 */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    padding: 0 clamp(16px, 4vw, 24px);
    min-height: var(--idx-topbar-h);
  }

  /* 좌측 슬라이드 패널 (태블릿·모바일) — 데스크톱에서는 사이드바 고정 노출 */
  .idx-page.idx-drawer-open .idx-drawer-backdrop {
    display: block;
    inset: auto;
    top: calc(var(--idx-topbar-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100dvh - var(--idx-topbar-h) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }

  .idx-page .idx-topbar__menu {
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .idx-page .idx-topbar__menu img {
    display: block;
  }

  .idx-page .idx-topbar__start {
    grid-column: 2;
    justify-self: center;
    flex: unset;
    justify-content: center;
    min-width: 0;
  }

  .idx-page .idx-brand {
    justify-content: center;
  }

  .idx-page .idx-topbar__actions--guest.idx-topbar__actions--full,
  .idx-page .idx-topbar__actions--guest.idx-topbar__actions--compact,
  .idx-page .idx-topbar__actions--user.idx-topbar__actions--full,
  .idx-page .idx-topbar__actions--user.idx-topbar__actions--compact {
    grid-column: 3;
    justify-self: end;
  }

  .idx-page .idx-aside {
    position: fixed;
    top: calc(var(--idx-topbar-h) + env(safe-area-inset-top, 0px));
    left: 0;
    bottom: auto;
    width: 256px;
    max-width: min(256px, 100vw);
    height: calc(100dvh - var(--idx-topbar-h) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    border-bottom: none;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 100;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 10px 0 28px rgba(0, 0, 0, 0.38);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
  }

  .idx-page.idx-drawer-open .idx-aside {
    transform: translateX(0);
  }

  /* 하단 메뉴 + 검색 (태블릿·모바일) */
  .idx-page {
    --idx-find-float-r: clamp(26px, 8.5vw, 36px);
    --idx-find-popup-gap: 10px;
    --idx-find-popup-h: 72px;
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px) + var(--idx-find-float-r));
  }

  .idx-page.idx-find-open {
    padding-bottom: calc(
      70px + env(safe-area-inset-bottom, 0px) + var(--idx-find-float-r) + var(--idx-find-popup-gap) +
        var(--idx-find-popup-h)
    );
  }

  /* body 직속: 뷰포트 전체 덮음 (상단바·하단바는 더 높은 z-index로 위에 그려짐) */
  .idx-find-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    z-index: 38;
    margin: 0;
    padding: 0;
    border: none;
    background-color: #000000b2;
    backdrop-filter: blur(5px) brightness(100%);
    -webkit-backdrop-filter: blur(5px) brightness(100%);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.28s ease,
      visibility 0s linear 0.28s;
  }

  body.idx-find-backdrop-on .idx-find-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      opacity 0.28s ease,
      visibility 0s linear 0s;
  }

  /* 찾기 팝업: 기본 숨김(디졸브), 열릴 때만 보임 */
  .idx-page .idx-find-popup {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    width: 422px;
    max-width: calc(100% - 32px);
    margin: 0;
    padding: 15px 20px;
    position: fixed;
    left: 50%;
    bottom: calc(
      env(safe-area-inset-bottom, 0px) + 70px + var(--idx-find-float-r) + var(--idx-find-popup-gap)
    );
    transform: translate(-50%, 8px);
    z-index: 39;
    background-color: #212328;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.28s ease,
      visibility 0s linear 0.28s,
      transform 0.28s ease;
  }

  .idx-page.idx-find-open .idx-find-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition:
      opacity 0.28s ease,
      visibility 0s linear 0s,
      transform 0.28s ease;
  }

  @media (prefers-reduced-motion: reduce) {
    .idx-find-backdrop,
    .idx-page .idx-find-popup {
      transition-duration: 0.01ms;
    }
  }

  .idx-page .idx-find-popup__search {
    display: flex;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
    background-color: #2f2f30;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #3f3f40;
  }

  .idx-page .idx-find-popup__query {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    height: 40px;
    margin-top: -10px;
    margin-bottom: -10px;
    padding: 0 20px;
    box-sizing: border-box;
    border: none;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    cursor: text;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    color: var(--text-body);
  }

  .idx-page .idx-find-popup__query::placeholder {
    color: #9e9e9e;
    opacity: 1;
  }

  .idx-page .idx-find-popup__query::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
  }

  .idx-page .idx-find-popup__action {
    width: 39px;
    justify-content: center;
    display: flex;
    height: 40px;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    margin-top: -10px;
    margin-bottom: -10px;
    border-radius: 10px;
    overflow: hidden;
  }

  .idx-page .idx-find-popup__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .idx-page .idx-find-popup__submit img {
    display: block;
  }

  .idx-page .idx-find-popup__query:focus,
  .idx-page .idx-find-popup__query:focus-visible {
    outline: none;
  }

  .idx-page .idx-find-popup__submit:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
  }

  .idx-page .idx-bottombar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 0;
    background: transparent;
    pointer-events: none;
    line-height: 0;
  }

  .idx-page .idx-bottombar__shell {
    pointer-events: auto;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: transparent;
  }

  .idx-page .idx-bottombar__plate {
    position: relative;
    width: 100%;
    height: 70px;
    overflow: visible;
  }

  /* 하단 바: 이미지 없이 CSS만 */
  .idx-page .idx-bottombar__bg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    pointer-events: none;
    background: rgba(26, 28, 32, 0.95);
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.42);
    z-index: 0;
  }

  /* 플레이트 높이 70px 고정 */
  .idx-page .idx-bottombar__track {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    z-index: 1;
    background: transparent;
  }

  /* 5등분: 1·2 버튼 — 3 가운데 빈칸 — 4·5 버튼 (플로팅 검색은 트랙 밖) */
  .idx-page .idx-bottombar__gap {
    flex: 1 1 0;
    min-width: 0;
    height: 70px;
    pointer-events: none;
  }

  .idx-page .idx-bottombar__btn--edge {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 0;
    height: 70px;
    min-height: 70px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .idx-page .idx-bottombar__ico {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    pointer-events: none;
  }

  .idx-page .idx-bottombar__ico-img {
    display: block;
    width: 22px;
    height: 22px;
  }

  .idx-page .idx-bottombar__ico-img--float {
    width: clamp(22px, 42%, 28px);
    height: clamp(22px, 42%, 28px);
  }

  .idx-page .idx-bottombar__btn--edge:hover .idx-bottombar__ico-img,
  .idx-page .idx-bottombar__btn--edge:active .idx-bottombar__ico-img {
    filter: brightness(1.18);
  }

  /* 트랙에서 선택된 탭: 아이콘 퍼플 (--purple / #fa52ff 근사) */
  .idx-page .idx-bottombar__btn--edge.idx-bottombar__btn--active .idx-bottombar__ico-img {
    filter: brightness(0) saturate(100%) invert(48%) sepia(84%) saturate(4082%) hue-rotate(270deg) brightness(102%)
      contrast(98%);
  }

  .idx-page .idx-bottombar__btn--edge.idx-bottombar__btn--active:hover .idx-bottombar__ico-img,
  .idx-page .idx-bottombar__btn--edge.idx-bottombar__btn--active:active .idx-bottombar__ico-img {
    filter: brightness(0) saturate(100%) invert(52%) sepia(84%) saturate(4082%) hue-rotate(270deg) brightness(108%)
      contrast(98%);
  }

  /* 중앙 검색 — 레이아웃 미점유, 바 상단에 겹침 */
  .idx-page .idx-bottombar__btn--float {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(52px, 17vw, 72px);
    height: clamp(52px, 17vw, 72px);
    padding: 0;
    border: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-bar);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  /* 플로팅 아이콘: SVG fill #99A1AF — 어두운 원 배경용 */
  .idx-page .idx-bottombar__btn--float:hover .idx-bottombar__ico-img--float,
  .idx-page .idx-bottombar__btn--float:active .idx-bottombar__ico-img--float {
    filter: brightness(1.15);
  }

  .idx-page.idx-find-open .idx-bottombar__btn--float {
    background: #fa52ff;
    box-shadow: 0 4px 22px rgba(250, 82, 255, 0.42);
  }

  /* 마젠타 배경 위에서는 회색 아이콘 대비 확보 */
  .idx-page.idx-find-open .idx-bottombar__ico-img--float {
    filter: brightness(0) invert(1);
  }

  .idx-page.idx-find-open .idx-bottombar__btn--float:hover .idx-bottombar__ico-img--float,
  .idx-page.idx-find-open .idx-bottombar__btn--float:active .idx-bottombar__ico-img--float {
    filter: brightness(0) invert(1) brightness(1.08);
  }

  .idx-page .idx-bottombar__btn:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
  }

  .idx-page .idx-bottombar__btn--edge:focus-visible {
    outline-offset: -2px;
  }

  /* 태블릿·모바일: 하단 푸터(법무·저작권 블록) 숨김 */
  .idx-page .idx-ft {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .idx-page .idx-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    padding: 0 clamp(16px, 4vw, 24px);
    min-height: var(--idx-topbar-h);
  }

  .idx-page .idx-topbar__menu {
    grid-column: 1;
    justify-self: start;
  }

  .idx-page .idx-topbar__start {
    grid-column: 2;
    justify-self: center;
    flex: unset;
    justify-content: center;
    min-width: 0;
  }

  .idx-page .idx-marquee {
    display: none;
  }

  .idx-page .idx-brand {
    justify-content: center;
  }

  .idx-page .idx-topbar__actions--guest.idx-topbar__actions--full {
    display: none !important;
  }

  .idx-page .idx-topbar__actions--guest.idx-topbar__actions--compact {
    display: flex !important;
    grid-column: 3;
    justify-self: end;
    gap: 12px;
  }

  .idx-page.idx-page--logged-in .idx-topbar__actions--user.idx-topbar__actions--compact {
    grid-column: 3;
    justify-self: end;
    gap: 12px;
  }

  .idx-page .idx-wallet {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    height: 35px;
    padding: 0 12px;
    gap: 4px;
  }
}

/* 공통: 우측 회원·베팅슬립 패널 (.idx-user-board) — 스포츠 등 여러 페이지에서 재사용 */

.idx-user-board {
  --idx-user-board-icon-slot: 28px;
  display: flex;
  flex-direction: column;
  width: 300px;
  flex-shrink: 0;
  align-items: stretch;
  gap: 5px;
  min-height: 0;
}

.idx-user-board__panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--bg-bar, #272a31);
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
}

.idx-user-board__stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  width: 100%;
}

/* 패널은 내용 높이만큼만 — 줄어들지 않고, 넘치면 .idx-user-board 전체 스크롤 */
.idx-user-board > .idx-user-board__panel {
  flex-shrink: 0;
}

.idx-user-board__slip-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.idx-user-board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px 10px 0 0;
}

.idx-user-board__profile {
  display: grid;
  grid-template-columns: var(--idx-user-board-icon-slot) minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 6px;
  min-width: 0;
}

.idx-user-board__profile > .idx-user-board__avatar {
  justify-self: center;
}

.idx-user-board__avatar {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  object-fit: contain;
}

.idx-user-board__nickname {
  font: 600 14px/1.35 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: var(--text, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.idx-user-board__level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 30px;
  height: 20px;
  padding: 0 6px;
  background-color: var(--purple, #fa52ff);
  border-radius: 4px;
  font: 600 10px/1 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #fff;
}

.idx-user-board__level-num {
  font: 600 10px/1 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #eeff00;
  margin-left: 2px;
}

.idx-user-board__msg {
  display: grid;
  grid-template-columns: var(--idx-user-board-icon-slot) minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 6px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.idx-user-board__msg > .idx-user-board__msg-icon {
  justify-self: center;
}

.idx-user-board__msg-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: block;
}

.idx-user-board__msg-label {
  font: 400 14px/1.35 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: var(--text, #fff);
}

.idx-user-board__msg-count {
  font: 600 14px/1.35 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #eeff00;
}

.idx-user-board__stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background-color: var(--bg-panel, #303338);
  border-radius: var(--radius-sm, 10px);
}

.idx-user-board__stat-label {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  min-width: 0;
  font: 400 12px/1.4 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: var(--text-body, #d1d5dc);
}

.idx-user-board__stat-label > .idx-user-board__stat-icon {
  justify-self: center;
}

.idx-user-board__stat-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  object-fit: contain;
}

.idx-user-board__stat-icon.idx-user-board__stat-icon--point {
  width: 12px;
  height: 15px;
}

.idx-user-board__stat-values {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2px;
  font: 600 12px/1.4 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #eeff00;
  text-align: right;
}

.idx-user-board__stat-unit {
  font-weight: 400;
  color: var(--text, #fff);
}

.idx-user-board__stat-values [data-roulette-jump] {
  cursor: pointer;
}

.idx-user-board__stat-values [data-roulette-jump]:hover {
  opacity: 0.88;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.idx-user-board__msg {
  cursor: pointer;
}

.idx-user-board__msg:hover {
  opacity: 0.88;
}

.idx-user-board__slip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  background-color: #3b3f46;
  border-radius: var(--radius-sm, 10px);
}

.idx-user-board__slip-title {
  font: 600 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #fff;
}

.idx-user-board__slip-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.idx-user-board__check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font: 400 10px/1.2 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: var(--text-muted, #99a1af);
}

.idx-user-board__check input {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: var(--purple, #fa52ff);
}

.idx-user-board__slip-divider {
  width: 1px;
  height: 12px;
  background: #5c616b;
  flex-shrink: 0;
}

.idx-user-board__slip-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.idx-user-board__slip-clear img {
  width: 10px;
  height: 10px;
  display: block;
}

/* 공통 베팅슬립 항목 (.frame-17 / .frame-20 계열) */
.idx-user-board__slip-f17 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  padding: 10px 15px;
  box-sizing: border-box;
  background-color: #303338;
  border-radius: 10px;
  border: none;
}

.idx-user-board__slip-f17-bar,
.idx-user-board__slip-f17-teams,
.idx-user-board__slip-f17-foot {
  position: relative;
  z-index: 2;
}

.idx-user-board__slip-f17-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: 100%;
}

.idx-user-board__slip-f17-dismiss,
.idx-user-board__slip-f20-dismiss {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  box-sizing: border-box;
}

.idx-user-board__slip-f17-dismiss img,
.idx-user-board__slip-f20-dismiss img {
  display: block;
  width: 10px;
  height: 10px;
  object-fit: contain;
  opacity: 0.85;
}

.idx-user-board__slip-f17-dismiss:focus-visible,
.idx-user-board__slip-f20-dismiss:focus-visible {
  outline: 2px solid #eeff00;
  outline-offset: 2px;
}

.idx-user-board__slip-f17-teams {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 52px;
  padding: 5px;
  box-sizing: border-box;
}

.idx-user-board__slip-f17-h {
  font: 700 14px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.07px;
  color: #fff;
}

.idx-user-board__slip-f17-vs {
  font: 500 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.06px;
  color: #ef7e4c;
}

.idx-user-board__slip-f17-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
  border-top: 1px solid rgba(28, 28, 28, 0.3);
}

.idx-user-board__slip-f17-warn {
  font: 700 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.06px;
  color: #eeff00;
  text-align: center;
}

.idx-user-board__slip-f20 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  padding: 10px 15px;
  box-sizing: border-box;
  background-color: #3b3f46;
  border-radius: 10px;
  border: none;
}

.idx-user-board__slip-f17::before,
.idx-user-board__slip-f20::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(250, 82, 255, 1) 0%, rgba(250, 82, 255, 0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.idx-user-board__slip-f17.idx-ub-slip-item--active::before,
.idx-user-board__slip-f20.idx-ub-slip-item--active::before {
  opacity: 1;
}

.idx-user-board__slip-f20-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 2px 5px;
  box-sizing: border-box;
}

.idx-user-board__slip-f20-cap {
  font: 400 10px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.05px;
  color: #eeff00;
  white-space: nowrap;
}

.idx-user-board__slip-f20 .idx-user-board__slip-f17-teams {
  position: relative;
  z-index: 2;
}

.idx-user-board__slip-f20-pick {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
  border-top: 1px solid #2e343e;
}

.idx-user-board__slip-f20-pick-txt {
  font: 400 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.06px;
  color: #fff;
  white-space: nowrap;
}

.idx-user-board__slip-f20-odd {
  font: 600 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.06px;
  color: #fff;
}

.idx-ub-slip-item {
  outline: none;
  outline-offset: 0;
  cursor: pointer;
}

.idx-ub-slip-item:focus-visible {
  outline: 2px solid #eeff00;
}

/* 06_Sports_national: .frame-19 + .bet-cash + .input/.frame-20/.frame-21 + .bet-list + .bet-cal + .btn-bet + .bet-detail */
.idx-user-board__slip-stake {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.idx-user-board__bet-cash {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  padding: 10px 15px;
  background-color: #3b3f46;
}

.idx-user-board__stake-label {
  flex-shrink: 0;
  font: 400 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #d1d5dc;
}

.idx-user-board__stake-input-row {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.idx-user-board__stake-input {
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 30px;
  padding: 4px 10px;
  border: none;
  border-radius: 8px;
  background-color: #272a31;
  font: 600 14px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #eeff00;
  text-align: right;
}

.idx-user-board__stake-input::placeholder {
  color: #99a1af;
  font-weight: 400;
}

.idx-user-board__stake-suffix {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 30px;
  padding: 0 10px;
  border: none;
  border-radius: 8px;
  background-color: #e701e2;
  font: 700 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #fff;
  cursor: pointer;
}

.idx-user-board__bet-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-sizing: border-box;
  width: 100%;
  padding: 10px 15px;
  background-color: #3b3f46;
}

.idx-user-board__chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
}

.idx-user-board__chip {
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 0 6px;
  border: none;
  border-radius: 8px;
  background-color: #303338;
  font: 600 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #7f8691;
  cursor: pointer;
}

.idx-user-board__chip--accent {
  background-color: #e701e2;
  color: #fff;
}

.idx-user-board__chip--active {
  background-color: #e701e2;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(231, 1, 226, 0.35) inset;
}

.idx-user-board__chip:hover {
  filter: brightness(1.08);
}

.idx-user-board__bet-cal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
  width: 100%;
  padding: 10px 14px;
  background-color: #3b3f46;
}

.idx-user-board__slip-stake .idx-user-board__bet-cal {
  padding: 10px 15px;
}

.idx-user-board__total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.idx-user-board__total-label {
  font: 400 12px/1.4 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: var(--text-body, #d1d5dc);
}

.idx-user-board__total-values {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font: 600 12px/1.4 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #eeff00;
}

.idx-user-board__bet {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: none;
  border-radius: 10px;
  background-color: #00bc7d;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
  font: 700 18px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #fff;
  cursor: pointer;
}

.idx-user-board__bet:hover {
  filter: brightness(1.05);
}

.idx-user-board__bet-detail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.idx-user-board__detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
  width: 100%;
  padding: 10px 15px;
  background-color: #303338;
}

.idx-user-board__limit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.idx-user-board__limit-label {
  font: 400 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #7f8691;
}

.idx-user-board__limit-val {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font: 600 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  color: #eeff00;
}

.idx-user-board__limit-unit {
  font-weight: 400;
  font-size: 12px;
  color: #d1d5dc;
}

/* 다폴더 보너스 추가 배당 — 베팅슬립 하단 3컬러 버튼 (스포츠 본문의 .idx-sp-bonus 디자인과 동일) */
.idx-user-board__bonus-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin-bottom: 0px;
}

.idx-user-board__bonus-cell {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 6px 12px;
  box-sizing: border-box;
  border: none;
  border-radius: var(--radius-sm, 10px);
  background-color: #3b3f46;
  font: 400 10px/1.2 var(--font-kr, "Noto Sans KR", sans-serif);
  color: #d1d5dc;
  cursor: pointer;
  text-align: left;
}

.idx-user-board__bonus-cell:hover {
  filter: brightness(1.1);
}

.idx-user-board__bonus-name {
  font-weight: 400;
  white-space: nowrap;
}

.idx-user-board__bonus-odds {
  font-weight: 600;
}

.idx-user-board__bonus-cell--pink .idx-user-board__bonus-name {
  color: #fb9be6;
}
.idx-user-board__bonus-cell--pink .idx-user-board__bonus-odds {
  color: #fb9ce7;
}

.idx-user-board__bonus-cell--orange .idx-user-board__bonus-name,
.idx-user-board__bonus-cell--orange .idx-user-board__bonus-odds {
  color: #feaf82;
}

.idx-user-board__bonus-cell--blue .idx-user-board__bonus-name,
.idx-user-board__bonus-cell--blue .idx-user-board__bonus-odds {
  color: #82dcfe;
}

/* 슬립 다폴더 보너스: 왼쪽 선택 미러(클릭 비활성) */
.idx-user-board__bonus-mirror {
  pointer-events: none;
  user-select: none;
}
.idx-user-board__bonus-mirror .idx-user-board__bonus-cell {
  cursor: default;
}
.idx-user-board__bonus-mirror .idx-user-board__bonus-cell:hover {
  filter: none;
}

.idx-user-board__bonus-grid--empty .idx-user-board__bonus-cell {
  background-color: transparent !important;
  color: #d1d5dc !important;
  cursor: default !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

.idx-user-board__bonus-grid--empty .idx-user-board__bonus-cell .idx-user-board__bonus-name{
  width: 100% !important;
  text-align: center !important;
  font: 600 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif) !important;
  color: #7f8691 !important;
}

/* 폭·타이포는 여기서, 스포츠 3열·태블릿 팝업은 globals.css / idx-sports-national-content.css */
