*, *::before, *::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 
        Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f2f2f2;
}
.battlefield-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: max-content;
    padding: 2rem 0;
    margin: 0 auto;
}
.battlefield-options, .battlefield-stats, .battlefield {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
}
.battlefield-options, .battlefield-stats {
    width: 17rem;
    padding: 1rem;
    margin-bottom: 1rem;
}
.force-list {
    list-style-type: none;
    padding: 0.5rem 0;
}
.force {
    display: flex;
    align-items: center;
}
.color-wrapper {
    border: 1px solid #ddd;
    border-radius: 50%;
    min-width: 0.875rem;
    min-height: 0.875rem;
    max-width: 0.875rem;
    max-height: 0.875rem;
    overflow: hidden;
    margin-right: 0.5rem;
}
input[type="color"] {
    background-color: transparent;
    border: none;
    width: 25px;
    height: 25px;
    cursor: pointer;
    margin-top: -5px;
    margin-left: -5px;
}
input[type="text"] {
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    outline: none;
    width: 100%;
}
input[type="text"]:focus {
    border-bottom: 1px solid #3366cc;
}
.force-color {
    border-radius: 0.5rem;
    width: 1rem;
    height: 1rem;
}
.force-cta {
    display: flex;
    gap: 0.5rem;
}
#add-force, #remove-force {
    width: calc(50% - 0.25rem);
}
#start-battle {
    width: 100%;
    background-color: #3366cc;
    color: white;
}
.battlefield-options button {
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 8px 0;
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: 0.25rem;
    font-weight: bold;
}
.battlefield-stats input {
    pointer-events: none;
    cursor: auto;
}
.force-stats {
    font-size: 0.875rem;
}
.force-stats td:nth-child(1) {
    padding-right: 0.5rem;
}
.align-center {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.force-stats table {
    border-collapse: collapse;
}
.force-stats th, .force-stats td, .force-list li {
    padding: 0.25rem 0;
}
.force-stats th {
    min-width: 7rem;
    max-width: 7rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    text-align: left;
}
.force-stats tr.defeated td {
    opacity: 0.5;
}
.force-stats tr.winner {
    background-color: #3366cc20;
}
.force-count {
    font-weight: bold;
}
.force-percent {
    color: grey;
}
.disabled button, .disabled input {
    opacity: 0.5;
    pointer-events: none;
    cursor: auto;
}