* {
    box-sizing: border-box;
}

/* =========================
   GRUNDLAYOUT
   ========================= */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #111827;
    color: white;
}

.app {
    max-width: 600px;
    margin: auto;
    padding: 12px;
}

/* =========================
   HEADER
   ========================= */

header {
    text-align: center;
    margin-bottom: 14px;
}

header h1 {
    margin: 0 0 3px 0;
    font-size: 22px;
}

header p {
    margin: 0;
    color: #9ca3af;
    font-size: 13px;
}

/* =========================
   SPLITTER-KARTE
   ========================= */

.shard-card {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: #1f2937;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 9px;
}

.shard-icon {
    font-size: 25px;
    width: 32px;
    min-width: 32px;
    text-align: center;
    padding-top: 3px;
}

.shard-info {
    flex: 1;
    min-width: 0;
}

.shard-info h2 {
    margin: 0 0 6px 0;
    font-size: 16px;
}

/* =========================
   GROSSER ZÄHLER
   ========================= */

.main-counter {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    width: fit-content;
}

.main-counter > input {
    width: 82px;
    height: 40px;
    border: none;
    border-radius: 7px;
    background: #111827;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

/* =========================
   +1 / +10
   ========================= */

.buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.buttons button {
    width: 60px;
    height: 28px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    background: #374151;
    color: white;
    padding: 0;
    touch-action: manipulation;
}

.buttons button:hover {
    background: #4b5563;
}

/* =========================
   KLEINER MERCY-ZÄHLER
   ========================= */

.mercy-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
    font-size: 12px;
    color: #9ca3af;
}

.mercy-row input {
    width: 48px;
    height: 24px;
    border: 1px solid #4b5563;
    border-radius: 4px;
    background: #111827;
    color: white;
    text-align: center;
    font-size: 13px;
    padding: 0;
}

/* =========================
   STATUSZEILE
   ========================= */

.status-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
    min-width: 0;
}

.mercy-status {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #9ca3af;
    overflow-wrap: normal;
    word-break: normal;
}

.mercy-status strong {
    white-space: nowrap;
}

.mercy-status .chance {
    white-space: nowrap;
}

/* =========================
   GNADENSYSTEM AKTIV
   ========================= */

.mercy-active {
    color: white;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    padding: 2px 5px;
}

/* =========================
   RESET-BUTTONS
   ========================= */

.pull-button {
    flex-shrink: 0;
    border: none;
    border-radius: 4px;
    padding: 4px 6px;
    background: #374151;
    color: white;
    font-size: 10px;
    cursor: pointer;
    white-space: nowrap;
}

.pull-button:hover {
    background: #4b5563;
}

/* =========================
   ZAHLENFELD-PFEILE ENTFERNEN
   ========================= */

input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* =========================
   FOOTER
   ========================= */

footer {
    text-align: center;
    margin-top: 15px;
    font-size: 11px;
    color: #6b7280;
}

/* =========================
   SEHR KLEINE HANDYS
   ========================= */

@media (max-width: 380px) {
    .app {
        padding: 8px;
    }

    .shard-card {
        gap: 6px;
        padding: 8px;
        margin-bottom: 7px;
    }

    .shard-icon {
        font-size: 22px;
        width: 28px;
        min-width: 28px;
    }

    .shard-info h2 {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .main-counter > input {
        width: 75px;
        height: 37px;
        font-size: 22px;
    }

    .buttons button {
        width: 70px;
        height: 30px;
        font-size: 14px;
    }

    .mercy-status {
        font-size: 11px;
    }

    .pull-button {
        font-size: 9px;
        padding: 4px 5px;
    }
}