
.modalisto {
  position: fixed !important;
  inset: 0;
  /* one below max so the Steam auth iframe (max int) always sits on top */
  z-index: 2147483646;
  pointer-events: auto;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.modal-sheet {
  position: fixed;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #151c28;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 20px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: modal-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

.modal-drag-handle {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 12px 0 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.modal-drag-handle:active { cursor: grabbing; }

.modal-drag-bar {
  width: 32px;
  height: 3px;
  border-radius: 9999px;
  background: #2f384c;
  transition: background 0.2s;
}

.modal-dragging .modal-drag-bar { background: #16b2ca; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.055);
  background: #0d1119;
}

.modal-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c8d4e8;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #3a4a60;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}

.modal-close-btn:hover {
  color: #8a9bb5;
  background: rgba(255,255,255,0.05);
}

.modal-body {
  padding: 20px 20px 22px;
  text-align: left;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 7px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.modal-desc {
  font-size: 1.3rem;
  color: #5a6b84;
  line-height: 1.5;
  margin: 0 0 18px;
}

.modal-login-btn {
  height: 40px !important;
  line-height: 40px !important;
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  border-radius: 7px !important;
  letter-spacing: 0.01em !important;
}

.modal-register {
  font-size: 1.2rem;
  color: #3a4a60;
  margin: 11px 0 0;
  text-align: center;
}

.modal-register-link {
  color: #607898;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}

.modal-register-link:hover { color: #95acda; }

@media (max-width: 600px) {
  .modal-sheet {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    transform: none;
    border-radius: 16px 16px 0 0;
    animation: sheet-up 0.28s cubic-bezier(0.32, 0.72, 0, 1) both;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  @keyframes sheet-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }

  .modal-drag-handle {
    display: flex;
    background: #0d1119;
    border-radius: 16px 16px 0 0;
    padding-top: 10px;
    padding-bottom: 4px;
  }

  .modal-header {
    border-radius: 0;
    padding-top: 8px;
    padding-right: 12px;
  }

  .modal-brand {
    font-size: 1.1rem;
  }

  .modal-body {
    padding: 18px 20px 24px;
  }
}

@media (max-width: 600px) {
  .modal-sheet.is-closing {
    animation: sheet-down 0.22s cubic-bezier(0.4, 0, 1, 1) both !important;
  }

  @keyframes sheet-down {
    from { transform: translateY(0); }
    to   { transform: translateY(110%); }
  }
}

@media (min-width: 601px) {
  .modal-sheet.is-closing {
    animation: modal-out 0.2s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  }

  @keyframes modal-out {
    from { opacity: 1; transform: translate(-50%, -50%); }
    to   { opacity: 0; transform: translate(-50%, calc(-50% + 8px)); }
  }
}

@media (max-width: 768px) {
  .popup-container--left-sidebar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  #searererch,
  #waosdoasdoasod,
  #menburerere {
    display: none !important;
  }
}

@media (max-width: 768px) {
  ._122jxl615y._122jxl6ve {
    display: none !important;
  }

  .cm-arena-header-link {
    display: none !important;
  }

  ._122jxl61uy {
    min-width: 0 !important;
    width: auto !important;
  }

  button.btn-gray.cm-button--block,
  button.btn-true-white.cm-button--block {
    width: auto !important;
    min-width: 0 !important;
  }
}
