/* Daily Reward panel (Nov 19 2026): the pixel town's look. A pixel scene of a treasure chest on a porch (closed while
   today's reward waits, open once claimed), a cream text box with a chunky wooden border, pixel-art coins, flame and
   ticks (drawn in app.js renderStreak), and the town's pixel font. Same rewards and the same claim as before. */
#streak{align-items:safe center;background:radial-gradient(ellipse 80% 70% at 50% 45%,rgba(92,50,18,.78),rgba(24,12,6,.93));-webkit-backdrop-filter:blur(6px) sepia(.35);backdrop-filter:blur(6px) sepia(.35)}
#streak .results.drp-on{position:relative;max-width:560px;padding:0;overflow:hidden;background:#f6e7c8;border:0;border-radius:0;
  box-shadow:0 0 0 4px #5a2e0e,0 0 0 8px #e9b86a,0 0 0 12px #5a2e0e,0 24px 60px rgba(0,0,0,.6)}
@media (min-width:1200px){#streak .results.drp-on{zoom:1.15}}
#streak .drp-on .r-head{position:absolute;z-index:3;top:10px;right:10px;left:auto;padding:0;background:none;border:0}
#streak .drp-on .r-title{display:none}
/* the close button: a small pixel X (the word stays for screen readers) */
#streak .drp-on .r-close{font-size:0!important;width:36px!important;height:36px!important;min-width:0!important;padding:0!important;display:grid!important;place-items:center;line-height:1;
  background:#f6e7c8;border:0;border-radius:0;box-shadow:0 0 0 3px #5a2e0e,0 4px 0 3px #5a2e0e}
#streak .drp-on .r-close::after{content:"X";font:400 13px/1 PixelPkmn,monospace;color:#5a2e0e}
.drp{color:#4a2a12;display:flex;flex-direction:column}
/* the scene: 192x72 pixel art scaled up with no smoothing, anchored to the bottom so the sign clears the chest */
.drp-ban{position:relative;height:190px;background:url(assets/ui/drp-chest-closed.png) center 100%/cover no-repeat;image-rendering:pixelated;border-bottom:4px solid #5a2e0e}
.drp-ban.open{background-image:url(assets/ui/drp-chest-open.png)}
.drp-ban::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 40%,rgba(40,20,5,.35))}
.drp-ban.rattle{animation:drprattle .36s steps(6)}
@keyframes drprattle{0%,100%{background-position:center 100%}20%{background-position:calc(50% - 3px) 100%}40%{background-position:calc(50% + 3px) 100%}60%{background-position:calc(50% - 2px) 100%}80%{background-position:calc(50% + 2px) 100%}}
.drp-glow{position:absolute;left:var(--cx,41%);top:var(--cy,60%);width:140px;height:140px;margin:-70px 0 0 -70px;border-radius:50%;pointer-events:none;opacity:0;
  background:radial-gradient(circle,rgba(255,236,150,.95) 0,rgba(255,200,60,.55) 35%,rgba(255,180,40,0) 70%)}
.drp.claiming .drp-glow{animation:drpglow .9s steps(6) forwards}
@keyframes drpglow{20%{opacity:1;transform:scale(1.2)}60%{opacity:.9;transform:scale(1.6)}100%{opacity:0;transform:scale(2)}}
.drp-sign{position:absolute;z-index:2;left:50%;bottom:-22px;transform:translateX(-50%);display:flex;align-items:center;gap:10px;padding:10px 16px 9px;background:#8a5a2b;
  box-shadow:0 0 0 3px #5a2e0e,inset 0 3px 0 #b07a3e,inset 0 -3px 0 #6b4220,0 6px 0 3px rgba(40,20,5,.35);white-space:nowrap}
.drp-sign b{font:400 14px/1 PixelPkmn,monospace;color:#fff1c9;letter-spacing:.04em;text-shadow:2px 2px 0 #5a2e0e}
.drp-body{display:flex;flex-direction:column;align-items:center;gap:16px;padding:38px 18px 20px}
.drp-st{display:flex;flex-direction:column;align-items:center;gap:8px}
.drp-st.cold .drp-flame{filter:grayscale(1) brightness(.9)}
.drp-hl{display:flex;align-items:center;gap:10px}
.drp-hl .drp-flame{width:30px;height:40px;flex:none}
.drp-hl b{font:400 17px/1.1 PixelPkmn,monospace;color:#4a2a12}
/* the week: past days a coin with a tick, today a big bobbing coin, days ahead grey, day 7 the set's pack */
.drp-days{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;width:100%;max-width:480px}
.drp-d{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:74px;padding:9px 2px 8px;background:#fff7e2;box-shadow:0 0 0 3px #c9a46a}
.drp-d svg{display:block;flex:none}.drp-d .drp-coin{width:30px;height:30px}
.drp-d i{font:400 8px/1 PixelPkmn,monospace;font-style:normal;color:#c9780e}
.drp-d em{font:400 9px/1 PixelPkmn,monospace;font-style:normal;color:#4a2a12}
.drp-d.ok{background:#efe0bf;box-shadow:0 0 0 3px #b9985e}
.drp-d.ok .drp-coin,.drp-d.ok img{opacity:.45}
.drp-d.ok .drp-tick{position:absolute;width:24px;height:19px;left:50%;top:50%;transform:translate(-40%,-55%)}
.drp-d.now{background:#fff3c4;box-shadow:0 0 0 3px #5a2e0e,0 0 0 6px #ffd54a}
.drp-d.now .drp-coin{width:36px;height:36px;margin:-3px 0;animation:drpbob 1s steps(2) infinite}
@keyframes drpbob{50%{transform:translateY(-3px)}}
.drp-d img{width:26px;height:36px;object-fit:cover;box-shadow:0 0 0 2px #5a2e0e;margin:-3px 0}
.drp-d.p7 em{color:#c9780e}
.drp.claiming .drp-d.now{animation:drppop .5s steps(5)}
@keyframes drppop{40%{transform:scale(1.25)}}
.drp-btn{font:400 14px/1 PixelPkmn,monospace;color:#4a2a12;background:#ffd54a;border:0;border-radius:0;padding:16px 26px 14px;cursor:pointer;letter-spacing:.03em;
  box-shadow:0 0 0 4px #5a2e0e,inset 0 -5px 0 #e0a01a,inset 0 4px 0 #fff1a8,0 7px 0 4px #5a2e0e;transition:transform .06s}
.drp-btn:hover{background:#ffde6a}
.drp-btn:active{transform:translateY(5px);box-shadow:0 0 0 4px #5a2e0e,inset 0 -3px 0 #e0a01a,inset 0 3px 0 #fff1a8,0 2px 0 4px #5a2e0e}
.drp-btn:focus-visible{outline:3px dashed #5a2e0e;outline-offset:10px}
.drp-done{display:flex;align-items:center;gap:10px;font:400 11px/1.3 PixelPkmn,monospace;color:#3f7a3f;background:#e6f3d9;padding:12px 16px;box-shadow:0 0 0 3px #3f7a3f}
.drp-done .drp-tick{width:22px;height:17px;flex:none}
.drp-line{font:400 11px/1.6 PixelPkmn,monospace;color:#8a6a4a;text-align:center;letter-spacing:.03em}
.drp-line b{font-weight:400;color:#c9561a}
/* claiming: coins fly from the chest to the dust counter, which bumps as they land */
.drp-fly{position:fixed;z-index:9999;width:22px;height:22px;pointer-events:none}
.drp-fly svg{width:100%;height:100%;display:block}
.drp-bump{animation:drpbump .35s steps(3)}
@keyframes drpbump{50%{transform:scale(1.25)}}
@media (max-width:480px){
  .drp-ban{height:150px}.drp-hl b{font-size:14px}.drp-line{font-size:10px}
  .drp-days{gap:5px}.drp-d{min-height:62px;padding:6px 0 5px}.drp-d .drp-coin{width:24px;height:24px}.drp-d.now .drp-coin{width:28px;height:28px}
  .drp-d em,.drp-d i{font-size:7px}.drp-d img{width:20px;height:28px}.drp-d.ok .drp-tick{width:19px;height:15px}
  .drp-btn{font-size:12px;padding:14px 18px 12px}.drp-sign b{font-size:12px}}
@media (prefers-reduced-motion:reduce){.drp-d.now .drp-coin,.drp.claiming .drp-d.now,.drp.claiming .drp-glow,.drp-ban.rattle,.drp-bump{animation:none}}
