.rift-shared-header {
  box-sizing: border-box;
  position: fixed;
  z-index: 1000;
  top: 16px;
  left: 0;
  right: 0;
  width: calc(100% - 64px);
  max-width: 1600px;
  height: 52px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: 24px;
  background: transparent;
  font-family: Manrope, sans-serif;
  transition: max-width .42s cubic-bezier(.2,.7,.2,1), padding .42s, background-color .3s, border-color .3s, backdrop-filter .3s;
}
.rift-shared-header *, .rift-shared-header *::before, .rift-shared-header *::after { box-sizing: border-box; }
.rift-shared-header.rift-scrolled { max-width: 1100px; padding: 0 20px; background: rgb(9 12 20 / 42%); border-color: rgb(213 221 244 / 14%); border-radius: 999px; backdrop-filter: blur(20px); }
.rift-shared-logo { display: flex; align-items: center; }
.rift-shared-logo img { width: 62px; height: 48px; object-fit: contain; }
.rift-shared-nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.rift-shared-nav a, .rift-shared-nav button { color: #d1d5df; font: 600 14px Manrope, sans-serif; text-decoration: none; border: 0; background: none; padding: 0; cursor: pointer; }
.rift-shared-nav a:hover, .rift-shared-nav button:hover { color: #ff68aa; }
.rift-shared-actions { display: flex; align-items: center; gap: 8px; }
.rift-shared-actions button, .rift-shared-discord { position: relative; height: 33px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; border: 1px solid #303440; border-radius: 6px; background: rgb(16 20 30 / 40%); color: #e5e8ef; font: 600 13px Manrope, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.rift-shared-actions button:hover, .rift-shared-discord:hover { border-color: #ff2a8566; background: #251a29; }
.rift-shared-actions svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rift-shared-cart-count { position: absolute; top: -8px; right: -6px; min-width: 16px; border-radius: 50%; background: #ee2a85; color: #fff; text-align: center; font-size: 10px; line-height: 16px; }
.rift-shared-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 200px; padding: 8px; border: 1px solid #37313b; border-radius: 12px; background: #15141a; box-shadow: 0 12px 28px #0008; }
.rift-shared-menu[hidden], .rift-shared-cart-count[hidden] { display: none; }
.rift-shared-menu a, .rift-shared-menu button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: none; color: #eee; font: 600 13px Manrope, sans-serif; text-align: left; text-decoration: none; cursor: pointer; }
.rift-shared-menu a:hover, .rift-shared-menu button:hover { background: #30202a; }
.rift-shared-header :focus-visible { outline: 2px solid #ff78b5; outline-offset: 3px; }
body.rift-has-shared-header:not(.rift-home) { padding-top: 88px; }

/* Guide search header integration */
.rift-guide-search-header {
  margin-top: 0;
  top: 76px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 24px !important;
  width: 100% !important;
  max-width: 100% !important;
}
.rift-guide-search-header .guide-logo,
.rift-guide-search-header .guide-support-link {
  display: none !important;
}
.rift-guide-search-header .guide-search-wrap {
  width: 100% !important;
  max-width: 680px !important;
  margin: 0 auto !important;
}
.rift-guide-search-header .guide-search {
  width: 100% !important;
}

@media (max-width: 1023px) { .rift-shared-nav, .rift-shared-discord { display: none; } }
@media (max-width: 767px) {
  .rift-shared-header { top: 12px; width: calc(100% - 30px); height: 44px; }
  .rift-shared-header.rift-scrolled { padding-inline: 12px; }
  .rift-shared-logo img { height: 42px; }
  body.rift-has-shared-header:not(.rift-home) { padding-top: 72px; }
  .rift-guide-search-header {
    top: 64px !important;
    height: 54px !important;
    padding: 0 16px !important;
    display: flex !important;
  }
  .rift-guide-search-header .guide-search-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
  .rift-guide-search-header .guide-search {
    width: 100% !important;
    height: 40px !important;
  }
  .rift-guide-search-header .guide-search input {
    width: 100% !important;
    display: block !important;
  }
  .rift-has-shared-header .guide-mobile-toolbar { top: 120px !important; }
  .rift-has-shared-header .guide-sidebar { top: 164px !important; }
  .rift-has-shared-header .guide-menu-scrim { top: 164px !important; }
}
@media (prefers-reduced-motion: reduce) { .rift-shared-header { transition: none; } }

header[hidden] { display: none !important; }
