/* "/" — Gin Rummy Super landing page (Google Ads → Singular Web-to-App).
   Ported from the grs-landing-page package; all assets served from /img on this domain. */

:root {
  --bg: #120a33;
  --bg2: #2a166b;
  --felt: #0f3d2e;
  --gold: #f9c846;
  --gold2: #e0a72a;
  --text: #fff;
  --muted: #e3ddf7;
  --ink: #1b1305;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
  position: relative;
  background-color: var(--bg);
  /* jpg fallback first, webp via image-set when supported */
  background-image: linear-gradient(180deg, rgba(18, 10, 51, .35) 0%, rgba(18, 10, 51, .75) 100%), url("/img/bg-mobile.jpg");
  background-image: linear-gradient(180deg, rgba(18, 10, 51, .35) 0%, rgba(18, 10, 51, .75) 100%),
    -webkit-image-set(url("/img/bg-mobile.webp") type("image/webp"), url("/img/bg-mobile.jpg") type("image/jpeg"));
  background-image: linear-gradient(180deg, rgba(18, 10, 51, .35) 0%, rgba(18, 10, 51, .75) 100%),
    image-set(url("/img/bg-mobile.webp") type("image/webp"), url("/img/bg-mobile.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

body.desktop {
  background-image: linear-gradient(180deg, rgba(18, 10, 51, .35) 0%, rgba(18, 10, 51, .75) 100%), url("/img/bg-desktop.jpg");
  background-image: linear-gradient(180deg, rgba(18, 10, 51, .35) 0%, rgba(18, 10, 51, .75) 100%),
    -webkit-image-set(url("/img/bg-desktop.webp") type("image/webp"), url("/img/bg-desktop.jpg") type("image/jpeg"));
  background-image: linear-gradient(180deg, rgba(18, 10, 51, .35) 0%, rgba(18, 10, 51, .75) 100%),
    image-set(url("/img/bg-desktop.webp") type("image/webp"), url("/img/bg-desktop.jpg") type("image/jpeg"));
  background-position: center center;
}

/* vignette */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .45) 100%);
  z-index: 0;
}

main.lp {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 8px 0 22vh;
}

.hero { margin-bottom: 14px; }

.icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 3px rgba(249, 200, 70, .35), 0 0 40px rgba(249, 200, 70, .25);
}

h1 {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.sub {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 12px;
}

.stars {
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 2px;
  line-height: 1;
}

.rating {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0 18px;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  font-size: 17px;
}

.features li { margin: 8px 0; }
.features li::before { content: "✓ "; color: var(--gold); font-weight: 700; }

.cta {
  display: block;
  width: 100%;
  max-width: 360px;
  min-height: 60px;
  margin: 0 auto;
  padding: 16px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold2) 100%);
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4), 0 0 0 2px rgba(255, 255, 255, .15) inset;
  animation: pulse 2s ease-in-out infinite;
}

.cta:active { transform: scale(.98); }

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(0, 0, 0, .4), 0 0 0 0 rgba(249, 200, 70, .6); }
  50% { transform: scale(1.03); box-shadow: 0 8px 24px rgba(0, 0, 0, .4), 0 0 0 14px rgba(249, 200, 70, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .cta { animation: none; }
}

.small {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0 0;
}

/* Store badges — shown on every device. Mobile: both go through the same Singular link as the CTA. */
.badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 14px 0 0;
}

.badges img { height: 44px; width: auto; display: block; }

/* QR (desktop only) */
#qr {
  display: none;
  width: 180px;
  margin: 0 auto;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
}

#qr img, #qr canvas { display: block; margin: 0 auto; }

.qrtext {
  display: none;
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0 0;
}

.desktop .cta, .desktop .small { display: none; }
.desktop .badges { gap: 16px; margin: 8px 0 20px; }
.desktop .badges img { height: 56px; }
.desktop #qr { display: block; transform: scale(.82); margin-bottom: -24px; }
.desktop .qrtext { display: block; }
.desktop .icon { width: 128px; height: 128px; }
.desktop main.lp { padding: 16px 0 12px; }
.desktop h1 { font-size: 40px; }

footer {
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, .75);
}

footer a { color: inherit; }

@media (max-height: 700px) {
  .icon { width: 96px; height: 96px; }
  .features li { margin: 6px 0; }
  main.lp { padding-bottom: 14vh; }
  .badges { margin-top: 10px; }
  .badges img { height: 40px; }
}
