/* The public front door (web/index.html) and the 404 page. Linked after pages.css, so it uses that
   sheet's Frost tokens, top bar, buttons, tags and footer, and adds only what these pages need.
   No inline styles or scripts on the pages: the server's CSP. */

html {
  --hm-max: 1200px;
  --muted-bg: #5b6270;      /* --muted, a step darker: AA on the page's grey as well as on white */
  --pink-ink: #c4123f;      /* pink for small text (the marker asides): 5:1 on the grey */
  --pink-text: #e8174f;     /* pink for large text (the tagline's phrases) */
  --on-ink: #c3c8d3;        /* body text on the dark sections */
  --mo-spring: cubic-bezier(.34, 1.56, .64, 1);
  --mo-out: cubic-bezier(.2, .9, .3, 1);

  /* one spacing scale for the page (pages.css's --space-xs..2xl are its first six steps) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  /* and the page's rhythm, fluid between a phone (390) and a wide screen (1920) */
  --hm-sec: clamp(44px, 1.5rem + 3vw, 68px);     /* the top and the bottom of every band of the page: one number */
  --hm-band: var(--hm-sec);
  --hm-step: clamp(40px, 1.5rem + 2.4vw, 64px);  /* between the steps of the night */
  --hm-lead: clamp(32px, 1.5rem + 1.5vw, 48px);   /* a section's heading or intro to what it introduces */
  --hm-block: clamp(24px, 1rem + 1vw, 32px);      /* between the blocks of one section */
  --hm-gap: clamp(16px, 0.75rem + 1vw, 28px);     /* the gutter of every card grid */
  --hm-card: clamp(20px, 0.875rem + 0.75vw, 28px);  /* inside a large card (the two ways, a quote, the closing card) */
  --hm-card-s: clamp(16px, 0.75rem + 0.4vw, 20px);  /* inside a small card (a need, a game card, the join box) */

  /* the page's type. Running text has four sizes and a label size, used by role, not picked per rule: */
  --hm-t-label: 0.875rem;   /* 14: a tile's name, a note under a field */
  --hm-t-small: 0.9375rem;  /* 15: a caption, the second line of a fact */
  --hm-t-body: 1rem;        /* 16: text inside a card */
  --hm-t-read: 1.0625rem;   /* 17: a paragraph on the page */
  --hm-t-lead: 1.125rem;    /* 18: what a section or a step opens with */
  /* headings step down by about 1.3 at every width: the headline, a section, a step or a card, a small card */
  --hm-h1: clamp(2.4rem, 4.8vw, 3.75rem);
  --hm-h2: clamp(1.9rem, 3.4vw, 2.75rem);
  --hm-h3: clamp(1.45rem, 2.5vw, 2.1rem);
  --hm-h4: clamp(1.25rem, 1.9vw, 1.6rem);
  --hm-mark: 1.3rem;        /* the handwritten asides */
  /* and three corner sizes: a small piece, a card, a poster */
  --hm-r-s: 18px; --hm-r-m: 24px; --hm-r-l: 30px;
}
@media (max-width: 640px) { html { --hm-mark: 1.2rem; --hm-r-l: 24px; --hm-r-m: 20px; --hm-r-s: 16px; } }
/* the landing page's side gutter grows with the screen; the content width at 1200+ stays 1168 */
.home { --pg-gutter: clamp(16px, 3.2vw, 40px); --hm-max: calc(1168px + 2 * var(--pg-gutter)); }
.home .pg-foot-in { max-width: var(--hm-max); }

/* ---------- the top bar: always there, white, Host a game always in reach ----------
   At the top of the page it is tall and carries the full logo with the tagline beside it; once the page scrolls
   (site/showcase.ts brandBar marks it .hm-small) it draws down to a slimmer bar with the mark and the wordmark.
   Fixed, with the page padded by its tall height, so the change of height never moves the page under it.
   Without JS it stays tall. Either brand is hidden by visibility, never display:none: its text stays. */
.home { --bar-h: 76px; --bar-tall: 104px; }
.home main { padding-top: var(--bar-tall); }
.hm-top { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }
.hm-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
.hm-bar .pg-bar-in { max-width: var(--hm-max); height: var(--bar-tall); padding-top: 0; padding-bottom: 0; gap: var(--s-4); transition: height 0.34s var(--mo-out); }
.hm-bar.hm-small .pg-bar-in { height: var(--bar-h); }
.pg-links a { min-height: 44px; display: inline-flex; align-items: center; }
.hm-bar .hm-bar-host { margin-left: 8px; white-space: nowrap; }
.hm-brand { display: grid; align-items: center; justify-items: start; min-height: 44px; flex: none; }
.hm-brand > * { grid-area: 1 / 1; }
.hm-bar .hm-bar-logo {
  width: auto; height: calc(var(--bar-tall) - 12px); margin-left: -8px; transform-origin: left center;
  transition: height 0.34s var(--mo-out), opacity 0.2s ease, visibility 0s;
}
.hm-bar-small {
  display: inline-flex; align-items: center; gap: 12px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.34s var(--mo-out), visibility 0s linear 0.34s;
}
.hm-bar .hm-bar-small img { width: 63px; height: 60px; }
.hm-bar .pg-brand { font-size: 1.7rem; }
.hm-small .hm-bar-logo { height: 46px; opacity: 0; visibility: hidden; transition: height 0.34s var(--mo-out), opacity 0.2s ease, visibility 0s linear 0.34s; }
.hm-small .hm-bar-small { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s ease 0.08s, transform 0.34s var(--mo-out), visibility 0s; }
/* the tagline, beside the logo while the bar is tall (on a narrower screen it sits under the headline instead) */
.hm-bar-tag {
  display: none; max-width: 16.5em; font: italic 500 var(--hm-t-body)/1.3 var(--f6-body); color: var(--muted-bg);
  transition: opacity 0.2s ease, visibility 0s;
}
.hm-bar-tag span { color: var(--pink-text); font-weight: 700; }
.hm-small .hm-bar-tag { opacity: 0; visibility: hidden; transition: opacity 0.15s ease, visibility 0s linear 0.15s; }
@media (min-width: 1100px) {
  .hm-bar-tag { display: block; }
  /* the brand's box is as wide as the small lockup that replaces the logo on scroll: pull the line in beside the logo itself */
  .hm-bar .hm-bar-tag { margin-left: -31px; }
  .hm-tag { display: none; }
}
.hm-skip {
  position: absolute; left: 12px; top: -60px; z-index: 70; padding: 10px 16px; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 700; text-decoration: none;
}
.hm-skip:focus { top: 10px; color: #fff; }

.hm-in { max-width: var(--hm-max); margin: 0 auto; padding: 0 var(--pg-gutter); }

/* ---------- the hero ---------- */
.hm-hero { max-width: var(--hm-max); margin: 0 auto; padding: var(--s-6) var(--pg-gutter) var(--hm-hero-b); }
.hm-hero-in { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: var(--s-7); align-items: center; }
.hm-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hm-title {
  font-family: var(--f6-disp); font-weight: 700; color: var(--ink);
  font-size: var(--hm-h1); line-height: 0.98; letter-spacing: -0.04em;
  white-space: nowrap;   /* three words, one line, at every width */
  text-shadow: 3px 3px 0 color-mix(in srgb, var(--accent) 45%, transparent);
  animation: hm-rise 0.6s var(--mo-out) 0.08s both;
}
/* the tagline, set as the app sets it (Setup, the join screen): italic, the three phrases in pink */
.hm-tag {
  margin-top: var(--s-4); max-width: 24em;
  font: italic 500 clamp(1.2rem, 1.9vw, 1.45rem)/1.35 var(--f6-body); color: var(--muted-bg);
  animation: hm-rise 0.6s var(--mo-out) 0.16s both;
}
.hm-tag span { color: var(--pink-text); font-weight: 700; }
.hm-lede { margin-top: var(--s-4); max-width: 31em; font-size: var(--hm-t-lead); line-height: 1.45; color: var(--ink2); animation: hm-rise 0.6s var(--mo-out) 0.22s both; }
.hm-actions { margin-top: var(--s-5); width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); animation: hm-rise 0.6s var(--mo-out) 0.28s both; }
.hm-host-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.hm-host { min-height: 56px; padding: 12px 28px; font-size: var(--hm-t-read); border-radius: var(--hm-r-s); }
.hm-host img { width: 26px; height: 26px; }
.hm-free { font-family: var(--f6-mark); color: var(--pink-ink); font-size: 1.12rem; transform: rotate(-2deg); }

/* join with a code */
.hm-join {
  display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--hm-r-m);
  box-shadow: var(--shadow-card); padding: var(--hm-card-s);
}
.hm-join-label { font-size: var(--text-sm); font-weight: 700; color: var(--ink); }
.hm-join-row { display: flex; gap: 8px; min-width: 0; }
.hm-code {
  flex: 1; min-width: 0; width: 0; min-height: 52px; padding: 8px 12px;
  border: 1.5px solid #cfd4de; border-radius: var(--radius-md); background: var(--bg2);
  font: 700 1.4rem/1 var(--f6-disp); letter-spacing: 0.2em; text-transform: uppercase; text-align: center; color: var(--ink);
}
.hm-code::placeholder { color: #9aa1ae; }
.hm-code:focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.hm-code[aria-invalid="true"] { border-color: var(--accent); }
.hm-go { min-height: 52px; padding: 10px 24px; background: var(--ink); color: #fff; }
.hm-go:hover { color: #fff; background: var(--accent); }
.hm-join-note { min-height: 1.35em; font-size: var(--hm-t-label); line-height: 1.35; color: var(--muted-bg); }
/* the note takes no room until it has something to say, so the box's padding is even all round */
.hm-join-note:empty { min-height: 0; margin-top: calc(-1 * var(--s-2)); }
.hm-join-note.bad { color: var(--ink-two); font-weight: 700; }

/* the game itself: the shared screen and a phone, over the duel's red and green corners */
.hm-show { position: relative; margin: 0; animation: hm-rise 0.8s var(--mo-out) 0.12s both; }
.hm-device { position: relative; padding: 9% 7% 7% 5%; }
.hm-stage {
  position: absolute; inset: 0; border-radius: var(--hm-r-l); overflow: hidden;
  background: linear-gradient(104deg, var(--accent) 0 50%, var(--accent2) 50% 100%);
}
.hm-stage::after {   /* a halftone, as on the app's zine pieces */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.4px, transparent 1.7px); background-size: 12px 12px;
}
.hm-corner {
  position: absolute; z-index: 1; top: 16px; padding: 7px 12px 6px; border-radius: 999px;
  background: var(--ink); color: #fff; font: 400 0.7rem/1 var(--f6-zine); letter-spacing: 0.02em;
}
.hm-corner.red { left: 18px; transform: rotate(-3deg); }
.hm-corner.green { right: 18px; transform: rotate(3deg); }
.hm-tv {
  position: relative; z-index: 1; width: 92%;
  background: var(--ink); border-radius: 18px; padding: 9px;
  box-shadow: 0 30px 60px rgba(13, 16, 24, 0.28), 0 6px 16px rgba(13, 16, 24, 0.12);
}
.hm-tv img { width: 100%; height: auto; border-radius: 10px; }
.hm-phone {
  position: absolute; z-index: 2; right: 2%; bottom: -12%; width: 25%;
  background: var(--ink); border-radius: 13% / 6%; padding: 2.2%;
  box-shadow: 0 26px 50px rgba(13, 16, 24, 0.34), 0 4px 10px rgba(13, 16, 24, 0.14);
  transform: rotate(4deg);
}
.hm-phone img { width: 100%; height: auto; border-radius: 11% / 5%; }
.hm-cap { position: relative; margin-top: var(--s-5); max-width: 64%; font-size: var(--hm-t-small); line-height: 1.45; color: var(--muted-bg); }
.hm-scrawl { display: block; font-family: var(--f6-mark); color: var(--pink-ink); font-size: 1.15rem; transform: rotate(-2deg); transform-origin: left; margin-bottom: 2px; }

/* ---------- what it is: three stickers ---------- */
/* it straddles the seam between the hero's grey and the white band under it, so the two lock together */
.home { --facts-lap: 54px; --hm-hero-b: clamp(32px, 1rem + 3.4vw, 64px); }   /* the same space above the facts strip and below it */
.hm-facts { position: relative; z-index: 2; max-width: var(--hm-max); margin: 0 auto calc(-1 * var(--facts-lap)); padding: 0 var(--pg-gutter); }
.hm-facts-in {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--hm-r-m); box-shadow: var(--shadow-card); padding: var(--s-4) var(--s-5);
}
.hm-facts li { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-1) var(--s-2); min-width: 0; }
.hm-facts li + li { border-left: 1px dashed var(--line); padding-left: var(--s-5); }
.hm-facts img { width: 64px; height: 64px; flex: none; transform: rotate(-5deg); }
.hm-facts li:nth-child(2) img { transform: rotate(4deg); }
.hm-facts b { display: block; font-family: var(--f6-disp); font-weight: 700; color: var(--ink); font-size: var(--hm-t-read); line-height: 1.2; letter-spacing: -0.01em; }
.hm-facts span { display: block; margin-top: 2px; font-size: var(--hm-t-small); line-height: 1.45; color: var(--muted-bg); }

/* ---------- section heads ---------- */
.hm-sec { padding: var(--hm-sec) 0; }
.hm-need { padding-bottom: 0; }   /* the closing card follows on the same ground, one section gap below */
/* the night has its own ground: white, with a halftone corner, under the facts strip */
.hm-night { position: relative; background: var(--surface); padding-top: calc(var(--hm-hero-b) + var(--facts-lap)); overflow: hidden; }
.hm-night::before {
  content: ""; position: absolute; top: 0; right: 0; width: 520px; height: 420px; pointer-events: none;
  background-image: radial-gradient(rgba(13, 16, 24, 0.09) 1.6px, transparent 1.9px); background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(closest-side at 80% 20%, #000, transparent); mask-image: radial-gradient(closest-side at 80% 20%, #000, transparent);
}
.hm-night .hm-in { position: relative; }
.hm-head { max-width: 40rem; }
.hm-head h2, .hm-moments h2, .hm-close h2 {
  font-family: var(--f6-disp); font-weight: 700; color: var(--ink);
  font-size: var(--hm-h2); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance;
}
.hm-sub { margin-top: var(--s-4); max-width: 32em; text-wrap: pretty; font-size: var(--hm-t-lead); line-height: 1.45; color: var(--ink2); }
.hm-aside { margin-top: var(--s-3); font-family: var(--f6-mark); color: var(--pink-ink); font-size: var(--hm-mark); line-height: 1.15; transform: rotate(-1.5deg); transform-origin: left; }

/* ---------- the night, step by step: four posters built from the game's own pieces ---------- */
/* Each panel is a flat field of one Frost accent with a halftone, an ink edge and a hard ink shadow, like the
   Overheard cards. What is on it is the app's own: sticker icons and avatars, Bungee labels with a hard offset,
   the duel's corners, the wheel's art. Everything inside is sized in cqw (the panel is a size container), so a
   panel is the same picture at any width. */
/* the four rows read as one sequence: picture, the step's number on a dashed spine down the middle, text; the
   sides swap row by row and the spine ties them together */
.hm-steps { list-style: none; display: flex; flex-direction: column; gap: var(--hm-step); margin-top: var(--hm-lead); }
.hm-step {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); grid-template-areas: "art n text";
  column-gap: clamp(14px, 2.2vw, 30px); align-items: center;
}
.hm-step:nth-child(even) { grid-template-areas: "text n art"; }
.hm-step > .hm-art { grid-area: art; }
.hm-step > .hm-text { grid-area: text; }
.hm-step:not(:last-child)::after {
  content: ""; position: absolute; z-index: 0; left: 50%; top: 50%; height: calc(100% + var(--hm-step)); margin-left: -2px;
  border-left: 4px dashed #cfd4de;
}
.hm-n {
  grid-area: n; justify-self: center; position: relative; z-index: 1; display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: var(--hm-r-s); background: var(--accent-gold); color: var(--ink);
  font: 400 1.9rem/1 var(--f6-zine); transform: rotate(-6deg); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
}
.hm-step:nth-child(even) .hm-n { transform: rotate(5deg); }
.hm-art { order: 2; }
.hm-art {
  position: relative; aspect-ratio: 3 / 2; container-type: inline-size; overflow: hidden;
  border-radius: var(--hm-r-l); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  background: var(--accent-blue);
}
.hm-art::before {   /* the halftone, heavier toward one corner */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.3) 1.5px, transparent 1.8px); background-size: 12px 12px;
  -webkit-mask-image: linear-gradient(135deg, #000 10%, transparent 70%); mask-image: linear-gradient(135deg, #000 10%, transparent 70%);
}
.s-bid .hm-art { background: var(--accent); }
.s-steal .hm-art { background: var(--accent-gold); }
.s-steal .hm-art::before { background-image: radial-gradient(rgba(13, 16, 24, 0.13) 1.5px, transparent 1.8px); }
.s-duel .hm-art { background: var(--bg2); }
.hm-art .pc { position: absolute; z-index: 2; }
.hm-art img { display: block; }

/* the shared pieces: a Bungee sticker, an avatar tile */
.stk {
  display: inline-block; white-space: nowrap; border-radius: 999px;
  font: 400 2.5cqw/1 var(--f6-zine); letter-spacing: 0.02em; padding: 1.3cqw 2.3cqw 1.1cqw;
  background: var(--ink); color: #fff; box-shadow: 0.7cqw 0.7cqw 0 var(--accent);
}
.stk.pink { background: var(--accent); color: #fff; box-shadow: 0.7cqw 0.7cqw 0 var(--ink); }
.stk.gold { background: var(--accent-gold); color: var(--ink); box-shadow: 0.6cqw 0.6cqw 0 var(--ink); }
.av {
  display: block; width: 15cqw; aspect-ratio: 1; border-radius: 3.6cqw; background: var(--accent2);
  border: 0.8cqw solid #fff; box-shadow: 0.8cqw 0.8cqw 0 var(--ink); padding: 1.2cqw;
}
.av img { width: 100%; height: 100%; object-fit: contain; }
.c-purple { background: #a86bbd; } .c-green { background: #7bbf3a; } .c-teal { background: #2a9d8f; }
.c-pink { background: var(--accent); } .c-yeti { background: #7fb7be; }

/* 1, everyone joins: the lobby's room code and the faces piling in */
.j-lobby { top: 4.6cqw; left: 50%; transform: translateX(-50%) rotate(-2deg); font-size: 2.8cqw; }
.j-code {
  left: 7cqw; top: 17cqw; width: 46cqw; padding: 4cqw 4.4cqw 3.6cqw;
  background: #fff; border-radius: 4cqw; border: 0.5cqw solid var(--ink); box-shadow: 1.2cqw 1.2cqw 0 var(--ink);
  transform: rotate(-2.5deg);
}
.j-code-l { display: block; font: 800 1.9cqw/1 var(--f6-disp); letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.j-code-v { display: block; margin-top: 1.4cqw; white-space: nowrap; font: 700 11cqw/0.9 var(--f6-disp); letter-spacing: 0.02em; color: var(--accent); }
.j-code-s { display: block; margin-top: 2.2cqw; font: 700 2.1cqw/1.2 var(--f6-body); color: var(--ink2); }
.j-chips { position: absolute; top: -2.6cqw; right: -3cqw; transform: rotate(7deg); }
.av b { position: absolute; left: 50%; bottom: -5.6cqw; transform: translateX(-50%); font: 700 2.6cqw/1 var(--f6-disp); color: var(--ink); white-space: nowrap; }
.j-a1 { left: 60cqw; top: 12cqw; transform: rotate(-6deg); }
.j-a2 { left: 79cqw; top: 13cqw; transform: rotate(5deg); }
.j-a3 { left: 61cqw; top: 37.5cqw; transform: rotate(4deg); }
.j-a4 { left: 80cqw; top: 39cqw; transform: rotate(-8deg); }
.j-in { left: 7cqw; bottom: 5cqw; transform: rotate(-3deg); font-size: 2.2cqw; }

/* 2, someone unwraps, everyone bids: the gift tile, three sealed bids, one revealed */
.b-gift {
  left: 6cqw; top: 13cqw; width: 40cqw; padding: 5cqw 3cqw 3.6cqw; text-align: center;
  background: #fff; border-radius: 4.4cqw; border: 0.5cqw solid var(--ink); box-shadow: 1.2cqw 1.2cqw 0 var(--ink);
  transform: rotate(-2deg);
}
.b-gift img { width: 19cqw; height: 19cqw; margin: 0 auto; }
.b-gift b { display: block; margin-top: 1.6cqw; font: 700 3.7cqw/1.05 var(--f6-disp); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.b-by { display: inline-block; margin-top: 1.8cqw; font: 700 2cqw/1 var(--f6-body); color: var(--ink2); background: var(--bg2); padding: 1cqw 1.8cqw; border-radius: 999px; }
.b-tag { position: absolute; top: -2.4cqw; left: -1.6cqw; transform: rotate(-6deg); }
.b-env { width: 17cqw; }
.b-env img { width: 100%; height: auto; }
.b-env .stk { position: absolute; left: 50%; bottom: -0.6cqw; transform: translateX(-50%) rotate(-3deg); font-size: 1.8cqw; box-shadow: 0.5cqw 0.5cqw 0 #fff; }
.b-e1 { left: 52cqw; top: 9cqw; transform: rotate(-10deg); }
.b-e2 { left: 73cqw; top: 6cqw; transform: rotate(7deg); }
.b-e3 { left: 54cqw; top: 37cqw; transform: rotate(4deg); }
.b-chip { left: 75cqw; top: 29cqw; width: 19cqw; aspect-ratio: 1; }
.b-face, .b-stack {
  position: absolute; inset: 0; border-radius: 50%; border: 0.6cqw solid var(--ink);
  background:
    radial-gradient(circle, var(--accent-gold) 0 55%, #fff 55% 60%, transparent 60%),
    repeating-conic-gradient(var(--accent-gold) 0 22.5deg, #fff 22.5deg 45deg);
}
.b-stack { transform: translate(1.2cqw, 2.2cqw); }
.b-face { display: grid; place-items: center; font: 700 9.6cqw/1 var(--f6-disp); color: var(--ink); transform: rotate(-8deg); }
.b-top { position: absolute; left: 50%; bottom: -5.6cqw; transform: translateX(-50%) rotate(-4deg); }

/* 3, the top bid duels for it: the red and green corners, the ink VS, the wheel */
.d-red, .d-green { position: absolute; z-index: 0; top: 0; bottom: 0; width: 37%; }
.d-red { left: 0; background: var(--accent); }
.d-green { right: 0; background: var(--accent2); }
.d-lab { top: 5cqw; font-size: 2.3cqw; }
.d-lab-r { left: 18.5%; transform: translateX(-50%) rotate(-3deg); box-shadow: 0.7cqw 0.7cqw 0 #ffc2d1; }
.d-lab-g { left: 81.5%; transform: translateX(-50%) rotate(3deg); box-shadow: 0.7cqw 0.7cqw 0 #a7ecd5; }
.d-av { top: 12.5cqw; width: 19cqw; border-radius: 4.6cqw; }
.d-av-r { left: 18.5%; transform: translateX(-50%) rotate(-4deg); }
.d-av-g { left: 81.5%; transform: translateX(-50%) rotate(4deg); }
.d-name {
  top: 36cqw; font: 700 6.4cqw/1 var(--f6-disp); letter-spacing: -0.03em; color: #fff; text-transform: uppercase;
  text-shadow: 0.45cqw 0.45cqw 0 var(--ink);
}
.d-name-r { left: 18.5%; transform: translateX(-50%); }
.d-name-g { left: 81.5%; transform: translateX(-50%); }
.d-vs { left: 50%; top: 2.6cqw; transform: translateX(-50%) rotate(-3deg); font: 700 8cqw/1 var(--f6-disp); letter-spacing: -0.05em; color: var(--ink); text-shadow: 0.5cqw 0.5cqw 0 var(--accent); }
.d-wheel { left: 50%; top: 13.5cqw; width: 33cqw; aspect-ratio: 1; transform: translateX(-50%); }
.d-disc { position: absolute; left: 10.7%; top: 10.7%; width: 78.6%; height: 78.6%; transform: rotate(-30deg); }
.d-disc path { stroke: #fff; stroke-width: 1.4; }
.w-pink { fill: var(--accent); } .w-green { fill: var(--accent2); } .w-gold { fill: var(--accent-gold); } .w-blue { fill: var(--accent-blue); }
.d-ic { position: absolute; left: 50%; top: 50%; width: 7cqw; height: 7cqw; margin: -3.5cqw 0 0 -3.5cqw; }
.d-ic1 { transform: rotate(0deg) translateY(-8.4cqw) rotate(0deg); }
.d-ic2 { transform: rotate(60deg) translateY(-8.4cqw) rotate(-60deg); }
.d-ic3 { transform: rotate(120deg) translateY(-8.4cqw) rotate(-120deg); }
.d-ic4 { transform: rotate(180deg) translateY(-8.4cqw) rotate(-180deg); }
.d-ic5 { transform: rotate(240deg) translateY(-8.4cqw) rotate(-240deg); }
.d-ic6 { transform: rotate(300deg) translateY(-8.4cqw) rotate(-300deg); }
.d-rim { position: absolute; inset: 0; width: 100%; height: 100%; }
.d-cap { position: absolute; left: 50%; top: 50%; width: 8.4cqw; height: 8.4cqw; margin: -4.2cqw 0 0 -4.2cqw; }
.d-ptr { position: absolute; left: 50%; top: -3cqw; width: 8cqw; height: 8cqw; margin-left: -4.1cqw; }
.d-pick {
  left: 50%; bottom: 3.4cqw; transform: translateX(-50%) rotate(-2deg); display: flex; align-items: center; gap: 1.2cqw;
  padding: 1.2cqw 3cqw 1.2cqw 1.4cqw; border-radius: 999px; background: var(--ink); color: #fff; white-space: nowrap;
  font: 700 3.6cqw/1 var(--f6-disp); letter-spacing: -0.02em; box-shadow: 0.7cqw 0.7cqw 0 var(--accent);
}
.d-pick img { width: 5.2cqw; height: 5.2cqw; }

/* 4, steal, strike back, take the crown: three labelled cards in the order the heading says them */
.s-card {
  top: 15cqw; width: 26cqw; height: 40cqw; padding: 3cqw 1.5cqw 0; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  background: #fff; border-radius: 4cqw; border: 0.5cqw solid var(--ink); box-shadow: 1.2cqw 1.2cqw 0 var(--ink);
}
.s-c1 { left: 5.5cqw; transform: rotate(-3deg); }
.s-c2 { left: 37cqw; top: 13cqw; transform: rotate(2deg); }
.s-c3 { left: 68.5cqw; transform: rotate(-2deg); }
.s-card > img { width: 21cqw; height: 21cqw; }
.s-card b { margin-top: auto; padding-bottom: 5.4cqw; font: 700 3.1cqw/1.05 var(--f6-disp); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.s-card .stk { position: absolute; left: 50%; bottom: -2.4cqw; transform: translateX(-50%) rotate(-3deg); font-size: 2.3cqw; }
.s-mvp { position: relative; margin-top: 4.4cqw; }
.s-goat { display: block; width: 21cqw; height: auto; margin-top: -3cqw; transform: rotate(4deg); }
.s-arrow { top: 31cqw; width: 5cqw; height: 5cqw; fill: none; stroke: var(--ink); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.s-ar1 { left: 31.6cqw; }
.s-ar2 { left: 63.2cqw; }

.hm-text h3 { font-family: var(--f6-disp); font-weight: 700; color: var(--ink); font-size: var(--hm-h3); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.hm-text p { margin-top: var(--s-3); max-width: 28em; font-size: var(--hm-t-lead); line-height: 1.5; }
.hm-text .hm-aside { margin-top: var(--s-4); font-size: var(--hm-mark); line-height: 1.15; }
.hm-moves { list-style: none; margin-top: var(--s-3); max-width: 28em; display: grid; gap: var(--s-2); font-size: var(--hm-t-lead); line-height: 1.45; }
.hm-moves b { color: var(--ink); }

/* the pieces land when the panel comes into view (site/main.ts adds .hm-js; without it they are just there) */
.hm-js .hm-art .pc { opacity: 0; translate: 0 4cqw; scale: 0.8; transition: opacity 0.3s ease, translate 0.55s var(--mo-spring), scale 0.55s var(--mo-spring); }
.hm-js .hm-art.is-in .pc { opacity: 1; translate: none; scale: none; }
.hm-js .hm-art.is-in .pc:nth-child(3) { transition-delay: 0.05s; }
.hm-js .hm-art.is-in .pc:nth-child(4) { transition-delay: 0.1s; }
.hm-js .hm-art.is-in .pc:nth-child(5) { transition-delay: 0.15s; }
.hm-js .hm-art.is-in .pc:nth-child(6) { transition-delay: 0.2s; }
.hm-js .hm-art.is-in .pc:nth-child(7) { transition-delay: 0.25s; }
.hm-js .hm-art.is-in .pc:nth-child(n+8) { transition-delay: 0.3s; }

/* ---------- the games, on dark: settle it your way (in the room, or on the phones) ---------- */
.hm-games-sec { padding: var(--hm-band) 0; background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.hm-games-sec::before {
  content: ""; position: absolute; top: -40px; right: -60px; width: 520px; height: 360px; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.6px, transparent 1.9px); background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent);
}
.hm-games-sec .hm-in { position: relative; }
.hm-games-sec h2 { color: #fff; }
.hm-games-sec .hm-sub { color: var(--on-ink); }
.hm-games-sec .hm-aside { color: var(--accent-gold); }
.hm-games-sec :focus-visible { outline-color: var(--accent-gold); }

/* the two halves: the same frame, the same weight; one says pink, the other green, as the duel's corners do */
.hm-ways { margin-top: var(--hm-lead); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hm-gap); align-items: stretch; }
.hm-way {
  position: relative; display: flex; flex-direction: column; gap: var(--s-5); min-width: 0;
  background: #1a1f2b; border-radius: var(--hm-r-l); padding: var(--hm-card);
  border: 3px solid var(--way); box-shadow: 8px 8px 0 var(--way);   /* the same weight and colour as its shadow, like the ink cards: one solid slab */
}
.way-room { --way: var(--accent); }
.way-app { --way: var(--accent2); }
/* side by side, the two cards share their rows (intro, tiles, foot), so the tiles start level whatever the intros' lengths */
@media (min-width: 961px) { .hm-way { display: grid; grid-row: span 3; grid-template-rows: subgrid; } }
.hm-way .stk { font-size: 0.82rem; padding: 8px 14px 7px; transform: rotate(-2deg); align-self: flex-start; }
.hm-way .stk.green { background: var(--accent2); color: #fff; box-shadow: 3px 3px 0 #fff; }
.hm-way .stk.pink { box-shadow: 3px 3px 0 #fff; }
.hm-way-top { display: flex; flex-direction: column; align-items: flex-start; }
.hm-way h3 { margin-top: var(--s-4); font-family: var(--f6-disp); font-weight: 700; color: #fff; font-size: var(--hm-h3); line-height: 1.05; letter-spacing: -0.03em; }
.hm-way-top p { margin-top: var(--s-3); font-size: var(--hm-t-read); line-height: 1.5; color: var(--on-ink); max-width: 30em; }

/* the room's own games: the stickers the wheel uses, and a slot for the one only your family plays */
.hm-own { list-style: none; flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--s-3); }
.hm-own li, .hm-built a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-width: 0;
  background: #fff; border-radius: var(--hm-r-s); padding: 14px 6px; color: var(--ink);
  font: 700 var(--hm-t-label)/1.2 var(--f6-disp); letter-spacing: -0.01em;
}
.hm-own li:nth-child(odd) { transform: rotate(-1.2deg); }
.hm-own li:nth-child(even) { transform: rotate(1.2deg); }
.hm-own img { width: 72px; height: 72px; object-fit: contain; }
.hm-own li.hm-own-yours { grid-column: span 2; flex-direction: row; gap: var(--s-3); background: transparent; border: 2.5px dashed var(--accent-gold); color: var(--accent-gold); font-size: var(--hm-t-read); }
.hm-own-slot { display: grid; place-items: center; width: 72px; height: 72px; }
/* the built-in nine: the same tiles, each a link to its rules, with who plays */
.hm-built li { display: flex; align-items: stretch; padding: 0; background: none; }
.hm-games-sec .hm-built a { flex: 1; color: var(--ink); text-decoration: none; transition: transform 0.25s var(--mo-spring), box-shadow 0.25s ease; }
.hm-games-sec .hm-built a:hover, .hm-games-sec .hm-built a:focus-visible { color: var(--ink); transform: translateY(-4px) scale(1.03); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4); }
.hm-built a:focus-visible { outline: 3px solid var(--accent-gold); outline-offset: 3px; }
.hm-way-foot { font-size: var(--hm-t-body); line-height: 1.4; color: var(--on-ink); }
/* a link on a line of its own is a full-height target */
.hm-way-foot a { display: inline-flex; align-items: center; min-height: 44px; }
.way-room .hm-way-foot { font-family: var(--f6-mark); font-size: var(--hm-mark); line-height: 1.15; color: var(--accent-gold); transform: rotate(-1.5deg); transform-origin: left; }

.hm-mix { margin-top: var(--hm-block); max-width: 34em; font-size: var(--hm-t-read); line-height: 1.45; color: #fff; }

.hm-games-sec a { color: #ff8fab; }
.hm-games-sec a:hover { color: #fff; }

/* ---------- together or apart: one room, or several homes on a call ---------- */
.hm-wheres { margin-top: var(--hm-lead); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hm-block) var(--hm-gap); }
.hm-where .hm-art { aspect-ratio: 16 / 9; }
.w-room .hm-art { background: var(--accent2); }
.w-call .hm-art { background: #1a1f2b; }
.w-call .hm-art::before { background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.8px); }
.hm-where h3 { margin-top: var(--s-5); font-family: var(--f6-disp); font-weight: 700; color: var(--ink); font-size: var(--hm-h4); line-height: 1.15; letter-spacing: -0.02em; }
.hm-where p { margin-top: var(--s-2); max-width: 30em; font-size: var(--hm-t-read); line-height: 1.5; }
.r-lab { top: 4cqw; left: 4cqw; transform: rotate(-3deg); font-size: 2.6cqw; }
.w-room .r-lab { box-shadow: 0.7cqw 0.7cqw 0 #fff; }
.r-screen { left: 50%; top: 3cqw; width: 31cqw; height: auto; margin-left: -15.5cqw; }
.r-gift { left: 79cqw; top: 9cqw; width: 14cqw; height: auto; transform: rotate(9deg); }
.w-room .av { top: 35.5cqw; width: 13.5cqw; border-radius: 3.2cqw; }
.r-a1 { left: 8cqw; transform: rotate(-7deg); }
.r-a2 { left: 25.6cqw; top: 38cqw !important; transform: rotate(4deg); }
.r-a3 { left: 43.2cqw; top: 39cqw !important; transform: rotate(-3deg); }
.r-a4 { left: 60.8cqw; top: 38cqw !important; transform: rotate(6deg); }
.r-a5 { left: 78.5cqw; transform: rotate(-5deg); }
.c-tile {
  width: 27cqw; height: 17.4cqw; border-radius: 2.6cqw; background: #2b3345; border: 0.4cqw solid #414b62;
  display: grid; place-items: center;
}
.c-tile img { width: 12.4cqw; height: 12.4cqw; object-fit: contain; }
.c-tile b { position: absolute; left: 1.5cqw; bottom: 1.2cqw; font: 700 1.9cqw/1 var(--f6-disp); color: #fff; }
.c-t1 { left: 7cqw; top: 14cqw; } .c-t2 { left: 36.5cqw; top: 14cqw; } .c-t3 { left: 66cqw; top: 14cqw; }
.c-t4 { left: 7cqw; top: 34cqw; } .c-t5 { left: 36.5cqw; top: 34cqw; } .c-t6 { left: 66cqw; top: 34cqw; }
.c-share { background: #fff; border-color: var(--accent-gold); }
.c-share img { width: 15cqw; height: 15cqw; }
.c-share .stk { position: absolute; left: 50%; bottom: -1.6cqw; transform: translateX(-50%) rotate(-3deg); font-size: 1.7cqw; }
.hm-apart-go { margin-top: var(--hm-block); min-height: 52px; padding: 12px 24px; }
@media (min-width: 961px) { .hm-apart .hm-know { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hm-gap); } }

/* ---------- moments: the game's own lines, said large ---------- */
.hm-moments { padding: var(--hm-band) 0; background: var(--accent); position: relative; overflow: hidden; }
.hm-moments::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.8px); background-size: 13px 13px;
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 60%); mask-image: linear-gradient(160deg, #000, transparent 60%);
}
.hm-moments .hm-in { position: relative; }
.hm-moments h2 { color: #fff; text-shadow: 3px 3px 0 var(--ink); }
.hm-moments .hm-aside { color: var(--accent-gold); }   /* the same gold as the asides on the dark bands: white washed out on the pink */
/* a step more than the other grids: the cards lean and cast hard shadows */
.hm-quotes { list-style: none; margin-top: var(--hm-lead); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--hm-gap) + var(--s-2)); }
.hm-quotes li {
  position: relative; background: var(--surface); border-radius: var(--hm-r-m); padding: var(--hm-card) var(--hm-card) var(--hm-card) 104px; min-height: 150px;
  box-shadow: 6px 6px 0 var(--ink); transform: rotate(-1deg);
  display: flex; flex-direction: column; justify-content: center; gap: var(--s-3);
  transition: transform 0.35s var(--mo-spring);
}
.hm-quotes li:nth-child(even) { transform: rotate(1deg); }
.hm-quotes li:hover { transform: rotate(0) scale(1.02); }
.hm-quotes img { position: absolute; left: 14px; top: 50%; width: 84px; height: 84px; margin-top: -48px; transform: rotate(-8deg); filter: drop-shadow(0 6px 8px rgba(13, 16, 24, 0.18)); }
.hm-quotes blockquote p { font-family: var(--f6-disp); font-weight: 700; color: var(--ink); font-size: var(--hm-h4); line-height: 1.2; letter-spacing: -0.02em; text-wrap: pretty; }
.hm-who { font: 400 0.72rem/1.2 var(--f6-zine); color: var(--pink-ink); letter-spacing: 0.02em; }

/* ---------- what you need ---------- */
.hm-needs { list-style: none; margin-top: var(--hm-lead); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--hm-gap); }
.hm-needs li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--hm-r-m); box-shadow: var(--shadow-card);
  padding: var(--hm-card-s); font-size: var(--hm-t-body); line-height: 1.5;
}
.hm-needs img { width: 60px; height: 60px; margin: -4px 0 var(--s-3) -4px; }
.hm-needs b { display: block; font-family: var(--f6-disp); font-size: var(--hm-t-lead); letter-spacing: -0.01em; margin-bottom: 4px; }
.hm-know { margin-top: var(--hm-block); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hm-gap) var(--s-7); }
.hm-know > div { display: flex; gap: var(--s-4); align-items: flex-start; }
.hm-know img { width: 48px; height: 48px; flex: none; }
.hm-know p { font-size: var(--hm-t-body); line-height: 1.5; }
/* a link inside a sentence: a taller target without moving the line */
.hm-know a { padding: 8px 0; }

/* ---------- the last word ---------- */
.hm-close { max-width: var(--hm-max); margin: 0 auto; padding: var(--hm-sec) var(--pg-gutter); }
.hm-close-in {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-5) var(--s-6); align-items: center;
  background: var(--ink); color: var(--on-ink); border-radius: var(--hm-r-l); padding: calc(var(--hm-card) * 1.5);
}
.hm-close-in::before {
  content: ""; position: absolute; left: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 38%, transparent), transparent);
}
.hm-close-logo { position: relative; width: 120px; height: auto; transform: rotate(-6deg); }
.hm-close-copy { position: relative; }
.hm-close h2 { color: #fff; font-size: var(--hm-h3); }
.hm-close p { margin-top: var(--s-2); font-size: var(--hm-t-read); }
.hm-close .hm-aside { color: var(--accent-gold); margin-top: var(--s-3); }
.hm-close-actions { position: relative; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hm-close-actions .btn { min-height: 52px; padding: 12px 24px; }
.hm-ghost { color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); }
.hm-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.hm-close :focus-visible { outline-color: #fff; }

/* ---------- the one entrance on the page ---------- */
@keyframes hm-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hm-drop { from { opacity: 0; transform: translateY(-14px) rotate(-6deg) scale(0.9); } to { opacity: 1; transform: none; } }

/* ---------- the 404 page ---------- */
.lost-page { min-height: 100vh; display: flex; flex-direction: column; }
.lost { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 64px var(--pg-gutter) 80px; }
.lost-card { text-align: center; padding: 40px 28px 36px; }
.lost-art { width: 112px; height: 112px; margin: 0 auto 12px; }
.lost h1 { font-family: var(--f6-disp); font-weight: 700; color: var(--ink); font-size: clamp(1.7rem, 5vw, 2.2rem); line-height: 1.1; letter-spacing: -0.025em; }
.lost p { margin: 10px auto 0; max-width: 26em; }
.lost-actions { justify-content: center; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .hm-needs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* three facts across a tablet: smaller stickers and less padding, so no heading has to wrap */
  .hm-facts img { width: 48px; height: 48px; }
  .hm-facts-in { padding: var(--s-4); }
  .hm-facts li { gap: var(--s-3); }
  .hm-facts li + li { padding-left: var(--s-4); }
  .hm-facts b { text-wrap: balance; }
}
@media (max-width: 960px) {
  .hm-hero-in { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .hm-show { max-width: 660px; width: 100%; }
  .hm-title { font-size: clamp(2.5rem, 7.4vw, 3.8rem); }
  .hm-facts img { width: 56px; height: 56px; }
  .home { --facts-lap: 0px; }
  .hm-night { margin-top: var(--s-5); }
  .hm-facts-in { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); padding: var(--s-3) var(--s-4); }
  .hm-wheres { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
  .hm-facts li + li { border-left: 0; border-top: 1px dashed var(--line); padding: var(--s-3) var(--s-2) var(--s-1); }
  .hm-text p, .hm-moves { font-size: var(--hm-t-read); }   /* two columns on a tablet: keeps 45+ characters a line */
  .hm-ways { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); max-width: 720px; }
  .hm-quotes { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
  .hm-know { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .hm-close-in { grid-template-columns: auto minmax(0, 1fr); }
  .hm-close-actions { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hm-step, .hm-step:nth-child(even) { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "art art" "n text"; gap: var(--s-5) var(--s-4); align-items: start; }
  .hm-step:not(:last-child)::after { display: none; }
  .hm-n { width: 48px; height: 48px; font-size: 1.5rem; box-shadow: 3px 3px 0 var(--ink); }
  .hm-steps { gap: var(--s-7); }
  .hm-art { box-shadow: 6px 6px 0 var(--ink); }
  .hm-close-in { grid-template-columns: minmax(0, 1fr); }
  .hm-close-logo { width: 92px; }
}
@media (max-width: 640px) {
  .hm-hero { padding-top: var(--s-5); }
  .home { --bar-tall: 88px; --bar-h: 64px; }
  .hm-bar .hm-bar-small img { width: 50px; height: 48px; }
  .hm-bar .pg-brand { font-size: 1.35rem; }
  .hm-title { font-size: clamp(1.9rem, 10.2vw, 2.7rem); }
  .hm-tag { margin-top: var(--s-3); font-size: var(--hm-t-lead); }
  /* a phone: what it is first, then host, then the code box */
  .hm-actions { margin-top: var(--s-5); gap: var(--s-4); align-items: stretch; }
  .hm-lede { font-size: var(--hm-t-read); }
  .hm-join { max-width: none; }
  .hm-host-row { flex-direction: column; align-items: stretch; gap: var(--s-2); }
  .hm-host { width: 100%; }
  .hm-free { align-self: center; }
  .hm-device { padding: 12% 7% 8% 4%; }
  .hm-corner { top: 10px; font-size: 0.6rem; }
  .hm-corner.red { left: 10px; } .hm-corner.green { right: 10px; }
  .hm-tv { padding: 5px; border-radius: 12px; }
  .hm-tv img { border-radius: 7px; }
  .hm-phone { width: 28%; }
  .hm-cap { max-width: 64%; font-size: var(--hm-t-label); margin-top: var(--s-4); }
  .hm-facts img { width: 52px; height: 52px; }
  .hm-sub { font-size: var(--hm-t-read); }
  .hm-way { box-shadow: 5px 5px 0 var(--way); gap: var(--s-4); }
  .hm-own { gap: var(--s-2); }
  .hm-own { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-own li, .hm-built a { padding: 10px 6px; }
  /* eight tiles, two across: the dashed one is a tile like the rest, so no row is left half empty */
  .hm-own li.hm-own-yours { grid-column: auto; flex-direction: column; gap: 6px; font-size: var(--hm-t-label); }
  .hm-own img, .hm-own-slot { width: 52px; height: 52px; }
  .hm-built li:last-child { grid-column: span 2; }   /* nine tiles, two across: the last takes the row */
  .hm-quotes li { padding-left: 84px; min-height: 0; margin-right: 6px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-0.6deg); }
  .hm-quotes li:nth-child(even) { transform: rotate(0.6deg); }
  .hm-quotes img { width: 64px; height: 64px; left: 10px; margin-top: -36px; }
  .hm-needs { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .hm-needs li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 var(--s-4); }
  .hm-needs img { width: 48px; height: 48px; margin: 0; grid-row: span 2; }
  .hm-apart-go { width: 100%; }
  .hm-close-actions { flex-direction: column; }
  .hm-close-actions .btn { width: 100%; }
}

/* ---------- the one-time notice, on this page ---------- */
/* a slim bar along the foot instead of the app's corner card: it covers one line of the page, not the hero's picture
   or the facts strip (ui/notice.css is the card; these rules only reshape it here) */
.home .yd-notice { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 940px; margin: 0 auto; padding: 6px 6px 6px 18px; gap: 8px 14px; border-radius: 999px; font-size: 13.5px; line-height: 1.4; }
.home .yd-notice-link, .home .yd-notice-ok { min-height: 40px; font-size: 14px; }
@media (max-width: 720px) {
  .home .yd-notice { flex-direction: row; align-items: center; padding: 10px 10px 10px 14px; border-radius: var(--hm-r-m); font-size: 13px; }
  .home .yd-notice-actions { flex-direction: column; align-items: stretch; gap: 0; }
  .home .yd-notice-link { min-height: 32px; padding: 0 10px; font-size: 13px; }
  .home .yd-notice-ok { min-height: 44px; }
}
