:root {
  color-scheme: dark;
  --bg: #212129;
  --card: #ffffff;
  --text: #ffffff;
  --muted: #a1a4af;
  --line: rgba(255, 255, 255, 0.12);
  --orange: #ff6840;
  --feature-card-bg: rgba(230, 238, 255, 0.055);
  --feature-mark-fill: linear-gradient(90deg, rgba(92, 107, 133, 0.04), rgba(151, 166, 196, 0.08));
  --container: 1200px;
  --text-container: 760px;
  --feature-container: 960px;
  --gutter: 64px;
  --font-hero: 60px;
  --font-title: 38px;
  --font-subtitle: 20px;
  --font-heading: 22px;
  --font-floating-title: 20px;
  --font-brand: 18px;
  --font-body: 16px;
  --font-small: 16px;
  --font-caption: 14px;
  --radius-panel: 28px;
  --space-xs: 4px;
  --space-sm: 12px;
  --space-md: 18px;
  --space-lg: 24px;
  --space-xl: 28px;
  --space-2xl: 32px;
  --header-padding-top: 46px;
  --header-padding-bottom: 34px;
  --header-padding-block: var(--header-padding-top) 0 var(--header-padding-bottom);
  /* Exact gap from hero copy to center card, and from center card to feature heading. */
  --hero-padding-top: 84px;
  --hero-title-gap: 32px;
  --hero-phone-gap: 56px;
  --phone-showcase-width: 360px;
  --phone-showcase-padding-bottom: 80px;
  --phone-card-width: 91%;
  --hero-center-card-space: 140px;
  --hero-card-width: 300px;
  --hero-card-gap: 28px;
  --footer-cta-gap: 32px;
  --floating-cta-height: 0px;
  --feature-section-bottom: max(0px, calc(var(--floating-cta-height) + (var(--footer-cta-gap) * 2) - var(--footer-padding-top)));
  --feature-heading-gap: 32px;
  --feature-grid-gap: var(--space-md);
  --feature-card-padding: 28px;
  --feature-card-copy-gap: var(--space-sm);
  --footer-padding-top: 34px;
  --footer-padding-bottom: 42px;
  --footer-padding-block: var(--footer-padding-top) 0 var(--footer-padding-bottom);
  --footer-link-gap: var(--space-xl);
  --legal-padding-top: 80px;
  --legal-padding-bottom: 96px;
  --legal-header-gap: 48px;
  --legal-content-gap: var(--space-2xl);
  --brand-mark-radius: 11px;
  --cta-padding: 18px 24px;
  --cta-content-gap: 24px;
  --floating-cta-bottom: 42px;
  --button-icon-size: 22px;
  --hero-card-label: 12px;
  --hero-card-title: 18px;
  --hero-card-prompt: 24px;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 500;
  --line-tight: 1.08;
  --line-normal: 1.4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

body::after {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -18vh;
  height: 92vh;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse 92% 68% at 50% 100%, rgba(26, 46, 71, 0.46), rgba(26, 46, 71, 0.20) 42%, transparent 74%),
    radial-gradient(ellipse 48% 48% at 38% 100%, rgba(255, 112, 71, 0.12), transparent 72%),
    radial-gradient(ellipse 54% 46% at 62% 100%, rgba(98, 220, 102, 0.08), transparent 74%),
    linear-gradient(0deg, rgba(26, 46, 71, 0.24), transparent 76%);
  opacity: 1;
  animation: ambient-rise 14s ease-in-out infinite alternate;
}

@keyframes ambient-rise {
  from {
    transform: translate3d(-10px, 10px, 0) scaleX(1.02);
  }

  to {
    transform: translate3d(10px, -18px, 0) scaleX(1.08);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin: 0 auto;
  padding: var(--header-padding-block);
  background: var(--bg);
}

main,
.site-footer {
  position: relative;
  z-index: 2;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-brand);
  font-weight: var(--weight-regular);
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--brand-mark-radius);
  background: var(--bg);
  border: 1px solid var(--line);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  fill: #fff;
}

.footer-brand strong {
  font-weight: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-family: "IBM Plex Mono", "IBM Plex Sans", monospace;
  font-size: var(--font-body);
  font-weight: var(--weight-regular);
  transition: transform 160ms ease;
}

.button::after {
  display: inline-flex;
  margin-left: 7px;
  content: "↗";
  font-size: var(--button-icon-size);
  line-height: 1;
  transform: translateY(-0.08em);
  transition: transform 160ms ease;
}

.button:hover::after {
  transform: translate3d(2px, calc(-0.08em - 2px), 0);
}

.button:hover {
  transform: translateY(-1px);
}

.button-compact {
  min-height: 44px;
  padding: 0 20px;
  font-size: var(--font-small);
  font-weight: 300;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: min(100% - (var(--gutter) * 2), var(--text-container));
  margin: 0 auto;
  padding: var(--hero-padding-top) 0 var(--hero-phone-gap);
  text-align: center;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: var(--hero-title-gap);
  font-size: var(--font-hero);
  line-height: var(--line-tight);
  font-weight: var(--weight-semibold);
}

.hero-subtitle {
  max-width: var(--text-container);
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--font-subtitle);
  font-weight: var(--weight-regular);
  line-height: var(--line-normal);
}

.phone-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: var(--hero-center-card-space);
  padding-bottom: var(--phone-showcase-padding-bottom);
  overflow: hidden;
}

.phone-showcase-glow {
  position: absolute;
  top: 26%;
  left: 50%;
  width: min(92vw, 920px);
  height: 52%;
  background:
    radial-gradient(ellipse 58% 50% at 50% 52%, rgba(30, 58, 92, 0.36), rgba(30, 58, 92, 0.12) 48%, transparent 76%),
    radial-gradient(ellipse 38% 34% at 42% 58%, rgba(255, 104, 64, 0.12), transparent 72%);
  filter: blur(34px);
  transform: translateX(-50%);
  animation: phone-glow-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.phone-showcase-device {
  position: relative;
  z-index: 2;
  width: min(calc(100% - (var(--gutter) * 2)), var(--phone-showcase-width));
  align-self: flex-start;
}

.phone-showcase-image {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 80px rgba(0, 0, 0, 0.32));
}

.phone-card-stage {
  position: absolute;
  top: 2.7%;
  right: 5.8%;
  bottom: 3.4%;
  left: 5.8%;
  z-index: 3;
  overflow: hidden;
  border-radius: 8.5%;
  pointer-events: none;
}

.phone-game-card {
  position: absolute;
  top: 25.7%;
  left: 50%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  width: var(--phone-card-width);
  aspect-ratio: 366 / 480;
  padding: 6.67% 0;
  border-radius: 8.75% / 6.67%;
  background: var(--card);
  color: #191a21;
  box-shadow: 0 18px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateX(-50%) scale(0.88);
  transform-origin: center 78%;
  animation: phone-card-swipe 9s ease-out infinite;
  container-type: inline-size;
}

.phone-game-card:nth-child(2) {
  animation-delay: 3s;
}

.phone-game-card:nth-child(3) {
  animation-delay: 6s;
}

.phone-game-card-left {
  --swipe-x: -142%;
  --swipe-rotate: -16deg;
}

.phone-game-card-right {
  --swipe-x: 142%;
  --swipe-rotate: 16deg;
}

.phone-game-card span,
.phone-game-card em {
  color: #b2b4bd;
  font-size: clamp(10px, 3.83cqw, 14px);
  font-style: normal;
  font-weight: var(--weight-medium);
  line-height: 1.2;
  text-align: center;
}

.phone-game-card div {
  display: grid;
  gap: 5.46cqw;
  padding: 0 3.28%;
}

.phone-game-card strong {
  color: #555764;
  font-size: clamp(18px, 7.65cqw, 28px);
  font-weight: var(--weight-medium);
  line-height: var(--line-tight);
  text-align: center;
}

.phone-game-card p {
  margin-bottom: 0;
  color: #191a21;
  font-size: clamp(20px, 8.74cqw, 32px);
  font-weight: var(--weight-medium);
  line-height: calc(34 / 32);
  text-align: center;
}

@keyframes phone-glow-drift {
  from {
    transform: translate3d(-52%, 18px, 0) scaleX(0.98);
  }

  to {
    transform: translate3d(-48%, -8px, 0) scaleX(1.04);
  }
}

@keyframes phone-card-swipe {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.88);
  }

  6%,
  30% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }

  42% {
    opacity: 1;
    transform: translate3d(calc(-50% + var(--swipe-x)), -11.25%, 0) rotate(var(--swipe-rotate)) scale(1);
  }

  44% {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--swipe-x)), -11.25%, 0) rotate(var(--swipe-rotate)) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--swipe-x)), -11.25%, 0) rotate(var(--swipe-rotate)) scale(1);
  }
}

.hero-cards {
  overflow-x: clip;
  overflow-y: visible;
  padding: 0 0 var(--hero-center-card-space);
}

.hero-card-row {
  display: flex;
  justify-content: center;
  width: max-content;
  gap: var(--hero-card-gap);
  margin: 0 0 0 50%;
  transform: translateX(-50%);
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  flex: 0 0 auto;
  width: var(--hero-card-width);
  height: calc(var(--hero-card-width) / 0.64);
  padding: 28px 24px 26px;
  border-radius: var(--radius-panel);
  background: var(--card);
  color: #191a21;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  transform: translateY(var(--y, 0px));
  will-change: transform;
}

.hero-card span,
.hero-card em {
  color: #b2b4bd;
  font-size: var(--hero-card-label);
  font-style: normal;
  font-weight: var(--weight-regular);
  text-align: center;
}

.hero-card-content {
  align-self: center;
  display: grid;
  gap: var(--space-lg);
  width: 100%;
}

.hero-card strong {
  color: #555764;
  font-size: var(--hero-card-title);
  font-weight: var(--weight-medium);
  line-height: var(--line-tight);
  text-align: center;
}

.hero-card p {
  margin-bottom: 0;
  color: #191a21;
  font-size: var(--hero-card-prompt);
  font-weight: var(--weight-medium);
  line-height: 1.16;
  text-align: center;
}

.hero-card-primary {
  z-index: 3;
}

.hero-card-mid {
  z-index: 2;
}

.hero-card-side {
  z-index: 1;
}

.features {
  width: min(100% - (var(--gutter) * 2), var(--feature-container));
  margin: 0 auto;
  padding-bottom: var(--feature-section-bottom);
}

.section-heading {
  max-width: var(--text-container);
  margin-bottom: var(--feature-heading-gap);
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: var(--font-title);
  line-height: var(--line-tight);
  font-weight: var(--weight-semibold);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--feature-grid-gap);
}

.feature-card {
  position: relative;
  min-height: 280px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--feature-card-bg);
  overflow: hidden;
  isolation: isolate;
}

.feature-card-copy {
  position: relative;
  z-index: 1;
  padding: var(--feature-card-padding);
}

.feature-card-graphic::after {
  position: absolute;
  content: "";
  left: 75%;
  bottom: -20%;
  z-index: 0;
  width: auto;
  height: 100%;
  aspect-ratio: 1;
  background: var(--feature-mark-fill);
  transform: translateX(-50%);
  mask: var(--feature-mark) center / contain no-repeat;
  -webkit-mask: var(--feature-mark) center / contain no-repeat;
  pointer-events: none;
}

.feature-card-fast-start {
  --feature-mark: url("/assets/feature-fast-start.svg");
}

.feature-card-partyamp-picks {
  --feature-mark: url("/assets/feature-partyamp-picks.svg?v=2");
}

.feature-card-game-adapts {
  --feature-mark: url("/assets/feature-game-adapts.svg");
}

.feature-card-heat {
  --feature-mark: url("/assets/feature-heat.svg");
}

.feature-card h3 {
  margin-bottom: var(--feature-card-copy-gap);
  font-size: var(--font-heading);
  line-height: var(--line-tight);
  font-weight: var(--weight-medium);
}

.feature-card p {
  color: var(--muted);
  font-size: var(--font-body);
  font-weight: var(--weight-regular);
  line-height: var(--line-normal);
}

.legal-page {
  min-height: 100vh;
}

.legal-main {
  width: min(100% - (var(--gutter) * 2), var(--text-container));
  margin: 0 auto;
  padding: var(--legal-padding-top) 0 var(--legal-padding-bottom);
}

.legal-header {
  margin-bottom: var(--legal-header-gap);
}

.legal-header p {
  margin-bottom: var(--space-md);
  color: var(--muted);
  font-size: var(--font-caption);
  line-height: var(--line-normal);
  text-transform: uppercase;
}

.legal-content {
  display: grid;
  gap: var(--legal-content-gap);
}

.legal-section h2 {
  margin-bottom: var(--feature-card-copy-gap);
  font-size: var(--font-heading);
  font-weight: var(--weight-medium);
  line-height: var(--line-tight);
}

.legal-section p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--font-body);
  line-height: var(--line-normal);
}

.legal-section a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin: 0 auto;
  padding: var(--footer-padding-block);
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--footer-link-gap);
  font-size: var(--font-small);
  font-weight: var(--weight-regular);
}

.footer-links a {
  color: var(--muted);
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.floating-cta {
  position: fixed;
  left: 50%;
  bottom: var(--floating-cta-bottom);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - (var(--gutter) * 2), 560px);
  gap: var(--cta-content-gap);
  padding: var(--cta-padding);
  border-radius: var(--radius-panel);
  background: #fff;
  color: #222228;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 50px, 0) scale(0.5);
  transform-origin: center;
  transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1), transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0) scale(1);
}

.floating-cta.is-docked {
  position: absolute;
  top: var(--floating-cta-stop-top);
  bottom: auto;
}

.floating-cta div {
  display: grid;
  gap: var(--space-xs);
}

.floating-cta strong {
  font-size: var(--font-floating-title);
  font-weight: var(--weight-medium);
  line-height: var(--line-tight);
}

.floating-cta span {
  color: #777b89;
  font-size: var(--font-body);
  line-height: var(--line-normal);
}

.floating-cta .button {
  flex: 0 0 auto;
}

@media (min-width: 621px) and (max-width: 1060px) {
  :root {
    --font-subtitle: 20px;
    --font-floating-title: 18px;
    --hero-center-card-space: 100px;
    --hero-phone-gap: 48px;
    --phone-showcase-width: 300px;
    --phone-showcase-padding-bottom: 68px;
    --phone-card-width: 91%;
    --hero-card-width: 230px;
    --hero-card-gap: 20px;
    --hero-card-label: 10px;
    --hero-card-title: 14px;
    --hero-card-prompt: 18px;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 16px;
    --space-sm: 10px;
    --space-md: 16px;
    --space-lg: 20px;
    --space-xl: 24px;
    --space-2xl: 28px;
    --font-hero: 42px;
    --font-title: 30px;
    --font-subtitle: 18px;
    --font-floating-title: 18px;
    --header-padding-top: 28px;
    --header-padding-bottom: 24px;
    --hero-padding-top: 54px;
    --hero-title-gap: 28px;
    --hero-center-card-space: 80px;
    --hero-phone-gap: 42px;
    --phone-showcase-width: 220px;
    --phone-showcase-padding-bottom: 56px;
    --phone-card-width: 91%;
    --hero-card-width: 200px;
    --hero-card-gap: 14px;
    --footer-cta-gap: 28px;
    --feature-heading-gap: 28px;
    --feature-card-padding: 24px;
    --footer-padding-top: 28px;
    --footer-padding-bottom: 30px;
    --legal-padding-top: 54px;
    --legal-padding-bottom: 72px;
    --legal-header-gap: 40px;
    --cta-content-gap: 20px;
    --hero-card-label: 10px;
    --hero-card-title: 14px;
    --hero-card-prompt: 18px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .button {
    min-height: 48px;
    padding: 0 20px;
  }

  .button-compact {
    min-height: 40px;
    padding: 0 16px;
    font-size: var(--font-caption);
  }

  .hero-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .hero-card-content {
    gap: var(--space-md);
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-card {
    transform: none !important;
  }

  body::after {
    animation: none;
  }

  .phone-showcase-glow {
    animation: none;
  }

  .phone-game-card {
    animation: none;
    opacity: 0;
    transform: translateX(-50%);
  }

  .phone-game-card:first-child {
    opacity: 1;
  }

  .floating-cta {
    transition: none;
  }

  .button,
  .button::after {
    transition: none;
  }
}
