/* ═══════════════════════════════════════════════════════
   FILES PAGE  ·  v4  ·  direct colours (no var() trick)
   ═══════════════════════════════════════════════════════ */

/* ── page chrome ── */
body:has(.fl-page) .countdown-wrap        { display:none!important }
body:has(.fl-page) .points                { display:none!important }
body:has(.fl-page) .streams               { display:none!important }
body:has(.fl-page) [data-streams-overlay] { display:none!important }

/* ── scroll unlock ── */
body:has(.fl-page),
html:has(.fl-page) { overflow-y:auto!important; height:auto!important }
body:has(.fl-page) .page { overflow:visible!important; height:auto!important; min-height:100vh }

/* ── font variables only ── */
.fl-page {
    --fl-f0: "BeaufortforLOL","Times New Roman",Times,serif;
    --fl-f1: "Intro","Open Sans",Tahoma,Arial,sans-serif;
}

/* ── PAGE BACKGROUND — covers site bg-image, raised above GSAP layers ── */
.fl-page {
    background: rgb(9,12,14) !important;
    background-color: rgb(9,12,14) !important;
    background-image:
        radial-gradient(ellipse 50% 80% at 8% 50%, rgba(223,198,131,.055), transparent 55%),
        radial-gradient(ellipse 40% 40% at 92% 20%, rgba(60,80,120,.12), transparent 50%) !important;
    position: relative !important;
    z-index: 5 !important;
}
.fl-shell {
    position: relative !important;
    z-index: 5 !important;
}

/* ── keyframes ── */
@keyframes fl-det-in {
    from { opacity:0; transform:translateX(1rem) }
    to   { opacity:1; transform:translateX(0) }
}

/* ═══════════════════════════════════════════
   PAGE / SHELL
═══════════════════════════════════════════ */
.fl-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.fl-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 5.5rem 0 3rem;
}

/* CSS Grid — mobile stacked, desktop 22rem + rest */
.fl-si {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    max-width: 90rem;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
    min-height: 70vh;
    position: relative !important;
    z-index: 5 !important;
}

@media(min-width:860px) {
    .fl-si {
        grid-template-columns: 22rem 1fr;
        grid-template-rows: auto 1fr;
        gap: 0;
    }
}

/* ═══════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════ */
.fl-si .fl-topbar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 0 2rem;
    border-bottom: 1px solid rgba(223,198,131,.13);
    position: relative;
}
.fl-si .fl-topbar::after {
    content: "";
    position: absolute;
    bottom: -1px; left: 0;
    width: 10rem; height: 1px;
    background: rgb(223,198,131);
}

/* diamond logo */
.fl-si .fl-topbar__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem; height: 3rem;
    border: 1px solid rgba(223,198,131,.35);
    background: rgba(223,198,131,.07);
    flex-shrink: 0;
    color: rgb(223,198,131);
    transform: rotate(45deg);
}
.fl-si .fl-topbar__logo svg {
    transform: rotate(-45deg);
    width: 1.25rem; height: 1.25rem;
}

.fl-si .fl-topbar__titles { flex-grow: 1; }

.fl-si .fl-topbar__eyebrow {
    font-family: var(--fl-f1);
    font-size: .625rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(223,198,131,.55);
    display: block;
    margin-bottom: .25rem;
}
.fl-si .fl-topbar__title {
    font-family: var(--fl-f0) !important;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem) !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    color: rgb(255,229,159) !important;
    line-height: 1 !important;
    letter-spacing: .04em !important;
    margin: 0 !important;
}
.fl-si .fl-topbar__count {
    font-family: var(--fl-f1);
    font-size: .75rem;
    color: rgb(130,116,100);
    text-align: right;
    white-space: nowrap;
    line-height: 1.4;
}
.fl-si .fl-topbar__count b {
    display: block;
    font-family: var(--fl-f0);
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(223,198,131,.7);
    line-height: 1;
}

/* ═══════════════════════════════════════════
   LEFT PANEL  —  solid dark background
═══════════════════════════════════════════ */
.fl-si .fl-left {
    background: rgb(18,24,30) !important;
    background-color: rgb(18,24,30) !important;
    -webkit-backdrop-filter: brightness(0.25) !important;
    backdrop-filter: brightness(0.25) !important;
    border-right: 1px solid rgba(223,198,131,.13);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fl-si .fl-left__head {
    padding: 1.125rem 1.5rem;
    border-bottom: 1px solid rgba(223,198,131,.13);
    display: flex;
    align-items: center;
    gap: .625rem;
    background: rgba(0,0,0,.25) !important;
    flex-shrink: 0;
}
.fl-si .fl-left__head-ico {
    width: .4375rem; height: .4375rem;
    background: rgba(223,198,131,.5);
    transform: rotate(45deg);
    flex-shrink: 0;
}
.fl-si .fl-left__head-label {
    font-family: var(--fl-f1);
    font-size: .625rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgb(130,116,100);
}

/* ── file list ── */
.fl-si .fl-file-list {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    margin: 0; padding: 0;
}
.fl-si .fl-file-list::-webkit-scrollbar       { width: 3px; }
.fl-si .fl-file-list::-webkit-scrollbar-thumb { background: rgba(223,198,131,.15); border-radius: 2px; }
.fl-si .fl-file-list::-webkit-scrollbar-track { background: transparent; }

/* ── file item ── */
.fl-si .fl-file-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(223,198,131,.06);
    transition: background .15s;
    user-select: none;
}
.fl-si .fl-file-item:hover     { background: rgba(223,198,131,.04); }
.fl-si .fl-file-item.is-active { background: rgba(223,198,131,.08); }
.fl-si .fl-file-item.is-active::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: rgb(223,198,131);
}

/* diamond icon box */
.fl-si .fl-file-item__icon {
    width: 2.75rem; height: 2.75rem;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    z-index: 0;
}
.fl-si .fl-file-item__icon::before {
    content: "";
    position: absolute; inset: 0;
    border: 1px solid rgba(223,198,131,.2);
    background: rgba(223,198,131,.06);
    transform: rotate(45deg);
    transform-origin: center;
    transition: all .2s;
}
.fl-si .fl-file-item.is-active .fl-file-item__icon::before,
.fl-si .fl-file-item:hover      .fl-file-item__icon::before {
    background: rgba(223,198,131,.14);
    border-color: rgba(223,198,131,.5);
}
.fl-si .fl-file-item__icon svg {
    width: 1.125rem; height: 1.125rem;
    color: rgba(223,198,131,.7);
    position: relative; z-index: 1;
    transition: color .15s;
}
.fl-si .fl-file-item.is-active .fl-file-item__icon svg { color: rgb(255,229,159); }

.fl-si .fl-file-item__info { flex: 1; min-width: 0; }
.fl-si .fl-file-item__name {
    font-family: var(--fl-f0);
    font-size: .9375rem;
    text-transform: uppercase;
    color: rgb(228,218,200);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s;
}
.fl-si .fl-file-item.is-active .fl-file-item__name { color: rgb(255,229,159); }
.fl-si .fl-file-item__sub {
    font-family: var(--fl-f1);
    font-size: .9rem;
    color: rgb(130,116,100);
    margin-top: .2rem;
}
.fl-si .fl-file-item__size {
    font-family: var(--fl-f0);
    font-size: .875rem;
    color: rgb(130,116,100);
    flex-shrink: 0;
    text-align: right;
    line-height: 1;
    transition: color .15s;
}
.fl-si .fl-file-item.is-active .fl-file-item__size { color: rgba(223,198,131,.8); }

/* ═══════════════════════════════════════════
   RIGHT — DETAIL PANELS  —  solid dark bg
═══════════════════════════════════════════ */
.fl-si .fl-right {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgb(14,18,22) !important;
    background-color: rgb(14,18,22) !important;
    -webkit-backdrop-filter: brightness(0.3) !important;
    backdrop-filter: brightness(0.3) !important;
}

.fl-si .fl-detail {
    display: none;
    flex-direction: column;
    flex: 1;
    animation: fl-det-in .25s ease;
}
.fl-si .fl-detail.is-visible { display: flex; }

/* detail header */
.fl-si .fl-detail__head {
    padding: 2rem 2.5rem 1.75rem;
    border-bottom: 1px solid rgba(223,198,131,.13);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.fl-si .fl-detail__head::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, rgba(223,198,131,.6), transparent 50%);
}
.fl-si .fl-detail__head-glow {
    position: absolute;
    top: -6rem; left: -6rem;
    width: 20rem; height: 20rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(223,198,131,.06), transparent 65%);
    pointer-events: none;
}
.fl-si .fl-detail__label {
    font-family: var(--fl-f1);
    font-size: .8rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(223,198,131,.5);
    display: block;
    margin-bottom: .75rem;
    position: relative;
}
.fl-si .fl-detail__title {
    font-family: var(--fl-f0) !important;
    font-size: clamp(1.5rem, 3vw, 2.375rem) !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    color: rgb(255,229,159) !important;
    line-height: 1 !important;
    letter-spacing: .03em !important;
    margin: 0 0 1.125rem !important;
    position: relative;
}

/* stats row */
.fl-si .fl-detail__stats {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 2rem;
    list-style: none;
    margin: 0; padding: 0;
    position: relative;
}
.fl-si .fl-detail__stat { display: flex; flex-direction: column; gap: .125rem; }
.fl-si .fl-detail__stat-label {
    font-family: var(--fl-f1);
    font-size: .5625rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgb(130,116,100);
}
.fl-si .fl-detail__stat-val {
    font-family: var(--fl-f0);
    font-size: 1.125rem;
    color: rgb(223,198,131);
    line-height: 1;
}

/* detail body */
.fl-si .fl-detail__body {
    flex: 1;
    padding: 2rem 2.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-sizing: border-box;
}
.fl-si .fl-detail__body::-webkit-scrollbar       { width: 3px; }
.fl-si .fl-detail__body::-webkit-scrollbar-thumb { background: rgba(223,198,131,.15); border-radius: 2px; }
.fl-si .fl-detail__body::-webkit-scrollbar-track { background: transparent; }

.fl-si .fl-detail__desc {
    font-family: var(--fl-f1);
    font-size: .9375rem;
    line-height: 1.7;
    color: rgb(130,116,100);
    max-width: 38rem;
    margin: 0;
}

/* ═══════════════════════════════════════════
   MIRRORS
═══════════════════════════════════════════ */
.fl-si .fl-mirrors-label {
    font-family: var(--fl-f1);
    font-size: 1rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgb(130,116,100);
    margin-bottom: .875rem;
}
.fl-si .fl-mirrors-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: .625rem;
}

.fl-si .fl-mirror-btn {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none !important;
    padding: 1rem 1.375rem;
    border: 1px solid rgba(223,198,131,.12);
    background: rgba(0,0,0,.3) !important;
    transition: all .18s;
    position: relative;
    overflow: hidden;
    max-width: 38rem;
    box-sizing: border-box;
}
.fl-si .fl-mirror-btn::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0; width: 0;
    background: rgba(223,198,131,.07);
    transition: width .25s;
}
.fl-si .fl-mirror-btn:hover::before { width: 100%; }
.fl-si .fl-mirror-btn:hover { border-color: rgba(223,198,131,.45); }

.fl-si .fl-mirror-btn__num {
    font-family: var(--fl-f0);
    font-size: .75rem;
    color: rgb(130,116,100);
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
    position: relative;
    line-height: 1;
}
.fl-si .fl-mirror-btn__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    position: relative;
}
.fl-si .fl-mirror-btn__icon img {
    height: 1.2rem; width: auto;
    object-fit: contain;
}
.fl-si .fl-mirror-btn__name {
    font-family: var(--fl-f0);
    font-size: 1rem;
    text-transform: uppercase;
    color: rgb(228,218,200);
    flex: 1;
    line-height: 1;
    position: relative;
    transition: color .18s;
}
.fl-si .fl-mirror-btn:hover .fl-mirror-btn__name { color: rgb(255,229,159); }
.fl-si .fl-mirror-btn__size {
    font-family: var(--fl-f1);
    font-size: .6875rem;
    color: rgb(130,116,100);
    flex-shrink: 0;
    position: relative;
}
.fl-si .fl-mirror-btn__arrow {
    flex-shrink: 0;
    color: rgba(223,198,131,.3);
    display: flex;
    transition: all .18s;
    position: relative;
}
.fl-si .fl-mirror-btn:hover .fl-mirror-btn__arrow {
    color: rgb(223,198,131);
    transform: translateX(.375rem);
}
.fl-si .fl-mirror-btn__arrow svg { width: .875rem; height: .875rem; }

/* ═══════════════════════════════════════════
   HOWTO (4 STEPS)
═══════════════════════════════════════════ */
.fl-si .fl-howto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .625rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(223,198,131,.13);
}
.fl-si .fl-howto__step {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .875rem;
    background: rgba(0,0,0,.2) !important;
    border: 1px solid rgba(223,198,131,.06);
}
.fl-si .fl-howto__step-n {
    font-family: var(--fl-f0);
    font-size: 1.375rem;
    font-weight: 700;
    color: rgba(223,198,131,.12);
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
}
.fl-si .fl-howto__step-t {
    font-family: var(--fl-f1);
    font-size: 1rem;
    color: rgb(130,116,100);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   CTA BUTTONS
═══════════════════════════════════════════ */
.fl-si .fl-detail__cta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    padding-top: .5rem;
}
.fl-si .fl-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none !important;
    font-family: var(--fl-f0) !important;
    font-size: .875rem !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    padding: .75rem 1.75rem;
    cursor: pointer;
    transition: all .18s;
    line-height: 1;
    border: 0;
    white-space: nowrap;
    position: relative;
}
.fl-si .fl-cta-btn--gold {
    background: linear-gradient(180deg, rgb(255,229,159), rgb(223,198,131)) !important;
    color: rgb(9,12,14) !important;
}
.fl-si .fl-cta-btn--gold::after {
    content: "";
    position: absolute;
    inset: 2px;
    border: 1px solid rgba(255,255,255,.2);
    pointer-events: none;
}
.fl-si .fl-cta-btn--gold:hover { filter: brightness(112%); }
.fl-si .fl-cta-btn--ghost {
    background: transparent !important;
    color: rgba(223,198,131,.8) !important;
    border: 1px solid rgba(223,198,131,.25) !important;
}
.fl-si .fl-cta-btn--ghost:hover {
    border-color: rgba(223,198,131,.6) !important;
    color: rgb(255,229,159) !important;
}

/* ═══════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════ */
.fl-si .fl-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    text-align: center;
    gap: 1.25rem;
}
.fl-si .fl-empty__ico {
    width: 3.5rem; height: 3.5rem;
    color: rgba(223,198,131,.22);
}
.fl-si .fl-empty__text {
    font-family: var(--fl-f1);
    font-size: .75rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgb(130,116,100);
    margin: 0;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media(max-width:860px) {
    .fl-si .fl-left {
        border-right: 0;
        border-bottom: 1px solid rgba(223,198,131,.13);
    }
    .fl-si .fl-file-list    { max-height: 260px; }
    .fl-si .fl-detail__head { padding: 1.5rem 1.5rem 1.25rem; }
    .fl-si .fl-detail__body { padding: 1.5rem; gap: 1.5rem; }
    .fl-si .fl-topbar       { gap: 1rem; }
}
@media(max-width:600px) {
    .fl-si .fl-howto        { grid-template-columns: 1fr; }
    .fl-si .fl-detail__cta  { flex-direction: column; }
    .fl-si .fl-cta-btn      { justify-content: center; }
    .fl-si .fl-detail__title { font-size: 1.5rem !important; }
}
