/* Free choices live in the dialog top layer, never in the item bag. */
.game-dialog[data-view="pending-reward"] {
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  overflow: visible;
  position: fixed;
  inset: 0;
  background: #101b2bf5;
  border: 2px solid #a2d7ca88;
  border-radius: 16px;
  box-shadow:
    0 0 0 4px #060c16,
    0 0 32px #93d5c222;
}
.pending-reward-modal {
  display: grid;
  gap: 16px;
  padding: 20px;
  min-width: 0;
  max-height: calc(100dvh - 64px);
  box-sizing: border-box;
}
.pending-reward-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pending-reward-heading h2 {
  margin: 0;
  font-size: 18px;
  color: #f3e8bd;
}
.pending-reward-seconds {
  font-size: 13px;
  color: #bdd8d3;
  font-variant-numeric: tabular-nums;
}
.pending-reward-modal > progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #07101c;
}
.pending-reward-modal > progress::-webkit-progress-bar {
  background: #07101c;
}
.pending-reward-modal > progress::-webkit-progress-value {
  background: linear-gradient(90deg, #7fbeb8, #ffe7a6);
  transition: width 0.1s linear;
}
.pending-reward-modal > progress::-moz-progress-bar {
  background: linear-gradient(90deg, #7fbeb8, #ffe7a6);
}
.pending-reward-modal[data-urgent="true"] > progress::-webkit-progress-value {
  background: #f0b96d;
}
.pending-reward-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 16px;
  justify-items: center;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 6px 14px;
  max-height: min(60dvh, 480px);
  scrollbar-width: thin;
  scrollbar-color: #88bcb3 #101b2b;
}
.pending-reward-pick {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding: 10px;
  border: 2px solid #c9ece17f;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 23%,
    #acd9d55e,
    #31546b99 38%,
    #13253c 80%
  );
  box-shadow:
    inset 2px 3px 7px #f0fff733,
    inset -3px -5px 9px #06112488,
    0 0 0 4px #b5e8d910;
  cursor: pointer;
  color: inherit;
}
.pending-reward-pick::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #ddfff029;
  border-radius: 50%;
  pointer-events: none;
}
.pending-reward-pick .item-icon {
  background: transparent;
  border: 0;
  box-shadow: none;
  pointer-events: none;
  z-index: 1;
}
.pending-reward-pick img {
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(1px 3px #06122588);
}
.pending-reward-pick:hover:not(:disabled),
.pending-reward-pick:focus-visible {
  border-color: #ffedb6;
  outline: 2px solid #ffe1a566;
  outline-offset: 3px;
  box-shadow:
    inset 2px 3px 8px #fff6d544,
    0 0 20px #ffdf7944;
}
.pending-reward-pick:disabled {
  cursor: default;
  opacity: 0.6;
}
@media (max-width: 460px) {
  .pending-reward-modal {
    padding: 16px;
    gap: 12px;
  }
  .pending-reward-options {
    grid-template-columns: repeat(3, minmax(64px, 1fr));
    gap: 12px;
  }
  .pending-reward-pick {
    width: 68px;
    height: 68px;
    padding: 8px;
  }
  .pending-reward-pick .item-icon,
  .pending-reward-pick img {
    width: 44px !important;
    height: 44px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pending-reward-modal > progress::-webkit-progress-value {
    transition: none;
  }
}
