/* 숫자 폭탄 v2(2026-10-27 신사장님 기획 확정 docs/game-bomb-plan.md, 눌러 보는 시안 _design/bomb-v2/proto.html) — arcade/bomb/index.html에서만 불러온다.
   악어 이빨 v2(cr2-)와 같은 만화풍·같은 틀(이름표·상황판·결과 카드). 전역 style.css의 .bomb-icon·.bomb-range·.card 등과 안 겹치게 모두 bm2- 로 시작, 색 변수는 .bm2 안에서만.
   폰·세로는 가운데 한 단(최대 560px, 옆 여백 16), PC·태블릿 가로는 왼쪽 큰 판 + 오른쪽 상황판 360 */
body{background:#FFF8F1 radial-gradient(#F3DCE6 1px,transparent 1.3px) 0 0/16px 16px}
.bm2{--pk:#FF7EB6;--pk2:#FFD6E8;--li:#B9A6FF;--li2:#E9E2FF;--mi:#5FCFAE;--mi2:#D6F5EC;--bu:#FFD84D;--bu2:#FFF3C4;--hot:#FF4D6D;--hot-t:#D62850;--ink2:#2B1E2F;--mu2:#7a5a6c;--up:#3E8BFF;--dn:#FF8A3D;color:var(--ink2)}
.bm2>*{max-width:560px;margin-left:auto;margin-right:auto}
.bm2 button{font-family:inherit;color:inherit}
.bm2 .bm2-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.bm2 button:focus-visible,.bm2 a:focus-visible{outline:3px solid var(--ink2);outline-offset:3px}

/* ── 머리: 검정 알약 → 큰 제목 2줄 → 한 줄 설명(악어와 같음) ── */
.bm2-head{position:relative;padding-bottom:0}
.bm2-head h1{display:inline-flex;align-items:center;gap:8px;margin:12px 0 0;padding:6px 12px;border-radius:99px;background:var(--ink2);color:#fff;font:700 12px/1 var(--px);letter-spacing:0}
.bm2-head h1::before{content:'';width:8px;height:8px;border-radius:50%;background:var(--hot)}
.bm2-hsub{display:none}
.bm2-tag{margin:10px 0 0;text-align:left}
.bm2-tag b{display:block;font:700 clamp(21px,7vw,28px)/1.3 var(--px);color:var(--ink2);word-break:keep-all}.bm2-tag em{font-style:normal;color:var(--hot)}
.bm2-tag small{display:block;margin-top:8px;font:600 14px/1.55 Pretendard,sans-serif;color:var(--mu2);word-break:keep-all}
.bm2-sndtip{position:absolute;z-index:5;right:0;top:4px;white-space:nowrap;padding:7px 10px;border:0;border-radius:10px;background:var(--ink2);color:#fff!important;font:700 11.5px/1.3 var(--px);cursor:pointer;word-break:keep-all}
.bm2-sndtip::before{content:'';position:absolute;right:var(--ax,22px);top:-6px;border:6px solid transparent;border-top:0;border-bottom-color:var(--ink2)}
.bm2:has(#stage:not([hidden])) .bm2-tag,.bm2:has(#stage:not([hidden])) .bm2-sndtip{display:none}
/* 플레이 중: 머리 접기('숫자 폭탄  4명 · 1~50' 한 줄) */
.bm2:has(#stage:not([hidden])) .bm2-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;padding-bottom:16px}
.bm2:has(#stage:not([hidden])) .bm2-head h1{margin:6px 0 0;padding:0;border-radius:0;background:none;color:var(--ink2);font-size:20px}
.bm2:has(#stage:not([hidden])) .bm2-head h1::before{display:none}
.bm2:has(#stage:not([hidden])) .bm2-hsub{display:inline;font:700 13px/1.3 var(--px);color:var(--mu2)}
/* 팀 띠(team.js) — 악어와 같은 간격 */
.bm2>.tbar{margin:20px auto 0}
.bm2:has(#stage:not([hidden]))>.tbar{margin:0 auto 16px}

/* ── 1. 이름표 2열(악어·돌림판·사다리와 같음) ── */
.bm2-setup{margin-top:24px}
.bm2-setup[hidden]{display:none}
.bm2-ttl{margin:0 0 16px;font:700 20px/1.2 var(--px);word-break:keep-all}
.bm2-ttl small{display:block;margin-top:4px;font:500 12.5px/1.4 Pretendard,sans-serif;color:var(--mu2)}
.bm2-tags{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px}
.bm2-nt{position:relative;display:flex;align-items:center;gap:7px;min-width:0;padding:8px 10px 8px 8px;background:#fff;border:2.5px solid var(--ink2);border-radius:18px;box-shadow:3px 3px 0 var(--c2,var(--ink2))}
.bm2-nt.dup{border-color:var(--hot)}
.bm2-fc{position:relative;flex:none;width:42px;height:42px;padding:0;border:0;background:none;border-radius:50%;cursor:pointer}
.bm2-fc img{display:block;width:42px;height:42px;border-radius:50%;object-fit:cover;background:var(--c);border:2px solid var(--ink2)}
.bm2-fc::after{content:'↻';position:absolute;right:-4px;bottom:-3px;width:16px;height:16px;border-radius:50%;background:var(--bu);border:1.5px solid var(--ink2);font:700 10px/13px Pretendard,sans-serif;text-align:center}
.bm2-nm{flex:1;min-width:0;width:100%;padding:4px 0;border:0;border-bottom:2px dashed transparent;background:transparent;font:700 16px/1.2 var(--px);color:var(--ink2);border-radius:0}
.bm2-nm:focus{outline:none;border-bottom-color:var(--pk)}
.bm2-del{position:absolute;right:-8px;top:-8px;display:grid;place-items:center;width:24px;height:24px;padding:0;border:2px solid var(--ink2);border-radius:50%;background:#fff;color:#7a5a6c;font:700 12px/1 Pretendard,sans-serif;cursor:pointer}
.bm2-addt{border-style:dashed;box-shadow:none;background:transparent;min-height:62px;padding:0}
.bm2-addt input{width:100%;height:100%;min-height:58px;padding:0 10px;border:0;background:transparent;text-align:center;font:700 16px/1.2 var(--px);color:var(--ink2);border-radius:16px}
.bm2-addt input::placeholder{color:var(--hot);opacity:1}
.bm2-addt input:focus{outline:none;background:#fff}.bm2-addt input:focus::placeholder{color:#b9a3af;font:600 13px/1.2 Pretendard,sans-serif}
.bm2-tapme{position:absolute;left:8px;top:-13px;z-index:2;padding:4px 6px;border-radius:7px;background:var(--ink2);color:#fff;font:700 10px/1 var(--px);white-space:nowrap;pointer-events:none}
.bm2-pick{margin-top:12px;padding:10px 12px 12px;background:#fff;border:2.5px solid var(--ink2);border-radius:16px;box-shadow:3px 3px 0 var(--ink2)}
.bm2-pick[hidden]{display:none}
.bm2-pick-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px;font:700 14px/1.3 var(--px)}
.bm2-pick-h span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bm2-pick-h button{flex:none;padding:6px 10px;border:2px solid var(--ink2);border-radius:9px;background:#fff;font:700 12px/1 var(--px);cursor:pointer}
.bm2-cg{display:grid;grid-template-columns:repeat(5,1fr);gap:8px 6px}
.bm2-cg button{position:relative;padding:0;border:0;background:none;text-align:center;font:700 11px/1.2 var(--px);cursor:pointer;min-width:0}
.bm2-cg img{display:block;width:100%;max-width:58px;margin:0 auto 3px;aspect-ratio:1;border-radius:50%;object-fit:cover;background:var(--c,#FFF3C4);border:2.5px solid var(--ink2)}
.bm2-cg button[aria-checked="true"] img{box-shadow:0 0 0 3px var(--hot)}
.bm2-cg small{display:block;font:600 10px/1.2 Pretendard,sans-serif;color:var(--mu2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bm2-cg button.lock img{filter:grayscale(1) opacity(.5)}
/* 팀에서 고르기·지우기(team.js·arcade-fx.js가 숨긴 textarea 앞 칸에 붙인다) */
.bm2-nhead{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:12px}
.bm2-nhead:empty{display:none}
.bm2-nhead .pl-btns{display:flex;flex:1;gap:8px;margin:0}
.bm2-nhead .pl-clear{flex:none;margin:0;height:42px;padding:0 12px;border:2.5px solid var(--ink2);border-radius:12px;background:#fff;font:700 13px/1 var(--px)}
.bm2-nhead .pl-team{flex:1;min-width:0;background:var(--li2)}
.bm2-hint{margin:10px 0 0;text-align:center;font:600 12px/1.45 Pretendard,sans-serif;color:var(--mu2);word-break:keep-all}
.bm2-hint.warn{color:var(--hot-t)}
.bm2-lbox{margin-top:12px;padding:10px 12px;background:#fff;border:2.5px solid var(--ink2);border-radius:14px}
.bm2-lbox p{margin:0 0 8px;font:700 13px/1.3 var(--px);word-break:keep-all}.bm2-lbox p small{display:block;margin-top:3px;font:600 11.5px/1.35 Pretendard,sans-serif;color:var(--mu2)}
/* 숫자 범위: [1~30][1~50][1~100] + (직접 고르면) [자동] */
.bm2-segb{display:flex;gap:6px}
.bm2-segb button{flex:1;min-width:0;min-height:40px;padding:0;border:2.5px solid var(--ink2);border-radius:10px;background:#fff;font:700 14px/1 var(--px);cursor:pointer;white-space:nowrap}
.bm2-segb button[aria-checked="true"]{background:var(--hot-t);color:#fff;box-shadow:3px 3px 0 var(--ink2)}
.bm2-segb .bm2-auto{flex:none;padding:0 10px;font-size:13px;background:var(--bu2)}
.bm2-segb .bm2-auto[hidden]{display:none}
.bm2-go{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:54px;margin-top:14px;padding:0 12px;border:3px solid var(--ink2);border-radius:16px;background:var(--pk);box-shadow:5px 5px 0 var(--ink2);font:700 18px/1.2 var(--px);cursor:pointer;animation:bm2-throb 1.4s ease-in-out infinite;word-break:keep-all}
.bm2-go:active{transform:translate(3px,3px);box-shadow:2px 2px 0 var(--ink2);animation:none}
.bm2-go:disabled{background:#e9dde3;color:#7a5a6c;border-color:#b9a3af;box-shadow:3px 3px 0 #b9a3af;animation:none;cursor:default}
@keyframes bm2-throb{50%{transform:scale(1.03)}}
.bm2-odds{margin:10px 0 0;text-align:center;font:700 13px/1.5 var(--px);color:var(--mu2);word-break:keep-all}.bm2-odds b{color:var(--hot-t);font-size:20px}.bm2-odds span{display:inline-block}
.bm2 .arc-msg{margin:8px 0 0;text-align:center}
.bm2 .arc-msg:empty{display:none}
.bm2-king{display:flex;align-items:center;gap:10px;margin-top:20px;padding:8px 12px;border-radius:14px;background:var(--ink2);color:#fff;text-decoration:none;font:700 13px/1.3 var(--px)}
.bm2-king img{flex:none;width:42px;height:42px;border-radius:50%;border:2px solid #fff;background:var(--pk2);object-fit:cover}
.bm2-king span{flex:1;min-width:0;word-break:keep-all}.bm2-king i{font-style:normal;color:var(--bu)}.bm2-king small{display:block;font:600 11.5px/1.3 Pretendard,sans-serif;color:#d9c7d2}
.bm2-king>b{flex:none;white-space:nowrap}

/* ── 2. 게임 판(시안 proto.html 그대로) — 폰: 차례 띠 → 판 → 상황판 한 줄 ── */
.bm2-st{display:flex;flex-direction:column;gap:14px}
.bm2-st[hidden]{display:none}
.bm2-side{display:contents}
.bm2-turn{order:1}.bm2-game{order:2}.bm2-stat{order:3}.bm2-result{order:4}
/* 차례 띠(악어와 같은 부품) */
.bm2-turn{display:flex;align-items:center;gap:10px;padding:8px 10px;background:#fff;border:3px solid var(--ink2);border-radius:18px;box-shadow:3px 3px 0 var(--ink2)}
.bm2-now{position:relative;flex:none;width:56px;height:56px;border:3px solid var(--ink2);border-radius:50%;background:var(--c,#FFD6E8);overflow:hidden}
.bm2-now img{display:block;width:100%;height:100%;object-fit:cover}
.bm2-who{flex:1;min-width:0}.bm2-who p{margin:0;font:600 12px/1.2 Pretendard,sans-serif;color:var(--mu2)}
.bm2-who strong{display:block;font:700 19px/1.25 var(--px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bm2-next{flex:none;display:flex;gap:4px}.bm2-next img{width:30px;height:30px;border:2px solid var(--ink2);border-radius:50%;background:var(--c);object-fit:cover;opacity:.85}
/* 판: 보라→크림, 남은 숫자 30% 이하면 살구, 마지막 5칸이면 분홍 */
.bm2-bw{position:relative;padding:12px;background:linear-gradient(#E9E2FF,#FFF3D9);border:4px solid var(--ink2);border-radius:26px;box-shadow:6px 6px 0 var(--ink2);overflow:hidden;box-sizing:border-box;transition:background .4s}
.bm2-bw.warm{background:linear-gradient(#FFE3D6,#FFF3D9)}
.bm2-bw.hot{background:linear-gradient(#FFD0D8,#FFE9D6)}
.bm2-bw.shake{animation:bm2-shake .45s}
@keyframes bm2-shake{20%{transform:translate(-7px,3px)}40%{transform:translate(6px,-4px)}60%{transform:translate(-4px,-2px)}80%{transform:translate(3px,3px)}}
/* 위: 폭탄(스티커 한 장 + 코드 심지) + 지금 범위 */
.bm2-hd{display:flex;align-items:center;gap:10px}
.bm2-bomb{position:relative;flex:none;width:30%;max-width:150px;aspect-ratio:1}
.bm2-bomb img{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none;user-select:none;-webkit-user-select:none}
.bm2-bomb svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.bm2-bomb.tremble{animation:bm2-trem .09s linear infinite}.bm2-bomb.tremble.slow{animation-duration:.16s}
@keyframes bm2-trem{25%{transform:translate(-1.5px,1px) rotate(-2deg)}75%{transform:translate(1.5px,-1px) rotate(2deg)}}
.bm2-fbg{fill:none;stroke:#C9B9A8;stroke-width:4.2;stroke-linecap:round;stroke-dasharray:2.5 3.3}
.bm2-fuse{fill:none;stroke:#8A6A4A;stroke-width:5;stroke-linecap:round;transition:stroke-dasharray .6s}
.bm2-sz{transform:scale(.8);transition:transform .4s cubic-bezier(.3,1.6,.5,1)}
.bm2-bw.hot .bm2-sz{transform:scale(1.3)}
.bm2-spk{transform-box:fill-box;transform-origin:center;animation:bm2-spk .25s steps(2) infinite}
.bm2-bw.hot .bm2-spk{animation-duration:.14s}
@keyframes bm2-spk{50%{transform:scale(1.35) rotate(25deg)}}
.bm2-bw.done .bm2-bomb svg{display:none}
.bm2-rng{flex:1;min-width:0;text-align:center}
.bm2-r{font:700 clamp(30px,10vw,46px)/1 var(--px);white-space:nowrap}
.bm2-r span{color:var(--hot-t)}
.bm2-rng small{display:inline-block;margin-top:8px;padding:4px 10px;border:2.5px solid var(--ink2);border-radius:99px;background:#fff;font:700 12px/1 var(--px)}
/* 숫자판: 남은 숫자만, 칸 수에 맞춰 열을 줄여 칸이 커진다(높이 고정 — 열 수·칸 크기는 Bomb.fitGrid) */
.bm2-grid{position:relative;display:grid;grid-template-columns:repeat(var(--cols,10),var(--cell,24px));grid-auto-rows:var(--cell,24px);gap:var(--gap,5px);justify-content:center;align-content:center;margin-top:12px}
.bm2-n{width:var(--cell);height:var(--cell);display:grid;place-items:center;padding:0;border:2.5px solid var(--ink2);border-radius:var(--rad,10px);background:#fff;box-shadow:2px 2px 0 var(--ink2);font:700 var(--fs,15px)/1 var(--px);color:var(--ink2);cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;
  animation:bm2-nin .35s cubic-bezier(.3,1.5,.5,1) both;animation-delay:calc(var(--k) * 6ms)}
.bm2 .bm2-n,.bm2 .bm2-go,.bm2 .bm2-x{font-family:var(--px)}   /* .bm2 button{font-family:inherit}보다 세게 — 숫자 칸은 픽셀 글꼴(시안) */
.bm2-grid.small .bm2-n{border-width:2px;box-shadow:1.5px 1.5px 0 var(--ink2)}
@keyframes bm2-nin{from{transform:scale(.5);opacity:0}}
.bm2-n:hover{background:var(--bu2)}
.bm2-n:active{transform:translate(2px,2px);box-shadow:none}
.bm2-n:focus-visible{outline:3px solid var(--hot-t);outline-offset:2px;z-index:3}
.bm2-n.pick{background:var(--bu);transform:scale(1.08);z-index:2}
.bm2-n.gone{animation:bm2-gone .4s ease-in forwards;animation-delay:calc(var(--j,0) * 8ms);background:#E9E1E6;color:#B9A9B2;pointer-events:none}
@keyframes bm2-gone{40%{transform:scale(1.1) rotate(0);opacity:1}to{transform:scale(.2) rotate(var(--rt,14deg));opacity:0}}
.bm2-grid.lock .bm2-n{cursor:default}
.bm2-bw.hot .bm2-n:not(.pick){background:#FFF0F3}
.bm2-bw.done .bm2-n{opacity:.3;transform:none}.bm2-bw.done .bm2-n.bm2-hit{opacity:1;background:var(--hot);color:#fff}
/* 가운데 큰 숫자 → 두구두구 → ▲UP / ▼DOWN 도장 */
.bm2-call{position:absolute;left:50%;top:56%;z-index:7;transform:translate(-50%,-50%) scale(.6);opacity:0;pointer-events:none;text-align:center;transition:transform .25s cubic-bezier(.3,1.6,.5,1),opacity .2s}
.bm2-call.on{transform:translate(-50%,-50%);opacity:1}
.bm2-call b{display:block;min-width:120px;padding:10px 22px 12px;border:4px solid var(--ink2);border-radius:22px;background:#fff;box-shadow:5px 5px 0 var(--ink2);font:700 64px/1 var(--px)}
.bm2-call small{display:inline-block;margin-top:10px;padding:6px 14px;border:3px solid var(--ink2);border-radius:999px;background:#fff;font:700 15px/1.2 var(--px);white-space:nowrap}
.bm2-call small.only{padding:10px 18px;border-width:4px;border-radius:18px;box-shadow:4px 4px 0 var(--ink2);font-size:17px;line-height:1.35}.bm2-call small.only em{font-style:normal;color:var(--hot-t);font-size:24px}
.bm2-ud{display:inline-block;margin-top:10px;padding:8px 18px;border:4px solid var(--ink2);border-radius:14px;font:700 28px/1 var(--px);color:#fff;white-space:nowrap;transform:rotate(-6deg);animation:bm2-stampin .3s cubic-bezier(.3,1.8,.5,1) both}
.bm2-ud.up{background:var(--up)}.bm2-ud.dn{background:var(--dn)}
@keyframes bm2-stampin{from{transform:rotate(-6deg) scale(2.2);opacity:0}}
.bm2-dim{position:absolute;inset:0;z-index:6;background:rgba(255,248,241,.6);opacity:0;pointer-events:none;transition:opacity .2s}
.bm2-dim.on{opacity:1}
.bm2-flash{position:absolute;inset:0;z-index:8;background:#fff;opacity:0;pointer-events:none}
.bm2-flash.on{animation:bm2-fl .5s ease-out}
@keyframes bm2-fl{0%{opacity:.95}100%{opacity:0}}
/* 휴~ 살았다 그림·말풍선 */
.bm2-pop{position:absolute;right:2%;bottom:2%;z-index:9;width:30%;max-width:170px;pointer-events:none;opacity:0;transform:translateY(30%) scale(.6)}
.bm2-pop.on{animation:bm2-yay 1.3s cubic-bezier(.3,1.5,.5,1) forwards}
@keyframes bm2-yay{15%{opacity:1;transform:none}80%{opacity:1;transform:none}100%{opacity:0;transform:translateY(10%)}}
.bm2-pop img{display:block;width:100%}
.bm2-say{position:absolute;left:50%;bottom:4%;z-index:9;max-width:92%;transform:translateX(-50%);padding:6px 12px;border:3px solid var(--ink2);border-radius:14px;background:var(--bu2);font:700 15px/1.25 var(--px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:3px 3px 0 var(--ink2);opacity:0;transition:opacity .2s;pointer-events:none}
.bm2-say.on{opacity:1}
/* 마지막 5칸: SLOW 띠 + 두근 하트 — 폭탄 그림 아래 두 귀퉁이(동그란 몸통 밖 빈자리). 판 위쪽은 뚜껑·심지·범위 숫자 자리(10-27 스티커) */
.bm2-beat{position:absolute;right:0;bottom:-2px;z-index:5;display:none;font:700 22px/1 var(--px);color:var(--hot-t)}
.bm2-bw.hot .bm2-beat{display:block;animation:bm2-beat .43s ease-in-out infinite}
@keyframes bm2-beat{30%{transform:scale(1.25)}}
.bm2-slow{position:absolute;left:-6px;bottom:0;z-index:5;display:none;padding:4px 8px;border-radius:6px;background:var(--ink2);color:#fff;font:700 11px/1 var(--px);letter-spacing:.3em}
.bm2-bw.hot .bm2-slow{display:block}
/* 펑: 어두운 막 위 폭발 + 우는 그림 크게 + '펑!' 도장 + 한 줄, 오른쪽 위 ✕로 바로 넘기기 */
.bm2-boom{position:absolute;inset:0;z-index:10;display:grid;place-items:center;background:rgba(43,30,47,.55);opacity:0;pointer-events:none;transition:opacity .25s}
.bm2-boom.on{opacity:1;pointer-events:auto}
.bm2-bin{position:relative;width:66%;max-width:340px;text-align:center}
.bm2-burst{position:absolute;left:50%;top:44%;width:150%;aspect-ratio:1;transform:translate(-50%,-50%);z-index:-1;
  background:#FFD84D;clip-path:polygon(50% 0,61% 30%,93% 18%,72% 45%,100% 58%,68% 64%,78% 96%,52% 74%,30% 100%,32% 68%,0 72%,24% 48%,4% 22%,36% 30%)}
.bm2-burst::after{content:'';position:absolute;inset:18%;background:#FF8A3D;clip-path:inherit}
.bm2-boom.on .bm2-burst{animation:bm2-burst .5s cubic-bezier(.3,1.6,.5,1)}
@keyframes bm2-burst{from{transform:translate(-50%,-50%) scale(.2) rotate(-30deg)}}
.bm2-bin img{display:block;width:100%}
.bm2-boom.on .bm2-bin img{animation:bm2-bitin .5s cubic-bezier(.3,1.6,.5,1)}
@keyframes bm2-bitin{from{transform:scale(.4) rotate(-8deg)}}
.bm2-stamp{position:absolute;right:-14%;top:4%;padding:6px 12px;border:4px solid var(--hot);border-radius:12px;background:#fff;color:var(--hot-t);font:700 30px/1 var(--px);transform:rotate(12deg)}
.bm2-boom.on .bm2-stamp{animation:bm2-stp .35s .35s cubic-bezier(.3,1.8,.5,1) both}
@keyframes bm2-stp{from{transform:rotate(12deg) scale(2.4);opacity:0}}
.bm2-bin p{display:inline-block;max-width:150%;box-sizing:border-box;margin:6px 0 0;padding:6px 12px;border:3px solid var(--ink2);border-radius:12px;background:#fff;font:700 17px/1.3 var(--px);word-break:keep-all;white-space:nowrap}
.bm2-bin p em{font-style:normal;color:var(--hot-t)}
.bm2-x{position:absolute;z-index:2;top:10px;right:10px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:3px solid var(--ink2);border-radius:50%;background:#fff;box-shadow:3px 3px 0 var(--ink2);color:var(--ink2);font:700 20px/1 var(--px);cursor:pointer}
.bm2-x:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink2)}
/* 상황판: 이번에 터질 확률 1/N(점점 빨갛게) · 지금 범위 · 이번 판 기록 */
.bm2-stat{padding:12px 14px;background:#fff;border:3px solid var(--ink2);border-radius:18px;box-shadow:3px 3px 0 var(--ink2)}
.bm2-stat:focus{outline:none}
.bm2-stat h2{margin:0;font:700 14px/1.2 var(--px)}
.bm2-risk{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:8px}
.bm2-risk b{flex:none;font:700 26px/1 var(--px);color:var(--hot-t)}.bm2-risk small{min-width:0;font:600 12px/1.3 Pretendard,sans-serif;color:var(--mu2);text-align:right;word-break:keep-all}
.bm2-meter{height:14px;margin-top:6px;border:2.5px solid var(--ink2);border-radius:99px;background:#F1E6EC;overflow:hidden}
.bm2-meter i{display:block;height:100%;width:0;background:linear-gradient(90deg,#FFD84D,#FF8A5C,#FF4D6D);background-size:var(--bs,100%) 100%;transition:width .5s}
.bm2-left{margin:8px 0 0;font:600 13px/1.4 Pretendard,sans-serif;color:var(--mu2);word-break:keep-all}.bm2-left b{color:var(--ink2)}
/* 이번 판 기록(PC 상황판만 — 부른 차례대로 아래로 쌓임, 시안 그대로) */
.bm2-log{display:none;margin:12px 0 0;padding:10px 0 0;border-top:2px dashed #E3D6DC}
.bm2-log h3{margin:0 0 6px;font:700 12px/1.2 var(--px);color:var(--mu2)}
.bm2-log ol{display:flex;flex-direction:column;gap:5px;margin:0;padding:0;list-style:none}
.bm2-log li{display:flex;align-items:center;gap:6px;font:600 13px/1.3 Pretendard,sans-serif}.bm2-log li img{flex:none;width:24px;height:24px;border:2px solid var(--ink2);border-radius:50%;background:var(--c);object-fit:cover}
.bm2-log li span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bm2-log li i{flex:none;font-style:normal;margin-left:auto;font:700 12px/1 var(--px)}.bm2-log li i.u{color:#2F6FD6}.bm2-log li i.d{color:#D9661F}.bm2-log li.b{color:var(--hot-t);font-weight:800}.bm2-log li.b i{color:var(--hot-t)}
.bm2-log li.bm2-empty{color:var(--mu2)}
.bm2-sub{display:block;width:100%;margin-top:4px;padding:10px;border:0;background:none;font:700 13px/1.2 var(--px);color:var(--mu2);text-decoration:underline;cursor:pointer}
.bm2-sub:disabled{opacity:.45;cursor:default}
.bm2-stat .bm2-sub{margin:6px 0 -6px}
.bm2-st.ended .bm2-turn,.bm2-st.ended .bm2-stat .bm2-sub{display:none}

/* ── 3. 결과 카드(악어·돌림판 결과 블록과 같은 모양·순서) ── */
.bm2-result{text-align:center}
.bm2-result[hidden]{display:none}
.bm2-card{position:relative;max-width:min(300px,calc(100% - 24px));margin:18px auto 0;padding:14px 12px 12px;background:#fff;border:3px solid var(--ink2);border-radius:20px;box-shadow:0 0 0 7px #fff,0 0 0 10px var(--pk)}
.bm2-st-l,.bm2-st-r{position:absolute;top:-14px;display:grid;place-items:center;width:36px;height:36px;border:3px solid var(--ink2);border-radius:50%;background:var(--pk);color:#fff;font:700 18px/1 var(--px)}.bm2-st-l{left:-14px}.bm2-st-r{right:-14px;background:var(--li)}
.bm2-ct{margin:0;font:700 13px/1.2 var(--px);color:var(--hot-t);word-break:keep-all}
.bm2-pair{display:flex;justify-content:center}.bm2-pair img{width:150px;max-width:100%}
.bm2-cn{margin:0;font:700 24px/1.2 var(--px);word-break:keep-all;overflow-wrap:anywhere}
.bm2-cs{margin:4px 0 0;font-size:12px;line-height:1.4;color:#8a6a7c;word-break:keep-all}
.bm2-row{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin-top:10px}
.bm2-row img{width:32px;height:32px;border-radius:50%;object-fit:cover;background:var(--c);border:2px solid var(--ink2)}
.bm2-saved{margin-top:24px}
.bm2-saved p{margin:0;font:700 13px/1.3 var(--px);color:var(--hot-t);word-break:keep-all}
.bm2-saved div{display:flex;justify-content:center;align-items:flex-end;margin-top:2px}
.bm2-saved img{flex:1 1 0;min-width:0;max-width:var(--yw,110px);margin:0 calc(var(--yo,0px) * -1);animation:bm2-hop 1s ease-in-out infinite}
.bm2-saved img:nth-child(2n){animation-delay:.3s}
@keyframes bm2-hop{50%{transform:translateY(-6px)}}
.bm2-rec{display:flex;align-items:center;gap:8px;margin:24px 0 0;padding:9px 11px;border:2.5px solid var(--ink2);border-radius:12px;background:var(--mi2);text-align:left;font:700 13px/1.35 var(--px)}
.bm2-ok{flex:none;display:grid;place-items:center;width:22px;height:22px;border:2px solid var(--ink2);border-radius:50%;background:var(--mi);color:#fff;font-size:12px}
.bm2-rec span:nth-child(2){flex:1;min-width:0;word-break:keep-all}.bm2-rec b{color:var(--hot-t)}.bm2-rec a{flex:none;color:#C21F45;text-decoration:none;white-space:nowrap}
.bm2-again{display:grid;grid-template-columns:1fr;margin-top:24px}
.bm2-again .r{min-height:54px;padding:0 6px;border:3px solid var(--ink2);border-radius:16px;background:var(--pk);color:var(--ink2)!important;box-shadow:5px 5px 0 var(--ink2);font:700 17px/1.2 var(--px);cursor:pointer;word-break:keep-all}
.bm2-again .r:active{transform:translate(2px,2px);box-shadow:2px 2px 0 var(--ink2)}
.bm2-share{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.bm2-share button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:48px;padding:0 6px;border:3px solid var(--ink2);border-radius:14px;box-shadow:3px 3px 0 var(--ink2);font:700 15px/1.2 var(--px);white-space:nowrap;cursor:pointer}
.bm2-share svg{flex:none;display:block}
.bm2-share button:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink2)}
.bm2-share .k{background:#FEE500;color:rgba(0,0,0,.85)!important}.bm2-share .s2{background:#fff}
.bm2-result .bm2-sub{margin-top:12px}
/* 폰: 결과 아래 점선 '이번 판 폭탄' → 그 아래 판(결과 카드를 판 위로) */
.bm2-div{display:flex;align-items:center;gap:10px;margin:24px 0 0;font:700 12px/1 var(--px);color:var(--mu2);white-space:nowrap}
.bm2-div::before,.bm2-div::after{content:'';flex:1;border-top:2px dashed #d9c7d2}
.bm2-st.ended .bm2-result{order:0}

@media (max-width:379px){
  .bm2-call b{min-width:96px;padding:8px 16px 10px;font-size:52px}
  .bm2-ud{font-size:24px;padding:7px 14px}
  .bm2-stamp{right:-6%;top:14%;font-size:24px}
  .bm2-bin{width:72%}
}
@media (max-width:359px){
  .bm2-nt{padding-right:8px}.bm2-fc,.bm2-fc img{width:36px;height:36px}
  .bm2-share button{font-size:13px;gap:4px}.bm2-share svg{width:18px;height:18px}
  .bm2-again .r{font-size:15px}
  .bm2-bin p{font-size:15px}
  .bm2-who strong{font-size:17px}.bm2-now{width:48px;height:48px}
  .bm2-next img{width:26px;height:26px}.bm2-next img:nth-child(n+3){display:none}
  .bm2-say{font-size:13px}
  .bm2-segb button{font-size:13px}
  .bm2-bw{padding:10px}
}
/* PC(900~): 머리 큰 제목 + 오른쪽 폭탄 그림 */
@media (min-width:900px){
  .bm2-head{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;align-items:end}
  .bm2-head h1{grid-column:1;justify-self:start}
  .bm2-tag{grid-column:1;margin-top:12px}
  .bm2-tag b{font-size:44px;line-height:1.25}
  .bm2-tag small{margin-top:10px;font-size:15px}
  .bm2-head::after{content:'';grid-column:2;grid-row:1/span 2;width:170px;height:170px;background:url(/assets/arcade/bomb-mini.webp?v=1795510774) center/contain no-repeat;animation:bm2-hop 2.2s ease-in-out infinite}
  .bm2:has(#stage:not([hidden])) .bm2-head::after{display:none}
  .bm2:has(#stage:not([hidden])) .bm2-head{display:flex}
  .bm2-ttl{font-size:22px}.bm2-ttl small{font-size:13px}
  /* 다음 판 카드(악어·사다리·돌림판과 같게) */
  .bm2 .am2{margin-top:40px}
  .bm2 .am2-hd h2{font-size:22px}.bm2 .am2-hd small{font-size:13px}.bm2 .am2-hd a{font-size:14px}
  .bm2 .am2-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:44px 16px;margin-top:48px}
  .bm2 .am2-art{height:150px}
  .bm2 .am2-g.wide{grid-column:auto;flex-direction:column}
  .bm2 .am2-g.wide .am2-art{flex:none;height:150px;min-height:0;border-right:0;border-bottom:3px solid #2B1E2F;border-radius:15px 15px 0 0}
  .bm2 .am2-g.wide .am2-gb{justify-content:flex-start}
  .bm2 .am2-gb{padding:12px 14px 14px}.bm2 .am2-gb b{font-size:18px}
}
/* PC·태블릿 가로: 왼쪽 판(정사각) + 오른쪽 360(차례 띠·상황판 / 끝나면 결과 카드). 머리·판·아래 칸 좌우 끝이 같고, 오른쪽 칸 위·아래 끝은 판과 같게(시안 CSS) */
@media (min-width:900px) and (orientation:landscape){
  .bm2{--gw:max(380px,min(600px,calc(100vh - 220px),calc(100vw - 460px)))}
  .bm2>*{max-width:calc(var(--gw) + 388px)}
  .bm2-st{display:grid;grid-template-columns:var(--gw) 360px;justify-content:space-between;column-gap:28px;align-items:stretch}
  .bm2-game{grid-column:1;grid-row:1}
  .bm2-bw{height:var(--gw);display:flex;flex-direction:column}
  .bm2-grid{flex:1;min-height:0}
  .bm2-side{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:14px;min-height:0;max-height:var(--gw)}
  .bm2-stat{flex:1;display:flex;flex-direction:column;min-height:0}
  .bm2-risk b{font-size:40px}
  .bm2-log{display:flex;flex-direction:column;flex:1;min-height:0}
  .bm2-log ol{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin}
  .bm2-st.ended .bm2-stat{display:none}
  .bm2-st.ended .bm2-side{max-height:none}
  .bm2-st.ended .bm2-bw{height:100%;min-height:var(--gw)}   /* 결과 카드가 판보다 길면 판도 같이 늘려 아래 끝을 맞춤 */
  .bm2-st.ended .bm2-result{flex:1;display:flex;flex-direction:column;justify-content:center}
  .bm2-result .bm2-card{margin-top:12px}
  .bm2-result .bm2-pair img{width:118px}
  .bm2-result .bm2-cn{font-size:21px}
  .bm2-result .bm2-saved{margin-top:16px}.bm2-result .bm2-saved img{max-width:min(var(--yw),64px)}
  .bm2-result .bm2-rec,.bm2-result .bm2-again{margin-top:14px}
  .bm2-result .bm2-again .r{min-height:50px}
  .bm2-result .bm2-sub{margin-top:6px;padding:8px}
  .bm2-div{display:none}
  /* 이름 넣기: 왼쪽 이름표 + 오른쪽 360칸 */
  .bm2-setup{display:grid;grid-template-columns:minmax(0,1fr) 360px;column-gap:28px;align-items:start;grid-template-rows:auto auto auto auto 1fr;
    grid-template-areas:"ttl aside" "tags aside" "foot aside" "pick aside" ". aside"}
  .bm2-setup[hidden]{display:none}
  .bm2-ttl{grid-area:ttl}
  .bm2-aside{grid-area:aside}
  .bm2-tags{grid-area:tags;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px}
  .bm2-setup .bm2-hint{grid-area:foot;justify-self:start;align-self:center;max-width:60%;margin-top:16px;text-align:left}
  .bm2-nhead{grid-area:foot;justify-self:end;margin-top:16px}.bm2-nhead .pl-btns{flex:none}
  .bm2-pick{grid-area:pick}
  .bm2-setup .bm2-lbox{padding:14px 16px;border-width:3px;border-radius:18px;box-shadow:5px 5px 0 var(--ink2)}
  .bm2-setup .bm2-lbox:first-child{margin-top:0}
  .bm2-setup .bm2-go{margin-top:16px}
  .bm2-setup .bm2-king{margin-top:16px}
  .bm2-lbox p{font-size:15px;margin-bottom:10px}
  .bm2-segb button{min-height:46px;font-size:15px}
}
@media (prefers-reduced-motion:reduce){
  .bm2 *,.bm2 *::before,.bm2 *::after{animation:none!important}
  .bm2-call,.bm2-fuse,.bm2-sz{transition:none}
  .bm2-pop.on{opacity:1;transform:none}
  .bm2-n.gone{opacity:0}
  .bm2-flash.on{opacity:0}
}
