.setup-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

.setup-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    gap: 0;
}

.setup-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    transition: background 0.1s;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-sizing: border-box;
}

.team1-section {
    background: var(--team1-color);
}

.team2-section {
    background: var(--team2-color);
}

.setup-section label {
    font-size: 4vw;
    font-weight: 600;
    color: white;
    width: 100%;
    text-align: center;
    padding: 1vh 0;
}

.value-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: center;
}

.value-control .button-row {
    display: flex;
    gap: 4vw;
    align-items: center;
}

.control-btn {
    font-size: 12vw;
    font-weight: 700;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 15vw;
    height: 15vw;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    user-select: none;
    transition: background 0.1s;
    border-radius: 2vw;
}

.control-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

.value-display {
    font-size: 20vw;
    font-weight: 700;
    color: white;
    text-align: center;
}

.value-unit {
    font-size: 3.5vw;
    font-weight: 700;
    text-align: center;
    margin-top: -1vh;
    margin-bottom: 2vh;
}

.horn-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vh;
    width: 90%;
    flex: 1;
    justify-content: center;
}

.horn-control select {
    flex: 0;
    width: 100%;
}

.test-btn {
    font-size: 8vw;
    font-weight: 700;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    padding: 2vh 4vw;
    border-radius: 2vw;
    touch-action: manipulation;
    user-select: none;
    transition: background 0.1s;
}

.test-btn:active {
    background: rgba(255, 255, 255, 0.3);
}

.setup-section select {
    font-size: 6vw;
    padding: 1vh 2vw;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-weight: 700;
    outline: none;
    text-align: center;
    width: auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 1vw;
}

.setup-section select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.setup-section select option {
    background: #1a1a1a;
    color: white;
    font-size: 5vw;
}

.test-sound-btn {
    width: 100%;
    height: 100%;
    font-size: 6vw;
    font-weight: 700;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.1s;
    touch-action: manipulation;
}

.test-sound-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

.start-match-btn {
    width: 100%;
    height: 20vh;
    font-size: 8vw;
    font-weight: 700;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    transition: background 0.1s;
    touch-action: manipulation;
}