/* GLOBAL */

body {
    background: #acacac;
    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: #3f905b;
    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.3em;
    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;
}

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.3em;
}

/* COLOR LABELS */

.blood-label { color: #f42828; font-weight: 700; text-shadow: 0 0 3px #000000; }
.will-label  { color: #6817ff; font-weight: 900; text-shadow: 0 0 3px #000000; }
.beast-label { color: #F5D222; font-weight: 700; text-shadow: 0 0 3px #000000; }

/* COLOR NUMBERS TO MATCH LABELS */

#bloodValue {
    color: #f42828;
    text-shadow: 0 0 3px #000;
}

#willValue {
    color: #6817ff;
    text-shadow: 0 0 3px #000;
}

#beastValue {
    color: #F5D222;
    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.3em;
    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.3em;
}

.tracker-value {
    text-align: center;
    width: 40px;
}

/* RESTORE ORIGINAL + / – BUTTON SIZE */

.tracker-row .btn {
    width: 50px;
    height: 50px;
    min-height: 50px;
    font-size: 1.5em;
    padding: 0;
    line-height: 50px;
}

/* 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: #f42828; }
.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;
        min-height: 45px;
        font-size: 1.4em;
        line-height: 45px;
    }
}

/* ============================= */
/*   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;
}

/* ============================= */
/*   FLASH ANIMATION FOR MAX     */
/* ============================= */

.flash-cap {
    animation: flashCap 0.25s ease-out;
}

@keyframes flashCap {
    0% {
        color: #ff4444;
        text-shadow: 0 0 12px #ff0000, 0 0 20px #ff0000;
        transform: scale(1.15);
    }
    100% {
        color: inherit;
        text-shadow: none;
        transform: scale(1);
    }
}

/* ============================= */
/*   HEADER WATERMARK BANNERS    */
/* ============================= */

.header-watermark {
    position: relative;
    display: block;        /* full width again */
    text-align: center;    /* centers the text */
    padding: 10px 0;
}

.header-watermark::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("AIT_Images/AIT_Fangs.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.header-watermark span {
    position: relative;
    z-index: 1;
}
