/* 말씀 짝 맞추기 전용 */
.bm-top { margin: 0 0 14px; }
.bm-top .segmented span { padding: 6px 13px; font-size: 13.5px; }
.bm-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(7px, 1.6vw, 12px); max-width: 640px; margin: 0 auto; }
.bm-card { aspect-ratio: 4 / 5; padding: 0; border: 0; background: none; cursor: pointer; perspective: 700px; touch-action: manipulation; animation: bk-in .4s var(--ease) both; }
.bm-inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .45s var(--ease); transform-style: preserve-3d; }
.bm-card.up .bm-inner { transform: rotateY(180deg); }
.bm-face { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; border-radius: calc(var(--radius) * .75); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bm-back { background: linear-gradient(150deg, color-mix(in srgb, var(--primary) 85%, #0a3d38), color-mix(in srgb, var(--primary-2) 90%, #0a3d38)); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .2), var(--sh-sm); }
.bm-back::after { content: '✝'; color: rgba(255, 255, 255, .8); font: 700 clamp(20px, 4.6vw, 30px) / 1 system-ui, sans-serif; }
.bm-card:hover:not(.up) .bm-back { filter: brightness(1.08); }
.bm-front { transform: rotateY(180deg); background: var(--surface); border: 2px solid var(--line); text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.bm-front.text { font-size: clamp(12.5px, 2.2vw, 15px); font-weight: 650; line-height: 1.5; color: var(--text); }
.bm-front.ref { font-size: clamp(13.5px, 2.6vw, 17px); font-weight: 850; line-height: 1.35; color: var(--bk-gold, #b8872a); background: linear-gradient(160deg, color-mix(in srgb, var(--sun) 20%, var(--surface)), var(--surface)); }
.bm-card.done .bm-front { border-color: color-mix(in srgb, var(--primary) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
.bm-card.done { animation: bm-hit .5s var(--ease); }
@keyframes bm-hit { 50% { transform: scale(1.06); } }
.bm-msg { margin-top: 14px; font-size: 14.5px; font-weight: 700; }
.bm-msg.win { color: var(--link); font-size: 16px; }
.bm-found { display: grid; gap: 8px; margin-top: 14px; }
.bm-found-item { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); animation: bk-in .3s var(--ease); }
.bm-found-item b { color: var(--bk-gold, #b8872a); font-size: 13.5px; }
.bm-found-item span { font-size: 15.5px; line-height: 1.7; font-weight: 600; }
@media (max-width: 520px) { .bm-board { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bm-card { aspect-ratio: 3 / 4; } }
