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

body {
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    background-color: #0a0a0a;
    color: #ffffff;
    background-image: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    background-attachment: fixed;
}

.container {
    max-width: 100%;
    padding: 20px;
    margin: 0 auto;
}

.row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.box {
    background-color: rgba(15, 25, 35, 0.95);
    padding: 20px;
    border-radius: 8px;
    border: 3px solid #1a4d3e;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(26, 77, 62, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-box.active {
    background: linear-gradient(135deg, rgba(26, 77, 62, 0.4), rgba(15, 25, 35, 0.95));
    border-color: #00ff88;
    box-shadow:
        0 0 30px rgba(0, 255, 136, 0.6),
        0 0 60px rgba(0, 255, 136, 0.3),
        inset 0 0 30px rgba(0, 255, 136, 0.15);
    transform: scale(1.01);
    transition: all 0.3s ease;
    position: relative;
    animation: activeGlow 1.5s ease-in-out infinite;
}

@keyframes activeGlow {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(0, 255, 136, 0.6),
            0 0 60px rgba(0, 255, 136, 0.3),
            inset 0 0 30px rgba(0, 255, 136, 0.15);
    }
    50% {
        box-shadow:
            0 0 40px rgba(0, 255, 136, 0.8),
            0 0 80px rgba(0, 255, 136, 0.4),
            inset 0 0 40px rgba(0, 255, 136, 0.25);
    }
}

.full-width {
    width: 100%;
}

.player-box {
    flex: 1;
    position: relative;
}

.player-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.stats-box {
    width: 100%;
    padding: 12px;
    border: 1px solid #1a4d3e;
    background: linear-gradient(135deg, rgba(26, 77, 62, 0.15), rgba(26, 77, 62, 0.05));
    text-align: center;
    border-radius: 4px;
}

.current-inning {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.current-inning h2 {
    text-align: center;
    margin: 20px 0;
    font-size: 2.2em;
    font-weight: bold;
    padding: 15px 20px;
    border: 2px solid #00ff88;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(26, 77, 62, 0.3), rgba(26, 77, 62, 0.1));
    font-family: 'Montserrat', sans-serif;
    text-shadow:
        0 0 15px rgba(0, 255, 136, 0.4),
        2px 2px 5px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow:
        0 0 10px rgba(0, 255, 136, 0.3),
        2px 2px 5px rgba(0, 0, 0, 0.8);
    font-size: 3.2em;
    letter-spacing: 2px;
}

.player-name {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 12px 20px;
    border: 2px solid #1a4d3e;
    color: #00ff88;
    background-color: rgba(26, 77, 62, 0.2);
    font-family: 'Montserrat', sans-serif;
    text-shadow:
        0 0 10px rgba(0, 255, 136, 0.4),
        2px 2px 5px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.total-score {
    font-size: 1.5em;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.digit-display {
    display: flex;
    gap: 10px;
}

.digit-display span {
    font-size: 140px;
    font-weight: 900;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(26, 77, 62, 0.7), rgba(15, 25, 35, 0.9));
    border: 3px solid #1a4d3e;
    color: #00ff88;
    min-width: 140px;
    text-align: center;
    text-shadow:
        0 0 10px rgba(0, 255, 136, 0.5),
        2px 2px 8px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
}

.player-box.active .digit-display span {
    border-color: #00ff88;
    background: linear-gradient(135deg, rgba(26, 77, 62, 0.95), rgba(26, 77, 62, 0.8));
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5), inset 0 0 10px rgba(0, 255, 136, 0.1);
    color: #ffffff;
    text-shadow:
        0 0 15px rgba(0, 255, 136, 0.8),
        2px 2px 8px rgba(0, 0, 0, 0.8);
}

.statistics {
    margin-top: 10px;
    font-size: 1.1em;
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

.statistics p {
    margin: 5px 0;
}

.score-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.active-player {
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
}

.digit-controls {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.digit-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.digit-group span {
    font-size: 140px;
    font-weight: 900;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(26, 77, 62, 0.7), rgba(15, 25, 35, 0.9));
    border: 3px solid #1a4d3e;
    color: #00ff88;
    min-width: 140px;
    text-align: center;
    text-shadow:
        0 0 10px rgba(0, 255, 136, 0.5),
        2px 2px 8px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.2s ease;
}

.digit-group span:hover {
    background: linear-gradient(135deg, rgba(26, 77, 62, 0.9), rgba(26, 77, 62, 0.7));
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.digit-group span:active {
    transform: scale(0.95);
    box-shadow: inset 0 0 10px rgba(0, 255, 136, 0.2);
}

.control-buttons {
    display: flex;
    gap: 10px;
}

button {
    padding: 20px 25px;
    min-width: 80px;
    background-color: rgba(26, 77, 62, 0.8);
    color: #00ff88;
    border: 2px solid #00ff88;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2), 3px 3px 10px rgba(0, 0, 0, 0.5);
    font-size: 0.95em;
}

button:hover {
    background-color: rgba(26, 77, 62, 1);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.4), 5px 5px 15px rgba(0, 0, 0, 0.5);
}

button:active {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3), 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.reset-button {
    border-color: #ff3333;
    color: #ff3333;
    background-color: rgba(255, 51, 51, 0.1);
}

.reset-button:hover {
    background-color: rgba(255, 51, 51, 0.8);
    color: #ffffff;
    border-color: #ff3333;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.5), 3px 3px 10px rgba(0, 0, 0, 0.5);
}

.undo-button {
    border-color: #00ff88;
    color: #00ff88;
}

.undo-button:hover {
    background-color: rgba(26, 77, 62, 1);
    color: #ffffff;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: 3px solid #1a4d3e;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(26, 77, 62, 0.1);
    background-color: rgba(15, 25, 35, 0.95);
}

td {
    padding: 10px;
    text-align: center;
    border: 1px solid #1a4d3e;
    width: calc(100% / 30);
    transition: all 0.2s ease;
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

tr:nth-child(even) td {
    background-color: rgba(26, 77, 62, 0.08);
}

tr:first-child td {
    background-color: rgba(26, 77, 62, 0.25);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #00ff88;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

td:hover {
    background-color: rgba(26, 77, 62, 0.25);
    box-shadow: inset 0 0 10px rgba(0, 255, 136, 0.2);
    color: #ffffff;
}
