.eula-popup {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;

  width: min(390px, calc(100vw - 32px));
  aspect-ratio: 12 / 8;

  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.16);

  background:
    radial-gradient(circle at top right, rgba(120,185,255,.18), transparent 42%),
    rgba(5, 8, 35, .88);

  color: #e1e8ff;
  box-shadow: 0 22px 80px rgba(0,0,0,.45);
  backdrop-filter: blur(22px);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;

  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  animation: eulaPopupIn .45s ease both;
}

@keyframes eulaPopupIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.96);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.eula-popup-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eula-popup-badge {
  width: fit-content;

  padding: 6px 9px;
  border-radius: 999px;

  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);

  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eula-popup h2 {
  margin: 0;

  color: white;
  font-size: 28px;
  line-height: .9;
  font-weight: 1000;
  letter-spacing: -0.06em;
}

.eula-popup p {
  margin: 0;

  color: rgba(225,232,255,.68);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.eula-popup a {
  color: white;
  font-weight: 900;
  text-decoration: none;
}

.eula-popup a:hover {
  text-decoration: underline;
}

.eula-popup-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  padding: 11px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.055);

  color: rgba(255,255,255,.76);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;

  cursor: pointer;
}

.eula-popup-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  flex: 0 0 auto;

  accent-color: #78b9ff;
  cursor: pointer;
}

.eula-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eula-popup-button {
  width: 100%;

  padding: 12px 14px;
  border-radius: 15px;
  border: 1px solid rgba(120,185,255,.36);

  background: rgba(120,185,255,.20);
  color: white;

  font: inherit;
  font-size: 14px;
  font-weight: 950;

  cursor: pointer;

  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.eula-popup-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(120,185,255,.28);
}

.eula-popup-button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.eula-popup-message {
  min-height: 14px;
  color: rgba(255,255,255,.55);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.eula-popup-message.error {
  color: #ff8fa5;
}

.eula-popup-message.success {
  color: #8bffb0;
}

@media (max-width: 760px) {
  .eula-popup {
    right: 14px;
    bottom: 14px;

    width: calc(100vw - 28px);
    min-height: 250px;
    aspect-ratio: auto;

    padding: 18px;
  }

  .eula-popup h2 {
    font-size: 25px;
  }
}