/* ==========================================================================
   RIVALS GAUNTLET — GLOBAL HEADER
   Built for global-header.js v2.0.0
   ========================================================================== */

:root {
  --rg-header-height: 82px;
  --rg-header-max: 1920px;
  --rg-bg: #09080f;
  --rg-panel: rgba(15, 13, 24, .985);
  --rg-panel-2: rgba(23, 19, 36, .98);
  --rg-text: #f8f6ff;
  --rg-soft: #c8c2d7;
  --rg-muted: #8d879c;
  --rg-faint: #655f71;
  --rg-purple: #9d82ff;
  --rg-purple-2: #7f5cff;
  --rg-purple-3: #5e38d6;
  --rg-border: rgba(177, 156, 255, .16);
  --rg-border-strong: rgba(188, 168, 255, .34);
  --rg-success: #67e0a3;
  --rg-danger: #ff7188;
  --rg-warning: #f2c56a;
  --rg-shadow: 0 22px 55px rgba(0,0,0,.52);
  --rg-panel-shadow: 0 34px 90px rgba(0,0,0,.7);
  --rg-z-header: 9000;
  --rg-z-backdrop: 9050;
  --rg-z-panel: 9100;
  --rg-z-modal: 9200;
  --rg-z-toast: 9300;
}

html.rg-overlay-open,
body.rg-overlay-open { overflow: hidden; }

#globalHeader,
#globalHeader *,
#globalHeader *::before,
#globalHeader *::after { box-sizing: border-box; }

#globalHeader [hidden] { display: none !important; }

#globalHeader button,
#globalHeader input { font: inherit; }

#globalHeader button,
#globalHeader a { -webkit-tap-highlight-color: transparent; }

#globalHeader svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Reserve page space because the header is fixed. */
#globalHeader {
  min-height: var(--rg-header-height);
}

/* HEADER SHELL */
.rg-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--rg-z-header);
  width: 100%;
  min-height: var(--rg-header-height);
  color: var(--rg-text);
  background:
    radial-gradient(circle at 15% -45%, rgba(127,92,255,.22), transparent 38%),
    radial-gradient(circle at 86% -50%, rgba(92,52,210,.13), transparent 34%),
    linear-gradient(180deg, rgba(21,18,33,.99), rgba(8,8,14,.995));
  border-bottom: 1px solid rgba(177,156,255,.15);
  box-shadow: var(--rg-shadow);
  isolation: isolate;
}

.rg-header::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -140px;
  width: 140px;
  height: 2px;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(157,130,255,0.08) 14%,
    rgba(231,225,255,0.98) 48%,
    rgba(157,130,255,0.75) 72%,
    transparent 100%
  );
  box-shadow:
    0 0 10px rgba(157,130,255,.55),
    0 0 18px rgba(127,92,255,.32);
  animation: rgHeaderBottomBeam 14s ease-in-out infinite alternate;
}

.rg-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(157,130,255,.5), transparent);
  opacity: .65;
}


@keyframes rgHeaderBottomBeam {
  0% {
    transform: translateX(0);
    opacity: .55;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(100vw + 160px));
    opacity: .55;
  }
}

.rg-header__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px,auto) minmax(0,1fr) auto;
  align-items: stretch;
  width: 100%;
  max-width: var(--rg-header-max);
  min-height: var(--rg-header-height);
  margin: 0 auto;
  padding: 0 22px;
}

/* BRAND */
.rg-header__brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-right: 24px;
  color: inherit;
  text-decoration: none;
}

.rg-header__brand::after {
  content: "";
  position: absolute;
  top: 18px; right: 0; bottom: 18px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(177,156,255,.24), transparent);
}

.rg-header__brand-mark {
  position: relative;
  display: none;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(188,168,255,.34);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, rgba(127,92,255,.24), rgba(54,32,115,.12)), #0e0c17;
  box-shadow: inset 0 0 18px rgba(127,92,255,.11), 0 0 18px rgba(127,92,255,.1);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -1px;
}

.rg-header__brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(203,190,255,.12);
  border-radius: 8px;
}

.rg-header__brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rg-header__brand-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rg-header__brand-copy small {
  margin-top: 5px;
  overflow: hidden;
  color: #bcaaff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .18em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* NAV */
.rg-header__nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  padding: 0 16px;
}

.rg-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 0 13px;
  color: var(--rg-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .075em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}

.rg-header__nav-link::before {
  content: "";
  position: absolute;
  inset: 13px 5px;
  z-index: -1;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: .18s ease;
}

.rg-header__nav-link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #bdaaff, transparent);
  box-shadow: 0 0 12px rgba(157,130,255,.6);
  transition: width .2s ease;
}

.rg-header__nav-link:hover { color: #eee9ff; }
.rg-header__nav-link:hover::before { border-color: rgba(177,156,255,.12); background: rgba(127,92,255,.06); }
.rg-header__nav-link.is-active { color: #fff; }
.rg-header__nav-link.is-active::before { border-color: rgba(177,156,255,.2); background: rgba(127,92,255,.12); }
.rg-header__nav-link.is-active::after { width: calc(100% - 22px); }

/* UTILITIES */
.rg-header__utilities,
.rg-header__auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.rg-header__utilities { padding-left: 18px; }

.rg-header__sign-in,
.rg-header__create-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.rg-header__sign-in { border: 1px solid var(--rg-border); color: var(--rg-soft); background: rgba(255,255,255,.02); }
.rg-header__create-account { border: 1px solid rgba(188,168,255,.4); color: #fff; background: linear-gradient(135deg,#815dff,#5836cf); box-shadow: 0 8px 20px rgba(82,48,190,.25); }

.rg-utility,
.rg-profile__toggle,
.rg-header__mobile-toggle,
.rg-icon-button,
.rg-text-button {
  border: 0;
  color: var(--rg-text);
  cursor: pointer;
}

.rg-utility {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  min-width: 43px;
  height: 43px;
  padding: 0;
  border: 1px solid var(--rg-border);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(35,31,51,.88), rgba(18,16,29,.92));
  transition: .16s ease;
}

.rg-utility:hover,
.rg-header__mobile-toggle:hover {
  border-color: var(--rg-border-strong);
  background: rgba(127,92,255,.12);
  transform: translateY(-1px);
}
.rg-utility--points {
  width: auto;
  min-width: 105px;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 12px 0 9px;
}

.rg-utility__icon {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  overflow: hidden;
}

.rg-utility__icon img {
  display: block;
  width: 23px !important;
  height: 23px !important;
  max-width: 23px !important;
  max-height: 23px !important;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(157,130,255,.28));
}

[data-rg-friends-toggle] .rg-utility__icon {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}

[data-rg-friends-toggle] .rg-utility__icon img {
  width: 25px !important;
  height: 25px !important;
  max-width: 25px !important;
  max-height: 25px !important;
}

.rg-utility__copy { display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.rg-utility__copy strong { max-width: 60px; overflow: hidden; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.rg-utility__copy small { color: var(--rg-muted); font-size: 8px; font-weight: 800; }

.rg-badge {
  position: absolute;
  top: -5px; right: -5px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid #0b0911;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(#ad98ff,#7050f4);
  font-size: 9px;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(127,92,255,.5);
}
.rg-badge.is-popping { animation: rgBadgePop .45s ease; }
@keyframes rgBadgePop { 50% { transform: scale(1.25); } }

/* PROFILE */
.rg-profile { position: relative; }

.rg-profile__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  min-width: 43px;
  max-width: 43px;
  height: 43px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  background: transparent;
  box-shadow: none;
  transition: transform .16s ease;
}

.rg-profile__toggle:hover {
  background: transparent;
  box-shadow: none;
  transform: translateY(-1px);
}

.rg-profile__toggle:focus-visible {
  outline: 2px solid rgba(188,168,255,.7);
  outline-offset: 3px;
}

.rg-profile__avatar,
.rg-profile-menu__avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid rgba(188,168,255,.36);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg,rgba(127,92,255,.23),rgba(36,22,93,.18)),#151321;
  font-size: 15px;
  font-weight: 800;
}

/* Header avatar matches the 43px utility buttons exactly. */
.rg-profile__avatar {
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  border-radius: 11px;
  transition:
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

.rg-profile__toggle:hover .rg-profile__avatar,
.rg-profile__toggle[aria-expanded="true"] .rg-profile__avatar {
  border-color: var(--rg-border-strong);
  background:
    linear-gradient(
      145deg,
      rgba(127,92,255,.3),
      rgba(36,22,93,.22)
    ),
    #151321;
  box-shadow:
    inset 0 0 16px rgba(127,92,255,.13),
    0 0 17px rgba(127,92,255,.13);
}

/* The account details remain available inside the dropdown. */
.rg-profile__copy,
.rg-profile__chevron {
  display: none;
}

.rg-profile__avatar img,
.rg-profile-menu__avatar img { width: 100%; height: 100%; object-fit: cover; }
.rg-profile__avatar.has-image > span,
.rg-profile-menu__avatar.has-image > span { display: none; }

.rg-profile__copy {
  display: none;
}
.rg-profile__copy strong { overflow: hidden; color: #fff; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.rg-profile__copy small { margin-top: 3px; color: #b9a8f6; font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rg-profile__chevron { flex: 0 0 14px; width: 14px; height: 14px; color: var(--rg-muted); transition: transform .2s ease; }
.rg-profile__toggle[aria-expanded="true"] .rg-profile__chevron { transform: rotate(180deg); }

.rg-profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: var(--rg-z-panel);
  width: 286px;
  padding: 8px;
  border: 1px solid rgba(177,156,255,.2);
  border-radius: 16px;
  color: var(--rg-text);
  background: linear-gradient(180deg,rgba(24,21,37,.995),rgba(10,9,16,.998));
  box-shadow: var(--rg-panel-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.985);
  transform-origin: top right;
  transition: .17s ease;
}
.rg-profile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.rg-profile-menu__identity { display: flex; align-items: center; gap: 11px; padding: 10px; border: 1px solid rgba(177,156,255,.1); border-radius: 12px; background: rgba(127,92,255,.08); }
.rg-profile-menu__identity > span:last-child { min-width: 0; }
.rg-profile-menu__identity strong,
.rg-profile-menu__identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-profile-menu__identity strong { font-size: 14px; }
.rg-profile-menu__identity small { margin-top: 3px; color: var(--rg-muted); font-size: 10px; }
.rg-profile-menu__links { display: grid; gap: 3px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(177,156,255,.1); }
.rg-profile-menu__item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid transparent; border-radius: 10px; color: var(--rg-soft); background: transparent; font-size: 12px; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.rg-profile-menu__item:hover { border-color: rgba(177,156,255,.14); color: #fff; background: rgba(127,92,255,.09); }
.rg-profile-menu__item--danger:hover { color: #ffdce2; background: rgba(255,113,136,.08); }
.rg-profile-menu__icon { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border-radius: 7px; color: #c6b8ff; background: rgba(127,92,255,.08); }
.rg-profile-menu__icon svg { width: 15px; height: 15px; }

/* MOBILE PANEL */
.rg-header__mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  padding: 0;
  border: 1px solid var(--rg-border);
  border-radius: 11px;
  background: linear-gradient(180deg,rgba(35,31,51,.88),rgba(18,16,29,.92));
}
.rg-mobile-panel { position: relative; z-index: 2; border-top: 1px solid rgba(177,156,255,.12); background: rgba(9,8,15,.995); box-shadow: 0 24px 48px rgba(0,0,0,.52); }
.rg-mobile-panel__nav { display: grid; gap: 5px; padding: 10px 12px; }
.rg-mobile-panel__link,
.rg-mobile-panel__account,
.rg-mobile-panel__sign-in,
.rg-mobile-panel__create,
.rg-mobile-panel__sign-out { display: flex; align-items: center; min-height: 45px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; color: var(--rg-soft); background: transparent; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.rg-mobile-panel__link.is-active { border-color: rgba(188,168,255,.2); color: #fff; background: rgba(127,92,255,.12); }
.rg-mobile-panel__auth { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 10px 12px 14px; border-top: 1px solid rgba(177,156,255,.1); }
.rg-mobile-panel__auth:empty {
  display: none;
}
.rg-mobile-panel__create { justify-content: center; color: #fff; background: linear-gradient(135deg,#815dff,#5836cf); }
.rg-mobile-panel__sign-in { justify-content: center; border-color: var(--rg-border); }
.rg-mobile-panel__account { grid-column: 1 / -1; }
.rg-mobile-panel__sign-out { grid-column: 1 / -1; justify-content: center; color: #ffc6d0; background: rgba(255,113,136,.06); cursor: pointer; }

/* BACKDROP */
.rg-overlay-backdrop { position: fixed; inset: 0; z-index: var(--rg-z-backdrop); background: rgba(3,3,8,.74); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: .2s ease; }
.rg-overlay-backdrop.is-visible { opacity: 1; visibility: visible; }

/* DRAWERS */
.rg-drawer {
  position: fixed;
  top: 0; right: 0;
  z-index: var(--rg-z-panel);
  display: flex;
  flex-direction: column;
  width: min(468px,100vw);
  height: 100dvh;
  overflow: hidden;
  color: var(--rg-text);
  background: radial-gradient(circle at 100% 0%,rgba(127,92,255,.14),transparent 32%),linear-gradient(180deg,rgba(20,17,31,.998),rgba(8,8,14,.998));
  border-left: 1px solid rgba(177,156,255,.21);
  box-shadow: var(--rg-panel-shadow);
  transform: translateX(104%);
  transition: transform .34s cubic-bezier(.2,.8,.2,1);
}
.rg-drawer.is-open { transform: translateX(0); }
.rg-drawer__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 82px; padding: 16px 18px; border-bottom: 1px solid rgba(177,156,255,.14); background: rgba(38,31,58,.3); }
.rg-drawer__eyebrow { color: #bdaaff; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.rg-drawer__header h2 { margin: 4px 0 0; font-size: 22px; line-height: 1; text-transform: uppercase; }
.rg-drawer__header-actions { display: flex; align-items: center; gap: 7px; }
.rg-icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--rg-border); border-radius: 10px; background: rgba(255,255,255,.025); }
.rg-text-button { min-height: 34px; padding: 0 11px; border: 1px solid var(--rg-border); border-radius: 9px; color: #c9bcff; background: rgba(127,92,255,.06); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.rg-drawer__search { position: relative; padding: 12px 14px; border-bottom: 1px solid rgba(177,156,255,.1); }
.rg-drawer__search > span { position: absolute; left: 27px; top: 50%; color: var(--rg-muted); transform: translateY(-50%); }
.rg-drawer__search input { width: 100%; height: 43px; padding: 0 13px 0 42px; border: 1px solid var(--rg-border); border-radius: 11px; color: #fff; background: rgba(255,255,255,.025); outline: none; }
.rg-drawer__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

.rg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 12px 14px 0; padding: 4px; border: 1px solid rgba(177,156,255,.1); border-radius: 11px; background: rgba(255,255,255,.018); }
.rg-tab { min-height: 35px; border: 1px solid transparent; border-radius: 8px; color: var(--rg-muted); background: transparent; font-size: 10px; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.rg-tab.is-active { border-color: rgba(188,168,255,.2); color: #fff; background: rgba(127,92,255,.14); }
.rg-tab span { margin-left: 5px; color: #c6b8ff; }

.rg-notification-summary { padding: 14px 18px; border-bottom: 1px solid rgba(177,156,255,.1); }
.rg-notification-summary strong,
.rg-notification-summary span { display: block; }
.rg-notification-summary strong { font-size: 13px; }
.rg-notification-summary span { margin-top: 4px; color: var(--rg-muted); font-size: 10px; }
.rg-notification-list {
  display: grid;
  gap: 9px;
  padding: 13px;
}

.rg-notification-card {
  position: relative;

  display: block;
  overflow: hidden;

  margin: 0;
  padding: 0;

  border: 1px solid rgba(177, 156, 255, .12);
  border-radius: 14px;

  color: var(--rg-text);

  background:
    linear-gradient(
      145deg,
      rgba(29, 25, 44, .96),
      rgba(11, 10, 18, .98)
    );
}

.rg-notification-card.is-unread {
  border-color: rgba(157, 130, 255, .38);

  background:
    linear-gradient(
      145deg,
      rgba(59, 43, 103, .46),
      rgba(14, 11, 24, .98)
    );

  box-shadow:
    inset 3px 0 0 #9d82ff,
    0 0 18px rgba(127, 92, 255, .08);
}

/* Completely resets the nested button */
.rg-notification-card__main {
  all: unset;
  box-sizing: border-box;

  position: relative;

  width: 100%;
  min-width: 0;

  display: grid;

  grid-template-columns:
    42px
    minmax(0, 1fr);

  align-items: start;
  gap: 11px;

  padding: 13px;

  color: var(--rg-text);
  background: transparent;

  font-family: inherit;
  text-align: left;

  cursor: pointer;
}

.rg-notification-card__main:hover {
  background: rgba(127, 92, 255, .045);
}

.rg-notification-card__main:active {
  background: rgba(127, 92, 255, .075);
}

.rg-notification-card__main:focus-visible {
  outline: 2px solid rgba(188, 168, 255, .7);
  outline-offset: -3px;
}

.rg-notification-card__icon {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 1px solid var(--rg-border);
  border-radius: 12px;

  color: #c9bcff;
  background: rgba(127, 92, 255, .1);
}

.rg-notification-card__icon svg,
.rg-notification-card__icon img {
  width: 20px;
  height: 20px;

  object-fit: contain;
}

.rg-notification-card__content {
  min-width: 0;

  display: block;

  color: var(--rg-text);
}

.rg-notification-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;

  margin-bottom: 6px;
}

.rg-notification-card__category {
  color: #c9bcff;

  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rg-notification-card__meta time {
  color: var(--rg-faint);

  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.rg-notification-card__content > strong {
  display: block;

  color: #ffffff;

  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.rg-notification-card__message {
  display: block;

  margin-top: 4px;

  color: #aaa3b8;

  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.rg-notification-card__unread {
  position: absolute;

  top: 10px;
  right: 10px;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #bdaaff;

  box-shadow:
    0 0 10px rgba(157, 130, 255, .8);
}

.rg-notification-card.is-read
.rg-notification-card__unread {
  display: none;
}

.rg-notification-card__footer {
  margin: 0;

  padding:
    0
    13px
    13px
    66px;

  color: inherit;
}

/* Reset action buttons too */
.rg-notification-card__action {
  all: unset;
  box-sizing: border-box;

  min-height: 32px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding:
    0
    11px;

  border: 1px solid var(--rg-border);
  border-radius: 8px;

  color: #d6ccff;
  background: rgba(127, 92, 255, .08);

  font-family: inherit;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;

  cursor: pointer;
}

.rg-notification-card__action:hover {
  border-color: var(--rg-border-strong);
  background: rgba(127, 92, 255, .14);
}

@media (max-width: 760px) {
  .rg-notification-list {
    gap: 9px;
    padding: 10px;
  }

  .rg-notification-card__main {
    grid-template-columns:
      38px
      minmax(0, 1fr);

    gap: 10px;

    padding: 12px;
  }

  .rg-notification-card__icon {
    width: 38px;
    height: 38px;

    border-radius: 10px;
  }

  .rg-notification-card__content > strong {
    font-size: 13px;
  }

  .rg-notification-card__message {
    font-size: 10px;
  }

  .rg-notification-card__footer {
    padding:
      0
      12px
      12px
      60px;
  }
}

.rg-friend-card,
.rg-request-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; margin: 9px 13px; padding: 10px; border: 1px solid rgba(177,156,255,.1); border-radius: 13px; background: rgba(255,255,255,.018); }
.rg-friend-card__avatar,
.rg-request-card__avatar { position: relative; display: grid; place-items: center; width: 43px; height: 43px; overflow: hidden; border: 1px solid rgba(177,156,255,.23); border-radius: 12px; background: rgba(127,92,255,.12); font-weight: 800; }
.rg-friend-card__avatar img,
.rg-request-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.rg-friend-card__avatar i { position: absolute; right: 1px; bottom: 1px; width: 10px; height: 10px; border: 2px solid #100e18; border-radius: 50%; background: var(--rg-faint); }
.rg-friend-card__avatar.is-online i { background: var(--rg-success); box-shadow: 0 0 8px rgba(103,224,163,.55); }
.rg-friend-card__copy,
.rg-request-card__copy { min-width: 0; }
.rg-friend-card__copy strong,
.rg-request-card__copy strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.rg-friend-card__copy span,
.rg-request-card__copy span { display: block; margin-top: 4px; overflow: hidden; color: var(--rg-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.rg-friend-card__action,
.rg-request-card__actions button { min-height: 33px; padding: 0 10px; border: 1px solid var(--rg-border); border-radius: 8px; color: #c9bcff; background: rgba(127,92,255,.07); font-size: 9px; font-weight: 800; cursor: pointer; }
.rg-request-card__actions { display: flex; gap: 5px; }

/* LOADING / EMPTY */
.rg-skeleton-list { display: grid; gap: 9px; padding: 13px; }
.rg-skeleton-row { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 11px; align-items: center; min-height: 64px; padding: 10px; border: 1px solid rgba(177,156,255,.08); border-radius: 12px; }
.rg-skeleton { display: block; border-radius: 8px; background: linear-gradient(90deg,rgba(255,255,255,.035),rgba(255,255,255,.09),rgba(255,255,255,.035)); background-size: 200% 100%; animation: rgSkeleton 1.3s linear infinite; }
.rg-skeleton--avatar { width: 42px; height: 42px; border-radius: 12px; }
.rg-skeleton-row__copy { display: grid; gap: 8px; }
.rg-skeleton--line { width: 75%; height: 9px; }
.rg-skeleton--line-short { width: 46%; }
@keyframes rgSkeleton { to { background-position: -200% 0; } }
.rg-empty-state { display: grid; place-items: center; min-height: 280px; padding: 30px 22px; text-align: center; }
.rg-empty-state__icon { display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid var(--rg-border); border-radius: 20px; color: #c6b8ff; background: rgba(127,92,255,.08); }
.rg-empty-state h3 { margin: 18px 0 0; font-size: 17px; text-transform: uppercase; }
.rg-empty-state p { max-width: 300px; margin: 7px 0 0; color: var(--rg-muted); font-size: 11px; line-height: 1.5; }

/* POINTS MODAL */
.rg-modal-shell { position: fixed; inset: 0; z-index: var(--rg-z-modal); display: grid; place-items: center; padding: 18px; opacity: 0; visibility: hidden; pointer-events: none; transition: .2s ease; }
.rg-modal-shell.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.rg-modal { position: relative; width: min(430px,100%); padding: 28px 24px 24px; overflow: hidden; border: 1px solid rgba(188,168,255,.24); border-radius: 22px; color: var(--rg-text); background: radial-gradient(circle at 50% 0%,rgba(127,92,255,.2),transparent 48%),linear-gradient(180deg,rgba(27,23,42,.995),rgba(9,8,15,.998)); box-shadow: var(--rg-panel-shadow); text-align: center; transform: translateY(12px) scale(.98); transition: transform .3s ease; }
.rg-modal-shell.is-open .rg-modal { transform: translateY(0) scale(1); }
.rg-modal__close { position: absolute; top: 13px; right: 13px; }
.rg-points-modal__icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 8px auto 0; }
.rg-points-modal__icon img { display: block; width: 68px !important; height: 68px !important; max-width: 68px !important; max-height: 68px !important; object-fit: contain; filter: drop-shadow(0 0 18px rgba(157,130,255,.35)); }
.rg-points-modal__eyebrow { display: block; margin-top: 16px; color: var(--rg-muted); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.rg-points-modal h2 { margin: 7px 0 0; font-size: clamp(40px,10vw,58px); line-height: .95; }
.rg-points-modal p { margin: 8px 0 0; color: #c5b7ff; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.rg-points-modal__footer { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(177,156,255,.1); color: var(--rg-muted); font-size: 11px; line-height: 1.5; }

/* TOASTS */
.rg-toast-region { position: fixed; right: 18px; bottom: 18px; z-index: var(--rg-z-toast); display: grid; gap: 9px; width: min(360px,calc(100vw - 36px)); pointer-events: none; }
.rg-toast { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: start; padding: 13px; border: 1px solid rgba(188,168,255,.22); border-radius: 13px; color: var(--rg-text); background: linear-gradient(145deg,rgba(28,24,43,.985),rgba(10,9,17,.99)); box-shadow: 0 20px 44px rgba(0,0,0,.58); pointer-events: auto; animation: rgToastIn .25s ease both; }
.rg-toast.is-leaving { opacity: 0; transform: translateY(8px); transition: .18s ease; }
.rg-toast__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #c6b8ff; background: rgba(127,92,255,.11); }
.rg-toast__message { color: var(--rg-soft); font-size: 11px; line-height: 1.45; }
.rg-toast__close { width: 28px; height: 28px; padding: 0; border: 0; color: var(--rg-muted); background: transparent; cursor: pointer; }
@keyframes rgToastIn { from { opacity: 0; transform: translateY(10px); } }

/* TABLET */
@media (max-width: 1240px) {
  :root { --rg-header-height: 76px; }
  .rg-header__inner { padding: 0 14px; grid-template-columns: minmax(165px,auto) minmax(0,1fr) auto; }
  .rg-header__brand { padding-right: 14px; }
  .rg-header__brand-mark { flex-basis: 38px; width: 38px; height: 38px; }
  .rg-header__brand-copy strong { font-size: 14px; }
  .rg-header__brand-copy small { font-size: 7px; }
  .rg-header__nav { padding: 0 7px; }
  .rg-header__nav-link { min-width: 0; padding: 0 8px; font-size: 10px; }
  .rg-header__utilities { gap: 6px; padding-left: 9px; }
  .rg-profile__copy,.rg-profile__chevron { display: none; }
}

@media (max-width: 980px) {
  .rg-header__inner { grid-template-columns: minmax(125px,auto) minmax(0,1fr) auto; }
  .rg-header__brand-copy small { display: none; }
  .rg-header__brand-copy strong { max-width: 105px; font-size: 12px; }
  .rg-header__nav-link { padding: 0 6px; font-size: 9px; letter-spacing: .045em; }
 .rg-utility--points {
  width: auto;
  min-width: 78px;
  padding: 0 10px 0 8px;
  justify-content: flex-start;
  gap: 6px;
}

.rg-utility__copy { display: none; }

.rg-utility--points .rg-utility__copy {
  display: flex;
}

.rg-utility--points .rg-utility__copy strong {
  max-width: none;
  font-size: 12px;
}

.rg-utility--points .rg-utility__copy small {
  display: none;
}
}

/* PHONE */
@media (max-width: 760px) {
  :root { --rg-header-height: 68px; }
  .rg-header__inner { display: flex; align-items: center; min-height: var(--rg-header-height); padding: 0 max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left)); }
 .rg-header__brand {
  flex: 1 1 auto;
  padding-right: 6px;
  margin-left: 10px;
}
  .rg-header__brand::after,.rg-header__nav { display: none; }
  .rg-header__brand-mark { flex-basis: 37px; width: 37px; height: 37px; border-radius: 10px; }
  .rg-header__brand-copy strong { max-width: 145px; font-size: 13px; }
  .rg-header__brand-copy small { display: block; max-width: 145px; font-size: 6px; }
  .rg-header__utilities { gap: 5px; padding-left: 4px; }
  .rg-header__auth--out .rg-header__sign-in,
  .rg-header__auth--out .rg-header__create-account { display: none; }
  .rg-utility { width: 39px; min-width: 39px; height: 39px; }
  .rg-utility__icon { width: 21px; height: 21px; flex-basis: 21px; }
  .rg-utility__icon img { width: 20px !important; height: 20px !important; max-width: 20px !important; max-height: 20px !important; }
  
  [data-rg-friends-toggle] .rg-utility__icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

[data-rg-friends-toggle] .rg-utility__icon img {
  width: 23px !important;
  height: 23px !important;
  max-width: 23px !important;
  max-height: 23px !important;
}
  
  .rg-utility--points {
  width: auto;
  min-width: 72px;
  padding: 0 8px 0 7px;
  justify-content: flex-start;
  gap: 5px;
}

.rg-utility--points .rg-utility__copy {
  display: flex;
}

.rg-utility--points .rg-utility__copy strong {
  max-width: 34px;
  font-size: 11px;
}

.rg-utility--points .rg-utility__copy small {
  display: none;
}
   .rg-profile__toggle {
  width: 39px;
  min-width: 39px;
  max-width: 39px;
  height: 39px;
  padding: 0;
  border-radius: 10px;
}

.rg-profile__avatar {
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  border-radius: 10px;
}
  .rg-header__mobile-toggle { display: inline-flex; width: 39px; height: 39px; }
  .rg-profile-menu { position: fixed; top: 76px; right: 10px; width: min(286px,calc(100vw - 20px)); }
  .rg-drawer { width: 100vw; border-left: 0; }
  .rg-modal-shell { padding: 10px; }
  .rg-toast-region { right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: calc(100vw - 20px); }
}

@media (max-width: 430px) {
  .rg-header__brand-copy strong { max-width: 118px; font-size: 12px; }
  .rg-header__brand-copy small { max-width: 118px; }
  .rg-header__auth--in { gap: 4px; }

  .rg-utility--points {
    min-width: 68px;
    padding: 0 7px 0 6px;
  }

  .rg-utility--points .rg-utility__copy strong {
    max-width: 30px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rg-header__energy::before,
  .rg-header__energy::after,
  .rg-skeleton { animation: none !important; }
  #globalHeader * { scroll-behavior: auto !important; }
}

.rg-utility__icon{
    display:flex;
    align-items:center;
    justify-content:center;
}

.rg-utility__icon i{
    font-size:20px;
    color:#d7d4e3;
    transition:.2s ease;
}

.rg-utility:hover .rg-utility__icon i{
    color:#c084fc;
    transform:scale(1.08);
}

/* ===== Icon size tweaks ===== */

[data-rg-friends-toggle] .rg-utility__icon i{
  font-size:18px !important;
  line-height:1;
}

[data-rg-notifications-toggle] .rg-utility__icon i{
  font-size:18px !important;
  line-height:1;
}