/* 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) !important;
    max-width: min(300px, 100vw) !important;
    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 이동 전·실패 대비) */
  .idx-page.idx-cart-board-open .idx-sp-body > .idx-user-board,
  .idx-page.idx-cart-board-open .idx-main-wrap-full .idx-user-board {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 100000 !important;
  }

  /* iOS: 카트가 body로 올라간 경우 — 딤(99990) 다음·헤더 아래 */
  body > .idx-user-board.idx-user-board--body-hosted {
    position: fixed !important;
    display: flex !important;
    top: calc(var(--idx-topbar-h, 65px) + env(safe-area-inset-top, 0px));
    right: 0;
    left: auto;
    width: min(300px, 100vw) !important;
    max-width: min(300px, 100vw) !important;
    height: calc(100dvh - var(--idx-topbar-h, 65px) - 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;
    overscroll-behavior-y: contain;
    margin: 0;
    z-index: 100000 !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: -10px 0 28px rgba(0, 0, 0, 0.42);
  }

  /* 본문 카트가 body로 올라간 뒤 셸 보드가 또 열리면 패널이 겹치거나 커 보임 → 숨김 */
  body:has(> .idx-user-board.idx-user-board--body-hosted) .idx-page .idx-user-board--shell {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body:not(:has(.idx-page.idx-cart-board-open)) > .idx-user-board.idx-user-board--body-hosted {
    transform: translateX(100%) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

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

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

/* 데스크톱: 슬라이드용 body 호스팅 카트가 남으면 왼쪽 문서흐름에 붙지 않게 (JS close 전 가드) */
@media (min-width: 1280px) {
  body > .idx-user-board.idx-user-board--body-hosted {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .idx-cart-board-backdrop,
  .idx-cart-board-backdrop.idx-cart-board-backdrop--open {
    display: none !important;
    pointer-events: none !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;
}

body:has(.idx-page) {
  overflow: hidden;
}

.idx-page {
  --idx-topbar-h: 65px;
  --idx-ft-bar-h: 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--bg-page);
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  min-width: 320px;
  max-width: 100%;
  overflow: hidden;
}

html:has(.idx-page),
body:has(.idx-page) {
  overflow-x: hidden;
  max-width: 100%;
}

/* 은은한 풍선 배경 — 콘텐츠 뒤 장식용 */
.idx-page .idx-balloon-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.16;
}

/* 본문·사이드만 배경 풍선 위로 — layout 전체에 z-index를 주면
   모바일 드로어(.idx-aside z-index:100)가 딤(.idx-drawer-backdrop z-index:95) 아래에 갇힘 */
.idx-page .idx-main-wrap,
.idx-page .idx-main-wrap-full,
.idx-page .idx-aside {
  position: relative;
  z-index: 1;
}

.idx-page .idx-balloon-bg__item {
  position: absolute;
  bottom: -14%;
  display: block;
  width: 56px;
  height: 84px;
  background: url("../img/bg-balloon.svg") center / contain no-repeat;
  animation: idx-balloon-rise 22s linear infinite;
  will-change: transform;
}

/* 대 · 중 · 소 — 큰 풍선은 느리게, 작은 풍선은 빠르게 (속도 편차 크게) */
.idx-page .idx-balloon-bg__item--1 {
  left: 3%;
  width: 118px;
  height: 176px;
  animation-name: idx-balloon-rise-a;
  animation-duration: 38s;
  animation-delay: -3s;
  filter: hue-rotate(0deg);
}

.idx-page .idx-balloon-bg__item--2 {
  left: 11%;
  width: 22px;
  height: 33px;
  animation-name: idx-balloon-rise-b;
  animation-duration: 11s;
  animation-delay: -9s;
  filter: hue-rotate(40deg) saturate(0.9);
}

.idx-page .idx-balloon-bg__item--3 {
  left: 18%;
  width: 54px;
  height: 81px;
  animation-name: idx-balloon-rise-c;
  animation-duration: 22s;
  animation-delay: -15s;
  filter: hue-rotate(-20deg);
}

.idx-page .idx-balloon-bg__item--4 {
  left: 26%;
  width: 26px;
  height: 39px;
  animation-name: idx-balloon-rise-a;
  animation-duration: 13s;
  animation-delay: -5s;
  filter: hue-rotate(70deg) saturate(0.85);
}

.idx-page .idx-balloon-bg__item--5 {
  left: 32%;
  width: 142px;
  height: 212px;
  animation-name: idx-balloon-rise-b;
  animation-duration: 42s;
  animation-delay: -12s;
  filter: hue-rotate(15deg);
}

.idx-page .idx-balloon-bg__item--6 {
  left: 42%;
  width: 48px;
  height: 72px;
  animation-name: idx-balloon-rise-c;
  animation-duration: 19s;
  animation-delay: -1s;
  filter: hue-rotate(100deg) saturate(0.8);
}

.idx-page .idx-balloon-bg__item--7 {
  left: 49%;
  width: 18px;
  height: 27px;
  animation-name: idx-balloon-rise-a;
  animation-duration: 9s;
  animation-delay: -18s;
  filter: hue-rotate(-35deg);
}

.idx-page .idx-balloon-bg__item--8 {
  left: 55%;
  width: 58px;
  height: 87px;
  animation-name: idx-balloon-rise-b;
  animation-duration: 24s;
  animation-delay: -7s;
  filter: hue-rotate(55deg);
}

.idx-page .idx-balloon-bg__item--9 {
  left: 62%;
  width: 126px;
  height: 188px;
  animation-name: idx-balloon-rise-c;
  animation-duration: 36s;
  animation-delay: -14s;
  filter: hue-rotate(120deg) saturate(0.75);
}

.idx-page .idx-balloon-bg__item--10 {
  left: 72%;
  width: 24px;
  height: 36px;
  animation-name: idx-balloon-rise-a;
  animation-duration: 12s;
  animation-delay: -4s;
  filter: hue-rotate(-10deg);
}

.idx-page .idx-balloon-bg__item--11 {
  left: 78%;
  width: 50px;
  height: 75px;
  animation-name: idx-balloon-rise-b;
  animation-duration: 21s;
  animation-delay: -11s;
  filter: hue-rotate(85deg) saturate(0.7);
}

.idx-page .idx-balloon-bg__item--12 {
  left: 87%;
  width: 28px;
  height: 42px;
  animation-name: idx-balloon-rise-c;
  animation-duration: 14s;
  animation-delay: -20s;
  filter: hue-rotate(25deg);
}

.idx-page .idx-balloon-bg__item--13 {
  left: 8%;
  width: 46px;
  height: 69px;
  animation-name: idx-balloon-rise-a;
  animation-duration: 26s;
  animation-delay: -8s;
  filter: hue-rotate(-45deg) saturate(0.85);
}

.idx-page .idx-balloon-bg__item--14 {
  left: 38%;
  width: 16px;
  height: 24px;
  animation-name: idx-balloon-rise-b;
  animation-duration: 8s;
  animation-delay: -16s;
  filter: hue-rotate(95deg) saturate(0.75);
}

.idx-page .idx-balloon-bg__item--15 {
  left: 52%;
  width: 134px;
  height: 200px;
  animation-name: idx-balloon-rise-c;
  animation-duration: 40s;
  animation-delay: -6s;
  filter: hue-rotate(30deg);
}

.idx-page .idx-balloon-bg__item--16 {
  left: 93%;
  width: 42px;
  height: 63px;
  animation-name: idx-balloon-rise-a;
  animation-duration: 18s;
  animation-delay: -13s;
  filter: hue-rotate(-25deg) saturate(0.9);
}

.idx-page .idx-balloon-bg__item--17 {
  left: 22%;
  width: 32px;
  height: 48px;
  animation-name: idx-balloon-rise-b;
  animation-duration: 15s;
  animation-delay: -22s;
  filter: hue-rotate(60deg);
}

.idx-page .idx-balloon-bg__item--18 {
  left: 68%;
  width: 20px;
  height: 30px;
  animation-name: idx-balloon-rise-c;
  animation-duration: 10s;
  animation-delay: -10s;
  filter: hue-rotate(110deg) saturate(0.8);
}

@keyframes idx-balloon-rise-a {
  0% {
    transform: translate3d(0, 0, 0) rotate(-6deg);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  50% {
    transform: translate3d(22px, -55vh, 0) rotate(5deg);
  }
  92% {
    opacity: 1;
  }
  100% {
    transform: translate3d(-8px, -115vh, 0) rotate(9deg);
    opacity: 0;
  }
}

@keyframes idx-balloon-rise-b {
  0% {
    transform: translate3d(0, 0, 0) rotate(4deg);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  40% {
    transform: translate3d(-20px, -42vh, 0) rotate(-7deg);
  }
  70% {
    transform: translate3d(14px, -78vh, 0) rotate(3deg);
  }
  92% {
    opacity: 1;
  }
  100% {
    transform: translate3d(-18px, -115vh, 0) rotate(-5deg);
    opacity: 0;
  }
}

@keyframes idx-balloon-rise-c {
  0% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  35% {
    transform: translate3d(12px, -38vh, 0) rotate(8deg);
  }
  65% {
    transform: translate3d(-16px, -72vh, 0) rotate(-4deg);
  }
  92% {
    opacity: 1;
  }
  100% {
    transform: translate3d(10px, -115vh, 0) rotate(6deg);
    opacity: 0;
  }
}

@media (max-width: 1024px) {
  .idx-page .idx-balloon-bg {
    opacity: 0.12;
  }

  .idx-page .idx-balloon-bg__item--15,
  .idx-page .idx-balloon-bg__item--16,
  .idx-page .idx-balloon-bg__item--17,
  .idx-page .idx-balloon-bg__item--18 {
    display: none;
  }
}

@media (max-width: 640px) {
  .idx-page .idx-balloon-bg {
    opacity: 0.1;
  }

  .idx-page .idx-balloon-bg__item--11,
  .idx-page .idx-balloon-bg__item--12,
  .idx-page .idx-balloon-bg__item--13,
  .idx-page .idx-balloon-bg__item--14 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .idx-page .idx-balloon-bg {
    display: none;
  }
}

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

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

.idx-page .idx-main-wrap,
.idx-page .idx-main-wrap-full {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--idx-scrollbar-thumb) var(--idx-scrollbar-track);
}

.idx-page .idx-main-wrap::-webkit-scrollbar,
.idx-page .idx-main-wrap-full::-webkit-scrollbar {
  width: var(--idx-scrollbar-size);
}

.idx-page .idx-main-wrap::-webkit-scrollbar-thumb,
.idx-page .idx-main-wrap-full::-webkit-scrollbar-thumb {
  background: var(--idx-scrollbar-thumb);
  border-radius: var(--idx-scrollbar-size);
}

.idx-page .idx-main-wrap {
  padding: clamp(16px, 3vw, 30px) 0;
}

/* 뷰포트 100% — 메인·자식 높이 체인 */
.idx-page .idx-main-wrap > .idx-main,
.idx-page .idx-main-wrap-full > .idx-main-full {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* 홈(index): 메인 랩 자체 스크롤 */
.idx-page .idx-main-wrap:has(> .idx-main > .idx-home) {
  overflow-y: auto;
}

/* EM 단일 컬럼: 랩 고정, 섹션 내부 스크롤 */
.idx-page .idx-main-wrap:has(.idx-page-section.idx-em) {
  overflow-y: hidden;
}

.idx-page .idx-main-wrap:has(.idx-page-section.idx-em) > .idx-main {
  overflow: hidden;
}

.idx-page .idx-main-wrap .idx-page-section.idx-em {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--idx-scrollbar-thumb) var(--idx-scrollbar-track);
}

.idx-page .idx-main-wrap .idx-page-section.idx-em::-webkit-scrollbar {
  width: var(--idx-scrollbar-size);
}

.idx-page .idx-main-wrap .idx-page-section.idx-em::-webkit-scrollbar-thumb {
  background: var(--idx-scrollbar-thumb);
  border-radius: var(--idx-scrollbar-size);
}

/* 스포츠 3열·미니게임 등: 데스크톱만 래퍼 스크롤 없음 → 그리드 내부만 (모바일은 랩 스크롤) */
@media (min-width: 1025px) {
  .idx-page .idx-main-wrap-full:has(> .idx-main-full.idx-sp-page) {
    overflow-y: hidden;
  }
}

.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__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 8px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 8px), transparent);
}

.idx-page .idx-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 180px;
  will-change: transform;
  animation: idx-marquee-rtl 12s linear infinite;
}

.idx-page .idx-marquee__track > a {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.idx-page .idx-marquee__text {
  display: inline-block;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  flex: none;
  min-width: 0;
  font: 600 12px/1.45 var(--font-sans);
  letter-spacing: -0.06px;
  color: var(--text);
}

@keyframes idx-marquee-rtl {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .idx-page .idx-marquee__track {
    animation: none;
  }
}

.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: 0;
  background: transparent;
}

.idx-page .idx-topbar__iconbtn--join {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

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

.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;
}

@media (max-width: 1279px) {
  .idx-page.idx-page--logged-in .idx-userbar__chip {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
}

.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__wallet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  background-color: #303338;
  border-radius: 10px;
}

.idx-page .idx-userbar__wallet-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.idx-page .idx-userbar__wallet-item[data-content-page],
.idx-page .idx-userbar__wallet-item[data-open-partner-window] {
  cursor: pointer;
}

.idx-page .idx-userbar__wallet-item[data-content-page]:hover .idx-userbar__wallet-label,
.idx-page .idx-userbar__wallet-item[data-content-page]:hover .idx-userbar__wallet-val,
.idx-page .idx-userbar__wallet-item[data-open-partner-window]:hover .idx-userbar__wallet-label,
.idx-page .idx-userbar__wallet-item[data-open-partner-window]:hover .idx-userbar__wallet-val {
  opacity: 0.85;
}

.idx-page .idx-userbar__wallet-item + .idx-userbar__wallet-item {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.idx-page .idx-userbar__wallet-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.idx-page .idx-userbar__wallet-ico--point {
  width: 11px;
}

.idx-page .idx-userbar__wallet-label {
  font-family: "Noto Sans KR", var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  color: #9ca3af;
}

.idx-page .idx-userbar__wallet-val {
  font-family: "Noto Sans KR", var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  color: #eeff00;
}

.idx-page .idx-userbar__wallet-unit {
  font-family: "Noto Sans KR", var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  color: #9ca3af;
}

.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--avatar {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: var(--bg-panel);
  cursor: pointer;
  flex-shrink: 0;
}

.idx-page .idx-topbar__iconbtn--avatar .idx-userbar__avatar {
  width: 20px;
  height: 20px;
}

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

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

.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;
}

/* 상단 카트 아이콘 미사용 — 모바일은 사람(아바타)만으로 패널 오픈 */
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,
.idx-page .idx-topbar__iconbtn--cart[hidden] {
  display: none !important;
}

/* 셸 보드: 데스크톱에선 숨김(스포츠 본문 우측 보드 사용), 모바일 슬라이드만 */
@media (min-width: 1280px) {
  .idx-page .idx-user-board--shell {
    display: none !important;
  }
}

.idx-page .idx-topbar__iconbtn--user-logout {
  padding: 0;
  overflow: hidden;
  background: transparent;
}

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

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

/* 스포츠·미니게임 모바일: 하단 중앙 플로팅 카트 */
.floating-cart-wrap {
  display: none;
  position: fixed;
  left: 50%;
  bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 55;
  pointer-events: none;
}

.floating-cart-btn {
  pointer-events: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.floating-cart-ico {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  transition: opacity 0.15s ease;
}

.floating-cart-ico--nor {
  opacity: 0.72;
}

.floating-cart-ico--act {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  pointer-events: none;
}

.floating-cart-btn.is-active .floating-cart-ico--nor {
  opacity: 0;
}

.floating-cart-btn.is-active .floating-cart-ico--act {
  opacity: 0.78;
}

.floating-cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3b3b;
  color: #fff;
  font: 700 11px/20px var(--font-sans, "Inter", Helvetica, sans-serif);
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.floating-cart-badge[hidden],
.floating-cart-badge[data-count="0"] {
  display: none !important;
}

@media (max-width: 1024px) {
  body.floating-cart-enabled .floating-cart-wrap {
    display: block;
  }

  body.floating-cart-enabled .floating-cart-wrap[hidden] {
    display: block;
  }
}

.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,
.idx-page .idx-nav__row[data-personal-rebate] .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);
  flex-shrink: 0;
}

/* Footer — desktop: 접이식 (기본 닫힘, 하단 바만 노출) */
@media (min-width: 1025px) {
  .idx-page .idx-aside {
    min-height: 0;
    align-self: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--idx-scrollbar-thumb) var(--idx-scrollbar-track);
  }

  .idx-page .idx-aside::-webkit-scrollbar {
    width: var(--idx-scrollbar-size);
  }

  .idx-page .idx-aside::-webkit-scrollbar-thumb {
    background: var(--idx-scrollbar-thumb);
    border-radius: var(--idx-scrollbar-size);
  }

  .idx-page .idx-ft.idx-ft--collapsible {
    position: fixed;
    right: clamp(12px, 1.5vw, 20px);
    bottom: 0;
    z-index: 35;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 0;
    width: auto;
    max-width: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    overflow: visible;
    pointer-events: none;
  }

  .idx-page .idx-ft.idx-ft--collapsible .idx-ft__panel,
  .idx-page .idx-ft.idx-ft--collapsible .idx-ft__toggle {
    pointer-events: auto;
  }

  .idx-page .idx-ft.idx-ft--collapsible > .idx-ft__brand,
  .idx-page .idx-ft.idx-ft--collapsible > .idx-ft__legal {
    display: none;
  }

  .idx-page .idx-ft.idx-ft--collapsible .idx-ft__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 26px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: var(--bg-bar);
    cursor: pointer;
    flex-shrink: 0;
  }

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

  .idx-page .idx-ft__toggle-ico {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(-135deg);
    transition: transform 0.2s ease;
    margin-top: 2px;
  }

  .idx-page .idx-ft--open .idx-ft__toggle-ico {
    transform: rotate(45deg);
    margin-top: -2px;
  }

  .idx-page .idx-ft__panel {
    width: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition:
      max-height 0.28s ease,
      opacity 0.2s ease;
  }

  .idx-page .idx-ft--open.idx-ft--collapsible {
    left: 0;
    right: 0;
    width: 100%;
    align-items: stretch;
  }

  .idx-page .idx-ft--open.idx-ft--collapsible .idx-ft__toggle {
    align-self: flex-end;
    margin: 0 clamp(12px, 1.5vw, 20px) -1px 0;
    border-bottom: none;
    box-shadow: none;
    position: relative;
    z-index: 1;
  }

  .idx-page .idx-ft--open .idx-ft__panel {
    width: 100%;
    max-height: 220px;
    margin: 0;
    opacity: 1;
    background: var(--bg-bar);
    border-top: 1px solid var(--border);
    box-shadow: none;
  }

  .idx-page .idx-ft__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px clamp(16px, 4vw, 50px) 14px;
  }
}

.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);
}

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

@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-page--logged-in .idx-topbar__iconbtn--avatar {
    display: inline-flex;
  }

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

  /* ≤1024 햄버거 구간: 3열 그리드로 .idx-brand 로고 가운데 (본문은 .idx-main-wrap 내부 스크롤) */
  .idx-page .idx-topbar {
    position: relative;
    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-bottombar-h: 0px;
    --idx-bottombar-scroll-gap: 16px;
    --idx-bottombar-clearance: calc(
      var(--idx-bottombar-h) + env(safe-area-inset-bottom, 0px) + var(--idx-bottombar-scroll-gap)
    );
    --idx-find-float-r: 0;
    --idx-find-popup-gap: 10px;
    --idx-find-popup-h: 72px;
    padding-bottom: 0;
  }

  .idx-page .idx-main-wrap,
  .idx-page .idx-main-wrap-full {
    padding-bottom: var(--idx-bottombar-clearance);
    scroll-padding-bottom: var(--idx-bottombar-clearance);
  }

  /* 홈: 스크롤 컨테이너 padding이 무시되는 경우 대비 — 콘텐츠 쪽에 하단 여백 */
  .idx-page .idx-main-wrap:has(> .idx-main > .idx-home) {
    padding-bottom: 0;
  }

  .idx-page .idx-main-wrap:has(> .idx-main > .idx-home) > .idx-main > .idx-home {
    padding-bottom: var(--idx-bottombar-clearance);
    box-sizing: border-box;
  }

  .idx-page.idx-find-open .idx-main-wrap,
  .idx-page.idx-find-open .idx-main-wrap-full {
    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: none;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding: 0;
    height: 0;
    min-height: 0;
    overflow: visible;
    background: transparent;
  }

  /* 트랙 비활성: plate 높이·딤(bg) 제거 */
  .idx-page .idx-bottombar__plate {
    position: relative;
    width: 100%;
    height: 0;
    min-height: 0;
    overflow: visible;
    background: transparent;
  }

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

  /* 플레이트 높이 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%);
  }

  /* 중앙 검색 — 비활성 (HTML 주석 처리 대체) */
  .idx-page .idx-bottombar__btn--float,
  #idx-find-toggle {
    display: none !important;
  }

  /* 중앙 검색 — 레이아웃 미점유, 바 상단에 겹침 */
  .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[data-content-page],
.idx-user-board__stat[data-open-partner-window],
.user-info .div-6[data-content-page],
.user-info .div-6[data-open-partner-window],
.idx-user-stat-row[data-content-page],
.idx-user-stat-row[data-open-partner-window] {
  cursor: pointer;
}

.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],
.idx-user-board__roulette-jump,
.user-info .frame-8 [data-roulette-jump],
.idx-user-stat-row .frame-8 [data-roulette-jump] {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.idx-user-board__stat-values [data-roulette-jump]:hover,
.idx-user-board__roulette-jump:hover,
.user-info .frame-8 [data-roulette-jump]:hover,
.idx-user-stat-row .frame-8 [data-roulette-jump]:hover {
  opacity: 0.88;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.idx-user-board__roulette-sep {
  margin: 0 4px;
  cursor: default;
  text-decoration: none !important;
  opacity: 1 !important;
}

.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: #343942;
  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: #343942;
  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: 600 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.05px;
  color: #fff;
  white-space: nowrap;
}

.idx-user-board__slip-f20 .idx-user-board__slip-f17-teams {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 2px 5px;
  overflow: hidden;
}

.idx-user-board__slip-f20 .idx-user-board__slip-f17-h {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idx-user-board__slip-f20 .idx-user-board__slip-f17-vs {
  flex: 0 0 auto;
}

.idx-user-board__slip-f20-pick {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  background-color: #1a1f27;
  border-top: none;
  border-radius: 6px;
  overflow: hidden;
}

.idx-user-board__slip-f20-pick-txt {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 6px;
  margin: 0;
  padding: 7px 8px;
  font: 500 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.06px;
  color: #d1d5dc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.idx-user-board__slip-f20-odd {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 40px;
  margin: 0;
  padding: 7px 10px;
  box-sizing: border-box;
  border-radius: 0;
  border-left: 1px solid #2e343e;
  background-color: transparent;
  font: 700 14px/1.2 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.06px;
  color: #eeff00;
}

.idx-user-board__slip-f20-pick-val {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 700 16px/1.2 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.08px;
  color: #eeff00;
}

/* 미니게임 베팅슬립: 게임명·일자·회차·선택 강조 */
.idx-user-board__slip-f20-head--mg {
  gap: 6px;
}

.idx-user-board__slip-f20-game {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 11px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.05px;
  color: #d1d5dc;
}

.idx-user-board__slip-f20-round {
  flex: 0 1 auto;
  min-width: 0;
  font: 500 11px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.05px;
  color: #fff;
  white-space: nowrap;
}

.idx-user-board__slip-f20-market {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2px 5px;
  box-sizing: border-box;
  font: 600 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.05px;
  color: #ff3b3b;
}

.idx-ub-slip-item--mg .idx-user-board__slip-f20-market {
  color: #fff;
  font-weight: 500;
}

.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 */
