* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', sans-serif;
    background: #fff;
    overflow: hidden;
    touch-action: none;
}

#game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

#canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#ui {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

#info {
    background: rgba(255, 255, 255, 0.95);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.area-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.area-display.sum {
    border-top: 2px solid #000;
    padding-top: 8px;
    margin-top: 4px;
}

.label {
    font-weight: 600;
    min-width: 80px;
}

.value {
    font-weight: 400;
    min-width: 60px;
    text-align: right;
}

#reset-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.1s;
}

#reset-btn:active {
    transform: scale(0.95);
}

#rotate-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

#rotate-btn:active {
    transform: translateY(-50%) scale(0.9);
}

@media (max-width: 768px) {
    #ui {
        bottom: 10px;
    }
    
    #info {
        padding: 12px;
        font-size: 14px;
    }
    
    .area-display {
        font-size: 12px;
        gap: 12px;
    }
    
    .label {
        min-width: 70px;
    }
    
    .value {
        min-width: 50px;
    }
}

