#minigolf-scorecard {
    font-family: sans-serif;
    max-width: 100%;
    overflow-x: auto;
}
#scorecard-wrapper {
    display: flex;
    align-items: flex-end;
    margin-top: 40px;
    margin-bottom: 40px;
}
#players-column {
    min-width: 90px;
    position: sticky;
    left: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
}
#players-column input {
    padding: 7px;
    width: 90px;
}
#results-scroll {
    overflow-x: auto;
}
#scorecard-table {
    border-collapse: collapse;
    width: 769px;
    margin-bottom: 0;
}
#scorecard-table th {
    border: 1px solid #ccc;
    width: 40px;
    height: 40px;
    background: #f3f3f3;
}
#scorecard-table td {
    border: 1px solid #ccc;
    width: 40px;
    height: 40px;
    padding: 0;
}
.cell {
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
}
#totals-column {
    min-width: 60px;
    position: sticky;
    right: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}
.total-cell {
    width: 61px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-left: 1px solid #ccc;
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal-content {
    background: #fff;
    padding: 20px;
    text-align: center;
}
.hidden {
    display: none;
}
.modal button {
    margin: 4px;
    padding: 8px 12px;
}

/* Color gradient */
.green { background-color: #4CAF50; color: white; }
.light-green { background-color: #8BC34A; color: white; }
.lime { background-color: #CDDC39; color: black; }
.yellow { background-color: #FFEB3B; color: black; }
.orange { background-color: #FFC107; color: black; }
.red { background-color: #F44336; color: white; }
