@font-face {
  font-family: "Inter Asset";
  src: url("assets/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --primary: #05a55d;
  --on-primary: #ffffff;
  --on-surface: #121212;
  --on-surface-variant: #52525c;
  --surface-highest: #878791;
  --outline: #e0e0e3;
  --surface-lowest: #e0e0e3;
  --motion-standard: cubic-bezier(0.2, 0, 0, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #202020;
  color: var(--on-surface);
  font-family: "Inter Asset", sans-serif;
  font-synthesis: none;
}

button {
  font: inherit;
}

.demo-stage {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.hero-carousel {
  width: 360px;
  height: 508px;
  overflow: hidden;
  background: #202020;
}

.slides-viewport {
  display: flex;
  width: 360px;
  height: 482px;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 16px;
  cursor: grab;
  outline: none;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
}

.slides-viewport::-webkit-scrollbar {
  display: none;
}

.slides-viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.slides-viewport.is-snapping {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.slides-viewport:focus-visible {
  outline: 2px solid white;
  outline-offset: -2px;
}

.hero-banner {
  position: relative;
  width: 328px;
  height: 450px;
  flex: 0 0 328px;
  overflow: hidden;
  border: 1px solid rgba(9, 9, 11, 0.1);
  border-radius: 12px;
  background: white;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.world-cover,
.brilliant-cover-wrap {
  position: absolute;
  inset: -1px -1px 39px;
  width: calc(100% + 2px);
  height: 412px;
}

.world-cover {
  object-fit: cover;
  pointer-events: none;
}

.brilliant-cover-wrap {
  overflow: hidden;
  pointer-events: none;
}

.brilliant-cover {
  position: absolute;
  top: -11.7%;
  left: -61.15%;
  width: 222.31%;
  height: 100%;
  max-width: none;
}

.banner-scrim {
  position: absolute;
  inset: 201px -1px -1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 20%,
    rgba(255, 255, 255, 0.7) 35%,
    rgba(255, 255, 255, 0.8) 44.7%,
    rgba(255, 255, 255, 0.9) 59.9%,
    #ffffff 75%,
    #ffffff 100%
  );
}

.banner-info {
  position: absolute;
  left: -1px;
  right: -1px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px;
  transform: translateY(1px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9) 60%, #fff 75%);
}

.world-info {
  bottom: 102px;
  height: 102px;
  flex-direction: column;
  gap: 8px;
  transition: bottom 520ms var(--motion-standard);
}

.brilliant-info {
  bottom: 82px;
  height: 184px;
  flex-direction: column;
  gap: 16px;
  transition: bottom 520ms var(--motion-standard);
}

.app-thumbnail {
  display: block;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  overflow: hidden;
  border: 1px solid rgba(9, 9, 11, 0.1);
  border-radius: 12px;
  object-fit: cover;
}

.title-metadata-group,
.title-group {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.title-metadata-group {
  gap: 8px;
}

.title-group {
  gap: 2px;
  text-align: center;
}

.title-group h2,
.title-group p {
  width: 100%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-feature-settings: "ss07" 1;
}

.title-group h2 {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.title-group p {
  color: var(--on-surface-variant);
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
}

.metadata-row {
  display: flex;
  min-height: 16px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-feature-settings: "ss07" 1;
  line-height: 16px;
}

.metadata-item {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.metadata-item img,
.metadata-divider {
  display: block;
  flex: 0 0 auto;
}

.live-icon {
  display: grid;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  place-items: center;
}

.live-icon img {
  width: 5px;
  height: 5px;
}

.metadata-item strong {
  font-weight: 600;
}

.metadata-muted {
  color: var(--surface-highest);
  font-weight: 600;
}

.ad-tag {
  padding: 1px 4px;
  border-radius: 4px;
  background: #fef9c2;
  color: #a65f00;
  font-weight: 700;
  line-height: 16px;
}

.banner-trailing {
  position: absolute;
  right: -1px;
  bottom: 0;
  left: -1px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  transform: translateY(1px);
}

.world-trailing {
  height: 102px;
  padding: 8px 16px 16px;
  transition:
    height 520ms var(--motion-standard),
    padding 520ms var(--motion-standard);
}

.brilliant-trailing {
  height: 82px;
  padding: 8px 16px 16px;
  transition:
    height 520ms var(--motion-standard),
    padding 520ms var(--motion-standard);
}

.countdown-shell {
  position: relative;
  width: 296px;
  height: 78px;
  transition: height 520ms var(--motion-standard);
}

.countdown-display {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 0;
  transition:
    opacity 220ms ease,
    transform 400ms var(--motion-standard),
    filter 300ms ease;
}

.time-unit,
.time-unit-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.time-unit {
  height: 54px;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  text-align: center;
}

.seconds-unit {
  width: 50px;
}

.time-unit-group {
  gap: 20px;
}

.time-unit-group:nth-of-type(2) .time-unit {
  width: 46px;
}

.fixed-unit {
  width: 36px;
}

.countdown-divider-box {
  position: relative;
  width: 1px;
  height: 16px;
  flex: 0 0 auto;
}

.countdown-divider {
  position: absolute;
  top: 7.5px;
  left: -7.5px;
  display: block;
  width: 16px;
  height: 1px;
  transform: rotate(90deg);
}

.number-window,
.static-number {
  width: 100%;
  height: 32px;
  color: var(--on-surface);
  font-size: 20px;
  font-weight: 600;
  font-feature-settings: "ss07" 1;
  line-height: 32px;
  font-variant-numeric: tabular-nums;
}

.number-window {
  position: relative;
  overflow: hidden;
}

.roll-digit {
  position: absolute;
  inset: 0;
  transition:
    transform 360ms var(--motion-standard),
    opacity 260ms ease;
}

.roll-digit.incoming {
  opacity: 0;
  transform: translateY(-100%);
}

.number-window.rolling .roll-digit.current {
  opacity: 0;
  transform: translateY(100%);
}

.number-window.rolling .roll-digit.incoming {
  opacity: 1;
  transform: translateY(0);
}

.unit-label {
  color: rgba(9, 9, 11, 0.6);
  font-size: 12px;
  font-weight: 400;
  font-feature-settings: "ss07" 1;
  line-height: 20px;
  white-space: nowrap;
}

.watch-now {
  position: absolute;
  top: 19px;
  left: 0;
  display: grid;
  width: 296px;
  height: 40px;
  padding: 8px 12px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  opacity: 0;
  outline: none;
  clip-path: inset(48% 46% 48% 46% round 8px);
  pointer-events: none;
  transition:
    top 520ms var(--motion-standard),
    clip-path 440ms var(--motion-standard),
    opacity 180ms ease,
    box-shadow 120ms ease;
}

.watch-now span {
  font-size: 16px;
  font-weight: 600;
  font-feature-settings: "ss07" 1;
  line-height: 24px;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 220ms 160ms ease,
    transform 320ms 120ms var(--motion-standard);
}

.countdown-shell.is-ready .countdown-display {
  opacity: 0;
  filter: blur(2px);
  transform: scale(0.9);
  pointer-events: none;
}

.countdown-shell.is-ready .watch-now {
  top: 0;
  opacity: 1;
  clip-path: inset(0 round 8px);
  pointer-events: auto;
}

.countdown-shell.is-ready .watch-now span {
  opacity: 1;
  transform: none;
}

.world-banner:has(.countdown-shell.is-ready) .world-info {
  bottom: 64px;
}

.world-banner:has(.countdown-shell.is-ready) .world-trailing {
  height: 64px;
}

.countdown-shell.is-ready {
  height: 40px;
}

.watch-now:hover,
.watch-now:active {
  box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0.1);
}

.watch-now:focus-visible,
.install-main-action:focus-visible,
.install-cancel:focus-visible {
  outline: 2px solid var(--on-surface);
  outline-offset: 2px;
}

.countdown-status,
.install-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.large-install {
  --install-fill: var(--primary);
  --install-radius: 8px;
  position: relative;
  width: 296px;
  height: 58px;
}

.install-surface {
  position: absolute;
  top: 0;
  left: 0;
  width: 296px;
  height: 40px;
  border-radius: var(--install-radius);
  background: var(--install-fill);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    background-color 220ms ease,
    box-shadow 120ms ease;
}

.install-main-action {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: grid;
  width: 296px;
  height: 40px;
  padding: 8px 12px;
  place-items: center;
  border: 0;
  border-radius: var(--install-radius);
  background: transparent;
  color: white;
  cursor: pointer;
  outline: none;
  transition:
    opacity 180ms ease,
    transform 360ms var(--motion-standard);
}

.install-label {
  font-size: 16px;
  font-weight: 600;
  font-feature-settings: "ss07" 1;
  line-height: 24px;
  transition:
    opacity 160ms ease,
    transform 360ms var(--motion-standard);
}

.install-supporting {
  position: absolute;
  z-index: 1;
  top: 48px;
  left: 50%;
  color: var(--on-surface);
  font-size: 8px;
  font-feature-settings: "ss07" 1;
  line-height: 10px;
  white-space: nowrap;
  transform: translateX(-50%);
  transition:
    opacity 160ms ease,
    transform 320ms var(--motion-standard);
}

.install-progress {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  width: 296px;
  height: 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px) scale(0.97);
  transition:
    opacity 180ms ease,
    transform 360ms var(--motion-standard);
}

.install-progress-topline {
  display: flex;
  width: 296px;
  height: 24px;
  align-items: center;
  gap: 6px;
}

.install-progress-value {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  font-feature-settings: "ss07" 1;
  font-variant-numeric: tabular-nums;
  line-height: 22px;
}

.install-cancel {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  padding: 2px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.install-cancel:hover,
.install-cancel:active {
  background: rgba(18, 18, 18, 0.1);
}

.install-cancel img {
  display: block;
  width: 20px;
  height: 20px;
}

.install-progress-track {
  position: absolute;
  top: 32px;
  left: 0;
  width: 296px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-lowest);
}

.install-progress-indicator {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--progress) * 1%);
  border-radius: 999px;
  background: var(--primary);
  transition: width 64ms linear;
}

.large-install[data-state="install"]:has(.install-main-action:hover) .install-surface,
.large-install[data-state="install"]:has(.install-main-action:active) .install-surface,
.large-install[data-state="open"]:has(.install-main-action:hover) .install-surface,
.large-install[data-state="open"]:has(.install-main-action:active) .install-surface,
.large-install.is-pressed .install-surface {
  box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0.1);
}

.large-install[data-state="progress"] .install-surface,
.large-install[data-state="completing"] .install-surface {
  opacity: 0;
}

.large-install[data-state="cancelling"] .install-surface {
  opacity: 0;
}

.large-install[data-state="progress"] .install-main-action,
.large-install[data-state="completing"] .install-main-action,
.large-install[data-state="cancelling"] .install-main-action,
.large-install[data-state="progress"] .install-label,
.large-install[data-state="completing"] .install-label,
.large-install[data-state="cancelling"] .install-label {
  opacity: 0;
  pointer-events: none;
  transform: translateY(7px) scale(0.9);
}

.large-install[data-state="progress"] .install-supporting,
.large-install[data-state="completing"] .install-supporting,
.large-install[data-state="cancelling"] .install-supporting {
  opacity: 0;
  transform: translate(-50%, -7px) scale(0.9);
}

.large-install[data-state="progress"] .install-progress {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.large-install[data-state="completing"] .install-progress,
.large-install[data-state="cancelling"] .install-progress {
  opacity: 0;
  pointer-events: none;
  transform: none;
}

.large-install[data-state="open"],
.large-install[data-state="completing"] {
  height: 40px;
}

.large-install[data-state="open"] .install-supporting,
.large-install[data-state="completing"] .install-supporting {
  opacity: 0;
  transform: translate(-50%, -7px) scale(0.9);
}

.brilliant-banner:has(.large-install[data-state="progress"]) .brilliant-info,
.brilliant-banner:has(.large-install[data-state="completing"]) .brilliant-info,
.brilliant-banner:has(.large-install[data-state="open"]) .brilliant-info {
  bottom: 63px;
}

.brilliant-banner:has(.large-install[data-state="progress"]) .brilliant-trailing,
.brilliant-banner:has(.large-install[data-state="completing"]) .brilliant-trailing,
.brilliant-banner:has(.large-install[data-state="open"]) .brilliant-trailing {
  bottom: -1px;
  height: 64px;
}

.large-install[data-state="progress"],
.large-install[data-state="completing"] {
  height: 40px;
}

.page-controls {
  display: flex;
  width: 360px;
  height: 26px;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
}

.page-indicators {
  position: relative;
  display: block;
  width: 44px;
  height: 14px;
}

.indicator-slots,
.indicator-active {
  position: absolute;
  top: 4px;
  left: 12px;
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.indicator-slots {
  background: #b9bac0;
  box-shadow: 14px 0 #b9bac0;
}

.indicator-active {
  background: #121212;
  transform: translateX(0);
  transition: transform 320ms var(--motion-standard);
  will-change: transform;
}

.hero-carousel[data-active-slide="1"] .indicator-active {
  transform: translateX(14px);
}

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

  .roll-digit,
  .countdown-display,
  .watch-now,
  .watch-now span,
  .install-surface,
  .install-main-action,
  .install-label,
  .install-supporting,
  .install-progress,
  .indicator-active {
    transition-duration: 1ms;
  }
}
