/* The About article (src/game/about-article.js) and the About screen that shows it after
   loading (2026-10-21). The article is also served at /about, which loads this file with the
   shared tokens and components and nothing else from the game, so everything it needs is here
   or in src/design/components.css. Colours are tokens only; the cards, badges, panels and
   buttons are the shared components. */
.about-article {--about-gutter:16px;padding:0 var(--about-gutter) 8px;color:var(--ui-text);font-size:15px;line-height:1.6;text-align:left;-webkit-user-select:text;user-select:text}
.about-article h2 {margin:40px 0 10px;font-size:22px;font-weight:800;line-height:1.25;letter-spacing:-.01em}
.about-article h3 {margin:22px 0 4px;font-size:16px;font-weight:750;line-height:1.35}
.about-article p {margin:0 0 10px}
.about-article .about-section {margin:0;padding:0;border-radius:0;background:none}
.about-article :is(h2,h3) .ui-badge {vertical-align:2px;margin-left:4px}

/* The opening: the title photo as a banner, then the title and the lead. */
.about-hero {margin:0 calc(var(--about-gutter) * -1)}
.about-hero-art {display:block;width:100%;height:clamp(180px,48vw,260px);object-fit:cover;object-position:50% 62%}
.about-title {margin:20px var(--about-gutter) 8px;font-size:28px;font-weight:800;line-height:1.15;letter-spacing:-.02em}
.about-hero .about-lead {margin:0 var(--about-gutter);font-size:16px;font-weight:600;line-height:1.55;color:var(--ui-text)}
.about-article .about-glance {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:22px 0 0}
.about-glance .ui-panel {padding:14px}
.about-glance .ui-description {font-size:13px}
@media(max-width:359px) {.about-article .about-glance {grid-template-columns:1fr}}

/* Screens of the game beside the words about them. */
.about-shot {display:block;width:100%;height:auto;aspect-ratio:390/844;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-soft-fill);box-shadow:0 6px 18px var(--ui-shadow)}
.about-steps {display:grid;gap:22px;margin:0;padding:0;list-style:none}
.about-step,.about-figure,.about-split {display:grid;grid-template-columns:minmax(96px,30%) 1fr;gap:16px;align-items:start}
.about-step h3 {margin-top:4px}
.about-figure {margin:24px 0 0;align-items:center}
.about-figure figcaption {color:var(--ui-muted);font-size:13px;line-height:1.5}

/* Odds, then example keycaps in the Collection's own cards. */
.about-odds {width:100%;margin:14px 0 4px;border-collapse:collapse;font-size:14px}
.about-odds :is(th,td) {padding:8px 6px;border-top:1px solid var(--ui-border);text-align:left;font-weight:600}
.about-odds thead th {border-top:0;color:var(--ui-muted);font-size:12px;font-weight:650}
.about-odds :is(td,thead th:not(:first-child)) {text-align:right;font-variant-numeric:tabular-nums}
.about-cards {display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0 0}
.about-cards .ui-collectible .art {max-width:96px}
@media(min-width:480px) {.about-cards {grid-template-columns:repeat(6,1fr)}}
.about-names {margin-top:10px;color:var(--ui-muted);font-size:13px}

/* Names and short definitions: families, switches, glossary, light patterns. */
.about-families,.about-terms {display:grid;gap:12px;margin:14px 0 0}
.about-families dt,.about-terms dt {font-size:15px;font-weight:750;line-height:1.4}
.about-families dd,.about-terms dd {margin:2px 0 0;color:var(--ui-muted);font-size:14px;line-height:1.55}

/* Every mood with its thumbnail and how it opens. */
.about-moods {display:grid;grid-template-columns:repeat(3,1fr);gap:14px 10px;margin:16px 0 0;padding:0;list-style:none}
.about-moods img {display:block;width:100%;height:auto;aspect-ratio:1;margin:0 0 6px;border-radius:12px;background:var(--ui-soft-fill);object-fit:cover}
.about-moods b {display:block;font-size:13px;font-weight:750;line-height:1.3}
.about-moods span {display:block;margin-top:2px;color:var(--ui-muted);font-size:11px;line-height:1.4}
@media(min-width:480px) {.about-moods {grid-template-columns:repeat(4,1fr)}}

.about-updates {display:grid;gap:10px;margin:12px 0 0;padding:0;list-style:none;font-size:14px}
.about-updates time {display:block;font-weight:750;font-variant-numeric:tabular-nums}

/* The About screen: after the title, before the board, on every launch (src/game/app.js). It is
   in the page from the start so the words are in the first response, below the title, which
   the screen clips; the title slides up to reveal it and Play slides the board up over it. */
.intro-page {position:relative;height:100%;overflow-y:auto;overscroll-behavior:contain;background:var(--ui-page);-webkit-overflow-scrolling:touch}
.ui-title-swipe-stack.is-swiping>.intro-page {position:absolute;inset:0;width:100%;height:100%;margin:0;pointer-events:none}
/* The hero: the title photo with the brand stacked in the middle and Play under it, so the
   screen opens on something to press. The top bar stays out of the way until the hero has
   scrolled away under it (src/game/app.js sets data-bar), then slides down. */
.intro-hero {position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(28px,6svh,44px);min-height:clamp(380px,68svh,600px);padding:calc(32px + env(safe-area-inset-top)) 24px 40px;overflow:hidden;isolation:isolate;background:var(--ui-art-surface);color:var(--ui-on-art)}
.intro-hero-art {position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:cover;object-position:50% 38%}
.intro-hero .ui-brand-lockup {gap:20px;color:var(--ui-on-art)}
.intro-hero .ui-brand-symbol {width:88px}
.intro-hero .ui-brand-logotype {width:200px;max-width:64vw}
.intro-hero .ui-button {min-width:180px}
.intro-hero+.about-article .about-title {margin-top:28px}
.intro-bar {position:sticky;top:0;z-index:2;height:0}
.intro-bar-inner {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(8px + env(safe-area-inset-top)) 16px 8px;border-bottom:1px solid var(--ui-border);background:color-mix(in srgb,var(--ui-page) 90%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transform:translateY(-100%);opacity:0;transition:transform 220ms cubic-bezier(.2,0,0,1),opacity 160ms linear}
.intro-page[data-bar=shown] .intro-bar-inner {transform:none;opacity:1}
@media(prefers-reduced-motion:reduce) {.intro-bar-inner {transition:none}}
.intro-bar .ui-brand-lockup[data-layout=row] {flex:0 1 auto;justify-content:flex-start;color:var(--ui-text);filter:none}
.intro-bar .ui-brand-lockup[data-layout=row] .ui-brand-symbol {height:16px}
.intro-bar .ui-brand-lockup[data-layout=row] .ui-brand-logotype {height:13px}
.intro-bar .ui-button {min-width:112px}
.intro-footer {display:grid;gap:14px;padding:28px 16px calc(28px + env(safe-area-inset-bottom));border-top:1px solid var(--ui-border);margin-top:32px}
.intro-footer .ui-button {width:100%}
.intro-footer nav {display:flex;flex-wrap:wrap;justify-content:center;gap:10px 20px;font-size:13px}
.intro-footer a {color:var(--ui-muted);text-underline-offset:3px}
.intro-footer .intro-explore {display:grid;grid-template-columns:repeat(3,auto);justify-content:center;justify-items:center;gap:12px 32px;font-size:15px;font-weight:600}
.intro-footer .intro-explore a {color:var(--ui-text)}

/* Inside a container that has its own padding (the Settings › About layer, the /about page)
   the article drops its gutter and the banner gets rounded corners. */
.about-article[data-inset] {--about-gutter:0px;padding:0}
.about-article[data-inset] .about-hero-art {border-radius:var(--ui-panel-radius)}
/* /about: the legal pages' shell draws every section as a panel; the article is not one. */
section:has(> .about-article[data-inset]) {padding:0;background:none}
