* {
    box-sizing: border-box;
}
body {
    font-family: sans-serif;
    margin: 0 auto;
    padding: 2rem;
    background: #1a1a1a;
    color: #e0e0e0;
}
h1 {
    color: #f5c518;
    margin-bottom: 1.5rem;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.header h1 {
    margin: 0;
}
form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #333;
    border-radius: 4px;
    background: #2a2a2a;
    color: #fff;
}
input[type="text"]:focus {
    outline: none;
    border-color: #f5c518;
}
input[type="number"] {
    width: 80px;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #333;
    border-radius: 4px;
    background: #2a2a2a;
    color: #fff;
}
button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background: #f5c518;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
a.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background: #444;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}
a.btn:hover {
    background: #666;
}
label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
    max-width: 100%;
}
table {
    width: 100%;
    border-collapse: collapse;
    min-width: fit-content;
}
th,
td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #333;
    white-space: nowrap;
}
th {
    color: #f5c518;
    background: #222;
    position: sticky;
    top: 0;
}
th.sortable {
    cursor: pointer;
    user-select: none;
}
th.sortable::after {
    content: '';
    display: inline-block;
    margin-left: 0.5rem;
    opacity: 0.5;
}
th.asc::after {
    content: '▼';
    opacity: 1;
}
th.desc::after {
    content: '▲';
    opacity: 1;
}
td.chance {
    font-family: monospace;
}
.error {
    color: #ff6b6b;
    margin-bottom: 1rem;
}
.no-results {
    color: #888;
    font-style: italic;
}
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.results-count {
    color: #888;
}