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

:root {
  --bg: #0a0e17;
  --bg2: #0e1424;
  --panel: #131b2e;
  --panel2: #182238;
  --gold: #f6c453;
  --gold-2: #ffdf8e;
  --gold-deep: #b9821e;
  --text: #eef2fb;
  --muted: #98a5c6;
  --line: rgba(246, 196, 83, 0.14);
  --r: 18px;
  --header-height: 76px;
  --gutter: clamp(20px, 4vw, 48px);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }

body {
  background:
    radial-gradient(1100px 560px at 50% -8%, rgba(246, 196, 83, 0.09), transparent 60%),
    radial-gradient(800px 500px at 90% 30%, rgba(90, 120, 255, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 5px; }

button, a, summary { -webkit-tap-highlight-color: rgba(246, 196, 83, 0.18); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

.skip-link { position: fixed; top: 12px; left: 20px; z-index: 100; padding: 12px 18px; border-radius: 8px; background: var(--gold); color: var(--bg); font-weight: 700; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

main:focus { outline: none; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 14, 23, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-height);
}

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--gold-2);
  display: inline-block;
  white-space: nowrap;
}

.logo small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.nav a { display: inline-flex; align-items: center; min-height: 44px; }
.nav a:hover { color: var(--text); }

.nav-toggle { display: none; align-items: center; justify-content: center; gap: 8px; min-width: 88px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: 700 14px "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.nav-toggle[aria-expanded="true"] { border-color: var(--gold); color: var(--gold-2); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  min-height: 48px;
  text-align: center;
  line-height: 1.4;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active { transform: scale(0.97); }

.btn-gold {
  background: linear-gradient(180deg, #ffd97a, #f0a92e);
  color: #241503;
  box-shadow: 0 8px 24px rgba(240, 169, 46, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

@media (hover: hover) {
  .btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(240, 169, 46, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
}

.btn-ghost {
  background: rgba(246, 196, 83, 0.08);
  color: var(--gold-2);
  border: 1px solid rgba(246, 196, 83, 0.35);
}

.btn-ghost:hover { background: rgba(246, 196, 83, 0.14); }

.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 13px; }

/* ---------- hero ---------- */

.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(246, 196, 83, 0.1);
  border: 1px solid rgba(246, 196, 83, 0.3);
  color: var(--gold-2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  position: absolute;
  top: 0;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero .sub {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  max-width: 46ch;
  margin-bottom: 28px;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }

.trust-row { display: flex; gap: 12px 24px; flex-wrap: wrap; color: var(--muted); font-size: 13px; font-weight: 600; }

.trust-row b { color: var(--text); font-weight: 800; }

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; padding: 36px 0 10px; }

.hero-art .glow {
  position: absolute;
  inset: 8% 12%;
  background: radial-gradient(closest-side, rgba(246, 196, 83, 0.22), transparent 70%);
  filter: blur(10px);
}

.chest { position: relative; width: min(470px, 100%); animation: float 5s ease-in-out infinite; }

.spark { transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s ease-in-out infinite; }
.spark.s2 { animation-delay: 0.7s; }
.spark.s3 { animation-delay: 1.3s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.75); } 50% { opacity: 1; transform: scale(1.15); } }

.bonus-card {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(246, 196, 83, 0.055);
  border: 1px solid rgba(246, 196, 83, 0.2);
  max-width: 520px;
}

.bonus-card .gift { flex: 0 0 28px; color: var(--gold); margin-top: 2px; }

.bonus-card h3 { font-size: 14.5px; font-weight: 800; color: var(--gold-2); margin-bottom: 2px; }

.bonus-card p { font-size: 13px; color: var(--muted); }

/* ---------- sections ---------- */

section { padding: clamp(48px, 7vw, 88px) 0; }

.section-head { max-width: 640px; margin: 0 0 36px; }

.section-head h2 { font-size: clamp(28px, 3.3vw, 40px); line-height: 1.2; letter-spacing: -0.025em; font-weight: 800; margin-bottom: 12px; text-wrap: balance; }

.section-head p { color: var(--muted); font-size: 15.5px; }

#cara-main { border-top: 1px solid var(--line); }
#hadiah { background: var(--bg2); border-block: 1px solid rgba(255, 255, 255, 0.045); }
#faq { padding-top: 32px; }
#faq > .wrap { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 64px; }

/* steps */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }

.step {
  padding: 4px 24px 4px 0;
  position: relative;
}

.step .num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  color: #241503;
  background: linear-gradient(180deg, #ffd97a, #f0a92e);
  margin-bottom: 16px;
}

.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }

.step p { font-size: 14px; color: var(--muted); }

/* rarity cards */

.rarity-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.rarity {
  padding: 26px 20px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  text-align: center;
}

.rarity .gem { width: 52px; height: 52px; margin: 0 auto 14px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4)); }

.rarity h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }

.rarity p { font-size: 13px; color: var(--muted); }

.rarity .tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.tag-1 { background: rgba(201, 212, 232, 0.12); color: #c9d4e8; }
.tag-2 { background: rgba(246, 196, 83, 0.14); color: var(--gold-2); }
.tag-3 { background: rgba(176, 124, 255, 0.14); color: #c9a4ff; }
.tag-4 { background: rgba(255, 107, 107, 0.14); color: #ff9c9c; }

/* packages */

.pkg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; padding-top: 12px; }

.pkg {
  position: relative;
  padding: 26px 20px 22px;
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.pkg.hot {
  border-color: rgba(246, 196, 83, 0.55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.pkg .pill {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffd97a, #f0a92e);
  color: #241503;
  white-space: nowrap;
}

.pkg .coins { font-size: 32px; font-weight: 800; letter-spacing: -0.035em; color: var(--gold-2); margin: 10px 0 10px; line-height: 1.25; }

.pkg .coins small { display: block; margin-top: 5px; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 0; }

.pkg .price { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }

.pkg .note { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; flex: 1; }

/* faq */

.faq { width: 100%; min-width: 0; }

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child { border-top: 1px solid var(--line); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 2px;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.2s ease;
  flex: 0 0 20px;
  text-align: center;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { padding: 0 30px 20px 2px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  background: var(--bg2);
  padding: 48px 0 28px;
  margin-top: 40px;
}

.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.7fr) minmax(0, 1fr); gap: 40px; margin-bottom: 32px; }

.foot-grid p { color: var(--muted); font-size: 13.5px; margin-top: 10px; max-width: 320px; }

.foot-grid h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.foot-grid ul { list-style: none; }

.foot-grid li { font-size: 14px; }

.foot-grid li a { display: flex; align-items: center; min-height: 44px; padding-block: 7px; color: var(--text); opacity: 0.85; overflow-wrap: anywhere; }

.foot-grid li a:hover { color: var(--gold-2); opacity: 1; }

.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}

.foot-bottom a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- sticky mobile cta ---------- */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 12px max(20px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-right));
  background: rgba(10, 14, 23, 0.97);
  border-top: 1px solid var(--line);
  display: none;
}

.sticky-cta .btn { width: 100%; }

/* ---------- doc pages ---------- */

.doc { max-width: 760px; margin: 0 auto; padding: 56px max(20px, env(safe-area-inset-left)) 80px max(20px, env(safe-area-inset-right)); overflow-wrap: anywhere; }

.doc h1 { font-size: clamp(26px, 5vw, 36px); font-weight: 800; line-height: 1.25; margin-bottom: 12px; }

.doc .updated { color: var(--muted); font-size: 13px; margin-bottom: 32px; }

.doc h2 { font-size: 18px; font-weight: 800; margin: 30px 0 10px; color: var(--gold-2); }

.doc p, .doc li { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }

.doc ul { padding-left: 20px; }

/* ---------- gate pages ---------- */

.gate {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(246, 196, 83, 0.1), transparent 60%),
    var(--bg);
}

.gate-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: clamp(28px, 6vw, 44px) clamp(20px, 5vw, 32px);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.gate-card .logo { font-size: 26px; margin-bottom: 26px; }

.spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 4px solid rgba(246, 196, 83, 0.18);
  border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.gate-card h1 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }

.gate-card p { color: var(--muted); font-size: 14px; }

.gate-card .check {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(246, 196, 83, 0.14);
  border: 1px solid rgba(246, 196, 83, 0.4);
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .topbar .wrap { gap: 20px; }
  .nav { gap: 18px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 24px; }
  .hero h1 { font-size: clamp(36px, 4.7vw, 48px); }
  .rarity-grid, .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rarity { padding: 26px; }
  #faq > .wrap { gap: 36px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .foot-grid p { max-width: 520px; }
}

@media (max-width: 760px) {
  :root { --header-height: 72px; }
  html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .site-header .wrap { flex-wrap: wrap; gap: 0 16px; padding-block: 12px; }
  .header-cta { display: none; }
  .nav-enhanced .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav { order: 3; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
  .nav a { padding: 6px 12px; border-radius: 8px; background: var(--panel); }
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-copy { max-width: 600px; }
  .hero h1 { max-width: 16ch; font-size: clamp(36px, 7vw, 52px); margin-bottom: 18px; }
  .hero .sub { max-width: 50ch; margin-bottom: 24px; }
  .cta-row { margin-bottom: 24px; }
  .hero-art { padding: 32px 0 0; }
  .hero-art .badge { font-size: 11px; padding: 5px 12px; }
  .chest { width: min(240px, 65%); }
  .bonus-card { margin-top: 24px; max-width: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .step { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 18px; padding: 0; }
  .step .num { grid-row: 1 / 3; margin: 0; }
  .step h3 { margin-bottom: 4px; }
  .step p { grid-column: 2; }
  .section-head { margin-bottom: 28px; }
  #faq > .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sticky-cta { display: block; }
  footer { margin-top: 16px; }
}

@media (max-width: 480px) {
  .logo { font-size: 19px; }
  .logo small { font-size: 8px; letter-spacing: 1.8px; }
  .cta-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cta-row .btn { width: 100%; }
  .trust-row { gap: 10px 16px; font-size: 12px; }
  .rarity-grid { gap: 12px; }
  .pkg-grid { gap: 24px 12px; }
  .rarity { padding: 22px 14px; }
  .rarity h3 { font-size: 15px; }
  .rarity .gem { width: 44px; height: 44px; }
  .pkg { padding: 24px 14px 18px; }
  .pkg .coins { font-size: 28px; }
  .pkg .btn { padding-inline: 10px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid h4 { margin-bottom: 8px; }
  .foot-bottom { gap: 10px; }
}

@media (max-width: 359px) {
  .rarity-grid, .pkg-grid { grid-template-columns: minmax(0, 1fr); }
  .rarity { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; text-align: left; }
  .rarity .gem { grid-row: 1 / 4; margin: 0; }
  .rarity p, .rarity .tag { grid-column: 2; }
  .rarity .tag { justify-self: start; }
  .pkg { padding-inline: 24px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .topbar { position: relative; }
  .sticky-cta { display: none; }
  html { scroll-padding-top: 20px; scroll-padding-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chest, .spark, .spinner { animation: none; }
  .btn, .faq summary::after { transition: none; }
}
