/* "Meet the characters" page: galaxy of cards, mini-games and PuffiNova town. Uses the colours and fonts of style.css. */
.chars-page { background: var(--space); }
.top__back { color: #fff; text-decoration: none; font: 500 16px var(--display); padding: 8px 14px; border-radius: 999px; margin-left: auto; transition: background .2s; }
.top__back:hover { background: rgba(255,255,255,.12); color: var(--gold); }

/* ---------- top of the page + tabs ---------- */
.ch-hero { position: relative; padding: 120px 0 0; background: radial-gradient(ellipse 70% 60% at 80% 0%, rgba(107,63,176,.55), transparent 70%), radial-gradient(ellipse 60% 50% at 0% 100%, rgba(242,92,158,.25), transparent 70%), var(--space); color: #fff; text-align: center; overflow: hidden; }
.ch-hero .wrap { position: relative; z-index: 1; }
.ch-hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 600; }
.ch-hero h1 strong { color: var(--gold); font-weight: 600; }
.ch-hero .lead { color: #DCD2F5; margin: 0 auto 34px; }
.ch-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-bottom: 0; }
.ch-tabs button { font: 600 16px var(--display); color: #fff; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.18); border-bottom: 0; border-radius: 18px 18px 0 0; padding: 12px 18px 14px; cursor: pointer; transition: background .2s, color .2s; }
.ch-tabs button:hover { background: rgba(255,255,255,.16); }
.ch-tabs button[aria-selected="true"] { background: var(--space-2); color: var(--gold); border-color: rgba(255,211,107,.5); }

.ch-body { position: relative; background: linear-gradient(180deg, var(--space-2), #1E1048 60%, var(--space-2)); color: #fff; padding: 40px 0 70px; min-height: 70vh; }
.ch-panel[hidden] { display: none; }
.ch-intro { text-align: center; color: #DCD2F5; max-width: 720px; margin: 0 auto 26px; }
.ch-body .note { color: #A99CC8; margin-top: 50px; }
.ch-empty { text-align: center; color: #DCD2F5; font-style: italic; }

/* ---------- galaxy: deck planets ---------- */
.planets { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 10px; margin-bottom: 22px; }
.planet-btn { --dc: var(--pink); display: grid; justify-items: center; gap: 2px; width: 128px; padding: 8px 4px 10px; background: none; border: 0; color: #fff; cursor: pointer; border-radius: 20px; transition: background .2s, transform .25s; }
.planet-btn:hover { transform: translateY(-3px); }
.planet-btn__orb { width: 78px; height: 78px; border-radius: 50%; overflow: hidden; display: block; box-shadow: 0 0 0 3px rgba(255,255,255,.15), 0 0 26px -4px var(--dc); margin-bottom: 6px; transition: box-shadow .25s; }
.planet-btn__orb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.planet-btn__orb--all { background: radial-gradient(circle at 30% 30%, #fff 0 4%, transparent 5%), conic-gradient(#3E8E5A, #2F5FB0, #D9732B, #7B4BC4, #C23A63, #3E8E5A); }
.planet-btn b { font: 600 16px var(--display); }
.planet-btn small { font-size: 12px; color: #C9BDEB; line-height: 1.25; text-align: center; }
.planet-btn.is-on { background: rgba(255,255,255,.08); }
.planet-btn.is-on .planet-btn__orb { box-shadow: 0 0 0 3px var(--gold), 0 0 30px 0 var(--dc); }

.ch-search { display: block; max-width: 420px; margin: 0 auto 28px; }
.ch-search input { width: 100%; font: 400 17px var(--body); padding: 13px 20px; border-radius: 999px; border: 2px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; }
.ch-search input::placeholder { color: #B9ACDB; }
.ch-search input:focus { outline: none; border-color: var(--gold); }

/* card tiles */
.cgrid, .town { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.cgrid li[hidden] { display: none; }
.cc { --dc: var(--violet); position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; text-align: center; font: inherit; }
.cc img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; box-shadow: 0 14px 30px -16px #000; transition: transform .3s cubic-bezier(.2,.8,.3,1.3), box-shadow .3s; background: rgba(255,255,255,.06); }
.cc:hover img, .cc:focus-visible img { transform: translateY(-6px) rotate(-1.5deg) scale(1.03); box-shadow: 0 22px 40px -16px var(--dc); }
.cc__name { display: block; font: 600 16px/1.2 var(--display); margin-top: 8px; }
.cc__kind { display: block; font-size: 13px; color: #B9ACDB; }

/* ---------- card details window ---------- */
.cdlg { width: min(900px, 100% - 24px); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 26px; background: linear-gradient(160deg, #2A1658, var(--space-2)); color: #fff; box-shadow: 0 30px 80px -20px #000; overflow: auto; }
.cdlg::backdrop { background: rgba(6,3,26,.8); backdrop-filter: blur(4px); }
.cdlg[open] { animation: pop .35s cubic-bezier(.2,.8,.3,1.2); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.cdlg__x { position: absolute; top: 10px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; z-index: 2; }
.cdlg__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 28px; align-items: center; }
.cdlg__img { width: 100%; border-radius: 16px; box-shadow: 0 20px 50px -20px #000; }
.cdlg__deck { display: inline-block; font: 600 13px var(--display); letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; background: var(--dc, var(--violet)); margin: 0 0 12px; }
.cdlg h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 4px; }
.cdlg__kind { color: #C9BDEB; margin: 0 0 14px; font-size: 18px; }
.cdlg__about { color: #E8E0FA; margin-bottom: 16px; }
.cdlg__fam h3 { font-size: 16px; color: var(--gold); margin: 6px 0 10px; }
.cdlg__famrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cdlg__famrow button { padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; color: #fff; font: 500 13px var(--display); }
.cdlg__famrow button img { border-radius: 8px; }
.cdlg__famrow button[aria-current="true"] { border-color: var(--gold); }
.cdlg__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.btn--small { padding: 8px 16px; font-size: 15px; background: rgba(255,255,255,.12); color: #fff; }
.btn--small:hover { background: rgba(255,255,255,.22); }

/* a card whose name floated away: a "?" sticker covers the name */
.hid { position: relative; display: block; overflow: hidden; border-radius: 10px; }
.hid img { width: 100%; display: block; }
.hid::after { content: '?'; position: absolute; left: 20%; right: 20%; top: 7.6%; height: 8.6%; display: grid; place-items: center; border-radius: 999px; background: var(--dc, var(--violet)); color: #fff; font: 700 clamp(14px, 2.4vw, 24px) var(--display); box-shadow: 0 0 0 2px rgba(255,255,255,.7); transition: transform .5s cubic-bezier(.5,-0.4,.6,1.4), opacity .5s; }
.hid.is-shown::after { transform: translateY(-260%) rotate(-12deg); opacity: 0; }

/* ---------- "Who's this?" ---------- */
.who { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 34px; align-items: center; max-width: 860px; margin: 0 auto; }
.who__view { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 3px rgba(255,255,255,.15), 0 30px 60px -24px #000; background: #000; }
.who__view .hid { position: absolute; inset: 0; border-radius: 0; transform: scale(var(--z, 3)); transform-origin: var(--ox, 50%) var(--oy, 55%); transition: transform 7s cubic-bezier(.2,.6,.3,1); }
.who__view.is-out .hid { --z: 1.15; }
.who__view.is-done .hid { --z: 1 !important; transition: transform .6s ease; }
.who__q { font: 600 clamp(24px, 3vw, 32px)/1.2 var(--display); margin: 0 0 18px; }
.who__opts { display: grid; gap: 12px; }
.who__opts button, .fam__pick { font: 600 20px var(--display); padding: 14px 20px; border-radius: 16px; border: 2px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; text-align: left; transition: background .2s, border-color .2s, transform .2s; }
.who__opts button:hover:not(:disabled) { background: rgba(255,255,255,.16); transform: translateX(4px); }
.who__opts button.is-right { background: #2F8F5B; border-color: #7DE3A8; }
.who__opts button.is-wrong { background: #8F2F4E; border-color: #F59BB8; }
.who__msg { min-height: 1.6em; font: 600 20px var(--display); color: var(--gold); margin: 16px 0 10px; }
.who__score { color: #C9BDEB; font-size: 15px; margin: 0 0 14px; }
.who__score b { color: var(--gold); }
/* my album: one progress bar for all the games (always on top of the game area) */
.album { max-width: 900px; margin: 0 auto 30px; background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,211,107,.35); border-radius: 20px; padding: 4px 18px; }
.album.is-pop { animation: album-pop .7s ease; }
@keyframes album-pop { 30% { transform: scale(1.025); box-shadow: 0 0 0 3px var(--gold), 0 0 50px rgba(255,211,107,.45); } }
.album summary { cursor: pointer; list-style: none; padding: 12px 0; display: grid; gap: 9px; }
.album summary::-webkit-details-marker { display: none; }
.album__top { display: flex; align-items: center; gap: 10px; font: 600 18px var(--display); }
.album__star { color: var(--gold); font-size: 22px; }
.album__count { color: #fff; }
.album__open { margin-left: auto; font: 600 14px var(--display); color: var(--gold); border: 1.5px solid rgba(255,211,107,.5); border-radius: 999px; padding: 5px 14px; white-space: nowrap; }
.album__open::after { content: " ▾"; }
.album[open] .album__open::after { content: " ▴"; }
.album__bar { display: block; height: 10px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.album__bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--pink)); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.album__decks { display: flex; flex-wrap: wrap; gap: 6px; }
.album__deck { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #D9CFF5; padding: 3px 10px 3px 4px; border-radius: 999px; background: rgba(255,255,255,.07); }
.album__deck i { width: 18px; height: 18px; border-radius: 50%; background: var(--dc, #6B3FB0); display: grid; place-items: center; font-style: normal; font-size: 12px; color: #2A1840; }
.album__deck.is-done { color: #2A1840; background: var(--gold); font-weight: 700; }
.album__deck.is-done i { background: #fff; }
.album__body { padding: 4px 0 18px; }
.album__hint { color: #C9BDEB; font-size: 15px; margin: 0 0 12px; }
.album__group h3 { font: 600 15px var(--display); margin: 16px 0 8px; padding-left: 10px; border-left: 5px solid var(--dc, #6B3FB0); color: #fff; }
.album__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.album__grid > * { aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; }
.album__grid button { padding: 0; border: 0; background: none; cursor: pointer; transition: transform .2s; }
.album__grid button:hover { transform: scale(1.12); }
.album__grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album__grid span { display: grid; place-items: center; background: rgba(255,255,255,.07); color: rgba(255,255,255,.3); font: 600 15px var(--display); }
.album__tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: 14px; color: #B9ACDB; }
.ch-toast { position: fixed; z-index: 80; left: 50%; bottom: 26px; transform: translateX(-50%); max-width: min(92vw, 520px); padding: 12px 22px; border-radius: 999px; background: #2A1840; color: #fff; font: 600 16px var(--display); text-align: center; box-shadow: 0 0 0 2px var(--gold), 0 18px 50px rgba(0,0,0,.55); }
.ch-toast[hidden] { display: none; }
.ch-toast.is-in { animation: toast-in .45s cubic-bezier(.2,.8,.2,1); }
.ch-toast.is-big { background: linear-gradient(135deg, var(--gold), var(--pink)); color: #2A1840; font-size: 18px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 24px) scale(.9); } }
/* name quiz */
.quiz { max-width: 900px; margin: 0 auto; text-align: center; }
.quiz__count { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; color: #C9BDEB; font: 600 15px var(--display); margin: 0 0 18px; }
.quiz__dots { display: inline-flex; gap: 5px; }
.quiz__dots i { width: 18px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.18); }
.quiz__dots i.is-past { background: var(--pink); }
.quiz__dots i.is-now { background: var(--gold); }
.quiz__name { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 34px; align-items: center; text-align: left; max-width: 820px; margin: 0 auto; }
.quiz__card { border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 3px rgba(255,255,255,.15), 0 30px 60px -24px #000; }
.quiz__card .hid { border-radius: 0; }
.quiz__faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 6px; }
.quiz__end h3 { font: 600 clamp(26px, 4vw, 38px) var(--display); margin: 6px 0 18px; }
.quiz__stars { font-size: 54px; line-height: 1; margin: 0; letter-spacing: 8px; color: rgba(255,255,255,.18); }
.quiz__stars .is-on { color: var(--gold); text-shadow: 0 0 26px rgba(255,211,107,.7); }
.quiz__again { color: #C9BDEB; margin: 0 0 10px; }
.quiz__missed { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 22px; }
.quiz__missed button { width: 92px; padding: 5px 5px 7px; border-radius: 12px; border: 2px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); color: #fff; font: 600 14px var(--display); cursor: pointer; }
.quiz__missed img { width: 100%; border-radius: 7px; display: block; margin-bottom: 4px; }
@media (max-width: 760px) {
  .quiz__name { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .quiz__card { max-width: 250px; width: 100%; margin: 0 auto; }
  .quiz__faces { grid-template-columns: repeat(2, 1fr); max-width: 420px; margin-left: auto; margin-right: auto; }
  .album__top { font-size: 15px; flex-wrap: wrap; }
  .album__open { font-size: 12px; padding: 4px 10px; }
}
@media (prefers-reduced-motion: reduce) { .album.is-pop, .ch-toast.is-in { animation: none; } }

/* ---------- memory ---------- */
.mem__bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; margin-bottom: 22px; }
.mem__levels { display: flex; gap: 6px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 4px; }
.mem__levels button { font: 600 15px var(--display); border: 0; background: none; color: #fff; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.mem__levels button[aria-pressed="true"] { background: #fff; color: var(--nebula); }
.mem__stat { font: 600 16px var(--display); color: #C9BDEB; }
.mem__stat b { color: var(--gold); font-variant-numeric: tabular-nums; }
.mem__grid { display: grid; gap: 12px; margin: 0 auto; max-width: 760px; grid-template-columns: repeat(var(--cols, 4), 1fr); }
.mem__card { aspect-ratio: 3 / 4; perspective: 900px; padding: 0; border: 0; background: none; cursor: pointer; }
.mem__in { position: relative; display: block; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.3,.8,.3,1.1); transform-style: preserve-3d; }
.mem__card.is-up .mem__in, .mem__card.is-done .mem__in { transform: rotateY(180deg); }
.mem__face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 10px; overflow: hidden; }
.mem__back { display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, rgba(242,92,158,.6), transparent 55%), radial-gradient(circle at 75% 80%, rgba(62,111,216,.6), transparent 55%), var(--nebula); box-shadow: inset 0 0 0 3px rgba(255,255,255,.25); }
.mem__back img { width: 70%; opacity: .95; }
.mem__front { transform: rotateY(180deg); }
.mem__front img { width: 100%; height: 100%; object-fit: cover; }
.mem__card.is-done .mem__front { box-shadow: 0 0 0 3px var(--gold), 0 0 24px -2px var(--gold); }
.mem__win, .fam__end { text-align: center; margin: 24px auto 0; font: 600 22px var(--display); color: var(--gold); }

/* ---------- spot the difference ---------- */
.fam__head { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; margin-bottom: 20px; text-align: center; }
.fam__q { font: 600 clamp(22px, 3vw, 30px) var(--display); margin: 0; }
.fam__q b { color: var(--gold); }
.fam__clue { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border-radius: 16px; padding: 6px 14px 6px 10px; font: 600 16px var(--display); }
.sym { position: relative; width: 52px; height: 56px; overflow: hidden; border-radius: 10px; background: #fff; flex: none; }
.sym img { position: absolute; left: 0; top: 0; width: 833.3%; max-width: none; transform: translate(-75.6%, -9.3%); }
.fam__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.fam__pick { padding: 6px; text-align: center; }
.fam__pick:hover:not(:disabled) { transform: translateY(-4px); }
.fam__pick.is-right { background: #2F8F5B; border-color: #7DE3A8; }
.fam__pick.is-wrong { background: #8F2F4E; border-color: #F59BB8; animation: shake .4s; }
.fam__pick .cap { display: block; min-height: 1.5em; margin-top: 6px; font-size: 16px; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.fam__msg { text-align: center; min-height: 1.6em; font: 600 20px var(--display); color: var(--gold); margin: 18px 0 8px; }
.fam__foot { display: flex; justify-content: center; gap: 12px; align-items: center; }
.game-next { margin-top: 4px; }

/* ---------- PuffiNova town ---------- */
.town { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 26px 20px; padding: 10px; background: radial-gradient(ellipse at 50% 100%, rgba(255,211,107,.12), transparent 70%); border-radius: 30px; }
.town li { transform: rotate(var(--r, 0deg)); }
.cc--town img { border-radius: 12px; }

.ch-final { padding: 80px 0 90px; position: relative; text-align: center; }
.ch-final h2 { color: #fff; }

@media (max-width: 900px) {
  .top__back { font-size: 14px; padding: 6px 8px; }
  .top__lang { margin-left: 0; }
  .ch-hero { padding-top: 96px; }
  .ch-tabs button { padding: 10px 12px 12px; font-size: 14px; }
  .cdlg__in { grid-template-columns: minmax(0, 1fr); padding: 58px 18px 20px; gap: 16px; }
  .cdlg__img { max-width: 340px; margin: 0 auto; }
  .who { grid-template-columns: 1fr; gap: 20px; }
  .who__view { max-width: 300px; width: 100%; margin: 0 auto; }
  .fam__grid { grid-template-columns: repeat(2, 1fr); max-width: 460px; }
}
@media (max-width: 560px) {
  .top__logo img { width: 96px; }
  .top__backtxt { display: none; }
  .ch-tabs { gap: 5px; }
  .ch-tabs button { border-radius: 14px; border-bottom: 2px solid rgba(255,255,255,.18); margin-bottom: 6px; }
  .cgrid { grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
  .town { grid-template-columns: repeat(2, 1fr); }
  .cc__name { font-size: 14px; }
  .cc__kind { font-size: 11px; }
  .planet-btn { width: 96px; }
  .planet-btn__orb { width: 60px; height: 60px; }
  .planet-btn small { font-size: 11px; }
  .mem__grid { gap: 7px; }
  .mem__levels button { padding: 7px 10px; font-size: 14px; }
  .ch-hero .lead { font-size: 17px; }
  .cdlg { overflow-x: hidden; }
}
@media (prefers-reduced-motion: reduce) { .who__view .hid { transition: none; } }
.game-next[hidden] { display: none; }

/* learning path: Meet → Practise → Master */
.path { max-width: 900px; margin: 0 auto; }
.path__go, .path__alldone { text-align: center; margin: 0 0 26px; }
.path__alldone { font: 600 22px var(--display); color: var(--gold); }
.path__deck { background: rgba(255,255,255,.06); border-left: 6px solid var(--dc, #6B3FB0); border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.path__deck h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font: 600 19px var(--display); }
.path__deck h3 img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--dc, #6B3FB0); }
.path__deck h3 small { display: block; font: 500 13px var(--body, inherit); color: #C9BDEB; }
.path__groups { display: flex; flex-wrap: wrap; gap: 10px; }
.path__grp { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 2px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07); color: #fff; cursor: pointer; transition: transform .2s, background .2s; }
.path__grp:hover { transform: translateY(-3px); background: rgba(255,255,255,.15); }
.path__grp.is-done { border-color: var(--gold); background: rgba(255,211,107,.16); }
.path__no { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--dc, #6B3FB0); font: 700 15px var(--display); }
.path__grp.is-done .path__no { background: var(--gold); color: #2A1840; }
.path__faces { display: flex; }
.path__faces img { width: 26px; height: 34px; object-fit: cover; border-radius: 4px; margin-left: -6px; box-shadow: 0 0 0 1.5px #2A1840; }
.path__faces img:first-child { margin-left: 0; }
.path__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 14px; margin-bottom: 22px; border-radius: 16px; background: rgba(255,255,255,.06); border-left: 6px solid var(--dc, #6B3FB0); font: 600 16px var(--display); }
.path__back { background: none; border: 0; color: var(--gold); font: 600 14px var(--display); cursor: pointer; padding: 6px 4px; }
.path__steps { display: flex; gap: 6px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.path__steps li { display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; font-size: 13px; color: #B9ACDB; background: rgba(255,255,255,.06); }
.path__steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); color: #fff; font-size: 12px; }
.path__steps li.is-now { color: #2A1840; background: var(--gold); font-weight: 700; }
.path__steps li.is-now b { background: #2A1840; }
.path__steps li.is-past b { background: var(--pink); }
.path__stage { text-align: center; }
.path__meet { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 34px; align-items: center; max-width: 720px; margin: 0 auto; text-align: left; }
.path__card { width: 100%; border-radius: 18px; box-shadow: 0 0 0 3px rgba(255,255,255,.15), 0 30px 60px -24px #000; animation: path-in .5s cubic-bezier(.2,.8,.2,1); }
@keyframes path-in { from { opacity: 0; transform: translateX(30px) rotate(3deg); } }
.path__count { color: #C9BDEB; font: 600 14px var(--display); letter-spacing: 1px; margin: 0 0 8px; }
.path__name { font: 600 clamp(34px, 6vw, 56px)/1.05 var(--display); color: var(--gold); margin: 0 0 6px; }
.path__kind { font-size: 19px; color: #E9E1FF; margin: 0 0 22px; }
.path__next { text-align: center; margin: 16px 0 0; }
.path__meet .path__next { text-align: left; }
.path__between { padding: 20px 0; }
.path__between h3 { font: 600 clamp(22px, 3.4vw, 32px) var(--display); margin: 0 0 20px; }
.path__stars { font-size: 70px; line-height: 1; margin: 0 0 10px; color: var(--gold); text-shadow: 0 0 30px rgba(255,211,107,.7); }
.path__stars.is-off { color: rgba(255,255,255,.2); text-shadow: none; }
.path__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; }
.quiz__faces[style*="--n:3"] { grid-template-columns: repeat(3, 1fr); max-width: 680px; margin-left: auto; margin-right: auto; }
/* family sorting */
.sort { max-width: 900px; margin: 0 auto; text-align: center; }
.sort__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 52px; }
.sort__chip { font: 600 18px var(--display); padding: 10px 20px; border-radius: 999px; border: 2px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; cursor: pointer; transition: transform .15s, background .15s; }
.sort__chip:hover { transform: translateY(-2px); }
.sort__chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #2A1840; transform: scale(1.08); box-shadow: 0 0 26px rgba(255,211,107,.6); }
.sort__homes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 6px; }
.sort__home { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 10px 14px; border-radius: 20px; border: 2px dashed rgba(255,255,255,.35); border-top: 6px solid var(--dc, #6B3FB0); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font: 600 18px var(--display); transition: background .2s; }
.sort__home:hover { background: rgba(255,255,255,.12); }
.sort__pic { width: min(150px, 70%); }
.sort__in { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 40px; }
.sort__in span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: rgba(47,143,91,.85); font: 600 14px var(--display); animation: path-in .4s ease; }
.sort__in img { width: 24px; height: 32px; object-fit: cover; border-radius: 4px; }
.sort__home.is-wrong { animation: shake .4s; border-color: #F59BB8; }
.sort__home.is-right { animation: album-pop .6s ease; }
@media (max-width: 760px) {
  .path__meet { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .path__card { max-width: 240px; margin: 0 auto; }
  .path__meet .path__next { text-align: center; }
  .path__steps { margin-left: 0; width: 100%; }
  .path__steps li { font-size: 12px; padding-right: 9px; }
  .sort__homes { gap: 8px; }
  .sort__home { padding: 8px 5px 10px; font-size: 14px; }
  .sort__pic { width: 86%; }
  .sort__chip { font-size: 16px; padding: 8px 15px; }
  .sort__in span { font-size: 12px; padding-right: 7px; }
}
@media (prefers-reduced-motion: reduce) { .path__card, .sort__in span, .sort__home.is-right, .sort__home.is-wrong { animation: none; } }

/* the two tab groups: Learn and Play */
.ch-groups { display: inline-flex; gap: 6px; padding: 6px; margin: 0 0 18px; border-radius: 999px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.16); }
.ch-groups button { font: 600 19px var(--display); color: #fff; background: none; border: 0; border-radius: 999px; padding: 11px 30px; cursor: pointer; transition: background .25s, color .25s, transform .2s; }
.ch-groups button:hover { background: rgba(255,255,255,.12); }
.ch-groups button.is-on { background: linear-gradient(135deg, var(--gold), #FFB86B); color: #2A1840; box-shadow: 0 8px 24px -8px rgba(255,211,107,.8); }
.ch-tabs button[hidden] { display: none; }
@media (max-width: 760px) { .ch-groups button { font-size: 16px; padding: 9px 20px; } }
