:root {
  --ink: #f5f0ff;
  --ink-dim: #a893c9;
  --pink: #ff4d8d;
  --pink-deep: #ff2d6b;
  --violet: #8b3dff;
  --gold: #ffc44d;
  --gold-deep: #f5a623;
  --card: rgba(255,255,255,.055);
  --card-border: rgba(255,255,255,.1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #0b0416;
  background-image:
    radial-gradient(ellipse 80% 40% at 20% -5%, rgba(139,61,255,.35), transparent 60%),
    radial-gradient(ellipse 70% 35% at 90% 10%, rgba(255,45,107,.28), transparent 60%),
    radial-gradient(ellipse 90% 50% at 50% 110%, rgba(139,61,255,.18), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 30%, rgba(255,77,141,.14), transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(139,61,255,.12), transparent 45%);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-30px) scale(1.06); }
}

button, a { font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.pixel-image { display: none; }

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 10px 10px calc(100px + var(--safe-bottom));
}
.shell { width: min(100%, 520px); margin: 0 auto; }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 14px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(255,45,107,.45);
}
.brand-main {
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.045em;
  background: linear-gradient(90deg, #fff 0%, var(--pink) 55%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub { margin-top: 3px; color: var(--ink-dim); font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
.age {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255,196,77,.12);
  border: 1px solid rgba(255,196,77,.35);
  font-size: 12px;
  font-weight: 950;
}
.hero {
  position: relative;
  padding: 20px 18px 22px;
  border-radius: 26px;
  border: 1px solid var(--card-border);
  background:
    radial-gradient(circle at 85% 0%, rgba(255,77,141,.28), transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,45,107,.16);
  border: 1px solid rgba(255,45,107,.4);
  color: #ffd0e0;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff2d6b;
  box-shadow: 0 0 0 4px rgba(255,45,107,.25);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.82); }
}
.hero h1 {
  margin: 0;
  font-size: clamp(30px, 8.6vw, 42px);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 950;
}
.grad {
  background: linear-gradient(90deg, var(--pink) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin: 12px 0 0;
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 700;
}
.vip-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 10px 13px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(255,196,77,.16), rgba(255,45,107,.12));
  border: 1px solid rgba(255,196,77,.35);
}
.vip-line .crown { font-size: 20px; }
.vip-line strong { display: block; font-size: 13.5px; font-weight: 950; color: var(--gold); letter-spacing: -.01em; }
.vip-line span { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 800; color: var(--ink-dim); }
.vip-line .seats { margin-left: auto; flex: 0 0 auto; text-align: right; }
.vip-line .seats b { display: block; font-size: 19px; font-weight: 950; color: #fff; }
.vip-line .seats i { display: block; font-style: normal; font-size: 9.5px; font-weight: 900; color: var(--gold); letter-spacing: .04em; }

.play-store {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  padding: 9px 13px;
  border-radius: 13px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--card-border);
}
.ps-badge {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,.15);
  font-size: 17px;
}
.play-store strong { display: block; font-size: 12px; font-weight: 950; }
.play-store span { display: block; margin-top: 1px; font-size: 9.5px; font-weight: 800; color: var(--ink-dim); }
.ps-rating { margin-left: auto; flex: 0 0 auto; text-align: right; }
.ps-rating b { font-size: 16px; font-weight: 950; color: var(--gold); }
.ps-rating i { display: block; font-style: normal; font-size: 9px; font-weight: 850; color: var(--ink-dim); }

.download-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 58px;
  margin-top: 15px;
  border-radius: 17px;
  color: #2a1500;
  text-decoration: none;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.01em;
  background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold) 40%, #ffe08a 100%);
  box-shadow: 0 14px 32px rgba(255,196,77,.35), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.download-cta::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine {
  0% { left: -60%; }
  45%, 100% { left: 130%; }
}
.dl-sub { display: block; margin-top: 9px; text-align: center; font-size: 10px; font-weight: 850; color: var(--ink-dim); }
.download-cta:active { transform: scale(.985); }
.download-cta.big { min-height: 62px; font-size: 19px; margin-top: 16px; }
.download-cta:focus-visible, button:focus-visible { outline: 3px solid rgba(255,196,77,.5); outline-offset: 3px; }
.ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 13px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(10px);
  font-size: 10.5px;
  font-weight: 850;
  color: var(--ink-dim);
}
.ticker .ok-dot {
  flex: 0 0 auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 4px rgba(61,220,132,.18);
}
.ticker b { color: #fff; font-weight: 950; }

.previews { margin-top: 12px; padding: 14px 12px 12px; border-radius: 22px; border: 1px solid var(--card-border); background: rgba(255,255,255,.035); backdrop-filter: blur(10px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section-kicker {
  text-transform: uppercase;
  color: var(--pink);
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: .14em;
  margin-bottom: 3px;
}
.section-head h2 { margin: 0; font-size: 20px; line-height: 1.08; letter-spacing: -.02em; font-weight: 950; }
.section-head .peek-hint { display: block; margin-top: 3px; font-size: 10px; font-weight: 850; color: var(--ink-dim); }
#refresh {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, rgba(255,45,107,.35), rgba(139,61,255,.35));
  border: 1px solid rgba(255,255,255,.2);
  font-size: 18px;
  font-weight: 900;
  transition: transform .16s ease;
}
#refresh:active { transform: rotate(90deg); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.preview-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(255,77,141,.25);
  color: var(--ink);
  background: rgba(255,255,255,.05);
  text-align: left;
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.preview-card:active { transform: scale(.985); }
.preview-card:hover { border-color: rgba(255,77,141,.6); box-shadow: 0 12px 28px rgba(255,45,107,.25); }
.preview-media { position: relative; aspect-ratio: 1 / 1.28; overflow: hidden; background: #1c0f33; }
.preview-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(13px) saturate(1.15);
  transform: scale(1.12);
  transition: filter .45s ease, transform .45s ease;
}
.preview-card:hover .preview-media img,
.preview-card:focus-visible .preview-media img,
.preview-card.revealed .preview-media img { filter: blur(0) saturate(1.05); transform: scale(1.02); }
.preview-media::after {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(transparent, rgba(11,4,22,.62));
  pointer-events: none;
}
.peek-lock {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: rgba(11,4,22,.18);
  backdrop-filter: blur(0px);
  transition: opacity .4s ease;
}
.preview-card:hover .peek-lock,
.preview-card:focus-visible .peek-lock,
.preview-card.revealed .peek-lock { opacity: 0; }
.peek-lock span {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(11,4,22,.72);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .03em;
  backdrop-filter: blur(4px);
  animation: peekbob 2.2s ease-in-out infinite;
}
@keyframes peekbob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.media-badge, .media-state {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  color: #fff;
  font-size: 9px;
  font-weight: 950;
  box-shadow: 0 5px 12px rgba(0,0,0,.35);
}
.media-badge {
  left: 7px; top: 7px;
  padding: 4px 9px;
  display: flex; align-items: center; gap: 5px;
  background: linear-gradient(110deg, var(--gold-deep), var(--gold));
  color: #2a1500;
}
.media-badge::before { content: "★"; font-size: 9px; }
.media-state { right: 7px; bottom: 6px; padding: 3px 7px; background: rgba(11,4,22,.7); }
.preview-content { padding: 9px 9px 10px; }
.preview-content strong { display: block; min-height: 31px; font-size: 11px; line-height: 1.28; font-weight: 950; }
.card-cta { display: block; margin-top: 6px; color: var(--gold); font-size: 10px; font-weight: 950; letter-spacing: .01em; }
.final-cta {
  margin-top: 12px;
  padding: 22px 18px;
  text-align: center;
  border-radius: 24px;
  border: 1px solid rgba(255,196,77,.35);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,196,77,.18), transparent 60%),
    linear-gradient(180deg, rgba(139,61,255,.12), rgba(255,255,255,.03));
}
.final-cta .crown-big { font-size: 30px; display: block; margin-bottom: 6px; }
.final-cta h2 { margin: 0; font-size: 23px; font-weight: 950; letter-spacing: -.03em; }
.final-cta p { margin: 7px 0 0; color: var(--ink-dim); font-size: 12px; font-weight: 800; }

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 0 10px 6px;
  text-align: center;
}
.android-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--card-border);
  font-size: 10.5px;
  font-weight: 900;
}
.foot span:last-child { color: var(--ink-dim); font-size: 9.5px; line-height: 1.45; font-weight: 700; max-width: 380px; }

.sticky-cta {
  position: fixed;
  z-index: 20;
  left: 10px;
  right: 10px;
  bottom: calc(10px + var(--safe-bottom));
  width: min(calc(100% - 20px), 520px);
  margin: 0 auto;
  padding: 8px;
  border-radius: 20px;
  background: rgba(11,4,22,.78);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.sticky-cta .download-cta { margin-top: 0; box-shadow: 0 10px 26px rgba(255,196,77,.32); }
.toast {
  position: fixed;
  z-index: 30;
  left: 12px;
  right: 12px;
  bottom: calc(90px + var(--safe-bottom));
  width: min(calc(100% - 24px), 496px);
  margin: 0 auto;
  padding: 11px 13px;
  border-radius: 14px;
  color: #fff;
  background: rgba(255,45,107,.92);
  text-align: center;
  font-size: 12px;
  font-weight: 850;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (min-width: 700px) {
  .page { padding-top: 18px; }
  .hero { padding: 24px 22px; }
  .previews { padding: 16px; }
  .preview-content strong { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
