/* 고쳐 쓰기 폭탄 해체 (/grammar/participle/bomb.jsp, 2026-10-19). 틀(.pa-*)은 css/ps2-participle-arcade.css, 여기는 색 · 수리 모듈 · 로비 그림(.pbo-*) */
#main .gi .pa--bomb { --pa-bg1: #111318; --pa-bg2: #3b1010; --pa-glow: #f87171; --pa-halo: rgba(239, 68, 68, .3); --pa-win: #14532d; --pa-accent: #dc2626; }
#main .gi .pa--bomb .pbo-cv { cursor: default; background: #0d0f13; }
#main .gi .pa--bomb .pa-side { display: none; }
#main .gi .pa--bomb .pa-ctl { display: none; }

/* 수리 모듈: 끊은 자리에 끼울 부품(고칠 말) 셋. 캔버스 아래쪽(레버 자리)을 덮는다 */
#main .gi .pa--bomb .pbo-fix { position: absolute; z-index: 4; left: 50%; bottom: 8px; transform: translateX(-50%); width: min(640px, calc(100% - 16px)); padding: 9px 10px 10px; border-radius: 16px;
    background: linear-gradient(180deg, #2d333c 0%, #171a20 100%); box-shadow: 0 0 0 1.5px rgba(250, 204, 21, .6), 0 0 26px rgba(250, 204, 21, .18), 0 18px 40px rgba(0, 0, 0, .6);
    color: #f8fafc; text-align: center; animation: pbo-in .22s ease-out; }
#main .gi .pa--bomb .pbo-fix[hidden] { display: none; }
#main .gi .pa--bomb .pbo-fix__h { margin: 0 0 7px; font-size: 13px; font-weight: 900; line-height: 1.3; color: #fde68a; letter-spacing: .01em; }
#main .gi .pa--bomb .pbo-fix__h i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 8px #f59e0b; vertical-align: 1px;
    animation: pbo-blink .8s steps(1) infinite; }
#main .gi .pa--bomb .pbo-fix__row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
#main .gi .pa--bomb .pbo-fix__b { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 50px; padding: 6px 10px; border: 0; border-radius: 12px; cursor: pointer;
    font: inherit; font-weight: 800; font-size: 16px; line-height: 1.25; color: #0f172a; background: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 100%);
    box-shadow: inset 0 -3px 0 rgba(15, 23, 42, .28), 0 4px 10px rgba(0, 0, 0, .4); transition: transform .1s, box-shadow .1s; touch-action: manipulation; overflow-wrap: anywhere; }
#main .gi .pa--bomb .pbo-fix__b:hover, #main .gi .pa--bomb .pbo-fix__b:focus-visible { transform: translateY(-2px); outline: none;
    box-shadow: inset 0 -3px 0 rgba(15, 23, 42, .28), 0 0 0 2.5px #facc15, 0 8px 16px rgba(0, 0, 0, .45); }
#main .gi .pa--bomb .pbo-fix__b:active { transform: translateY(1px); }
#main .gi .pa--bomb .pbo-fix__b small { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 900; color: #fde68a; background: #1f2937; }
@keyframes pbo-in { from { opacity: 0; transform: translate(-50%, 10px) scale(.97); } }
@keyframes pbo-blink { 50% { opacity: .25; } }

/* 로비 그림: 해체 장치의 단자 넷 — 가위가 fixing 의 빨간 선을 끊고 fixed 가 끼워지면 숫자판이 초록으로 바뀐다 */
#main .gi .pa--bomb .pa-hero__art { height: 250px; background: radial-gradient(90% 80% at 50% 40%, #2a1212 0%, #0b0c10 75%); box-shadow: inset 0 0 0 1.5px rgba(248, 113, 113, .3); }
#main .gi .pa--bomb .pbo-hero__dev { position: absolute; left: 6%; right: 6%; top: 9%; bottom: 9%; border-radius: 16px; background: linear-gradient(160deg, #2b3038 0%, #12151a 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 16px 30px rgba(0, 0, 0, .55); }
#main .gi .pa--bomb .pbo-hero__dev::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; border-radius: 0 0 16px 16px;
    background: repeating-linear-gradient(135deg, #facc15 0 9px, #111827 9px 18px) top / 100% 6px no-repeat, linear-gradient(180deg, #2a2f37, #15181d); }
#main .gi .pa--bomb .pbo-hero__led { position: absolute; z-index: 2; left: 50%; top: 14%; transform: translateX(-50%); padding: 4px 14px; border-radius: 8px; background: #160606;
    box-shadow: 0 0 0 4px #07080a, 0 0 0 5px rgba(148, 163, 184, .3); font: 700 24px/1.1 "SFMono-Regular", Consolas, Menlo, monospace; white-space: nowrap; }
#main .gi .pa--bomb .pbo-hero__led b { color: #f87171; text-shadow: 0 0 12px #ef4444; animation: pbo-h-led 4.4s steps(1) infinite; }
#main .gi .pa--bomb .pbo-hero__led i { position: absolute; inset: 4px 0; font-style: normal; font-family: inherit; text-align: center; color: #4ade80; text-shadow: 0 0 12px #22c55e; opacity: 0; animation: pbo-h-ok 4.4s steps(1) infinite; }
#main .gi .pa--bomb .pbo-hero__lamp { position: absolute; z-index: 2; left: 12%; top: 17%; width: 11px; height: 11px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 10px #ef4444; animation: pbo-h-lamp 4.4s linear infinite; }
#main .gi .pa--bomb .pbo-hero__fuse { position: absolute; z-index: 1; left: 12%; right: 12%; top: 34%; height: 3px; border-radius: 2px; background: rgba(71, 85, 105, .6); }
#main .gi .pa--bomb .pbo-hero__fuse i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: inherit; background: #c9a978; animation: pbo-h-fuse 4.4s linear infinite; }
#main .gi .pa--bomb .pbo-hero__fuse i::after { content: ""; position: absolute; right: -6px; top: -5px; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle, #fff7ed 0 25%, #fb923c 45%, rgba(239, 68, 68, 0) 70%); }
#main .gi .pa--bomb .pbo-hero__row { position: absolute; z-index: 2; left: 8%; right: 8%; top: 43%; display: flex; justify-content: center; gap: 10px; }
#main .gi .pa--bomb .pbo-hero__t { position: relative; padding: 5px 10px; border-radius: 8px; background: linear-gradient(180deg, #2b3546, #161d29); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .3);
    color: #f1f5f9; font-weight: 800; font-size: 14px; line-height: 1.3; white-space: nowrap; }
#main .gi .pa--bomb .pbo-hero__t::before, #main .gi .pa--bomb .pbo-hero__t::after { content: ""; position: absolute; top: 100%; width: calc(50% - 6px); height: 14px; border: 3px solid var(--c); border-top: 0; }
#main .gi .pa--bomb .pbo-hero__t::before { left: 6px; border-right: 0; border-radius: 0 0 0 12px; transform-origin: 0 0; }
#main .gi .pa--bomb .pbo-hero__t::after { right: 6px; border-left: 0; border-radius: 0 0 12px 0; transform-origin: 100% 0; }
#main .gi .pa--bomb .pbo-hero__t.is-bad::before { animation: pbo-h-cutl 4.4s ease-out infinite; }
#main .gi .pa--bomb .pbo-hero__t.is-bad::after { animation: pbo-h-cutr 4.4s ease-out infinite; }
#main .gi .pa--bomb .pbo-hero__t.is-bad { animation: pbo-h-plate 4.4s steps(1) infinite; }
#main .gi .pa--bomb .pbo-hero__t.is-bad b { font-weight: 800; animation: pbo-h-word 4.4s steps(1) infinite; }
#main .gi .pa--bomb .pbo-hero__t.is-bad em { position: absolute; inset: 5px 0; font-style: normal; text-align: center; color: #dcfce7; opacity: 0; animation: pbo-h-fixed 4.4s steps(1) infinite; }
#main .gi .pa--bomb .pbo-hero__cut { position: absolute; z-index: 3; top: 60%; left: 8%; font-size: 24px; color: #fde68a; text-shadow: 0 0 10px rgba(250, 204, 21, .8); animation: pbo-h-scis 4.4s ease-in-out infinite; }
#main .gi .pa--bomb .pbo-hero__spark { position: absolute; z-index: 3; top: 61%; left: 56%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; opacity: 0;
    background: radial-gradient(circle, #fff 0 15%, #fde68a 35%, rgba(251, 146, 60, 0) 70%); animation: pbo-h-spark 4.4s ease-out infinite; }
#main .gi .pa--bomb .pbo-hero__lever { position: absolute; z-index: 3; right: 10%; bottom: 12%; width: 54px; height: 26px; border-radius: 7px; background: linear-gradient(180deg, #3b424d, #1d2128); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .35); }
#main .gi .pa--bomb .pbo-hero__lever i { position: absolute; right: 9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #bbf7d0, #22c55e 50%, #14532d); box-shadow: 0 0 8px #22c55e; }
@keyframes pbo-h-led { 0% { opacity: 1; } 56% { opacity: 0; } }
@keyframes pbo-h-ok { 0% { opacity: 0; } 56% { opacity: 1; } 96% { opacity: 0; } }
@keyframes pbo-h-lamp { 0%, 52% { background: #ef4444; box-shadow: 0 0 10px #ef4444; opacity: 1; } 10%, 22%, 34%, 46% { opacity: .2; } 56%, 100% { background: #22c55e; box-shadow: 0 0 10px #22c55e; opacity: 1; } }
@keyframes pbo-h-fuse { 0% { width: 100%; } 50% { width: 58%; } 56%, 100% { width: 58%; } }
@keyframes pbo-h-scis { 0% { left: 8%; opacity: 0; transform: rotate(0); } 10% { opacity: 1; } 34% { left: 53%; transform: rotate(0); } 38% { left: 53%; transform: rotate(-22deg); } 42% { left: 53%; transform: rotate(0); opacity: 1; } 52%, 100% { left: 60%; opacity: 0; } }
@keyframes pbo-h-spark { 0%, 37% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; transform: scale(1.3); } 48%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes pbo-h-cutl { 0%, 38% { transform: rotate(0); } 46%, 92% { transform: rotate(28deg); } 100% { transform: rotate(0); } }
@keyframes pbo-h-cutr { 0%, 38% { transform: rotate(0); } 46%, 92% { transform: rotate(-28deg); } 100% { transform: rotate(0); } }
@keyframes pbo-h-plate { 0% { background: linear-gradient(180deg, #2b3546, #161d29); } 38% { background: linear-gradient(180deg, #92400e, #78350f); } 54% { background: linear-gradient(180deg, #166534, #14532d); } 96% { background: linear-gradient(180deg, #2b3546, #161d29); } }
@keyframes pbo-h-word { 0% { opacity: 1; } 54% { opacity: 0; } 96% { opacity: 1; } }
@keyframes pbo-h-fixed { 0% { opacity: 0; } 54% { opacity: 1; } 96% { opacity: 0; } }

@media (max-width: 760px) {
    #main .gi .pa--bomb .pa-hero__art { height: 220px; }
    #main .gi .pa--bomb .pbo-hero__row { gap: 6px; left: 4%; right: 4%; }
    #main .gi .pa--bomb .pbo-hero__t { font-size: 12.5px; padding: 4px 8px; }
    #main .gi .pa--bomb .pbo-hero__led { font-size: 20px; }
    #main .gi .pa--bomb .pbo-fix__b { font-size: 14px; min-height: 52px; padding: 5px 6px; gap: 5px; }
    #main .gi .pa--bomb .pbo-fix__b small { width: 19px; height: 19px; font-size: 11px; }
    #main .gi .pa--bomb .pbo-fix__h { font-size: 12px; margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    #main .gi .pa--bomb .pbo-fix, #main .gi .pa--bomb .pbo-fix__h i { animation: none; }
}
