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

:root {
  --primary: #1a56db;
  --primary-dark: #1e429f;
  --primary-light: #eff6ff;
  --success: #059669;
  --success-light: #ecfdf5;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f0f4f8;
  --card: #ffffff;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --radius: 16px;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 20px 16px 40px;
}

.container {
  max-width: 560px;
  margin: 0 auto;
}

/* Header */
header {
  text-align: center;
  padding: 32px 0 28px;
}

.logo {
  font-size: 3rem;
  margin-bottom: 12px;
}

header h1 {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

header h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.4;
}

/* Card */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 700;
}

/* Form */
.desc {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  color: var(--text);
  background: #fafafa;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
  background: white;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 28px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(26, 86, 219, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-submit {
  background: var(--success);
  color: white;
  margin-top: 8px;
}

.btn-submit:hover:not(:disabled) {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.3);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.privacy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
  line-height: 1.6;
}

/* Voting Section */
.welcome {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.welcome strong {
  color: var(--primary);
}

/* Status Boxes */
.status-box {
  text-align: center;
  padding: 32px 16px;
}

.status-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
}

.status-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.status-sub {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Group Label */
.group-label {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  padding: 18px;
  background: var(--primary-light);
  border-radius: 12px;
  margin-bottom: 24px;
  border: 2px solid #bfdbfe;
}

.vote-instruction {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* Score Grid */
.score-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.score-btn {
  aspect-ratio: 1;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: white;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text);
  font-family: inherit;
}

.score-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  transform: scale(1.06);
}

.score-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.35);
}

.selected-score {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  padding: 12px;
  background: var(--primary-light);
  border-radius: 10px;
  margin-bottom: 16px;
}

.hidden {
  display: none !important;
}
