/* Blot Twist website: ink on cream paper, like the app (app/lib/ui/tokens.dart). */

@font-face {
  font-family: "Titan One";
  src: url("fonts/TitanOne-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3efe5;
  --paper-deep: #e8e1d1;
  --paper-edge: #d3c8b3;
  --ink: #181513;
  --ink-soft: #524840;
  --rust: #702612;
  --sepia: #4e2e1a;
  --indigo: #1c2248;
  --hl: #ffd60a;
  --p0: #d55e00;
  --p1: #56b4e9;
  --p2: #f0e442;
  --p3: #0072b2;
  --p4: #cc79a7;
  --p5: #009e73;
  --p6: #e69f00;
  --p7: #332288;
  --p8: #999933;
  --p9: #882255;
  --display: "Titan One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --ui: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --page: min(72rem, 100% - 2.5rem);
  --soak: cubic-bezier(0.16, 0.84, 0.3, 1);
  --splat: cubic-bezier(0.3, 1.5, 0.55, 1);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper) url("paper.svg");
  color: var(--ink);
  font: 500 1.125rem/1.55 var(--ui);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.005em;
}

h2 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
}

h3 {
  font-size: 1.5rem;
  line-height: 1.1;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--paper-edge);
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 0.4rem;
}

strong {
  font-weight: 750;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip:focus-visible {
  transform: none;
  outline-color: var(--hl);
}

.wrap {
  width: var(--page);
  margin-inline: auto;
}

/* Hand-inked shapes: the app's mirror-symmetric blobs, drawn as masks so any colour can fill them. */
.store::before,
.store::after,
.band::before,
.card::before {
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* ---------- Top bar ---------- */

.top {
  padding-block: 1.1rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-home {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 1.3rem;
  text-decoration: none;
}

.nav-home img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  box-shadow: 0 1px 0 var(--paper-edge);
}

.nav-links {
  display: flex;
  gap: clamp(0.9rem, 3vw, 1.8rem);
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  font-size: 1rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--hl);
  text-decoration-thickness: 0.35em;
  text-underline-offset: -0.1em;
  text-decoration-skip-ink: none;
}

/* ---------- Store buttons ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.1rem;
}

.store {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 11.5rem;
  min-height: 4.1rem;
  padding: 0.55rem 1.8rem 0.7rem;
  border-radius: 999px;
  color: var(--paper);
  text-decoration: none;
  text-align: center;
  line-height: 1.1;
  transition: transform 0.26s var(--splat);
}

.store::before,
.store::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: background-color 0.16s;
}

.store::before {
  background: var(--ink);
  -webkit-mask-image: url("shapes/button-3.svg");
  mask-image: url("shapes/button-3.svg");
}

.store::after {
  z-index: -2;
  background: var(--paper-edge);
  transform: translateY(0.3rem);
  -webkit-mask-image: url("shapes/button-3.svg");
  mask-image: url("shapes/button-3.svg");
}

.store + .store::before,
.store + .store::after {
  -webkit-mask-image: url("shapes/button-7.svg");
  mask-image: url("shapes/button-7.svg");
}

.store-small {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.store-big {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

a.store:hover {
  transform: rotate(-1.5deg) scale(1.04);
}

a.store:hover::before {
  background: var(--rust);
}

a.store:active {
  transform: scale(0.97);
}

a.store:focus-visible {
  outline-offset: 6px;
  border-radius: 999px;
}

.store.soon {
  color: var(--ink-soft);
}

.store.soon::after {
  z-index: -1;
  inset: 0;
  transform: none;
  background: var(--ink-soft);
}

.store.soon::before {
  z-index: 0;
  inset: 3px;
  background: var(--paper-deep);
}

.store.soon > span {
  position: relative;
  z-index: 1;
}

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

.hero {
  position: relative;
  padding-block: clamp(1rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-copy {
  display: grid;
  justify-items: start;
  gap: 1.3rem;
}

.wordmark {
  width: min(27rem, 100%);
  margin-left: -0.6rem;
}

.wordmark img {
  display: block;
  width: 100%;
}

.tagline {
  font-family: var(--display);
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.2rem);
  line-height: 1.1;
}

.tagline mark {
  padding: 0 0.12em;
  white-space: nowrap;
  background: linear-gradient(transparent 55%, var(--hl) 55%, var(--hl) 92%, transparent 92%);
  color: inherit;
}

.lede {
  max-width: 32rem;
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-note li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-note .dot {
  width: 0.75rem;
  height: 0.75rem;
}

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1.08;
  margin: 0;
}

.hero-art .board {
  position: absolute;
  width: 46%;
  border-radius: 0.9rem;
  box-shadow: 0 0.2rem 0 var(--paper-edge), 0 1.2rem 2.5rem -1.2rem rgb(24 21 19 / 0.35);
}

.hero-art .board-a {
  top: 1%;
  left: 3%;
  transform: rotate(-9deg);
}

.hero-art .board-b {
  right: 1%;
  bottom: 2%;
  transform: rotate(8deg);
}

.phone {
  display: block;
  border: 0.45rem solid var(--ink);
  border-radius: 2.1rem;
  background: var(--ink);
  box-shadow: 0 1.5rem 3rem -1.5rem rgb(24 21 19 / 0.55);
}

.hero-art .phone {
  position: absolute;
  top: 3%;
  left: 50%;
  width: 45%;
  translate: -50% 0;
  rotate: -3deg;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section-head {
  display: grid;
  gap: 0.9rem;
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.kicker {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
}

/* How to play */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  isolation: isolate;
  padding: 1.6rem 1.5rem 1.8rem;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper-deep);
  -webkit-mask-image: url("shapes/card-2.svg");
  mask-image: url("shapes/card-2.svg");
}

.steps .card:nth-child(even)::before {
  -webkit-mask-image: url("shapes/card-5.svg");
  mask-image: url("shapes/card-5.svg");
}

.step {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.step p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.num {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 0.3rem;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
}

/* Player-coloured blobs (PlayerBlob in the app): the colour paints the shape, the label stays readable. */
.num,
.dot {
  position: relative;
  isolation: isolate;
  background: none;
}

.num::after,
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c, var(--ink));
  -webkit-mask: var(--shape) center / 100% 100% no-repeat;
  mask: var(--shape) center / 100% 100% no-repeat;
}

.dot {
  display: inline-block;
  flex: none;
}

.c0 {
  --c: var(--p0);
  --shape: url("shapes/player-0.svg");
  color: var(--ink);
}

.c1 {
  --c: var(--p1);
  --shape: url("shapes/player-1.svg");
  color: var(--ink);
}

.c2 {
  --c: var(--p2);
  --shape: url("shapes/player-2.svg");
  color: var(--ink);
}

.c3 {
  --c: var(--p3);
  --shape: url("shapes/player-3.svg");
  color: var(--paper);
}

.c4 {
  --c: var(--p4);
  --shape: url("shapes/player-4.svg");
  color: var(--ink);
}

.c5 {
  --c: var(--p5);
  --shape: url("shapes/player-5.svg");
  color: var(--ink);
}

.c6 {
  --c: var(--p6);
  --shape: url("shapes/player-6.svg");
  color: var(--ink);
}

.c7 {
  --c: var(--p7);
  --shape: url("shapes/player-7.svg");
  color: var(--paper);
}

.score-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.15rem 0.7rem 0.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 700;
}

.chip b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--hl);
}

.hl {
  padding: 0 0.1em;
  background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 94%, transparent 94%);
  color: var(--ink);
}

/* Screenshots */

.shots {
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.shot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(13rem, 42vw, 16.5rem);
  gap: clamp(1.1rem, 3vw, 2rem);
  margin: 0;
  padding: 1.2rem max(1.25rem, (100% - 72rem) / 2) 2rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(1.25rem, (100% - 72rem) / 2);
  list-style: none;
  scrollbar-color: var(--ink-soft) transparent;
}

.shot-strip:focus-visible {
  outline-offset: -3px;
}

.shot {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  scroll-snap-align: start;
}

.shot .phone {
  width: 100%;
  transition: transform 0.3s var(--splat);
}

.shot:nth-child(odd) .phone {
  transform: rotate(-1.2deg);
}

.shot:nth-child(even) .phone {
  transform: rotate(1.2deg) translateY(0.6rem);
}

.shot figcaption {
  display: grid;
  gap: 0.15rem;
  padding-inline: 0.3rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.35;
}

.shot figcaption strong {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
}

/* Good to know: an ink band */

.band {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4.5rem, 10vw, 7rem);
  color: var(--paper);
}

.band::before {
  content: "";
  position: absolute;
  inset: 0 max(0rem, (100% - 84rem) / 2);
  z-index: -1;
  background: var(--ink);
  -webkit-mask-image: url("shapes/band.svg");
  mask-image: url("shapes/band.svg");
}

.band .section-head p {
  color: var(--paper-edge);
}

.band .kicker {
  color: var(--hl);
}

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.8rem 2.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  display: grid;
  align-content: start;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 1rem;
  align-items: start;
}

.points .dot {
  grid-row: span 2;
  width: 2.6rem;
  height: 2.6rem;
  margin-top: 0.1rem;
}

.points h3 {
  font-size: 1.35rem;
}

.points p {
  color: var(--paper-edge);
  font-size: 1.02rem;
}

.band-boards {
  display: flex;
  justify-content: center;
  gap: clamp(0.6rem, 3vw, 1.6rem);
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

.band-boards img {
  width: clamp(5.5rem, 17vw, 9.5rem);
  border-radius: 0.6rem;
  box-shadow: 0 0 0 0.25rem var(--paper-edge);
}

.band-boards img:nth-child(1) {
  rotate: -7deg;
}

.band-boards img:nth-child(2) {
  translate: 0 -0.8rem;
}

.band-boards img:nth-child(3) {
  rotate: 6deg;
}

/* Help */

.help-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.faq {
  display: grid;
  gap: 0.8rem;
}

.faq details {
  border: 2px solid var(--ink);
  border-radius: 1.4rem 1.1rem 1.5rem 1rem;
  background: var(--paper);
  box-shadow: 0 0.25rem 0 var(--paper-edge);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.2;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.3rem;
  line-height: 1;
  transition: rotate 0.26s var(--splat);
}

.faq details[open] summary::after {
  rotate: 45deg;
}

.faq summary:focus-visible {
  border-radius: 1.2rem;
}

.faq details > div {
  display: grid;
  gap: 0.7rem;
  padding: 0 1.2rem 1.2rem;
  color: var(--ink-soft);
}

.contact {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.contact p {
  color: var(--ink-soft);
}

.mail {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.7rem);
  color: var(--ink);
  text-decoration-color: var(--hl);
  text-decoration-thickness: 0.3em;
  text-underline-offset: -0.05em;
  text-decoration-skip-ink: none;
  overflow-wrap: anywhere;
}

/* Footer */

.foot {
  margin-top: clamp(2rem, 6vw, 4rem);
  padding-block: 2.2rem 2.8rem;
  border-top: 2px dashed var(--paper-edge);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.foot-mark {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.foot-mark img {
  width: 5.5rem;
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

/* ---------- Privacy policy ---------- */

.doc {
  width: min(44rem, 100% - 2.5rem);
  margin: clamp(1.5rem, 5vw, 3rem) auto 0;
}

.doc h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.5vw, 3.8rem);
}

.doc .meta {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.doc h2 {
  margin-top: 3rem;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.2rem);
}

.doc h3 {
  margin-top: 1.8rem;
  font-size: 1.25rem;
}

.doc p,
.doc ul,
.doc table {
  margin-top: 0.9rem;
}

.doc ul {
  padding-left: 1.3rem;
}

.doc li + li {
  margin-top: 0.45rem;
}

.doc li::marker {
  color: var(--rust);
}

.doc code {
  padding: 0.05em 0.3em;
  border-radius: 0.3em;
  background: var(--paper-deep);
  font-size: 0.9em;
}

.summary {
  margin-top: 2rem;
  color: var(--paper);
}

.summary::before {
  background: var(--ink);
}

.summary h2 {
  margin: 0 0 0.3rem;
  font-size: 1.6rem;
  color: var(--hl);
}

.summary ul {
  padding-left: 1.2rem;
}

.summary li::marker {
  color: var(--hl);
}

.card.summary {
  padding: clamp(1.6rem, 5vw, 2.4rem) clamp(1.5rem, 5vw, 2.6rem);
}

.table-wrap {
  overflow-x: auto;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.doc th,
.doc td {
  padding: 0.7rem 0.6rem;
  border-bottom: 2px solid var(--paper-edge);
  text-align: left;
  vertical-align: top;
}

.doc th {
  font-weight: 800;
}

.doc thead th {
  border-bottom-color: var(--ink);
}

/* ---------- Join page ---------- */

body.join {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
}

.join-card {
  display: grid;
  justify-items: center;
  gap: 1rem;
  width: min(34rem, 100% - 2.5rem);
  padding-block: clamp(1.5rem, 6vh, 4rem) 2rem;
  text-align: center;
}

.join-mark img {
  display: block;
  width: min(15rem, 70vw);
}

.join-mark:focus-visible {
  border-radius: 1rem;
}

.join h1 {
  margin-top: 0.4rem;
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3rem);
}

.join .lead {
  max-width: 26rem;
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.code {
  margin-block: 0.4rem;
}

.slots {
  display: flex;
  justify-content: center;
  gap: clamp(0.4rem, 2vw, 0.8rem);
}

.slot {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: clamp(3.6rem, 18vw, 5rem);
  height: clamp(4.4rem, 22vw, 6rem);
  font-family: var(--display);
  font-size: clamp(2.5rem, 13vw, 3.6rem);
  line-height: 1;
}

.slot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper-deep);
  border: 3px solid var(--ink);
  border-radius: 42% 46% 40% 44% / 30% 34% 30% 32%;
}

.slot:nth-child(even)::before {
  border-radius: 46% 40% 44% 42% / 34% 30% 32% 30%;
}

.join .hint {
  color: var(--ink-soft);
  font-size: 1rem;
}

.join .stores {
  justify-content: center;
  margin-top: 0.6rem;
}

.join .more {
  margin-top: 0.4rem;
  font-weight: 700;
}

.join-foot {
  padding: 1.5rem 1.25rem 2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-art .board-a {
    animation: drift-a 9s ease-in-out infinite alternate;
  }

  .hero-art .board-b {
    animation: drift-b 11s ease-in-out infinite alternate;
  }

  .hero-art .phone {
    animation: rise 0.9s var(--soak) both;
  }

  .hero-copy > * {
    animation: rise 0.8s var(--soak) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 0.35s;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 0.45s;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 0.55s;
  }

  .hero-copy > :nth-child(5) {
    animation-delay: 0.65s;
  }

  .shot:hover .phone {
    transform: rotate(0deg) translateY(-0.4rem) scale(1.02);
  }

  .num::after {
    transition: scale 0.3s var(--splat);
  }

  .step:hover .num::after {
    scale: 1.12;
  }

  .slot {
    animation: drop 0.5s var(--splat) both;
  }

  .slot:nth-child(2) {
    animation-delay: 0.08s;
  }

  .slot:nth-child(3) {
    animation-delay: 0.16s;
  }

  .slot:nth-child(4) {
    animation-delay: 0.24s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.2rem);
  }
}

@keyframes drift-a {
  to {
    transform: rotate(-6deg) translate(-0.4rem, 0.6rem);
  }
}

@keyframes drift-b {
  to {
    transform: rotate(11deg) translate(0.3rem, -0.5rem);
  }
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-1.2rem) scale(0.8);
  }
}

/* ---------- Narrow screens ---------- */

@media (min-width: 60rem) {
  .shot-strip {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: var(--page);
    margin-inline: auto;
    padding-inline: 0;
    overflow: visible;
    row-gap: 3rem;
  }
}

@media (max-width: 60rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 48rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    justify-items: center;
    text-align: center;
  }

  .hero-note,
  .hero .stores {
    justify-content: center;
  }

  .wordmark {
    margin-left: 0;
  }

  .hero-art {
    width: min(26rem, 100%);
    margin-inline: auto;
  }
}

@media (max-width: 34rem) {
  body {
    font-size: 1.0625rem;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-home span {
    display: none;
  }

  .store {
    min-width: 0;
    flex: 1 1 9rem;
    padding-inline: 1rem;
  }

  .store-big {
    font-size: 1.2rem;
  }

  .store-small {
    font-size: 0.72rem;
  }

  .card.summary {
    padding-top: 2.6rem;
  }

  .band::before {
    -webkit-mask-image: url("shapes/band-tall.svg");
    mask-image: url("shapes/band-tall.svg");
  }
}
