:root{
  --accent-1: #1663ff;
  --accent-2: #0f4fe6;
  --text: #111827;
  --muted: #6b7280;
  --card-bg: rgba(255,255,255,0.92);
  --glass: rgba(255,255,255,0.6);
  --radius: 10px;
  --card-shadow: 0 8px 30px rgba(16,24,40,0.08);
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-image:
    linear-gradient(rgba(8,10,20,0.35), rgba(8,10,20,0.15)),
    url("sourceErgo/bg.jpg");
  background-repeat: no-repeat center;
  background-size: cover;
  font-family: Arial;
  line-height: 1.3;
  color: var(--text);
}


.menu {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.85);
  border-radius: 50px;
  padding: 8px 14px;
  box-shadow: 0 6px 18px rgba(12,18,30,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 40px);
}

.menu h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f1724;
}

.menu #back {
  margin-left: 8px;
  background: transparent;
  border: 1px solid rgba(15,20,30,0.06);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.menu #back:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(13,81,214,0.06); }
.menu #back:focus { outline: 3px solid rgba(21,90,255,0.16); outline-offset: 2px; }

.check {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.captcha-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  background: var(--card-bg);
  border-radius: 10px;
  max-width: 92%;
  width: 560px;
  box-sizing: border-box;
}

.left-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

#msg {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tries {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


#imgCatchpa {
  display: block;
  height: 56px;
  width: 56px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(16,24,40,0.06);
  flex: 0 0 auto;
}


#captchaBtn, #trap, #valide {
  background-color: #0f4fe6;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(13,81,214,0.12);
  flex: 0 0 auto;
  min-width: 120px;
}

#captchaBtn:hover, #trap:hover, #valide:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13,81,214,0.14); }
#captchaBtn:active, #trap:active, #valide:active { transform: translateY(1px); }
#captchaBtn:focus, #trap:focus, #valide:focus { outline: 3px solid rgba(21,90,255,0.16); outline-offset: 3px; }


@media (max-width: 640px) {
  .captcha-box { width: calc(100% - 32px); padding: 14px; }
  #imgCatchpa { height: 48px; width: 48px; }
  #captchaBtn, #trap, #valide { min-width: 100px; padding: 10px 12px; font-size: 14px; }
}

@media (max-width: 440px) {
  .captcha-box {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    width: calc(100% - 32px);
  }
  .left-group {
    width: 100%;
    justify-content: flex-start;
  }
  #msg, #tries {
    white-space: normal;
  }
  #imgCatchpa { height: 42px; width: 42px; }
  #captchaBtn { width: 100%; }
}