/*! Card Battle Lab. Copyright (c) 2026 Dave Skilton. All rights reserved. See /LICENSE. https://cardbattlelab.com/ */
.ui-dialog-overlay .ui-dialog-box.rlt-dialog {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
}
.rlt-dialog .ui-dialog-head .gcg-modal-title {
  flex: 1;
}
.rlt {
  --rlt-d: 52px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 2px;
}
.rlt .c-red {
  --k: var(--c-card-red);
}
.rlt .c-blue {
  --k: var(--c-card-blue);
}
.rlt .c-green {
  --k: var(--c-card-green);
}
.rlt .c-white {
  --k: var(--c-card-white);
}
.rlt .c-purple {
  --k: var(--c-card-purple);
}
.rlt-intro {
  margin: 0;
  text-align: center;
  line-height: 1.4;
  text-wrap: balance;
  font-size: calc(13px * var(--fs-body, 1));
  color: var(--c-text-dim);
}
.rlt-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rlt-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 18px;
}
.rlt-row-head .gcg-grp-t {
  margin: 0;
}
.rlt-row-note {
  font-size: calc(12px * var(--fs-body, 1));
  color: var(--c-text-muted);
  text-align: right;
}
.rlt-signin .gcg-tier-lock {
  cursor: pointer;
}
.rlt-cells {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.rlt-cell {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 6px 2px 4px;
  border-radius: var(--r-m);
  -webkit-tap-highlight-color: transparent;
}
.rlt-cell:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 1px;
}
.rlt-cell:disabled {
  cursor: default;
}
.rlt-orb {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--rlt-d);
  height: var(--rlt-d);
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid var(--k);
  color: var(--k);
  transition:
    box-shadow .12s,
    filter .12s,
    opacity .12s,
    background-color .12s,
    scale .12s;
}
.rlt-orb b {
  font: 900 calc(var(--rlt-d) * .55) / 1 var(--font-body);
  color: var(--k);
  text-box: trim-both cap alphabetic;
  opacity: .6;
}
.rlt-cell.is-ticked .rlt-orb {
  border-color: transparent;
}
.rlt-orb.has-check > * {
  display: block;
  width: 130%;
  height: 130%;
  margin: -15%;
  flex: none;
}
.rlt-orb.has-lock > * {
  display: block;
  width: 45%;
  height: 45%;
}
.rlt-cell.is-ticked .rlt-orb {
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--k) 45%, transparent));
}
.rlt-name {
  font: 600 calc(11px * var(--fs-body, 1))/1.1 var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rlt-cell.is-ticked .rlt-name {
  color: var(--c-text-hi);
}
.rlt-why {
  margin-top: -2px;
  font-size: calc(10px * var(--fs-body, 1));
  line-height: 1.1;
  color: var(--c-text-faint);
  white-space: nowrap;
}
.rlt-cell.is-locked .rlt-orb {
  opacity: .35;
}
.rlt-cell.is-locked .rlt-name {
  color: var(--c-text-faint);
}
.rlt-cell:not(:disabled):hover .rlt-orb {
  box-shadow: 0 0 10px color-mix(in srgb, var(--k) 55%, transparent);
}
.rlt-cell:not(:disabled):hover .rlt-orb b {
  opacity: .85;
}
.rlt-cell:not(:disabled):hover .rlt-name {
  color: var(--c-text-hi);
}
.rlt-cell.is-ticked:not(:disabled):hover .rlt-orb {
  box-shadow: none;
  filter: drop-shadow(0 0 9px color-mix(in srgb, var(--k) 75%, transparent));
}
.rlt.is-spinning .rlt-cell,
.rlt.is-queued .rlt-cell {
  pointer-events: none;
}
.rlt-cell.is-spin .rlt-orb {
  scale: 1.08;
  background-color: color-mix(in srgb, var(--k) 22%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--k) 45%, transparent), 0 0 20px color-mix(in srgb, var(--k) 75%, transparent);
}
.rlt-cell.is-spin .rlt-orb b {
  opacity: 1;
}
.rlt-cell.is-spin.is-ticked .rlt-orb {
  filter: none;
}
.rlt-cell.is-spin .rlt-name {
  color: var(--c-text-hi);
}
.rlt.is-spinning .rlt-orb {
  transition: none;
}
.rlt.is-settled .rlt-cell.is-spin .rlt-orb {
  box-shadow: 0 0 0 3px var(--c-text-hi), 0 0 24px color-mix(in srgb, var(--k) 85%, transparent);
}
.rlt-cell.is-queued .rlt-orb {
  scale: 1.08;
  background-color: color-mix(in srgb, var(--k) 32%, transparent);
  box-shadow:
    0 0 0 3px var(--c-panel),
    0 0 0 5px var(--c-text-hi),
    0 0 22px 2px color-mix(in srgb, var(--k) 80%, transparent);
  animation: rlt-queued-breathe 1.6s ease-in-out infinite;
}
.rlt-cell.is-queued .rlt-orb b {
  opacity: 1;
  color: var(--c-text-hi);
}
.rlt-cell.is-queued.is-ticked .rlt-orb {
  filter: none;
}
.rlt-cell.is-queued .rlt-name {
  color: var(--c-text-hi);
}
.rlt.is-queued .rlt-cell:not(.is-queued) {
  opacity: .4;
}
@keyframes rlt-queued-breathe {
  0%, 100% {
    box-shadow:
      0 0 0 3px var(--c-panel),
      0 0 0 5px var(--c-text-hi),
      0 0 14px 0 color-mix(in srgb, var(--k) 60%, transparent);
  }
  50% {
    box-shadow:
      0 0 0 3px var(--c-panel),
      0 0 0 5px var(--c-text-hi),
      0 0 28px 4px color-mix(in srgb, var(--k) 90%, transparent);
  }
}
.rlt-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.rlt-cta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 10px;
  width: 100%;
}
.rlt-cta > .new-game {
  grid-column: 2;
}
.rlt-cta > .rlt-cancel {
  grid-column: 3;
  justify-self: start;
}
.rlt-cta .new-game.rlt-random:not(#rlt-none) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 260px;
  max-width: 100%;
  min-width: 0;
  line-height: 18px;
  padding-inline: 16px;
  white-space: nowrap;
}
.rlt-random svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.rlt-cta .new-game.gcg-btn--load:disabled:not(#rlt-none) {
  opacity: 1;
  --c: color-mix(in srgb, var(--c-commit) 45%, var(--c-panel-2));
  color: color-mix(in srgb, var(--c-on-commit) 45%, var(--c-panel-2));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--c-white) 7%, transparent);
}
.rlt-progress {
  text-align: center;
  line-height: 1.35;
  font-size: calc(12px * var(--fs-body, 1));
  color: var(--c-text-muted);
}
.rlt-progress-done {
  display: inline-flex;
  vertical-align: -3px;
  margin-right: 4px;
  color: var(--c-text-muted);
}
.rlt-progress-done svg {
  width: 15px;
  height: 15px;
}
.rlt-daily {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 4px;
  font-size: calc(12px * var(--fs-body, 1));
  line-height: 1.35;
  color: var(--c-text-muted);
}
.rlt-daily-lab {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.rlt-daily-count {
  color: var(--c-text-dim);
  font-variant-numeric: tabular-nums;
}
.rlt-daily-lab .rlt-progress-reset {
  color: var(--c-text-faint);
}
.rlt-daily-bar {
  flex: 1 1 auto;
  min-width: 40px;
}
.rlt-daily-guest {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  color: var(--c-text-dim);
}
.rlt-daily-xp {
  flex: none;
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.rlt-daily-xp.is-earned {
  color: var(--c-text-dim);
  font-weight: 700;
  letter-spacing: .04em;
}
.rlt-daily-xp .rlt-progress-done {
  vertical-align: 0;
  margin-right: 5px;
}
.rlt-queue-pick {
  color: var(--c-text-dim);
}
.rlt-status {
  font-size: calc(13px * var(--fs-body, 1));
  color: var(--c-text-dim);
}
.rlt-cooldown {
  text-align: center;
  font-size: calc(13px * var(--fs-body, 1));
  color: var(--c-warn);
}
.rlt-cooldown strong {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 480px) {
  .rlt {
    --rlt-d: 40px;
  }
  .rlt-cells {
    gap: 2px;
  }
  .rlt-name {
    font-size: calc(10px * var(--fs-body, 1));
    letter-spacing: .03em;
  }
  .rlt-row-head {
    flex-wrap: wrap;
  }
  .rlt-progress-reset {
    display: none;
  }
}
