@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    --bg: #f7f9fc;
    --surface: #ffffff;
    --surface-soft: #f3f6fb;
    --text: #182033;
    --muted: #6c768d;
    --line: #e5eaf2;
    --brand: #2457d6;
    --brand-2: #4b79ee;
    --brand-soft: #edf3ff;
    --gold: #d6a72b;
    --danger: #b42318;
    --danger-soft: #fff1f0;
    --shadow: 0 20px 60px rgba(31, 49, 86, .10);
    --shadow-soft: 0 8px 26px rgba(31, 49, 86, .08);
    --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
svg { width: 1.1em; height: 1.1em; stroke-width: 1.9; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 78px;
    display: grid;
    grid-template-columns: minmax(190px, 260px) minmax(340px, 720px) 1fr;
    align-items: center;
    gap: 26px;
    padding: 12px 32px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229,234,242,.9);
}

.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.brand__mark {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--brand), #183eab);
    color: #fff;
    box-shadow: 0 9px 20px rgba(36,87,214,.22);
    font: 800 13px/1 Manrope, sans-serif;
    letter-spacing: -.4px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font: 800 16px/1 Manrope, sans-serif; letter-spacing: -.5px; }
.brand__text small { margin-top: 3px; color: var(--muted); font-weight: 600; font-size: 11px; }

.top-search,
.hero-search {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: .2s ease;
}
.top-search {
    height: 52px;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(31,49,86,.05);
}
.top-search:focus-within,
.hero-search:focus-within {
    border-color: rgba(36,87,214,.45);
    box-shadow: 0 0 0 4px rgba(36,87,214,.08), var(--shadow-soft);
}
.top-search > svg,
.hero-search > svg { flex: 0 0 auto; margin-left: 18px; color: #8791a8; }
.top-search input,
.hero-search input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}
.top-search input { padding: 0 12px; font-size: 14px; }
.top-search button,
.hero-search button {
    border: 0;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--brand);
}
.top-search button { width: 48px; height: 48px; }

.gateway-picker {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.gateway-picker select,
.gateway-card select {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    border-radius: 12px;
    outline: none;
    font-weight: 800;
}
.gateway-picker select { padding: 9px 12px; }

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 26px 40px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: #fff;
    font-size: 12px;
}
.footer > div:first-child { display: flex; gap: 10px; align-items: baseline; }
.footer strong { color: var(--text); }
.footer__meta { display: flex; align-items: center; gap: 8px; }

.is-home { background: #fff; }
.is-home .site-shell { min-height: 100vh; }
.is-home main { display: flex; align-items: center; justify-content: center; }

.home {
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 46px 20px;
    background:
        radial-gradient(circle at 50% 38%, rgba(36,87,214,.055), transparent 32%),
        linear-gradient(#fff, #fff);
}
.home__inner {
    width: min(100%, 760px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.hero-brand__emblem {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,0)),
        linear-gradient(145deg, #2d67ee, #163ca8);
    color: white;
    box-shadow: 0 18px 46px rgba(36,87,214,.24);
    font: 800 22px/1 Manrope, sans-serif;
    letter-spacing: -1px;
}
.hero-brand__title {
    font: 800 clamp(34px, 6vw, 58px)/.95 Manrope, sans-serif;
    letter-spacing: -3px;
}
.hero-brand__title b { color: var(--brand); font-weight: 800; }
.home__tagline {
    margin: 18px 0 32px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
}

.hero-search {
    width: 100%;
    height: 66px;
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}
.hero-search > svg { width: 22px; height: 22px; }
.hero-search input { padding: 0 14px; font-size: 16px; }
.hero-search button {
    margin-right: 8px;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: var(--brand);
    color: white;
    transition: .2s ease;
}
.hero-search button:hover { transform: translateY(-1px); background: #1d4bc2; }

.home__actions { margin-top: 20px; display: flex; gap: 10px; }
.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: 13px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 700;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--soft { background: var(--surface-soft); color: #4b566e; border-color: var(--line); }

.home__types {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.home__types a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    transition: .18s ease;
}
.home__types a:hover { background: var(--brand-soft); color: var(--brand); }
.home__types svg { width: 14px; height: 14px; }

.gateway-card {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7c879f;
    font-size: 11px;
    font-weight: 600;
}
.gateway-card select { padding: 6px 9px; font-size: 11px; }

.setup-note {
    margin-top: 26px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    padding: 15px 17px;
    border: 1px dashed #d8dfeb;
    background: #fafbfe;
    border-radius: 16px;
    color: var(--muted);
}
.setup-note svg { color: var(--gold); flex: 0 0 auto; margin-top: 2px; }
.setup-note div { display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 1.5; }
.setup-note strong { color: var(--text); }
.setup-note code { background: #edf1f7; padding: 1px 5px; border-radius: 5px; }

.suggest-box {
    position: absolute;
    z-index: 100;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: min(70vh, 560px);
    overflow: auto;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(31,49,86,.16);
    text-align: left;
    padding: 8px;
}
.suggest-box--hero { border-radius: 22px; }
.suggest-group + .suggest-group { border-top: 1px solid var(--line); margin-top: 5px; padding-top: 5px; }
.suggest-group__label {
    padding: 9px 10px 6px;
    color: #929bb0;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.suggest-item {
    display: grid;
    grid-template-columns: 42px 1fr 22px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 13px;
}
.suggest-item:hover, .suggest-item.is-active { background: var(--surface-soft); }
.suggest-item__visual {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    overflow: hidden;
    border-radius: 11px;
    background: #f5f7fb;
}
.suggest-item__visual img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.suggest-icon { color: var(--brand); }
.suggest-item__text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.suggest-item__text strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-item__text small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.suggest-item > svg { color: #9aa3b5; }

.search-page { padding: 26px 28px 70px; }
.search-wrap { width: min(100%, 1040px); margin: 0 auto; }
.search-tabs {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    padding: 0 0 13px;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
}
.search-tabs::-webkit-scrollbar { display: none; }
.search-tabs a {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.search-tabs a:hover { color: var(--text); background: #eef2f7; }
.search-tabs a.is-active { background: var(--brand-soft); color: var(--brand); }

.result-meta {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #8a94aa;
    font-size: 12px;
}
.result-meta strong { color: #59647a; }

.result-groups { display: grid; gap: 34px; }
.result-group { background: transparent; }
.result-group__heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.result-group__heading > div { display: flex; align-items: center; gap: 8px; }
.result-group__heading svg { color: var(--brand); }
.result-group__heading h2 { margin: 0; font: 800 14px/1 Manrope, sans-serif; }
.result-group__heading span {
    padding: 3px 7px; border-radius: 999px; background: #e9eef6; color: #7f899f; font-size: 10px; font-weight: 800;
}
.result-group__heading > a { color: var(--brand); font-size: 11px; font-weight: 800; }

.result-list {
    display: grid;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(31,49,86,.035);
}
.search-result {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 16px;
    padding: 18px;
}
.search-result + .search-result { border-top: 1px solid var(--line); }
.search-result__visual {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #f6f8fb;
    overflow: hidden;
}
.search-result__visual img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.search-result__visual svg { width: 26px; height: 26px; color: #97a1b4; }
.search-result__body { min-width: 0; }
.eyebrow {
    color: #8b95aa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.search-result h3 {
    margin: 4px 0 6px;
    font: 800 18px/1.2 Manrope, sans-serif;
    letter-spacing: -.35px;
}
.search-result h3 a:hover { color: var(--brand); }
.search-result p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}
.result-link {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 800;
}
.result-link svg { width: 12px; height: 12px; }

.state-card {
    min-height: 180px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.state-card > svg { width: 24px; height: 24px; color: var(--brand); }
.state-card strong, .state-card h1 { color: var(--text); }
.state-card p { color: var(--muted); line-height: 1.65; }
.state-card--error { border-color: #f0d3d0; background: var(--danger-soft); }
.state-card--error > svg { color: var(--danger); }
.state-card--large { width: min(720px, 100%); min-height: 260px; padding: 36px; align-items: flex-start; }
.state-card--large h1 { margin: 6px 0 12px; font: 800 26px/1.15 Manrope, sans-serif; }
.state-actions { margin-top: 22px; display: flex; gap: 10px; }
.error-page { min-height: 70vh; display: grid; place-items: center; padding: 50px 20px; }

.entity-page { padding: 24px 28px 72px; }
.entity-wrap { width: min(100%, 1180px); margin: 0 auto; }
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 18px;
    color: #8b95a9;
    font-size: 11px;
}
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs svg { width: 12px; height: 12px; }

.entity-hero {
    display: grid;
    grid-template-columns: 126px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: 0 14px 40px rgba(31,49,86,.055);
}
.entity-hero__visual {
    width: 126px; height: 126px;
    display: grid; place-items: center;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(145deg, #f8faff, #eef3fb);
    border: 1px solid #e9eef6;
}
.entity-hero__visual img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.entity-hero__visual svg { width: 42px; height: 42px; color: #9aa5b8; }
.entity-hero h1 {
    margin: 7px 0 7px;
    font: 800 clamp(27px, 4vw, 40px)/1 Manrope, sans-serif;
    letter-spacing: -1.5px;
}
.entity-hero__summary { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.entity-hero__actions { align-self: flex-start; display: flex; gap: 7px; }
.icon-btn {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: #6f7a90;
}
.icon-btn:hover, .icon-btn.is-copied { color: var(--brand); background: var(--brand-soft); border-color: #d9e4ff; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips span {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: #4967ad;
    font-size: 10px;
    font-weight: 700;
}
.chips--vertical { align-items: flex-start; }

.entity-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}
.entity-main { display: grid; gap: 20px; }
.entity-side { min-width: 0; }
.info-card {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 21px;
    box-shadow: 0 7px 24px rgba(31,49,86,.035);
}
.info-card--sticky { position: sticky; top: 98px; }
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
.section-title svg { color: var(--brand); }
.section-title h2 { margin: 0; font: 800 14px/1 Manrope, sans-serif; }
.section-title--spaced { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.count-pill { margin-left: auto; padding: 4px 8px; border-radius: 999px; background: var(--surface-soft); color: #7e899f; font-size: 10px; font-weight: 800; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.stat-grid--compact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat {
    min-height: 74px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 13px 14px;
    border-radius: 15px;
    background: #f7f9fc;
    border: 1px solid #edf1f6;
}
.stat span { color: #8a94a8; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.stat strong { font: 800 14px/1.2 Manrope, sans-serif; overflow-wrap: anywhere; }

.side-metrics { display: grid; }
.side-metrics > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.side-metrics > div:last-child { border-bottom: 0; }
.side-metrics span { color: var(--muted); font-size: 11px; }
.side-metrics strong { font: 800 13px/1 Manrope, sans-serif; }

.drop-list { display: grid; }
.drop-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 11px 6px;
    border-top: 1px solid var(--line);
}
.drop-row:first-child { border-top: 0; }
.drop-row:hover { background: #fafbfe; border-radius: 12px; }
.drop-row__visual {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f7fb;
}
.drop-row__visual img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.drop-row__visual svg { color: #98a2b5; }
.drop-row__main { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.drop-row__main strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-row__main span { color: var(--muted); font-size: 10px; }
.drop-row__chance { display: flex; min-width: 80px; flex-direction: column; align-items: flex-end; gap: 3px; }
.drop-row__chance strong { color: var(--brand); font: 800 12px/1 Manrope, sans-serif; }
.drop-row__chance span { color: #909aaf; font-size: 9px; }

.spawn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.spawn-card {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
    gap: 12px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: .18s ease;
}
.spawn-card:hover { transform: translateY(-1px); border-color: #cfdbf4; box-shadow: var(--shadow-soft); }
.spawn-card__visual { width: 68px; height: 58px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; background: #f5f7fb; }
.spawn-card__visual img { width: 100%; height: 100%; object-fit: cover; }
.spawn-card > div:last-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.spawn-card strong { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spawn-card span, .spawn-card small { color: var(--muted); font-size: 9px; }

.mini-link-list { display: grid; }
.mini-link-list a {
    display: grid;
    grid-template-columns: 32px 1fr 14px;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
}
.mini-link-list a:first-child { border-top: 0; }
.mini-link-list img {
    width: 30px; height: 30px;
    object-fit: contain;
    border-radius: 8px;
    background: #f6f8fb;
}
.mini-link-list a > svg:first-child { width: 16px; height: 16px; margin-left: 7px; color: #8792a8; }
.mini-link-list a > svg:last-child { width: 13px; height: 13px; color: #a5adbc; }
.mini-link-list span { font-size: 10px; font-weight: 700; }

.prose { color: #59657c; font-size: 12px; line-height: 1.75; }
.empty-copy { margin: 0; color: #8d97ab; font-size: 11px; line-height: 1.6; }
.side-label { margin: 16px 0 4px; color: #9aa3b5; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.relation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.relation-grid a, .relation-static {
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.relation-grid a:hover { background: var(--surface-soft); }
.relation-grid svg { color: var(--brand); flex: 0 0 auto; }
.relation-grid div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.relation-grid span { color: var(--muted); font-size: 9px; }
.relation-grid strong { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.generic-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.generic-data > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}
.generic-data span { color: var(--muted); font-size: 10px; }
.generic-data strong { text-align: right; font-size: 10px; overflow-wrap: anywhere; }

.map-preview { padding: 12px; }
.map-preview img { display: block; width: 100%; max-height: 540px; object-fit: contain; border-radius: 14px; background: #f7f9fc; }
.audio-player { width: 100%; height: 38px; }

.source-note {
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px dashed #dce2ec;
    border-radius: 14px;
    color: #8b95a9;
    font-size: 10px;
}
.source-note svg { flex: 0 0 auto; color: #8792a8; }
.source-note div { display: flex; flex-direction: column; gap: 3px; }
.source-note strong { color: #647087; }

@media (max-width: 980px) {
    .topbar { grid-template-columns: auto 1fr auto; gap: 14px; padding: 11px 18px; }
    .brand__text { display: none; }
    .brand__mark { width: 40px; height: 40px; }
    .gateway-picker label { display: none; }
    .entity-grid { grid-template-columns: 1fr; }
    .info-card--sticky { position: static; }
    .entity-side { order: -1; }
    .stat-grid--compact { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
    .topbar {
        grid-template-columns: 40px 1fr;
        min-height: auto;
        gap: 10px;
        padding: 10px 12px;
    }
    .gateway-picker { display: none; }
    .top-search { height: 46px; border-radius: 15px; }
    .top-search > svg { margin-left: 14px; }
    .search-page, .entity-page { padding: 18px 14px 54px; }
    .footer { flex-direction: column; align-items: flex-start; padding: 22px 18px; }
    .footer > div:first-child { flex-direction: column; gap: 3px; }

    .home { padding: 30px 15px; }
    .hero-brand__emblem { width: 66px; height: 66px; border-radius: 21px; }
    .hero-brand__title { letter-spacing: -2px; }
    .home__tagline { margin-bottom: 24px; }
    .hero-search { height: 60px; border-radius: 19px; }
    .home__actions { width: 100%; }
    .home__actions .btn { flex: 1; padding-inline: 10px; }

    .search-result { grid-template-columns: 58px 1fr; gap: 12px; padding: 14px; }
    .search-result__visual { width: 58px; height: 58px; border-radius: 13px; }
    .search-result h3 { font-size: 16px; }
    .result-link { display: none; }

    .entity-hero {
        grid-template-columns: 86px 1fr;
        gap: 15px;
        padding: 18px;
        border-radius: 20px;
    }
    .entity-hero__visual { width: 86px; height: 86px; border-radius: 18px; }
    .entity-hero__actions { grid-column: 1 / -1; justify-content: flex-end; }
    .entity-hero h1 { font-size: 26px; }
    .stat-grid, .stat-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spawn-grid, .relation-grid, .generic-data { grid-template-columns: 1fr; }
    .info-card { padding: 17px; border-radius: 18px; }
}

@media (max-width: 440px) {
    .hero-brand__title { font-size: 34px; }
    .home__types { gap: 3px; }
    .home__types a { padding: 8px 9px; }
    .home__types a:nth-child(n+5) { display: none; }
    .setup-note { display: none; }

    .entity-hero { grid-template-columns: 70px 1fr; }
    .entity-hero__visual { width: 70px; height: 70px; }
    .entity-hero__summary { font-size: 11px; }
    .chips { margin-top: 9px; }
    .drop-row { grid-template-columns: 42px 1fr auto; gap: 9px; }
    .drop-row__visual { width: 40px; height: 40px; }
    .drop-row__chance { min-width: 62px; }
}
