/* ==========================================================================
   Waiz Earn — homepage: the crystal app chooser.
   Every moving layer is decorative, pointer-events:none and aria-hidden.
   Motion uses transform/opacity (plus a few small SVG strokes).
   ========================================================================== */

@property --acc { syntax: "<color>"; inherits: true; initial-value: #8FE3F2; }
@property --acc-2 { syntax: "<color>"; inherits: true; initial-value: #B8A4FF; }
@property --w-base { syntax: "<color>"; inherits: true; initial-value: #071526; }
html { transition: --acc 220ms ease, --acc-2 220ms ease, --w-base 700ms ease; }

/* ---------- Hero shell ---------- */
/* The first screen holds everything — heading, chooser, controls, community, resources —
   on desktop and on phones. Sizes follow the viewport height (svh, so a phone's browser
   bars never push the community button off screen); taller text simply lets it grow. */
.hero {
  --vh: 1vh;
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(-1 * var(--hdr-h)); padding-top: var(--hdr-h);
  background: var(--w-base);
  display: flex; flex-direction: column; min-height: calc(100 * var(--vh));
}
@supports (height: 1svh) { .hero { --vh: 1svh; } }
.hero-inner { position: relative; z-index: 2; flex: 1; width: var(--wide); margin-inline: auto;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(6px, calc(1.6 * var(--vh)), 26px) 0 clamp(10px, calc(2.2 * var(--vh)), 30px); }
:root[data-theme="light"] .hero { margin: 12px var(--gutter) 0; padding-top: 0; border-radius: 28px; box-shadow: var(--shadow-2); min-height: calc(100 * var(--vh) - var(--hdr-h) - 12px); }
:root[data-theme="light"] .hero-inner { width: min(100% - 2 * clamp(12px, 3vw, 40px), 1440px); }

/* Scene: two picture layers at most, a gradient underneath that is always usable. */
.scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.scene-base { position: absolute; inset: 0; background:
  radial-gradient(80% 60% at 50% 38%, color-mix(in srgb, var(--acc-2) 22%, transparent), transparent 70%),
  radial-gradient(120% 70% at 50% 100%, color-mix(in srgb, var(--acc) 18%, transparent), transparent 60%),
  linear-gradient(180deg, var(--w-base), #03060E 92%); }
.scene-layer { position: absolute; inset: 0; }
.scene-layer img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
@media (orientation: portrait) { .scene-layer img { object-position: 50% 30%; } }
.scene-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(3, 6, 14, .55) 0%, rgba(3, 6, 14, 0) 22%),
  radial-gradient(60% 34% at 50% 16%, rgba(3, 6, 14, .38), transparent 72%),
  linear-gradient(180deg, transparent 62%, color-mix(in srgb, var(--bg) 70%, transparent) 86%, var(--bg) 100%); }
:root[data-theme="light"] .scene-shade { background: linear-gradient(180deg, rgba(3, 6, 14, .45) 0%, rgba(3, 6, 14, 0) 24%), radial-gradient(60% 34% at 50% 16%, rgba(3, 6, 14, .38), transparent 72%), linear-gradient(180deg, transparent 62%, rgba(4, 8, 18, .8) 100%); }

/* Aurora drift: two thin veils at the edges, the centre stays calm. */
.fx { position: absolute; pointer-events: none; }
.fx-aurora { width: 70vw; height: 90%; top: -12%; opacity: .5; mix-blend-mode: screen; filter: none; will-change: transform; }
.fx-aurora.a1 { left: -28vw; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 30%, transparent), transparent 72%); animation: drift-a 22s ease-in-out infinite alternate; }
.fx-aurora.a2 { right: -30vw; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc-2) 26%, transparent), transparent 72%); animation: drift-b 27s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: translate3d(-4%, -2%, 0) rotate(-6deg) scale(1); } to { transform: translate3d(6%, 4%, 0) rotate(4deg) scale(1.08); } }
@keyframes drift-b { from { transform: translate3d(5%, 3%, 0) rotate(5deg) scale(1.05); } to { transform: translate3d(-5%, -3%, 0) rotate(-4deg) scale(.96); } }

/* Water caustics: masked bands drifting over the water, very faint. */
.fx-caustics { left: -10%; right: -10%; bottom: 0; height: 42%; opacity: .1; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent); will-change: transform; }
.fx-caustics.c1 { background: repeating-linear-gradient(176deg, transparent 0 18px, color-mix(in srgb, var(--acc) 70%, #fff) 19px 20px, transparent 21px 44px); animation: caustic-1 16s linear infinite alternate; }
.fx-caustics.c2 { opacity: .07; background: repeating-linear-gradient(183deg, transparent 0 26px, color-mix(in srgb, var(--acc-2) 70%, #fff) 27px 28px, transparent 29px 60px); animation: caustic-2 19s linear infinite alternate; }
@keyframes caustic-1 { from { transform: translate3d(-3%, 0, 0) skewX(-6deg); } to { transform: translate3d(3%, 6px, 0) skewX(4deg); } }
@keyframes caustic-2 { from { transform: translate3d(4%, 4px, 0) skewX(5deg); } to { transform: translate3d(-4%, 0, 0) skewX(-5deg); } }
.fx-motes { inset: 0; width: 100%; height: 100%; }
/* Pointer parallax for the veils (≤6px, fine pointers only, set by effects.js). */
.scene .parallax { translate: calc(var(--px, 0) * -6px) calc(var(--py, 0) * -4px); }

/* ---------- Heading ---------- */
.hero-copy { text-align: center; display: grid; justify-items: center; gap: clamp(4px, calc(1 * var(--vh)), 12px); }
.hero h1 {
  font-size: clamp(2.125rem, min(10.6vw, calc(5.2 * var(--vh))), 3.25rem); line-height: 1.06; letter-spacing: -.04em; font-weight: 700;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}
.hero h1 .h-l1, .hero h1 .h-l2 { display: block; }
.hero h1 .h-l2 { color: var(--acc); font-weight: 600; }
.hero-sub { color: #E6EDF6; font-size: clamp(.97rem, min(4.4vw, calc(2.3 * var(--vh))), 1.25rem); text-shadow: 0 1px 14px rgba(0, 0, 0, .6); }
@media (max-width: 719.98px) and (max-height: 879.98px) {
  .hero h1 { font-size: clamp(1.625rem, min(8.6vw, calc(4.7 * var(--vh))), 2.375rem); }
  .hero h1 .h-l1, .hero h1 .h-l2 { display: inline; }
}
@media (min-width: 720px) {
  .hero h1 { font-size: clamp(2.5rem, min(5vw, calc(7.3 * var(--vh))), 5rem); line-height: 1.04; }
  .hero h1 .h-l1, .hero h1 .h-l2 { display: inline; }
}

/* ---------- Chooser ---------- */
.chooser { position: relative; margin-top: clamp(8px, calc(2.2 * var(--vh)), 34px); }
/* Phones: the portrait card shrinks with the screen height so the whole first screen fits. */
.stage {
  --w: clamp(196px, min(78vw, 340px, calc(98.2 * var(--vh) - 491px)), 340px); --gap: 14px; --side-x: calc(var(--w) + var(--gap));
  --c-tall: calc(var(--w) * .052);
  position: relative; height: var(--stage-h, calc(var(--w) * 848 / 672 + 4px));
  touch-action: pan-y pinch-zoom;
}
@media (min-width: 600px) { .stage { --w: clamp(220px, min(56vw, 380px, calc(98.2 * var(--vh) - 491px)), 380px); --gap: 22px; } }
.ch-track { position: absolute; inset: 0; }

.app-card {
  /* An app without its own world (a future registry row) borrows the page's lights. */
  --card-base: var(--w-base); --c-acc: var(--acc); --c-acc2: var(--acc-2);
  position: absolute; left: 50%; top: 0; width: 0; height: 0;
  transition: transform 500ms var(--ease), opacity 400ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.app-card[data-app="learnify"] { --card-base: #120B27; --c-acc: #D7A5FF; --c-acc2: #8B6DFF; }
.app-card[data-app="hearnify"] { --card-base: #061F24; --c-acc: #8AF2D7; --c-acc2: #6DD8FF; }
.app-card[data-app="paldearn"] { --card-base: #08132D; --c-acc: #9CC4FF; --c-acc2: #FFD18A; }
.app-card[data-pos="active"] { z-index: 3; }
.app-card[data-pos="prev"] { transform: translate3d(calc(-1 * var(--side-x)), 0, 0); z-index: 2; cursor: pointer; }
.app-card[data-pos="next"] { transform: translate3d(var(--side-x), 0, 0); z-index: 2; cursor: pointer; }
.app-card[data-pos="far"] { opacity: 0; pointer-events: none; z-index: 1; visibility: hidden; transition: transform 500ms var(--ease), opacity 300ms, visibility 0s 500ms; }
.app-card[data-pos="far"][data-side="left"] { transform: translate3d(calc(-2 * var(--side-x)), 0, 0); }
.app-card[data-pos="far"][data-side="right"] { transform: translate3d(calc(2 * var(--side-x)), 0, 0); }

/* Compositions share one recipe: a chamfered ring drawn in code, the art clipped inside it. */
.cw, .ct { position: absolute; left: 0; top: 0; transition: opacity 360ms var(--ease), transform 500ms var(--ease), visibility 0s; }
.ct { width: var(--w); translate: -50% 0; }
.cw { display: none; }
.shell { position: relative; --c: 16px; --bw: 1.5px; }
.ring, .frame-in { position: absolute; }
.ring { inset: 0; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  background: linear-gradient(140deg, rgba(255, 255, 255, .9), color-mix(in srgb, var(--c-acc) 92%, transparent) 26%, rgba(180, 190, 255, .38) 52%, color-mix(in srgb, var(--c-acc2) 90%, transparent) 82%, rgba(255, 255, 255, .7)); }
.frame-in { inset: var(--bw); --ci: calc(var(--c) - .62px);
  clip-path: polygon(var(--ci) 0, calc(100% - var(--ci)) 0, 100% var(--ci), 100% calc(100% - var(--ci)), calc(100% - var(--ci)) 100%, var(--ci) 100%, 0 calc(100% - var(--ci)), 0 var(--ci));
  background: var(--card-base); overflow: hidden; }
.art { position: absolute; left: 0; top: 0; width: 100%; transform: scale(1.035); transform-origin: 50% 50%; }
.art picture, .art img { width: 100%; height: 100%; }
.art img { object-fit: fill; }
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* Tall (portrait) composition: art at its natural ratio on top, a text panel that grows. */
.ct .shell { --c: var(--c-tall); min-height: calc(var(--w) * 848 / 672); display: grid; }
.ct .frame-in { display: grid; }
.ct .art { aspect-ratio: 672 / 848; height: auto; }
.ct .panel-fade { position: absolute; left: 0; right: 0; top: calc(var(--w) * 848 / 672 * .5); bottom: 0;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--card-base) 82%, transparent) 30%, var(--card-base) 62%); }
.ct .logo { position: absolute; left: 50%; top: calc(var(--w) * 848 / 672 * .335); width: calc(var(--w) * .46); height: calc(var(--w) * .4); translate: -50% -50%; object-fit: contain; }
.card-body { position: relative; z-index: 2; display: grid; justify-items: center; align-content: end; text-align: center; gap: 6px; }
.ct .card-body { grid-row: 1; min-height: calc(var(--w) * 848 / 672); padding: calc(var(--w) * 848 / 672 * .53) clamp(16px, 6%, 24px) clamp(16px, 6%, 24px); }
.card-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, calc(var(--w) * .092), 2.125rem); line-height: 1.08; letter-spacing: -.03em; color: #F7F9FD; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.card-sub { color: #D3DDEA; font-size: clamp(1rem, .95rem + .25vw, 1.125rem); line-height: 1.35; }
.card-actions { display: grid; justify-items: center; gap: 4px; width: 100%; margin-top: clamp(8px, calc(1.4 * var(--vh)), 14px); }
.ct .card-actions .btn { width: 100%; }
.card-actions .btn { white-space: normal; }
/* A closed app (maintenance / coming soon) keeps the open card's height: badge + one line + link fit the space of
   the Open button + Explore link, and the line never wraps (2026-11-12). */
.card-status { display: grid; gap: 4px; justify-items: center; width: 100%; margin-top: clamp(8px, calc(1.4 * var(--vh)), 14px); }
.card-status .badge { min-height: 26px; }
.card-status p { color: #D3DDEA; font-size: .875rem; line-height: 1.35; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-status .link-arrow { min-height: 36px; }
.card-status a.badge { text-decoration: none; }
/* Portrait cards: the status takes exactly the Open button's place (the badge links to the status page). */
.ct .card-actions, .ct .card-status { min-height: 48px; align-content: center; }
.ct .card-status .link-arrow { display: none; }
.ct .card-status p { font-size: .8125rem; line-height: 1.3; }
.app-card .btn-cta { min-height: 50px; font-size: 1.0625rem; }
/* The portrait card's action scales with the card, so "Open in Telegram" stays on one line on small phones. */
.app-card .ct .btn-cta { min-height: 46px; gap: 8px; padding: 0 clamp(10px, calc(var(--w) * .05), 20px); font-size: clamp(.875rem, calc(var(--w) * .056), 1.0625rem); }
.app-card .ct .btn-cta .ic { width: 18px; height: 18px; }

/* Logo: a breathing float, never a spin. */
.logo { z-index: 1; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .55)) drop-shadow(0 0 18px color-mix(in srgb, var(--c-acc) 35%, transparent)); will-change: transform; }
.app-card[data-pos="active"] .logo { animation: float 6.5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -5px, 0); } }

/* Crystal rim: a short highlight that glides around the chamfered edge. */
.rim { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 4; }
.rim path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rim .bloom { stroke: color-mix(in srgb, var(--c-acc) 80%, #fff); stroke-width: 6; opacity: .28; stroke-dasharray: 70 930; }
.rim .core { stroke: #FFFFFF; stroke-width: 1.6; opacity: .9; stroke-dasharray: 46 954; }
.app-card[data-pos="active"] .rim path { animation: rim 8.5s linear infinite; }
.app-card .rim .core { animation-delay: -.12s; }
@keyframes rim { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1000; } }

/* Portal energy: a light segment travelling around the inner arch. */
.portal-line { fill: none; stroke-linecap: round; }
.portal-line.glow { stroke: color-mix(in srgb, var(--c-acc) 85%, #fff); stroke-width: 10; opacity: .22; stroke-dasharray: 90 910; }
.portal-line.core { stroke: #FFFFFF; stroke-width: 2.4; opacity: .85; stroke-dasharray: 56 944; }
.app-card[data-pos="active"] .portal-line { animation: portal 14s linear infinite; }
@keyframes portal { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }

/* Per-world accents: common machinery, different parameters. */
.portal-fx { position: absolute; inset: 0; pointer-events: none; }
.portal-fx i { position: absolute; display: block; opacity: 0; will-change: transform, opacity; }
.app-card[data-pos="active"] .portal-fx i { animation-play-state: running; }
/* Hearnify: gently breathing teal light in the opening. */
.app-card[data-app="hearnify"] .portal-fx i:nth-child(1) { left: 14%; top: 14%; width: 22%; height: 58%; border-radius: 50%; background: radial-gradient(closest-side, rgba(138, 242, 215, .38), transparent); animation: breathe 5.2s ease-in-out infinite paused; }
.app-card[data-app="hearnify"] .portal-fx i:nth-child(n+2) { width: 3px; height: 3px; border-radius: 50%; background: #BFFBEA; box-shadow: 0 0 8px 2px rgba(138, 242, 215, .7); animation: rise-dot 7s linear infinite paused; }
.app-card[data-app="hearnify"] .portal-fx i:nth-child(2) { left: 20%; top: 66%; animation-delay: -1s; }
.app-card[data-app="hearnify"] .portal-fx i:nth-child(3) { left: 29%; top: 70%; animation-delay: -3.4s; }
.app-card[data-app="hearnify"] .portal-fx i:nth-child(4) { left: 35%; top: 64%; animation-delay: -5.2s; }
/* Learnify: lilac wisps drifting upward. */
.app-card[data-app="learnify"] .portal-fx i { width: 2px; height: 34px; border-radius: 2px; background: linear-gradient(180deg, transparent, rgba(215, 165, 255, .85), transparent); filter: blur(.4px); animation: wisp 6s ease-in infinite paused; }
.app-card[data-app="learnify"] .portal-fx i:nth-child(1) { left: 18%; top: 62%; animation-delay: -.6s; }
.app-card[data-app="learnify"] .portal-fx i:nth-child(2) { left: 24%; top: 68%; animation-delay: -2.1s; height: 26px; }
.app-card[data-app="learnify"] .portal-fx i:nth-child(3) { left: 30%; top: 64%; animation-delay: -3.7s; }
.app-card[data-app="learnify"] .portal-fx i:nth-child(4) { left: 35%; top: 70%; animation-delay: -4.9s; height: 22px; }
/* Pald Earn: blue edge glints with sparse warm accents. */
.app-card[data-app="paldearn"] .portal-fx i { width: 10px; height: 10px; background: conic-gradient(from 45deg, transparent 0 10%, #fff 12% 13%, transparent 15% 35%, #fff 37% 38%, transparent 40% 60%, #fff 62% 63%, transparent 65% 85%, #fff 87% 88%, transparent 90%); border-radius: 50%; animation: glint 4.6s ease-in-out infinite paused; }
.app-card[data-app="paldearn"] .portal-fx i:nth-child(1) { left: 9.5%; top: 18%; animation-delay: -.4s; filter: drop-shadow(0 0 4px #9CC4FF); }
.app-card[data-app="paldearn"] .portal-fx i:nth-child(2) { left: 39%; top: 30%; animation-delay: -1.9s; filter: drop-shadow(0 0 4px #9CC4FF); }
.app-card[data-app="paldearn"] .portal-fx i:nth-child(3) { left: 21%; top: 6%; animation-delay: -3.1s; filter: drop-shadow(0 0 4px #FFD18A); width: 7px; height: 7px; }
.app-card[data-app="paldearn"] .portal-fx i:nth-child(4) { left: 31%; top: 74%; animation-delay: -2.4s; width: 6px; height: 6px; border-radius: 50%; background: #FFD18A; box-shadow: 0 0 10px 3px rgba(255, 209, 138, .7); animation-name: spark; }
@keyframes breathe { 0%, 100% { opacity: .35; transform: scale(.94); } 50% { opacity: .9; transform: scale(1.06); } }
@keyframes rise-dot { 0% { opacity: 0; transform: translate3d(0, 0, 0); } 15% { opacity: .9; } 80% { opacity: .6; } 100% { opacity: 0; transform: translate3d(4px, -90px, 0); } }
@keyframes wisp { 0% { opacity: 0; transform: translate3d(0, 20px, 0) scaleY(.6); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate3d(3px, -110px, 0) scaleY(1.2); } }
@keyframes glint { 0%, 70%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 80% { opacity: 1; transform: scale(1.2) rotate(30deg); } 90% { opacity: .4; transform: scale(.8) rotate(45deg); } }
@keyframes spark { 0%, 100% { opacity: 0; transform: translate3d(0, 0, 0); } 30% { opacity: .9; } 70% { opacity: .5; transform: translate3d(-3px, -40px, 0); } }

/* Shine that follows a fine pointer across the active card. */
.shine { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 300ms;
  background: radial-gradient(40% 55% at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .14), transparent 70%); mix-blend-mode: screen; }
.app-card[data-pos="active"]:hover .shine { opacity: 1; }

/* Side cards: dimmed slightly, symbol and title only. */
.dim { position: absolute; inset: 0; z-index: 3; background: rgba(2, 5, 12, .42); opacity: 0; transition: opacity 400ms var(--ease); pointer-events: none; }
.app-card:not([data-pos="active"]) .dim { opacity: 1; }
.app-card:not([data-pos="active"]) .card-sub,
.app-card:not([data-pos="active"]) .card-actions,
.app-card:not([data-pos="active"]) .card-status { opacity: 0; visibility: hidden; transition: opacity 160ms, visibility 0s 160ms; }
.app-card[data-pos="active"] .card-sub, .app-card[data-pos="active"] .card-actions, .app-card[data-pos="active"] .card-status { transition: opacity 260ms 180ms; }
@media (hover: hover) { .app-card[data-pos="prev"]:hover .dim, .app-card[data-pos="next"]:hover .dim { opacity: .55; } }

/* ---------- Desktop: landscape active card, portrait neighbours ---------- */
@media (min-width: 1024px) {
  /* Desktop: the landscape card takes the height that is left after the heading, the
     controls and the resource row (a linear fit of those, all svh-based), capped by width. */
  .stage {
    --H: clamp(236px, min(calc(67.4 * var(--vh) - 206px), calc(min(50vw, 760px) * 608 / 1280)), 361px);
    --W: calc(var(--H) * 1280 / 608);
    --w: min(clamp(170px, 17vw, 250px), calc(var(--H) * .74)); --overlap: calc(var(--w) * .22);
    --side-x: calc(var(--W) / 2 + var(--w) / 2 - var(--overlap));
    --c-tall: calc(var(--w) * .052);
    height: calc(max(var(--H), var(--w) * 848 / 672) + 28px);
  }
  .app-card { top: 50%; }
  .ct { translate: -50% -50%; }
  .cw { display: block; width: var(--W); translate: -50% -50%; }
  .app-card[data-pos="prev"] { transform: perspective(1400px) translate3d(calc(-1 * var(--side-x)), 16px, 0) rotateY(4deg) scale(.97); }
  .app-card[data-pos="next"] { transform: perspective(1400px) translate3d(var(--side-x), 16px, 0) rotateY(-4deg) scale(.97); }
  /* Which composition shows: the active card is landscape, the others portrait. */
  .app-card[data-pos="active"] .ct { opacity: 0; visibility: hidden; transform: scale(.9); transition: opacity 260ms var(--ease), transform 500ms var(--ease), visibility 0s 260ms; }
  .app-card:not([data-pos="active"]) .cw { opacity: 0; visibility: hidden; transform: scale(.42); transition: opacity 240ms var(--ease), transform 500ms var(--ease), visibility 0s 240ms; }
  .ct .card-body { padding: calc(var(--w) * 848 / 672 * .7) 12px 14px; }
  .ct .card-title { font-size: 1.5rem; }
  .ct .card-sub { font-size: .9375rem; }
  .app-card:not([data-pos="active"]) .ct .card-sub { opacity: 1; visibility: visible; }
}
.cw .shell { --c: calc(var(--W) * .046); width: 100%; aspect-ratio: 1280 / 608; }
.cw .shell-3d { position: absolute; inset: 0; transform: perspective(1600px) rotateX(calc(1.6deg + var(--py, 0) * -1.4deg)) rotateY(calc(var(--px, 0) * 2.4deg)); transform-origin: 50% 60%; transition: transform 600ms var(--ease); }
.cw .art { height: 100%; }
.cw .logo { position: absolute; left: 25.8%; top: 43.5%; width: 25%; height: 52%; translate: -50% -50%; object-fit: contain; }
.cw .panel-fade { position: absolute; inset: 0 0 0 48%; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--card-base) 55%, transparent) 40%, color-mix(in srgb, var(--card-base) 70%, transparent)); }
.cw .card-body { position: absolute; z-index: 5; left: 56%; top: 0; bottom: 0; width: 38%; justify-items: start; align-content: center; text-align: left; gap: clamp(2px, calc(var(--H) * .016), 6px); padding: clamp(12px, calc(var(--H) * .06), 24px) 0; }
.cw .card-title { font-size: clamp(1.875rem, calc(var(--H) * .122), 2.75rem); }
.cw .card-actions { justify-items: start; margin-top: clamp(8px, calc(var(--H) * .045), 18px); gap: 2px; }
.cw .card-actions .link-arrow { min-height: 36px; }
.cw .card-actions .btn { min-width: min(100%, 250px); }
.cw .card-status { justify-items: start; }

/* ---------- Arrows, dots, rotation control ---------- */
.ch-arrow {
  position: absolute; z-index: 6; top: calc(var(--w) * 848 / 672 * .36); translate: 0 -50%;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(5, 9, 20, .72); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .8);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast), background-color var(--t-fast);
}
.ch-arrow .ic { width: 22px; height: 22px; }
.ch-arrow.is-prev { left: calc(50% - var(--w) / 2 - 24px); }
.ch-arrow.is-next { right: calc(50% - var(--w) / 2 - 24px); }
@media (max-width: 380px) { .ch-arrow { width: 44px; height: 44px; } .ch-arrow.is-prev { left: calc(50% - var(--w) / 2 - 20px); } .ch-arrow.is-next { right: calc(50% - var(--w) / 2 - 20px); } }
.ch-arrow:hover { border-color: color-mix(in srgb, var(--acc) 70%, #fff); background: rgba(10, 18, 34, .85); }
.ch-arrow:active { transform: scale(.94); }
@media (min-width: 1024px) {
  .ch-arrow { top: 50%; }
  .ch-arrow.is-prev { left: calc(50% - var(--side-x) - var(--w) / 2 - 64px); }
  .ch-arrow.is-next { right: calc(50% - var(--side-x) - var(--w) / 2 - 64px); }
}
.ch-controls { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: clamp(2px, calc(1 * var(--vh)), 16px); }
.ch-dots { display: flex; align-items: center; }
.ch-dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; border-radius: 50%; }
.ch-dot span { width: 7px; height: 7px; border-radius: 50%; background: rgba(230, 237, 246, .55); transition: transform var(--t-med) var(--ease), background-color var(--t-med), box-shadow var(--t-med); }
.ch-dot[aria-current="true"] span { background: var(--acc); transform: scale(1.45); box-shadow: 0 0 12px 2px color-mix(in srgb, var(--acc) 55%, transparent); }
.ch-dot:hover span { background: #fff; }
.ch-play { width: 48px; height: 48px; margin-left: 10px; border-color: rgba(255, 255, 255, .3); background: rgba(5, 9, 20, .72); color: #fff; }
.ch-play .ic { width: 18px; height: 18px; }
.ch-play .i-play { display: none; }
.ch-play[data-state="paused"] .i-play { display: block; }
.ch-play[data-state="paused"] .i-pause { display: none; }
.ch-prep {
  position: absolute; z-index: 7; left: 50%; top: -14px; translate: -50% -100%;
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill);
  background: rgba(5, 9, 20, .8); border: 1px solid rgba(255, 255, 255, .18); color: #E6EDF6; font-size: .8125rem; font-weight: 550; white-space: nowrap;
}
.ch-prep::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: var(--acc); animation: spin 900ms linear infinite; }
.ch-prep[data-tone="done"]::before { animation: none; border-color: var(--acc); background: var(--acc); }
.ch-prep[data-tone="warn"]::before { animation: none; border-color: #FFD18A; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Community pill + note + resources ---------- */
.hero-actions { display: grid; justify-items: center; gap: clamp(4px, calc(1 * var(--vh)), 14px); margin-top: clamp(4px, calc(1.1 * var(--vh)), 22px); }
.pill-community {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: min(100%, 360px); min-height: clamp(46px, calc(6 * var(--vh)), 54px); padding: 0 26px; border-radius: var(--r-pill);
  color: #F5F7FC; font-family: var(--f-display); font-weight: 700; font-size: 1.1875rem; letter-spacing: -.01em; text-decoration: none;
  background: linear-gradient(rgba(8, 13, 28, .82), rgba(8, 13, 28, .82)) padding-box, linear-gradient(90deg, var(--acc), rgba(255, 255, 255, .6), var(--acc-2)) border-box;
  border: 1.5px solid transparent; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 12px 34px -14px color-mix(in srgb, var(--acc) 60%, transparent);
  overflow: hidden; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-med);
}
@media (min-width: 720px) { .pill-community { width: min(100%, 460px); min-height: clamp(46px, calc(6 * var(--vh)), 58px); font-size: clamp(1.125rem, calc(2.3 * var(--vh)), 1.375rem); } }
.pill-community .ic { width: 22px; height: 22px; }
.pill-community .go { width: 20px; height: 20px; transition: transform var(--t-fast) var(--ease); }
.pill-community::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%); transform: translateX(-120%); }
.pill-community:hover::after, .pill-community:focus-visible::after { transform: translateX(120%); transition: transform 420ms var(--ease); }
@media (hover: hover) { .pill-community:hover { transform: translateY(-2px); } }
.pill-community:hover .go { transform: translateX(4px); }
.pill-community:active { transform: scale(.98); }
.hero-note { color: #D6E0EC; font-size: clamp(.8125rem, calc(1.75 * var(--vh)), .9375rem); line-height: 1.4; text-align: center; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.hero-note a { color: #FFFFFF; font-weight: 600; white-space: nowrap; }
.resources { margin: clamp(8px, calc(1.8 * var(--vh)), 30px) auto 0; width: min(100%, 1220px); border-radius: var(--r-xl); border: 1px solid rgba(186, 201, 218, .2); background: rgba(6, 10, 22, .84); padding: 4px; }
/* One row of three on every width: icon tiles on phones, full links from 640 px. */
.resources ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.resources li + li { border-left: 1px solid rgba(186, 201, 218, .14); }
.resources .res-link { min-height: clamp(50px, calc(6.8 * var(--vh)), 66px); padding-block: 6px; }
@media (max-width: 639.98px) {
  .resources { border-radius: 20px; }
  .resources .res-link { flex-direction: column; justify-content: center; gap: 4px; padding: 6px 4px; min-height: 0; text-align: center; }
  .resources .res-ic { width: 30px; height: 30px; border-radius: 10px; }
  .resources .res-ic .ic { width: 17px; height: 17px; }
  .resources .res-tx { flex: none; justify-items: center; }
  .resources .res-tx b { font-size: .78rem; line-height: 1.2; hyphens: auto; }
  .resources .res-tx small { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .resources .res-go { display: none; }
}

/* ---------- Home sections ---------- */
.home-section { padding-top: clamp(48px, 7vw, 96px); }
.home-section .section-head h2 { max-width: 30ch; }
.rv-preview { display: grid; gap: 18px; align-items: center; }
@media (min-width: 860px) { .rv-preview { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; } }
.rv-preview h3 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); }
.rv-preview p { color: var(--text-2); max-width: 62ch; }
.rv-preview .form-actions { gap: 12px; }

/* ---------- Effects settings ---------- */
:root[data-effects="reduced"] .fx-caustics, :root[data-effects="reduced"] .fx-motes, :root[data-effects="reduced"] .portal-fx { display: none; }
:root[data-effects="reduced"] .fx-aurora { animation-duration: 40s, 48s; }
:root[data-effects="off"] .fx, :root[data-effects="off"] .rim, :root[data-effects="off"] .portal-fx, :root[data-effects="off"] .shine, :root[data-effects="off"] .portal-line { display: none; }
:root[data-effects="off"] .app-card .logo { animation: none; }
:root[data-contrast="high"] .fx, :root[data-contrast="high"] .rim .bloom, :root[data-contrast="high"] .portal-fx, :root[data-contrast="high"] .shine, :root[data-contrast="high"] .portal-line.glow { display: none; }
:root[data-contrast="high"] .resources, :root[data-contrast="high"] .ch-arrow, :root[data-contrast="high"] .ch-play { background: #000; backdrop-filter: none; border-color: #fff; }
:root[data-contrast="high"] .scene-shade { background: linear-gradient(180deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .35) 30%, rgba(0, 0, 0, .55) 70%, #000); }
:root[data-contrast="high"] .logo { filter: none; }

/* Reduced motion: flat cards, no parallax, no drifting light; a still design. */
@media (prefers-reduced-motion: reduce) {
  .fx, .rim, .portal-fx, .shine, .portal-line, .fx-motes { display: none !important; }
  .cw .shell-3d { transform: none !important; }
  .app-card[data-pos="prev"], .app-card[data-pos="next"] { rotate: none; }
}
:root[data-motion="reduced"] .fx, :root[data-motion="reduced"] .rim, :root[data-motion="reduced"] .portal-fx, :root[data-motion="reduced"] .shine, :root[data-motion="reduced"] .portal-line { display: none !important; }
:root[data-motion="reduced"] .cw .shell-3d { transform: none !important; }
@media (pointer: coarse) { .cw .shell-3d { transform: none; } }

/* ---------- Text enlarged / long labels: a simpler stacked chooser ---------- */
.chooser.is-stacked .stage { height: auto; display: grid; gap: 18px; justify-items: center; }
.chooser.is-stacked .ch-track { position: static; display: grid; gap: 18px; justify-items: center; }
.chooser.is-stacked .app-card { position: relative; left: auto; top: auto; width: var(--w); height: auto; transform: none !important; opacity: 1 !important; visibility: visible !important; }
.chooser.is-stacked .cw { display: none; }
.chooser.is-stacked .ct { position: relative; translate: none; opacity: 1 !important; visibility: visible !important; transform: none !important; }
.chooser.is-stacked .dim { display: none; }
.chooser.is-stacked .card-sub, .chooser.is-stacked .card-actions, .chooser.is-stacked .card-status { opacity: 1 !important; visibility: visible !important; }
.chooser.is-stacked .ch-arrow, .chooser.is-stacked .ch-controls { display: none; }
@media (min-width: 900px) { .chooser.is-stacked .ch-track { grid-template-columns: repeat(3, var(--w)); } }

/* ---------- No JavaScript: three portrait cards, every link usable ---------- */
html:not(.js) .stage { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 10px; margin-inline: calc(-1 * var(--gutter)); }
html:not(.js) .ch-track { position: static; display: flex; gap: 16px; width: max-content; margin-inline: auto; }
html:not(.js) .app-card { position: relative; left: auto; top: auto; width: var(--w); height: auto; transform: none !important; opacity: 1 !important; visibility: visible !important; scroll-snap-align: center; }
html:not(.js) .cw { display: none !important; }
html:not(.js) .ct { position: relative; translate: none !important; opacity: 1 !important; visibility: visible !important; transform: none !important; }
html:not(.js) .dim, html:not(.js) .ch-arrow, html:not(.js) .ch-controls { display: none; }
html:not(.js) .card-sub, html:not(.js) .card-actions, html:not(.js) .card-status { opacity: 1 !important; visibility: visible !important; }
@media (min-width: 1024px) { html:not(.js) .stage { --w: min(30vw, 340px); } }

/* Drag feedback: the track follows a horizontal swipe a little, then settles. */
.ch-track { transition: translate 320ms var(--ease); }
.chooser.is-dragging .ch-track { transition: none; }
.chooser.is-dragging .app-card { transition: none; }
/* Frames too slow on this device: drop the costliest ornaments for the visit. */
:root.fx-throttled .fx-caustics, :root.fx-throttled .fx-motes { display: none; }
@media (max-width: 859.98px) {
  .rv-preview .form-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-preview .form-actions .btn { padding: 0 12px; white-space: normal; }
}
/* Operator badge (e.g. "New") from the registry: a quiet label, not a promise. */
.card-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; margin-bottom: 4px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: color-mix(in srgb, var(--c-acc) 22%, rgba(5, 9, 20, .6)); border: 1px solid color-mix(in srgb, var(--c-acc) 60%, transparent); }
.app-card:not([data-pos="active"]) .card-badge { display: none; }
/* On the portrait card the badge floats just above the title, so a labelled app is exactly as tall as the others. */
.ct .card-badge { position: absolute; z-index: 3; left: 50%; top: calc(var(--w) * 848 / 672 * .53 - 32px); translate: -50% 0; margin: 0; white-space: nowrap; }
/* Phones: a neighbour only peeks in from the edge, so its logo is never visible there; it loads when the card is warmed or chosen. */
@media (max-width: 1023.98px) { .app-card:not([data-pos="active"]) .logo { display: none; } }

/* ==========================================================================
   Pass 2 (2026-11-04): more life in the scene and on the cards.
   Everything here is decorative (aria-hidden, pointer-events:none), animates
   transform/opacity on the compositor, and switches off with Effects, reduced
   motion and high contrast — then the page is the same, only still.
   ========================================================================== */

/* Starlight: two tiled layers of tiny stars that twinkle out of step. */
.fx-stars { inset: 0 0 42% 0; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, #000 25%, transparent); mask-image: linear-gradient(180deg, #000 25%, transparent); }
.fx-stars.s1 { background-image:
    radial-gradient(1.3px 1.3px at 12% 18%, #FFFFFF 60%, transparent), radial-gradient(1px 1px at 27% 62%, #FFFFFF 60%, transparent),
    radial-gradient(1.5px 1.5px at 44% 8%, #FFFFFF 60%, transparent), radial-gradient(1px 1px at 61% 41%, #FFFFFF 60%, transparent),
    radial-gradient(1.4px 1.4px at 78% 22%, #FFFFFF 60%, transparent), radial-gradient(1px 1px at 91% 70%, #FFFFFF 60%, transparent),
    radial-gradient(1.2px 1.2px at 5% 84%, #FFFFFF 60%, transparent);
  background-size: 260px 220px; animation: twinkle 4.8s ease-in-out infinite alternate; }
.fx-stars.s2 { background-image:
    radial-gradient(1.6px 1.6px at 18% 30%, rgb(var(--acc-rgb)) 55%, transparent), radial-gradient(1.1px 1.1px at 52% 74%, #FFFFFF 60%, transparent),
    radial-gradient(1.8px 1.8px at 70% 12%, rgb(var(--acc2-rgb)) 55%, transparent), radial-gradient(1.2px 1.2px at 88% 48%, #FFFFFF 60%, transparent),
    radial-gradient(1px 1px at 36% 90%, #FFFFFF 60%, transparent);
  background-size: 370px 300px; background-position: 120px 60px; animation: twinkle 6.6s ease-in-out -2.2s infinite alternate; }
@keyframes twinkle { from { opacity: .2; } to { opacity: .9; } }

/* Light rays falling from the top of the sky, swaying slowly. */
.fx-rays { left: calc(50% - 75vmax); width: 150vmax; top: -30%; height: 118%; transform-origin: 50% 0;
  background: repeating-conic-gradient(from 180deg at 50% 0%, rgb(var(--acc-rgb) / 0) 0deg, rgb(var(--acc-rgb) / .1) 3deg, rgb(var(--acc-rgb) / 0) 7deg 15deg);
  -webkit-mask-image: radial-gradient(55% 72% at 50% 0%, #000 18%, transparent 74%); mask-image: radial-gradient(55% 72% at 50% 0%, #000 18%, transparent 74%);
  mix-blend-mode: screen; opacity: .6; animation: rays 26s ease-in-out infinite alternate; }
@keyframes rays { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }

/* A holographic grid laid on the water, running toward the viewer. */
.fx-grid { left: -30%; right: -30%; bottom: 7%; height: 30%; overflow: hidden; perspective: 340px; perspective-origin: 50% 0%; opacity: .45; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 42%, #000 68%, transparent); mask-image: linear-gradient(180deg, transparent, #000 42%, #000 68%, transparent); }
.fx-grid i { position: absolute; left: 0; right: 0; bottom: 0; height: 280%; transform-origin: 50% 100%; transform: rotateX(64deg);
  background-image: linear-gradient(rgb(var(--acc-rgb) / .3) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--acc-rgb) / .22) 1px, transparent 1px);
  background-size: 56px 56px; animation: grid-run 3.4s linear infinite; will-change: transform; }
@keyframes grid-run { from { transform: rotateX(64deg) translate3d(0, 0, 0); } to { transform: rotateX(64deg) translate3d(0, 56px, 0); } }

/* Shooting stars, rare and quick. */
.fx-comets { inset: 0 0 45% 0; overflow: hidden; }
.fx-comets i { position: absolute; top: 9%; right: 9%; width: 140px; height: 1.5px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, #FFFFFF, rgba(255, 255, 255, .85) 25%, rgba(255, 255, 255, 0)); box-shadow: 0 0 8px rgba(255, 255, 255, .55);
  animation: comet 11s linear infinite; }
.fx-comets i:nth-child(2) { top: 22%; right: 33%; width: 96px; animation-duration: 13s; animation-delay: -4.2s; }
.fx-comets i:nth-child(3) { top: 4%; right: 60%; width: 120px; animation-duration: 17s; animation-delay: -8.4s; }
@keyframes comet { 0% { transform: translate3d(0, 0, 0) rotate(-28deg); opacity: 0; } 1% { opacity: 1; } 7% { transform: translate3d(-34vw, 18vw, 0) rotate(-28deg); opacity: 0; } 100% { transform: translate3d(-34vw, 18vw, 0) rotate(-28deg); opacity: 0; } }

/* Crystal shards drifting beside the chooser, a little deeper in the parallax than the veils. */
.fx-shards { inset: 0; }
.scene .parallax-deep { translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -9px); }
.fx-shards i { position: absolute; width: 13px; height: 21px; filter: drop-shadow(0 0 6px rgb(var(--acc-rgb) / .85)); animation: shard 9s ease-in-out infinite alternate; }
.fx-shards i::before { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%);
  background: linear-gradient(160deg, #FFFFFF, rgb(var(--acc-rgb) / .9) 45%, rgb(var(--acc2-rgb) / .6)); }
.fx-shards i:nth-child(1) { left: 8%; top: 31%; }
.fx-shards i:nth-child(2) { left: 15%; top: 67%; width: 9px; height: 14px; animation-duration: 11s; animation-delay: -3s; }
.fx-shards i:nth-child(3) { left: 4%; top: 52%; width: 16px; height: 26px; animation-duration: 13s; animation-delay: -6s; }
.fx-shards i:nth-child(4) { right: 7%; top: 27%; animation-duration: 10s; animation-delay: -2s; }
.fx-shards i:nth-child(5) { right: 14%; top: 61%; width: 10px; height: 16px; animation-duration: 12s; animation-delay: -5s; }
.fx-shards i:nth-child(6) { right: 4%; top: 46%; width: 15px; height: 24px; animation-duration: 14s; animation-delay: -8s; }
@keyframes shard { from { transform: translate3d(0, 0, 0) rotate(-8deg); } to { transform: translate3d(0, -22px, 0) rotate(12deg); } }
@media (max-width: 719.98px) { .fx-shards i:nth-child(n+4) { display: none; } .fx-shards i:nth-child(1) { left: 3%; top: 24%; } .fx-shards i:nth-child(3) { left: auto; right: 3%; top: 30%; } .fx-rays { opacity: .45; } .fx-grid { height: 24%; } }

/* A light platform under the cards: a breathing glow, a ring that spreads, a dashed orbit. */
.stage-floor { position: absolute; z-index: 0; left: 50%; bottom: -16px; width: calc(var(--w) * 1.25); height: 44px; translate: -50% 0; pointer-events: none; }
@media (min-width: 1024px) { .stage-floor { width: calc(var(--W) * 1.15); height: 66px; bottom: -22px; } }
.stage-floor i { position: absolute; inset: 0; border-radius: 50%; }
.stage-floor i:nth-child(1) { background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 46%, transparent), transparent 76%); animation: floor-breathe 4.5s ease-in-out infinite; }
.stage-floor i:nth-child(2) { border: 1.5px solid color-mix(in srgb, var(--acc) 75%, transparent); opacity: 0; animation: floor-ring 3.6s ease-out infinite; }
.stage-floor i:nth-child(3) { inset: auto 0; top: 50%; aspect-ratio: 1; translate: 0 -50%; border: 1.5px dashed color-mix(in srgb, var(--acc-2) 70%, transparent);
  transform: rotateX(84deg); animation: floor-spin 28s linear infinite; }
@keyframes floor-breathe { 0%, 100% { opacity: .55; transform: scaleX(.92); } 50% { opacity: 1; transform: scaleX(1.04); } }
@keyframes floor-ring { 0% { opacity: .9; transform: scale(.45); } 100% { opacity: 0; transform: scale(1.08); } }
@keyframes floor-spin { from { transform: rotateX(84deg) rotate(0deg); } to { transform: rotateX(84deg) rotate(360deg); } }

/* Cards: a holographic foil that drifts across the active card. */
.holo { position: absolute; inset: -40%; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 500ms var(--ease);
  background: linear-gradient(115deg, transparent 32%, rgba(255, 92, 230, .16) 41%, rgba(96, 236, 255, .2) 47%, rgba(255, 238, 140, .13) 53%, transparent 62%);
  mix-blend-mode: color-dodge; }
.app-card[data-pos="active"] .holo { opacity: .9; animation: holo 9s ease-in-out infinite alternate; }
@keyframes holo { from { transform: translate3d(-22%, -8%, 0); } to { transform: translate3d(22%, 8%, 0); } }
/* Arrival: a bright scan passes down the card and its edge flares once, every time it comes to the centre. */
.scan { position: absolute; left: 0; right: 0; top: 0; height: 34%; z-index: 4; pointer-events: none; opacity: 0; transform: translate3d(0, -110%, 0);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--c-acc) 24%, transparent) 70%, rgba(255, 255, 255, .6) 97%, transparent); }
.app-card[data-pos="active"] .scan { animation: scan-in 1.15s var(--ease) both; }
@keyframes scan-in { 0% { transform: translate3d(0, -110%, 0); opacity: 1; } 85% { opacity: .9; } 100% { transform: translate3d(0, 330%, 0); opacity: 0; } }
.app-card[data-pos="active"] .ring { animation: ring-flash 1s ease-out both; }
@keyframes ring-flash { 0% { filter: brightness(2.1) saturate(1.4); } 100% { filter: none; } }
/* Four points of light on the chamfered corners, waking in turn. */
.sparks { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.sparks i { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #FFFFFF; opacity: 0;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-acc) 40%, transparent), 0 0 16px 4px color-mix(in srgb, var(--c-acc) 85%, transparent); }
.sparks i:nth-child(1) { left: calc(var(--c) * .5); top: calc(var(--c) * .5); }
.sparks i:nth-child(2) { left: calc(100% - var(--c) * .5); top: calc(var(--c) * .5); }
.sparks i:nth-child(3) { left: calc(100% - var(--c) * .5); top: calc(100% - var(--c) * .5); }
.sparks i:nth-child(4) { left: calc(var(--c) * .5); top: calc(100% - var(--c) * .5); }
.app-card[data-pos="active"] .sparks i { animation: corner 4s ease-in-out infinite; }
.app-card[data-pos="active"] .sparks i:nth-child(2) { animation-delay: 1s; }
.app-card[data-pos="active"] .sparks i:nth-child(3) { animation-delay: 2s; }
.app-card[data-pos="active"] .sparks i:nth-child(4) { animation-delay: 3s; }
@keyframes corner { 0%, 100% { opacity: 0; transform: scale(.4); } 12% { opacity: 1; transform: scale(1.3); } 30% { opacity: 0; transform: scale(.6); } }
/* Side cards lean in a little when pointed at. */
@media (hover: hover) and (min-width: 1024px) {
  .app-card[data-pos="prev"]:hover { transform: perspective(1400px) translate3d(calc(-1 * var(--side-x) + 10px), 8px, 0) rotateY(2deg) scale(.99); }
  .app-card[data-pos="next"]:hover { transform: perspective(1400px) translate3d(calc(var(--side-x) - 10px), 8px, 0) rotateY(-2deg) scale(.99); }
}

/* Community pill: its edge light turns slowly, and a sweep of light crosses it now and then. */
@property --pc-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.pill-community { background: linear-gradient(rgba(8, 13, 28, .84), rgba(8, 13, 28, .84)) padding-box,
    conic-gradient(from var(--pc-ang), var(--acc), rgba(255, 255, 255, .85), var(--acc-2), rgba(255, 255, 255, .2), var(--acc)) border-box;
  animation: pc-spin 7s linear infinite; }
@keyframes pc-spin { to { --pc-ang: 360deg; } }
.pill-community::after { animation: pc-sweep 6.5s var(--ease) infinite; }
@keyframes pc-sweep { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* The same switches as everything else. */
:root[data-effects="reduced"] .fx-grid, :root[data-effects="reduced"] .fx-comets, :root[data-effects="reduced"] .fx-shards,
:root[data-effects="reduced"] .holo, :root[data-effects="reduced"] .stage-floor i:nth-child(3) { display: none; }
:root[data-effects="off"] .stage-floor, :root[data-effects="off"] .holo, :root[data-effects="off"] .scan, :root[data-effects="off"] .sparks { display: none; }
:root[data-effects="off"] .app-card .ring, :root[data-effects="off"] .pill-community, :root[data-effects="off"] .pill-community::after { animation: none; }
:root[data-contrast="high"] .stage-floor, :root[data-contrast="high"] .holo, :root[data-contrast="high"] .scan, :root[data-contrast="high"] .sparks { display: none; }
:root.fx-throttled .fx-grid, :root.fx-throttled .fx-stars, :root.fx-throttled .holo, :root.fx-throttled .fx-rays { display: none; }
@media (prefers-reduced-motion: reduce) {
  .stage-floor, .holo, .scan, .sparks { display: none !important; }
  .pill-community, .pill-community::after, .app-card .ring { animation: none !important; }
}
:root[data-motion="reduced"] .stage-floor, :root[data-motion="reduced"] .holo, :root[data-motion="reduced"] .scan, :root[data-motion="reduced"] .sparks { display: none !important; }

/* ---------- Recent 5-star reviews: a labelled selection, swipeable, paced by rvslides.js ---------- */
.rv-show { position: relative; margin-top: clamp(18px, 3vw, 28px); }
.rv-show-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rv-show-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }
.rv-show-title .stars { color: #FFD18A; letter-spacing: .08em; font-size: 1rem; text-shadow: 0 0 14px rgba(255, 209, 138, .45); }
.rv-show-ctl { display: flex; gap: 8px; flex: none; }
.rv-show-ctl .i-play { display: none; }
.rv-show-ctl [data-state="paused"] .i-play { display: block; }
.rv-show-ctl [data-state="paused"] .i-pause { display: none; }
.rv-track { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 6px 2px 16px; scrollbar-width: none; }
.rv-track::-webkit-scrollbar { display: none; }
.rv-track:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 22px; }
@media (min-width: 860px) { .rv-track { grid-auto-columns: calc((100% - 32px) / 3); } }
.rv-slide { position: relative; isolation: isolate; overflow: hidden; scroll-snap-align: start; display: grid; align-content: start; gap: 10px;
  padding: 22px; border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgb(var(--acc-rgb) / .09), transparent 52%), var(--panel); box-shadow: var(--shadow-1);
  transition: transform 420ms var(--ease), border-color 300ms, box-shadow 300ms; }
.rv-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0;
  background: linear-gradient(120deg, rgb(var(--acc-rgb) / .9), rgba(255, 209, 138, .7), rgb(var(--acc2-rgb) / .9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity 300ms; }
@media (hover: hover) { .rv-slide:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -26px rgb(var(--acc-rgb) / .8); } .rv-slide:hover::before { opacity: 1; } }
.rv-slide-glow { position: absolute; right: -30%; bottom: -60%; width: 70%; aspect-ratio: 1; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(var(--acc2-rgb) / .2), transparent); transition: transform 700ms var(--ease); }
.rv-slide:hover .rv-slide-glow { transform: translate(-20%, -20%) scale(1.2); }
.rv-slide .stars { color: #FFD18A; letter-spacing: .1em; text-shadow: 0 0 14px rgba(255, 209, 138, .45); }
.rv-slide h4 { font-family: var(--f-display); font-size: 1.0625rem; line-height: 1.3; }
.rv-slide-body { color: var(--text-2); line-height: 1.55; }
.rv-slide .rv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; color: var(--text-3); font-size: .875rem; }
.rv-who { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--text); }
.rv-avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .75rem; font-weight: 800;
  color: #0B0F1E; background: linear-gradient(135deg, var(--acc), var(--acc-2)); }
.rv-dots { display: flex; justify-content: center; gap: 7px; margin-top: 2px; }
.rv-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-3); transition: transform 300ms var(--ease), background-color 300ms; }
.rv-dots i.on { background: var(--acc); transform: scale(1.45); }
.rv-show-note { margin-top: 10px; color: var(--text-3); font-size: .875rem; line-height: 1.5; }
.rv-show-note a { color: var(--acc-text); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .rv-slide, .rv-slide-glow { transition: none; } }
/* Phones (2026-11-06): the newest three reviews, stacked full width. A sideways
   carousel with autoplay off made visitors swipe card by card through a strip
   wider than the screen; every review is one tap away on the reviews page. */
@media (max-width: 639.98px) {
  .rv-track { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); gap: 12px;
    overflow: visible; scroll-snap-type: none; padding: 4px 0 6px; }
  .rv-track > .rv-slide:nth-child(n+4) { display: none; }
  .rv-slide { padding: 18px; border-radius: 18px; }
  .rv-show-ctl, .rv-dots { display: none !important; }
}

/* ---------- Lite: effects off (the default since 2026-11-05) ----------
   The carousel no longer turns by itself (Play still starts it), the scene swaps without a cross-fade, cards slide
   for 0.2 s instead of 0.5 s, the desktop card lies flat, and the controls drop their background blur and glows.
   Sections below the hero are only rendered when they come near the screen. */
:root[data-effects="off"] .ch-arrow, :root[data-effects="off"] .ch-play, :root[data-effects="off"] .resources { -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-effects="off"] .ch-arrow, :root[data-effects="off"] .ch-play { background: rgba(5, 9, 20, .9); box-shadow: none; }
:root[data-effects="off"] .ch-dot[aria-current="true"] span { box-shadow: none; }
:root[data-effects="off"] .logo { filter: none; will-change: auto; }
:root[data-effects="off"] .app-card { transition: transform 200ms ease-out, opacity 160ms ease-out; }
:root[data-effects="off"] .app-card[data-pos="far"] { transition: transform 200ms ease-out, opacity 160ms, visibility 0s 200ms; }
:root[data-effects="off"] .cw, :root[data-effects="off"] .ct { transition: opacity 160ms ease-out, transform 200ms ease-out, visibility 0s; }
:root[data-effects="off"] .cw .shell-3d { transform: none; transition: none; }
:root[data-effects="off"] .dim { transition: opacity 160ms ease-out; }
:root[data-effects="off"] .pill-community { box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
:root[data-effects="off"] .panel.rv-preview { box-shadow: none; }
:root[data-effects="off"] .rv-slide, :root[data-effects="off"] .rv-slide-glow { transition: none; }
:root[data-effects="off"] .home-section { content-visibility: auto; contain-intrinsic-size: auto 760px; }
