.bst {
    padding: 28px 0 40px;
}

.bst-hero {
    position: relative;
    padding: 36px 40px 30px;
    margin-bottom: 18px;
    background:
        radial-gradient(600px 220px at 85% 0%, rgba(184, 68, 47, 0.16), transparent 70%),
        var(--basalt-800);
    border: 1px solid var(--stone-line);
    border-radius: var(--radius-lg);
}

.bst-back {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--brass);
    font-size: 14px;
    text-decoration: none;
}

.bst-back::before {
    content: '‹ ';
}

.bst-back:hover {
    color: var(--bone);
}

.bst-hero h1 {
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.bst-hero p {
    max-width: 640px;
    color: var(--bone-dim);
    font-size: 16px;
}

.bst-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.bst-badges span {
    padding: 4px 12px;
    background: var(--basalt-900);
    border: 1px solid var(--stone-line);
    border-radius: 999px;
    color: var(--bone-dim);
    font-size: 13px;
}

.bst-badges b {
    color: var(--bone);
}

.bst-error {
    padding: 18px 22px;
    background: rgba(184, 68, 47, 0.1);
    border: 1px solid var(--ember);
    border-radius: var(--radius-md);
    color: #e7b4a5;
}

.bst-filters {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(140px, 1fr)) minmax(170px, 1.1fr) minmax(150px, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 14px 16px;
    margin-bottom: 18px;
    background: var(--basalt-800);
    border: 1px solid var(--stone-line);
    border-radius: var(--radius-lg);
}

.bst-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.bst-field > span {
    color: var(--ash);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bst-field input,
.bst-field select {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    background: var(--basalt-900);
    border: 1px solid var(--stone-line);
    border-radius: var(--radius-sm);
    color: var(--bone);
    font-size: 14px;
}

.bst-field input:focus,
.bst-field select:focus {
    outline: none;
    border-color: var(--ember);
}

.bst-cr-range {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bst-cr-range i {
    color: var(--ash);
    font-style: normal;
}

.bst-reset {
    height: 38px;
    padding: 0 14px;
    background: transparent;
    border: 1px dashed var(--stone-hover);
    border-radius: var(--radius-sm);
    color: var(--bone-dim);
    font-size: 14px;
    cursor: pointer;
}

.bst-reset:hover {
    color: var(--bone);
    border-color: var(--bone-dim);
}

.bst-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 18px;
    align-items: start;
}

.bst-count {
    margin: 0 4px 8px;
    color: var(--ash);
    font-size: 13px;
}

.bst-count b {
    color: var(--bone-2);
}

.bst-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bst-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 9px 12px;
    background: var(--basalt-800);
    border: 1px solid var(--stone-line);
    border-radius: var(--radius-md);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.bst-row:hover {
    border-color: var(--stone-hover);
    background: #241b19;
}

.bst-row.is-active {
    border-color: var(--ember);
    background: rgba(184, 68, 47, 0.08);
}

.bst-cr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 42px;
    border-radius: 8px;
    background: var(--basalt-900);
    border: 1px solid var(--stone-line);
    color: var(--bone);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.bst-row.has-medal {
    grid-template-columns: 64px minmax(0, 1fr) auto auto;
    padding: 8px 12px 8px 8px;
}

.bst-medal {
    position: relative;
    width: 64px;
    height: 64px;
}

.bst-medal img {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 40%;
    border: 2px solid #5a4339;
    background: var(--basalt-900);
    transition: border-color 0.15s, transform 0.2s;
}

.bst-row:hover .bst-medal img {
    transform: scale(1.04);
}

.bst-row.is-active .bst-medal img {
    border-color: var(--ember);
}

.bst-medal.no-img img {
    visibility: hidden;
}

.bst-medal.no-img {
    border-radius: 50%;
    background: var(--basalt-900);
    border: 1px solid var(--stone-line);
}

.bst-medal-cr {
    position: absolute;
    right: -6px;
    bottom: -3px;
    min-width: 26px;
    padding: 2px 6px;
    background: var(--basalt-900);
    border: 1px solid var(--stone-line);
    border-radius: 8px;
    color: var(--bone);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}

.bst-portrait {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 20px 20px 0;
    overflow: hidden;
    isolation: isolate;
}

.bst-portrait::before {
    content: '';
    position: absolute;
    inset: -30px;
    z-index: -2;
    background: var(--pic) center / cover;
    filter: blur(22px) brightness(0.45) saturate(1.1);
}

.bst-portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, var(--basalt-800) 0%, rgba(26, 19, 17, 0) 45%);
}

.bst-portrait img {
    display: block;
    width: min(260px, 70%);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(241, 232, 219, 0.14);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.bst-cr small {
    margin-bottom: 3px;
    color: var(--ash);
    font-family: var(--font-ui);
    font-size: 9px;
    letter-spacing: 0.1em;
}

.bst-names {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.bst-names b {
    color: var(--bone);
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bst-names small {
    color: var(--ash);
    font-size: 12.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bst-tags {
    display: flex;
    gap: 4px;
}

.bst-tags i {
    padding: 2px 7px;
    border: 1px solid var(--stone-line);
    border-radius: 999px;
    color: var(--brass);
    font-size: 11px;
    font-style: normal;
}

.bst-mini {
    display: flex;
    gap: 10px;
    color: var(--ash);
    font-size: 12.5px;
    white-space: nowrap;
}

.bst-mini b {
    color: var(--bone-2);
}

.bst-empty {
    padding: 28px;
    background: var(--basalt-800);
    border: 1px dashed var(--stone-hover);
    border-radius: var(--radius-md);
    color: var(--bone-dim);
    text-align: center;
}

.bst-sheet {
    position: sticky;
    top: calc(var(--header-h) + var(--tb, 0px) + 14px);
    max-height: calc(100vh - var(--header-h) - var(--tb, 0px) - 28px);
    overflow-y: auto;
    background: var(--basalt-800);
    border: 1px solid var(--stone-line);
    border-top: 3px solid var(--ember);
    border-radius: var(--radius-lg);
}

.bst-sheet-empty {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 48px 32px;
    color: var(--ash);
    text-align: center;
}

.bst-sheet-empty b {
    color: var(--bone-2);
    font-family: var(--font-display);
    font-size: 20px;
}

.bst-sheet-inner {
    padding: 22px 24px 26px;
}

.bst-sheet-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.bst-title h2 {
    font-size: 28px;
    line-height: 1.1;
}

.bst-title span {
    display: block;
    margin-top: 2px;
    color: var(--ash);
    font-size: 13px;
}

.bst-title em {
    display: block;
    margin-top: 6px;
    color: var(--bone-dim);
    font-size: 14px;
}

.bst-close {
    display: none;
    flex: none;
    width: 34px;
    height: 34px;
    background: var(--basalt-900);
    border: 1px solid var(--stone-line);
    border-radius: 8px;
    color: var(--bone-dim);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.bst-add {
    margin-top: 12px;
    padding: 7px 14px;
    background: linear-gradient(180deg, #a83c29, #8a3022);
    border: 1px solid var(--ember);
    border-radius: var(--radius-sm);
    color: #f6ece2;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}

.bst-add:hover:not(:disabled) {
    background: linear-gradient(180deg, #bd4630, #9b3525);
}

.bst-add:disabled {
    cursor: default;
}

.bst-add.is-done {
    background: transparent;
    border-color: var(--moss);
    color: var(--moss);
}

.bst-vitals {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.bst-vitals div,
.bst-abils div {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    background: var(--basalt-900);
    border: 1px solid var(--stone-line);
    border-radius: 8px;
    text-align: center;
}

.bst-vitals small,
.bst-abils small {
    color: var(--ash);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bst-vitals b {
    color: var(--bone);
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.2;
}

.bst-vitals i {
    color: var(--bone-dim);
    font-size: 12px;
    font-style: normal;
}

.bst-speed {
    margin-top: 10px;
    color: var(--bone-2);
    font-size: 14px;
}

.bst-speed small {
    margin-right: 6px;
    color: var(--ash);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bst-abils {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-top: 12px;
}

.bst-abils b {
    color: var(--bone);
    font-size: 18px;
    line-height: 1.2;
}

.bst-abils i {
    color: var(--ember-text);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.bst-props {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 14px 0 0;
    padding: 12px 14px;
    background: var(--basalt-900);
    border: 1px solid var(--stone-line);
    border-radius: 8px;
    font-size: 14px;
}

.bst-props div {
    display: flex;
    gap: 6px;
}

.bst-props dt {
    flex: none;
    color: var(--bone-dim);
    font-weight: 700;
}

.bst-props dt::after {
    content: ':';
}

.bst-props dd {
    margin: 0;
    color: var(--bone-2);
}

.bst-sec {
    margin-top: 20px;
}

.bst-sec h3 {
    padding-bottom: 6px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--stone-line);
    color: var(--ember-text);
    font-size: 18px;
}

.bst-intro {
    margin-bottom: 10px;
    color: var(--bone-dim);
    font-size: 13.5px;
    font-style: italic;
}

.bst-feat {
    padding: 10px 0;
    border-bottom: 1px dashed #2f2522;
}

.bst-feat:last-child {
    border-bottom: 0;
}

.bst-feat-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.bst-feat-head b {
    color: var(--bone);
    font-size: 15px;
}

.bst-usage {
    padding: 1px 8px;
    border: 1px solid var(--stone-line);
    border-radius: 999px;
    color: var(--brass);
    font-size: 11.5px;
}

.bst-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.bst-chip {
    padding: 2px 8px;
    background: var(--basalt-900);
    border: 1px solid var(--stone-line);
    border-radius: 6px;
    color: var(--bone-2);
    font-size: 12px;
}

.bst-chip.is-hit {
    border-color: rgba(184, 68, 47, 0.6);
    color: var(--ember-text);
}

.bst-chip.is-dc {
    border-color: rgba(176, 146, 92, 0.6);
    color: var(--brass);
}

.bst-desc {
    margin-top: 6px;
    color: var(--bone-2);
    font-size: 14px;
    line-height: 1.55;
}

.bst-desc p + p,
.bst-desc p + ul,
.bst-desc ul + p {
    margin-top: 6px;
}

.bst-desc ul {
    padding-left: 18px;
}

.bst-desc li + li {
    margin-top: 3px;
}

.bst-license {
    margin-top: 22px;
    color: var(--ash);
    font-size: 12.5px;
    text-align: center;
}

@media (max-width: 1100px) {
    .bst-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bst-field-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .bst {
        padding-top: 16px;
    }

    .bst-hero {
        padding: 24px 20px;
    }

    .bst-hero h1 {
        font-size: 32px;
    }

    .bst-layout {
        grid-template-columns: 1fr;
    }

    .bst-sheet {
        position: fixed;
        inset: calc(var(--header-h) + var(--tb, 0px)) 0 0 0;
        z-index: 900;
        max-height: none;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        transform: translateY(100%);
        transition: transform 0.25s ease;
    }

    body.bst-open .bst-sheet {
        transform: none;
    }

    body.bst-open {
        overflow: hidden;
    }

    .bst-close {
        display: block;
    }

    .bst-sheet-inner {
        padding: 18px 16px 28px;
    }

    .bst-vitals {
        grid-template-columns: repeat(2, 1fr);
    }

    .bst-abils {
        grid-template-columns: repeat(3, 1fr);
    }

    .bst-row {
        grid-template-columns: 46px minmax(0, 1fr) auto;
    }

    .bst-row.has-medal {
        grid-template-columns: 56px minmax(0, 1fr) auto;
    }

    .bst-medal,
    .bst-medal img {
        width: 56px;
        height: 56px;
    }

    .bst-portrait img {
        width: min(220px, 64%);
    }

    .bst-tags {
        display: none;
    }

    .bst-mini {
        flex-direction: column;
        gap: 0;
        text-align: right;
    }
}

@media (max-width: 520px) {
    .bst-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 10px;
        gap: 8px;
    }

    .bst-hero {
        padding: 18px 14px;
        margin-bottom: 12px;
    }

    .bst-hero h1 {
        font-size: 26px;
    }

    .bst-hero p {
        font-size: 14.5px;
    }

    .bst-row {
        gap: 10px;
        padding: 8px 10px;
    }
}