﻿
.roomgrid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
}




.knapp {
    color: white;
    display:flex;
}

.ui-btn {
    --btn-default-bg: rgb(41, 41, 41);
    --btn-padding: 15px 20px;
    --btn-hover-bg: rgb(51, 51, 51);
    --btn-transition: .3s;
    --btn-letter-spacing: .1rem;
    --btn-animation-duration: 1.2s;
    --btn-shadow-color: rgba(0, 0, 0, 0.137);
    --btn-shadow: 0 2px 10px 0 var(--btn-shadow-color);
    --hover-btn-color: #FAC921;
    --default-btn-color: #fff;
    --font-size: 16px;
    --font-weight: 600;
    --font-family: Menlo,Roboto Mono,monospace;
}

/* button settings */

.ui-btn {
    box-sizing: border-box;
    padding: var(--btn-padding);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--default-btn-color);
    font: var(--font-weight) var(--font-size) var(--font-family);
    background: var(--btn-default-bg);
    border: none;
    cursor: pointer;
    transition: var(--btn-transition);
    overflow: hidden;
    box-shadow: var(--btn-shadow);
}

    .ui-btn span {
        letter-spacing: var(--btn-letter-spacing);
        transition: var(--btn-transition);
        box-sizing: border-box;
        position: relative;
        background: inherit;
        z-index: 1;
    }

        /* GLITCH OVERLAY */
        .ui-btn span::before {
            content: attr(data-text);
            position: absolute;
            inset: 0;
            width: 100%;
            white-space: nowrap;
            overflow: hidden;
            color: var(--hover-btn-color);
            background: inherit;
            opacity: 0; /* default AV */
            pointer-events: none;
            z-index: 2;
            transition: none;
        }

    .ui-btn:hover,
    .ui-btn:focus {
        background: var(--btn-hover-bg);
    }

        .ui-btn:hover span,
        .ui-btn:focus span {
            color: var(--hover-btn-color);
        }

            .ui-btn:hover span::before,
            .ui-btn:focus span::before {
                opacity: 1;
                animation: chitchat linear both var(--btn-animation-duration);
            }

@keyframes chitchat {
    0% {
        content: "########################";
        opacity: 1;
    }

    5% {
        content: "@@##$$%%&&**!!??";
    }

    10% {
        content: "^%$#@!~?><|{}[]";
    }

    15% {
        content: "░▒▓█▓▒░░▒▓█▓▒░";
    }

    20% {
        content: "/*-+=_<>^~!?";
    }

    25% {
        content: "six seven"; 
    }

    30% {
        content: "!@#%^&*()_+{}";
    }

    35% {
        content: "▒▒▓▓██▓▓▒▒";
    }

    40% {
        content: "><><><><><><>";
    }

    45% {
        content: "$$%%@@##!!";
    }

    50% {
        content: "|\\/:;,.`~";
    }

    55% {
        content: "▓▒░▒▓▒░▓▒░";
    }

    60% {
        content: "!?><:{}[]";
    }

    70% {
        content: "@@##$$%%";
    }

    80% {
        content: "▒▓█▒▓█▒▓█";
    }

    90% {
        content: "#$%!";
    }

    100% {
        opacity: 0;
    }
}





.victory-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.9);
    background: radial-gradient( circle, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.85) 70% );
    z-index: 9999;
    margin: 0;
}



.stats-box {
    background: #ffffff;
    border: 4px solid #111;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    font-family: system-ui, sans-serif;
}

.player-stats {
    background: linear-gradient(135deg, #1e6bff, #4da3ff);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    border: 3px solid #0b3fa8;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25), 0 4px 10px rgba(0, 0, 0, 0.25);
}

.enemy-stats {
    background: linear-gradient(135deg, #b30000, #ff2a2a);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    border: 3px solid #5c0000;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15), 0 4px 10px rgba(0, 0, 0, 0.3);
}
.inventory-box {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 16px;
    width: fit-content;
    height: fit-content;
    background: linear-gradient(135deg, #f6f8fb, #e1e6ee);
    border: 4px solid #2b2b2b;
    border-radius: 14px;
    font-family: system-ui, sans-serif;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22), inset 0 0 0 2px rgba(255, 255, 255, 0.65);
}
.inventory-item {
    background: linear-gradient(135deg, #2f8f6b, #4fbf8a);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    border: 3px solid #1f5f48;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25), 0 4px 10px rgba(0, 0, 0, 0.25);
}