/* Daily Count card on the Shift Pass. */
.daily { margin-bottom: 22px; border: 2px solid var(--g-gold); box-shadow: 6px 6px 0 var(--navy-deep); }
.daily-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.daily-head h2 { margin: 0; font-size: 22px; }
.daily-streak { padding: 6px 10px; border-radius: 8px; background: var(--navy-deep); color: var(--g-gold); font: 800 12px/1.3 ui-monospace, monospace; }
.daily-items { display: grid; gap: 12px; }
.daily-item { border-radius: 15px; overflow: hidden; background: var(--cream); color: var(--navy); border: 1px solid var(--yellow-shadow); }
.daily-item-head {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 9px 12px; padding: 14px; color: var(--cream);
  background: radial-gradient(circle at 100% 0, var(--mix-cream-9-transparent), transparent 65%), var(--navy-deep);
}
.daily-product-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.daily-item-head h3 { margin: 0; font-size: clamp(19px, 5vw, 25px); line-height: 1.15; letter-spacing: -.03em; }
.daily-kicker, .daily-progress-label { color: var(--g-gold); font: 750 12px/1.3 ui-monospace, monospace; }
.daily-kicker { margin: 0 0 2px; text-transform: uppercase; letter-spacing: .07em; }
.daily-icon { display: grid; place-items: center; flex: none; width: 43px; height: 43px; border-radius: 10px; background: var(--navy-panel); border: 1px solid var(--navy-border); font-size: 25px; line-height: 1; }
.daily-progress { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; width: 100%; }
.daily-progress span { height: 5px; border-radius: 5px; background: var(--navy-border); }
.daily-progress .is-done { background: var(--g-gold); }
.daily-item-body { display: grid; gap: 12px; padding: 13px; min-width: 0; }
.daily-checkpoints { list-style: none; margin: 0; padding: 0; }
.daily-checkpoint { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 0; }
.daily-checkpoint + .daily-checkpoint { border-top: 1px solid var(--border-soft); }
.daily-checkpoint p { margin: 2px 0 0; color: var(--text-muted); font-size: 13px; }
.daily-checkpoint-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: var(--blue-soft); color: var(--navy); font: 800 14px/1 ui-monospace, monospace; }
.daily-checkpoint.is-done .daily-checkpoint-icon { background: var(--yellow-soft); color: var(--navy); }
.daily-checkpoint-xp { font: 750 12px/1.3 ui-monospace, monospace; text-align: right; }
.daily-stock, .daily-score { display: grid; gap: 6px; margin: 0; padding: 9px 6px; text-align: center; border-radius: 10px; background: var(--yellow-soft); }
.daily-stock { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.daily-score { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.daily-stock div:last-child { border-left: 1px solid var(--border); }
.daily-stock dt, .daily-score dt { color: var(--text-muted); font-size: 12px; }
.daily-stock dd, .daily-score dd { margin: 2px 0 0; font: 850 21px/1.2 ui-monospace, monospace; }
.daily-main-actions, .daily-utilities { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.daily-main-actions .btn { flex: 1 1 155px; }
.daily-main-actions .text-button { padding-inline: 8px; }
.daily-utilities .text-button { display: inline-flex; align-items: center; }
.daily-finish { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 10px; border: 1px solid var(--yellow-shadow); border-radius: 10px; background: var(--g-gold); }
.daily-finish span { font: 800 13px/1.3 ui-monospace, monospace; }
.daily-finish.is-new { animation: daily-stamp .32s ease-out both; }
@keyframes daily-stamp { from { transform: scale(.95); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .daily-finish.is-new { animation: none; } }
.daily-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
 
.daily-step { padding: 12px; border-radius: 12px; background: var(--blue-soft); border: 1px solid var(--border-soft); margin: 0; }
.daily-label { margin: 0 0 10px; font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.daily-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.daily-small { margin: 6px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; font-weight: 500; }
.daily-label .daily-small { margin: 0; }
.daily-done { margin: 8px 0; font-size: 15px; line-height: 1.5; }
.daily-done .text-button { min-height: 32px; padding: 4px 6px; }
.daily-error { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: var(--coral-soft); color: var(--coral-dark); font-weight: 700; font-size: 14px; }
.daily-alert { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: var(--yellow-soft); border: 1px dashed var(--yellow-shadow); font-size: 14px; line-height: 1.45; }
.daily-alert .text-button { display: block; padding: 6px 0; }
.daily-yesterday { background: var(--yellow-soft); }

.stepper { display: inline-grid; grid-template-columns: 48px 68px 48px; height: 52px; border-radius: 14px; overflow: hidden; border: 2px solid var(--navy); background: var(--cream); }
.step-btn { border: 0; background: var(--navy); color: var(--g-gold); font: 900 26px/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; touch-action: manipulation; }
.step-btn:active { background: var(--navy-panel); }
.step-btn:disabled { opacity: .5; }
.stepper input { width: 100%; border: 0; text-align: center; font: 900 24px/1 Inter, ui-sans-serif, system-ui, sans-serif; color: var(--navy); background: var(--cream); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: 3px solid var(--blue); outline-offset: -3px; }

.daily-confirm { display: grid; gap: 10px; }
.daily-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 6px 0; }
.daily-figures div { padding: 10px 6px; border-radius: 12px; background: var(--navy); color: var(--cream); text-align: center; }
.daily-figures span { display: block; color: var(--g-highlight); font: 700 11px/1.3 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; }
.daily-figures b { display: block; margin-top: 4px; font: 900 22px/1.1 Inter, ui-sans-serif, system-ui, sans-serif; }
.daily-advice { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--cream); border: 1px solid var(--border); font-size: 14px; line-height: 1.45; }
.daily-advice.warn { background: var(--coral-soft); border-color: var(--coral-light); }
.daily-advice.good { background: var(--yellow-soft); border-color: var(--yellow-shadow); }
.daily-carry { margin: 0; font-size: 14px; }
.daily-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.daily-item .btn-ghost { color: var(--navy); border-color: var(--border); background: var(--cream); }

.daily-game { display: grid; gap: 10px; padding: 11px; border-radius: 11px; background: var(--navy); color: var(--cream); }
.daily-game-head { display: flex; justify-content: space-between; align-items: center; gap: 7px 10px; flex-wrap: wrap; }
.daily-game h4 { margin: 0; font-size: 15px; line-height: 1.25; }
.daily-game .daily-small { color: var(--light-muted); margin: 3px 0 0; }
.daily-game strong { color: var(--g-gold); }
.daily-game.won { box-shadow: inset 0 0 0 1px var(--g-gold); }
.daily-game .btn-ghost { color: var(--cream); border-color: var(--navy-border); background: transparent; }
.daily-game .stepper { border-color: var(--g-gold); }
.daily-guess-editor { display: grid; gap: 8px; justify-items: start; }
.daily-reaction { margin: 0; padding: 9px 12px; border-radius: 10px; background: var(--yellow-soft); border: 1px solid var(--yellow-shadow); font-size: 14px; line-height: 1.45; }
.daily-reaction strong { color: var(--navy); }
.daily-recent { font-size: 14px; border-top: 1px solid var(--border-soft); }
.daily-recent summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
.daily-recent table { width: 100%; border-collapse: collapse; }
.daily-recent th, .daily-recent td { padding: 6px 4px; border-bottom: 1px solid var(--border-soft); text-align: right; }
.daily-recent th:first-child, .daily-recent td:first-child { text-align: left; }
.daily-recent th { color: var(--text-muted); font: 700 11px/1.3 ui-monospace, monospace; text-transform: uppercase; }
.daily-foot { margin: 12px 0 0; color: var(--light-muted); font-size: 13px; line-height: 1.5; }

@media (max-width: 420px) {
  .daily-score { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-row .btn { flex: 1; }
}

.daily .btn, .daily .text-button { white-space: normal; overflow-wrap: normal; }
.daily-row .btn { flex: 1 1 auto; min-width: 104px; }
.daily-confirm .stepper { justify-self: start; }
.daily-recent summary::after { content: "▾"; margin-left: 6px; color: var(--text-muted); }
.daily-recent[open] summary::after { content: "▴"; }
