.botcheck-backdrop {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgba(0, 0, 0, .74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}

.botcheck-backdrop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.botcheck-open { overflow: hidden; }

.botcheck-banner {
  position: fixed;
  z-index: 30;
  top: 18px;
  left: 50%;
  width: min(850px, calc(100vw - 36px));
  overflow: hidden;
  border-radius: 13px;
  background: #101110;
  color: #f0f0ed;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 32px));
  transition: transform .42s cubic-bezier(.2, .8, .2, 1), opacity .28s ease, visibility .28s ease;
}

.botcheck-banner.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.botcheck-appbar {
  height: 58px;
  padding: 0 25px;
  display: grid;
  grid-template-columns: 26px 1fr 26px;
  align-items: center;
  background: #202121;
  color: #e7e7e5;
}

.botcheck-menu { display: grid; gap: 4px; width: 23px; }
.botcheck-menu i { display: block; height: 2px; background: #bdbdbb; }
.botcheck-server { text-align: center; font-size: 15px; font-weight: 700; }
.botcheck-bell { width: 21px; height: 21px; justify-self: end; color: #bababa; }

.botcheck-content { padding: 22px 25px 26px; }

.botcheck-status-card {
  min-height: 110px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 11px;
  background: #1c1d1c;
}

.botcheck-status-icon { width: 52px; height: 52px; flex: none; object-fit: cover; }
.botcheck-status-copy { display: grid; gap: 9px; min-width: 0; flex: 1; }
.botcheck-status-copy strong { font-size: 17px; font-weight: 700; line-height: 1.3; }
.botcheck-status-copy > span {
  color: #db492f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.3px;
}
.botcheck-status-copy > .botcheck-status-state { display: flex; align-items: center; gap: 8px; }
.botcheck-offline-icon { width: 21px; height: 21px; flex: none; }

.botcheck-banner .botcheck-close {
  width: 39px;
  height: 39px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #151615;
  color: #c6c6c3;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.botcheck-banner .botcheck-close:hover { background: #292b29; color: #fff; }

.botcheck-content > p {
  margin: 20px 2px 0;
  max-width: 730px;
  color: #a0a19f;
  font-size: 14px;
  line-height: 1.55;
}

.botcheck-actions { display: flex; align-items: center; gap: 19px; margin-top: 22px; }
.botcheck-banner .botcheck-retry {
  min-height: 45px;
  padding: 10px 20px;
  border: 0;
  border-radius: 7px;
  background: #42532c;
  color: #f1f3eb;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.botcheck-banner .botcheck-retry:hover { background: #556d36; }
.botcheck-banner .botcheck-retry:disabled { opacity: .65; cursor: wait; }
.botcheck-actions > span { color: #7c7f7a; font-size: 12px; line-height: 1.35; }

.launch-guide {
  position: fixed;
  z-index: 31;
  top: 50%;
  left: 50%;
  width: min(430px, calc(100vw - 32px));
  padding: 31px;
  border: 1px solid #353934;
  border-radius: 14px;
  background: #1b1d1b;
  color: #f0f1ec;
  box-shadow: 0 25px 80px #000c;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -46%) scale(.96);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.launch-guide.show { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.launch-guide-close { position: absolute; top: 15px; right: 15px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #111311; color: #bbb; font-size: 23px; cursor: pointer; }
.launch-guide-icon { width: 50px; height: 50px; object-fit: cover; }
.launch-guide-kicker { margin: 18px 0 6px; color: #93ad66; font-size: 11px; font-weight: 800; letter-spacing: 1.7px; }
.launch-guide h2 { margin: 0; font-size: 25px; }
.launch-guide > p:not(.launch-guide-kicker) { margin: 10px 0 0; color: #a8aaa5; line-height: 1.55; }
.launch-guide > p strong { color: #fff; }
.launch-guide-steps { display: grid; gap: 11px; margin: 23px 0; padding: 0; list-style: none; }
.launch-guide-steps li { display: flex; align-items: center; gap: 12px; min-height: 53px; padding: 9px 12px; border-radius: 8px; background: #242724; }
.launch-guide-steps li > span { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: #4b6331; font-weight: 800; }
.launch-guide-steps li div { display: flex; align-items: center; gap: 6px; }
.launch-guide-steps b { color: #777b75; }
.launch-guide kbd { min-width: 42px; padding: 6px 9px; border: 1px solid #555a53; border-bottom-width: 3px; border-radius: 5px; background: #343834; color: #fff; font: 700 13px Arial, sans-serif; text-align: center; }
.launch-guide-copy { width: 100%; min-height: 44px; border: 0; border-radius: 7px; background: #42532c; color: #f1f3eb; font-weight: 700; cursor: pointer; }
.launch-guide-copy:hover { background: #556d36; }
.launch-guide-copy:disabled { cursor: wait; opacity: .82; }
.launch-guide-copy.loading { display: flex; align-items: center; justify-content: center; gap: 9px; }
.button-spinner { width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.32); border-top-color: #fff; border-radius: 50%; animation: button-spin .7s linear infinite; }
@keyframes button-spin { to { transform: rotate(360deg); } }
.launch-guide-error { display: block; margin-top: 9px; color: #dc513f; font-size: 11px; line-height: 1.35; text-align: center; }
.launch-guide-error[hidden] { display: none; }

@media (max-width: 620px) {
  .botcheck-banner { top: 8px; width: calc(100vw - 16px); border-radius: 10px; }
  .botcheck-appbar { height: 52px; padding: 0 17px; }
  .botcheck-server { font-size: 12px; }
  .botcheck-content { padding: 16px 13px 20px; }
  .botcheck-status-card { min-height: 95px; padding: 14px 12px; gap: 11px; }
  .botcheck-status-icon { width: 38px; height: 38px; }
  .botcheck-status-copy strong { font-size: 13px; }
  .botcheck-status-copy > span { font-size: 9px; letter-spacing: .7px; }
  .botcheck-banner .botcheck-close { width: 28px; height: 28px; font-size: 19px; }
  .botcheck-content > p { margin-top: 16px; font-size: 12px; }
  .botcheck-actions { align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 18px; }
  .botcheck-banner .botcheck-retry { width: 100%; min-height: 42px; font-size: 12px; }
  .botcheck-actions > span { font-size: 11px; }
  .launch-guide { padding: 24px 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .botcheck-banner, .botcheck-backdrop { transition: none; }
}
