:root{
  --m36-gold:#d9ad63;
  --m36-gold-2:#f1d7aa;
  --m36-ink:#070707;
  --m36-text:#f7f0e5;
  --m36-muted:rgba(247,240,229,.68);
  --m36-border:rgba(220,177,101,.2);
  --m36-shadow:0 24px 70px rgba(0,0,0,.52);
}

/* =========================
   V57 unified fixed header
   Visual shell from the approved legal-page header,
   with the original site navigation order and all languages.
   ========================= */
.m36-header,.m36-header *,.m36-footer,.m36-footer *{box-sizing:border-box}

.m36-header{
  position:fixed!important;
  top:0;left:0;right:0;
  z-index:4000;
  display:block!important;
  margin:0!important;
  padding:12px 18px 0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  transform:none!important;
}

.m36-header__inner{
  direction:ltr;
  width:min(1720px,calc(100% - 0px));
  min-height:86px;
  margin:0 auto;
  display:grid;
  grid-template-columns:260px minmax(0,1fr) 150px;
  align-items:center;
  gap:22px;
  padding:0 30px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:24px;
  background:linear-gradient(180deg,rgba(5,5,5,.96),rgba(7,7,7,.88));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 18px 52px rgba(0,0,0,.40);
  backdrop-filter:blur(18px) saturate(118%);
  -webkit-backdrop-filter:blur(18px) saturate(118%);
  overflow:visible;
}

.m36-brand{
  all:unset;
  box-sizing:border-box;
  cursor:pointer;
  justify-self:start;
  display:inline-flex;
  align-items:center;
  gap:11px;
  color:#fff;
  text-decoration:none;
  direction:ltr;
  font-family:Arial,Helvetica,sans-serif;
}
.m57-brand__mark{width:52px;height:52px;object-fit:contain;display:block;flex:0 0 auto}
.m57-brand__copy{display:flex;flex-direction:column;line-height:1}
.m36-brand__name{font-size:25px;font-weight:700;letter-spacing:.29em;white-space:nowrap}
.m36-brand__studio{margin-top:7px;font-size:8px;font-weight:700;letter-spacing:.46em;color:#e71922;white-space:nowrap}

.m36-mainnav{
  all:unset;
  box-sizing:border-box;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:clamp(22px,3.2vw,58px);
  min-width:0;
  font-family:Tahoma,Arial,"Segoe UI",sans-serif;
}
html[dir="rtl"] .m36-mainnav{direction:rtl}
html[dir="ltr"] .m36-mainnav{direction:ltr}

.m36-mainnav__link{
  all:unset;
  box-sizing:border-box;
  cursor:pointer;
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:66px;
  color:rgba(255,255,255,.90);
  font-size:15px;
  font-weight:700;
  white-space:nowrap;
  text-decoration:none;
}
.m36-mainnav__link:before{
  content:"";
  position:absolute;
  left:50%;bottom:5px;
  width:42px;height:2px;
  transform:translateX(-50%) scaleX(0);
  background:linear-gradient(90deg,transparent,#d49a42,transparent);
  transition:transform .2s ease;
}
.m36-mainnav__link:after{
  content:"";
  position:absolute;
  left:50%;bottom:0;
  width:6px;height:6px;border-radius:50%;
  transform:translateX(-50%) scale(0);
  background:#d49a42;
  box-shadow:0 0 0 5px rgba(212,154,66,.08);
  transition:transform .2s ease;
}
.m36-mainnav__link:hover,.m36-mainnav__link.is-active{color:#fff}
.m36-mainnav__link:hover:before,.m36-mainnav__link:hover:after,.m36-mainnav__link.is-active:before,.m36-mainnav__link.is-active:after{transform:translateX(-50%) scale(1)}

.m36-header__actions{display:flex;align-items:center;justify-self:end;gap:10px}
.m36-lang{position:relative;direction:ltr}
.m36-lang__toggle,.m36-language-item{
  all:unset;
  box-sizing:border-box;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-family:Arial,Helvetica,sans-serif;
}
.m36-lang__toggle{
  width:128px;height:52px;
  gap:9px;
  padding:0 14px;
  border:1px solid rgba(217,173,99,.22);
  border-radius:17px;
  background:rgba(8,8,8,.82);
}
.m36-lang__toggle img{width:26px;height:19px;object-fit:cover;border-radius:3px}
.m36-lang__toggle svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:2}
.m36-lang__toggle span{font-size:14px;font-weight:700}
.m36-lang__menu{
  position:absolute;
  right:0;
  top:calc(100% + 12px);
  display:none;
  width:300px;
  max-height:min(72vh,520px);
  overflow:auto;
  padding:8px;
  border:1px solid rgba(217,173,99,.20);
  border-radius:20px;
  background:rgba(7,7,7,.985);
  box-shadow:0 24px 70px rgba(0,0,0,.58);
}
.m36-lang.is-open .m36-lang__menu{display:grid;gap:5px}
.m36-language-item{
  width:100%;min-height:54px;
  justify-content:flex-start;
  gap:12px;
  padding:8px 12px;
  border-radius:14px;
  text-align:start;
  border:1px solid transparent;
}
.m36-language-item:hover{background:rgba(217,173,99,.08)}
.m36-language-item.is-active{background:linear-gradient(180deg,rgba(155,111,47,.34),rgba(113,75,28,.18));border-color:rgba(217,173,99,.26)}
.m36-language-item img{width:30px;height:20px;border-radius:3px;object-fit:cover;flex:0 0 auto}
.m36-language-item__label{font-size:14px;font-weight:600;min-width:0;flex:1 1 auto;color:#fff}
.m36-language-item__code{font-size:13px;font-weight:700;color:rgba(255,255,255,.68);letter-spacing:.08em;flex:0 0 auto}

.m36-footer{position:relative!important;margin:70px 0 0!important;padding:26px 24px 32px!important;background:linear-gradient(180deg,rgba(8,8,8,.93),rgba(4,4,4,.99))!important;border:0!important;border-top:1px solid rgba(217,173,99,.1)!important;box-shadow:none!important}
.m36-footer__inner{max-width:1320px;margin:0 auto;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px}
.m36-socials--footer{justify-content:flex-start}
.m36-footer__copyright{text-align:center;color:rgba(255,255,255,.83);font-size:13px;letter-spacing:.05em}
.m36-footer__brand{all:unset;cursor:pointer;display:flex;align-items:center;justify-content:flex-end;gap:10px;color:#fff}
.m36-footer__brand img{width:38px;height:38px;object-fit:contain}
.m36-footer__brand span{font-size:15px;font-weight:700}

main :is(.feature-panel,.game-system-panel,.about-stat,.about-pillar,.team-card,.ref-project-card,.ref-stat,.roster-card,.download-status,.route-card,.support-card,.media-card,.news-card,.press-card,.legal-card){background:linear-gradient(180deg,rgba(9,9,9,.76),rgba(12,12,12,.54));border:1px solid rgba(217,173,99,.12);box-shadow:0 20px 42px rgba(0,0,0,.18)}

@media(max-width:1120px){
  .m36-header{padding:10px 12px 0!important}
  .m36-header__inner{
    min-height:110px;
    grid-template-columns:1fr auto;
    grid-template-rows:60px 42px;
    gap:0 12px;
    padding:0 18px 7px;
    border-radius:20px;
  }
  .m36-brand{grid-column:2;grid-row:1;justify-self:end}
  .m36-header__actions{grid-column:1;grid-row:1;justify-self:start}
  .m36-mainnav{
    grid-column:1/-1;grid-row:2;
    width:100%;
    display:flex;
    justify-content:center;
    gap:clamp(18px,4.2vw,42px);
    overflow:visible;
  }
  .m36-mainnav__link{min-height:36px;font-size:13px}
  .m36-mainnav__link:before{bottom:0;width:34px;height:1px}
  .m36-mainnav__link:after{display:none}
  .m57-brand__mark{width:44px;height:44px}
  .m36-brand__name{font-size:18px;letter-spacing:.27em}
  .m36-brand__studio{font-size:6px;letter-spacing:.41em;margin-top:5px}
  .m36-lang__toggle{width:104px;height:42px;border-radius:13px;padding:0 10px}
  .m36-lang__toggle img{width:24px;height:17px}
  .m36-lang__toggle span{font-size:12px}
  .m36-lang__menu{left:0;right:auto;top:calc(100% + 8px);width:min(300px,calc(100vw - 28px))}
}

@media(max-width:620px){
  .m36-header{padding:8px 8px 0!important}
  .m36-header__inner{
    min-height:106px;
    grid-template-rows:57px 41px;
    padding:0 10px 6px;
    border-radius:14px;
  }
  .m57-brand__mark{width:38px;height:38px}
  .m57-brand{gap:8px}
  .m36-brand__name{font-size:14px;letter-spacing:.24em}
  .m36-brand__studio{font-size:5px;letter-spacing:.36em;margin-top:4px}
  .m36-lang__toggle{width:82px;height:38px;border-radius:10px;gap:6px;padding:0 8px}
  .m36-lang__toggle img{width:20px;height:14px}
  .m36-lang__toggle svg{width:12px;height:12px}
  .m36-lang__toggle span{font-size:10px}
  .m36-mainnav{justify-content:space-between;gap:8px;padding:0 3px}
  .m36-mainnav__link{min-height:34px;font-size:clamp(9px,2.65vw,11px);font-weight:600}
  .m36-language-item{min-height:48px;padding:8px 10px}
  .m36-language-item__label{font-size:12px}
  .m36-language-item__code{font-size:11px}
  .m36-footer__inner{grid-template-columns:1fr;justify-items:center;text-align:center}
  .m36-socials--footer{justify-content:center}
  .m36-footer__brand{justify-content:center}
}

/* =========================
   V39 Cinematic site footer
   ========================= */
.m39-footer,
.m39-footer *{box-sizing:border-box}

.m39-footer{
  position:relative!important;
  isolation:isolate;
  margin:0!important;
  padding:0!important;
  min-height:610px;
  overflow:hidden;
  border:0!important;
  border-top:1px solid rgba(216,171,93,.16)!important;
  background:#080604!important;
  color:#f4eee4;
  box-shadow:none!important;
  font-family:inherit;
}

.m39-footer__background,
.m39-footer__veil{
  position:absolute;
  inset:0;
  pointer-events:none;
}

.m39-footer__background{
  z-index:-3;
  background:url('/assets/footer/footer-tech-bg.png') center center / cover no-repeat;
  filter:saturate(.9) brightness(.48) contrast(1.08);
  transform:scale(1.01);
}

.m39-footer__veil{
  z-index:-2;
  background:
    linear-gradient(180deg,rgba(3,3,3,.88) 0%,rgba(4,4,4,.66) 34%,rgba(4,4,4,.58) 68%,rgba(3,3,3,.9) 100%),
    radial-gradient(circle at 76% 22%,rgba(190,25,25,.06),transparent 38%);
}

.m39-footer__shell{
  position:relative;
  z-index:2;
  width:min(1520px,calc(100% - 64px));
  margin:0 auto;
  padding:26px 0 0;
}

.m39-footer__eyebrow{
  display:grid;
  grid-template-columns:auto minmax(90px,1fr) auto;
  align-items:center;
  gap:22px;
  min-height:44px;
  color:#d5aa62;
  font-size:13px;
  letter-spacing:.02em;
}
html[dir="rtl"] .m39-footer__eyebrow{direction:rtl}
html[dir="ltr"] .m39-footer__eyebrow{direction:ltr}

.m39-footer__eyebrow-line{
  position:relative;
  display:block;
  height:1px;
  background:linear-gradient(90deg,rgba(201,154,79,.22),rgba(201,154,79,.72),rgba(201,154,79,.22));
}
.m39-footer__eyebrow-line i{
  position:absolute;
  left:50%;top:50%;
  width:12px;height:12px;
  transform:translate(-50%,-50%) rotate(45deg);
  border:1px solid rgba(225,181,105,.85);
  background:#0b0805;
  box-shadow:0 0 0 5px #0b0805;
}
.m39-footer__eyebrow-line i:after{
  content:"";
  position:absolute;inset:3px;
  border:1px solid rgba(225,181,105,.75);
}

.m39-footer__grid{
  direction:ltr;
  display:grid;
  grid-template-columns:1.18fr 1fr .95fr 1.12fr;
  gap:0;
  padding:12px 0 34px;
  border-bottom:1px solid rgba(255,255,255,.14);
}

.m39-footer__grid>section{
  min-width:0;
  padding:4px 34px 0;
  border-inline-end:1px solid rgba(255,255,255,.08);
}
.m39-footer__grid>section:first-child{padding-inline-start:0}
.m39-footer__grid>section:last-child{padding-inline-end:0;border-inline-end:0}
html[dir="rtl"] .m39-footer__grid>section{direction:rtl;text-align:right}
html[dir="ltr"] .m39-footer__grid>section{direction:ltr;text-align:left}

.m39-footer__brand-lockup{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:20px;
}
html[dir="rtl"] .m39-footer__brand-lockup{justify-content:flex-end}

.m39-footer__brand-mark{
  width:72px;height:72px;
  object-fit:cover;
  object-position:center;
  border-radius:10px;
  filter:sepia(1) saturate(2.2) hue-rotate(350deg) brightness(1.08) contrast(1.08);
  mix-blend-mode:screen;
}
.m39-footer__brand-lockup>div{display:flex;flex-direction:column;line-height:1}
.m39-footer__brand-lockup strong{
  font-family:Arial,Helvetica,sans-serif;
  font-size:26px;
  font-weight:700;
  letter-spacing:.33em;
  color:#fff;
  white-space:nowrap;
}
.m39-footer__brand-lockup small{
  margin-top:9px;
  font-family:Arial,Helvetica,sans-serif;
  font-size:9px;
  font-weight:700;
  letter-spacing:.48em;
  color:rgba(255,255,255,.9);
}

.m39-footer p{
  margin:0;
  color:rgba(244,238,228,.72);
  line-height:1.85;
  font-size:14px;
}
.m39-footer__rule{
  height:1px;
  margin:22px 0 14px;
  background:linear-gradient(90deg,transparent,rgba(216,171,93,.5),transparent);
}
.m39-footer__socials{
  display:flex;
  align-items:center;
  gap:10px;
}
html[dir="rtl"] .m39-footer__socials{justify-content:flex-start;direction:ltr}
.m39-footer__socials a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;height:38px;
  border:1px solid rgba(216,171,93,.13);
  border-radius:11px;
  background:rgba(0,0,0,.25);
  transition:transform .22s ease,border-color .22s ease,background .22s ease;
}
.m39-footer__socials a:hover{transform:translateY(-2px);border-color:rgba(216,171,93,.42);background:rgba(216,171,93,.06)}
.m39-footer__socials img{width:24px;height:24px;object-fit:contain}
.m39-footer__social-copy{margin-top:8px!important;font-size:12px!important;color:rgba(244,238,228,.54)!important}

.m39-footer h3{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 18px;
  color:#f5f0e8;
  font-size:17px;
  font-weight:700;
}
html[dir="rtl"] .m39-footer h3{justify-content:flex-start}
.m39-footer h3 img{width:27px;height:27px;object-fit:contain}

.m39-footer__quick-links,
.m39-footer__projects-column{
  display:grid;
  align-content:start;
}
.m39-footer__quick-links a,
.m39-footer__project-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:34px;
  color:rgba(255,255,255,.78);
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:13px;
  transition:color .2s ease,padding .2s ease;
}
.m39-footer__quick-links a:hover,
.m39-footer__project-link:hover{color:#e5bd79;padding-inline:4px}
.m39-footer__quick-links i,
.m39-footer__project-link i{font-style:normal;font-size:19px;color:rgba(255,255,255,.62)}
html[dir="rtl"] .m39-footer__quick-links,
html[dir="rtl"] .m39-footer__projects-column{direction:rtl}
html[dir="rtl"] .m39-footer__quick-links i,
html[dir="rtl"] .m39-footer__project-link i{transform:rotate(0deg)}
html[dir="ltr"] .m39-footer__quick-links i,
html[dir="ltr"] .m39-footer__project-link i{transform:rotate(180deg)}
.m39-footer__project-link.is-muted{cursor:default;color:rgba(255,255,255,.54)}
.m39-footer__projects-column blockquote{
  margin:38px 0 0;
  color:#c79851;
  font-size:16px;
  line-height:1.75;
  font-style:italic;
}

.m39-footer__contact-column>p{margin-bottom:18px}
.m39-footer__contact-btn{
  display:grid;
  grid-template-columns:30px 1fr auto;
  align-items:center;
  gap:12px;
  min-height:58px;
  padding:0 16px;
  border:1px solid rgba(219,174,96,.72);
  border-radius:12px;
  color:#fff;
  text-decoration:none;
  background:rgba(4,4,4,.38);
  transition:background .22s ease,box-shadow .22s ease,transform .22s ease;
}
.m39-footer__contact-btn:hover{background:rgba(191,133,55,.08);box-shadow:0 0 28px rgba(191,133,55,.08);transform:translateY(-1px)}
.m39-footer__contact-btn img{width:24px;height:24px;object-fit:contain}
.m39-footer__contact-btn span{font-size:14px;font-weight:600}
.m39-footer__contact-btn i{font-style:normal;font-size:23px}
html[dir="rtl"] .m39-footer__contact-btn{direction:rtl}
html[dir="ltr"] .m39-footer__contact-btn{direction:ltr}

.m39-footer__kuwait{
  display:grid;
  grid-template-columns:36px minmax(0,1fr) 34px;
  align-items:center;
  gap:12px;
  margin-top:20px;
}
.m39-footer__kuwait>img:first-child{width:31px;height:31px;object-fit:contain}
.m39-footer__kuwait strong{display:block;color:#fff;font-size:14px;margin-bottom:4px}
.m39-footer__kuwait span{display:block;color:rgba(255,255,255,.53);font-size:12px}
.m39-footer__kuwait-flag{width:34px!important;height:26px!important;border-radius:6px!important;object-fit:cover!important}
html[dir="rtl"] .m39-footer__kuwait{direction:rtl}

.m39-footer__bottom{
  direction:ltr;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:24px;
  min-height:86px;
}
.m39-footer__bottom-brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:rgba(255,255,255,.68);
  font-size:9px;
  letter-spacing:.22em;
  line-height:1.7;
}
.m39-footer__bottom-brand img{
  width:44px;height:44px;
  object-fit:cover;
  filter:grayscale(1) brightness(1.8);
  mix-blend-mode:screen;
  border-radius:8px;
}
.m39-footer__copyright{
  text-align:center;
  color:rgba(255,255,255,.65);
  font-family:Arial,Helvetica,sans-serif;
  font-size:10px;
  letter-spacing:.13em;
  white-space:nowrap;
}
.m39-footer__motto{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:12px;
  color:rgba(255,255,255,.58);
  font-size:10px;
  white-space:nowrap;
}
.m39-footer__motto i{width:26px;height:1px;background:rgba(216,171,93,.35)}

@media(max-width:1100px){
  .m39-footer__shell{width:min(100% - 40px,980px)}
  .m39-footer__grid{grid-template-columns:1fr 1fr;row-gap:34px}
  .m39-footer__grid>section{padding:0 26px}
  .m39-footer__grid>section:nth-child(2){border-inline-end:0}
  .m39-footer__grid>section:nth-child(3){padding-inline-start:0}
  .m39-footer__bottom{grid-template-columns:1fr;justify-items:center;padding:20px 0}
  .m39-footer__bottom-brand,.m39-footer__motto{justify-self:center}
}

@media(max-width:700px){
  .m39-footer{min-height:0}
  .m39-footer__background{background-position:center center;filter:saturate(.88) brightness(.42) contrast(1.08)}
  .m39-footer__veil{background:linear-gradient(180deg,rgba(3,3,3,.92),rgba(4,4,4,.7) 54%,rgba(3,3,3,.92))}
  .m39-footer__shell{width:calc(100% - 28px);padding-top:20px}
  .m39-footer__eyebrow{grid-template-columns:1fr;text-align:center;gap:10px;font-size:11px;padding-bottom:14px}
  .m39-footer__eyebrow-line{order:2;width:80%;justify-self:center}
  .m39-footer__grid{grid-template-columns:1fr;gap:0;padding:8px 0 22px}
  .m39-footer__grid>section,
  .m39-footer__grid>section:first-child,
  .m39-footer__grid>section:last-child,
  .m39-footer__grid>section:nth-child(3){padding:24px 4px;border-inline-end:0;border-bottom:1px solid rgba(255,255,255,.08)}
  .m39-footer__grid>section:last-child{border-bottom:0}
  .m39-footer__brand-lockup{justify-content:flex-start}
  html[dir="rtl"] .m39-footer__brand-lockup{justify-content:flex-start;direction:rtl}
  .m39-footer__brand-mark{width:60px;height:60px}
  .m39-footer__brand-lockup strong{font-size:22px}
  .m39-footer__socials{justify-content:flex-start}
  .m39-footer h3{font-size:16px}
  .m39-footer__quick-links{grid-template-columns:1fr 1fr;column-gap:18px}
  .m39-footer__projects-column blockquote{margin-top:24px}
  .m39-footer__bottom{min-height:0;padding:24px 0 28px;gap:18px}
  .m39-footer__bottom-brand{order:2}
  .m39-footer__copyright{order:1;font-size:9px;white-space:normal;line-height:1.6}
  .m39-footer__motto{order:3;gap:8px;font-size:9px;white-space:normal;flex-wrap:wrap;justify-content:center;text-align:center}
  .m39-footer__motto i{width:18px}
}

/* V53: page transition overlay removed. Native page navigation only. */
