/* Site header shared by the studio page and every game page.
   On game pages the middle links switch to the game's own sections. */
:root{
  --gutter:clamp(16px,5.6vw,80px);
  --maxw:1600px;
  /* one edge for every block: page gutter, or a centred column on wide screens */
  --edge:max(var(--gutter),calc((100% - var(--maxw)) / 2 + var(--gutter)));
  --sh-h:108px;
}
.sh{position:fixed;top:0;left:0;right:0;z-index:95;font-family:'Inter','Segoe UI',system-ui,sans-serif;color:#f1ece5;-webkit-font-smoothing:antialiased}
.sh *{box-sizing:border-box}
body .sh a{color:inherit;text-decoration:none}
.sh-row{height:var(--sh-h);display:flex;align-items:center;justify-content:space-between;gap:24px;padding-inline:var(--edge);
  background:linear-gradient(to bottom,rgba(14,12,19,.7),rgba(14,12,19,0));transition:background .3s}
.sh.solid .sh-row{background:rgba(14,12,19,.94);backdrop-filter:blur(8px)}
.sh-logo{display:block;flex:none}
.sh-logo img{display:block;width:134px;height:44px}
.sh-sections{display:flex;gap:40px;margin-left:auto;font-family:'Cormorant','Cormorant Garamond',Georgia,serif;font-size:20px}
.sh-sections a{opacity:.9}
.sh-sections a:hover,.sh-sections a[aria-current="page"]{opacity:1;text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px}
.sh-extra{display:flex;align-items:center;gap:20px;margin-left:40px}
.sh-lang{font-size:11px;letter-spacing:.06em;color:#aaa2b4}
.sh-cta{display:inline-flex;align-items:center;gap:16px;height:44px;padding:0 24px;border:1px solid #fff;border-radius:2px;background:rgba(255,255,255,.06);font-size:12px;font-weight:600;color:#fff;transition:background .2s,color .2s}
.sh-cta img{width:17px;height:17px}
body .sh .sh-cta:hover{background:#f1ece5;color:#0e0c13}
.sh-cta:hover img{filter:invert(1)}
.sh a:focus-visible{outline:1px solid #f1ece5;outline-offset:3px}

/* game pages: same header, the game's own sections instead of the studio's */
.sh-brand{display:flex;align-items:center;gap:20px;min-width:0}
.sh-game{font-family:'Cormorant','Cormorant Garamond',Georgia,serif;font-size:20px;line-height:1;padding-left:20px;border-left:1px solid rgba(241,236,229,.24);white-space:nowrap;color:#f1ece5}

/* game pages reserve room for both rows */
html.has-sh{scroll-padding-top:calc(var(--sh-h) + 16px)}

@media (max-width:900px){
  :root{--sh-h:80px}
  .sh-sections{display:none}
  .sh-extra{margin-left:auto}
  .sh-logo img{width:110px;height:36px}
  .sh-extra{gap:16px}
}
@media (max-width:640px){
  .sh.in-game .sh-lang{display:none}
  .sh-game{font-size:17px;padding-left:14px}
  .sh-brand{gap:14px}
  .sh.in-game .sh-cta{padding:0 14px;gap:10px}
}
@media (max-width:520px){.sh.in-game .sh-cta{display:none}} /* the page hero carries the same button */
@media (max-width:420px){.sh.in-game .sh-logo img{width:88px;height:29px}}

/* menu button for narrow screens */
.sh-menu{display:none;width:44px;height:44px;border:1px solid rgba(241,236,229,.32);border-radius:2px;background:transparent;color:#f1ece5;cursor:pointer;place-items:center}
.sh-menu svg{width:18px;height:18px}
.sh-menu:focus-visible{outline:1px solid #f1ece5;outline-offset:3px}
@media (max-width:900px){
  .sh-menu{display:grid}
  .sh.open .sh-sections{display:flex;position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:0;padding:8px var(--edge) 20px;background:rgba(14,12,19,.97);border-bottom:1px solid rgba(241,236,229,.1)}
  .sh.open .sh-sections a{padding:14px 0;border-bottom:1px solid rgba(241,236,229,.08)}
  .sh.open .sh-row{background:rgba(14,12,19,.97)}
}

/* game pages carry up to seven section links: tighten them before the menu button takes over */
@media (max-width:1360px) and (min-width:901px){
  .sh-sections{gap:22px;font-size:18px}
  .sh-extra{margin-left:24px}
  .sh-game{font-size:18px}
}
/* only headers with seven links (Wet Sand) need the extra squeeze */
@media (max-width:1180px) and (min-width:901px){
  .sh.in-game:has(.sh-sections a:nth-child(7)) .sh-sections{gap:16px;font-size:17px;margin-left:32px}
  .sh.in-game:has(.sh-sections a:nth-child(7)) .sh-extra{margin-left:20px}
  .sh.in-game:has(.sh-sections a:nth-child(7)) .sh-game{display:none}
}
.sh-cta{white-space:nowrap}
