/* 초성 퀴즈 */
.cs-board {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 14px 16px 16px;
  scroll-margin-top: 72px;
}
.cs-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.95rem;
}
.cs-top b {
  color: var(--ink);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}
.cs-score {
  display: inline-block;
}
.cs-score b {
  display: inline-block;
  min-width: 2em;
  text-align: right;
}
.cs-score.pop b {
  animation: cs-pop 0.25s ease-out;
  color: var(--go);
}
@keyframes cs-pop {
  50% {
    transform: scale(1.35);
  }
}
.cs-board .timebar {
  margin-top: 10px;
}
.cs-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 0 0;
  min-height: 250px;
}
.cs-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}
.cs-q {
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 0.18em;
  font-size: clamp(2.6rem, 13vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  min-height: 1.15em;
  user-select: none;
  -webkit-user-select: none;
}
.cs-q .cs-open {
  color: var(--brand);
}
.cs-form {
  display: flex;
  gap: 8px;
  width: min(100%, 420px);
  margin: 0;
}
.cs-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1.25rem; /* 16px 이상: iOS 에서 입력칸을 누를 때 화면이 확대되지 않게 */
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  text-align: center;
}
.cs-input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
}
.cs-input:disabled {
  opacity: 0.6;
}
.cs-submit {
  flex: none;
  min-width: 76px;
}
.cs-tools {
  display: flex;
  gap: 8px;
  width: min(100%, 420px);
}
.cs-tool {
  flex: 1;
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
  font-size: 0.92rem;
  touch-action: manipulation;
}
.cs-tool small {
  font-weight: 600;
  color: var(--muted);
}
.cs-tool:disabled,
.cs-submit:disabled {
  opacity: 0.5;
  cursor: default;
}
.cs-fb {
  margin: 0;
  min-height: 1.5em;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
}
.cs-fb[data-tone='ok'] {
  color: var(--go);
}
.cs-fb[data-tone='bad'] {
  color: var(--wait);
}
.cs-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 0 8px;
  background: var(--surface);
}
.cs-cover[hidden] {
  display: none;
}
.cs-cover .fine {
  margin: 0;
}
.cs-start {
  min-width: 180px;
  min-height: 56px;
  font-size: 1.15rem;
}
.cs-cover-q {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin: 0;
  color: var(--muted);
}
.cs-board.shake .cs-form {
  animation: cs-shake 0.36s ease-in-out;
}
@keyframes cs-shake {
  20%,
  60% {
    transform: translateX(-8px);
  }
  40%,
  80% {
    transform: translateX(8px);
  }
}
.cs-missed {
  margin-top: 18px;
  text-align: left;
}
.cs-missed[hidden] {
  display: none;
}
.cs-missed h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}
.cs-missed ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cs-missed li {
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.cs-m-cho {
  color: var(--muted);
  font-weight: 700;
}
.cs-m-why {
  font-size: 0.78rem;
  color: var(--wait);
}
@media (max-width: 380px) {
  .cs-board {
    padding: 12px 12px 14px;
  }
  .cs-tool {
    font-size: 0.85rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cs-board.shake .cs-form,
  .cs-score.pop b {
    animation: none;
  }
}
