.sw-global-header{
  --sw-head-fg:#f5f5f6;
  --sw-head-soft:rgba(245,245,246,.62);
  --sw-head-gold:#d8b174;
  --sw-head-yellow:#ffe600;
  position:sticky;
  top:0;
  z-index:900;
  width:100%;
  color:var(--sw-head-fg);
  background:rgba(8,8,11,.88);
  border-bottom:1px solid rgba(255,255,255,.09);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
.sw-global-header *{box-sizing:border-box}
.sw-global-inner{
  width:min(1160px,100%);
  min-height:68px;
  margin:0 auto;
  padding:10px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.sw-global-brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-width:0;
  color:inherit;
  text-decoration:none;
}
.sw-global-home{display:inline-flex;color:inherit;text-decoration:none}
.sw-global-logo{
  display:block;
  width:172px;
  height:auto;
  max-width:38vw;
  object-fit:contain;
}
.sw-global-section{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 9px;
  border:1px solid rgba(216,177,116,.28);
  border-radius:999px;
  color:var(--sw-head-gold);
  background:rgba(216,177,116,.055);
  font-size:.67rem;
  font-weight:900;
  line-height:1;
  letter-spacing:.11em;
  text-transform:uppercase;
  white-space:nowrap;
  text-decoration:none;
}
.sw-global-home:focus-visible,.sw-global-section:focus-visible{outline:1px solid var(--sw-head-gold);outline-offset:4px}
.sw-global-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
.sw-global-lang,
.sw-global-menu-button,
.sw-global-actions>button{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:46px;
  margin:0;
  padding:9px 13px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  color:var(--sw-head-fg);
  background:rgba(255,255,255,.055);
  box-shadow:0 10px 30px rgba(0,0,0,.26);
  text-decoration:none;
  font:850 .76rem/1 ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  letter-spacing:.06em;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
.sw-global-lang:hover,
.sw-global-menu-button:hover,
.sw-global-actions>button:hover,
.sw-global-lang:focus-visible,
.sw-global-menu-button:focus-visible,
.sw-global-actions>button:focus-visible{
  color:var(--sw-head-fg);
  background:rgba(255,255,255,.09);
  border-color:rgba(216,177,116,.52);
  transform:translateY(-1px);
  outline:none;
}
.sw-global-menu-wrap{position:relative}
.sw-global-lang-wrap{position:relative}
.sw-global-lang{padding:7px 12px;text-align:left}
.sw-global-flag{font-size:1rem;line-height:1}
.sw-global-lang-copy{display:flex;flex-direction:column;gap:2px;min-width:58px}
.sw-global-lang-copy small{color:var(--sw-head-soft);font-size:.58rem;font-weight:650;line-height:1;letter-spacing:.02em;text-transform:none}
.sw-global-lang-copy strong{color:var(--sw-head-fg);font-size:.76rem;line-height:1;letter-spacing:0;text-transform:none}
.sw-global-chevron{color:var(--sw-head-soft);font-size:1rem;line-height:1;transform:translateY(-2px)}
.sw-global-menu-icon{color:var(--sw-head-yellow);font-size:1rem;line-height:1}
.sw-global-menu,
.sw-global-lang-menu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:min(290px,calc(100vw - 24px));
  padding:8px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  background:rgba(16,16,22,.97);
  box-shadow:0 24px 70px rgba(0,0,0,.55);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-7px) scale(.985);
  transform-origin:top right;
  transition:opacity .16s ease,visibility .16s ease,transform .16s ease;
}
.sw-global-menu-wrap.is-open .sw-global-menu,
.sw-global-lang-wrap.is-open .sw-global-lang-menu{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}
.sw-global-menu a,
.sw-global-lang-menu a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:42px;
  padding:10px 12px;
  border-radius:12px;
  color:var(--sw-head-fg);
  text-decoration:none;
  font-size:.79rem;
  font-weight:850;
  line-height:1.2;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.sw-global-menu a:hover,
.sw-global-menu a:focus-visible,
.sw-global-menu a[aria-current="page"],
.sw-global-lang-menu a:hover,
.sw-global-lang-menu a:focus-visible,
.sw-global-lang-menu a[aria-current="page"]{
  color:var(--sw-head-yellow);
  background:rgba(255,230,0,.07);
  outline:none;
}
.sw-global-menu a[aria-current="page"]::after{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--sw-head-yellow);
  box-shadow:0 0 12px rgba(255,230,0,.46);
}
.sw-global-lang-menu{width:190px}
.sw-global-lang-menu a{justify-content:flex-start;gap:9px;text-transform:none;letter-spacing:0}
.sw-global-lang-menu a[aria-current="page"]::after{content:"✓";margin-left:auto;color:var(--sw-head-yellow)}
body.sw-global-header-ready .lab-top,
body.sw-global-header-ready .sr-topbar,
body.sw-global-header-ready>.language-switch{
  display:none!important;
}
@media(max-width:700px){
  .sw-global-inner{min-height:58px;padding:8px 10px;gap:8px}
  .sw-global-brand{gap:7px}
  .sw-global-logo{width:132px;max-width:37vw}
  .sw-global-section{padding:4px 7px;font-size:.56rem;letter-spacing:.08em}
  .sw-global-actions{gap:5px}
  .sw-global-lang,
  .sw-global-menu-button,
  .sw-global-actions>button{min-height:38px;padding:8px 10px;font-size:.68rem}
  .sw-global-lang-copy small{display:none}
  .sw-global-lang-copy{min-width:0}
  .sw-global-menu-label{display:none}
  #aboutGameButton .sr-about-button-label{display:none}
}
@media(max-width:420px){
  .sw-global-section{display:none}
  .sw-global-logo{width:142px;max-width:44vw}
}
@media(max-height:520px) and (orientation:landscape){
  .sw-global-inner{min-height:48px;padding:5px 10px}
  .sw-global-logo{width:116px}
  .sw-global-section{display:none}
  .sw-global-lang,
  .sw-global-menu-button,
  .sw-global-actions>button{min-height:34px;padding:6px 9px;font-size:.62rem}
}
@media(prefers-reduced-motion:reduce){
  .sw-global-header *{transition:none!important}
}
