/* Brighter Pocket (/pocket, src/app/Pocket.tsx): the iOS app's page. A page that scrolls, in the site's dark theme
   (css/app.css), Pocket's white (--pocket, as the icon's Apple logo) for its name and buttons beside the icon's gold; phones and an iPad drawn
   in CSS round the app's pictures and clips. Phones first: one column, the pictures in a row that swipes; side by side
   from 860 px. */
.pk-page {
  /* a touch of the icon's gold for the marks and links, the video's blue in the glows */
  --pk-gold-text: #f2c45e;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg0);
  scrollbar-gutter: stable;
  --gold: #f0b742;
  font-size: 1rem;
  line-height: 1.5;
}
.pk-page.vbar-host {
  padding-right: 16px !important;
}
/* (the site's foot, css/app.css, at the page's width and sides) */
.pk-page {
  --foot-width: 70rem;
}
.pk-page .site-foot {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (max-width: 640px) {
  .pk-page .site-foot {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
.pk-main {
  width: min(70rem, 100%);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}
.pk-page :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- On this page ---------- */
/* (beside the page on wide screens, as documentation sites have it (Joe, 2026-11-19): the page's column and a narrow
   one for the contents, held in view as the page scrolls; the place being read lit in the icon's gold; on narrower
   screens the page alone, as before) */
.pk-toc {
  display: none;
}
.pk-page :is(h1, h2, details)[id] {
  scroll-margin-top: 1.5rem;
}
@media (min-width: 1200px) {
  .pk-page {
    --foot-width: 86.75rem;
  }
  .pk-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 13.5rem;
    column-gap: 2rem;
    width: min(86.75rem, 100%);
    margin: 0 auto;
    padding-right: 1.25rem;
  }
  .pk-body > .pk-main {
    width: auto;
    min-width: 0;
    margin: 0;
  }
  .pk-toc {
    display: block;
    position: sticky;
    top: 2rem;
    align-self: start;
    margin-top: 3.5rem;
    max-height: calc(100dvh - 8rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
.pk-toc-title {
  margin: 0 0 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg2);
}
.pk-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}
.pk-toc a {
  display: block;
  margin-left: -1px;
  padding: 0.3125rem 0 0.3125rem 0.875rem;
  border-left: 2px solid transparent;
  color: var(--fg1);
  font-size: 0.875rem;
  line-height: 1.35;
  text-decoration: none;
}
.pk-toc-sub a {
  padding-left: 1.625rem;
  font-size: 0.8125rem;
  color: var(--fg2);
}
@media (hover: hover) {
  .pk-toc a:hover {
    color: var(--fg0);
  }
}
.pk-toc a[aria-current] {
  color: var(--pk-gold-text);
  border-left-color: var(--pk-gold-text);
}

/* ---------- the hero ---------- */
/* (the words over the video at every width, centred: Joe, 2026-11-14, not side by side on a wide screen) */
.pk-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    'text'
    'video';
  justify-items: center;
  row-gap: 2.25rem;
  padding: 3.5rem 0 1rem;
  text-align: center;
}
.pk-hero-text {
  grid-area: text;
}
/* the video, 16:9 (YouTube's player), with its title over it so it isn't missed */
.pk-demo {
  grid-area: video;
  justify-self: center;
  width: 100%;
  max-width: 50rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pk-demo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--fg0);
  font-size: 1.125rem;
  font-weight: 700;
}
.pk-demo-title svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: var(--pk-gold-text);
}
.pk-demo-title span {
  color: var(--fg2);
  font-size: 0.9375rem;
  font-weight: 500;
}
.pk-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1rem;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 0 90px rgba(233, 166, 50, 0.12);
}
.pk-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/* the repository, by its name and GitHub's mark, under the hero's words: a quiet pill */
.pk-gh {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.75rem 0.4375rem 0.625rem;
  border-radius: 62.4375rem;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--fg0);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.pk-gh:hover {
  text-decoration: none;
  background: var(--bg3);
}
.pk-gh-tag {
  color: var(--fg2);
  font-weight: 500;
}
.pk-gh-tag::before {
  content: '·';
  margin-right: 0.5rem;
}
/* (a glow of the icon's gold and Pocket's white behind it all, wider than the column) */
.pk-hero::before {
  content: '';
  position: absolute;
  inset: -2rem -40vw 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(34rem 22rem at 72% 46%, rgba(74, 132, 214, 0.14), transparent 70%),
    radial-gradient(30rem 18rem at 20% 20%, rgba(240, 183, 66, 0.1), transparent 70%);
}
.pk-hero > * {
  position: relative;
}
.pk-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.pk-lockup {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.pk-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 22.5%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(240, 183, 66, 0.12);
  background: #15161a;
}
.pk-lockup-words {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  line-height: 1;
}
.pk-lockup .brand-name {
  font-size: 1.75rem;
  color: var(--fg0);
}
.pk-lockup .brand-sub {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
}
/* (Apple's logo after the name, as in the top bar) */
.pk-lockup .apple-icon {
  align-self: center;
  margin-left: -0.125rem;
}
.pk-hero h1 {
  margin: 0;
  font-size: clamp(2.375rem, 4.6vw, 3.5rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--fg0);
  text-wrap: balance;
}
/* (the title lit in the icon's gold, as the game's name is, in the page's own face) */
.pk-hero h1.pk-title-lit {
  background: linear-gradient(180deg, #ffe08a, #e9a632);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pk-lede {
  margin: 0;
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--fg1);
  text-wrap: pretty;
}
.pk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.pk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  white-space: nowrap;
  border-radius: 0.75rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition:
    filter 0.15s,
    background 0.15s,
    transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.pk-btn:hover {
  text-decoration: none;
}
.pk-btn:active {
  transform: scale(0.98);
}
.pk-btn-main {
  color: var(--fg0);
  background: linear-gradient(180deg, #2f3542, #252a35);
  border: 1px solid #454d5e;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 18px rgba(0, 0, 0, 0.35);
}
.pk-btn-alt {
  color: var(--fg0);
  background: var(--bg2);
  border: 1px solid #3a4252;
}
@media (hover: hover) {
  .pk-btn-main:hover {
    filter: brightness(1.08);
  }
  .pk-btn-alt:hover {
    background: var(--bg3);
  }
}
.pk-btn .ext-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
}
/* ---------- a section's head ---------- */
.pk-section {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  /* (an address naming a section, like #faq, puts its title clear of the pinned top bar) */
  scroll-margin-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 1.25rem);
}
.pk-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.pk-page h2 {
  margin: 0;
  font-size: clamp(1.625rem, 3.4vw, 2.25rem);
  font-weight: 720;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg0);
  text-wrap: balance;
}
.pk-head p {
  margin: 0;
  max-width: 36rem;
  color: var(--fg1);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

/* ---------- how it works: steps to click through beside a stack that builds ---------- */
/* a card: the step's words and buttons on one side, the drawing on the other (above the words on a phone) */
.pk-how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  grid-template-areas:
    'text dia'
    'nav dia';
  grid-template-rows: 1fr auto;
  column-gap: 2.5rem;
  row-gap: 1.25rem;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: var(--bg1);
  border: 1px solid var(--line);
}
.pk-how-text {
  grid-area: text;
  align-self: center;
}
.pk-how-count {
  display: block;
  margin-bottom: 0.375rem;
  color: var(--pk-gold-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pk-how-text h3 {
  margin: 0 0 0.5rem;
  color: var(--fg0);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
}
.pk-how-text p {
  margin: 0;
  min-height: 6.25rem;
  color: var(--fg1);
  font-size: 1.0625rem;
  text-wrap: pretty;
}
.pk-how-nav {
  grid-area: nav;
  display: flex;
  gap: 0.75rem;
}
.pk-how-nav .pk-btn {
  min-width: 7rem;
}
.pk-how-nav .pk-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
/* the drawing: every part at the bottom of a fixed stage, raised by its --y for the step (and shifted by --x when it
   is away), so a step moves the parts and the card never changes height. --h a block's height, --g the gap between
   two, --lift how far Pocket raises the game and Tolkara to fit round them */
.pk-dia {
  --h: 3.75rem;
  --g: 0.375rem;
  --lift: 1rem;
  --side: 1.25rem;
  grid-area: dia;
  position: relative;
  align-self: center;
  height: 17.5rem;
  border-radius: 1rem;
  background: var(--bg0);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.pk-dia > * {
  --y: 0rem;
  --x: 0%;
  position: absolute;
  left: var(--side);
  right: var(--side);
  bottom: 1.25rem;
  height: var(--h);
  transform: translate(var(--x), calc(-1 * var(--y)));
  transition:
    transform 0.6s cubic-bezier(0.2, 0.85, 0.25, 1),
    opacity 0.4s ease;
}
/* (macOS under the game first, then away; iOS in its place from step 2) */
.pk-dia[data-step='0'] [data-part='ios'],
.pk-dia:not([data-step='0']) [data-part='mac'] {
  --y: -1.5rem;
  opacity: 0;
}
.pk-dia [data-part='game'] {
  --y: calc(var(--h) + var(--g));
}
.pk-dia:not([data-step='0']) [data-part='game'] {
  --y: calc(2 * (var(--h) + var(--g)));
}
.pk-dia[data-step='3'] [data-part='game'] {
  --y: calc(2 * (var(--h) + var(--g)) + var(--lift));
}
/* (Tolkara comes in from the side to fill the gap the move left) */
.pk-dia [data-part='layer'] {
  --y: calc(var(--h) + var(--g));
  --x: 40%;
  opacity: 0;
}
.pk-dia[data-step='2'] [data-part='layer'],
.pk-dia[data-step='3'] [data-part='layer'] {
  --x: 0%;
  opacity: 1;
}
.pk-dia[data-step='3'] [data-part='layer'] {
  --y: calc(var(--h) + var(--g) + var(--lift));
}
.pk-dia .pk-dia-gap {
  --y: calc(var(--h) + var(--g));
  opacity: 0;
}
.pk-dia[data-step='1'] .pk-dia-gap {
  opacity: 1;
}
/* (Pocket: a frame round the game and Tolkara, its name on its top edge) */
.pk-dia .pk-dia-frame {
  --y: calc(var(--h) + (var(--g) + var(--lift)) / 2);
  left: calc(var(--side) - 0.75rem);
  right: calc(var(--side) - 0.75rem);
  height: calc(2 * var(--h) + 1.5 * var(--g) + var(--lift) / 2 + 1rem);
  opacity: 0;
  transform: translate(0, calc(-1 * var(--y))) scale(1.05);
}
.pk-dia[data-step='3'] .pk-dia-frame,
.pk-dia[data-step='5'] .pk-dia-frame {
  opacity: 1;
  transform: translate(0, calc(-1 * var(--y)));
}
/* (the last step: the frame round one row, the Steam sign-in and the game's updates side by side in it) */
.pk-dia[data-step='5'] .pk-dia-frame {
  height: calc(var(--h) + (var(--g) + var(--lift)) / 2 + 1rem);
}
.pk-dia .pk-dia-frame {
  transition:
    transform 0.6s cubic-bezier(0.2, 0.85, 0.25, 1),
    opacity 0.4s ease,
    height 0.6s cubic-bezier(0.2, 0.85, 0.25, 1);
}
/* (the last two steps (Joe, 2026-11-15): the game and Tolkara sink into one block, Brighter Pocket on the phone, the App
   Store crossed out over it beside a macOS device that builds and installs it, an arrow down into the app; then the
   app's frame again, the Steam sign-in and game updates inside it. --top the row over the app, room for the arrow) */
.pk-dia {
  --top: calc(2 * (var(--h) + var(--g)) + 1.25rem);
}
.pk-dia[data-step='4'] [data-part='game'],
.pk-dia[data-step='5'] [data-part='game'],
.pk-dia[data-step='4'] [data-part='layer'],
.pk-dia[data-step='5'] [data-part='layer'] {
  --x: 0%;
  --y: calc(var(--h) + var(--g));
  opacity: 0;
}
.pk-dia [data-part='app'] {
  --y: calc(var(--h) + var(--g));
  opacity: 0;
}
.pk-dia[data-step='4'] [data-part='app'] {
  opacity: 1;
}
.pk-dia [data-part='store'],
.pk-dia [data-part='from-mac'] {
  --y: calc(var(--top) + 1.5rem);
  opacity: 0;
}
.pk-dia [data-part='steam-in'],
.pk-dia [data-part='updates'] {
  --y: calc(var(--h) + var(--g) + var(--lift));
  opacity: 0;
}
.pk-dia [data-part='steam-in'] {
  right: calc(50% + var(--g) / 2);
}
.pk-dia [data-part='updates'] {
  left: calc(50% + var(--g) / 2);
}
.pk-dia[data-step='5'] [data-part='steam-in'],
.pk-dia[data-step='5'] [data-part='updates'] {
  opacity: 1;
}
.pk-dia [data-part='store'] {
  right: calc(50% + var(--g) / 2);
}
.pk-dia [data-part='from-mac'] {
  left: calc(50% + var(--g) / 2);
}
.pk-dia[data-step='4'] [data-part='store'],
.pk-dia[data-step='4'] [data-part='from-mac'] {
  --y: var(--top);
  opacity: 1;
}
.pk-dia .pk-dia-arrow {
  --y: calc(2 * (var(--h) + var(--g)) + 0.0625rem);
  height: 1.125rem;
  display: flex;
  justify-content: center;
  opacity: 0;
}
.pk-dia-arrow svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: var(--fg1);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pk-dia [data-part='arrow-mac'] {
  left: calc(50% + var(--g) / 2);
}
.pk-dia[data-step='4'] [data-part='arrow-mac'] {
  opacity: 1;
}

/* the parts: a block's name over its line */
.pk-blk {
  --c: 174, 182, 196;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  column-gap: 0.75rem;
  padding: 0 1.125rem;
  border-radius: 0.75rem;
}
/* (a block that leads with its icon (the game's, the app's, the macOS device's, Steam's), the name and line beside it) */
.pk-blk-lead {
  grid-template-columns: auto minmax(0, 1fr);
}
.pk-blk.pk-blk-lead b,
.pk-blk.pk-blk-lead span {
  grid-column: 2;
}
/* (a name with no line under it, beside the icon's middle) */
.pk-blk.pk-blk-lead b:last-child {
  grid-row: 1 / span 2;
  align-self: center;
}
.pk-blk-lead > svg {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: 1.5rem;
  height: 1.5rem;
}
.pk-blk-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.pk-blk[data-part='game'] {
  --c: 240, 183, 66;
}
.pk-blk[data-part='layer'] {
  --c: 120, 183, 255;
}
.pk-blk[data-part='app'] {
  --c: 244, 245, 247;
}
.pk-blk[data-part='steam-in'],
.pk-blk[data-part='updates'] {
  --c: 102, 192, 244;
}
/* (the last steps' blocks centred as iOS's is, each its mark beside its name, drawn in its own colour) */
.pk-blk-mid .pk-blk-icon {
  width: 1.75rem;
  height: 1.75rem;
}
.pk-blk-mid svg {
  flex: none;
  margin: 0;
}
.pk-blk[data-part='from-mac'] svg {
  color: var(--fg0);
}
.pk-blk[data-part='steam-in'] svg,
.pk-blk[data-part='updates'] svg {
  color: #fff;
}
.pk-dia .pk-blk-base.pk-blk-mid {
  border-color: rgba(var(--c), 0.7);
}
.pk-dia .pk-blk-base.pk-blk-mid b {
  color: rgb(var(--c));
}
.pk-blk b {
  color: var(--fg0);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.25;
}
.pk-blk span {
  grid-column: 1;
  color: var(--fg2);
  font-size: 0.8125rem;
  line-height: 1.3;
}
/* (the ground, macOS or iOS: Apple's mark beside the name) */
.pk-blk-base {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.pk-blk-base span {
  color: var(--fg2);
}
.pk-blk-base svg {
  color: var(--fg1);
}
.pk-dia-gap,
.pk-dia-no {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1.5px dashed rgba(232, 112, 112, 0.6);
  border-radius: 0.75rem;
  color: var(--bad);
  font-size: 0.875rem;
  font-weight: 600;
}
.pk-dia-gap svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.pk-dia-frame {
  border-radius: 1.125rem;
  pointer-events: none;
}
.pk-dia-tab {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem 0.25rem 0.3125rem;
  border-radius: 62.4375rem;
  white-space: nowrap;
}
.pk-dia-tab img {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 22.5%;
}
.pk-dia-tab b {
  font-size: 0.875rem;
  font-weight: 700;
}
.pk-dia-tab span {
  font-size: 0.75rem;
}

/* (the App Store, crossed out: its mark, its name struck through) */
.pk-appstore {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
}
.pk-dia-no s {
  text-decoration-thickness: 1.5px;
}

/* the look: no fills, each block drawn in its colour and named in it, Pocket a dashed frame (Joe, 2026-11-14) */
.pk-dia .pk-blk {
  background: transparent;
  border: 1.5px solid rgba(var(--c), 0.7);
}
.pk-dia .pk-blk b {
  color: rgb(var(--c));
}
.pk-dia .pk-blk-base {
  border-color: rgba(var(--c), 0.4);
}
.pk-dia .pk-blk-base b {
  color: var(--fg0);
}
.pk-dia .pk-dia-frame {
  border: 1.5px dashed rgba(244, 245, 247, 0.55);
}
.pk-dia .pk-dia-tab {
  background: var(--bg0);
}
.pk-dia .pk-dia-tab b {
  color: var(--fg0);
}
.pk-dia .pk-dia-tab span {
  color: var(--fg2);
}

/* ---------- the account's checks, the setup's list ---------- */
.pk-checklist b {
  display: block;
  color: var(--fg0);
  font-weight: 650;
}
.pk-checklist li > span > span {
  display: block;
  color: var(--fg1);
  font-size: 0.9375rem;
}
/* the links under the list to the README's sections, and the risk note's */
.pk-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0 0;
}
.pk-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--pk-gold-text);
  font-weight: 600;
  text-decoration: none;
}
.pk-more a:hover {
  text-decoration: underline;
}
.pk-tile-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  color: var(--pk-gold-text);
  background: rgba(240, 183, 66, 0.1);
  border: 1px solid rgba(240, 183, 66, 0.25);
}
.pk-tile-icon svg {
  width: 1.375rem;
  height: 1.375rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pk-tile-icon svg[data-ic] {
  fill: currentColor;
  stroke: none;
}
/* the tiles four across (two by two on smaller screens) */
.pk-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* a tile: its icon beside its name and line */
.pk-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  column-gap: 1rem;
  row-gap: 0.3rem;
  padding: 1.125rem 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid var(--line);
}
.pk-tile .pk-tile-icon {
  grid-row: span 2;
}
.pk-tile h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 650;
  color: var(--fg0);
}
.pk-tile p {
  margin: 0;
  color: var(--fg1);
  font-size: 0.9375rem;
  line-height: 1.5;
}
/* a word in the text linked to another site: the text's own colour, a gold underline */
.pk-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(242, 196, 94, 0.6);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.pk-link:hover {
  color: var(--pk-gold-text);
  text-decoration-color: currentColor;
}

/* a reference, small and raised after its sentence (the README's References) */
.pk-ref {
  margin-left: 0.125rem;
  vertical-align: super;
  font-size: 0.7em;
  font-weight: 600;
  line-height: 0;
  color: var(--fg2);
  text-decoration: none;
}
.pk-ref:hover {
  color: var(--pk-gold-text);
}

/* ---------- setting it up: the two routes as tabs, and what you need ---------- */
.pk-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-bottom: 0.25rem;
  border-radius: 0.75rem;
  background: var(--bg0);
  border: 1px solid var(--line);
}
.pk-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.375rem 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--fg1);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.pk-tab[aria-selected='true'] {
  background: var(--bg2);
  color: var(--fg0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 2px 8px rgba(0, 0, 0, 0.3);
}
.pk-tab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
.pk-tab-badge {
  padding: 0.0625rem 0.4375rem;
  border-radius: 62.4375rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg1);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#pk-route {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.25rem;
}
.pk-need h3 {
  margin: 0;
  font-size: 1.25rem;
}
.pk-checklist li > span {
  color: var(--fg1);
}
.pk-setup {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: min(50rem, 100%);
  margin: 0 auto;
}
/* (the download full width on a phone, capped on wider screens; the small links centred under it) */
.pk-get {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
}
.pk-get .pk-btn-main {
  width: min(24rem, 100%);
}
.pk-get .pk-more,
#pk-route > .pk-actions > .pk-more {
  margin: 0.625rem 0 0;
  font-size: 0.875rem;
}
#pk-route > .pk-actions > .pk-more {
  flex: 1;
  justify-content: center;
}
.pk-dl-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pk-route-lede {
  margin: 0;
  color: var(--fg1);
}
/* (Brighter Pocket Companion's window, its own rounded corners and shadow) */
.pk-companion-shot {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1rem;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.45));
}
.pk-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: 1.125rem;
  background: var(--bg1);
  border: 1px solid var(--line);
}
.pk-card h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
}
.pk-card-lede {
  margin: -0.25rem 0 0;
  color: var(--fg1);
}
.pk-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pk-checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.pk-check {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.0625rem;
  padding: 0.1875rem;
  border-radius: 50%;
  background: rgba(111, 208, 140, 0.14);
  fill: none;
  stroke: var(--good);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pk-note {
  margin: auto 0 0;
  padding-top: 0.875rem;
  border-top: 1px solid var(--line-soft);
  color: var(--fg2);
  font-size: 0.875rem;
}
.pk-steps {
  background: radial-gradient(26rem 14rem at 100% 0%, rgba(74, 132, 214, 0.1), transparent 70%), var(--bg1);
}
.pk-steps ol {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.pk-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 3rem;
  min-height: 2.25rem;
  counter-increment: step;
}
.pk-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.125rem;
  height: 2.125rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--fg0);
  font-weight: 700;
}
.pk-steps b {
  color: var(--fg0);
  font-weight: 650;
}
.pk-steps li span {
  color: var(--fg1);
  font-size: 0.9375rem;
}
.pk-steps .pk-actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ---------- questions ---------- */
.pk-faq {
  width: min(46rem, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.pk-faq details {
  border-bottom: 1px solid var(--line);
}
.pk-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0.25rem;
  color: var(--fg0);
  font-size: 1.0625rem;
  font-weight: 620;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.pk-faq summary::-webkit-details-marker {
  display: none;
}
.pk-faq summary svg {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: var(--fg2);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.pk-faq details[open] summary svg {
  transform: rotate(180deg);
}
@media (hover: hover) {
  .pk-faq summary:hover {
    color: #fff;
  }
}
.pk-faq-a {
  padding: 0 0.25rem 1.25rem;
  color: var(--fg1);
  max-width: 42rem;
  text-wrap: pretty;
}
.pk-faq-a p {
  margin: 0;
}
.pk-faq-a .pk-more {
  margin-top: 0.75rem;
}

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .pk-features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 860px) {
  .pk-main {
    gap: 3.5rem;
  }
  .pk-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      'text'
      'video';
    row-gap: 1.75rem;
    padding-top: 2rem;
    text-align: center;
  }
  .pk-hero-text {
    align-items: center;
  }
  .pk-actions {
    justify-content: center;
  }
  .pk-steps .pk-actions {
    justify-content: flex-start;
  }
  .pk-how {
    grid-template-columns: 1fr;
    grid-template-areas:
      'dia'
      'text'
      'nav';
    grid-template-rows: none;
    padding: 1.25rem;
  }
}
/* (a phone: the drawing over the words, the blocks closer to the edge) */
@media (max-width: 560px) {
  /* (the download's name is long: it wraps in its button rather than run past the card; the tabs closer, the badge
     smaller, so both fit) */
  .pk-steps .pk-btn {
    white-space: normal;
    max-width: 100%;
    text-align: center;
  }
  .pk-tab {
    gap: 0.375rem;
    padding: 0.375rem 0.5rem;
  }
  .pk-tab-badge {
    font-size: 0.625rem;
    letter-spacing: 0.04em;
  }
  .pk-how {
    padding: 1rem;
    row-gap: 1rem;
  }
  .pk-how-text p {
    min-height: 8rem;
    font-size: 1rem;
  }
  .pk-how-nav .pk-btn {
    flex: 1;
    min-width: 0;
  }
  .pk-dia {
    --h: 3.375rem;
    --side: 0.875rem;
    height: 16.25rem;
  }
  .pk-blk {
    padding: 0 0.875rem;
  }
  .pk-blk b {
    font-size: 0.9375rem;
  }
  .pk-blk span {
    font-size: 0.75rem;
  }
  /* (the game's block on a phone: a smaller icon, closer, one line each) */
  .pk-blk-lead {
    column-gap: 0.5rem;
  }
  .pk-blk-lead > svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  .pk-blk-icon {
    width: 1.75rem;
    height: 1.75rem;
  }
  .pk-blk-lead b,
  .pk-blk-lead span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pk-dia-tab span {
    display: none;
  }
  /* (the macOS device's name the room it needs beside the crossed-out App Store) */
  .pk-dia [data-part='store'] {
    right: calc(58% + var(--g) / 2);
  }
  .pk-dia [data-part='from-mac'],
  .pk-dia [data-part='arrow-mac'] {
    left: calc(42% + var(--g) / 2);
  }
  .pk-blk-mid {
    padding: 0 0.5rem;
  }
  /* (the Steam sign-in and game updates, side by side in the app's frame: each on one line) */
  .pk-blk[data-part='steam-in'],
  .pk-blk[data-part='updates'] {
    gap: 0.375rem;
  }
  .pk-blk[data-part='steam-in'] b,
  .pk-blk[data-part='updates'] b {
    font-size: 0.8125rem;
    white-space: nowrap;
  }
}
@media (max-width: 640px) {
  .pk-main {
    padding: 0 1rem 1.5rem;
  }
  .pk-lockup .brand-name {
    font-size: 1.5rem;
  }
  .pk-lockup .brand-sub {
    font-size: 1.25rem;
  }
  .pk-lockup .apple-icon {
    width: 1.125rem;
    height: 1.125rem;
  }
  .pk-icon {
    width: 3.25rem;
    height: 3.25rem;
  }
  .pk-lede {
    font-size: 1.0625rem;
  }
  .pk-hero {
    padding-top: 1.5rem;
    row-gap: 1.5rem;
  }
  .pk-hero-text {
    gap: 1rem;
  }
  .pk-card {
    padding: 1.25rem;
  }
}
/* (a phone: the tiles two by two, compact, the icon over the name) */
@media (max-width: 480px) {
  .pk-features {
    gap: 0.625rem;
  }
  .pk-tile {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.875rem;
    border-radius: 0.875rem;
  }
  .pk-tile .pk-tile-icon {
    width: 2.125rem;
    height: 2.125rem;
    margin-bottom: 0.375rem;
    border-radius: 0.625rem;
  }
  .pk-tile .pk-tile-icon svg {
    width: 1.1875rem;
    height: 1.1875rem;
  }
  .pk-tile h3 {
    font-size: 0.9375rem;
    line-height: 1.3;
  }
  .pk-tile p {
    font-size: 0.8125rem;
    line-height: 1.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pk-btn,
  .pk-faq summary svg,
  .pk-dia > * {
    transition: none;
  }
}
