/* Pear Presser — daily rewards: the Daily tile on the Press screen and the Daily rewards sheet.
 * Same candy look as the rest. Nothing here animates to attract attention: the only cue that a
 * reward is waiting is a small still dot on the tile.
 * Desktop-only rules are in css/desktop.css, which loads after this file. */

.ico-cal { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M5.500 4.500h1.700V3.200a1.100 1.100 0 0 1 2.200 0v1.300h5.200V3.200a1.100 1.100 0 0 1 2.200 0v1.300h1.700A2.500 2.500 0 0 1 21 7v11.500a2.500 2.500 0 0 1-2.500 2.500h-13A2.500 2.500 0 0 1 3 18.500V7a2.500 2.500 0 0 1 2.500-2.500zM5 9.200v1.300h14V9.200zM10.700 19.200l6.100-6.100-1.500-1.500-4.600 4.600-2-2-1.500 1.500z'/%3E%3C/svg%3E"); }

/* --- the Daily tile: a candy tile like Quest, Boosts and Arcade --- */
.quick.daily-btn { --c1: #dccdff; --c2: #6f47e6; }
.daily-btn .dot { position: absolute; top: -5px; right: 2px; z-index: 3; width: 14px; height: 14px; border-radius: 50%; background: #ff3d6e; border: 2.5px solid var(--ink); box-shadow: inset 0 2px 0 rgba(255,255,255,.45); }
@media (max-width: 350px) { .daily-btn .dot { right: -1px; } }

/* Phone layout (the same condition as the side buttons in css/ads.css): Daily is a side button beside the pear.
   Without the Boosts tile it takes the slot under Quest on the left; with it, Daily sits on the right under Arcade. */
@media (max-width: 1023.98px), (max-height: 559.98px) {
  .hud-quick .quick.daily-btn { left: 0; right: auto; top: calc(100% + 84px); }
  html:not(.has-boosts) #quest-chip[hidden] ~ .daily-btn { top: calc(100% + 6px); }      /* no quest to show: no empty slot above */
  .has-boosts .hud-quick .quick.daily-btn { left: auto; right: 0; }
}

/* --- the Daily rewards sheet --- */
dialog.daily-dlg { width: min(94vw, 400px); max-height: min(88vh, 760px); max-height: min(88dvh, 760px); }
.daily-dlg .dlg-body { align-items: stretch; text-align: left; gap: 9px; padding: 14px 12px 6px; }
.daily-sheet { display: flex; flex-direction: column; gap: 9px; }
.daily-sheet p { max-width: none; margin: 0; }
.dy-intro { text-align: center; font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.25; text-wrap: balance; }

.dy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.dy-day { position: relative; min-width: 0; min-height: 76px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 3px 6px; border: 2.5px solid var(--ink); border-radius: 15px;
  background: linear-gradient(180deg, #fffdf2, #fff1bd); box-shadow: 0 3px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.9); }
.dy-n { font-family: var(--display); font-weight: 600; font-size: 12px; line-height: 1; padding: 2px 7px 3px; border-radius: 999px; background: #ffe58f; border: 2px solid var(--ink); white-space: nowrap; }
.dy-rw { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; max-width: 100%; }
.dy-rw span { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; font-family: var(--display); font-weight: 600; font-size: 14px; line-height: 1.15; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dy-rw .ico { font-size: 15px; }
.dy-rw .em { font-size: 13px; line-height: 1; }
/* claimed: green, with a tick */
.dy-day.is-claimed { background: linear-gradient(180deg, #f3ffd9, #cdee8d); }
.dy-day.is-claimed .dy-n { background: #b9e868; }
.dy-day.is-claimed .dy-rw { opacity: .62; }
.dy-tick { position: absolute; top: -7px; right: -5px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #58b81e; border: 2.5px solid var(--ink); color: #fff; font-size: 12px; box-shadow: inset 0 2px 0 rgba(255,255,255,.4); }
.dy-tick .ico { font-size: 12px; background: #fff; }
/* today: golden, lifted */
.dy-day.is-today { background: linear-gradient(180deg, #fff9c7, #ffd24a); box-shadow: 0 3px 0 var(--ink), 0 0 0 3px #fff8b0, 0 0 12px 3px rgba(255,214,90,.75), inset 0 2px 0 rgba(255,255,255,.9); }
.dy-day.is-today .dy-n { background: #fff; }
/* still to come: previewed, dimmed */
.dy-day.is-upcoming { background: linear-gradient(180deg, #fbf8ea, #efe6c2); box-shadow: 0 3px 0 rgba(42,32,20,.55), inset 0 2px 0 rgba(255,255,255,.9); border-color: rgba(42,32,20,.6); }
.dy-day.is-upcoming .dy-n { background: #f1e7bd; border-color: rgba(42,32,20,.6); }
.dy-day.is-upcoming .dy-rw { opacity: .7; }
/* day 7: the big one, twice as wide */
.dy-day.is-big { grid-column: span 2; background: linear-gradient(180deg, #f4ecff, #cdb6ff); }
.dy-day.is-big .dy-n { background: #ffe873; }
.dy-day.is-big .dy-rw { flex-direction: row; flex-wrap: wrap; gap: 1px 9px; }
.dy-day.is-big .dy-rw span { font-size: 14.5px; }
.dy-day.is-big.is-claimed { background: linear-gradient(180deg, #f3ffd9, #cdee8d); }
.dy-day.is-big.is-today { background: linear-gradient(180deg, #fff3b0, #ffc23a 55%, #ff9fd0); }
.dy-day.is-big.is-upcoming { background: linear-gradient(180deg, #f6f0ff, #ddd0f7); }

/* today's reward and the Claim button, or the wait until the next one */
.dy-card { display: flex; flex-direction: column; align-items: stretch; gap: 7px; padding: 9px 10px 10px; border: 2.5px solid var(--ink); border-radius: 18px; background: linear-gradient(180deg, #fffdf2, #fff1bd); box-shadow: 0 3px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.9); text-align: center; }
.dy-head { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.15; }
.dy-head small { display: block; font-family: var(--body); font-weight: 800; font-size: 12px; color: var(--ink-soft); }
.dy-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 6px; }
.dy-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px 3px 8px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dy-chip .ico { font-size: 17px; }
.dy-chip .em { font-size: 15px; line-height: 1; font-style: normal; }
.dy-rw .em { font-style: normal; }
.dy-note { font-size: 12px; line-height: 1.3; font-weight: 700; color: var(--ink-soft); text-align: center; text-wrap: pretty; }
.dy-claim { min-height: 50px; font-size: 21px; font-weight: 700; }
.dy-card.is-wait { background: linear-gradient(180deg, #f2fbff, #cfeaff); }
.dy-wait { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 10px; text-align: left; }
.dy-moon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 25px; line-height: 1; border: 2.5px solid var(--ink);
  background: radial-gradient(circle at 26% 20%, rgba(255,255,255,.88) 0 8%, rgba(255,255,255,0) 9%), linear-gradient(180deg, #bfe6ff, #3f8fe6); box-shadow: 0 3px 0 var(--ink), inset 0 -5px 0 rgba(0,0,0,.16); }
.dy-wait b { display: block; font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.15; }
.dy-wait span { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.dy-wait span b { display: inline; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.dy-got { font-family: var(--display); font-weight: 600; font-size: 13.5px; color: var(--ink-soft); text-align: center; }
.dy-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 7px; }
.dy-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; border: 2.5px solid var(--ink); background: #fffdf2; font-family: var(--display); font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.dy-pill.is-row { background: #ffe58f; }
.dy-more { font-size: 12px; line-height: 1.3; font-weight: 700; color: var(--ink-soft); text-align: center; text-wrap: pretty; }

@media (max-width: 350px) {
  .daily-dlg .dlg-body { padding: 13px 8px 5px; gap: 8px; }
  .dy-grid { gap: 5px; }
  .dy-day { min-height: 70px; padding: 4px 1px 5px; border-radius: 13px; }
  .dy-n { font-size: 11px; padding: 2px 5px 3px; }
  .dy-rw span, .dy-day.is-big .dy-rw span { font-size: 12.5px; gap: 2px; }
  .dy-rw .ico { font-size: 13px; }
  .dy-day.is-big .dy-rw { gap: 1px 6px; }
  .dy-intro { font-size: 14px; }
  .dy-claim { min-height: 46px; font-size: 19px; }
}
@media (max-height: 640px) {
  .dy-day { min-height: 66px; }
  .dy-card { gap: 5px; padding: 7px 9px 8px; }
  .dy-claim { min-height: 44px; }
}
