.home-encyclopedia {
    position: relative;
    margin: 0 12px 88px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    background: radial-gradient(circle at 92% 0,rgba(211,143,46,.15),transparent 34%),linear-gradient(145deg,#17191b,#0c0d0e);
    box-shadow: 0 18px 46px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.035);
}
.home-encyclopedia::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -50px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(218,153,60,.11);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(218,153,60,.025),0 0 0 48px rgba(218,153,60,.018);
    pointer-events: none;
}
.home-encyclopedia__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 14px;
}
.home-encyclopedia__head > div { min-width: 0; }
.home-encyclopedia__head > div > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
    color: #d99a43;
    font-size: var(--eb-fs-micro);
    font-weight: 800;
}
.home-encyclopedia__head > div > span::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: #d99a43; }
.home-encyclopedia__head h2 { margin: 0; color: #f5f6f7; font-size: var(--eb-fs-subheading); font-weight: 950; line-height: 1.45; }
.home-encyclopedia__head p { margin: 2px 0 0; color: #7f858b; font-size: var(--eb-fs-micro); line-height: 1.7; }
.home-encyclopedia__head > a {
    display: flex;
    flex: none;
    align-items: center;
    gap: 3px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(215,151,62,.25);
    border-radius: 99px;
    background: rgba(211,143,47,.07);
    color: #dca052;
    font-size: var(--eb-fs-micro);
    font-weight: 750;
}
.home-encyclopedia__head > a svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.home-encyclopedia__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.home-encyclopedia__card {
    display: grid;
    grid-template-columns: 42% minmax(0,1fr);
    align-items: stretch;
    min-width: 0;
    height: 116px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 16px;
    background: linear-gradient(145deg,#202326,#121416);
    color: #eef0f2;
    box-shadow: 0 9px 24px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.025);
    transition: transform .2s,border-color .2s,box-shadow .2s;
}
.home-encyclopedia__card:active { transform: scale(.985); border-color: rgba(218,154,66,.32); }
.home-encyclopedia__card--featured { grid-column: 1/-1; grid-template-columns: 45% minmax(0,1fr); height: 174px; }
.home-encyclopedia__media { position: relative; display: block; min-width: 0; overflow: hidden; background: #101214; }
.home-encyclopedia__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(13,15,16,.2),transparent 52%),linear-gradient(0deg,rgba(0,0,0,.5),transparent 48%); }
.home-encyclopedia__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.home-encyclopedia__media i {
    position: absolute;
    z-index: 2;
    right: 7px;
    bottom: 7px;
    max-width: calc(100% - 14px);
    padding: 4px 7px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 99px;
    background: rgba(12,13,14,.7);
    color: #f0c17e;
    backdrop-filter: blur(7px);
    font-size: var(--eb-fs-micro);
    font-style: normal;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-encyclopedia__copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding: 11px 9px; text-align: right; }
.home-encyclopedia__copy > small { color: #d4933b; font-size: var(--eb-fs-micro); font-weight: 750; }
.home-encyclopedia__copy > strong {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    color: #eceeef;
    font-size: var(--eb-fs-caption);
    font-weight: 850;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.home-encyclopedia__copy > p { display: none; margin: 6px 0 0; color: #888e94; font-size: var(--eb-fs-micro); line-height: 1.75; }
.home-encyclopedia__copy > em { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 4px; margin-top: auto; color: #747a80; font-size: var(--eb-fs-micro); font-style: normal; }
.home-encyclopedia__copy > em b { color: inherit; font-weight: 550; }
.home-encyclopedia__copy > em span { color: #dda14d; font-size: var(--eb-fs-caption); font-weight: 800; }
.home-encyclopedia__card--featured .home-encyclopedia__copy { padding: 16px 14px; }
.home-encyclopedia__card--featured .home-encyclopedia__copy > strong { font-size: var(--eb-fs-card); line-height: 1.65; }
.home-encyclopedia__card--featured .home-encyclopedia__copy > p { display: block; }
.home-encyclopedia__card--featured .home-encyclopedia__copy > em { padding-top: 7px; border-top: 1px solid rgba(255,255,255,.065); }
.home-encyclopedia__card--featured .home-encyclopedia__copy > em span { font-size: var(--eb-fs-micro); }

html[data-theme="light"] .home-encyclopedia { border-color: #dfe3e6; background: radial-gradient(circle at 92% 0,rgba(211,143,46,.12),transparent 35%),linear-gradient(145deg,#fff,#f5f7f8); box-shadow: 0 17px 40px rgba(38,48,56,.11); }
html[data-theme="light"] .home-encyclopedia__head h2 { color: #171a1d !important; }
html[data-theme="light"] .home-encyclopedia__head p { color: #747e87 !important; }
html[data-theme="light"] .home-encyclopedia__card { border-color: #e0e4e7 !important; background: #fff !important; color: #171a1d; box-shadow: 0 8px 22px rgba(39,49,57,.09); }
html[data-theme="light"] .home-encyclopedia__copy > strong { color: #1a1d20 !important; }
html[data-theme="light"] .home-encyclopedia__copy > p { color: #6f7982 !important; }
html[data-theme="light"] .home-encyclopedia__copy > em { color: #78818a; }

@media (max-width:380px) {
    .home-encyclopedia { margin-inline: 9px; padding: 13px; border-radius: 20px; }
    .home-encyclopedia__head h2 { font-size: var(--eb-fs-section-strong); }
    .home-encyclopedia__head p { max-width: 190px; }
    .home-encyclopedia__grid { gap: 6px; }
    .home-encyclopedia__card { height: 108px; border-radius: 13px; }
    .home-encyclopedia__card--featured { height: 162px; }
    .home-encyclopedia__copy { padding: 8px 6px; }
    .home-encyclopedia__copy > strong { font-size: var(--eb-fs-micro); }
    .home-encyclopedia__card--featured .home-encyclopedia__copy { padding: 12px 10px; }
    .home-encyclopedia__card--featured .home-encyclopedia__copy > strong { font-size: var(--eb-fs-label); }
}
