/* 기본 레이아웃 및 배경 디자인 */
body { 
    font-family: sans-serif; 
    background: #f4f6f9; 
    padding: 20px; 
    text-align: center; 
}

.container { 
    max-width: 600px; 
    margin: 0 auto; 
    background: white; 
    padding: 20px; 
    border-radius: 12px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

/* 버전 선택 및 체크박스 제어판 영역 */
.version-area { 
    background: #f8f9fa; 
    border: 2px solid #a0c4ff; 
    border-radius: 8px; 
    padding: 15px; 
    text-align: left; 
    margin-bottom: 15px; 
}

select { 
    width: 100%; 
    padding: 10px; 
    font-size: 15px; 
    font-weight: bold; 
    border-radius: 6px; 
    border: 1px solid #ccc; 
    margin-bottom: 10px; 
}

.option-toggle-zone { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: #fff; 
    padding: 8px 12px; 
    border-radius: 6px; 
    border: 1px dashed #ccc; 
    margin-top: 8px; 
}

.dlc-checkbox-group { 
    display: flex; 
    gap: 15px; 
    font-weight: bold; 
    font-size: 14px; 
}

.dlc-checkbox-group label, .rarity-toggle label { 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    font-weight: bold; 
}

.rarity-toggle label { 
    color: #e63946; 
    font-size: 14px; 
}

input[type='checkbox'] { 
    width: 16px; 
    height: 16px; 
    cursor: pointer; 
}

#btn-confirm-version { 
    width: 100%; 
    margin-top: 12px; 
    background: #4cc9f0; 
    color: white; 
    padding: 10px; 
    border: none; 
    border-radius: 6px; 
    font-weight: bold; 
    cursor: pointer; 
}

#btn-confirm-version:disabled { 
    background: #e0e0e0; 
    color: #999; 
    cursor: not-allowed; 
}

/* 상단 1~3단계 프로세스 바 */
.step-container { 
    display: flex; 
    justify-content: space-between; 
    margin: 20px 0; 
    gap: 5px; 
}

.step-box { 
    flex: 1; 
    padding: 10px; 
    background: #eee; 
    border-radius: 8px; 
    font-size: 12px; 
}

.step-box.active { 
    background: #a0c4ff; 
    font-weight: bold; 
}

/* 🎡 [업데이트] 가로 80% 반응형 회전판 영역 및 밀착형 화살표 */
.wheel-area { 
    position: relative; 
    display: block; 
    margin: 25px auto 15px auto; 
    width: 80%;           /* 화면 가로폭 기준 80% 크기 구현 */
    max-width: 450px;     /* PC 화면 등에서 너무 과하게 커지지 않는 방어선 */
    aspect-ratio: 1 / 1;  /* 깨지지 않는 정원 비율 유지 */
}

.wheel-pointer { 
    position: absolute; 
    top: -15px;           /* 룰렛 테두리 경계선에 완벽 밀착 */
    left: 50%; 
    transform: translateX(-50%); 
    font-size: 34px;      /* 커진 판에 대응하여 화살표 시인성 업그레이드 */
    color: #ff4757; 
    line-height: 1;
    z-index: 10; 
    pointer-events: none; /* 클릭 이벤트를 방해하지 않음 */
    animation: pointerBounce 0.5s infinite alternate;
}

@keyframes pointerBounce {
    from { transform: translateX(-50%) translateY(0); }
    to { transform: translateX(-50%) translateY(-3px); }
}

#wheelCanvas { 
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
}

/* 📝 실시간 가리키는 텍스트 표시 바 (룰렛판 하단형) */
.current-pointing-word {
    font-size: 35px;
    font-weight: bold;
    color: #2b2d42;
    min-height: 34px;
    margin: 15px auto;
    text-align: center;
}

.current-pointing-word span {
    background: #e3f2fd;
    padding: 4px 16px;
    border-radius: 15px;
    border: 1px solid #b3e5fc;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 🔍 인게임 글자 크기 미세 조절 제어 패널 */
.font-control-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 5px auto 15px auto;
    background: #ffffff;
    padding: 6px 15px;
    border-radius: 20px;
    max-width: fit-content;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}

.font-ctrl-btn {
    width: 28px;
    height: 28px;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: bold;
    border-radius: 50% !important;
    background: #f1f3f5 !important;
    color: #495057;
    border: 1px solid #dee2e6 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.font-size-indicator {
    font-size: 12px;
    font-weight: bold;
    color: #495057;
    min-width: 75px;
}

/* 최종 결과 출력 상자 */
.final-box { 
    margin-top: 20px; 
    padding: 15px; 
    background: #f9f1f0; 
    border-radius: 8px; 
    min-height: 60px; 
}

#final-name { 
    font-size: 22px; 
    font-weight: bold; 
    color: #2b2d42; 
}

#final-info { 
    font-size: 14px; 
    color: #6c757d; 
    margin-top: 5px; 
}

/* 하단 슬롯 구동 버튼 그룹 */
.btn-group { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
    margin-top: 20px; 
}

button { 
    padding: 12px; 
    font-weight: bold; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
    background: #e3f2fd; 
}

button:disabled { 
    background: #e0e0e0; 
    cursor: not-allowed; 
    color: #999; 
}

/* 🛠️ [새로운 추가] 실시간 가중치/항목 편집기 제어용 UI 패널 스타일 */
.custom-editor-area {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    margin-top: 25px;
    text-align: left;
}

.editor-title {
    font-size: 14px;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-item-row {
    display: flex;
    gap: 5px;
    margin-bottom: 12px;
}

.add-item-row input[type="text"] {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 13px;
}

.add-item-row button {
    background: #4dabf7;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
}

.item-list-container {
    max-height: 160px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 5px;
}

.editor-item-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    border-bottom: 1px solid #f1f3f5;
    font-size: 13px;
}

.editor-item-chip:last-child { 
    border-bottom: none; 
}

.chip-left { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.weight-input {
    width: 45px;
    padding: 2px 4px;
    font-size: 12px;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.delete-chip-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 3px 7px;
    font-size: 11px;
    cursor: pointer;
}
        .debug-control-zone {
            margin: 25px 0;
            text-align: center;
        }
        .toggle-btn {
            background-color: #3b82f6;
            color: white;
            border: none;
            padding: 10px 18px;
            font-size: 13px;
            font-weight: bold;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.2s, transform 0.1s;
        }
        .toggle-btn:hover { background-color: #2563eb; }
        .toggle-btn:active { transform: scale(0.98); }

        .site-footer {
            background-color: #f8fafc;
            border-top: 1px solid #e2e8f0;
            padding: 20px 15px;
            margin-top: 60px;
            font-size: 11px;
            color: #64748b;
            line-height: 1.6;
            font-family: sans-serif;
            clear: both;
        }
        .footer-header {
            text-align: center;
        }
        .footer-toggle-btn {
            background-color: #e2e8f0;
            color: #475569;
            border: 1px solid #cbd5e1;
            padding: 6px 14px;
            font-size: 11px;
            font-weight: bold;
            border-radius: 4px;
            cursor: pointer;
            transition: background 0.2s;
            margin-top: 5px;
        }
        .footer-toggle-btn:hover { background-color: #cbd5e1; }
        
        .footer-content {
            max-width: 1200px;
            margin: 20px auto 0 auto;
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
            border-top: 1px dashed #cbd5e1;
            padding-top: 20px;
        }
        .footer-section {
            flex: 1;
            min-width: 280px;
        }
        .site-footer h3 {
            font-size: 12px;
            color: #475569;
            margin-top: 0;
            margin-bottom: 8px;
            border-left: 3px solid #cbd5e1;
            padding-left: 6px;
        }
        .site-footer p {
            margin: 0 0 15px 0;
            text-align: justify;
        }
        .site-footer strong {
            color: #334155;
        }
        .site-footer a {
            color: #3b82f6;
            text-decoration: none;
            font-weight: bold;
        }
        .site-footer a:hover {
            text-decoration: underline;
        }