@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tilt Neon&display=swap');

@font-face {
    font-family: 'Beon';
    font-style: normal;
    font-weight: 400;
    src: url(font/Beon.otf);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #151414;
    color: #f2e9d8;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: space-around;
}

header {
    padding: 40px 20px 20px;
}

.title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* the lines */
.line {
    flex: 1;
    height: 2px;
    background: #b87333; /* copper accent */
    max-width: 80px; /* optional � keeps them tidy */
}

/* the name */
.bar-name {
    font-family: 'Cinzel', serif;
    font-size: 48px;
    letter-spacing: 2px;
    color: #f9d29d;
    margin: 0;
}

    header p {
        margin-top: 10px;
        font-size: 18px;
        opacity: 0.8;
    }

.divider {
    width: 80%;
    margin: 25px auto;
    border-bottom: 1px solid #cbb68a;
    opacity: 0.4;
}

.status-card {
    --neon-text-color: #b87333;
    font-family: "Beon";
    max-width: max-content;
    margin: 20px auto;
    font-size: 3.2rem;
    animation: startup 1.2s ease-in 1 forwards, idleFlicker 6s ease-in-out 1.2s infinite;
    border: 0.2rem solid #fff;
    border-radius: 2rem;
    padding: 0.4em;
    box-shadow: 0 0 .2rem #fff, 0 0 .2rem #fff, 0 0 2rem #bc13fe, 0 0 0.8rem #bc13fe, 0 0 2.8rem #bc13fe, inset 0 0 1.3rem #bc13fe;
    margin-bottom: 50px;
}
    .status-card.closed {
        animation: signOff 0.9s ease-out 1 forwards;
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.05);

        & span {
            color: #3a2a1a;
            text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 0 2px rgba(255, 255, 255, 0.1);
            animation: flickerOff 0.9s ease-out 1 forwards;
        }
    }

    .status-card small {
        display: block;
        margin-top: 10px;
        font-size: 18px;
        opacity: 0.9;
    }

.beer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    width: 80%;
    max-width: 900px;
    margin: 30px auto;
    justify-items: center;

    .beer-card {
        background: #222;
        padding: 24px;
        border-radius: 20px;
        color: #f2e9d8;
        display: flex;
        text-align: left;
        gap: 24px;
        max-width: 600px;
        width: calc(100% - 48px);
    }

    .beer-icon {
        align-content: center;
    }

    .beer-name {
        font-size: 26px;
        font-weight: bold;
        margin-bottom: 6px;
    }

    .beer-style {
        font-size: 16px;
        opacity: 0.75;
    }

    .abv {
        font-size: 14px;
        padding: 4px 10px;
        border-radius: 12px;
        background: #b87333;
        color: #fff;
        font-weight: bold;
    }
}

.stats-card {
    width: fit-content;
    margin: 25px auto;
    font-size: 24px;

    h6 {
        padding: 0;
        margin: 0;
        padding-left: 25px;
        padding-bottom: 5px;
        opacity: 0.6;
        font-weight: normal;
        text-align: left;
    }

    .stats-info {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;

        .stat-box {
            background: #1d1c1c;
            width: 150px;
            padding: 20px;
            border-radius: 15px;
            text-transform: uppercase;

            .num {
                font-size: 28px;
                font-weight: bold;
                font-family: 'Cinzel', serif;
            }

            .label {
                margin-top: 8px;
                font-size: 12px;
                opacity: 0.7;
            }
        }
    }
}



footer {
    margin-top: 40px;
    padding: 20px;
    font-size: 14px;
    opacity: 0.8;

    p.powered {
        font-family: 'Cinzel', serif;
        font-size: 0.8em;
    }
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    opacity: 0.2;

    mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 50%, /* fully visible center */
    rgba(0, 0, 0, 0) 100% /* fades to transparent at edges */
    );
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
}




@media (max-width: 480px) {
    .bar-name {
        font-size: 34px;
    }

    .line {
        max-width: 50px;
    }
}




@keyframes startup {
    /* 0-200ms: completely off */
    0%, 16% {
        text-shadow: none;
        opacity: 0.4;
    }
    /* Struggling flickers from ~200ms to ~1s */
    17% {
        text-shadow: 0 0 7px #fff, 0 0 10px #fff, 0 0 21px #fff, 0 0 42px var(--neon-text-color), 0 0 82px var(--neon-text-color), 0 0 92px var(--neon-text-color), 0 0 102px var(--neon-text-color), 0 0 151px var(--neon-text-color);
        opacity: 1;
    }

    20% {
        text-shadow: none;
        opacity: 0.4;
    }

    22% {
        text-shadow: 0 0 7px #fff, 0 0 10px #fff, 0 0 21px #fff, 0 0 42px var(--neon-text-color), 0 0 82px var(--neon-text-color), 0 0 92px var(--neon-text-color), 0 0 102px var(--neon-text-color), 0 0 151px var(--neon-text-color);
        opacity: 1;
    }

    28% {
        text-shadow: none;
        opacity: 0.4;
    }

    32% {
        text-shadow: 0 0 7px #fff, 0 0 10px #fff, 0 0 21px #fff, 0 0 42px var(--neon-text-color), 0 0 82px var(--neon-text-color), 0 0 92px var(--neon-text-color), 0 0 102px var(--neon-text-color), 0 0 151px var(--neon-text-color);
        opacity: 1;
    }

    40% {
        text-shadow: none;
        opacity: 0.4;
    }

    45%, 55% {
        text-shadow: 0 0 7px #fff, 0 0 10px #fff, 0 0 21px #fff, 0 0 42px var(--neon-text-color), 0 0 82px var(--neon-text-color), 0 0 92px var(--neon-text-color), 0 0 102px var(--neon-text-color), 0 0 151px var(--neon-text-color);
        opacity: 1;
    }

    58% {
        text-shadow: none;
        opacity: 0.4;
    }

    62%, 100% {
        text-shadow: 0 0 7px #fff, 0 0 10px #fff, 0 0 21px #fff, 0 0 42px var(--neon-text-color), 0 0 82px var(--neon-text-color), 0 0 92px var(--neon-text-color), 0 0 102px var(--neon-text-color), 0 0 151px var(--neon-text-color);
        opacity: 1;
    }
}

/* Mostly on, with brief flickers at ~3s and ~4.5s into each 6s cycle */
@keyframes idleFlicker {
    0%, 49%, 51%, 74%, 76%, 100% {
        text-shadow: 0 0 7px #fff, 0 0 10px #fff, 0 0 21px #fff, 0 0 42px var(--neon-text-color), 0 0 82px var(--neon-text-color), 0 0 92px var(--neon-text-color), 0 0 102px var(--neon-text-color), 0 0 151px var(--neon-text-color);
        opacity: 1;
    }

    50%, 75% {
        text-shadow: none;
        opacity: 0.4;
    }
}

/* Holds lit, blinks slowly a couple of times, accelerates into rapid flickers, then dies */
@keyframes flickerOff {
    /* hold lit (~0-300ms) */
    0%, 33% {
        color: #fff;
        text-shadow: 0 0 7px #fff, 0 0 10px #fff, 0 0 21px #fff, 0 0 42px var(--neon-text-color), 0 0 82px var(--neon-text-color), 0 0 92px var(--neon-text-color), 0 0 102px var(--neon-text-color), 0 0 151px var(--neon-text-color);
        opacity: 1;
    }
    /* slow blink 1 off */
    36%, 42% {
        color: #3a2a1a;
        text-shadow: none;
        opacity: 0.4;
    }
    /* slow recovery 1 */
    45%, 52% {
        color: #fff;
        text-shadow: 0 0 7px #fff, 0 0 10px #fff, 0 0 21px #fff, 0 0 42px var(--neon-text-color), 0 0 82px var(--neon-text-color), 0 0 92px var(--neon-text-color), 0 0 102px var(--neon-text-color), 0 0 151px var(--neon-text-color);
        opacity: 1;
    }
    /* slow blink 2 off */
    55%, 60% {
        color: #3a2a1a;
        text-shadow: none;
        opacity: 0.4;
    }
    /* slow recovery 2 */
    63%, 67% {
        color: #fff;
        text-shadow: 0 0 7px #fff, 0 0 10px #fff, 0 0 21px #fff, 0 0 42px var(--neon-text-color), 0 0 82px var(--neon-text-color), 0 0 92px var(--neon-text-color), 0 0 102px var(--neon-text-color), 0 0 151px var(--neon-text-color);
        opacity: 1;
    }
    /* rapid stutter: off */
    69%, 71% {
        color: #3a2a1a;
        text-shadow: none;
        opacity: 0.4;
    }
    /* rapid stutter: on */
    73%, 75% {
        color: #fff;
        text-shadow: 0 0 7px #fff, 0 0 10px #fff, 0 0 21px #fff, 0 0 42px var(--neon-text-color), 0 0 82px var(--neon-text-color), 0 0 92px var(--neon-text-color), 0 0 102px var(--neon-text-color), 0 0 151px var(--neon-text-color);
        opacity: 1;
    }
    /* rapid stutter: off */
    77%, 78% {
        color: #3a2a1a;
        text-shadow: none;
        opacity: 0.4;
    }
    /* last dying spark */
    80%, 81% {
        color: #fff;
        text-shadow: 0 0 7px #fff, 0 0 10px #fff, 0 0 21px #fff, 0 0 42px var(--neon-text-color), 0 0 82px var(--neon-text-color), 0 0 92px var(--neon-text-color), 0 0 102px var(--neon-text-color), 0 0 151px var(--neon-text-color);
        opacity: 1;
    }
    /* dead */
    83%, 100% {
        color: #3a2a1a;
        text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 0 2px rgba(255, 255, 255, 0.1);
        opacity: 1;
    }
}

/* Matches the flickerOff timing, but for the card frame (border + glow) */
@keyframes signOff {
    0%, 33% {
        border-color: #fff;
        box-shadow: 0 0 .2rem #fff, 0 0 .2rem #fff, 0 0 2rem #bc13fe, 0 0 0.8rem #bc13fe, 0 0 2.8rem #bc13fe, inset 0 0 1.3rem #bc13fe;
    }
    36%, 42% {
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.05);
    }
    45%, 52% {
        border-color: #fff;
        box-shadow: 0 0 .2rem #fff, 0 0 .2rem #fff, 0 0 2rem #bc13fe, 0 0 0.8rem #bc13fe, 0 0 2.8rem #bc13fe, inset 0 0 1.3rem #bc13fe;
    }
    55%, 60% {
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.05);
    }
    63%, 67% {
        border-color: #fff;
        box-shadow: 0 0 .2rem #fff, 0 0 .2rem #fff, 0 0 2rem #bc13fe, 0 0 0.8rem #bc13fe, 0 0 2.8rem #bc13fe, inset 0 0 1.3rem #bc13fe;
    }
    69%, 71% {
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.05);
    }
    73%, 75% {
        border-color: #fff;
        box-shadow: 0 0 .2rem #fff, 0 0 .2rem #fff, 0 0 2rem #bc13fe, 0 0 0.8rem #bc13fe, 0 0 2.8rem #bc13fe, inset 0 0 1.3rem #bc13fe;
    }
    77%, 78% {
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.05);
    }
    80%, 81% {
        border-color: #fff;
        box-shadow: 0 0 .2rem #fff, 0 0 .2rem #fff, 0 0 2rem #bc13fe, 0 0 0.8rem #bc13fe, 0 0 2.8rem #bc13fe, inset 0 0 1.3rem #bc13fe;
    }
    83%, 100% {
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.05);
    }
}


@keyframes burnout {
    /* 0-10%: normal running state */
    0%, 10% {
        text-shadow: 0 0 7px #fff, 0 0 10px #fff, 0 0 21px #fff, 0 0 42px var(--neon-text-color), 0 0 82px var(--neon-text-color), 0 0 92px var(--neon-text-color), 0 0 102px var(--neon-text-color), 0 0 151px var(--neon-text-color);
        opacity: 1;
    }
    /* 15-25%: subtle swell — slightly brighter, slightly whiter */
    20% {
        text-shadow: 0 0 8px #fff, 0 0 14px #fff, 0 0 28px #fff, 0 0 50px var(--neon-text-color), 0 0 90px var(--neon-text-color), 0 0 110px var(--neon-text-color), 0 0 130px var(--neon-text-color), 0 0 170px var(--neon-text-color);
        opacity: 1;
    }
    /* 30-45%: noticeable over-brightness, white dominating */
    35% {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 40px #fff, 0 0 60px #fff, 0 0 80px var(--neon-text-color), 0 0 120px var(--neon-text-color), 0 0 160px var(--neon-text-color), 0 0 200px var(--neon-text-color);
        opacity: 1;
    }
    /* 50-65%: getting dangerous — much whiter, much bigger */
    55% {
        text-shadow: 0 0 15px #fff, 0 0 30px #fff, 0 0 60px #fff, 0 0 100px #fff, 0 0 140px var(--neon-text-color), 0 0 180px var(--neon-text-color), 0 0 230px var(--neon-text-color);
        opacity: 1;
    }
    /* 75-85%: peak flare — white hot, maximum glow */
    80% {
        color: #fff;
        text-shadow: 0 0 20px #fff, 0 0 40px #fff, 0 0 80px #fff, 0 0 140px #fff, 0 0 200px #fff, 0 0 260px var(--neon-text-color), 0 0 300px var(--neon-text-color);
        opacity: 1;
    }
    /* 85-86%: final spike */
    85% {
        color: #fff;
        text-shadow: 0 0 25px #fff, 0 0 50px #fff, 0 0 100px #fff, 0 0 180px #fff, 0 0 260px #fff, 0 0 340px var(--neon-text-color);
        opacity: 1;
    }
    /* 86%: DEAD. Instant snap to off. */
    86.01%, 100% {
        text-shadow: none;
        opacity: 0.4;
    }
}