/* ===============================
   파워볼 전체 레이아웃 (SaaS 스타일)
   =============================== */
/*
.pb-page-wrap {
  max-width: 1040px;
  margin: 0;
  padding: 18px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(219,234,254,.9) 0%, rgba(238,242,255,.92) 38%, rgba(248,250,252,.96) 100%);
  border: 1px solid rgba(203, 213, 225, 0.75);
  box-shadow:
    0 20px 45px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255,255,255,.95);
  color: #0f172a;
}
*/

.pb-page-wrap {
  max-width: 1040px;
  margin: 0;
  color: #0f172a;
}

/* 헤더 */
.pb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #1d4ed8 100%);
  color: #f8fafc;
  box-shadow:
    0 14px 28px rgba(15, 23, 42, 0.24),
    inset 0 1px 0 rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.pb-header-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pb-logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.01em;
}

.pb-logo-text::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #fef9c3, #facc15 45%, #ea580c 100%);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.4), 0 0 18px rgba(250, 204, 21, 0.9);
}

.pb-logo-sub {
  font-size: 12px;
  opacity: .9;
}

.pb-header-tools {
  display: flex;
  gap: 8px;
}

/* ==========================
   Sound Toggle Button UI
   ========================== */
.pb-icon-btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(15, 23, 42, .55);
  color:#e5e7eb;
  width:44px;
  height:44px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,.22);
}

.pb-icon-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
  background: rgba(15, 23, 42, .7);
}

.pb-icon-btn:active{
  transform: translateY(0);
}

.pb-icon-btn.is-on{
  border-color: rgba(34,197,94,.35);
  box-shadow: 0 10px 25px rgba(34,197,94,.10), 0 10px 25px rgba(0,0,0,.18);
}

.pb-icon-btn.is-on:hover{
  background: rgba(34,197,94,.12);
}

.pb-icon-btn:focus{
  outline:none;
}

.pb-icon-btn:focus-visible{
  box-shadow: 0 0 0 3px rgba(59,130,246,.35), 0 10px 25px rgba(0,0,0,.22);
}

/* 상단 정보 */
.pb-top-info {
  margin-top: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 6px 14px rgba(148, 163, 184, 0.25);
}

.pb-top-info strong {
  font-weight: 800;
}

/* 메인 3컬럼 */
.pb-main {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.8fr;
  gap: 14px;
}

/* 공통 패널 */
.pb-panel {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 22px;
  padding: 12px 12px 16px;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow:
    0 14px 26px rgba(148, 163, 184, 0.35),
    0 0 0 1px rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.pb-panel-title {
  font-size: 14px;
  font-weight: 800;
  padding: 2px 4px 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 1);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pb-panel-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #22d3ee);
}

/* 리스트 영역 스크롤 */
.pb-round-list,
.pb-result-list {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.pb-round-list::-webkit-scrollbar,
.pb-result-list::-webkit-scrollbar {
  width: 6px;
}
.pb-round-list::-webkit-scrollbar-thumb,
.pb-result-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.7);
  border-radius: 999px;
}
.pb-round-list::-webkit-scrollbar-track,
.pb-result-list::-webkit-scrollbar-track {
  background: transparent;
}

/* 리스트 아이템 */
.pb-round-item,
.pb-result-item {
  padding: 6px 8px 8px;
  margin-top: 1px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(248, 250, 252, 0.95));
  margin-bottom: 6px;
  border: 1px solid rgba(226, 232, 240, 1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .08s ease-out, box-shadow .08s ease-out, border-color .08s ease-out;
}

.pb-round-item:last-child,
.pb-result-item:last-child {
  margin-bottom: 0;
}

.pb-round-item:hover,
.pb-result-item:hover {
  transform: translateY(-1px);
  border-color: rgba(96,165,250,.7);
  box-shadow:
    0 12px 18px rgba(59,130,246,.08),
    0 0 0 1px rgba(147,197,253,.20);
}

.pb-round-meta {
  font-size: 11px;
  color: #64748b;
}

/* 숫자 볼 리스트 */
.pb-round-balls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
  gap: 4px;
  justify-items: center;
}

/* 공 기본 스타일 (번호 공 + 결과 모달 공 공통) */
.pb-ball,
.pb-result-ball {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;

  position: relative;
  overflow: hidden;

  color: #ffffff;

  /* 숫자/글자 아웃라인 */
  text-shadow:
    0 0 2px rgba(0,0,0,1),
    0 0 4px rgba(0,0,0,1),
    0 1px 0 rgba(0,0,0,1),
    1px 0 0 rgba(0,0,0,1),
    -1px 0 0 rgba(0,0,0,1),
    0 -1px 0 rgba(0,0,0,1),
    0 2px 3px rgba(15,23,42,.8);

  border: 2px solid rgba(15,23,42,.9);

  box-shadow:
    0 4px 8px rgba(15,23,42,.7),
    inset 0 2px 3px rgba(255,255,255,.4),
    inset 0 -3px 6px rgba(15,23,42,.6);

  transition: transform .12s ease-out, box-shadow .12s ease-out;
}

/* 윗부분 하이라이트 */
.pb-ball::before,
.pb-result-ball::before {
  content: "";
  position: absolute;
  inset: 3px 6px auto 6px;
  height: 32%;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.7),
    rgba(255,255,255,.08)
  );
  opacity: .65;
  pointer-events: none;
}

/* 내부 링 효과 */
.pb-ball::after,
.pb-result-ball::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15,23,42,.25) 0%, transparent 65%);
  border: 1px solid rgba(255,255,255,.3);
  pointer-events: none;
}

/* 결과 모달 안 공은 살짝 더 크게 */
.pb-result-ball {
  min-width: 32px;
  height: 32px;
  font-size: 14px;
}

/* 모달 안 공: 기본은 그냥 보통 상태로 보이게 */
.pb-result-modal .pb-result-ball {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* 숫자/글자 바뀔 때 bounce 애니메이션 */
.pb-ball-pop {
  animation: pbBallPop 0.35s ease-out;
}

@keyframes pbBallPop {
  0% {
    opacity: 0;
    transform: scale(0.4) translateY(12px);
  }
  60% {
    opacity: 1;
    transform: scale(1.08) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.pb-ball.power {
  min-width: 22px;
  height: 22px;
  font-size: 11px;
  margin-left: 2px;
}

/* 색상 공 (노랑/파랑/빨강/초록/파워) */
.pb-ball-yellow {
  background: radial-gradient(circle at 30% 20%, #fefce8 0%, #facc15 40%, #ea580c 100%);
  border-color: #c2410c;
}

.pb-ball-blue {
  background: radial-gradient(circle at 30% 20%, #eff6ff 0%, #2563eb 45%, #1d4ed8 100%);
  border-color: #1d4ed8;
}

.pb-ball-red {
  background: radial-gradient(circle at 30% 20%, #fee2e2 0%, #ef4444 45%, #b91c1c 100%);
  border-color: #b91c1c;
}

.pb-ball-green {
  background: radial-gradient(circle at 30% 20%, #dcfce7 0%, #22c55e 45%, #16a34a 100%);
  border-color: #15803d;
}

.pb-ball-power {
  background: radial-gradient(circle at 30% 20%, #e5e7eb 0%, #4b5563 45%, #020617 100%);
  border-color: #020617;
  color: #f9fafb;
}

/* P 뱃지 */
.pb-res-power {
  position: relative;
  overflow: visible;
  z-index: 1;
}

.pb-res-power::after {
  content: "P";
  position: absolute;
  top: 0;
  left: 100%;
  transform: translate(-72%, -55%);
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #fef3c7 0, #facc15 50%, #ea580c 100%);
  color: #111827;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(15, 23, 42, .6);
  border: 1px solid rgba(15, 23, 42, .5);
  pointer-events: none;
  text-shadow: none !important;
  padding-top: 2px;
  padding-left: 1px;
}

/* 색상들 (미니볼용) */
.pb-color-g { background:#22c55e; }
.pb-color-y { background:#eab308; }
.pb-color-b { background:#3b82f6; }
.pb-color-o { background:#fb923c; }
.pb-color-r { background:#ef4444; }
.pb-color-n { background:#6b7280; }

/* 가운데 패널 (통) */
.pb-panel-center {
  align-items: center;
  position: relative;
}

.pb-center-top-time {
  font-size: 12px;
  margin-top: 4px;
  margin-bottom: 10px;
  text-align: center;
  color: #64748b;
}

.pb-drum-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===============================
   WHITE GLASS LOTTO DRUM
   =============================== */

.pb-drum {
  width: 248px;
  height: 248px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #ffffff 0%, #f1f5f9 58%, #cbd5e1 100%);
  border: 2px solid rgba(148,163,184,.32);
  box-shadow:
    0 26px 40px rgba(148,163,184,.32),
    inset 0 0 0 2px rgba(255,255,255,.88),
    inset 0 -10px 18px rgba(148,163,184,.18);
}

/* 유리 반사광 */
.pb-drum::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 20%;
  width: 60%;
  height: 45%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.9), transparent 70%);
  pointer-events: none;
  opacity: .9;
}

/* 바닥 그림자 */
.pb-drum::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  width: 75%;
  height: 24px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(148,163,184,.6), transparent 70%);
  filter: blur(4px);
}

.pb-drum-inner {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #f8fafc 0%, #e2e8f0 60%, #cbd5e1 100%);
  box-shadow:
    inset 0 8px 18px rgba(255,255,255,.9),
    inset 0 -10px 18px rgba(148,163,184,.35);
  overflow: hidden;
}

/* 🔼 통 안 위쪽 로딩 바 (슬림 네온 라인) */
.pb-drum-loader {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.pb-loader-bar {
  width: 6px;
  height: 14px;
  border-radius: 999px;
  background: rgba(59,130,246,.25);
  box-shadow: 0 0 0 1px rgba(59,130,246,.2);
  animation: pbLoaderPulse 1.2s ease-in-out infinite;
}

.pb-loader-bar:nth-child(1) { animation-delay: 0s; }
.pb-loader-bar:nth-child(2) { animation-delay: .1s; }
.pb-loader-bar:nth-child(3) { animation-delay: .2s; }
.pb-loader-bar:nth-child(4) { animation-delay: .3s; }
.pb-loader-bar:nth-child(5) { animation-delay: .4s; }

@keyframes pbLoaderPulse {
  0% {
    opacity: .3;
    transform: scaleY(.7);
  }
  40% {
    opacity: 1;
    transform: scaleY(1.4);
    background: #3b82f6;
    box-shadow:
      0 0 10px rgba(59,130,246,.8),
      0 0 20px rgba(59,130,246,.6);
  }
  100% {
    opacity: .3;
    transform: scaleY(.7);
  }
}

/* 🔽 통 안 아래 공 더미 */
.pb-drum-pile {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 14px;
  height: 48%;
}

.pb-pile-ball {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.8);
  box-shadow:
    0 4px 8px rgba(148,163,184,.6),
    inset 0 2px 3px rgba(255,255,255,.9),
    inset 0 -3px 6px rgba(100,116,139,.5);
}

/* 부드러운 파스텔 톤 */
.pb-pile-ball.pb-pile-1,
.pb-pile-ball.pb-pile-5 {
  background: radial-gradient(circle at 30% 20%, #fef3c7, #facc15);
}
.pb-pile-ball.pb-pile-2,
.pb-pile-ball.pb-pile-7 {
  background: radial-gradient(circle at 30% 20%, #dbeafe, #3b82f6);
}
.pb-pile-ball.pb-pile-3,
.pb-pile-ball.pb-pile-8 {
  background: radial-gradient(circle at 30% 20%, #fee2e2, #ef4444);
}
.pb-pile-ball.pb-pile-4,
.pb-pile-ball.pb-pile-9 {
  background: radial-gradient(circle at 30% 20%, #dcfce7, #22c55e);
}
.pb-pile-ball.pb-pile-6,
.pb-pile-ball.pb-pile-10 {
  background: radial-gradient(circle at 30% 20%, #fdf2f8, #ec4899);
}

/* 위치 유지 */
.pb-pile-1 { bottom: 0; left: 10%; }
.pb-pile-2 { bottom: 0; left: 26%; }
.pb-pile-3 { bottom: 0; left: 42%; }
.pb-pile-4 { bottom: 0; left: 58%; }
.pb-pile-5 { bottom: 0; left: 74%; }

.pb-pile-6 { bottom: 14px; left: 16%; }
.pb-pile-7 { bottom: 18px; left: 32%; }
.pb-pile-8 { bottom: 18px; left: 50%; }
.pb-pile-9 { bottom: 14px; left: 66%; }

.pb-pile-10 { bottom: 30px; left: 40%; }

@keyframes pbPileNudge {
  0% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

.pb-drum.spinning .pb-pile-ball {
  animation: pbPileNudge 1.5s ease-in-out infinite;
}

/* ===============================
   WHITE STYLE COUNTDOWN BAR
   =============================== */

.pb-center-bottom {
  margin-top: 18px;
  margin-bottom: 22px;
  text-align: center;
}

/* 전체 바 */
.pb-countdown-bar {
  display: inline-flex;
  position: relative;
  width: 340px;
  height: 50px;
  border-radius: 999px;
  padding: 4px;
  background: linear-gradient(145deg, #ffffff, #e2e8f0);
  border: 1px solid rgba(148,163,184,.35);
  box-shadow:
    0 12px 24px rgba(148,163,184,.35),
    inset 0 2px 4px rgba(255,255,255,.9);
}

/* 진행 영역 */
.pb-countdown-bar-fill {
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  width: 0%;
  background: linear-gradient(
    90deg,
    #3b82f6 0%,
    #60a5fa 50%,
    #3b82f6 100%
  );
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,.5),
    0 0 10px rgba(59,130,246,.6);
  transition: width .25s linear;
  background-size: 200% 100%;
  animation: pbBarFlow 2s linear infinite;
}

@keyframes pbBarFlow {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* 텍스트 */
.pb-countdown-bar-text {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #1e293b;
  text-shadow:
    0 1px 0 rgba(255,255,255,.9);
}

/* 결과 태그 영역 (오른쪽) */
.pb-result-tags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(34px, 1fr));
  gap: 4px;
  justify-items: center;
}

/* 결과 없음 안내 */
.pb-empty {
  font-size: 11px;
  color: #94a3b8;
  padding: 8px 4px;
}

/* ✅ 결과 모달 */
.pb-result-modal {
  position: absolute;
  inset: 8px 6px 6px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease-out;
  z-index: 5;
}

.pb-result-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.pb-result-box {
  min-width: 280px;
  max-width: 360px;
  padding: 16px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #eef2ff 0%, #e0f2fe 45%, #fee2e2 100%);
  box-shadow:
    0 24px 40px rgba(15, 23, 42, 0.9),
    inset 0 0 0 2px rgba(191, 219, 254, 0.9);
  text-align: center;
  color: #0f172a;
}

.pb-result-title {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 6px;
}

.pb-result-round {
  font-size: 12px;
  margin-bottom: 8px;
  color: #4b5563;
}

.pb-result-balls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

/* 모달 아래 결과 태그 (공 스타일 그대로 재사용) */
.pb-result-tags-modal {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.pb-result-tags-modal .pb-ball,
.pb-result-tags-modal .pb-result-ball {
  min-width: 26px;
  height: 26px;
  font-size: 12px;
}

/* 모달 초기 상태: 회색 ? 공 */
.pb-ball-question {
  background: radial-gradient(circle at 30% 20%, #e5e7eb 0%, #9ca3af 45%, #4b5563 100%);
  border-color: #4b5563;
  color: #f9fafb;
}

/* 패널 하단 더 보기 버튼 박스 */
.pb-more-wrap-side {
  margin-top: 8px;
  text-align: center;
}

/* 더 보기 버튼 공통 */
.pb-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.7);
  background: linear-gradient(135deg, #ffffff, #e5e7eb);
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow:
    0 4px 10px rgba(148,163,184,.45),
    inset 0 1px 0 rgba(255,255,255,.9);
  transition:
    background .12s ease-out,
    box-shadow .12s ease-out,
    transform .08s ease-out,
    border-color .12s ease-out,
    opacity .12s ease-out;
}

.pb-more-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #e0f2fe, #eef2ff);
  border-color: rgba(59,130,246,.8);
  box-shadow:
    0 6px 16px rgba(148,163,184,.6),
    0 0 0 1px rgba(191,219,254,.9);
  transform: translateY(-1px);
}

.pb-more-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    0 3px 8px rgba(148,163,184,.5);
}

.pb-more-btn:disabled {
  cursor: default;
  opacity: .7;
  box-shadow: none;
}

.pb-result-balls-current {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(34px, 1fr));
  gap: 4px;
  justify-items: center;
  margin: 0;
}

/* ======================================
   ✅ 포인트 베팅 패널 (게임 박스 아래)
   ====================================== */

.pb-bet-wrap {
  margin-top: 18px;
  padding: 14px 14px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f9fafb, #eef2ff);
  border: 1px solid rgba(199, 210, 254, 0.9);
  box-shadow:
    0 14px 30px rgba(148,163,184,.4),
    inset 0 0 0 1px rgba(255,255,255,.9);
}

.pb-bet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.pb-bet-title {
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pb-bet-title::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  box-shadow: 0 0 0 2px rgba(34,197,94,.35);
}

.pb-bet-balance {
  font-size: 12px;
  color: #475569;
}

.pb-bet-balance strong {
  font-size: 13px;
  font-weight: 900;
  color: #1d4ed8;
}

/* 항목 그룹 */
.pb-bet-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pb-bet-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pb-bet-group {
  padding: 8px 8px 9px;
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(209,213,219,.9);
  box-shadow:
    0 4px 10px rgba(148,163,184,.25),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.pb-bet-group-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #475569;
}

/* 항목 버튼 - 단일 선택 (라디오처럼) */
.pb-bet-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pb-bet-option {
  flex: 1 1 auto;
  min-width: 0;
  padding: 5px 6px;
  border-radius: 999px;
  border: 1px solid rgba(203,213,225,.9);
  background: linear-gradient(135deg, #f9fafb, #e5e7eb);
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  box-shadow:
    0 2px 6px rgba(148,163,184,.35),
    inset 0 1px 0 rgba(255,255,255,.9);
  transition:
    background .12s ease-out,
    box-shadow .12s ease-out,
    transform .08s ease-out,
    color .12s ease-out,
    border-color .12s ease-out;
}

.pb-bet-option:hover {
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  color: #1d4ed8;
  border-color: rgba(129,140,248,.9);
  transform: translateY(-1px);
}

/* ✅ 단일 선택 active 상태 */
.pb-bet-option.active {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #f9fafb;
  border-color: rgba(37,99,235,.9);
  box-shadow:
    0 4px 10px rgba(37,99,235,.6),
    0 0 0 1px rgba(191,219,254,.9);
}

/* 베팅 영역 전체: 금액 쪽 / 선택·버튼 박스 나란히 */
.pb-bet-footer {
  margin-top: 10px;
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.pb-bet-footer-left,
.pb-bet-footer-right {
  flex: 1 1 0; /* 50:50 */
}

/* ✅ 포인트 베팅 카드 공통 (위 선택 박스 + 아래 2박스 전부) */
.pb-bet-box {
  padding: 12px 16px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(209,213,219,.9);
  box-shadow:
    0 4px 10px rgba(148,163,184,.25),
    inset 0 1px 0 rgba(255,255,255,.9);
}

/* 베팅 금액 인풋 박스 더 길게 */
/* 두 박스 길이를 1/2씩 */
.pb-bet-amount-wrap,
.pb-bet-info-and-buttons {
  flex: 1 1 0;  /* 50:50 */
}

.pb-bet-amount-card,
.pb-bet-info-and-buttons {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px 14px; /* 위 카드랑 비슷하게 */
}

/* 왼쪽 카드 안 내용 정리 */
.pb-bet-amount-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
  margin-bottom: 6px;
}

.pb-bet-amount-box {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 260px;
  margin-bottom: 10px;
}

.pb-bet-amount-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background .12s ease-out,
    color .12s ease-out;
}

.pb-bet-amount-btn:hover {
  background: rgba(226,232,240,.8);
  color: #1f2937;
}

/* 금액 입력 인풋 – 오른쪽 정렬 + 깔끔 */
.pb-bet-amount-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;

  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;

  font-size: 13px;
  color: #111827;

  /* 오른쪽 정렬 입력 */
  text-align: right;
  padding: 6px 32px 6px 0;
}

/* placeholder 도 오른쪽 정렬 */
.pb-bet-amount-input::placeholder {
  color: #9ca3af;
  text-align: right;
}

/* 포커스 시에도 내부 라인 안 생기게 */
.pb-bet-amount-input:focus,
.pb-bet-amount-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* 오른쪽 P 표시 */
.pb-bet-amount-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);

  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  pointer-events: none;
}

/* 버튼들 */
.pb-bet-buttons {
  display: flex;
  flex-direction: column;  /* 🔥 위→아래(top→bottom) */
  gap: 8px;
  margin-top: 10px;
}

/* 두 버튼 모두 카드 너비 꽉 채우게 */
.pb-bet-buttons .pb-bet-submit-btn,
.pb-bet-buttons .pb-bet-reset-btn {
  width: 100%;
}

/* ✅ 포인트 베팅 – 기본 파랑 */
.pb-bet-submit-btn {
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;

  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #f9fafb;
  box-shadow:
    0 6px 14px rgba(37,99,235,.45),
    0 0 0 1px rgba(191,219,254,.85);

  transition:
    background .15s ease,
    box-shadow .15s ease,
    transform .12s ease;
}

/* ✅ 포인트 베팅 hover – 더 진한 파랑 */
.pb-bet-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow:
    0 8px 18px rgba(37,99,235,.55),
    0 0 0 1px rgba(191,219,254,1);
  transform: translateY(-1px);
}

.pb-bet-submit-btn:active {
  transform: translateY(0);
  box-shadow:
    0 4px 10px rgba(37,99,235,.45),
    0 0 0 1px rgba(191,219,254,.9);
}

.pb-bet-submit-btn:disabled {
  opacity: .65;
  cursor: default;
  box-shadow: none;
}

/* 리셋 버튼 */
.pb-bet-reset-btn {
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(148,163,184,.8);
  background: linear-gradient(135deg, #ffffff, #e5e7eb);
  color: #374151;
  cursor: pointer;
  box-shadow:
    0 3px 8px rgba(148,163,184,.35),
    inset 0 1px 0 rgba(255,255,255,.9);

  transition:
    background .15s ease,
    box-shadow .15s ease,
    transform .12s ease;
}

.pb-bet-reset-btn:hover {
  background: linear-gradient(135deg, #e5f0ff, #edf2ff);
  box-shadow:
    0 4px 10px rgba(148,163,184,.45),
    0 0 0 1px rgba(191,219,254,.8);
  transform: translateY(-1px);
}

.pb-bet-reset-btn:active {
  transform: translateY(0);
  box-shadow:
    0 2px 6px rgba(148,163,184,.4);
}

/* 안내 텍스트 */
.pb-bet-hint {
  margin-top: 4px;
  font-size: 11px;
  color: #9ca3af;
}

/* 빠른 금액 버튼 */
.pb-bet-quick {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
  gap: 6px;
  justify-content: flex-end;
}

.pb-bet-quick-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(203,213,225,.9);
  background: linear-gradient(135deg, #f9fafb, #e5e7eb);
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  box-shadow:
    0 2px 6px rgba(148,163,184,.25),
    inset 0 1px 0 rgba(255,255,255,.9);
  transition:
    background .12s ease-out,
    color .12s ease-out,
    transform .08s ease-out,
    border-color .12s ease-out;
}

.pb-bet-quick-btn:hover {
  background: linear-gradient(135deg, #e0f2fe, #eef2ff);
  color: #1d4ed8;
  border-color: rgba(129,140,248,.9);
  transform: translateY(-1px);
}

/* 올인 버튼만 살짝 강조 */
.pb-bet-quick-btn[data-role="allin"] {
  border-color: rgba(248,113,113,.9);
  color: #b91c1c;
}
.pb-bet-quick-btn[data-role="allin"]:hover {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
}
/* 초기화: 파랑 강조 */
.pb-bet-quick-btn[data-role="clear"] {
  border-color: rgba(59,130,246,.9);
  color: #1d4ed8;
}
.pb-bet-quick-btn[data-role="clear"]:hover {
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  color: #1d4ed8;
}

/* 구간 표시 라벨 */
.pb-bet-range-hint {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom:10px;
}

/* 선택한 항목 표시 */
/* 오른쪽 카드 내 텍스트 간격 */
.pb-bet-selected {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

/* 보유 포인트 라인 */
.pb-bet-mypoint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
  margin-bottom: 6px;
}

.pb-bet-mypoint .pb-my-point-val {
	font-size: 13px;
  font-weight: 900;
  color: #1d4ed8;
}

.pb-bet-submit-btn,
.pb-bet-reset-btn {
  flex: 1 1 0;
  height: 44px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 16px rgba(15,23,42,.22),
    inset 0 1px 0 rgba(255,255,255,.95);
  transition:
    transform .08s ease-out,
    box-shadow .08s ease-out,
    background .12s ease-out,
    opacity .12s ease-out;
}

/* 포인트 베팅 버튼: 파란 메인 */
.pb-bet-submit-btn {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #f9fafb;
}
.pb-bet-reset-btn {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  color: #111827;
}
.pb-bet-reset-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 20px rgba(148,163,184,.5),
    inset 0 1px 0 rgba(255,255,255,.95);
}

/* 베팅 선택 영역과 금액 영역 사이 얇은 구분선 */
.pb-bet-separator {
  margin: 12px 0 0;
  height: 1px;
  background: linear-gradient(to right,
    rgba(148,163,184,0),
    rgba(148,163,184,0.55),
    rgba(148,163,184,0));
}

.pb-bet-odds {
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(148,163,184,.4);
  margin-bottom: 10px;
}

/* 금액 입력 줄 전체 컨테이너 */
.pb-bet-amount-row {
  position: relative;
  width: 100%;

  display: flex;
  align-items: center;

  padding: 6px 14px;
  border-radius: 999px;

  background: linear-gradient(135deg, #f9fafb, #eef2ff);
  border: 1px solid rgba(203,213,225,.9);

  box-shadow:
    0 3px 8px rgba(148,163,184,.25),
    inset 0 1px 0 rgba(255,255,255,.85);

  /* 🔥 부드러운 포커스용 트랜지션 */
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

/* 안에 인풋이 포커스되면 캡슐만 살짝 강조 */
.pb-bet-amount-row:focus-within {
  border-color: #2563eb;
  box-shadow:
    0 6px 16px rgba(37,99,235,.32),
    0 0 0 1px rgba(191,219,254,.95),
    inset 0 1px 0 rgba(255,255,255,.95);

  transform: translateY(-1px);
}

/* 배당률 숫자: 파랑 */
.pb-odds-num {
  color: #2563eb;      /* SaaS 블루 */
  font-weight: 700;
}

/* 적중시 숫자: 초록 */
.pb-win-num {
  color: #16a34a;      /* 그린 */
  font-weight: 700;
}

/* ✅ 1. 인풋 자체 포커스 효과 완전 제거 */
.pb-bet-amount-row .pb-bet-amount-input,
.pb-bet-amount-row .pb-bet-amount-input:focus,
.pb-bet-amount-row .pb-bet-amount-input:focus-visible,
.pb-bet-amount-row .pb-bet-amount-input:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ✅ 3. 혹시 브라우저 내부 포커스 인너라인 남아있을 경우 대비 (FireFox) */
.pb-bet-amount-row .pb-bet-amount-input::-moz-focus-inner {
  border: 0 !important;
}

/* 선택 텍스트 색상 */
.sel-blue  { color: #2563eb; font-weight: 700; }  /* 홀, 언더, 중 */
.sel-red   { color: #dc2626; font-weight: 700; }  /* 짝, 오버, 대 */
.sel-green { color: #16a34a; font-weight: 700; }  /* 소 */

/* ======================
   ✅ 베팅 헤더 회차/상태
   ====================== */
.pb-bet-round-head {
  font-size: 12px;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.pb-bet-round-head #pbBetRoundLabel {
  font-weight: 700;
}

.pb-bet-round-deadline {
  color: #dc2626;
  font-weight: 700;
}

.pb-bet-round-badge {
  font-weight: 700;
}

.pb-bet-round-badge.pb-bet-round-closed {
  color: #dc2626; /* 빨강 */
}

.pb-bet-round-badge.pb-bet-round-done {
  color: #16a34a; /* 초록 */
}

/* =========================
   베팅 상태 박스 (마감/완료)
   ========================= */

.pb-bet-status-box{
    margin-top:10px;
    padding:16px 18px;
    border-radius:16px;
    border:1px solid #e5e7eb;
    background:linear-gradient(135deg,#f9fafb,#f3f4f6);
    box-shadow:0 10px 24px rgba(15,23,42,0.10);
    font-size:13px;
    color:#111827;
    /* 🔥 파워볼에선 JS로 보이고/숨기므로 여기서는 display:none 제거 */
    position:relative;
    overflow:hidden;
}
.pb-bet-status-box::before{
    content:'';
    position:absolute;
    left:-32px;
    top:-32px;
    width:88px;
    height:88px;
    border-radius:999px;
    background:rgba(59,130,246,0.08);
    z-index:0;
}
.pb-bet-status-inner{
    position:relative;
    z-index:1;
}
.pb-bet-status-title{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:6px;
    font-size:14px;
    font-weight:700;
}
.pb-bet-status-icon{
    width:22px;
    height:22px;
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
}
.pb-bet-status-sub{
    display:block;
    font-size:12px;
    color:#4b5563;
    line-height:1.5;
}

/* 🔴 마감 상태 */
.pb-bet-status-box.pb-status-closed{
    border-color:#fecaca;
    background:linear-gradient(135deg,#fef2f2,#fee2e2);
}
.pb-bet-status-box.pb-status-closed::before{
    background:rgba(248,113,113,0.16);
}
.pb-bet-status-box.pb-status-closed .pb-bet-status-icon{
    background:#fee2e2;
    color:#b91c1c;
}
.pb-bet-status-box.pb-status-closed .pb-bet-status-title{
    color:#b91c1c;
}

/* ✅ 완료 상태 */
.pb-bet-status-box.pb-status-done{
    border-color:#a7f3d0;
    background:linear-gradient(135deg,#ecfdf5,#d1fae5);
}
.pb-bet-status-box.pb-status-done::before{
    background:rgba(52,211,153,0.20);
}
.pb-bet-status-box.pb-status-done .pb-bet-status-icon{
    background:#dcfce7;
    color:#047857;
}
.pb-bet-status-box.pb-status-done .pb-bet-status-title{
    color:#047857;
}

/* ✅ 선택된 베팅/배당 숫자 컬러 (이미 일부 사용중) */
.pb-odds-num {
  color: #2563eb;
  font-weight: 700;
}
.pb-win-num {
  color: #16a34a;
  font-weight: 700;
}

/* ======================
   ✅ 베팅 옵션 비활성
   ====================== */
/* 🔥 비활성 상태 - hover 먹지 않게 완전 덮어쓰기 */
.pb-bet-option.disabled,
.pb-bet-option.disabled:hover {
  opacity: .4;
  cursor: not-allowed !important;

  /* hover 컬러/효과 덮어쓰기 */
  background: linear-gradient(135deg, #f9fafb, #e5e7eb); /* 기본 배경 느낌 유지 */
  color: #9ca3af;                /* 연한 글자색 */
  border-color: rgba(209,213,219,.9);
  box-shadow: none;
  transform: none;
  pointer-events: auto !important; /* 커서는 보이게 */
}
/* 버튼류 disabled 공통 커서 */
.pb-bet-quick-btn:disabled,
.pb-bet-submit-btn:disabled,
.pb-bet-reset-btn:disabled {
  cursor: not-allowed !important;
}

/* ======================
   ✅ 베팅 버튼 처리중 상태
   ====================== */
.pb-bet-submit-btn.pb-bet-submit-processing {
  background: linear-gradient(135deg, #9ca3af, #6b7280) !important;
  box-shadow: none !important;
  cursor: default !important;
}

/* ============================
   ✅ 내 베팅 내역 (독립 패널)
   ============================ */

/* 섹션 전체 여백 */
.pb-history-wrap {
  margin-top: 22px;
}

/* 카드형 베팅 내역 박스 */
.pb-bet-history {
  padding: 16px 18px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f9fafb, #eef2ff);
  border: 1px solid rgba(199, 210, 254, 0.95);
  box-shadow:
    0 16px 32px rgba(148, 163, 184, 0.40),
    inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

/* 상단 헤더 라인 */
.pb-bet-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #4b5563;
}

.pb-bet-history-title {
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pb-bet-history-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.pb-bet-history-meta {
  font-size: 11px;
  color: #6b7280;
}

/* 테이블 카드 */
.pb-bet-history-table-wrap {
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 1);
  background: #f9fafb;
  box-shadow:
    0 4px 10px rgba(148, 163, 184, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

/* 테이블 자체 */
.pb-bet-history-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
}

/* 헤더 */
.pb-bet-history-table thead {
  background: linear-gradient(135deg, #eff6ff, #e5e7eb);
}

.pb-bet-history-table th,
.pb-bet-history-table td {
  padding: 7px 6px;
  border-bottom: 1px solid rgba(226, 232, 240, 1);
  text-align: center;
  word-break: keep-all;
}

.pb-bet-history-table th {
  font-weight: 700;
  color: #374151;
}

.pb-bet-history-table td {
  color: #4b5563;
}

/* 베팅 선택 컬럼: 왼쪽 정렬 + 말줄임 */
.pb-his-choice {
  text-align: left;
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 결과 색상 */
.pb-his-result-win {
  color: #16a34a;
  font-weight: 700;
}
.pb-his-result-lose {
  color: #dc2626;
  font-weight: 700;
}
.pb-his-result-pending {
  color: #2563eb; /* 진행중 - 파랑 */
  font-weight: 700;
}

/* 배당률 글자 파랑 */
.pb-his-odds {
  color: #2563eb;
  font-weight: 700;
}

/* 적중 포인트 – 적중인 곳만 초록 */
.pb-his-winpoint-win {
  color: #16a34a;
  font-weight: 700;
}

/* 빈 데이터 안내 */
.pb-bet-history-empty {
  padding: 12px 10px;
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
}

/* 로딩 중일 때 약간 흐리게 */
.pb-bet-history.pb-bet-history-loading {
  opacity: 0.7;
}

/* ============================
   ✅ 내 베팅 내역 페이지네이션
   ============================ */

.pb-bet-history-paging {
  margin-top: 10px;
  text-align: center;
  font-size: 0; /* inline 사이 공백 제거 */
}

/* 가운데 페이지 번호들 */
.pb-bet-history-pages {
  display: inline-block;
}

/* 공통 버튼 스타일 */
.pb-bet-history-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 30px;
  height: 30px;
  line-height: 30px;

  margin: 0 3px;
  padding: 0 12px;

  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: linear-gradient(135deg, #ffffff, #e5e7eb);

  font-size: 12px;
  font-weight: 600;
  color: #4b5563;

  cursor: pointer;
  box-shadow:
    0 2px 6px rgba(148, 163, 184, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);

  transition:
    background 0.12s ease-out,
    box-shadow 0.12s ease-out,
    transform 0.08s ease-out,
    color 0.12s ease-out,
    border-color 0.12s ease-out;
}

/* 숫자 버튼 공통 클래스 (JS에서 사용) */
.pb-bet-history-page-num {
}

/* 🔵 현재 페이지(active) */
.pb-bet-history-page-btn.pb-bet-history-page-current {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #f9fafb;
  border-color: rgba(37, 99, 235, 0.9);
  box-shadow:
    0 4px 10px rgba(37, 99, 235, 0.55),
    0 0 0 1px rgba(191, 219, 254, 0.9);
}

/* 일반 버튼 hover */
.pb-bet-history-page-btn:hover:not(.pb-bet-history-page-current):not(:disabled) {
  background: linear-gradient(135deg, #e0f2fe, #eef2ff);
  color: #1d4ed8;
  border-color: rgba(129, 140, 248, 0.9);
  transform: translateY(-1px);
}

/* active 버튼 hover */
.pb-bet-history-page-btn.pb-bet-history-page-current:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-color: rgba(30, 64, 175, 0.95);
  transform: translateY(-1px);
}

/* 비활성(이전/다음 막힘) */
.pb-bet-history-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ============================
   ✅ 파워볼 분석 패널
   ============================ */

.pb-ana-wrap {
  margin-top: 22px;
}

.pb-ana-card {
  padding: 18px 18px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f9fafb, #f3f4ff);
  border: 1px solid rgba(199, 210, 254, 0.95);
  box-shadow:
    0 16px 32px rgba(148, 163, 184, 0.40),
    inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

.pb-ana-head {
  margin-bottom: 14px;
}

.pb-ana-title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}

.pb-ana-title strong {
  color: #2563eb;
}

.pb-ana-sub {
  margin-top: 4px;
  font-size: 11px;
  color: #6b7280;
}

.pb-ana-top {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 16px;
  margin-bottom: 14px;
}

/* ---------- 상단 좌측: 바 통계 ---------- */

.pb-ana-top-left {
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 1);
  box-shadow:
    0 6px 14px rgba(148, 163, 184, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: 10px 12px 10px;
}

.pb-ana-section-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #374151;
}

.pb-ana-stat-group {
  margin-top: 6px;
}

/* 타이틀 중앙정렬 */
.pb-ana-section-title-center {
  text-align: center;
  font-weight: 600;
  margin: 4px 0 10px;
}

/* 막대 줄 전체 */
.pb-ana-stat-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

/* 좌/우, 언더/오버 글자 (그래프 양쪽) */
.pb-ana-stat-side {
  width: 40px;
  font-size: 13px;
  font-weight: 500;
}

.pb-ana-stat-label-main {
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
}

.pb-ana-stat-label-sub {
  font-size: 11px;
  color: #9ca3af;
}

/* 막대 본체 */
.pb-ana-stat-bar {
  position: relative;
  flex: 1;
  height: 32px;              /* ✅ 글자 들어갈 정도로 높이 */
  border-radius: 16px;
  background: #e5e7eb;       /* 기본 바탕 */
  overflow: hidden;
  display: flex;
}

/* 채워지는 부분 공통 */
.pb-ana-stat-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.pb-ana-stat-fill-left,
.pb-ana-stat-fill-right {
  position: absolute;
  top: 0;
  bottom: 0;
}

/* 왼쪽 기본색: 파랑, 오른쪽 기본색: 빨강 */
.pb-ana-stat-fill-left {
  background: #2563eb;
}
.pb-ana-stat-fill-right {
  background: #f97373;
}

/* ✅ 적은 쪽은 회색 처리용 클래스 */
.pb-ana-stat-fill-dim {
  background: #d1d5db !important;
}

/* 막대 안쪽 텍스트 */
.pb-ana-stat-bar-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
}

.pb-ana-stat-bar-text-left {
  left: 12px;
  text-align: left;
}

.pb-ana-stat-bar-text-right {
  right: 12px;
  text-align: right;
}

.pb-ana-stat-num {
  font-size: 11px;
  text-align: right;
  color: #4b5563;
  white-space: nowrap;
}

.pb-ana-stat-num strong {
  font-weight: 800;
}

/* ---------- 상단 우측: 파이 + 범례 ---------- */

.pb-ana-top-right {
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 1);
  box-shadow:
    0 6px 14px rgba(148, 163, 184, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: 10px 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pb-ana-pie-title {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}

/* 파이 그래프 전체 박스 */
.pb-ana-pie-wrap {
  display:flex;
  align-items:center;
  gap:28px;
}

/* 🔥 도넛 크기 크게 (PC 기준) */
.pb-ana-pie-circle {
  position:relative;
  margin-top:10px;
  width:180px;
  height:180px;
  border-radius:50%;
  flex-shrink:0;
  background:#e5e7eb;   /* JS에서 conic-gradient 로 덮어씀 */
  box-shadow:0 8px 22px rgba(15,23,42,0.07);
}

/* 모바일에서 너무 커지지 않게 살짝 줄이기 */
@media (max-width:1024px) {
  .pb-ana-pie-circle {
    width:190px;
    height:190px;
  }
}

@media (max-width:768px) {
  .pb-ana-pie-wrap {
    flex-direction:column;
    align-items:center;
  }
  .pb-ana-pie-circle {
    width:170px;
    height:170px;
  }
}

.pb-ana-pie-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.pb-ana-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pb-ana-legend-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pb-ana-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.pb-ana-legend-dot.small {
  background:#16a34a;   /* 소 - 초록 */
}

.pb-ana-legend-dot.mid {
  background:#2563eb;   /* 중 - 파랑 */
}

.pb-ana-legend-dot.large {
  background:#dc2626;   /* 대 - 빨강 */
}

.pb-ana-legend-label {
  font-size: 12px;
  color: #4b5563;
}

.pb-ana-legend-val {
  font-size: 11px;
  color: #6b7280;
}

.pb-ana-legend-val strong {
  font-weight: 800;
}

/* ---------- 하단: 패턴 / 비드표 ---------- */

.pb-ana-bottom {
  margin-top: 6px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 1);
  box-shadow:
    0 6px 14px rgba(148, 163, 184, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: 10px 12px 12px;
}

.pb-ana-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 8px;
}

.pb-ana-tab-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: linear-gradient(135deg, #f9fafb, #e5e7eb);
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  box-shadow:
    0 2px 6px rgba(148, 163, 184, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    background 0.12s ease-out,
    box-shadow 0.12s ease-out,
    transform 0.08s ease-out,
    color 0.12s ease-out,
    border-color 0.12s ease-out;
}

.pb-ana-tab-btn:hover {
  background: linear-gradient(135deg, #e0f2fe, #eef2ff);
  color: #1d4ed8;
  border-color: rgba(129, 140, 248, 0.9);
  transform: translateY(-1px);
}

.pb-ana-tab-btn.active {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #f9fafb;
  border-color: rgba(37, 99, 235, 0.9);
  box-shadow:
    0 4px 10px rgba(37, 99, 235, 0.55),
    0 0 0 1px rgba(191, 219, 254, 0.9);
}

.pb-ana-tab-btn.disabled {
  opacity: .5;
  cursor: default;
}

.pb-ana-btm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
  color: #6b7280;
}

.pb-ana-btm-head-right {
	margin-top: 20px;
	margin-right: 20px;
}

.pb-ana-btm-head strong {
  font-weight: 800;
}

.pb-ana-btm-head-left span + span {
  margin-left: 8px;
}

.pb-ana-btm-head-right span + span {
  margin-left: 8px;
}

/* =========================
   1. 공통 변수
   ========================= */
:root {
  /* 셀 한 칸: 공보다 살짝 큰 정도 */
  --pb-bead-cell-size: 36px;
  /* 공(원) 크기 */
  --pb-bead-ball-size: 28px;
}

/* =========================
   2. 전체 박스 / 스크롤
   ========================= */

.pb-ana-bead-box {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid #e3e7f3;
  background: #ffffff;
  padding: 12px 14px;
}

.pb-ana-bead-scroll {
  overflow-x: auto;
  overflow-y: hidden;
}

.pb-ana-bead-inner {
  display: inline-block;
}

/* 🔥 여기 하나에만 격자 배경을 줌 */
.pb-ana-bead-board {
  position: relative;
  display: inline-block;
  background-color: #ffffff;

  background-image:
    linear-gradient(to right,  #d1d5e8 1px, transparent 1px),
    linear-gradient(to bottom, #d1d5e8 1px, transparent 1px);
  background-size:
    var(--pb-bead-cell-size) var(--pb-bead-cell-size),
    var(--pb-bead-cell-size) var(--pb-bead-cell-size);
}

/* 🔥 맨 아래 가로선 */
.pb-ana-bead-board::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #d1d5e8;
  pointer-events: none;
}

/* 🔥 맨 오른쪽 세로선 */
.pb-ana-bead-board::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 1px;
  background: #d1d5e8;
  pointer-events: none;
}

/* =========================
   3. 위쪽 라벨 줄
   ========================= */

.pb-ana-bead-top-row {
  display: flex;
  height: var(--pb-bead-cell-size);   /* ▶ 격자 1칸 */
  border-top: 1px solid #d1d5e8;
  border-left: 1px solid #d1d5e8;
  background-color: #f3f4f6;      /* 회색 한 줄 배경 */
}

.pb-ana-bead-top-cell {
  flex: 0 0 var(--pb-bead-cell-size);      /* 칸 폭 */
  height: var(--pb-bead-cell-size);        /* 위 칸 높이도 격자와 동일 */
  display: flex;
  align-items: center;                     /* 세로 중앙 */
  justify-content: center;                 /* 가로 중앙 */
  font-size: 12px;
  text-align: center;
  color: #6b7280;
  border-right: 1px solid #d1d5e8;
}

/* 홀 = 파랑 */
.pb-ana-bead-top-cell.is-odd {
  color: #2563eb;
  font-weight: 600;
}

/* 짝 = 빨강 */
.pb-ana-bead-top-cell.is-even {
  color: #ef4444;
  font-weight: 600;
}

/* =========================
   4. 가운데 격자
   ========================= */

.pb-ana-bead-main {
  display: flex;  /* 열(column)들을 옆으로 */
}

/* 열 하나 */
.pb-ana-bead-col {
  flex: 0 0 var(--pb-bead-cell-size);
  display: flex;
  flex-direction: column;
  /* ❌ 여기엔 min-height 같은거 넣지 말기 (가변형 막힘) */
}

/* 격자 칸 하나 */
.pb-ana-bead-cell {
  width:  var(--pb-bead-cell-size);
  height: var(--pb-bead-cell-size);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 공(원) */
.pb-bead-ball {
  width:  var(--pb-bead-ball-size);
  height: var(--pb-bead-ball-size);
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
  font-weight: 600;
  /*
  color: #ffffff;
  margin-left: 1px;
  */
}

/* =========================
   5. 공 색상
   ========================= */

/* 홀, 언더, 중 → 파랑 */
/*
.pb-bead-ball.odd,
.pb-bead-ball.under,
.pb-bead-ball.size-mid {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}
*/
/* 짝, 오버, 대 → 빨강 */
/*
.pb-bead-ball.even,
.pb-bead-ball.over,
.pb-bead-ball.size-large {
  background: linear-gradient(135deg, #f97373, #ef4444);
}
*/
/* 소 → 초록 */
/*
.pb-bead-ball.size-small {
  background: linear-gradient(135deg, #4ade80, #16a34a);
}
*/
/* 동률 / 비활성 → 회색 */
/*
.pb-bead-ball.dim {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  color: #6b7280;
}
*/
/* =========================
   6. 아래 숫자 줄
   ========================= */

.pb-ana-bead-bottom-row {
  display: flex;
  height: var(--pb-bead-cell-size);   /* ▶ 격자 마지막 1칸 */
  border-bottom: 1px solid #d1d5e8;
  border-top: 1px solid #d1d5e8;
  border-left: 1px solid #d1d5e8;
  background-color: #f3f4f6;      /* 회색 한 줄 배경 */
}

/* 🔥 맨 아래 숫자 중앙 정렬 */
.pb-ana-bead-bottom-cell {
  flex: 0 0 var(--pb-bead-cell-size);
  height: var(--pb-bead-cell-size);        /* 아래 칸도 격자와 동일 */
  display: flex;
  align-items: center;                     /* 세로 중앙 */
  justify-content: center;                 /* 가로 중앙 */
  font-size: 12px;
  text-align: center;
  color: #9ca3af;
  border-right: 1px solid #d1d5e8;
  padding: 0;                              /* 위쪽 여백 제거 */
}

/* 5 이상 빨강 */
.pb-ana-bead-bottom-cell.is-hot {
  color: #ef4444;
  font-weight: 600;
}

/* =========================
   7. 스크롤바 (선택)
   ========================= */

/* 스크롤바 옵션 */
.pb-ana-bead-scroll::-webkit-scrollbar {
  height: 8px;
}
.pb-ana-bead-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #d1d5db;
}
.pb-ana-bead-scroll::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* ==== 파워볼 요약 4줄 막대 ==== */

.pb-ana-bar-section + .pb-ana-bar-section {
  margin-top: 18px;
}

.pb-ana-bar-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pb-ana-bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.pb-ana-bar-side {
  width: 40px;
  font-size: 11px;
  color: #6b7280;
}

.pb-ana-bar-side-left {
  text-align: left;
}

.pb-ana-bar-side-right {
  text-align: right;
}

.pb-ana-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6b7280;
  padding: 0 4px;
  margin-bottom: 4px;
}

.pb-ana-bar-track {
  position: relative;
  flex: 1;
  height: 30px;           /* ✅ 글자 들어갈 높이 */
  border-radius: 999px;
  overflow: hidden;
  background: #e5e7eb;
  display: flex;
}

/* 퍼센트는 JS에서 width로 제어 */
.pb-ana-bar-fill {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  white-space: nowrap;
}

.pb-ana-bar-fill.left {
  justify-content: flex-start;   /* 왼쪽 정렬 */
  background: #2563eb;           /* 파랑 */
  color: #fff;
}

.pb-ana-bar-fill.right {
  justify-content: flex-end;     /* 오른쪽 정렬 */
  background: #dc2626;           /* 빨강 */
  color: #fff;
}

.pb-ana-bar-fill.dim {
  background: #6b7280 !important; /* 연한 회색 */
}

/* 분석 패널 전용 회색 공 */
.pb-ana-bar-side .pb-ball.dim {
  background: linear-gradient(145deg, #6b7280, #4b5563);   /* 진한 회색 */
  color: #ffffff !important;
  border-color: #6b7280 !important;
}

.pb-ana-bar-val {
  pointer-events: none;
}

/* 홀/짝 헤더 한 세트 */
.pb-ana-head-item {
  display:inline-flex;
  align-items:center;
  margin-right:14px;
  margin-top:20px;
  margin-left:20px;
}

/* 헤더용 작은 공 (결과 공 스타일 + 사이즈만 축소) */
.pb-ana-head-ball {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  font-size:11px;
  margin-right:-4px;
}

/* 헤더 텍스트 */
.pb-ana-head-text {
  font-size:13px;
  color:#4b5563;
}
.pb-ana-head-text strong {
  font-weight:600;
}

/* ===== 비드 상단 라벨 색상 ===== */

/* 홀/짝, 언더/오버: left=파랑 / right=빨강 */
.pb-ana-bead-top-cell.is-left  { color:#2563eb; font-weight:700; }
.pb-ana-bead-top-cell.is-right { color:#ef4444; font-weight:700; }

/* 소/중/대: 소=초록 / 중=파랑 / 대=빨강 */
.pb-ana-bead-top-cell.is-small { color:#16a34a; font-weight:700; } /* 소 */
.pb-ana-bead-top-cell.is-mid   { color:#2563eb; font-weight:700; } /* 중 */
.pb-ana-bead-top-cell.is-large { color:#ef4444; font-weight:700; } /* 대 */

/* 방금 나온 회차 1초 하이라이트 */
.pb-flash {
  animation: pbFlash 1s ease-in-out 1;
}
@keyframes pbFlash {
  0%   { box-shadow: 0 0 0 rgba(34,197,94,0); transform: translateY(0); }
  35%  { box-shadow: 0 0 0.9rem rgba(34,197,94,0.35); transform: translateY(-1px); }
  100% { box-shadow: 0 0 0 rgba(34,197,94,0); transform: translateY(0); }
}

/* 현재 회차(진행중) 표시줄 느낌 */
.pb-round-item.is-current,
.pb-result-item.is-current{
  opacity: .95;
}

/* placeholder(현재회차 ?줄) 회차 텍스트 굵게 금지 */
.pb-round-item.is-current .pb-round-meta,
.pb-result-item.is-current .pb-round-meta{
  font-weight: 400 !important;
}

/* placeholder(현재회차 ?줄)에서는 P 뱃지 숨김 */
.pb-round-item.is-current .pb-ball-power .pb-pbadge,
.pb-result-item.is-current .pb-ball-power .pb-pbadge{
  display: none !important;
}

/* =========================================
   오른쪽 패널 탭(지난 결과/지난 번호) 전용
   ========================================= */
.pb-panel-tabs .pb-panel-title-tabs{
  display:flex;
  gap:10px;
  padding:10px 0 8px;   /* 좌우 padding 제거 */
}

.pb-panel-tabs .pb-side-tab-btn{
  appearance:none;
  border:1px solid #dbe3f0;
  background:#f6f9ff;
  color:#334155;
  font-weight:700;
  font-size:13px;
  padding:10px 12px;
  border-radius:10px;
  cursor:pointer;
  line-height:1;
  box-shadow:0 1px 0 rgba(0,0,0,.03);
  transition:background .15s ease, border-color .15s ease, transform .1s ease;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  text-align:center;
  flex:1;             /* 버튼 2개 동일 너비 */
  width:100%;
  height:64px;
}

.pb-panel-tabs .pb-side-tab-btn:hover{
  background:#eef5ff;
  border-color:#c9d8ff;
}

.pb-panel-tabs .pb-side-tab-btn:active{
  transform:translateY(1px);
}

.pb-panel-tabs .pb-side-tab-btn.active{
  background:#ffffff;
  border-color:#93c5fd;
  color:#0f172a;
  box-shadow:0 6px 14px rgba(37,99,235,.10);
}

/* 제목 줄: 점 + 제목 가로 */
.pb-panel-tabs .pb-tab-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:800;
  line-height:1.15;
}

.pb-panel-tabs .pb-tab-title::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background: linear-gradient(135deg, #22c55e, #22d3ee);
  flex:0 0 8px;
}

/* 배지 */
.pb-panel-tabs .pb-tab-badge{
  font-size:11px;
  font-weight:800;
  padding:3px 8px;
  border-radius:999px;
  background:#eef5ff;
  color:#1d4ed8;
  border:1px solid #dbeafe;
  line-height:1;
  white-space:nowrap;
  justify-self:start;
  align-self:center;
}

.pb-panel-tabs .pb-side-tab-btn.active .pb-tab-badge{
  background:#e0ecff;
  border-color:#bfdbfe;
}

/* 탭 본문 */
.pb-panel-tabs .pb-side-tab-pane{
  display:none;
}

.pb-panel-tabs .pb-side-tab-pane.active{
  display:block;
}

.pb-panel-tabs .pb-more-wrap-side{
  padding:0;
}

.pb-panel-title-right-tab {
  font-size: 14px;
  font-weight: 800;
  padding: 2px 4px 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 1);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 새 결과 알림 바 */
.pb-recent-newbar{
  padding: 0 10px 8px;
}

.pb-recent-newbtn{
  width:100%;
  appearance:none;
  border:1px solid #bfdbfe;
  background:linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  color:#1d4ed8;
  font-size:12px;
  font-weight:800;
  border-radius:10px;
  padding:9px 12px;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(37,99,235,.08);
  transition:all .15s ease;
}

.pb-recent-newbtn:hover{
  background:linear-gradient(180deg, #ffffff 0%, #eaf3ff 100%);
  border-color:#93c5fd;
}

.pb-recent-newbtn::before{
  content:"⬆ ";
  font-weight:900;
}

/* =========================================
   왼쪽 랭킹 패널 - 프리미엄 토토 스타일
   ========================================= */

.pb-rank-panel-premium {
  position: relative;
  overflow: hidden;
}

.pb-rank-panel-premium::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59,130,246,.12), transparent 70%);
  pointer-events: none;
}

.pb-panel-left {
  padding-bottom: 12px;
}

.pb-rank-simple-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 개별 카드 */
.pb-rank-simple-item {
  display: flex;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 6px 14px rgba(15,23,42,.05),
    inset 0 1px 0 rgba(255,255,255,.95);
  transition:
    transform .14s ease,
    box-shadow .14s ease,
    border-color .14s ease;
}

.pb-rank-simple-item:hover {
  transform: translateY(-1px);
  border-color: rgba(96,165,250,.7);
  box-shadow:
    0 12px 18px rgba(59,130,246,.08),
    0 0 0 1px rgba(147,197,253,.20);
}

/* 왼쪽 순위 뱃지 */
.pb-rank-simple-no {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;

  box-shadow:
    0 8px 14px rgba(15,23,42,.12),
    inset 0 1px 0 rgba(255,255,255,.24);
}

.pb-rank-simple-no.is-rank-1 {
  background: linear-gradient(180deg, #f59e0b 0%, #ea580c 100%);
}
.pb-rank-simple-no.is-rank-2 {
  background: linear-gradient(180deg, #9ca3af 0%, #475569 100%);
}
.pb-rank-simple-no.is-rank-3 {
  background: linear-gradient(180deg, #60a5fa 0%, #1d4ed8 100%);
}
.pb-rank-simple-no.is-rank-4,
.pb-rank-simple-no.is-rank-5,
.pb-rank-simple-no.is-rank-6,
.pb-rank-simple-no.is-rank-7,
.pb-rank-simple-no.is-rank-8,
.pb-rank-simple-no.is-rank-9,
.pb-rank-simple-no.is-rank-10 {
  background: linear-gradient(180deg, #cbd5e1 0%, #64748b 100%);
}

/* 오른쪽 본문 */
.pb-rank-simple-body {
  flex: 1 1 auto;
  min-width: 0;
}

/* 닉네임 + 수익 배지 */
.pb-rank-simple-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.pb-rank-simple-name {
  min-width: 0;
  font-size: 15px;
  font-weight: 900;
  color: #111827;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 전적 */
.pb-rank-simple-record {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 4px;
}

/* 하단 정보줄 */
.pb-rank-simple-profit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pb-rank-simple-winrate {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid rgba(226,232,240,.95);
  font-size: 11px;
  font-weight: 800;
  color: #475569;
}

.pb-rank-simple-total {
  font-size: 11px;
  font-weight: 800;
  color: #6b7280;
}

/* 수익 배지 */
.pb-rank-profit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35);
}

.pb-rank-profit-badge.profit-plus {
  color: #ffffff;
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  border-color: rgba(21,128,61,.95);
}

.pb-rank-profit-badge.profit-minus {
  color: #ffffff;
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  border-color: rgba(185,28,28,.95);
}

/* 혹시 기존 텍스트형 수익 클래스 남아 있어도 대응 */
.pb-rank-simple-profit.profit-plus {
  color: #16a34a;
}
.pb-rank-simple-profit.profit-minus {
  color: #ef4444;
}

/* =========================================
   베팅 패널 프리미엄 보드형 UI
   ========================================= */

.pb-bet-wrap-premium{
  position: relative;
  overflow: hidden;
}

.pb-bet-wrap-premium::before{
  content:"";
  position:absolute;
  top:-60px;
  right:-60px;
  width:180px;
  height:180px;
  border-radius:999px;
  background: radial-gradient(circle, rgba(59,130,246,.08), transparent 70%);
  pointer-events:none;
}

.pb-bet-board-tabs{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:8px;
  margin-bottom:12px;
}

.pb-bet-tab-btn{
  appearance:none;
  border:1px solid rgba(203,213,225,.95);
  background:linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color:#475569;
  font-size:12px;
  font-weight:800;
  line-height:1.3;
  min-height:44px;
  padding:10px 8px;
  border-radius:12px;
  cursor:pointer;
  text-align:center;
  box-shadow:
    0 4px 10px rgba(148,163,184,.16),
    inset 0 1px 0 rgba(255,255,255,.95);
  transition:all .14s ease;
}

.pb-bet-tab-btn:hover{
  background:linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  border-color:rgba(96,165,250,.72);
  color:#1d4ed8;
}

.pb-bet-tab-btn.active{
  background:linear-gradient(135deg, #2563eb, #3b82f6);
  color:#fff;
  border-color:#2563eb;
  box-shadow:
    0 8px 18px rgba(37,99,235,.26),
    0 0 0 1px rgba(191,219,254,.35);
}

.pb-bet-tab-panel{
  display:none;
}

.pb-bet-tab-panel.active{
  display:block;
}

.pb-bet-board-row{
  display:grid;
  gap:10px;
}

.pb-bet-board-row.cols-2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pb-bet-board-row.cols-3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pb-bet-board-card{
  position:relative;
  padding:12px;
  border-radius:0 0 16px 16px;
  background:linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border:1px solid rgba(226,232,240,.95);
  box-shadow:
    0 6px 14px rgba(148,163,184,.14),
    inset 0 1px 0 rgba(255,255,255,.96);
}

.pb-bet-board-card::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:3px;
  border-radius:16px 16px 0 0;
  background:linear-gradient(90deg, #2563eb, #60a5fa);
  opacity:.9;
}

.pb-bet-board-card-head{
  margin-bottom:10px;
}

.pb-bet-board-card-title{
  font-size:13px;
  font-weight:900;
  color:#0f172a;
  line-height:1.25;
  margin-bottom:4px;
}

.pb-bet-board-card-sub{
  font-size:11px;
  color:#94a3b8;
  line-height:1.45;
}

/* 버튼 박스는 카드 개수랑 별개, 카드 내부 균등 정렬 */
.pb-bet-board-card .pb-bet-options{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:1fr;
  gap:6px;
}

.pb-bet-board-card .pb-bet-option{
  width:100%;
  min-width:0;
  min-height:38px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(203,213,225,.95);
  background:linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  font-size:12px;
  font-weight:800;
  color:#475569;
  cursor:pointer;
  text-align:center;
  white-space:nowrap;
  box-shadow:
    0 2px 6px rgba(148,163,184,.16),
    inset 0 1px 0 rgba(255,255,255,.96);
  transition:all .12s ease;
}

.pb-bet-board-card .pb-bet-option:hover{
  background:linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  border-color:rgba(96,165,250,.72);
  color:#1d4ed8;
  transform:translateY(-1px);
}

.pb-bet-board-card .pb-bet-option.active{
  background:linear-gradient(135deg, #2563eb, #3b82f6);
  color:#fff;
  border-color:#2563eb;
  box-shadow:
    0 6px 14px rgba(37,99,235,.22),
    0 0 0 1px rgba(191,219,254,.34);
}

.pb-bet-board-card .pb-bet-option.disabled,
.pb-bet-board-card .pb-bet-option.disabled:hover{
  opacity:.45;
  cursor:not-allowed !important;
  background:linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color:#94a3b8;
  border-color:rgba(226,232,240,.95);
  box-shadow:none;
  transform:none;
}

/* 하단 선택/금액부 더 묵직하게 */
.pb-bet-footer{
  margin-top:12px;
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap:14px;
  align-items:stretch;
}

.pb-bet-box{
  padding:14px 16px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,250,252,.98) 100%);
  border:1px solid rgba(226,232,240,.96);
  box-shadow:
    0 8px 18px rgba(148,163,184,.18),
    inset 0 1px 0 rgba(255,255,255,.96);
}

.pb-bet-selected{
  font-size:13px;
  font-weight:800;
  color:#0f172a;
  min-height:22px;
}

.pb-bet-mypoint{
  margin-top:6px;
  margin-bottom:10px;
}

.pb-bet-buttons{
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* 포인트 베팅 탭 스타일을 통계 탭에도 동일 적용 */
.pb-ana-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  margin-bottom: 14px;
}

.pb-ana-tab-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  color: #475569;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
}

.pb-ana-tab-btn:hover {
  background: #eef4ff;
  border-color: #bfd3ff;
  color: #1d4ed8;
}

.pb-ana-tab-btn.active {
  background: linear-gradient(180deg, #2b6fff 0%, #1f56d8 100%);
  border-color: #1f56d8;
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}

/* 반응형 */
@media (max-width: 900px){
  .pb-bet-board-tabs{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pb-bet-board-row.cols-3{
    grid-template-columns: 1fr;
  }

  .pb-bet-board-row.cols-2{
    grid-template-columns: 1fr;
  }

  .pb-bet-footer{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .pb-bet-board-tabs{
    grid-template-columns: 1fr;
  }
}

/* 모바일 */
@media (max-width: 640px) {
  .pb-rank-simple-item {
    padding: 10px 10px;
    gap: 10px;
  }

  .pb-rank-simple-no {
    width: 30px;
    min-width: 30px;
    height: 30px;
    font-size: 15px;
    border-radius: 10px;
  }

  .pb-rank-simple-name {
    font-size: 14px;
  }

  .pb-rank-profit-badge {
    min-width: 66px;
    font-size: 10px;
    padding: 4px 8px;
  }
}

@media (max-width: 640px) {
  .pb-rank-simple-name {
    font-size: 16px;
  }

  .pb-rank-simple-no {
    width: 30px;
    min-width: 30px;
    font-size: 16px;
  }
}

/* 모바일에서 글자 조금 줄이기 */
@media (max-width: 640px) {
  .pb-rank-simple-name {
    font-size: 16px;
  }

  .pb-rank-simple-no {
    width: 30px;
    min-width: 30px;
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .pb-ana-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pb-ana-card {
    padding: 14px 12px 16px;
  }
}

/* 반응형 */
@media (max-width: 900px) {
  .pb-main {
    grid-template-columns: 1fr;
  }
  .pb-panel-center {
    order: -1;
  }
  .pb-bet-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pb-page-wrap {
    margin: 14px auto;
    padding: 16px 14px 18px;
    border-radius: 18px;
  }

  .pb-top-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .pb-countdown-bar {
    width: 100%;
  }

  .pb-bet-groups {
    grid-template-columns: 1fr;
  }

  .pb-bet-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .pb-bet-buttons {
    width: 100%;
    justify-content: flex-start;
  }
}