:root {
  --bg: #1D282D;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --muted2: rgba(255, 255, 255, 0.55);
  --accent: #6FC2C8;
  --accent2: #6FC2C8;
  --danger: #ff4d6d;
  --ok: #2dd4bf;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Instrument Sans, sans-serif;
  color: var(--text);
  background: radial-gradient(900px circle at 30% 15%, #1D282D, transparent 55%),
    radial-gradient(800px circle at 80% 20%, #6fc2c849, transparent 55%),
    var(--bg);
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px;
}

.header h1 {
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.sub {
  margin: 0 0 18px;
  color: var(--muted);
}

.sub-small {
  margin-top: 4px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(10px);
}

.question-block {
  margin-top: 14px;
}

.scores {
  border: 0;
  margin: 0 0 14px;
  padding: 0;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 560px) {
  .score-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.score-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.12);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 0;
  cursor: pointer;
  font-weight: 650;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.score-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.score-btn[aria-pressed="true"] {
  background: linear-gradient(135deg,#6FC2C8, #6FC2C8);
  border-color: #6FC2C8;
}

.score-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted2);
  font-size: 12px;
}

.label {
  display: block;
  margin: 16px 0 6px;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}

textarea,
input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.12);
  color: var(--text);
  padding: 12px 12px;
  outline: none;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.12);
  color: var(--text);
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-pill span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-right: 6px;
  vertical-align: middle;
}

.choice-pill span {
  display: inline-flex;
  align-items: center;
}

.choice-pill input:checked + span {
  color: #ffffff;
}

.choice-pill input:checked + span::before {
  border-color: var(--accent2);
  background: radial-gradient(circle at 50% 50%, var(--accent2) 40%, transparent 41%);
}

.choice-pill:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

textarea:focus,
input:focus {
  border-color: rgba(124, 92, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18);
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 750;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(36, 211, 238, 0.75));
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.status {
  min-height: 20px;
  color: var(--muted);
  font-size: 14px;
}

.status.ok {
  color: rgba(45, 212, 191, 0.95);
}

.status.err {
  color: rgba(255, 77, 109, 0.95);
}

.footer {
  margin-top: 18px;
  color: var(--muted2);
}

