:root {
  --pink: #ff6b81;
  --pink-dark: #e84a63;
  --bg: #fff5f7;
  --text: #33222a;
  --muted: #8a7580;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 24px 20px 60px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .page {
    max-width: 560px;
    padding: 48px 32px 80px;
  }
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 8px;
  text-align: center;
}

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

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(232, 74, 99, 0.08);
  margin-bottom: 16px;
}

.question {
  font-weight: 600;
  margin-bottom: 12px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  display: block;
  border: 2px solid #f0dbe0;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.option:hover {
  border-color: var(--pink);
}

.option input {
  margin-right: 10px;
}

.option.selected {
  border-color: var(--pink-dark);
  background: #fff0f3;
}

input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #f0dbe0;
  border-radius: 12px;
  font-size: 1rem;
}

button.primary {
  background: var(--pink-dark);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
}

button.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button.ghost {
  background: transparent;
  border: 2px solid var(--pink-dark);
  color: var(--pink-dark);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.progress {
  height: 6px;
  background: #f0dbe0;
  border-radius: 999px;
  margin-bottom: 20px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--pink-dark);
  transition: width 0.2s;
}

.code-box {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--pink-dark);
  margin: 16px 0;
}

.qr-placeholder {
  width: 220px;
  height: 220px;
  margin: 0 auto 16px;
  display: block;
  border-radius: 12px;
  background: #f5f5f5;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.status-pending {
  color: var(--muted);
}

.status-paid {
  color: #2e9e5b;
  font-weight: 600;
}

.result-score {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--pink-dark);
  margin-bottom: 4px;
}

.result-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.admin-table th,
table.admin-table td {
  border-bottom: 1px solid #eee;
  padding: 8px 6px;
  text-align: left;
}
