/* 공통 웹게임 스타일 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    background-color: #222;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    overflow: hidden;
}

.ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ui-text {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    pointer-events: auto;
}

.btn {
    padding: 10px 20px;
    margin: 10px;
    font-size: 18px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #0056b3;
}

/* 랭킹 모달 */
#ranking-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 30, 30, 0.95);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #444;
    display: none;
    pointer-events: auto;
    width: 80%;
    max-width: 300px;
    text-align: center;
}

#ranking-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    text-align: left;
}

#ranking-list li {
    padding: 5px;
    border-bottom: 1px solid #555;
    display: flex;
    justify-content: space-between;
}

/* 랭어 전환 버튼 */
#lang-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 14px;
    pointer-events: auto;
}
