/* DUO BOMB ARENA (2026-11-16) — 시작 화면은 px-lobby.css */
:root { --bm-ink: #14101a; --bm-panel: #241d2e; --bm-panel2: #30283c; --bm-text: #f3ece2; --bm-muted: #a99fb5; --bm-gold: #ffcc33; --bm-red: #ff5a5a; --bm-font: Galmuri11, "Malgun Gothic", system-ui, sans-serif; }
.bm-body { color: var(--bm-text); font-family: "Gowun Dodum", "Malgun Gothic", system-ui, sans-serif; min-height: 100vh; }
.bm-body.bm-in-game .topbar { display: none; }
.bm-body.bm-in-game { overscroll-behavior: none; }
#bmApp { padding: 16px 16px 40px; box-sizing: border-box; }
.bm-body.bm-in-game #bmApp { padding: 6px 8px 8px; }
.bm-scr { display: none; } .bm-scr.active { display: block; }
.hidden, .bm-body [hidden] { display: none !important; }
.bm-muted { color: var(--bm-muted); font-size: 13px; }
.bm-err { color: #ff8d7a; text-align: center; min-height: 1.3em; font-family: var(--bm-font); font-size: 14px; margin: 10px 0 0; }
.bm-btn { font-family: var(--bm-font); font-weight: 700; font-size: 14px; padding: 9px 14px; background: var(--bm-panel2); color: var(--bm-text); border: 0; box-shadow: 0 0 0 2px var(--bm-ink), 0 3px 0 2px rgba(0,0,0,.45); cursor: pointer; touch-action: manipulation; }
.bm-btn:hover:not(:disabled) { filter: brightness(1.12); }
.bm-btn:disabled { opacity: .45; cursor: not-allowed; }
.bm-btn:focus-visible { outline: 3px solid var(--bm-gold); }
.bm-btn.gold { background: var(--bm-gold); color: var(--bm-ink); }
.bm-btn.sm { font-size: 12px; padding: 6px 10px; } .bm-btn.lg { font-size: 17px; padding: 13px 24px; }
.bm-icon { width: 36px; height: 36px; font-size: 16px; background: var(--bm-panel2); color: var(--bm-text); border: 0; box-shadow: 0 0 0 2px var(--bm-ink); cursor: pointer; }
.bm-panel { background: var(--bm-panel); padding: 12px 14px; box-shadow: 0 0 0 3px var(--bm-ink), 0 6px 0 3px rgba(0,0,0,.3); }
.bm-panel h3 { font-family: var(--bm-font); font-size: 15px; margin: 0 0 10px; color: var(--bm-gold); display: flex; justify-content: space-between; gap: 8px; }
.bm-seg { display: inline-flex; gap: 6px; }
.bm-seg button { font-family: var(--bm-font); font-size: 13px; font-weight: 700; padding: 6px 11px; background: var(--bm-panel2); color: var(--bm-text); border: 0; box-shadow: 0 0 0 2px var(--bm-ink); cursor: pointer; }
.bm-seg button.on { background: var(--bm-gold); color: var(--bm-ink); }
.bm-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; box-shadow: 0 0 0 2px var(--bm-ink); background: #555; }
/* 대기실 */
.bm-lobby { max-width: 940px; margin: 0 auto; }
.bm-lobby-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.bm-lobby-head h2 { font-family: var(--bm-font); font-size: 26px; margin: 0; }
.bm-code-card { display: flex; align-items: center; gap: 10px; background: var(--bm-panel); padding: 10px 14px; box-shadow: 0 0 0 3px var(--bm-ink); flex-wrap: wrap; }
.bm-code { font-family: var(--bm-font); font-size: 24px; font-weight: 700; letter-spacing: 4px; background: none; border: 0; cursor: pointer; color: var(--bm-gold); min-width: 120px; }
.bm-lobby-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bm-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.bm-mode { text-align: left; padding: 10px 12px; background: var(--bm-panel2); border: 0; box-shadow: 0 0 0 2px var(--bm-ink); cursor: pointer; color: var(--bm-text); display: flex; flex-direction: column; gap: 4px; }
.bm-mode b { font-family: var(--bm-font); font-size: 15px; } .bm-mode span { font-size: 12px; color: var(--bm-muted); }
.bm-mode.on { box-shadow: 0 0 0 3px var(--bm-gold), 0 0 0 5px var(--bm-ink); background: #3d3424; }
.bm-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.bm-opt select { font-family: var(--bm-font); font-size: 14px; padding: 5px 8px; border: 0; box-shadow: 0 0 0 2px var(--bm-ink); background: var(--bm-panel2); color: var(--bm-text); }
.bm-roster { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bm-roster li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; background: var(--bm-panel2); box-shadow: 0 0 0 2px var(--bm-ink); }
.bm-roster li.dc { opacity: .5; } .bm-roster li.empty { opacity: .45; box-shadow: none; outline: 2px dashed rgba(255,255,255,.18); outline-offset: -2px; }
.bm-roster .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.bm-roster .nm em, .bm-roster .nm small { font-style: normal; font-weight: 400; color: var(--bm-muted); font-size: 12px; }
.bm-mini { border: 0; background: rgba(255,255,255,.08); color: var(--bm-text); cursor: pointer; font-size: 12px; padding: 2px 7px; }
.bm-team h4 { margin: 4px 0 6px; font-family: var(--bm-font); font-size: 13px; } .bm-team.t0 h4 { color: #ff7a7a; } .bm-team.t1 h4 { color: #7ab4ff; }
.bm-bot-row { display: flex; gap: 8px; flex-wrap: wrap; }
.bm-lobby-actions { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
/* 게임 */
.bm-game { max-width: 1400px; margin: 0 auto; }
.bm-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-family: var(--bm-font); }
.bm-chip { font-size: 13px; padding: 5px 10px; background: var(--bm-ink); box-shadow: 0 0 0 2px rgba(255,255,255,.12); white-space: nowrap; }
.bm-chip.spec { color: #5ec8b0; }
.bm-time { font-size: 24px; font-weight: 700; padding: 2px 14px; background: var(--bm-ink); box-shadow: 0 0 0 2px var(--bm-gold); min-width: 80px; text-align: center; font-variant-numeric: tabular-nums; }
.bm-time.sd { color: #fff; background: #a8231a; box-shadow: 0 0 0 2px #ff5a5a; animation: bmSd 1s steps(2) infinite; }
@keyframes bmSd { 50% { filter: brightness(1.3); } }
.bm-top-r { margin-left: auto; display: flex; gap: 6px; }
.bm-cols { display: grid; grid-template-columns: 210px minmax(0, 1fr) 220px; gap: 10px; align-items: start; }
.bm-center { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.bm-arena-wrap { position: relative; width: 100%; display: flex; justify-content: center; }
#arena { display: block; image-rendering: pixelated; image-rendering: crisp-edges; box-shadow: 0 0 0 4px var(--bm-ink), 0 0 0 8px #3a3046, 0 14px 30px rgba(0,0,0,.5); touch-action: none; }
.bm-pause { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(12,9,16,.45); font-family: var(--bm-font); font-size: 18px; pointer-events: none; }
.bm-pause span { background: var(--bm-ink); padding: 8px 16px; box-shadow: 0 0 0 2px var(--bm-gold); }
.bm-plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.bm-plist li { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: var(--bm-panel); box-shadow: 0 0 0 2px var(--bm-ink); font-size: 13px; }
.bm-plist li.me { box-shadow: 0 0 0 2px var(--bm-gold); }
.bm-plist li.dead { opacity: .4; text-decoration: line-through; }
.bm-plist .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.bm-plist .k { font-family: var(--bm-font); color: #ff9a7a; min-width: 16px; text-align: right; }
.bm-plist .k::before { content: "💥"; font-size: 10px; margin-right: 2px; }
.bm-plist .tm { font-size: 10px; padding: 1px 4px; } .bm-plist .tm.t0 { background: #8f2f2f; } .bm-plist .tm.t1 { background: #2f4f8f; }
.bm-plist .ag { display: flex; gap: 1px; } .bm-plist .ag img { width: 16px; height: 16px; image-rendering: pixelated; }
.bm-right { background: var(--bm-panel); padding: 10px; box-shadow: 0 0 0 2px var(--bm-ink); }
.bm-right h3 { font-family: var(--bm-font); font-size: 13px; margin: 0 0 6px; color: var(--bm-gold); }
.bm-feed { list-style: none; margin: 0; padding: 0; font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; min-height: 120px; }
.bm-feed li { padding: 3px 5px; background: rgba(255,255,255,.04); animation: bmIn .3s ease; }
.bm-feed li.kill { background: rgba(255,90,90,.12); } .bm-feed li.leg { background: rgba(255,204,51,.15); }
@keyframes bmIn { from { opacity: 0; transform: translateX(10px); } }
.bm-keys { font-size: 11px; color: var(--bm-muted); margin: 10px 0 0; line-height: 1.6; }
.bm-bottom { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.bm-me { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.bm-me .st { display: inline-flex; align-items: center; gap: 3px; font-family: var(--bm-font); font-size: 13px; padding: 3px 7px 3px 3px; background: var(--bm-panel); box-shadow: 0 0 0 2px var(--bm-ink); }
.bm-me .st img { width: 24px; height: 24px; image-rendering: pixelated; }
.bm-me .st.off { opacity: .3; }
.bm-augs { display: flex; gap: 5px; }
.bm-aug { position: relative; width: 50px; height: 50px; padding: 0; border: 0; background: none; box-shadow: 0 0 0 2px var(--bm-ink); cursor: default; }
.bm-aug img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.bm-aug.act { cursor: pointer; box-shadow: 0 0 0 2px var(--bm-gold); }
.bm-aug b { position: absolute; left: 2px; top: 1px; font-family: var(--bm-font); font-size: 11px; text-shadow: 0 1px 0 #000; }
.bm-aug i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.6); font-style: normal; font-family: var(--bm-font); font-size: 16px; font-weight: 700; }
.bm-aug.armed { box-shadow: 0 0 0 3px #ff7ad9, 0 0 12px #ff7ad9; }
/* 모바일 조작 */
.bm-touch { display: none; }
.bm-joy { width: 132px; height: 132px; border-radius: 50%; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 3px rgba(255,255,255,.18); position: relative; touch-action: none; }
.bm-joy-knob { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 3px var(--bm-ink); pointer-events: none; }
.bm-tbtns { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.bm-bombbtn { width: 92px; height: 92px; border-radius: 50%; border: 0; font-size: 40px; background: radial-gradient(circle at 35% 30%, #ff8a6a, #e8463c 60%, #a8231a); box-shadow: 0 0 0 4px var(--bm-ink), 0 6px 0 4px rgba(0,0,0,.4); touch-action: none; }
.bm-bombbtn.nope { animation: bmNope .3s; }
@keyframes bmNope { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.bm-mbtn { font-family: var(--bm-font); font-weight: 700; font-size: 13px; min-width: 56px; height: 52px; border: 0; border-radius: 12px; background: var(--bm-panel2); color: var(--bm-text); box-shadow: 0 0 0 3px var(--bm-ink); touch-action: none; position: relative; padding: 0 6px; }
.bm-mbtn.sk { width: 52px; padding: 0; min-width: 0; overflow: hidden; }
.bm-mbtn.sk img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.bm-mbtn.cd { opacity: .55; }
.bm-mbtn i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); font-style: normal; font-size: 15px; }
.bm-mskills { display: flex; gap: 6px; }
/* 모달 */
.bm-modal { position: fixed; inset: 0; z-index: 80; background: rgba(12,9,16,.6); display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.bm-pick { width: min(100%, 820px); background: #1d1726; box-shadow: 0 0 0 4px var(--bm-ink), 0 0 0 7px var(--bm-gold); padding: 18px; max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; }
.bm-pick-title { font-family: var(--bm-font); font-size: 24px; font-weight: 700; color: var(--bm-gold); text-align: center; }
.bm-pick-sub { text-align: center; font-size: 14px; color: var(--bm-muted); margin-top: 4px; }
.bm-pick-bar { height: 6px; background: rgba(255,255,255,.1); margin: 12px auto 0; max-width: 420px; } .bm-pick-bar i { display: block; height: 100%; background: var(--bm-gold); transition: width .3s linear; }
.bm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.bm-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px 14px; background: #f3ece2; color: var(--bm-ink); border: 0; cursor: pointer; box-shadow: 0 0 0 3px var(--rc), 0 0 0 6px var(--bm-ink), 0 8px 0 6px rgba(0,0,0,.4); animation: bmDeal .45s cubic-bezier(.2,.9,.3,1.2) both; transition: transform .12s; text-align: center; }
.bm-card:hover, .bm-card:focus-visible { transform: translateY(-6px); outline: none; }
.bm-card img { width: 96px; height: 96px; image-rendering: pixelated; box-shadow: 0 0 0 3px var(--bm-ink); }
.bm-card .rar { position: absolute; top: 8px; left: 8px; font-family: var(--bm-font); font-size: 11px; padding: 2px 7px; color: #fff; background: var(--rc); }
.bm-card b { font-family: var(--bm-font); font-size: 17px; } .bm-card small { font-family: var(--bm-font); font-size: 11px; color: #6b5f55; } .bm-card p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.bm-card.r-epic { box-shadow: 0 0 0 3px var(--rc), 0 0 0 6px var(--bm-ink), 0 0 24px rgba(166,107,255,.55); } .bm-card.r-legend { box-shadow: 0 0 0 3px var(--rc), 0 0 0 6px var(--bm-ink), 0 0 30px rgba(242,176,42,.7); }
@keyframes bmDeal { from { opacity: 0; transform: translateY(40px) rotate(-4deg) scale(.9); } }
.r-common { --rc: #8b929c; } .r-rare { --rc: #4d8fe8; } .r-epic { --rc: #a66bff; } .r-legend { --rc: #f2b02a; }
.bm-pick-foot { display: flex; gap: 10px; align-items: center; justify-content: center; }
.bm-result { width: min(100%, 780px); background: #1d1726; box-shadow: 0 0 0 4px var(--bm-ink), 0 0 0 8px var(--bm-gold); padding: 20px; max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; }
.bm-result-title { font-family: var(--bm-font); font-size: 30px; font-weight: 700; text-align: center; color: var(--bm-gold); }
.bm-res-wrap { overflow-x: auto; margin: 14px 0; }
.bm-res { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bm-res th, .bm-res td { padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: center; white-space: nowrap; }
.bm-res th { font-family: var(--bm-font); font-size: 12px; color: var(--bm-muted); }
.bm-res td.nm { text-align: left; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.bm-res tr.me td { background: rgba(255,204,51,.08); } .bm-res tr.win td { color: var(--bm-gold); }
.bm-res .ags img { width: 22px; height: 22px; image-rendering: pixelated; margin: 0 1px; }
.bm-result-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.bm-dialog { background: #1d1726; padding: 18px; box-shadow: 0 0 0 4px var(--bm-ink); width: min(100%, 860px); max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; }
.bm-dialog h3 { font-family: var(--bm-font); margin: 0 0 12px; color: var(--bm-gold); }
.bm-dialog-btns { display: flex; justify-content: center; margin-top: 14px; }
.bm-help-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.bm-help-tabs button { font-family: var(--bm-font); padding: 6px 12px; border: 0; background: var(--bm-panel2); color: var(--bm-text); box-shadow: 0 0 0 2px var(--bm-ink); cursor: pointer; }
.bm-help-tabs button.on { background: var(--bm-gold); color: var(--bm-ink); }
.bm-help-body { font-size: 14px; line-height: 1.65; } .bm-help-body h4 { font-family: var(--bm-font); margin: 14px 0 6px; color: var(--bm-gold); } .bm-help-body ul { padding-left: 18px; margin: 0; }
.bm-dex { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.bm-dex-i { display: flex; gap: 8px; align-items: flex-start; background: var(--bm-panel2); padding: 7px; box-shadow: 0 0 0 2px var(--bm-ink); }
.bm-dex-i img { width: 40px; height: 40px; image-rendering: pixelated; flex: none; }
.bm-dex-i p { margin: 2px 0 0; font-size: 12.5px; color: #d9cfc0; } .bm-dex-i small { color: var(--bm-muted); font-size: 11px; }
.bm-toasts { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; width: min(92vw, 440px); }
.bm-toast { background: var(--bm-ink); font-family: var(--bm-font); font-size: 14px; padding: 8px 14px; box-shadow: 0 0 0 2px var(--bm-gold); transition: opacity .3s, transform .3s; text-align: center; }
.bm-toast.out { opacity: 0; transform: translateY(-8px); }
.bm-banner { position: fixed; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 90; pointer-events: none; font-family: var(--bm-font); text-align: center; background: var(--bm-ink); padding: 12px 30px; box-shadow: 0 0 0 3px var(--bm-gold), 0 10px 30px rgba(0,0,0,.5); max-width: calc(100vw - 48px); box-sizing: border-box; }
.bm-banner b { display: block; font-size: clamp(24px, 7vw, 40px); color: var(--bm-gold); } .bm-banner span { font-size: 14px; }
.bm-banner.warn, .bm-banner.dead { box-shadow: 0 0 0 3px var(--bm-red), 0 10px 30px rgba(0,0,0,.5); } .bm-banner.warn b, .bm-banner.dead b { color: #ff8a7a; }
.bm-banner.show { animation: bmBanner 1.5s ease forwards; }
@keyframes bmBanner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } 25% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 1180px) { .bm-cols { grid-template-columns: 180px minmax(0, 1fr); } .bm-right { display: none; } }
@media (max-width: 860px) {
  .bm-lobby-grid { grid-template-columns: 1fr; }
  .bm-cols { grid-template-columns: minmax(0, 1fr); }
  .bm-left { order: 2; } .bm-plist { flex-direction: row; flex-wrap: wrap; } .bm-plist li { flex: 1 1 140px; }
  .bm-touch { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; padding: 8px 6px 4px; position: sticky; bottom: 0; }
  .bm-cards { grid-template-columns: 1fr; gap: 10px; } .bm-card { flex-direction: row; flex-wrap: wrap; text-align: left; justify-content: flex-start; } .bm-card img { width: 64px; height: 64px; } .bm-card p { flex-basis: 100%; }
  .bm-modes { grid-template-columns: 1fr; }
  .bm-chip#hudTheme { display: none; }
  .bm-aug { width: 40px; height: 40px; }
}
@media (pointer: coarse) { .bm-touch { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; padding: 8px 6px 4px; } .bm-keys { display: none; } }
@media (prefers-reduced-motion: reduce) { .bm-card, .bm-feed li { animation: none !important; } }
