/* ============================================================
   내 정보 — 프로필 + 기록 메뉴 (포인트 / 잭팟 / 게임)
   pf- 접두사만 사용
   ============================================================ */

.pf-page { max-width: 860px; margin-left: auto; margin-right: auto; }

/* ---------- 상단 프로필 ---------- */
.pf-top { display: flex; align-items: center; gap: 18px; padding: 8px 4px; }
.pf-duck { width: 84px; height: 84px; flex: none; }
.pf-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pf-nick { font-size: 17px; font-weight: 900; color: var(--tx); }
.pf-sub { font-size: 12.5px; font-weight: 700; color: var(--tx-sub); }
.pf-points { font-size: 19px; }
.pf-points .gg-coin { width: 22px; height: 22px; }

/* ---------- 메뉴 탭 ---------- */
.pf-tabs { margin-bottom: 14px; }

.pf-subtabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef4fb;
}
.pf-subtab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: #f5faff;
  color: #4a6a9c;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.pf-subtab img { width: 18px; height: 18px; object-fit: contain; image-rendering: pixelated; }
.pf-subtab:hover { background: #e8f1ff; }
.pf-subtab.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ---------- 공통 ---------- */
.pf-cap {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 900;
  color: var(--tx);
}
.pf-cap b { color: var(--tx-sub); font-weight: 700; font-size: 12px; margin-left: 4px; }

.pf-loading, .pf-error { font-size: 13px; font-weight: 700; color: var(--tx-sub); padding: 14px 2px; margin: 0; }
.pf-error { color: #e03131; }

.pf-empty { text-align: center; padding: 40px 16px; }
.pf-empty img { width: 62px; height: 62px; object-fit: contain; image-rendering: pixelated; opacity: .7; }
.pf-empty p { margin: 12px 0 0; font-size: 13px; font-weight: 700; color: var(--tx-sub); line-height: 1.7; }

/* ---------- 요약 칩 ---------- */
.pf-sum { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pf-sum-item {
  flex: 1 1 120px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--card-border);
  border-radius: 13px;
  background: #f5faff;
}
.pf-sum-item span { display: block; font-size: 11px; font-weight: 800; color: var(--tx-sub); margin-bottom: 3px; }
.pf-sum-item b { font-size: 15px; font-weight: 900; color: var(--tx); font-variant-numeric: tabular-nums; }
.pf-sum-item.is-gold { border-color: #ffe0a8; background: linear-gradient(180deg, #fff9ec, #fff3dc); }
.pf-sum-item.is-gold b { color: #d98c07; }

/* ---------- 잭팟 일시 ---------- */
.pf-when { font-weight: 800; color: #a8620f; font-variant-numeric: tabular-nums; }

/* ---------- 결과 뱃지 ---------- */
.pf-tier {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--tx-sub);
  font-size: 11.5px;
  font-weight: 900;
}
.pf-tier.is-jackpot { background: #fff1cf; color: #c07f06; }
.pf-tier.is-legend  { background: #ede4ff; color: #6b3fd0; }
.pf-tier.is-epic    { background: #e2f0ff; color: #1f66c8; }
.pf-tier.is-rare    { background: #e4f7ea; color: #23874a; }

/* ---------- 게임별 카드 ---------- */
.pf-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.pf-game {
  display: block;
  width: 100%;
  padding: 16px 14px 14px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: #fff;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.pf-game:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(20, 45, 90, .08);
}
.pf-game img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }
.pf-game-name { margin-top: 8px; font-size: 13.5px; font-weight: 900; color: var(--tx); }
.pf-game-plays {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 900;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.pf-game-plays small { font-size: 11.5px; font-weight: 800; color: var(--tx-sub); margin-left: 3px; }
.pf-game-stats {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef4fb;
}
.pf-game-stats span { font-size: 11.5px; font-weight: 700; color: var(--tx-sub); display: flex; justify-content: space-between; }
.pf-game-stats b { color: var(--tx); font-weight: 900; }
.pf-game-last { margin-top: 9px; font-size: 11px; font-weight: 700; color: #a8b3c4; }

/* ============================================================
   회원 기록 모달 (관리자 회원관리 → 기록 보기)
   ============================================================ */
.rc-modal-back {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(120, 160, 195, .32);
  backdrop-filter: blur(2px);
  animation: rcFade .18s ease;
}
@keyframes rcFade { from { opacity: 0; } }

.rc-modal {
  width: min(860px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(20, 45, 90, .26);
  animation: rcPop .26s cubic-bezier(.34, 1.4, .64, 1);
  overflow: hidden;
}
@keyframes rcPop { from { transform: scale(.94) translateY(10px); opacity: 0; } }

.rc-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #eef4fb;
}
.rc-modal-title { font-size: 17px; font-weight: 900; color: var(--tx); }
.rc-modal-sub { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--tx-sub); }
.rc-modal-x {
  flex: none;
  width: 32px; height: 32px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: #f5faff;
  color: var(--tx-sub);
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}
.rc-modal-x:hover { border-color: var(--blue); color: var(--blue); }

.rc-modal-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
}

/* ============================================================
   슬롯 강제 당첨 예약 (관리자 → 슬롯 설정)
   ============================================================ */
.sf-box {
  margin-top: 4px;
  padding: 16px 18px;
  border: 1px solid #f6ddb4;
  border-radius: 16px;
  background: #fff9ef;
}
.sf-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sf-form .gg-select { height: 34px; }
.sf-user { min-width: 200px; }

.sf-list { margin-top: 14px; }
.sf-list-title { font-size: 12px; font-weight: 900; color: var(--tx-sub); margin-bottom: 7px; }
.sf-list-title b { color: #c2761a; }

.sf-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 12px;
  margin-bottom: 6px;
  border: 1px solid #f0dcc0;
  border-radius: 11px;
  background: #fff;
}
.sf-row.is-used { border-color: var(--card-border); background: #f8fbfe; opacity: .8; }
.sf-nick { font-size: 13px; font-weight: 900; color: var(--tx); min-width: 80px; }
.sf-when { flex: 1; font-size: 11.5px; font-weight: 700; color: var(--tx-sub); }
.sf-empty { font-size: 12px; font-weight: 700; color: var(--tx-sub); padding: 4px 2px; }

/* ============================================================
   관리자 → 보상 설정 (출석체크 · 랜덤박스 · 오늘의 미션)
   ============================================================ */
.rw-wrap { display: flex; flex-direction: column; gap: 22px; max-width: 720px; }
.rw-sec { display: flex; flex-direction: column; }
.rw-title { font-size: 13px; font-weight: 900; color: var(--tx); margin-bottom: 4px; }
.rw-desc { font-size: 12px; font-weight: 700; color: var(--tx-sub); line-height: 1.6; margin-bottom: 12px; }
.rw-desc b { color: #256eeb; }
.rw-unit { font-size: 11.5px; font-weight: 800; color: var(--tx-sub); }
.rw-num { width: 118px; text-align: right; }

/* 출석 1~6일차 */
.rw-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; }
.rw-day { display: flex; align-items: center; gap: 7px; }
.rw-day-lbl {
  flex: none; width: 46px;
  font-size: 12px; font-weight: 900; color: #44578a;
}

/* 랜덤 박스 */
.rw-box { border: 1px solid var(--card-border); border-radius: 14px; overflow: hidden; }
.rw-box-head, .rw-box-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 120px;
  align-items: center; gap: 10px; padding: 9px 14px;
}
.rw-box-head { background: #f4f8fd; font-size: 11.5px; font-weight: 900; color: #5f6f92; }
.rw-box-row { border-top: 1px solid #eef4fb; }
.rw-box-row.is-last { background: #fbfdff; }
.rw-cell { display: flex; align-items: center; gap: 6px; }
.rw-rest {
  display: inline-flex; align-items: center; justify-content: flex-end;
  width: 118px; height: 32px; padding: 0 10px;
  border: 1px dashed #cfe0f5; border-radius: 9px; background: #f4f8fd;
  font-size: 12.5px; font-weight: 900; color: #44578a;
}
.rw-cycle { font-size: 11.5px; font-weight: 800; color: var(--tx-sub); text-align: right; }
.rw-box-sum {
  padding: 9px 14px; background: #f4f8fd; border-top: 1px solid #eef4fb;
  font-size: 11.5px; font-weight: 800; color: #5f6f92;
}
.rw-box-sum b { color: #172e67; }

/* 미션 */
.rw-ms { display: flex; flex-direction: column; border: 1px solid var(--card-border); border-radius: 14px; overflow: hidden; }
.rw-ms-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid #eef4fb; }
.rw-ms-row:first-child { border-top: none; }
.rw-ms-name { flex: 1 1 auto; min-width: 0; font-size: 12.5px; font-weight: 800; color: #2b3f6e; }

.rw-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rw-hint { font-size: 11.5px; font-weight: 700; color: var(--tx-sub); }

/* 신규 가입 보너스 */
.rw-signup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rw-signup-lbl { flex: none; font-size: 12px; font-weight: 900; color: #44578a; }
.rw-signup-now { font-size: 12px; font-weight: 800; color: #1d6bfa; }
.rw-signup-now.is-off { color: var(--tx-sub); }
