.sj-point-earn {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

.sj-point-earn-btn {
  width: 100%;
}

.sj-point-earn-btn.is-guest {
  background: linear-gradient(135deg, #3157ff, #6b8cff);
}

.sj-point-earn-btn.is-done {
  opacity: 0.72;
  cursor: default;
}

.sj-point-earn-status {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #1e3a8a;
}

.sj-point-earn-status.is-error {
  color: #b42318;
}

.sj-point-earn-status.is-ok {
  color: #027a48;
}

.sj-point-earn-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #667085;
}

.sj-point-earn-hint a {
  color: #3157ff;
  text-decoration: underline;
}

.mypage-points-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 16px 0 24px;
  padding: 16px 18px;
  border: 1px solid #e5e8eb;
  border-radius: 12px;
  background: #f8fafc;
}

.mypage-points-summary strong {
  font-size: 22px;
  color: #3157ff;
}

.mypage-points-summary span {
  color: #667085;
  font-size: 13px;
}

.mypage-points-table {
  width: 100%;
  border-collapse: collapse;
}

.mypage-points-table th,
.mypage-points-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #eef1f4;
  font-size: 13px;
  text-align: left;
}

.mypage-points-table th {
  color: #667085;
  font-weight: 600;
}

/* Shared playground / luckybox points bar */
.sj-points-bar {
  position: sticky;
  top: var(--sj-points-bar-top, 0px);
  z-index: 450;
  width: 100%;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #fff8e8 0%, #ffefd1 100%);
  box-shadow: none;
  transition: box-shadow 0.18s ease;
}

.sj-points-bar.is-stuck {
  box-shadow: 0 6px 16px rgba(20, 29, 50, 0.08);
}

.sj-points-bar-spacer {
  display: none;
  width: 100%;
  height: 0;
  pointer-events: none;
}

.sj-points-bar.is-fixed {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.sj-points-bar.is-fixed + .sj-points-bar-spacer,
.sj-points-bar-spacer.is-active {
  display: block;
}

.sj-points-bar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}

.sj-points-bar__main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.sj-points-bar__main--guest {
  align-items: center;
}

.sj-points-bar__label {
  font-size: 13px;
  font-weight: 800;
  color: #6b7280;
  white-space: nowrap;
}

.sj-points-bar__value {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.sj-points-bar__value [data-sj-points-balance] {
  color: #b45309;
  font-variant-numeric: tabular-nums;
}

.sj-points-bar__unit {
  font-size: 13px;
  font-weight: 800;
  color: #92400e;
}

.sj-points-bar__guest-msg {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: #7c2d12;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.sj-points-bar__actions {
  flex: 0 0 auto;
}

.sj-points-bar__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(180, 83, 9, 0.28);
  background: #fff;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.sj-points-bar__link--primary {
  border-color: #3157ff;
  background: #3157ff;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(49, 87, 255, 0.22);
}

.sj-points-bar__link:hover {
  background: #fff7ed;
}

.sj-points-bar__link--primary:hover {
  background: #2746d4;
}

.sj-points-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(18px);
  z-index: 9999;
  min-width: 180px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sj-points-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .sj-points-bar__inner {
    padding: 10px 12px;
  }

  .sj-points-bar__value {
    font-size: 18px;
  }

  .sj-points-bar__guest-msg {
    font-size: 12px;
  }

  .sj-points-bar__link {
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
  }
}
