/* Credit wallet extras: daily login bonus card, streak-credited banner,
   history filter chips, Ways to earn and the winnings wallet card. Colours
   come from the player theme tokens and the tenant accent. */

.credits-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.credits-aside > [hidden] {
  display: none;
}

.credits-page [data-credits-banner]:not([hidden]) {
  margin-top: 16px;
}

.cx-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--yes-soft);
  color: var(--yes);
}

.cx-banner svg {
  flex: 0 0 20px;
}

.cx-banner-text {
  flex: 1;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.cx-banner-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* Daily login bonus */
.cl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cl-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cl-gift {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--cw-gold);
}

.cl-kicker {
  color: var(--cw-gold);
}

.cl-title {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cl-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--cw-gold);
  font-size: 12px;
  font-weight: 600;
}

.cl-chip[data-claimed="true"] {
  background: var(--yes-soft);
  color: var(--yes);
}

.cl-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.cl-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cl-label {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.cl-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--cw-line2);
  border-radius: 18px;
}

.cl-dot[data-state="done"] {
  border: 0;
  background: linear-gradient(
    135deg,
    var(--accent),
    color-mix(in srgb, var(--accent) 55%, #ffffff)
  );
  color: var(--on-accent);
}

.cl-dot[data-state="pending"] {
  border: 2px dashed var(--cw-gold);
  color: var(--cw-gold);
}

.cl-plus {
  color: var(--cw-gold);
  font-size: 11px;
  font-weight: 700;
}

.cl-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 13px;
  line-height: 20px;
}

.cl-note {
  flex: 1 1 240px;
  color: var(--cw-sub);
}

.cl-total {
  font-weight: 700;
}

.cl-action {
  margin-top: 16px;
}

.cl-claim {
  height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cl-claim:disabled {
  opacity: 0.6;
  cursor: progress;
}

.cl-error {
  margin: 12px 0 0;
  color: var(--no);
  font-size: 13px;
}

/* History filters */
.ch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ch-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ch-chip {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--cw-line2);
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ch-chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper, var(--card));
}

/* Aside cards */
.cx-card {
  padding: 20px;
}

.cx-heading {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.cx-ways {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.cx-way {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.cx-way-icon {
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--cw-sub);
}

.cx-way-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.cx-way-text {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

.cx-cash {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cx-cash-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

.cx-open {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin-top: 16px;
  border: 1px solid var(--cw-line2);
  border-radius: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.cl-claim:focus-visible,
.ch-chip:focus-visible,
.cx-banner-close:focus-visible,
.cx-open:focus-visible {
  outline: 2px solid var(--focus-ring, var(--accent));
  outline-offset: 2px;
}

@media (hover: hover) {
  .cl-claim:not(:disabled):hover {
    filter: brightness(1.08);
  }

  .ch-chip:hover,
  .cx-open:hover {
    border-color: var(--cw-gold);
  }
}

@media (max-width: 560px) {
  .cl-title {
    font-size: 20px;
    line-height: 24px;
  }

  .cl-days {
    gap: 4px;
  }

  .cl-dot {
    width: 32px;
    height: 32px;
  }

  .cl-claim {
    width: 100%;
  }
}

.credits-page .credits-intro {
  max-width: 560px;
  margin: 6px 0 0;
  color: var(--cw-sub);
  font-size: 14px;
  line-height: 20px;
}

.credits-page .credits-intro[hidden] {
  display: none;
}

.cl-text {
  margin: 12px 0 0;
  color: var(--cw-sub);
  font-size: 13px;
  line-height: 20px;
}

.cl-text b {
  color: var(--ink);
}
