* {
    touch-action: manipulation;
}

body {
    background-color: white;
}

.app-container {
    max-width: 500px;
    background-color: white;
    height: 100vh;
}

.score-box {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.1s, opacity 0.2s;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: white;
}

.score-box:active {
    background-color: #f8f9fa;
}

.score-loading .p1-win,
.score-loading .p2-lose {
    background-color: white !important;
}

tr.disabled-row:not(.game-won) .score-box {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.35;
    background-color: #f8f9fa;
}

tr.game-won .score-box {
    pointer-events: none;
    cursor: default;
}

.p1-win {
    background-color: #e6f4ea !important;
}

.p2-lose {
    background-color: #fce8e6 !important;
}

.log-container {
    max-height: 180px;
    overflow-y: auto;
}

.card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
}

.score-panel {
    flex: 0 0 auto;
    overflow: visible;
}

.chart-panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
}

#chart-container {
    display: block;
    width: 100%;
    margin-top: 0;
    padding-bottom: 1rem;
}

.set-section {
    display: block;
    width: 100%;
    margin-bottom: 1.5rem;
}

.chart-row {
    display: block;
    width: 100%;
}

.chart-area {
    display: block;
    width: 100%;
    min-height: 260px;
    margin-bottom: 0.5rem;
}

.chart-area canvas {
    display: block;
    width: 100% !important;
    height: 260px !important;
    max-width: 100%;
}

.card-body {
    min-height: 100px;
}