/* The website's one stylesheet. The product's name is never written here (see name.mjs).
   Type: Inter for the page (index.html loads it, with its display cut for large sizes). The demo
   windows are drawn in the app's own face, Windows 11's Segoe UI Variable (`.gp` below). */

:root {
  color-scheme: dark;
  --bg: #0a0c0f;
  --raise: #14181d;
  --raise-2: #1a1f25;
  --line: rgba(255, 255, 255, 0.08);
  --ink: #f3f5f7;
  --ink-2: #c4cad2;
  --muted: #8d95a0;
  --accent: #60cdff;
  --blue: #0067c0;
  --blue-hover: #1a76c6;
  --blue-press: #005aa8;

  --display: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --small: "Inter", "Segoe UI Variable Small", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* The app's own type, which the demo windows take over (`.gp`). */
  --app-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --app-text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --app-small: "Segoe UI Variable Small", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1320px;
  --gutter: 40px;
  --section: 168px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* The header's links glide to their section. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: hidden;
  /* Smooth text in Chrome on Windows, as Mac browsers draw it: in a layer of its own the page's
     text loses ClearType's coloured edges (the user's pick of the type test, 2026-11-23). The
     page has nothing fixed in place, so this layer moves nothing. */
  will-change: transform;
}

img,
svg {
  display: block;
}

/* Dragging across the page selects its words, never its pictures: the art behind the demos, the
   covers, logos and icons, and the buttons. The demo windows don't select either, as in the app. */
img,
svg,
button,
.btn,
.screen,
.shelf,
.wall {
  user-select: none;
  -webkit-user-select: none;
}

img {
  -webkit-user-drag: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Buttons and keys ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  font: 600 16px/1 var(--text);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s var(--ease);
}

.btn .icon {
  font-size: 18px;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-hover);
}

.btn-primary:active {
  background: var(--blue-press);
}

.btn-quiet {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.btn-quiet:hover {
  background: rgba(255, 255, 255, 0.13);
}

.btn-small {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 6px;
}

.btn-small .icon {
  font-size: 15px;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7em;
  height: 1.55em;
  padding: 0 0.42em;
  margin: 0 0.06em;
  border-radius: 0.3em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom-width: 2px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: 600 0.78em/1 var(--small);
  vertical-align: 0.12em;
  white-space: nowrap;
}

/* ---------- Top bar ---------- */

.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
}

.top-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font: 600 17px/1 var(--display);
  letter-spacing: -0.01em;
}

/* The Ratchet lockup from Paper's Logo page: the symbol and the lettered name, 1934 × 314. */
.brand .lockup {
  width: 136px;
  height: 22px;
  fill: var(--ink);
}

/* The sections, by name. Where they no longer fit beside the logo and the buttons they go. */
.top-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 20px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.top-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
}

.top-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.top-link .icon {
  font-size: 17px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: 124px;
  padding-bottom: 56px;
  isolation: isolate;
}

/* The game in focus, behind everything: its art sharp across the top at its own proportions,
   and the same picture blurred to fill the rest. */
.backdrop {
  position: absolute;
  inset: 0 0 -140px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bd {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.bd.is-on {
  opacity: 1;
}

.bd-blur {
  position: absolute;
  inset: -80px;
  width: calc(100% + 160px);
  height: calc(100% + 160px);
  object-fit: cover;
  filter: blur(56px) saturate(1.2);
  opacity: 0.32;
}

.bd-sharp {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  min-height: 620px;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  transform: scale(1.015);
  transition: transform 7s var(--ease);
}

.bd.is-on .bd-sharp {
  transform: none;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  /* The first layer is a soft shade behind the headline, the lead and the small print, so they
     read whatever the picture is; the art stays bright to both sides of it. */
  background:
    radial-gradient(ellipse 520px 300px at 50% 310px, rgba(10, 12, 15, 0.55) 0%, rgba(10, 12, 15, 0.4) 50%, rgba(10, 12, 15, 0) 100%),
    linear-gradient(180deg, rgba(10, 12, 15, 0.72) 0px, rgba(10, 12, 15, 0.28) 380px, rgba(10, 12, 15, 0.2) 55%, rgba(10, 12, 15, 0.75) 85%, var(--bg) 100%),
    radial-gradient(90% 60% at 50% 55%, rgba(10, 12, 15, 0) 0%, rgba(10, 12, 15, 0.45) 100%);
}

.hero-copy {
  text-align: center;
}

.hero h1 {
  margin: 0 auto;
  max-width: 12em;
  font: 600 60px/1.04 var(--display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  margin: 20px auto 0;
  max-width: 600px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.55;
  text-wrap: pretty;
}

.cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Small print over the game art: the lead's colour and a soft shadow, so it reads on any picture. */
.cta-note {
  color: var(--ink-2);
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.cta-note span + span::before {
  content: "·";
  margin: 0 8px;
}

.cta-note span {
  white-space: nowrap;
}

/* "Early access" leads the note, in the page's ink. */
.cta-early {
  color: var(--ink);
  font-weight: 600;
}

/* On a phone it takes a line of its own, so no item breaks or starts a line with a dot. */
@media (max-width: 520px) {
  .cta-early {
    display: block;
    margin-bottom: 2px;
  }

  .cta-note .cta-early + span::before {
    content: none;
  }
}

.stage {
  position: relative;
  margin: 56px auto 0;
  width: 100%;
  max-width: 920px;
  height: 640px;
}

.stage.is-compact {
  height: 600px;
}

/* The launchers the app works with, as a logo bar: each mark and name in one colour, no tiles.
   Its place is under the demo. Until the page has scrolled that far it stays at the bottom of the
   screen, so it shows the moment the page opens whatever the screen's height. Clicks pass through
   it to the demo. */
.works {
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin-top: 4px;
  padding: 32px var(--gutter) 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 40px;
  pointer-events: none;
}

/* While the bar is held at the bottom of the screen, the demo fades out into the page's colour
   behind it. At rest under the demo the shade is gone (`is-resting`, set by the page's script), so
   it never dims the demo above the bar. */
.works::before {
  content: "";
  position: absolute;
  inset: -104px 0 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 12, 15, 0) 0%, rgba(10, 12, 15, 0.9) 52%, var(--bg) 74%);
  transition: opacity 0.25s var(--ease);
}

.works.is-resting::before {
  opacity: 0;
}

/* Marks where the bar rests, for the script that tells held from resting. */
.works-rest {
  height: 0;
}

.works-label {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 24px;
}

.works-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 40px;
}

.works-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 600 16px/24px var(--text);
  white-space: nowrap;
}

.works-list .icon {
  font-size: 22px;
}

/* ---------- The page opens ---------- */

/* The first screen comes in piece by piece: the art settles, the headline arrives word by word,
   the lead and the button rise after it, the demo window lands, and the logo bar fades in last.
   Each keyframe names only where a piece starts, and `backwards` holds it there until its turn:
   once a piece has landed its animation lets go, so nothing here touches the demo's own motion. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes word {
  from {
    opacity: 0;
    transform: translateY(0.42em);
    filter: blur(10px);
  }
}

@keyframes land {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: scale(1.07);
  }
}

.backdrop {
  animation: settle 1.8s var(--ease) backwards;
}

.top-inner {
  animation: fade 0.8s var(--ease) 0.15s backwards;
}

.hero h1 span {
  display: inline-block;
  animation: word 0.85s var(--ease) calc(0.12s + var(--i) * 0.06s) backwards;
}

.hero .lead {
  animation: rise 0.8s var(--ease) 0.5s backwards;
}

.hero .cta {
  animation: rise 0.8s var(--ease) 0.62s backwards;
}

.stage {
  animation: land 1.05s var(--ease) 0.74s backwards;
}

.works {
  animation: fade 0.9s var(--ease) 1.35s backwards;
}

/* ---------- Sections ---------- */

/* Sections paint over the hero's art where it fades out below the hero. */
.section,
.last {
  position: relative;
  z-index: 1;
}

.section {
  padding-top: var(--section);
}

.section-head {
  max-width: 640px;
}

.section h2,
.last h2 {
  margin: 0;
  font: 600 44px/1.08 var(--display);
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.section .lead {
  margin: 18px 0 0;
  max-width: 600px;
}

.section-head.center {
  max-width: 680px;
  text-align: center;
}

.section-head.center .lead {
  margin-inline: auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: center;
}

.split.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.facts {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 22px;
}

.facts li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
}

.facts .icon {
  font-size: 22px;
  margin-top: 2px;
  fill: var(--accent);
}

.facts strong {
  display: block;
  font: 600 17px/1.4 var(--text);
}

.facts span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.screen {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--raise);
  isolation: isolate;
}

.screen-art {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.screen-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.screen-art img.is-on {
  opacity: 0.6;
}

.screen-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 15, 0.15), rgba(10, 12, 15, 0.6));
}

.visual-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

/* A launch window over a section's screen: top centre, as on a PC's screen. */
.screen > .launch {
  position: absolute;
  left: 50%;
  top: 64px;
  z-index: 4;
  width: min(560px, calc(100% - 32px));
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
}

.screen > .launch.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Once the game runs its art comes up to full. */
.screen.is-running .screen-art img.is-on {
  opacity: 1;
}

.screen.is-running .screen-art::after {
  opacity: 0.35;
}

.screen-art::after {
  transition: opacity 0.9s var(--ease);
}

/* ---------- Without and with ---------- */

.chores {
  position: relative;
  margin-top: 48px;
  isolation: isolate;
}

/* The With column is one panel behind its cells. */
.chores::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  right: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(0, 103, 192, 0.22), rgba(0, 103, 192, 0.07)), var(--raise);
}

.ch-head,
.ch-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ch-row {
  border-top: 1px solid var(--line);
}

.ch-col {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  margin: 0;
  padding: 16px 28px;
  font-size: 18px;
  line-height: 1.45;
}

.ch-head .ch-col {
  min-height: 0;
  padding-top: 22px;
  padding-bottom: 18px;
  font: 600 15px/1.3 var(--text);
  color: var(--muted);
}

.ch-head .ch-now {
  gap: 10px;
  color: var(--ink);
}

.ch-head .ch-now .icon {
  font-size: 18px;
}

.ch-row .ch-col > svg {
  flex: none;
  width: 24px;
  height: 24px;
  padding: 6px;
  border-radius: 50%;
  fill: currentColor;
}

.ch-row .ch-was {
  color: var(--muted);
}

.ch-row .ch-was > svg {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.ch-row .ch-now {
  color: var(--ink);
  font-weight: 600;
}

.ch-row .ch-now > svg {
  background: rgba(96, 205, 255, 0.16);
  color: var(--accent);
}

/* The old way, struck through once the table is on screen. */
.ch-was s {
  text-decoration: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-image: linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45));
  background-repeat: no-repeat;
  background-position: 0 56%;
  background-size: 0% 1.5px;
  transition: background-size 0.7s var(--ease);
}

.chores.is-in .ch-was s {
  background-size: 100% 1.5px;
}

.chores.is-in .ch-row:nth-child(3) .ch-was s {
  transition-delay: 0.1s;
}

.chores.is-in .ch-row:nth-child(4) .ch-was s {
  transition-delay: 0.2s;
}

.chores.is-in .ch-row:nth-child(5) .ch-was s {
  transition-delay: 0.3s;
}

.chores.is-in .ch-row:nth-child(6) .ch-was s {
  transition-delay: 0.4s;
}

/* ---------- One place to play ---------- */

.shelf {
  margin-top: 56px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.shelf-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 10px 0 24px;
  animation: drift var(--dur, 90s) linear infinite;
}

.shelf:hover .shelf-track {
  animation-play-state: paused;
}

@keyframes drift {
  to {
    transform: translateX(calc(-50% - 8px));
  }
}

.tile {
  position: relative;
  flex: none;
  width: 168px;
  height: 252px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--raise-2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transform-origin: 50% 0;
  transition: transform 0.24s var(--ease);
}

.tile:hover {
  transform: perspective(900px) rotateX(4deg) scale(1.06);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.25) 30%, rgba(0, 0, 0, 0) 48%);
}

.tile-meta {
  position: absolute;
  left: 13px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  color: #fff;
}

.tile-name {
  font: 600 14px/18px var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-sub {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.82);
}

.tile-sub .icon {
  font-size: 13px;
}

/* A store's mark on its colour: the Add account picker's buttons. */
.store-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  color: #fff;
}

.store-mark .icon {
  font-size: 20px;
}

/* ---------- The right account: Play as, then Play ---------- */

.acc-screen {
  height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
}

/* Play as for one game: its accounts as the app's Play as lists them, Play under them. While the
   game starts the launch window takes its place. */
.acc-win {
  width: 400px;
  max-width: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}

.acc-screen.is-launching .acc-win {
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  pointer-events: none;
}

.acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 10px 18px;
}

.acc-game {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font: 600 15px/1.2 var(--display);
}

.acc-game img {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

.acc-game b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-title {
  flex: none;
  font: 600 12.5px/1 var(--text);
  color: var(--w-muted);
}

.acc-list {
  padding: 0 8px;
}

.acc-row .nm,
.acc-row .sb {
  display: block;
}

.acc-row:focus-visible {
  outline: 2px solid var(--w-mark);
  outline-offset: -2px;
}

.acc-row > .ck {
  opacity: 0;
  transition: opacity 0.15s;
}

.acc-row.is-on > .ck {
  opacity: 1;
}

.acc-foot {
  padding: 6px 16px 16px;
}

.acc-foot .w-play {
  width: 100%;
  height: 46px;
}

/* ---------- Signed out? Signed back in ---------- */

.add-screen {
  height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
}

/* When each half of the story happens: the account added once, Play weeks later. */
.when {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 5;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(10, 12, 15, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #fff;
  font: 600 13px/28px var(--text);
  white-space: nowrap;
}

.when[hidden] {
  display: none;
}

.add-screen .fit {
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}

.add-screen.is-later .fit {
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  pointer-events: none;
}

/* The six stores in one row where they fit, else in even rows of three or two, never one alone. */
.visual-controls {
  container-type: inline-size;
}

.picker {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: 8px;
}

@container (min-width: 440px) {
  .picker {
    grid-template-columns: repeat(3, auto);
  }
}

@container (min-width: 800px) {
  .picker {
    grid-template-columns: repeat(6, auto);
  }
}

.picker button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 14px 0 8px;
  border: 0;
  border-radius: 10px;
  background: var(--raise);
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
}

.picker button:hover {
  background: var(--raise-2);
}

.picker button[aria-pressed="true"] {
  background: rgba(96, 205, 255, 0.14);
  color: var(--ink);
}

.picker .store-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.picker .store-mark .icon {
  font-size: 15px;
}

/* ---------- Speed: two numbers, the launchers under them ---------- */

.stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  padding: 30px 30px 26px;
  border-radius: 16px;
  background: var(--raise);
}

/* The app's own number, large. */
.stat-num {
  margin: 0;
  font: 600 96px/0.95 var(--display);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat-num .unit {
  margin-left: 8px;
  font-size: 0.34em;
  letter-spacing: 0;
  color: var(--ink-2);
}

.stat-what {
  margin: 16px 0 0;
  max-width: 30em;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
}

/* Each launcher's bar: the race from closed until loaded, in real time, and the memory each one
   keeps while idle. */
.bars {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.start {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 68px;
  align-items: center;
  gap: 14px;
  font-size: 15px;
}

.start-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.start-name .m {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: #fff;
}

.start-name .m svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.start-name .logo {
  width: 15px;
  height: 15px;
  fill: #fff;
}

.start-track {
  position: relative;
  height: 14px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.start-load,
.start-win {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 7px;
}

.start-load {
  background: rgba(255, 255, 255, 0.16);
}

.start-win {
  background: rgba(255, 255, 255, 0.42);
}

.mem-fill {
  transition: width 0.9s var(--ease);
}

.start-time {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink-2);
}

.start.is-done .start-time {
  color: var(--ink);
  font-weight: 600;
}

.start.is-us .start-name {
  font-weight: 600;
}

.start.is-us .start-win,
.start.is-us .start-load {
  background: var(--accent);
  box-shadow: 0 0 14px rgba(96, 205, 255, 0.55);
}

.start.is-us .start-time {
  color: var(--accent);
  font-weight: 600;
}

.starts-foot {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13.5px;
}

.starts-foot span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.starts-foot span::before {
  content: "";
  width: 14px;
  height: 8px;
  border-radius: 4px;
}

.key-solid::before {
  background: rgba(255, 255, 255, 0.42);
}

.key-load::before {
  background: rgba(255, 255, 255, 0.16);
}

.starts-again {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-2);
  font-size: 13.5px;
  cursor: pointer;
}

.starts-again:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

.starts-again .icon {
  font-size: 12px;
}

.procs-sum {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}

.procs-sum strong {
  color: var(--ink);
  font-weight: 600;
}

.procs-sum strong.us {
  color: var(--accent);
}

/* ---------- Questions ---------- */

.faq-in {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 72px;
  align-items: start;
}

.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

/* Discord's mark before the link's words, outside their underline. */
.discord-link .icon {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin: 0 0.3em 0 0.05em;
  vertical-align: -0.24em;
  fill: #5865f2;
}

.qa details {
  border-bottom: 1px solid var(--line);
}

.qa details:first-child {
  border-top: 1px solid var(--line);
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px 22px 0;
  list-style: none;
  font: 600 18px/1.4 var(--text);
  cursor: pointer;
}

.qa summary::-webkit-details-marker {
  display: none;
}

/* A plus that turns into a minus. */
.qa-sign {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.qa-sign::before,
.qa-sign::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink-2);
  transition: transform 0.25s var(--ease);
}

.qa-sign::after {
  transform: rotate(90deg);
}

.qa details[open] .qa-sign::after {
  transform: rotate(0deg);
}

.qa summary:hover .qa-sign::before,
.qa summary:hover .qa-sign::after {
  background: var(--ink);
}

.qa-a p {
  margin: 0;
  padding: 0 40px 24px 0;
  max-width: 42em;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
}

/* Where the browser can animate a details opening, it does. */
@supports (interpolate-size: allow-keywords) {
  .qa {
    interpolate-size: allow-keywords;
  }

  .qa details::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.3s var(--ease), content-visibility 0.3s allow-discrete;
  }

  .qa details[open]::details-content {
    height: auto;
  }
}

/* ---------- Last call and footer ---------- */

/* The last call, over every game's cover drifting by. The wall is only to look at: nothing in it
   takes the pointer or drags. */
.last {
  overflow: hidden;
  isolation: isolate;
  margin-top: 112px;
  padding: 184px 0 192px;
  text-align: center;
}

.wall {
  position: absolute;
  inset: -40px 0;
  z-index: -2;
  display: grid;
  align-content: center;
  gap: 16px;
  transform: rotate(-6deg) scale(1.15);
  opacity: 0.5;
  pointer-events: none;
}

.wall-row {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: drift var(--dur, 120s) linear infinite;
}

.wall-row:nth-child(even) {
  animation-direction: reverse;
}

.wall-row img {
  flex: none;
  width: 150px;
  height: 225px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--raise-2);
}

.last::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 50% 50%, rgba(10, 12, 15, 0.9) 25%, rgba(10, 12, 15, 0.55) 70%, rgba(10, 12, 15, 0.75)),
    linear-gradient(180deg, var(--bg) 0%, rgba(10, 12, 15, 0) 22%, rgba(10, 12, 15, 0) 78%, var(--bg) 100%);
}

.last-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 28px;
  fill: var(--ink);
}

.last h2 {
  margin: 0 auto;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.last .lead {
  margin: 20px auto 0;
}

.last .cta {
  margin-top: 32px;
}

.last-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* The page for an address the site doesn't have (404.html): the last section on its own, filling
   the screen between the header and the footer, with no wall of covers behind it. */
.last.missing {
  display: grid;
  align-content: center;
  min-height: calc(100svh - 112px);
  margin-top: 0;
  padding: 136px 0 96px;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
}

.foot .brand {
  font-size: 15px;
  color: var(--ink-2);
}

.foot .brand .lockup {
  width: 105px;
  height: 17px;
  fill: var(--ink-2);
}

.foot p {
  margin: 0;
  max-width: 720px;
}

/* =====================================================================
   The app's own windows, drawn as the app draws them (ui/parts.slint).
   Sizes are the app's logical pixels; colours are its Palette.
   ===================================================================== */

.gp {
  /* The demo windows show the app as it is, in its own face. */
  --display: var(--app-display);
  --text: var(--app-text);
  --small: var(--app-small);
  --w-window: #202020;
  --w-surface: #2c2c2c;
  --w-card: #2b2b2b;
  --w-pop: #2c2c2c;
  --w-field: #1e1e1e;
  --w-bar: rgba(26, 26, 26, 0.92);
  --w-blank: #2e2e2e;
  --w-art: #2a2e33;
  --w-pane: rgba(255, 255, 255, 0.031);
  --w-accent: #0067c0;
  --w-mark: #60cdff;
  --w-mark-ink: #000;
  --w-accent-text: #60cdff;
  --w-soft: #18324a;
  --w-soft-hover: #1e3d59;
  --w-ink: #fff;
  --w-ink-2: #e1e1e1;
  --w-muted: #ababab;
  --w-faint: #8c8c8c;
  --w-placeholder: #8a8a8a;
  --w-icon: #c8c8c8;
  --w-rule: rgba(255, 255, 255, 0.07);
  --w-rule-2: rgba(255, 255, 255, 0.09);
  --w-chip-border: rgba(255, 255, 255, 0.1);
  --w-edge: rgba(255, 255, 255, 0.12);
  --w-fill: rgba(255, 255, 255, 0.059);
  --w-fill-hover: rgba(255, 255, 255, 0.09);
  --w-fill-open: rgba(255, 255, 255, 0.14);
  --w-hover: rgba(255, 255, 255, 0.059);
  --w-pressed: rgba(255, 255, 255, 0.04);
  --w-selection: rgba(96, 205, 255, 0.078);
  --w-track: rgba(255, 255, 255, 0.12);
  --w-switch-edge: rgba(255, 255, 255, 0.54);
  --w-switch-knob: rgba(255, 255, 255, 0.78);
  --w-steam-avatar: #2a3f55;
  --w-dim-avatar: #5b5b5b;
  --w-warn-fill: #433519;
  --w-warn-edge: rgba(252, 225, 0, 0.2);
  --w-warn-ink: #fce100;
  --w-success: #6ccb5f;
  --w-scroll: rgba(255, 255, 255, 0.2);
  --w-frame: rgba(255, 255, 255, 0.09);
  --w-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 32px 64px rgba(0, 0, 0, 0.5), 0 2px 21px rgba(0, 0, 0, 0.4);

  position: relative;
  font: 400 12px/1.25 var(--text);
  color: var(--w-ink);
  background: var(--w-window);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--w-frame), var(--w-shadow);
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}

.gp[data-scheme="light"] {
  --w-window: #f6f7f9;
  --w-surface: #fff;
  --w-card: #fff;
  --w-pop: #fff;
  --w-field: #f5f6f8;
  --w-bar: rgba(238, 240, 243, 0.85);
  --w-blank: #e9ebee;
  --w-art: #e9edf3;
  --w-pane: rgba(255, 255, 255, 0.55);
  --w-mark: #0067c0;
  --w-mark-ink: #fff;
  --w-accent-text: #005fb8;
  --w-soft: #e1ecf8;
  --w-soft-hover: #d6e6f6;
  --w-ink: #1a1a1a;
  --w-ink-2: #3a3a3a;
  --w-muted: #6b6b6b;
  --w-faint: #767676;
  --w-icon: #5d5d5d;
  --w-rule: rgba(0, 0, 0, 0.059);
  --w-rule-2: rgba(0, 0, 0, 0.07);
  --w-chip-border: rgba(0, 0, 0, 0.078);
  --w-edge: rgba(0, 0, 0, 0.12);
  --w-fill: rgba(0, 0, 0, 0.039);
  --w-fill-hover: rgba(0, 0, 0, 0.059);
  --w-fill-open: rgba(0, 0, 0, 0.09);
  --w-hover: rgba(0, 0, 0, 0.039);
  --w-pressed: rgba(0, 0, 0, 0.07);
  --w-selection: rgba(0, 40, 90, 0.059);
  --w-track: rgba(0, 0, 0, 0.078);
  --w-switch-edge: rgba(0, 0, 0, 0.45);
  --w-switch-knob: rgba(0, 0, 0, 0.65);
  --w-steam-avatar: #1b2838;
  --w-dim-avatar: #8e8e8e;
  --w-warn-fill: #fff8e6;
  --w-warn-edge: rgba(157, 93, 0, 0.18);
  --w-warn-ink: #9d5d00;
  --w-success: #0f7b0f;
  --w-scroll: rgba(0, 0, 0, 0.15);
  --w-frame: rgba(0, 0, 0, 0.1);
  --w-shadow: 0 32px 64px rgba(0, 0, 0, 0.45), 0 2px 21px rgba(0, 0, 0, 0.3);
}

/* Every icon in the app's windows has a size: 16 px unless its place says otherwise below. */
.gp svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

:where(.gp) button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: inherit;
}

/* ----- The palette: 920 × 640 at most. ----- */

.palette {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: 50% 30%;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.palette.is-away {
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
}

.p-search {
  flex: none;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  cursor: text;
}

.p-search > svg {
  width: 20px;
  height: 20px;
  color: var(--w-icon);
}

.p-field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.p-field input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: var(--w-ink);
  caret-color: var(--w-ink);
  font: 400 21px/1 var(--display);
  user-select: text;
  -webkit-user-select: text;
}

.p-field input::placeholder {
  color: var(--w-placeholder);
  opacity: 1;
}

.p-field input:focus-visible {
  outline: 0;
}

.p-caret {
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 26px;
  margin-top: -13px;
  background: var(--w-ink);
  animation: blink 1.06s steps(1) infinite;
  pointer-events: none;
}

.palette.is-focused .p-caret {
  display: none;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.p-measure {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  white-space: pre;
  font: 400 21px/1 var(--display);
}

.p-scopes {
  flex: none;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 20px;
  border-top: 1px solid var(--w-rule);
  border-bottom: 1px solid var(--w-rule-2);
}

.p-tabs {
  display: flex;
  gap: 4px;
  min-width: 0;
}

/* The tabs: Everything (Home and search), Installed and Library. Settings is drawn but does
   nothing here. */
.p-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 13px;
  color: var(--w-ink-2);
  white-space: nowrap;
}

.p-tab .n {
  font-size: 12px;
  color: var(--w-faint);
}

.p-tab.is-on {
  background: var(--w-soft);
  color: var(--w-accent-text);
}

.p-tab.is-on .n {
  color: var(--w-accent-text);
}

.p-tab svg {
  width: 15px;
  height: 15px;
}

.p-tab.has-icon {
  padding-left: 10px;
  gap: 7px;
}

.p-tab[data-scope] {
  cursor: pointer;
  transition: background-color 0.12s;
}

.p-tab[data-scope]:not(.is-on):hover {
  background: var(--w-fill);
}

.p-body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.p-view {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--w-scroll) transparent;
  transition: opacity 0.16s var(--ease);
}

.p-view[hidden] {
  display: block;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.p-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.p-layer > * {
  pointer-events: auto;
}

/* Covers grow under the pointer as the app's do: larger, mostly downward, leaning back. */
.grow {
  transform-origin: 50% 0;
  transition: transform 0.24s var(--ease);
}

.grow:hover {
  transform: perspective(900px) rotateX(4deg) scale(1.07);
  z-index: 2;
}

/* Home */
.h-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 16px;
  margin: 15px 20px 9px;
  font: 600 12.5px/16px var(--text);
  color: var(--w-muted);
}

.h-link {
  color: var(--w-accent-text);
  font-weight: 600;
}

.h-link:hover {
  text-decoration: underline;
}

.h-recent {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 252px;
  margin-top: -8px;
  padding: 0 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.h-recent::-webkit-scrollbar {
  display: none;
}

.h-open {
  position: relative;
  flex: none;
  width: 400px;
  height: 236px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--w-blank);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  color: #fff;
}

.h-open > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}

.h-open:hover > img {
  transform: scale(1.04);
}

.h-open::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.38) 42%, rgba(0, 0, 0, 0.1) 70%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 60%);
}

.h-open-in {
  position: absolute;
  left: 19px;
  right: 18px;
  bottom: 17px;
  z-index: 2;
}

.h-open-title {
  font: 600 26px/32px var(--display);
  letter-spacing: -0.26px;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h-open-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.w-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px 0 20px;
  border-radius: 8px;
  background: #4e9a1c;
  color: #fff;
  font: 600 15px/1 var(--text);
  white-space: nowrap;
  transition: background-color 0.12s;
}

.w-play:hover {
  background: #59a826;
}

.w-play:active,
.w-play.is-down {
  background: #448a18;
}

.w-play svg {
  width: 15px;
  height: 15px;
}

.w-play.is-install {
  background: var(--w-accent);
}

.w-play.is-install:hover {
  background: #1a76c6;
}

.glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 44px;
  padding: 0 12px 0 8px;
  border-radius: 8px;
  background: rgba(40, 40, 40, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #fff;
  font: 600 14px/1 var(--text);
  transition: background-color 0.12s;
}

.glass:hover,
.glass.is-open {
  background: rgba(60, 60, 60, 0.62);
}

.glass .nm {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

/* Play keeps its size; the account beside it gives way, its name cut short, never Play. */
.h-open-row .w-play {
  flex: none;
}

.glass svg.c {
  width: 10px;
  height: 10px;
  flex: none;
  color: rgba(255, 255, 255, 0.85);
}

.h-cover {
  position: relative;
  flex: none;
  width: 132px;
  height: 198px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--w-blank);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  color: #fff;
  cursor: pointer;
}

.h-cover img,
.h-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0) 46%);
}

.c-meta {
  position: absolute;
  left: 11px;
  right: 10px;
  bottom: 11px;
  z-index: 1;
  color: #fff;
}

.c-name {
  font: 600 13px/17px var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
}

.c-sub svg {
  width: 12px;
  height: 12px;
}

.h-disc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  margin: 12px 20px 11px;
}

.h-disc-label {
  font: 600 12.5px/1 var(--text);
  color: var(--w-muted);
}

.h-chips {
  display: flex;
  gap: 6px;
}

.h-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--w-fill);
  color: var(--w-ink-2);
  font-size: 12.5px;
  white-space: nowrap;
}

.h-chip .n {
  color: var(--w-faint);
}

.h-chip.is-on {
  background: var(--w-soft);
  color: var(--w-accent-text);
}

.h-chip.is-on .n {
  color: var(--w-accent-text);
}

.h-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 15px;
  padding: 0 20px 24px;
}

.h-tile {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--w-blank);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Results */
.r-view {
  display: flex;
  overflow: hidden;
}

.r-view[hidden] {
  display: flex;
}

.r-list {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--w-scroll) transparent;
}

.r-group {
  flex: none;
  height: 28px;
  display: flex;
  align-items: center;
  padding-left: 12px;
  font: 600 12px/1 var(--text);
  color: var(--w-muted);
}

.r-row {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 13px;
  height: 58px;
  padding: 0 12px 0 14px;
  border-radius: 6px;
  cursor: pointer;
}

.r-row:hover {
  background: var(--w-hover);
}

.r-row.is-on {
  background: var(--w-selection);
}

.r-row.is-on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--w-mark);
}

.r-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--w-blank);
  display: grid;
  place-items: center;
  color: var(--w-icon);
}

.r-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.r-icon svg {
  width: 18px;
  height: 18px;
}

.r-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.r-name {
  height: 18px;
  font-size: 15px;
  line-height: 18px;
  color: var(--w-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.r-name mark {
  background: none;
  color: var(--w-accent-text);
}

.r-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 16px;
  font-size: 12.5px;
  color: var(--w-muted);
  white-space: nowrap;
  overflow: hidden;
}

.r-sub svg {
  flex: none;
  width: 13px;
  height: 13px;
}

.r-install {
  flex: none;
  font: 600 13px/1 var(--text);
  color: var(--w-accent-text);
}

.r-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--w-muted);
  font-size: 13px;
  line-height: 1.5;
}

.r-pane {
  flex: 0 0 clamp(290px, 43.5%, 400px);
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid var(--w-rule-2);
  background: var(--w-pane);
}

.r-bar {
  display: none;
}

/* The library: the launchers' chips over a grid of covers, and a cover's details sliding in
   beside it, as the app's Library draws them. */
.lib-view {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lib-view[hidden] {
  display: flex;
}

.lib-filters {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--w-rule);
}

.lib-chips {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.lib-chips::-webkit-scrollbar {
  display: none;
}

.lib-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border-radius: 6px;
  background: var(--w-surface);
  box-shadow: inset 0 0 0 1px var(--w-chip-border);
  color: var(--w-ink-2);
  font-size: 13px;
  white-space: nowrap;
  transition: background-color 0.12s;
}

.gp .lib-chip svg {
  width: 15px;
  height: 15px;
}

.lib-chip .n {
  color: var(--w-faint);
}

.lib-chip:hover,
.lib-chip.is-hot {
  background: var(--w-fill-hover);
}

.lib-chip.is-on {
  background: var(--w-soft);
  box-shadow: none;
  color: var(--w-accent-text);
}

.lib-chip.is-on .n {
  color: var(--w-accent-text);
}

.lib-sort {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px 0 12px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--w-chip-border);
  color: var(--w-ink-2);
  font-size: 13px;
  white-space: nowrap;
}

.gp .lib-sort svg {
  width: 11px;
  height: 11px;
  color: var(--w-icon);
}

.lib-main {
  position: relative;
  flex: 1;
  min-height: 0;
}

.lib-scroll {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--w-scroll) transparent;
}

.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 18px 14px;
  padding: 16px 20px 24px;
}

.lib-cover {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.lib-box {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--w-blank);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transform-origin: 50% 0;
  transition: transform 0.24s var(--ease);
}

.lib-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The chosen cover is grown, as one under the pointer is; nothing else marks it. */
.lib-cover:hover,
.lib-cover.is-on {
  z-index: 2;
}

/* A little less than Home's covers grow, so a grown cover clears its name. */
.lib-cover:hover .lib-box,
.lib-cover.is-on .lib-box {
  transform: perspective(900px) rotateX(3deg) scale(1.045);
}

.lib-name {
  margin-top: 13px;
  font: 600 13px/17px var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lib-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 16px;
  margin-top: 1px;
  font-size: 12px;
  color: var(--w-muted);
}

.gp .lib-sub svg {
  width: 12px;
  height: 12px;
}

.lib-pane {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: clamp(290px, 43.5%, 400px);
  overflow: hidden;
  border-left: 1px solid var(--w-rule-2);
  background: linear-gradient(var(--w-pane), var(--w-pane)), var(--w-window);
  box-shadow: -16px 0 32px rgba(0, 0, 0, 0.16);
  transform: translateX(calc(100% + 40px));
  transition: transform 0.24s var(--ease);
}

.lib-pane.is-on {
  transform: none;
}

.lib-pane.no-slide {
  transition: none;
}

.lib-bar {
  display: none;
}

/* A game with no pictures here: its store's colour and mark, and its name where there's room. */
.noart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 8px;
  color: #fff;
  text-align: center;
}

.noart svg,
.gp .noart svg {
  width: 34%;
  max-width: 56px;
  height: auto;
  aspect-ratio: 1;
  fill: currentColor;
}

.noart.is-wide svg,
.gp .noart.is-wide svg {
  width: auto;
  height: 32%;
  max-height: 56px;
}

.noart.is-icon svg,
.gp .noart.is-icon svg {
  width: 52%;
}

.noart b {
  font: 700 13px/1.15 var(--display);
  letter-spacing: 0.06em;
}

.h-open > .noart,
.d-art > .noart {
  position: absolute;
  inset: 0;
}

.l-thumb .noart b {
  display: none;
}

/* A game's details: the results' pane. */
.det {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 16px 18px 16px 19px;
}

.d-art {
  position: relative;
  flex: none;
  height: 176px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--w-art);
  display: grid;
  place-items: center;
  color: var(--w-icon);
}

.d-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.d-art > svg {
  width: 56px;
  height: 56px;
}

.d-title {
  font: 600 22px/27px var(--display);
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.d-dev {
  margin-top: 3px;
  font-size: 13px;
  line-height: 16px;
  color: var(--w-muted);
}

.d-actions {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.d-actions .w-play {
  width: 100%;
  height: 48px;
}

.d-openin {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 12px 0 14px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--w-ink);
}

.d-openin svg {
  width: 17px;
  height: 17px;
  color: var(--w-icon);
}

.d-openin .k {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--w-faint);
}

.w-acct {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  width: 100%;
  padding: 0 14px 0 11px;
  border-radius: 10px;
  background: var(--w-fill);
  transition: background-color 0.12s;
}

.w-acct:hover {
  background: var(--w-fill-hover);
}

.w-acct.is-open {
  background: var(--w-fill-open);
}

.w-acct .t {
  flex: 1;
  min-width: 0;
}

.w-acct .nm {
  font: 600 14px/18px var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w-acct .sb {
  font-size: 12px;
  line-height: 16px;
  color: var(--w-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w-acct > svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--w-icon);
}

.sw {
  position: relative;
  flex: none;
  width: 40px;
  height: 20px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--w-switch-edge);
  transition: background-color 0.15s var(--ease);
}

.sw::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--w-switch-knob);
  transition: transform 0.18s var(--ease), background-color 0.15s;
}

.sw.is-on {
  background: var(--w-mark);
  box-shadow: none;
}

.sw.is-on::after {
  transform: translateX(20px);
  background: var(--w-mark-ink);
}

.btn-w {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--w-surface);
  box-shadow: inset 0 0 0 1px var(--w-edge);
  font: 600 13px/1 var(--text);
  color: var(--w-ink);
}

.btn-w svg {
  width: 14px;
  height: 14px;
}

/* Play as. */
.pop {
  position: absolute;
  z-index: 30;
  padding: 8px;
  border-radius: 8px;
  background: var(--w-pop);
  box-shadow: 0 0 0 1px var(--w-edge), 0 16px 40px rgba(0, 0, 0, 0.32);
  animation: pop-in 0.16s var(--ease);
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.pa-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--w-field);
  box-shadow: inset 0 0 0 1px var(--w-edge);
  color: var(--w-placeholder);
  font-size: 14px;
}

.pa-filter svg {
  width: 15px;
  height: 15px;
}

.pa-filter .val {
  color: var(--w-ink);
}

/* Typing goes to the filter while Play as is open, so it shows the caret. */
.pa-caret {
  flex: none;
  width: 1.5px;
  height: 17px;
  margin: 0 -9px 0 0;
  background: var(--w-ink);
  animation: blink 1.06s steps(1) infinite;
}

.pa-filter .val + .pa-caret {
  margin: 0 0 0 -9px;
}

.pa-list {
  position: relative;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--w-scroll) transparent;
}

.pa-group {
  height: 34px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font: 600 13px/1 var(--text);
  color: var(--w-muted);
}

.pa-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 52px;
  margin-bottom: 4px;
  padding: 0 14px 0 10px;
  border-radius: 6px;
}

.pa-row:hover {
  background: var(--w-hover);
}

.pa-row.is-on {
  background: var(--w-selection);
}

.pa-row.is-on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--w-mark);
}

.pa-row .t {
  flex: 1;
  min-width: 0;
}

.pa-row .nm {
  font: 600 14px/18px var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pa-row .sb {
  font-size: 12.5px;
  line-height: 16px;
  color: var(--w-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pa-row > .ck {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--w-mark);
}

/* Avatars: the account's profile picture with its store's mark in a ring; a store with no account
   shows its mark on the store's colour. */
.av {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--w-steam-avatar);
  color: #fff;
  font: 600 14.5px/1 var(--text);
}

.av > svg {
  width: 56%;
  height: 56%;
}

.av.has-pic {
  background: none;
}

.av > img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.av.sm {
  width: 20px;
  height: 20px;
  font-size: 9px;
}

.av.md {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.av .badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--av-ring, var(--w-window));
}

.av .badge svg {
  width: 9px;
  height: 9px;
}

.av.md .badge {
  width: 13px;
  height: 13px;
}

.av.md .badge svg {
  width: 8px;
  height: 8px;
}

/* The footer bar. */
.w-foot {
  flex: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 46px;
  padding: 0 20px;
  background: var(--w-bar);
  border-top: 1px solid var(--w-rule-2);
}

.w-brand {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
}

/* The logo with its lettered name, as the app's footer draws it (BrandMark, 15 px tall). */
.w-brand .lockup {
  width: calc(15px * 1934 / 314);
  height: 15px;
  color: var(--w-ink);
}

.w-hints {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.w-hint {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--w-icon);
}

.w-key {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 7px;
  border-radius: 4px;
  border: 1px solid var(--w-edge);
  background: var(--w-surface);
  font: 600 11px/1 var(--text);
  color: var(--w-icon);
  transition: transform 0.08s, background-color 0.08s;
}

.w-key svg {
  width: 11px;
  height: 11px;
}

.w-key.is-down {
  transform: translateY(1px);
  background: var(--w-soft);
  color: var(--w-accent-text);
}

.w-link {
  font: 600 13px/1 var(--text);
  color: var(--w-accent-text);
}

/* The launch window: 560 wide, top centre of the screen. */
.launch {
  width: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stage .launch {
  position: absolute;
  left: 50%;
  top: 64px;
  max-width: 100%;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  pointer-events: none;
  z-index: 10;
}

.stage .launch.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.l-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px 18px;
}

.l-thumb {
  flex: none;
  width: 104px;
  height: 58px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--w-art);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}

.l-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.l-title {
  font: 600 18px/22px var(--display);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.l-who {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  height: 20px;
  font-size: 13px;
  color: var(--w-muted);
}

.l-body {
  padding: 0 22px 20px;
}

.l-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 18px;
  margin-bottom: 10px;
}

.l-step-text {
  font-size: 13.5px;
  color: var(--w-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.l-step-of {
  flex: none;
  font-size: 12.5px;
  color: var(--w-faint);
}

.l-track {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: var(--w-track);
  overflow: hidden;
}

.l-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 2px;
  background: var(--w-mark);
  transition: width 0.5s var(--ease);
}

.l-done {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  font-size: 13.5px;
  color: var(--w-ink);
}

.l-done svg {
  width: 18px;
  height: 18px;
  color: var(--w-success);
}

.l-notice {
  display: flex;
  gap: 14px;
  padding: 15px 18px 16px 16px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--w-warn-fill);
  box-shadow: inset 0 0 0 1px var(--w-warn-edge);
}

.l-notice > svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--w-warn-ink);
}

.l-notice b {
  display: block;
  font: 600 14.5px/20px var(--text);
}

.l-notice span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 17px;
  color: var(--w-muted);
}

.l-wait {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  font-size: 13px;
  color: var(--w-muted);
}

.l-wait .btn-w {
  margin-left: auto;
}

.l-wait .ok {
  width: 18px;
  height: 18px;
  color: var(--w-success);
}

.l-wait.is-ok {
  color: var(--w-ink);
  font-size: 13.5px;
}

.spin {
  width: 16px;
  height: 16px;
  color: var(--w-mark);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* The Add account window (Paper 03u, "Pass"): 460 wide. */
.addw {
  width: 460px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.a-body {
  position: relative;
  padding: 32px 36px 28px;
}

.a-back {
  position: absolute;
  left: 36px;
  top: 32px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--w-fill);
  color: var(--w-icon);
}

.a-back svg {
  width: 15px;
  height: 15px;
}

.a-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.a-tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--w-surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18), inset 0 0 0 1px var(--w-rule-2);
  color: var(--w-ink);
}

.a-tile .logo {
  width: 26px;
  height: 26px;
}

.a-tile.store {
  color: #fff;
}

.a-tile.store svg {
  width: 26px;
  height: 26px;
}

.a-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.a-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--w-edge);
}

.a-lock {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--w-edge);
  color: var(--w-icon);
}

.a-lock svg {
  width: 11px;
  height: 11px;
}

.a-title {
  margin-top: 32px;
  text-align: center;
  font: 600 22px/28px var(--display);
}

.a-sub {
  margin-top: 6px;
  text-align: center;
  font-size: 13px;
  line-height: 18px;
  color: var(--w-muted);
}

.a-fields {
  margin-top: 26px;
  border-radius: 8px;
  background: var(--w-surface);
  box-shadow: inset 0 0 0 1px var(--w-mark), 0 0 0 1px color-mix(in srgb, var(--w-mark) 25%, transparent);
  overflow: hidden;
}

.gp[data-scheme="dark"] .a-fields {
  background: #2b2b2b;
}

.a-field {
  position: relative;
  padding: 12px 16px 11px;
}

.a-field + .a-field {
  border-top: 1px solid var(--w-rule-2);
}

.a-field label {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: var(--w-muted);
}

.a-field.is-focus label {
  color: var(--w-accent-text);
  font-weight: 600;
}

.a-field .v {
  margin-top: 2px;
  min-height: 20px;
  font-size: 15px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
}

.a-field .dots {
  letter-spacing: 2px;
  font-size: 12px;
}

.a-field .eye {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  color: var(--w-icon);
}

.a-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 16px;
  color: var(--w-muted);
}

.a-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 13.5px;
}

.a-enc {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--w-muted);
}

.a-enc svg {
  width: 12px;
  height: 12px;
}

.a-submit {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 46px;
  border-radius: 6px;
  background: var(--w-accent);
  color: #fff;
  font: 600 15px/1 var(--text);
}

.a-submit .k {
  display: grid;
  place-items: center;
  width: 24px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
}

.a-submit .k svg {
  width: 11px;
  height: 11px;
}

/* Another store's window fades in where the last one was. */
.addw {
  transition: opacity 0.17s var(--ease);
}

.addw.is-out {
  opacity: 0;
}

/* The field being typed in shows a caret after its text. */
.a-field.is-focus .v::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 16px;
  margin-left: 1px;
  vertical-align: -3px;
  background: var(--w-ink);
  animation: blink 1.06s steps(1) infinite;
}

.a-submit {
  transition: transform 0.08s, filter 0.08s;
}

.a-submit.is-down {
  transform: translateY(1px);
  filter: brightness(0.9);
}

/* The demo's own pointer, for what it does with the mouse, and the ring each click leaves. */
.cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 70;
  width: 18px;
  height: 24px;
  margin: -2px 0 0 -2px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.3, 0.1, 0.2, 1), opacity 0.25s;
}

.cursor.is-on {
  opacity: 1;
}

.cursor.no-glide {
  transition: none;
}

.cursor svg {
  width: 18px;
  height: 24px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
  transform-origin: 2px 2px;
  transition: transform 0.1s;
}

.cursor.is-click svg {
  transform: scale(0.86);
}

.ripple {
  position: absolute;
  z-index: 69;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  animation: ripple 0.6s var(--ease) forwards;
}

@keyframes ripple {
  from {
    opacity: 1;
    transform: scale(0.3);
  }

  to {
    opacity: 0;
    transform: scale(1.4);
  }
}

/* A callout that points at what the demo is doing. */
.coach {
  position: absolute;
  z-index: 60;
  max-width: 290px;
  padding: 11px 14px 12px;
  border-radius: 10px;
  background: #fff;
  color: #14181d;
  font: 600 14px/1.38 var(--text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  pointer-events: none;
}

.coach.is-on {
  opacity: 1;
  transform: none;
}

.coach::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 2px;
  transform: rotate(45deg);
}

.coach[data-side="left"]::before {
  right: -5px;
  top: var(--arrow, 50%);
  margin-top: -6px;
}

.coach[data-side="right"]::before {
  left: -5px;
  top: var(--arrow, 50%);
  margin-top: -6px;
}

.coach[data-side="top"]::before {
  bottom: -5px;
  left: var(--arrow, 50%);
  margin-left: -6px;
}

.coach[data-side="bottom"]::before {
  top: -5px;
  left: var(--arrow, 50%);
  margin-left: -6px;
}

.coach-text {
  position: relative;
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1180px) {
  .split,
  .split.flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .split.flip > .split-visual {
    order: 1;
  }

  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* Where the six names no longer fit on one line, the logo bar shows the marks alone, so it
   stays one slim row; the names stay for screen readers. */
@media (max-width: 1060px) {
  .works {
    gap: 10px 24px;
  }

  .works-list {
    flex-wrap: nowrap;
    gap: 26px;
  }

  .works-list li span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .works-list .icon {
    font-size: 24px;
  }
}

@media (max-width: 940px) {
  .top-nav {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
    --section: 104px;
  }

  body {
    font-size: 16px;
  }

  .top-inner {
    height: 64px;
  }

  .top-link.discord span {
    display: none;
  }

  .hero {
    padding-top: 104px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 1.06;
  }

  .lead {
    font-size: 17px;
  }

  .section h2 {
    font-size: 31px;
    line-height: 1.12;
  }

  .stage {
    margin-top: 40px;
  }

  .works {
    padding: 28px var(--gutter) 20px;
    gap: 10px 18px;
  }

  .works-list {
    gap: 20px;
  }

  .works-list .icon {
    font-size: 22px;
  }

  .tile {
    width: 128px;
    height: 192px;
  }

  .shelf {
    margin-top: 40px;
  }

  /* The table: each chore, and under it what the app does instead. */
  .chores {
    margin-top: 32px;
  }

  .chores::before,
  .ch-head {
    display: none;
  }

  .ch-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 18px 0;
  }

  .ch-col {
    min-height: 0;
    padding: 0;
    gap: 12px;
    font-size: 16px;
  }

  .ch-row .ch-col > svg {
    width: 22px;
    height: 22px;
    padding: 5px;
  }

  .acc-screen {
    height: auto;
    padding: 32px 10px;
  }

  .add-screen {
    height: auto;
    padding: 56px 10px 20px;
  }

  .acc-win {
    max-width: 100%;
  }

  .screen > .launch {
    top: 48px;
    width: calc(100% - 20px);
  }

  .fit {
    width: 100%;
  }

  .fit > .gp {
    width: 100%;
  }

  .fit .l-head,
  .screen > .launch .l-head {
    padding: 18px 16px 16px;
    gap: 14px;
  }

  .fit .l-thumb,
  .screen > .launch .l-thumb {
    width: 84px;
    height: 47px;
  }

  .fit .l-title,
  .screen > .launch .l-title {
    white-space: normal;
    font-size: 16px;
    line-height: 20px;
  }

  .fit .l-body,
  .screen > .launch .l-body {
    padding: 0 16px 18px;
  }

  .fit .w-foot,
  .screen > .launch .w-foot,
  .acc-win .w-foot {
    padding: 0 16px;
  }

  .fit .w-hint.opt,
  .screen > .launch .w-hint.opt,
  .acc-win .w-hint.opt {
    display: none;
  }

  .a-body {
    padding: 24px 20px 22px;
  }

  .a-back {
    left: 20px;
    top: 24px;
  }

  .a-pair {
    margin-top: 10px;
  }

  .a-title {
    margin-top: 24px;
    font-size: 20px;
  }

  .a-remember {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .a-submit {
    margin-top: 28px;
  }

  .stat {
    padding: 24px 18px 22px;
  }

  .stat-num {
    font-size: 72px;
  }

  .start {
    grid-template-columns: 118px minmax(0, 1fr) 56px;
    gap: 10px;
    font-size: 14px;
  }

  .start-name {
    gap: 9px;
  }

  .start-name .m {
    width: 22px;
    height: 22px;
  }

  .starts-foot {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .qa summary {
    padding: 18px 2px 18px 0;
    font-size: 17px;
  }

  .qa-a p {
    padding-right: 8px;
    font-size: 16px;
  }

  .last {
    margin-top: 72px;
    padding: 120px 0 112px;
  }

  .last h2 {
    font-size: 40px;
  }

  .last-mark {
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
  }

  .wall-row img {
    width: 112px;
    height: 168px;
  }

  .last-buttons {
    flex-direction: column;
    align-items: center;
  }

  .last-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* The demo's window in a phone's width: the same parts, narrower. */
.stage.is-compact .p-search {
  height: 56px;
  padding: 0 16px;
  gap: 12px;
}

.stage.is-compact .p-field input,
.stage.is-compact .p-measure {
  font-size: 18px;
}

.stage.is-compact .p-search > svg {
  width: 18px;
  height: 18px;
}

.stage.is-compact .p-scopes {
  padding: 0 10px;
}

.stage.is-compact .p-tab {
  padding: 0 10px;
}

.stage.is-compact .p-tab.has-icon .lbl {
  display: none;
}

.stage.is-compact .p-tab.has-icon {
  padding: 0 8px;
}

.stage.is-compact .h-head {
  margin: 14px 16px 9px;
}

.stage.is-compact .h-recent {
  padding: 0 16px;
  height: 222px;
}

.stage.is-compact .h-open {
  width: min(320px, calc(100vw - 80px));
  height: 200px;
}

.stage.is-compact .h-open-title {
  font-size: 22px;
}

.stage.is-compact .h-open-in {
  left: 14px;
  right: 14px;
  bottom: 14px;
}

.stage.is-compact .h-open-row {
  gap: 8px;
}

.stage.is-compact .h-open .w-play {
  height: 40px;
  padding: 0 16px 0 14px;
  gap: 8px;
}

.stage.is-compact .glass {
  height: 40px;
  gap: 8px;
  padding: 0 10px 0 6px;
}

.stage.is-compact .glass .nm {
  max-width: 96px;
}

.stage.is-compact .h-cover {
  width: 120px;
  height: 180px;
}

.stage.is-compact .h-disc {
  margin: 8px 16px 10px;
}

.stage.is-compact .h-chips .h-chip:not(.is-on):last-child {
  display: none;
}

.stage.is-compact .h-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 20px;
}

.stage.is-compact .r-pane {
  display: none;
}

.stage.is-compact .r-view {
  flex-direction: column;
}

.stage.is-compact .r-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--w-rule-2);
  background: var(--w-pane);
}

.stage.is-compact .r-bar .w-acct {
  flex: 1;
  min-width: 0;
  height: 48px;
}

.stage.is-compact .r-bar .w-play {
  height: 48px;
}

.stage.is-compact .r-row {
  padding: 0 10px 0 12px;
  gap: 12px;
}

.stage.is-compact .lib-filters {
  padding: 0 12px;
}

.stage.is-compact .lib-sort,
.stage.is-compact .lib-pane {
  display: none;
}

.stage.is-compact .lib-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 10px;
  padding: 12px 16px 20px;
}

.stage.is-compact .lib-bar.is-on {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--w-rule-2);
  background: var(--w-pane);
}

.stage.is-compact .lib-bar .w-acct {
  flex: 1;
  min-width: 0;
  height: 48px;
}

.stage.is-compact .lib-bar .w-play {
  height: 48px;
}

.stage.is-compact .w-foot {
  padding: 0 16px;
}

.stage.is-compact .w-hint.opt,
.stage.is-compact .w-link {
  display: none;
}

.stage.is-compact .launch {
  top: 32px;
  width: 100%;
}

.stage.is-compact .l-head {
  padding: 18px 16px 16px;
  gap: 14px;
}

.stage.is-compact .l-thumb {
  width: 84px;
  height: 47px;
}

.stage.is-compact .l-title {
  font-size: 16px;
  white-space: normal;
  line-height: 20px;
}

.stage.is-compact .l-body {
  padding: 0 16px 18px;
}

.stage.is-compact .coach {
  max-width: 240px;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .shelf-track,
  .wall-row {
    animation: none;
  }
}
