/* Bible Quiz 공부 페이지 (public/bible-quiz/) — site.css 위에 덧붙임 */
.bq-wrap { max-width: 960px; margin: 0 auto; }
.bq-crumbs { font-size: .9rem; color: #5a6080; margin: 0 0 10px; }
.bq-crumbs a { color: #5a4fcf; }
.bq-lead { font-size: 1.12rem; line-height: 1.6; text-align: center; max-width: 760px; margin: 0 auto 18px; }
.bq-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 14px 0 22px; }
.bq-actions a { text-decoration: none; }
.bq-panel { background: #fff; border-radius: 22px; padding: 22px 24px; margin: 0 0 22px; box-shadow: 0 6px 0 rgba(90, 79, 207, .12), 0 14px 30px -18px rgba(30, 40, 90, .35); line-height: 1.65; }
.bq-panel { text-align: left; }
.bq-panel p { margin: 0 0 12px; }
.bq-panel h2 { margin: 0 0 12px; font-size: 1.45rem; color: #2f3357; text-align: left; }
.bq-panel h3 { margin: 18px 0 8px; font-size: 1.12rem; color: #2f3357; }
.bq-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0 0 14px; }
.bq-facts div { background: #f4f2ff; border-radius: 14px; padding: 10px 14px; }
.bq-facts b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: #6b62d6; }
.bq-outline { width: 100%; border-collapse: collapse; margin: 6px 0 4px; }
.bq-outline td { text-align: left; padding: 6px 10px; border-bottom: 1px solid #ecebf7; vertical-align: top; }
.bq-outline td:first-child { white-space: nowrap; font-weight: 700; color: #5a4fcf; width: 1%; }
.bq-verse { margin: 10px 0; padding: 10px 16px; border-left: 5px solid #ffcf3f; background: #fffbea; border-radius: 0 12px 12px 0; }
.bq-verse cite { display: block; font-style: normal; font-weight: 700; color: #8a6400; font-size: .9rem; margin-top: 4px; }
.bq-christ { background: linear-gradient(135deg, #fff4d6, #ffe9f3); }
.bq-conf { margin: 12px 0; padding: 12px 16px; background: #eef8ff; border-radius: 14px; }
.bq-conf .q { font-weight: 700; }
.bq-conf small { display: block; color: #4a6a8a; margin-top: 6px; }
.bq-level { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.bq-l1 { background: #dff7e6; color: #1f7a3e; } .bq-l2 { background: #e5edff; color: #3346a8; } .bq-l3 { background: #ffe5ec; color: #a8334f; }
.bq-qs { list-style: none; padding: 0; margin: 0; counter-reset: q; }
.bq-qs > li { counter-increment: q; padding: 14px 0; border-bottom: 1px dashed #dcdaf0; }
.bq-qs > li:last-child { border-bottom: 0; }
.bq-qs .qt { font-weight: 700; font-size: 1.05rem; }
.bq-qs .qt::before { content: counter(q) ". "; color: #6b62d6; }
.bq-opts { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 14px; }
.bq-opts li { padding: 4px 0; }
.bq-opts b { display: inline-block; width: 1.6em; color: #6b62d6; }
.bq-qs details { margin-top: 6px; }
.bq-qs summary { cursor: pointer; display: inline-block; font-weight: 700; color: #fff; background: #6b62d6; padding: 5px 14px; border-radius: 999px; font-size: .9rem; list-style: none; }
.bq-qs summary::-webkit-details-marker { display: none; }
.bq-qs details[open] summary { background: #2fbf71; }
.bq-ans { margin-top: 10px; padding: 12px 16px; background: #f0fbf4; border-radius: 14px; }
.bq-ans .ok { font-weight: 800; color: #1f7a3e; }
.bq-ans .ref { font-weight: 700; color: #5a4fcf; }
.bq-ans blockquote { margin: 8px 0 0; padding: 6px 12px; border-left: 4px solid #ffcf3f; background: #fffbea; border-radius: 0 10px 10px 0; font-size: .95rem; }
.bq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.bq-grid a { display: flex; justify-content: space-between; gap: 6px; padding: 9px 12px; border-radius: 12px; background: #f4f2ff; color: #2f3357; text-decoration: none; font-weight: 600; }
.bq-grid a:hover { background: #e5e1ff; }
.bq-grid a small { color: #6b62d6; font-weight: 700; }
.bq-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.bq-cards a { display: block; padding: 14px 16px; border-radius: 16px; background: #f4f2ff; color: #2f3357; text-decoration: none; }
.bq-cards a:hover { background: #e5e1ff; }
.bq-cards a b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.bq-cards a span { font-size: .92rem; color: #5a6080; }
.bq-key { width: 100%; border-collapse: collapse; }
.bq-key td, .bq-key th { padding: 6px 8px; border-bottom: 1px solid #ecebf7; text-align: left; vertical-align: top; }
.bq-key th { background: #f4f2ff; }
.bq-pager { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 6px 0 24px; }
.bq-pager a { text-decoration: none; font-weight: 700; color: #5a4fcf; background: #fff; padding: 10px 16px; border-radius: 999px; box-shadow: 0 4px 0 rgba(90, 79, 207, .15); }
.bq-cat { list-style: none; padding: 0; margin: 0; }
.bq-cat li { padding: 10px 0; border-bottom: 1px dashed #dcdaf0; }
.bq-cat .cq { font-weight: 700; }
.bq-cat .ca { margin-top: 3px; }
.bq-note { font-size: .88rem; color: #5a6080; }
/* 첫 화면 큰 배너와 성경 게임 칸 */
.bq-hero { max-width: 960px; margin: 4px auto 22px; padding: 26px 30px; border-radius: 30px; color: #fff; text-align: left; background: linear-gradient(135deg, #5b3fd6 0%, #7a4fe0 45%, #c75ad8 100%); border: 4px solid #fff; box-shadow: 0 10px 0 #3f2aa6, 0 22px 40px rgba(60, 30, 140, .35); display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.bq-hero-tag { display: inline-block; background: #ffcf3f; color: #4a2a00; font-weight: 800; font-size: .85rem; letter-spacing: .06em; padding: 4px 14px; border-radius: 999px; }
.bq-hero h2 { margin: 10px 0 6px; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.05; color: #fff; text-align: left; text-shadow: 0 4px 0 rgba(40, 20, 110, .45); }
.bq-hero p { margin: 0 0 16px; font-size: 1.1rem; color: #fff; text-align: left; }
.bq-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.bq-hero-btns a { text-decoration: none; font-weight: 800; padding: 12px 22px; border-radius: 999px; font-size: 1.08rem; }
.bq-hero-btns .go { background: #ffcf3f; color: #3a2400; box-shadow: 0 5px 0 #c98f00; }
.bq-hero-btns .alt { background: rgba(255, 255, 255, .18); color: #fff; border: 3px solid rgba(255, 255, 255, .7); }
.bq-hero-art { display: flex; gap: 4px; align-items: flex-end; }
.bq-hero-art img { width: 84px; height: 84px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25)); }
.bq-hero-art img:nth-child(2) { width: 112px; height: 112px; }
.bq-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.bq-games a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 12px 16px; border-radius: 20px; background: linear-gradient(180deg, #fff, #f4f2ff); border: 3px solid #e7e3ff; color: #2f3357; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.bq-games a:hover { transform: translateY(-4px); box-shadow: 0 10px 20px -10px rgba(90, 79, 207, .5); }
.bq-games .ic { position: relative; width: 78px; height: 78px; margin-bottom: 4px; }
.bq-games .ic img { width: 78px; height: 78px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .18)); }
.bq-games .ic img.bd { position: absolute; width: 38px; height: 38px; right: -10px; bottom: -4px; }
.bq-games b { font-size: 1.05rem; }
.bq-games span:last-child { font-size: .88rem; color: #5a6080; }
@media (max-width: 600px) {
    .bq-panel { padding: 16px; border-radius: 18px; }
    .bq-opts { grid-template-columns: 1fr; }
    .bq-hero { grid-template-columns: 1fr; padding: 20px; }
    .bq-hero-art { justify-content: center; order: -1; }
    .bq-hero-art img { width: 56px; height: 56px; } .bq-hero-art img:nth-child(2) { width: 72px; height: 72px; }
    .bq-games { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .bq-games a { padding: 10px 8px 12px; }
    .bq-games .ic, .bq-games .ic img { width: 60px; height: 60px; } .bq-games .ic img.bd { width: 30px; height: 30px; }
}

/* 활동지 만들기 카드 (허브) */
.bq-ws { display: flex; align-items: center; gap: 18px; margin: 18px 0; padding: 18px 22px; border-radius: 22px; background: #fff; border: 1px solid #e2e8f0; color: #0f172a; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 30px -18px rgba(15, 23, 42, .25); transition: transform .2s, box-shadow .2s; }
.bq-ws:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(79, 70, 229, .45); }
.bq-ws .ic { position: relative; flex: none; width: 70px; height: 70px; }
.bq-ws .ic img { width: 70px; height: 70px; }
.bq-ws .ic .bd { position: absolute; right: -10px; bottom: -6px; width: 36px; height: 36px; }
.bq-ws .tx { flex: 1; text-align: left; display: flex; flex-direction: column; gap: 4px; }
.bq-ws .tx b { font-size: 1.12rem; }
.bq-ws .tx span { color: #64748b; font-size: .95rem; line-height: 1.45; }
.bq-ws .go { flex: none; padding: 10px 16px; border-radius: 999px; background: #0f172a; color: #fff; font-weight: 700; font-size: .92rem; }
@media (max-width: 640px) { .bq-ws { flex-wrap: wrap; } .bq-ws .go { width: 100%; text-align: center; } }

/* Choose every answer first, then check them all (js/bq-check.js) */
.bq-opts label { display: flex; align-items: flex-start; gap: 6px; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.bq-opts li { padding: 0; }
.bq-opts input { position: absolute; opacity: 0; pointer-events: none; }
.bq-opts label:hover { border-color: #a5b4fc; }
.bq-opts input:focus-visible + b { outline: 2px solid #6366f1; outline-offset: 2px; border-radius: 4px; }
.bq-opts li.pick label { border-color: #4f46e5; background: #eef2ff; box-shadow: inset 0 0 0 1px #4f46e5; }
.bq-locked details { display: none; }
.bq-locked .bq-opts { margin-bottom: 2px; }
.bq-checked .bq-opts label { cursor: default; }
.bq-checked .bq-opts li.cor label { border-color: #059669; background: #ecfdf5; box-shadow: inset 0 0 0 1px #059669; }
.bq-checked .bq-opts li.pick:not(.cor) label { border-color: #dc2626; background: #fef2f2; box-shadow: inset 0 0 0 1px #dc2626; text-decoration: line-through; text-decoration-color: #dc262680; }
.bq-checked .bq-opts li.cor label::after { content: "✓"; margin-left: auto; color: #059669; font-weight: 800; }
.bq-checked .bq-opts li.pick:not(.cor) label::after { content: "✗"; margin-left: auto; color: #dc2626; font-weight: 800; }
.bq-qs > li.bq-wrong .qt::after { content: "Wrong"; margin-left: 8px; font-size: .75rem; font-weight: 700; color: #dc2626; background: #fef2f2; padding: 2px 8px; border-radius: 6px; vertical-align: middle; }
.bq-qs > li.bq-right .qt::after { content: "Correct"; margin-left: 8px; font-size: .75rem; font-weight: 700; color: #059669; background: #ecfdf5; padding: 2px 8px; border-radius: 6px; vertical-align: middle; }
.bq-qs > li.bq-need { animation: bqNeed 1.2s ease; }
@keyframes bqNeed { 0%, 100% { background: transparent; } 20%, 60% { background: #fef3c7; } }
.bq-check { position: sticky; bottom: 10px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 10px 12px 10px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 8px 24px rgba(15, 23, 42, .1); }
.bq-left { color: #475569; font-weight: 600; font-size: .95rem; }
.bq-checkbtn { font: inherit; font-weight: 700; border: 0; border-radius: 10px; padding: 10px 18px; background: #0f172a; color: #fff; cursor: pointer; }
.bq-checkbtn.off { background: #cbd5e1; color: #475569; }
.bq-checkbtn:not(.off):hover { background: #1e293b; }
.bq-score { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: 1.05rem; }
.bq-score b { font-size: 1.5rem; margin-right: 6px; color: #0f172a; }
.bq-score span { display: block; color: #475569; margin-top: 2px; }
@media print { .bq-check { display: none; } }
