body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #2C3153;
  font-family: 'Poppins', Arial, sans-serif;
}
.logo {
  display: block;
  position: absolute;
  left: 20px;
  top: 0;
  transform: translateY(-50%);
  max-width: 240px;
  height: auto;
  background: transparent;
  z-index: 2;
}
.card {
  position: relative;
  background: #1B1F3B;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  color: #fff;
  font-family: 'Poppins', Arial, sans-serif;
}
.card h1 {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.2;
}
.callout {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #ccc;
}
.card h1 .highlight {
  color: #F5B700;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group input[type="text"] {
  background: #2C3153;
  border: none;
  border-radius: 4px;
  padding: 12px;
  color: #fff;
  font-size: 14px;
}
.form-group input[type="text"]::placeholder {
  color: #aaa;
}
button {
  background: #F5B700;
  color: #1B1F3B;
  border: none;
  border-radius: 4px;
  padding: 16px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}
button:hover {
  opacity: 0.9;
}
.footer {
  width: 100vw;
  text-align: center;
  position: fixed;
  left: 0;
  bottom: 0;
  font-size: 12px;
  color: #666;
  opacity: 0.7;
  background: transparent;
  padding: 12px 0;
  z-index: 10;
}
.footer a {
  color: #ffe066;
  text-decoration: none;
}
#faqToggle {
  position: absolute;
  right: 20px;
  top: 0;
  transform: translateY(-50%);
  padding: 8px 16px;
  background-color: #F5B700;
  border: none;
  border-radius: 4px;
  color: #1B1F3B;
  font-weight: 600;
  cursor: pointer;
  z-index: 3;
}
#loading, #error, #screenshotContainer, #ogInstructions {
  margin-top: 20px;
  text-align: center;
}
#loading {
  display: none;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.spinner {
  border: 4px solid #2C3153;  /* spinner track matches card background */
  border-top: 4px solid #F5B700;  /* spinner arc matches brand yellow */
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
#error {
  display: none;
  color: #ff6b6b;
}
#screenshotContainer img {
  max-width: 100%;
  border-radius: 4px;
}
#screenshotImage[src=""] {
  display: none;
}
#ogInstructions {
  display: none;
  background: #23274a;
  color: #fff;
  border-radius: 6px;
  padding: 18px 12px 12px 12px;
  margin-top: 24px;
  font-size: 14px;
  text-align: left;
  word-break: break-word;
}
#ogInstructions code {
  display: block;
  background: #181b34;
  color: #ffe066;
  padding: 10px;
  border-radius: 4px;
  margin-top: 8px;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
  font-size: 13px;
  white-space: pre-line;
}

/* Overlay Backdrop */
#overlayBackdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 99;
}

/* FAQ Section Styling (Overlay) */
#faqSection {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 700px;
  background: #1B1F3B;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
  padding: 40px;
  color: #fff;
  z-index: 100;
  display: none; /* Hidden by default */
  max-height: 80vh; /* Limit height and enable scrolling */
  overflow-y: auto;
}

#faqSection h3 {
  margin-top: 0;
  color: #F5B700;
}

#faqSection dl {
  margin: 0;
}

#faqSection dt {
  font-weight: 700;
  font-size: 16px;
  margin-top: 16px;
  color: #fff; /* Questions in white */
}

#faqSection dd {
  margin-left: 20px;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: #ccc;
}

#faqClose {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}
