@import url('/shared/theme.css');

.site-header {
  height: 80px;
  padding: 0 30px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  border-bottom: 1px solid #ffffff10;
  background: var(--theme-background);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  font:
    14px var(--font-sans);
  box-sizing: border-box;
}
.site-header * {
  box-sizing: border-box;
}
.site-header a {
  text-decoration: none;
  color: inherit;
}
.site-header .site-logo {
  font-size: 21px;
  font-weight: 750;
  color: var(--theme-accent);
  justify-self: start;
  white-space: nowrap;
}
.site-header .site-links {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 100%;
  background: transparent;
}
.site-header .site-links a,
.site-header .site-links button {
  display: flex;
  align-items: center;
  padding: 0 26px;
  font:
    13px var(--font-sans);
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--theme-muted);
  white-space: nowrap;
  text-decoration: none;
}
.site-header .site-links button {
  cursor: default;
}
.site-header .site-links .current {
  color: var(--theme-accent);
  border-bottom-color: var(--theme-accent);
}
.site-header .site-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  height: auto;
}
.site-header .site-account {
  border: 0;
  background: none;
  font:
    13px var(--font-sans);
  color: #c3d2ca;
  white-space: nowrap;
}
.site-header .menu-button {
  display: none;
  background: none;
  border: 0;
  color: var(--theme-accent);
  font-size: 23px;
  cursor: pointer;
}
.site-header .search-trigger {
  min-width: 0;
  width: 32px;
  padding: 5px;
  background: none;
  border: 0;
}
.site-header .search-trigger span,
.site-header .search-trigger kbd {
  display: none;
}
.site-header .search-trigger svg {
  width: 19px;
  height: 19px;
  color: #8ba398;
}
.site-header .user-menu {
  position: relative;
  font-size: 13px;
}
.site-header .user-menu summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 9px;
  align-items: center;
  color: #b8c8bd;
}
.site-header .user-menu summary::-webkit-details-marker {
  display: none;
}
.site-header .user-menu summary:after {
  content: '⌄';
  color: #7c8f82;
}
.site-header .avatar-mark {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--theme-accent) 9.8%, transparent);
  border: 1px solid color-mix(in srgb, var(--theme-accent) 18.82%, transparent);
  width: 32px;
  height: 32px;
  border-radius: 5px;
  color: var(--theme-accent);
}
.site-header .user-dropdown {
  position: absolute;
  right: 0;
  top: 42px;
  min-width: 190px;
  background: #14201f;
  border: 1px solid #ffffff1c;
  border-radius: 6px;
  padding: 7px;
  box-shadow: 0 12px 30px #0005;
}
.site-header .user-dropdown a,
.site-header .user-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px;
  border: 0;
  background: none;
  color: #c1d0c6;
  font:
    12px var(--font-sans);
  cursor: pointer;
}
.site-header .user-dropdown a:hover,
.site-header .user-dropdown button:hover {
  background: #ffffff09;
}
.site-header [hidden] {
  display: none !important;
}
@media (max-width: 1050px) {
  .site-header {
    padding: 0 20px;
    grid-template-columns: 140px auto 140px;
  }
  .site-header .site-links a,
  .site-header .site-links button {
    padding: 0 15px;
  }
  .site-header .site-logo {
    font-size: 19px;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: 66px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
  }
  .site-header .site-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    height: auto;
    flex-direction: column;
    background: #12201e;
    border-bottom: 1px solid #ffffff20;
    padding: 10px 20px;
  }
  .site-header.menu-open .site-links {
    display: flex;
  }
  .site-header .site-links a,
  .site-header .site-links button {
    padding: 14px 6px;
    border: 0;
  }
  .site-header .menu-button {
    display: block;
  }
  .site-header .site-actions {
    margin-left: auto;
    gap: 14px;
  }
  .site-header .site-account {
    font-size: 12px;
  }
  .site-header .user-menu summary {
    font-size: 11px;
  }
  .site-header .avatar-mark {
    width: 27px;
    height: 27px;
  }
}
.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 2px solid var(--theme-accent);
  outline-offset: 3px;
}

:root {
  --site-header-height: 80px;
}
body:has(> .site-header) {
  padding-top: var(--site-header-height);
}
html {
  scroll-padding-top: 96px;
}
@media (max-width: 760px) {
  :root {
    --site-header-height: 66px;
  }
  html {
    scroll-padding-top: 82px;
  }
}

.site-header .site-messages {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 34px;
  color: #8eaaa1;
  flex-shrink: 0;
}
.site-header .site-messages:hover {
  color: var(--theme-accent);
}
.site-messages svg {
  width: 23px;
  height: 23px;
}
.site-header .messages-badge {
  position: absolute;
  top: -2px;
  right: -5px;
  min-width: 16px;
  padding: 1px 4px;
  border-radius: 15px;
  background: var(--theme-accent);
  color: #17382c;
  font-size: 9px;
  text-align: center;
  line-height: 14px;
}
@media (max-width: 760px) {
  .site-header .site-actions {
    gap: 10px;
  }
  .site-header .site-messages {
    width: 24px;
  }
}
.discord-roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.discord-role {
  display: inline-block;
  max-width: 100%;
  padding: 3px 9px;
  border: 1px solid #ffffff24;
  border-radius: 20px;
  color: #b5bac1;
  background: #ffffff05;
  font:
    11px/1.45 var(--font-sans);
  overflow-wrap: anywhere;
}
.discord-role.gradient-role {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.site-header .header-roles {
  padding: 8px 5px;
  border-bottom: 1px solid #ffffff10;
  margin-bottom: 4px;
  max-width: 270px;
}
.site-header .header-roles .discord-role {
  font-size: 10px;
}
.chat-heading .chat-roles {
  margin-left: auto;
  max-width: 55%;
  justify-content: flex-end;
}
.member .discord-roles {
  flex-basis: 100%;
  padding-left: 40px;
}
.player-row .discord-roles {
  min-width: 0;
}
@media (max-width: 760px) {
  .chat-heading .chat-roles {
    max-width: 45%;
    gap: 3px;
  }
  .chat-heading .discord-role {
    font-size: 9px;
    padding: 2px 5px;
  }
  .player-row {
    grid-template-columns: minmax(0, 1fr) 65px minmax(80px, 1fr);
  }
}

.site-header .user-menu summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  gap: 0;
}
.site-header .user-menu summary:after {
  display: none;
}
.site-header .user-menu summary > #header-name,
.site-header .user-menu summary > .site-user-name {
  display: none;
}
.site-header .avatar-mark {
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 8px;
  flex: none;
}
.site-header .avatar-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-header .user-dropdown {
  top: 48px;
}
.site-header summary:focus-visible {
  outline: 2px solid var(--theme-accent);
  outline-offset: 2px;
  border-radius: 8px;
}
@media (max-width: 760px) {
  .site-header .avatar-mark {
    width: 32px;
    height: 32px;
  }
}

.site-header .site-bank {
  display: grid;
  place-items: center;
  width: 30px;
  height: 34px;
  color: #8eaaa1;
  flex-shrink: 0;
}
.site-bank svg {
  width: 23px;
  height: 23px;
}
.site-header .site-bank:hover,
.site-header .site-bank[aria-current='page'] {
  color: var(--theme-accent);
}
@media (max-width: 760px) {
  .site-header .site-bank {
    width: 24px;
  }
}

.ui-icon {
  width: 20px;
  height: 20px;
  flex: none;
  opacity: 0.8;
  vertical-align: middle;
}
.site-header .messages-badge,
.notification-badge {
  background: #dc4e58;
  color: #fff;
  font:
    10px/16px var(--font-sans);
  min-width: 16px;
  text-align: center;
  padding: 0 4px;
  border-radius: 10px;
  position: absolute;
  right: -5px;
  top: -3px;
}
.notification-menu {
  position: relative;
  color: #8eaaa1;
}
.notification-menu summary {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 34px;
  cursor: pointer;
  list-style: none;
}
.notification-menu summary::-webkit-details-marker {
  display: none;
}
.notification-menu summary .ui-icon {
  width: 23px;
  height: 23px;
}
.notification-dropdown {
  position: absolute;
  right: 0;
  top: 46px;
  width: 370px;
  border: 1px solid #ffffff1c;
  border-radius: 10px;
  background: #14201f;
  box-shadow: 0 15px 45px #0008;
  color: #d6e1dc;
  overflow: hidden;
}
.notification-heading {
  padding: 17px 18px;
  font-size: 15px;
  border-bottom: 1px solid #ffffff12;
}
.notification-list {
  max-height: 420px;
  overflow: auto;
  overscroll-behavior: contain;
}
.notification-item {
  display: flex !important;
  gap: 13px;
  padding: 17px 18px !important;
  border-bottom: 1px solid #ffffff0c;
  text-decoration: none;
  color: inherit;
}
.notification-item:hover {
  background: #ffffff06;
}
.notification-item.unread {
  background: color-mix(in srgb, var(--theme-accent) 4.31%, transparent);
}
.notification-item > .ui-icon {
  margin-top: 2px;
  color: #99bdaf;
}
.notification-item > div {
  min-width: 0;
  flex: 1;
}
.notification-item strong {
  font-size: 13px;
  font-weight: 600;
}
.notification-item p {
  font-size: 12px;
  line-height: 1.5;
  color: #a8b9af;
  margin: 6px 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.notification-item time {
  font-size: 10px;
  color: #879c90;
}
.notice-unread-label {
  color: var(--theme-accent);
  font-size: 10px;
  float: right;
  margin-left: 10px;
}
.notification-history {
  display: block;
  text-align: center;
  padding: 15px;
  font-size: 12px;
  color: var(--theme-accent) !important;
}
.notification-empty {
  padding: 25px 18px;
  color: #98aaa0;
  font:
    13px/1.5 var(--font-sans);
}
.notifications-page {
  margin: 0;
  background: #0e1512;
  color: var(--theme-text);
  font:
    14px/1.5 var(--font-sans);
}
.notifications-page main {
  max-width: 820px;
  margin: 40px auto;
  padding: 0 22px 60px;
}
.notifications-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.notifications-title h1 {
  font-size: 24px;
  font-weight: 500;
}
.notifications-page button {
  cursor: pointer;
  background: #192a22;
  color: #bdcfc4;
  border: 1px solid #ffffff1c;
  border-radius: 5px;
  padding: 9px 15px;
}
.notifications-page main > .notification-list {
  max-height: none;
  background: #131e18;
  border: 1px solid #ffffff12;
  border-radius: 8px;
}
.notifications-page #notifications-more {
  display: block;
  margin: 20px auto;
}
.notifications-page [hidden] {
  display: none !important;
}
.notifications-page #notifications-status {
  color: #a3b4a9;
}
.notifications-page #notifications-status a {
  color: var(--theme-accent);
}
.site-header {
  grid-template-columns: minmax(150px, 1fr) auto minmax(190px, 1fr);
}
@media (max-width: 1050px) and (min-width: 761px) {
  .site-header {
    grid-template-columns: 120px auto 180px;
  }
  .site-header .site-links a,
  .site-header .site-links button {
    padding: 0 10px;
  }
}
@media (max-width: 760px) {
  .site-header {
    gap: 10px;
    padding: 0 16px;
  }
  .site-header .site-actions {
    gap: 8px;
  }
  .notification-menu summary {
    width: 24px;
  }
  .notification-dropdown {
    position: fixed;
    top: 66px;
    left: 10px;
    right: 10px;
    width: auto;
  }
  .notification-list {
    max-height: min(420px, calc(100dvh - 190px));
  }
  .notifications-page main {
    margin-top: 20px;
    padding: 0 14px 40px;
  }
  .site-header .site-logo {
    font-size: 18px;
  }
}

.site-header:not([data-authenticated='true']) .site-bank,
.site-header:not([data-authenticated='true']) .site-messages,
.site-header:not([data-authenticated='true']) .notification-menu,
.site-header:not([data-authenticated='true']) .user-menu {
  display: none !important;
}
