*{box-sizing:border-box;margin:0;padding:0}html{scroll-behavior:smooth}body{background:#050b08;color:#f4ead6;font-family:Arial,Helvetica,sans-serif;line-height:1.6}a{color:inherit;text-decoration:none}img{display:block;max-width:100%}.site-header{position:fixed;top:0;left:0;z-index:1000;width:100%;border-bottom:1px solid rgba(212,169,73,.25);background:rgba(3,10,7,.9);backdrop-filter:blur(14px)}.navigation{width:min(1180px,92%);min-height:78px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:30px}.brand{color:#d7ad4f;font-family:Georgia,"Times New Roman",serif;font-size:1.7rem;font-weight:bold;letter-spacing:3px}.navigation-links{display:flex;align-items:center;gap:26px}.navigation-links a{color:#eee4d0;font-size:.95rem}.navigation-links a:hover{color:#d7ad4f}.navigation-play{padding:11px 19px;border:1px solid #d7ad4f;border-radius:6px;background:linear-gradient(135deg,#e1b85b,#a87321);color:#111;font-weight:bold}.hero{min-height:100vh;padding:125px 5% 70px;position:relative;overflow:hidden;display:flex;align-items:center;background:radial-gradient(circle at 70% 35%,rgba(30,95,71,.28),transparent 35%),radial-gradient(circle at 20% 80%,rgba(176,121,31,.13),transparent 30%),linear-gradient(135deg,#050907,#07130d 55%,#020604)}.hero-container{position:relative;z-index:2;width:min(1180px,100%);margin:auto;display:grid;grid-template-columns:1fr 1.05fr;align-items:center;gap:65px}.eyebrow{margin-bottom:12px;color:#d7ad4f;font-size:.85rem;font-weight:bold;letter-spacing:4px;text-transform:uppercase}.hero h1{color:#e0b65a;font-family:Georgia,"Times New Roman",serif;font-size:clamp(4rem,9vw,7.5rem);line-height:.92;letter-spacing:4px}.hero h2{max-width:650px;margin-top:25px;color:#fff7e6;font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.7rem,3vw,2.7rem);line-height:1.2}.hero-description{max-width:620px;margin-top:23px;color:#cfc8b9;font-size:1.08rem}.hero-buttons{margin-top:34px;display:flex;flex-wrap:wrap;gap:15px}.primary-button,.secondary-button{min-width:175px;padding:15px 23px;border-radius:7px;text-align:center;font-weight:bold}.primary-button{background:linear-gradient(135deg,#e7bd60,#a66d1c);color:#0a0a07}.secondary-button{border:1px solid rgba(220,179,84,.7);background:rgba(5,14,9,.7);color:#e9d7aa}.hero-art img{width:100%;border:1px solid rgba(219,177,80,.35);border-radius:10px;box-shadow:0 30px 70px rgba(0,0,0,.5)}.scroll-indicator{position:absolute;bottom:25px;left:50%;z-index:3;transform:translateX(-50%);color:#d5b45f;font-size:.8rem;letter-spacing:2px;text-align:center}.scroll-arrow{display:block;margin-top:5px;font-size:1.4rem}.section{padding:100px 5%}.section-container{width:min(1180px,100%);margin:auto}.section-heading{margin-bottom:15px;color:#e2b95e;font-family:Georgia,"Times New Roman",serif;font-size:clamp(2rem,5vw,3.3rem);text-align:center}.section-introduction{max-width:760px;margin:0 auto 55px;color:#aaa89f;text-align:center}.about-section{background:#f0e9dc;color:#161712}.about-layout{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:65px}.about-section .section-heading{color:#183c2c;text-align:left}.about-text p{margin-top:18px;color:#494a43;font-size:1.05rem}.about-image img{border-radius:10px}.features-section{background:#07100b}.features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.feature-card{min-height:230px;padding:30px;border:1px solid rgba(217,174,77,.2);border-radius:10px;background:linear-gradient(145deg,rgba(20,40,29,.85),rgba(7,14,10,.9))}.feature-icon{display:grid;width:55px;height:55px;margin-bottom:22px;border:1px solid #c99c3a;border-radius:50%;place-items:center;font-size:1.6rem}.feature-card h3{margin-bottom:10px;color:#f0d995}.feature-card p{color:#a9aea8}.cards-section{background:#eee7db;color:#151713}.cards-section .section-heading{color:#173c2b}.cards-section .section-introduction{color:#5f625b}.cards-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}.game-card{min-height:250px;padding:25px 18px;border:1px solid #d4c5aa;border-radius:12px;background:linear-gradient(150deg,#fffdf8,#e8dfcf);text-align:center}.card-symbol{margin-bottom:20px;color:#7c1818;font-family:Georgia,"Times New Roman",serif;font-size:4rem;line-height:1}.game-card:nth-child(2) .card-symbol,.game-card:nth-child(4) .card-symbol{color:#111}.game-card h3{margin-bottom:10px;color:#173b2a}.game-card p{color:#5a5a54}.gallery-section{background:#07100b}.gallery-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:24px}.gallery-main,.gallery-small{overflow:hidden;border:1px solid rgba(215,173,79,.28);border-radius:10px}.gallery-main img,.gallery-small img{width:100%;height:100%;object-fit:cover}.gallery-side{display:grid;gap:24px}.support-section{background:linear-gradient(rgba(3,15,10,.83),rgba(3,15,10,.93)),url("assets/images/og-preview.png") center/cover}.support-box{max-width:900px;margin:auto;padding:55px;border:1px solid rgba(226,183,83,.4);border-radius:12px;background:rgba(4,18,12,.88);text-align:center}.support-box h2{color:#e1b95e;font-size:clamp(2rem,4vw,3rem)}.support-box p{max-width:660px;margin:18px auto 30px;color:#c8c6be}.site-footer{padding:48px 5% 25px;border-top:1px solid rgba(215,173,79,.2);background:#020604}.footer-container{width:min(1180px,100%);margin:auto}.footer-top{display:flex;align-items:flex-start;justify-content:space-between;gap:35px}.footer-brand h2{color:#d8ad4c}.footer-brand p{margin-top:5px;color:#858a84}.footer-links{display:flex;flex-wrap:wrap;gap:20px}.footer-links a{color:#b7b9b5}.footer-bottom{margin-top:35px;padding-top:22px;border-top:1px solid rgba(255,255,255,.08);color:#797e79;font-size:.88rem;text-align:center}html[lang="ar"] body{direction:rtl;font-family:"Tajawal",Arial,sans-serif}html[lang="ar"] .hero h1,html[lang="ar"] .section-heading,html[lang="ar"] .support-box h2,html[lang="ar"] .footer-brand h2,html[lang="ar"] .brand{font-family:"Tajawal",Arial,sans-serif}html[lang="ar"] .hero-content,html[lang="ar"] .about-text{text-align:right}html[lang="ar"] .about-section .section-heading{text-align:right}html[lang="ar"] .navigation,html[lang="ar"] .footer-top{direction:rtl}@media(max-width:900px){.navigation-links{display:none}.hero-container,.about-layout,.gallery-grid{grid-template-columns:1fr}.hero{padding-top:120px;text-align:center}.hero-description{margin-right:auto;margin-left:auto}.hero-buttons{justify-content:center}.features-grid{grid-template-columns:repeat(2,1fr)}.cards-grid{grid-template-columns:repeat(2,1fr)}.about-section .section-heading{text-align:center}.footer-top{align-items:center;flex-direction:column;text-align:center}.footer-links{justify-content:center}html[lang="ar"] .hero-content,html[lang="ar"] .about-text,html[lang="ar"] .about-section .section-heading{text-align:center}}@media(max-width:600px){.section{padding:75px 6%}.brand{font-size:1.35rem}.navigation-play{padding:9px 13px;font-size:.85rem}.features-grid,.cards-grid{grid-template-columns:1fr}.hero h1{font-size:3.5rem}.support-box{padding:35px 22px}}
/* Legal and contact pages */

.legal-page {
  min-height: 80vh;
  padding-top: 140px;
  background: #eee7db;
  color: #1d211c;
}

.legal-page h1 {
  color: #173c2b;
  text-align: left;
}

.legal-page h2 {
  margin-top: 32px;
  margin-bottom: 10px;
  color: #173c2b;
}

.legal-page p {
  max-width: 900px;
  margin-top: 12px;
  color: #4e534c;
  font-size: 1.03rem;
}

.legal-page a {
  color: #8b641f;
  font-weight: bold;
}

html[lang="ar"] .legal-page h1 {
  text-align: right;
}

/* Improved Arabic homepage layout */
html[lang="ar"] .navigation-links,
html[lang="ar"] .footer-links,
html[lang="ar"] .hero-buttons {
  direction: rtl;
}
html[lang="ar"] .hero-container {
  direction: rtl;
}
html[lang="ar"] .hero h1 {
  letter-spacing: 0;
  line-height: 1.05;
}
html[lang="ar"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
}
html[lang="ar"] .feature-card,
html[lang="ar"] .game-card {
  text-align: right;
}
html[lang="ar"] .game-card .card-symbol {
  text-align: center;
}
html[lang="ar"] .footer-brand {
  text-align: right;
}
@media (max-width: 900px) {
  html[lang="ar"] .footer-brand,
  html[lang="ar"] .feature-card,
  html[lang="ar"] .game-card {
    text-align: center;
  }
}

/* Screenshot gallery captions */
.gallery-figure{margin:0;}
.gallery-figure img{width:100%;height:100%;object-fit:cover;display:block;}
.gallery-figure figcaption{
  padding:10px 14px;font-size:.82rem;color:#c8c6be;
  background:rgba(4,18,12,.9);border-top:1px solid rgba(215,173,79,.2);
  text-align:center;
}

/* ===================== Hero: glow, floating cards, particles ===================== */
.hero{ position:relative; overflow:hidden; }
.hero-glow{
  position:absolute; top:-10%; left:50%; transform:translateX(-50%);
  width:600px; height:600px; max-width:80vw;
  background:radial-gradient(circle, rgba(215,173,79,0.28) 0%, rgba(215,173,79,0.08) 40%, transparent 70%);
  pointer-events:none; z-index:0; animation:heroGlowPulse 6s ease-in-out infinite;
}
@keyframes heroGlowPulse{
  0%,100%{ opacity:.7; transform:translateX(-50%) scale(1); }
  50%{ opacity:1; transform:translateX(-50%) scale(1.08); }
}
.hero-glow-title{ position:relative; z-index:1; text-shadow:0 0 40px rgba(215,173,79,0.35); }

.hero-floaters{ position:absolute; inset:0; pointer-events:none; z-index:0; overflow:hidden; }
.hero-float-card{
  position:absolute; font-size:34px; color:rgba(215,173,79,0.35);
  animation:heroCardFloat 9s ease-in-out infinite;
}
.fc1{ top:12%; left:6%; animation-delay:0s; }
.fc2{ top:60%; left:10%; animation-delay:1.5s; color:rgba(200,60,80,0.3); }
.fc3{ top:20%; right:8%; animation-delay:3s; color:rgba(200,60,80,0.3); }
.fc4{ top:65%; right:6%; animation-delay:4.5s; }
@keyframes heroCardFloat{
  0%,100%{ transform:translateY(0) rotate(-6deg); opacity:.5; }
  50%{ transform:translateY(-24px) rotate(6deg); opacity:.9; }
}
.hero-particle{
  position:absolute; width:5px; height:5px; border-radius:50%;
  background:rgba(215,173,79,0.6); animation:heroParticleDrift 7s linear infinite;
}
.p1{ top:20%; left:20%; animation-delay:0s; }
.p2{ top:75%; left:30%; animation-delay:1.2s; }
.p3{ top:35%; left:80%; animation-delay:2.4s; }
.p4{ top:85%; left:70%; animation-delay:3.6s; }
.p5{ top:10%; left:55%; animation-delay:4.8s; }
@keyframes heroParticleDrift{
  0%{ transform:translateY(0) scale(1); opacity:0; }
  15%{ opacity:.8; }
  85%{ opacity:.6; }
  100%{ transform:translateY(-90px) scale(0.4); opacity:0; }
}
.hero-play-pulse{ position:relative; animation:heroPlayPulse 2.4s ease-in-out infinite; }
@keyframes heroPlayPulse{
  0%,100%{ box-shadow:0 0 0 0 rgba(215,173,79,0.45); }
  50%{ box-shadow:0 0 0 14px rgba(215,173,79,0); }
}
@media (prefers-reduced-motion: reduce){
  .hero-glow, .hero-float-card, .hero-particle, .hero-play-pulse{ animation:none !important; }
}

/* ===================== Stats section ===================== */
.stats-section{ padding-top:10px; padding-bottom:10px; }
.stats-grid{
  display:grid; grid-template-columns:repeat(5,1fr); gap:16px;
}
@media (max-width:900px){ .stats-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:560px){ .stats-grid{ grid-template-columns:repeat(2,1fr); } }
.stat-card{
  text-align:center; padding:20px 12px; border-radius:14px;
  background:rgba(215,173,79,0.05); border:1px solid rgba(215,173,79,0.18);
  transition:transform .25s ease, background .25s ease;
}
.stat-card:hover{ transform:translateY(-4px); background:rgba(215,173,79,0.1); }
.stat-icon{ font-size:26px; margin-bottom:6px; }
.stat-value{ font-family:Georgia,serif; font-size:22px; color:#d7ad4f; font-weight:700; }
.stat-label{ font-size:12px; color:#a9a294; text-transform:uppercase; letter-spacing:1px; margin-top:4px; }

/* ===================== Why Zhaimer section ===================== */
.why-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:18px; margin-top:24px;
}
.why-card{
  padding:22px 18px; border-radius:14px; background:rgba(255,255,255,0.02);
  border:1px solid rgba(215,173,79,0.14); transition:transform .25s ease, border-color .25s ease;
}
.why-card:hover{ transform:translateY(-4px); border-color:rgba(215,173,79,0.4); }
.why-icon{ font-size:28px; margin-bottom:10px; }
.why-card h3{ font-size:16px; color:#eee4c9; margin:0 0 8px; }
.why-card p{ font-size:13px; color:#a9a294; line-height:1.6; margin:0; }

/* ===================== Game Modes section ===================== */
.modes-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px; margin-top:24px;
}
.mode-card{
  padding:24px 20px; border-radius:14px; background:rgba(255,255,255,0.02);
  border:1px solid rgba(215,173,79,0.14); text-align:center;
  transition:transform .25s ease, border-color .25s ease;
}
.mode-card:hover{ transform:translateY(-4px); border-color:rgba(215,173,79,0.4); }
.mode-card.mode-available{ border-color:rgba(127,176,105,0.4); background:rgba(127,176,105,0.05); }
.mode-icon{ font-size:30px; margin-bottom:10px; }
.mode-card h3{ font-size:16px; color:#eee4c9; margin:0 0 8px; }
.mode-card p{ font-size:13px; color:#a9a294; line-height:1.6; margin:0 0 14px; }
.mode-badge{
  display:inline-block; font-size:11px; letter-spacing:1px; text-transform:uppercase;
  padding:4px 12px; border-radius:12px; border:1px solid rgba(215,173,79,0.3); color:#d7ad4f;
}
.mode-badge-live{ border-color:rgba(127,176,105,0.5); color:#7fb069; background:rgba(127,176,105,0.1); }

/* Game Modes v2 — 4-card layout with intro line and CTA */
.modes-intro{ text-align:center; color:#a9a294; font-size:14px; margin:8px 0 4px; }
.modes-grid-4{ grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
.modes-cta{ text-align:center; margin-top:28px; }

/* Always-visible Download/Install button */
.download-icon-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-width:175px; padding:15px 23px; border-radius:7px; text-align:center;
  border:1px solid rgba(220,179,84,.7); background:rgba(5,14,9,.7); color:#e9d7aa;
  cursor:pointer; font-weight:bold; font-size:1rem; font-family:inherit;
  transition:transform .2s ease, background .2s ease;
}
.download-icon-btn:hover{ background:rgba(215,173,79,0.15); transform:translateY(-2px); }
.download-icon{ font-size:1.1em; line-height:1; }
.download-label{ font-size:1em; }
.download-hint{
  max-width:360px; margin:10px auto 0; padding:10px 14px; border-radius:8px;
  background:rgba(255,255,255,0.04); border:1px solid rgba(215,173,79,0.2);
  color:#a9a294; font-size:12px; line-height:1.5; text-align:center;
}

/* Persistent floating Home button — stays fixed at the top of the screen
   regardless of scroll position, on every page, so getting back to the
   homepage never requires scrolling down to the footer. */
.floating-home-btn{
  position:fixed; top:16px; inset-inline-start:16px; z-index:3000;
  display:flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:50%;
  background:rgba(8,13,18,0.85); border:1px solid rgba(215,173,79,0.4);
  color:#e9c65c; font-size:20px; text-decoration:none;
  box-shadow:0 4px 14px rgba(0,0,0,0.4);
  backdrop-filter:blur(4px);
  transition:transform .2s ease, background .2s ease;
}
.floating-home-btn:hover{ transform:scale(1.08); background:rgba(215,173,79,0.15); }
