/* Monsters — vibe Tibia/MMORPG medieval. Slate escuro como base + dourado
   envelhecido como accent. Serif decorativa em titulos e values. UM card
   principal, hierarquia por tipografia + ornamentos + espaco. */

@import url('https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&family=IM+Fell+DW+Pica:ital@0;1&display=swap');

.monster-detail {
    --m-bg-card:       #0b0f17;            /* quase preto, slate frio */
    --m-bg-soft:       rgba(0, 0, 0, 0.25);
    --m-border:        rgba(148, 163, 184, 0.18);
    --m-border-strong: rgba(148, 163, 184, 0.32);
    --m-divider:       rgba(148, 163, 184, 0.14);
    --m-accent:        #94a3b8;            /* slate-400 — links e ornamentos */
    --m-accent-hi:     #cbd5e1;            /* slate-300 — hover */
    --m-text:          #bfc8d3;            /* levemente apagado — menos brilho que os stats (--m-stat-value), mas ainda forte */
    --m-text-soft:     rgba(226, 232, 240, 0.62);
    --m-text-mute:     rgba(226, 232, 240, 0.42);
    --m-stat-value:    #f1f5f9;            /* slate-100 — values em destaque */
    --m-font-display:  'Cardo', 'Trajan Pro', 'Times New Roman', serif;
    --m-font-section:  'IM Fell DW Pica', 'Cardo', 'Times New Roman', serif;
}

/* ===========================================================
   SEARCH BAR (escopo monsters; mesmo HTML do items mas estilo proprio)
   =========================================================== */
.monsters-search-form {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

#monsters-root .items-search-bar {
    margin-bottom: 18px;
    padding: 4px 0 12px;
}

#monsters-root .items-search-bar input[type="text"] {
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(18, 22, 30, 0.55);
    color: #e2e8f0;
    font-size: 13px;
    width: 260px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

#monsters-root .items-search-bar input[type="text"]::placeholder {
    color: rgba(226, 232, 240, 0.35);
}

#monsters-root .items-search-bar input[type="text"]:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.15);
}

#monsters-root .items-search-bar input[type="submit"],
#monsters-root .items-search-bar input[type="button"] {
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(148, 163, 184, 0.10);
    color: #cbd5e1;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: background 0.15s, border-color 0.15s;
}

#monsters-root .items-search-bar input[type="submit"]:hover,
#monsters-root .items-search-bar input[type="button"]:hover {
    background: rgba(148, 163, 184, 0.20);
    border-color: rgba(148, 163, 184, 0.5);
}

/* Espacamento breadcrumb no escopo monsters */
#monsters-root .item-breadcrumb {
    margin: 6px 0 18px;
    color: var(--m-text-mute);
}

#monsters-root .item-breadcrumb a {
    color: #94a3b8;
}

#monsters-root .item-breadcrumb a:hover {
    color: #cbd5e1;
    text-decoration: underline;
}

/* ===========================================================
   GRID + SEARCH (tabelas)
   =========================================================== */

/* Padding lateral do wrapper — afasta titulo, nav e tabela das margens
   do textnew_content_inside (mesma logica do #items-root). */
#monsters-root {
    padding: 0 12px;
}

/* Header da pagina inicial (grid view) — titulo discreto mas com personalidade.
   Cinzel pra conectar com o detail. Border-bottom curto na propria width do h1. */
.monsters-grid-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.monsters-grid-title {
    margin: 0;
    font-family: 'Cardo', 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1.4px;
    color: #e2e8f0;
    text-transform: uppercase;
    line-height: 1.1;
}

.monsters-grid-title__home {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.monsters-grid-title__home:hover {
    color: #cbd5e1;
}

.monsters-grid-title__sep {
    color: rgba(148, 163, 184, 0.5);
    margin: 0 4px;
    font-weight: 400;
}

.monsters-grid-header__count {
    color: rgba(226, 232, 240, 0.45);
    font-size: 12px;
    letter-spacing: 0.4px;
    font-variant-numeric: tabular-nums;
}

/* td.monster-col-sprite (em vez de so .monster-col-sprite) pra empatar
   especificidade com .table-standard td do components.css. Source order
   decide: monsters.css carrega depois. */
td.monster-col-sprite {
    width: 64px;
    text-align: right;
    vertical-align: middle;
}

.monster-col-sprite img {
    max-width: 64px;
    max-height: 64px;
    image-rendering: pixelated;
    vertical-align: middle;
}

.monsters-count {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    font-weight: normal;
    margin-left: 6px;
}

.monsters-cat-nav {
    margin-bottom: 8px;
}

.monsters-cat-nav .cat-count {
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    font-weight: normal;
    margin-left: 2px;
}

/* Filtros Hide Ancients / Hide Raid — logo abaixo da nav de categorias */
.monsters-filter-bar {
    display: flex;
    gap: 18px;
    align-items: center;
    margin: 0 0 14px;
}

.monsters-filter-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #aab6c4;
    user-select: none;
}

.monsters-filter-check input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #94a3b8;
    cursor: pointer;
}

.monsters-filter-check:hover {
    color: #cbd5e1;
}

/* Tags de categoria (defaults pra header detail; mini pra tabelas) */
.monster-cat-tag {
    display: inline-block;
    padding: 2px 9px;
    margin: 1px 2px 1px 0;
    background: rgba(148, 163, 184, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    font-size: 11px;
    color: #cbd5e1;
    text-decoration: none;
    line-height: 1.3;
}

.monster-cat-tag:hover {
    background: rgba(148, 163, 184, 0.22);
    border-color: rgba(148, 163, 184, 0.5);
    text-decoration: none;
}

.monster-col-cats {
    width: 110px;
    white-space: normal;
    line-height: 1.2;
}

.monster-cat-tag--mini {
    display: block;
    margin: 2px 0;
    padding: 1px 7px;
    font-size: 9.5px;
    border-radius: 8px;
    text-align: center;
}

/* ===========================================================
   DETAIL — UM card so, hierarquia por tipografia
   =========================================================== */

/* Card principal: textura SVG noise sutil em tom slate frio. Border simples. */
.monster-detail-card {
    background-color: var(--m-bg-card);
    background-image:
        radial-gradient(ellipse at top, rgba(148, 163, 184, 0.04), transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.55 0 0 0 0 0.65 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    border: 1px solid var(--m-border-strong);
    color: var(--m-text);
    padding: 24px 32px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.3);
}

/* H2 — nome do monstro: Cinzel serif decorativa + drop cap accent slate */
.monster-detail-card h2 {
    color: var(--color-heading);
    margin: 0;
    font-family: var(--m-font-display);
    letter-spacing: 0.5px;
    text-shadow: var(--text-shadow-heading);
}

.monster-detail-card h2::first-letter {
    color: #cbd5e1;
    font-size: 1.18em;
    font-weight: 700;
}

/* H3 — header de secao: IM Fell serif + ornamento slate antes do texto via
   data-ornament. */
.monster-detail-card h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: #94a3b8;
    font-family: var(--m-font-display);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    padding: 0 6px 6px 6px;
    border: 0;
    border-bottom: 1px solid var(--m-border-strong);
    line-height: 1.1;
}

.monster-detail-card h3::before {
    content: attr(data-ornament);
    color: var(--m-accent);
    font-size: 0.92em;
    font-family: 'Times New Roman', serif;  /* simbolos unicode renderizam melhor em serif neutra */
}

/* ---- HERO ---- */
.monster-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--m-divider);
}

.monster-sprite {
    min-width: 80px;
    min-height: 80px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--m-border);
    border-radius: 10px;
    flex-shrink: 0;
}

.monster-sprite img {
    image-rendering: pixelated;
}

.monster-header__info {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.monster-header__info h2 {
    font-size: 24px;
    line-height: 1.05;
    margin-bottom: 5px;
    letter-spacing: -0.2px;
}

.monster-name-desc {
    color: var(--m-text-soft);
    font-style: italic;
    margin-bottom: 14px;
    font-size: 13px;
}

.monster-header__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* ---- STATS — bloco horizontal, sem sub-cards ---- */
.monster-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px 22px;
    padding: 2px 0;
}

.monster-stats__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.monster-stats__label {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--m-text-mute);
    font-weight: 600;
}

.monster-stats__value {
    font-size: 15px;
    font-weight: 700;
    color: var(--m-stat-value);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    font-family: var(--m-font-display);
    letter-spacing: 0.2px;
}

/* Atributos ocultos (<monster hide="..."> no XML): "???" de mistério, apagado. */
.monster-stats__value--hidden {
    color: var(--m-text-mute);
    letter-spacing: 3px;
    font-weight: 600;
}

/* Stat destacado (Combo Damage, etc): cor amber + barra accent ao lado */
.monster-stats__item--featured .monster-stats__label {
    color: rgba(251, 191, 36, 0.75);
}

.monster-stats__item--featured .monster-stats__value {
    color: #fbbf24;
}

/* Seções ocultas (combate/loot escondidos via <monster hide="...">) — placeholder "???". */
.monster-section--hidden .monster-hidden-note,
.monster-hidden-note {
    color: var(--m-text-mute);
    font-style: italic;
    letter-spacing: 2px;
    font-size: 14px;
    margin: 4px 0 0;
}

/* ---- SECTIONS — separador ornamentado ----
   Linha horizontal com fade nas pontas + diamante dourado centralizado.
   Pseudo-element ::before faz a linha; ::after faz o ornamento sobreposto. */
.monster-section {
    margin-top: 32px;
    padding-top: 22px;
    position: relative;
}

.monster-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(148, 163, 184, 0.35) 50%, transparent 100%);
}

.monster-section::after {
    content: '◆';
    display: none;
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--m-accent);
    background: var(--m-bg-card);
    padding: 0 9px;
    font-size: 9px;
}

/* Combat Behavior tem separador mais marcado (info diferente) */
.monster-section--info::before {
    background: linear-gradient(to right, transparent 0%, rgba(148, 163, 184, 0.55) 50%, transparent 100%);
}

.monster-combat-pair {
    margin-top: 32px;
    padding-top: 22px;
    position: relative;
}

.monster-combat-pair::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(148, 163, 184, 0.35) 50%, transparent 100%);
}

.monster-combat-pair::after {
    content: '◆';
    display: none;
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--m-accent);
    background: var(--m-bg-card);
    padding: 0 9px;
    font-size: 9px;
}

/* Filhos do pair nao precisam de separador proprio (o pair ja tem) */
.monster-combat-pair > .monster-section {
    margin-top: 0;
    padding-top: 0;
}

.monster-combat-pair > .monster-section::before,
.monster-combat-pair > .monster-section::after {
    content: none;
}

/* ---- IMMUNITIES — grid 3xN: enche 3 verticalmente, depois proxima coluna ---- */
.monster-imm-list {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
    gap: 5px 26px;
    font-size: 11px;
    color: var(--m-text);
    justify-content: start;
}

.monster-imm-list .monster-imm {
    font-weight: 600;
    line-height: 1.4;
}

/* Spell icon — Lucide injeta SVG dentro do <i>. Tamanho e cor herdada via
   currentColor. Modifier .spell-icon--<type> define a cor. */
.monster-detail .spell-icon[data-lucide],
.monster-detail .spell-icon {
    display: inline-block;
    vertical-align: -2px;
    margin-right: 6px;
}
.monster-detail .spell-icon svg {
    width: 13px;
    height: 13px;
    stroke-width: 2.6;
}

/* Default = neutro slate (speed, strength, drunk, invisible, outfit, paralyze).
   IMPORTANTE: declarado ANTES dos modifiers pra que a cor do tipo vencer
   por source order (mesma especificidade). */
.monster-detail .spell-icon { color: #94a3b8; }

/* Cores por tipo aplicadas no icone (currentColor herda no SVG injetado) */
.monster-detail .spell-icon--physical  { color: #aab6c4; }
.monster-detail .spell-icon--fire      { color: #ff6b35; }
.monster-detail .spell-icon--ice       { color: #5fcfff; }
.monster-detail .spell-icon--energy    { color: #b377ff; }
.monster-detail .spell-icon--earth     { color: #7bc950; }
.monster-detail .spell-icon--holy      { color: #ffe066; }
.monster-detail .spell-icon--death     { color: #b07acc; }
.monster-detail .spell-icon--healing   { color: #4ade80; }
.monster-detail .spell-icon--lifedrain { color: #e8634a; }
.monster-detail .spell-icon--manadrain { color: #4d8dff; }
.monster-detail .spell-icon--drown     { color: #4d9eff; }
.monster-detail .spell-icon--paralyze  { color: #9a2424; }   /* bordo escuro */

/* Resistance type ainda usa attr-name--<type> (sem icone, so cor no nome) */
.monster-detail .attr-name--physical  { color: #aab6c4; }
.monster-detail .attr-name--fire      { color: #ff6b35; }
.monster-detail .attr-name--ice       { color: #5fcfff; }
.monster-detail .attr-name--energy    { color: #b377ff; }
.monster-detail .attr-name--earth     { color: #7bc950; }
.monster-detail .attr-name--holy      { color: #ffe066; }
.monster-detail .attr-name--death     { color: #b07acc; }

/* ---- ELEMENTAL RESISTANCES — linha simples, sem caixinha por elemento ---- */
.monster-elem-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 6px 24px;
    font-size: 12px;
}

.monster-elem-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 3px 0;
}

.monster-elem-row__type {
    font-weight: 600;
}

.monster-elem-row__pct {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 12px;
}

.monster-elem-row--resist .monster-elem-row__pct { color: #4ade80; }
.monster-elem-row--weak   .monster-elem-row__pct { color: #f87171; }

/* ---- SPELL ROWS (attacks + defenses) — linhas, sem cards ---- */
.monster-spell-rows {
    display: flex;
    flex-direction: column;
}

/* Attacks + Defenses lado a lado quando ambos existem (grid 2-col) */
.monster-combat-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-top: 36px;
}

.monster-combat-pair > .monster-section {
    margin-top: 0;
}

/* Ordem: nome | damage | chance | meta-trigger (popup) */
.spell-row {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(70px, 0.85fr) 46px 22px;
    gap: 10px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dotted var(--m-divider);
    font-size: 11px;
}

.spell-row:last-child {
    border-bottom: 0;
}

.spell-row__name {
    font-weight: 700;
    font-size: 11.5px;
    color: var(--m-text);
    text-transform: capitalize;
}

.spell-row__damage {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--m-text-soft);
    font-variant-numeric: tabular-nums;
    font-family: var(--m-font-display);
    letter-spacing: 0.2px;
}

.spell-row__chance {
    font-size: 10.5px;
    color: var(--m-text-mute);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* Trigger do popup do meta — botao sutil com icone "info". Hover (desktop) e
   :focus (mobile tap) revelam o popup. CSS-only, sem JS. */
.spell-row__meta-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--m-text-mute);
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.spell-row__meta-trigger:hover,
.spell-row__meta-trigger:focus-visible {
    color: var(--m-accent);
    background: rgba(148, 163, 184, 0.08);
    outline: none;
}

.spell-row__meta-trigger svg {
    width: 13px;
    height: 13px;
}

.spell-row__meta-popup {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    max-width: 280px;
    width: max-content;
    padding: 8px 12px;
    background: rgba(10, 14, 22, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 6px;
    color: var(--m-text);
    font-size: 11px;
    line-height: 1.5;
    text-transform: none;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    visibility: hidden;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    pointer-events: none;
    white-space: normal;
    z-index: 20;
    font-weight: 500;
}

.spell-row__meta-trigger:hover .spell-row__meta-popup,
.spell-row__meta-trigger:focus .spell-row__meta-popup,
.spell-row__meta-trigger:focus-visible .spell-row__meta-popup {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Linha que liga a meta-trigger ao popup pra "respiro" visual */
.spell-row__meta-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 8px;
    border: 5px solid transparent;
    border-top-color: rgba(148, 163, 184, 0.3);
}

/* ---- SUMMONS — linhas simples ---- */
.monster-summon-rows {
    display: flex;
    flex-direction: column;
}

.summon-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px dotted var(--m-divider);
    text-decoration: none;
}

.summon-row:last-child {
    border-bottom: 0;
}

.summon-row__name {
    color: var(--m-accent);
    font-weight: 600;
    font-size: 12.5px;
}

.summon-row:hover .summon-row__name {
    color: var(--m-accent-hi);
    text-decoration: underline;
}

.summon-row__meta {
    color: var(--m-text-mute);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

/* ---- DROPS TABLE ---- */
.monster-drops-table {
    width: 100%;
}

.monster-drops-table .items-col-icon img {
    max-width: 32px;
    max-height: 32px;
    image-rendering: pixelated;
}

/* ---- COMBAT BEHAVIOR ---- */
.behavior-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 2px 24px;
    margin-bottom: 10px;
}

.behavior-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
    border-bottom: 1px dotted var(--m-divider);
    font-size: 11.5px;
}

.behavior-label {
    color: var(--m-text-mute);
    text-transform: uppercase;
    font-size: 9.5px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.behavior-value {
    color: var(--m-text);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: 11.5px;
}

.monster-badges {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.monster-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.monster-badge--good {
    background: rgba(74, 222, 128, 0.10);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #86efac;
}

.monster-badge--neutral {
    background: rgba(148, 163, 184, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.32);
    color: #cbd5e1;
}

.monster-badge--bad {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.38);
    color: #fca5a5;
}

/* ---- BACK LINK ---- */
.monster-back {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--m-divider);
}

.monster-detail .item-back-link {
    color: var(--m-accent);
}

.monster-detail .item-back-link:hover {
    color: var(--m-accent-hi);
    text-decoration: underline;
}

/* ---- MOBILE ---- */
@media (max-width: 720px) {
    /* Esconde coluna Categories na tabela de grid — pode ter várias pills por
       linha que somam largura excessiva no mobile. Player vê as categorias
       no detail do monstro ou via sub-nav. */
    .monster-col-cats {
        display: none;
    }

    .monster-detail-card {
        padding: 22px 20px;
    }
    .monster-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .monster-header__cats {
        justify-content: center;
    }
    .monster-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .monster-combat-pair {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .spell-row {
        grid-template-columns: 1fr auto 44px 22px;
        gap: 8px;
    }
}

/* Phones em retrato (iPhone 13/12 Pro = 390px): com Categories já oculto,
   as 5 colunas restantes ainda não cabem e "Max Combo" era cortado. Escondemos
   Max Combo (info secundária — segue no detail) e apertamos padding/sprite pra
   Image/Name/HP/Experience caberem sem corte nem scroll horizontal. */
@media (max-width: 540px) {
    .monster-col-combo {
        display: none;
    }
    #tableMonsters td,
    #tableMonsters th {
        padding-left: 6px;
        padding-right: 6px;
    }
    td.monster-col-sprite {
        width: 44px;
    }
    .monster-col-sprite img {
        max-width: 44px;
        max-height: 44px;
    }
}
