
/* BIG SLICK Poker Academy — Gamification Enhancement v1 */

/* 우측 상단 — 레벨 / XP 위젯 */
.bsg_hud {
  position: fixed;
  bottom: 70px; right: 16px;
  z-index: 9000;
  background: linear-gradient(135deg, rgba(0,0,0,.85), rgba(20,30,40,.85));
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  border: 1px solid rgba(215,177,90,.5);
  cursor: pointer;
  transition: transform .2s;
  user-select: none;
  backdrop-filter: blur(8px);
}
.bsg_hud:hover { transform: scale(1.05); }
.bsg_hud .lv {
  background: linear-gradient(135deg,#d7b15a,#b89339);
  color: #fff;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.bsg_hud .xp {
  font-family: SFMono-Regular, monospace;
  font-size: 11px;
  opacity: .85;
}
.bsg_hud .nick {
  color: #d7b15a;
}

/* 레벨 진행 바 (HUD 클릭 시 펼침) */
.bsg_panel {
  position: fixed;
  bottom: 130px; right: 16px;
  z-index: 9001;
  background: rgba(20,25,35,.96);
  color: #fff;
  padding: 16px 18px;
  border-radius: 14px;
  width: 280px;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  border: 1px solid rgba(215,177,90,.4);
  backdrop-filter: blur(10px);
  font-size: 13px; line-height: 1.6;
}
.bsg_panel.show { display: block; animation: slideIn .25s; }
@keyframes slideIn { from { opacity:0; transform: translateY(10px);} to { opacity:1; transform: translateY(0);} }
.bsg_panel h4 { margin:0 0 10px; font-size:14px; color:#d7b15a; }
.bsg_panel .row { display:flex; justify-content:space-between; margin-bottom:6px; opacity:.9; }
.bsg_panel .bar { background:rgba(255,255,255,.1); height:6px; border-radius:3px; overflow:hidden; margin-top:8px; }
.bsg_panel .fill { background: linear-gradient(90deg,#d7b15a,#f0c870); height:100%; transition: width .5s ease; }
.bsg_panel .badges { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.bsg_panel .badge {
  background: rgba(215,177,90,.15);
  border:1px solid rgba(215,177,90,.4);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
}
.bsg_panel .badge.locked { opacity:.3; }
.bsg_panel .reset_btn {
  margin-top: 12px; padding: 6px 12px;
  background:transparent; color:rgba(255,255,255,.5);
  border:1px solid rgba(255,255,255,.15); border-radius:6px;
  font-size:11px; cursor:pointer;
}

/* 콤보 / streak 큰 메시지 */
.bsg_burst {
  position: fixed;
  top: 35%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 9999;
  font-size: 80px; font-weight: 900;
  color: #d7b15a;
  text-shadow: 0 4px 20px rgba(215,177,90,.6), 0 0 40px rgba(215,177,90,.3);
  pointer-events: none;
  letter-spacing: -.04em;
}
.bsg_burst.show { animation: burstIn .8s cubic-bezier(.34,1.56,.64,1) forwards; }
@keyframes burstIn {
  0%   { transform: translate(-50%,-50%) scale(0) rotate(-15deg); opacity: 0; }
  30%  { transform: translate(-50%,-50%) scale(1.3) rotate(0); opacity: 1; }
  60%  { transform: translate(-50%,-50%) scale(1) rotate(0); opacity: 1; }
  100% { transform: translate(-50%,-55%) scale(.9) rotate(0); opacity: 0; }
}

/* AI 코치 말풍선 */
.bsg_coach {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 9000;
  display: flex; gap: 10px; align-items: flex-end;
  pointer-events: none;
  max-width: 360px;
}
.bsg_coach_avatar {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, hsl(160,55%,55%), hsl(200,50%,45%));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  flex-shrink: 0;
}
.bsg_coach_bubble {
  background: rgba(20,25,35,.96);
  color: #fff;
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  font-size: 13px; line-height: 1.5;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  border: 1px solid rgba(215,177,90,.3);
  pointer-events: auto;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}
.bsg_coach.show .bsg_coach_bubble {
  opacity: 1; transform: translateY(0);
}
.bsg_coach_bubble .name {
  font-size: 11px; color: #d7b15a;
  font-weight: 700; margin-bottom: 2px;
}
.bsg_coach_close {
  position: absolute; top:4px; right:6px;
  background:transparent; border:0; color:rgba(255,255,255,.4);
  cursor:pointer; font-size:14px; padding:0 4px;
}

/* 일일 도전 배너 */
.bsg_daily {
  margin: 16px auto;
  max-width: 720px;
  padding: 14px 18px;
  background: linear-gradient(135deg,#1a3a52,#2a4a62);
  color:#fff;
  border-radius: 12px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 4px 16px rgba(26,58,82,.3);
}
.bsg_daily.done {
  background: linear-gradient(135deg, #145a3c, #1a7a52);
}
.bsg_daily .icon { font-size: 28px; }
.bsg_daily .txt { flex: 1; }
.bsg_daily .ttl { font-weight:700; font-size:14px; }
.bsg_daily .sub { font-size:12px; opacity:.85; margin-top:2px; }
.bsg_daily .btn {
  background:#d7b15a; color:#000; padding:8px 18px; border-radius:8px;
  font-weight:700; font-size:13px; cursor:pointer; border:0;
}
.bsg_daily.done .btn { background:rgba(255,255,255,.25); color:#fff; }

/* 파티클 (정답 효과) */
.bsg_particles {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
}
.bsg_particle {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d7b15a;
  animation: particle 1s ease-out forwards;
}
@keyframes particle {
  to { transform: translate(var(--tx), var(--ty)); opacity: 0; }
}

/* 사운드 토글 */
.bsg_sound_toggle {
  position: fixed;
  bottom: 16px; right: 16px;
  z-index: 9000;
  background: rgba(0,0,0,.6);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:18px; border:0;
  backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,.15);
}

/* 모바일 조정 */
@media (max-width: 600px) {
  .bsg_hud { bottom: 65px; right: 8px; padding: 8px 12px; font-size: 11px; }
  .bsg_hud .lv { width: 22px; height: 22px; font-size: 10px; }
  .bsg_burst { font-size: 56px; }
  .bsg_coach { left: 12px; bottom: 12px; max-width: calc(100vw - 24px); }
  .bsg_coach_avatar { width: 44px; height: 44px; }
  .bsg_daily { margin: 12px; flex-direction: column; align-items: flex-start; }
}
