/* EmotiMate 5.0 wave 1 — age modes, needs meters, calm plan, talk board, body map. Calm motion only; reduce-motion = still. */

/* ---- age picker (onboarding, settings, caregiver area) ---- */
.person.p0 i { width: 16px; height: 16px; } .person.p0 b { width: 22px; height: 16px; background: var(--peach-2); }
.choice-age { min-height: 76px; }
.choice-age .ca-t { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: start; }
.choice-age .ca-t small { font-size: 15px; font-weight: 400; color: var(--muted); }
.age-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 6px; }
.age-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px 12px; border-radius: 20px; background: var(--lilac); color: var(--ink); min-height: 112px; border: 2px solid transparent; transition: background .2s ease, border-color .2s ease; }
.age-btn b { font-size: 17px; font-weight: 600; }
.age-btn small { font-size: 13.5px; color: var(--muted); line-height: 1.25; text-align: center; }
.age-btn.sel { background: #ffffff; border-color: var(--lilac-d); box-shadow: 0 6px 16px -8px rgba(64, 62, 120, .4); }
.w5-card h3 { font-size: 17px; margin: 14px 0 2px; }

/* ---- read-aloud buttons ---- */
.spk-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow); vertical-align: middle; flex: none; }
.spk-btn svg { width: 26px; height: 26px; }
h1 .spk-btn, h2 .spk-btn { -webkit-text-fill-color: initial; margin-inline-start: 4px; }
.room .say-spk { position: absolute; z-index: 4; top: 22px; left: 74px; width: 44px; height: 44px; }

/* ---- needs meters on the care buttons: five soft dots, never red, never empty ---- */
.act .nm { display: flex; gap: 3px; margin-top: 1px; }
.act .nm i { width: 7px; height: 7px; border-radius: 50%; background: rgba(46, 43, 63, .12); transition: background .4s ease; }
.act .nm i.on { background: #8fcfae; }
.act.wants .nm i.on { background: #f3c27a; }
.act.wants { box-shadow: 0 0 0 2px rgba(243, 194, 122, .55), var(--shadow); }

/* ---- calm + talk buttons in the room ---- */
.room .w5-corner { position: absolute; z-index: 4; bottom: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 70px; height: 70px; border-radius: 24px;
  background: rgba(255, 255, 255, .92); box-shadow: 0 10px 22px -12px rgba(64, 62, 120, .55), 0 0 0 1px rgba(255, 255, 255, .9) inset; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.room .w5-corner svg { width: 34px; height: 34px; }
.room .w5-calm { inset-inline-start: 12px; background: #e4f4ec; }
.room .w5-talk { inset-inline-end: 12px; background: #e6f1fb; }
.sleeping .room .w5-corner { display: none; }

/* ---- calm plan sheet ---- */
.dialog.w5-plan { top: 12%; padding: 18px 18px 16px; }
.w5-plan .w5-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 44px; height: 44px; }
.w5-plan .w5-x svg { width: 22px; height: 22px; }
.w5-plan .w5-plan-char { display: flex; justify-content: center; }
.w5-plan .w5-plan-char .charwrap { width: 96px; }
.w5-plan h2 { margin: 4px 0 2px; font-size: 22px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.w5-plan .sub { margin: 0 0 12px; font-size: 16px; color: var(--muted); }
.plan-steps { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-step { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 8px 14px; border-radius: 20px; background: var(--mint); font-size: 19px; font-weight: 500; text-align: start; }
.plan-step .ps-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #ffffff; font-weight: 700; color: var(--mint-d); flex: none; }
.plan-step .ps-i svg { width: 40px; height: 40px; display: block; }
.w5-plan .btn-ghost { display: inline-flex; align-items: center; gap: 6px; }
.w5-plan .btn-ghost svg { width: 22px; height: 22px; }

/* ---- talk board ---- */
.talk { display: flex; flex-direction: column; gap: 10px; }
.talk h1 { text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; }
.talk .sub { text-align: center; margin: -4px 0 0; color: var(--muted); }
.talk-said { min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 22px; background: #ffffff; box-shadow: var(--shadow); font-size: 22px; padding: 6px 14px; }
.talk-said:empty { background: transparent; box-shadow: none; }
.talk-said .ts-i svg { width: 44px; height: 44px; display: block; }
.talk-said.pop { animation: w5pop .5s ease; }
@keyframes w5pop { from { transform: scale(.94); opacity: .4; } to { transform: none; opacity: 1; } }
.talk-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.talk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.talk-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 104px; border-radius: 22px; background: #ffffff; box-shadow: var(--shadow); font-size: 17px; font-weight: 500; border: 3px solid transparent; transition: transform .15s ease; }
.talk-btn svg { width: 52px; height: 52px; }
.talk-btn.yn { flex-direction: row; min-height: 70px; font-size: 22px; gap: 10px; }
.talk-btn.yn svg { width: 40px; height: 40px; }
.talk-btn.yes { background: #e4f4ec; } .talk-btn.no { background: #fdeee4; }
.talk-btn.sel { border-color: var(--lilac-d); }
.talk-btn:active { transform: scale(.97); }

/* ---- body map ---- */
.feel-body h1 { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.feel-body .sub { text-align: center; }
.body-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 12px; }
.body-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 10px; border-radius: 20px; background: #ffffff; box-shadow: var(--shadow); font-size: 16px; font-weight: 500; }
.body-btn svg { width: 46px; height: 62px; }

/* ---- feelings: fewer, bigger faces for 3–6 ---- */
.faces.faces-few .face-btn { min-height: 168px; font-size: 22px; justify-content: center; }
.faces.faces-few .face-btn svg { width: 96px; height: 96px; }

/* ---- Little mode (3–6): pictures first, big targets, nav as icons (names are read aloud) ---- */
.age-little .nav-btn .nl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.age-little .nav-btn .ni svg { width: 38px; height: 38px; opacity: .85; }
.age-little .nav-btn { min-height: 64px; justify-content: center; }
.age-little .act { min-height: 104px; }
.age-little .act .ai { width: 60px; height: 60px; }
.age-little .act .ai svg { width: 52px; height: 52px; }
.age-little .act .al { font-size: 14px; }
.age-little .act .nm i { width: 9px; height: 9px; }
.age-little .quick .pill { min-height: 58px; }
.age-little .quick .pill svg { width: 32px; height: 32px; }
.age-little .room .w5-corner { width: 80px; height: 80px; }
.age-little .room .w5-corner svg { width: 42px; height: 42px; }
.age-little .opt { min-height: 96px; }
.age-little .talk-btn { min-height: 112px; }

/* ---- grown-up calm look for teens and adults: quieter colours, no floating petals, less sparkle ---- */
.age-teen .amb42, .age-adult .amb42, .age-teen #bg-life .petal, .age-adult #bg-life .petal { display: none !important; }
.age-adult #bg-life .cloud { opacity: .45; }
.age-teen h1, .age-adult h1 { background: none !important; -webkit-text-fill-color: var(--ink); color: var(--ink); }
.age-adult .bg42, .age-teen .bg42 { filter: saturate(.55); opacity: .7; }
.age-adult .room, .age-teen .room { filter: saturate(.82); }
.age-adult .face-btn, .age-teen .face-btn { background: #ffffff !important; }
.age-adult .act, .age-teen .act { min-height: 84px; }
.age-adult .stage .charwrap { transform: scale(.92); transform-origin: 50% 100%; }


/* grown-up look, stronger: a quiet sage/sand page instead of pastel blobs (teens keep a little colour) */
html.age-adult body { background: linear-gradient(180deg, #f2f1ec 0%, #eef2ee 100%) !important; }
html.age-teen body { background: radial-gradient(70% 40% at 100% 0%, rgba(196, 220, 255, .55) 0, rgba(196, 220, 255, 0) 70%), linear-gradient(180deg, #f1f3f8 0%, #f4f2ef 100%) !important; }
html.age-adult .bg42, html.age-adult #bg-life { display: none !important; }
html.age-teen .bg42 i { opacity: .35; }
.age-adult .pill, .age-teen .pill { background: #ffffff !important; box-shadow: var(--shadow) !important; }
.age-adult .act, .age-teen .act { background: #ffffff !important; }
.age-adult .nav, .age-teen .nav { background: rgba(255, 255, 255, .92) !important; }
.age-adult .grow-chip, .age-teen .grow-chip { background: #ffffff !important; }

/* ---- pairs: 2 pairs for 3–6 in a 2×2 grid, cards not taller than the screen ---- */
.pairs-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 320px; margin: 0 auto; }

/* ---- reduce motion ---- */
.rm .talk-said.pop { animation: none; }
.rm .act .nm i { transition: none; }
