#run-reward-overlay[hidden], #run-reward-overlay [hidden] { display: none !important; }
#run-reward-overlay {
  position: fixed; inset: 0; z-index: 360; display: grid; place-items: center;
  padding: max(8px, var(--rd-safe-area-top)) max(10px, var(--rd-safe-area-right)) max(8px, var(--rd-safe-area-bottom)) max(10px, var(--rd-safe-area-left));
  box-sizing: border-box; background: #050b10dc; color: #eee4cd; font: 14px/1.5 'Microsoft YaHei', system-ui, sans-serif;
}
#run-reward-dialog {
  display: flex; flex-direction: column; width: min(560px, 100%); max-height: 100%; min-height: 0;
  padding: 12px; box-sizing: border-box; overflow: hidden; border: 2px solid #ae935f; border-radius: 10px;
  background: #152126; box-shadow: 0 12px 40px #000b;
}
#run-reward-dialog header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; }
#run-reward-title { margin: 0; font-size: 18px; color: #ffdfa0; }
#run-reward-dialog button {
  flex: 0 0 auto; min-width: 64px; min-height: 44px; padding: 6px 12px; border: 1px solid #a99973; border-radius: 6px;
  background: #30433e; color: #fff0ca; font: inherit; cursor: pointer; touch-action: manipulation;
}
#run-reward-dialog button:disabled { opacity: .5; cursor: default; }
#run-reward-dialog button:focus-visible, #run-reward-description:focus-visible { outline: 2px solid #ffe2a0; outline-offset: 2px; }
.run-reward-item { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; margin: 10px 0; min-width: 0; }
.run-reward-item > div { min-width: 0; }
#run-reward-icon { flex: 0 0 auto; width: 56px; height: 56px; object-fit: contain; border: 1px solid #8c784d; border-radius: 5px; }
#run-reward-name { margin: 0; color: #ffe5a1; font-size: 18px; overflow-wrap: anywhere; }
#run-reward-meta { margin: 3px 0 0; color: #c7d7c5; }
#run-reward-description { flex: 1 1 auto; min-height: 32px; overflow-y: auto; overscroll-behavior: contain; padding: 8px 2px; border-top: 1px solid #596958; overflow-wrap: anywhere; }
#run-reward-description p:first-child { margin-top: 0; }
#run-reward-description p:last-child { margin-bottom: 0; }
#run-reward-status { flex: 0 0 auto; min-height: 21px; margin: 6px 0; color: #d4e8bc; overflow-wrap: anywhere; }
#run-reward-status.error { color: #ffbca6; }
#run-reward-dialog footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; }
#run-reward-dialog footer > span { color: #c7d7c5; font-size: 12px; }
#run-reward-claim { background: #705a28 !important; min-width: 108px !important; }
@media (max-height: 400px) and (orientation: landscape) {
  #run-reward-dialog { padding: 8px 10px; }
  .run-reward-item { margin: 6px 0; }
  #run-reward-icon { width: 48px; height: 48px; }
  #run-reward-description { padding: 6px 2px; }
  #run-reward-status { margin: 4px 0; }
}
