/* ============================================================
   Credit wallet chip + popover (wallet.mjs): catalog, studio, home.
   ============================================================ */
.wallet { position: relative; }
.wallet__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgb(255 206 110 / 0.35);
  border-radius: 999px;
  background: rgb(255 206 110 / 0.08);
  color: #ffe2a3;
  font: 700 0.8rem/1 var(--font-mono);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease;
}
.wallet__chip[hidden] { display: none; }
.wallet__chip:hover { background: rgb(255 206 110 / 0.14); }
.wallet__chip.has-claim { box-shadow: 0 0 0 3px rgb(255 206 110 / 0.16); }
.wallet__chip.has-claim::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff9fd0; box-shadow: 0 0 8px #ff9fd0; }
.wallet__chip.is-pop { transform: scale(1.12); }
.wallet__gem { color: #ffd98a; text-shadow: 0 0 10px rgb(255 206 110 / 0.6); }
.wallet__pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 8px;
  width: 290px;
  padding: 16px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 18px;
  background: linear-gradient(170deg, #1b1428, #110c1a 70%);
  box-shadow: 0 24px 60px -18px rgb(0 0 0 / 0.85);
}
.wallet__pop[hidden] { display: none; }
.wallet__label { margin: 4px 0 0; color: var(--text-2); font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; }
.wallet__balance { margin: 0; color: #ffe2a3; font: 700 1.6rem/1.1 var(--font-mono); }
.wallet__facts { margin: 0; color: var(--text-2); font-size: 0.74rem; line-height: 1.45; }
.wallet__history { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.wallet__history li { display: flex; justify-content: space-between; gap: 10px; color: var(--text-1); font-size: 0.74rem; }
.wallet__history li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet__history li.is-empty { color: var(--text-2); }
.wallet__history b { font-family: var(--font-mono); }
.wallet__history .is-plus { color: #9af0ca; }
.wallet__history .is-minus { color: #ffb3c4; }

.wallet__link { justify-self: start; color: var(--accent); font-size: 0.78rem; text-decoration: none; }
.wallet__link:hover { text-decoration: underline; }
.wallet__chip:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
html[data-motion="low"] .wallet__chip { transition: background 0.15s ease; }

/* in the studio's and home page's top bars */
.ed-wallet, .nav-wallet { display: inline-flex; }
.ed-wallet .wallet__chip, .nav-wallet .wallet__chip { padding: 6px 10px; font-size: 0.74rem; }
.wallet__pop { z-index: 200; max-width: calc(100vw - 16px); }
.wallet__boost { justify-self: stretch; border-color: rgb(255 159 208 / 0.35); color: #ffc4e1; }
.wallet__boost:hover:not(:disabled) { border-color: #ff9fd0; background: rgb(255 159 208 / 0.1); }
.wallet__boost-note:empty { display: none; }
