/* Shared coin wallet + daily streak / variety bonus chrome (see static/js/pv-player.js). */

.pv-coin-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(91, 33, 182, 0.14);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

[data-theme="dark"] .pv-coin-chip {
  border-color: rgba(233, 224, 255, 0.14);
}

.pv-coin-chip__ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: #eab308;
}

.pv-streak-chip {
  border-color: color-mix(in srgb, #f97316 45%, var(--border));
}

.pv-streak-chip .pv-coin-chip__ico {
  fill: #f97316;
}

.pv-streak-chip.is-cold {
  border-color: var(--border);
  color: var(--text-muted);
}

.pv-streak-chip.is-cold .pv-coin-chip__ico {
  fill: var(--text-muted);
}

.pv-coin-chip--bump {
  animation: pv-coin-bump 420ms ease;
}

@keyframes pv-coin-bump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.14);
  }
  100% {
    transform: scale(1);
  }
}

/* Hint button once the free per-puzzle hints are gone and coins pay instead. */
.is-paid-hint {
  border-color: color-mix(in srgb, #eab308 55%, var(--border)) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #eab308 28%, transparent);
}

/* —— Homepage strip —— */

.pv-daily-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.1rem;
  margin-bottom: 1.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--surface-strong), var(--accent-soft));
}

.pv-daily-strip__stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pv-daily-strip__set {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-width: 0;
}

.pv-daily-strip__label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pv-daily-strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pv-daily-tile {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 2.4rem;
  justify-content: center;
  padding: 0.36rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
}

.pv-daily-tile.is-done {
  color: var(--text-muted);
  border-color: color-mix(in srgb, #16a34a 45%, var(--border));
}

.pv-daily-tile__check {
  color: #16a34a;
  font-weight: 900;
}

/* —— Native app home toolbar —— */

.pv-native-home-toolbar__stats {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.zip-header .pv-coin-chip,
.qg-controls .pv-coin-chip,
.fill-ins-header__controls .pv-coin-chip,
.word-search-game-shell__actions-row .pv-coin-chip,
.word-search-game-shell__timer-row .pv-coin-chip {
  flex-shrink: 0;
  align-self: center;
}

.site-shell--native-app .pv-daily-strip__stats:empty {
  display: none;
}

@media (max-width: 640px) {
  .pv-daily-strip {
    justify-content: flex-start;
  }

  .pv-daily-strip__set {
    width: 100%;
  }
}

.site-shell--native-app .pv-daily-strip {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  padding: 0.9rem 1rem;
  text-align: center;
}

.site-shell--native-app .pv-daily-strip__set {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.55rem;
}

.site-shell--native-app .pv-daily-strip__label {
  width: 100%;
  text-align: center;
  line-height: 1.35;
}

.site-shell--native-app .pv-daily-strip__list {
  justify-content: center;
}

@media (min-width: 768px) {
  .site-shell--native-app .pv-daily-strip {
    padding: 1.05rem 1.35rem;
    gap: 0.7rem;
  }

  .site-shell--native-app .pv-daily-strip__label {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pv-coin-chip--bump {
    animation: none;
  }
}
