/* 🪳 바퀴벌레 포커(v0.3.170) */
.bp-wrap{max-width:1140px;margin:auto;color:#203b36;display:grid;gap:12px}
.bp-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.bp-head h1{margin:4px 0;font-size:clamp(26px,3.2vw,36px)}
.bp-head-btns{display:flex;gap:8px}
.bp-pic{display:inline-block;width:56px;aspect-ratio:1;background:url('./assets/bug-poker/cards.webp') no-repeat;background-size:400% 200%;flex:none}
.bp-pic.big{width:min(150px,26vw)}
.bp-pic.mini{width:40px;vertical-align:middle}
.bp-intro{display:flex;gap:18px;align-items:center;background:#fffdf4;border:2px solid #e9dfb9;border-radius:20px;padding:16px 20px;flex-wrap:wrap}
.bp-intro>div:last-child{flex:1;min-width:260px}.bp-intro h2{margin:0 0 6px}.bp-intro p{margin:0;font-size:1.1em;line-height:1.55}
.bp-sample{display:grid;grid-template-columns:repeat(2,64px);gap:6px}.bp-sample .bp-pic{width:64px;background-color:#fff;border-radius:12px;box-shadow:0 2px 0 #d8ccaa}
.bp-levels{background:#fff;border-radius:20px;padding:14px 18px}.bp-levels h2{margin:0 0 10px;font-size:1.15em}
.bp-levels>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.bp-level{display:grid;gap:4px;text-align:center;padding:12px 8px;border-radius:16px;border:2px solid #c9d8cf;background:#f6fbf7;min-height:84px}
.bp-level b{font-size:1.2em}.bp-level small{color:#47635b;line-height:1.3}
.bp-level.chosen{border-color:#1f7a5c;background:#d9f3e4;box-shadow:inset 0 0 0 2px #1f7a5c}
.bp-start{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.bp-rules{background:#fff;border-radius:20px;padding:14px 20px;line-height:1.6}.bp-rules h2{margin:0}.bp-rules ol{margin:8px 0;padding-left:1.3em}
/* 자리: 위에 친구 셋, 아래 유하 */
.bp-friends{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.bp-seat{background:#fff;border:2px solid #d5e3da;border-radius:16px;padding:8px 10px;display:grid;gap:6px;min-width:0}
.bp-seat.on{border-color:#e0a128;box-shadow:0 0 0 3px #ffe3a3}
.bp-seat.lost{border-color:#c0392b;background:#fff1ef}
.bp-who{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.bp-who b{font-size:1.1em}.bp-who small{color:#557168}
.bp-who em{font-style:normal;font-weight:700;font-size:.85em;background:#fff2cc;color:#8a5a00;border-radius:99px;padding:1px 9px}
.bp-pile{display:flex;flex-wrap:wrap;gap:4px;min-height:40px;align-items:center}
.bp-chip{position:relative;display:inline-flex;background:#f4f7f5;border-radius:10px}
.bp-chip .bp-pic{width:38px}
.bp-chip b{position:absolute;right:-4px;bottom:-4px;background:#1f5d4d;color:#fff;border-radius:99px;min-width:20px;height:20px;font-size:13px;display:grid;place-items:center}
.bp-chip.danger{background:#ffe1dc;box-shadow:0 0 0 2px #e15a46}.bp-chip.danger b{background:#c0392b}
.bp-none{color:#8aa098}
.bp-msg{margin:0;background:#174f44;color:#fff;border-radius:14px;padding:10px 16px;font-size:1.1em;font-weight:700}
/* 가운데 판 */
.bp-table{background:radial-gradient(ellipse at 50% 40%,#2f8a68,#1c624a);border-radius:24px;padding:16px;min-height:230px;display:grid;align-items:center;color:#fff}
.bp-stage{display:flex;gap:20px;align-items:center;justify-content:center;flex-wrap:wrap;text-align:center}
.bp-stage.pick,.bp-stage.judge,.bp-stage.reveal{justify-content:flex-start;text-align:left;flex-wrap:nowrap}
.bp-choose{flex:1;min-width:0;display:grid;gap:10px}
.bp-say{margin:0;font-size:clamp(20px,2.3vw,26px);font-weight:800}.bp-say small{font-size:.65em;opacity:.85;font-weight:600}
.bp-card{flex:none;display:grid;justify-items:center;gap:4px;background:#fffdf5;color:#203b36;border-radius:18px;padding:10px 12px;box-shadow:0 6px 0 #0f3d2f}
.bp-card b{font-size:1.15em}.bp-card small{color:#6b7f78}
.bp-card.flip{animation:bpFlip .45s ease-out}
@keyframes bpFlip{from{transform:rotateY(90deg)}to{transform:none}}
.bp-back{display:grid;place-items:center;width:min(150px,26vw);aspect-ratio:1;border-radius:12px;background:repeating-linear-gradient(45deg,#7a3e1d 0 12px,#8f4d27 12px 24px);border:4px solid #f3d9a4}
.bp-back b{font-size:64px;color:#ffe9b8;text-shadow:0 3px #4a2210}
.bp-claims{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.bp-claim{display:flex;align-items:center;gap:6px;padding:6px 8px;border-radius:14px;background:#fff;color:#203b36;border:2px solid transparent;text-align:left;min-width:0}
.bp-claim .bp-pic{width:46px}.bp-claim span{display:grid;font-weight:700;min-width:0}.bp-claim small{color:#1f7a5c;font-size:.8em}
.bp-claim.truth{border-color:#9be0b9}
.bp-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.bp-table .bp-actions .quiet{background:transparent;color:#fff;border:2px solid #bfe3d4}
.bp-table .secondary{background:#fff;color:#1c624a}
.bp-yes{background:#2e86de}.bp-no{background:#d35400}
.bp-help{margin:0;background:rgba(0,0,0,.22);border-radius:12px;padding:8px 12px;line-height:1.5}.bp-help .sure{color:#ffe066}
.bp-small{opacity:.9;font-size:.95em}
.bp-bubble{flex:1;min-width:0;font-size:1.15em;line-height:1.55}.bp-bubble p{margin:0 0 6px}
.bp-stage.end{display:grid;justify-items:center;gap:6px}.bp-stage.end h2{margin:0;font-size:clamp(30px,4vw,44px)}.bp-stage.end p{margin:0;font-size:1.15em}
/* 유하 자리와 손패 */
.bp-mine{display:grid;gap:8px}
.bp-seat.me{border-color:#9cc9b6;background:#f3fbf6}.bp-seat.me.on{border-color:#e0a128}
.bp-hand{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}
.bp-hand-card{display:grid;justify-items:center;gap:2px;padding:6px 4px;border-radius:14px;background:#fff;border:2px solid #d5e3da;color:#203b36;min-width:0}
.bp-hand-card .bp-pic{width:min(70px,100%)}.bp-hand-card span{font-size:.92em;font-weight:700;white-space:nowrap}.bp-hand-card b{color:#1f5d4d}
.bp-hand.go .bp-hand-card:not(:disabled){border-color:#e0a128;box-shadow:0 4px 0 #e0a128}
.bp-hand-card:disabled{opacity:.55;cursor:default}
.bp-hand.go .bp-hand-card:disabled{opacity:.3}
/* 승리 연출 */
.bp-fx-host{position:fixed;inset:0;z-index:81;pointer-events:none;overflow:hidden;background:radial-gradient(circle at 50% 45%,rgba(5,30,20,.1),rgba(5,30,20,.45))}
.bp-fx-host .pfx-firework{position:absolute;top:-4vh;width:min(36vw,470px);height:auto}
.bp-fx-host .bp-fw-0{left:3%}.bp-fx-host .bp-fw-1{right:3%}.bp-fx-host .bp-fw-2{left:50%;transform:translateX(-50%);top:6vh}
.bp-win-banner{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;justify-items:center;gap:4px}
.bp-win-banner span{font-size:clamp(4rem,12vw,8rem);line-height:1}
.bp-win-banner b{font-size:clamp(3.5rem,11vw,8rem);font-weight:900;color:#fff;-webkit-text-stroke:4px #1c624a;paint-order:stroke fill;text-shadow:0 6px 0 #0f3d2f,0 0 28px #ffe066;white-space:nowrap}
/* 세로 화면 */
@media (max-width:900px){
 .bp-levels>div{grid-template-columns:repeat(3,minmax(0,1fr))}
 .bp-hand{grid-template-columns:repeat(4,minmax(0,1fr))}
 .bp-claims{grid-template-columns:repeat(2,minmax(0,1fr))}
 .bp-stage.pick,.bp-stage.judge,.bp-stage.reveal{flex-wrap:wrap;justify-content:center}
}
