.rps-container {
    text-align: center;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 다크모드 컨테이너 */
body.dark-mode .rps-container {
    background: #1b1b1b;
    color: #eee;
}

.rps-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
}

body.dark-mode .rps-title {
    color: #f5f5f5;
}

.rps-title-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.rps-battle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 25px 0;
}

.rps-side {
    text-align: center;
}

.rps-hand {
    width: 100px;
    height: 100px;
}

.vs-text {
    font-size: 26px;
    font-weight: 700;
    color: #e74c3c;
}

body.dark-mode .vs-text {
    color: #ff6b6b;
}

/* 입력 영역 */
.rps-input-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
}

/* 입력창 */
.rps-input input {
    width: 250px;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: right;
    font-weight: 600;
    color: #222;
    outline: none;
    transition: 0.2s;
}

.rps-input input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 4px rgba(74,144,226,0.3);
}

/* 다크모드 입력창 */
body.dark-mode .rps-input input {
    background: #111;
    border-color: #444;
    color: #eee;
}

/* 금액 버튼 영역 */
.rps-preset {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.preset-btn {
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f7f7f7;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.preset-btn:hover {
    background: #e9f1ff;
    border-color: #4a90e2;
}

/* 다크모드 금액버튼 */
body.dark-mode .preset-btn {
    background: #1f1f1f;
    border-color: #555;
    color: #eee;
}
body.dark-mode .preset-btn:hover {
    background: #2a2a2a;
    border-color: #357ac8;
}

/* 선택 버튼 */
.rps-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.rps-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 90px;
    height: 90px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
}

.rps-btn:hover {
    background: #f2f8ff;
    transform: scale(1.05);
}

/* 다크모드 버튼 */
body.dark-mode .rps-btn {
    background: #2a2a2a;
    border-color: #444;
    color: #eee;
}
body.dark-mode .rps-btn:hover {
    background: #333;
    border-color: #357ac8;
}

.rps-choice-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

/* 결과 영역 */
.rps-result {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.5s ease, transform 0.5s ease;
}

/* 결과 색상 + 애니메이션 */
.rps-result.win {
    color: #27ae60;
    animation: result-pop 0.5s ease;
}
.rps-result.lose {
    color: #e74c3c;
    animation: result-pop 0.5s ease;
}
.rps-result.draw {
    color: #888;
    animation: result-pop 0.5s ease;
}

@keyframes result-pop {
    0% { transform: scale(0.9); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* 다크모드 색상 조정 */
body.dark-mode .rps-result.win { color: #2ecc71; }
body.dark-mode .rps-result.lose { color: #ff5c5c; }
body.dark-mode .rps-result.draw { color: #aaa; }

/* 전적 기록 테이블 */
.rps-history {
    margin-top: 40px;
    padding: 15px;
    border-top: 1px solid #ddd;
    font-family: 'Noto Sans KR', sans-serif;
}

body.dark-mode .rps-history {
    border-top: 1px solid #333;
}

.rps-history h4 {
    text-align: center;
    margin-bottom: 12px;
    font-size: 17px;
    color: #222;
}

body.dark-mode .rps-history h4 {
    color: #f2f2f2;
}

.rps-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.rps-history-table th, .rps-history-table td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.rps-history-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

body.dark-mode .rps-history-table th {
    background-color: #222;
    color: #ddd;
}

body.dark-mode .rps-history-table td {
    color: #ccc;
    border-bottom: 1px sol
