html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
    background: #f0f0f0;
}
#square, #pika1, #pika2 {
    box-shadow: 8px 16px 32px rgba(0,0,0,0.4);
    border-radius: 10px;
    /* 3D 입체감 */
    transform: perspective(300px) rotateX(20deg) rotateY(20deg);
    transition: transform 0.2s;
}

#gameArea {
    width: 400px;
    height: 400px;
    max-width: 420px;
    height: 100vw;
    max-height: 420px;
    background: #fff;
    border: 2px solid #333;
    margin: 50px auto 0 auto !important;
    position: relative;
    touch-action: none;
    box-sizing: border-box;
}
#square {
    width: 40px;
    height: 40px;
    position: absolute;
    left: 0;
    top: 0;
    background-image: url('../img/character.png');
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 4px 8px 16px rgba(0,0,0,0.3);
    border-radius: 8px;
    transform: perspective(120px) rotateX(10deg) rotateY(10deg);
    transition: transform 0.1s;
    will-change: transform;
}
.bullet {
    width: 10px;
    height: 10px;
    background: yellow;
    border-radius: 50%;
    position: absolute;
    z-index: 10;
    box-shadow: 0 0 8px #ff0;
}

#rankingBoard {
    font-family: 'Pretendard', 'Malgun Gothic', sans-serif;
    letter-spacing: 0.01em;
    padding: 10px !important;
    box-sizing: border-box;
    text-align: center;
}
#rankingBoard table {
    width: 100%;
    margin: 0 auto;
    table-layout: fixed;
}
#rankingBoard th, #rankingBoard td {
    padding: 4px 0;
    word-break: break-all;
}
#nameInputModal {
    display: none;
    position: fixed;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
#nameInputModal input {
    font-size: 1.1em;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 5px;
}
#nameInputModal button {
    font-size: 1em;
    padding: 5px 15px;
    border-radius: 5px;
    border: none;
    background: #ffe082;
    color: #333;
    cursor: pointer;
    margin-top: 5px;
}
#nameInputModal button:hover {
    background: #ffd54f;
}