.notifications-root {
  position: fixed;
  z-index: 170;
  top: var(--header-height);
  right: 4px;
  width: min(390px, calc(100vw - 28px));
}

.player-notifications {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(229, 229, 224, 0.72);
  background: rgba(18, 20, 19, 0.34);
  cursor: pointer;
  transition: border-color 100ms ease, background-color 100ms ease, color 100ms ease;
}

.player-notifications:hover,
.player-notifications:focus-visible,
.player-notifications.has-notifications {
  border-color: rgba(179, 207, 215, 0.26);
  color: rgba(244, 245, 240, 0.94);
  background: rgba(31, 34, 32, 0.58);
}

.player-notifications img {
  width: 16px;
  height: 16px;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.player-notification-badge {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 14px;
  height: 14px;
  padding: 1px 3px 0;
  border: 1px solid rgba(20, 21, 20, 0.9);
  border-radius: 8px;
  color: #171814;
  background: #d7b358;
  box-shadow: 0 0 7px rgba(215, 179, 88, 0.22);
  font: 700 8px/11px Arial, sans-serif;
  text-align: center;
}

.player-notification-badge[hidden] {
  display: none;
}

.notification-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-top: 0;
  background: rgba(24, 26, 24, 0.985);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.46);
  animation: notification-panel-in 110ms ease-out both;
}

@keyframes notification-panel-in {
  from { transform: translateY(-4px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.notification-header {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(11, 12, 11, 0.38);
}

.notification-header h2 {
  margin: 0;
  color: rgba(241, 240, 233, 0.83);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.notification-close {
  padding: 5px 3px;
  border: 0;
  color: rgba(235, 234, 227, 0.46);
  background: transparent;
  font-size: 9px;
  letter-spacing: 0.07em;
  cursor: pointer;
}

.notification-close:hover {
  color: rgba(245, 244, 238, 0.88);
}

.notification-body {
  max-height: min(560px, calc(100vh - var(--header-height) - 22px));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.notification-section-title {
  padding: 10px 13px 6px;
  color: rgba(230, 229, 221, 0.38);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.notification-row,
.notification-friend-request {
  position: relative;
  width: 100%;
  min-height: 65px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  color: #e9e8e2;
  background: rgba(255, 255, 255, 0.018);
  text-align: left;
}

button.notification-row {
  cursor: pointer;
}

button.notification-row:hover {
  background: rgba(151, 190, 202, 0.07);
}

.notification-row.is-unread::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 0;
  width: 2px;
  content: "";
  background: #d7b358;
}

.notification-kind-icon,
.notification-avatar {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(225, 229, 219, 0.7);
  background: rgba(255, 255, 255, 0.045);
  font: 700 13px Arial, sans-serif;
}

.notification-avatar img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notification-avatar-fallback {
  position: absolute;
}

.notification-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.notification-copy strong {
  overflow: hidden;
  color: rgba(244, 243, 237, 0.88);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-copy span {
  overflow: hidden;
  color: rgba(238, 237, 230, 0.64);
  font-size: 10px;
  line-height: 13px;
  text-overflow: ellipsis;
}

.notification-copy small {
  color: rgba(238, 237, 230, 0.3);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.notification-open-arrow {
  padding-left: 5px;
  color: rgba(229, 229, 222, 0.34);
  font: 24px/1 Arial, sans-serif;
}

.notification-friend-request {
  grid-template-columns: 31px minmax(0, 1fr);
  padding-bottom: 10px;
}

.notification-friend-actions {
  grid-column: 2;
  display: flex;
  gap: 5px;
  margin-top: 4px;
}

.notification-accept,
.notification-decline {
  min-width: 68px;
  height: 25px;
  padding: 2px 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(246, 245, 239, 0.88);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.notification-accept {
  background: #526d39;
}

.notification-decline {
  background: rgba(255, 255, 255, 0.045);
}

.notification-empty {
  padding: 26px 16px;
  color: rgba(235, 234, 227, 0.38);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-align: center;
}

@media (max-width: 980px) {
  .player-notifications {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .notifications-root {
    right: 10px;
  }
}

/* 202608250012 larger, aligned notification tray */
.notifications-root {
  right: 12px;
  width: min(520px, calc(100vw - 24px));
}
.notification-panel {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(30, 29, 27, 0.995), rgba(21, 22, 21, 0.995));
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.58);
}
.notification-header {
  min-height: 52px;
  padding: 0 17px 0 18px;
}
.notification-header h2 { font-size: 13px; }
.notification-body {
  max-height: min(650px, calc(100vh - var(--header-height) - 24px));
}
.notification-section-title { padding: 12px 16px 7px; }
.notification-row,
.notification-friend-request {
  min-height: 76px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 11px 15px;
}
.notification-kind-icon,
.notification-avatar {
  width: 38px;
  height: 38px;
}
.notification-copy strong { font-size: 11px; }
.notification-copy span { font-size: 10px; line-height: 14px; }
.notification-friend-request { grid-template-columns: 38px minmax(0, 1fr); }
.notification-friend-actions { gap: 7px; }
.notification-accept,
.notification-decline { min-width: 80px; height: 28px; }
@media (max-width: 620px) {
  .notifications-root { right: 8px; width: calc(100vw - 16px); }
}

/* 202608260025 notification centre stays above modal layers. */
.notifications-root { z-index: 19000; }
