:root {
  --bg: #141414;
  --panel: #2b2b2b;
  --panel-outer: rgba(255, 255, 255, 0.02);
  --line: rgba(255, 255, 255, 0.08);
  --ink: #f1ede6;
  --muted: #7a7a7a;
  --accent: #d63b28;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

.app-shell {
  width: min(860px, calc(100% - 24px));
  margin: 0 auto;
  padding: 10px 0 24px;
}

.hero {
  margin-top: 4px;
  text-align: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.75rem, 7.4vw, 3.7rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title span {
  display: block;
}

.hero-title em {
  color: var(--accent);
  font-style: normal;
}

.hero-subtitle {
  width: min(520px, 100%);
  margin: 12px auto 0;
  color: #9b958d;
  font-size: 0.92rem;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.hero-icon {
  display: block;
  height: 52px;
  width: auto;
  margin: 10px auto 0;
}

.toy-by {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.toy-by span {
  font-size: 9px;
  color: #777;
}

.toy-by a {
  color: #6f6f6f;
  font-size: 0.98rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-decoration: none;
}

.card-wrap {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.app-chip-panel,
.facts-card {
  border-radius: 28px;
  background: var(--panel-outer);
  padding: 8px;
}

.top-app-rail-viewport {
  overflow-x: auto;
  border-radius: 22px;
  background: var(--panel);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.top-app-rail-viewport::-webkit-scrollbar {
  display: none;
}

.top-app-rail {
  display: flex;
  gap: 10px;
  padding: 10px 10px 16px;
  width: max-content;
  margin-inline: auto;
  min-width: 100%;
  justify-content: center;
}

.top-app-item {
  border: 0;
  padding: 0;
  width: 48px;
  height: 48px;
  background: transparent;
  flex: 0 0 auto;
  cursor: pointer;
  opacity: 0.72;
  position: relative;
  transform: translateY(0);
  transition: opacity 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.top-app-item:hover,
.top-app-item:focus-visible {
  opacity: 0.96;
  transform: translateY(-2px);
  outline: none;
}

.top-app-item.is-active {
  opacity: 1;
  transform: translateY(-2px);
}

.top-app-icon-frame {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  transition: box-shadow 150ms ease;
  overflow: visible;
}

.top-app-item.is-active .top-app-icon-frame {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.92),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.top-app-item img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 14px;
}

.top-app-dot {
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  opacity: 0;
  transition: opacity 150ms ease;
  transform: translateX(-50%);
}

.top-app-item.is-active .top-app-dot {
  opacity: 1;
}

.top-app-ghost {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  visibility: hidden;
  pointer-events: none;
}

.facts-card {
  background: var(--panel);
  padding: 8px 14px;
  box-shadow: var(--shadow);
}

.facts-card-measure {
  position: absolute;
  left: -99999px;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  min-height: 0 !important;
}

.fact-row {
  display: block;
  padding: 14px 0;
  text-decoration: none;
  color: inherit;
}

.fact-row + .fact-row {
  border-top: 1px solid var(--line);
}

.fact-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fact-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #868686;
  letter-spacing: 0.04em;
}

.fact-text {
  margin: 10px 0 0;
  font-size: 0.88rem;
  line-height: 1.42;
  color: #fff;
  letter-spacing: -0.03em;
}

.fact-highlight {
  color: var(--accent);
  font-weight: 600;
}

.actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-inline: auto;
}

.action-button {
  height: 40px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  transition: background 150ms ease, color 150ms ease, opacity 150ms ease;
}

.action-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 15px;
}

.action-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.action-label {
  display: inline-block;
}

.action-button-secondary {
  background: var(--panel);
  color: #fff;
}

.action-button-primary {
  background: #fff;
  color: #000;
}

.ticker-shell {
  margin-top: 18px;
  overflow: hidden;
}

.ticker-shell-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 12px 40px;
}

.ticker-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: ticker 26s linear infinite;
}

.ticker-shell:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  width: 200px;
  flex: 0 0 200px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
}

.ticker-item img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0.9;
  flex: 0 0 36px;
}

.ticker-item-text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.ticker-item-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-item-copy {
  margin-top: 4px;
  font-size: 0.74rem;
  color: #b7b1a8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 720px) {
  .ticker-shell-full {
    padding: 0 24px 32px;
  }
}

.share-card {
  position: fixed;
  left: -99999px;
  top: 0;
  width: 1500px;
  height: 1500px;
  background: #121212;
  color: #fff;
  overflow: hidden;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.share-card-inner {
  position: absolute;
  inset: 40px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.03);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.share-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  width: 100%;
  text-align: center;
}

.share-brand-name {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.09em;
}

.share-top-card,
.share-facts {
  border-radius: 28px;
  background: #2b2b2b;
}

.share-top-card {
  padding: 28px 36px;
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  width: min(920px, 100%);
}

.share-top-card img {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  object-fit: cover;
}

.share-top-label {
  color: #8f8f8f;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.share-facts {
  margin-top: 18px;
  padding: 24px 30px;
  width: min(1180px, 100%);
}

.share-fact-row {
  padding: 26px 0;
  display: flex;
  flex-direction: column;
}

.share-fact-row + .share-fact-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.share-fact-tag {
  color: #8f8f8f;
  font-size: 20px;
  text-transform: uppercase;
}

.share-fact-text {
  margin-top: 20px;
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 768px) {
  .app-shell {
    width: min(820px, calc(100% - 48px));
    padding: 16px 0 28px;
  }

  .hero {
    margin-top: 28px;
  }

  .hero-icon {
    height: 72px;
    margin-top: 20px;
  }

  .toy-by {
    margin-top: 18px;
  }

  .toy-by span {
    font-size: 10px;
  }

  .toy-by a {
    font-size: 1.05rem;
  }

  .card-wrap {
    margin-top: 20px;
    gap: 12px;
  }

  .selected-app-button {
    padding: 20px 16px;
  }

  .selected-app-button img {
    width: 62px;
    height: 62px;
  }

  .facts-card {
    padding: 10px 16px;
  }

  .fact-row {
    padding: 18px 0;
  }

  .fact-text {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .actions {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .action-button {
    min-width: 126px;
    padding: 0 18px;
  }

  .ticker-shell {
    margin-top: 18px;
  }

  .ticker-item {
    width: 250px;
    flex-basis: 250px;
  }
}

@media (max-width: 520px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .app-shell {
    width: min(100%, calc(100% - 16px));
    padding: 8px 0 18px;
  }

  .hero {
    margin-top: 0;
  }

  .hero-title {
    font-size: 1.58rem;
    line-height: 0.9;
    letter-spacing: -0.07em;
  }

  .hero-subtitle {
    width: min(280px, 100%);
    margin-top: 8px;
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .hero-icon {
    height: 42px;
    margin-top: 8px;
  }

  .toy-by {
    margin-top: 6px;
    gap: 1px;
  }

  .toy-by span {
    font-size: 8px;
  }

  .toy-by a {
    font-size: 0.82rem;
  }

  .card-wrap {
    margin-top: 8px;
    gap: 8px;
  }

  .app-chip-panel,
  .facts-card {
    border-radius: 22px;
    padding: 6px;
  }

  .top-app-rail-viewport {
    border-radius: 18px;
  }

  .top-app-rail {
    gap: 8px;
    padding: 8px 8px 14px;
  }

  .top-app-item,
  .top-app-ghost {
    width: 44px;
    height: 44px;
  }

  .top-app-icon-frame,
  .top-app-item img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .top-app-dot {
    width: 6px;
    height: 6px;
    bottom: -9px;
  }

  .facts-card {
    padding: 6px 12px;
  }

  .fact-row {
    padding: 12px 0;
  }

  .fact-tag {
    font-size: 0.64rem;
  }

  .fact-text {
    margin-top: 8px;
    font-size: 0.82rem;
    line-height: 1.34;
  }

  .actions {
    margin-top: 12px;
  }

  .action-button {
    height: 36px;
    border-radius: 10px;
    gap: 6px;
    padding: 0 12px;
  }

  .action-icon {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
  }

  .action-label {
    font-size: 0.78rem;
  }

  .ticker-shell {
    margin-top: 12px;
  }

  .ticker-shell-full {
    width: min(100%, calc(100% - 16px));
    margin-left: auto;
    margin-right: auto;
    padding: 0 0 28px;
  }

  .ticker-track {
    gap: 8px;
  }

  .ticker-item {
    width: 168px;
    flex-basis: 168px;
    padding: 10px;
    border-radius: 14px;
    gap: 10px;
  }

  .ticker-item img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    flex-basis: 30px;
  }

  .ticker-item-label {
    font-size: 9px;
  }

  .ticker-item-copy {
    font-size: 0.68rem;
  }
}
