.care-launch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 11px}
.care-launch button,.care-big{border:0;border-radius:17px;min-height:63px;padding:8px;font-weight:750;color:#39234f;background:#f0e0ff;box-shadow:inset 0 -3px #d8bdeb}
.care-launch button:nth-child(2){background:#ffe0ef;box-shadow:inset 0 -3px #efbdda}
.care-launch button:nth-child(3){background:#e0f5e8;box-shadow:inset 0 -3px #c2e6d0}
.care-launch button:nth-child(4){background:#ffefcb;box-shadow:inset 0 -3px #f0d398}
.care-launch span:first-child,.care-big span:first-child{font-size:28px;display:block;line-height:1.1}
.activity{min-height:66px;background:#fff}
.activity[aria-pressed=true]{background:#eddbff;border-color:#865ac1}
.activity span:first-child,.tool-icon{font-size:29px}
.tools button{min-height:55px;font-size:15px}
.tool-done{font-size:21px}
.swatch{min-width:44px;min-height:44px}
.primary,.soft{min-height:48px}
#apply:not(:disabled){font-size:17px;background:#643ab2;box-shadow:inset 0 -3px #4e298e}
.studio-bar{gap:6px;margin-bottom:9px}
.studio-bar .soft{font-size:13px;min-height:43px}
.family-characters,.family-album{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.family-card{display:grid;place-items:center;gap:4px;padding:7px 4px;border-radius:15px;border:2px solid #e3d3ee;background:#faf1ff;font-weight:750;min-width:0}
.family-card[aria-pressed=true]{background:#eaddff;border-color:#8657c5}
.family-card canvas,.family-album canvas{display:block;width:100%;max-width:134px;height:auto;border-radius:11px;background:#f5e7fe}
.family-card canvas{max-height:155px;object-fit:contain}
.family-album article{display:grid;align-content:start;gap:6px;justify-items:stretch;min-width:0}
.family-album small{font-size:11px;color:#665477}
.family-album .soft{font-size:13px;padding:5px}
.family-dialog{width:min(580px,calc(100% - 20px));padding:17px}
.family-runway{position:relative;isolation:isolate;overflow:hidden;border-radius:17px;background:radial-gradient(ellipse at 42% -10%,#ffd8ab,#7746b7 45%,#3e1c72);display:grid;justify-items:center;margin-top:8px}
.family-runway canvas{height:min(45vh,340px);width:auto;max-width:100%;object-fit:contain;display:block}
.family-runway[data-show] canvas{animation:family-walk 1.8s cubic-bezier(.21,.67,.28,1) both}
@keyframes family-walk{0%{transform:translateX(-105px) scale(.83);opacity:.2}25%{transform:translate(-62px,-8px) scale(.88)}49%{transform:translate(-31px,0) scale(.94)}75%{transform:translate(0,-13px) scale(1)}100%{transform:none;opacity:1}}
.family-sparks{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.family-sparks span{position:absolute;left:var(--sx);top:var(--sy);color:#fff2ad;text-shadow:0 0 10px #ffe795;font-size:25px;animation:family-burst 1.55s var(--delay) both}
@keyframes family-burst{0%{opacity:0;transform:scale(.1) translateY(23px)}32%{opacity:1;transform:scale(1.3)}100%{opacity:0;transform:scale(.4) translateY(-48px)}}
.family-judges{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;text-align:center;margin:9px 0}
.family-judge{background:#f4e8ff;border-radius:14px;padding:5px;font-size:30px}
.family-judge b{display:block;color:#733682;font-size:16px;background:#fff7e3;border-radius:9px}
.family-praise{text-align:center;color:#65338b;font-weight:800;margin:7px 0}
.family-actions{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;margin:8px 0}
.family-actions button{flex:1 1 auto}
.family-feedback{min-height:24px;color:#53366d;text-align:center}
@media(max-width:550px){.care-launch{gap:5px}.care-launch button{font-size:11px;min-height:57px;padding:5px 2px;line-height:1.12}.activity{min-height:61px}.activity span:first-child{font-size:25px}.family-dialog{padding:12px}.tool-icon{font-size:25px}.studio-bar .soft{padding:5px 8px}.tools button{font-size:13px}}
@media(prefers-reduced-motion:reduce){.family-runway canvas,.family-sparks span{animation:none!important}.family-sparks span{display:none}}
.family-characters{grid-template-columns:repeat(4,minmax(0,1fr))}
.family-characters .family-card{font-size:13px}
.family-discovery{margin:0 0 4px}
.family-name{position:absolute;left:12px;top:13px;padding:5px 10px;background:#fff5;border-radius:999px;font-weight:750;pointer-events:none;color:#2a1941}
.family-guide{position:absolute;z-index:5;font-size:39px;left:57%;top:23%;pointer-events:none;filter:drop-shadow(0 2px 5px #733c824f);animation:family-guide 1.15s ease-in-out infinite}
.family-guide[data-zone=hair]{left:53%;top:11%}
.family-guide[data-zone=hand]{left:70%;top:50%}
@keyframes family-guide{0%,100%{transform:translate(-18px,1px) rotate(-16deg);opacity:.83}50%{transform:translate(11px,-10px) rotate(8deg);opacity:1}}
.scene[data-scene=castle]{background-image:radial-gradient(ellipse at 50% 20%,#fff3cb8f,transparent 65%),linear-gradient(#c5b0fb,#ffe5f0)}
.scene[data-scene=ocean]{background-image:radial-gradient(circle at 62% 29%,#d4fffb90 0 3%,transparent 4%),radial-gradient(circle at 21% 71%,#dbfff180 0 5%,transparent 6%),linear-gradient(#4078ce,#a3f0d7)}
.scene[data-scene=runway]{background-image:radial-gradient(ellipse at 50% 6%,#ffe3b9ab,transparent 62%),linear-gradient(#563594,#d681b4)}
.scene[data-scene=castle]::after,.scene[data-scene=ocean]::after,.scene[data-scene=runway]::after{position:absolute;z-index:-1;inset:auto auto 9% 8%;font-size:74px;opacity:.54}
.scene[data-scene=castle]::after{content:"🏰"}
.scene[data-scene=ocean]::after{content:"🐚"}
.scene[data-scene=runway]::after{content:"✦";color:#ffe1a1}
.panel>.tabs{grid-template-columns:repeat(3,minmax(0,1fr));margin:0}
.panel>.tabs .activity{display:grid;justify-items:center;align-content:center;gap:2px;min-height:62px;font-size:12px;line-height:1.1}
.panel .care-launch{margin:0}
.family-hair-spa{display:flex;gap:5px;flex-wrap:wrap}
.family-hair-spa .soft{padding:4px 8px;font-size:12px}
@media(max-width:760px){.layout>.panel{grid-row:1}.panel{gap:8px}.panel .mission{display:none}.panel .msg{min-height:40px}}
@media(max-width:450px){.family-characters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.family-guide{animation:none}}
.family-guide{top:31%}
.family-guide[data-zone=hair]{top:16%}
.family-guide[data-zone=hand]{top:57%}
@media(max-width:760px){
  .layout>.panel{display:contents}
  .layout>.care-launch,.layout>.panel>.care-launch{grid-row:1}
  .layout>.panel>.tabs{grid-row:2}
  .layout>.stage{grid-row:3}
  .layout>.panel>.panel-heading{margin-top:5px}
  .layout>.panel>.tools button{background:#fff}
  .layout>.panel>.family-discovery button{background:#fff}
}
.family-feature{min-height:53px!important;font-weight:800;background:#f7e7ff}
.family-feature span:first-child{font-size:23px}
.family-scenes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}
.pet-choice-img{display:block;width:100%;height:90px;object-fit:contain;border-radius:10px}
.family-scenes .pet-choice-img{width:100%;height:73px;object-fit:cover}
.pet-touch{position:absolute;z-index:4;left:calc(50% + clamp(35px,7.8vw,70px));bottom:9%;width:78px;height:88px;border:0;background:transparent;color:transparent;border-radius:18px;touch-action:none}
.pet-touch:focus-visible{outline-color:#fff}
.pet-heart{position:absolute;left:34%;top:18%;pointer-events:none;font-size:34px;color:#ff7eaa;text-shadow:0 1px 5px #fff;animation:pet-float .9s ease-out both}
@keyframes pet-float{from{transform:translateY(12px) scale(.45);opacity:1}to{transform:translateY(-62px) scale(1.33);opacity:0}}
@media(max-width:550px){.family-scenes{grid-template-columns:repeat(2,minmax(0,1fr))}.pet-touch{left:calc(50% + 44px);bottom:8%;width:59px;height:64px}}
@media(prefers-reduced-motion:reduce){.pet-heart{animation:none}}


#family-cast{display:flex;gap:6px}
#family-cast button[aria-pressed=true],#choose-cast button[aria-pressed=true]{outline:3px solid #b15cff;background:#fff4ff}
#choose-person[open]{position:fixed;inset:auto;margin:0;width:min(340px,calc(100vw - 16px));max-height:min(60dvh,380px);z-index:30;padding:12px;box-shadow:0 10px 30px #401a6440}
#choose-person .family-characters{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
#choose-person .family-card{padding:4px;min-width:0;font-size:.75rem}
