.dir-page-wrap{
    width:100%;
}

.dir-page-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
    margin-top:14px;
    margin-bottom:14px;
}

.dir-page-head h1{
    margin:0 0 4px;
    font-size:28px;
    line-height:1.1;
    color:var(--gold-1);
}

.dir-page-head p{
    margin:0;
    color:var(--muted);
    font-size:13px;
}

.dir-layout{
    display:flex !important;
    align-items:flex-start !important;
    gap:18px !important;
    width:100% !important;
    flex-direction:row !important;
}

.dir-sidebar{
    width:260px !important;
    min-width:260px !important;
    max-width:260px !important;
    flex:0 0 260px !important;
    display:block !important;
}

.dir-content{
    flex:1 1 auto !important;
    min-width:0 !important;
    display:block !important;
}

.dir-sidebar-card{
    padding:16px;
}

.dir-side-title{
    margin:0 0 12px;
    font-size:14px;
    font-weight:800;
    color:var(--gold-1);
    display:flex;
    align-items:center;
    gap:8px;
}

.dir-cat-list{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.dir-cat-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    width:100%;
    padding:10px 12px;
    border-radius:12px;
    text-decoration:none;
    color:var(--text);
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.06);
    transition:transform .12s ease, border-color .12s ease, background .12s ease;
}

.dir-cat-link:hover{
    transform:translateY(-1px);
    border-color:rgba(242,210,122,.35);
    background:radial-gradient(120% 160% at 0% 0%, rgba(242,210,122,.14), rgba(255,255,255,0.04));
}

.dir-cat-link.active{
    border-color:rgba(242,210,122,.55);
    background:radial-gradient(120% 160% at 0% 0%, rgba(242,210,122,.16), rgba(255,255,255,0.04));
}

.dir-cat-left{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}

.dir-cat-icon{
    width:28px;
    height:28px;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(242,210,122,.12);
    border:1px solid rgba(242,210,122,.18);
    flex:0 0 auto;
}

.dir-cat-label{
    font-weight:700;
    font-size:13px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.dir-cat-arrow{
    color:var(--muted);
    font-size:12px;
    flex:0 0 auto;
}

.dir-side-note{
    margin-top:14px;
    border-radius:16px;
    padding:14px;
    background:linear-gradient(160deg,rgba(242,210,122,.18),rgba(0,0,0,.55));
    border:1px solid rgba(242,210,122,.45);
    box-shadow:0 10px 26px var(--shadow);
}

.dir-side-note strong{
    display:block;
    margin-bottom:6px;
    color:var(--gold-1);
    font-size:14px;
}

.dir-side-note p{
    margin:0;
    color:var(--muted);
    font-size:13px;
    line-height:1.55;
}

.dir-results-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    flex-wrap:wrap;
    margin:0 0 12px;
}

.dir-results-head h2{
    margin:0;
    font-size:20px;
    color:var(--gold-1);
}

.dir-category-description{
    margin:6px 0 0;
    color:var(--muted);
    font-size:14px;
    line-height:1.6;
    max-width:760px;
}

.dir-results-note{
    color:var(--muted);
    font-size:14px;
}

.dir-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.dir-row{
    display:grid;
    grid-template-columns:160px minmax(0, 1fr);
    gap:16px;
    align-items:center;
    padding:10px;
}

.dir-row-category-featured{
    border:1px solid rgba(98,215,140,.38);
    box-shadow:
        0 18px 42px rgba(0,0,0,.38),
        0 0 0 1px rgba(98,215,140,.12) inset,
        0 0 28px rgba(98,215,140,.14);
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(98,215,140,.16), rgba(255,255,255,.03));
}

.dir-thumb{
    width:150px;
    height:150px;
    border-radius:15px;
    overflow:hidden;
    background:#0f141a;
    border:1px solid rgba(255,255,255,.06);
    display:flex;
    align-items:center;
    justify-content:center;
}

.dir-thumb img{
    max-width:100%;
    max-height:100%;
    display:block;
    object-fit:contain;
}

.dir-thumb-empty{
    color:var(--muted);
    font-size:12px;
    text-align:center;
    padding:10px;
}

.dir-main{
    min-width:0;
}

.dir-topline{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:8px;
    width:100%;
}

.dir-pill{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:5px 10px;
    border-radius:999px;
    background:rgba(242,210,122,.12);
    border:1px solid rgba(242,210,122,.22);
    color:var(--accent);
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.35px;
}

.dir-pill-featured{
    background:rgba(98,215,140,.12);
    border:1px solid rgba(98,215,140,.22);
    color:#8df0ad;
}

.dir-pill-category-featured{
    background:rgba(98,215,140,.18);
    border:1px solid rgba(98,215,140,.42);
    color:#9bffb7;
}

.dir-pill-claimed{
    background:rgba(52,199,89,.16);
    border:1px solid rgba(52,199,89,.32);
    color:#7dff9b;
}

.dir-pill-right{
    margin-left:auto;
    justify-self:end;
}

.dir-title{
    margin:0 0 8px;
    font-size:24px;
    line-height:1.2;
    color:var(--gold-1);
}

.dir-desc{
    margin:0 0 12px;
    color:var(--muted);
    font-size:14px;
    line-height:1.6;
}

.dir-meta{
    display:grid;
    grid-template-columns:minmax(110px, 130px) minmax(120px, 140px) minmax(90px, 105px) minmax(210px, 260px);
    gap:10px;
    align-items:stretch;
}

.dir-meta-box{
    padding:10px 12px;
    border-radius:12px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.06);
    min-width:0;
}

.dir-meta-label{
    display:block;
    font-size:11px;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:.4px;
    margin-bottom:4px;
}

.dir-meta-value{
    color:#fff;
    font-size:13px;
    line-height:1.45;
    word-break:break-word;
}

.dir-action-wrap{
    display:flex;
    align-items:stretch;
    justify-content:flex-start;
    gap:8px;
    min-height:100%;
    min-width:0;
}

.dir-info-btn{
    flex:0 0 88px;
    width:88px;
    min-width:82px;
    max-width:82px;
    min-height:100%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    text-decoration:none;
    border-radius:12px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.10);
    color:#fff;
    cursor:pointer;
    padding:0 12px;
}

.dir-info-btn:hover{
    border-color:rgba(242,210,122,.35);
    background:radial-gradient(120% 160% at 0% 0%, rgba(242,210,122,.10), rgba(255,255,255,.05));
}

.dir-teleport{
    flex:0 0 128px;
    width:128px;
    min-width:122px;
    max-width:122px;
    min-height:100%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    text-decoration:none;
    border-radius:12px;
    padding:0 12px;
}

.dir-teleport-missing{
    width:128px;
    min-width:128px;
    max-width:128px;
}

.dir-empty{
    padding:30px;
    text-align:center;
}

.dir-empty h3{
    margin:0 0 8px;
    color:var(--gold-1);
    font-size:24px;
}

.dir-empty p{
    margin:0;
    color:var(--muted);
    line-height:1.65;
}

.avatar-chip{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.avatar-chip-name,
.avatar-chip-balance{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:10px 14px;
    border-radius:999px;
    white-space:nowrap;
    font-weight:700;
}

.avatar-chip-name{
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.10);
    color:#fff;
}

.avatar-chip-balance{
    background:rgba(92,255,92,.12);
    border:1px solid rgba(92,255,92,.28);
    color:#b7ff4a;
}

.dir-pagination{
    margin-top:18px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.dir-page-btn,
.dir-page-current{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:42px;
    height:42px;
    padding:0 14px;
    border-radius:12px;
    text-decoration:none;
    font-weight:700;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.04);
    color:#fff;
}

.dir-page-btn:hover{
    border-color:rgba(242,210,122,.35);
    background:radial-gradient(120% 160% at 0% 0%, rgba(242,210,122,.12), rgba(255,255,255,.04));
}

.dir-page-current{
    border-color:rgba(242,210,122,.45);
    background:rgba(242,210,122,.12);
    color:var(--gold-1);
}

.dir-banner-row{
    margin-top:18px;
    margin-bottom:18px;
    overflow:hidden;
}

.dir-banner-track-wrap{
    overflow:hidden;
    width:100%;
}

.dir-banner-track{
    display:flex;
    gap:12px;
    width:max-content;
    animation:dirBannerScroll 35s linear infinite;
}

.dir-banner-row:hover .dir-banner-track{
    animation-play-state:paused;
}

.dir-banner-item{
    display:block;
    text-decoration:none;
    flex:0 0 calc((100vw - 420px) / 4);
    max-width:260px;
    min-width:190px;
}

.dir-banner-card{
    padding:8px;
    border-radius:16px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.06);
    box-shadow:0 10px 26px var(--shadow);
    transition:transform .12s ease, border-color .12s ease, background .12s ease;
}

.dir-banner-item:hover .dir-banner-card{
    transform:translateY(-2px);
    border-color:rgba(242,210,122,.28);
    background:radial-gradient(120% 160% at 0% 0%, rgba(242,210,122,.08), rgba(255,255,255,.03));
}

.dir-banner-image-wrap{
    width:100%;
    aspect-ratio:128 / 96;
    border-radius:12px;
    overflow:hidden;
    background:#0f141a;
    border:1px solid rgba(255,255,255,.06);
    display:flex;
    align-items:center;
    justify-content:center;
}

.dir-banner-image{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

.dir-banner-empty{
    color:var(--muted);
    font-size:12px;
    text-align:center;
    padding:12px;
}

@keyframes dirBannerScroll{
    0%{
        transform:translateX(0);
    }
    100%{
        transform:translateX(calc(-50% - 6px));
    }
}

/* Modal */

.dir-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
}

.dir-modal.is-open{
    display:block;
}

.dir-modal__backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.68);
    backdrop-filter:blur(4px);
}

.dir-modal__dialog{
    position:relative;
    width:min(980px, calc(100vw - 32px));
    max-height:calc(100vh - 40px);
    overflow:auto;
    margin:20px auto;
    border-radius:20px;
    background:linear-gradient(180deg, rgba(20,24,31,.98), rgba(11,14,19,.98));
    border:1px solid rgba(242,210,122,.20);
    box-shadow:0 24px 70px rgba(0,0,0,.55);
}

.dir-modal__close{
    position:absolute;
    top:12px;
    right:12px;
    width:42px;
    height:42px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.05);
    color:#fff;
    font-size:28px;
    line-height:1;
    cursor:pointer;
    z-index:2;
}

.dir-modal__close:hover{
    border-color:rgba(242,210,122,.35);
    background:rgba(242,210,122,.10);
}

.dir-modal__content{
    display:grid;
    grid-template-columns:360px minmax(0, 1fr);
    gap:20px;
    padding:20px;
}

.dir-modal__image-wrap{
    width:100%;
    min-height:360px;
    border-radius:18px;
    overflow:hidden;
    background:#0f141a;
    border:1px solid rgba(255,255,255,.08);
    display:flex;
    align-items:center;
    justify-content:center;
}

.dir-modal__image{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

.dir-modal__no-image{
    color:var(--muted);
    font-size:14px;
    text-align:center;
    padding:20px;
}

.dir-modal__body{
    min-width:0;
    padding-right:20px;
}

.dir-modal__title{
    margin:0 0 10px;
    font-size:28px;
    line-height:1.2;
    color:var(--gold-1);
}

.dir-modal__description{
    margin:0 0 16px;
    color:var(--muted);
    font-size:14px;
    line-height:1.7;
    white-space:pre-wrap;
}

.dir-modal__meta{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px;
}

.dir-modal__actions{
    margin-top:18px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.dir-modal__actions .btn{
    text-decoration:none;
}

.dir-modal-open{
    overflow:hidden;
}

@media (max-width: 980px){
    .dir-layout{
        flex-direction:column !important;
    }

    .dir-sidebar{
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
        flex:1 1 auto !important;
    }

    .dir-banner-item{
        flex:0 0 220px;
        min-width:220px;
    }

    .dir-modal__content{
        grid-template-columns:1fr;
    }

    .dir-modal__image-wrap{
        min-height:280px;
    }

    .dir-modal__body{
        padding-right:0;
    }
}

@media (max-width: 920px){
    .dir-row{
        grid-template-columns:120px minmax(0, 1fr);
    }

    .dir-meta{
        grid-template-columns:minmax(100px, 1fr) minmax(110px, 1fr);
    }

    .dir-thumb{
        width:120px;
        height:120px;
    }
}

@media (max-width: 720px){
    .dir-row{
        grid-template-columns:1fr;
    }

    .dir-thumb{
        width:100%;
        max-width:220px;
        height:220px;
    }

    .dir-meta{
        grid-template-columns:1fr;
    }

    .dir-action-wrap{
        flex-direction:row;
        flex-wrap:wrap;
    }

    .dir-info-btn{
        flex:0 0 88px;
        width:88px;
        min-width:88px;
        max-width:88px;
    }

    .dir-teleport,
    .dir-teleport-missing{
        flex:0 0 128px;
        width:128px;
        min-width:120px;
        max-width:120px;
    }

    .avatar-chip{
        width:100%;
        justify-content:center;
        flex-wrap:wrap;
    }

    .dir-banner-item{
        flex:0 0 200px;
        min-width:200px;
    }

    .dir-modal__meta{
        grid-template-columns:1fr;
    }

    .dir-modal__title{
        font-size:24px;
    }
}

@media (max-width: 560px){
    .dir-banner-item{
        flex:0 0 180px;
        min-width:180px;
    }

    .dir-modal__dialog{
        width:min(100vw - 16px, 980px);
        margin:8px auto;
        max-height:calc(100vh - 16px);
    }

    .dir-modal__content{
        padding:14px;
    }

    .dir-modal__image-wrap{
        min-height:220px;
    }
}