* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 520px;
}

.header {
  text-align: center;
  color: #fff;
  margin-bottom: 24px;
}

.header h1 {
  font-size: 40px;
  letter-spacing: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.subtitle {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.9;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.card h2 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #333;
}

.hidden {
  display: none;
}

.screen {
  margin-bottom: 20px;
}

.rules {
  list-style: none;
  margin-bottom: 22px;
}

.rules li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

.rules li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: #667eea;
  font-size: 10px;
  top: 6px;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn.primary {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 600;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(118, 75, 162, 0.4);
}

.btn.ghost {
  background: transparent;
  color: #667eea;
  border: 1px solid #c7cde8;
  flex: 1;
}

.btn.ghost:hover {
  background: #f0f2ff;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 13px;
  color: #888;
  flex-wrap: wrap;
  gap: 4px;
}

.status-bar span {
  background: #f4f5fb;
  padding: 4px 10px;
  border-radius: 999px;
}

#streak {
  color: #e67e22;
  font-weight: 600;
}

.clue-box {
  background: #f8f9ff;
  border-left: 4px solid #667eea;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 18px;
  min-height: 84px;
}

.clue-label {
  display: inline-block;
  font-size: 12px;
  color: #667eea;
  font-weight: 600;
  margin-bottom: 6px;
}

#clueText {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

#answerInput {
  flex: 1;
  border: 2px solid #e2e4f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

#answerInput:focus {
  border-color: #667eea;
}

.form-row .btn {
  width: auto;
  white-space: nowrap;
}

.feedback {
  min-height: 22px;
  font-size: 14px;
  margin-bottom: 10px;
}

.feedback.wrong {
  color: #e74c3c;
}

.feedback.info {
  color: #888;
}

.actions {
  display: flex;
  gap: 10px;
}

.result-card {
  text-align: center;
}

.result-card h2 {
  margin-bottom: 12px;
}

#correctDetail {
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 15px;
}

.final-score {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 12px 0;
}

.final-detail {
  color: #666;
  margin-bottom: 24px;
  line-height: 1.8;
  font-size: 15px;
}

#passBtn {
  color: #999;
  border-color: #ddd;
}

#passBtn:hover {
  background: #f5f5f5;
}
