.reward-modal {
  width: min(640px, calc(100vw - 32px));
  z-index: var(--z-layer-reward);
}

.reward-modal::backdrop {
  background: rgba(37, 39, 45, 0.42);
}

.reward-panel {
  gap: 20px;
}

.reward-list {
  display: grid;
  gap: 12px;
}

.reward-entry {
  min-height: 88px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  background: #ffffff;
}

.reward-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.reward-pixel-icon {
  width: 56px;
  height: 56px;
  image-rendering: pixelated;
}

.reward-icon-letter {
  font-size: 24px;
  line-height: 1;
}

.reward-entry.is-coin .reward-icon {
  border-color: #e1c76e;
  background: #fbf4d7;
  color: #8c6814;
}

.reward-entry.is-experience .reward-icon {
  border-color: #b7c9df;
  background: #eef4fb;
  color: #345f90;
}

.reward-entry.is-item.rarity-rare .reward-icon {
  border-color: #adc9ef;
  background: #edf5ff;
  color: #2f68a8;
}

.reward-entry.is-item.rarity-legendary .reward-icon {
  border-color: #dfbd64;
  background: #fff6d9;
  color: #8c6814;
}

.reward-entry.is-item.rarity-mythic .reward-icon {
  border-color: #b9a36a;
  background: #2d2618;
  color: #f2dc8d;
}

.reward-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.reward-copy strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.reward-copy span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.reward-quantity {
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  white-space: nowrap;
}

.reward-inline-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  overflow: visible;
}

.reward-inline-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.reward-inline-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.reward-inline-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 9px 4px 5px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  outline: none;
  --tooltip-anchor-x: 15px;
  --tooltip-arrow-x: 15px;
  --tooltip-offset-x: -18%;
}

.reward-inline-item.is-coin {
  border-color: #e1c76e;
  background: #fbf4d7;
  color: #7b5b13;
}

.reward-inline-item.is-experience {
  border-color: #b7c9df;
  background: #eef4fb;
  color: #345f90;
}

.reward-inline-item.is-item.rarity-rare {
  border-color: #adc9ef;
  background: #edf5ff;
  color: #2f68a8;
}

.reward-inline-item.is-item.rarity-legendary {
  border-color: #dfbd64;
  background: #fff6d9;
  color: #8c6814;
}

.reward-inline-item.is-item.rarity-mythic {
  border-color: #b9a36a;
  background: #2d2618;
  color: #f2dc8d;
}

.reward-inline-item:focus,
.reward-inline-item:focus-visible {
  box-shadow: 0 0 0 3px var(--focus-action);
}

.reward-inline-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.reward-inline-icon .reward-pixel-icon {
  width: 24px;
  height: 24px;
}

.reward-inline-letter {
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.reward-confirm-button {
  min-width: 128px;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  background: var(--action);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.reward-confirm-button:hover {
  background: var(--action-dark);
}

@media (max-width: 520px) {
  .reward-entry {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 12px;
  }

  .reward-icon {
    width: 64px;
    height: 64px;
  }

  .reward-pixel-icon {
    width: 50px;
    height: 50px;
  }

  .reward-quantity {
    grid-column: 2;
    justify-self: start;
    font-size: 22px;
  }

  .reward-inline-row {
    align-items: flex-start;
  }
}
