/* 결투 오버레이 */
.duel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.duel-overlay.hidden {
    display: none;
}

/* 사전 정보 화면 */
.duel-info-screen {
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 500px;
    width: 90%;
}

.duel-info-screen.hidden {
    display: none;
}

.duel-info-screen h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #E91E63;
    text-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}

.duel-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.duel-sword-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 120px;
}

.duel-sword-card .sword-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
}

.duel-sword-card .sword-stats {
    font-size: 12px;
    color: #aaa;
    line-height: 1.6;
}

.duel-sword-card .sword-color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.duel-vs {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.duel-controls-hint {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-duel-start {
    background: #E91E63;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 10px;
    transition: background 0.2s;
}

.btn-duel-start:hover {
    background: #C2185B;
}

.btn-duel-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-duel-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Canvas 전투 화면 */
.duel-canvas {
    width: 100%;
    max-width: 800px;
    max-height: 450px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #000;
    image-rendering: pixelated;
}

.duel-canvas.hidden {
    display: none;
}

/* 결과 화면 */
.duel-result-screen {
    text-align: center;
    color: #fff;
    padding: 30px;
}

.duel-result-screen.hidden {
    display: none;
}

.duel-result-screen h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.duel-result-screen h2.win {
    color: #4CAF50;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
}

.duel-result-screen h2.lose {
    color: #f44336;
    text-shadow: 0 0 20px rgba(244, 67, 54, 0.6);
}

.duel-result-screen p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 10px;
}

.duel-result-screen .reward-text {
    font-size: 24px;
    color: #FFD700;
    font-weight: bold;
    margin: 16px 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.btn-duel-return {
    background: #455A64;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 16px;
    transition: background 0.2s;
}

.btn-duel-return:hover {
    background: #546E7A;
}
