#daily-reward-modal {
  width: 440px;
  max-width: calc(100vw - 20px);
  max-height: calc(100dvh - 24px);
  box-sizing: border-box;
  overflow-y: auto;
  color: #ccc;
}
#daily-reward-modal .modal-body { padding: 12px; }
#daily-reward-modal .modal-header { padding-right: 32px; }
#daily-reward-modal .close-button-transparent { position: absolute; right: 4px; top: 3px; }
.daily-reward-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.daily-reward-summary span, .daily-reward-summary strong { display: block; }
.daily-reward-summary span { font-size: 11px; color: #aab6bb; margin-bottom: 4px; }
.daily-reward-summary strong { font-size: 12px; color: #e5d393; }
.daily-reward-days { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 5px; }
.daily-reward-day { position: relative; height: 60px; min-width: 0; padding: 4px 2px; border: 1px solid #53575a; background: #292d2d; text-align: center; box-sizing: border-box; box-shadow: inset 0 0 0 1px #ffffff08; }
.daily-premium-banner { position: absolute; top: 0; left: 0; width: 35px; height: 35px; image-rendering: pixelated; pointer-events: none; }
.daily-reward-day .daily-premium-banner { width: 35px; height: 35px; }
.daily-claimed-label, .daily-reward-day.claimed strong { color: #75e69a !important; }
.daily-premium-explanation { font-size: 11px; line-height: 1.6; color: #d9c98d; }
.daily-premium-explanation img, .daily-day-tooltip img { vertical-align: middle; image-rendering: pixelated; }
.daily-day-tooltip { position: fixed; z-index: 10000002; width: 340px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow: auto; box-sizing: border-box; padding: 12px; border: 1px solid #a48c51; background: #222 url('../png/bg2.png'); color: #ddd; font: 12px/1.5 sans-serif; box-shadow: 0 4px 16px #000b; }
.daily-day-tooltip > div { margin-top: 10px; color: #e5d393; }
.daily-day-tooltip ul { margin: 4px 0; padding-left: 18px; }
.daily-day-tooltip li { margin-bottom: 4px; overflow-wrap: anywhere; }
.daily-reward-summary { padding-bottom: 12px; border-bottom: 1px solid #555; }
#daily-reward-pick-modal { width: 460px; max-width: calc(100vw - 20px); max-height: calc(100dvh - 24px); overflow-y: auto; color: #ccc; box-sizing: border-box; z-index: 50001; }
#daily-reward-pick-modal .modal-body { padding: 12px; }
#daily-reward-pick-modal .modal-header { padding-right: 32px; }
#daily-reward-pick-modal .close-button-transparent { position: absolute; right: 4px; top: 3px; }
#daily-reward-pick-modal button[action="confirm"]:disabled { opacity: .5; cursor: default; }
.daily-reward-pick-list { display: flex; flex-direction: column; gap: 5px; }
.daily-reward-pick-row { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border: 1px solid #53575a; background: #292d2d; font-size: 11px; cursor: pointer; }
.daily-reward-pick-row:hover { border-color: #d7b966; }
.daily-reward-pick-row.selected { border-color: #d7b966; background: #3d3826; }
.daily-reward-pick-row.selected span { color: #f3db9b; }
#daily-reward-pick-modal .daily-reward-pick-row { position: relative; width: 100%; height: auto; min-height: 56px; margin: 0; padding: 8px 12px; color: #d5d5d5; text-align: left; font: inherit; font-size: 12px; border-radius: 0; box-sizing: border-box; white-space: normal; }
#daily-reward-pick-modal .daily-reward-pick-row .daily-reward-icon { margin: 0; width: 32px; height: 32px; }
.daily-reward-pick-row > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.daily-reward-pick-row:focus-visible { outline: 2px solid #d7b966; outline-offset: -3px; }
.daily-reward-pick-row.selected::after { content: ''; width: 12px; height: 12px; flex: 0 0 12px; background: url('../png/window/checkbox-checked.png') center / contain no-repeat; }
#daily-reward-pick-modal .modal-footer { display: flex; justify-content: flex-end; gap: 8px; position: sticky; bottom: -12px; padding: 12px 0; margin-top: 12px; background: #292c29 url('../png/bg2.png'); z-index: 1; }
#daily-reward-pick-modal .modal-footer button { min-height: 40px; min-width: 88px; }
/* No scrollbar-gutter: stable here -- it reserved a permanent empty column on the right
   even when the content fit without scrolling, which read as an unexplained blank bar
   (Douglas screenshot 2026-09-27). The scrollbar, when it does appear, is thin (new.css)
   and does not push the grid enough to matter. */
#daily-reward-modal, #daily-reward-pick-modal { overscroll-behavior: contain; }
body.mobile-layout #daily-reward-pick-modal { width: min(420px, calc(100vw - 20px)); }
.daily-reward-icon { display: block; width: 32px; height: 32px; margin: 3px auto 0; image-rendering: pixelated; flex: 0 0 auto; }
.daily-reward-day strong { display: block; font-size: 11px; line-height: 14px; }
.daily-reward-day.claimed { border-color: #54806b; background: #253d32; }
.daily-reward-day.current { border-color: #d7b966; background: #3d3826; }
.daily-reward-rule { font-size: 11px; color: #aeb6b7; }
#daily-reward-modal [data-message] { min-height: 28px; color: #e3d6ab; font-size: 12px; }
#daily-reward-modal button:disabled { opacity: .5; cursor: default; }
#daily-reward-modal .modal-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; position: sticky; bottom: 0; padding: 8px 0; }
/* Mobile keeps the shared .modal containment from mobile-layout.css (fixed full-screen
   wrapper, position relative, max-height 100%): the old fixed/50%/translate centering here
   half-fought that system and shoved the modal off the bottom of small screens. */
body.mobile-layout #daily-reward-modal .modal-footer button { min-height: 40px; }
body.mobile-layout #daily-reward-pick-modal .modal-footer button { min-height: 44px; }
body.mobile-layout #daily-reward-pick-modal .modal-footer { bottom: -8px; }
@media (max-width: 420px) {
  .daily-reward-days { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .daily-reward-summary { gap: 5px; }
  #daily-reward-modal .modal-body { padding: 8px; }
}
