* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #0d0d12;
    color: #ffffff;
}

.wrap {
    width: min(1100px, 94%);
    margin: 30px auto 80px;
}

h1 {
    margin-bottom: 5px;
}

h2 {
    margin-top: 0;
}

h3 {
    margin-bottom: 15px;
}

.muted,
.hint,
small {
    color: #aaa;
}

.card {
    background: #17171f;
    border: 1px solid #292934;
    border-radius: 14px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn,
button {
    border: 0;
    border-radius: 8px;
    padding: 11px 16px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.livepix {
    background: #24b36b;
}

.twitch {
    background: #9146ff;
}

.webhook {
    background: #d97706;
}

.obs {
    background: #444;
}

.save {
    background: #2563eb;
}

.danger {
    background: #dc2626;
}

.small {
    padding: 8px 12px;
    font-size: 13px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: bold;
}

input,
textarea {
    width: 100%;
    background: #0e0e14;
    color: white;
    border: 1px solid #363644;
    border-radius: 8px;
    padding: 11px;
    font-size: 15px;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.money-input {
    display: flex;
    align-items: center;
    background: #0e0e14;
    border: 1px solid #363644;
    border-radius: 8px;
    overflow: hidden;
}

.money-input span {
    padding-left: 12px;
    color: #aaa;
}

.money-input input {
    border: 0;
}

.switches {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 20px 0;
}

.switch-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.switch-line input {
    width: auto;
}

.prize {
    display: grid;
    grid-template-columns: 2fr 1fr .8fr auto;
    gap: 12px;
    align-items: end;
    background: #101017;
    border: 1px solid #292934;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

.prize > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px;
}

.add-prize {
    border-top: 1px solid #292934;
    margin-top: 20px;
    padding-top: 20px;
}

.prize-form {
    grid-template-columns: 2fr 2fr 1fr;
    margin-bottom: 15px;
}

.status {
    margin-top: 15px;
    color: #aaa;
}

.status-message {
    margin-top: 12px;
    font-weight: bold;
}

.status-message.success {
    color: #22c55e;
}

.status-message.error {
    color: #ef4444;
}

.empty {
    padding: 20px;
    color: #999;
    text-align: center;
}

.donation {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #292934;
}

@media (max-width: 800px) {

    .form-grid,
    .prize,
    .prize-form,
    .donation {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-wrap: wrap;
    }
}