/* Existing Home/ScreenHeader/BaseButton/QuizView composition with daily data. */
.home-daily { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 14px 16px; border-radius: 26px; background: #fffdf5; box-shadow: 0 5px 0 #d8d9cc, 0 8px 16px #00124220; }
.home-daily__info { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; text-align: left; color: var(--ink); }
.home-daily__info > img { width: 48px; height: 56px; object-fit: contain; flex: none; }
.home-daily__info > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.home-daily strong { font-size: 19px; font-weight: var(--w-bold); line-height: 1.15; }
.home-daily small, .home-daily__source { font-size: 13px; line-height: 1.25; color: #53627b; }
.home-daily__play { --btn-h: 44px; --btn-font: 17px; max-width: 160px; padding-inline: 16px; gap: 8px; flex: none; }
.home-daily__play .btn__icon { width: 23px; height: 23px; }
.layout-wide .home--daily { grid-template-rows: minmax(0, 1fr); }
.layout-wide .home--daily .home__news { max-height: 100%; min-height: 0; overflow: auto; scrollbar-width: none; padding-bottom: 10px; }
@media (min-height: 741px) {
  .layout-phone .home--daily .home-stage {
    min-height: 0;
    --robot-bottom: calc(220 * var(--u) + max(44 * var(--u), 19px));
  }
}
.daily-page { display: flex; flex: 1; min-height: 0; flex-direction: column; background: #e7f4eb; }
.daily-body { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; padding: 20px 16px 28px; }
.daily-card { width: min(100%, 580px); display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 28px; background: #fffcf3; border: 1px solid #e2e2d6; border-radius: 28px; color: #1b2559; text-align: center; box-shadow: 0 4px 0 #d8dfd3; }
.daily-card__calendar { width: 76px; height: 84px; object-fit: contain; }
.daily-card h2 { font-size: clamp(24px, 4vw, 32px); line-height: 1.15; font-weight: var(--w-bold); }
.daily-card h3 { font-size: 21px; font-weight: var(--w-semibold); line-height: 1.3; }
.daily-card p { margin: 0; font-size: 16px; line-height: 1.45; color: #53627b; max-width: 40ch; }
.daily-source { max-width: 100%; padding: 8px 22px; border-radius: 99px; background: #e6edf2; font-size: 16px; font-weight: var(--w-semibold); color: #1b2559; }
.daily-streak { display: flex; flex-direction: column; gap: 16px; width: 100%; padding: 20px 14px; border: 1px solid #e1dfd4; border-radius: 20px; background: #f5f1e8; }
.daily-streak__days { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.daily-streak__days span { display: grid; place-items: center; flex: 0 1 48px; aspect-ratio: 1; max-width: 48px; border-radius: 50%; background: #e5e8eb; border: 1px solid #bbc3ca; font-size: 18px; font-weight: var(--w-semibold); color: #53627b; }
.daily-streak__days .is-done { color: white; background: #29aa55; border-color: #23974b; }
.daily-card .btn { --btn-h: 54px; --btn-font: 21px; padding-inline: 22px; gap: 12px; width: 100%; }
.daily-card .btn__icon { width: 28px; height: 28px; }
.daily-card__reset { font-size: 14px !important; }
.daily-notice, .daily-round__notice { font-size: 15px; line-height: 1.4; color: #53627b; text-align: center; padding: 8px 16px; }
.quiz--daily .quiz-banner__art { width: calc(72 * var(--u)); height: calc(72 * var(--u)); object-fit: contain; flex: none; }
.quiz--daily .result-card { width: min(100%, 540px); padding: 20px; gap: 12px; border-radius: 26px; }
.quiz--daily .result-card__hero { height: 128px; }
.quiz--daily .result-card__circle { width: 120px; height: 120px; }
.quiz--daily .result-card__robot { width: 108px; height: 120px; }
.quiz--daily .result-card__title { font-size: 28px; line-height: 1.12; }
.quiz--daily .result-card__subtitle { font-size: 16px; line-height: 1.35; }
.quiz--daily .result-card__box { width: min(100%, 260px); height: 58px; font-size: 30px; border-radius: 18px; }
.quiz--daily .result-card__caption { font-size: 15px; line-height: 1.4; }
.quiz--daily .result-card__chips { width: 100%; gap: 12px; }
.quiz--daily .result-chip { flex: 1; max-width: 160px; height: 48px; gap: 10px; padding: 0 12px; font-size: 23px; }
.quiz--daily .result-chip img { width: 30px; height: 30px; }
.quiz--daily .result-card__note { width: 100%; padding: 14px 16px; border-radius: 18px; }
.quiz--daily .result-card__note b { font-size: 17px; line-height: 1.4; }
.quiz--daily .result-card__note p { font-size: 15px; line-height: 1.4; }
.quiz--daily .result-card__actions { width: 100%; margin-top: 0; }
.quiz--daily .result-card__actions .btn { --btn-h: 54px; --btn-font: 21px; gap: 12px; }
.quiz--daily .result-card__actions .btn__icon { width: 28px; height: 28px; }
.layout-wide .quiz--daily .quiz-overlay .result-card__subtitle { font-size: 16px; }
.layout-wide .quiz--daily .quiz-overlay .result-card__caption,
.layout-wide .quiz--daily .quiz-overlay .result-card__note p { font-size: 15px; }
@media (min-width: 760px) and (max-height: 820px) {
  .daily-body { padding: 14px 16px 22px; }
  .daily-card { gap: 12px; padding: 20px; }
  .daily-card__calendar { width: 54px; height: 60px; }
  .daily-streak { gap: 10px; padding: 14px; }
}
@media (max-width: 420px) {
  .home-daily { gap: 8px; padding: 12px; border-radius: 20px; }
  .home-daily__info { gap: 9px; }
  .home-daily__info > img { width: 37px; height: 44px; }
  .home-daily strong { font-size: 16px; }
  .home-daily small, .home-daily__source { font-size: 12px; }
  .home-daily__play { min-width: 116px; max-width: 128px; --btn-font: 15px; padding-inline: 12px; }
  .home-daily__play .btn__icon { width: 19px; height: 19px; }
  .daily-body { padding: 14px 12px 24px; }
  .daily-card { padding: 22px 18px; gap: 16px; border-radius: 24px; }
}
/* Short browser viewports use the approved side-by-side Home stage. The full
   robot and primary action keep an empty band above the raised Home tab. */
@media (max-height: 740px) and (orientation: portrait) {
  .layout-phone .home--daily .home-daily { gap: 8px; padding: 10px; margin-bottom: 10px; }
  .layout-phone .home--daily .home-daily__info { gap: 8px; }
  .layout-phone .home--daily .home-daily__info > img { width: 32px; height: 38px; }
  .layout-phone .home--daily .home-daily strong { font-size: 14px; }
  .layout-phone .home--daily .home-daily small { display: none; }
  .layout-phone .home--daily .home-daily__source { font-size: 12px; }
  .layout-phone .home--daily .home-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 148px;
    padding: 8px 12px calc(20 * var(--u) + 24px);
  }
  .layout-phone .home--daily .home-stage__robot {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    flex: none;
    height: 90px;
    max-width: 24%;
  }
  .layout-phone .home--daily .home-play {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    flex: 1;
    width: auto;
    min-width: 0;
    height: 64px;
  }
}
