
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    touch-action: none;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}
body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: url('../img/A.png') no-repeat center center;
    background-size: cover;
    font-family: 'Arial', sans-serif;
    padding: 0;
}
.app-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.button-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1vmin;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}
.button-container {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    max-width: 200px;
    max-height: 200px;
    margin: 0 auto;
}
.button {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: url('../img/Button.png') no-repeat center center;
    background-size: contain;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: min(48px, 5vw);
    color: #625f7c;
    opacity: 0.9;
    touch-action: none;
}
.button:focus {
    outline: none;
}
.button-text-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: min(48px, 5vw);
    color: #625f7c;
    opacity: 0.9;
    margin: 0;
}
.button-text-content .dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: min(36px, 4vw);
    font-weight: bold;
    color: #625f7c;
    opacity: 0.9;
}
.button-text-content .dot.top {
    top: -30%;
}
.button-text-content .dot.bottom {
    bottom: -30%;
}
.button-main-text {
    font-size: min(48px, 5vw);
    font-weight: bold;
    color: #625f7c;
    opacity: 0.9;
}
.button:active,
.button.active {
    transform: scale(0.95);
}
.text-box {
    position: absolute;
    bottom: -5%;
    left: 0;
    width: 100%;
    height: 35%;
    background: url('../img/TextBox.png') no-repeat center center;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: min(24px, 2.5vw);
    color: #625f7c;
    opacity: 0.9;
    pointer-events: none;
}
.load-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.load-div {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 60px;
    border-radius: 10px;
    font-family: 'Arial', sans-serif;
    font-size: 24px;
    color: #625f7c;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.instrument-selector {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}
.instrument-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    color: #625f7c;
    cursor: pointer;
    transition: all 0.3s ease;
}
.instrument-btn:hover {
    background: rgba(255, 255, 255, 1);
}
.instrument-btn.active {
    background: #625f7c;
    color: #fff;
}
.volume-control {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 100;
}
.volume-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    color: #625f7c;
    cursor: pointer;
    transition: all 0.3s ease;
}
.volume-btn:hover {
    background: rgba(255, 255, 255, 1);
}
.volume-slider-container {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: none;
}
.volume-slider-container.show {
    display: block;
}
#volumeSlider {
    width: 150px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #625f7c 0%, #625f7c var(--volume), #d3d3d3 var(--volume), #d3d3d3 100%);
    border-radius: 3px;
    outline: none;
}
#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #625f7c;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
}
#volumeSlider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #625f7c;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
}
