/* Mob detail pages, filters, and mob card grids. */

.mob-profile {
    display: grid;
    gap: 10px;
}

.mob-back-link {
    width: fit-content;
}

.mob-profile-card {
    display: grid;
    overflow: hidden;
    gap: 18px;
    border: 1px solid #88283a;
    border-radius: 15px 4px 15px 4px;
    background: rgba(255, 248, 223, 0.9);
    box-shadow: var(--shadow);
}

.mob-profile-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 8px 14px;
    border-bottom: 1px solid #8f6a47;
    background: linear-gradient(180deg, #7a1510, #4b0c07);
    color: #fff8df;
}

.mob-profile-title h1 {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    color: #fff8df;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 1px 1px 2px #000;
}

.mob-profile-top {
    display: grid;
    align-items: stretch;
    min-width: 0;
}

.mob-profile-panel {
    position: relative;
    display: grid;
    align-content: start;
}

.mob-profile-panel h2 {
    justify-self: center;
    min-width: min(190px, 70%);
}

.mob-profile-art {
    display: grid;
    place-items: center;
}

.mob-profile-art img {
    object-fit: contain;
    filter: drop-shadow(6px 8px 7px rgba(0, 0, 0, 0.42));
}

.mob-stat-stack {
    display: grid;
}

.mob-stat-stack.is-npc {
    padding-top: 8px;
}

.mob-stat-card {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    text-align: center;
}

.mob-stat-card strong {
    padding: 6px 10px;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 1px 1px 2px #000;
}

.mob-stat-card span {
    max-width: 100%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.mob-stat-card:nth-last-child(-n+2) span {
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 900;
}

.mob-spawn-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    min-width: 0;
}

.mob-spawn-group {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 7px;
    min-width: 0;
}

.mob-spawn-group.is-single {
    grid-template-rows: minmax(0, 1fr);
}

.mob-spawn-group h3 {
    display: inline-grid;
    justify-self: stretch;
    place-items: center;
    margin: 0;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.25;
    text-shadow: 1px 1px 2px #000;
}

.mob-drop-grid {
    --wiki-item-cell-size: 32px;

    display: grid;
    grid-template-columns: repeat(auto-fill, 32px);
    align-items: flex-start;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}

.mob-spawn-list {
    display: grid;
    align-content: start;
    grid-auto-rows: max-content;
    gap: 3px;
}

.mob-spawn-group > .mob-spawn-list,
.mob-spawn-group > .mob-stone-spawn-list {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 5px;
    overscroll-behavior: contain;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    scrollbar-width: thin;
    scrollbar-gutter: stable;
}

.mob-spawn-group > .mob-spawn-list::-webkit-scrollbar,
.mob-spawn-group > .mob-stone-spawn-list::-webkit-scrollbar {
    width: 8px;
}

.mob-spawn-group > .mob-spawn-list::-webkit-scrollbar-track,
.mob-spawn-group > .mob-stone-spawn-list::-webkit-scrollbar-track {
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 253, 238, 0.72), rgba(224, 204, 150, 0.48)),
        var(--scrollbar-track);
    box-shadow: inset 0 0 0 1px rgba(91, 56, 24, 0.16);
}

.mob-spawn-group > .mob-spawn-list::-webkit-scrollbar-thumb,
.mob-spawn-group > .mob-stone-spawn-list::-webkit-scrollbar-thumb {
    border: 2px solid var(--scrollbar-edge);
    border-radius: 999px;
    background: linear-gradient(180deg, #b45a43, var(--scrollbar-thumb) 52%, #5d3210);
    background-clip: padding-box;
}

.mob-spawn-group > .mob-spawn-list::-webkit-scrollbar-thumb:hover,
.mob-spawn-group > .mob-stone-spawn-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c16d4c, var(--scrollbar-thumb-hover) 58%, #3a1209);
    background-clip: padding-box;
}

.mob-spawn-row {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    align-items: start;
    gap: 5px;
    padding: 5px 7px;
    border: 1px solid rgba(143, 106, 71, 0.58);
    color: #2f1809;
    font-weight: 900;
}

.mob-spawn-row:hover {
    text-decoration: none;
}

.mob-spawn-row strong,
.mob-spawn-row small {
    display: block;
}

.mob-spawn-row strong {
    overflow-wrap: anywhere;
    font-size: 0.8rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mob-spawn-row small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 0.64rem;
}

.mob-bullet {
    width: 10px;
    height: 10px;
    margin-top: 3px;
    border: 2px solid #8f6a47;
    border-radius: 50%;
    box-shadow: 1px 1px 2px #000;
}

.mob-coordinate-line {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 3px;
}

.mob-coordinate-line em {
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(93, 50, 16, 0.1);
    color: #5d3210;
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 900;
}

.mob-stone-spawn-list {
    display: grid;
    gap: 8px;
}

.mob-stone-spawn-card {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 7px;
    border: 1px solid rgba(143, 106, 71, 0.42);
}

.mob-stone-spawn-head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    color: #2f1809;
    text-decoration: none;
}

.mob-stone-spawn-head:hover {
    text-decoration: none;
}

.mob-stone-spawn-head img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff8df;
}

.mob-stone-spawn-head strong,
.mob-stone-spawn-head small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mob-stone-spawn-head strong {
    font-size: 0.78rem;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.mob-stone-spawn-head:hover strong,
.mob-stone-spawn-head:focus-visible strong {
    text-decoration: underline;
}

.mob-stone-spawn-head small {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 900;
    white-space: nowrap;
}

.mob-drop-section {
    display: grid;
    justify-self: center;
    width: min(1080px, calc(100% - 24px));
    padding: 6px 0 0;
}

.mob-drop-panel--all .mob-drop-grid {
    overflow: visible;
    scrollbar-gutter: auto;
}

.mob-drop-tile {
    position: relative;
    display: grid;
    place-items: center;
    color: #2f1809;
}

.mob-drop-stack {
    position: absolute;
    font-weight: 900;
    text-align: center;
}

.mob-reward-section {
    gap: 10px;
    padding-top: 0;
}

.mob-reward-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    min-width: 0;
}

.mob-reward-card {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 8px 10px;
    border: 1px solid rgba(94, 54, 29, 0.42);
    border-radius: 5px;
    background:
        linear-gradient(90deg, rgba(240, 217, 162, 0.78), rgba(255, 248, 223, 0.68)),
        rgba(255, 248, 206, 0.82);
    color: #20130a;
    box-shadow: inset 0 0 8px rgba(112, 68, 27, 0.14);
    text-decoration: none;
}

.mob-reward-card:hover,
.mob-reward-card:focus-visible {
    border-color: rgba(124, 33, 24, 0.58);
    background:
        linear-gradient(90deg, rgba(236, 199, 112, 0.9), rgba(255, 248, 223, 0.78)),
        rgba(255, 248, 206, 0.95);
    color: #5f130f;
    text-decoration: none;
}

.mob-reward-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(94, 54, 29, 0.38);
    border-radius: 4px;
    background: rgba(255, 248, 223, 0.8);
}

.mob-reward-icon span {
    position: absolute;
    right: -6px;
    bottom: -6px;
    min-width: 25px;
    padding: 1px 5px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background: #64100d;
    color: #fff7d7;
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
}

.mob-reward-main {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.mob-reward-main strong,
.mob-reward-main small {
    min-width: 0;
}

.mob-reward-main strong {
    color: inherit;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.12;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mob-reward-main small {
    color: #5d3210;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.15;
}

.mob-rank-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
}

.mob-rank-chip {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    padding: 2px 6px;
    border: 1px solid rgba(240, 217, 162, 0.62);
    border-radius: 999px;
    background: #2f1d1f;
    color: #f0d9a2;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.mob-npc-shop-block {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.mob-npc-shop-block + .mob-npc-shop-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(143, 106, 71, 0.62);
}

.mob-npc-shop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.mob-npc-shop-head a {
    color: #5d3210;
    font-size: 0.92rem;
    font-weight: 900;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mob-npc-shop-head span {
    flex: 0 0 auto;
    padding: 3px 10px;
    border-radius: 999px;
    background: #5d3210;
    color: var(--text-light);
    font-size: 0.72rem;
    font-weight: 900;
}

.mob-npc-shop-grid {
    justify-content: start;
}

.mob-info-table {
    display: grid;
    grid-template-columns: repeat(3, minmax(82px, 1fr)) repeat(4, minmax(86px, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(136, 40, 58, 0.72);
}

.mob-info-head {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 34px;
    padding: 6px 8px;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    text-shadow: 1px 1px 2px #000;
}

.mob-info-head--group {
    grid-column: 1 / span 3;
}

.mob-info-head--sub {
    grid-row: 2;
    background: linear-gradient(180deg, #7d321d, #3a1209);
}

.mob-info-head--single {
    grid-row: 1 / span 2;
}

.mob-info-cell {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 42px;
    padding: 6px;
}

.mob-info-mark {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1;
}

.mob-info-mark.is-yes {
    border: 1px solid rgba(46, 125, 50, 0.55);
    background: rgba(46, 125, 50, 0.16);
    color: #2e7d32;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.68);
}

.mob-info-mark.is-no {
    border: 1px solid rgba(198, 40, 40, 0.55);
    background: rgba(198, 40, 40, 0.14);
    color: #c62828;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.68);
}

.mob-resistance-table {
    display: grid;
    grid-template-columns: repeat(15, minmax(44px, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(136, 40, 58, 0.72);
}

.mob-resistance-head {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 34px;
    padding: 6px 5px;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-align: center;
    text-shadow: 1px 1px 2px #000;
}

.mob-resistance-head--group {
    grid-row: 1;
}

.mob-resistance-head--label {
    grid-row: 2;
    background: linear-gradient(180deg, #7d321d, #3a1209);
    font-size: 0.62rem;
}

.mob-resistance-cell {
    display: grid;
    grid-row: 3;
    place-items: center;
    min-width: 0;
    min-height: 42px;
    padding: 6px 4px;
}

.mob-resistance-cell span {
    color: #88283a;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
}

.mob-resistance-cell.is-empty span {
    display: none;
}

.mob-damage-limit-table {
    display: grid;
    grid-template-columns: repeat(6, minmax(70px, 1fr));
    gap: 1px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(136, 40, 58, 0.72);
}

.mob-damage-limit-head {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 34px;
    padding: 6px 5px;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-align: center;
    text-shadow: 1px 1px 2px #000;
}

.mob-damage-limit-cell {
    display: grid;
    grid-row: 2;
    place-items: center;
    min-width: 0;
    min-height: 42px;
    padding: 6px 4px;
}

.mob-damage-limit-cell span {
    color: #88283a;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
}

.mob-profile-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-style: italic;
    font-weight: 800;
}

.mob-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 460px) minmax(160px, 220px);
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 18px;
}

.mob-search-form {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.mob-search-form .search-autocomplete {
    width: 100%;
}

.mob-search-form input {
    min-height: 42px;
}

.mob-filter-tabs {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    min-width: 0;
    padding: 5px;
    border: 1px solid rgba(125, 50, 29, 0.72);
    border-radius: 8px 0 8px 0;
    background:
        linear-gradient(180deg, rgba(255, 252, 231, 0.72), rgba(238, 230, 197, 0.74)),
        #f5f5dc;
    box-shadow: 1px 2px 4px rgba(31, 15, 4, 0.45), inset 0 0 10px rgba(112, 68, 27, 0.1);
}

.mob-filter-tab {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 36px;
    gap: 5px;
    overflow: hidden;
    padding: 5px 8px;
    border: 1px solid rgba(125, 50, 29, 0.72);
    border-radius: 2px 0 8px 0;
    background:
        linear-gradient(180deg, rgba(255, 249, 226, 0.82), rgba(231, 211, 153, 0.46)),
        #fff9df;
    color: #2f1809;
    font-weight: 900;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    transition:
        background 140ms ease,
        border-color 140ms ease,
        color 140ms ease,
        box-shadow 140ms ease;
}

.mob-filter-tab::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: transparent;
    content: "";
    transition: background 140ms ease;
}

.mob-filter-tab span {
    overflow: hidden;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.88rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mob-filter-tab:hover {
    border-color: #6f241b;
    background:
        linear-gradient(180deg, rgba(255, 238, 166, 0.78), rgba(220, 184, 92, 0.72)),
        #e8c86e;
    color: #5d140b;
    box-shadow: inset 0 0 0 1px rgba(255, 246, 201, 0.42);
    text-decoration: none;
}

.mob-filter-tab.is-active {
    border-color: #5d140b;
    background:
        linear-gradient(180deg, rgba(255, 235, 150, 0.9), rgba(197, 146, 48, 0.82)),
        #d6aa4b;
    color: #3a1209;
    box-shadow: inset 0 0 0 1px rgba(255, 246, 201, 0.42);
    text-decoration: none;
    text-shadow: 1px 1px 0 rgba(255, 246, 205, 0.52);
}

.mob-filter-tab:hover::after,
.mob-filter-tab.is-active::after {
    background: #8c2115;
}

.mob-filter-tab strong {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    padding: 3px 6px;
    border: 1px solid rgba(125, 50, 29, 0.38);
    border-radius: 999px;
    background: rgba(255, 248, 223, 0.78);
    color: #6f241b;
    font-size: 0.72rem;
    line-height: 1;
    text-shadow: none;
    white-space: nowrap;
}

.mob-filter-tab.is-active strong {
    border-color: rgba(93, 20, 11, 0.42);
    background: rgba(93, 20, 11, 0.86);
    color: #fff4cf;
}

.mob-sort-form {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-width: 0;
    width: min(100%, 220px);
}

.mob-sort-select {
    width: 100%;
    min-height: 42px;
    font-weight: 900;
}

/* Map/Item-aligned shell for the Mobs listing page. Mob cards remain unchanged. */

.mob-catalog {
    display: grid;
    min-width: 0;
    gap: 10px;
}

.mob-catalog-card.map-wiki-card {
    display: grid;
    min-width: 0;
    gap: 0;
    overflow: visible;
    border: 2px solid #7a1a13;
    border-radius: 18px 18px 0 0;
    background: #fbfade;
    box-shadow: 7px 9px 15px rgba(19, 13, 6, 0.36);
}

.mob-catalog-card > .mob-catalog-title {
    border-radius: 15px 15px 0 0;
}

.mob-catalog-title.map-wiki-titlebar {
    min-height: 44px;
    justify-content: flex-start;
    padding: 5px 18px;
    background: #2f1d1f;
    color: #f2e4b5;
}

.mob-catalog-title.map-wiki-titlebar h1 {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: inherit;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.18rem, 1.55vw, 1.55rem);
    line-height: 1.1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.mob-catalog-content {
    display: grid;
    min-width: 0;
    gap: 16px;
    padding: 18px 12px 14px;
}

.mob-catalog-filter-panel,
.mob-catalog-results-panel {
    min-width: 0;
    border: 2px solid #9e332d;
    background: rgba(255, 255, 232, 0.54);
}

.mob-catalog-filter-panel {
    display: grid;
    gap: 4px;
    padding: 10px 12px 12px;
}

.mob-catalog-filter-panel > h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(230px, 76%);
    min-height: 44px;
    margin: 0 auto 8px;
    padding: 6px 14px;
    border: 1px solid #f0d9a2;
    border-radius: 12px;
    background: #2f1d1f;
    color: #f0d9a2;
    font-family: Tahoma, Arial, sans-serif;
    font-size: clamp(1rem, 1.1vw, 1.18rem);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-shadow: 1px 1px 2px #000;
    box-shadow: 2px 3px 7px rgba(20, 8, 2, 0.36);
}

.mob-catalog .mob-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(170px, 220px);
    align-items: end;
    justify-content: stretch;
    min-width: 0;
    gap: 12px 16px;
    margin: 0;
}

.mob-catalog .mob-control-label {
    display: block;
    margin: 0 0 5px;
    color: #64100d;
    font-size: 0.69rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.mob-catalog .mob-search-form,
.mob-catalog .mob-sort-form {
    min-width: 0;
}

.mob-catalog .mob-search-form {
    grid-column: 1;
    grid-row: 1;
}

.mob-catalog .mob-sort-form {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    width: 100%;
}

.mob-catalog .mob-search-form input,
.mob-catalog .mob-sort-select {
    min-height: 42px;
    border: 1px solid rgba(94, 54, 29, 0.58);
    border-radius: 3px;
    background: #fffced;
    color: #2f1809;
    box-shadow: inset 0 0 7px rgba(112, 68, 27, 0.12);
}

.mob-catalog .mob-search-form input:focus,
.mob-catalog .mob-sort-select:focus {
    border-color: #7a1a13;
    outline: 2px solid rgba(158, 51, 45, 0.18);
    outline-offset: 1px;
}

.mob-catalog .mob-filter-tabs {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.mob-catalog .mob-filter-tab {
    min-height: 42px;
    padding: 6px 9px;
    border: 1px solid #7d321d;
    border-radius: 3px;
    background:
        linear-gradient(180deg, rgba(255, 244, 196, 0.7), rgba(229, 205, 137, 0.72)),
        #fff9df;
    color: #3a1209;
    box-shadow: inset 0 0 8px rgba(112, 68, 27, 0.14);
}

.mob-catalog .mob-filter-tab::after {
    height: 0;
}

.mob-catalog .mob-filter-tab:hover,
.mob-catalog .mob-filter-tab:focus-visible {
    border-color: #5d140b;
    background: #f8edbf;
    color: #5d140b;
    outline: 0;
}

.mob-catalog .mob-filter-tab.is-active {
    border-color: #2f1d1f;
    background: #2f1d1f;
    color: #f0d9a2;
    text-shadow: 1px 1px 2px #000;
    box-shadow: 2px 3px 6px rgba(20, 8, 2, 0.26);
}

.mob-catalog .mob-filter-tab span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.88rem;
}

.mob-catalog .mob-filter-tab strong {
    min-width: 38px;
    border: 1px solid rgba(125, 50, 29, 0.36);
    background: rgba(255, 248, 223, 0.82);
    color: #64100d;
}

.mob-catalog .mob-filter-tab.is-active strong {
    border-color: #f0d9a2;
    background: #f0d9a2;
    color: #2f1d1f;
}

.mob-catalog-results-panel {
    padding: 12px;
}

.mob-catalog-results-panel .list-meta {
    min-height: 42px;
    margin: 0 0 12px;
    padding: 8px 14px;
    border: 1px solid #f0d9a2;
    border-radius: 10px;
    background: #2f1d1f;
    color: #f0d9a2;
    font-size: 0.8rem;
    font-weight: 800;
    text-shadow: 1px 1px 2px #000;
    box-shadow: 2px 3px 7px rgba(20, 8, 2, 0.3);
}

.mob-catalog-results-panel .empty-state {
    min-height: 260px;
    border: 1px solid #9e332d;
    border-radius: 0;
    background: rgba(255, 255, 232, 0.54);
    box-shadow: none;
}

.mob-catalog .pagination {
    margin-top: 18px;
}

.mob-catalog .pagination a {
    min-width: 40px;
    height: 38px;
    border: 1px solid #7d321d;
    border-radius: 3px;
    background: #fff9df;
    color: #5d140b;
    box-shadow: inset 0 0 7px rgba(112, 68, 27, 0.14);
}

.mob-catalog .pagination a:hover,
.mob-catalog .pagination a:focus-visible,
.mob-catalog .pagination a.is-active {
    border-color: #2f1d1f;
    background: #2f1d1f;
    color: #f0d9a2;
    text-decoration: none;
    outline: 0;
}

@media (max-width: 860px) {
    .mob-catalog .mob-toolbar {
        grid-template-columns: 1fr;
    }

    .mob-catalog .mob-search-form,
    .mob-catalog .mob-sort-form,
    .mob-catalog .mob-filter-tabs {
        grid-column: 1;
        grid-row: auto;
    }

    .mob-catalog .mob-sort-form {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .mob-catalog-title.map-wiki-titlebar {
        min-height: 40px;
        padding: 5px 12px;
    }

    .mob-catalog-content {
        gap: 14px;
        padding: 16px 10px 12px;
    }

    .mob-catalog-filter-panel,
    .mob-catalog-results-panel {
        padding: 10px 8px;
    }

    .mob-catalog-filter-panel > h2 {
        width: min(230px, 82%);
        min-height: 42px;
    }

    .mob-catalog .mob-filter-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mob-catalog .mob-filter-tab {
        padding-right: 7px;
        padding-left: 7px;
    }

    .mob-catalog .mob-filter-tab strong {
        min-width: 36px;
        padding-right: 5px;
        padding-left: 5px;
    }

    .mob-catalog-results-panel .list-meta {
        justify-content: center;
        text-align: center;
    }

    .mob-catalog .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
}

.mob-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    align-items: start;
}

.mob-card {
    display: grid;
    grid-template-rows: auto auto minmax(168px, 1fr);
    overflow: hidden;
    min-height: 264px;
    padding: 6px;
    border: 1px solid #20130a;
    background: transparent;
    color: #1f1208;
    text-decoration: none;
    box-shadow: none;
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
}

.mob-card:hover,
.mob-card:focus-visible {
    border-color: var(--wiki-item-hover-border);
    background: var(--wiki-item-hover-bg);
    box-shadow: var(--wiki-item-hover-shadow);
    color: #7a1a13;
    outline: none;
    text-decoration: none;
    transform: translateY(-1px);
}

.mob-card-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 31px;
    gap: 2px;
    padding: 5px 7px;
    background: #050505;
    color: #fff;
}

.mob-card-head strong {
    min-width: 0;
    color: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: normal;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: normal;
}

.mob-card-tags {
    display: flex;
    align-items: start;
    justify-content: flex-start;
    min-height: 38px;
    gap: 8px;
    padding: 7px 0 6px;
}

.mob-card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 1px 5px;
    border: 1px dashed #20130a;
    color: #1f1208;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mob-card-art {
    display: grid;
    place-items: center;
    min-height: 168px;
    padding: 8px;
    background: rgba(196, 174, 112, 0.42);
    transition: background-color 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.mob-card-art img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    transition: filter 140ms ease, transform 140ms ease;
}

.mob-card:hover .mob-card-art,
.mob-card:focus-visible .mob-card-art {
    background: var(--wiki-item-hover-bg);
    box-shadow: inset 0 0 8px rgba(112, 68, 27, 0.16);
}

.mob-card:hover .mob-card-art img,
.mob-card:focus-visible .mob-card-art img {
    filter: brightness(1.08) saturate(1.08);
    transform: translateY(-1px);
}

/* Map detail skin for mob detail pages. */

.mob-profile-card.map-wiki-card {
    gap: 0;
    overflow: hidden;
    border: 2px solid #7a1a13;
    border-radius: 18px 18px 0 0;
    background: #fbfade;
    box-shadow: 7px 9px 15px rgba(19, 13, 6, 0.36);
}

.mob-profile-title.map-wiki-titlebar {
    min-height: 44px;
    justify-content: flex-start;
    gap: 9px;
    padding: 5px 18px;
    border-bottom: 0;
    background: #2f1d1f;
    color: #f2e4b5;
}

.mob-profile-title.map-wiki-titlebar h1 {
    color: inherit;
    font-size: clamp(1.18rem, 1.55vw, 1.55rem);
    line-height: 1.1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.mob-profile-top {
    grid-template-columns: minmax(210px, 0.9fr) minmax(190px, 280px) minmax(420px, 1.35fr);
    gap: 12px;
    padding: 18px 12px 14px;
}

.mob-profile-card .mob-profile-panel,
.mob-profile-card .mob-stat-stack {
    min-width: 0;
    border: 2px dashed #9e332d;
    border-radius: 0;
    background: rgba(255, 255, 232, 0.54);
    box-shadow: none;
}

.mob-profile-card .mob-profile-panel {
    gap: 0;
    padding: 8px 9px;
}

.mob-profile-card .mob-profile-panel h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(230px, 70%);
    min-height: 44px;
    margin: 0 auto 8px;
    padding: 6px 14px;
    border: 1px solid #f0d9a2;
    border-radius: 12px;
    background: #2f1d1f;
    color: #f0d9a2;
    font-family: Tahoma, Arial, sans-serif;
    font-size: clamp(1rem, 1.1vw, 1.18rem);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-shadow: 1px 1px 2px #000;
    box-shadow: 2px 3px 7px rgba(20, 8, 2, 0.36);
}

.mob-profile-card .mob-image-panel,
.mob-profile-card .mob-spawn-panel {
    padding-top: 8px;
}

.mob-profile-art {
    min-height: 302px;
}

.mob-profile-art img {
    width: min(84%, 260px);
    max-height: 292px;
}

.mob-profile-card .mob-stat-stack {
    align-content: center;
    min-height: 360px;
    gap: 10px;
    padding: 14px 12px;
}

.mob-profile-card .mob-stat-stack.is-npc {
    align-content: start;
}

.mob-profile-card .mob-stat-card strong {
    width: min(150px, 100%);
    border: 1px solid #f0d9a2;
    border-radius: 8px;
    background: #2f1d1f;
    color: #f0d9a2;
    box-shadow: 2px 3px 7px rgba(20, 8, 2, 0.36);
}

.mob-profile-card .mob-stat-card span {
    color: #12110c;
    text-shadow: none;
}

.mob-profile-card .mob-stat-card:nth-last-child(-n+2) span {
    color: #21170e;
}

.mob-profile-card .mob-spawn-split {
    gap: 12px;
}

.mob-profile-card .mob-spawn-group {
    height: 302px;
    padding: 0 4px 0 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.mob-profile-card .mob-spawn-group h3 {
    min-height: 28px;
    margin-bottom: 2px;
    border: 1px solid #f0d9a2;
    border-radius: 8px;
    background: #2f1d1f;
    color: #f0d9a2;
    box-shadow: 2px 3px 7px rgba(20, 8, 2, 0.24);
}

.mob-profile-card .mob-spawn-row,
.mob-profile-card .mob-stone-spawn-card {
    border-color: rgba(158, 51, 45, 0.24);
    border-radius: 0;
    background: transparent;
}

.mob-profile-card .mob-spawn-row:hover,
.mob-profile-card .mob-stone-spawn-head:hover {
    background: rgba(58, 40, 109, 0.09);
    color: #5f130f;
}

.mob-profile-card .mob-spawn-row strong,
.mob-profile-card .mob-stone-spawn-head strong {
    color: inherit;
    font-weight: 650;
    line-height: 1.04;
}

.mob-profile-card .mob-bullet {
    border-color: #7d321d;
    background: radial-gradient(circle, #ffe189 0 28%, #8c2115 32% 58%, #5d3210 62%);
}

.mob-profile-card .mob-drop-panel {
    min-height: 104px;
    padding: 10px 14px;
    overflow: visible;
}

.mob-profile-card .mob-reward-panel {
    min-height: 0;
    padding: 10px 14px 14px;
    overflow: visible;
}

.mob-profile-card .mob-drop-grid {
    gap: 2px;
    justify-content: flex-start;
    padding: 0;
}

.mob-profile-card .mob-drop-tile {
    width: 32px;
    border: 0;
    border-radius: 3px;
    background: rgba(255, 248, 206, 0.85);
    box-shadow: inset 0 0 8px rgba(112, 68, 27, 0.16);
}

.mob-profile-card .mob-drop-stack {
    right: 0;
    bottom: 0;
    min-width: 16px;
    height: auto;
    padding: 0 3px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background: #64100d;
    color: #fff7d7;
    font-size: 0.56rem;
    line-height: 1.35;
}

.mob-profile-card .mob-extra-panel,
.mob-profile-card .mob-npc-shop-panel,
.mob-profile-card .mob-npc-crafting-panel,
.mob-profile-card .mob-resistance-panel,
.mob-profile-card .mob-damage-limit-panel {
    margin: 4px 12px 14px;
    padding: 10px 14px 14px;
}

.mob-profile-card .mob-info-table,
.mob-profile-card .mob-resistance-table,
.mob-profile-card .mob-damage-limit-table {
    border-color: #2f1d1f;
    border-radius: 0;
    background: rgba(47, 29, 31, 0.78);
}

.mob-profile-card .mob-info-head,
.mob-profile-card .mob-resistance-head,
.mob-profile-card .mob-damage-limit-head {
    background: #2f1d1f;
    color: #f0d9a2;
}

.mob-profile-card .mob-info-cell,
.mob-profile-card .mob-resistance-cell,
.mob-profile-card .mob-damage-limit-cell {
    background: rgba(255, 249, 223, 0.68);
}

@media (max-width: 1200px) {
    .mob-profile-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mob-spawn-panel {
        grid-column: 1 / -1;
    }

    .mob-profile-card .mob-stat-stack {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .mob-profile-title.map-wiki-titlebar {
        min-height: 40px;
        padding: 5px 12px;
    }

    .mob-profile-top {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 10px 12px;
    }

    .mob-spawn-panel {
        grid-column: auto;
    }

    .mob-profile-card .mob-profile-panel h2 {
        width: min(230px, 82%);
        min-height: 42px;
    }

    .mob-profile-card .mob-spawn-split {
        grid-template-columns: 1fr;
    }

    .mob-profile-card .mob-spawn-group {
        height: 260px;
    }

    .mob-profile-art {
        min-height: 240px;
    }

    .mob-profile-art img {
        max-height: 230px;
    }

    .mob-drop-section {
        width: 100%;
        padding: 4px 10px 12px;
    }

    .mob-reward-grid {
        grid-template-columns: 1fr;
    }

    .mob-profile-card .mob-extra-panel,
    .mob-profile-card .mob-npc-shop-panel,
    .mob-profile-card .mob-npc-crafting-panel,
    .mob-profile-card .mob-resistance-panel,
    .mob-profile-card .mob-damage-limit-panel {
        margin-right: 10px;
        margin-left: 10px;
    }
}
