.rewards-page { max-width: 1150px; margin: 0 auto; }
.rewards-avatar { width: 100%; height: 100%; display: block; overflow: visible; }
.rewards-avatar--small { width: 42px; height: 42px; }
.rewards-progress-card { display: flex; align-items: center; gap: 40px; padding: 27px 32px; border-radius: 20px; color: #fff; background: var(--navy); }
.rewards-credit-total { display: flex; align-items: center; gap: 17px; flex-shrink: 0; }
.rewards-credit-star { width: 62px; height: 62px; padding: 13px; color: var(--lime); background: #ffffff0d; border: 1px solid #ffffff1a; border-radius: 19px; transform: rotate(-8deg); }
.rewards-credit-total strong { display: block; font-size: 43px; line-height: 1; letter-spacing: -1.5px; }
.rewards-credit-total span:not(.rewards-credit-star) { display: block; margin-top: 6px; color: #c8d5df; font-size: 13px; }
.rewards-progress-copy { flex: 1; min-width: 0; }
.rewards-progress-copy h2 { font-size: 20px; color: #fff; }
.rewards-progress-copy p { margin: 6px 0 12px; color: #c8d5df; font-size: 13px; overflow-wrap: anywhere; }
.rewards-wallet-stats { display: flex; gap: 17px; color: #d5e7c8; font-size: 12px; }
.rewards-wallet-stats > span + span { border-left: 1px solid #ffffff40; padding-left: 17px; }
.rewards-how-it-works { color: var(--muted); font-size: 12px; margin: 13px 3px 23px; max-width: 850px; line-height: 1.65; }
.rewards-tabs { display: flex; gap: 5px; margin: 0 0 24px; padding: 5px; width: fit-content; max-width: 100%; border-radius: 12px; background: #e8edf3; }
.rewards-tabs > button { border: 0; background: transparent; border-radius: 8px; color: #596b80; padding: 10px 21px; font-size: 13px; font-weight: 650; }
.rewards-tabs > button[aria-current="page"] { color: #152739; background: #fff; box-shadow: 0 1px 5px #24364916; }
.rewards-page button:focus-visible, .rewards-page summary:focus-visible { outline: 3px solid #426bdf; outline-offset: 3px; }
.rewards-editor { display: grid; grid-template-columns: minmax(210px, .75fr) minmax(0, 1.7fr); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.rewards-avatar-panel { display: flex; align-items: center; flex-direction: column; text-align: center; padding: 30px 25px 22px; border-right: 1px solid var(--line); background: #f8faf5; }
.rewards-avatar-panel > .eyebrow { font-size: 10px; letter-spacing: 1px; }
.rewards-avatar-preview { width: min(210px, 100%); aspect-ratio: 1; margin-bottom: 10px; }
.rewards-avatar-panel > h2 { font-size: 20px; }
.rewards-avatar-panel > p:not(.eyebrow) { margin-top: 9px; font-size: 13px; color: var(--muted); }
.rewards-avatar-panel > .primary { width: 100%; max-width: 220px; margin-top: 7px; }
.rewards-avatar-panel > .rewards-save-status { margin-bottom: 0; min-height: 40px; color: #396139; overflow-wrap: anywhere; }
.rewards-avatar-panel > .rewards-save-status.is-error { color: #a53230; }
.rewards-options { padding: 28px; }
.rewards-option-group + .rewards-option-group { margin-top: 25px; }
.rewards-option-group h3 { margin-bottom: 11px; font-size: 15px; }
.rewards-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 9px; }
.rewards-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 5px; min-height: 97px; border: 1px solid var(--line); border-radius: 11px; background: #fff; min-width: 0; }
.rewards-choice:hover:not(:disabled) { background: #f7f9fd; border-color: #9dafc8; }
.rewards-choice[aria-pressed="true"] { background: #f0f4ff; border: 2px solid var(--blue); padding: 9px 4px; }
.rewards-choice:disabled { opacity: .7; }
.rewards-choice-avatar { display: block; height: 42px; }
.rewards-colour-swatch { display: block; width: 27px; height: 27px; margin: 7px 0 8px; border: 2px solid #14233712; border-radius: 50%; }
.rewards-choice-name { font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.rewards-choice-state { font-size: 10px; color: #657389; }
.rewards-choice[aria-pressed="true"] .rewards-choice-state { color: #315edf; }
.rewards-collection-note { margin: 25px 0 0; font-size: 12px; color: var(--muted); }
.rewards-collection-note .text-button { font-size: inherit; }
.rewards-section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 16px; }
.rewards-section-heading h2 { font-size: 21px; }
.rewards-section-heading p { font-size: 13px; margin: 7px 0 0; max-width: 650px; }
.rewards-track-count { white-space: nowrap; flex-shrink: 0; border-radius: 20px; background: #e7ecf2; color: #536578; font-size: 12px; font-weight: 600; padding: 5px 10px; }
.rewards-pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.rewards-pack { display: flex; align-items: center; gap: 22px; padding: 24px; border: 1px solid #d5c9ea; background: #f4efff; border-radius: 17px; min-width: 0; }
.rewards-pack:nth-child(even) { background: #f0f7e9; border-color: #d2e2c6; }
.rewards-pack:nth-child(3) { background: #fff4ec; border-color: #efcfb7; }
.rewards-pack.rewards-pack--science { background: #eef9fa; border-color: #bfe0e3; }
.rewards-pack-art { width: 97px; flex: 0 0 97px; transform: rotate(-6deg); }
.rewards-pack h3 { font-size: 18px; margin: 0 0 5px; }
.rewards-pack p { font-size: 12px; color: var(--muted); margin: 0 0 9px; }
.rewards-price { display: block; color: #233849; font-size: 13px; font-weight: 750; margin: 0; }
.rewards-pack-count { display: block; margin: 5px 0 13px; font-size: 11px; color: #5b6374; }
.rewards-pack .secondary { background: #fff; font-size: 12px; padding: 9px 13px; }
.rewards-item-shop { margin-top: 33px; }
.rewards-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 16px; }
.rewards-filters > button { border: 1px solid var(--line); border-radius: 20px; padding: 7px 14px; background: #fff; color: #5a6a7e; font-size: 12px; }
.rewards-filters > button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.rewards-shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.rewards-shop-item { display: flex; flex-direction: column; align-items: center; min-width: 0; border: 1px solid var(--line); border-radius: 15px; background: #fff; padding: 18px 16px 15px; text-align: center; }
.rewards-shop-preview { width: 112px; height: 112px; max-width: 100%; margin-bottom: 10px; border-radius: 50%; background: #f4f6f9; }
.rewards-shop-item-heading h3 { margin: 0 0 2px; font-size: 15px; }
.rewards-shop-item-heading > span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 10px; }
.rewards-shop-item .rewards-price { margin-bottom: 12px; font-size: 12px; }
.rewards-shop-item > button { width: 100%; font-size: 12px; padding: 9px 5px; }
.rewards-shop-item.is-owned .rewards-price { color: #44733c; }
.rewards-saving-note { color: var(--muted); font-size: 10px; margin-top: 9px; }
.rewards-pending { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; border: 1px solid #ddc08b; border-radius: 14px; background: #fff8e9; margin-bottom: 24px; }
.rewards-pending strong { font-size: 14px; }
.rewards-pending p { max-width: 570px; margin: 5px 0 0; font-size: 12px; color: #79623b; }
.rewards-pending button { white-space: nowrap; }
.rewards-reveal { display: flex; align-items: center; gap: 28px; padding: 24px 30px; border-radius: 18px; background: #eaf6dd; border: 1px solid #c8dfb5; margin-bottom: 28px; animation: rewards-reveal .45s ease-out; }
.rewards-reveal-avatar { width: 125px; height: 125px; flex-shrink: 0; }
.rewards-reveal .eyebrow { font-size: 10px; margin-bottom: 7px; }
.rewards-reveal h2 { font-size: 25px; }
.rewards-reveal p:not(.eyebrow) { font-size: 13px; color: #54644a; margin: 6px 0 14px; }
.rewards-reveal .text-button { margin-left: 12px; font-size: 12px; }
@keyframes rewards-reveal { from { opacity: .3; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.rewards-receipts { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 17px; color: var(--muted); font-size: 13px; }
.rewards-receipts summary { cursor: pointer; font-weight: 600; }
.rewards-receipts ul { list-style: none; padding: 0; margin: 14px 0; max-width: 580px; }
.rewards-receipts li { display: flex; gap: 18px; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--navy); }
.rewards-receipts li small { display: block; color: var(--muted); margin-top: 3px; }
.rewards-receipts li strong { white-space: nowrap; font-size: 12px; }
.rewards-purchase-dialog { position: fixed; width: min(490px, calc(100vw - 30px)); max-height: calc(100dvh - 40px); border: 0; border-radius: 20px; padding: 27px; margin: auto; color: var(--navy); box-shadow: 0 20px 90px #10253b45; overflow-y: auto; }
.rewards-purchase-dialog::backdrop { background: #12253b8c; }
.rewards-dialog-close { position: absolute; top: 14px; right: 15px; border: 0; background: #edf1f6; color: #4f6075; border-radius: 50%; width: 32px; height: 32px; font-size: 24px; line-height: 1; }
.rewards-confirm-preview { width: 113px; height: 113px; margin: 0 auto 18px; }
.rewards-confirm-preview > svg { width: 100%; height: 100%; }
.rewards-purchase-dialog > .eyebrow { font-size: 10px; margin: 0 0 5px; text-align: center; }
.rewards-purchase-dialog > h2 { text-align: center; font-size: 23px; }
.rewards-confirm-description { text-align: center; font-size: 13px; line-height: 1.6; color: var(--muted); margin: 10px 0 18px; }
.rewards-pack-contents { padding: 13px; background: #f5f7fa; border-radius: 11px; margin: 16px 0; font-size: 12px; }
.rewards-pack-contents summary { font-weight: 650; cursor: pointer; }
.rewards-pack-contents ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 13px; padding: 0; margin: 10px 0 0; list-style: none; }
.rewards-pack-contents li { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 3px 0; font-size: 11px; }
.rewards-pack-contents li > span:nth-child(2) { flex: 1; overflow-wrap: anywhere; }
.rewards-pack-contents li > span:last-child { color: var(--muted); flex-shrink: 0; font-size: 10px; }
.rewards-pack-item-preview { display: block; flex: 0 0 29px; width: 29px; height: 29px; }
.rewards-purchase-math { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; border-top: 1px solid var(--line); padding-top: 17px; margin-top: 15px; }
.rewards-purchase-math > span { color: var(--muted); font-size: 12px; }
.rewards-purchase-math strong { display: block; color: var(--navy); font-size: 16px; margin-top: 4px; }
.rewards-purchase-status { min-height: 20px; margin: 13px 0; font-size: 12px; color: #496c3e; }
.rewards-purchase-status.is-error { color: #a53230; }
.rewards-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.rewards-confirm-actions > button { font-size: 12px; }
.rewards-track-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rewards-track { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; min-width: 0; }
.rewards-track h3 { font-size: 14px; overflow-wrap: anywhere; margin-bottom: 3px; }
.rewards-track p { font-size: 12px; color: var(--muted); margin-bottom: 0; }
.rewards-record { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 45px; height: 45px; border-radius: 50%; background: #25364b; border: 5px solid #1c2d3e; box-shadow: inset 0 0 0 1px #ffffff24, inset 0 0 0 5px #25364b, inset 0 0 0 6px #ffffff24; }
.rewards-record > span { width: 12px; height: 12px; border-radius: 50%; background: var(--lime); border: 4px solid #a1cf73; }
.rewards-track.is-locked { background: #f8fafb; }
.rewards-track.is-locked .rewards-record { opacity: .45; }
.rewards-track-remaining { display: inline-block; font-size: 11px; font-weight: 650; color: #69519b; margin-top: 7px; }
.rewards-character-discovery { display: flex; align-items: center; gap: 30px; padding: 24px 30px; margin-top: 22px; border: 1px solid #e2d8f5; border-radius: 20px; background: #f5f0ff; }
.rewards-character-crew { display: flex; width: 250px; flex: 0 0 250px; align-items: flex-end; }
.rewards-character-crew .rewards-avatar { width: 100px; height: 120px; flex-shrink: 0; margin-left: -25px; }
.rewards-character-crew .rewards-avatar:first-child { margin-left: 0; transform: rotate(-8deg); }
.rewards-character-crew .rewards-avatar:nth-child(2) { width: 110px; height: 140px; position: relative; z-index: 1; }
.rewards-character-crew .rewards-avatar:last-child { transform: rotate(8deg); }
.rewards-character-discovery .eyebrow { font-size: 10px; margin: 0 0 6px; }
.rewards-character-discovery h2 { font-size: 20px; }
.rewards-character-discovery p:not(.eyebrow) { font-size: 13px; color: #716181; margin: 8px 0 13px; max-width: 390px; }
.rewards-character-discovery button { font-size: 12px; background: #fff; }
.rewards-science-discovery { border-color: #c9e4e4; background: #eff8f7; }
.rewards-science-discovery p:not(.eyebrow) { color: #527575; }
.rewards-prize-intro { display: flex; align-items: flex-start; gap: 18px; padding: 24px; margin-bottom: 22px; border-radius: 18px; border: 1px solid #ecd99f; background: #fff9e9; }
.rewards-prize-emblem { display: block; flex: 0 0 46px; width: 46px; height: 46px; padding: 10px; background: #f6df91; color: #8e6920; border-radius: 14px; transform: rotate(-8deg); }
.rewards-prize-intro .eyebrow { font-size: 10px; margin: 0 0 5px; color: #9a7429; }
.rewards-prize-intro h2 { font-size: 23px; }
.rewards-prize-intro p:not(.eyebrow) { font-size: 13px; margin: 9px 0 0; color: #74644a; max-width: 650px; }
.rewards-prize-label { display: inline-block; color: #8c6720; background: #fff0ba; border: 1px solid #f2df9f; border-radius: 20px; padding: 3px 9px; font-size: 9px; font-weight: 700; margin-bottom: 12px; }
.rewards-prize-item .rewards-shop-preview { background: #fff9e9; }
.rewards-prize-waiting { font-size: 11px; color: #7a6f58; padding: 10px 0; }
.rewards-award-history { margin-top: 30px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.rewards-award-history h3 { font-size: 16px; margin-bottom: 17px; }
.rewards-award-history ul { list-style: none; padding: 0; margin: 0; }
.rewards-award-history li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.rewards-award-icon { width: 29px; height: 29px; flex: 0 0 29px; padding: 6px; background: #fff1c7; color: #b8912f; border-radius: 50%; }
.rewards-award-history strong { font-size: 13px; }
.rewards-award-history p { font-size: 13px; margin: 4px 0; color: #5a687b; overflow-wrap: anywhere; }
.rewards-award-history small { font-size: 11px; color: var(--muted); }
@media (max-width: 1000px) {
  .rewards-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rewards-pack { gap: 15px; padding: 20px 17px; }
  .rewards-pack-art { width: 70px; flex-basis: 70px; }
  .rewards-pack h3 { font-size: 16px; }
}
@media (max-width: 850px) {
  .rewards-progress-card { gap: 25px; padding: 25px; }
  .rewards-editor { grid-template-columns: minmax(175px, .7fr) minmax(0, 1.3fr); }
  .rewards-avatar-panel { padding: 25px 17px 18px; }
  .rewards-options { padding: 24px 18px; }
  .rewards-choice-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .rewards-pack-grid { grid-template-columns: 1fr; }
  .rewards-pack-art { width: 90px; flex-basis: 90px; }
  .rewards-pack { padding: 22px; }
}
@media (max-width: 600px) {
  .rewards-progress-card { align-items: flex-start; flex-direction: column; gap: 19px; padding: 22px; }
  .rewards-progress-copy { width: 100%; }
  .rewards-credit-total strong { font-size: 38px; }
  .rewards-progress-copy h2 { font-size: 17px; }
  .rewards-tabs { width: 100%; }
  .rewards-tabs > button { flex: 1; padding: 10px 8px; font-size: 12px; }
  .rewards-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .rewards-editor { grid-template-columns: 1fr; }
  .rewards-avatar-panel { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
  .rewards-avatar-preview { width: 160px; }
  .rewards-avatar-panel > p:not(.eyebrow) { max-width: 280px; }
  .rewards-avatar-panel > .rewards-save-status { min-height: 20px; }
  .rewards-options { padding: 23px 15px; }
  .rewards-choice-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .rewards-section-heading { flex-direction: column; gap: 10px; }
  .rewards-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rewards-shop-item { padding: 16px 10px 13px; }
  .rewards-shop-preview { width: 100px; height: 100px; }
  .rewards-pending { flex-direction: column; align-items: flex-start; gap: 12px; padding: 17px; }
  .rewards-reveal { flex-direction: column; text-align: center; padding: 22px 17px; gap: 9px; }
  .rewards-reveal-avatar { width: 110px; height: 110px; }
  .rewards-reveal h2 { font-size: 22px; }
  .rewards-reveal .text-button { display: block; margin: 12px auto 0; }
  .rewards-purchase-dialog { padding: 24px 19px; }
  .rewards-pack-contents li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0 5px; }
  .rewards-pack-item-preview { grid-row: 1 / 3; width: 26px; height: 26px; }
  .rewards-pack-contents li > span:last-child { grid-column: 2; }
  .rewards-confirm-actions { gap: 8px; }
  .rewards-confirm-actions > button { padding: 10px 12px; }
  .rewards-track-grid { grid-template-columns: 1fr; }
  .rewards-character-discovery { flex-direction: column; text-align: center; gap: 3px; padding: 20px; }
  .rewards-character-crew { flex-basis: auto; }
  .rewards-prize-intro { gap: 12px; padding: 20px 17px; }
  .rewards-prize-emblem { flex-basis: 34px; width: 34px; height: 34px; padding: 7px; }
  .rewards-prize-intro h2 { font-size: 21px; }
  .rewards-award-history { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .rewards-reveal { animation: none; }
}
.rewards-rarity { display: inline-flex; align-self: flex-start; padding: 4px 9px; border: 1px solid #c5b5ef; border-radius: 999px; background: #f0eafb; color: #59418a; font-size: 11px; font-weight: 750; letter-spacing: .03em; }
.rewards-rare-note { display: block; color: #66518b; font-size: 11px; line-height: 1.45; margin: 6px 0; }
.rewards-pack .rewards-rare-note { margin-bottom: 0; }
