.rewards-page { padding:20px 0 40px; color:#dce9e0; }
.completion-award-dialog { width:min(440px,calc(100vw - 32px)); max-height:80dvh; overflow:auto; box-sizing:border-box; padding:26px; border:1px solid #9f8c58; border-radius:20px; background:#14221a; color:#e6efe8; box-shadow:0 20px 80px #0008; }
.completion-award-dialog::backdrop { background:#000a; }
.completion-award-dialog[open] { animation:completion-award-zoom 240ms cubic-bezier(.2,.8,.25,1); transform-origin:center; }
@keyframes completion-award-zoom { from { opacity:0; transform:scale(.82); } 75% { opacity:1; transform:scale(1.025); } to { opacity:1; transform:scale(1); } }
@media(prefers-reduced-motion:reduce) { .completion-award-dialog[open] { animation:none; } }
.completion-award-dialog h2 { margin:0 0 20px; font-size:22px; color:#f2d88e; }
.completion-award-row { display:grid; gap:7px; padding:12px; border-radius:10px; background:#ffffff07; }
.completion-award-gifts { display:flex; flex-wrap:wrap; gap:6px 10px; }
.completion-award-row strong { font-size:15px; }
.completion-award-row .completion-gift-normal { color:#96edb7; }
.completion-award-row .completion-gift-super { color:#dcadff; }
.completion-award-row .completion-gift-wiki { color:#ffe08a; }
.completion-award-dialog>p { font-size:14px; line-height:1.5; }
.completion-award-dialog a { display:block; margin:18px 0; color:#ead99f; }
.completion-award-dialog button { width:100%; padding:12px; border:0; border-radius:10px; background:#ffe2a2; color:#242015; cursor:pointer; }
.gain-prestige-card { width:180px; max-width:100%; margin:18px auto; }
.gain-prestige-card>.card { width:100%; max-width:100%; margin:0; }
/* Rounded, inset keyboard focus instead of a green rectangle around confirmations. */
dialog:is(.completion-award-dialog,.referral-reward-dialog,.prestige-winner-popup,.market-dialog) button:focus { outline:none; }
dialog:is(.completion-award-dialog,.referral-reward-dialog,.prestige-winner-popup,.market-dialog) button:focus-visible { outline:none; box-shadow:inset 0 0 0 2px #8a672b,inset 0 0 0 4px #fff1c5; border-radius:10px; }
#test-reward-milestone { padding:9px 12px; border:1px solid #637568; border-radius:9px; background:#18291e; color:#e4efe7; font:inherit; }
.rewards-hero { padding:18px 24px; border:1px solid #53634b; border-radius:16px; background:radial-gradient(ellipse at top right,#7a713f35,transparent 70%),#15231b; }
.rewards-eyebrow { font-size:10px; letter-spacing:1.5px; color:#c9bb86; }
.rewards-hero h1 { margin:0 0 7px; font-size:26px; font-weight:500; }
.rewards-page p { font-size:14px; line-height:1.6; color:#afc2b5; }
.rewards-hero p { margin:0; font-size:13px; max-width:800px; }
.rewards-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; margin:30px 0 16px; }
.rewards-page h2 { margin:0; font-size:20px; font-weight:500; }
.rewards-heading>span { color:#91a799; font-size:12px; }
.rewards-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.reward-rule { display:flex; flex-direction:column; padding:23px; border:1px solid #334b3c; border-radius:18px; background:linear-gradient(155deg,#1c3023,#111c16); }
.reward-symbol { display:grid; place-items:center; width:40px; height:40px; border:1px solid #73856866; border-radius:12px; font-size:24px; color:#d2c795; background:#d2c7950c; }
.reward-rule h3 { margin:18px 0 0; font-size:17px; font-weight:500; }
.reward-rule p { flex:1; margin:12px 0 20px; font-size:13px; }
.reward-gifts { display:grid; gap:9px; }
.reward-gifts>span { display:flex; align-items:center; gap:10px; padding:12px; border-radius:10px; background:#35594044; color:#bde7cc; font-size:12px; }
.reward-gifts strong { font-size:25px; font-weight:500; }
.reward-gifts .reward-super { color:#ddc5ff; background:#704a9d30; }
.reward-rule small { margin-top:18px; color:#92aa99; font-size:11px; }
.rewards-page .rewards-note { margin:16px 0 28px; font-size:12px; }
.rewards-page a { color:#a2dfbb; text-underline-offset:3px; }
.reward-loyalty { display:grid; grid-template-columns:1.3fr 1fr; align-items:center; gap:26px; padding:26px; border:1px solid #394b3d; border-radius:18px; background:#14231b; }
.reward-loyalty h2 { margin-top:12px; }
.reward-loyalty p { margin-bottom:0; }
.reward-pending { padding:18px; border:1px dashed #736a48; border-radius:12px; background:#8d794813; }
.reward-pending>span { font-size:12px; color:#e0cc90; }
.reward-pending p { font-size:12px; }
.rewards-page .rewards-availability { margin-top:22px; font-size:12px; color:#90a498; }
.reward-simple-rules { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:20px 0; }
.reward-simple-rules>div { padding:18px; border:1px solid #3d5544; border-radius:14px; background:#17281d; }
.reward-simple-rules>div>span { display:block; margin-bottom:12px; font-size:13px; color:#c8d9cc; }
.reward-table-gifts { display:flex; flex-wrap:wrap; gap:6px; }
.reward-normal-chip,.reward-super-chip { display:inline-block; padding:6px 9px; border-radius:7px; background:#254d37; color:#c0e8d0; font-size:12px; white-space:nowrap; }
.reward-super-chip { background:#403054; color:#dfc3ff; }
.reward-section { border:1px solid #344b3c; border-radius:16px; margin-top:18px; background:#121e17; overflow:hidden; }
details.reward-section { box-sizing:border-box; }
.reward-section>summary { cursor:pointer; padding:20px; font-size:20px; font-weight:600; color:#edf8f1; }
.reward-section>summary>span { margin-left:12px; font-size:13px; font-weight:400; color:#adc6b5; }
.rewards-table-scroll { overflow:auto; max-height:600px; }
.rewards-table { width:100%; min-width:1000px; table-layout:fixed; border-collapse:collapse; font-size:12px; }
.rewards-table tbody .reward-milestone,.rewards-table tbody .reward-milestone-empty,.rewards-table .reward-percent-headings th,.rewards-table .reward-completion-heading { text-align:center; vertical-align:middle; border-left:1px solid #637568; padding-inline:4px; }
.rewards-table .reward-completion-percent { text-align:center; padding-inline:2px; font-size:14px; font-variant-numeric:tabular-nums; color:#dce9e0; }
.rewards-table .reward-completion-percent.is-complete { color:#f0d58c; }
.rewards-table .reward-missing-column { text-align:center; padding-inline:3px; }
.rewards-table .reward-missing-info { width:26px; height:26px; padding:0; border-radius:50%; font:italic 16px/1 Georgia,serif; }
.rewards-table thead .reward-completion-heading,.rewards-table .reward-percent-headings th { height:30px; font-size:12px; }
.rewards-table thead .reward-completion-heading,.rewards-table .reward-percent-headings th:first-child { box-shadow:inset 1px 0 #637568; }
.rewards-table .reward-table-gifts { justify-content:center; }
.rewards-table thead { position:sticky; top:0; z-index:1; background:#203629; }
.rewards-table th,.rewards-table td { text-align:left; padding:5px 10px; height:36px; box-sizing:border-box; white-space:nowrap; border-bottom:1px solid #2b4032; }
.rewards-table th { font-weight:500; }
.rewards-table thead th { height:44px; font-size:14px; font-weight:600; color:#eff9f3; background:#294635; border-bottom-color:#456550; }
.rewards-table tbody th { min-width:190px; max-width:280px; background:#1d3123; }
.reward-row-name,.rewards-table .reward-category-toggle { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rewards-table .reward-table-gifts { flex-wrap:nowrap; gap:4px; }
.rewards-table .reward-normal-chip,.rewards-table .reward-super-chip { padding:4px 6px; font-size:11px; }
.reward-progress-bar { position:relative; isolation:isolate; overflow:hidden; box-sizing:border-box; width:100%; min-width:0; height:26px; border:1px solid #3c5c49; border-radius:6px; background:#23392b; display:flex; align-items:center; justify-content:flex-end; padding:0 6px; font-size:11px; font-variant-numeric:tabular-nums; color:#e6f7eb; }
.reward-progress-bar i { position:absolute; inset:0 auto 0 0; width:var(--reward-progress); background:#318467; z-index:-1; }
.rewards-table small { display:block; margin-top:5px; font-size:10px; color:#91a898; }
.rewards-table .reward-sub-row th { padding-left:32px; background:linear-gradient(#52745f,#52745f) 19px 0 / 1px 100% no-repeat; font-weight:400; color:#b5cabb; }
.rewards-table .reward-sub-row:hover { background:#1b3023; }
.rewards-table tr[hidden] { display:none; }
.rewards-table .reward-category-toggle { border:0; background:transparent; padding:0; color:#d2efdf; text-align:left; font-size:14px; font-weight:500; }
.rewards-table .reward-category-toggle:hover { background:transparent; color:#dcf5e6; }
.rewards-table .reward-category-toggle span { display:inline-block; width:12px; color:#94bda6; }
.reward-cell-content { overflow:hidden; }
.reward-district-table .reward-row-name { font-size:14px; font-weight:500; color:#d2efdf; }
.reward-missing-dialog { width:min(1500px,calc(100vw - 24px)); max-width:calc(100vw - 24px); max-height:calc(100dvh - 32px); box-sizing:border-box; padding:22px; color:#dce9e0; background:#111d16; border:1px solid #486550; border-radius:18px; overflow:auto; }
.reward-missing-dialog::backdrop { background:#000b; backdrop-filter:blur(5px); }
.reward-missing-dialog>header { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:18px; }
.reward-missing-dialog h2 { margin:0; font-size:21px; font-weight:500; }
.reward-missing-count { font-size:12px; color:#9bb2a3; margin:7px 0 0; }
.reward-missing-dialog button { border:1px solid #47624f; background:#213829; color:#cce5d5; border-radius:9px; padding:8px 12px; cursor:pointer; }
.reward-missing-dialog [data-missing-close] { font-size:24px; min-width:44px; min-height:44px; background:transparent; }
.reward-missing-grid { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:18px 12px; }
.reward-missing-filters { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:20px; }
.reward-missing-filters [hidden] { display:none; }
.reward-rarity-chips { margin:-8px 0 18px; }
.reward-missing-dialog .reward-rarity-chips button { display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:6px 11px; border-radius:999px; font-size:12px; color:var(--rarity-color); border:1px solid color-mix(in srgb,var(--rarity-color) 35%,transparent); background:color-mix(in srgb,var(--rarity-color) 7%,#101b14); }
.reward-rarity-chips button b { font-weight:400; }
.reward-missing-dialog .reward-rarity-chips button:hover { background:color-mix(in srgb,var(--rarity-color) 18%,#101b14); }
.reward-missing-dialog .reward-rarity-chips button[aria-pressed="true"] { color:#101b14; background:var(--rarity-color); border-color:var(--rarity-color); }
.reward-missing-filters label { display:grid; gap:6px; font-size:12px; color:#a9beb0; flex:1 1 200px; }
.reward-missing-filters input,.reward-missing-filters select { width:100%; min-width:0; box-sizing:border-box; height:40px; padding:8px 11px; border:1px solid #3a5544; border-radius:9px; background:#17291d; color:#dce9e0; font:inherit; }
.reward-missing-empty { grid-column:1/-1; padding:30px 10px; text-align:center; color:#a9beb0; }
@media(max-width:1000px) { .reward-missing-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
.reward-missing-item { min-width:0; position:relative; }
.reward-wish-box { position:absolute; left:7%; right:7%; bottom:7%; z-index:6; display:flex; align-items:center; gap:3px; padding:3px; border:1px solid #80998b; border-radius:9px; background:#263c30f5; }
.reward-missing-dialog .reward-wish-button { flex:1; min-width:0; min-height:30px; padding:2px; font-size:10px; line-height:1.2; background:transparent; border:0; }
.reward-missing-dialog .reward-wish-info { flex:0 0 24px; width:24px; height:24px; padding:0; border:1px solid #80998b; border-radius:50%; background:transparent; color:#d4eadc; font:italic 15px/1 Georgia,serif; cursor:pointer; }
#reward-wishlist-info { box-sizing:border-box; width:min(410px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:auto; margin:auto; padding:24px; border:1px solid #668f79; border-radius:20px; background:#14251c; color:#e1eee6; box-shadow:0 18px 70px #0008; font-size:14px; line-height:1.6; }
#reward-wishlist-info::backdrop { background:#0008; }
#reward-wishlist-info h3 { margin:0 0 12px; font-size:20px; }
#reward-wishlist-info button { width:100%; margin-top:12px; padding:10px; }
.reward-missing-dialog .reward-wish-button[aria-pressed="true"] { background:#3b5145; color:#c5ffe5; border-color:#a1d9b9; }
.reward-missing-item .card-shell { width:100%; margin:0; filter:grayscale(1); opacity:.65; pointer-events:none; }
.reward-missing-dialog nav { display:flex; justify-content:center; align-items:center; gap:12px; margin-top:22px; font-size:12px; }
.reward-missing-dialog button:disabled { opacity:.35; cursor:default; }
@media(max-width:600px) { .reward-missing-dialog { padding:15px; } .reward-missing-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 10px; } }
.reward-progress-label { display:flex; justify-content:space-between; gap:12px; min-width:125px; margin-bottom:7px; font-variant-numeric:tabular-nums; }
.rewards-table progress { width:100%; height:5px; accent-color:#8dd9ae; }
.rewards-table button { background:transparent; border:1px solid #46634f; border-radius:7px; color:#a7dbbb; padding:5px 7px; font-size:11px; cursor:pointer; }
.rewards-table button:hover { background:#284433; }
.reward-status { color:#97ac9e; font-size:11px; white-space:nowrap; }
.reward-status.is-ready,.reward-complete { color:#a5e5bd; }
.reward-milestone { background:#ffffff04; }
.reward-milestone.is-reached { background:#d6b86512; }
.reward-milestone-check { color:#e9d291; }
.reward-milestone-empty { color:#63776a; }
.reward-milestone .reward-table-gifts { flex-direction:row; flex-wrap:nowrap; align-items:center; gap:3px; }
.reward-milestone .reward-normal-chip,.reward-milestone .reward-super-chip { font-size:10px; white-space:nowrap; }
.reward-calendar-section { padding:22px; }
.reward-post90 { display:grid; gap:10px; padding:15px; margin:12px 0; border:1px solid #9f8c58; border-radius:12px; background:#ffe2a20b; color:#ffe2a2; }
.reward-calendar-section .rewards-heading { margin:0 0 12px; }
.reward-streak { padding:9px 13px; border-radius:999px; border:1px solid #958052; color:#f0dba9!important; background:#a2822620; }
.reward-calendar-legend { display:flex; flex-wrap:wrap; gap:18px; font-size:12px; color:#adc1b2; margin:18px 0; }
.reward-month-title { margin:24px 0 12px; font-size:15px; font-weight:500; }
.reward-calendar { display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - 80px)/11); gap:8px; overflow-x:auto; padding:6px 0 14px; scroll-snap-type:x mandatory; scrollbar-width:thin; scrollbar-color:#608a70 #192b20; }
.reward-timeline-nav { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 0 4px; font-size:12px; color:#adc1b2; }
.reward-timeline-nav>div { display:flex; gap:6px; }
.reward-timeline-nav button { width:36px; height:32px; border:1px solid #456550; border-radius:9px; background:#213829; color:#dcefe3; cursor:pointer; }
.reward-day { scroll-snap-align:start; position:relative; }
.reward-day { display:flex; flex-direction:column; align-items:center; justify-content:space-between; min-height:118px; gap:8px; padding:10px 4px; background:#18291e; border:1px solid #344d3c; border-radius:10px; text-align:center; }
.reward-day>span { font-size:11px; color:#9caf9f; }
.reward-day>strong { font-size:20px; font-weight:500; color:#e4efe7; }
.reward-day>small { margin-top:auto; font-size:11px; line-height:1.5; color:#bbd2c2; }
.reward-day>em { font-size:9px; font-style:normal; color:#8ba08f; }
.reward-day.has-bonus { background:#352740; border-color:#6b5283; }
.reward-currency-chip { padding:4px 6px; border-radius:7px; font-size:11px; color:#ffe4a1; background:#76602644; white-space:nowrap; }
.reward-day.has-bonus>strong { color:#dfb7ff; }
.reward-day.is-reached { border-color:#e8cf8b; box-shadow:inset 0 0 0 1px #e8cf8b; }
.reward-day>.reward-day-check { display:grid; place-items:center; width:28px; height:28px; flex-shrink:0; border-radius:50%; font-size:21px; font-weight:700; line-height:1; }
.reward-day.is-reached>.reward-day-check { color:#baffd7; background:#297450; box-shadow:0 0 0 1px #69ce9680; }
.reward-day>small { display:grid; width:100%; gap:4px; }
.reward-day .loyalty-gift { display:block; padding:4px 2px; border-radius:6px; font-size:12px; font-weight:500; line-height:1.25; white-space:nowrap; }
.loyalty-gift-normal { color:#b9f8cf; background:#2d694653; border:1px solid #5fab7866; }
.loyalty-gift-super { color:#ebd2ff; background:#8051ac55; border:1px solid #bc86ed77; }
.loyalty-gift-wiki { color:#ffe49b; background:#9c762b40; border:1px solid #d4ae5270; }
@media(max-width:1000px) { .reward-calendar { grid-auto-columns:105px; } }
@media(max-width:600px) { .reward-simple-rules { grid-template-columns:1fr; } .reward-calendar-section { padding:16px; } .reward-section>summary>span { display:block; margin:8px 0 0; } }
@media(max-width:800px) { .rewards-grid { grid-template-columns:1fr; } .reward-loyalty { grid-template-columns:1fr; } }
@media(max-width:980px) { body.pack-home .main-nav { grid-template-columns:repeat(6,minmax(0,1fr)); } }
@media(max-width:600px) { .rewards-hero,.reward-loyalty { padding:22px; } body.pack-home .main-nav { grid-template-columns:repeat(6,minmax(0,1fr)); } body.pack-home .main-nav a { font-size:9px; min-width:0; } }
[data-reward-history]>div { padding:0 16px 16px; }
