/* AGI영컴 — 신규 콘텐츠 타입 전용 스타일: 십자말풀이 / 카드 짝맞추기
   기존 css/style.css는 전혀 건드리지 않습니다. 색상 변수(--accent 등)는
   style.css에 이미 정의된 것을 그대로 사용하되, 혹시 없을 경우를 대비해
   각 규칙에 안전한 기본값(fallback)을 함께 넣어두었습니다. */

.pz-intro {
  font-size: 14px;
  color: var(--muted, #666);
  line-height: 1.6;
  margin: 4px 0 18px;
}

/* ---- 십자말풀이 그리드 ---- */
.pz-grid {
  display: grid;
  gap: 4px;
  background: var(--surface-2, #2b2b38);
  padding: 4px;
  border: 2px solid var(--text, #26314a);
  border-radius: 12px;
  max-width: 300px;
  margin: 0 auto 20px;
  box-sizing: border-box;
  overflow: hidden;
}
.pz-cell {
  position: relative;
  background: #fff;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
  color: #222;
  cursor: pointer;
  user-select: none;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.35);
  box-sizing: border-box;
}
.pz-cell.pz-blocked {
  background: var(--surface-2, #2b2b38);
  border: 1px solid var(--surface-2, #2b2b38);
  cursor: default;
}
.pz-cell.pz-selected {
  outline: 3px solid var(--accent, #4fd1b3);
  outline-offset: -3px;
}
.pz-cell.pz-correct { color: #2fa877; }
.pz-cell.pz-wrong { color: #e05a63; }
.pz-num {
  position: absolute;
  top: 1px;
  left: 3px;
  font-size: 9px;
  color: var(--accent, #4fd1b3);
  font-weight: 700;
}

.pz-clues {
  font-size: 13px;
  color: var(--text, #333);
  line-height: 1.8;
  margin-bottom: 18px;
}
.pz-clues h4 {
  font-size: 13px;
  margin: 10px 0 4px;
  color: var(--muted, #888);
}
.pz-clues b { color: var(--accent, #4fd1b3); }

.pz-chip-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted, #888);
  margin-bottom: 8px;
}
.pz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  min-height: 44px;
}
.pz-chip {
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--surface, #f4f1ec);
  border: 2px solid var(--accent, #4fd1b3);
  color: var(--text, #333);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
.pz-chip:disabled { opacity: 0.25; cursor: default; }

/* ---- 카드 짝맞추기 (단어/뜻을 처음부터 보여주고 탭으로 짝짓기) ---- */
.pz-status-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted, #888);
  font-weight: 700;
  margin-bottom: 12px;
}
.pz-match-cols {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.pz-match-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pz-match-tile {
  min-height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  box-sizing: border-box;
  border: 2px solid transparent;
}
.pz-match-word {
  background: #fff4f0;
  color: #b4472f;
  border-color: #ffb199;
}
.pz-match-meaning {
  background: #eef6ff;
  color: #2a5a8a;
  border-color: #8ea9e8;
}
.pz-match-tile.pz-selected {
  border-color: var(--accent, #4fd1b3);
  box-shadow: 0 0 0 2px var(--accent, #4fd1b3) inset;
}
.pz-match-tile.pz-matched {
  background: #e5f9f2;
  color: #2fa877;
  border-color: #4fd1b3;
  cursor: default;
  opacity: 0.7;
}
.pz-match-tile.pz-wrong-flash {
  background: #fff0f0;
  border-color: #e05a63;
}

.pz-win {
  display: none;
  background: #fff4f4;
  border-left: 4px solid var(--accent, #4fd1b3);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text, #333);
  margin-bottom: 14px;
}
.pz-win.show { display: block; }
