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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a0a1a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

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

#ui {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 10, 30, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 14px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10;
}

.mode-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
}

.mode-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.ui-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
}

#hint {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    letter-spacing: 0.5px;
    text-align: center;
    transition: opacity 0.5s ease;
    z-index: 5;
    pointer-events: none;
    white-space: nowrap;
}

#star-count {
    position: fixed;
    top: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 13px;
    letter-spacing: 0.5px;
    z-index: 5;
    pointer-events: none;
}

@media (max-width: 480px) {
    #ui {
        bottom: 20px;
        padding: 6px 10px;
        gap: 6px;
    }
    .mode-btn {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
    #hint {
        bottom: 80px;
        font-size: 12px;
    }
}
