/* ==========================================================================
   Lucky Gem Collector — marketing site styles.
   Mirrors the app's "Deep Arcade" design system: deep royal-violet backdrop,
   chunky candy-3D buttons with a bottom lip + squash-on-press, saturated purple
   plates with rim light, hard cartoon outlines, custom icon sprites.
   ========================================================================== */

:root {
  /* Palette — pulled 1:1 from the app (CandyPalette). */
  --base:        #1C1450;   /* page backdrop */
  --base-top:    #241A66;   /* gradient top */
  --surface:     #3B2A8F;   /* panel plate bottom */
  --raised:      #4C39AE;   /* panel plate top / lifted */
  --overlay:     #241A66;   /* wells / inset */
  --stroke:      #1A123D;   /* dark cartoon outline */
  --ink:         #FFF9F0;   /* warm cream text */
  --text-2:      #C9BFEF;   /* light lavender */
  --text-3:      #A394DE;   /* muted lavender */
  --text-4:      #7E70B8;   /* faint */

  --primary:     #FF5FA2;   /* hot pink */
  --secondary:   #8A5CFF;   /* grape violet */
  --gold:        #FFC53D;   /* gold */
  --gold-bright: #FFDF8F;
  --green:       #3ECC4E;
  --green-bright:#8DF5A8;
  --orange:      #FF9C1A;
  --blue:        #2E9BFF;
  --cyan:        #54E0FF;

  --stroke-w: 3px;
  --radius: 22px;
  --lip: 6px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Baloo 2', 'Nunito', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -10%, var(--base-top) 0%, var(--base) 55%),
    var(--base);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Ambient sparkles / bokeh layer over the whole page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 12% 22%, rgba(255,255,255,.5), transparent),
    radial-gradient(2px 2px at 82% 14%, rgba(255,223,143,.55), transparent),
    radial-gradient(1.5px 1.5px at 66% 42%, rgba(255,255,255,.4), transparent),
    radial-gradient(2px 2px at 30% 74%, rgba(138,92,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 90% 68%, rgba(255,255,255,.35), transparent),
    radial-gradient(2px 2px at 48% 90%, rgba(255,223,143,.45), transparent);
}

.wrap { width: min(1180px, 92vw); margin-inline: auto; position: relative; z-index: 1; }

/* Text shadow used on chrome (mirrors gameTextShadow). */
.tshadow { text-shadow: 0 2px 0 rgba(26,18,61,.55); }

/* ============================ Typography ============================ */

h1, h2, h3, h4 { font-weight: 800; line-height: 1.05; letter-spacing: -0.5px; }
.display { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900; }
.h-section { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold-bright);
}
.lead { color: var(--text-2); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.6; }
p { line-height: 1.65; color: var(--text-2); }

/* ============================ Custom icons ============================ */
/* App sprites used as icons — full-color PNGs, sized by height. */
.gicon { height: 1.25em; width: auto; vertical-align: -0.22em; display: inline-block; }
.gicon-lg { height: 2.4rem; }

/* Icon chip (mirrors the app's tinted rounded chip behind stat icons). */
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 15px;
  background: rgba(138,92,255,.18);
  border: 2px solid rgba(138,92,255,.45);
}
.chip img { height: 30px; }

/* ============================ 3D Button (candy chrome) ============================ */
/* Bright face + darker bottom lip + hard outline; presses down into its lip. */
.btn3d {
  --fill: var(--green);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font); font-weight: 800; font-size: 1.05rem;
  color: var(--ink); text-decoration: none; cursor: pointer;
  padding: .85rem 1.7rem;
  border: none; background: transparent;
  border-radius: var(--radius);
  transition: transform .07s var(--ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn3d .lbl { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .55rem; text-shadow: 0 2px 0 rgba(26,18,61,.5); }
.btn3d::before { /* bottom lip */
  content: ""; position: absolute; inset: 0; z-index: 0;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--fill) 62%, #1A123D);
  transform: translateY(var(--lip));
}
.btn3d::after { /* bevel face */
  content: ""; position: absolute; inset: 0; z-index: 1;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--fill) 78%, #fff) 0%,
      var(--fill) 45%,
      color-mix(in srgb, var(--fill) 92%, #1A123D) 100%);
  border: var(--stroke-w) solid var(--stroke);
  box-shadow: inset 0 6px 0 -3px rgba(255,255,255,.35);
}
.btn3d:hover { transform: translateY(-1px); }
.btn3d:active { transform: translateY(var(--lip)); }         /* squash into the lip */
.btn3d.is-press::after { animation: squash .28s var(--ease); }
@keyframes squash {
  0%   { transform: scale(1,1); }
  30%  { transform: scale(1.05,.9); }
  60%  { transform: scale(.98,1.04); }
  100% { transform: scale(1,1); }
}
.btn3d--green  { --fill: var(--green); }
.btn3d--pink   { --fill: var(--primary); }
.btn3d--gold   { --fill: var(--gold); }
.btn3d--violet { --fill: var(--secondary); }
.btn3d--orange { --fill: var(--orange); }
.btn3d--blue   { --fill: var(--blue); }
.btn3d--lg { font-size: 1.2rem; padding: 1.05rem 2.2rem; }

/* App Store button — dark, with apple mark. */
.btn-store {
  --fill: #2b2358;
}
.btn-store .lbl small { display:block; font-size:.62rem; font-weight:700; opacity:.85; letter-spacing:.5px; line-height:1; }
.btn-store .lbl strong { display:block; font-size:1.05rem; font-weight:900; line-height:1.05; }

/* ============================ Panels / wells ============================ */
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--raised) 0%, var(--surface) 100%);
  border: var(--stroke-w) solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 rgba(26,18,61,.5), 0 18px 40px rgba(0,0,0,.35);
  padding: 1.6rem;
}
.panel::before { /* rim light on top edge */
  content:""; position:absolute; inset:0; border-radius: inherit; pointer-events:none;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.22);
  -webkit-mask: linear-gradient(#fff, transparent 45%);
          mask: linear-gradient(#fff, transparent 45%);
}
.well {
  background: var(--overlay);
  border: 2.5px solid var(--stroke);
  border-radius: 14px;
  box-shadow: inset 0 3px 6px rgba(0,0,0,.35);
  padding: 1rem 1.15rem;
}

/* ============================ Header / nav ============================ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, var(--raised), var(--overlay));
  border-bottom: var(--stroke-w) solid var(--stroke);
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.site-head .bar { display: flex; align-items: center; gap: 1rem; padding: .6rem 0; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 42px; width: auto; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.nav { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.nav a {
  color: var(--text-2); text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: .5rem .8rem; border-radius: 12px; transition: background .18s, color .18s;
}
.nav a:hover, .nav a.active { color: var(--ink); background: rgba(255,255,255,.08); }
.nav .btn3d { padding: .5rem 1rem; font-size: .92rem; }
.burger {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255,255,255,.08); border: 2px solid var(--stroke); color: var(--ink);
  font-size: 1.2rem; cursor: pointer;
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .35rem;
    background: linear-gradient(180deg, var(--raised), var(--surface));
    border-bottom: var(--stroke-w) solid var(--stroke); padding: .8rem 4vw; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 1rem; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
}

/* ============================ Footer ============================ */
.site-foot {
  margin-top: 5rem;
  background: linear-gradient(180deg, var(--surface), var(--overlay));
  border-top: var(--stroke-w) solid var(--stroke);
  padding: 3rem 0 2rem;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid h4 { color: var(--ink); margin-bottom: .9rem; font-size: 1rem; }
.foot-grid a { display: block; color: var(--text-3); text-decoration: none; padding: .32rem 0; font-weight: 600; font-size: .95rem; }
.foot-grid a:hover { color: var(--gold-bright); }
.foot-bottom { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: var(--text-4); font-size: .85rem; }
.foot-social a { color: var(--text-2); font-size: 1.15rem; margin-right: .9rem; transition: color .18s, transform .18s; display:inline-block; }
.foot-social a:hover { color: var(--gold-bright); transform: translateY(-2px); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .foot-grid { grid-template-columns: 1fr; } }

/* ============================ Sections ============================ */
section { position: relative; z-index: 1; padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head .lead { margin-top: .8rem; }

/* Hero */
.hero { padding-top: 3.5rem; padding-bottom: 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero-copy .display { margin: 1rem 0 1.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.hero-badges { display: flex; gap: 1.4rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero-badges .b { display: flex; align-items: center; gap: .5rem; color: var(--text-2); font-weight: 700; font-size: .9rem; }
.hero-badges .b i { color: var(--gold-bright); }
.phone-hero { position: relative; display: flex; justify-content: center; }
.phone-hero img.shot { width: min(330px, 78vw); border-radius: 34px; border: 5px solid var(--stroke);
  box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.phone-hero .glow { position: absolute; inset: -8% -8% 0 -8%; z-index: -1; filter: blur(30px);
  background: radial-gradient(closest-side, rgba(138,92,255,.6), transparent 70%); }
.float { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cta, .hero-badges { justify-content: center; }
}

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature { text-align: left; }
.feature .chip { margin-bottom: 1rem; }
.feature h3 { font-size: 1.25rem; margin-bottom: .5rem; color: var(--ink); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* Screenshot rail */
.shot-rail { display: flex; gap: 1.4rem; overflow-x: auto; padding: 1rem .3rem 2rem; scroll-snap-type: x mandatory; }
.shot-rail::-webkit-scrollbar { height: 8px; }
.shot-rail::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 4px; }
.shot-card { flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.shot-card img { width: 250px; border-radius: 28px; border: 5px solid var(--stroke); box-shadow: 0 20px 45px rgba(0,0,0,.45); }
.shot-card p { margin-top: .9rem; font-weight: 700; color: var(--text-2); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; }
.step { text-align: center; }
.step .num { display:inline-flex; align-items:center; justify-content:center; width:46px; height:46px; border-radius:50%;
  background: var(--gold); color: var(--stroke); font-weight:900; border:3px solid var(--stroke); box-shadow:0 4px 0 rgba(26,18,61,.5); margin-bottom:.8rem; }
.step h4 { color: var(--ink); margin-bottom: .4rem; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr 1fr; } }

/* Gem rarity strip */
.gem-strip { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.gem-orb { text-align:center; }
.gem-orb img { height: 74px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.4)); transition: transform .25s var(--ease); }
.gem-orb:hover img { transform: translateY(-8px) scale(1.06); }
.gem-orb span { display:block; margin-top:.5rem; font-weight:800; font-size:.85rem; color: var(--text-2); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .panel { padding: 3rem 2rem; background: linear-gradient(180deg, var(--secondary), #5a3fb0); }

/* ============================ Generic page hero ============================ */
.page-hero { text-align: center; padding: 3.5rem 0 1rem; }
.page-hero .display { font-size: clamp(2rem, 5vw, 3.4rem); }

/* Article / legal / prose */
.prose { max-width: 820px; margin-inline: auto; }
.prose .panel { padding: 2.2rem; }
.prose h2 { color: var(--ink); font-size: 1.5rem; margin: 1.8rem 0 .7rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { margin: .6rem 0 1rem 1.2rem; }
.prose li { padding: .2rem 0; }
.prose a { color: var(--gold-bright); }
.prose .updated { color: var(--text-4); font-size: .9rem; margin-bottom: 1.4rem; }

/* FAQ accordion */
.faq-item { margin-bottom: 1rem; }
.faq-q {
  width: 100%; text-align: left; cursor: pointer; color: var(--ink); font-weight: 800; font-size: 1.05rem;
  background: none; border: none; font-family: var(--font);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.3rem;
}
.faq-q i { transition: transform .25s var(--ease); color: var(--gold-bright); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a-inner { padding: 0 1.3rem 1.2rem; color: var(--text-2); line-height: 1.6; }

/* Forms */
.field { margin-bottom: 1.15rem; }
.field label { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-2); margin-bottom: .5rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--font); font-size: 1rem; color: var(--ink); font-weight: 600;
  background: var(--overlay); border: 2.5px solid var(--stroke); border-radius: 14px;
  padding: .85rem 1rem; box-shadow: inset 0 3px 6px rgba(0,0,0,.35);
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--secondary); box-shadow: inset 0 3px 6px rgba(0,0,0,.35), 0 0 0 3px rgba(138,92,255,.3); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-4); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { color: var(--text-3); font-size: .85rem; margin-top: .3rem; }
.form-ok { display: none; align-items: center; gap: .7rem; color: var(--green-bright); font-weight: 800; margin-top: 1rem; }
.form-ok.show { display: flex; }

/* Contact info tiles */
.info-tiles { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.info-tile { display: flex; align-items: center; gap: 1rem; }
.info-tile .chip { flex: 0 0 auto; }
.info-tile b { color: var(--ink); display: block; }
.info-tile span { color: var(--text-3); font-size: .92rem; }

.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.8rem; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* Value cards (about) */
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.3rem; }
@media (max-width: 820px) { .value-grid { grid-template-columns: 1fr; } }

/* Utility */
.center { text-align: center; }
.mt1 { margin-top: 1rem; } .mt2 { margin-top: 2rem; } .mb2 { margin-bottom: 2rem; }
.muted { color: var(--text-3); }

/* AOS: keep it subtle — no gimmicks (handled by data-aos + this duration). */
[data-aos] { pointer-events: auto; }

/* Down to 250px */
@media (max-width: 380px) {
  .wrap { width: 94vw; }
  .btn3d { padding: .75rem 1.2rem; font-size: .95rem; }
  .shot-card img { width: 210px; }
  .phone-hero img.shot { width: 82vw; }
}
