:root {
  --igme-bg: #050505;
  --igme-panel: #111111;
  --igme-panel-soft: #171717;
  --igme-line: rgba(255, 255, 255, 0.1);
  --igme-muted: #8f98a8;
  --igme-ink: #f7f9ff;
  --igme-violet: #8b5cf6;
  --igme-gold: #facc15;
  --igme-page-background:
    radial-gradient(circle at 50% 0%, rgba(88, 101, 242, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(5, 5, 5, 0.04), rgba(5, 5, 5, 0.86) 480px),
    #050505;
}

.igme-theme-bg {
  background: var(--igme-page-background);
  background-attachment: fixed;
}

#sharedNav {
  position: relative;
  z-index: 60;
  width: min(1220px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
}

.promo-bar {
  position: relative;
  z-index: 61;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  background:
    linear-gradient(55deg, transparent 0 7%, rgba(255, 255, 255, 0.09) 7.2%, transparent 13%),
    linear-gradient(55deg, transparent 62%, rgba(255, 255, 255, 0.08) 62.3%, transparent 70%),
    linear-gradient(90deg, #5747bd 0%, #6b58d2 50%, #604ec5 100%);
  color: #f7f6ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.igme-mini-sponsor {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 55;
  width: min(458px, calc(100vw - 32px));
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(139, 92, 246, 0.26);
  border-radius: 18px;
  background: rgba(6, 8, 12, 0.84);
  color: #eef4ff;
  overflow: hidden;
  isolation: isolate;
  transform: translateX(-50%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 34px rgba(20, 184, 166, 0.11);
  backdrop-filter: blur(14px);
}

.igme-mini-sponsor::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(5, 7, 11, 0.86), rgba(8, 24, 27, 0.58) 48%, rgba(7, 7, 12, 0.9));
}

.igme-mini-sponsor::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/promo2.gif") center / cover no-repeat;
  opacity: 0.42;
  filter: saturate(1.15) contrast(1.08);
}

.igme-mini-sponsor-link {
  min-width: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.igme-mini-sponsor-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #05070a;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.25);
}

.igme-mini-sponsor-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.igme-mini-sponsor-copy {
  min-width: 0;
  text-align: left;
}

.igme-mini-sponsor-name {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.igme-mini-sponsor-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 5px;
  color: #8d98aa;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.igme-mini-sponsor-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.igme-mini-sponsor-meta b {
  color: inherit;
  font: inherit;
}

.igme-mini-sponsor-meta svg {
  width: 14px;
  height: 14px;
  color: #8d98aa;
}

.igme-mini-sponsor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #20e889;
  box-shadow: 0 0 14px rgba(32, 232, 137, 0.75);
}

.igme-mini-sponsor-chip {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid rgba(250, 204, 21, 0.5);
  border-radius: 12px;
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.igme-mini-sponsor-chip svg {
  width: 14px;
  height: 14px;
}

.igme-mini-sponsor-close {
  position: relative;
  z-index: 3;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7c8798;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.igme-mini-sponsor-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.igme-mini-sponsor-close svg {
  width: 15px;
  height: 15px;
}

.page > #sharedNav {
  width: 100%;
  margin: 0;
}

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

#sharedNav button {
  cursor: pointer;
}

.igme-shared-topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.igme-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.igme-brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.igme-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.28));
}

.igme-brand-word {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0;
}

.igme-brand-accent {
  color: #a99cff;
}

.igme-brand-beta {
  min-height: 19px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border: 1px solid rgba(139, 92, 246, 0.5);
  border-radius: 5px;
  background: rgba(104, 71, 220, 0.24);
  color: #c9c0ff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.igme-nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  color: #b9c0ce;
  font-size: 13.5px;
  font-weight: 600;
}

.igme-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.igme-nav-link:hover,
.igme-nav-link.active {
  color: #e4e8f2;
}

.igme-nav-link.gold {
  color: var(--igme-gold);
}

.igme-nav-link svg {
  display: none;
}

.igme-nav-right,
#igmeNavAuthArea,
.igme-nav-session-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.igme-nav-right {
  flex-shrink: 0;
}

@media (min-width: 761px) {
  .igme-nav-right {
    width: 244px;
    min-width: 244px;
    justify-content: flex-end;
  }

  #igmeNavAuthArea {
    width: 200px;
    min-width: 200px;
    justify-content: flex-end;
  }
}

.igme-nav-auth-pending {
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
}

.igme-discord-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #5865f2;
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.igme-discord-login-btn:hover {
  background: #4f5bea;
}

.igme-discord-login-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.igme-nav-settings-btn,
.igme-nav-icon-btn,
.igme-nav-profile-btn {
  font: inherit;
}

.igme-nav-settings-btn,
.igme-nav-icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: #101010;
  color: #9aa6ba;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.igme-nav-settings-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  color: #7a8699;
}

.igme-nav-settings-btn:hover,
.igme-nav-settings-btn.open,
.igme-nav-icon-btn:hover,
.igme-nav-icon-btn.open {
  border-color: rgba(255, 255, 255, 0.18);
  background: #131313;
  color: #ffffff;
}

.igme-nav-settings-btn.open {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
}

.igme-nav-settings-btn svg,
.igme-nav-icon-btn svg {
  width: 18px;
  height: 18px;
}

.igme-nav-settings-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 400ms ease;
}

.igme-nav-settings-btn.open svg {
  transform: rotate(65deg);
}

.igme-nav-menu-wrap {
  position: relative;
  display: inline-flex;
}

.igme-nav-status-dot {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 0 0 2px #050505;
}

.igme-nav-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 118px;
  min-height: 40px;
  padding: 0 10px 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: #101010;
  color: #f4f4f5;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.igme-nav-profile-btn:hover,
.igme-nav-profile-btn.open {
  border-color: rgba(255, 255, 255, 0.18);
  background: #131313;
  color: #ffffff;
}

.igme-nav-user-avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #1f2024;
  object-fit: cover;
}

.igme-nav-user-name {
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.igme-nav-chevron {
  width: 13px;
  height: 13px;
  color: #7d8490;
  transition: transform 180ms ease;
}

.igme-nav-profile-btn.open .igme-nav-chevron {
  transform: rotate(180deg);
}

.igme-nav-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: #111111;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.52);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.igme-nav-popover.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.igme-notification-menu {
  width: min(320px, calc(100vw - 32px));
  overflow: hidden;
}

.igme-notification-head,
.igme-notification-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.igme-notification-head strong {
  color: #f4f4f5;
  font-size: 15px;
  font-weight: 700;
}

.igme-notification-head button,
.igme-notification-foot a {
  border: 0;
  background: transparent;
  color: #8f98a8;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  transition: color 150ms ease;
}

.igme-notification-head button:hover,
.igme-notification-foot a:hover {
  color: #ffffff;
}

.igme-notification-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #151515;
}

.igme-notification-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #202020;
  color: #a8b0bf;
  font-size: 15px;
}

.igme-notification-copy strong {
  display: block;
  color: #f7f9ff;
  font-size: 13.5px;
  line-height: 1.35;
}

.igme-notification-copy span {
  display: block;
  margin-top: 3px;
  color: #8f98a8;
  font-size: 12px;
}

.igme-profile-menu {
  width: min(192px, calc(100vw - 32px));
  padding: 10px;
}

.igme-profile-menu-row {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d7dce7;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.igme-profile-menu-row:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
}

.igme-profile-menu-row svg {
  width: 16px;
  height: 16px;
  color: #9aa3b2;
  flex-shrink: 0;
}

.igme-profile-menu-row.red {
  color: #ff6b77;
}

.igme-profile-menu-row.red svg {
  color: #ff6b77;
}

.igme-shared-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 180ms ease, background 180ms ease;
}

.igme-shared-overlay.open {
  pointer-events: auto;
  opacity: 1;
  background: rgba(0, 0, 0, 0.56);
}

.igme-auth-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 210;
  width: min(360px, calc(100vw - 32px));
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: #14141c;
  color: #f7f9ff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -48%) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.igme-auth-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.igme-auth-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 26px;
  color: #7e8aa0;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.igme-auth-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 16px;
  background: #5865f2;
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(88, 101, 242, 0.35);
}

.igme-auth-icon svg {
  width: 25px;
  height: 25px;
}

.igme-auth-panel h2 {
  margin: 0;
  color: #ffffff;
  text-align: center;
  font-size: 24px;
  line-height: 1.2;
}

.igme-auth-panel p {
  margin: 10px 0 28px;
  color: #93a0b5;
  text-align: center;
  font-size: 14px;
}

.igme-auth-panel .igme-discord-login-btn {
  width: 100%;
  min-height: 49px;
  border-radius: 14px;
  font-size: 15px;
}

.igme-auth-sep {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 30px 0 20px;
  color: #536079;
  font-size: 12px;
}

.igme-auth-sep::before,
.igme-auth-sep::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.igme-auth-benefit {
  min-height: 62px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: #e8ecf6;
  font-size: 13px;
  font-weight: 700;
}

.igme-auth-benefit + .igme-auth-benefit {
  margin-top: 10px;
}

.igme-auth-benefit span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(88, 101, 242, 0.16);
  color: #8da2ff;
}

.igme-settings-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 210;
  width: min(340px, calc(100vw - 28px));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #151515;
  color: #f7f9ff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -48%) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.igme-settings-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.igme-settings-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 16px;
  font-weight: 800;
}

.igme-settings-body {
  padding: 18px 20px 16px;
}

.igme-settings-label {
  margin: 0 0 10px;
  color: #65708a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.igme-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.igme-lang-btn {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: #151515;
  color: #9aa6ba;
  font-size: 13px;
  font-weight: 800;
}

.igme-lang-btn.active {
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.16);
  color: #e8ddff;
}

.igme-flag {
  width: 18px;
  height: 13px;
  display: inline-block;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.igme-setting-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.igme-setting-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.16);
  color: #c4b5fd;
}

.igme-setting-title {
  display: block;
  color: #f1f5ff;
  font-size: 13px;
  font-weight: 850;
}

.igme-setting-sub {
  display: block;
  margin-top: 3px;
  color: #65708a;
  font-size: 11px;
}

.igme-switch {
  position: relative;
  width: 42px;
  height: 25px;
  border: 0;
  border-radius: 999px;
  background: #2a2a2a;
  transition: background 160ms ease;
}

.igme-switch::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 160ms ease;
}

.igme-switch.on {
  background: #5865f2;
}

.igme-switch.on::before {
  transform: translateX(17px);
}

.igme-settings-foot {
  padding: 12px 20px 16px;
  color: #4b5568;
  text-align: center;
  font-size: 11px;
}

body.igme-laser-on {
  cursor: crosshair;
}

@media (max-width: 760px) {
  .igme-shared-topbar {
    gap: 12px;
    min-height: 62px;
  }

  .igme-nav-links {
    display: none;
  }

  .igme-nav-brand {
    font-size: 22px;
  }

  .igme-nav-right {
    margin-left: auto;
  }

  .igme-nav-user-name {
    max-width: 68px;
  }

  .igme-nav-settings-btn {
    display: none;
  }
}

@media (max-width: 460px) {
  .igme-brand-beta,
  .igme-nav-user-name {
    display: none;
  }

  .igme-nav-profile-btn {
    padding-right: 8px;
  }
}
