/* youandi.party home page. Vault spec: biz/yai/specs/marketing/website.
   Five painted grounds, one cream card each; the carried things (home.js) ride
   in .carry over the whole page. No inline styles anywhere: the CSP has no
   'unsafe-inline'. */

@font-face {
  font-family: Fredoka;
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/fredoka-500.woff2') format('woff2');
}
@font-face {
  font-family: Fredoka;
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/fredoka-600.woff2') format('woff2');
}

:root {
  --ink: #3b2a20;
  --soft: #5f4a3c;
  --cream: #fffaf2;
  --card: rgba(255, 250, 242, 0.94);
  --night-ink: #fff6e6;
  --night-soft: #e9dcc6;
  --sky: #cfe3f2;
  --wood: #e5c79a;
  --nook: #5a3518;
  --balcony: #6a3a35;
  --night: #241a5e;
  --gutter: 16px;
  --blend: 96px; /* how far the balcony and the night dissolve over the one above */
  --radius: 28px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  overflow-x: clip;
  background: var(--sky);
  color: var(--ink);
  font-family: Fredoka, ui-rounded, system-ui, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.45;
}

h1,
h2,
p,
ul {
  margin: 0;
}

/* no paragraph ends on one word alone (German and French lines run longer) */
p {
  text-wrap: pretty;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -60px;
  z-index: 60;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cream);
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ---- top bar ---- */

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px var(--gutter);
  pointer-events: none;
}
.top > * {
  pointer-events: auto;
}
/* what scrolls under the bar softens and fades rather than being cut by it */
.top::before {
  content: '';
  position: absolute;
  inset: 0 0 -20px 0;
  z-index: -1;
  background: rgba(255, 250, 242, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
  pointer-events: none;
}
.grow {
  flex: 1;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: 0 2px 12px rgba(60, 40, 20, 0.12);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}
.mark {
  /* the name never gives up room: the get key and the language menu do */
  flex-shrink: 0;
  font-weight: 600;
  font-size: 18px;
  padding-inline-start: 8px;
}
.mark img {
  border-radius: 7px;
}
.get {
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
}
/* The language menu (vault spec, "Languages"): a <details> of plain links, so it
   opens with a tap, Enter or Space and works without JavaScript. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.lang {
  position: relative;
  padding: 0;
}
.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.lang summary::-webkit-details-marker {
  display: none;
}
/* a small chevron that turns as the menu opens */
.lang summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-block-start: -4px;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: rotate(45deg);
}
.lang[open] summary::after {
  margin-block-start: 3px;
  transform: rotate(225deg);
}
.lang ul {
  position: absolute;
  inset-block-start: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 0 6px 24px rgba(60, 40, 20, 0.18);
}
.lang li > * {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
}
.lang a:hover {
  background: rgba(59, 42, 32, 0.08);
}
.lang [aria-current] {
  font-weight: 600;
  background: rgba(59, 42, 32, 0.08);
}

/* "Get the app" appears once the hero has scrolled away; where scroll-driven
   animations are not there it simply stays. */
@supports (animation-timeline: scroll()) {
  .get {
    animation: get-in linear both;
    animation-timeline: scroll(root);
    animation-range: 40vh 60vh;
  }
  @keyframes get-in {
    from {
      opacity: 0;
      transform: translateY(-6px);
      visibility: hidden;
    }
    to {
      opacity: 1;
      transform: none;
      visibility: visible;
    }
  }
}

/* ---- sections ---- */

section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
}
.ground,
.ground img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* The hero, the games floor and the room were painted to butt together; the
   balcony and the night were not (site-paint, 2026-11-20), so each of those
   starts a little above its section and fades in over the one before. */
.evening > .ground,
.night > .ground {
  top: calc(-1 * var(--blend));
  height: calc(100% + var(--blend));
  -webkit-mask-image: linear-gradient(transparent, #000 var(--blend));
  mask-image: linear-gradient(transparent, #000 var(--blend));
}
.ground img {
  object-fit: cover;
}

.card {
  position: relative;
  /* over the carried things: what passes a card goes behind it, never over its words */
  z-index: 30;
  max-width: 540px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 40px rgba(60, 40, 20, 0.16);
}

h1 {
  font-weight: 600;
  font-size: clamp(2.5rem, 6.6vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 {
  font-weight: 600;
  font-size: clamp(1.875rem, 4.2vw, 3.25rem);
  line-height: 1.06;
  margin-block-end: 12px;
  text-wrap: balance;
}
p {
  font-size: clamp(1.0625rem, 0.9rem + 0.6vw, 1.375rem);
  color: var(--soft);
  text-wrap: pretty;
}

/* ---- the store buttons ---- */

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-block-start: 22px;
}
/* The official badges, unchanged (Apple's SVG; Google's PNG keeps its own
   clear space, so it is drawn larger and that space pulled in, leaving both
   black badges the same height). */
.badge {
  display: block;
  border-radius: 8px;
}
.badge img {
  height: 48px;
  width: auto;
}
.badge.play img {
  height: 71.4px;
  margin: -11.7px;
}

/* ---- 1. hero ---- */

.hero .ground img {
  object-position: 62% 0%;
}
.hero {
  display: flex;
  flex-direction: column;
}
.lede {
  position: relative;
  z-index: 5;
  padding: clamp(84px, 11vh, 132px) var(--gutter) 0;
  text-align: center;
}
.lede::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset-inline-start: 50%;
  top: clamp(40px, 8vh, 110px);
  width: min(1000px, 130vw);
  height: calc(100% - clamp(40px, 8vh, 110px) + 56px);
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 250, 240, 0.86), rgba(255, 250, 240, 0.55) 55%, rgba(255, 250, 240, 0));
  pointer-events: none;
}
.lede p {
  margin-block-start: 12px;
  margin-inline: auto;
  max-width: 34em;
  color: var(--ink);
  font-size: clamp(1.125rem, 1.9vw, 1.5rem);
}
.lede .who {
  margin-block-start: 6px;
  color: var(--soft);
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
}
.lede .stores {
  margin-block-start: 18px;
}

/* Round C: how you start, three stitched felt chips at the hero's foot (the
   app's real order: the place, the first piece, the letter with the code). */
.steps {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: auto auto 0;
  padding: 0 var(--gutter) 22px;
  list-style: none;
  counter-reset: none;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  width: 15.5rem;
  padding: 10px 16px 10px 10px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 4px 16px rgba(60, 40, 20, 0.16);
  /* the stitch, sewn a few px in from the edge */
  outline: 1.5px dashed rgba(95, 74, 60, 0.42);
  outline-offset: -5px;
}
.steps .t,
.steps .l {
  text-wrap: balance;
}
.steps .n {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--stitch, #8fb07a);
  color: var(--cream);
  font-weight: 600;
  font-size: 17px;
  outline: 1.5px dashed rgba(255, 250, 242, 0.75);
  outline-offset: -4px;
}
.steps li:nth-child(2) {
  --stitch: #d9826f;
}
.steps li:nth-child(3) {
  --stitch: #7f9fc9;
}
.steps .t {
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
}
.steps .l {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.3;
}

.clouds {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.cloud {
  position: absolute;
  inset-inline-start: 0;
  height: auto;
  opacity: 0.95;
  animation: drift linear infinite;
}
.cloud.one {
  top: 6vh;
  width: 240px;
  animation-duration: 95s;
  animation-delay: -20s;
}
.cloud.two {
  top: 19vh;
  width: 170px;
  animation-duration: 130s;
  animation-delay: -80s;
}
.cloud.three {
  top: 2vh;
  width: 200px;
  animation-duration: 160s;
  animation-delay: -130s;
}
@keyframes drift {
  from {
    transform: translateX(-260px);
  }
  to {
    transform: translateX(100vw);
  }
}

/* ---- 2-5. the painted sections ----
   On a wide screen each section is at least its painting's shape (3:2), so the
   painting shows whole and every card sits in the box the painter left for it:
   the padding is that box, in percent of the width (source px / 1536). On a
   phone the tall painting fills the screen and the card sits low in its box. */

@media (min-width: 700px) and (orientation: landscape), (min-width: 1101px) {
  .part,
  .night {
    aspect-ratio: 3 / 2;
    min-height: 0;
  }
  .part .card {
    max-width: none;
    min-width: min(300px, 100%);
  }
  .games {
    padding: 11.07% 45.31% 4% 4.56%; /* card box (70, 170, 840, 940) */
  }
  .house {
    padding: 9.11% 3% 4% 58.92%; /* (905, 140, 1490, 900): from just right of the round window */
  }
  .evening {
    padding: 6.51% 54.43% 4% 2.6%; /* (40, 100, 700, 500): the open sky */
  }
  .night {
    padding: 14.32% 21.88% 24px 21.48%; /* (330, 220, 1200, 640) */
  }
}
.games {
  background: var(--wood);
}
.count {
  margin-block: -4px 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
}
/* on a wide screen the chess tile sits last, at the card's right edge, where the apple stops */
@media (min-width: 700px) and (orientation: landscape), (min-width: 1101px) {
  .tiles .chess {
    order: 1;
  }
}
.tiles img {
  transform-origin: 50% 90%;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-block-start: 20px;
  padding: 0;
  list-style: none;
}
.tiles img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.18));
}
.soon {
  margin-block-start: 10px;
  font-size: 0.9375rem;
  color: var(--soft);
  opacity: 0.85;
}
.every {
  margin-block-start: 14px;
}
.every summary {
  display: inline-block;
  font-weight: 600;
  cursor: pointer;
  border-block-end: 2px solid currentColor;
  list-style: none;
}
.every summary::-webkit-details-marker {
  display: none;
}
.every summary::after {
  content: ' →';
}
.every[open] summary::after {
  content: ' ↓';
}
.every ul {
  columns: 2;
  column-gap: 20px;
  margin-block-start: 12px;
  padding: 0;
  list-style: none;
  color: var(--soft);
}
.every li {
  padding-block: 2px;
  break-inside: avoid;
}

.house {
  background: var(--nook);
}
.evening {
  background: var(--balcony);
}

/* ---- 5. night ---- */

.night {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--night);
  color: var(--night-ink);
}
.night .inner,
.night .foot {
  position: relative;
  z-index: 30;
}
.night .inner {
  max-width: 980px;
  text-shadow: 0 1px 12px rgba(20, 20, 60, 0.45);
}
.night .foot {
  align-self: stretch;
  margin-block-start: auto;
  padding-block: 56px 18px;
  text-shadow: 0 1px 6px rgba(10, 8, 30, 0.6);
}
/* the footer sits on the lit hills at the painting's foot: a night shade
   under it, the screen's full width, gives its small words real contrast (round C) */
.night .foot::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw) -24px;
  background: linear-gradient(rgba(24, 18, 60, 0), rgba(24, 18, 60, 0.82) 55%);
  pointer-events: none;
}
.night .inner p {
  max-width: 36em;
  margin-inline: auto;
}
.night h2 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
}
.night .inner p {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
}
.night p {
  color: var(--night-soft);
}

/* ---- the waitlist, in the ending until launch (functions/api/waitlist.js) ---- */

.wait {
  max-width: 560px;
  margin: 26px auto 0;
  text-shadow: none;
}
.night .inner .wait-note {
  font-size: 17px;
  color: var(--night-ink);
}
.wait-row {
  display: flex;
  gap: 8px;
  margin-block-start: 14px;
  padding: 6px;
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 8px 30px rgba(10, 8, 30, 0.35);
}
.wait-label,
.wait-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wait-row input {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
.wait-row input::placeholder {
  color: var(--soft);
}
.wait-row input:focus-visible {
  outline-offset: 0;
}
.wait-row button {
  flex: none;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font: inherit;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
}
.wait-row button:active {
  transform: translateY(1px);
}
.wait.sending button {
  opacity: 0.7;
}
/* what the form says back: shown by home.js, or by the address's #joined /
   #waitlist-again when JavaScript is off (the function answers with a 303) */
.night .inner .wait-said {
  display: none;
  text-wrap: balance;
  margin-block-start: 14px;
  font-size: 17px;
  color: var(--night-ink);
}
.night .inner .wait-said:target,
.night .inner .wait-said.on {
  display: block;
}
/* focused only so a screen reader reads it out; it is not a control */
.wait-said:focus {
  outline: none;
}
.wait.done .wait-row,
.wait.done .wait-note,
.wait:has(#joined:target) .wait-row,
.wait:has(#joined:target) .wait-note {
  display: none;
}
.night .inner .wait-fine {
  margin-block-start: 10px;
  font-size: 14px;
}
.wait-fine a {
  display: inline-block;
  padding-block: 6px;
  color: var(--night-ink);
}
@media (max-width: 459px) {
  .wait-row {
    flex-direction: column;
    padding: 0;
    background: none;
    box-shadow: none;
  }
  .wait-row input {
    min-height: 50px;
    background: var(--cream);
    box-shadow: 0 8px 30px rgba(10, 8, 30, 0.35);
    text-align: center;
  }
  .wait-row button {
    min-height: 50px;
    box-shadow: 0 8px 30px rgba(10, 8, 30, 0.35);
  }
}
.foot {
  font-size: 15px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
}
.foot a {
  display: inline-block;
  padding-block: 6px;
  color: var(--night-ink);
}
.foot p {
  margin-block-start: 8px;
  font-size: 14px;
  color: var(--night-ink);
}

/* ---- the phone's download button: shown once the hero's badges have
   scrolled away, hidden again while the ending's are in view (home.js) ---- */

.dock-get {
  display: none;
}
@media (max-width: 699px), (max-width: 1100px) and (orientation: portrait) {
  .dock-get {
    position: fixed;
    inset: auto var(--gutter) max(14px, env(safe-area-inset-bottom)) var(--gutter);
    z-index: 55;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--cream);
    font-weight: 600;
    font-size: 17px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(40, 25, 15, 0.3);
    opacity: 0;
    transform: translateY(18px);
    visibility: hidden;
  }
  .dock-get[hidden] {
    display: none;
  }
  /* one "Get You & I" at a time: the top bar's goes while the bottom one shows */
  .docked .top .get {
    display: none;
  }
  .dock-get.on {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition:
      opacity 0.25s,
      transform 0.25s;
  }
}

/* ---- the carried things (home.js; absent without JavaScript) ---- */

.carry {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  height: 0; /* home.js sets the page's height */
  overflow: clip;
  pointer-events: none;
}
.carry[hidden] {
  display: none;
}
.probe {
  position: absolute;
  top: 0;
  width: 0;
  height: 100vh;
  height: 100svh;
  visibility: hidden;
}
.thing {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  will-change: transform;
}
.thing > * {
  display: block;
}

.apple {
  width: 28px;
  height: 30px;
  margin: -16px 0 0 -14px;
}
.shadow {
  width: 30px;
  height: 8px;
  margin: -4px 0 0 -15px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 30, 10, 0.42), rgba(60, 30, 10, 0));
}
.apple svg {
  width: 100%;
  height: 100%;
}
.apple svg {
  transform-origin: 56% 10%;
}
.apple.hang svg {
  animation: sway 3.2s ease-in-out infinite alternate;
}
@keyframes sway {
  from {
    transform: rotate(-6deg);
  }
  to {
    transform: rotate(6deg);
  }
}

.fly {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
}
.fly img {
  width: 100%;
  height: 100%;
  animation: flap 1.6s ease-in-out infinite alternate;
}
/* not one butterfly stamped six times: each its own tint, size and beat */
.fly img {
  filter: saturate(1.35) drop-shadow(0 1px 1.5px rgba(60, 30, 20, 0.35));
}
/* pink, butter yellow and sky blue, so they read as butterflies on white flowers */
.fly:nth-of-type(3n) img {
  filter: hue-rotate(60deg) saturate(1.6) brightness(1.05) drop-shadow(0 1px 1.5px rgba(60, 30, 20, 0.35));
  animation-delay: -0.5s;
  animation-duration: 1.9s;
}
.fly:nth-of-type(3n + 1) img {
  filter: hue-rotate(-140deg) saturate(1.4) drop-shadow(0 1px 1.5px rgba(30, 30, 60, 0.35));
  animation-delay: -1.1s;
}
/* sizes vary on the picture, never on .fly itself: a scale there scales its translate too */
.fly:nth-of-type(4n) img {
  scale: 0.8;
}
.fly:nth-of-type(5n) img {
  scale: 1.12;
}
.fly.air img {
  animation-duration: 0.18s;
}
@keyframes flap {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0.3);
  }
}

.glow {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  filter: drop-shadow(0 0 6px rgba(255, 214, 120, 0.9));
}
.lit {
  width: 240px;
  height: 240px;
  margin: -120px 0 0 -120px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 240, 190, 0.95), rgba(255, 205, 110, 0.55) 30%, rgba(255, 179, 71, 0));
  mix-blend-mode: screen;
  opacity: 0;
}
.glow svg {
  width: 100%;
  height: 100%;
}
.glow svg {
  animation: breathe 1.3s ease-in-out infinite alternate;
}
@keyframes breathe {
  from {
    transform: scale(0.82);
  }
  to {
    transform: scale(1);
  }
}

.lantern {
  width: 58px;
  height: 73px;
  margin: -36px 0 0 -29px;
}
/* the second one is a rosier paper */
.lantern + .lantern img {
  filter: hue-rotate(-24deg) saturate(1.3) brightness(1.02);
}
.lantern + .lantern::before {
  background: radial-gradient(closest-side, rgba(255, 190, 160, 0.5), rgba(255, 150, 110, 0));
}
.lantern::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(closest-side, rgba(255, 214, 140, 0.5), rgba(255, 179, 71, 0));
}
.lantern picture,
.lantern img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.lantern img {
  transform-origin: 50% 0%;
  animation: sway 4s ease-in-out infinite alternate;
}
.lantern + .lantern img {
  animation-delay: -1.7s;
}

/* ---- phone: picture above, card overlapping its foot ---- */

@media (max-width: 699px), (max-width: 1100px) and (orientation: portrait) {
  body {
    font-size: 16px;
  }
  /* the tree fills the middle of a phone's hero: the headline in the sky,
     the rest on the meadow below it (site-paint, 2026-11-20) */
  .lede {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 76px var(--gutter) 0;
  }
  .lede::before {
    top: 50px;
    height: 150px;
  }
  .lede-low {
    position: relative;
    margin-block: auto 14px;
    padding-block-start: 16px;
  }
  .lede-low::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -24px -40px -28px;
    background: radial-gradient(closest-side, rgba(255, 250, 240, 0.85), rgba(255, 250, 240, 0.55) 60%, rgba(255, 250, 240, 0));
  }
  .steps {
    gap: 6px;
    margin: 0;
    padding: 0 10px 14px;
  }
  .steps li {
    flex: 1 1 0;
    min-width: 0;
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 4px;
    padding: 9px 4px 10px;
    border-radius: 14px;
    text-align: center;
  }
  .steps .n {
    grid-row: auto;
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
  .steps .t {
    font-size: 13.5px;
  }
  .steps li {
    align-content: start;
  }
  .steps .l {
    display: none;
  }
  :root {
    --blend: 60px;
  }
  /* the tall painting fills the screen; the card sits in the painter's box, low */
  .part,
  .night {
    display: block;
    min-height: 100vh;
    min-height: 100svh;
    /* room under every card for the bottom button (50px, its 14px margin, air) */
    padding: var(--card-top) var(--gutter) 92px;
  }
  .games {
    --card-top: 50svh; /* box (60, 800, 960, 1180) of 1536 */
  }
  .house {
    --card-top: 64svh; /* (60, 1000, 960, 1470) */
  }
  /* round C: the card up in the open sky (on the deck it left a screen of bare
     lilac above it, and a rising lantern had to pass behind it on its way to
     the night). The section is taller than the screen so the lantern sits far
     enough under the card for the lanterns to lift clear of it (home.js). */
  .evening {
    --card-top: 76px;
    padding-bottom: 0;
  }
  .night {
    --card-top: 30svh; /* (70, 480, 950, 1040) */
    display: flex;
    padding-bottom: 24px;
  }
  .part .card {
    max-width: none;
    padding: 22px 20px;
  }
  /* an upright tablet gets the tall paintings and this layout, with a card of a readable width */
  @media (min-width: 700px) {
    .part .card,
    .night .inner {
      max-width: 600px;
      margin-inline: auto;
    }
    .dock-get {
      inset-inline: calc(50% - 210px);
    }
  }
  .tiles {
    gap: 7px;
  }
  .apple {
    width: 26px;
    height: 28px;
    margin: -15px 0 0 -13px;
  }
  .fly {
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
  }
  .lantern {
    width: 50px;
    height: 63px;
    margin: -31px 0 0 -25px;
  }
}

/* an upright tablet stacks like a phone but has room for each step's line */
@media (min-width: 700px) and (max-width: 1100px) and (orientation: portrait) {
  .steps {
    gap: 12px;
  }
  .steps li {
    flex: 0 1 15.5rem;
    padding: 12px 10px 14px;
  }
  .steps .t {
    font-size: 16px;
  }
  .steps .l {
    display: block;
    color: var(--soft);
    font-size: 14px;
  }
}

@media (max-width: 359px) {
  /* the evening card wraps taller: the lantern stays far enough under it */
  .evening {
    min-height: 112svh;
  }
  .mark {
    font-size: 16px;
  }
  .pill {
    padding-inline: 11px;
  }
  /* German, Spanish and French name the key in more letters than "Get You & I" */
  .top {
    gap: 6px;
  }
  .get {
    padding-inline: 8px;
    font-size: 14px;
  }
  .lang {
    padding: 0;
  }
  .lang summary {
    gap: 5px;
    padding-inline: 9px;
  }
  .every ul {
    columns: 1;
  }
  .night h2 {
    font-size: 2.4rem;
  }
  .stores {
    gap: 8px;
  }
  .badge img {
    height: 40px;
  }
  .badge.play img {
    height: 59.5px;
    margin: -9.75px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cloud,
  .apple svg,
  .fly img,
  .glow svg,
  .lantern img {
    animation: none;
  }
  .get {
    animation: none;
  }
  .dock-get,
  .dock-get.on {
    transition: none;
  }
}
