/* Selected ages and slices carry their colors into the preview. */
[data-slice="feelings"]{--slice-accent:#087b82;--slice-fill:#e8f4f1;--slice-ink:#075e65}[data-slice="relationships"]{--slice-accent:#cf6658;--slice-fill:#fff0eb;--slice-ink:#8d382f}[data-slice="confidence"]{--slice-accent:#7b4d95;--slice-fill:#f2eaf8;--slice-ink:#623a7a}[data-slice="teamwork"]{--slice-accent:#b58a32;--slice-fill:#fff5db;--slice-ink:#735414}[data-slice="custom"]{--slice-accent:#2d6f92;--slice-fill:#edf4fa;--slice-ink:#235b79}
[data-selected-age="5-9"]{--age-accent:#087b82;--age-fill:#e8f4f1;--age-ink:#075e65}[data-selected-age="10+"]{--age-accent:#cf6658;--age-fill:#fff0eb;--age-ink:#8d382f}
.ageButton[data-age="5-9"]{--age-accent:#087b82;--age-fill:#e8f4f1;--age-ink:#075e65}.ageButton[data-age="10+"]{--age-accent:#cf6658;--age-fill:#fff0eb;--age-ink:#8d382f}.ageButton[aria-pressed="true"]{background:var(--age-fill);color:#102f45;border-color:var(--age-accent);box-shadow:inset 0 0 0 1px var(--age-accent)}.ageButton .ageSelectedFlag{font-size:13px;font-weight:700;color:var(--age-ink);visibility:hidden}.ageButton[aria-pressed="true"] .ageSelectedFlag{visibility:visible}
.sliceOption[data-slice]{border-left:5px solid var(--slice-accent)}.sliceOption[data-slice] input{accent-color:var(--slice-accent)}.sliceOption[data-slice]:has(input:checked){border-color:var(--slice-accent);background:var(--slice-fill);box-shadow:inset 0 0 0 1px var(--slice-accent)}.sliceSelectedFlag{display:block;visibility:hidden;font-size:13px;font-weight:700;margin-top:10px;line-height:1.5;color:var(--slice-ink)}input:checked+span .sliceSelectedFlag{visibility:visible}
.familySelectionSummary{padding:22px;margin:22px 0;background:var(--age-fill);border:2px solid var(--age-accent);border-radius:14px}.familySelectionSummary .eyebrow{color:var(--age-ink)}.familySelectionSummary h3{margin:10px 0 14px;font-size:24px}.familySelectedSlices{display:flex;flex-wrap:wrap;gap:10px}.familySelectionChip{display:inline-block;border:1px solid var(--slice-accent);background:var(--slice-fill);color:var(--slice-ink);border-radius:22px;padding:7px 12px;font-size:15px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}.familySelectionSummary p{font-size:16px;margin:14px 0 0;line-height:1.6}.sliceSetup #startDeck{border-color:var(--age-accent);background:var(--age-fill);color:#102f45}.sliceSetup .customFields{border-color:var(--age-accent);background:var(--age-fill)}.sliceSetup .customFields select,.sliceSetup .customFields input,.sliceSetup .templateMatch{border-color:var(--age-accent)}.sliceSetup .templateMatch{background:#fffdf8}.demoCard[data-slice] .cardCategory{background:var(--slice-ink);color:#fffdf8}.demoCard[data-slice] .promptBlock strong{color:var(--slice-ink)}.deckSection[data-selected-age] .deckHeading{padding:20px;border-left:5px solid var(--age-accent);background:var(--age-fill);border-radius:10px}.sliceOption:has(input:focus-visible){outline:3px solid var(--slice-accent);outline-offset:4px}
@media(max-width:600px){.familySelectionSummary{padding:18px}.familySelectionSummary h3{font-size:21px}.familySelectionChip{font-size:14px}.deckSection[data-selected-age] .deckHeading{padding:16px}}

/* Age is a clear, explicit first step. */
[data-selected-age="none"]{--age-accent:#b58a32;--age-fill:#fff5db;--age-ink:#735414}.togetherPage #familyAgeChooser{border:2px solid var(--age-accent);border-radius:16px;padding:22px;background:var(--age-fill);gap:16px}.togetherPage #familyAgeChooser legend{display:block;max-width:100%;padding:0 10px;font-size:26px;line-height:1.4;color:#102f45;transform-origin:left center}.familyRequiredStep{display:block;font:700 12px/1.5 TogetherSans,Arial,sans-serif;letter-spacing:.09em;color:var(--age-ink);margin-bottom:6px}.familyAgeHelp{grid-column:1/-1;font-size:17px;line-height:1.6;margin:0 0 4px}.sliceSetup[data-selected-age="none"][data-age-prompt="visible"] #familyAgeChooser legend{animation:familyAgePrompt 1.6s ease-in-out 3}.sliceSetup[data-selected-age="none"] .ageButton{box-shadow:0 3px 12px #102f4510}.sliceSetup #startDeck:disabled{opacity:.65}.sliceSetup #startDeck:disabled::after{content:' · Choose an age first';font-size:13px}
@keyframes familyAgePrompt{0%,100%{transform:scale(1);text-shadow:none}50%{transform:scale(1.025);text-shadow:0 2px 12px #d7b66b66}}
@media(max-width:600px){.togetherPage #familyAgeChooser{padding:18px 14px;gap:12px}.togetherPage #familyAgeChooser legend{font-size:22px}.familyAgeHelp{font-size:16px}}
@media(prefers-reduced-motion:reduce){.sliceSetup[data-selected-age="none"][data-age-prompt="visible"] #familyAgeChooser legend{animation:none;transform:none;text-decoration:underline;text-decoration-color:#c5a160;text-underline-offset:6px}}
