* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #2b0a3d, #6b0f5c 60%, #b3164a);
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.screen {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hidden { display: none !important; }

.card {
  background: rgba(20, 10, 25, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 32px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

h1 { margin: 0 0 4px; font-size: 1.8rem; text-align: center; }
h2 { margin: 0 0 16px; text-align: center; color: #ffcadd; font-weight: 600; }

.blurb { line-height: 1.5; color: #eee; }
.blurb a { color: #ffb8d6; }

.name-label {
  display: block;
  margin: 20px 0 8px;
  font-size: 0.9rem;
  color: #ddd;
}

#player-name {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  margin-top: 6px;
  background: #fff;
  color: #222;
}

.error-message {
  margin-top: 8px;
  color: #ff9b9b;
  font-size: 0.9rem;
}

.btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 14px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { cursor: default; }
.btn-real:disabled, .btn-catfish:disabled { opacity: 1; }

.btn-primary { background: #ff3d7f; color: #fff; }
.btn-secondary { background: rgba(255,255,255,0.15); color: #fff; }
.btn-real { background: #2ecc71; color: #06210f; flex: 1; }
.btn-catfish { background: #e74c3c; color: #2b0a0a; flex: 1; }

.btn-real.selected, .btn-catfish.selected {
  outline: 3px solid #fff;
  outline-offset: 2px;
  transform: scale(1.03);
}
.btn-real.faded, .btn-catfish.faded {
  opacity: 0.35;
  filter: grayscale(60%);
}

.timeout-message {
  margin-top: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffb84d;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 600;
  color: #ffcadd;
}

#timer {
  font-size: 1.6rem;
  min-width: 44px;
  text-align: center;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 2px 10px;
}
#timer.urgent { background: #e74c3c; color: #fff; }

.photo { display: block; width: 160px; height: 160px; object-fit: cover; border-radius: 8px; margin: 0 auto 12px; }
.appearance { font-style: italic; color: #ccc; margin-top: 0; }
.bio { font-size: 1.05rem; margin: 12px 0; }

.credentials {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
}
.credentials li {
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.credentials li:last-child { border-bottom: none; }

.choices {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.breakdown {
  padding-left: 20px;
  line-height: 1.6;
}
.breakdown li.hit { color: #7ee9a8; }
.breakdown li.miss { color: #ff9b9b; }

.answer-reveal {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
}
.answer-verdict {
  font-weight: 700;
  margin: 0 0 6px;
}
.answer-verdict.hit { color: #7ee9a8; }
.answer-verdict.miss { color: #ff9b9b; }
.answer-truth {
  margin: 0;
  color: #ddd;
}

.sync-status {
  margin-top: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: #ffb84d;
}
