/* Hearth — the kids' room, the family board, and the Kids tab. No filters, blur or
   inset here: these screens have to stay smooth on an old iPad. */

/* ---------- press and hold ---------- */
[data-hold] { position: relative; overflow: hidden; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.hold-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: rgba(244, 183, 42, .55); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.holding .hold-fill { transform: scaleX(1); transition: transform .9s linear; }

/* ---------- the room ---------- */
body.kid-mode { overflow: hidden; background: #FDE8D0; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.kid-mode #app { max-width: none; }
.kw { position: fixed; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; overflow: hidden; color: #3B2F27; font-family: var(--body); }
.kw-scene { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.kw-wall { position: absolute; top: 0; left: 0; right: 0; bottom: 30%; background: #FDE8D0; transition: background .8s; }
.kw-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: #E7B98C; border-top: 6px solid #D6A577; transition: background .8s; }
.room-sky .kw-wall { background: #D8EEF9; } .room-sky .kw-floor { background: #B7C9D6; border-top-color: #A2B6C4; }
.room-rose .kw-wall { background: #FBDCE6; } .room-rose .kw-floor { background: #E8B6A6; border-top-color: #D9A392; }
.room-mint .kw-wall { background: #D9F1E0; } .room-mint .kw-floor { background: #D8BE93; border-top-color: #C7AC80; }
.room-lilac .kw-wall { background: #E9DFF7; } .room-lilac .kw-floor { background: #C7B4A6; border-top-color: #B5A192; }
.swatch-room { display: block; width: 100%; height: 100%; min-height: 64px; border-radius: 10px; overflow: hidden; }
.swatch-room i { display: block; height: 62%; background: #FDE8D0; }
.swatch-room u { display: block; height: 38%; background: #E7B98C; }
.swatch-room.room-sky i { background: #D8EEF9; } .swatch-room.room-sky u { background: #B7C9D6; }
.swatch-room.room-rose i { background: #FBDCE6; } .swatch-room.room-rose u { background: #E8B6A6; }
.swatch-room.room-mint i { background: #D9F1E0; } .swatch-room.room-mint u { background: #D8BE93; }
.swatch-room.room-lilac i { background: #E9DFF7; } .swatch-room.room-lilac u { background: #C7B4A6; }
.lights-out .kw-wall { background: #20244A; }
.lights-out .kw-floor { background: #171A36; border-top-color: #12142C; }
.kw.lights-out .kw-wall { background: #20244A; }
.kw.lights-out .kw-floor { background: #171A36; border-top-color: #12142C; }

.kw-home { position: absolute; left: 2.4vmin; top: calc(2.4vmin + var(--safe-t)); z-index: 6; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .8); color: #6E6056; }
.lights-out .kw-home { background: rgba(255, 255, 255, .12); color: #7E86B8; }

/* window: the morning signal */
.kw-window { position: absolute; left: 4vmin; top: calc(max(11vmin, 70px) + var(--safe-t)); width: 24vmin; height: 24vmin; border-radius: 16px 16px 6px 6px; overflow: hidden; background: #8FD3F2; transition: background .8s; }
.kw-window .frame { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border: 8px solid #fff; border-radius: inherit; }
.kw-window .frame::before, .kw-window .frame::after { content: ''; position: absolute; background: #fff; }
.kw-window .frame::before { left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; }
.kw-window .frame::after { top: 50%; left: 0; right: 0; height: 6px; margin-top: -3px; }
.kw-window .orb { position: absolute; left: 50%; top: 36%; width: 34%; height: 34%; margin-left: -17%; border-radius: 50%; background: #FFD23F; box-shadow: 0 0 0 7px rgba(255, 210, 63, .35); }
.kw-window .cloud { position: absolute; left: 12%; top: 66%; width: 40%; height: 12%; border-radius: 999px; background: #fff; animation: drift 9s ease-in-out infinite alternate; }
.kw-window .tw { display: none; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: twinkle 3s ease-in-out infinite; }
.t1 { left: 18%; top: 20%; } .t2 { left: 74%; top: 26%; animation-delay: -1s !important; } .t3 { left: 62%; top: 74%; animation-delay: -2s !important; }
.sky-dusk { background: #F4A77C; }
.sky-dusk .orb { top: 64%; background: #FFB54A; box-shadow: none; }
.sky-dusk .cloud { background: #FBD5C2; }
.sky-night { background: #0F1330; }
.sky-night .orb { background: #F2EBC8; box-shadow: none; left: 62%; top: 16%; }
.sky-night .orb::after { content: ''; position: absolute; left: -22%; top: -8%; width: 90%; height: 90%; border-radius: 50%; background: #0F1330; }
.sky-night .cloud { display: none; }
.sky-night .tw { display: block; }
.lights-out .kw-window .frame, .lights-out .kw-window .frame::before, .lights-out .kw-window .frame::after { border-color: #41467A; background: transparent; }
.lights-out .kw-window .frame::before, .lights-out .kw-window .frame::after { background: #41467A; }
@keyframes drift { to { transform: translateX(36%); } }
@keyframes twinkle { 50% { opacity: .25; } }

/* the bed */
.kw-bed { position: absolute; left: 2vmin; bottom: 7vmin; width: 46vmin; height: 26vmin; }
.kw-bed .headboard { position: absolute; left: 0; bottom: 0; width: 12%; height: 115%; border-radius: 14px 14px 4px 4px; background: #B5825A; }
.kw-bed .mattress { position: absolute; left: 5%; right: 0; bottom: 8%; height: 34%; border-radius: 12px; background: var(--bed, #6F9472); }
.kw-bed::after { content: ''; position: absolute; right: 2%; bottom: 0; width: 7%; height: 42%; border-radius: 4px; background: #B5825A; }
.kw-bed .pillow { position: absolute; left: 11%; bottom: 38%; width: 28%; height: 20%; border-radius: 18px; background: #fff; }
.lights-out .kw-bed { opacity: .72; }

/* the pet */
.kw-pet { position: absolute; left: 54%; bottom: 6vmin; width: 46vmin; margin-left: -23vmin; z-index: 3; }
.pet { position: relative; transform-origin: 50% 100%; animation: breathe 3.2s ease-in-out infinite; }
.pet-svg { width: 100%; height: auto; display: block; overflow: visible; }
.pet .eyes { transform-origin: 100px 84px; animation: blink 4.4s infinite; }
.pet .ear-l { transform-origin: 68px 80px; animation: ear 5s ease-in-out infinite; }
.pet .ear-r { transform-origin: 132px 80px; animation: ear 5s ease-in-out infinite reverse; }
.pet.happy { animation: hop .5s ease-in-out 2; }
.pet.munch { animation: nod .28s ease-in-out infinite; }
.pet.munch .chew { transform-origin: 100px 113px; animation: chew .28s ease-in-out infinite; }
.pet.tired { animation: breathe 5s ease-in-out infinite; }
.pet.sleep { animation: breathe 4.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.02, .975); } }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97.5% { transform: scaleY(.08); } }
@keyframes ear { 50% { transform: rotate(3deg); } }
@keyframes hop { 50% { transform: translateY(-12%) scale(.98, 1.03); } }
@keyframes nod { 50% { transform: translateY(1.5%); } }
@keyframes chew { 50% { transform: scaleY(.45); } }
.wear { position: absolute; line-height: 1; pointer-events: none; }
.wear-top { left: 50%; top: -9%; font-size: 15vmin; margin-left: -7.5vmin; }
.wear-side { left: 66%; top: 2%; font-size: 12vmin; }
.wear-eyes { left: 50%; top: 21%; font-size: 17vmin; margin-left: -8.5vmin; }
.kid-pet .wear, .bd-pet .wear, .pet-pick .wear { display: none; }

/* tucked in */
.kw-pet.in-bed { left: 10vmin; margin-left: 0; bottom: 9vmin; width: 24vmin; }
.kw-blanket { position: absolute; left: 8vmin; bottom: 8.5vmin; width: 38vmin; height: 12vmin; z-index: 4; border-radius: 22px 40px 10px 10px; background: #6F63A8; }
.zz { position: absolute; left: 62%; top: 4%; color: #D8DCF7; font: 800 5vmin var(--body); animation: zz 3.4s ease-in infinite; opacity: 0; }
.z2 { animation-delay: 1.1s; left: 68%; font-size: 6vmin; } .z3 { animation-delay: 2.2s; left: 74%; font-size: 7vmin; }
@keyframes zz { 15% { opacity: .9; } 100% { opacity: 0; transform: translate(14px, -46px); } }

/* room things */
.room-item { position: absolute; z-index: 2; font-size: 10vmin; line-height: 1; margin: -5vmin 0 0 -5vmin; }
.room-item.air { font-size: 8vmin; animation: float 4s ease-in-out infinite; }
.room-item.boing { animation: boing .5s ease-out; }
.lights-out .room-item { opacity: .32; animation: none; }
@keyframes float { 50% { transform: translateY(-7px) rotate(3deg); } }
@keyframes boing { 40% { transform: scale(1.35) rotate(-8deg); } }

@media (orientation: portrait) {
  .kw-floor { height: 34%; }
  .kw-wall { bottom: 34%; }
  .kw-bed { width: 40vmin; }
  .kw-pet { left: 64%; width: 56vmin; margin-left: -28vmin; }
  .kw-pet.in-bed { left: 8vmin; margin-left: 0; }
}

/* the jar */
.kw-jar { position: absolute; right: 3vmin; top: calc(3vmin + var(--safe-t)); width: 27vmin; max-width: 230px; z-index: 5; }
.kw-jar.can-buy { animation: jarwob 1.6s ease-in-out infinite; }
.jar-count { position: absolute; right: -4px; top: 18%; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 20px; background: #C8643B; color: #fff; font-size: 22px; line-height: 40px; text-align: center; }
.lights-out .kw-jar { opacity: .4; animation: none; }
@keyframes jarwob { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg) scale(1.05); } 75% { transform: rotate(5deg) scale(1.05); } }
.fly-star { position: fixed; width: 18vmin; height: 18vmin; margin: -9vmin 0 0 -9vmin; z-index: 80; pointer-events: none; animation: flystar .75s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes flystar { 0% { transform: translate(-30vw, 50vh) scale(1.4) rotate(-120deg); opacity: 0; } 25% { opacity: 1; } 100% { transform: translate(0, 0) scale(.4) rotate(0); opacity: 1; } }

/* trays */
.kw-panel { flex: none; padding: 10px 12px; background: #FFF8EE; border-top: 5px solid #F0D9BC; }
.pic-row { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px; scrollbar-width: none; }
.pic-row::-webkit-scrollbar { display: none; }
.pic-card, .food { flex: none; margin-right: 10px; border-radius: 20px; background: #fff; box-shadow: 0 2px 0 #EEDFCB; }
.pic-card { position: relative; width: 136px; min-height: 128px; padding: 10px 6px 8px; display: flex; flex-direction: column; align-items: center; color: #3B2F27; }
.pic-card .pic { font-size: 56px; line-height: 1.15; }
.pic-card small { margin-top: 4px; font-size: 14px; font-weight: 800; line-height: 1.15; text-align: center; }
.pic-card em { position: absolute; right: 7px; top: 7px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 18px; color: #fff; background: #5F8A63; }
.pic-card .star-badge { background: #FFF2C8; color: #DF9F1F; }
.pic-card.done { background: #E2ECDF; box-shadow: 0 2px 0 #CFDFCB; }
.pic-card.done .pic { opacity: .7; }
.pic-card.asking { background: #FFF2C8; box-shadow: 0 0 0 4px #F4B72A; animation: wiggle 1.3s ease-in-out infinite; }
.pic-card.asking.holding { animation: none; }
.pic-card .hold-hint { position: relative; margin-top: 4px; font-size: 12px; font-weight: 800; color: #8A6A1B; line-height: 1.1; text-align: center; }
@keyframes wiggle { 25% { transform: rotate(-1.6deg); } 75% { transform: rotate(1.6deg); } }
.food { width: 96px; height: 96px; font-size: 54px; line-height: 96px; text-align: center; }
.food.on { box-shadow: 0 0 0 4px #F4B72A; }
.kw-empty { margin: 16px; font-size: 26px; }
.kw-ask { width: 100%; display: flex; align-items: center; justify-content: center; padding: 10px; border-radius: 18px; background: #FFF2C8; font-size: 20px; font-weight: 800; animation: wiggle 1.6s ease-in-out infinite; }
.kw-ask span { font-size: 40px; margin-right: 12px; }
.grownup { max-height: 60vh; overflow-y: auto; }

.kw-dock { flex: none; display: flex; justify-content: center; padding: 10px 8px calc(10px + var(--safe-b)); background: #FFF8EE; }
.dock-btn { position: relative; flex: none; width: 84px; height: 84px; margin: 0 7px; border-radius: 50%; display: grid; place-items: center; font-size: 42px; background: #fff; box-shadow: 0 4px 0 rgba(59, 47, 39, .13); }
.dock-btn.d1 { background: #FFE3D3; } .dock-btn.d2 { background: #FFDDE0; } .dock-btn.d3 { background: #D9EEF7; } .dock-btn.d4 { background: #EFE0F7; }
.dock-btn.on { transform: translateY(2px); box-shadow: 0 0 0 4px #F4B72A; }
.dock-btn.locked span { opacity: .3; }
.dock-btn b { position: absolute; right: -2px; top: -2px; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 15px; background: #C8643B; color: #fff; font-size: 16px; line-height: 30px; text-align: center; }
@media (max-width: 400px) { .dock-btn { width: 70px; height: 70px; font-size: 36px; margin: 0 5px; } .pic-card { width: 120px; } }

/* effects, above the room */
.fx-heart { position: fixed; z-index: 75; font-size: 34px; pointer-events: none; animation: heart 1.1s ease-out forwards; }
@keyframes heart { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-110px) scale(1.2); } }
.fx-food { position: fixed; z-index: 75; font-size: 54px; pointer-events: none; transform: translate(-50%, -50%); transition: transform .46s cubic-bezier(.3, .7, .4, 1); }
.kfx { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 72; }
.kfx.present { background: rgba(32, 36, 74, .72); display: grid; place-items: center; }
.reveal { width: 100%; height: 100%; display: grid; place-items: center; }
.reveal span { font-size: 46vmin; line-height: 1; animation: reveal .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes reveal { from { transform: scale(.1) rotate(-30deg); } to { transform: scale(1) rotate(0); } }
.bub { position: absolute; bottom: -140px; border-radius: 50%; background: rgba(195, 232, 247, .5); border: 3px solid rgba(255, 255, 255, .9); box-shadow: inset 8px 10px 0 -3px rgba(255, 255, 255, .75); animation: rise 6s linear forwards; }
@keyframes rise { 50% { margin-left: 22px; } to { transform: translateY(-115vh); } }
.kfx-x { position: absolute; left: 2.4vmin; top: calc(2.4vmin + var(--safe-t)); width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #6E6056; z-index: 3; }

/* the shop */
.kfx.shop { background: #FFF8EE; display: flex; flex-direction: column; align-items: center; padding: calc(18px + var(--safe-t)) 14px calc(14px + var(--safe-b)); overflow-y: auto; }
.shop-purse { flex: none; display: flex; flex-wrap: wrap; justify-content: center; min-height: 48px; max-width: 74%; }
.shop-purse svg { width: 40px; height: 40px; margin: 2px; }
.shop-purse p { margin: 0; font-size: 34px; }
.shop-grid { flex: 1; width: 100%; max-width: 900px; margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 14px; align-content: center; }
.shop-card { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 148px; padding: 8px; border-radius: 24px; background: #fff; box-shadow: 0 4px 0 #EEDFCB; }
.shop-card .pic { font-size: 15vmin; line-height: 1.15; }
.shop-card .price { max-width: 100%; color: #E5A419; font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: 1px; }
.shop-card.real { background: #FFF2C8; box-shadow: 0 4px 0 #EFD98F; }
.shop-card.dear { background: #F4ECE1; box-shadow: none; }
.shop-card.dear .pic { opacity: .45; }
.shop-card.dear .price { color: #BBAD9D; }
.shop-card.real.dear { background: #F8EFD6; }
.shop-card.picked { box-shadow: 0 0 0 6px #F4B72A; animation: wiggle 1s ease-in-out infinite; }

/* making the pet */
.maker { align-items: center; }
.maker .kw-wall { bottom: 40%; }
.maker .kw-floor { height: 40%; }
.mk-pet { position: relative; flex: 1; min-height: 0; width: 46vmin; display: flex; align-items: flex-end; z-index: 2; }
.mk-pet .pet { width: 100%; }
.mk-tray { position: relative; z-index: 2; flex: none; width: 100%; display: flex; align-items: center; justify-content: center; padding: 12px 10px calc(12px + var(--safe-b)); background: #FFF8EE; }
.mk-opts { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 5px; scrollbar-width: none; }
.mk-opts::-webkit-scrollbar { display: none; }
.mk-opt { flex: none; width: 112px; height: 124px; margin-right: 10px; padding: 8px; border-radius: 20px; background: #fff; box-shadow: 0 2px 0 #EEDFCB; }
.mk-opt.on { box-shadow: 0 0 0 5px #F4B72A; }
.mk-next { flex: none; width: 96px; height: 96px; margin-left: 8px; border-radius: 50%; display: grid; place-items: center; background: #5F8A63; color: #fff; box-shadow: 0 4px 0 #4B7050; }
@media (max-width: 500px) { .mk-opt { width: 88px; height: 104px; } .mk-next { width: 72px; height: 72px; } }

/* ---------- the board ---------- */
body.board-mode { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overflow: hidden; }
body.board-mode #app { max-width: none; }
body.board-mode .toast { bottom: calc(30px + var(--safe-b)); }
.bd { position: fixed; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; padding: calc(14px + var(--safe-t)) 18px calc(14px + var(--safe-b)); background: var(--bg); }
.bd-top { flex: none; display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bd-top h1 { font-size: 26px; flex: 1; text-align: center; color: var(--ink-2); }
.bd-clock { text-align: left; padding: 4px 16px 4px 4px; border-radius: 14px; }
.bd-clock b { position: relative; display: block; font: 600 42px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bd-clock small { position: relative; color: var(--ink-3); font-size: 15px; font-weight: 750; }
.bd-body { flex: 1; min-height: 0; display: flex; }
.bd-kids { flex: none; width: 200px; margin: -6px 8px 0 -6px; padding: 6px 6px 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.bd-kid { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 14px 10px 12px; margin-bottom: 12px; border-radius: var(--r-lg); background: var(--surf); box-shadow: var(--shadow); font-size: 20px; }
.bd-kid.fresh { box-shadow: 0 0 0 4px #F4B72A, var(--shadow); animation: wiggle 1.6s ease-in-out infinite; }
.bd-pet { width: 120px; }
.bd-kid b { font-family: var(--display); font-weight: 600; margin-top: 2px; }
.bd-stars { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.bd-stars i { width: 13px; height: 13px; margin: 2px; border-radius: 50%; background: var(--surf-2); }
.bd-stars i.on { background: #F4B72A; }
.bd-cols { flex: 1; min-width: 0; display: flex; }
.bd-col { flex: 1; min-width: 0; display: flex; flex-direction: column; margin-left: 12px; padding: 12px; border-radius: var(--r-lg); background: var(--surf-2); }
.bd-col:first-child { margin-left: 0; }
.bd-col.now { background: var(--surf); box-shadow: var(--shadow); }
.bd-col h2 { flex: none; display: flex; align-items: center; font-size: 20px; padding: 2px 4px 10px; }
.bd-col h2 svg { margin-right: 8px; }
.bd-col[data-slot=morning] h2 svg { color: var(--morning); } .bd-col[data-slot=afternoon] h2 svg { color: var(--afternoon); } .bd-col[data-slot=evening] h2 svg { color: var(--evening); }
.bd-col h2 small { margin-left: auto; font: 750 13px var(--body); color: var(--ink-3); }
.bd-list { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.bd-none { margin: 10px 4px; color: var(--ink-3); font-weight: 650; font-size: 15px; }
.bd-chore { width: 100%; display: flex; align-items: center; min-height: 62px; padding: 8px 10px; margin-bottom: 8px; border-radius: 16px; text-align: left; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 750; font-size: 16px; line-height: 1.2; }
.bd-col:not(.now) .bd-chore { background: var(--surf); }
.bd-chore .bd-check { flex: none; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ink-3); color: #fff; }
.bd-chore .e { flex: none; font-size: 26px; margin-right: 8px; }
.bd-chore .t { flex: 1; min-width: 0; }
.bd-chore .t small { display: block; color: var(--accent); font-size: 12px; font-weight: 800; }
.bd-chore .av { margin-left: 6px; }
.bd-chore.done .bd-check { background: var(--sage); border-color: var(--sage); }
.bd-chore.done .t { color: var(--ink-3); text-decoration: line-through; }
.bd-q { margin: -6px 0 12px; color: var(--ink-2); font-size: 18px; font-weight: 750; }
.bd-who { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); grid-gap: 12px; }
.bd-who button { display: flex; flex-direction: column; align-items: center; padding: 14px 6px; border-radius: 18px; background: var(--surf); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 17px; font-weight: 800; }
.bd-who button.on { box-shadow: inset 0 0 0 3px var(--accent); }
.av.xl { width: 72px; height: 72px; font-size: 30px; margin-bottom: 8px; }
@media (max-width: 760px) {
  .bd-cols { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bd-col { flex: none; width: 260px; }
  .bd-kids { width: 130px; margin-right: 10px; }
  .bd-pet { width: 90px; }
}
.bd-moon { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: #05060F; }
.moon-disc { position: absolute; left: 50%; top: 50%; width: 30vmin; height: 30vmin; margin: -15vmin 0 0 -15vmin; border-radius: 50%; background: #4B4A3C; }
.moon-disc::after { content: ''; position: absolute; left: -20%; top: -10%; width: 92%; height: 92%; border-radius: 50%; background: #05060F; }
.ms { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #3B3C50; }
.ms.s1 { left: 18%; top: 22%; } .ms.s2 { left: 76%; top: 30%; } .ms.s3 { left: 30%; top: 74%; } .ms.s4 { left: 84%; top: 70%; }
.bd-moon small { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #2C2D3E; font-size: 13px; font-weight: 750; }
.bd-sun { position: fixed; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #FFE9A8; color: #6B4A12; }
.sun-disc { width: 32vmin; height: 32vmin; border-radius: 50%; background: #FFC93C; box-shadow: 0 0 0 4vmin rgba(255, 201, 60, .38), 0 0 0 8vmin rgba(255, 201, 60, .2); animation: sunrise 1.6s cubic-bezier(.2, .8, .3, 1); }
@keyframes sunrise { from { transform: translateY(40vh); } }
.bd-sun h1 { margin: 8vmin 0 3vmin; font-size: 7vmin; }
.bd-sun-kids { display: flex; }
.bd-sun-kids .bd-kid { width: 190px; margin: 0 8px; }

/* ---------- Kids tab ---------- */
.kid-card .section-label { margin: 18px 2px 8px; }
.kid-head { display: flex; align-items: center; margin-bottom: 12px; }
.kid-head .txt { flex: 1; min-width: 0; margin-left: 12px; }
.kid-head h2 { margin: 0; }
.kid-head .x { flex: none; margin-left: 8px; }
.kid-pet { flex: none; width: 76px; }
.stars-line { display: flex; align-items: center; margin: 2px 0 0; color: var(--ink-2); font-size: 14px; font-weight: 700; }
.stars-line svg { color: var(--star); fill: currentColor; margin-right: 4px; }
.stars-line b { margin-right: 4px; color: var(--ink); }
.kid-card .items .item { padding-left: 0; }
.kid-treat .btn { flex: none; }
.kid-treat { display: flex; align-items: center; padding: 10px 12px; margin-top: 12px; border-radius: 14px; background: var(--surf-2); }
.kid-treat > span { font-size: 28px; margin-right: 10px; }
.kid-treat .txt { flex: 1; min-width: 0; }
.kid-treat b { display: block; font-weight: 750; }
.kid-treat small { color: var(--ink-3); font-weight: 650; font-size: 13px; }
.kid-treat.ready { background: var(--accent-soft); }
.night-card { background: var(--morning-soft); }
.kid-card .night-q { margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--morning-soft); }
.night-q h3 { font-size: 19px; margin-bottom: 8px; }
.night-q h4 { margin: 12px 0 8px; font: 800 14px var(--body); color: var(--ink-2); }
.night-q > p { margin: -4px 0 8px; font-size: 13px; font-weight: 750; color: var(--ink-3); }
.night-opts { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 8px; }
.night-opts.two { grid-template-columns: repeat(2, 1fr); }
.night-opt { display: block; position: relative; padding: 10px 4px; min-height: 66px; border-radius: 14px; background: var(--surf); text-align: center; box-shadow: inset 0 0 0 1.5px var(--line); }
.night-opt b { position: relative; display: block; font-size: 14px; font-weight: 800; line-height: 1.15; }
.night-opt small { position: relative; display: block; margin-top: 3px; color: var(--star); font-size: 13px; font-weight: 800; }
.night-opt.on { box-shadow: inset 0 0 0 3px var(--sage); background: var(--sage-soft); }
.kw .night-q h3, .kw .night-q { color: #3B2F27; }
.kw .night-opt { background: #fff; min-height: 84px; }
.nights { display: grid; grid-template-columns: repeat(14, 1fr); grid-gap: 2px; }
.night { display: flex; flex-direction: column; align-items: center; padding: 3px 0; }
.night i { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--surf-2); overflow: hidden; }
.night small { margin-top: 2px; color: var(--ink-3); font-size: 10px; font-weight: 800; }
.night.full i { background: #F4B72A; }
.night.half i { background: var(--surf-2); }
.night.half i::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 50%; background: #F4B72A; }
.night.empty i { background: var(--ink-3); opacity: .55; }
.night.open i { box-shadow: inset 0 0 0 2px var(--morning); background: transparent; }
.night.none i { opacity: .4; }
.pet-picks { display: flex; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 4px; scrollbar-width: none; }
.pet-picks::-webkit-scrollbar { display: none; }
.pet-pick { flex: none; width: 86px; padding: 6px; margin-right: 8px; border-radius: 16px; background: var(--surf); box-shadow: inset 0 0 0 1.5px var(--line); }
.pet-pick.on { box-shadow: inset 0 0 0 3px var(--accent); background: var(--accent-soft); }
.ks-times { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; }
.ks-times label { font-size: 14px; font-weight: 750; color: var(--ink-2); }
.ks-times .input { margin-top: 4px; font-variant-numeric: tabular-nums; }
.steps-list { margin: 0 0 12px; padding-left: 22px; font-size: 15px; }
.steps-list li { margin-bottom: 10px; }
