body {
  font-family: "Klee One", cursive;
  background: #f8fafc;
  margin: 0;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

h1 { text-align: center; }

.card {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,.05);
}

.options input { display:none; }

.options span {
  display:inline-block;
  padding:8px 12px;
  margin:4px 6px 4px 0;
  border-radius:999px;
  border:1px solid #ddd;
  cursor:pointer;
}

.options input:checked + span {
  background:#2563eb;
  color:white;
  border-color:#2563eb;
}

button {
  padding:12px 18px;
  border:none;
  border-radius:12px;
  background:#2563eb;
  color:white;
  cursor:pointer;
}

button.secondary {
  background:#e5e7eb;
  color:#111;
}

button.unknown {
  background:transparent;
  border:1px dashed #cbd5f5;
  color:#475569;
  border-radius:999px;
  padding:8px 12px;
  font-size:14px;
}

.match-row { margin:12px 0; }

.match-label {
  display:flex;
  justify-content:space-between;
  font-size:14px;
}

.match-bar {
  background:#e5e7eb;
  height:10px;
  border-radius:999px;
  overflow:hidden;
}

.match-bar-inner {
  background:#2563eb;
  height:100%;
}

/* ===== モーダル ===== */

#modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

#modal.active {
  display: block;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 90%;
  max-width: 720px;
  max-height: 85vh;
  overflow: auto;
  padding: 24px;
  border-radius: 16px;
}

.level-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.level-btn {
  background: #e5e7eb;
    font-family: "Klee One", cursive; /* ← ここ */
  color: #111;
}

.impact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.impact-box {
  background: #f1f5f9;
  padding: 12px;
  border-radius: 12px;
}

.close-btn {
  margin-top: 16px;
  width: 100%;
}
