/* MinElSefr marketing navigation v1 — 2026-11-06.
   One consistent header/footer system on Home, Story, Beta and Arabic Support.
   Mobile navigation uses native <details> so it also works under zero-script CSP. */
body[data-site-page] .mes-mobile-menu{display:none}
body[data-site-page] .mes-site-links a{white-space:nowrap}
body[data-site-page] .mes-site-links a[aria-current="page"]{color:#ffe0a3}
body[data-site-page="beta"] .mes-beta-nav{display:flex;align-items:center;gap:4px;margin-inline:auto}
body[data-site-page="beta"] .mes-beta-nav a{padding:8px 9px;color:#c4dae5;font-size:12px;font-weight:750;text-decoration:none;border-radius:9px;line-height:1.5}
body[data-site-page="beta"] .mes-beta-nav a:hover{background:#193447;color:#fff2d4}
body[data-site-page="home"] .header-status{display:none}
body[data-site-page] .mes-header-start{display:inline-flex;align-items:center;justify-content:center;min-height:43px;min-width:112px;gap:8px;padding:8px 15px;border-radius:11px;text-decoration:none;color:#132b3c;background:linear-gradient(125deg,#f6dfa6,#dda95b);border:1px solid #d0ae70;font-weight:850;font-size:12px;white-space:nowrap;box-shadow:0 6px 19px #0003}
body[data-site-page] .mes-header-start:hover{filter:brightness(1.06)}
body[data-site-page="story"] .story-header,body[data-site-page="beta"] .beta-header{background:#091b2adf;backdrop-filter:blur(15px)}
body[data-site-page="story"] .story-top-nav.mes-site-links{gap:5px}
body[data-site-page="story"] .story-top-nav.mes-site-links a{padding:8px 9px;border-radius:8px;font-size:12px}
body[data-site-page="story"] .story-top-nav.mes-site-links a:hover{background:#1c374a}
body[data-site-page="home"] .main-nav.mes-site-links{gap:1px}
body[data-site-page="home"] .main-nav.mes-site-links a{padding-inline:9px}
body[data-site-page] .mes-footer{border-top:1px solid #4865799c;background:linear-gradient(180deg,#081a28,#06121f);color:#c2d8e4}
body[data-site-page] .mes-footer-inner{display:grid;grid-template-columns:minmax(200px,.8fr) minmax(0,1.5fr);align-items:start;gap:16px 28px;padding-block:33px;max-width:100%}
body[data-site-page] .mes-footer-brand{display:inline-flex;align-items:center;gap:11px;color:#f9dea9;text-decoration:none;font-size:20px;font-weight:850}
body[data-site-page] .mes-footer-brand img{width:40px;height:40px;object-fit:contain;border-radius:10px}
body[data-site-page] .mes-footer-copy{font-size:12px;color:#a7c1d0;line-height:1.9;margin:9px 0 0;max-width:43ch}
body[data-site-page] .mes-footer-links{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:9px 21px;margin:0;padding:3px 0}
body[data-site-page] .mes-footer-links a{color:#c8dbe6;text-decoration:none;font-size:12px;line-height:2;font-weight:650}
body[data-site-page] .mes-footer-links a:hover{color:#ffe0a2}
body[data-site-page] .mes-footer-meta{grid-column:1/-1;font-size:11px;color:#8eabbc;border-top:1px solid #37536565;padding-top:15px;margin-top:4px}
body[data-site-page] .mes-footer-notice{font-size:11px;color:#a3bac9}
body[data-site-page] .mes-footer-links a[aria-current="page"]{color:#f5d292}
body[data-site-page] .mes-footer a:focus-visible,body[data-site-page] .mes-mobile-menu summary:focus-visible,body[data-site-page] .mes-mobile-menu a:focus-visible{outline:3px solid #99e8f6;outline-offset:3px}
body[data-site-page] .mes-mobile-bottom-cta{display:none}
body[data-site-page="story"] .mes-chapters-mobile{display:none}

/* Arabic support page uses the same design without claiming an approved legal policy. */
body[data-site-page="support"] .site-header{position:relative;z-index:32;background:#081a28}
body[data-site-page="support"] .header-inner{min-height:82px}
body[data-site-page="support"] .site-brand{min-width:170px}
body[data-site-page="support"] .mes-site-links{display:flex;align-items:center;gap:3px;margin-inline:auto}
body[data-site-page="support"] .mes-site-links a{padding:9px;color:#c0d6e3;font-size:12px;font-weight:750;text-decoration:none;border-radius:9px}
body[data-site-page="support"] .mes-site-links a:hover{background:#193447;color:#fff2d4}
body[data-site-page="support"] .mes-support-main{padding:clamp(38px,5vw,75px) 0 75px}
body[data-site-page="support"] .mes-support-intro{max-width:800px;margin-bottom:31px}
body[data-site-page="support"] .mes-support-kicker{font-size:12px;color:#f0cc90;font-weight:850}
body[data-site-page="support"] .mes-support-intro h1{margin:11px 0 14px;font-size:clamp(34px,5vw,62px);line-height:1.24;color:#fff8ec}
body[data-site-page="support"] .mes-support-intro p{color:#c0d5df;max-width:75ch;font-size:16px;line-height:1.9}
body[data-site-page="support"] .mes-support-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body[data-site-page="support"] .mes-support-card{min-width:0;padding:24px;border:1px solid #4a6a7c;background:linear-gradient(145deg,#153447,#0c2233);border-radius:19px}
body[data-site-page="support"] .mes-support-card h2{font-size:22px;color:#ffe3a9;margin:0 0 10px}
body[data-site-page="support"] .mes-support-card p,body[data-site-page="support"] .mes-support-card li{font-size:14px;line-height:1.9;color:#c2d6e0}
body[data-site-page="support"] .mes-support-card ul{padding-inline-start:21px;margin:10px 0}
body[data-site-page="support"] .mes-support-card a{display:inline-flex;align-items:center;min-height:44px;margin-top:8px;border:1px solid #bda06b;border-radius:11px;padding:10px 13px;color:#f4d7a2;font-weight:800;text-decoration:none;overflow-wrap:anywhere}
body[data-site-page="support"] .mes-support-card a:hover{background:#7b653323}
body[data-site-page="support"] .mes-support-policies{margin-top:25px;padding:24px;border:1px solid #746547;border-radius:16px;background:#302b2733;scroll-margin-top:100px}
body[data-site-page="support"] .mes-support-policies h2{font-size:21px;color:#f3d39e;margin:0 0 10px}
body[data-site-page="support"] .mes-support-policies p{font-size:13px;color:#bdcbd6;line-height:1.85;margin:0 0 9px}
body[data-site-page="support"] .mes-support-policies a{color:#f4d69b}
@media(max-width:1220px){
 body[data-site-page="home"] .main-nav.mes-site-links a,
 body[data-site-page="story"] .story-top-nav.mes-site-links a,
 body[data-site-page="beta"] .mes-beta-nav a{font-size:11px;padding-inline:6px}
 body[data-site-page="home"] .header-inner{gap:9px}
}
@media(max-width:1060px){
 body[data-site-page="home"] .site-header,
 body[data-site-page="story"] .story-header,
 body[data-site-page="support"] .site-header{position:sticky;top:0;z-index:65}
 body[data-site-page="beta"] .beta-header{position:sticky;top:0;z-index:65}
 body[data-site-page="home"] .header-inner,
 body[data-site-page="story"] .story-top,
 body[data-site-page="beta"] .beta-header,
 body[data-site-page="support"] .header-inner{
   display:flex;align-items:center;flex-wrap:nowrap;min-height:67px;padding-block:9px;gap:9px;
 }
 body[data-site-page="home"] .main-nav.mes-site-links,
 body[data-site-page="story"] .story-top-nav.mes-site-links,
 body[data-site-page="beta"] .mes-beta-nav,
 body[data-site-page="support"] .mes-site-links{display:none!important}
 body[data-site-page] .mes-mobile-menu{display:block;position:static;flex:none;margin-inline-start:auto;order:2}
 body[data-site-page] .mes-mobile-menu>summary{
   display:flex;align-items:center;justify-content:center;gap:7px;list-style:none;cursor:pointer;
   border:1px solid #5a798e;border-radius:11px;background:#122c3e;color:#ebf3f7;
   min-width:44px;min-height:44px;padding:8px 11px;font-size:13px;font-weight:800;user-select:none;
 }
 body[data-site-page] .mes-mobile-menu>summary::-webkit-details-marker{display:none}
 body[data-site-page] .mes-mobile-menu>summary::marker{content:""}
 body[data-site-page] .mes-mobile-menu[open]>summary{border-color:#d4b17b;color:#f7dba7;background:#24394a}
 body[data-site-page] .mes-mobile-panel{
   position:absolute;inset-inline:0;top:100%;z-index:75;
   padding:12px max(16px,env(safe-area-inset-right)) 15px max(16px,env(safe-area-inset-left));
   border:1px solid #54758b;border-top:1px solid #d0af795e;border-radius:0 0 16px 16px;
   background:#0a1f30;box-shadow:0 22px 50px #000b;
 }
 body[data-site-page] .mes-mobile-panel nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 body[data-site-page] .mes-mobile-panel a{display:flex;align-items:center;min-height:45px;padding:9px 12px;border:1px solid #34556b;border-radius:10px;background:#102b3e;color:#d9e8f1;text-decoration:none;font-size:13px;font-weight:750;white-space:normal}
 body[data-site-page] .mes-mobile-panel a[aria-current="page"]{color:#f9dfaf;border-color:#a58a5b}
 body[data-site-page] .mes-mobile-panel a:hover{border-color:#bd9a66}
 body[data-site-page="home"] .header-actions{display:flex;flex:none;order:3;margin:0}
 body[data-site-page="home"] .header-status,body[data-site-page="home"] .header-login{display:none!important}
 body[data-site-page="home"] .header-cta{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:104px;padding:8px 12px;font-size:12px;border-color:#d2ad72}
 body[data-site-page="home"] .site-brand,
 body[data-site-page="story"] .brand,
 body[data-site-page="beta"] .brand,
 body[data-site-page="support"] .site-brand{flex:none;margin:0;min-width:0;order:1}
 body[data-site-page="story"] .return-link,
 body[data-site-page="beta"] .mes-header-start,
 body[data-site-page="support"] .mes-header-start{order:3;display:inline-flex!important;flex:none;margin:0;min-width:104px;padding:8px 11px}
 body[data-site-page="beta"] .header-side{order:3;flex:none;margin:0}
 body[data-site-page="story"] .story-top-nav,
 body[data-site-page="beta"] .beta-status{display:none!important}
 body[data-site-page="story"] .chapters-panel{display:none}
 body[data-site-page="story"] .mes-chapters-mobile{display:block;border:1px solid #54758a;border-radius:13px;background:#0f293c;margin:0 0 18px;overflow:hidden}
 body[data-site-page="story"] .mes-chapters-mobile summary{cursor:pointer;padding:14px 16px;color:#f9ddaa;font-weight:850;font-size:15px;list-style:none;min-height:46px}
 body[data-site-page="story"] .mes-chapters-mobile summary::after{content:"⌄";margin-inline-start:12px}
 body[data-site-page="story"] .mes-chapters-mobile[open] summary::after{content:"⌃"}
 body[data-site-page="story"] .mes-chapters-mobile summary::-webkit-details-marker{display:none}
 body[data-site-page="story"] .mes-chapters-mobile nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:0 12px 12px}
 body[data-site-page="story"] .mes-chapters-mobile nav a{display:flex;align-items:center;min-height:42px;padding:8px;border-radius:9px;border:1px solid #395f74;color:#dceaf0;text-decoration:none;font-size:12px}
 body[data-site-page="story"] .narrative-shell{grid-template-columns:1fr}
 body[data-site-page] .mes-footer-inner{grid-template-columns:1fr}
 body[data-site-page] .mes-footer-links{gap:7px 17px}
 body[data-site-page="story"] .mes-mobile-bottom-cta,
 body[data-site-page="beta"] .mes-mobile-bottom-cta{display:flex}
 body[data-site-page="story"],body[data-site-page="beta"]{padding-bottom:calc(75px + env(safe-area-inset-bottom))}
 body[data-site-page] .mes-mobile-bottom-cta{
   position:fixed;bottom:0;inset-inline:0;z-index:75;
   gap:9px;align-items:center;padding:9px max(14px,env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
   background:#081724f5;border-top:1px solid #d4b67b80;box-shadow:0 -12px 28px #0009
 }
 body[data-site-page] .mes-mobile-bottom-cta a{min-height:47px;display:grid;place-items:center;text-align:center;padding:9px 12px;border-radius:10px;text-decoration:none;font-weight:850}
 body[data-site-page] .mes-mobile-bottom-cta .mes-start{flex:1;color:#132a3b;background:linear-gradient(120deg,#f7dea4,#dfae64)}
 body[data-site-page] .mes-mobile-bottom-cta .mes-login{color:#f9e0b3;border:1px solid #668ca2;background:#12293a}
 body[data-site-page="support"] .mes-support-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
 body[data-site-page="home"] .header-inner,body[data-site-page="story"] .story-top,body[data-site-page="beta"] .beta-header,body[data-site-page="support"] .header-inner{gap:7px}
 body[data-site-page="home"] .site-brand strong,body[data-site-page="story"] .brand strong,body[data-site-page="beta"] .brand strong,body[data-site-page="support"] .site-brand strong{font-size:16px}
 body[data-site-page] .mes-mobile-menu>summary{padding-inline:8px}
 body[data-site-page] .mes-menu-label{display:none}
 body[data-site-page="home"] .header-cta,body[data-site-page] .mes-header-start{min-width:95px;font-size:11px;padding-inline:8px}
 body[data-site-page="home"] .site-brand small,body[data-site-page="story"] .brand small,body[data-site-page="beta"] .brand small,body[data-site-page="support"] .site-brand small{font-size:9px}
 body[data-site-page="home"] .site-brand img,body[data-site-page="story"] .brand img,body[data-site-page="beta"] .brand img,body[data-site-page="support"] .site-brand img{width:39px;height:39px}
 body[data-site-page] .mes-footer-inner{padding-block:24px}
 body[data-site-page] .mes-footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body[data-site-page] .mes-footer-links a{font-size:12px;min-height:40px;display:flex;align-items:center}
 body[data-site-page="story"] .mes-chapters-mobile nav{grid-template-columns:1fr}
}
@media(max-width:355px){
 body[data-site-page="home"] .site-brand small,body[data-site-page="story"] .brand small,body[data-site-page="beta"] .brand small,body[data-site-page="support"] .site-brand small{display:none}
 body[data-site-page="home"] .site-brand img,body[data-site-page="story"] .brand img,body[data-site-page="beta"] .brand img,body[data-site-page="support"] .site-brand img{width:35px;height:35px}
 body[data-site-page="home"] .header-cta,body[data-site-page] .mes-header-start{min-width:90px}
}
@media(prefers-reduced-motion:reduce){
 body[data-site-page] .mes-header-start{transition:none}
 body[data-site-page] .mes-mobile-menu,body[data-site-page] .mes-mobile-panel{scroll-behavior:auto}
}


/* Footer and typography overrides for the original independent page styles. */
body[data-site-page="beta"] .footer.mes-footer{display:block;padding:0;margin-block:23px 0;border-top:1px solid #4865799c}
body[data-site-page="beta"] .mes-footer-inner{padding-block:28px;max-width:none}
body[data-site-page="beta"] .mes-footer-brand{font-weight:850}
body[data-site-page="story"] .story-footer.mes-footer{padding:0}
body[data-site-page="home"] .site-footer.mes-footer .mes-footer-inner{align-items:start}
body[data-site-page="home"] .mes-footer-links,body[data-site-page="story"] .mes-footer-links{margin:0}
body[data-site-page] .mes-site-links a[aria-current="page"]{border-bottom:2px solid #d9b572}
@media(max-width:760px){
 body[data-site-page="home"] .hero-description,
 body[data-site-page="home"] .story-preview-copy p,
 body[data-site-page="home"] .journey-card p,
 body[data-site-page="home"] .feature-status-card p,
 body[data-site-page="home"] .site-update-card p,
 body[data-site-page="home"] .faq-list details p,
 body[data-site-page="story"] .story-lead,
 body[data-site-page="story"] .story-chapter p,
 body[data-site-page="beta"] .hero-lead,
 body[data-site-page="beta"] .install-steps p,
 body[data-site-page="support"] .mes-support-card p{
   font-size:15px;line-height:1.85;
 }
 body[data-site-page="home"] .gameplay-slide-caption p{font-size:14px;line-height:1.8}
 body[data-site-page="story"] .mes-chapters-mobile{scroll-margin-top:80px}
 body[data-site-page="home"] .hero-copy h1{overflow-wrap:break-word}
}


/* Navigation acceptance repairs — 2026-11-06.
   Responsive native menus, one active section, reader-size type and compact headers. */
body[data-site-page="story"] .story-header{position:sticky;top:0;z-index:65}
body[data-site-page="story"]{scroll-padding-top:94px}
body[data-site-page="home"] .main-nav a[aria-current="location"],
body[data-site-page="home"] .main-nav a[aria-current="page"]{
  color:#ffe0a3;
}
body[data-site-page="home"] .main-nav a[aria-current="location"]::after,
body[data-site-page="home"] .main-nav a[aria-current="page"]::after{
  transform:scaleX(1);
}
body[data-site-page="home"] .header-cta{
  background:linear-gradient(125deg,#f6dfa6,#dda95b);
  border-color:#d0ae70;
  color:#132b3c;
  min-height:43px;
  min-width:112px;
  border-radius:11px;
  padding:8px 15px;
  font-size:12px;
  font-weight:850;
  box-shadow:0 6px 19px #0003;
}
body[data-site-page="home"] .header-cta:hover{filter:brightness(1.06);background:linear-gradient(125deg,#f6dfa6,#dda95b)}
body[data-site-page="home"] .hero-copy .hero-description{
  font-size:clamp(15px,1.3vw,17px);
  line-height:1.85;
}
body[data-site-page="home"] #gameplay-lightbox-count,
body[data-site-page="home"] #gameplay-position{
  direction:ltr;
  unicode-bidi:isolate;
  font-variant-numeric:tabular-nums;
}
@media(max-width:760px){
  body[data-site-page="home"] .hero-copy .hero-description{font-size:clamp(15px,3.8vw,16px)}
}
@media(max-width:1060px){
  body[data-site-page] .mes-mobile-panel{
    max-height:calc(100dvh - 82px);
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
  }
  body[data-site-page] .mes-mobile-menu .mes-menu-toggle{
    display:flex;align-items:center;justify-content:center;gap:7px;
    min-width:44px;min-height:44px;padding:8px 11px;
    border:1px solid #5a798e;border-radius:11px;
    background:#122c3e;color:#ebf3f7;
    font-family:inherit;font-size:13px;font-weight:800;line-height:1.4;cursor:pointer;
  }
  body[data-site-page] .mes-mobile-menu .mes-menu-toggle:hover,
  body[data-site-page] .mes-mobile-menu .mes-menu-toggle:focus-visible{
    border-color:#d4b17b;color:#f7dba7;background:#24394a;
  }
  body[data-site-page] .mes-mobile-panel[popover]{
    position:fixed;
    inset:68px 0 auto;
    box-sizing:border-box;
    width:100%;
    max-width:none;
    margin:0;
    max-height:calc(100dvh - 78px);
    overflow-y:auto;
    overscroll-behavior:contain;
    z-index:80;
  }
  body[data-site-page] .mes-mobile-panel[popover]:not(:popover-open){display:none}
  body[data-site-page]:has(.mes-mobile-menu[open]) .entry-mobile-bar,
  body[data-site-page]:has(.mes-mobile-menu[open]) .mes-mobile-bottom-cta,
  body[data-site-page]:has(.mes-mobile-panel:popover-open) .entry-mobile-bar,
  body[data-site-page]:has(.mes-mobile-panel:popover-open) .mes-mobile-bottom-cta{
    display:none!important;
  }
  body[data-site-page="home"] .header-cta{
    min-height:44px;min-width:104px;padding:8px 12px;
    font-size:12px;color:#132b3c;
  }
}
@media(max-width:520px){
  body[data-site-page] .mes-mobile-menu .mes-menu-toggle{padding-inline:8px}
  body[data-site-page="home"] .header-cta{min-width:95px;font-size:11px;padding-inline:8px}
}
@media(max-width:355px){
  body[data-site-page="home"] .header-cta{min-width:90px}
}
@media(max-height:440px) and (max-width:1060px){
  body[data-site-page] .mes-mobile-panel{
    max-height:calc(100dvh - 76px);
  }
  body[data-site-page] .mes-mobile-panel[popover]{
    max-height:calc(100dvh - 76px);
  }
}
