/* The app's own colours (src/client/lib/helpers/chat_theme.dart). The accent is for indicators
   (borders, rings, glows), never text; filled buttons use accentFill behind white labels. */
:root {
  --background: #1a1b1e;
  --sunken: #1e1f22;
  --surface: #232428;
  --surface-raised: #2b2d31;
  --surface-hover: #32343a;
  --border: #3a3c42;
  --accent: #7c6af7;
  --accent-dim: #3d3580;
  --accent-text: #cbc6ff;
  --accent-fill: #5b4bd6;
  --accent-fill-hover: #6a59e0;
  --text: #ecedef;
  --text-secondary: #b8bac2;
  --text-tertiary: #9a9da6;
  --online: #2fc97e;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --wrap: 1160px;
  --gutter: 24px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--accent-text); }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
strong { color: var(--text); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  background: var(--accent-fill); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.icon {
  width: 22px; height: 22px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Buttons. Hover and press move a highlight layer and the button itself, nothing that repaints. */
.button {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  background: var(--accent-fill); color: #fff; border: 1px solid transparent;
  font-weight: 650; text-decoration: none; line-height: 1.3;
  transition: transform 0.18s var(--ease);
}
.button::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent-fill-hover); opacity: 0; transition: opacity 0.18s;
}
.button:hover::before { opacity: 1; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(0.98); }
.button.big { padding: 14px 24px; font-size: 17px; border-radius: 12px; }
.button.small { padding: 7px 14px; font-size: 14px; border-radius: 8px; }
.button.big:not(.ghost) { box-shadow: 0 10px 30px -10px rgba(124, 106, 247, 0.7); }
.button.ghost { background: rgba(43, 45, 49, 0.7); border-color: var(--border); color: var(--text); }
.button.ghost::before { background: var(--surface-hover); }

/* Top bar: transparent over the hero, a solid backdrop fades in once scrolled. */
.topbar { position: sticky; top: 0; z-index: 20; }
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(26, 27, 30, 0.94); border-bottom: 1px solid var(--border);
  opacity: 0; transition: opacity 0.3s;
}
.scrolled .topbar::before { opacity: 1; }
.topbar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 18px; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.topbar nav { margin-left: auto; }
.topbar nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.topbar nav a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--text-secondary); text-decoration: none; font-size: 15px; }
.topbar nav a:hover { color: var(--text); background: var(--surface); }

/* Hero */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::after {
  /* A faint grid that fades out towards the edges. */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.aurora { position: absolute; inset: -20% -10% 0; z-index: -2; pointer-events: none; }
.aurora i {
  position: absolute; border-radius: 50%;
  width: 62vmax; height: 62vmax;
  background: radial-gradient(closest-side, rgba(124, 106, 247, 0.32), rgba(124, 106, 247, 0) 70%);
}
.aurora i:nth-child(1) { left: -18vmax; top: -22vmax; }
.aurora i:nth-child(2) { right: -22vmax; top: -6vmax; background: radial-gradient(closest-side, rgba(91, 75, 214, 0.34), rgba(91, 75, 214, 0) 70%); }
.aurora i:nth-child(3) { left: 30%; top: 22vmax; width: 44vmax; height: 44vmax; background: radial-gradient(closest-side, rgba(47, 201, 126, 0.10), rgba(47, 201, 126, 0) 70%); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  background: rgba(35, 36, 40, 0.8); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 14px; font-weight: 550;
}
.eyebrow img { border-radius: 5px; }
.hero h1 { font-size: clamp(42px, 4.2vw + 18px, 76px); font-weight: 800; letter-spacing: -0.04em; margin: 22px 0 18px; }
.grad {
  background: linear-gradient(100deg, var(--accent-text) 10%, #fff 55%, var(--accent-text) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { font-size: clamp(17px, 0.6vw + 14px, 20px); color: var(--text-secondary); max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 16px; }
.version {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px;
  color: var(--text-secondary); font-size: 14px;
}
.version::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 3px rgba(47, 201, 126, 0.2); }
.version[hidden] { display: none; }
.fine { color: var(--text-tertiary); font-size: 14px; }

/* The app mock: plain HTML and CSS, no images. */
.mock { position: relative; margin: 0; perspective: 1400px; }
.mock-glow {
  position: absolute; inset: 8% 4% -2%; z-index: -1; border-radius: 40px;
  background: radial-gradient(closest-side, rgba(124, 106, 247, 0.45), transparent);
}
.win {
  --rx: 0deg; --ry: 0deg;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.5s var(--ease);
  background: var(--background); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(124, 106, 247, 0.12);
  font-size: 12px; line-height: 1.4; color: var(--text-secondary); user-select: none;
}
.win-bar { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: var(--sunken); border-bottom: 1px solid var(--border); }
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-hover); }
.win-title { color: var(--text); font-weight: 600; }
.in-call { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--online); font-weight: 600; }
.in-call i { width: 7px; height: 7px; border-radius: 50%; background: var(--online); }
.win-body { display: grid; grid-template-columns: 118px minmax(0, 1fr) 158px; height: 372px; }

.rail { background: var(--sunken); border-right: 1px solid var(--border); padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.rail-head { color: var(--text-tertiary); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; padding: 0 6px 6px; }
.room { padding: 5px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room b { color: var(--text-tertiary); font-weight: 600; margin-right: 3px; }
.room svg { display: inline-block; width: 11px; height: 11px; margin-right: 4px; vertical-align: -1px; fill: none; stroke: var(--text-tertiary); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.room.active { background: var(--surface-raised); color: var(--text); }
.room-people { display: flex; gap: 3px; padding: 2px 6px 6px 18px; }
.room-people .av { width: 18px; height: 18px; font-size: 7px; }

.av {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%; font-size: 9px; font-weight: 700; letter-spacing: 0;
}
.a1 { background: #3d3580; color: #cbc6ff; }
.a2 { background: #085041; color: #9fe1cb; }
.a3 { background: #712b13; color: #f5c4b3; }

.stage { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 8px; padding: 10px; min-width: 0; }
.share { position: relative; border-radius: 10px; overflow: hidden; background: #0b0c0e; }
.scene { position: absolute; inset: 0; background: linear-gradient(180deg, #1c1440 0%, #4a2a7a 46%, #c0507e 62%, #1a1030 62.5%); }
.sun {
  position: absolute; left: 50%; top: 14%; height: 52%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: linear-gradient(180deg, #ffd27a 0%, #ff8a7a 55%, #d0508a 100%);
  /* The classic sunset stripes, wider towards the horizon. */
  --stripes: linear-gradient(180deg, #000 0 52%, transparent 52% 56%, #000 56% 64%, transparent 64% 69%, #000 69% 76%, transparent 76% 82%, #000 82% 88%, transparent 88% 95%, #000 95%);
  -webkit-mask-image: var(--stripes); mask-image: var(--stripes);
  opacity: 0.95;
}
.floor { position: absolute; left: -60%; right: -60%; top: 62%; bottom: 0; overflow: hidden; perspective: 110px; perspective-origin: 50% 0; }
.grid {
  position: absolute; left: 0; right: 0; bottom: 0; height: 400%;
  transform-origin: 50% 100%; transform: rotateX(72deg);
  background-image: linear-gradient(rgba(255, 120, 200, 0.75) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(255, 120, 200, 0.6) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}
.share-label, .share-q {
  position: absolute; bottom: 8px; padding: 3px 7px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 10.5px; font-weight: 600;
}
.share-label { left: 8px; }
.share-q { right: 8px; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; min-width: 0;
}
.tile .name { max-width: 100%; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ring { position: absolute; inset: -1px; border: 2px solid var(--online); border-radius: 10px; opacity: 0; pointer-events: none; }
.ring::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 30px; height: 30px; margin-left: -15px;
  border-radius: 50%; border: 2px solid var(--online); opacity: 0;
}
.t2 .ring { opacity: 1; } /* Static picture: Kiko is talking. */

.wunder {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 6px 10px; align-items: center;
  padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.eq { grid-row: span 2; display: flex; align-items: flex-end; gap: 2px; height: 22px; padding: 0 2px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--accent); transform-origin: bottom; transform: scaleY(0.5); }
.eq i:nth-child(2) { transform: scaleY(0.9); }
.eq i:nth-child(3) { transform: scaleY(0.35); }
.eq i:nth-child(4) { transform: scaleY(0.7); }
.track { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track b { color: var(--accent-text); font-weight: 700; margin-right: 6px; }
.bar { height: 3px; border-radius: 2px; background: var(--surface-hover); overflow: hidden; }
.fill { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0.4); }

.chat {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; border-left: 1px solid var(--border); padding: 10px 10px 8px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 48px); mask-image: linear-gradient(transparent, #000 48px);
}
.msgs { display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; gap: 7px; align-items: flex-start; color: var(--text); }
.msg .av { width: 22px; height: 22px; font-size: 8px; }
.msg b { display: block; color: var(--text-secondary); font-size: 10.5px; font-weight: 650; }
.emoji { display: inline-block; vertical-align: -3px; border-radius: 4px; }
.typing { display: flex; gap: 3px; height: 16px; align-items: center; padding-left: 29px; opacity: 0; transition: opacity 0.25s; }
.typing.on { opacity: 1; }
.typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--text-tertiary); }

/* Stats */
.stats { margin-top: -8px; }
.stats ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border); border-radius: 18px; background: rgba(35, 36, 40, 0.6); overflow: hidden;
}
.stats li { padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.stats li + li { border-left: 1px solid var(--border); }
.stats b {
  font-size: clamp(30px, 2vw + 18px, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  background: linear-gradient(180deg, #fff, var(--accent-text)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats small { font-size: 0.5em; margin-left: 3px; letter-spacing: 0; }
.stats span { color: var(--text-secondary); font-size: 14px; }

/* Sections */
.section { padding-top: 112px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.kicker { color: var(--accent-text); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; }
h2 { font-size: clamp(32px, 2.6vw + 16px, 48px); font-weight: 800; letter-spacing: -0.035em; }
.lead { color: var(--text-secondary); font-size: 18px; margin-top: 16px; }

.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.feature::before {
  /* A soft light that follows the pointer (moved with transform). */
  content: ""; position: absolute; z-index: -1; left: 0; top: 0; width: 360px; height: 360px; margin: -180px 0 0 -180px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 106, 247, 0.16), transparent);
  transform: translate(var(--mx, 50%), var(--my, 0)); opacity: 0; transition: opacity 0.3s;
}
.feature:hover::before { opacity: 1; }
.feature .icon {
  width: 40px; height: 40px; padding: 9px; border-radius: 11px; margin-bottom: 6px;
  background: rgba(124, 106, 247, 0.14); color: var(--accent-text); box-shadow: inset 0 0 0 1px rgba(124, 106, 247, 0.35);
}
.feature h3 { font-size: 20px; font-weight: 700; }
.feature p { color: var(--text-secondary); }
.feature.wide { grid-column: span 2; }
.feature.tall { grid-row: span 2; }
.feature.full {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, rgba(91, 75, 214, 0.22), rgba(35, 36, 40, 0.9) 60%), var(--surface);
  border-color: rgba(124, 106, 247, 0.45);
}
.feature.full p { max-width: 46em; }

.wave { display: flex; align-items: center; gap: 4px; height: 44px; margin-top: auto; padding-top: 12px; }
.wave i { flex: 1; max-width: 6px; height: 100%; border-radius: 3px; background: linear-gradient(180deg, var(--accent-text), var(--accent)); transform: scaleY(0.3); opacity: 0.85; }
.wave i:nth-child(3n) { transform: scaleY(0.7); }
.wave i:nth-child(4n+1) { transform: scaleY(0.5); }
.wave i:nth-child(5n+2) { transform: scaleY(0.9); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.chips span { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-raised); color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.chips .on { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 3px rgba(124, 106, 247, 0.18); }

/* Steam Deck */
.deck-section { position: relative; }
.deck-section::before {
  content: ""; position: absolute; left: 0; right: 0; top: 60px; bottom: -40px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 30% 55%, rgba(91, 75, 214, 0.18), transparent 70%);
}
.deck-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.deck-art { display: grid; place-items: center; }
.deck {
  position: relative; width: 100%; max-width: 540px; aspect-ratio: 2.5;
  border-radius: 999px / 60%; padding: 0 22%;
  background: linear-gradient(180deg, #303238, #1e1f22); border: 1px solid #45474e;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid; place-items: center;
}
.deck-screen {
  width: 100%; aspect-ratio: 16 / 10; border-radius: 8px; border: 6px solid #0b0c0e;
  background: radial-gradient(circle at 50% 40%, #3d3580, #111214 75%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.ds-tile { padding: 6px; border-radius: 12px; background: rgba(124, 106, 247, 0.18); box-shadow: 0 0 30px rgba(124, 106, 247, 0.6); }
.ds-tile img { border-radius: 9px; }
.ds-name { color: #fff; font-weight: 750; font-size: 13px; }
.ds-play { padding: 2px 12px; border-radius: 4px; background: var(--online); color: #0b0c0e; font-size: 10px; font-weight: 800; }
.stick, .pad { position: absolute; border-radius: 50%; background: #16171a; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.06); }
.stick { width: 9%; aspect-ratio: 1; top: 16%; }
.stick.l { left: 7%; }
.stick.r { right: 7%; }
.pad { width: 10%; aspect-ratio: 1; border-radius: 22%; bottom: 14%; }
.pad.l { left: 8%; }
.pad.r { right: 8%; }
.abxy { position: absolute; right: 7.5%; top: 47%; width: 10%; aspect-ratio: 1; }
.abxy i { position: absolute; width: 32%; aspect-ratio: 1; border-radius: 50%; background: #2b2d31; }
.abxy i:nth-child(1) { left: 34%; top: 0; }
.abxy i:nth-child(2) { left: 0; top: 34%; }
.abxy i:nth-child(3) { right: 0; top: 34%; }
.abxy i:nth-child(4) { left: 34%; bottom: 0; }
.deck-copy h2 { margin-bottom: 24px; }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text-secondary); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(47, 201, 126, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.5 2.5L14 7.5' fill='none' stroke='%232fc97e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* Downloads */
.web-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 32px; margin-bottom: 16px; border-radius: 20px;
  background: linear-gradient(110deg, rgba(91, 75, 214, 0.35), rgba(61, 53, 128, 0.25) 45%, var(--surface) 85%);
  border: 1px solid rgba(124, 106, 247, 0.5);
}
.web-card::after {
  content: ""; position: absolute; z-index: -1; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 106, 247, 0.35), transparent);
}
.web-card h3 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.web-card p { color: var(--text-secondary); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#steam-deck { grid-column: 1 / -1; }
#android:not([hidden]) ~ #steam-deck { grid-column: auto; }
.card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.3s var(--ease);
}
.card[hidden] { display: none; }
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1px solid var(--accent); box-shadow: 0 0 0 4px rgba(124, 106, 247, 0.15), 0 20px 50px -20px rgba(124, 106, 247, 0.5);
  opacity: 0; transition: opacity 0.3s;
}
.card.highlight::after { opacity: 1; }
.card-head { display: flex; align-items: center; gap: 10px; width: 100%; }
.card-head .icon { color: var(--accent-text); }
.card h3 { font-size: 20px; font-weight: 700; }
.this-device {
  display: none; margin-left: auto; padding: 3px 10px; border-radius: 999px;
  background: rgba(124, 106, 247, 0.16); border: 1px solid rgba(124, 106, 247, 0.5); color: var(--accent-text); font-size: 12px; font-weight: 700;
}
.highlight .this-device { display: inline-block; }
.sub { color: var(--text-tertiary); font-size: 14px; margin-top: -8px; }
.note { color: var(--text-secondary); font-size: 14px; }

code {
  font: 13px/1.55 ui-monospace, "Cascadia Mono", "DejaVu Sans Mono", Menlo, monospace;
  background: var(--surface-raised); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere;
}
.command {
  display: flex; align-items: flex-start; gap: 10px; width: 100%;
  background: var(--sunken); border: 1px solid var(--border); border-radius: 10px; padding: 12px 10px 12px 14px;
}
.command code { flex: 1; background: none; padding: 0; min-width: 0; white-space: pre-wrap; color: var(--text); }
.copy {
  flex-shrink: 0; cursor: pointer;
  background: var(--surface-raised); color: var(--text); border: 1px solid var(--border); border-radius: 7px;
  padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600;
  transition: transform 0.15s var(--ease);
}
.copy:hover { background: var(--surface-hover); }
.copy:active { transform: scale(0.95); }
.copy.done { border-color: var(--online); }
.no-js .copy { display: none; }
.later { color: var(--text-tertiary); text-align: center; margin-top: 28px; font-size: 15px; }

/* Footer */
.footer { margin-top: 120px; border-top: 1px solid var(--border); background: var(--sunken); }
.footer-inner { display: flex; align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 32px; color: var(--text-tertiary); font-size: 14px; }
.footer .brand { font-size: 16px; color: var(--text); }
.footer-inner > p:nth-child(2) { flex: 1; }
.footer a { color: var(--text-secondary); text-decoration: none; white-space: nowrap; }
.footer a:hover { color: var(--text); }

/* Motion. Nothing is hidden or moves unless JavaScript runs and the visitor hasn't asked for less
   motion. Loops only run while their part of the page is on screen (.live, set in app.js). */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .js .enter { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
  .js .mock.enter { animation-name: rise-mock; animation-duration: 1.2s; }

  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .card.reveal.in:hover { transform: translateY(-3px); }

  .js .aurora i { animation: drift 26s ease-in-out infinite alternate; }
  .js .aurora i:nth-child(2) { animation-duration: 32s; animation-delay: -12s; }
  .js .aurora i:nth-child(3) { animation-duration: 22s; animation-delay: -6s; }
  .js .mock-glow { animation: breathe 6s ease-in-out infinite alternate; }

  .js .grid { animation: road 1.2s linear infinite; }
  .js .ring { animation: speak 9s infinite; }
  .js .t1 .ring { animation-delay: -6s; }
  .js .t2 .ring { animation-delay: 0s; }
  .js .t3 .ring { animation-delay: -3s; }
  .js .ring::after { animation: halo 1.1s ease-out infinite; }
  .js .eq i { animation: eq 0.9s ease-in-out infinite alternate; }
  .js .eq i:nth-child(2) { animation-duration: 0.6s; animation-delay: -0.3s; }
  .js .eq i:nth-child(3) { animation-duration: 0.75s; animation-delay: -0.5s; }
  .js .eq i:nth-child(4) { animation-duration: 0.5s; animation-delay: -0.1s; }
  .js .fill { animation: progress 48s linear infinite; }
  .js .typing i { animation: bob 1s ease-in-out infinite; }
  .js .typing i:nth-child(2) { animation-delay: 0.15s; }
  .js .typing i:nth-child(3) { animation-delay: 0.3s; }
  .js .msg.arrive { animation: arrive 0.5s var(--ease) both; }
  .js .msgs.shift { transition: transform 0.45s var(--ease); }

  .js .wave i { animation: eq 0.8s ease-in-out infinite alternate; }
  .js .wave i:nth-child(2n) { animation-duration: 0.55s; }
  .js .wave i:nth-child(3n) { animation-duration: 0.7s; animation-delay: -0.4s; }
  .js .wave i:nth-child(5n) { animation-duration: 0.95s; animation-delay: -0.2s; }

  .js .deck { animation: float 7s ease-in-out infinite alternate; }

  /* Off screen, or in a hidden tab: every loop stops where it is. */
  .js .anim-scope:not(.live) *:not(.enter),
  .js .anim-scope:not(.live) *::before,
  .js .anim-scope:not(.live) *::after { animation-play-state: paused; }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-mock { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8vmax, 5vmax, 0) scale(1.15); }
}
@keyframes breathe { from { opacity: 0.7; transform: scale(0.96); } to { opacity: 1; transform: scale(1.04); } }
@keyframes road { to { transform: rotateX(72deg) translateY(28px); } }
@keyframes speak { 0% { opacity: 0; } 3%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes halo { from { opacity: 0.7; transform: scale(0.9); } to { opacity: 0; transform: scale(1.5); } }
@keyframes eq { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
@keyframes progress { from { transform: scaleX(0.02); } to { transform: scaleX(1); } }
@keyframes bob { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }
@keyframes arrive { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes float { from { transform: translateY(-6px) rotate(-1deg); } to { transform: translateY(6px) rotate(1deg); } }

/* Tablets */
@media (max-width: 980px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-copy { text-align: center; }
  .tagline { margin: 0 auto; }
  .cta { justify-content: center; }
  .mock { max-width: 640px; margin: 0 auto; width: 100%; }
  .stats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--border); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature.tall { grid-row: auto; }
  .deck-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .section { padding-top: 88px; }
}

/* Phones */
@media (max-width: 680px) {
  :root { --gutter: 16px; }
  .topbar nav { display: none; }
  .topbar .button { margin-left: auto; }
  .hero h1 { margin-top: 18px; }
  .cta .button { flex: 1 1 100%; }
  .win-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: 250px auto; height: auto; }
  .rail { display: none; }
  .chat { border-left: 0; border-top: 1px solid var(--border); height: 118px; }
  .stats li { padding: 18px 16px; }
  .bento, .cards { grid-template-columns: minmax(0, 1fr); }
  .feature.wide, .feature.full { grid-column: auto; }
  #android:not([hidden]) ~ #steam-deck { grid-column: 1 / -1; }
  .feature, .card { padding: 20px; }
  .web-card { padding: 24px 20px; }
  .web-card .button { flex: 1 1 100%; }
  .command { flex-direction: column; align-items: stretch; }
  .copy { align-self: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
