.status-help-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  align-items: end;
  justify-items: center;
  padding:
    max(16px, env(safe-area-inset-top, 0px))
    max(12px, env(safe-area-inset-right, 0px))
    calc(var(--roleplay-nav-height, 72px) + env(safe-area-inset-bottom, 0px) + 14px)
    max(12px, env(safe-area-inset-left, 0px));
  background: rgba(10, 31, 62, 0.18);
  backdrop-filter: blur(2px);
}

.status-help-backdrop[hidden] {
  display: none !important;
}

.status-help-card {
  width: min(100%, 420px);
  padding: 16px;
  border: 1px solid rgba(205, 221, 241, 0.96);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 42px rgba(24, 62, 110, 0.22);
  color: #0b2146;
}

.status-help-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.status-help-head h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}

.status-help-close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #edf4fd;
  color: #416893;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.status-help-description,
.status-help-note {
  margin: 0;
  color: #5f7598;
  font-size: 12px;
  line-height: 1.65;
}

.status-help-levels {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}

.status-help-level {
  display: grid;
  grid-template-columns: 14px minmax(50px, auto) 1fr;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 4px 6px;
  border-radius: 9px;
  background: #f7faff;
  font-size: 12px;
}

.status-help-level strong {
  font-size: 12px;
}

.status-help-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 1px 4px rgba(26, 61, 102, 0.14);
}

.status-help-swatch.tone-green { background: #16c784; }
.status-help-swatch.tone-yellowgreen { background: #7ac943; }
.status-help-swatch.tone-yellow { background: #f2c94c; }
.status-help-swatch.tone-orange { background: #f2994a; }
.status-help-swatch.tone-red { background: #eb5757; }
.status-help-swatch.tone-blue { background: #2f80ed; }

.status-help-note {
  padding-top: 10px;
  border-top: 1px solid #e5edf8;
  color: #4e6d99;
}

.help-dot[aria-expanded="true"] {
  background: #1677ff;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

@media (min-width: 760px) {
  .status-help-backdrop {
    align-items: center;
    padding-bottom: 24px;
  }
}
