body {
    margin: 0;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #111;
}

canvas {
    display: block;
}

#hud {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #0f0;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #0f0;
    font-size: 16px;
    min-width: 200px;
}

#hud div {
    margin-bottom: 5px;
}

#score {
    color: #ffd700; /* Gold color for score */
    font-weight: bold;
}

#compass {
    width: 100px;
    height: 100px;
    border: 2px solid #0f0;
    border-radius: 50%;
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f0;
    font-size: 20px;
    font-weight: bold;
}

#compass::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid #f00; /* 북쪽을 가리키는 빨간 화살표 */
    top: 5px;
    /* CSS 변수를 사용하도록 변경 */
    transform-origin: 50% 45px;
    transform: rotate(var(--compass-rotation, 0rad));
}

#minimap-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 200px;
    height: 200px;
    border: 2px solid #0f0;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.hidden {
    display: none !important;
}

#permanent-help-hud {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #0f0;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #0f0;
    font-size: 14px;
    min-width: 200px;
}

#permanent-help-hud h2 {
    margin-top: 0;
    color: #0f0;
    font-size: 16px;
}

#permanent-help-hud table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

#permanent-help-hud th, #permanent-help-hud td {
    padding: 5px;
    border: 1px solid #555;
    text-align: left;
}

#permanent-help-hud th {
    background-color: #333;
}

#collision-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.4);
    z-index: 999;
}
