/* ===============================
   DESIGN TOKENS
================================ */
:root {
  --bg-page: #ffffff;
  --text-primary: #1f2937;
  --text-muted: #6b7280;

  --control-bg-dark: #0F172B;
  --control-border: #020617;

  --card-bg: #ffffff;
  --card-border: #e5e7eb;

  --radius-lg: 16px;
  --radius-md: 12px;

  --control-height: 48px;
}

/* ===============================
   GLOBAL RESET
================================ */
body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===============================
   SECTION
================================ */
.bug-hunter-section {
  padding: 60px 0;
}

/* ===============================
   HEADER
================================ */
.game-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #111827;
}

.game-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===============================
   BACK HOME BUTTONS
================================ */
.back-home-btn {
  border-radius: 999px;
  padding: 8px 22px;
  font-weight: 600;
}

.back-home-btn-lg {
  padding: 12px 34px;
  border-radius: 999px;
  font-weight: 700;
}

/* ===============================
   GAME CONTROLS (BASE)
================================ */
.game-controls {
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--card-border);
}

/* DARK THEME */
.game-controls-dark {
  background-color: var(--control-bg-dark);
  border-color: var(--control-border);
}

/* ===============================
   CONTROL PILL (EQUAL SIZE)
================================ */
.control-pill {
  min-width: 380px;
  height: var(--control-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===============================
   DROPDOWN (MATCH BADGES)
================================ */
.control-input {
  width: 100%;
  height: var(--control-height);
  border-radius: var(--radius-md);
  font-weight: 600;
  /* background-color: #020617; */
  color: #020617;
  border: 1px solid #1f2937;
  padding: 0 14px;
}

.control-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}

/* ===============================
   BADGES → INPUT STYLE
================================ */
.control-badge {
  width: 100%;
  height: var(--control-height);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  background-color: #0B5ED7;
  color: #fff;
}

/* SUCCESS BADGE */
.control-badge.success {
  background-color: #008236;
  color: #fff;
}

/* ===============================
   CODE BOX
================================ */
.code-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.code-title {
  font-weight: 700;
  margin-bottom: 10px;
  color: #111827;
}

/* ===============================
   BUGGY CODE PREVIEW
================================ */
.code-preview {
  background: #f9fafb;
  color: #dc2626;
  border-radius: var(--radius-md);
  padding: 14px;
  min-height: 260px;
  overflow-x: auto;
  border: 1px dashed #d1d5db;
  font-size: 0.9rem;
}

/* ===============================
   MONACO EDITOR
================================ */
.editor {
  height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #d1d5db;
}

/* ===============================
   SUBMIT BUTTON
================================ */
#submitBtn {
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 12px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border: none;
}

#submitBtn:hover {
  opacity: 0.95;
}

/* ===============================
   MESSAGE
================================ */
#message {
  min-height: 24px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .game-title {
    font-size: 2rem;
  }

  .editor,
  .code-preview {
    min-height: 220px;
  }

  .control-pill {
    min-width: 100%;
  }
}
