/* ============================================================
   DAILY STREAK — clean, app-native rewards UI
   ============================================================ */

body.sk-lock { overflow: hidden; }

/* Slightly deeper gold for small text on pale surfaces. */
:root { --sk-gold-ink: var(--gold); }
[data-theme="ivory"], [data-theme="light"], [data-theme="soda"] {
  --sk-gold-ink: #7A5A06;
}

.sk-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sk-ic svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* ---------- HOME / ARCADE CARD ---------- */

.sk-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  text-align: left;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.sk-card.ready { border-color: var(--gold-border); }
.sk-card:active { transform: scale(.985); }
.sk-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sk-card.sk-loading {
  min-height: 92px;
  pointer-events: none;
}
.sk-card.sk-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, var(--skeleton-hi) 48%, transparent 76%);
  transform: translateX(-100%);
  animation: sk-shimmer 1.35s ease-in-out infinite;
}
@keyframes sk-shimmer {
  to { transform: translateX(100%); }
}

.sk-card-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--gold);
}
.sk-card-ic .sk-ic svg { width: 26px; height: 26px; }

.sk-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.sk-card-kicker {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1.7px;
  color: var(--muted);
  text-transform: uppercase;
}
.sk-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.2px;
  color: var(--text);
}
.sk-card-title b {
  color: var(--gold);
  font-weight: 800;
}
.sk-card-sub {
  display: -webkit-box;
  margin-top: 1px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.sk-card-progress {
  height: 4px;
  margin-top: 8px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}
.sk-card-progress i {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: var(--gold);
  transition: width .35s ease;
}
.sk-card-progress i[style*="width:0"] { opacity: 0; }

.sk-claim-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 10px;
  background: var(--gold-fill);
  color: var(--on-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1px;
}
.sk-card-done {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(var(--success-rgb), .20);
  border-radius: 99px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 10px;
  font-weight: 800;
}
.sk-card-done .sk-ic svg { width: 13px; height: 13px; }

/* ---------- BOTTOM SHEET ---------- */

.sk-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 8dvh;
  background-color: transparent;
  transition: background-color .2s ease;
  overscroll-behavior: contain;
  -webkit-tap-highlight-color: transparent;
}
.sk-overlay.show { background-color: var(--overlay); }
.sk-overlay.closing { background-color: transparent; }

.sk-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  padding-top: 10px;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background: var(--bg);
  box-shadow: 0 -10px 30px -24px rgba(0, 0, 0, .5);
  overflow: hidden;
  transform: translate3d(0, 40px, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  transition: transform .26s cubic-bezier(.32, .72, 0, 1);
}
.sk-overlay.show .sk-sheet {
  transform: translate3d(0, 0, 0);
}
.sk-overlay.closing .sk-sheet {
  transform: translate3d(0, 100%, 0);
  transition: transform .22s cubic-bezier(.4, 0, .7, .2);
}
.sk-sheet.dragging {
  transition: none;
  will-change: transform;
}
.sk-sheet::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: var(--border-strong);
  opacity: .75;
  transform: translateX(-50%);
}

.sk-sheet-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px 8px;
}
.sk-sheet-heading {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.sk-head-kicker {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.sk-head-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.3px;
  color: var(--text);
}
.sk-close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  cursor: pointer;
}
.sk-close:active { transform: scale(.94); }
.sk-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sk-close .sk-ic svg { width: 16px; height: 16px; }

.sk-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 2px 18px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.sk-sheet-body::-webkit-scrollbar { display: none; }

/* ---------- SUMMARY ---------- */

.sk-summary {
  position: relative;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--card);
  overflow: hidden;
}
.sk-summary-top {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.sk-summary-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 43px;
  height: 43px;
  color: var(--gold);
}
.sk-summary-icon .sk-ic svg { width: 21px; height: 21px; }
.sk-summary-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.sk-summary-kicker {
  display: block;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.sk-summary-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 1px;
}
.sk-summary-value strong {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.5px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.sk-summary-value span {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}
.sk-summary-sub {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
}
.sk-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .35px;
  line-height: 1;
}
.sk-status.ready {
  color: var(--sk-gold-ink);
  border-color: var(--gold-border);
  background: var(--gold-soft);
}
.sk-status.claimed {
  color: var(--success);
  border-color: rgba(var(--success-rgb), .20);
  background: var(--success-soft);
}
.sk-status.reset {
  color: var(--danger);
  border-color: rgba(var(--danger-rgb), .18);
  background: var(--danger-soft);
}
.sk-status.new {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), .20);
  background: var(--accent-soft);
}

.sk-progress {
  height: 5px;
  margin-top: 12px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}
.sk-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
  transition: width .35s ease;
}
.sk-progress-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
}
.sk-progress-foot span:last-child {
  color: var(--text);
  opacity: .7;
  text-align: right;
}

/* ---------- TODAY ---------- */

.sk-today {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--card);
}
.sk-today-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  color: var(--gold);
}
.sk-today-icon.character {
  color: var(--accent);
}
.sk-today-icon .sk-ic svg { width: 16px; height: 16px; }
.sk-today-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1 1 auto;
  min-width: 0;
}
.sk-today-kicker {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: var(--muted);
}
.sk-today-title {
  display: -webkit-box;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ---------- CALENDAR ---------- */

.sk-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 13px 2px 8px;
}
.sk-section-head h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -.1px;
  color: var(--text);
}
.sk-section-head h3 .sk-ic { color: var(--sk-gold-ink); }
.sk-section-head h3 .sk-ic svg { width: 14px; height: 14px; }
.sk-section-head > span {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

.sk-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.sk-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3px;
  min-height: 51px;
  padding: 6px 7px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  opacity: .82;
  overflow: hidden;
  transition: border-color .18s ease, background .18s ease;
}
.sk-cell.done {
  opacity: 1;
  border-color: rgba(var(--success-rgb), .18);
  background: var(--success-soft);
}
.sk-cell.character:not(.done):not(.today) {
  border-color: rgba(var(--accent-rgb), .20);
}
.sk-cell.grand:not(.done):not(.today) {
  border-color: var(--gold-border);
}
.sk-cell.today {
  opacity: 1;
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 0 2px var(--gold-soft);
}
.sk-cell.today.done {
  background: var(--gold-soft);
}
.sk-cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.sk-cell-day {
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sk-cell-ic { color: var(--muted); }
.sk-cell-ic svg { width: 12px; height: 12px; }
.sk-cell.done .sk-cell-ic { color: var(--success); }
.sk-cell.today .sk-cell-ic { color: var(--sk-gold-ink); }
.sk-cell.character:not(.done):not(.today) .sk-cell-ic { color: var(--accent); }
.sk-cell.grand:not(.done):not(.today) .sk-cell-ic { color: var(--sk-gold-ink); }
.sk-cell-amt {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sk-cell.done .sk-cell-amt { color: var(--text); opacity: .72; }
.sk-cell.today .sk-cell-amt { color: var(--sk-gold-ink); opacity: 1; }
.sk-cell.today .sk-cell-day { color: var(--sk-gold-ink); }
.sk-cell-bonus { color: var(--accent); }
.sk-cell-bonus svg { width: 10px; height: 10px; }
.sk-cell.today .sk-cell-bonus { color: var(--sk-gold-ink); }

.sk-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  margin: 9px 2px 0;
}
.sk-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
}
.sk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.sk-dot.done { background: var(--success); }
.sk-dot.today { background: var(--gold); }
.sk-dot.character { background: var(--accent); }

/* ---------- FOOTER / CTA ---------- */

.sk-sheet-foot {
  flex: 0 0 auto;
  padding: 10px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.sk-foot-note {
  display: block;
  margin-bottom: 8px;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
}
.sk-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 47px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: var(--gold-fill);
  color: var(--on-gold);
  font-family: Manrope, var(--font-display), sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .14s ease, opacity .14s ease;
}
.sk-cta:active:not(:disabled) { transform: scale(.988); }
.sk-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sk-cta .sk-ic svg { width: 15px; height: 15px; }
.sk-cta.done,
.sk-cta:disabled {
  background: var(--surface-2);
  color: var(--muted);
  box-shadow: none;
  cursor: default;
}
.sk-cta.done .sk-ic,
.sk-cta:disabled .sk-ic { color: var(--success); }
.sk-cta.busy { opacity: .72; }
.sk-cta-coin {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFF0BE, #DFA42A 72%);
  box-shadow: inset 0 -1px 2px rgba(120, 70, 0, .28);
}
.sk-cta-bonus { color: #4A3000; }
.sk-cta-dot {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(42, 26, 0, .22);
  border-top-color: #2A1A00;
  border-radius: 50%;
  animation: sk-spin .75s linear infinite;
}
@keyframes sk-spin { to { transform: rotate(360deg); } }

/* ---------- CLAIM RESULT ---------- */

.sk-sheet.reward {
  justify-content: center;
  padding: 26px 20px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.sk-sheet.reward::before { display: none; }
.sk-reward {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
}
.sk-reward-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: var(--success);
  border: 1px solid rgba(var(--success-rgb), .22);
  border-radius: 50%;
  background: var(--success-soft);
  animation: sk-pop .32s cubic-bezier(.2, .8, .25, 1) both;
}
.sk-reward-check .sk-ic svg { width: 24px; height: 24px; }
@keyframes sk-pop {
  from { transform: scale(.82); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.sk-reward-kicker {
  margin-top: 13px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.sk-reward-title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.4px;
  color: var(--text);
}
.sk-r-coins {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
}
.sk-coin-lg {
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFF0BE, #E3A62B 72%);
  box-shadow: inset 0 -2px 3px rgba(120, 70, 0, .25), 0 4px 10px rgba(180, 120, 20, .15);
}
.sk-r-amount {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .2px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.sk-reward-note {
  margin: 7px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.sk-r-waifu {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin-top: 17px;
  padding: 9px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--card);
}
.sk-r-frame {
  position: relative;
  flex-shrink: 0;
  width: 58px;
  height: 74px;
  border: 1px solid var(--rc, var(--border-strong));
  border-radius: 11px;
  background: var(--surface-2);
  overflow: hidden;
}
.sk-r-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sk-r-new {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 1;
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--gold-fill);
  color: var(--on-gold);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .4px;
}
.sk-r-winfo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}
.sk-r-wkicker {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.sk-r-wname {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sk-r-wbadge { display: flex; align-items: center; }
.sk-reward-next {
  margin: 16px 0 12px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
}
.sk-reward .sk-cta { margin-top: 2px; }

/* ---------- SMALL SCREENS ---------- */

@media (max-width: 370px) {
  .sk-card {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }
  .sk-card-ic { width: 44px; height: 44px; border-radius: 14px; }
  .sk-card-ic .sk-ic svg { width: 22px; height: 22px; }
  .sk-card-title { font-size: 18px; }
  .sk-card-sub { font-size: 10px; }
  .sk-claim-pill { padding: 0 11px; }
  .sk-sheet-body { padding-left: 15px; padding-right: 15px; }
  .sk-sheet-foot { padding-left: 15px; padding-right: 15px; }
  .sk-sheet-head { padding-left: 15px; padding-right: 15px; }
  .sk-grid { gap: 5px; }
  .sk-cell { min-height: 50px; padding: 6px; border-radius: 11px; }
  .sk-cell-amt { font-size: 10px; }
  .sk-summary { padding: 12px; }
  .sk-summary-value strong { font-size: 31px; }
  .sk-summary-sub { font-size: 10.5px; }
}

@media (max-height: 700px) {
  .sk-sheet { max-height: 94dvh; }
  .sk-summary-value strong { font-size: 30px; }
  .sk-cell { min-height: 49px; }
  .sk-foot-note { margin-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .sk-overlay,
  .sk-sheet,
  .sk-card,
  .sk-cta,
  .sk-progress i,
  .sk-card-progress i {
    transition: none !important;
  }
  .sk-card.sk-loading::after,
  .sk-cta-dot,
  .sk-reward-check {
    animation: none !important;
  }
  .sk-overlay.show .sk-sheet { transform: none; }
}

/* ---------- ARCADE SCROLL PERFORMANCE ---------- */

.jp-post,
.bs-entry,
.mn-entry,
.mf-entry {
  content-visibility: auto;
  contain-intrinsic-size: auto 118px;
}

.mn-entry,
.mf-entry { animation: none; }
