/* One quiet overlay within the approved ARUNE desktop space. */
.rewards-dialog {
  width: min(820px, calc(100vw - 64px));
  max-height: calc(100svh - 64px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 12px;
  background: var(--ink, #0a0c0b);
  color: var(--paper, #f2f2e9);
  font-family: var(--body, Manrope, Arial, sans-serif);
  box-shadow: 0 24px 80px #0009;
}
.rewards-dialog::backdrop { background: #000b; }
.rewards-topbar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding: 12px 20px 0;
  background: var(--ink, #0a0c0b);
}
.rewards-close {
  min-width: 58px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--muted, #a3a89c);
  font-size: 13px;
}
.rewards-close:hover { color: var(--yellow, #f0b90b); }
.rewards-close:active { color: var(--paper, #f2f2e9); }
.rewards-dialog button:focus-visible {
  outline: 2px solid var(--yellow, #f0b90b);
  outline-offset: 4px;
}
.rewards-content { padding: 6px 48px 38px; }
.rewards-heading h2 {
  margin: 0 0 18px;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.rewards-heading > p {
  max-width: 59ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted, #a3a89c);
}
.rewards-allowance { margin-top: 34px; }
.rewards-allowance > h3 {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}
.rewards-metrics {
  display: flex;
  gap: 36px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.rewards-metrics > div { flex: 1; min-width: 0; }
.rewards-metrics dt {
  margin-bottom: 5px;
  color: var(--muted, #a3a89c);
  font-size: 12px;
}
.rewards-metrics dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.4;
}
.rewards-connection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
}
.rewards-connection > p {
  margin: 0;
  color: var(--muted, #a3a89c);
  font-size: 12px;
  line-height: 1.8;
}
.rewards-connect { flex: none; }
.rewards-tasks { margin: 27px 0 0; padding: 0; list-style: none; }
.rewards-task { display: flex; align-items: center; gap: 30px; padding: 22px 0; }
.rewards-task-copy { min-width: 0; flex: 1; }
.rewards-task-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 8px; }
.rewards-task-heading h3 { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.4; letter-spacing: -.015em; }
.rewards-task-heading > span { color: var(--yellow, #f0b90b); font-size: 11px; line-height: 1.8; }
.rewards-task-copy > p { max-width: 53ch; margin: 0; color: var(--muted, #a3a89c); font-size: 12px; line-height: 1.9; }
.rewards-task-copy > .rewards-invite-link { margin-top: 10px; overflow-wrap: anywhere; font-size: 11px; }
.rewards-task-action { flex: none; min-width: 120px; min-height: 44px; text-align: right; }
.rewards-dialog .secondary-button { color: var(--yellow, #f0b90b); }
.rewards-dialog .secondary-button:hover:not(:disabled) { color: #fff0ad; }
.rewards-dialog .secondary-button:active:not(:disabled) { color: var(--paper, #f2f2e9); }
.rewards-dialog button:disabled { opacity: .6; color: var(--muted, #a3a89c); cursor: not-allowed; }
.rewards-footer { margin-top: 13px; }
.rewards-footer > p { max-width: 73ch; margin: 10px 0 0; color: var(--muted, #a3a89c); font-size: 11px; line-height: 1.9; }
.rewards-footer > .rewards-verification { color: var(--paper, #f2f2e9); font-size: 12px; }
@media (max-width: 620px) {
  .rewards-dialog { width: calc(100vw - 24px); max-height: calc(100svh - 24px); }
  .rewards-content { padding: 6px 24px 28px; }
  .rewards-heading h2 { font-size: 32px; }
  .rewards-metrics { gap: 18px; }
  .rewards-connection, .rewards-task { align-items: flex-start; flex-direction: column; gap: 8px; }
  .rewards-task-action { text-align: left; }
}
