/* App and game publishers page. Loaded after the site styles and scoped here. */

body.page-apps {
  --page: #0e0f11;
  --surface: #16181c;
  --ink: #f4f5f2;
  --brand-ink: #f4f5f2;
  --muted: #a7aaa4;
  --muted-light: #8d9088;
  --border: #2c2e32;
  --border-strong: #3a3d42;
  --border-float: #4a4d52;
  --soft: #1c1e22;
  --lime: #c6f54a;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
  background-color: #0e0f11;
  background-image:
    linear-gradient(180deg, rgba(14, 15, 17, 0.72), #0e0f11 420px),
    url("/images/grain.png?v=2");
  background-repeat: no-repeat, repeat;
  background-size: 100% 420px, 240px 240px;
  color: var(--ink);
}

body.page-apps ::selection {
  background: var(--lime);
  color: #101208;
}

body.page-apps .skip:focus {
  background: var(--lime);
  color: #101208;
}

body.page-apps .app-index,
body.page-apps .dev-win-kicker,
body.page-apps .dev-win-name,
body.page-apps .app-hud,
body.page-apps .app-url,
body.page-apps .app-slot em,
body.page-apps .app-code,
body.page-apps .app-pixel {
  font-family: var(--mono);
}

body.page-apps .app-index {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

body.page-apps .rail-nav a {
  color: var(--ink);
}

body.page-apps .rail-nav a:hover,
body.page-apps .rail-nav a[aria-current="page"] {
  background: #24262a;
}

body.page-apps .btn-primary,
body.page-apps .btn-hero {
  border-color: var(--lime);
  border-radius: 4px;
  background: var(--lime);
  box-shadow: none;
  color: #101208;
  font-weight: 600;
  letter-spacing: 0.01em;
}

body.page-apps .btn-primary:hover,
body.page-apps .btn-hero:hover {
  background: #d5ff72;
  box-shadow: none;
  color: #101208;
}

body.page-apps .btn-secondary,
body.page-apps .btn-hero-outline,
body.page-apps .btn-hero-outline:link,
body.page-apps .btn-hero-outline:visited {
  border-color: #3a3d42;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
}

body.page-apps .btn-secondary:hover,
body.page-apps .btn-hero-outline:hover {
  border-color: #5c5f58;
  background: #1c1e22;
  color: var(--ink);
}

body.page-apps .page-dots a::before {
  background: #3a3d42;
}

body.page-apps .page-dots a:not(.active):hover::before,
body.page-apps .page-dots a:not(.active):focus-visible::before {
  background: var(--lime);
}

body.page-apps .page-dots-marker ellipse:nth-child(1) {
  fill: var(--lime);
}

body.page-apps .page-dots-marker ellipse:nth-child(2) {
  fill: #f4f5f2;
}

body.page-apps .page-dots-marker ellipse:nth-child(3) {
  fill: #8d9088;
}

body.page-apps .page-dots a span {
  background: #16181c;
  color: var(--ink);
}

body.page-apps .hero-boxed {
  align-items: stretch;
  padding: 112px 24px 0;
}

body.page-apps .app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 36px;
  align-items: center;
  width: min(980px, calc(100vw - 400px));
  margin-inline: auto;
}

body.page-apps .app-hero-copy {
  text-align: left;
}

body.page-apps .hero-boxed h1 {
  max-width: 11em;
  color: var(--ink);
  font-size: clamp(42px, 4.6vw, 64px);
  font-weight: 450;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-align: left;
  text-wrap: balance;
}

body.page-apps .section-head h2,
body.page-apps .final-cta h2 {
  color: var(--ink);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 450;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
}

body.page-apps .hero-subhead {
  max-width: 42ch;
  color: #c5c7c0;
  text-align: left;
}

body.page-apps .app-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

body.page-apps .app-stage {
  position: relative;
  min-height: 520px;
}

body.page-apps .app-pixel {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 8px;
  margin: 0;
  color: var(--lime);
  font-family: Silkscreen, var(--mono);
  font-size: 72px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.85;
}

body.page-apps .app-particles {
  position: absolute;
  inset: 30px 0 40px;
  overflow: hidden;
  pointer-events: none;
}

body.page-apps .app-particles span {
  position: absolute;
  bottom: 0;
  width: 3px;
  height: 3px;
  background: var(--lime);
  opacity: 0;
  animation: app-float 7.5s linear infinite;
}

body.page-apps .app-particles span:nth-child(1) { left: 12%; animation-duration: 6.4s; }
body.page-apps .app-particles span:nth-child(2) { left: 28%; animation-delay: -1.4s; animation-duration: 8s; }
body.page-apps .app-particles span:nth-child(3) { left: 46%; animation-delay: -3s; }
body.page-apps .app-particles span:nth-child(4) { left: 63%; animation-delay: -2.2s; animation-duration: 6.8s; }
body.page-apps .app-particles span:nth-child(5) { left: 78%; animation-delay: -4.5s; }
body.page-apps .app-particles span:nth-child(6) { left: 88%; animation-delay: -0.8s; animation-duration: 9s; }
body.page-apps .app-particles span:nth-child(7) { left: 18%; width: 2px; height: 2px; animation-delay: -5s; background: #f4f5f2; }
body.page-apps .app-particles span:nth-child(8) { left: 54%; width: 2px; height: 2px; animation-delay: -2.8s; background: #f4f5f2; }

body.page-apps .app-phone {
  position: absolute;
  z-index: 2;
  top: 58px;
  left: 18px;
  width: 230px;
  padding: 10px;
  border: 1px solid #2a2c30;
  border-radius: 28px;
  background: #141618;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

body.page-apps .app-screen {
  position: relative;
  overflow: hidden;
  height: 390px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(198, 245, 74, 0.08), transparent 28%),
    #101208;
}

body.page-apps .app-url {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  margin: 8px 8px 0;
  padding: 0 8px;
  border-radius: 8px;
  background: #1c1e16;
  color: #c5c7c0;
  font-size: 10px;
  letter-spacing: 0.04em;
}

body.page-apps .app-url i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(198, 245, 74, 0.6);
  animation: app-pulse 1.8s ease-out infinite;
}

body.page-apps .app-hud {
  display: flex;
  justify-content: space-between;
  margin: 12px 12px 0;
  color: var(--lime);
  font-size: 11px;
  letter-spacing: 0.08em;
}

body.page-apps .app-reel {
  height: 1.2em;
  overflow: hidden;
}

body.page-apps .app-reel-track {
  animation: app-reel 8s steps(1) infinite;
}

body.page-apps .app-reel span {
  display: block;
  height: 1.2em;
}

body.page-apps .app-field {
  position: absolute;
  right: 12px;
  bottom: 92px;
  left: 12px;
  height: 168px;
  border-bottom: 2px solid #3c4a16;
  background-image: radial-gradient(circle, rgba(198, 245, 74, 0.45) 1.1px, transparent 1.5px);
  background-size: 12px 12px;
}

body.page-apps .app-platform {
  position: absolute;
  height: 6px;
  border-radius: 2px;
  background: #8fb82a;
}

body.page-apps .app-platform:nth-child(1) { left: 16px; bottom: 48px; width: 54px; }
body.page-apps .app-platform:nth-child(2) { right: 22px; bottom: 86px; width: 46px; }

body.page-apps .app-runner {
  position: absolute;
  bottom: 10px;
  left: 12px;
  width: 28px;
  height: 32px;
  animation: app-cross 3.2s ease-in-out infinite;
}

body.page-apps .app-runner i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 6px;
  height: 6px;
  background: var(--lime);
  box-shadow:
    6px 0 var(--lime),
    12px 0 var(--lime),
    0 -6px var(--lime),
    18px -6px var(--lime),
    6px -12px var(--lime),
    12px -12px var(--lime),
    6px -18px #f4f5f2,
    12px -18px #f4f5f2,
    6px -24px #f4f5f2,
    12px -24px #f4f5f2;
  animation: app-hop 0.45s ease-in-out infinite;
}

body.page-apps .app-coin {
  position: absolute;
  bottom: 58px;
  left: 28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: inset -2px -2px 0 #6d8f18;
  animation: app-coin 2.4s ease-in infinite;
}

body.page-apps .app-coin:nth-child(4) { left: 46%; bottom: 96px; animation-delay: -0.7s; }
body.page-apps .app-coin:nth-child(5) { left: 72%; bottom: 70px; animation-delay: -1.4s; }

body.page-apps .app-slot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 10px 10px 8px;
  border: 1px solid #d7ff7a;
  border-radius: 10px;
  background: var(--lime);
  color: #101208;
  animation: app-ad 9s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

body.page-apps .app-slot strong,
body.page-apps .app-slot span,
body.page-apps .app-slot em {
  display: block;
}

body.page-apps .app-slot strong {
  font-size: 13px;
  letter-spacing: -0.03em;
}

body.page-apps .app-slot span {
  margin-top: 2px;
  font-size: 11px;
}

body.page-apps .app-slot em {
  margin-top: 8px;
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-apps .app-slot b {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
}

body.page-apps .app-slot b::before,
body.page-apps .app-slot b::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 1px;
  width: 10px;
  height: 1.5px;
  background: #101208;
}

body.page-apps .app-slot b::before { transform: rotate(45deg); }
body.page-apps .app-slot b::after { transform: rotate(-45deg); }

body.page-apps .dev-win {
  border: 1px solid #2a2c30;
  border-radius: 10px;
  background: #141618;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

body.page-apps .dev-win-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 34px;
  padding: 0 10px 0 12px;
  border-bottom: 1px solid #2a2c30;
}

body.page-apps .dev-win-name {
  overflow: hidden;
  color: #c8cbbf;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-apps .dev-ctrls {
  display: flex;
  flex: none;
  gap: 5px;
}

body.page-apps .dev-ctrls i {
  width: 9px;
  height: 9px;
  border: 1px solid #6a6d64;
  border-radius: 1px;
}

body.page-apps .dev-win-body {
  padding: 14px 14px 16px;
}

body.page-apps .dev-win-kicker {
  margin: 0 0 10px;
  color: #8d9088;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.page-apps .app-earn {
  position: absolute;
  z-index: 3;
  top: 86px;
  right: 0;
  width: 210px;
  animation: app-drift 5.5s ease-in-out infinite;
}

body.page-apps .app-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 92px;
}

body.page-apps .app-bars span {
  flex: 1;
  height: var(--h);
  background-image: radial-gradient(circle, #c6f54a 1.15px, transparent 1.4px);
  background-position: center bottom;
  background-size: 5px 5px;
  transform-origin: bottom;
  animation: app-grow 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.page-apps .app-bars span:nth-child(2) { animation-delay: 0.08s; }
body.page-apps .app-bars span:nth-child(3) { animation-delay: 0.16s; }
body.page-apps .app-bars span:nth-child(4) { animation-delay: 0.24s; }
body.page-apps .app-bars span:nth-child(5) { animation-delay: 0.32s; }
body.page-apps .app-bars span:nth-child(6) { animation-delay: 0.4s; }
body.page-apps .app-bars span:nth-child(7) { animation-delay: 0.48s; }
body.page-apps .app-bars span:nth-child(8) { animation-delay: 0.56s; }

body.page-apps .app-earn p {
  margin: 12px 0 0;
  color: #c5c7c0;
  font-size: 13px;
}

body.page-apps .app-genres {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  width: 220px;
  animation: app-drift 6.4s ease-in-out infinite reverse;
}

body.page-apps .app-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-apps .app-keys li {
  padding: 5px 8px;
  border: 1px solid #3a3d42;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.page-apps .app-keys li:nth-child(1) { animation: app-pick 4.8s steps(1) infinite; }
body.page-apps .app-keys li:nth-child(2) { animation: app-pick 4.8s steps(1) infinite 1.2s; }
body.page-apps .app-keys li:nth-child(3) { animation: app-pick 4.8s steps(1) infinite 2.4s; }
body.page-apps .app-keys li:nth-child(4) { animation: app-pick 4.8s steps(1) infinite 3.6s; }

body.page-apps .ad-marquee {
  background: #141618;
  border: 1px solid #2a2c30;
}

body.page-apps .ad-marquee-copy h2 {
  color: var(--ink);
}

body.page-apps .ad-marquee-cta {
  border-radius: 4px;
  background: var(--lime);
  color: #101208;
}

body.page-apps .ad-marquee-cta:hover {
  background: #d5ff72;
  color: #101208;
}

body.page-apps .corner-ad-badge img {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

body.page-apps .app-band,
body.page-apps .product-section {
  width: min(980px, calc(100vw - 48px));
}

body.page-apps .app-band {
  margin-inline: auto;
  padding-top: 140px;
}

body.page-apps .app-grid,
body.page-apps .app-formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.page-apps .app-grid h3,
body.page-apps .app-formats h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

body.page-apps .app-grid .dev-win-body > p:last-child,
body.page-apps .app-formats .dev-win-body > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

body.page-apps .app-mini {
  position: relative;
  height: 112px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid #2a2c30;
  border-radius: 8px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 14px, rgba(255, 255, 255, 0.04) 14px 15px),
    #101214;
}

body.page-apps .app-mini-card,
body.page-apps .app-mini-banner {
  position: absolute;
  border-radius: 6px;
  background: var(--lime);
}

body.page-apps .app-mini-card {
  right: 8px;
  bottom: 8px;
  width: 72px;
  height: 48px;
  animation: app-corner 4.2s ease-in-out infinite;
}

body.page-apps .app-mini-banner {
  top: 34px;
  left: 18px;
  width: 64%;
  height: 28px;
  animation: app-inline 4.2s ease-in-out infinite;
}

body.page-apps .app-mini-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  animation: app-overlay 4.2s ease-in-out infinite;
}

body.page-apps .app-mini-center {
  position: absolute;
  top: 32px;
  left: 16%;
  width: 68%;
  height: 42px;
  border-radius: 6px;
  background: var(--lime);
  animation: app-center 4.2s ease-in-out infinite;
}

body.page-apps .process-list img {
  filter: invert(1);
}

body.page-apps .app-code {
  margin: 28px 0 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid #2a2c30;
  border-radius: 10px;
  background: #141618;
  color: #d7ff7a;
  font-size: 13px;
  line-height: 1.6;
}

body.page-apps .app-code .dim { color: #8d9088; }
body.page-apps .app-caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 2px;
  background: var(--lime);
  vertical-align: text-bottom;
  animation: app-blink 1s steps(1) infinite;
}

body.page-apps .faq-q:hover {
  color: var(--lime);
}

body.page-apps .faq-item.open .faq-q > span {
  border-color: var(--lime);
  background: var(--lime);
}

body.page-apps .faq-item.open .faq-q > span::before,
body.page-apps .faq-item.open .faq-q > span::after {
  background: #101208;
}

body.page-apps .faq-a code {
  color: var(--ink);
}

body.page-apps .final-cta {
  border: 0;
  background: var(--lime);
  color: #101208;
}

body.page-apps .final-cta h2,
body.page-apps .final-cta p {
  color: #101208;
}

body.page-apps .final-cta .btn-primary {
  background: #101208;
  border-color: #101208;
  color: var(--lime);
}

body.page-apps .final-cta .btn-primary:hover {
  background: #24280f;
  color: var(--lime);
}

body.page-apps .final-cta .text-action {
  color: #101208;
}

body.page-apps .site-footer {
  background: #0e0f11;
}

body.page-apps .site-footer h3 {
  color: #8d9088;
}

body.page-apps .site-footer a:hover {
  color: var(--lime);
}

@keyframes app-float {
  0% { transform: translateY(12px) scale(0.6); opacity: 0; }
  18% { opacity: 0.9; }
  100% { transform: translateY(-280px) scale(1); opacity: 0; }
}

@keyframes app-pulse {
  70% { box-shadow: 0 0 0 6px rgba(198, 245, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 245, 74, 0); }
}

@keyframes app-reel {
  0%, 22% { transform: translateY(0); }
  25%, 47% { transform: translateY(-1.2em); }
  50%, 72% { transform: translateY(-2.4em); }
  75%, 97% { transform: translateY(-3.6em); }
  100% { transform: translateY(0); }
}

@keyframes app-cross {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(118px); }
}

@keyframes app-hop {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-12px); }
}

@keyframes app-coin {
  0% { transform: translateY(8px) scale(0.7); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-70px) scale(1); opacity: 0; }
}

@keyframes app-ad {
  0%, 8% { transform: translateY(120%); }
  18%, 78% { transform: translateY(0); }
  90%, 100% { transform: translateY(120%); }
}

@keyframes app-drift {
  50% { transform: translateY(-8px); }
}

@keyframes app-grow {
  from { transform: scaleY(0.15); }
  to { transform: scaleY(1); }
}

@keyframes app-pick {
  0%, 20% { border-color: var(--lime); background: var(--lime); color: #101208; }
  25%, 100% { border-color: #3a3d42; background: transparent; color: var(--ink); }
}

@keyframes app-corner {
  0%, 15% { transform: translate(16px, 16px); opacity: 0; }
  30%, 75% { transform: translate(0, 0); opacity: 1; }
  90%, 100% { transform: translate(16px, 16px); opacity: 0; }
}

@keyframes app-center {
  0%, 18% { transform: translateY(8px) scale(0.92); opacity: 0; }
  34%, 72% { transform: none; opacity: 1; }
  88%, 100% { transform: translateY(8px) scale(0.92); opacity: 0; }
}

@keyframes app-overlay {
  0%, 18%, 88%, 100% { opacity: 0; }
  34%, 72% { opacity: 1; }
}

@keyframes app-inline {
  0%, 20% { transform: scaleX(0.2); opacity: 0; }
  40%, 80% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0.2); opacity: 0; }
}

@keyframes app-blink {
  50% { opacity: 0; }
}

@media (min-width: 1200px) {
  body.page-apps .app-band,
  body.page-apps .product-section {
    width: min(980px, calc(100vw - 400px));
  }
}

@media (max-width: 1199px) {
  body.page-apps .mobile-header {
    background: rgba(14, 15, 17, 0.94);
  }

  body.page-apps .nav-panel.open {
    background: #0e0f11;
  }

  body.page-apps .app-hero,
  body.page-apps .ad-marquee {
    width: min(980px, calc(100vw - 48px));
  }
}

@media (max-width: 900px) {
  body.page-apps .app-hero,
  body.page-apps .app-grid,
  body.page-apps .app-formats {
    grid-template-columns: 1fr;
  }

  body.page-apps .hero-boxed h1 {
    max-width: none;
  }

  body.page-apps .app-stage {
    display: grid;
    gap: 12px;
    min-height: 0;
  }

  body.page-apps .app-pixel,
  body.page-apps .app-phone,
  body.page-apps .app-earn,
  body.page-apps .app-genres {
    position: static;
    width: auto;
    animation: none;
  }

  body.page-apps .app-pixel {
    font-size: 40px;
  }

  body.page-apps .app-particles {
    display: none;
  }

  body.page-apps .app-screen {
    height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-apps .app-particles span,
  body.page-apps .app-url i,
  body.page-apps .app-reel-track,
  body.page-apps .app-runner,
  body.page-apps .app-runner i,
  body.page-apps .app-coin,
  body.page-apps .app-slot,
  body.page-apps .app-earn,
  body.page-apps .app-genres,
  body.page-apps .app-bars span,
  body.page-apps .app-keys li,
  body.page-apps .app-mini-card,
  body.page-apps .app-mini-banner,
  body.page-apps .app-mini-overlay,
  body.page-apps .app-mini-center,
  body.page-apps .app-caret,
  body.page-apps .ad-marquee-row {
    animation: none;
  }

  body.page-apps .app-slot,
  body.page-apps .app-mini-card,
  body.page-apps .app-mini-center,
  body.page-apps .app-mini-overlay,
  body.page-apps .app-mini-banner {
    transform: none;
    opacity: 1;
  }
}
