body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #111827;
  color: #f9fafb;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app {
  width: min(900px, 92vw);
  background: #1f2937;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

h1 {
  margin-top: 0;
  font-size: 42px;
  text-align: center;
}

.subtitle {
  text-align: center;
  color: #d1d5db;
  margin-bottom: 28px;
}

.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: bold;
  background: #f97316;
  color: white;
}

button.secondary {
  background: #374151;
}

button:hover {
  opacity: 0.9;
}

button.selected {
  background: #22c55e;
}

.setup-block {
  margin: 28px 0;
  text-align: center;
}

.setup-block h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.play-button {
  font-size: 18px;
  padding: 14px 28px;
}

.events {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.card {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
}

.draggable-card {
  user-select: none;
  touch-action: pan-y;
}

.drag-hint:active {
  cursor: grabbing;
}

.drag-hint {
  font-size: 24px;
  color: #9ca3af;
  padding: 8px 12px;
  cursor: grab;
  touch-action: none;
  flex-shrink: 0;
}

.drag-ghost {
  opacity: 0.4;
}

.drag-chosen {
  border-color: #f97316;
}

.result {
  margin-top: 20px;
  padding: 18px;
  border-radius: 16px;
  background: #111827;
  line-height: 1.6;
}

.correct {
  color: #22c55e;
  font-weight: bold;
}

.wrong {
  color: #ef4444;
  font-weight: bold;
}

.date {
  color: #fbbf24;
  font-weight: bold;
}

.hidden {
  display: none;
}

#game-subtitle {
  margin-bottom: 28px;
}

@media (max-width: 600px) {
  body {
    align-items: flex-start;
  }

  .app {
    padding: 22px;
    border-radius: 0;
    width: 100%;
    min-height: 100vh;
  }

  h1 {
    font-size: 34px;
  }

  .card {
    flex-direction: row;
    align-items: center;
  }

  .card-title {
    font-size: 16px;
  }

  .drag-hint {
    font-size: 20px;
  }

  .controls {
    gap: 10px;
  }

  button {
    padding: 11px 15px;
  }
}

.card.correct-position {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.18);
}

.card.correct-position .card-title::after {
  content: " ✓";
  color: #22c55e;
}

.answer-list {
  margin-top: 12px;
}

.answer-item {
  margin: 8px 0;
}
