/* Hoppin's homepage. One stylesheet for every page: the page's own look first, then the app screens
   the home page draws. Dark is the default, as the app's brand is. Light follows the visitor's setting. */

@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka-latin-wght.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  /* The brand's five colors, from the identity's README. */
  --coral: #ff7d52;
  --on-coral: #1f0800;
  --charcoal: #1c1c1f;
  --cream: #fff3e4;
  --near-black: #0b0b0d;

  --ground: var(--near-black);
  --ink: var(--cream);
  --ink-2: rgba(255, 243, 228, 0.68);
  --line: rgba(255, 243, 228, 0.13);
  --link: var(--coral);
  --tile: #16161a;
  --glass: rgba(24, 24, 28, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --glow: rgba(255, 125, 82, 0.34);

  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --text:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --wide: 1120px;
}

@media (prefers-color-scheme: light) {
  :root {
    --ground: var(--cream);
    --ink: var(--charcoal);
    --ink-2: rgba(28, 28, 31, 0.72);
    --line: rgba(28, 28, 31, 0.14);
    /* The app's own coral for text on light grounds: brand coral is 2.3:1 on cream. */
    --link: #a83b18;
    --tile: #ffe2cb;
    --glass: rgba(255, 249, 240, 0.7);
    --glass-edge: rgba(28, 28, 31, 0.1);
    --glow: rgba(255, 125, 82, 0.5);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
svg {
  display: block;
}
a {
  color: var(--link);
  text-underline-offset: 0.18em;
}
:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wide));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--on-coral);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The word mark: cream on dark, charcoal on light. */
.mark-light {
  display: none;
}
@media (prefers-color-scheme: light) {
  .mark-dark {
    display: none;
  }
  .mark-light {
    display: block;
  }
}

/* ---------- The top bar: a glass capsule, as the app's bars are ---------- */

.top {
  position: sticky;
  top: 10px;
  z-index: 10;
  margin-top: 10px;
}
.top .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 10px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  box-shadow:
    inset 0 0 0 1px var(--glass-edge),
    0 8px 30px rgba(0, 0, 0, 0.18);
}
.lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 999px;
}
.lockup .tile {
  width: 36px;
  height: 36px;
  border-radius: 22.37%;
}
.lockup .word {
  height: 21px;
  width: auto;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.top nav a {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.top nav a:hover {
  background: var(--line);
}
.top nav a.get {
  background: var(--coral);
  color: var(--on-coral);
}
.top nav a.get:hover {
  background: #ff9670;
}

/* ---------- The hero ---------- */

.hero {
  position: relative;
  display: grid;
  gap: 36px;
  padding-top: 44px;
}
.hero h1 {
  font-size: clamp(2.75rem, 11.5vw, 5rem);
}
.hero h1 em {
  font-style: normal;
  color: var(--coral);
}
@media (prefers-color-scheme: light) {
  /* Coral words on cream are too faint to read, so the light page says it in charcoal. */
  .hero h1 em {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--coral);
    text-decoration-thickness: 0.09em;
    text-underline-offset: 0.12em;
  }
}
.hero .lede {
  margin-top: 22px;
  max-width: 31em;
  font-size: clamp(1.06rem, 2.4vw, 1.25rem);
  color: var(--ink-2);
}
.store {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
/* Apple's badge, unchanged: 40px tall or more, with a quarter of its height clear on every side. */
.store .badge {
  display: none;
  padding: 12px;
  margin: -12px;
  border-radius: 14px;
}
.store .badge img {
  height: 48px;
  width: auto;
}
.store .soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--on-coral);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}
.store .soon svg {
  width: 20px;
  height: 20px;
}
.store .note {
  font-size: 15px;
  color: var(--ink-2);
}
/* The switch for launch day: <html data-store="live"> shows Apple's badge in place of "Coming soon". */
[data-store="live"] .store .badge {
  display: block;
}
[data-store="live"] .store .soon,
[data-store="live"] .store .note {
  display: none;
}

/* A stage holds one app screen, cropped. The phone is drawn in points, 402 wide, and --z scales it. */
.stage {
  position: relative;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
}
.hero .stage {
  height: 470px;
  margin-inline: calc(-1 * var(--gutter));
  -webkit-mask-image: linear-gradient(#000 84%, transparent);
  mask-image: linear-gradient(#000 84%, transparent);
}
.hero .stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 46% at 50% 44%, var(--glow), transparent);
}
.hero .stage .phone {
  --z: 0.8;
  margin: 12px auto 0;
}

/* ---------- The features ---------- */

.features {
  display: grid;
  gap: 72px;
  padding-top: 72px;
}
.feature {
  display: grid;
  gap: 24px;
}
.feature h2 {
  font-size: clamp(2rem, 7.4vw, 3.1rem);
}
.feature p {
  margin-top: 14px;
  max-width: 30em;
  color: var(--ink-2);
  font-size: clamp(1.03rem, 2.2vw, 1.16rem);
}
.feature .stage {
  height: 430px;
  border-radius: 32px;
  background: var(--tile);
}
.feature .stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(62% 58% at 50% 50%, var(--tint, var(--glow)), transparent);
}
.feature .stage .phone {
  --z: 0.78;
  margin: 34px auto 0;
}
/* The Lock Screen's story is at its foot, so that phone is pinned to the bottom and cut above. */
/* Its wallpaper fades in at the top, so no edge crosses the tile. */
.feature .stage.pin-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 30px;
  -webkit-mask-image: linear-gradient(transparent 2%, #000 30%);
  mask-image: linear-gradient(transparent 2%, #000 30%);
}
.feature .stage.pin-bottom .phone {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
}
.f-friends {
  --tint: rgba(48, 209, 88, 0.26);
}
.f-party {
  --tint: rgba(91, 79, 224, 0.42);
}
.f-chat {
  --tint: rgba(255, 125, 82, 0.4);
}
.f-outside {
  --tint: rgba(214, 42, 122, 0.3);
}

/* ---------- The closing: the coral word, alone and large ---------- */

.closing {
  padding: 96px 0 40px;
  text-align: center;
}
.closing .big {
  width: min(82%, 660px);
  height: auto;
  margin-inline: auto;
}
.closing p {
  margin-top: 26px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.3rem, 4.4vw, 1.75rem);
}
.closing .store {
  justify-content: center;
}

/* ---------- The footer ---------- */

.foot {
  margin-top: 56px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
}
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot a {
  display: inline-block;
  padding: 10px 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.foot a:hover {
  text-decoration: underline;
}
.foot .legal {
  margin-top: 14px;
  max-width: 48em;
  font-size: 13px;
  line-height: 1.45;
}

/* ---------- The text pages: Terms, Privacy, Support, and the 404 ---------- */

.doc {
  padding: 56px 0 24px;
  max-width: 720px;
}
.doc h1 {
  font-size: clamp(2.4rem, 9vw, 3.6rem);
}
.doc .lede {
  margin-top: 16px;
  font-size: 1.16rem;
  color: var(--ink-2);
}
.doc h2 {
  margin-top: 48px;
  font-size: 1.6rem;
}
.doc h2 + p,
.doc p + p {
  margin-top: 12px;
}
/* A placeholder nobody can miss: dashed, labeled, and listed in AGENTS.md. */
.todo {
  margin-top: 28px;
  padding: 20px 22px;
  border: 2px dashed var(--link);
  border-radius: 20px;
}
.todo strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
}
.todo p {
  margin-top: 8px;
  color: var(--ink-2);
}
.faq {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.25;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 6px;
  border-right: 2.5px solid var(--link);
  border-bottom: 2.5px solid var(--link);
  transform: translateY(-3px) rotate(45deg);
}
.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.faq .a {
  padding: 0 2px 20px;
  max-width: 38em;
  color: var(--ink-2);
}
.faq .a p + p {
  margin-top: 10px;
}

/* ---------- The narrowest phones ---------- */

@media (max-width: 379px) {
  .top nav a {
    padding: 0 10px;
  }
  .lockup .tile {
    width: 32px;
    height: 32px;
  }
  .lockup .word {
    height: 17px;
  }
  .lockup {
    gap: 7px;
  }
  .hero .stage .phone {
    --z: 0.74;
  }
  .feature .stage .phone {
    --z: 0.68;
  }
}

/* ---------- Wider screens ---------- */

@media (min-width: 600px) {
  :root {
    --gutter: 28px;
  }
  .hero .stage {
    height: 560px;
  }
  .hero .stage .phone {
    --z: 0.95;
  }
  .feature .stage {
    height: 480px;
  }
  .feature .stage .phone {
    --z: 0.86;
  }
}
@media (min-width: 900px) {
  .top .bar {
    padding: 10px 10px 10px 14px;
  }
  .lockup .tile {
    width: 40px;
    height: 40px;
  }
  .lockup .word {
    height: 24px;
  }
  .hero {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 24px;
    padding-top: 56px;
  }
  .hero h1 {
    font-size: clamp(3.6rem, 6.4vw, 5.4rem);
  }
  .hero .stage {
    height: 680px;
    margin-inline: 0;
  }
  .hero .stage .phone {
    --z: 1;
    margin-top: 24px;
  }
  .features {
    gap: 28px;
    padding-top: 40px;
    grid-template-columns: 1fr 1fr;
  }
  /* Each feature is one tile: its words above its screen, on the tile's own ground. */
  .feature {
    grid-template-rows: auto 1fr;
    gap: 0;
    border-radius: 36px;
    background: var(--tile);
    overflow: hidden;
  }
  .feature .words {
    padding: 40px 40px 8px;
  }
  .feature h2 {
    font-size: clamp(2rem, 3.3vw, 2.7rem);
  }
  .feature .stage {
    height: 500px;
    border-radius: 0;
    background: none;
  }
  .feature .stage .phone {
    --z: 0.9;
  }
  .closing {
    padding-top: 128px;
  }
}

/* ---------- The app's screens ----------
   Drawn as the app draws them, from docs/design/reference, in the app's dark look on both themes.
   The games are made up. The symbols are our own drawings, not SF Symbols. */

.phone {
  --bg: #000;
  --bg2: #1c1c1e;
  --bg3: #2c2c2e;
  --label: #fff;
  --label2: rgba(235, 235, 245, 0.6);
  --sep: #2f2f32;
  --online: #30d158;
  position: relative;
  width: 402px;
  height: 874px;
  zoom: var(--z, 1);
  border-radius: 62px;
  background: var(--bg);
  color: var(--label);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.25;
  box-shadow:
    0 0 0 5px #26262a,
    0 0 0 6.5px #05050a,
    0 40px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  text-align: left;
  user-select: none;
}
.phone svg {
  fill: currentColor;
}
.phone .status {
  position: relative;
  height: 54px;
  padding: 19px 34px 0 46px;
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
}
.phone .status::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 11px;
  width: 112px;
  height: 33px;
  margin-left: -56px;
  border-radius: 20px;
  background: #000;
}
.phone .status svg {
  width: 68px;
  height: 14px;
  margin-top: 3px;
}

/* A face: a username's first two letters on its color. */
.face {
  --d: 52px;
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  background: var(--c, #3f4a5e);
  color: #fff;
  font-size: calc(var(--d) * 0.36);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.c-teal {
  --c: #0f8a8a;
}
.c-azure {
  --c: #0a6ae0;
}
.c-indigo {
  --c: #5b4fe0;
}
.c-purple {
  --c: #9a3fd8;
}
.c-pink {
  --c: #d62a7a;
}
.c-amber {
  --c: #b77800;
}
.c-ink {
  --c: #3f4a5e;
}
/* What rides a face's corner: the green dot, or the icon of the game they're playing. */
.face .dot,
.face .game {
  position: absolute;
  right: -2px;
  bottom: -2px;
}
.face .dot {
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 2.5px var(--ring, var(--bg));
}
.face .game {
  width: 42%;
  height: 42%;
  border-radius: 28%;
  box-shadow: 0 0 0 2px var(--ring, var(--bg));
}
.game {
  display: block;
  border-radius: 22.37%;
}

/* Original fictional kart racer; dark lower track leaves room for party text. */
.art-drift-sprouts {
  background:
    linear-gradient(0deg, rgba(0, 15, 24, 0.55), transparent 65%),
    url("/games/drift-sprouts-banner.webp") center / cover;
}

.coral-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  background: var(--coral);
  color: var(--on-coral);
  font-size: 15px;
  font-weight: 600;
}
.coral-pill svg {
  width: 15px;
  height: 15px;
}
.glass-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(118, 118, 128, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.glass-btn svg {
  width: 20px;
  height: 20px;
}

/* Home */
.home .bar {
  display: flex;
  justify-content: space-between;
  padding: 2px 16px 0;
}
.home .bar .glass-btn {
  position: relative;
}
.home .bar .count {
  position: absolute;
  right: -3px;
  top: -3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  font-variant-numeric: tabular-nums;
  color: #fff;
  border-radius: 9px;
  background: #ff453a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.party-hero {
  position: relative;
  height: 196px;
  margin: 14px 16px 0;
  border-radius: 26px;
  overflow: hidden;
}
.party-hero::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(8, 6, 20, 0.86));
}
.live {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
}
.party-hero .who {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.stack {
  display: flex;
}
.stack .face:first-child {
  z-index: 2;
}
.stack .face:nth-child(2) {
  z-index: 1;
}
.stack .face {
  --d: 30px;
  margin-right: -8px;
  box-shadow: 0 0 0 2px rgba(8, 6, 20, 0.9);
}
.party-hero b {
  display: block;
  margin-top: 8px;
  font-size: 16px;
}
.party-hero small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}
.strip {
  display: flex;
  gap: 15px;
  padding: 22px 16px 6px;
}
.strip .who {
  margin: 0;
  width: 56px;
  text-align: center;
}
.strip .face,
.strip .start {
  margin: 0 auto;
}
.strip .cap {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
}
.strip .start {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: rgba(255, 125, 82, 0.14);
  color: var(--coral);
  box-shadow: inset 0 0 0 1.5px var(--coral);
}
.strip .start svg {
  width: 24px;
  height: 24px;
}
.strip .start + .cap {
  color: var(--coral);
}
.rows {
  padding: 8px 0 0 16px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding-right: 16px;
}
.row .face {
  --d: 46px;
}
.row .txt {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--sep);
}
.row .txt b {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}
.row .txt b .t {
  font-size: 15px;
  font-weight: 400;
  color: var(--label2);
}
.row .txt > span {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  font-size: 15px;
  color: var(--label2);
}
.row .txt .typing,
.row.unread .txt b .t {
  color: var(--coral);
}
.row .txt .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  background: #ff453a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
/* Add wide for counts with more than one digit. Single digits keep a true circle. */
.row .txt .n.wide {
  width: auto;
  min-width: 20px;
  padding-inline: 6px;
}
.home .bar .count.wide {
  width: auto;
  min-width: 18px;
  padding-inline: 5px;
}
.row .txt .n .digit,
.home .bar .count .digit {
  display: block;
  line-height: 1;
}

/* Friends */
.friends h3 {
  padding: 6px 20px 0;
  font-family: inherit;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0;
}
.friends .label {
  padding: 20px 20px 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--label2);
}
.group {
  margin: 0 16px;
  border-radius: 22px;
  background: var(--bg2);
  --ring: var(--bg2);
}
.group .row {
  min-height: 62px;
  padding-left: 14px;
  padding-right: 14px;
}
.group .row .face {
  --d: 40px;
}
.group .row:last-child .txt {
  border-bottom: 0;
}
.group .row .txt span.on {
  color: var(--online);
}
.group .join {
  height: 32px;
  padding: 0 13px;
  border-radius: 16px;
  background: rgba(255, 125, 82, 0.14);
  color: var(--coral);
}

/* The party sheet */
.sheet {
  position: absolute;
  inset: 54px 0 0;
  border-radius: 38px 38px 0 0;
  background: var(--bg2);
  --ring: var(--bg2);
  overflow: hidden;
}
.sheet .art {
  height: 132px;
  -webkit-mask-image: linear-gradient(#000 45%, transparent);
  mask-image: linear-gradient(#000 45%, transparent);
}
.sheet .grab {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 36px;
  height: 5px;
  margin-left: -18px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.45);
}
.sheet .head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: -52px;
  padding: 0 18px;
  position: relative;
}
.sheet .head .game {
  width: 84px;
  height: 84px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.sheet .head div {
  flex: 1;
  padding-bottom: 8px;
}
.sheet .head b {
  display: block;
  font-size: 22px;
  font-weight: 700;
}
.sheet .head small {
  font-size: 13px;
  color: var(--label2);
}
.sheet .head .coral-pill {
  margin-bottom: 14px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 26px 18px 0;
}
.tiles .who {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 18px 0 12px;
  border-radius: 22px;
  background-color: #26262a;
  background-image: radial-gradient(
    80% 80% at 50% 35%,
    color-mix(in srgb, var(--c) 38%, transparent),
    transparent
  );
}
.tiles .face {
  --d: 54px;
  --ring: #2a2a2e;
}
.tiles .cap {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}
.tiles .cap svg {
  width: 12px;
  height: 12px;
}
.tiles .crown {
  color: var(--coral);
}
.tiles .muted {
  color: var(--label2);
}
.tiles .talking {
  box-shadow:
    inset 0 0 0 2.5px var(--online),
    0 0 18px rgba(48, 209, 88, 0.35);
}

/* Chat */
.chat .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 14px 10px;
}
.chat .title {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px 0 8px;
  border-radius: 22px;
  background: rgba(118, 118, 128, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 15px;
  font-weight: 600;
}
.chat .title .face {
  --d: 30px;
}
.chat .bar .party {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border-radius: 22px;
  background: rgba(255, 125, 82, 0.14);
  color: var(--coral);
  font-size: 15px;
  font-weight: 600;
}
.chat .bar .party svg {
  width: 16px;
  height: 16px;
}
.thread {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 14px 0 50px;
  position: relative;
}
.thread .from {
  position: absolute;
  left: 14px;
  bottom: 0;
  --d: 28px;
}
.bubble {
  max-width: 250px;
  padding: 8px 13px;
  border-radius: 19px;
  background: #262629;
  font-size: 16px;
}
.bubble .name {
  display: block;
  margin-bottom: 1px;
  font-size: 13px;
  font-weight: 600;
  color: #ff9670;
}
.bubble.out {
  align-self: flex-end;
  background: #a8401d;
}
.card {
  width: 286px;
  border-radius: 22px;
  background: #1f1f22;
  overflow: hidden;
}
.card .art {
  height: 124px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.card .head {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: -34px;
  padding: 0 14px;
  position: relative;
}
.card .head .game {
  width: 60px;
  height: 60px;
}
.card .head b {
  display: block;
  font-size: 18px;
  font-weight: 700;
}
.card .head small {
  display: block;
  margin: 1px 0 4px;
  font-size: 13px;
  color: var(--label2);
}
.card .now {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px 0;
  font-size: 13px;
  color: var(--label2);
}
.card .now::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--online);
}
.card .coral-pill {
  display: flex;
  height: 40px;
  margin: 12px 14px 14px;
  border-radius: 20px;
  font-size: 16px;
}

/* The Lock Screen */
.lock {
  background: linear-gradient(175deg, #2b1d55 0%, #5a2a55 45%, #8a3d2c 78%, #3a1c1c 100%);
}
.lock .below {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 118px;
  display: grid;
  gap: 8px;
}
.activity,
.push {
  border-radius: 26px;
  background: rgba(22, 20, 28, 0.72);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  --ring: #1a1820;
}
.activity .line {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
}
.activity .line + .line {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.activity .invite {
  font-size: 15px;
  font-weight: 600;
}
.activity .invite .face {
  --d: 24px;
}
.activity .invite span {
  font-weight: 400;
  color: var(--label2);
}
.activity .face {
  --d: 40px;
}
.activity b,
.push b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.activity small,
.push small {
  display: block;
  margin-top: 1px;
  font-size: 14px;
  color: var(--label2);
}
.push {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
}
.push img {
  width: 38px;
  height: 38px;
  border-radius: 22.37%;
}
.push div {
  flex: 1;
}
.push .t {
  align-self: flex-start;
  font-size: 13px;
  color: var(--label2);
}
.lock .tools {
  position: absolute;
  left: 46px;
  right: 46px;
  bottom: 46px;
  display: flex;
  justify-content: space-between;
}
.lock .tools span {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(20, 16, 24, 0.5);
}
.lock::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 140px;
  height: 5px;
  margin-left: -70px;
  border-radius: 3px;
  background: #fff;
}

/* ---------- Motion: small, and only for people who haven't asked for less ---------- */

@media (prefers-reduced-motion: no-preference) {
  @keyframes hop {
    0%,
    100% {
      transform: none;
    }
    35% {
      transform: translateY(-11px) scale(1.03, 0.98);
    }
    60% {
      transform: none;
    }
    75% {
      transform: translateY(-3px);
    }
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
  }
  @keyframes talk {
    50% {
      box-shadow:
        inset 0 0 0 2.5px var(--online),
        0 0 30px rgba(48, 209, 88, 0.6);
    }
  }
  .hero .words > * {
    animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  }
  .hero .words > :nth-child(2) {
    animation-delay: 0.08s;
  }
  .hero .words > :nth-child(3) {
    animation-delay: 0.16s;
  }
  .hero .stage .phone {
    animation: rise 0.8s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  }
  /* The friends hop, one after another, once the page has settled. */
  .strip .who {
    animation: hop 0.7s calc(0.9s + var(--i, 0) * 0.11s) cubic-bezier(0.3, 0.6, 0.4, 1) backwards;
  }
  .lockup:hover .tile {
    animation: hop 0.6s cubic-bezier(0.3, 0.6, 0.4, 1);
  }
  .tiles .talking {
    animation: talk 1.6s ease-in-out 3;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
