/* ==========================================================
   Kid screen. Task names 26–30px, headings 32px+, numbers 36px+,
   tap targets 56px+. Age modes: .age-little / .age-kid / .age-big
   ========================================================== */

.screen--kid {
  --kid: #BFE8D4; --kid-deep: #5FB38D;
  --card: #FFFFFF; --card-ink: var(--ink);
  --done: #DDF3E6; --done-ink: #2E7D57;
  min-height: 100vh; min-height: 100dvh;
  background:
    radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--kid) 70%, transparent) 0, transparent 28rem),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--kid) 45%, transparent) 0, transparent 30rem);
  padding-bottom: 2rem;
}

/* ---------- Header ---------- */
.kidbar {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem) .5rem;
}
.kidbar__switch { min-height: 3.5rem; min-width: 3.5rem; justify-content: center; }
.kidbar__who { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.kidbar__who .avatar { --size: 4rem; }
.kidbar__name { font-size: 2.25rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kidbar__views { display: flex; gap: .35rem; background: rgba(255,255,255,.7); padding: .3rem; border-radius: 1.25rem; }
.viewbtn {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 3.5rem; min-width: 3.5rem; padding: .4rem .85rem;
  border: 0; border-radius: 1rem; background: transparent; color: var(--muted);
  font-size: 1rem; font-weight: 800; cursor: pointer; justify-content: center;
}
.viewbtn .icon { width: 1.6rem; height: 1.6rem; }
.viewbtn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 .125rem .5rem rgba(0,0,0,.1); }
.kidbar__stars {
  display: flex; align-items: center; gap: .4rem;
  font-size: 2.5rem; font-weight: 900; line-height: 1;
  background: var(--surface); padding: .35rem 1.1rem .35rem .8rem; border-radius: 999px;
  box-shadow: 0 .25rem 1rem rgba(0,0,0,.08);
}
.kidbar__stars .icon { width: 2.4rem; height: 2.4rem; color: #E0A93A; fill: #F6C453; }

/* ---------- Routine tabs ---------- */
.rtabs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem;
  padding: .5rem clamp(1rem, 3vw, 2rem) 1rem;
}
.rtab {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 4.5rem; padding: .5rem 1rem;
  border: 3px solid transparent; border-radius: 1.5rem;
  background: rgba(255,255,255,.6); color: var(--ink);
  font-size: 1.5rem; font-weight: 800; cursor: pointer;
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), background-color .2s ease;
}
.rtab:active { transform: scale(.96); }
.rtab__emoji { font-size: 2rem; line-height: 1; }
.rtab[aria-pressed="true"] { background: var(--surface); border-color: var(--kid-deep); box-shadow: 0 .4rem 1.2rem rgba(0,0,0,.1); }
.rtab__now {
  position: absolute; top: -.75rem; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #3B2A00; font-size: 1rem; font-weight: 900;
  padding: .05rem .7rem; border-radius: 999px; box-shadow: 0 .15rem .4rem rgba(0,0,0,.15);
}
.rtab__count { font-size: 1.125rem; font-weight: 800; color: var(--muted); background: var(--surface2); border-radius: 999px; padding: 0 .6rem; }
.rtab--complete .rtab__count { background: var(--done); color: var(--done-ink); }

/* ---------- Layout ---------- */
.kidlayout {
  display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 1.5rem; align-items: start;
  padding: 0 clamp(1rem, 3vw, 2rem);
}
.kidmain { min-width: 0; }

/* ---------- Task cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 1.25rem; }
.cards--little { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.tcard { position: relative; }
.tcard__main {
  width: 100%; height: 100%; min-height: 14rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  padding: 1.25rem 1rem 1rem;
  border: 3px solid transparent; border-radius: 2rem;
  background: var(--card); color: var(--card-ink);
  box-shadow: 0 .4rem 0 color-mix(in srgb, var(--kid-deep) 25%, transparent), 0 .75rem 1.5rem rgba(40,60,50,.08);
  cursor: pointer; font: inherit;
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s ease, background-color .3s ease;
}
.tcard__main:hover { transform: translateY(-.2rem); }
.tcard__main:active { transform: scale(.96); }
.tcard__pic { font-size: 5rem; line-height: 1.1; }
.tcard__pic--photo, .bigcard__pic--photo, .stile__pic--photo, .crow__pic--photo { display: block; overflow: hidden; border-radius: 1.25rem; }
.tcard__pic--photo { width: 7rem; height: 7rem; }
.tcard__pic--photo img, .bigcard__pic--photo img, .stile__pic--photo img, .crow__pic--photo img { width: 100%; height: 100%; object-fit: cover; }
.cards--little .tcard__main { min-height: 13rem; }
.cards--little .tcard__pic { font-size: 6.5rem; }
.cards--little .tcard__pic--photo { width: 9rem; height: 9rem; }
.tcard__title { font-size: 1.75rem; font-weight: 800; line-height: 1.15; text-align: center; }
.tcard__meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.tmeta { display: inline-flex; align-items: center; gap: .25rem; font-weight: 800; }
.tmeta--stars { color: #E0A93A; font-size: 1.6rem; letter-spacing: .05em; }
.tmeta--pts { font-size: 1.375rem; background: #E1F7F2; color: #17695C; padding: .1rem .7rem; border-radius: 999px; }
.tmeta--praise { font-size: 1.6rem; }
.tmeta--timer { font-size: 1.125rem; background: var(--surface2); color: var(--muted); padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--line); }
.tmeta--timer .icon { width: 1.2rem; height: 1.2rem; }

.saybtn {
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  border: 0; background: var(--surface2); color: var(--ink); cursor: pointer;
  box-shadow: 0 .15rem .5rem rgba(0,0,0,.1);
}
.saybtn .icon { width: 1.75rem; height: 1.75rem; }
.tcard__say { position: absolute; top: .6rem; right: .6rem; }

/* Done + waiting */
.tcard--done .tcard__main { background: var(--done); border-color: color-mix(in srgb, var(--done-ink) 35%, transparent); box-shadow: none; }
.tcard--done .tcard__pic { opacity: .75; }
.tcard--pending .tcard__main { border: 3px dashed #E0A93A; background: #FFF8E6; box-shadow: none; }
.tstatus { display: inline-flex; align-items: center; gap: .35rem; font-weight: 800; }
.tstatus--done {
  position: absolute; top: .75rem; left: .75rem;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--done-ink); color: #fff; justify-content: center;
  animation: popin .4s cubic-bezier(.3,1.8,.5,1);
}
.tstatus--done .icon { width: 2rem; height: 2rem; stroke-width: 3; }
.tstatus--pending { font-size: 1.125rem; color: #8A5A00; background: #FDF0CB; padding: .2rem .75rem; border-radius: 999px; }
.tstatus--pending .icon { width: 1.3rem; height: 1.3rem; }
.undobtn {
  position: absolute; left: 50%; bottom: -1rem; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .4rem; z-index: 2;
  min-height: 3.5rem; padding: .4rem 1.2rem; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 1.125rem; cursor: pointer;
  box-shadow: 0 .4rem 1rem rgba(0,0,0,.25); white-space: nowrap;
  animation: popin .25s ease;
}
.just-done .tcard__main, .just-done .crow__main, .just-done .stile__main, .just-done.jar { animation: celebrate .6s cubic-bezier(.3,1.6,.5,1); }

/* ---------- Big Kid checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
.crow { position: relative; display: flex; align-items: center; gap: .75rem; min-width: 0; }
.crow__main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 1rem; min-height: 5rem;
  padding: .75rem 1.25rem; border: 2px solid transparent; border-radius: 1.25rem;
  background: var(--card); color: var(--card-ink); font: inherit; text-align: left; cursor: pointer;
  transition: background-color .2s ease, transform .15s ease;
}
.crow__main:active { transform: scale(.98); }
.crow__box {
  flex: none; display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: .85rem; border: 3px solid currentColor; opacity: .7;
}
.crow__box .icon { width: 1.8rem; height: 1.8rem; stroke-width: 3; }
.crow__pic { font-size: 2.5rem; line-height: 1; flex: none; }
.crow__pic--photo { width: 3.5rem; height: 3.5rem; border-radius: .75rem; }
.crow__text { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow-wrap: break-word; }
.crow__title { font-size: 1.625rem; font-weight: 800; line-height: 1.2; }
.crow__sub { font-size: 1rem; font-weight: 700; color: #F6C453; }
.crow__meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.crow--done .crow__main { opacity: .8; }
.crow--done .crow__title { text-decoration: line-through; text-decoration-thickness: .12em; }
.crow--done .crow__box { background: #6FD3C1; border-color: #6FD3C1; color: #1D2740; opacity: 1; }
.crow--pending .crow__main { border: 2px dashed #F6C453; }
.crow .undobtn { left: auto; right: 5rem; bottom: auto; top: 50%; transform: translateY(-50%); }

/* ---------- Big single cards (First–Then, one at a time) ---------- */
.firstthen { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 1.25rem; }
.firstthen__arrow { align-self: center; font-size: 3.5rem; color: var(--kid-deep); font-weight: 900; }
.firstthen__left { text-align: center; font-size: 1.375rem; font-weight: 800; color: var(--muted); margin-top: 1.25rem; }
.bigcard { position: relative; display: flex; flex-direction: column; }
.bigcard__label {
  align-self: center; margin-bottom: -.9rem; z-index: 1;
  background: var(--kid-deep); color: #fff; font-size: 2rem; font-weight: 900;
  padding: .15rem 1.5rem; border-radius: 999px; box-shadow: 0 .25rem .75rem rgba(0,0,0,.15);
}
.bigcard--then .bigcard__label { background: #9AA8A2; }
.bigcard__main {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  min-height: 22rem; padding: 2rem 1.25rem 1.5rem;
  border: 4px solid var(--kid-deep); border-radius: 2.25rem;
  background: var(--card); color: var(--card-ink); font: inherit; cursor: pointer;
  box-shadow: 0 .5rem 0 color-mix(in srgb, var(--kid-deep) 30%, transparent), 0 1rem 2rem rgba(0,0,0,.08);
  transition: transform .2s cubic-bezier(.3,1.6,.5,1);
}
.bigcard__main:active { transform: scale(.97); }
.bigcard__main--static { cursor: default; }
.bigcard--then .bigcard__main { border-color: var(--line); opacity: .85; box-shadow: none; }
.bigcard--reward .bigcard__main { background: #FFF8E6; border-style: dashed; border-color: #E0A93A; opacity: 1; }
.bigcard__pic { font-size: 8rem; line-height: 1.05; }
.bigcard__pic--photo { width: 12rem; height: 12rem; border-radius: 1.75rem; }
.bigcard__title { font-size: 2rem; font-weight: 900; text-align: center; line-height: 1.15; }
.bigcard__say { position: absolute; top: 1.5rem; right: .9rem; }
.onecard { max-width: 32rem; margin: 0 auto; }
.bigcard--solo .bigcard__main { min-height: 26rem; }
.bigcard--solo .bigcard__pic { font-size: 11rem; }
.age-little .bigcard__title { font-size: 2.25rem; }
.dots { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0 0 1.5rem; }
.dots__dot { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--surface); border: 3px solid var(--kid-deep); }
.dots__dot--done, .dots__dot--pending { background: var(--kid-deep); }

/* ---------- Day strip (visual schedule) ---------- */
.daystrip { display: flex; flex-direction: column; gap: 1.25rem; }
.daystrip__part { background: rgba(255,255,255,.55); border-radius: 1.75rem; padding: 1rem 1.25rem 1.25rem; border: 3px solid transparent; }
.daystrip__part--current { border-color: var(--kid-deep); background: color-mix(in srgb, var(--kid) 30%, #fff); }
.daystrip__title { font-size: 2rem; margin: 0 0 .75rem; }
.daystrip__row { list-style: none; margin: 0; padding: .25rem .25rem 1rem; display: flex; gap: .85rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.stile { position: relative; flex: 0 0 12rem; scroll-snap-align: start; }
.stile__main {
  width: 100%; height: 100%; min-height: 11rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  padding: .75rem .5rem; border: 3px solid transparent; border-radius: 1.5rem;
  background: var(--card); color: var(--card-ink); font: inherit; cursor: pointer;
  box-shadow: 0 .3rem 0 color-mix(in srgb, var(--kid-deep) 22%, transparent);
}
.stile__pic { font-size: 4.25rem; line-height: 1.1; }
.stile__pic--photo { width: 5rem; height: 5rem; }
.stile__title { font-size: 1.625rem; font-weight: 800; text-align: center; line-height: 1.15; }
.stile--done .stile__main { background: var(--done); box-shadow: none; }
.stile--pending .stile__main { border: 3px dashed #E0A93A; background: #FFF8E6; box-shadow: none; }
.stile .tstatus--done { width: 2.4rem; height: 2.4rem; top: .4rem; left: .4rem; }
.stile .tstatus--done .icon { width: 1.5rem; height: 1.5rem; }
.stile .tstatus--pending { position: absolute; top: .3rem; right: .3rem; font-size: 0; padding: .3rem; }
.stile .undobtn { bottom: -.6rem; }

/* ---------- Celebration & empty ---------- */
.celebrate {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; justify-content: center;
  background: var(--surface); border-radius: 2rem; padding: 1.25rem 1.75rem; margin-bottom: 1.5rem;
  border: 3px solid var(--accent); box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.08);
  animation: popin .5s cubic-bezier(.3,1.6,.5,1);
}
.celebrate__buddy svg { width: 7rem; height: 7rem; animation: wiggle 1.6s ease-in-out infinite; }
.celebrate__title { font-size: 2.5rem; font-weight: 900; margin: 0; }
.celebrate__text { font-size: 1.375rem; margin: 0; color: var(--muted); }
.kidempty { text-align: center; padding: 2rem 1rem; }
.kidempty__buddy svg { width: 9rem; height: 9rem; margin: 0 auto; }
.kidempty__title { font-size: 2.25rem; font-weight: 900; margin: .5rem 0 .25rem; }
.kidempty p { font-size: 1.375rem; }

/* ---------- Star jar ---------- */
.jar {
  position: sticky; top: 1rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  background: var(--surface); border-radius: 2rem; padding: 1.25rem 1rem 1.5rem;
  box-shadow: 0 .5rem 1.5rem rgba(40,60,50,.1); text-align: center;
}
html.is-demo .jar { top: 4.5rem; }
.jar__svg { width: 10rem; height: auto; overflow: visible; }
.jar__lid { fill: var(--kid-deep); }
.jar__glass { fill: #F3F7F5; }
.jar__fill { fill: #F6C453; transition: y .8s cubic-bezier(.3,1.4,.5,1), height .8s cubic-bezier(.3,1.4,.5,1); }
.jar__outline { fill: none; stroke: var(--kid-deep); stroke-width: 5; }
.jar__shine { stroke: #fff; stroke-width: 6; stroke-linecap: round; opacity: .7; }
.jar__goal { font-size: 1.375rem; font-weight: 800; margin: 0; line-height: 1.2; }
.jar__nums { font-size: 1.375rem; margin: 0; color: var(--muted); font-weight: 700; }
.jar__nums strong { font-size: 2.5rem; color: var(--ink); font-weight: 900; }
.jar__word { display: block; font-size: 1.125rem; }
.jar__ready { background: var(--accent); color: #3B2A00; font-weight: 900; border-radius: 999px; padding: .3rem 1rem; margin: .25rem 0 0; }
.jar--ready .jar__svg { animation: glow 1.8s ease-in-out infinite; }
.jar--bump .jar__svg { animation: bump .5s cubic-bezier(.3,1.8,.5,1); }

/* ---------- Star burst ---------- */
.burst { position: fixed; z-index: 300; pointer-events: none; width: 0; height: 0; }
.burst span {
  position: absolute; left: 0; top: 0; font-size: 1.75rem; line-height: 1;
  transform: translate(-50%, -50%); animation: burst .8s cubic-bezier(.2,.8,.3,1) forwards;
}
@keyframes burst {
  0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(90deg); opacity: 0; }
}
@keyframes celebrate { 0% { transform: scale(1); } 35% { transform: scale(1.08) rotate(-2deg); } 65% { transform: scale(.97) rotate(1deg); } 100% { transform: scale(1); } }
@keyframes popin { from { transform: scale(.4); opacity: 0; } }
@keyframes bump { 40% { transform: scale(1.12) rotate(-3deg); } }
@keyframes glow { 50% { filter: drop-shadow(0 0 .75rem #F6C453); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }

/* ---------- Timer ---------- */
.timer-backdrop {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 1rem;
  background: rgba(30,40,36,.55); animation: fade .2s ease;
}
.timer {
  position: relative; width: min(30rem, 100%); max-height: calc(100dvh - 2rem); overflow: auto;
  background: var(--surface); border-radius: 2.25rem; padding: 1.5rem 1.5rem 1.75rem; text-align: center;
  box-shadow: 0 1rem 3rem rgba(0,0,0,.25); animation: pop .25s cubic-bezier(.3,1.4,.5,1);
}
.timer__close { position: absolute; top: 1rem; right: 1rem; width: 3.5rem; height: 3.5rem; }
.timer__title { display: flex; flex-direction: column; align-items: center; gap: .25rem; font-size: 2rem; margin: .25rem 3rem .75rem; }
.timer__pic { font-size: 3.5rem; line-height: 1; }
.timer__pic img { width: 4.5rem; height: 4.5rem; border-radius: 1rem; object-fit: cover; }
.timer__ring { position: relative; width: min(17rem, 70vw); margin: 0 auto; }
.timer__ring svg { width: 100%; height: auto; display: block; }
.timer__track { fill: none; stroke: #EEF2F0; stroke-width: 18; }
.timer__arc { fill: none; stroke: hsl(150 70% 62%); stroke-width: 18; stroke-linecap: round; }
.timer__time { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.5rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.timer__msg { font-size: 1.375rem; min-height: 2em; margin: 1rem 0; }
.timer__btns { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Picker extras ---------- */
.kidbubble__info { display: flex; flex-direction: column; align-items: center; gap: .35rem; width: 100%; }
.kidbubble__stars { display: inline-flex; align-items: center; gap: .3rem; font-size: 1.75rem; font-weight: 900; }
.kidbubble__stars .icon { width: 1.75rem; height: 1.75rem; color: #E0A93A; fill: #F6C453; }
.kidbubble__routine { font-size: 1.125rem; font-weight: 700; color: var(--muted); }
.kidbubble--big .kidbubble__routine { color: #C9D6F2; }
.kidbubble__bar { display: block; width: 80%; height: .75rem; border-radius: 999px; background: rgba(0,0,0,.07); overflow: hidden; }
.kidbubble__bar span { display: block; height: 100%; border-radius: inherit; background: var(--av-deep, var(--primary)); background: #7CC6A0; }
.kidbubble--little .kidbubble__bar span { background: #F49AB0; }
.kidbubble--kid .kidbubble__bar span { background: #F6C453; }
.kidbubble--big .kidbubble__bar { background: rgba(255,255,255,.15); }
.kidbubble--big .kidbubble__bar span { background: #6FD3C1; }

/* ==========================================================
   Age modes
   ========================================================== */

/* Little: rounder, softer, bigger pictures */
.age-little .tcard__main { border-radius: 2.5rem; }
.age-little .rtab { border-radius: 2rem; }

/* Big Kid: cooler, calmer, less babyish */
.screen--kid.age-big {
  --card: #33405F; --card-ink: #EEF3FF;
  --done: #2A4A52; --done-ink: #6FD3C1;
  --kid-deep: #6FD3C1;
  background: linear-gradient(165deg, #1F2840 0%, #2B3858 60%, #34466B 100%);
  color: #EEF3FF;
}
.age-big .kidbar__name, .age-big .daystrip__title, .age-big .celebrate__title, .age-big .kidempty__title { color: #fff; }
.age-big .btn--soft { background: #33405F; color: #EEF3FF; box-shadow: none; }
.age-big .kidbar__views { background: rgba(255,255,255,.08); }
.age-big .viewbtn { color: #AFC0E4; }
.age-big .viewbtn[aria-pressed="true"] { background: #6FD3C1; color: #1D2740; }
.age-big .kidbar__stars { background: #33405F; color: #fff; box-shadow: none; }
.age-big .kidbar__stars .icon { color: #6FD3C1; fill: #6FD3C1; }
.age-big .rtab { background: rgba(255,255,255,.07); color: #DCE5FA; border-radius: 1rem; }
.age-big .rtab[aria-pressed="true"] { background: #33405F; border-color: #6FD3C1; box-shadow: none; }
.age-big .rtab__count { background: rgba(255,255,255,.1); color: #C9D6F2; }
.age-big .rtab--complete .rtab__count { background: #6FD3C1; color: #1D2740; }
.age-big .tmeta--pts { background: rgba(111,211,193,.18); color: #8FE3D3; }
.age-big .tmeta--timer { background: rgba(255,255,255,.08); color: #C9D6F2; border-color: transparent; }
.age-big .saybtn { background: rgba(255,255,255,.1); color: #EEF3FF; box-shadow: none; }
.age-big .jar, .age-big .celebrate, .age-big .daystrip__part--current { background: #2A3552; color: #EEF3FF; box-shadow: none; }
.age-big .daystrip__part { background: rgba(255,255,255,.05); }
.age-big .jar__glass { fill: #1F2840; }
.age-big .jar__fill { fill: #6FD3C1; }
.age-big .jar__nums, .age-big .celebrate__text, .age-big .firstthen__left, .age-big .kidempty p { color: #C9D6F2; }
.age-big .jar__nums strong { color: #fff; }
.age-big .bigcard--then .bigcard__main { border-color: rgba(255,255,255,.15); }
.age-big .bigcard--reward .bigcard__main { background: #2A3552; border-color: #6FD3C1; }
.age-big .bigcard__label { color: #1D2740; }
.age-big .tcard--pending .tcard__main, .age-big .stile--pending .stile__main { background: #3C3A3A; }
.age-big .dots__dot { background: transparent; }

/* High contrast overrides */
html.hc .screen--kid { background: #fff; }
html.hc .screen--kid.age-big { --card: #000; --card-ink: #fff; background: #000; }
html.hc .tcard__main, html.hc .crow__main, html.hc .bigcard__main, html.hc .stile__main, html.hc .rtab, html.hc .jar { border: 3px solid currentColor !important; box-shadow: none !important; }
html.hc .tcard--done .tcard__main, html.hc .stile--done .stile__main { background: #E5F2EB; color: #000; }

/* ---------- Tablet / phone ---------- */
@media (max-width: 1000px) {
  .kidlayout { grid-template-columns: minmax(0, 1fr); }
  .jar { order: -1; position: static; flex-direction: row; justify-content: center; gap: 1rem; padding: .75rem 1.25rem; text-align: left; }
  .jar__svg { width: 4.5rem; }
  .jar__info { display: flex; flex-direction: column; }
  .jar__nums strong { font-size: 2.25rem; }
  .jar__word { display: inline; }
  .viewbtn__label { display: none; }
}
@media (max-width: 700px) {
  .kidbar { grid-template-columns: auto 1fr auto; gap: .6rem; padding-top: .75rem; }
  .kidbar__switch span { display: none; }
  .kidbar__switch { padding: .5rem .9rem; }
  .kidbar__views { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .kidbar__views .viewbtn { flex: 1; }
  .kidbar__who .avatar { --size: 3.25rem; }
  .kidbar__name { font-size: 2rem; }
  .kidbar__stars { font-size: 2.25rem; }
  .rtabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem .6rem; padding-top: 1rem; }
  .rtab { font-size: 1.25rem; min-height: 4rem; padding: .4rem .5rem; gap: .3rem .4rem; flex-wrap: wrap; text-align: center; line-height: 1.15; }
  .rtab__count { font-size: 1rem; padding: 0 .45rem; }
  .tstatus--pending { font-size: 1rem; padding: .2rem .55rem; }
  .tstatus--pending .icon { display: none; }
  .rtab__emoji { font-size: 1.6rem; }
  .cards, .cards--little { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .tcard__main { min-height: 11.5rem; padding: 1rem .5rem .75rem; border-radius: 1.5rem; }
  .tcard__pic { font-size: 3.75rem; }
  .cards--little .tcard__pic { font-size: 5rem; }
  .tcard__title { font-size: 1.625rem; }
  .tcard__say { top: .35rem; right: .35rem; }
  .tstatus--done { top: .4rem; left: .4rem; width: 2.75rem; height: 2.75rem; }
  .crow__main { padding: .6rem .8rem; gap: .6rem; }
  .crow__pic { font-size: 2rem; }
  .crow__meta { flex-direction: column; align-items: flex-end; gap: .25rem; }
  .crow .undobtn { right: 4.5rem; }
  .firstthen { grid-template-columns: minmax(0, 1fr); }
  .stile { flex-basis: 10.5rem; }
  .firstthen__arrow { transform: rotate(90deg); justify-self: center; font-size: 2.75rem; line-height: 1; }
  .bigcard__main { min-height: 15rem; }
  .bigcard__pic { font-size: 6rem; }
  .bigcard--solo .bigcard__pic { font-size: 8rem; }
  .bigcard--solo .bigcard__main { min-height: 20rem; }
  .celebrate { padding: 1rem; }
  .celebrate__title { font-size: 2.25rem; }
}
@media (max-width: 440px) {
  .kidbar__who .avatar { display: none; }
  .crow { gap: .4rem; }
  .crow__pic { display: none; }
  .crow__main { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "box text" "box meta"; gap: .3rem .6rem; padding: .6rem .75rem; }
  .crow__box { grid-area: box; }
  .crow__text { grid-area: text; }
  .crow__meta { grid-area: meta; flex-direction: row; justify-content: flex-start; align-items: center; }
  .crow__box { width: 2.25rem; height: 2.25rem; }
}
@media (max-width: 380px) {
  .cards { grid-template-columns: 1fr; }
}
