* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background: #fafafa;
  color: #1a1a1a;
  line-height: 1.5;
}

.container {
  max-width: 640px;
  margin: 40px auto;
  padding: 32px 24px;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

h1 { margin-top: 0; }

.subtitle { color: #666; }

.note {
  font-size: 14px;
  color: #666;
  border-left: 3px solid #ddd;
  padding-left: 12px;
  margin: 16px 0;
}

.question-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 12px;
  border-radius: 4px;
}

.question-text {
  font-size: 18px;
  margin: 8px 0 20px;
}

.option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  margin: 8px 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
  color: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.option:hover { background: #f0f0f0; }

.option.selected {
  background: #1a73e8;
  color: white;
  border-color: #1a73e8;
}

button, .button {
  display: inline-block;
  padding: 10px 20px;
  background: #1a73e8;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#next { margin-top: 16px; }

input {
  display: block;
  width: 100%;
  padding: 10px;
  margin: 8px 0 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
}

#progress {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.score {
  font-size: 48px;
  font-weight: bold;
  margin: 0;
  color: #1a73e8;
}

.error {
  background: #fef0f0;
  border: 1px solid #f5c2c2;
  color: #c62828;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 16px;
}

.score-pct {
  font-size: 16px;
  color: #666;
  margin: 4px 0 20px;
}

.band {
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid;
}

.band-label {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.band-percentile {
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
}

.band-hint {
  font-size: 14px;
  color: #444;
}

.band-high     { background: #e8f5e9; border-color: #43a047; }
.band-mid-high { background: #e3f2fd; border-color: #1e88e5; }
.band-mid-low  { background: #fff8e1; border-color: #f9a825; }
.band-low      { background: #fbe9e7; border-color: #e64a19; }

.meta {
  font-size: 14px;
  color: #888;
  margin: 8px 0 16px;
}
