:root {
  --violet: #6a3df0;
  --violet-light: #8b6bff;
  --violet-dark: #4a23c0;
  --cyan: #2ad6f0;
  --magenta: #ff4db8;
  --gold: #ffd24d;
  --gold-dark: #e0a800;
  --bg: #1a1136;
  --bg-deep: #120b28;
  --panel: #241953;
  --panel-light: #2f2168;
  --ink: #ede8ff;
  --muted: #b3a8e0;
  --shadow: 0 10px 30px rgba(10, 4, 40, .45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg-deep);
  line-height: 1.45;
  overflow-x: hidden;
}

h1, h2, .logo span, .btn-main { font-family: "Baloo 2", "Be Vietnam Pro", sans-serif; }

/* ---------- AMBIENT GEMS ---------- */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.amb-gem {
  position: absolute; font-size: 24px; opacity: .35;
  filter: drop-shadow(0 0 8px rgba(120, 200, 255, .6));
  animation: drift 24s linear infinite;
}
.amb-gem.g1 { top: 12%; left: -5%; animation-duration: 27s; }
.amb-gem.g2 { top: 50%; left: -5%; font-size: 18px; animation-duration: 33s; animation-delay: -8s; }
.amb-gem.g3 { top: 74%; left: -5%; font-size: 28px; animation-duration: 21s; animation-delay: -14s; }
.amb-gem.g4 { top: 30%; left: -5%; font-size: 16px; animation-duration: 30s; animation-delay: -20s; }

@keyframes drift {
  0%   { transform: translate(-10vw, 0) rotate(0deg); }
  25%  { transform: translate(30vw, -30px) rotate(40deg); }
  50%  { transform: translate(60vw, 20px) rotate(-30deg); }
  75%  { transform: translate(90vw, -24px) rotate(35deg); }
  100% { transform: translate(115vw, 0) rotate(0deg); }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 48px 16px 72px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 50% -10%, #3a2186 0%, #241458 50%, #15092e 100%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(120,220,255,.5) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 20%, rgba(255,210,90,.4) 0 1.5px, transparent 3px),
    radial-gradient(circle at 68% 72%, rgba(255,90,180,.35) 0 1.5px, transparent 3px),
    radial-gradient(circle at 40% 60%, rgba(255,255,255,.4) 0 1px, transparent 2px);
  background-size: 120px 120px, 160px 160px, 140px 140px, 90px 90px;
  opacity: .8;
  animation: twinkle 5s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: .55; } 50% { opacity: .9; } }

.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }

/* logo */
.logo { line-height: .82; margin-bottom: 22px; }
.logo span { display: block; font-weight: 800; }
.logo-top {
  font-size: clamp(30px, 7vw, 56px); letter-spacing: 6px; color: var(--cyan);
  -webkit-text-stroke: 2px #0c1c33;
  text-shadow: 0 0 18px rgba(42,214,240,.6), 3px 4px 0 rgba(0,0,0,.3);
}
.logo-main {
  position: relative; display: inline-block !important;
  font-size: clamp(58px, 15vw, 120px);
  background: linear-gradient(180deg, #fff 0%, var(--gold) 45%, var(--gold-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 3px #2a1c00;
  filter: drop-shadow(4px 5px 0 rgba(0,0,0,.35));
}
.logo-sparkle {
  position: absolute; right: -30px; top: -8px; width: 46px; height: 46px;
  background:
    conic-gradient(from 0deg, transparent 0 8%, rgba(255,255,255,.95) 12%, transparent 16% 33%, rgba(255,255,255,.95) 37%, transparent 41% 58%, rgba(255,255,255,.95) 62%, transparent 66% 83%, rgba(255,255,255,.95) 87%, transparent 91%);
  -webkit-mask: radial-gradient(circle, #000 0 4%, rgba(0,0,0,.4) 8%, transparent 60%);
          mask: radial-gradient(circle, #000 0 4%, rgba(0,0,0,.4) 8%, transparent 60%);
  animation: sparkle 2.6s ease-in-out infinite;
}
@keyframes sparkle { 0%,100% { transform: scale(.85) rotate(0); opacity: .8; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }
.logo-offline {
  display: inline-block !important; margin-top: 14px;
  font-size: clamp(16px, 4vw, 26px); letter-spacing: 4px; font-weight: 700;
  color: #fff; background: linear-gradient(var(--violet-light), var(--violet-dark));
  padding: 6px 26px; border-radius: 10px;
  box-shadow: 0 4px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.3), 0 0 22px rgba(106,61,240,.5);
}

/* tagline */
.tagline {
  display: inline-block; font-weight: 700; letter-spacing: .5px; font-size: clamp(13px, 2.6vw, 16px);
  background: linear-gradient(var(--panel-light), var(--panel)); color: var(--ink);
  padding: 12px 26px; border-radius: 14px; margin-bottom: 30px;
  border: 1px solid rgba(139,107,255,.4);
  box-shadow: 0 5px 0 rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.12);
}
.tagline .dot { color: var(--cyan); margin: 0 5px; }

/* top feature cards */
.features-top {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 16px; margin-bottom: 38px;
}
.features-top li {
  flex: 1 1 160px; max-width: 200px;
  background: linear-gradient(var(--panel-light), var(--panel));
  border: 1px solid rgba(139,107,255,.45);
  border-radius: 16px; padding: 18px 16px;
  font-size: 13px; font-weight: 700; line-height: 1.3;
  box-shadow: 0 5px 0 var(--violet-dark), var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.features-top li:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--violet-dark), var(--shadow); }
.features-top strong { display: block; color: #fff; }
.features-top span { display: block; color: var(--muted); font-size: 11px; }
.features-top .ico {
  font-size: 34px; margin-bottom: 8px; line-height: 1;
  filter: drop-shadow(0 0 8px rgba(120,200,255,.5));
}

/* decorative cannon / gem launcher */
.cannon { position: absolute; top: 36px; right: 4px; width: 120px; height: 250px; z-index: 1; pointer-events: none; transform: rotate(-16deg); transform-origin: bottom center; animation: aim 4.5s ease-in-out infinite; }
.cannon-gem {
  width: 38px; height: 38px; margin: 0 auto;
  background: linear-gradient(135deg, var(--cyan), #1290c8);
  transform: rotate(45deg);
  border: 3px solid #0e3a52;
  box-shadow: 0 0 18px rgba(42,214,240,.8), inset -4px -4px 0 rgba(0,0,0,.2);
}
.cannon-barrel {
  width: 46px; height: 120px; margin: -6px auto 0;
  background: linear-gradient(90deg, var(--violet-dark), var(--violet-light), var(--violet-dark));
  border-radius: 0 0 14px 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.4), inset 0 2px 0 rgba(255,255,255,.2);
}
.cannon-base {
  width: 84px; height: 30px; margin: -2px auto 0;
  background: linear-gradient(var(--gold), var(--gold-dark));
  border-radius: 0 0 20px 20px;
  box-shadow: 0 5px 10px rgba(0,0,0,.4);
}
@keyframes aim {
  0%, 100% { transform: rotate(-16deg); }
  50%      { transform: rotate(-8deg); }
}

/* shattered-gem mascot */
.mascot-burst { position: absolute; left: 18px; bottom: 18px; text-align: center; z-index: 1; opacity: .9; animation: bob 3s ease-in-out infinite; }
.mascot-burst span { font-size: 46px; display: block; filter: drop-shadow(0 0 12px rgba(42,214,240,.7)); }
.mascot-burst em { font-style: normal; font-weight: 800; font-size: 14px; color: var(--gold); letter-spacing: 3px; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- DOWNLOAD BUTTON ---------- */
.btn-download {
  display: inline-flex; flex-direction: column; align-items: center;
  background: linear-gradient(var(--violet-light), var(--violet));
  color: #fff; text-decoration: none; font-weight: 800;
  padding: 16px 52px; border-radius: 16px; border: 3px solid var(--violet-dark);
  box-shadow: 0 7px 0 var(--violet-dark), 0 12px 28px rgba(106,61,240,.45), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn-download .btn-main { font-size: clamp(22px, 5vw, 28px); }
.btn-download:hover { transform: translateY(2px); box-shadow: 0 5px 0 var(--violet-dark), 0 9px 18px rgba(106,61,240,.4), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-download:active { transform: translateY(7px); box-shadow: 0 0 0 var(--violet-dark), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-download small { font-size: 12px; font-weight: 600; opacity: .92; margin-top: 5px; letter-spacing: .5px; }
.btn-hero { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}
.btn-hero:hover { animation: none; }

/* ---------- GAMEPLAY ---------- */
main { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 0 16px; }

.gameplay {
  position: relative;
  background: linear-gradient(var(--panel), var(--bg));
  border: 1px solid rgba(139,107,255,.4); border-radius: 22px;
  padding: 32px 22px; margin: -36px auto 40px;
  box-shadow: var(--shadow);
}
.gameplay h2 { text-align: center; color: var(--gold); font-size: clamp(22px, 5vw, 30px); letter-spacing: .5px; text-shadow: 0 0 16px rgba(255,210,77,.4); }
.gameplay .sub { text-align: center; margin: 8px 0 26px; color: var(--muted); font-size: 15px; }

.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.screen {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
  border: 1px solid rgba(139,107,255,.3);
  transition: transform .15s ease;
}
.screen:hover { transform: translateY(-4px); }
.screen-bar {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(#1c1140, #140c2e); color: #fff;
  font-size: 11px; font-weight: 700; padding: 8px 10px; letter-spacing: .3px;
}
.screen-bar i { font-style: normal; }
.screen-bar .score { color: var(--gold); }
.screen-body {
  position: relative; height: 150px;
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap; padding: 12px;
}
.screen-body .gem {
  font-size: 30px; filter: drop-shadow(0 0 8px rgba(120,200,255,.55));
  animation: shimmer 2s ease-in-out infinite;
}
.screen-body .gem.c2 { animation-delay: -.4s; }
.screen-body .gem.c3 { animation-delay: -.8s; }
.screen-body .gem.c4 { animation-delay: -1.2s; }
@keyframes shimmer {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-5px) scale(1.08); }
}
.screen-body .burst {
  width: 36px; height: 36px;
  background:
    radial-gradient(circle at 50% 50%, var(--gold) 0 18%, transparent 20%),
    conic-gradient(from 0deg, var(--magenta) 0 8%, transparent 8% 16%, var(--cyan) 16% 24%, transparent 24% 32%, var(--gold) 32% 40%, transparent 40% 48%, var(--magenta) 48% 56%, transparent 56% 64%, var(--cyan) 64% 72%, transparent 72% 80%, var(--gold) 80% 88%, transparent 88% 96%);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 56%, transparent 70%);
          mask: radial-gradient(circle at 50% 50%, #000 56%, transparent 70%);
  filter: drop-shadow(0 0 6px rgba(255,210,77,.6));
  animation: pop 1.8s ease-in-out infinite;
}
.screen-body .burst.small { width: 24px; height: 24px; }
@keyframes pop { 0%,100% { transform: scale(.9) rotate(0); } 50% { transform: scale(1.15) rotate(30deg); } }
.s1 { background: radial-gradient(120% 100% at 30% 0%, #2a1c5e, #160d34); }
.s2 { background: radial-gradient(120% 100% at 30% 0%, #1d3a52, #0d1f30); }
.s3 { background: radial-gradient(120% 100% at 30% 0%, #3a1c4e, #220d30); }

/* bottom feature cards */
.features-bottom { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 30px; }
.features-bottom > li {
  display: flex; gap: 14px; background: linear-gradient(var(--panel-light), var(--panel));
  border: 1px solid rgba(139,107,255,.4); border-radius: 16px; padding: 18px;
  box-shadow: 0 4px 0 var(--violet-dark);
}
.features-bottom .ico { font-size: 34px; line-height: 1; filter: drop-shadow(0 0 8px rgba(120,200,255,.5)); }
.features-bottom strong { display: block; color: var(--gold); font-size: 16px; margin-bottom: 4px; }
.features-bottom ul { margin: 4px 0 0 18px; font-size: 14px; color: var(--muted); }
.features-bottom ul li { margin: 2px 0; }
.features-bottom p { font-size: 14px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { position: relative; text-align: center; padding: 16px 0 56px; }
.cta-badges {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 22px; margin: 24px 0 16px; font-size: 13px; font-weight: 700; color: var(--muted);
}

/* sticky note */
.sticky-note {
  position: relative; display: inline-block; margin-top: 22px;
  background: linear-gradient(#2ad6f0, #18a8c8); padding: 24px 26px 22px;
  font-family: "Baloo 2", cursive; font-weight: 700; color: #08303d;
  line-height: 1.35; font-size: 18px;
  box-shadow: 3px 5px 16px rgba(0,0,0,.4);
  transform: rotate(-3deg);
}
.sticky-note::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  border-width: 0 22px 22px 0; border-style: solid;
  border-color: transparent #1290c8 transparent transparent;
}
.sticky-note .pin {
  position: absolute; top: -10px; left: 50%; width: 18px; height: 18px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe27a, var(--gold-dark));
  box-shadow: 0 3px 6px rgba(0,0,0,.45);
}

footer { position: relative; z-index: 1; text-align: center; padding: 24px 16px; font-size: 12px; color: #8678c0; }

/* ---------- RESPONSIVE ---------- */
/* tablet */
@media (max-width: 720px) {
  .cannon { width: 92px; top: 16px; right: -10px; transform: rotate(-20deg) scale(.85); }
  .cannon-barrel { height: 96px; }
  .mascot-burst span { font-size: 38px; }
}

/* phone */
@media (max-width: 520px) {
  .hero { padding: 36px 14px 60px; }
  .logo-top { -webkit-text-stroke-width: 1.5px; letter-spacing: 4px; }
  .logo-main { -webkit-text-stroke-width: 2px; }
  .logo-sparkle { right: -20px; width: 34px; height: 34px; }
  .tagline { max-width: 100%; padding: 11px 16px; font-size: 13px; line-height: 1.5; }
  .features-top { gap: 12px; }
  .features-top li { flex-basis: calc(50% - 6px); max-width: none; padding: 14px 10px; }
  .cannon { opacity: .55; right: -24px; }
  .mascot-burst { opacity: .7; left: 8px; bottom: 10px; }
  .gameplay { padding: 26px 16px; margin-top: -28px; }
  .screen-body { height: 130px; }
  .cta-badges { gap: 16px; }
}

/* very small */
@media (max-width: 360px) {
  .features-top li { flex-basis: 100%; }
}

/* desktop — more breathing room, pin props wider */
@media (min-width: 1024px) {
  .hero { padding: 64px 16px 88px; }
  .cannon { right: 5%; top: 44px; }
  .mascot-burst { left: 6%; bottom: 32px; }
}

/* respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .amb-gem, .cannon, .mascot-burst, .btn-hero, .hero-bg::before,
  .logo-sparkle, .screen-body .gem, .screen-body .burst { animation: none; }
}
