/* ============================================================
   landing_page.css — صفحهٔ فرود گرافیکی برای ورود از بیرون بله
   یک وب‌سایت بازی کامل: هیرو، ویژگی‌ها، گالری، مراحل بازی، CTA.
   فقط وقتی initData بله موجود نباشد نمایش داده می‌شود.
   ============================================================ */

#public-preview {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  overflow: auto !important;
  background: #060a10 !important;
  font-family: Vazirmatn, Tahoma, system-ui, sans-serif !important;
  color: #eaf2f6 !important;
}
#public-preview { display: none !important; }
#public-preview.is-visible { display: block !important; }

/* بوم نقاط نورانی پشت فرود */
#pp-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
/* هاله‌های گرادیانی متحرک */
#public-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 12%, #1a485c66, transparent 30rem),
    radial-gradient(circle at 88% 8%, #5d3b1533, transparent 28rem),
    radial-gradient(circle at 50% 95%, #2a8a9622, transparent 32rem),
    linear-gradient(160deg, #060a10, #0a1220 50%, #060a10);
  animation: ppDrift 22s ease-in-out infinite alternate;
}
#public-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(#55c6d10c 1px, transparent 1px),
    linear-gradient(90deg, #55c6d10c 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
  opacity: .35;
}
@keyframes ppDrift {
  0%   { transform: translate3d(-1%, 0, 0); }
  100% { transform: translate3d(2%, -1%, 0); }
}

.pp-wrap {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0 18px 60px;
}

/* ===== برند ===== */
.pp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 0 6px;
  color: #f1c15f;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 15px;
}
.pp-mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid #d3aa4c88;
  border-radius: 14px;
  background: linear-gradient(145deg, #1c2c38, #0e1a26);
  font-size: 24px;
  box-shadow: 0 0 24px #f1c15f33, inset 0 1px #ffffff14;
}

/* ===== هیرو ===== */
.pp-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 24px 30px;
  margin-top: 14px;
  border: 1px solid #2c4658;
  border-radius: 28px;
  background: linear-gradient(160deg, #122133f2, #0a1422f5);
  box-shadow: 0 30px 90px #00000099, inset 0 1px #ffffff10;
}
.pp-hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, #f1c15f22, transparent 60%);
  filter: blur(10px);
}
.pp-eyebrow {
  position: relative;
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid #55c6d155;
  border-radius: 20px;
  color: #55c6d1;
  font-size: 10px;
  letter-spacing: .18em;
  background: #55c6d114;
}
.pp-hero h1 {
  position: relative;
  margin: 16px 0 10px;
  font-size: clamp(30px, 8vw, 54px);
  line-height: 1.1;
  font-weight: 900;
  text-shadow: 0 4px 18px #00000099;
  background: linear-gradient(135deg, #f5d488, #f1c15f 40%, #55c6d1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pp-hero p {
  position: relative;
  max-width: 540px;
  margin: 0;
  color: #b6c9d0;
  line-height: 2;
  font-size: 14px;
}
.pp-cta-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.pp-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f5d488, #c99135);
  color: #132127;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 12px 30px #d3a64055, inset 0 1px #ffffff66;
  transition: transform .12s, box-shadow .16s;
  font-family: inherit;
}
.pp-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 38px #d3a64066, 0 0 22px #f1c15f44; }
.pp-cta:active { transform: scale(.98); }
.pp-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border: 1px solid #2c4658;
  border-radius: 14px;
  background: #112736;
  color: #cde1e9;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  font-family: inherit;
}
.pp-cta-ghost:hover { border-color: #55c6d177; }

/* ===== نوار آمار ===== */
.pp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.pp-stat {
  padding: 14px 10px;
  border: 1px solid #2c4658;
  border-radius: 14px;
  background: linear-gradient(160deg, #0e1a26, #091420);
  text-align: center;
}
.pp-stat b { display: block; font-size: 20px; color: #f1c15f; font-weight: 900; }
.pp-stat small { color: #9fb5bd; font-size: 10px; }

/* ===== بخش‌ها ===== */
.pp-section {
  margin-top: 34px;
}
.pp-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  color: #eaf2f6;
}
.pp-section-title::before {
  content: "";
  width: 4px; height: 20px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f1c15f, #55c6d1);
}

/* ===== کارت‌های ویژگی (سه ماژول) ===== */
.pp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pp-feature {
  position: relative;
  overflow: hidden;
  padding: 18px 14px;
  border: 1px solid #2c4658;
  border-radius: 18px;
  background: linear-gradient(160deg, #122133, #0c1825);
  box-shadow: inset 0 1px #ffffff10, 0 10px 26px #00000055;
  transition: transform .16s, border-color .16s;
}
.pp-feature:hover { transform: translateY(-3px); border-color: #55c6d166; }
.pp-feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pp-c1, #f1c15f), var(--pp-c2, #55c6d1));
}
.pp-feature-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 10px;
  background: linear-gradient(145deg, #1c2c38, #0e1a26);
  border: 1px solid var(--pp-c1, #f1c15f44);
  box-shadow: 0 0 18px var(--pp-glow, #f1c15f22);
}
.pp-feature h3 { margin: 0 0 6px; font-size: 14px; font-weight: 800; color: #eaf2f6; }
.pp-feature p { margin: 0; color: #9fb5bd; font-size: 12px; line-height: 1.8; }

/* ===== مراحل بازی ===== */
.pp-steps {
  display: grid;
  gap: 10px;
}
.pp-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #2c4658;
  border-radius: 14px;
  background: linear-gradient(160deg, #0e1a26, #091420);
}
.pp-step-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 10px;
  font-weight: 900;
  font-size: 13px;
  color: #132127;
  background: linear-gradient(135deg, #f5d488, #c99135);
  box-shadow: 0 6px 16px #d3a64044;
}
.pp-step h4 { margin: 0 0 3px; font-size: 13px; font-weight: 800; color: #eaf2f6; }
.pp-step p { margin: 0; color: #9fb5bd; font-size: 12px; line-height: 1.7; }

/* ===== گالری/پیش‌نمایش ===== */
.pp-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pp-shot {
  position: relative;
  aspect-ratio: 16/10;
  border: 1px solid #2c4658;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #0e1a26, #060a10);
  display: grid;
  place-items: center;
}
.pp-shot-emoji { font-size: 38px; filter: drop-shadow(0 4px 12px #00000088); }
.pp-shot-label {
  position: absolute;
  bottom: 8px; right: 10px;
  font-size: 10px;
  color: #9fb5bd;
  background: #060a10cc;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid #2c4658;
}

/* ===== فوتر ===== */
.pp-footer {
  margin-top: 36px;
  padding: 18px;
  border: 1px solid #2c4658;
  border-radius: 16px;
  background: linear-gradient(160deg, #0e1a26, #091420);
  text-align: center;
}
.pp-footer p { margin: 0; color: #7e9aa5; font-size: 11px; line-height: 1.9; }
.pp-footer b { color: #f1c15f; }

@media (max-width: 560px) {
  .pp-features { grid-template-columns: 1fr; }
  .pp-gallery { grid-template-columns: 1fr; }
  .pp-hero { padding: 30px 18px 24px; }
}

/* ورود بیرونی با کد ایمیل */
.pp-auth { position:relative; z-index:2; margin-top:16px; padding:20px; border:1px solid #55c6d155; border-radius:18px; background:linear-gradient(145deg,#102435f5,#0a1521f5); box-shadow:0 16px 42px #0007; }
.pp-auth h2 { margin:0 0 6px; color:#f1c15f; font-size:18px; }
.pp-auth p { margin:0 0 14px; color:#9fb5bd; font-size:13px; line-height:1.8; }
.pp-auth form { display:grid; gap:9px; margin-top:8px; }
.pp-auth label { color:#cde1e9; font-size:12px; font-weight:700; }
.pp-auth input { box-sizing:border-box; width:100%; min-height:46px; padding:10px 12px; border:1px solid #2c4658; border-radius:11px; background:#08121c; color:#fff; font:inherit; direction:ltr; text-align:left; }
.pp-auth button { min-height:45px; padding:10px 16px; border:0; border-radius:11px; background:linear-gradient(135deg,#f5d488,#c99135); color:#132127; font:inherit; font-weight:900; cursor:pointer; }
.pp-auth .pp-auth-back { border:1px solid #2c4658; background:#112736; color:#cde1e9; }
#email-auth-message { min-height:1.5em; margin-top:10px; color:#55c6d1; font-size:12px; line-height:1.8; }
#email-auth-message.is-error { color:#ff9188; }

.pp-auth-divider { margin:14px 0 12px; color:#718b98; text-align:center; font-size:12px; }
#google-signin-button { min-height:42px; display:flex; justify-content:center; }


/* Web-first login choices */
.pp-wrap { width: min(1040px, 100%); }
.pp-auth-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:12px; }
.pp-auth-links a { min-height:54px; display:grid; grid-template-columns:18px 1fr; align-content:center; align-items:center; column-gap:8px; padding:8px 11px; border:1px solid #2c4658; border-radius:11px; background:linear-gradient(145deg,#102435,#0b1722); color:#d8e5e6; text-decoration:none; font-size:11px; line-height:1.5; transition:border-color .18s,transform .18s,background .18s; }
.pp-auth-links a:hover { transform:translateY(-2px); border-color:#55c6d188; background:#122b38; }
.pp-auth-links a>span:first-child { grid-row:span 2; color:#55c6d1; font-size:16px; }
.pp-auth-links a>b { color:#9fb5bd; font-size:10px; font-weight:600; }
.pp-auth-links a:first-child>b { color:#55c6d1; font-family:ui-monospace,monospace; }
.pp-cta-telegram { display:inline-flex; align-items:center; gap:8px; padding:13px 18px; border:1px solid #498d8588; border-radius:14px; background:linear-gradient(145deg,#10312f,#102324); color:#b9e0d6; font:700 13px Vazirmatn,Tahoma,system-ui,sans-serif; text-decoration:none; transition:transform .16s,border-color .16s,background .16s; }
.pp-cta-telegram:hover { transform:translateY(-2px); border-color:#65bba8; background:#173b37; }
.pp-hero { min-height:290px; display:flex; flex-direction:column; justify-content:center; background:linear-gradient(90deg,rgba(7,13,19,.97),rgba(7,13,19,.78) 52%,rgba(7,13,19,.68)),url('/assets/img/war_bg.webp') center 48%/cover,linear-gradient(160deg,#122133f2,#0a1422f5); }
.pp-hero p { max-width:600px; }
@media(max-width:600px) { .pp-wrap { width:100%; padding-inline:14px; } .pp-auth-links { grid-template-columns:1fr; } .pp-cta-row { align-items:stretch; } .pp-cta,.pp-cta-telegram,.pp-cta-ghost { justify-content:center; } }
@media(prefers-reduced-motion:reduce) { .pp-feature,.pp-cta,.pp-cta-telegram,.pp-auth-links a { transition:none; } .pp-feature:hover,.pp-cta:hover,.pp-cta-telegram:hover,.pp-auth-links a:hover { transform:none; } #public-preview::before { animation:none !important; } }

.pp-footer .pp-credit{margin:8px 0 0;color:#9eb5bd;font-size:10px;line-height:1.8}
.pp-footer .pp-credit a{color:#f1c15f;text-decoration:none;direction:ltr;unicode-bidi:isolate}
