/* Tela preta que ocupa toda a viewport sem scroll */
html,body {
  height: 100%;
  margin: 0;
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
#screen {
  width: 100vw;
  height: 100vh;
  background: #000;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating header */
#floatingHeader {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Slightly reduce header on very small screens */
@media (max-width: 360px) {
  #floatingHeader { font-size: 13px; padding: 6px 10px; top: 10px; }
}

/* Centered panel */
#panel {
  width: min(92vw, 420px);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  transform: translateY(6px);
  transition: opacity 360ms ease, transform 360ms ease;
  opacity: 1;
}
#panel.hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* Fade-in for inner content */
.fade-in { animation: fadeIn 480ms ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.question {
  margin: 0 0 14px 0;
  font-size: 18px;
  color: #fff;
  text-align: center;
}

/* Minimal input */
.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
  color: #fff;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}
.input::placeholder { color: rgba(255,255,255,0.35); }

/* Controls area */
.controls {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.button {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 15px;
  cursor: pointer;
  min-width: 80px;
}
.button.primary {
  background: linear-gradient(180deg, #00c97b, #00a15e);
  border: none;
  color: #04120a;
  font-weight: 600;
}
.button.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Referral options list */
.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}
.option-btn {
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* indicator for choice (radio / checkbox look) */
.option-btn .indicator {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
  display: inline-block;
  box-sizing: border-box;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

/* selected state (green outline and filled indicator) */
.option-btn.selected {
  border-color: rgba(0,201,123,0.22);
  box-shadow: 0 0 0 4px rgba(0,201,123,0.09);
}
.option-btn.selected .indicator {
  background: linear-gradient(180deg,#00c97b,#00a15e);
  border-color: #00c97b;
  transform: scale(0.96);
  border-radius: 4px;
}

/* style for when indicator should show checkbox (multiple) */
.option-btn.multiple .indicator {
  border-radius: 4px;
}
.option-btn.multiple.selected .indicator::after {
  content: '✓';
  display: block;
  text-align: center;
  line-height: 14px;
  font-size: 12px;
  color: rgba(4,18,10,0.95);
}

/* Other text input */
.otherInput {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
  color: #fff;
  font-size: 14px;
  box-sizing: border-box;
}
.wordHint {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
  text-align: right;
}

/* Small date input styling */
.dateInput {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
  color: #fff;
}

/* Next button container alignment */
.controls .nextRow {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.button.next {
  min-width: 120px;
}

/* Confetti container */
#confetti {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 60;
}

/* Confetti pieces */
.confetti {
  position: absolute;
  width: 10px;
  height: 14px;
  opacity: 0.95;
  will-change: transform, opacity;
  transform-origin: center;
  border-radius: 2px;
}

