body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f0f0f;
  color: white;
}

/* TOP BAR */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: #1a1a1b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid #2c2c2c;
  z-index: 10;
}

.logo {
  font-weight: bold;
  color: #ff4d4d;
}

/* SEARCH */
.search input {
  width: 50vw;
  max-width: 420px;
  background: #272729;
  border: 1px solid #333;
  border-radius: 18px;
  padding: 6px 12px;
  color: white;
  outline: none;
}

/* RIGHT ICONS */
.right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon {
  cursor: pointer;
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff4d4d, #4caf50);
}

/* MAIN */
.main {
  margin-top: 120px;
  width: 340px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* STEP TEXT */
#stage {
  font-size: 18px;
  margin-bottom: 10px;
}

/* PROGRESS BAR */
.bar {
  height: 10px;
  background: #2a2a2a;
  border-radius: 5px;
  overflow: hidden;
}

.fill {
  height: 100%;
  width: 0%;
  background: #4caf50;
  transition: width 0.1s linear;
}

/* PERCENT */
#percent {
  margin-top: 6px;
  font-size: 14px;
  color: #aaa;
}

/* STEP INDICATOR */
#stepInfo {
  margin-top: 8px;
  font-size: 16px;
  letter-spacing: 1px;
  color: #ddd;
}

/* ERROR STATE */
.error {
  color: red;
}

/* CAPTCHA OVERLAY */
.captcha {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 20;
}

/* CAPTCHA BOX */
.captcha-box {
  background: #1a1a1a;
  padding: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  border-radius: 6px;
}

.box {
  width: 18px;
  height: 18px;
  border: 2px solid #777;
}

.box.checked {
  background: #4caf50;
}

/* CAPTCHA GRID */
.captcha-challenge {
  display: none;
  background: #1a1a1a;
  padding: 18px;
  border-radius: 6px;
  text-align: center;
}

.challenge-title {
  margin-bottom: 10px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.tile {
  width: 60px;
  height: 60px;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
}

.tile.selected {
  border: 2px solid #4caf50;
}

/* BUTTON */
button {
  padding: 6px 12px;
  background: #4caf50;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}

button:hover {
  opacity: 0.9;
}

/* TROLL SCREEN */
.troll {
  font-size: 28px;
  color: #ff4d4d;
  text-align: center;
  margin-top: 40px;
}
