:root {
    --bg: #0d1117;
    --panel: #151b24;
    --line: #2a3445;
    --text: #e7edf6;
    --muted: #9da9bb;
    --accent: #f9b233;
    --accent-2: #ffd88a;
}

* {
    /* box-sizing: border-box; */
}

#tudo {
    margin: 0;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    color: var(--text); 
    background:
        radial-gradient(circle at 0% 0%, #1f2b3f 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, #2d1d12 0%, transparent 35%),
        var(--bg);
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

.titulo {
    margin: 12px 0 6px;
    font-size: 28px;
}

.sub {
    margin: 0 0 20px;
    color: var(--muted);
}

.painel {
    background: linear-gradient(180deg, #1a2230, var(--panel));
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
}

.painel h2 {
    margin: 0 0 12px;
    font-size: 16px;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    /* padding: 8px 10px; */
    border-radius: 10px;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--text);
    background: #111722;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    font-size: 14px;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    background: #1b2433;
}

.btn.ativo {
    border-color: var(--accent);
    background: linear-gradient(180deg, #2d2214, #1a1714);
    color: #ffe6bc;
}

.clear-link {
    display: inline-block;
    margin-left: 8px;
    color: var(--accent-2);
    font-size: 13px;
    text-decoration: underline;
}

.btn img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
}

.status {
    margin: 8px 0 16px;
    color: var(--muted);
    font-size: 14px;
}

.tabela-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 740px;
    background: #111722;
}

th,
td {
    /* border-bottom: 1px solid #222c3b; */
    /* padding: 10px 8px; */
    /* text-align: left; */
    /* font-size: 14px; */
    /* vertical-align: middle; */
}

th {
    position: sticky;
    top: 0;
    background: #0f1520;
    color: var(--accent-2);
    z-index: 1;
}

td img {
    /* width: 40px; */
    height: 58px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #2b3647;
    background: #000;
}

.sem-resultados {
    padding: 18px;
    text-align: center;
    color: var(--muted);
}

.erro {
    margin: 8px 0 16px;
    color: #ff9b9b;
    font-size: 14px;
}

/* cores por tipo */
tr.tipo-monstro {background: rgb(255 138 51 / 49%);height: 90px;border-style: groove;border-width: 5px;}
tr.tipo-equipamento {background: rgb(76 175 80 / 37%);height: 90px;border-style: groove;}
tr.tipo-magica {background: rgb(46 125 50 / 54%);height: 90px;/* margin-top: 5px; */border-style: groove;}
tr.tipo-armadilha {background: rgb(134 75 187 / 55%);height: 90px;border-style: groove;}
tr.tipo-ritual {background: rgb(59 130 246 / 41%);height: 90px;border-style: groove;}

tr.tipo-monstro td,
tr.tipo-equipamento td,
tr.tipo-magica td,
tr.tipo-armadilha td,
tr.tipo-ritual td {
    transition: background-color 0.12s ease;
}

@media (max-width: 680px) {
    .titulo {
        font-size: 23px;
    }

    .btn-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}



.td-numero{
    position: absolute;
    background-color: #940303;
    padding: 4px;
    border-radius: 0px 0px 5px 0px;
    /* margin-top: 10px; */
    margin-left: -3px;
    z-index: 1;
    color: white;
}

.td-mini
{
    position: absolute;
    /* height: 160px; */
    margin-top: 11px;
    margin-left: 5px;
}

.td-nome{
    position: absolute;
    margin-top: 10px;
    margin-left: 93px;
    /* background-color: #fefefe; */
    color: #ffffff;
    padding: 2px;
    width: 68%;
    }

.td-classe{
    position: absolute;
    margin-top: 10px;
    margin-left: 64px;
}
.td-password{
    position: absolute;
    margin-top: 41px;
    margin-left: 90px;
    background-color: #0e1319;
    padding: 3px;
    color: white;
    border-radius: 3px;
}

.td-atk{
    position: absolute;
    margin-top: 41px;
    margin-left: 272px;
    /* padding: 3px; */
    color: white;
}
.td-def{
    position: absolute;
    margin-top: 39px;
    margin-left: 338px;
    padding: 3px;
    color: white;
}
.td-estrelas{
    position: absolute;
    margin-top: 41px;
    margin-left: 180px;
    padding: 3px;
    color: white;
    font-weight: bold;
}

#c_magic{
        background-color: #094909;
    }

#c_trap{
        background-color: #4a148c;
    }
    #c_ritual{
        background-color: #1e88e5;
    }
    #c_equip{
        background-color: #2e7d32;
    }