/* =============================================
   폭탄 돌리기 스타일 (bp- prefix)
   ============================================= */

html { background: #000; }

.bp-body {
    overflow: hidden;
    height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #f0f0f0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.bp-game {
    width: 100%;
    height: 100dvh;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #0f0f1a;
}

/* Top Bar */
.bp-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    z-index: 10;
    flex-shrink: 0;
}
.bp-back {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}
.bp-back:hover { color: #fff; }
.bp-info-badge {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.2);
}

/* Content */
.bp-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    overflow-y: auto;
}

/* ===== Setup Screen ===== */
.bp-setup-wrap {
    width: 100%;
    max-width: 360px;
    text-align: center;
}
.bp-setup-emoji { font-size: 64px; margin-bottom: 12px; }
.bp-setup-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.bp-setup-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Name input */
.bp-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.bp-name-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #2d2d44;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.bp-name-input:focus { border-color: #ef4444; }
.bp-name-input::placeholder { color: rgba(255, 255, 255, 0.3); }

.bp-btn-add {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background: #ef4444;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.1s;
}
.bp-btn-add:active { transform: scale(0.95); }

/* Player list */
.bp-player-list {
    width: 100%;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.bp-player-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    font-size: 14px;
    color: #fff;
}
.bp-player-remove {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.bp-player-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.bp-btn-start {
    padding: 16px 48px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s;
}
.bp-btn-start:active { transform: scale(0.95); }
.bp-btn-start:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== Playing Screen ===== */
.bp-play-wrap {
    width: 100%;
    max-width: 360px;
    text-align: center;
}
.bp-holder-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}
.bp-holder-name {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
}

/* Bomb */
.bp-bomb-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bp-bomb {
    font-size: 100px;
    line-height: 1;
    animation: bp-pulse 1s ease-in-out infinite;
}

@keyframes bp-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Speed variations */
.bp-bomb.bp-speed-1 { animation-duration: 1s; }
.bp-bomb.bp-speed-2 { animation-duration: 0.7s; }
.bp-bomb.bp-speed-3 { animation-duration: 0.45s; }
.bp-bomb.bp-speed-4 { animation-duration: 0.25s; }
.bp-bomb.bp-speed-5 { animation-duration: 0.12s; }

/* Shake effect */
.bp-bomb.bp-shaking {
    animation: bp-shake 0.08s linear infinite;
}
@keyframes bp-shake {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-3px, 2px); }
    50%  { transform: translate(3px, -2px); }
    75%  { transform: translate(-2px, -3px); }
    100% { transform: translate(2px, 3px); }
}

.bp-fuse-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.bp-btn-pass {
    padding: 18px 56px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.1s;
    letter-spacing: 2px;
}
.bp-btn-pass:active { transform: scale(0.95); }

/* Player ring */
.bp-ring {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}
.bp-ring-player {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
}
.bp-ring-player.bp-ring-active {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fff;
}

/* ===== Explosion Screen — 공통 game-result.css 사용 ===== */

/* Toast */
.bp-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    white-space: nowrap;
}
.bp-toast-show { opacity: 1; pointer-events: auto; }
