/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-iwzxfez5qz],
.components-reconnect-repeated-attempt-visible[b-iwzxfez5qz],
.components-reconnect-failed-visible[b-iwzxfez5qz],
.components-pause-visible[b-iwzxfez5qz],
.components-resume-failed-visible[b-iwzxfez5qz],
.components-rejoining-animation[b-iwzxfez5qz] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-iwzxfez5qz],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-iwzxfez5qz],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-iwzxfez5qz],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-iwzxfez5qz],
#components-reconnect-modal.components-reconnect-retrying[b-iwzxfez5qz],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-iwzxfez5qz],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-iwzxfez5qz],
#components-reconnect-modal.components-reconnect-failed[b-iwzxfez5qz],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-iwzxfez5qz] {
    display: block;
}


#components-reconnect-modal[b-iwzxfez5qz] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-iwzxfez5qz 0.5s both;
    &[open] {
        animation: components-reconnect-modal-slideUp-b-iwzxfez5qz 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-iwzxfez5qz 0.5s ease-in-out 0.3s;
        animation-fill-mode: both;
    }
}

#components-reconnect-modal[b-iwzxfez5qz]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-iwzxfez5qz 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-iwzxfez5qz {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-iwzxfez5qz {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-iwzxfez5qz {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-iwzxfez5qz] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-iwzxfez5qz] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-iwzxfez5qz] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-iwzxfez5qz] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-iwzxfez5qz] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-iwzxfez5qz] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-iwzxfez5qz] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-iwzxfez5qz 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-iwzxfez5qz] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-iwzxfez5qz {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Bestiary.razor.rz.scp.css */
/* Bestiary — scoped styles. Leans on the global parchment theme (.post, .ptable,
   .slots/.slot, .cats, .pinp, .btn-ghost from app.css); only the bestiary-specific
   bits live here. Ink-on-parchment palette via the shared :root variables. */

/* ── search + category filter ── */
.bst-search[b-m2om0o2tbl] { max-width: 100%; margin: 10px 0 12px; }

.bst-cats[b-m2om0o2tbl] { margin-bottom: 14px; }
.bst-pill[b-m2om0o2tbl] {
    font-family: Inter, system-ui, sans-serif; font-size: 11.5px; font-weight: 600;
    padding: 4px 10px; border-radius: 3px; cursor: pointer;
    border: 1px solid rgba(138, 52, 16, .35); background: transparent; color: var(--ink-link);
    transition: background .16s var(--ease), color .16s var(--ease);
}
.bst-pill:hover[b-m2om0o2tbl] { background: rgba(138, 52, 16, .1); }
.bst-pill.on[b-m2om0o2tbl] {
    background: linear-gradient(180deg, var(--blood-lit), var(--blood));
    color: #ffe9dd; border-color: var(--blood);
}
.bst-pill:focus-visible[b-m2om0o2tbl] { outline: 2px solid var(--ember); outline-offset: 2px; }

/* ── sortable table ── */
.bst-table th.sortable[b-m2om0o2tbl] { cursor: pointer; user-select: none; white-space: nowrap; }
.bst-table th.sortable:hover[b-m2om0o2tbl] { color: var(--blood); }
.bst-row[b-m2om0o2tbl] { cursor: pointer; }
.bst-row.sel[b-m2om0o2tbl] { background: rgba(179, 22, 15, .12); }
.bst-row.sel td:first-child[b-m2om0o2tbl] { color: var(--blood); }
.bst-count[b-m2om0o2tbl] { font-size: 11.5px; color: var(--ink-link); margin-top: 8px; }
.bst-empty[b-m2om0o2tbl] { font-size: 13px; color: var(--ink-soft); padding: 8px 0; }

/* ── detail view ── */
.bst-detail[b-m2om0o2tbl] { position: relative; }
.bst-close[b-m2om0o2tbl] { position: absolute; top: 0; right: 0; }

.bst-head[b-m2om0o2tbl] { display: flex; gap: 16px; align-items: flex-start; margin: 4px 0 6px; }
.bst-portrait[b-m2om0o2tbl] {
    flex: none; width: 84px; height: 84px; display: grid; place-items: center;
    background: linear-gradient(180deg, #1a0f06, #0c0703);
    border: 2px solid #3a2410; border-radius: 4px; box-shadow: inset 0 0 12px rgba(255, 90, 20, .18);
}
.bst-portrait img[b-m2om0o2tbl] { max-width: 72px; max-height: 72px; image-rendering: pixelated; }
.bst-meta[b-m2om0o2tbl] { flex: 1; min-width: 0; }
.bst-cat[b-m2om0o2tbl] {
    font-family: Cinzel, serif; font-weight: 700; font-size: 11.5px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--blood); margin-bottom: 8px;
}
.bst-stats[b-m2om0o2tbl] { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.bst-stats .slot[b-m2om0o2tbl] { padding: 10px 6px; }
.bst-stats .big[b-m2om0o2tbl] { font-size: 17px; text-transform: capitalize; }
.bst-flee[b-m2om0o2tbl] { font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; }

/* resistance / weakness chips */
.bst-chips[b-m2om0o2tbl] { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.bst-chip[b-m2om0o2tbl] {
    font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 3px;
    border: 1px solid transparent; text-transform: capitalize;
}
.bst-chip.weak[b-m2om0o2tbl] { background: rgba(179, 22, 15, .14); border-color: var(--blood); color: var(--blood); }
.bst-chip.resist[b-m2om0o2tbl] { background: rgba(58, 36, 16, .18); border-color: rgba(58, 36, 16, .55); color: var(--ink); }
.bst-chip.immune[b-m2om0o2tbl] {
    background: linear-gradient(180deg, #1a0f06, #0c0703); border-color: #3a2410; color: var(--gold-lit);
}
.bst-legend[b-m2om0o2tbl] { font-size: 11px; color: var(--ink-link); margin: 6px 0 2px; display: flex; align-items: center; }
.bst-legend .sw[b-m2om0o2tbl] { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.bst-legend .sw.weak[b-m2om0o2tbl] { background: var(--blood); }
.bst-legend .sw.resist[b-m2om0o2tbl] { background: rgba(58, 36, 16, .4); }
.bst-legend .sw.immune[b-m2om0o2tbl] { background: #1a0f06; }

/* attack + spawn lists */
.bst-attacks[b-m2om0o2tbl], .bst-spawns[b-m2om0o2tbl] { list-style: none; margin: 4px 0 6px; padding: 0; }
.bst-attacks li[b-m2om0o2tbl], .bst-spawns li[b-m2om0o2tbl] {
    font-size: 13px; color: var(--ink-soft); padding: 4px 0 4px 16px; position: relative;
    border-bottom: 1px solid rgba(58, 36, 16, .12);
}
.bst-attacks li:last-child[b-m2om0o2tbl], .bst-spawns li:last-child[b-m2om0o2tbl] { border-bottom: 0; }
.bst-attacks li[b-m2om0o2tbl]::before, .bst-spawns li[b-m2om0o2tbl]::before {
    content: "◆"; color: var(--ember); font-size: 7px; position: absolute; left: 2px; top: 8px;
}
.bst-spawns li b[b-m2om0o2tbl] { color: var(--ink); font-variant-numeric: tabular-nums; }
.bst-nospawn[b-m2om0o2tbl] { font-size: 12.5px; color: var(--ink-link); font-style: italic; margin-top: 4px; }

@media (max-width: 560px) {
    .bst-head[b-m2om0o2tbl] { flex-direction: column; }
    .bst-stats[b-m2om0o2tbl] { grid-template-columns: repeat(2, 1fr); }
}
