/* WHO'S WHO (tree/groups.js): the deck of the kinds of people in the Bible, in the family tree's
   trading-card look (its .tr-fc card, tree/tree.css), in the window over the apps */
.ww { padding: 4px 2px 18px; font-family: var(--sans); }
.ww-intro { margin: 2px 2px 14px; font: 15px/1.5 var(--sans); color: var(--muted); }
.ww-sec { display: flex; align-items: center; gap: 8px; margin: 18px 2px 9px; font: 800 11px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--era); }
.ww-sec::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--era); }
.ww-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ww-mini { display: flex; flex-direction: column; padding: 6px; border: none; border-radius: 16px; text-align: left; cursor: pointer; color: var(--ink);
  background: linear-gradient(150deg, var(--era) 0%, color-mix(in srgb, var(--era) 55%, #E0B96B) 55%, var(--era) 100%);
  box-shadow: 0 12px 24px -16px rgba(34, 30, 25, 0.6); transition: transform 0.15s ease; }
.ww-mini:active { transform: scale(0.98); }
@media (hover: hover) { .ww-mini:hover { transform: translateY(-2px); } }
.ww-mini-art { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 11px; color: #FFFDF7; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--era) 70%, #FFF3D6) 0%, var(--era) 75%); }
.ww-mini-art .ww-emblem { width: 52%; height: 78%; }
.ww-mini-t { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; padding: 8px 9px 9px; border-radius: 11px; background: var(--bg-raised); flex: 1; }
.ww-mini-t b { font-family: var(--serif); font-weight: 400; font-size: 16.5px; line-height: 1.2; }
.ww-mini-t small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.ww-foot { margin: 18px 2px 0; font-size: 13px; color: var(--muted); }

.ww-one { display: flex; flex-direction: column; align-items: center; }
.ww-fc { width: min(360px, 100%); }
.ww-art { display: grid; place-items: center; aspect-ratio: 4 / 3; color: #FFFDF7; background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--era) 65%, #FFF3D6) 0%, var(--era) 78%); }
.ww-art .ww-emblem { width: 46%; height: 70%; filter: drop-shadow(0 6px 10px rgba(20, 17, 13, 0.25)); }
.ww-line { margin: 4px 0 0; font: 14px/1.45 var(--sans); color: var(--muted); }
.ww-h { margin: 12px 0 4px; font: 800 10.5px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--era); }
body.site-dark .ww-h { color: color-mix(in srgb, var(--era) 55%, #fff); }
.ww-p { margin: 0; font-family: var(--serif); font-size: 16px; line-height: 1.55; color: var(--ink); }
.ww-vs { margin-top: 14px; }
.ww-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: min(360px, 100%); margin-top: 16px; }
.ww-nav button { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg-raised); color: var(--ink); font: 700 12.5px var(--sans); cursor: pointer; }
.ww-nav .ww-all { flex: none; color: var(--gold); }
.ww-nav span:empty { flex: 1 1 0; }
.ww-credit { margin: 14px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

/* (a word's Meaning page: its group's card, first) */
.ww-meaning { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 14px; padding: 6px 12px 6px 6px; border: 1.5px solid color-mix(in srgb, var(--era) 45%, var(--rule)); border-radius: 16px; background: color-mix(in srgb, var(--era) 8%, var(--bg-raised)); color: var(--ink); text-align: left; font-family: var(--sans); cursor: pointer; }
.ww-meaning .ww-mini-art { flex: none; width: 64px; aspect-ratio: 1; }
.ww-meaning > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ww-meaning small { font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--era); }
.ww-meaning b { font-family: var(--serif); font-weight: 400; font-size: 18px; line-height: 1.2; }
.ww-meaning em { font-style: normal; font-size: 13px; line-height: 1.35; color: var(--muted); }
.ww-meaning i { flex: none; font-style: normal; font-size: 22px; color: var(--era); }

/* The temple (the deck's front page): its courts drawn as a plan, the people over it, placed by percent */
.ww-temple .ww-intro { margin-bottom: 10px; }
.ww-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 2px 12px; }
.ww-act { padding: 8px 14px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--bg-raised); color: var(--ink); font: 700 13px var(--sans); cursor: pointer; }
.ww-act.is-tear { border-color: #7A2E3A; color: #7A2E3A; }
body.site-dark .ww-act.is-tear { border-color: #D98A96; color: #D98A96; }
.ww-act[hidden] { display: none; }
.ww-stage { position: relative; width: 100%; max-width: 470px; margin: 0 auto; aspect-ratio: 400 / 820; }
.ww-plan { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
.ww-plan [data-court] { transition: fill-opacity 0.5s ease, stroke-width 0.4s ease, stroke-dasharray 0.4s ease, stroke-opacity 0.8s ease; }
.ww-plan [data-court].is-lit { fill-opacity: 0.32; stroke-width: 3; }
/* the people */
.ww-tok { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 68px; padding: 0; border: none; background: none; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: left 1.6s cubic-bezier(0.22, 1, 0.36, 1), top 1.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease; }
.ww-tok-i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--era); color: #FFFDF7; box-shadow: 0 0 0 2.5px var(--bg-raised), 0 6px 12px -6px rgba(20, 17, 13, 0.6); transition: transform 0.2s ease; }
.ww-tok-i .ww-emblem { width: 24px; height: 24px; }
.ww-tok-t { max-width: 68px; font: 700 10px/1.12 var(--sans); text-align: center; text-shadow: 0 0 3px var(--bg), 0 0 3px var(--bg), 0 0 3px var(--bg); }
@media (hover: hover) { .ww-tok:hover .ww-tok-i { transform: scale(1.1); } }
.ww-tok:active .ww-tok-i { transform: scale(0.94); }
/* the card, rising from where they stand */
.ww-pop { position: absolute; inset: 0; z-index: 3; display: flex; justify-content: center; align-items: flex-start; padding-top: 8px; background: color-mix(in srgb, var(--bg) 62%, transparent); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.ww-pop[hidden] { display: none; }
.ww-pop-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(340px, 94%); transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease; }
.ww-pop-in .ww-fc { width: 100%; }
.ww-pop-x { position: absolute; top: -6px; right: -6px; z-index: 2; width: 34px; height: 34px; border: none; border-radius: 50%; background: rgba(20, 17, 13, 0.72); color: #FFFDF7; font-size: 22px; line-height: 1; cursor: pointer; }
.ww-link { padding: 6px 4px; border: none; background: none; color: var(--gold); font: 700 13px var(--sans); cursor: pointer; }
.ww-cap { min-height: 3.2em; margin: 12px 2px 0; font: 15px/1.55 var(--serif); color: var(--ink); text-wrap: pretty; }
.ww-cap b { font-family: var(--sans); font-size: 13.5px; }
/* torn: the curtain parts, the walls fall, the light spreads, everyone draws near */
.ww-veil rect { transition: transform 1.1s cubic-bezier(0.55, 0, 0.3, 1); transform-box: fill-box; }
.ww-veil-l { transform-origin: left center; } .ww-veil-r { transform-origin: right center; }
.is-torn .ww-veil-l { transform: scaleX(0.04); } .is-torn .ww-veil-r { transform: scaleX(0.04); }
.ww-light { opacity: 0; transform: scale(0); transform-origin: 200px 256px; transition: transform 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.6s, opacity 1.2s ease 0.6s; pointer-events: none; }
.is-torn .ww-light { opacity: 1; transform: scale(1); }
.is-torn .ww-plan [data-court] { stroke-dasharray: 3 7; stroke-opacity: 0.45; }
.is-torn .ww-tok { left: var(--x2); top: var(--y2); transition-delay: 1s; }
.ww-tok-t { transition: opacity 0.4s ease; }
.is-torn .ww-tok-t { opacity: 0; }
.is-torn .ww-plan text { opacity: 0.35; transition: opacity 1s ease; }
.is-torn .ww-tok-i { box-shadow: 0 0 0 2.5px #FFE7A3, 0 0 14px 2px rgba(246, 210, 122, 0.8); }
/* where could they stand? */
.is-game .ww-tok.is-out { opacity: 0; pointer-events: none; }
.is-game .ww-tok.is-new .ww-tok-i { animation: ww-land 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes ww-land { from { transform: scale(0.2); } }
.ww-stage.is-wrong { animation: ww-shake 0.35s ease; }
@keyframes ww-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.ww-tray { position: sticky; bottom: 0; z-index: 4; margin: 12px 0 0; padding: 8px 6px 6px; border: 1px solid var(--rule); border-radius: 16px; background: color-mix(in srgb, var(--bg-raised) 94%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 -10px 24px -18px rgba(20, 17, 13, 0.5); }
.ww-tray[hidden] { display: none; }
.ww-tray-h { margin: 0 4px 6px; font: 800 10.5px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ww-tray-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ww-tray-row::-webkit-scrollbar { display: none; }
.ww-tray-row .ww-tok { flex: none; }
.ww-tray-h b { color: var(--ink); letter-spacing: 0.04em; }
/* (a short screen, a phone on its side: just the faces in the tray; the one picked is named above them) */
@media (max-height: 500px) { .ww-tray { padding: 5px 6px 4px; } .ww-tray-h { margin-bottom: 4px; } .ww-tray .ww-tok { width: 40px; } .ww-tray .ww-tok-t { display: none; } }
.ww-tok.is-tray { position: static; transform: none; }
.ww-tok.is-sel .ww-tok-i { box-shadow: 0 0 0 3px var(--bg-raised), 0 0 0 6px var(--era); transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) {
  .ww-tok, .ww-veil rect, .ww-light, .ww-pop-in, .ww-plan [data-court] { transition: none !important; }
  .ww-stage.is-wrong, .ww-tok.is-new .ww-tok-i { animation: none; }
}

/* (an Amen for the group, on the card's front: index.html's pill) */
