/* 말놀이·퀴즈 (/quiz/…): 수수께끼, 잰말놀이, 넌센스 퀴즈. 이 페이지들에서만 불러옵니다 (pipeline/site_wordplay.py). */

/* ---------- 모음 페이지의 카드 ---------- */
.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px 22px; list-style: none; margin: 0; padding: 0; }
.wp-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--white); border-radius: 24px; padding: 14px 14px 18px; box-shadow: var(--lift); transition: transform .15s; }
.wp-card:hover { transform: translateY(-3px) rotate(-.4deg); }
.wp-thumb { display: block; width: 100%; height: auto; background: #fff; border-radius: 12px; border: 2px solid #f0dfbd; }
.wp-card h2 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.2; margin: 14px 4px 4px; }
.wp-card h2 small { font-size: 16px; color: var(--orange); }
.wp-card p { font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); margin: 0 4px; }
.wp-card .wp-tag { display: inline-block; align-self: flex-start; font-family: var(--display); font-size: 14px; line-height: 1.3; background: #ffe9b8; border-radius: 14px; padding: 7px 12px; margin: 12px 4px 0; }
.wp-card em { font-family: var(--display); font-style: normal; color: var(--orange); margin: auto 4px 0; padding-top: 12px; }
.wp-head .date { max-width: 56ch; font-size: 16.5px; color: var(--ink); }
.wp-index .post-head-in { grid-template-columns: 1fr; }
.wp-head.wp-index .date { padding-bottom: 46px; } /* 그림이 없는 머리: 글이 아래 언덕에 걸리지 않게 */
.wp-use { margin-top: 26px; font-size: 15.5px; color: var(--ink-soft); max-width: 760px; }
.wp-more { margin-top: 40px; }
.wp-more h2 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 3vw, 28px); margin-bottom: 14px; }
.wp-more .cats { margin-bottom: 0; }
.wp-more .cat-chip, .wp-jump .cat-chip { text-decoration: none; padding: 12px 18px; font-size: 17px; }

/* ---------- 한 문제씩 풀기 ---------- */
.wp-game { background: var(--white); border-radius: 28px; box-shadow: var(--lift); padding: 22px clamp(16px, 3vw, 30px) 24px; margin-bottom: 30px; }
.wp-game noscript { display: block; color: var(--ink-soft); }
.wp-game h2 { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.2; margin: 0 0 12px; }
.wp-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.wp-pick button {
  font: inherit; font-family: var(--display); font-size: 15px; line-height: 1; color: var(--ink); background: var(--paper-2);
  border: 0; border-radius: 999px; padding: 10px 14px; cursor: pointer;
}
.wp-pick button[aria-pressed="true"] { background: var(--orange); color: var(--white); }
.wp-stage { background: var(--paper); border-radius: 22px; padding: clamp(20px, 4vw, 38px) clamp(16px, 3vw, 30px); text-align: center; min-height: 190px; display: grid; align-content: center; gap: 12px; }
.wp-no { font-family: var(--display); font-size: 15px; color: var(--ink-soft); }
.wp-big { font-family: var(--display); font-size: clamp(24px, 4.4vw, 40px); line-height: 1.35; word-break: keep-all; margin: 0; }
.wp-ans { font-family: var(--display); font-size: clamp(22px, 3.6vw, 34px); line-height: 1.3; color: var(--orange); margin: 0; word-break: keep-all; }
.wp-ans small { display: block; font-family: var(--body); font-size: 16px; line-height: 1.5; color: var(--ink-soft); margin-top: 6px; }
.wp-time { font-family: var(--display); font-size: clamp(22px, 3.6vw, 34px); color: var(--orange); font-variant-numeric: tabular-nums; }
.wp-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.wp-btns .btn { min-width: 150px; text-align: center; justify-content: center; }

/* ---------- 목록 ---------- */
.wp-jump { margin-bottom: 14px; }
.wp-tools { margin: 0 0 6px; }
.wp-level { margin-top: 34px; scroll-margin-top: 90px; }
.wp-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; counter-reset: none; }
.wp-list > li { background: var(--white); border-radius: 18px; box-shadow: var(--lift-sm); scroll-margin-top: 90px; position: relative; }
.wp-list > li::before { content: attr(value); position: absolute; left: 14px; top: 15px; width: 30px; height: 30px; border-radius: 50%; background: #ffe9b8; font-family: var(--display); font-size: 14px; line-height: 30px; text-align: center; }
.wp-list summary { list-style: none; cursor: pointer; padding: 16px 44px 16px 56px; font-size: 17px; line-height: 1.5; word-break: keep-all; position: relative; }
.wp-list summary::-webkit-details-marker { display: none; }
.wp-list summary::after { content: "정답"; position: absolute; right: 12px; top: 17px; font-family: var(--display); font-size: 13px; line-height: 1; color: var(--white); background: var(--orange); border-radius: 999px; padding: 6px 9px; }
.wp-list details[open] summary::after { content: "닫기"; background: #c9b089; }
.wp-list summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 18px; }
.wp-a { margin: 0; padding: 0 16px 16px 56px; font-size: 16px; line-height: 1.55; }
.wp-a b { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--orange); margin-right: 8px; }
.wp-why { color: var(--ink-soft); }
.wp-say { margin: 0; padding: 16px 16px 16px 56px; font-size: 17.5px; line-height: 1.6; word-break: keep-all; }
.wp-says { grid-template-columns: 1fr; }
#easy .wp-says { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 760px) {
  .wp-list, #easy .wp-says { grid-template-columns: 1fr; }
  .wp-grid { grid-template-columns: 1fr; }
  .wp-btns .btn { flex: 1 1 140px; min-width: 0; }
}
@media print {
  .wp-game, .wp-jump, .wp-tools, .wp-more { display: none; }
  .wp-list > li { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
}
