/* Trace, a file launcher.
 *
 * Trace is used with the keyboard and nothing else, so the keyboard is the
 * page's material. The hero is a keyboard in perspective with the three keys
 * that summon Trace backlit; features are headed by the keys that trigger
 * them; the download is an Enter key and the privacy promise is a zero key.
 * The one thing drawn from the app itself is the real recording, which the
 * page annotates rather than imitates.
 *
 * Colours: graphite from the app, aqua for the keys that open Trace and for
 * selection, amber for letters being typed.
 */

.mono { font-family: var(--font-mono); font-size: 0.9em; }
.muted { color: var(--text-muted); }

/* Keycap surfaces, shared by every key on the page. */
.site-trace {
  --cap-top: #272b32;
  --cap-bottom: #1c1f25;
  --cap-wall: #0a0b0e;
  --cap-rim: inset 0 1px 0 rgb(255 255 255 / 0.07), inset 0 -2px 0 rgb(0 0 0 / 0.28);
  --aqua-glow: rgb(94 224 230 / 0.5);
  --amber-glow: rgb(255 191 90 / 0.5);
}

/* Chrome --------------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand-word {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  font-stretch: 112.5%;
  letter-spacing: -0.02em;
}

.site-header .nav {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-stretch: 87.5%;
}

.site-header .nav a:hover { color: var(--accent); }

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.section-head-center { align-items: center; text-align: center; }

.label { color: var(--accent); }

.button { border-radius: 10px; font-family: var(--font-mono); font-size: 0.8125rem; font-stretch: 87.5%; }
.button-secondary { border-color: var(--border-strong); }
.button-secondary:hover { border-color: var(--accent); }

/* Hero ------------------------------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 96px);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(circle, var(--border-strong) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 30% 15%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 55% at 30% 15%, #000 10%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero-title {
  max-width: 19ch;
  font-size: clamp(2.1rem, 5.6vw, 5rem);
  font-weight: 800;
  font-stretch: 112.5%;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-title em { color: var(--accent); font-style: normal; }

.hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-7);
  align-items: flex-end;
  justify-content: space-between;
}

.hero-row .lead { max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* The keyboard ------------------------------------------------------------------------
   An ANSI layout, bottom four rows, on a 60-column grid where one key unit is
   four columns. Everything is sized from --u, so the whole deck scales as one
   object. It lies back in perspective with its left edge on the page's left
   edge, and runs off the right side of the screen. */

.scene {
  --u: clamp(24px, 5.8vw, 88px);
  --depth: calc(var(--u) * 0.09);
  position: relative;
  margin-top: clamp(32px, 5vw, 64px);
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  /* Perspective pushes the near edge of the deck below the layout box, and a
     mask clips to that box, so the scene reserves the room and gives it back. */
  padding-bottom: calc(var(--u) * 1.1);
  margin-bottom: calc(var(--u) * -0.9);
  perspective: calc(var(--u) * 13);
  perspective-origin: 30% -30%;
  /* Fades out to the right, where the deck runs off the page, and at the
     bottom, where the deck's shadow would otherwise stop on a hard line. */
  -webkit-mask-image:
    linear-gradient(90deg, #000 86%, transparent),
    linear-gradient(180deg, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, #000 86%, transparent),
    linear-gradient(180deg, #000 88%, transparent);
  mask-composite: intersect;
}

/* The light the lit keys throw onto the desk. It stays inside the scene's box,
   because the mask would cut it off with a hard edge anywhere outside. */
.scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 30%;
  top: 20%;
  bottom: 0;
  background: radial-gradient(closest-side, rgb(94 224 230 / 0.13), transparent);
  pointer-events: none;
}

.deck {
  display: grid;
  grid-template-columns: repeat(60, calc(var(--u) / 4));
  grid-auto-rows: var(--u);
  width: max-content;
  padding: calc(var(--u) * 0.2);
  border-radius: calc(var(--u) * 0.26);
  background: linear-gradient(180deg, #171a1f, #0c0e11);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.05),
    0 calc(var(--u) * 0.12) 0 0 #07080a,
    0 calc(var(--u) * 0.6) calc(var(--u) * 1.1) calc(var(--u) * -0.2) rgb(0 0 0 / 0.9);
  transform: rotateX(44deg) rotateZ(-3deg);
  transform-origin: 30% 0;
}

.key {
  grid-column: span var(--span);
  margin: calc(var(--u) * 0.045);
  padding: calc(var(--u) * 0.11) calc(var(--u) * 0.13);
  border-radius: calc(var(--u) * 0.12);
  background: linear-gradient(180deg, var(--cap-top), var(--cap-bottom));
  color: #6f7887;
  font-family: var(--font-mono);
  font-size: max(7px, calc(var(--u) * 0.2));
  font-weight: 600;
  line-height: 1;
  --wall: 0 var(--depth) 0 0 var(--cap-wall);
  --drop: 0 calc(var(--depth) + var(--u) * 0.08) calc(var(--u) * 0.16) calc(var(--u) * -0.06) rgb(0 0 0 / 0.8);
  --glow: 0 0 0 0 transparent;
  box-shadow: var(--cap-rim), var(--wall), var(--drop), var(--glow);
  transition: transform 70ms ease, box-shadow 70ms ease, color 70ms ease;
}

.key-mod { font-size: max(6.5px, calc(var(--u) * 0.15)); letter-spacing: 0.02em; }

/* Backlit: the three keys that open Trace. */
.key.is-lit {
  color: var(--trace-aqua);
  text-shadow: 0 0 calc(var(--u) * 0.15) var(--aqua-glow);
  --glow: 0 0 calc(var(--u) * 0.5) calc(var(--u) * -0.04) var(--aqua-glow), inset 0 0 0 1px rgb(94 224 230 / 0.55);
  background: linear-gradient(180deg, #273036, #1b2226);
}

/* Pressed, whether by the intro or by the visitor. The key drops by the
   height of its own wall and the wall disappears underneath it. */
.key.is-down {
  transform: translateY(var(--depth));
  --wall: 0 0 0 0 var(--cap-wall);
  --drop: 0 1px 3px -1px rgb(0 0 0 / 0.8);
  color: var(--trace-aqua);
}

.key.is-down:not(.is-lit) {
  --glow: 0 0 calc(var(--u) * 0.35) calc(var(--u) * -0.06) var(--aqua-glow);
}

.key.is-typed {
  color: var(--trace-amber);
  text-shadow: 0 0 calc(var(--u) * 0.15) var(--amber-glow);
  --glow: 0 0 calc(var(--u) * 0.35) calc(var(--u) * -0.06) var(--amber-glow);
}

/* The intro, once: the chord goes down together and is held, then a few
   letters, then Enter. */
@keyframes hold {
  0%, 100% { transform: none; }
  12%, 86% {
    transform: translateY(var(--depth));
    box-shadow:
      var(--cap-rim),
      0 0 0 0 var(--cap-wall),
      0 1px 3px -1px rgb(0 0 0 / 0.8),
      0 0 calc(var(--u) * 0.7) 0 rgb(94 224 230 / 0.6),
      inset 0 0 0 1px rgb(94 224 230 / 0.6);
  }
}

@keyframes tap-amber {
  0%, 100% { transform: none; }
  20%, 65% {
    transform: translateY(var(--depth));
    color: var(--trace-amber);
    text-shadow: 0 0 calc(var(--u) * 0.15) var(--amber-glow);
    box-shadow:
      var(--cap-rim),
      0 0 0 0 var(--cap-wall),
      0 1px 3px -1px rgb(0 0 0 / 0.8),
      0 0 calc(var(--u) * 0.5) 0 var(--amber-glow);
  }
}

@keyframes tap-aqua {
  0%, 100% { transform: none; }
  20%, 70% {
    transform: translateY(var(--depth));
    color: var(--trace-aqua);
    text-shadow: 0 0 calc(var(--u) * 0.15) var(--aqua-glow);
    box-shadow:
      var(--cap-rim),
      0 0 0 0 var(--cap-wall),
      0 1px 3px -1px rgb(0 0 0 / 0.8),
      0 0 calc(var(--u) * 0.6) 0 var(--aqua-glow);
  }
}

.play .k-ctrl { animation: hold 1150ms ease 700ms 1; }
.play .k-shift { animation: hold 1000ms ease 850ms 1; }
.play .k-space { animation: hold 850ms ease 1000ms 1; }
.play .k-r { animation: tap-amber 280ms ease 2150ms 1, tap-amber 280ms ease 2650ms 1; }
.play .k-p { animation: tap-amber 280ms ease 2400ms 1; }
.play .k-t { animation: tap-amber 280ms ease 2900ms 1; }
.play .k-enter { animation: tap-aqua 400ms ease 3450ms 1; }

.try-it {
  margin-top: clamp(20px, 3vw, 40px);
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.try-it kbd { font-size: 0.625rem; }

/* The window ----------------------------------------------------------------------------- */

.window-section {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(50% 45% at 50% 62%, rgb(94 224 230 / 0.08), transparent),
    var(--bg-sunken);
}

.annotated {
  width: min(100%, 640px);
  margin: var(--space-8) auto 0;
}

/* The frame holds the picture and everything pinned to it, so percentages
   are always of the picture, even while the notes flow underneath it. */
.shot,
.shot-frame { position: relative; }

.shot img {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 0 rgb(255 255 255 / 0.04) inset,
    0 40px 90px -40px rgb(0 0 0 / 0.95),
    0 0 0 8px rgb(255 255 255 / 0.02);
}

@keyframes summon {
  0% { transform: scale(0.94); box-shadow: 0 0 0 0 rgb(94 224 230 / 0.7); }
  60% { transform: scale(1.01); box-shadow: 0 0 0 14px rgb(94 224 230 / 0); }
  100% { transform: none; }
}

.shot.is-summoned img { animation: summon 650ms var(--ease-out); }

/* Numbered markers sit on the picture's edge, level with what they point at,
   so they never cover the interface itself. */
.pin {
  position: absolute;
  z-index: 2;
  top: var(--y);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(11 13 16 / 0.85), 0 0 16px 2px var(--aqua-glow);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  translate: -50% -50%;
}

.pin-left { left: 0; }
.pin-right { left: 100%; }

.leader { display: none; }

.notes {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
  counter-reset: note;
}

.note {
  position: relative;
  padding-left: 36px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  counter-increment: note;
}

.note::before {
  content: counter(note);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
}

.note kbd { font-size: 0.6875rem; }

/* With room on both sides, the notes leave the list and sit beside the
   picture, each on a line that ends on the thing it describes. */
@media (min-width: 1200px) {
  .notes { display: block; margin: 0; }

  .note {
    position: absolute;
    top: var(--y);
    width: 232px;
    padding-left: 0;
    translate: 0 -50%;
  }

  .note::before { display: none; }

  .note-left { right: calc(100% + 40px); text-align: right; }
  .note-right { left: calc(100% + 40px); }

  .leader {
    display: block;
    position: absolute;
    z-index: 1;
    top: var(--y);
    height: 1px;
  }

  .leader::after {
    content: "";
    position: absolute;
    top: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgb(11 13 16 / 0.8), 0 0 10px var(--aqua-glow);
  }

  .leader-left {
    left: -34px;
    width: calc(var(--x) + 34px);
    background: linear-gradient(90deg, rgb(94 224 230 / 0.15), rgb(94 224 230 / 0.8));
  }

  .leader-left::after { right: -3px; }

  .leader-right {
    left: var(--x);
    right: -34px;
    background: linear-gradient(90deg, rgb(94 224 230 / 0.8), rgb(94 224 230 / 0.15));
  }

  .leader-right::after { left: -3px; }
}

/* Features: keys on tiles ----------------------------------------------------------------- */

.tiles {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(0, 1fr);
  margin-top: var(--space-7);
}

@media (min-width: 680px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-5) var(--space-5);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--trace-panel), var(--bg) 85%);
  transition: border-color 200ms ease, translate 260ms var(--ease-out);
}

.tile:hover { border-color: rgb(94 224 230 / 0.35); translate: 0 -4px; }

.tile-art {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  height: 84px;
  margin-bottom: var(--space-3);
}

.tile h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.tile p { color: var(--text-muted); font-size: 0.9375rem; }

.cap {
  --d: 5px;
  display: inline-flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  margin-bottom: var(--d);
  padding: 0 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--cap-top), var(--cap-bottom));
  box-shadow:
    var(--cap-rim),
    0 var(--d) 0 0 var(--cap-wall),
    0 calc(var(--d) + 8px) 16px -6px rgb(0 0 0 / 0.8);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  transition: translate 90ms ease, box-shadow 90ms ease, color 90ms ease;
}

.tile:hover .cap {
  translate: 0 var(--d);
  box-shadow: var(--cap-rim), 0 0 0 0 var(--cap-wall), 0 2px 6px -3px rgb(0 0 0 / 0.8);
  color: var(--accent);
}

/* Typing in general, not a particular word: blank caps that go down one
   after another. */
.cap-blank { min-width: 52px; padding: 0; }
.tile-art .cap-blank:nth-child(2) { transition-delay: 60ms; }
.tile-art .cap-blank:nth-child(3) { transition-delay: 120ms; }
.tile-art .cap-blank:nth-child(4) { transition-delay: 180ms; }

.cap-wide { min-width: 140px; justify-content: space-between; }
.cap .glyph { font-size: 1.25rem; }

.plus { color: var(--text-subtle); font-family: var(--font-mono); }

/* One cap, both themes: the light half and the dark half of the same key. */
.cap-split {
  position: relative;
  width: 88px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #e7eaef 50%, #1d2026 50%);
  font-size: 0.8125rem;
}

.cap-split span { position: absolute; }
.cap-split span:first-child { top: 7px; left: 10px; color: #1b1e24; }
.cap-split span:last-child { right: 10px; bottom: 7px; color: var(--text); }
.tile:hover .cap-split span:first-child { color: #1b1e24; }

.tile-art-log {
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.ev { padding: 3px 8px; border-left: 2px solid; border-radius: 2px; background: var(--bg-raised); }
.ev-add { border-color: var(--trace-aqua); color: var(--text); }
.ev-mov { border-color: var(--trace-amber); color: var(--text-muted); }
.ev-del { border-color: var(--text-subtle); color: var(--text-subtle); }

/* Download: the Enter key, ISO shape --------------------------------------------------- */

.download {
  border-block: 1px solid var(--border);
  background: var(--bg-sunken);
}

.download-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1000px) {
  .download-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}

.download-lead {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: flex-start;
}

.download-lead h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); }

/* The download button is the Enter key, the key every search in Trace ends
   on. Built like the caps above: a hard side wall that disappears when the
   key goes down. */
.enter-key {
  --d: 8px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  align-items: end;
  width: min(100%, 340px);
  min-height: 132px;
  margin-bottom: var(--d);
  padding: 16px 20px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #8ceef2, var(--trace-aqua) 40%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.55),
    0 var(--d) 0 0 #2a9ea4,
    0 calc(var(--d) + 18px) 40px -14px rgb(94 224 230 / 0.45);
  color: var(--accent-text);
  font-family: var(--font-mono);
  text-decoration: none;
  transition: transform 110ms ease, box-shadow 110ms ease;
}

.enter-legend {
  grid-column: 1 / -1;
  align-self: start;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.enter-label { font-size: 0.9375rem; font-weight: 700; line-height: 1.3; }
.enter-glyph { font-size: 2.25rem; line-height: 0.9; }

.enter-key:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.55), 0 var(--d) 0 0 #2a9ea4, 0 calc(var(--d) + 18px) 50px -10px rgb(94 224 230 / 0.6); }

.enter-key:active {
  transform: translateY(var(--d));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.55), 0 0 0 0 #2a9ea4, 0 6px 14px -8px rgb(94 224 230 / 0.45);
}

.enter-key:focus-visible { outline-offset: 6px; }

.download-note { color: var(--text-subtle); font-size: var(--text-sm); }

.platforms { border-top: 1px solid var(--border); }

.platform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2) var(--space-4);
  align-items: center;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}

.platform-name { font-family: var(--font-mono); font-size: 0.9375rem; font-weight: 600; }
.platform p { grid-column: 1 / -1; color: var(--text-muted); font-size: var(--text-sm); }

.state {
  padding: 2px 10px;
  border: 1px solid;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.state-ok { border-color: var(--accent); background: var(--accent-quiet); color: var(--accent); }
.state-exp { border-color: rgb(255 191 90 / 0.5); color: var(--trace-amber); }

/* Privacy: the zero key -------------------------------------------------------------- */

.privacy-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

@media (min-width: 900px) {
  .privacy-grid { grid-template-columns: auto minmax(0, 1fr); gap: var(--space-9); }
}

/* A US keycap: the shifted character above, the number below. */
.zero-key {
  --d: 14px;
  position: relative;
  width: clamp(180px, 22vw, 260px);
  aspect-ratio: 1;
  margin: 0 auto var(--d);
  border-radius: 28px;
  background: linear-gradient(180deg, #2a2f37, var(--cap-bottom));
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 0.07),
    inset 0 -4px 0 rgb(0 0 0 / 0.3),
    inset 0 0 0 1px rgb(94 224 230 / 0.25),
    0 var(--d) 0 0 var(--cap-wall),
    0 calc(var(--d) + 30px) 60px -20px #000,
    0 0 90px -20px rgb(94 224 230 / 0.35);
  font-family: var(--font-mono);
  rotate: -6deg;
  transition: translate 120ms ease, box-shadow 120ms ease;
}

.zero-key:hover {
  translate: 0 var(--d);
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 0.07),
    inset 0 -4px 0 rgb(0 0 0 / 0.3),
    inset 0 0 0 1px rgb(94 224 230 / 0.4),
    0 0 0 0 var(--cap-wall),
    0 6px 16px -8px #000,
    0 0 110px -20px rgb(94 224 230 / 0.5);
}

.zero-shift {
  position: absolute;
  top: 11%;
  left: 15%;
  color: var(--text-subtle);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 600;
}

.zero-main {
  position: absolute;
  bottom: 6%;
  left: 12%;
  color: var(--trace-aqua);
  font-size: clamp(6rem, 11vw, 9.5rem);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 30px var(--aqua-glow);
}

.privacy .lead { color: var(--text); font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.35; max-width: 28ch; }

/* Footer --------------------------------------------------------------------------------- */

.site-footer {
  padding-block: var(--space-6);
  border-top: 1px solid var(--border);
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }

/* Small screens --------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .deck { transform: rotateX(34deg) rotateZ(-2deg); }
  .tile-art { height: 68px; }
  .cap { height: 46px; min-width: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .play .key,
  .shot.is-summoned img { animation: none; }
  .tile,
  .tile:hover { translate: none; }
  .zero-key { rotate: none; }
}
