/* ===== الصفحة الرئيسية — ضرغام ===== */
.hm-hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.hm-hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; min-height: 560px; }
.hm-title { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.08; margin: 6px 0 18px; }
.hm-title__l1 { display: block; color: var(--text); }
.hm-title__l2 { display: block; background: linear-gradient(110deg, var(--gold-3), var(--gold-2) 35%, var(--ember-2) 55%, var(--gold-2) 75%, var(--gold-3)); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: euShimmer 6s ease-in-out infinite; filter: drop-shadow(0 6px 24px rgba(var(--gold-rgb), .25)); }
.hm-lead { font-size: 1.1rem; color: var(--text-2); max-width: 640px; margin-bottom: 26px; }
.hm-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hm-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hm-stats li { display: flex; align-items: baseline; gap: 8px; }
.hm-stats b { font-family: var(--font-num); font-size: 2rem; color: var(--gold-2); line-height: 1; text-shadow: 0 0 20px rgba(var(--gold-rgb), .35); }
.hm-stats span { color: var(--text-3); font-size: .85rem; }

/* الشعار الكبير مع مدارات الأيقونات */
.hm-crest { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.hm-crest__ring { position: absolute; border-radius: 50%; border: 1px solid var(--line-strong); }
.hm-crest__ring--1 { inset: 6%; border-style: dashed; animation: euSpin 60s linear infinite; }
.hm-crest__ring--2 { inset: 18%; border-color: rgba(var(--ember-rgb), .35); animation: euSpin 40s linear infinite reverse; }
.hm-crest__ring--2::before, .hm-crest__ring--2::after { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--ember-2); box-shadow: 0 0 12px var(--ember); top: -4px; left: calc(50% - 4px); }
.hm-crest__ring--2::after { top: auto; bottom: -4px; }
.hm-crest__glow { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--gold-rgb), .35), rgba(var(--ember-rgb), .12) 55%, transparent 72%); filter: blur(12px); animation: hmBreath 4s ease-in-out infinite; }
@keyframes hmBreath { 0%, 100% { transform: scale(.95); opacity: .8; } 50% { transform: scale(1.08); opacity: 1; } }
.hm-crest__logo { position: relative; width: 50%; height: 50%; object-fit: contain; border-radius: 50%; border: 3px solid var(--gold); padding: 8px; background: radial-gradient(circle at 35% 30%, var(--bg-4), var(--bg-1)); box-shadow: 0 0 0 8px var(--bg-0), 0 0 0 9px var(--line-strong), 0 30px 60px rgba(0,0,0,.6), var(--glow-gold); animation: euFloat 6s ease-in-out infinite; }
.hm-orbit { position: absolute; inset: 6%; animation: euSpin 36s linear infinite; }
.hm-orbit img { position: absolute; width: 46px; height: 46px; object-fit: contain; top: 50%; left: 50%; margin: -23px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.65)); transform: rotate(calc(var(--i) * 60deg)) translateY(-184px) rotate(calc(var(--i) * -60deg)); animation: hmCounter 36s linear infinite; }
@keyframes hmCounter { from { rotate: 0deg; } to { rotate: -360deg; } }
.hm-crest__char { position: absolute; bottom: -4%; width: 26%; filter: drop-shadow(0 10px 20px rgba(0,0,0,.7)); animation: euFloat 7s ease-in-out infinite; }
.hm-crest__char--a { left: -4%; animation-delay: -2s; }
.hm-crest__char--b { right: -4%; transform: scaleX(-1); animation-delay: -4s; }
.hm-hero__ground { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.35)); pointer-events: none; }

/* شبكة الأدوات */
.hm-tools .eu-tile { min-height: 250px; }

/* شريط الأحداث */
.hm-events { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.hm-event { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(var(--gold-rgb), .06), rgba(0,0,0,.2)); color: var(--text-2); text-align: center; font-size: .82rem; font-weight: 700; transition: all .35s var(--ease); overflow: hidden; }
.hm-event::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 20%, rgba(var(--ember-rgb), .22), transparent 60%); opacity: 0; transition: opacity .35s; }
.hm-event img { position: relative; width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); transition: transform .4s var(--ease-bounce); }
.hm-event span { position: relative; }
.hm-event:hover { transform: translateY(-6px); border-color: var(--gold); color: var(--gold-2); box-shadow: var(--shadow-2), var(--glow-gold); }
.hm-event:hover::before { opacity: 1; }
.hm-event:hover img { transform: scale(1.18) rotate(-6deg); }

/* قسم اللعبة */
.hm-game { display: grid; grid-template-columns: 340px 1fr; align-items: stretch; }
.hm-game__art { position: relative; min-height: 360px; background: radial-gradient(ellipse at 50% 100%, rgba(var(--ember-rgb), .25), transparent 60%), linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.35)); border-inline-end: 1px solid var(--line); overflow: hidden; }
.hm-game__art::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px); background-size: 28px 28px; opacity: .6; }
.hm-game__king { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); height: 72%; filter: drop-shadow(0 16px 24px rgba(0,0,0,.75)); animation: euFloat 6s ease-in-out infinite; }
.hm-game__u { position: absolute; bottom: 10px; height: 38%; opacity: .9; filter: drop-shadow(0 10px 16px rgba(0,0,0,.7)); animation: euFloat 7s ease-in-out infinite; }
.hm-game__u--1 { left: 6%; animation-delay: -1s; }
.hm-game__u--2 { right: 6%; animation-delay: -3s; transform: scaleX(-1); }
.hm-game__u--3 { left: 50%; bottom: 0; height: 30%; transform: translateX(-50%) translateY(10%); opacity: .55; animation-delay: -5s; }
.hm-game__text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--gold-2); margin: 6px 0 14px; }
.hm-game__text p { color: var(--text-2); font-size: 1rem; }
.hm-res { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.hm-res span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.25); font-size: .8rem; color: var(--text-2); }
.hm-res span img { width: 22px; height: 16px; object-fit: contain; }
.hm-res span i { font-style: normal; }

/* الأسئلة الشائعة */
.hm-faq-wrap { max-width: 860px; }
.hm-faq { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); margin-bottom: 10px; overflow: hidden; transition: border-color .3s; }
.hm-faq[open] { border-color: var(--line-strong); }
.hm-faq summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-weight: 800; color: var(--text); }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary i { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); transition: transform .3s var(--ease), background .3s; flex-shrink: 0; }
.hm-faq summary i svg { width: 16px; height: 16px; }
html[dir="rtl"] .hm-faq summary i svg { transform: scaleX(-1); }
.hm-faq[open] summary i { transform: rotate(90deg); background: rgba(var(--gold-rgb), .12); }
.hm-faq p { margin: 0; padding: 0 20px 18px; color: var(--text-2); font-size: .95rem; }

@media (max-width: 1100px) {
  .hm-hero__in { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .hm-lead { margin-inline: auto; }
  .hm-cta, .hm-stats { justify-content: center; }
  .hm-crest { max-width: 320px; }
  .hm-orbit img { transform: rotate(calc(var(--i) * 60deg)) translateY(-134px) rotate(calc(var(--i) * -60deg)); width: 36px; height: 36px; margin: -18px; }
  .hm-events { grid-template-columns: repeat(4, 1fr); }
  .hm-game { grid-template-columns: 1fr; }
  .hm-game__art { min-height: 260px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .hm-hero { padding: 40px 0 20px; }
  .hm-crest { max-width: 260px; }
  .hm-orbit img { transform: rotate(calc(var(--i) * 60deg)) translateY(-108px) rotate(calc(var(--i) * -60deg)); width: 30px; height: 30px; margin: -15px; }
  .hm-events { grid-template-columns: repeat(2, 1fr); }
  .hm-cta .eu-btn { width: 100%; }
}
