/* ==========================================================================
   Toys: the hands-on visuals inside the tools (draft 9).
   Goal trails, pill organizers, sticker calendars, jars, scales, spinners…
   Every one of them is a real control underneath (checkbox, button, radio),
   so keyboards, screen readers, Simple view and High contrast all keep working.
   ========================================================================== */

/* ---------- Goal cards ---------- */
.gc-band { align-items: center; }
.gc-band .m-grip { margin-right: 2px; }
/* (draft 11: the stepping-stone trail went with goal steps; linked things are drawn by .gt-* in members.css) */

/* ---------- Habits: a sticker chart ----------
   Draft 10 (screenshots 01, 02, 13): one robust row that never spills sideways. Grid areas:
   grip | icon | name + goal chip | pencil  on the first row, the streak line under the name, and the
   seven day slots on their own row, each one sharing the width equally (so a 390px phone fits all seven). */
.hb-chart .m-habit { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "grip ico main edit" "grip ico meta edit" "days days days days"; align-items: center; gap: 4px 10px; min-width: 0; background: #fffdf7; color: #23180f; border: 2px solid #e6dcc8; box-shadow: 0 4px 0 #e6dcc8; }
.hb-chart .m-habit > .m-grip { grid-area: grip; align-self: center; }
.hb-chart .m-habit > .m-habit-ico { grid-area: ico; }
.hb-chart .m-habit > .m-habit-main { grid-area: main; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.hb-chart .m-habit > .m-habit-meta { grid-area: meta; margin: 0; min-width: 0; color: #47372a; font-size: var(--step--1); line-height: 1.35; }
.hb-chart .m-habit > .m-habit-move { grid-area: edit; align-self: start; }
.hb-chart .m-habit-main h2 { margin: 0; min-width: 0; font-size: var(--step-1); line-height: 1.2; color: #23180f; text-wrap: pretty; overflow-wrap: anywhere; }
.hb-chart .m-habit-main .gl-chip { max-width: 100%; }
.hb-chart .m-habit-meta .muted { color: #47372a; }
.hb-chart .m-habit-meta .hb-flame { margin-right: 2px; }
.hb-chart .m-habit.is-done-today { border-color: color-mix(in srgb, var(--hc) 55%, #e6dcc8); box-shadow: 0 4px 0 color-mix(in srgb, var(--hc) 55%, #e6dcc8); }
.hb-chart .m-habit > .hb-days { grid-area: days; display: flex; gap: 6px; min-width: 0; width: 100%; margin-top: 4px; }
.hb-days li { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; }
.hb-slot { position: relative; width: 100%; max-width: 48px; height: 56px; padding: 4px 0 0; display: flex; flex-direction: column; align-items: center; gap: 0; border-radius: 12px; border: 2px dashed color-mix(in srgb, var(--hc) 45%, #cdbfa6); background: #fff; color: #47372a; font: inherit; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.hb-slot .hb-dow { font-size: 11px; font-weight: 900; letter-spacing: .04em; line-height: 1; }
.hb-slot .hb-dom { font-size: 15px; font-weight: 800; line-height: 1.2; }
.hb-slot.is-today { border-style: solid; border-color: #23180f; background: #fff8dc; }
.hb-slot.is-done { border-style: solid; border-color: color-mix(in srgb, var(--hc) 60%, #000); background: color-mix(in srgb, var(--hc) 18%, #fff); color: #23180f; }
.hb-slot.is-done .hb-dow { color: #23180f; opacity: 1; }
.hb-slot.is-done .hb-dom { opacity: .7; }
.hb-stk { position: absolute; left: 50%; bottom: -6px; width: 34px; height: 34px; margin-left: -17px; display: grid; place-items: center; border-radius: 50%; background: var(--hc); color: #fff; border: 2.5px solid #fff; box-shadow: 0 3px 0 rgba(0,0,0,.2); animation: hb-stamp .4s cubic-bezier(.2,.9,.3,1.4) 1; }
.hb-stk .icon { width: 20px; height: 20px; stroke-width: 2.5; }
.hb-stk.stk-star { border-radius: 0; background: none; border: 0; box-shadow: none; color: var(--hc); }
.hb-stk.stk-star .icon { width: 36px; height: 36px; fill: var(--hc); stroke: color-mix(in srgb, var(--hc) 55%, #000); filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.hb-stk.stk-heart .icon { fill: #fff; }
.hb-stk.stk-flower { background: #fff; color: var(--hc); }
.hb-stk.stk-sun { background: #ffd43b; color: #7a4a00; border-color: #fff; }
.hb-stk.stk-zap { border-radius: 10px; transform: rotate(6deg); }
@keyframes hb-stamp { 0% { transform: scale(.4) rotate(-20deg); } 70% { transform: scale(1.15) rotate(4deg); } 100% { transform: scale(1) rotate(0); } }
.hb-slot:hover { transform: translateY(-3px) rotate(-2deg); }
.hb-slot:active { transform: translateY(1px) scale(.96); }
.hb-flame { display: inline-grid; place-items: center; width: calc(20px + var(--n, 1) * .6px); height: calc(20px + var(--n, 1) * .6px); border-radius: 50%; background: #ffe08a; color: #d9480f; vertical-align: middle; }
.hb-flame .icon { width: 70%; height: 70%; }
.hb-stk-pick span > .hb-stk { position: static; margin: 0; animation: none; }
.hb-stk-pick span { display: grid; place-items: center; min-width: 48px; min-height: 48px; }
.hb-chart .m-grip { align-self: center; }
@media (max-width: 760px) { .hb-chart .m-habit { gap: 4px 8px; padding: .6em .7em; } .hb-chart .m-habit .m-grip { display: inline-grid; } .hb-chart .m-habit > .hb-days { gap: 4px; } .hb-slot { height: 52px; } .hb-slot .hb-dom { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .hb-stk { animation: none; } .hb-slot:hover { transform: none; } }
:root[data-motion="reduce"] .hb-stk { animation: none; }

/* ---------- The star HUD in the dashboard header ---------- */
.m-hud { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 6px 6px; border-radius: 999px; border: 2px solid #23180f; background: #fff8dc; color: #23180f; font: inherit; font-weight: 900; line-height: 1; cursor: pointer; box-shadow: 0 3px 0 #23180f; transition: transform .15s; }
.m-hud:hover { transform: translateY(-1px); }
.m-hud:active { transform: translateY(2px); box-shadow: 0 1px 0 #23180f; }
.m-hud:focus-visible { outline: 3px solid #2b2bff; outline-offset: 3px; }
.m-hud .hud-star { display: grid; place-items: center; width: 24px; height: 24px; }
.m-hud .hud-star .icon { width: 22px; height: 22px; fill: #ffd43b; stroke: #a16d00; }
.m-hud b { font-size: 15px; }
.m-hud .hud-lv { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: #23180f; color: #fff; letter-spacing: .02em; }
.m-hud .hud-bar { position: absolute; left: 12px; right: 12px; bottom: 1px; height: 3px; border-radius: 2px; background: #e6dcc8; overflow: hidden; }
.m-hud .hud-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f6a91c, #e5484d); transition: width .6s ease; }
.m-hud.is-bump { animation: hud-bump .55s cubic-bezier(.3,1.6,.5,1); }
@keyframes hud-bump { 30% { transform: scale(1.14) rotate(-3deg); } 60% { transform: scale(.97); } }
.m-starfly { position: fixed; z-index: 3000; pointer-events: none; display: flex; align-items: center; gap: 4px; font-weight: 900; font-size: 18px; color: #a16d00; text-shadow: 0 1px 0 #fff, 0 0 6px #fff; transform: translate(-50%, -50%); }
.m-starfly .icon { width: 30px; height: 30px; fill: #ffd43b; stroke: #a16d00; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
@media (max-width: 560px) { .m-hud .hud-lv { display: none; } }
@media (prefers-reduced-motion: reduce) { .m-hud.is-bump { animation: none; } }
:root[data-motion="reduce"] .m-hud.is-bump { animation: none; }

/* ---------- The arcade: repairs, then games one at a time ---------- */
.rp-meter span, .arc-repair .m-meter span { background: linear-gradient(90deg, #f6a91c, #e5484d); }
.rp-sign { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; background: #ffe08a; color: #7a4a00; }
.rp-sign .icon { width: 34px; height: 34px; }
.arc-ladder { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.arc-cart { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 12px 10px 10px; border-radius: 14px; background: #2a1a60; color: #fff; border: 2px solid #4b3592; box-shadow: 0 4px 0 #120a2a; }
.arc-cart b { display: block; } .arc-cart small { display: block; color: #cfc4f0; }
.arc-cart-ico { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #120a2a; color: #22e6ff; }
.arc-cart-ico .icon { width: 24px; height: 24px; }
.arc-cart-need { position: absolute; right: 10px; top: -10px; padding: 2px 8px; border-radius: 999px; background: #ffd25c; color: #23180f; font-size: 12px; font-weight: 900; box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.arc-cart.is-locked { filter: saturate(.6); }
.arc-game.is-locked { opacity: .78; border-style: dashed; cursor: not-allowed; }
.arc-game.is-locked .icon { color: #cfc4f0; }
.arc-game.is-shake { animation: arc-shake .45s; }
@keyframes arc-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.arc-pick { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ul-fix { background: #ffe08a !important; color: #7a4a00 !important; }
@media (prefers-reduced-motion: reduce) { .arc-game.is-shake { animation: none; } }

/* ---------- Budget: the gauge, the week of coins, envelopes and saving jars ---------- */
.bd-hero .m-card-head { flex-wrap: wrap; }
.bd-gauge { display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: center; margin: 4px 0 10px; }
.bd-tube { position: relative; width: 54px; height: 150px; border-radius: 27px; border: 3px solid #23180f; background: #fffaf0; overflow: hidden; box-shadow: inset 0 0 0 4px rgba(0,0,0,.05), 0 4px 0 #23180f; }
.bd-fill { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--pct, 0) * 1%); background: linear-gradient(180deg, #8fe3a9, #2f9e5f); transition: height .8s var(--toy-spring, ease); }
.bd-fill::after { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); }
.bd-hero.tone-mid .bd-fill { background: linear-gradient(180deg, #ffe08a, #f0a31b); }
.bd-hero.tone-low .bd-fill, .bd-hero.tone-over .bd-fill { background: linear-gradient(180deg, #ff9c93, #d9363e); }
.bd-marks { position: absolute; inset: 0; pointer-events: none; }
.bd-marks i { position: absolute; left: 0; width: 10px; border-top: 2px solid rgba(35,24,15,.35); } .bd-marks i:nth-child(1) { top: 25%; } .bd-marks i:nth-child(2) { top: 50%; width: 16px; } .bd-marks i:nth-child(3) { top: 75%; }
.bd-gauge-text b { display: block; font-size: var(--step-3); line-height: 1; font-family: var(--font-display); }
.bd-gauge-text span { display: block; font-weight: 700; color: #5a4836; }
.bd-gauge-text small { display: block; margin-top: 4px; font-weight: 800; color: #2f6f3a; } .bd-gauge-text small.is-over { color: #a3171b; }
.bd-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 120px; padding: 0 2px; max-width: 560px; }
.bd-day { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bd-bar { position: relative; width: 100%; max-width: 44px; flex: 1; display: flex; align-items: flex-end; justify-content: center; border-radius: 8px 8px 4px 4px; background: rgba(35,24,15,.06); overflow: visible; }
.bd-bar::before { content: ""; position: absolute; left: 4px; right: 4px; bottom: 0; height: calc(var(--h, 0) * 1%); min-height: 0; border-radius: 6px 6px 2px 2px; background: repeating-linear-gradient(180deg, #ffd34f 0 6px, #e0a800 6px 8px); border: 2px solid #7a5600; border-bottom: 0; box-sizing: border-box; opacity: calc(min(1, var(--h, 0) * 10)); }
.bd-bar b { position: relative; z-index: 1; margin-bottom: calc(var(--h, 0) * 1% + 2px); font-size: 11px; font-weight: 900; background: #fffaf0; border: 1.5px solid #23180f; border-radius: 6px; padding: 0 4px; white-space: nowrap; }
.bd-line { position: absolute; left: -2px; right: -2px; bottom: calc(var(--h, 0) * 1%); border-top: 2px dotted #a3171b; opacity: .6; }
.bd-day.is-over .bd-bar::before { background: repeating-linear-gradient(180deg, #ff9c93 0 6px, #d9363e 6px 8px); border-color: #7a1a1a; }
.bd-dow { font-size: 12px; font-weight: 900; color: #5a4836; }
.bd-day.is-today .bd-dow { color: #23180f; background: #ffe08a; border-radius: 999px; padding: 0 7px; }
.bd-day.is-future { opacity: .5; }
.bd-month { margin-bottom: 8px; }
.bd-envelopes { list-style: none; margin: 0; padding: 4px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.bd-env { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px 12px 10px; border-radius: 6px 6px 12px 12px; background: #fff3cf; border: 2px solid #c9a24a; box-shadow: 0 4px 0 #c9a24a; overflow: hidden; }
.env-flap { position: absolute; left: -2px; right: -2px; top: -2px; height: 24px; background: #ffe9a8; border: 2px solid #c9a24a; border-radius: 6px 6px 0 0; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.bd-env.is-low { background: #fff0db; } .bd-env.is-over { background: #fde0dd; border-color: #c25055; box-shadow: 0 4px 0 #c25055; } .bd-env.is-over .env-flap { background: #ffc9c4; border-color: #c25055; }
.bd-env.is-extra { background: #f4f1ea; border-style: dashed; }
.env-name { font-weight: 900; } .env-left { font-weight: 800; color: #2f6f3a; } .bd-env.is-over .env-left { color: #a3171b; }
.env-meter { height: 8px; }
.sv-jars { list-style: none; margin: 0; padding: 4px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sv-jar { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; }
.sv-jar > .m-grip { position: absolute; top: 0; left: 0; z-index: 2; }
.sv-glass { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 6px 4px 4px; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; border-radius: 14px; }
.sv-glass:focus-visible { outline: 3px solid #2b2bff; outline-offset: 2px; }
.sv-lid { width: 70px; height: 12px; border-radius: 6px 6px 2px 2px; background: repeating-linear-gradient(90deg, #c9c9c9 0 3px, #8f8f8f 3px 5px); border: 2px solid #4b5563; margin-bottom: -3px; z-index: 1; }
.sv-body { position: relative; width: 92px; height: 104px; border-radius: 16px 16px 24px 24px; border: 3px solid rgba(40,80,90,.65); background: linear-gradient(90deg, rgba(255,255,255,.55), rgba(200,240,255,.25) 30%, rgba(255,255,255,.12) 70%, rgba(255,255,255,.45)), #eef6f8; box-shadow: inset 0 0 0 4px rgba(255,255,255,.35), 0 6px 0 rgba(40,80,90,.35); overflow: hidden; transition: transform .25s var(--toy-spring, ease); }
.sv-glass:hover .sv-body { transform: translateY(-3px) rotate(-2deg); }
.sv-fill { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--pct, 0) * 1%); background: color-mix(in srgb, var(--jc) 35%, #fff); border-top: 2px solid rgba(255,255,255,.7); transition: height .8s var(--toy-spring, ease); }
.sv-coins { position: absolute; left: 0; right: 0; bottom: 3px; display: flex; flex-wrap: wrap-reverse; justify-content: center; gap: 0 2px; padding: 0 6px; }
.sv-coins i { width: 22px; height: 10px; margin-top: -3px; border-radius: 50%; background: radial-gradient(ellipse at 40% 35%, #fff3b0, #f5c518 50%, #b8860b); border: 1.5px solid #7a5600; transform: rotate(calc(var(--k, 0) * 7deg - 10deg)); animation: jr-drop .5s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(var(--k, 0) * .05s); }
.sv-bow { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #ffd34f; color: #7a4a00; border: 2px solid #7a4a00; }
.sv-label { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.15; }
.sv-label b { font-size: 14px; } .sv-label small { font-weight: 800; color: #5a4836; }
.sv-jar.is-full .sv-body { box-shadow: inset 0 0 0 4px rgba(255,255,255,.35), 0 6px 0 rgba(40,80,90,.35), 0 0 22px color-mix(in srgb, var(--jc) 60%, #fff); }
.sv-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; align-items: center; }
/* envelope rows: grip | name | amount | remove; on narrow screens the amount drops under the name so nothing is squeezed to nothing (draft 10, screenshot 12) */
.m-plan-rows li[data-sort-id] { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(6rem, 8rem) auto; grid-template-areas: "grip cat amt del"; align-items: center; gap: 6px; }
.m-plan-rows li[data-sort-id] > .m-grip { grid-area: grip; } .m-plan-rows li[data-sort-id] input[data-pc] { grid-area: cat; min-width: 0; width: 100%; } .m-plan-rows li[data-sort-id] input[data-pa] { grid-area: amt; min-width: 0; width: 100%; } .m-plan-rows li[data-sort-id] > button { grid-area: del; }
@media (max-width: 480px) { .m-plan-rows li[data-sort-id] { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "grip cat del" "grip amt del"; row-gap: 4px; padding-bottom: 6px; border-bottom: 1.5px dashed #e6dcc8; } .m-plan-rows li[data-sort-id] input[data-pa] { max-width: 9rem; } }
@media (max-width: 560px) { .bd-gauge { grid-template-columns: auto 1fr; } .bd-tube { width: 44px; height: 120px; } .bd-week { height: 100px; } }
@media (prefers-reduced-motion: reduce) { .sv-coins i { animation: none; } }
:root[data-motion="reduce"] .sv-coins i { animation: none; }

/* ---------- Medicines: a pill organizer for the day ---------- */
.po-count { margin: 0 0 8px; }
.po-case { padding: 12px; border-radius: 20px; border: 3px solid #23180f; background: linear-gradient(180deg, #b197fc, #7048e8); box-shadow: inset 0 3px 0 rgba(255,255,255,.35), 0 6px 0 #3b2a8a; }
.po-case.is-all { background: linear-gradient(180deg, #8fe3a9, #2f9e5f); box-shadow: inset 0 3px 0 rgba(255,255,255,.35), 0 6px 0 #1d6a3f; }
.po-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.po-cell { position: relative; display: flex; flex-direction: column; border-radius: 14px; border: 2px solid #23180f; background: #fffaf0; overflow: hidden; perspective: 700px; }
.po-well { position: absolute; left: 0; right: 0; top: 0; height: 68px; display: flex; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(120% 100% at 50% 100%, #efe6d2, #d9ccb0); box-shadow: inset 0 6px 10px rgba(0,0,0,.18); color: #1d7a3a; font-weight: 900; z-index: 0; }
.po-well .icon { width: 28px; height: 28px; stroke-width: 3; }
.po-lid { position: relative; display: block; width: 100%; height: 68px; padding: 8px 8px 10px; border: 0; border-bottom: 2px solid #23180f; background: linear-gradient(180deg, color-mix(in srgb, var(--lid) 60%, #fff), var(--lid)); color: #23180f; font: inherit; text-align: left; cursor: pointer; transform-origin: top; transition: transform .55s cubic-bezier(.3,1.3,.5,1), opacity .4s; z-index: 2; }
.po-lid::after { content: ""; position: absolute; right: 10px; bottom: 8px; width: 26px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #fff 50%, #ff6b6b 50%); border: 1.5px solid #23180f; }
.po-lid:hover { filter: brightness(1.05); } .po-lid:focus-visible { outline: 3px solid #2b2bff; outline-offset: -4px; }
.po-lid-face b { display: block; font-size: 18px; line-height: 1.1; } .po-lid-face small { display: block; font-weight: 800; font-size: 11px; color: #3a2d1a; }
.po-lid-mark { position: absolute; right: 8px; top: 8px; display: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid #23180f; }
.po-lid-mark .icon { width: 18px; height: 18px; stroke-width: 3; }
.po-cell.is-taken .po-lid { transform: rotateX(-160deg); opacity: 0; pointer-events: none; }
.po-cell.is-taken .po-well { z-index: 1; }
.po-cell.is-taken .po-inside { opacity: .75; }
.po-cell.is-refused .po-lid, .po-cell.is-missed .po-lid { background: linear-gradient(180deg, #f0e6e6, #d9c8c8); }
.po-cell.is-refused .po-lid-mark, .po-cell.is-missed .po-lid-mark { display: grid; } .po-cell.is-refused .po-lid-mark { color: #a3171b; border-color: #a3171b; } .po-cell.is-missed .po-lid-mark { color: #6b5b4b; }
.po-inside { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px; min-height: 70px; background: radial-gradient(120% 100% at 50% 0%, #fff, #f3ecdc); z-index: 1; }
.po-pill { position: relative; flex: none; width: 46px; height: 20px; border-radius: 999px; background: linear-gradient(90deg, var(--a) 50%, #fff 50%); border: 2px solid #23180f; box-shadow: 0 3px 0 rgba(0,0,0,.2); transform: rotate(-25deg); }
.po-pill::after { content: ""; position: absolute; left: 6px; top: 3px; width: 10px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.7); }
.po-pill.is-bottle { width: 24px; height: 36px; border-radius: 6px 6px 8px 8px; background: var(--a); transform: none; margin-left: 8px; }
.po-pill.is-bottle::before { content: ""; position: absolute; left: 4px; right: 4px; top: -9px; height: 9px; border-radius: 3px 3px 0 0; background: #fff; border: 2px solid #23180f; border-bottom: 0; }
.po-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; } .po-name b { font-size: 15px; } .po-name small { font-weight: 700; color: #5a4836; }
.po-other { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px 8px; position: relative; z-index: 1; }
.po-other .m-status-btn { flex: 1; justify-content: center; font-size: 12px; padding: .35em .5em; white-space: nowrap; }
.po-cell.is-taken .po-other { display: none; }
.po-cell.is-taken::after { content: "Tap the open compartment to clear it"; position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; font-size: 11px; font-weight: 800; color: #5a4836; background: #fffaf0; border-top: 1px solid #e6dcc8; z-index: 1; }
.po-cell.is-taken .po-well { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .po-lid { transition: none; } }
:root[data-motion="reduce"] .po-lid { transition: none; }

/* ---------- The prize wheel ---------- */
.sp-box { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sp-wheel { width: min(100%, 320px); height: auto; filter: drop-shadow(0 8px 10px rgba(0,0,0,.3)); }
.sp-result { margin: 0; min-height: 1.6em; font-size: var(--step-1); font-weight: 800; display: flex; align-items: center; gap: 6px; }
.sp-result .icon { color: #e0a200; }

/* ---------- Box breathing: a bubble that grows and shrinks ---------- */
.m-breathe.big.br-stage { width: auto; height: auto; min-height: 0; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 6px 0 2px; }
.br-stage .br-ring { position: relative; display: grid; place-items: center; width: 240px; height: 240px; border-radius: 50%; border: 3px dashed color-mix(in srgb, var(--pa, #2f8f8a) 50%, #fff); }
.m-breathe.big.br-stage .m-breathe-circle.br-bubble { position: relative; inset: auto; display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; --pa: #2f8f8a; background: radial-gradient(circle at 35% 30%, #fff, color-mix(in srgb, var(--pa) 45%, #fff) 60%, color-mix(in srgb, var(--pa) 70%, #fff)); box-shadow: inset -8px -10px 20px rgba(0,0,0,.08), 0 10px 24px -8px color-mix(in srgb, var(--pa) 60%, transparent); transition: transform 3.6s ease-in-out; transform: scale(.8); }
.m-breathe.big.br-stage .br-bubble[data-phase="0"], .m-breathe.big.br-stage .br-bubble[data-phase="1"] { transform: scale(1.7); }
.m-breathe.big.br-stage .br-bubble[data-phase="2"], .m-breathe.big.br-stage .br-bubble[data-phase="3"] { transform: scale(.8); }
.br-word { font-weight: 900; font-size: 14px; color: #23180f; text-align: center; }
.br-cue { margin: 0; font-weight: 800; font-size: var(--step-1); text-align: center; }
@media (prefers-reduced-motion: reduce) { .m-breathe.big.br-stage .br-bubble { transition: none; transform: scale(1.2) !important; } }
:root[data-motion="reduce"] .m-breathe.big.br-stage .br-bubble { transition: none; transform: scale(1.2) !important; }
/* choice cards get a grip while editing */
.m-choice-grid.is-editing li { position: relative; }
.m-choice-grid.is-editing li > .m-grip { position: absolute; top: 6px; left: 6px; z-index: 2; }

/* ---------- The week pill organizer ---------- */
.pb-count { margin: 0 0 8px; }
.pb-box { --cellw: 1fr; display: grid; gap: 6px; padding: 10px; border-radius: 18px; border: 3px solid #23180f; background: linear-gradient(180deg, #ece7f7, #d6cdee); box-shadow: inset 0 3px 0 rgba(255,255,255,.6), 0 6px 0 #6b5d8f; }
.pb-box.is-week { grid-template-columns: 92px repeat(7, minmax(0, 1fr)); overflow-x: auto; }
.pb-box.is-day { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pb-corner { }
.pb-dayhead { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px 2px; border-radius: 10px; font-weight: 800; color: #3d3050; line-height: 1.1; }
.pb-dayhead b { font-size: 18px; } .pb-dayhead span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.pb-dayhead.is-today { background: #23180f; color: #fff; }
.pb-rowhead { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 10px; background: var(--lid); color: var(--lid-ink); font-weight: 900; font-size: 13px; }
.pb-rowhead .icon { width: 18px; height: 18px; }
.pb-cell { position: relative; min-width: 0; display: flex; flex-direction: column; border-radius: 12px; border: 2px solid #23180f; background: #fffaf0; overflow: hidden; perspective: 600px; min-height: 92px; }
.pb-cell.is-big { min-height: 150px; border-radius: 16px; }
.pb-lid { position: relative; z-index: 2; display: block; width: 100%; height: 34px; padding: 0 6px; border: 0; border-bottom: 2px solid #23180f; background: linear-gradient(180deg, color-mix(in srgb, var(--lid) 55%, #fff), var(--lid)); color: var(--lid-ink); font: inherit; cursor: pointer; text-align: left; transform-origin: top; transition: transform .5s cubic-bezier(.3,1.3,.5,1); }
.pb-cell.is-big .pb-lid { height: 50px; }
.pb-lid::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 7px; margin-top: -3px; border-radius: 999px; background: rgba(255,255,255,.55); border: 1.5px solid rgba(0,0,0,.35); }
.pb-cell.is-big .pb-lid::after { width: 24px; height: 9px; }
.pb-lid-face { display: flex; align-items: center; gap: 6px; height: 100%; font-weight: 900; font-size: 12px; letter-spacing: .04em; }
.pb-cell.is-big .pb-lid-face { font-size: 15px; }
.pb-dots { display: inline-flex; gap: 2px; } .pb-dots u { display: block; width: 7px; height: 7px; border-radius: 50%; background: #fff; border: 1.5px solid rgba(0,0,0,.4); }
.pb-done { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #1d7a3a; color: #fff; } .pb-done .icon { width: 13px; height: 13px; stroke-width: 3; }
.pb-cell.is-open .pb-lid { transform: rotateX(-125deg); }
.pb-cell.is-open { box-shadow: 0 0 0 3px #23180f, 0 0 0 6px #ffd34f; z-index: 1; }
.pb-cell.is-empty { background: #f1ece2; border-style: dashed; } .pb-cell.is-empty .pb-lid { filter: saturate(.4) brightness(1.05); opacity: .8; }
.pb-cell.is-done { background: #eef8ef; }
.pb-cell.is-future { opacity: .9; }
.pb-cell.is-today { border-color: #23180f; box-shadow: 0 0 0 2px #ffd34f inset; }
.pb-well { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; padding: 6px; background: radial-gradient(120% 90% at 50% 100%, #fff, #f3ecdc 80%); box-shadow: inset 0 6px 10px -6px rgba(0,0,0,.25); }
.pb-none { margin: auto; font-size: 11px; font-weight: 700; color: #9c8f7c; }
.pb-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; }
.pb-pillbtn { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 44px; min-height: 44px; padding: 3px 4px; border: 2px solid transparent; border-radius: 10px; background: transparent; font: inherit; color: #23180f; cursor: pointer; transition: transform .2s var(--toy-spring, ease); }
.pb-pillbtn:hover { transform: translateY(-2px) rotate(-3deg); background: rgba(255,255,255,.7); }
.pb-pillbtn:focus-visible { outline: 3px solid #2b2bff; outline-offset: 1px; }
.pb-pillbtn .pill { filter: drop-shadow(0 2px 1px rgba(0,0,0,.25)); }
.pb-photo { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; border: 1.5px solid #23180f; }
.pb-pname { font-size: 10px; font-weight: 800; line-height: 1.05; text-align: center; max-width: 72px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pb-pname em { font-style: normal; color: #a3171b; }
.pb-cell.is-big .pb-pname { font-size: 12px; max-width: 96px; }
.pb-cell:not(.is-open) .pb-well { max-height: 76px; overflow: hidden; }
.pb-cell.is-big:not(.is-open) .pb-well { max-height: 100px; }
.pb-cell:not(.is-open) .pb-pillbtn { pointer-events: none; }
.pb-cell:not(.is-open) .pb-actions { display: none; }
.pb-pillbtn.is-refused, .pb-pillbtn.is-missed { opacity: .7; } .pb-pillbtn.is-refused .pill { filter: grayscale(.6); }
.pb-pillbtn.is-gone { min-height: 36px; color: #1d7a3a; } .pb-pillbtn.is-gone .icon { width: 20px; height: 20px; stroke-width: 3; } .pb-pillbtn.is-gone .pb-pname { text-decoration: line-through; opacity: .7; }
.pb-pills li.is-popping .pb-pillbtn { animation: pill-pop .3s ease-in forwards; }
@keyframes pill-pop { 40% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(0) rotate(30deg); opacity: 0; } }
.pb-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.pb-actions.is-compact { display: grid; grid-template-columns: 1fr; gap: 4px; } .pb-actions.is-compact .btn { justify-content: flex-start; padding: .35em .5em; font-size: 12px; gap: 4px; min-height: 36px; } .pb-actions.is-compact .btn span { white-space: nowrap; }
.pb-daytabs { display: flex; gap: 6px; margin: 0 0 8px; overflow-x: auto; padding-bottom: 2px; }
.pb-daytab { flex: 1; min-width: 44px; display: flex; flex-direction: column; align-items: center; padding: 4px 2px; border-radius: 10px; border: 2px solid #23180f; background: #fffaf0; color: #23180f; font: inherit; font-weight: 800; cursor: pointer; line-height: 1.1; }
.pb-daytab span { font-size: 11px; text-transform: uppercase; } .pb-daytab b { font-size: 17px; }
.pb-daytab.is-on { background: #23180f; color: #fff; } .pb-daytab.is-today:not(.is-on) { background: #fff3b0; }
.pb-empty { display: grid; gap: 10px; } .pb-box.is-demo { opacity: .75; }
/* draft 12: a dose ticked straight from the week (one press for the whole compartment); the well opens the lid */
.pb-peek { position: absolute; z-index: 1; left: 0; right: 0; top: 34px; bottom: 0; border: 0; padding: 0; background: transparent; cursor: pointer; }
.pb-cell.is-big .pb-peek { top: 50px; }
.pb-take { position: absolute; z-index: 3; right: 5px; bottom: 5px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 2.5px solid #23180f; background: #fffdf7; color: #1d7a3a; box-shadow: 0 3px 0 #23180f; cursor: pointer; transition: transform .12s, background .12s; }
.pb-take .icon { width: 22px; height: 22px; stroke-width: 3.2; }
.pb-take:hover { background: #1d7a3a; color: #fff; transform: translateY(-1px); }
.pb-take:active { transform: translateY(2px); box-shadow: 0 1px 0 #23180f; }
.pb-take:focus-visible { outline: 3px solid #2b2bff; outline-offset: 2px; }
.pb-cell.is-big .pb-take { width: 48px; height: 48px; right: 8px; bottom: 8px; } .pb-cell.is-big .pb-take .icon { width: 26px; height: 26px; }
.pb-later { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 11px; font-weight: 800; color: #6b5d4f; line-height: 1.2; }
.pb-later .icon { width: 13px; height: 13px; flex: none; }
.pb-pillbtn:disabled { cursor: not-allowed; opacity: .75; }
@media (prefers-reduced-motion: reduce) { .pb-take { transition: none; } }
.m-med-thumb.is-pill { display: grid; place-items: center; background: #fffaf0; border: 2px solid #e6dcc8; border-radius: 12px; }
.m-med-thumb.is-pill .pill { filter: drop-shadow(0 2px 1px rgba(0,0,0,.2)); }
.mc .mm-top { align-items: center; }
.m-time-chip[style] { border-color: var(--lid); }
@media (max-width: 1000px) { .pb-box.is-week { grid-template-columns: 80px repeat(7, minmax(96px, 1fr)); } .pb-pname { max-width: 60px; } }
@media (prefers-reduced-motion: reduce) { .pb-lid { transition: none; } .pb-pills li.is-popping .pb-pillbtn { animation: none; opacity: 0; } }
:root[data-motion="reduce"] .pb-lid { transition: none; } :root[data-motion="reduce"] .pb-pills li.is-popping .pb-pillbtn { animation: none; opacity: 0; }

/* ---------- Describing a pill: the look picker and the library ---------- */
.lk-pick { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: start; }
.lk-preview { position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 14px; background: #fffaf0; border: 2px solid #23180f; box-shadow: 0 4px 0 #23180f; text-align: center; }
.lk-preview small { font-weight: 800; color: #5a4836; }
.lk-controls { display: grid; gap: 8px; min-width: 0; }
.lk-forms { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.lk-form input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.lk-form span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 10px; border: 2px solid #e6dcc8; background: #fff; cursor: pointer; min-height: 44px; }
.lk-form span small { font-size: 11px; font-weight: 800; text-align: center; line-height: 1.1; }
.lk-form input:checked + span { border-color: #23180f; background: #fff3b0; box-shadow: 0 3px 0 #23180f; }
.lk-form input:focus-visible + span { outline: 3px solid #2b2bff; outline-offset: 2px; }
.lk-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.lk-color input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.m-pick .lk-color > span { display: block; width: 36px; height: 36px; border-radius: 50% !important; background: var(--c) !important; border: 2px solid rgba(0,0,0,.4) !important; cursor: pointer; box-shadow: inset -5px -5px 0 rgba(0,0,0,.08), 0 2px 0 rgba(0,0,0,.25); transition: transform .14s; }
.m-pick .lk-color input:checked + span { outline: 3px solid #23180f; outline-offset: 2px; transform: scale(1.08); box-shadow: inset -5px -5px 0 rgba(0,0,0,.08); }
.m-pick .lk-day > span { border-radius: 999px !important; border-width: 2px !important; box-shadow: none; }
.m-pick .lk-day input:checked + span { transform: none; }
.lk-row .check { flex: 0 0 auto; white-space: nowrap; align-self: center; }
.m-pick .lk-row .check > span { border: 0 !important; box-shadow: none !important; background: none !important; border-radius: 0 !important; padding: 0; transform: none !important; }
.m-pick .lk-row .check { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; }
.lk-color input:focus-visible + span { outline: 3px solid #2b2bff; outline-offset: 2px; }
.lk-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.lk-imprint input { max-width: 120px; }
.lk-slots { margin-bottom: 8px; } .lk-slots .m-cat-chip { border-color: var(--lid); }
.lk-days { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.lk-day input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.lk-day span { display: grid; place-items: center; min-width: 44px; min-height: 36px; padding: 0 8px; border-radius: 999px; border: 2px solid #e6dcc8; background: #fff; font-weight: 800; font-size: 13px; cursor: pointer; }
.lk-day input:checked + span { background: #23180f; color: #fff; border-color: #23180f; }
.lk-day input:focus-visible + span { outline: 3px solid #2b2bff; outline-offset: 2px; }
.ml-find { display: grid; gap: 8px; }
.ml-search { max-width: 420px; }
.ml-results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; max-height: 240px; overflow: auto; padding-right: 2px; }
.ml-item { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; width: 100%; padding: 6px 8px; border-radius: 10px; border: 2px solid #e6dcc8; background: #fff; font: inherit; text-align: left; color: #23180f; cursor: pointer; }
.ml-item.is-on { border-color: #23180f; background: #fff3b0; box-shadow: 0 3px 0 #23180f; }
.ml-item small { font-weight: 700; } .ml-item .muted { color: #5a4836; }
@media (max-width: 600px) { .lk-pick { grid-template-columns: 1fr; } .lk-preview { position: static; flex-direction: row; justify-content: center; } }

/* ---------- Starter chips: tap one instead of typing ---------- */
.st-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 8px; }
.st-row .st-label { margin-right: 2px; }
.st-row .m-prompt { min-height: 36px; }
.m-list-edit .st-row { margin: 0 0 6px; }
.ce-title-wrap { grid-column: 1 / -1; }
.ce-title-wrap .field { margin: 0; }

/* ---------- My style: locks, materials, trimmings, the earned gallery ---------- */
.ws-card-wrap.is-locked .ws-card { filter: saturate(.35) brightness(.75); cursor: not-allowed; }
.ws-card-wrap.is-locked .ws-card > b, .ws-card-wrap.is-locked .ws-card > small { opacity: .85; }
.ws-lock { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(255, 250, 240, .95); color: #23180f; border: 2px solid #23180f; box-shadow: 0 2px 0 #23180f; font-size: 13px; font-weight: 900; z-index: 2; }
.ws-lock .icon { width: 16px; height: 16px; }
.m-world-card .ws-lock b { background: none; padding: 0; font-size: 13px; }
.ul-lock { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: #fff3b0; border: 1.5px solid #23180f; font-size: 12px; font-weight: 800; color: #23180f; white-space: nowrap; }
.ul-lock .icon { width: 12px; height: 12px; }
.is-locked.is-nudged, .st-trim.is-locked.is-nudged, .ws-card-wrap.is-locked.is-nudged .ws-card { animation: lock-nudge .4s ease; }
@keyframes lock-nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px) rotate(-1deg); } 75% { transform: translateX(5px) rotate(1deg); } }
.st-mats { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.st-mat input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.st-mat span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; cursor: pointer; text-align: center; min-height: 44px; }
.st-mat.is-locked span { opacity: .75; cursor: not-allowed; }
.st-mat b { font-size: 14px; }
.st-plank { display: block; width: 100%; max-width: 120px; height: 22px; border-radius: 6px; border: 2px solid #23180f; background: linear-gradient(180deg, var(--pk-top, #e9b87e) 0 45%, var(--pk-front, #c98544) 45% 100%); box-shadow: 0 3px 0 var(--pk-edge, #8a5022); position: relative; overflow: hidden; }
.st-plank::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 9px, var(--pk-grain, rgba(90,45,10,.18)) 9px 10px); opacity: .5; }
.st-plank.mat-auto { background: linear-gradient(90deg, #ff9f68, #ffd166, #5ad0a4, #4dabf7, #b197fc, #f783ac); box-shadow: 0 3px 0 #23180f; } .st-plank.mat-auto::after { display: none; }
.st-plank.mat-wood { --pk-top: #e9b87e; --pk-front: #c98544; --pk-edge: #8a5022; }
.st-plank.mat-cardboard { --pk-top: #e3c79b; --pk-front: #c9a877; --pk-edge: #8a6a40; --pk-grain: rgba(90,60,20,.18); }
.st-plank.mat-bamboo { --pk-top: #e9d98a; --pk-front: #c9b45a; --pk-edge: #8a7a30; --pk-grain: rgba(80,70,20,.2); }
.st-plank.mat-stone { --pk-top: #d9dde0; --pk-front: #a6adb4; --pk-edge: #6b7279; --pk-grain: rgba(40,45,50,.18); }
.st-plank.mat-glass { --pk-top: #eafbff; --pk-front: #b9e8f3; --pk-edge: #6cc5db; --pk-grain: rgba(255,255,255,.5); }
.st-plank.mat-ice { --pk-top: #f4faff; --pk-front: #cfe6fb; --pk-edge: #8fc0ee; --pk-grain: rgba(255,255,255,.6); }
.st-plank.mat-metal { --pk-top: #c9d1d9; --pk-front: #8e98a3; --pk-edge: #4f5760; --pk-grain: rgba(255,255,255,.12); }
.st-plank.mat-gold { --pk-top: #ffe9a3; --pk-front: #e6bc4f; --pk-edge: #a67c1a; --pk-grain: rgba(255,255,255,.4); }
.st-mat input:checked + span .st-plank { outline: 3px solid #23180f; outline-offset: 3px; }
.st-trims { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.st-trim { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 6px; padding: 10px 12px 12px; border-radius: 14px; background: #fffaf0; border: 2px solid #d9cdb4; box-shadow: 0 3px 0 #d9cdb4; min-height: 112px; }
.st-trim.is-on { border-color: #23180f; box-shadow: 0 4px 0 #23180f; background: #fff6d6; }
.st-trim.is-locked { opacity: .82; background: #f3ede2; }
.st-trim-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; }
.st-trim-top b { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; white-space: nowrap; }
.st-trim-top b .icon { width: 18px; height: 18px; color: #7a5a1e; }
.st-trim.is-on .st-trim-top b .icon { color: #a3171b; }
.st-trim small { color: #5a4836; font-weight: 600; line-height: 1.3; }
.st-trim .btn { justify-self: start; }
/* A cartoon rocker switch: the same family as the light switch on the shelf */
.st-switch { position: relative; flex: none; display: inline-block; width: 54px; height: 30px; cursor: pointer; }
.st-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.st-switch .st-track { position: absolute; inset: 0; border-radius: 999px; background: #c9bda5; border: 3px solid #23180f; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .18); transition: background .18s; }
.st-switch .st-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fffaf0; border: 3px solid #23180f; box-shadow: 0 2px 0 #23180f; transition: transform .22s var(--toy-spring, cubic-bezier(.34, 1.56, .64, 1)), background .18s; }
.st-switch input:checked ~ .st-track { background: #35b26d; }
.st-switch input:checked ~ .st-knob { transform: translateX(24px); background: #fff3b0; }
.st-switch input:focus-visible ~ .st-track { outline: 3px solid var(--focus, #29298e); outline-offset: 3px; }
.st-switch input:disabled ~ .st-track, .st-switch input:disabled ~ .st-knob { opacity: .5; }
.st-earned { display: grid; gap: 14px; }
.st-earned-group h3 { margin: 0 0 6px; font-size: var(--step-0); }
.st-earned-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-earned-list li { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 86px; padding: 8px 4px 6px; border-radius: 12px; background: #fffaf0; border: 2px solid #e6dcc8; text-align: center; }
.st-earned-list li.is-locked { opacity: .6; filter: grayscale(.8); }
.st-earned-list .ul-mini { width: 48px; height: 48px; margin: 0; display: grid; place-items: center; overflow: hidden; border-radius: 10px; }
.st-earned-list .ul-mini svg { width: 100%; height: 100%; overflow: visible; }
.st-earned-list .ul-game { width: 48px; height: 48px; border-radius: 12px; border: 3px solid #23180f; background: #ffd166; font-size: 22px; }
.st-earned-list .ul-game .icon { width: 24px; height: 24px; }
.st-earned-name { font-size: 11px; font-weight: 800; line-height: 1.1; } .st-earned-name small { display: block; color: #a3171b; }
.st-paint { margin-top: 10px; } .st-paint-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 4px; }
.st-paint.is-locked .m-swatch-pick span { opacity: .5; cursor: not-allowed; }
.ul-paint { background: var(--c) !important; color: #fff !important; } .ul-trim { background: #ffe08a !important; color: #5a3a0f !important; }


/* ---------- Layout previews: the shelf in miniature ---------- */
.m-add-opt > span > .icon { grid-row: span 3; }
.m-add-opt > span:not(:has(.lp-shelf)) > .icon { grid-row: span 2; }
.lp-shelf { grid-column: 2; display: block; width: 100%; max-width: 180px; height: auto; margin: 4px 0 5px; border-radius: 6px; border: 2px solid #23180f; box-shadow: 0 3px 0 #23180f; background: #cfe6ff; }
.m-add-opt .m-tag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: #e3f1ff; border: 1px solid #7fb6ea; font-size: 11px; font-weight: 800; color: #1d3f72; vertical-align: middle; }

/* ---------- Office: starter shelves and the shelf builder ---------- */
.os-layouts .od-main strong { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.os-tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: #eef1f4; border: 1.5px solid #8d949b; font-size: 12px; font-weight: 800; color: #2f3a44; }
.os-tag.is-default { background: #fff3b0; border-color: #23180f; color: #23180f; }
.os-tag .icon { width: 12px; height: 12px; }
.os-layout.is-default { background: #fff8dc; box-shadow: inset 0 0 0 2px #23180f; }
.os-layouts .lp-shelf { max-width: 220px; margin: 4px 0; }
.os-people { margin: 0 0 8px; }
.os-pins { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.os-pins legend { padding: 0; }
.os-pin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 6px; }
.os-pin-grid .check > span { display: inline-flex; align-items: center; gap: 6px; }
.os-pin-grid .check { margin: 0; }
.os-pin-grid .check .icon { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }
.os-lists .m-list-edit { min-width: 0; }
.os-profile .m-list-title { margin-top: 18px; }
.lb-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 12px; }
.lb-preview .lp-shelf { max-width: 260px; margin: 0; }
.lb { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
@media (max-width: 720px) { .lb { grid-template-columns: 1fr; } }
.lb-on { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-height: 52px; padding: 6px; border-radius: 12px; background: #f3ede2; border: 2px dashed #c9bda5; }
.lb-row { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 10px; background: #fffaf0; border: 2px solid #23180f; box-shadow: 0 2px 0 #23180f; }
.lb-row .m-grip { flex: none; }
.lb-ico { flex: none; width: 26px; height: 26px; display: grid; place-items: center; }
.lb-ico .icon { width: 20px; height: 20px; }
.lb-name { flex: 1 1 auto; min-width: 0; font-weight: 800; font-size: 14px; }
.lb-size { flex: none; }
.lb-size button { min-width: 32px; padding: 2px 6px; font-weight: 900; }
.lb-x { flex: none; }
.lb-adds { max-height: 22rem; overflow: auto; align-content: flex-start; padding: 4px; }
.lb-add .icon { width: 16px; height: 16px; }

/* World cards in My style carry their landscape and creature */
.ws-scene { position: relative; overflow: hidden; }
.ws-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48%; background: var(--land) bottom center / auto 100% repeat-x; pointer-events: none; opacity: .95; }
.ws-scene::before { content: ""; position: absolute; left: 10%; top: 12%; width: 26%; height: 28%; background: var(--critter) center / contain no-repeat; pointer-events: none; animation: cw-bob 3.4s ease-in-out infinite; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .25)); }
.ws-scene > b, .ws-scene > small, .ws-scene > .mw-song, .ws-scene > .ws-check, .ws-scene > .ws-lock { position: relative; z-index: 1; }
:root[data-motion="reduce"] .ws-scene::before { animation: none; }
@media (prefers-reduced-motion: reduce) { .ws-scene::before { animation: none; } }

/* Opened by staff: a badge in the dashboard header */
.m-staff-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #1b4f8a; color: #fff; font-weight: 800; font-size: 13px; border: 2px solid #23180f; box-shadow: 0 3px 0 #23180f; }
.m-staff-badge .icon { width: 14px; height: 14px; }
.tm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tm-list .check { margin: 0; }
/* ---------- A pile of pills: whole ones plus cut halves and quarters, up to 15 in a slot ---------- */
.pill-pile { position: relative; display: inline-block; flex: none; }
.pill-pile > i { position: absolute; display: grid; place-items: center; padding: 1.5%; box-sizing: border-box; }
.pill-pile > i > .pill { width: 100%; height: 100%; max-width: none; transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 1.5px 1px rgba(0,0,0,.28)); }
.pc-box .pc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.pc-step { display: inline-flex; align-items: center; gap: 6px; padding: 4px; border: 2px solid #23180f; border-radius: 999px; background: #fffaf0; }
.pc-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #23180f; background: #ffd34f; color: #23180f; font: 900 24px/1 system-ui, sans-serif; cursor: pointer; display: grid; place-items: center; }
.pc-btn:disabled { opacity: .45; cursor: default; }
.pc-btn:focus-visible { outline: 3px solid #2b2bff; outline-offset: 2px; }
.pc-n { min-width: 8.5em; text-align: center; font-weight: 900; font-size: 1.05rem; color: #23180f; }
.pc-frac button { min-height: 44px; min-width: 52px; font-weight: 800; }
.pc-tray { display: inline-grid; place-items: center; width: 112px; height: 112px; border-radius: 16px; border: 2px solid #23180f; background: radial-gradient(120% 90% at 50% 100%, #fff, #f3ecdc 80%); box-shadow: inset 0 3px 8px rgba(0,0,0,.12); }
.pb-pillbtn .pill-pile { margin: 1px 0; }
.pb-count-tag { font-size: 11px; font-weight: 900; padding: 0 5px; border-radius: 999px; background: #23180f; color: #fffaf0; }
.pb-mwell .pill-pile { margin: auto; }
.mood-w-calm.ws-scene::after { background-size: 100% 100%; background-repeat: no-repeat; opacity: .9; }
/* A closed compartment shows every pill waiting in it, together; opening the lid lists each medicine */
.pb-heap { position: relative; width: 100%; height: 74px; flex: none; }
.pb-cell.is-big .pb-heap { height: 104px; }
.pb-cell:not(.is-open) .pb-pills { display: none; }
.pb-cell.is-open .pb-heap { display: none; }
.pb-cell:not(.is-open) .pb-well { max-height: none; }
.pb-mwell { position: relative; }
.pb-mwell > .pill-pile { position: absolute; inset: 3px; width: auto !important; height: auto !important; }
/* ---------- On/off cards: picture, words and switch are one big target ---------- */
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 10px; margin-bottom: 14px; }
.sw-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 10px; }
.sw-top .hint { margin: 0; flex: 1 1 18rem; }
.sw-clear { flex: none; }
.sw-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; border-radius: 14px; border: 2.5px solid #c9b791; background: #fffdf7; color: #23180f; cursor: pointer; box-shadow: 0 3px 0 rgba(35, 24, 15, .18); transition: border-color .15s, background-color .15s, transform .12s; }
.sw-card:hover { border-color: #23180f; transform: translateY(-1px); }
.sw-card:has(input:focus-visible) { outline: 3px solid var(--focus, #29298e); outline-offset: 3px; }
.sw-card.is-on { border-color: #1d7a3a; background: #eefaf0; }
.sw-card.is-locked { cursor: not-allowed; background: #f3efe6; color: #47372a; }
.sw-card.is-locked:hover { transform: none; border-color: #c9b791; }
.sw-pic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #f3ead8; border: 2px solid rgba(35, 24, 15, .25); color: #23180f; }
.sw-pic .icon { width: 26px; height: 26px; }
/* the real object in miniature (draft 11, A9): just the object, cropped to its own shape (no frame, no cubby), so
   every card's picture is different; home.mjs fitMinis() scales the object to fill this slot */
.sw-pic:has(.mini-cubby) { width: 84px; height: 66px; padding: 0; background: none; border: 0; border-radius: 0; overflow: clip; overflow-clip-margin: 6px; place-items: center; }
.mini-cubby { --plank: 26px; display: block; position: relative; pointer-events: none; overflow: visible; }
.mini-cubby .mini-fit { position: absolute; left: 0; top: 0; display: block; transform-origin: 0 0; }
.mini-cubby .mini-in { position: relative; display: block; container-type: size; animation: none !important; cursor: default; color: var(--ink, #23180f); }
.mini-cubby .mini-in *, .mini-cubby .mini-in *::before, .mini-cubby .mini-in *::after { animation-play-state: paused !important; }
.mini-cubby .w-menu, .mini-cubby .ob-go, .mini-cubby .ob-tag, .mini-cubby .tr-name, .mini-cubby .pt-tag { display: none !important; }
.mini-cubby .ob { filter: none; }
.sw-card:has(.mini-cubby) { grid-template-columns: 84px 1fr auto; }
.mini-shelf-box .mini-shelf-frame { position: relative; display: block; }
.mini-shelf-box .mini-shelf { position: absolute; left: 55px; top: 52px; display: block; overflow: visible; background: none !important; box-shadow: none !important; }
.mini-shelf-box .mini-shelf::before, .mini-shelf-box .mini-shelf::after { display: none !important; }
.mini-shelf-box .mini-shelf .w-grid { display: block; min-height: 0; padding: 0; background: none !important; }
.mini-shelf-box .trim-edit, .mini-shelf-box .lt-switch, .mini-shelf-box .nn-chain { pointer-events: none; }
.mini-shelf-box .trim-stickers { top: 30px; } .mini-shelf-box .trim-clock { top: 60px; } /* a small shelf: the side trims sit higher */
.sw-pic .pg-glyph { width: 40px; height: 40px; }
.sw-card.is-locked .sw-pic { filter: grayscale(.8); opacity: .7; }
.sw-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sw-text strong { font-weight: 800; line-height: 1.2; color: #23180f; }
.sw-text small { color: #47372a; line-height: 1.3; font-weight: 600; }
.sw-text .sw-lock { color: #8a1c1c; display: inline-flex; align-items: center; gap: .3em; }
.sw-text .sw-lock .icon { width: 1em; height: 1em; }
.sw-ctl { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sw-state { font: 800 11px/1 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: #47372a; }
.sw-card.is-on .sw-state { color: #14592b; }
.sw-card .st-switch input:checked ~ .st-track { background: #1d7a3a; }
:root[data-contrast="high"] .sw-card { border-color: currentColor; background: var(--bg, #fff); color: var(--ink, #000); }
:root[data-contrast="high"] .sw-card.is-on { outline: 3px solid currentColor; }
.sw-card.sw-wide { grid-template-columns: 1fr auto; margin: 0 0 8px; }
.check-list:has(.sw-card) { list-style: none; padding: 0; }

/* Station 4: "Make it yours" world picker, right under the sample dashboard */
.dp-world { position: relative; display: block; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; border-radius: 20px; }
.dp-world .m-world-card { transition: transform .18s ease, box-shadow .18s ease; }
.dp-world:hover .m-world-card { transform: translateY(-3px); }
.dp-world[aria-pressed="true"] .m-world-card { transform: translateY(-4px) scale(1.02); border-color: #fff; box-shadow: 0 0 0 3px #23180f, 0 0 40px rgba(255, 224, 138, .6); }
.dp-world[aria-pressed="true"] .ws-check { display: grid; }
.dp-world:focus-visible { outline: 3px solid var(--focus, #29298e); outline-offset: 4px; }
.dp-classic .m-world-card { background: linear-gradient(160deg, #fffdf7, #f1e6d0); color: #23180f; }
.dp-classic .m-world-card b, .dp-classic .m-world-card small { background: rgba(255, 253, 247, .9); color: #23180f; }
.dp-earn-h { display: flex; align-items: center; gap: .4em; margin: var(--space-6, 2rem) 0 var(--space-3, .75rem); }
.dp-earn { list-style: none; margin: 0 0 var(--space-3, .75rem); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: 10px; }
.dp-earn .ws-card { min-height: 7rem !important; cursor: default; }
@media (prefers-reduced-motion: reduce) { .dp-world .m-world-card, .dp-world[aria-pressed="true"] .m-world-card { transform: none; transition: none; } }
.dp-world-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); }
.dp-earn .ws-lock { position: absolute !important; top: 8px; left: 8px; }
.dp-earn .ws-card > b { font-size: var(--step-0); }

/* ---------- The calm toolkit, rebuilt (draft 11, batch F): a small scene for each technique ---------- */
.ck-player .ck-about { margin: 0 0 .6em; font-size: var(--step-0); }
.ck-scene { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 28px; padding: 18px; margin: 0 0 12px; border-radius: 20px; background: radial-gradient(circle at 30% 20%, #ffffff, #e6f3fb 70%); border: 3px solid #23180f; box-shadow: 0 5px 0 #23180f; color: #23180f; text-align: center; }
.ck-big { flex-basis: 100%; margin: 0; font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2; }
.ck-count { flex-basis: 100%; margin: 0; font-weight: 800; color: #47372a; }
/* box breathing */
.ck-box svg { width: min(240px, 70vw); height: auto; }
.ck-box-path { fill: #f4fbff; stroke: #2c56c9; stroke-width: 8; stroke-dasharray: 10 8; }
.ck-box-dot { fill: #ffd34f; stroke: #23180f; stroke-width: 3; transition: cx 1s linear, cy 1s linear; filter: drop-shadow(0 0 8px rgba(255, 211, 79, .9)); }
/* 5-4-3-2-1 */
.ck-senses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); align-items: stretch; }
.ck-sense { padding: 10px; border-radius: 16px; background: color-mix(in srgb, var(--c) 12%, #fffdf7); border: 3px solid var(--c); text-align: left; transition: transform .25s var(--toy-spring, ease); }
.ck-sense.is-done { background: color-mix(in srgb, var(--c) 30%, #fffdf7); transform: rotate(-1deg); }
.ck-sense h3 { margin: 0 0 8px; font-size: var(--step-0); display: flex; gap: .35em; align-items: center; } .ck-sense h3 .icon { color: var(--c); }
.ck-dots { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-dot { width: 44px; height: 44px; border-radius: 50%; border: 3px dashed var(--c); background: #fffdf7; display: grid; place-items: center; cursor: pointer; color: transparent; }
.ck-dot .icon { width: 24px; height: 24px; stroke-width: 3; }
.ck-dot[aria-pressed="true"] { border-style: solid; background: var(--c); color: #fff; transform: scale(1.06); }
.ck-senses .ck-big { grid-column: 1 / -1; }
/* body scan */
.ck-body-svg { width: 130px; height: auto; }
.ck-body-svg [data-part] { fill: #e8e2d6; stroke: #23180f; stroke-width: 3; transition: fill .6s ease; }
.ck-body-svg .is-lit { fill: #ffe38a; } .ck-body-svg .is-now { fill: #ffb02e; animation: ck-glow 2.4s ease-in-out infinite; }
@keyframes ck-glow { 50% { fill: #ffd34f; } }
.ck-body > div { flex: 1 1 14rem; display: flex; flex-direction: column; gap: 10px; align-items: center; }
/* squeeze */
.ck-squeeze { flex-direction: column; }
.ck-meter { width: min(100%, 360px); height: 28px; border-radius: 999px; border: 3px solid #23180f; background: #fffdf7; overflow: hidden; }
.ck-meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffd34f, #ff7a12); transition: width .1s linear; }
.ck-hold { touch-action: none; user-select: none; -webkit-user-select: none; }
.ck-hold.is-on { transform: scale(.94); background: #c2410c; }
/* calm jar */
.ck-jar-glass { position: relative; flex: none; width: 150px !important; max-width: 150px; height: 200px; border: 4px solid #23180f; border-radius: 22px 22px 34px 34px; background: linear-gradient(90deg, rgba(255, 255, 255, .7), rgba(173, 216, 255, .55) 40%, rgba(255, 255, 255, .7)); overflow: hidden; }
.ck-jar-lid { position: absolute; top: -4px; left: 18px; right: 18px; height: 18px; background: #c97a1c; border: 4px solid #23180f; border-radius: 6px; }
.ck-jar-glass i { position: absolute; left: var(--x); bottom: 4px; width: 7px; height: 7px; border-radius: 2px; background: var(--c); transform: rotate(var(--r)); box-shadow: 0 0 3px rgba(0, 0, 0, .25); }
.ck-jar-glass.is-shaken { animation: ck-shake .2s linear 6; }
.ck-jar-glass.is-shaken i { bottom: 60%; transition: bottom .4s ease-out; }
.ck-jar-glass.is-settling i { animation: ck-settle var(--d) cubic-bezier(.2, .6, .3, 1) both; }
@keyframes ck-shake { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes ck-settle { 0% { bottom: 80%; transform: translateX(-12px) rotate(var(--r)); } 40% { transform: translateX(14px) rotate(calc(var(--r) + 120deg)); } 100% { bottom: 4px; transform: translateX(0) rotate(calc(var(--r) + 240deg)); } }
.ck-jar > div { flex: 1 1 14rem; display: flex; flex-direction: column; gap: 10px; align-items: center; }
/* colour breathing */
.ck-colour { flex-direction: column; }
.ck-swatches { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ck-swatch { width: 48px; height: 48px; border-radius: 50%; background: var(--c); border: 3px solid #23180f; cursor: pointer; }
.ck-swatch[aria-pressed="true"] { box-shadow: 0 0 0 4px #fffdf7, 0 0 0 7px #23180f; }
.ck-colour-fill { position: relative; width: min(100%, 380px); aspect-ratio: 16 / 9; border-radius: 24px; border: 3px solid #23180f; background: #fffdf7; overflow: hidden; display: grid; place-items: center; padding: 12px; }
.ck-colour-fill::before { content: ""; position: absolute; inset: 0; background: var(--c); transform: scaleY(.05); transform-origin: bottom; transition: transform 4s ease-in-out; }
.ck-colour-fill.is-in::before { transform: scaleY(1); transition-duration: 4s; }
.ck-colour-fill.is-out::before { transform: scaleY(.05); transition-duration: 6s; }
.ck-colour-fill .ck-big { position: relative; font-size: var(--step-1); }
/* flower and candle */
.ck-flower { flex-direction: column; }
.ck-flower svg { width: min(100%, 340px); height: auto; overflow: visible; }
.ck-fl { transition: transform 3s ease-in-out; transform-box: fill-box; }
.ck-flower.is-smell .ck-fl { transform: translate(60px, 70px) scale(1.18); }
.ck-flame { transform-origin: 0 -10px; animation: ck-flicker 1.2s ease-in-out infinite; transition: opacity 1.5s ease, transform 1.5s ease; }
.ck-flame.is-out { opacity: 0; transform: scale(.3) translateX(18px); animation: none; }
@keyframes ck-flicker { 50% { transform: scale(1.06, .94) rotate(3deg); } }
/* grounding walk */
.ck-walk { flex-direction: column; }
.ck-stones { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ck-stone { margin: 0; min-width: 90px; min-height: 56px; display: grid; place-items: center; padding: 6px 10px; border-radius: 50% 50% 44% 44% / 60% 60% 40% 40%; border: 3px dashed #a08f70; background: rgba(255, 255, 255, .5); font-weight: 800; font-size: 13px; }
.ck-stone.is-down { border-style: solid; border-color: #5a4a36; background: radial-gradient(circle at 35% 30%, #f3ebd9, #c2b08f 75%); box-shadow: 0 4px 0 #5a4a36; animation: ck-drop .4s var(--toy-spring, ease); }
@keyframes ck-drop { from { transform: translateY(-20px); opacity: 0; } }
.ck-walk .m-add-row { width: min(100%, 460px); }
/* worry box */
.ck-worry { flex-direction: column; }
.ck-note { width: min(100%, 360px); padding: 10px; background: #fff7b0; border: 2px solid #23180f; border-radius: 4px; box-shadow: 0 4px 0 #23180f; transform: rotate(-1.5deg); transition: transform 1.2s ease, opacity 1.2s ease; }
.ck-note textarea { width: 100%; border: 0; background: transparent; font: inherit; font-size: var(--step-0); resize: vertical; }
.ck-note.is-folding { transform: translateY(80px) scale(.15) rotate(40deg); opacity: 0; }
.ck-box3d { position: relative; width: 120px; height: 80px; }
.ck-box3d-body { position: absolute; inset: 18px 0 0; background: #c97a1c; border: 3px solid #23180f; border-radius: 6px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 22px; }
.ck-box3d-lid { position: absolute; left: -6px; right: -6px; top: 6px; height: 18px; background: #e09a3b; border: 3px solid #23180f; border-radius: 6px; }
.ck-worry-list { width: min(100%, 460px); text-align: left; }
.ck-worry-list ul { margin: .4em 0 0; padding-left: 1.2em; }
/* sound shelter */
.ck-sound { flex-direction: column; }
.ck-sound-picks { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ck-sound-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 120px; padding: 12px 8px; border-radius: 16px; border: 3px solid #23180f; background: #fffdf7; font: inherit; font-weight: 800; cursor: pointer; }
.ck-sound-pick .icon { width: 30px; height: 30px; color: #2c56c9; }
.ck-sound-pick[aria-pressed="true"] { background: #dff0ff; box-shadow: 0 4px 0 #23180f; }
/* slow stretch */
.ck-pose svg { width: 140px; height: auto; }
.ck-stretch > div { flex: 1 1 14rem; display: flex; flex-direction: column; gap: 8px; align-items: center; }
/* my safe place */
.ck-window { position: relative; width: min(100%, 280px); aspect-ratio: 4 / 3; border-radius: 18px; border: 4px solid #23180f; overflow: hidden; background: linear-gradient(var(--sc-sky, #bfe3ff), var(--sc-sky2, #fff3d6)); }
.sc-mini-orb { position: absolute; right: 18%; top: 14%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--sc-orb, #ffd34f); box-shadow: 0 0 30px var(--sc-orb, #ffd34f); animation: ck-glow2 6s ease-in-out infinite; }
.sc-mini-hill { position: absolute; left: -10%; right: 30%; bottom: -30%; height: 70%; border-radius: 50%; background: var(--sc-far, #8cc56b); }
.sc-mini-hill.is-near { left: 30%; right: -10%; bottom: -40%; background: var(--sc-near, #5ea54a); }
@keyframes ck-glow2 { 50% { transform: translateY(6px); } }
.ck-place-words { flex: 1 1 18rem; text-align: left; }
/* name it */
.ck-name { flex-direction: column; }
.ck-feels { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ck-feels [aria-pressed="true"] { background: #2c56c9; color: #fff; }
/* tiles, the goal line, the steps */
.ck-tile { position: relative; }
.ck-tile.is-done { box-shadow: inset 0 0 0 3px #1d7a3a; }
.ck-done-tag { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #1d7a3a; color: #fff; }
.ck-done-tag .icon { width: 15px; height: 15px; stroke-width: 3; }
.ck-goal { display: flex; flex-wrap: wrap; gap: .4em 1em; align-items: center; padding: .7em 1em; }
.ck-goal .field { margin: 0; flex: 1 1 16rem; } .ck-goal p { margin: 0; flex-basis: 100%; }
.ck-steps { margin: 0 0 10px; } .ck-steps summary { cursor: pointer; font-weight: 800; display: inline-flex; gap: .35em; align-items: center; }
/* calm versions: everything still works, nothing has to move */
@media (prefers-reduced-motion: reduce) {
  .ck-box-dot, .ck-meter span, .ck-colour-fill::before, .ck-fl, .ck-note, .ck-sense { transition: none !important; }
  .ck-body-svg .is-now, .ck-flame, .ck-jar-glass.is-shaken, .ck-jar-glass.is-settling i, .sc-mini-orb, .ck-stone.is-down { animation: none !important; }
  .ck-jar-glass.is-settling i { bottom: 4px; }
}
:root[data-motion="reduce"] :is(.ck-body-svg .is-now, .ck-flame, .ck-jar-glass.is-shaken, .ck-jar-glass.is-settling i, .sc-mini-orb, .ck-stone.is-down) { animation: none !important; }
:root[data-motion="reduce"] :is(.ck-box-dot, .ck-colour-fill::before, .ck-fl, .ck-note) { transition: none !important; }
