/* The reward ledger is committed before this optional presentation opens. */
.rewards-dialog{box-sizing:border-box;width:min(520px,calc(100% - 28px));max-width:none;max-height:calc(100dvh - 24px);padding:0;margin:auto;border:1px solid var(--theme-line,#dfe5da);border-radius:23px;background:var(--theme-surface,#fff);color:var(--theme-text,#252c27);box-shadow:0 24px 80px #0004;overflow:hidden;--reward-ink:#d5b36b}
.rewards-dialog::backdrop{background:#08100bbd;backdrop-filter:blur(5px)}
.rewards-dialog *{box-sizing:border-box}.rewards-dialog [hidden]{display:none!important}
.rewards-content{position:relative;display:flex;flex-direction:column;max-height:calc(100dvh - 26px);min-height:0}
.reward-body{padding:30px 27px 0;overflow:auto;min-height:0;overscroll-behavior:contain}
.reward-close{position:absolute;right:10px;top:10px;width:44px;height:44px;padding:0;border:0;border-radius:10px;background:var(--theme-surface,#fff);color:var(--theme-muted,#69775e);font:26px/1 system-ui;cursor:pointer;z-index:5}
.rewards-dialog button:focus-visible{outline:3px solid var(--theme-focus,#779642);outline-offset:3px}
.rewards-dialog h2{margin:0;font-size:28px;line-height:1.17;letter-spacing:-.8px;outline:none}
.reward-bonus h2{padding-right:29px}.reward-description{margin:10px 0 0;font-size:14px;line-height:1.5;color:var(--theme-muted,#69775e)}
.reward-badges{padding:0 3px 0 0;margin:22px 0 20px;list-style:none;display:grid;gap:9px;max-height:clamp(85px,calc(100dvh - 455px),280px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.reward-badges li{display:flex;align-items:center;gap:12px;border:1px solid var(--theme-line,#dfe5da);background:var(--theme-raised,#f0f3eb);border-radius:13px;padding:11px 12px;min-width:0}
.reward-badges li.counted{border-color:var(--theme-accent,#536b36)}
.reward-badges img{width:42px;height:50px;object-fit:contain;flex:none}.reward-badges li>div{flex:1;min-width:0}
.reward-badges strong{display:block;font-size:15px;line-height:1.25}.reward-badges li>div>span{display:block;color:var(--theme-muted,#69775e);font-size:12px;line-height:1.4;margin-top:5px}
.reward-badges b{display:flex;align-items:center;gap:4px;font-size:18px;color:var(--theme-accent,#536b36);white-space:nowrap;flex:none}
.reward-progress-box{border:1px solid var(--theme-line,#dfe5da);border-radius:14px;background:var(--theme-page,#f6f7f5);padding:17px}
.reward-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.reward-progress-heading>strong{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:25px;line-height:1.2;font-variant-numeric:tabular-nums}
.reward-progress-heading small{font-size:13px;font-weight:450;color:var(--theme-muted,#69775e)}
.reward-progress{display:block;appearance:none;-webkit-appearance:none;width:100%;height:9px;border:0;border-radius:10px;overflow:hidden;margin-top:13px;background:var(--theme-line,#dfe5da);color:var(--theme-accent,#536b36)}
.reward-progress::-webkit-progress-bar{background:var(--theme-line,#dfe5da);border-radius:10px}.reward-progress::-webkit-progress-value{background:var(--theme-accent,#536b36);border-radius:10px}.reward-progress::-moz-progress-bar{background:var(--theme-accent,#536b36);border-radius:10px}
.reward-progress-meta{margin:9px 0 0;font-size:12px;line-height:1.4;color:var(--theme-muted,#69775e)}
.reward-source{display:flex;align-items:center;gap:6px;margin:13px 0 0;font-size:13px;line-height:1.4;color:var(--theme-accent,#536b36)}.reward-source.negative{color:#bb5d55}
.reward-footer{padding:20px 27px 18px;display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:10px;background:var(--theme-surface,#fff);position:relative;z-index:2;flex:none}
.reward-continue{min-height:48px;font:inherit;font-size:16px;font-weight:650;line-height:1.3;border-radius:12px;cursor:pointer}.reward-replay{width:48px;height:48px;padding:0;border:1px solid var(--theme-line,#dfe5da);border-radius:12px;background:var(--theme-raised,#f0f3eb);color:var(--theme-text,#252c27);font:27px/1 system-ui;cursor:pointer}.reward-replay:disabled{opacity:.4;cursor:default}
.reward-status{grid-column:1/-1;margin:1px 0 0;min-height:17px;font-size:12px;line-height:1.45;text-align:center;color:var(--theme-muted,#69775e)}
.rewards-dialog.is-medal{width:min(460px,calc(100% - 28px))}.reward-medal{text-align:center;perspective:900px}
.reward-eyebrow{margin:0 30px;color:var(--reward-ink);text-transform:uppercase;font-size:11px;letter-spacing:1.6px;font-weight:750;line-height:1.5}
.reward-stage{height:228px;margin:10px 0 0;position:relative;display:grid;place-items:center;isolation:isolate}
.reward-medal-art{position:relative;z-index:2;display:block;width:146px;height:171px;object-fit:contain;transform-origin:50% 28%;backface-visibility:hidden;filter:drop-shadow(0 14px 12px #0002)}
.reward-aura{position:absolute;left:50%;top:-10px;transform:translateX(-50%);width:240px;height:240px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--reward-ink) 24%,transparent),color-mix(in srgb,var(--reward-ink) 5%,transparent) 45%,transparent 70%);z-index:-1}
.reward-orbit{position:absolute;left:calc(50% - 103px);top:0;width:206px;height:206px;border:1px dashed color-mix(in srgb,var(--reward-ink) 30%,transparent);border-radius:50%;z-index:-1;opacity:.5}
.reward-sparks{position:absolute;inset:0;pointer-events:none}.reward-sparks i{position:absolute;left:50%;top:46%;width:4px;height:8px;border-radius:2px;background:var(--reward-ink);opacity:0}
.reward-sparkle{position:absolute;font-size:25px;color:var(--reward-ink)}.reward-sparkle.one{top:35px;left:calc(50% - 104px)}.reward-sparkle.two{top:67px;right:calc(50% - 111px);font-size:31px}.reward-sparkle.three{bottom:42px;right:calc(50% - 82px);font-size:17px}
.reward-medal h2{font-size:43px;letter-spacing:-1.4px}.reward-medal-description{display:flex;align-items:center;justify-content:center;gap:5px;margin:12px 0 0;color:var(--theme-muted,#69775e);font-size:14px;line-height:1.5}
.reward-frame-box{display:flex;align-items:center;gap:13px;padding:14px;margin-top:22px;border:1px solid color-mix(in srgb,var(--reward-ink) 40%,var(--theme-line));border-radius:14px;text-align:left;background:color-mix(in srgb,var(--reward-ink) 5%,var(--theme-surface))}
.reward-avatar{position:relative;width:60px;height:60px;flex:none;display:block}.reward-avatar>svg{position:absolute;inset:0;width:100%;height:100%;border-radius:50%}.reward-avatar>img{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.reward-frame-box strong{display:block;font-size:15px;line-height:1.3}.reward-frame-description{display:block;color:var(--theme-muted,#69775e);font-size:12px;line-height:1.5;margin-top:4px}.reward-check{margin-left:auto;color:var(--reward-ink);font-size:22px;flex:none}
@media(max-width:540px){.reward-body{padding:25px 20px 0}.rewards-dialog h2{font-size:26px}.reward-badges li{padding:10px;gap:10px}.reward-badges img{width:36px;height:43px}.reward-badges strong{font-size:14px}.reward-badges li>div>span{font-size:11px}.reward-badges b{font-size:17px}.reward-footer{padding:18px 20px 15px}.reward-progress-box{padding:15px}.reward-progress-heading{font-size:12px}.reward-progress-heading>strong{font-size:23px}.reward-stage{height:208px}.reward-medal-art{width:137px;height:160px}.reward-aura{width:225px;height:225px}.reward-medal h2{font-size:39px}.reward-frame-box{padding:12px;gap:11px}.reward-frame-box strong{font-size:14px}.reward-avatar{width:54px;height:54px}}
@media(max-height:650px){.reward-stage{height:160px}.reward-medal-art{width:108px;height:126px}.reward-aura{height:180px;width:180px;top:-7px}.reward-orbit{width:168px;height:168px;left:calc(50% - 84px);top:-6px}.reward-medal h2{font-size:34px}.reward-frame-box{margin-top:15px}.reward-sparkle.one{left:calc(50% - 86px);top:22px}.reward-sparkle.two{right:calc(50% - 88px);top:45px}}
@media(prefers-reduced-motion:reduce){.rewards-dialog *{animation:none!important;transition:none!important}.reward-aura,.reward-orbit,.reward-sparks,.reward-sparkle{display:none}}
