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

body {
  background: #0f0f13;
  color: #e2e2f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  padding: 40px 20px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

a.back {
  font-size: 13px;
  color: #6a6a8a;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
}
a.back:hover { color: #5b4cf5; }

header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}
.subtitle {
  font-size: 14px;
  color: #6a6a8a;
  margin-top: 6px;
}

main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.card {
  background: #1a1a24;
  border: 1px solid #2e2e42;
  border-radius: 16px;
  padding: 32px 28px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  transition: transform 0.15s, border-color 0.2s;
}

.card.flash {
  animation: flash 0.4s ease;
}

@keyframes flash {
  0% { transform: scale(1); border-color: #2e2e42; }
  50% { transform: scale(1.02); border-color: #5b4cf5; }
  100% { transform: scale(1); border-color: #2e2e42; }
}

.category-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #5b4cf5;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(91, 76, 245, 0.12);
  border-radius: 999px;
}

.question {
  font-size: 22px;
  font-weight: 500;
  color: #f0f0f8;
  line-height: 1.4;
  max-width: 560px;
}

.controls {
  display: flex;
  gap: 10px;
  justify-content: center;
}

button {
  font-family: inherit;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #2e2e42;
  padding: 10px 18px;
  background: #1a1a24;
  color: #e2e2f0;
  cursor: pointer;
  transition: all 0.15s;
}

button:hover:not(:disabled) {
  border-color: #5b4cf5;
  background: #1e1e2e;
}

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

button.primary {
  background: #5b4cf5;
  border-color: #5b4cf5;
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  font-size: 15px;
}
button.primary:hover {
  background: #6e5fff;
  border-color: #6e5fff;
}

button.secondary {
  background: #1a1a24;
  border-color: #2e2e42;
}

section h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6a6a8a;
  font-weight: 600;
  margin-bottom: 12px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #2e2e42;
  background: #1a1a24;
  color: #a0a0c0;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}

.chip:hover {
  border-color: #5b4cf5;
  color: #e2e2f0;
}

.chip.active {
  background: #5b4cf5;
  border-color: #5b4cf5;
  color: white;
}

.team-input {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.team-input input {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #1a1a24;
  border: 1px solid #2e2e42;
  border-radius: 8px;
  color: #e2e2f0;
  outline: none;
}

.team-input input:focus {
  border-color: #5b4cf5;
}

.hint {
  font-size: 12px;
  color: #6a6a8a;
  margin-bottom: 12px;
}

.member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  min-height: 8px;
}

.member-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1a1a24;
  border: 1px solid #2e2e42;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  color: #e2e2f0;
}

.member-pill .remove {
  cursor: pointer;
  color: #6a6a8a;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}

.member-pill .remove:hover {
  color: #ff6b6b;
}

.assignments {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.assignment {
  background: #1a1a24;
  border: 1px solid #2e2e42;
  border-radius: 8px;
  padding: 12px 14px;
}

.assignment-name {
  font-size: 13px;
  font-weight: 600;
  color: #5b4cf5;
  margin-bottom: 4px;
}

.assignment-question {
  font-size: 14px;
  color: #e2e2f0;
}

footer {
  text-align: center;
  font-size: 12px;
  color: #6a6a8a;
  margin-top: 12px;
}

@media (max-width: 600px) {
  .question { font-size: 18px; }
  header h1 { font-size: 22px; }
}
