/* WordyKid streak art direction - decorative assets only. State and text stay server-driven. */
/* Layer loaded after streak-ui.css. All rules are scoped to the streak UI. */
.home-dashboard-metrics .wk-streak-trigger {
    position: relative;
    grid-column: 2 / 4;
    width: min(100%, 248px);
    min-width: 180px;
    height: 64px;
    min-height: 64px;
    padding: 0 72px 0 40px;
    border: 0;
    border-radius: 40px;
    overflow: visible;
    background: transparent url("../img/streak/pill.webp") center / 100% 100% no-repeat;
    box-shadow: none;
    color: #fff9e8;
    text-shadow: 0 2px 4px #4e1d83, 0 0 8px #6726a2;
    transition: transform .18s ease, filter .18s ease;
}
.home-dashboard-metrics .wk-streak-trigger:hover {
    transform: translateY(-2px) scale(1.035);
    filter: brightness(1.08);
}
.home-dashboard-metrics .wk-streak-trigger:active { transform: scale(.98); }
.wk-streak-trigger__count {
    order: 1;
    font-size: 23px;
    color: #ffe99c;
    font-weight: 1000;
    text-shadow: 0 2px 5px #47126c;
}
.wk-streak-trigger__label {
    order: 2;
    max-width: 100px;
    font-size: 12px;
    font-weight: 900;
    white-space: normal;
    line-height: 1.15;
    color: #fff;
    text-align: center;
}
.wk-streak-owl {
    --owl-scale: 1;
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 0;
    background: transparent url("../img/streak/owl.webp") center / contain no-repeat;
    box-shadow: none;
    filter: drop-shadow(0 4px 4px rgba(85, 39, 132, .22));
}
.wk-streak-owl > * { display: none !important; }
.home-dashboard-metrics .wk-streak-trigger .wk-streak-owl {
    position: absolute;
    inset-inline-end: 17px;
    width: 50px;
    height: 50px;
    order: 3;
    pointer-events: none;
}
.wk-streak-overlay {
    background: rgba(25, 10, 65, .77);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
}
.wk-streak-dialog {
    --wk-streak-ink: #4a227b;
    position: relative;
    isolation: isolate;
    width: min(100%, 584px);
    max-height: min(850px, calc(100dvh - 20px));
    padding: 0 19px 22px;
    background:
        radial-gradient(circle at 100% 65%, rgba(217, 177, 255, .58), transparent 55%),
        linear-gradient(180deg, #fff4fb 0%, #fcf1ff 55%, #f3e4ff 100%);
    color: var(--wk-streak-ink);
    border: 2px solid #ffc76e;
    border-radius: 30px;
    box-shadow: 0 0 0 5px rgba(194, 137, 255, .20), 0 25px 86px rgba(33, 12, 77, .62), inset 0 0 32px rgba(230, 187, 255, .62);
    scrollbar-width: thin;
    scrollbar-color: #c5a2ee transparent;
}
.wk-streak-dialog::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    border-radius: 0 0 30px 30px;
    background: url("../img/streak/sky.webp") center 90% / cover no-repeat;
    opacity: .12;
    z-index: -1;
    pointer-events: none;
}
.wk-streak-header {
    display: flex;
    align-items: center;
    min-height: 152px;
    gap: 8px;
    margin: 0 -19px 13px;
    padding: 10px 42px 12px 9px;
    background:
        linear-gradient(180deg, rgba(103, 44, 197, .02) 0%, rgba(250, 227, 255, .14) 70%, #fbf0ff 100%),
        url("../img/streak/sky.webp") center 45% / cover no-repeat;
    border-radius: 27px 27px 27% 27%;
    overflow: hidden;
}
.wk-streak-header .wk-streak-owl {
    width: clamp(107px, 25vw, 150px);
    height: clamp(115px, 28vw, 164px);
    align-self: center;
    margin: -4px 0 -12px;
    filter: drop-shadow(0 5px 7px rgba(83, 33, 117, .28));
}
.wk-streak-header__copy {
    z-index: 1;
    flex: 1;
    min-width: 0;
    padding: 10px 7px;
    border-radius: 18px;
    background: rgba(255, 248, 255, .47);
    box-shadow: 0 4px 30px rgba(255,255,255,.28);
}
.wk-streak-title {
    color: #50217f;
    font-size: clamp(21px, 4.5vw, 28px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -.02em;
    text-shadow: 0 2px 0 rgba(255,255,255,.74);
}
.wk-streak-subtitle {
    color: #624582;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}
.wk-streak-close {
    inset-block-start: 10px;
    inset-inline-end: 11px;
    z-index: 4;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,.91);
    color: #63318d;
    border: 1px solid rgba(169,112,213,.32);
    box-shadow: 0 3px 13px rgba(76,21,124,.23);
}
.wk-streak-stats {
    gap: 10px;
    margin-bottom: 5px;
}
.wk-streak-stat {
    position: relative;
    min-height: 82px;
    padding: 11px 7px;
    border: 2px solid rgba(176, 112, 242, .27);
    border-radius: 20px;
    background:
        linear-gradient(150deg, rgba(252,247,255,.35), rgba(224,190,255,.36)),
        url("../img/streak/glass.webp") center / 100% 100% no-repeat;
    color: #5a2f8b;
    box-shadow: 0 6px 15px rgba(117, 76, 168, .12), inset 0 2px 8px rgba(255,255,255,.6);
}
.wk-streak-stat--main {
    border-color: rgba(249,181,63,.76);
    background: linear-gradient(145deg, #fff9da 0%, #ffe19c 57%, #ffd16c 100%);
    box-shadow: 0 7px 20px rgba(216, 138, 33, .16), inset 0 3px 10px rgba(255,255,255,.92);
}
.wk-streak-stat__number {
    position: relative;
    z-index: 1;
    font-size: clamp(30px, 6vw, 39px);
    line-height: 1.02;
    color: #6d37a9;
    text-shadow: 0 1px 0 #fff;
}
.wk-streak-stat--main .wk-streak-stat__number { color: #9b4b09; }
.wk-streak-stat__caption {
    position: relative;
    z-index: 1;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 850;
    color: #56367e;
}
.wk-streak-stat--main .wk-streak-stat__caption { color: #85510c; }
.wk-streak-status {
    min-height: 25px;
    margin: 6px 0 10px;
    color: #6b4b83;
    font-weight: 690;
    font-size: 12px;
    line-height: 1.4;
}
.wk-streak-month-nav {
    margin: 0 3px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
}
.wk-streak-month-nav__label {
    color: #552e80;
    font-size: 19px;
    font-weight: 950;
}
.wk-streak-month-nav__arrow {
    width: 40px;
    min-height: 38px;
    border-radius: 14px;
    border: 1px solid #d8b5ff;
    background: linear-gradient(145deg, #fcf7ff, #e4c9ff);
    color: #6931b3;
    box-shadow: 0 4px 8px rgba(105,47,165,.13);
}
.wk-streak-month-nav__arrow:disabled { opacity: .38; box-shadow: none; }
.wk-streak-calendar {
    box-sizing: border-box;
    padding: 10px;
    margin: 8px 0 14px;
    gap: 5px;
    border-radius: 19px;
    border: 1px solid rgba(193,142,235,.39);
    background: rgba(255, 252, 255, .73);
    box-shadow: inset 0 0 22px rgba(226, 203, 247, .41), 0 6px 20px rgba(100, 55, 153, .06);
}
.wk-streak-calendar__weekday {
    color: #674285;
    font-weight: 900;
    font-size: 10px;
    padding: 2px 0 5px;
}
.wk-streak-calendar__blank { min-height: 41px; }
.wk-streak-calendar__day {
    min-height: 41px;
    border: 1px solid rgba(217, 203, 236, .65);
    border-radius: 13px;
    background: linear-gradient(150deg, #faf7ff, #eee7fa);
    color: #897b9e;
    font-weight: 900;
    box-shadow: inset 0 2px 3px rgba(255,255,255,.86);
}
.wk-streak-calendar__day.is-won {
    position: relative;
    z-index: 1;
    background: transparent url("../img/streak/win-token.webp") center / 110% 125% no-repeat;
    border-color: transparent;
    color: #fff9b6;
    text-shadow: 0 2px 5px rgba(54,14,98,.85), 0 0 4px #7a29b4;
    font-weight: 1000;
    box-shadow: none;
}
.wk-streak-calendar__day.is-today {
    outline: 2px solid #7a3ad8;
    outline-offset: 1px;
    border-color: transparent;
}
.wk-streak-calendar__day.is-future { opacity: .32; }
.wk-streak-calendar__spark {
    width: 6px;
    height: 6px;
    background: #fff3a9;
    box-shadow: 0 0 7px 2px #fff0a2;
}
.wk-streak-milestones__heading {
    margin: 0 2px 10px;
    color: #552d86;
    font-size: 17px;
    font-weight: 950;
}
.wk-streak-milestones { gap: 7px; }
.wk-streak-milestone {
    position: relative;
    min-width: 0;
    min-height: 122px;
    padding: 7px 4px;
    border: 1px solid rgba(181, 129, 230, .43);
    border-radius: 17px;
    color: #8b769e;
    background: linear-gradient(155deg, rgba(255,255,255,.94), rgba(233,219,247,.76));
    box-shadow: 0 5px 13px rgba(110,73,158,.10), inset 0 1px 0 white;
    gap: 3px;
}
.wk-streak-milestone::before {
    content: "";
    display: block;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    margin: -2px auto -5px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(.72) opacity(.64);
}
.wk-streak-milestone:nth-child(1)::before { background-image: url("../img/streak/milestone-3.webp"); }
.wk-streak-milestone:nth-child(2)::before { background-image: url("../img/streak/milestone-7.webp"); }
.wk-streak-milestone:nth-child(3)::before { background-image: url("../img/streak/milestone-14.webp"); }
.wk-streak-milestone:nth-child(4)::before { background-image: url("../img/streak/milestone-30.webp"); }
.wk-streak-milestone.is-earned {
    background: linear-gradient(160deg, #fff9e4, #ffe6a4);
    color: #754300;
    border-color: #f5bd45;
    box-shadow: 0 6px 19px rgba(222,158,48,.22), inset 0 1px 0 white;
}
.wk-streak-milestone.is-earned::before { filter: none; }
.wk-streak-milestone__number { font-size: 20px; line-height: 1; color: inherit; }
.wk-streak-milestone__days, .wk-streak-milestone__status { font-size: 10px; line-height: 1.15; }
.wk-streak-retry { background: linear-gradient(145deg, #b05bfa, #7137b7); box-shadow: 0 6px 13px rgba(101, 31, 171, .2); }
.wk-streak-dialog[dir="rtl"] .wk-streak-header { padding-inline-start: 10px; padding-inline-end: 42px; }
@media (max-width: 540px) {
    .home-dashboard-metrics .wk-streak-trigger { width: min(100%, 235px); min-width: 185px; height: 58px; min-height: 58px; padding: 0 65px 0 38px; }
    .home-dashboard-metrics .wk-streak-trigger .wk-streak-owl { width: 44px; height: 44px; inset-inline-end: 14px; }
    .wk-streak-trigger__count { font-size: 20px; }
    .wk-streak-trigger__label { font-size: 11px; }
    .wk-streak-dialog { width: min(100%, 400px); padding: 0 11px 12px; border-radius: 24px; max-height: calc(100dvh - 18px); }
    .wk-streak-header { min-height: 114px; margin: 0 -11px 9px; padding: 5px 38px 5px 4px; border-radius: 22px 22px 20% 20%; }
    .wk-streak-header .wk-streak-owl { width: clamp(88px, 26vw, 112px); height: clamp(94px, 27vw, 120px); margin: -4px 0 -8px; }
    .wk-streak-header__copy { padding: 6px 4px; }
    .wk-streak-title { font-size: clamp(17px, 5vw, 21px); margin-bottom: 4px; }
    .wk-streak-subtitle { font-size: 10px; line-height: 1.3; }
    .wk-streak-close { width: 31px; height: 31px; font-size: 21px; inset-block-start: 7px; inset-inline-end: 7px; }
    .wk-streak-stats { gap: 7px; margin-bottom: 2px; }
    .wk-streak-stat { min-height: 70px; padding: 7px 4px; border-radius: 15px; }
    .wk-streak-stat__number { font-size: 29px; }
    .wk-streak-stat__caption { font-size: 10px; }
    .wk-streak-status { min-height: 18px; font-size: 10px; margin: 5px 0 6px; }
    .wk-streak-month-nav { grid-template-columns: 35px minmax(0,1fr) 35px; }
    .wk-streak-month-nav__label { font-size: 15px; }
    .wk-streak-month-nav__arrow { min-height: 34px; width: 34px; border-radius: 12px; font-size: 24px; }
    .wk-streak-calendar { padding: 6px; margin: 6px 0 9px; gap: 3px; border-radius: 15px; }
    .wk-streak-calendar__weekday { font-size: 9px; padding: 1px 0 2px; }
    .wk-streak-calendar__blank { min-height: 34px; }
    .wk-streak-calendar__day { min-height: 34px; border-radius: 10px; font-size: 12px; }
    .wk-streak-milestones__heading { font-size: 14px; margin: 0 0 6px; }
    .wk-streak-milestones { gap: 4px; }
    .wk-streak-milestone { min-height: 94px; padding: 4px 2px; border-radius: 12px; gap: 2px; }
    .wk-streak-milestone::before { width: 43px; height: 43px; margin: -3px auto -5px; }
    .wk-streak-milestone__number { font-size: 17px; }
    .wk-streak-milestone__days, .wk-streak-milestone__status { font-size: 9px; }
}
@media (max-width: 355px) {
    .wk-streak-header .wk-streak-owl { width: 78px; height: 94px; }
    .wk-streak-header { min-height: 102px; }
    .wk-streak-title { font-size: 17px; }
    .wk-streak-calendar__day, .wk-streak-calendar__blank { min-height: 30px; }
    .wk-streak-milestone::before { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .wk-streak-trigger { transition: none !important; transform: none !important; }
}

/* Day one streak milestone layout */

.wk-streak-milestones[data-has-day-one="true"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.wk-streak-milestone[data-days="1"]::before {
  background-image: url("../img/streak/streak-day-one-star.webp");
}

.wk-streak-milestone[data-days="3"]::before {
  background-image: url("../img/streak/milestone-3.webp");
}

.wk-streak-milestone[data-days="7"]::before {
  background-image: url("../img/streak/milestone-7.webp");
}

.wk-streak-milestone[data-days="14"]::before {
  background-image: url("../img/streak/milestone-14.webp");
}

.wk-streak-milestone[data-days="30"]::before {
  background-image: url("../img/streak/milestone-30.webp");
}

@media (max-width: 480px) {
  .wk-streak-milestones[data-has-day-one="true"] {
    gap: 3px;
  }

  .wk-streak-milestones[data-has-day-one="true"] .wk-streak-milestone {
    min-width: 0;
    padding: 4px 1px;
  }

  .wk-streak-milestones[data-has-day-one="true"] .wk-streak-milestone::before {
    width: 38px;
    height: 38px;
  }

  .wk-streak-milestones[data-has-day-one="true"] .wk-streak-milestone__number {
    font-size: 15px;
  }

  .wk-streak-milestones[data-has-day-one="true"] .wk-streak-milestone__days,
  .wk-streak-milestones[data-has-day-one="true"] .wk-streak-milestone__status {
    font-size: 8px;
    overflow-wrap: anywhere;
  }
}
