/* The homepage only: the hero, the film, and the pieces of the app each section
   shows. Copied from redesign/src/home.src.html (the approved preview); the
   shared parts — tokens, controls, header, footer, closing band — are site.css. */

/* ── Hero: the server banner idiom — the art bled in, faded into the page ─ */
.hero { position: relative; isolation: isolate; min-height: min(820px, 92vh); display: flex; align-items: flex-end; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 12, 15, 0) 30%, rgba(11, 12, 15, .55) 62%, var(--rail) 100%); }
.hero-in { padding: 0 0 56px; }
.hero .label { color: rgba(255, 255, 255, .78); }
.hero h1 { margin: 14px 0 0; font: 600 clamp(40px, 6.4vw, 88px)/1.02 var(--display); letter-spacing: -.05em; color: #fff; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero p { margin: 22px 0 0; max-width: 46ch; font: var(--w-body) clamp(17px, 1.6vw, 20px)/1.55 var(--font); color: var(--t); }
.hero p b { color: var(--t-hi); font-weight: 500; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.cta-note { margin-top: 14px; font: 400 14px/20px var(--font); color: var(--t-mut); }
.cta-note a { color: var(--t); text-decoration: underline; text-decoration-color: var(--t-faint); text-underline-offset: 3px; }

/* ── Motion: things arrive as you reach them, once, then hold still. ───────
   Only with .js-motion on <html> (set in <head> unless the visitor asked for
   reduced motion), so without script or with reduced motion nothing hides. */
.js-motion .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js-motion .rv.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(.4em); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
.js-motion .hero-art { animation: settle 2.6s cubic-bezier(.2, .7, .2, 1) both; }
.js-motion .hero h1 span { animation: rise .85s cubic-bezier(.2, .7, .2, 1) both; }
.js-motion .hero h1 span:nth-child(2) { animation-delay: .12s; }
.js-motion .hero h1 span:nth-child(3) { animation-delay: .24s; }
.js-motion .hero .label { animation: fade-up .7s ease-out both; }
.js-motion .hero p { animation: fade-up .7s .42s ease-out both; }
.js-motion .hero .cta { animation: fade-up .7s .54s ease-out both; }
.js-motion .hero .cta-note { animation: fade-up .7s .66s ease-out both; }
/* Games: the discs drop into the board, one move at a time. */
.js-motion .mb-c4 i.r, .js-motion .mb-c4 i.w { opacity: 0; transform: translateY(-90px); transition: transform .42s cubic-bezier(.55, 0, 1, .45), opacity .08s; transition-delay: var(--d, 0s); }
.js-motion .in .mb-c4 i.r, .js-motion .in .mb-c4 i.w { opacity: 1; transform: none; }
/* Memory: the bars grow to their values, then the numbers land. */
.js-motion .ram-bar i { transform: scaleX(0); transform-origin: left center; transition: transform 1.3s cubic-bezier(.2, .7, .2, 1) .4s; }
.js-motion .in .ram-bar i { transform: none; }
.js-motion .ram-bar b { opacity: 0; transition: opacity .5s 1.4s; }
.js-motion .in .ram-bar b { opacity: 1; }
/* Voice: whoever is talking has a ring that breathes with their voice. */
.vu.speaking img { animation: speak 1.3s ease-in-out infinite; }
@keyframes speak { 50% { box-shadow: 0 0 0 2px var(--panel), 0 0 0 5px color-mix(in srgb, var(--online) 55%, transparent); } }
@media (prefers-reduced-motion: reduce) { .vu.speaking img { animation: none; } }

/* ── The film ──────────────────────────────────────────────────────────── */
.film { padding: 8px 0 0; }
.film-plate { position: relative; border-radius: 18px; background: var(--stage); overflow: hidden; aspect-ratio: 16 / 9; }
.film-plate video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

/* The player's controls: white on a scrim at the foot of the picture, so they
   read over any frame. Shown on hover and while paused; hidden while it plays. */
.pl-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 14px 10px; background: linear-gradient(rgba(11, 12, 15, 0), rgba(11, 12, 15, .82)); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.player.show-ui .pl-bar, .player.is-paused .pl-bar, .player:focus-within .pl-bar { opacity: 1; transform: none; pointer-events: auto; }
.player.show-ui video { cursor: pointer; }
.pl-row { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.pl-btn { width: 40px; height: 40px; flex: none; border: 0; border-radius: 10px; display: grid; place-items: center; background: transparent; color: #fff; cursor: pointer; transition: background-color .12s, transform .1s; }
.pl-btn:hover { background: rgba(255, 255, 255, .14); }
.pl-btn:active { transform: scale(.94); }
.pl-btn .i { width: 22px; height: 22px; }
/* Volume: the slider opens beside the speaker on hover (always there by keyboard). */
.pl-vol { display: flex; align-items: center; }
.pl-slider { -webkit-appearance: none; appearance: none; width: 0; height: 4px; margin: 0; opacity: 0; border-radius: 2px; background: linear-gradient(90deg, #fff var(--v, 100%), rgba(255, 255, 255, .28) var(--v, 100%)); cursor: pointer; transition: width .2s, opacity .2s, margin .2s; }
.pl-vol:hover .pl-slider, .pl-slider:focus-visible { width: 86px; margin: 0 10px 0 4px; opacity: 1; }
.pl-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.pl-slider::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.pl-time { margin-left: 6px; font: 500 13px/18px var(--font); color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-time b { color: #fff; font-weight: 600; }
.pl-title { margin-left: auto; padding: 0 8px; font: 500 13px/18px var(--font); color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 620px) { .pl-title { visibility: hidden; flex: 1; } .pl-bar { padding: 36px 8px 6px; } }
/* The seek bar: a thin track that thickens under the pointer; the played part in red. */
.pl-seek { position: relative; height: 18px; cursor: pointer; touch-action: none; }
.pl-seek::before, .pl-done { content: ""; position: absolute; left: 0; top: 7px; height: 4px; border-radius: 2px; transition: height .12s, top .12s; }
.pl-seek::before { right: 0; background: rgba(255, 255, 255, .28); }
.pl-done { width: var(--p, 0%); background: var(--accent); }
.pl-knob { position: absolute; top: 3px; left: var(--p, 0%); width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .12s; }
.pl-seek:hover::before, .pl-seek:hover .pl-done, .pl-seek.drag::before, .pl-seek.drag .pl-done { top: 6px; height: 6px; }
.pl-seek:hover .pl-knob, .pl-seek.drag .pl-knob, .pl-seek:focus-visible .pl-knob { transform: scale(1); }
/* Paused: one big play button in the middle. */
.pl-big { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border: 0; border-radius: 26px; display: grid; place-items: center; background: rgba(11, 12, 15, .62); color: #fff; cursor: pointer; opacity: 0; transform: scale(.9); pointer-events: none; transition: opacity .2s, transform .2s, background-color .15s; }
.player.is-paused .pl-big { opacity: 1; transform: none; pointer-events: auto; }
.pl-big:hover { background: var(--accent); }
.pl-big .i { width: 36px; height: 36px; margin-left: 4px; }
/* The acknowledgement of a click: the icon for what just happened, fading out. */
.pl-flash { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 22px; display: grid; place-items: center; background: rgba(11, 12, 15, .55); color: #fff; opacity: 0; pointer-events: none; }
.pl-flash .i { width: 30px; height: 30px; }
.pl-flash.go { animation: pl-flash .55s ease-out; }
@keyframes pl-flash { 0% { opacity: 1; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.25); } }
.player.is-paused .pl-flash { display: none; }
/* When the browser refused sound: say so, and offer it. */
.pl-hint { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; border: 0; border-radius: 10px; background: rgba(11, 12, 15, .7); color: #fff; font: 600 13px/18px var(--font); cursor: pointer; transition: background-color .15s; }
.pl-hint:hover { background: var(--accent); }
.pl-hint .i { width: 17px; height: 17px; }
.pl-hint[hidden] { display: none; }
.player:fullscreen { border-radius: 0; background: #000; }
.player:fullscreen video { object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .pl-flash.go { animation: none; } }

/* Facts, as tags: a word gets a tag (chips.html) */
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 36px 0 0; }
.fact { display: inline-flex; align-items: center; gap: 8px; font: 500 15px/20px var(--font); color: var(--t); }
.fact .i { color: var(--t-mut); }

/* ── Sections ──────────────────────────────────────────────────────────── */
.sec { padding: clamp(88px, 11vw, 148px) 0 0; }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.row.flip .copy { order: 2; }
@media (max-width: 900px) { .row, .row.flip { grid-template-columns: 1fr; } .row.flip .copy { order: 0; } }
.copy .label { display: block; margin-bottom: 16px; }
.copy h2 { margin: 0; font: 600 clamp(32px, 4.2vw, 52px)/1.08 var(--display); letter-spacing: -.04em; color: var(--t-hi); text-wrap: balance; }
.copy p { margin: 20px 0 0; max-width: 44ch; color: var(--t-mut); }
.copy p b { color: var(--t); font-weight: 500; }
.copy ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.copy li { display: flex; gap: 12px; align-items: baseline; color: var(--t); font: var(--w-body) 16px/24px var(--font); }
.copy li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--t-faint); flex: none; transform: translateY(-2px); }

/* The stage a piece of the app sits on: the app's own ground, one step down. */
.ui { border-radius: 20px; background: var(--stage); padding: clamp(18px, 3vw, 32px); min-width: 0; }

/* ── App parts (app.css, approved) ─────────────────────────────────────── */
.av { position: relative; flex: none; width: var(--s, 36px); height: var(--s, 36px); }
.av img, .av .ini { width: 100%; height: 100%; border-radius: calc(var(--s, 36px) * .28); object-fit: cover; display: grid; place-items: center; }
.av .ini { background: oklch(0.34 0.045 var(--h, 250)); color: oklch(0.87 0.05 var(--h, 250)); font: 600 13px/1 var(--font); }
.name { font: var(--w-name) 15px/22px var(--font); letter-spacing: -.01em; color: var(--rc, var(--t-hi)); }

.pane { background: var(--panel); border-radius: 14px; padding: 8px; }
.cat { display: flex; align-items: center; gap: 4px; height: 28px; margin-top: 10px; padding-left: 6px; }
.cat:first-child { margin-top: 0; }
.cat .i { width: 10px; height: 10px; color: var(--t-faint); }
.ch { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border-radius: var(--r-ctl); color: var(--t-mut); font: var(--w-row) 14px/20px var(--font); letter-spacing: -.006em; }
.ch .i { color: var(--t-faint); }
.ch span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice-users { margin: 0 0 4px 20px; }
.vu { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px; border-radius: 7px; color: var(--t-mut); font: var(--w-row) 13px/18px var(--font); }
.vu img { width: 20px; height: 20px; border-radius: 6px; flex: none; }
.vu > span:not(.chip) { flex: 1; }
.vu .i { width: 14px; height: 14px; color: var(--t-faint); }
.vu.speaking img { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px var(--online); }
.vu.speaking span { color: var(--t-hi); }

.now { border-radius: var(--r-plate); background: var(--plate); padding: 12px; }
.now-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.now-title { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: var(--w-strong) 14px/20px var(--font); color: var(--t-hi); }
.now-title .i { width: 16px; height: 16px; color: var(--t-mut); }
.now p { margin: 3px 0 0; font: var(--w-body) 13px/18px var(--font); color: var(--t-mut); }
.now p b { color: var(--t); font-weight: 600; }
.now-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.stack { display: flex; gap: 6px; }
.stack img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; }
.stack img.speaking { box-shadow: 0 0 0 2px var(--plate), 0 0 0 3.5px var(--online); }
.btn.soft { height: 30px; padding: 0 12px; font-size: 13px; background: var(--accent-tint-hi); color: var(--accent-text); }

/* A stream share tile */
.share { border-radius: var(--r-plate); overflow: hidden; background: var(--plate); }
.share img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.share-foot { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font: 400 13px/18px var(--font); color: var(--t-mut); }
.share-foot b { color: var(--t-hi); font-weight: 600; }
.share-foot .chip.live { margin-left: auto; }

.voice-ui { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; align-items: start; }
.voice-ui .side-col { display: grid; gap: 12px; }
@media (max-width: 620px) { .voice-ui { grid-template-columns: 1fr; } }

/* Messages */
.m { position: relative; padding: 1px 12px 1px 52px; min-height: 22px; }
.m.start { margin-top: 14px; }
.m .av { position: absolute; left: 0; top: 2px; --s: 38px; }
.m-head { display: flex; align-items: baseline; gap: 6px; min-height: 22px; }
.m-head .chip { align-self: center; }
.m-time { font: 400 12px/22px var(--font); color: var(--t-faint); font-variant-numeric: tabular-nums; }
.m.sys { display: flex; align-items: center; gap: 8px; color: var(--t-mut); padding-left: 52px; font: var(--w-body) 15px/22px var(--font); }
.m.sys .sys-i { position: absolute; left: 11px; top: 3px; width: 16px; height: 16px; color: var(--online); }
.m.sys b { color: var(--t-hi); font-weight: var(--w-name); }
.embed { max-width: 460px; margin: 4px 0 2px; border-radius: var(--r-plate); background: var(--plate); overflow: hidden; }
.e-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 4px; }
.e-title { font: var(--w-strong) 14px/20px var(--font); color: var(--t-hi); }
.e-body { padding: 6px 12px 12px; }
.e-desc { font: var(--w-body) 14px/21px var(--font); color: var(--t); }
.e-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.e-foot small { font: 400 12px/16px var(--font); color: var(--t-mut); }
.e-foot .btn { height: 32px; font-size: 13px; }

/* Games lounge */
.lg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 620px) { .lg-cards { grid-template-columns: 1fr 1fr; } .lg-cards .lg-card:nth-child(3) { display: none; } }
.lg-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 10px 10px 12px; border-radius: 14px; background: var(--plate); }
.lg-card.lead { background: var(--plate-hi); }
.lg-art { height: 112px; border-radius: 10px; background: var(--panel); display: grid; place-items: center; }
.lg-name { font: var(--w-strong) 15px/20px var(--font); color: var(--t-hi); }
.lg-meta { margin-top: -8px; font: 400 12px/16px var(--font); color: var(--t-mut); }
.lg-votes { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.lg-votes .stack img { width: 22px; height: 22px; border-radius: 7px; }
.lg-votes .stack { gap: 4px; }
.lg-count { margin-left: auto; font: 600 12px/16px var(--font); color: var(--t-mut); font-variant-numeric: tabular-nums; }
.lg-card.lead .lg-count { color: var(--accent-text); }
.lg-card .chip.yours { position: absolute; right: 10px; top: 10px; height: 20px; line-height: 20px; }
.mb-c4 { display: grid; grid-template-columns: repeat(7, 11px); gap: 4px; padding: 8px; border-radius: 9px; background: var(--plate-hi); }
.mb-c4 i { width: 11px; height: 11px; border-radius: 50%; background: var(--panel); }
.mb-c4 i.r { background: var(--accent); } .mb-c4 i.w { background: var(--t-hi); }
.mb-chess { display: grid; grid-template-columns: repeat(8, 10px); border-radius: 5px; overflow: hidden; }
.mb-chess i { width: 10px; height: 10px; background: var(--plate-hi); }
.mb-chess i.d { background: #353a44; }
.mb-rev { display: grid; grid-template-columns: repeat(6, 13px); gap: 3px; }
.mb-rev i { width: 13px; height: 13px; border-radius: 3px; background: var(--plate-hi); display: grid; place-items: center; }
.mb-rev i b { width: 9px; height: 9px; border-radius: 50%; background: var(--t-hi); }
.mb-rev i b.k { background: #0b0c0f; box-shadow: inset 0 0 0 1.5px #5a606b; }
.gm-result { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--plate-hi); }
.gm-result .tro { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-tint-hi); color: var(--accent-text); flex: none; }
.gm-result .tro .i { width: 22px; height: 22px; }
.gm-result b { display: block; font: 600 17px/22px var(--display); letter-spacing: -.02em; color: var(--t-hi); }
.gm-result small { display: block; font: 500 13px/18px var(--font); color: var(--accent-text); }
.gm-result .btn { margin-left: auto; height: 34px; font-size: 13px; }
@media (max-width: 520px) { .gm-result .btn { display: none; } }
.games-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }

/* Profiles: Mika's profile card beside the editor that is restyling it. The
   card is the app's profile popout; --pa is the profile's accent colour, which
   tints the card, rings the avatar and fills its one button. */
.pf-ui { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 760px) { .pf-ui { grid-template-columns: 1fr; } .pf { justify-self: center; } }

.pf { --pa: #e0714f; --pbg: color-mix(in srgb, var(--pa) 13%, var(--plate)); position: relative; width: 320px; max-width: 100%; border-radius: 18px; overflow: hidden; background: var(--pbg); transition: background-color .6s; }
/* The animated banner: three stacked and cross-faded; the chosen one drifts. */
.pf-banner { position: relative; height: 124px; overflow: hidden; background: var(--panel); }
.pf-banner img, .ed-banners img { object-fit: cover; }
.pf-banner img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; animation: pf-drift 14s ease-in-out infinite alternate; }
.pf-banner img.on { opacity: 1; }
.pf-banner img:nth-child(1), .ed-banners img:nth-child(1) { object-position: 30% 30%; }
.pf-banner img:nth-child(2), .ed-banners img:nth-child(2) { object-position: 35% 22%; }
/* The third banner is the dusk valley shifted to a teal sky, to sit with the green accent. */
.pf-banner img:nth-child(3), .ed-banners img:nth-child(3) { object-position: 62% 40%; filter: hue-rotate(150deg) saturate(.9); }
@keyframes pf-drift { from { transform: scale(1.06); } to { transform: scale(1.16) translateX(-4%); } }

/* The profile effect, drifting across the whole card. */
.pf-fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.pf-fx i { position: absolute; border-radius: 50%; animation-timing-function: linear; animation-iteration-count: infinite; }
.pf-fx.embers i { bottom: -8px; background: #ffb27a; animation-name: fx-rise; }
.pf-fx.embers i:nth-child(3n) { background: #ff7a59; }
.pf-fx.starfall i { top: -8px; border-radius: 1px; background: #f1ecff; animation-name: fx-fall; }
.pf-fx.snow i { top: -8px; background: #fff; animation-name: fx-fall; }
@keyframes fx-rise { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .95; } 100% { transform: translate(var(--dx), -560px); opacity: 0; } }
@keyframes fx-fall { 0% { transform: translate(0, 0) rotate(45deg); opacity: 0; } 12% { opacity: .9; } 100% { transform: translate(var(--dx), 580px) rotate(45deg); opacity: 0; } }
.pf-ui.paused .pf-fx i, .pf-ui.paused .pf-banner img { animation-play-state: paused; }

.pf-body { position: relative; z-index: 1; padding: 0 18px 18px; }
/* The avatar, ringed in the accent colour with a gap of the card's own ground. */
.pf-av { position: relative; width: 92px; height: 92px; margin-top: -46px; padding: 6px; border-radius: 30px; background: var(--pa); transition: background-color .6s; }
.pf-av img { width: 80px; height: 80px; border-radius: 24px; object-fit: cover; box-shadow: 0 0 0 3px var(--pbg); transition: box-shadow .6s; }
.pf-st { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 4px var(--pbg); transition: box-shadow .6s; }
.pf-name { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; font: 600 22px/28px var(--display); letter-spacing: -.035em; color: var(--t-hi); }
.pf-name small { font: 400 13px/18px var(--font); letter-spacing: 0; color: var(--t-mut); }
.pf-status { margin-top: 2px; font: 400 14px/20px var(--font); color: var(--t); }
.pf-act { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--pa) 16%, var(--plate-hi)); transition: background-color .6s; }
.pf-act-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--pa) 32%, var(--plate-hi)); color: var(--t-hi); flex: none; transition: background-color .6s; }
.pf-act small { display: block; font: 600 11px/14px var(--font); letter-spacing: .085em; text-transform: uppercase; color: var(--t-mut); }
.pf-act b { display: block; font: 600 14px/18px var(--font); color: var(--t-hi); }
.pf-bio { margin-top: 14px; font: var(--w-body) 14px/21px var(--font); color: var(--t); }
.pf-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pf-links .chip { height: 26px; padding: 0 9px; gap: 6px; font-size: 12.5px; line-height: 26px; background: color-mix(in srgb, var(--pa) 12%, var(--plate-hi)); transition: background-color .6s; }
.pf-links .i { width: 13px; height: 13px; color: var(--t-mut); }
.pf-msg { display: flex; align-items: center; justify-content: center; height: 38px; margin-top: 16px; border-radius: 10px; background: var(--pa); color: #fff; font: 600 14px/18px var(--font); transition: background-color .6s; }

/* The editor making the choices. */
.ed { display: grid; gap: 14px; padding: 16px; border-radius: 16px; background: var(--plate); }
.ed-head { display: flex; align-items: center; justify-content: space-between; }
.ed-head .chip { background: color-mix(in srgb, var(--online) 16%, var(--plate)); color: #7fdcaa; font-weight: 600; }
.ed-row { display: grid; gap: 8px; }
.ed-l { font: 500 12px/16px var(--font); color: var(--t-mut); }
.ed-banners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ed-banners img { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; opacity: .5; transition: opacity .3s, box-shadow .3s; }
.ed-banners img.on, .ed-sw i.on { opacity: 1; box-shadow: 0 0 0 2px var(--plate), 0 0 0 4px var(--t-hi); }
.ed-sw { display: flex; gap: 10px; }
.ed-sw i { width: 26px; height: 26px; border-radius: 8px; background: var(--c); transition: box-shadow .3s; }
.ed-fx { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-fx span { height: 28px; padding: 0 10px; border-radius: 8px; background: var(--plate-hi); font: 500 12.5px/28px var(--font); color: var(--t-mut); transition: background-color .3s, color .3s; }
.ed-fx span.on { background: var(--t-hi); color: var(--rail); }
.ed-in { height: 36px; padding: 0 12px; border-radius: 9px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--edge); font: 400 13.5px/36px var(--font); color: var(--t); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .pf-banner img { animation: none; } }

/* Tasks (screens/pages.css) */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
@media (max-width: 620px) { .board { grid-template-columns: 1fr; } }
.col { background: var(--panel); border-radius: 14px; padding: 6px 8px 8px; }
.col-h { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 4px 0 8px; }
.col-h b { font: 600 12px/16px var(--font); color: var(--t-faint); font-variant-numeric: tabular-nums; }
.st-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.st-todo { box-shadow: inset 0 0 0 2px var(--t-faint); } .st-progress { background: var(--idle); } .st-done { background: var(--online); }
.tk { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; padding: 12px 12px 10px; border-radius: 10px; background: var(--plate); }
.col-h + .tk { margin-top: 2px; }
.tk-t { display: flex; gap: 8px; font: var(--w-name) 14px/19px var(--font); color: var(--t-hi); }
.tk.done .tk-t { color: var(--t-mut); }
.tk-check { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--online) 18%, var(--plate)); color: var(--online); }
.tk-check .i { width: 11px; height: 11px; }
.tk-meta { display: flex; align-items: center; gap: 12px; font: 500 12px/16px var(--font); color: var(--t-mut); }
.tk-meta .i { width: 13px; height: 13px; }
.tk-due { display: inline-flex; align-items: center; gap: 4px; }
.tk-due.late { color: var(--accent-text); font-weight: 600; }
.prio { display: inline-flex; align-items: center; gap: 5px; }
.prio i { width: 7px; height: 7px; border-radius: 2px; }
.p-high i { background: var(--idle); } .p-med i { background: var(--info); }
.tk-who { margin-left: auto; }
.tk-who img { width: 22px; height: 22px; border-radius: 7px; object-fit: cover; }

/* Memory */
.ram { display: grid; gap: 18px; }
.ram-row { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center; gap: 16px; }
.ram-row > span { font: 500 16px/22px var(--font); color: var(--t); }
.ram-bar { position: relative; height: 44px; border-radius: 10px; background: var(--panel); }
.ram-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; }
.ram-bar b { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; font: 600 18px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.ram-us i { width: 18.75%; background: var(--t-hi); }
.ram-us b { left: calc(18.75% + 14px); color: var(--t-hi); }
.ram-them i { width: 87.5%; background: var(--plate-hi); }
.ram-them b { right: calc(12.5% + 14px); color: var(--t-mut); }
.ram-note { font: 400 13px/18px var(--font); color: var(--t-faint); }

/* ── Everything else: one card — heading on the left, a tight grid of plates ── */
.more-card { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding: clamp(20px, 2.6vw, 32px); border-radius: 22px; background: var(--stage); }
@media (max-width: 1000px) { .more-card { grid-template-columns: 1fr; gap: 20px; } }
.more-head .label { display: block; margin-bottom: 12px; }
.more-head h3 { margin: 0; font: 600 clamp(24px, 2.4vw, 30px)/1.12 var(--display); letter-spacing: -.035em; color: var(--t-hi); }
.more-head .more { margin-top: 18px; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1000px) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .more-grid { grid-template-columns: 1fr; } }
.mi { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; background: var(--plate); min-width: 0; }
.mi-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--plate-hi); color: var(--t-mut); flex: none; }
.mi-ic .i { width: 17px; height: 17px; }
.mi b { display: block; font: var(--w-name) 14px/19px var(--font); color: var(--t-hi); }
.mi small { display: block; font: 400 12.5px/17px var(--font); color: var(--t-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi > span:last-child { min-width: 0; }

/* ── Download ──────────────────────────────────────────────────────────── */
/* Desktop builds three across (one universal macOS build), then phones and the web. */
.dl { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; margin-top: 36px; }
.dl a { grid-column: span 4; }
@media (max-width: 1000px) { .dl a { grid-column: span 6; } }
@media (max-width: 520px) { .dl a { grid-column: 1 / -1; } }
.dl a { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; background: var(--plate); transition: background-color .12s, transform .1s; }
.dl a:hover { background: var(--plate-hi); }
.dl a:active { transform: translateY(1px); }
/* Platform logos: the real marks, in their own colours — people find their
   platform by its logo before they read a word. */
.dl .ic { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: var(--plate-hi); color: #f5f6f8; flex: none; }
.dl a:hover .ic { background: #2a2e36; }
.dl .ic .i { width: 28px; height: 28px; }
.dl .ic.win { color: #1e90ff; }
.dl .ic.ios { color: #1a9bf5; }
.dl .ic.and { color: #3ddc84; }
.dl b { display: block; font: var(--w-strong) 16px/20px var(--font); color: var(--t-hi); }
.dl small { display: block; margin-top: 2px; font: 400 13px/18px var(--font); color: var(--t-mut); }
.dl .go { margin-left: auto; color: var(--t-faint); }
.dl .go .i { width: 16px; height: 16px; }
.dl a.mine { background: var(--plate-hi); }
/* The official App Store / Google Play badges, at one visible height. Apple's
   badge has no margin; Google's PNG carries 41px of clear space top and bottom
   (168px badge in a 250px image), so it is drawn larger and the clear space is
   pulled back with negative margins — both read as the same size. */
.stores { --badge-h: 52px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }
.stores-label { font: var(--w-strong) 14px/20px var(--font); color: var(--t-mut); margin-right: 4px; }
.store { display: block; border-radius: 9px; transition: transform .1s, opacity .12s; }
.store:hover { opacity: .88; }
.store:active { transform: translateY(1px); }
.store img { display: block; height: var(--badge-h); width: auto; }
.store.gp img { height: calc(var(--badge-h) * 250 / 168); margin: calc(var(--badge-h) * -41 / 168) calc(var(--badge-h) * -41 / 168); }
@media (max-width: 520px) { .stores { --badge-h: 46px; } .stores-label { flex-basis: 100%; } }
.dl-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 16px; }
.dl-note { font: 400 14px/22px var(--font); color: var(--t-mut); }
.dl-note a { color: var(--t); text-decoration: underline; text-decoration-color: var(--t-faint); text-underline-offset: 3px; }
.ph-badge img { width: 200px; height: auto; }
