/* GLOBAL */

body {
    background: #2e2e2e;
    color: #eee;
    font-family: "Crimson Text", serif;
    padding: 20px;
    margin: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 200px rgba(0,0,0,0.85);
}

.hidden { display: none !important; }

/* SCREENS */

.screen {
    max-width: 450px;
    margin: auto;
    padding: 25px;
    background: #1b3e27;
    border: 2px solid #3a0d0d;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

h1 {
    font-family: "Cinzel", serif;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 2px;
    border-bottom: 2px solid #8b0000;
    padding-bottom: 10px;
}

/* SETUP FIELDS */

.setup-field {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
}

label {
    font-size: 1.1em;
    margin-bottom: 6px;
    display: block;
}

input, select {
    width: 100%;
    padding: 12px;
    background: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 5px;
    box-sizing: border-box;
}

/* FIX: Make select visually identical to input */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* START BUTTON */

#setup-screen #startBtn {
    width: 90%;
    margin: 12px auto 0;
    display: block;
    padding: 14px;
    font-size: 1.2em;
}

/* COLOR LABELS */

.blood-label { color: #F52222; font-weight: 700; text-shadow: 0 0 3px #000; }
.will-label  { color: #2268F5; font-weight: 700; text-shadow: 0 0 3px #000; }
.beast-label { color: #F5D222; font-weight: 700; text-shadow: 0 0 3px #000; }

/* BUTTONS */

.btn {
    background: linear-gradient(#5a5a5a, #3d3d3d);
    color: white;
    border: 1px solid #222;
    border-radius: 6px;
    cursor: pointer;
    font-family: "Cinzel", serif;
}

.btn:hover {
    background: linear-gradient(#7a7a7a, #4d4d4d);
}

/* BLOOD PER ROUND */

.blood-round {
    text-align: center;
    font-size: 1.2em;
    margin-top: -10px;
    margin-bottom: 20px;
    font-style: italic;
}

/* TRACKER ROWS */

.tracker-row {
    display: grid;
    grid-template-columns: 1.6fr 0.6fr 0.6fr 0.6fr;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    font-size: 1.2em;
}

.tracker-value {
    text-align: center;
    width: 40px;
}

.tracker-row .btn {
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    padding: 0;
}

/* WARNINGS */

.blood-warning,
.humanity-warning {
    text-align: center;
    font-size: 0.9em;
    font-style: italic;
    margin-top: -5px;
    margin-bottom: 10px;
    text-shadow: 0 0 3px #000;
}

.blood-warning { color: #F52222; }
.humanity-warning { color: #F5D222; }

/* RESET BUTTONS */

.reset-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.reset-left, .reset-right {
    width: 45%;
    padding: 12px;
}

/* CONFIRMATION POPUP */

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.confirm-box {
    background: #1b3e27;
    border: 2px solid #3a0d0d;
    padding: 25px;
    width: 80%;
    max-width: 350px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px black;
}

.confirm-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.confirm-yes, .confirm-no {
    width: 45%;
    padding: 10px;
}

/* MOBILE */

@media (max-width: 480px) {
    .tracker-row {
        grid-template-columns: 1.4fr 0.7fr 0.7fr 0.7fr;
    }
    .tracker-row .btn {
        width: 45px;
        height: 45px;
        font-size: 1.4em;
    }
}

/* ============================= */
/*   CUSTOM MODIFIER ARROWS      */
/* ============================= */

.mod-wrapper {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    gap: 6px;
    align-items: center;
}

.mod-btn {
    width: 40px;
    height: 40px;
    font-size: 1.4em;
    background: linear-gradient(#5a5a5a, #3d3d3d);
    color: white;
    border: 1px solid #222;
    border-radius: 6px;
    cursor: pointer;
    font-family: "Cinzel", serif;
    padding: 0;
}

.mod-btn:hover {
    background: linear-gradient(#7a7a7a, #4d4d4d);
}

.mod-field input {
    text-align: center;
    font-size: 1.2em;
}
