/* Home-only reward control in the existing title column, beside Profile. */
.daily-login-button { display: none; }
body[data-screen="home"] .daily-login-button:not([hidden]) {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-height: 48px; min-width: 64px; max-width: 100%; padding: 6px 9px;
  border: 1px solid #ba8c36; border-radius: 13px;
  background: linear-gradient(140deg, #3e1b58, #211429 65%, #3d2d14);
  box-shadow: inset 0 1px 0 #ffffff1a; color: #ffdf85; cursor: pointer; font: inherit;
}
.daily-login-button > span { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; line-height: 1.2; }
.daily-login-button > strong { font-size: 14px; line-height: 1.2; white-space: nowrap; }
.daily-reward-currency { display: inline-flex; align-items: center; justify-content: center; gap: .25em; white-space: nowrap; color: inherit; font: inherit; vertical-align: middle; }
.daily-reward-coin { display: inline-block; width: 1.3em; height: 1.3em; flex: 0 0 auto; object-fit: contain; vertical-align: -.2em; }
.daily-login-button[data-phase="loading"] { border-color: #9863bd; color: #e5d6ef; }
.daily-login-button[data-phase="loading"] > strong { font-size: 10px; }
.daily-login-button[data-phase="error"] { border-color: #f4bc64; }
.daily-login-button:hover { filter: brightness(1.12); }
.daily-login-button:active { filter: brightness(.94); }
@media (min-width: 721px) {
  body[data-screen="home"] .topbar-title-group:has(.daily-login-button:not([hidden])) {
    display: flex; align-items: center; gap: 18px; margin-right: auto;
  }
  body[data-screen="home"] .topbar-title-group:has(.daily-login-button:not([hidden])) #screen-copy { display: none; }
}
@media (max-width: 720px) {
  /* Keep the Home heading available to screen readers while giving this small
     title column to the reward; notifications and the wallet stay in place. */
  body[data-screen="home"] .topbar-title-group:has(.daily-login-button:not([hidden])) #screen-title {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  body[data-screen="home"] .daily-login-button:not([hidden]) { min-width: 0; width: min(92px, 100%); padding: 5px 3px; }
}
.daily-reward-panel.selection-modal { width: min(540px, 100%); gap: 16px; padding: 20px; min-width: 0; }
.daily-reward-heading { display: flex; align-items: center; gap: 12px; }
.daily-reward-heading > div { min-width: 0; flex: 1; }
.daily-reward-heading h2 { margin: 5px 0 0; font-size: 24px; line-height: 1.15; overflow-wrap: anywhere; }
.daily-reward-heading > button { flex-shrink: 0; min-height: 44px; }
.daily-reward-eyebrow { color: #edc668; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.daily-reward-status { display: grid; gap: 10px; padding: 16px; border: 1px solid #8c6836; border-radius: 14px; background: linear-gradient(130deg,#42234f,#2a1a24); }
.daily-reward-amount { display: flex; align-items: center; gap: 10px; }
.daily-reward-amount strong { color: #ffe39c; font-size: 23px; line-height: 1.2; }
.daily-reward-claimed { color: #ace8c7; font-size: 14px; font-weight: 700; }
.daily-reward-status p, .daily-reward-note { margin: 0; font-size: 14px; line-height: 1.5; color: #d7cadf; }
.daily-reward-track { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; }
.daily-reward-track li { display: grid; gap: 6px; text-align: center; padding: 12px 3px; border: 1px solid #514159; border-radius: 10px; background: #211729; color: #cfc1d8; }
.daily-reward-track li > span:first-child { font-size: 12px; font-weight: 700; }
.daily-reward-track li > strong { font-size: 17px; color: #f6e1a6; white-space: nowrap; }
.daily-reward-track .is-collected { background: #20392d; border-color: #548868; }
.daily-reward-track .is-today { border: 2px solid #eac766; background: linear-gradient(140deg,#4d2c63,#31211e); }
.daily-reward-day-status { font-size: 10px; line-height: 1.3; }
.daily-reward-next { display: grid; gap: 6px; }
.daily-reward-next strong { color: #f9dda0; font-size: 16px; }
.daily-reward-next > span { color: #cfc1d8; font-size: 13px; line-height: 1.5; }
.daily-reward-rules { border-top: 1px solid #57405c; font-size: 13px; line-height: 1.5; color: #d7cadf; }
.daily-reward-rules summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; color: #edc668; font-weight: 800; list-style: none; }
.daily-reward-rules summary::-webkit-details-marker { display: none; }
.daily-reward-rules summary::after { content: "+"; font-size: 20px; }
.daily-reward-rules[open] summary::after { content: "−"; }
.daily-reward-rules ul { margin: 0; padding-left: 20px; }
.daily-reward-rules li + li { margin-top: 9px; }
@media (max-width: 380px) {
  .daily-reward-panel.selection-modal { padding: 14px; gap: 12px; }
  .daily-reward-heading h2 { font-size: 21px; }
  .daily-reward-amount strong { font-size: 20px; }
}
@media (max-width: 520px) {
  .daily-reward-track { gap: 5px; }
  .daily-reward-track li { padding: 10px 2px; }
  .daily-reward-track li > span:first-child { font-size: 10px; }
  .daily-reward-track li > strong { font-size: 14px; }
  .daily-reward-track .daily-reward-currency { flex-direction: column; gap: 3px; }
  .daily-reward-day-status { font-size: 9px; overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
  .daily-reward-track { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .daily-reward-track li > span:first-child { font-size: 12px; }
  .daily-reward-track li > strong { font-size: 17px; }
  .daily-reward-track .daily-reward-currency { flex-direction: row; }
  .daily-reward-day-status { font-size: 11px; }
  .daily-reward-heading { position: sticky; top: -14px; z-index: 1; background: #100919; padding-block: 8px; }
}
