/* ====================================================================
   بنت السبيت — الصفحة الرئيسية «مجلس الورق الفاخر»
   يبني على توكنز site.css (أخضر مُشبع + ذهبي + Aref Ruqaa / Cairo)
==================================================================== */

/* ---------- الترويسة ---------- */
.lp-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 5vw, 48px);
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(rgba(4,20,15,.72), rgba(4,20,15,0));
  backdrop-filter: blur(6px);
}
.lp-nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.lp-nav-links a { color: var(--cream); opacity: .82; text-decoration: none; font-weight: 600; font-size: 15px; transition: opacity .15s, color .15s; }
.lp-nav-links a:hover { opacity: 1; color: var(--gold); }

/* ---------- أزرار (توسيع site.css) ---------- */
.btn.big { width: auto; padding: 15px 32px; font-size: 17px; }
.linklike { background: none; border: none; color: var(--gold); font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; padding: 0; }
.linklike:hover { text-decoration: underline; }

/* ---------- ورقة اللعب (وجه فاخر) ---------- */
.pc {
  --w: clamp(74px, 15vw, 104px);
  width: var(--w); height: calc(var(--w) * 1.42);
  background: linear-gradient(158deg, #fbf8ef 0%, #efe9d6 100%);
  border-radius: calc(var(--w) * 0.1);
  border: 1px solid #cdc4a8;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.6);
  position: relative; flex-shrink: 0; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.pc.black { color: #1b2430; }
.pc.red { color: var(--red); }
.pc .ci {
  position: absolute; top: calc(var(--w) * 0.08); right: calc(var(--w) * 0.11);
  font-size: calc(var(--w) * 0.3); line-height: .9; text-align: center; font-weight: 900;
}
.pc .ci small { display: block; font-size: calc(var(--w) * 0.26); }
.pc .pip { font-size: calc(var(--w) * 0.6); opacity: .9; }
.pc .foil {
  position: absolute; bottom: calc(var(--w) * 0.08); left: calc(var(--w) * 0.1);
  font-family: 'Aref Ruqaa', serif; font-size: calc(var(--w) * 0.26);
  color: var(--gold-2); font-weight: 700;
}
.pc.lg { --w: clamp(96px, 26vw, 140px); }

/* ---------- البطل ---------- */
.hero {
  position: relative; text-align: center;
  padding: clamp(24px, 6vh, 60px) clamp(16px, 5vw, 40px) clamp(48px, 8vh, 90px);
  display: flex; flex-direction: column; align-items: center;
}
.hero-glow {
  position: absolute; top: 8%; left: 50%; transform: translateX(-50%);
  width: min(680px, 90vw); height: 420px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(217,180,74,.22), transparent 68%);
  filter: blur(20px);
}
.hero-title {
  font-family: 'Aref Ruqaa', serif; font-weight: 700;
  font-size: clamp(3rem, 12vw, 6rem); line-height: 1; letter-spacing: -0.02em;
  color: var(--gold); position: relative; z-index: 2;
  text-shadow: 0 6px 30px rgba(0,0,0,.45);
  text-wrap: balance;
  animation: rise-in .9s cubic-bezier(.16,1,.3,1) both;
}
.hero-tag {
  max-width: 34ch; margin: 18px auto 0; font-size: clamp(15px, 2.4vw, 18px);
  line-height: 1.8; color: rgba(247,243,232,.86); position: relative; z-index: 2;
  text-wrap: pretty;
  animation: rise-in .9s cubic-bezier(.16,1,.3,1) .12s both;
}
.hero-tag b { color: var(--gold); font-weight: 700; }

/* يد الورق المروحية */
.hand-fan {
  position: relative; z-index: 1;
  height: clamp(190px, 34vw, 260px);
  width: min(520px, 92vw);
  margin: clamp(20px, 4vh, 40px) auto clamp(28px, 5vh, 48px);
  display: flex; align-items: flex-start; justify-content: center;
}
.hand-fan .pc {
  position: absolute; top: 0;
  transform-origin: bottom center;
  --rot: calc((var(--i) - 2) * 15deg);
  --x: calc((var(--i) - 2) * clamp(38px, 8vw, 60px));
  transform: translateX(var(--x)) rotate(var(--rot));
  animation: deal .8s cubic-bezier(.16,1,.3,1) both;
  animation-delay: calc(.25s + var(--i) * .1s);
}
/* الورقتان الخطرتان تبرزان بإطار ذهبي */
.hand-fan .pc .foil { color: var(--red); }
.hand-fan .pc:has(.foil) { box-shadow: 0 12px 32px rgba(0,0,0,.5), 0 0 0 2px var(--gold-soft), inset 0 1px 0 rgba(255,255,255,.6); }

@keyframes deal {
  from { opacity: 0; transform: translateX(0) rotate(0) translateY(40px) scale(.9); }
  to   { opacity: 1; transform: translateX(var(--x)) rotate(var(--rot)); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; position: relative; z-index: 2;
  animation: rise-in .9s cubic-bezier(.16,1,.3,1) .9s both; }

/* ---------- أقسام عامة ---------- */
.section { padding: clamp(50px, 9vh, 100px) clamp(18px, 5vw, 48px); max-width: 1080px; margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: clamp(30px, 5vh, 54px); }
.sec-head h2 { font-family: 'Aref Ruqaa', serif; font-size: clamp(1.9rem, 5.5vw, 3rem); color: var(--gold); line-height: 1.2; text-wrap: balance; }
.sec-head p { max-width: 46ch; margin: 14px auto 0; font-size: clamp(14.5px, 2.2vw, 17px); line-height: 1.75; color: rgba(247,243,232,.82); text-wrap: pretty; }
.sec-head p b { color: var(--cream); font-weight: 700; }

/* ---------- الأوراق الخطرة ---------- */
.danger-cards { display: flex; gap: clamp(16px, 5vw, 44px); justify-content: center; flex-wrap: wrap; }
.danger { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.danger .d-val {
  font-family: 'Aref Ruqaa', serif; font-size: clamp(2rem, 6vw, 2.8rem); color: var(--gold);
  line-height: 1; margin-top: 4px;
}
.danger .d-name { font-size: 14px; font-weight: 700; opacity: .85; }
.how-note {
  max-width: 52ch; margin: clamp(34px, 5vh, 50px) auto 0; text-align: center;
  font-size: clamp(14.5px, 2.2vw, 16.5px); line-height: 1.85; color: rgba(247,243,232,.82);
  padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(0,0,0,.18);
}
.how-note b { color: var(--gold); }

/* ---------- المزايا ---------- */
.feat-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
.feat {
  padding: clamp(22px, 3vw, 30px); border-radius: 18px;
  background: linear-gradient(165deg, rgba(16,69,58,.55), rgba(8,44,34,.4));
  border: 1px solid var(--line);
}
.feat-lead { grid-column: 1 / -1; background: linear-gradient(150deg, rgba(20,82,66,.7), rgba(8,44,34,.45)); }
.feat-icon { font-size: 30px; margin-bottom: 12px; }
.feat h3 { font-family: 'Aref Ruqaa', serif; font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--gold); margin-bottom: 8px; }
.feat p { font-size: 15px; line-height: 1.8; color: rgba(247,243,232,.92); max-width: 60ch; }
@media (max-width: 640px) { .feat-grid { grid-template-columns: 1fr; } }

/* ---------- سُلّم الألقاب ---------- */
.rank-ladder { display: flex; gap: 12px; overflow-x: auto; padding: 6px 2px 16px; scroll-snap-type: x mandatory; }
.rank-step {
  flex: 0 0 auto; min-width: 150px; scroll-snap-align: center;
  padding: 20px 18px; border-radius: 16px; text-align: center;
  background: rgba(0,0,0,.24); border: 1px solid var(--line);
  position: relative;
}
.rank-step .r-num { font-family: 'Aref Ruqaa', serif; font-size: 13px; opacity: .5; }
.rank-step .r-name { font-family: 'Aref Ruqaa', serif; font-size: 21px; font-weight: 700; margin: 6px 0; }
.rank-step .r-stars { font-size: 14px; letter-spacing: 2px; }
.rank-ladder::-webkit-scrollbar { height: 6px; }
.rank-ladder::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }

/* ---------- نداء أخير ---------- */
.final-cta { padding: clamp(60px, 11vh, 120px) clamp(18px, 5vw, 48px); text-align: center; }
.fc-inner {
  max-width: 620px; margin: 0 auto; padding: clamp(36px, 6vw, 60px) clamp(24px, 5vw, 50px);
  border-radius: 28px; border: 1px solid var(--gold-soft);
  background:
    radial-gradient(ellipse at top, rgba(217,180,74,.14), transparent 70%),
    linear-gradient(160deg, rgba(16,69,58,.75), rgba(8,44,34,.6));
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.fc-inner h2 { font-family: 'Aref Ruqaa', serif; font-size: clamp(2.2rem, 7vw, 3.4rem); color: var(--gold); line-height: 1.1; }
.fc-inner p { margin: 14px auto 26px; font-size: clamp(15px, 2.4vw, 18px); color: rgba(247,243,232,.86); max-width: 40ch; }

/* ---------- تذييل ---------- */
.lp-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding: 30px clamp(18px, 5vw, 48px); border-top: 1px solid var(--line);
  background: rgba(4,20,15,.4);
}
.foot-links { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.foot-links a { color: rgba(247,243,232,.82); text-decoration: none; }
.foot-links a:hover { color: var(--gold); }
.foot-links span { opacity: .4; }

/* ---------- نافذة الدخول ---------- */
.auth-modal { position: relative; width: min(420px, 94vw); }
.modal-close { position: absolute; top: 14px; left: 16px; background: none; border: none; color: var(--cream); font-size: 20px; cursor: pointer; opacity: .6; }
.modal-close:hover { opacity: 1; }
.auth-logo { font-family: sans-serif; font-size: 46px; color: var(--gold); text-align: center; filter: drop-shadow(0 0 10px var(--gold-soft)); margin-bottom: 6px; }
.hide { display: none; }

/* ---------- كشف الأقسام عند التمرير — مدفوع بالتمرير، والمحتوى ظاهر افتراضياً ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 2% cover 22%; }
  }
}
@keyframes reveal-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- حركة مخفّضة ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-title, .hero-tag, .hero-cta, .hand-fan .pc { animation: none !important; }
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- نافذة/طبقة تراكب (z-index دلالي فوق الترويسة) ---------- */
.hidden { display: none !important; }
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4,20,15,.82); backdrop-filter: blur(7px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: overlay-in .2s ease;
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: linear-gradient(160deg, #10453a, #0a3329);
  border: 1px solid var(--gold-soft); border-radius: 22px;
  padding: 30px 26px; width: min(430px, 94vw); max-height: 92vh; overflow-y: auto;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
  animation: modal-in .32s cubic-bezier(.16,1,.3,1);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .overlay, .modal { animation: none; } }
