/* Additions for the live interface: the few elements the playground did not have (wallet picker,
   claim bar, transaction links, rewards that are out of the draw). Built from the interface's own
   tokens in lootide.css. */
.wallet-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 4px;
}
.wallet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-hi);
  color: var(--text);
  text-align: left;
  font-weight: 600;
}
.wallet-option:hover:not(:disabled) {
  border-color: var(--cyan);
}
.wallet-option img {
  border-radius: 7px;
}
.wallet-option span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wallet-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.claim-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.claim-bar p {
  flex: 1;
  min-width: 220px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.tx-link,
.dialog a.text-button,
.history-tools a.text-button {
  color: var(--cyan);
}
.tx-link:hover {
  text-decoration: underline;
}
a.pink,
a.quiet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.slot-card.is-unavailable,
.chest-outcome.is-unavailable {
  opacity: 0.55;
}
.detail-record code,
.detail-note code,
.chest-sheet-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}
#pool-level-note {
  color: var(--muted);
  font-size: 12px;
}
.app-footer nav a#admin-link {
  color: var(--muted);
}
.inventory-actions a.icon-button {
  display: inline-grid;
  place-items: center;
}
.inventory-actions a.icon-button {
  flex: none;
  width: 34px;
  min-height: 34px;
}
/* Reveal: claiming is the primary action for a token reward; "View reward" steps back beside it. */
.theatre-result button[data-theatre="claim"] {
  color: #fff;
  background: linear-gradient(#ff347f, #f81266);
  border-color: #ff72a57d;
  box-shadow:
    inset 0 1px 0 #ffffff20,
    0 6px 20px #ff176b12;
}
.theatre-result button[data-theatre="claim"]:not([hidden]) + button[data-theatre="inventory"] {
  color: #bcd2e5;
  background: #1d3045;
  border-color: #b5d1eb21;
  box-shadow: none;
}
.inventory-actions {
  flex-flow: row nowrap;
}
.inventory-actions .pink {
  flex: 1;
  width: auto;
  min-width: 0;
}
/* History rows are buttons: a grid button shrinks to its content unless told to fill the list. */
.history-row {
  width: 100%;
  text-align: left;
}
.history-row > .icon {
  justify-self: end;
}
@media (max-width: 680px) {
  .history-row > .icon {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}
.history-copy > span {
  font-size: 11px;
  color: #7993b3;
}
@media (max-width: 680px) {
  .history-copy > span {
    font-size: 10px;
  }
}

/* ---- Redeeming a gift card: the card being bought, then delivered.
   One idea: the card is the progress indicator. It hovers while the order is out and lands when the
   code arrives. Loops are slow and transform/opacity only; reduced motion keeps the states, not the movement. */
.redeem-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  isolation: isolate;
}
.redeem-ring {
  position: absolute;
  width: 190px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--cyan) 55%, transparent);
  background: radial-gradient(circle, color-mix(in srgb, var(--pink) 16%, transparent), transparent 68%);
  animation: redeem-ring 2.4s ease-out infinite;
  z-index: -1;
}
.redeem-card {
  position: relative;
  display: grid;
  place-items: center;
  animation: redeem-float 2.8s ease-in-out infinite;
}
.redeem-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, #ffffff3d 50%, transparent 65%);
  background-size: 250% 100%;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse at center, #000 45%, transparent 72%);
  animation: redeem-sheen 1.9s linear infinite;
  pointer-events: none;
}
.redeem-stage.is-delivered .redeem-ring {
  animation: redeem-burst 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  border-color: color-mix(in srgb, var(--pink) 70%, transparent);
}
.redeem-stage.is-delivered .redeem-card {
  animation: redeem-land 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.redeem-stage.is-delivered .redeem-sheen {
  animation: redeem-sheen 0.9s ease-out 1 both;
}
.redeem-steps {
  display: flex;
  justify-content: center;
  gap: 8px 22px;
  flex-wrap: wrap;
  margin: 6px 0 14px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
}
.redeem-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease-out;
}
.redeem-steps i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.2s ease-out;
}
.redeem-steps .is-done {
  color: var(--text);
}
.redeem-steps .is-done i {
  background: var(--cyan);
}
.redeem-steps .is-active {
  color: var(--text);
}
.redeem-steps .is-active i {
  background: var(--pink);
  animation: redeem-dot 1.1s ease-in-out infinite;
}
.redeem-status {
  margin: 0 0 6px;
  text-align: center;
  font-weight: 600;
}
.redeem-status.is-ready {
  color: var(--cyan);
}
.redeem-reveal {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  animation: redeem-rise 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}
.redeem-reveal > * {
  margin: 0;
}
@keyframes redeem-float {
  50% { transform: translateY(-9px) rotate(-1.5deg); }
}
@keyframes redeem-ring {
  0% { transform: scale(0.72); opacity: 0.9; }
  100% { transform: scale(1.28); opacity: 0; }
}
@keyframes redeem-sheen {
  from { background-position: 130% 0; }
  to { background-position: -130% 0; }
}
@keyframes redeem-dot {
  50% { transform: scale(1.7); opacity: 0.55; }
}
@keyframes redeem-land {
  from { transform: translateY(-9px) scale(1.07); }
  to { transform: none; }
}
@keyframes redeem-burst {
  from { transform: scale(0.8); opacity: 0.95; }
  to { transform: scale(1.45); opacity: 0; }
}
@keyframes redeem-rise {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .redeem-ring,
  .redeem-card,
  .redeem-sheen,
  .redeem-steps .is-active i,
  .redeem-stage.is-delivered .redeem-ring,
  .redeem-stage.is-delivered .redeem-card,
  .redeem-reveal {
    animation: none;
  }
  .redeem-ring {
    opacity: 0.5;
  }
  .redeem-sheen {
    display: none;
  }
}
