/* The sticky header: brand, navigation, social links and Play. */

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #ffffff0d; background: #0e1016ec; backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; gap: 36px; height: var(--header-height); }

.brand { display: inline-flex; align-items: center; gap: 12px; font: 36px/.9 var(--display); letter-spacing: 1px; white-space: nowrap; }
.brand-accent { color: var(--torch); }
.brand-emblem { display: grid; place-items: center; width: 42px; height: 42px; background: var(--plate-raised); box-shadow: inset 0 0 0 2px var(--line-strong); clip-path: var(--corners); }
.brand-emblem .hero-sprite { --scale: 2; }

.navigation { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.navigation a { position: relative; color: #c3c9d6; font-size: 15px; transition: color .15s; }
.navigation a:hover, .navigation a[aria-current] { color: var(--torch); }
.navigation a[aria-current]::after { position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; content: ""; background: var(--torch); }

.menu-toggle { display: none; }

@media (max-width: 1199px) {
  .header-inner { gap: 24px; }
  .navigation { gap: 20px; }
  .header-social { display: none; }
}

/* Below 960px the navigation folds into a menu. */
@media (max-width: 959px) {
  .header-play { margin-left: auto; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; order: 3; width: 32px; height: 40px; padding: 0 4px; border: 0; background: none; }
  .menu-toggle span { display: block; width: 24px; height: 2px; background: #c3c9d6; }
  .navigation {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 32px 20px;
    background: #141822;
    border-bottom: 1px solid var(--line);
  }
  .navigation.open { display: flex; }
  .navigation a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .navigation a[aria-current]::after { display: none; }
}

@media (max-width: 719px) {
  .brand { font-size: 31px; gap: 9px; }
  .brand-emblem { width: 36px; height: 36px; }
  .header-inner { gap: 14px; }
  .navigation { padding-inline: 16px; }
}
@media (max-width: 389px) {
  .brand { font-size: 27px; }
  .brand-emblem { display: none; }
}
