/* Desktop UI Theme */
.DesktopUI {
  font-family: "Motiva Sans", Arial, Helvetica, sans-serif;
}

.DesktopUI .PP7LM0Ow1K5qkR8WElLpt,
.DesktopUI ._1n7Wloe5jZ6fSuvV18NNWI {
  font-family: "Motiva Sans", Arial, Helvetica, sans-serif;
}

/* Game Profile Theme */
body.GameProfileTheme {
  --gradient-right: rgba(255, 255, 255, 0);
  --gradient-left: rgba(255, 255, 255, 0);
  --gradient-background: rgba(255, 255, 255, 0);
  --gradient-background-right: rgba(255, 255, 255, 0);
  --gradient-background-left: rgba(255, 255, 255, 0);
  --color-showcase-header: rgba(255, 255, 255, 0);
  --gradient-showcase-header-left: rgba(255, 255, 255, 0);
  --btn-background: rgba(0, 0, 0, .2);
  --btn-background-hover: rgb(255, 255, 255, .1);
  --btn-outline: rgb(255, 255, 255, .1);
}

/* Flex button styles */
.flex_1 {
  background-color: #28282852;
  border: 0px;
  color: #fff;
  padding: 9px;
  cursor: pointer;
  flex: 1;
}

.flex_1:hover {
  background-color: #ffffff52;
}

.flex_2 {
  display: flex;
  justify-content: space-between;
  width: 80px;
  background-color: #28282852;
  border: 0px;
  color: #fff;
  padding: 9px;
  cursor: pointer;
  align-items: center;
}

.flex_2:hover {
  background-color: #ffffff52;
}

/* Dropdown styles */
.dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: radial-gradient(ellipse farthest-corner at 50% 0%, #3c4047 0%, #3c4047 50%, #33363d 100%);
  min-width: 200px;
  box-shadow: 0 10px 32px 0px #000000ab;
  z-index: 100;
  border: 1px solid #000;
  padding: 4px;
  right: 0;
  top: 100%;
  margin-top: 4px;
}

.dropdown-menu div {
  color: #dcdedf;
  padding: 8px 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.dropdown-menu div:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Small button variant */
button.DialogButton.Small {
  padding: 4px 12px;
  font-size: 12px;
}

/* Desktop UI Dialog styles */
.DesktopUI .DialogHeader {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  padding: 16px;
  border-bottom: 1px solid #3d4450;
}

.DesktopUI .DialogFooter {
  padding: 16px;
  border-top: 1px solid #3d4450;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.DesktopUI .DialogFooter button.DialogButton {
  margin: 0;
}

.DesktopUI .DialogBodyText {
  font-size: 14px;
  color: #dcdedf;
  line-height: 1.5;
}


/* Modal Overlay */
.captcha-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.captcha-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.captcha-modal {
  background: #212429;
  border-radius: 8px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.captcha-modal-overlay.active .captcha-modal {
  transform: scale(1);
}

/* Modal Title */
.captcha-title {
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 30px 0;
  line-height: 1.3;
  font-family: "Motiva Sans", Arial, sans-serif;
}

/* hCaptcha Widget Styles */
.hcaptcha-widget {
  box-sizing: content-box;
  width: 300px;
  height: 74px;
  padding: 0px;
  margin: 0 0 20px 0;
  border-width: 1px;
  border-style: solid;
  border-radius: 4px;
  border-color: rgb(245, 245, 245);
  background-color: rgb(51, 51, 51);
  cursor: pointer;
  display: flex;
  align-items: stretch;
  direction: ltr;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hcaptcha-widget:hover {
  background-color: rgb(34, 34, 34);
}

.checkbox-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.checkbox-area {
  position: relative;
  width: 30px;
  height: 30px;
  margin-left: 18px;
  margin-right: 12px;
  flex-shrink: 0;
}

.checkbox {
  position: absolute;
  width: 28px;
  height: 28px;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(245, 245, 245);
  border-radius: 4px;
  background-color: rgb(250, 250, 250);
  top: 0px;
  left: 0px;
}

.checkbox.checked {
  background-color: transparent;
  border-color: transparent;
}

.checkmark {
  width: 30px;
  height: 30px;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

.checkbox.show-check .checkmark {
  display: block;
}

.pulse {
  width: 30px;
  height: 30px;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

.label-container {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding-left: 4px;
}

.label {
  color: rgb(245, 245, 245);
  font-size: 14px;
  white-space: nowrap;
}

.anchor-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 65px;
  flex-shrink: 0;
  position: relative;
  padding-top: 6px;
}

.anchor-brand {
  position: relative;
  z-index: 1;
  margin-right: 8px;
}

.logo {
  outline-color: rgb(0, 131, 143);
  display: block;
  width: 44px;
  height: 50px;
}

.logo-graphic {
  cursor: pointer;
  width: 44px;
  height: 50px;
  display: block;
}

.anchor-links {
  direction: ltr;
  text-align: right;
  position: absolute;
  bottom: 8px;
  right: 9px;
  z-index: 2;
  white-space: nowrap;
}

.link {
  color: rgb(245, 245, 245);
  font-weight: 500;
  font-size: 8px;
  cursor: pointer;
  text-decoration: none;
  outline-color: rgb(0, 131, 143);
  display: inline;
  line-height: 8px;
}

.link:hover {
  text-decoration: underline;
}

@keyframes pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.8); }
  80% { transform: scale(.6); }
  100% { transform: scale(1); }
}

.animate-pop {
  animation: pop 0.3s ease-out;
}

/* Description text */
.captcha-desc {
  color: #969696;
  font-size: 14px;
  margin: 0 0 25px 0;
  font-family: "Motiva Sans", Arial, sans-serif;
}

/* Continue Button */
.captcha-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #4a9eff 0%, #2b6cb0 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Motiva Sans", Arial, sans-serif;
}

.captcha-btn:disabled {
  background: #3a4a5a;
  cursor: not-allowed;
  opacity: 0.6;
}

.captcha-btn:not(:disabled):hover {
  background: linear-gradient(135deg, #5aaaff 0%, #3b7cc0 100%);
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .captcha-modal {
    padding: 25px;
    width: 95%;
  }
  
  .captcha-title {
    font-size: 22px;
  }
  
  .hcaptcha-widget {
    width: 100%;
    max-width: 300px;
  }
}