body {
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: #111827;
    color: #ffffff;
}

h1, h2 {
    margin-top: 0;
}

.panel {
    background: #1f2937;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.overlay-body {
    background: transparent;
}

.overlay-box {
    background: rgba(17, 24, 39, 0.85);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 18px;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.duel-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 24px;
    font-weight: bold;
}

.big-line {
    margin-top: 16px;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
}

.small-line {
    margin-top: 10px;
    font-size: 18px;
    text-align: center;
    color: #d1d5db;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #374151;
    background: #111827;
    color: #fff;
    box-sizing: border-box;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

button {
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background: #1d4ed8;
}

.queue-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.queue-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.queue-main {
    min-width: 0;
}

.queue-name {
    font-weight: bold;
    font-size: 16px;
}

.queue-date {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.queue-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.queue-btn.secondary {
    background: #4b5563;
}

.queue-btn.secondary:hover {
    background: #374151;
}

.queue-btn.danger {
    background: #dc2626;
}

.queue-btn.danger:hover {
    background: #b91c1c;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.theme-btn {
    background: #1f2937;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
}

.theme-btn:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
}

.theme-btn.used {
    opacity: 0.4;
    cursor: not-allowed;
}

.theme-name {
    font-weight: bold;
    margin-bottom: 6px;
}

.theme-points {
    font-size: 14px;
    color: #9ca3af;
}

.queue-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.queue-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.queue-main {
    min-width: 0;
}

.queue-name {
    font-weight: bold;
    font-size: 16px;
}

.queue-date {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.queue-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.queue-btn.secondary {
    background: #4b5563;
}

.queue-btn.secondary:hover {
    background: #374151;
}

.queue-btn.danger {
    background: #dc2626;
}

.queue-btn.danger:hover {
    background: #b91c1c;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.theme-btn {
    background: #1f2937;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
    color: #fff;
}

.theme-btn:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
}

.theme-btn.used,
.theme-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.theme-name {
    font-weight: bold;
    margin-bottom: 6px;
}

.theme-points {
    font-size: 14px;
    color: #9ca3af;
}