/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Averia+Libre:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Cinzel+Decorative:wght@400;700&family=Cormorant+SC:wght@500;600;700&family=IM+Fell+English:ital@0;1&family=Julius+Sans+One&family=Pangolin&family=Spectral:wght@400;500;600;700&family=Walter+Turncoat&display=swap");

*{box-sizing:border-box}
body{margin:0;min-height:100vh;display:grid;place-items:center;font-family:"Averia Libre",Georgia,serif}
main{width:min(900px,calc(100% - 40px));padding:60px 30px;border:1px solid #ccc;text-align:center}
h1{margin:0}
/* ---------------------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------------------- */
/* Tactile Cards */
/* Books, products, projects, codex and cabinet */
/* ---------------------------------------------------------------------------------------- */

[data-eld-tilt] {
    --eld-tilt-x: 0deg;
    --eld-tilt-y: 0deg;
    --eld-lift: 0px;

    transform: perspective(900px) rotateX(var(--eld-tilt-x)) rotateY(var(--eld-tilt-y)) translateY(var(--eld-lift));
    transform-style: preserve-3d;
    transition: transform 180ms ease, filter 180ms ease;
    will-change: transform;
}

[data-eld-tilt]:hover,
[data-eld-tilt]:focus-within {
    --eld-lift: -6px;

    filter: drop-shadow(0 18px 18px rgb(0 0 0 / 45%));
}

.EldCardGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    width: 100%;
}









/* ---------------------------------------------------------------------------------------- */
/* Book Reader */
/* Shelf and page-turn modal */
/* ---------------------------------------------------------------------------------------- */

.EldBooks_Shelf {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    min-height: 340px;
    padding: 30px 32px 18px;
    overflow-x: auto;
    border: 1px solid var(--GoldEdge);
    border-bottom: 18px solid var(--WineDark);
    background: linear-gradient(180deg, rgb(0 0 0 / 40%), var(--Black));
    box-shadow: inset 0 -3px var(--GoldMuted), 0 14px 24px rgb(0 0 0 / 35%);
}

.EldBook {
    position: relative;
    flex: 0 0 176px;
    height: 272px;
    padding: 0;
    border: 0;
    color: var(--GoldLight);
    background: none;
    cursor: pointer;
    transform-origin: bottom center;
}

.EldBook_Cover {
    position: absolute;
    inset: 0 0 0 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 36px 20px 26px;
    border: 1px solid var(--GoldEdge);
    background:
        linear-gradient(rgb(45 6 19 / 76%), rgb(8 5 6 / 92%)),
        var(--book-cover, none) center / cover,
        var(--WineDark);
    box-shadow: inset 0 0 0 5px rgb(0 0 0 / 28%), inset 0 0 0 6px var(--GoldMuted);
    text-align: center;
}

.EldBook_Cover::before {
    content: "✦";
    color: var(--Gold);
    font-size: 30px;
}

.EldBook_Cover strong {
    font: 700 18px/1.15 "Cinzel Decorative", serif;
    text-shadow: 0 2px 3px #000;
}

.EldBook_Cover small {
    color: var(--GoldMuted);
    font: 600 12px/1.3 "Cormorant SC", serif;
    letter-spacing: .08em;
}

.EldBook_Spine {
    position: absolute;
    inset: 5px auto 5px 0;
    width: 18px;
    border: 1px solid var(--GoldEdge);
    background: linear-gradient(90deg, #17070c, var(--Wine), #16070b);
    box-shadow: inset -3px 0 rgb(0 0 0 / 38%);
}

.EldReader {
    width: min(940px, calc(100vw - 30px));
    max-width: none;
    padding: 0;
    overflow: visible;
    border: 0;
    color: #281b16;
    background: transparent;
}

.EldReader::backdrop {
    background: rgb(3 1 2 / 88%);
    backdrop-filter: blur(5px);
}

.EldReader_Book {
    position: relative;
    min-height: 570px;
    padding: 58px 70px 76px;
    border: 8px solid var(--WineDark);
    background:
        linear-gradient(90deg, transparent 49.5%, rgb(67 42 30 / 22%) 50%, transparent 50.5%),
        repeating-linear-gradient(0deg, rgb(104 70 44 / 4%) 0 1px, transparent 1px 5px),
        #d8c9aa;
    box-shadow: 0 30px 80px #000, inset 0 0 45px rgb(55 27 14 / 30%);
}

.EldReader_Leaf {
    min-height: 410px;
    padding: 10px 7%;
    column-count: 2;
    column-gap: 14%;
    font: 17px/1.75 "Spectral", serif;
    transform-origin: left center;
}

.EldReader_Leaf h3 {
    margin-top: 0;
    color: #531426;
    font-family: "Cinzel Decorative", serif;
}

.EldReader_Leaf.is-turning-next {
    animation: EldPageNext 360ms ease;
}

.EldReader_Leaf.is-turning-prev {
    animation: EldPagePrev 360ms ease;
}

.EldReader_Close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 1px solid #6c3c2e;
    border-radius: 50%;
    color: #5b1c2e;
    background: #cdbb98;
    cursor: pointer;
}

.EldReader_Footer {
    position: absolute;
    right: 38px;
    bottom: 24px;
    left: 38px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.EldReader_Footer button {
    padding: 8px 14px;
    border: 1px solid #735139;
    color: #42251d;
    background: rgb(255 249 225 / 34%);
    font-family: "Cormorant SC", serif;
    cursor: pointer;
}

.EldReader_Footer button:last-child {
    justify-self: end;
}

@keyframes EldPageNext {
    0% { opacity: 1; transform: rotateY(0); }
    48% { opacity: .15; transform: rotateY(-80deg); }
    52% { opacity: .15; transform: rotateY(80deg); }
    100% { opacity: 1; transform: rotateY(0); }
}

@keyframes EldPagePrev {
    0% { opacity: 1; transform: rotateY(0); }
    48% { opacity: .15; transform: rotateY(80deg); }
    52% { opacity: .15; transform: rotateY(-80deg); }
    100% { opacity: 1; transform: rotateY(0); }
}









/* ---------------------------------------------------------------------------------------- */
/* Product Cards */
/* Shop tiles and unfolding descriptions */
/* ---------------------------------------------------------------------------------------- */

.EldProduct {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border: 1px solid var(--GoldEdge);
    color: var(--GoldLight);
    background: var(--Black);
    box-shadow: inset 0 0 0 4px var(--WineInset);
}

.EldProduct_Image,
.EldProject_Image {
    height: 260px;
    background:
        linear-gradient(145deg, transparent, rgb(0 0 0 / 65%)),
        var(--card-image, none) center / cover,
        linear-gradient(135deg, var(--Wine), var(--Black));
}

.EldProduct_Face {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 16px;
    padding: 20px;
}

.EldProduct_Face small {
    grid-column: 1 / -1;
    color: var(--GoldMuted);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.EldProduct_Face h3 {
    margin: 0;
    font-family: "Cormorant SC", serif;
}

.EldProduct_Fold {
    position: absolute;
    inset: auto 0 0;
    padding: 24px;
    border-top: 1px solid var(--GoldEdge);
    background: linear-gradient(180deg, var(--WineDark), var(--Black));
    transform: translateY(calc(100% - 7px));
    transition: transform 320ms cubic-bezier(.22, 1, .36, 1);
}

.EldProduct:hover .EldProduct_Fold,
.EldProduct:focus-within .EldProduct_Fold {
    transform: translateY(0);
}

.EldProduct_Fold a,
.EldProject_Dossier a {
    color: var(--GoldLight);
    font-family: "Cormorant SC", serif;
    letter-spacing: .06em;
}









/* ---------------------------------------------------------------------------------------- */
/* Project Cards */
/* Case-study dossiers */
/* ---------------------------------------------------------------------------------------- */

.EldProject {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid var(--GoldEdge);
    color: var(--GoldLight);
    background: var(--Black);
}

.EldProject_Plate {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 16px 18px;
    border: 1px solid var(--GoldMuted);
    background: rgb(8 5 6 / 88%);
    transition: transform 320ms ease, opacity 220ms ease;
}

.EldProject_Plate h3 {
    margin: 3px 0 0;
    font-family: "Cinzel Decorative", serif;
}

.EldProject_Plate small {
    color: var(--GoldMuted);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.EldProject_Dossier {
    position: absolute;
    inset: 16px;
    padding: 24px;
    border: 1px solid var(--GoldEdge);
    background: linear-gradient(145deg, rgb(57 9 24 / 96%), rgb(8 5 6 / 98%));
    opacity: 0;
    transform: rotateX(-12deg) translateY(28px);
    transition: transform 340ms cubic-bezier(.22, 1, .36, 1), opacity 220ms ease;
}

.EldProject:hover .EldProject_Dossier,
.EldProject:focus-within .EldProject_Dossier {
    opacity: 1;
    transform: rotateX(0) translateY(0);
}

.EldProject:hover .EldProject_Plate,
.EldProject:focus-within .EldProject_Plate {
    opacity: 0;
    transform: translateY(30px);
}

.EldProject_Dossier dl div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid rgb(215 177 122 / 18%);
}

.EldProject_Dossier dt {
    color: var(--GoldMuted);
}

.EldProject_Dossier dd {
    margin: 0;
}









/* ---------------------------------------------------------------------------------------- */
/* Wiki Codex */
/* Searchable index and unfolding folio */
/* ---------------------------------------------------------------------------------------- */

.EldCodex {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    min-height: 620px;
    overflow: hidden;
    border: 1px solid var(--GoldEdge);
    background: var(--Black);
    box-shadow: 0 18px 35px rgb(0 0 0 / 35%);
}

.EldCodex_Index {
    padding: 22px;
    border-right: 1px solid var(--GoldEdge);
    background: linear-gradient(180deg, var(--WineDark), var(--Black));
}

.EldCodex_Index label span {
    display: block;
    margin-bottom: 8px;
    color: var(--GoldMuted);
    font: 600 12px "Cormorant SC", serif;
    letter-spacing: .12em;
}

.EldCodex_Index input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--GoldEdge);
    color: var(--GoldLight);
    background: rgb(0 0 0 / 38%);
}

.EldCodex_Filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 14px 0;
}

.EldCodex_Filters button,
.EldCodex_List button {
    border: 1px solid var(--GoldEdge);
    color: var(--GoldMuted);
    background: rgb(0 0 0 / 28%);
    cursor: pointer;
}

.EldCodex_Filters button {
    padding: 5px 8px;
    font-size: 11px;
}

.EldCodex_Filters button.is-active {
    color: var(--GoldLight);
    background: var(--Wine);
}

.EldCodex_List {
    display: grid;
    gap: 6px;
    max-height: 480px;
    overflow: auto;
}

.EldCodex_List button {
    display: grid;
    gap: 3px;
    padding: 12px;
    text-align: left;
    transition: padding-left 180ms ease, color 180ms ease, background 180ms ease;
}

.EldCodex_List button:hover,
.EldCodex_List button.is-active {
    padding-left: 18px;
    color: var(--GoldLight);
    background: var(--WineDark);
}

.EldCodex_List button[hidden] {
    display: none;
}

.EldCodex_List small {
    color: var(--GoldMuted);
}

.EldCodex_Page {
    position: relative;
    padding: 62px clamp(32px, 7vw, 90px);
    color: #2e1e18;
    background:
        repeating-linear-gradient(0deg, rgb(93 57 33 / 4%) 0 1px, transparent 1px 5px),
        #d6c5a4;
    box-shadow: inset 18px 0 35px rgb(56 30 18 / 22%);
}

.EldCodex_Page.is-changing {
    animation: EldFolio 300ms ease;
}

.EldCodex_Page h2 {
    margin: 5px 0 18px;
    color: #54162a;
    font-family: "Cinzel Decorative", serif;
}

.EldCodex_Page > small {
    color: #765140;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.EldCodex_Seal {
    float: right;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 2px solid #6d2336;
    border-radius: 50%;
    color: #6d2336;
    font-size: 24px;
    transform: rotate(12deg);
}

.EldCodex_Summary {
    padding-bottom: 18px;
    border-bottom: 1px solid rgb(82 45 30 / 35%);
    font-style: italic;
}

.EldCodex_Page dl div {
    display: grid;
    grid-template-columns: 110px 1fr;
    padding: 8px 0;
    border-top: 1px solid rgb(82 45 30 / 18%);
}

.EldCodex_Page dd {
    margin: 0;
}

@keyframes EldFolio {
    0% { opacity: 1; transform: rotateY(0); }
    48% { opacity: .25; transform: rotateY(-6deg) translateX(10px); }
    100% { opacity: 1; transform: rotateY(0); }
}









/* ---------------------------------------------------------------------------------------- */
/* Cabinet */
/* Foldouts, seals and specimen cards */
/* ---------------------------------------------------------------------------------------- */

.EldCabinet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.EldUnfold,
.EldSeal,
.EldSpecimen {
    min-height: 230px;
    border: 1px solid var(--GoldEdge);
    color: var(--GoldLight);
    background: linear-gradient(145deg, var(--WineDark), var(--Black));
}

.EldUnfold summary {
    padding: 22px;
    color: var(--Gold);
    font-family: "Cormorant SC", serif;
    cursor: pointer;
}

.EldUnfold div {
    margin: 0 18px 18px;
    padding: 20px;
    border: 1px solid var(--GoldMuted);
    background: rgb(0 0 0 / 24%);
    transform-origin: top;
    animation: EldUnfold 300ms ease;
}

.EldSeal {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    padding: 24px;
    font-family: "Cormorant SC", serif;
    cursor: pointer;
}

.EldSeal_Mark {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border: 2px solid var(--Gold);
    border-radius: 50%;
    font-size: 30px;
    transition: transform 500ms ease, box-shadow 300ms ease;
}

.EldSeal_Secret {
    display: none;
    color: var(--GoldMuted);
}

.EldSeal.is-revealed .EldSeal_Mark {
    transform: rotate(180deg) scale(.82);
    box-shadow: 0 0 28px var(--Wine);
}

.EldSeal.is-revealed .EldSeal_Label {
    display: none;
}

.EldSeal.is-revealed .EldSeal_Secret {
    display: block;
}

.EldSpecimen {
    perspective: 900px;
    cursor: pointer;
}

.EldSpecimen_Inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 230px;
    transform-style: preserve-3d;
    transition: transform 500ms cubic-bezier(.22, 1, .36, 1);
}

.EldSpecimen.is-flipped .EldSpecimen_Inner {
    transform: rotateY(180deg);
}

.EldSpecimen_Face,
.EldSpecimen_Back {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    backface-visibility: hidden;
    text-align: center;
}

.EldSpecimen_Face::before {
    content: "☽";
    color: var(--Gold);
    font-size: 56px;
}

.EldSpecimen_Back {
    background: var(--WineDark);
    transform: rotateY(180deg);
}

@keyframes EldUnfold {
    from { opacity: 0; transform: scaleY(.7); }
    to { opacity: 1; transform: scaleY(1); }
}









/* ---------------------------------------------------------------------------------------- */
/* Component Fit */
/* Responsive and reduced motion */
/* ---------------------------------------------------------------------------------------- */

@media (max-width: 720px) {
    .EldCodex {
        grid-template-columns: 1fr;
    }

    .EldCodex_Index {
        border-right: 0;
        border-bottom: 1px solid var(--GoldEdge);
    }

    .EldCodex_List {
        max-height: 210px;
    }

    .EldReader_Book {
        min-height: 530px;
        padding: 58px 34px 82px;
    }

    .EldReader_Leaf {
        column-count: 1;
    }
}

@media (hover: none) {
    .EldProduct_Fold {
        position: static;
        transform: none;
    }

    .EldProject_Dossier {
        position: static;
        margin: 14px;
        opacity: 1;
        transform: none;
    }

    .EldProject_Plate {
        position: static;
        margin: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-eld-tilt],
    .EldProduct_Fold,
    .EldProject_Dossier,
    .EldProject_Plate,
    .EldSpecimen_Inner {
        transition: none;
    }

    .EldReader_Leaf,
    .EldCodex_Page,
    .EldUnfold div {
        animation: none !important;
    }
}
/* E L D R I C H R Y P T I D
 I see you're having a stickybeak at my codes! Feel welcome to take whatever suits you and adjust it to your needs. I've labelled everything as clearly as I can. 

If you do use my code, consider supporting me on ko-fi! You may also be able to find codes in my blog already ready for you. Good luck! */
/* ---------------------------------------------------------------------------------------- */
/* Colour Presets */
/* ---------------------------------------------------------------------------------------- */
:root {
    --PageDefault: #16090d;
    --MainText: #eadfce;

    --Gold: #c8a463;
    --GoldEdge: #d0aa62;
    --GoldLight: #f0d596;
    --GoldMuted: #bea267;
    --GoldDark: #725728;
    --GoldTitle: #d7b574;

    --Wine: #641a2a;
    --WineDark: #330b13;
    --WineInset: #76283a;
    --WineMedallion: #481523;

    --BayTop: #12090c;
    --BayBottom: #070405;
    --Black: #000000;
    --BlackSoft: #080506;

    --PageTitle: #89755c;
    --FooterTitle: #aa895c;
    --FooterText: #846f61;
    --FooterLink: #9f7a4c;

    --Dropdown: #0d0709;
    --DropdownHeader: #2b0d16;
    --DropdownHover: #241016;
    --DropdownLine: #4a1a27;
    --DropdownText: #eadfcf;
    --DropdownMuted: #aa9073;

    --Shadow95: rgb(0 0 0 / 95%);
    --Shadow90: rgb(0 0 0 / 90%);
    --Shadow45: rgb(0 0 0 / 45%);
    --Shadow40: rgb(0 0 0 / 40%);

    --GoldSheen: rgb(245 215 157 / 15%);
    --GoldGlow65: rgb(240 213 150 / 65%);
    --GoldGlow55: rgb(240 213 150 / 55%);
    --GoldGlow45: rgb(200 164 99 / 45%);
    --GoldGlow25: rgb(200 164 99 / 25%);

    --WineHaze22: rgb(103 27 45 / 22%);
    --WineHaze17: rgb(103 27 45 / 17%);
}
/* ---------------------------------------------------------------------------------------- */
/* Page Defaults */
/* ---------------------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--MainText);
    background: var(--PageDefault);
    isolation: isolate;
}

/* Form Fonts */
button, input, select, textarea {
    font-family: inherit;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        url("https://www.simulacosis.com/eldrichryptid/Admin%20Uploads/basicbackground.webp")
        center / 100% 100% no-repeat
        var(--PageDefault);

    background-blend-mode: soft-light;
    opacity: 0.65;
}

main {
    min-height: 100vh;
    padding: 72px;
}
/* ---------------------------------------------------------------------------------------- */
/* Crown Navigator */
/* ---------------------------------------------------------------------------------------- */
.CrownNavigator {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 60px;
    pointer-events: none;
    background-image:
        url("https://www.simulacosis.com/eldrichryptid/Admin%20Uploads/imgs2.webp"),
        linear-gradient(
            to bottom,
            var(--WineDark),
            var(--Wine)
        );
    background-position: center;
    background-size: auto, 100% 100%;
    background-repeat: repeat-x, no-repeat;
    background-blend-mode: soft-light, normal;
    border-bottom: 1px solid var(--GoldEdge);
    box-shadow:
        inset 0 0 0 2px var(--WineInset),
        0 5px 14px var(--Shadow45);
}

/* Jester Crown */
.CrownNavigatorCrown {
    position: absolute;
    top: 9px;
    left: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    pointer-events: auto;
    background: radial-gradient(
        circle,
        var(--WineMedallion),
        var(--BayBottom) 72%
    );
    border: 1px solid var(--Gold);
    border-radius: 50%;
    box-shadow:
        0 0 0 2px var(--WineInset),
        inset 0 1px var(--GoldSheen),
        inset 0 0 8px var(--Shadow90),
        0 4px 10px var(--Shadow45);
    text-decoration: none;
}

.CrownNavigatorCrown img {
    display: block;
    width: 27px;
    height: 27px;
    object-fit: contain;
    filter:
        brightness(0.9)
        saturate(0.9)
        drop-shadow(0 1px 1px var(--Black));
    transform-origin: 55% 75%;
    transition:
        filter 220ms ease,
        transform 220ms ease;
}

.CrownNavigatorCrown:hover img {
    filter:
        brightness(1.25)
        saturate(1.15)
        drop-shadow(0 0 3px var(--Gold))
        drop-shadow(0 0 6px var(--GoldGlow45));
    transform: rotate(-10deg) scale(1.08);
}
/* Black Navbay. */
.CrownNavigatorBay {
    position: absolute;
    inset: 9px 12px 9px 62px;
    display: grid;
    grid-template-columns:
        minmax(230px, 1fr)
        repeat(3, minmax(105px, 135px))
        44px;
    align-items: center;
    pointer-events: auto;
    background:
        radial-gradient(
            circle,
            var(--WineHaze22),
            transparent 45%
        ),
        linear-gradient(
            var(--BayTop),
            var(--BayBottom)
        );
    border: 1px solid var(--Gold);
    border-radius: 18px;
    box-shadow:
        0 0 0 2px var(--WineInset),
        inset 0 1px var(--GoldSheen),
        inset 0 0 14px var(--Shadow95),
        0 4px 12px var(--Shadow45);
}

/* Name and Page */
.CrownNavigatorTitle {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0 18px;
    white-space: nowrap;
}

.CrownNavigatorArtist {
    flex: none;
    color: var(--GoldTitle);
    font: 700 14px "Cinzel Decorative", Georgia, serif;
    letter-spacing: 0.18em;
    text-shadow:
        0 1px var(--Black),
        0 0 8px var(--GoldGlow25);
}

.CrownNavigatorDecor {
    flex: none;
    margin: 0 12px;
    color: var(--WineInset);
    font-size: 10px;
    letter-spacing: 0.22em;
}

.CrownNavigatorPageTitle {
    overflow: hidden;
    color: var(--PageTitle);
    font: 400 14px "Spectral", Georgia, serif;
    letter-spacing: 0.035em;
    text-overflow: ellipsis;
}
/* ---------------------------------------------------------------------------------------- */
/* Sanctum, Studio and Supply */
/* ---------------------------------------------------------------------------------------- */
.CrownNavigator_SanctumGroup,
.CrownNavigator_StudioGroup,
.CrownNavigator_SupplyGroup {
    position: relative;
    height: 100%;
}

.CrownNavigator_Sanctum,
.CrownNavigator_Studio,
.CrownNavigator_Supply {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 27px 0 10px;
    color: var(--GoldMuted);
    font: 600 16px "Cormorant SC", Georgia, serif;
    letter-spacing: 0.13em;
    text-decoration: none;
    text-shadow: 0 1px 1px var(--Black);
    transition:
        color 180ms ease,
        letter-spacing 180ms ease,
        text-shadow 180ms ease;
}

:is(
    .CrownNavigator_Sanctum,
    .CrownNavigator_Studio,
    .CrownNavigator_Supply
):hover {
    color: var(--GoldLight);
    letter-spacing: 0.17em;
    text-shadow:
        0 0 4px var(--GoldGlow55),
        0 0 9px var(--GoldGlow25);
}

/* Dropdown Arrows */
.CrownNavigator_Arrow {
    position: absolute;
    right: 10px;
    color: var(--GoldDark);
    font: 8px/1 "Spectral", Georgia, serif;
    text-shadow: none;
    transition:
        color 220ms ease,
        text-shadow 220ms ease,
        transform 280ms ease;
}

:is(
    .CrownNavigator_Sanctum,
    .CrownNavigator_Studio,
    .CrownNavigator_Supply
):hover .CrownNavigator_Arrow {
    color: var(--GoldLight);
    text-shadow:
        0 0 4px var(--Gold),
        0 0 9px var(--GoldGlow65);
    transform: rotate(180deg);
}

/* Keyboard Focus */
:is(
    .CrownNavigator_Sanctum,
    .CrownNavigator_Studio,
    .CrownNavigator_Supply,
    .CrownNavigator_Menu,
    .CrownNavigatorCrown
):focus-visible {
    outline: 1px solid var(--GoldLight);
    outline-offset: -3px;
}

/* Account Button */
.CrownNavigator_Menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    cursor: pointer;
    color: var(--Gold);
    background: transparent;
    border: 0;
    font-size: 20px;
    line-height: 1;
    text-shadow: 0 0 6px var(--GoldGlow25);
    transition:
        color 180ms ease,
        text-shadow 180ms ease;
}
.CrownNavigator_Menu:hover {
    color: var(--GoldLight);
    text-shadow:
        0 0 5px var(--Gold),
        0 0 10px var(--GoldGlow45);
}

/* Dropdown Container */
.CrownNavigatorDropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;
    width: 292px;
    padding-top: 9px;
    pointer-events: none;
    color: var(--DropdownText);
}

/* Dropdown Panel */
.CrownNavigatorDropdown_Panel {
    overflow: hidden;
    max-height: 0;
    background: var(--Dropdown);
    border: 1px solid var(--GoldEdge);
    border-radius: 4px 4px 13px 13px;
    box-shadow: 0 10px 22px var(--Shadow45);
    visibility: hidden;
    transition:
        max-height 340ms cubic-bezier(0.22, 0.72, 0.22, 1),
        visibility 0s linear 340ms;
}

/* Dropdown Heading */
.CrownNavigatorDropdown_Header {
    display: flex;
    flex-direction: column;
    min-height: 58px;
    padding: 10px 14px 9px;
    background: var(--DropdownHeader);
    border-bottom: 1px solid var(--DropdownLine);
}

.CrownNavigatorDropdown_Header strong {
    font: 700 17px/1.2 "Cormorant SC", Georgia, serif;
    letter-spacing: 0.08em;
}

.CrownNavigatorDropdown_Header small {
    margin-top: 3px;
    color: var(--DropdownMuted);
    font: 500 11px/1.3 "Spectral", Georgia, serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Dropdown Links */
.CrownNavigatorDropdown_Link {
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    min-height: 43px;
    padding: 6px 12px;
    color: var(--DropdownText);
    background-color: var(--Dropdown);
    background-image: linear-gradient(
        90deg,
        var(--DropdownHover),
        transparent 72%
    );
    background-position: -292px 0;
    background-size: 292px 100%;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--DropdownLine);
    font: 600 14px/1.2 "Cormorant SC", Georgia, serif;
    letter-spacing: 0.045em;
    text-decoration: none;
    transition:
        color 180ms ease,
        background-position 260ms ease,
        padding-left 220ms ease;
}

.CrownNavigatorDropdown_Link:last-child {
    border-bottom: 0;
}

.CrownNavigatorDropdown_Link:hover {
    padding-left: 16px;
    color: var(--GoldLight);
    background-position: 0 0;
}

/* Dropdown Link Highlight */
.CrownNavigatorDropdown_Link::before {
    content: "";
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 0;
    width: 2px;
    background: var(--GoldEdge);
    box-shadow: 0 0 6px var(--GoldGlow45);
    transform: scaleY(0);
    transition: transform 220ms ease;
}

.CrownNavigatorDropdown_Link:hover::before {
    transform: scaleY(1);
}

/* Dropdown Icons */
.CrownNavigatorDropdown_Icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--GoldEdge);
    background: var(--BlackSoft);
    border: 1px solid var(--DropdownLine);
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
    transition:
        color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.CrownNavigatorDropdown_Icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    line-height: 1;
    text-align: center;
    text-rendering: geometricPrecision;
}

.CrownNavigatorDropdown_Icon i::before {
    display: block;
    line-height: 1;
}

.CrownNavigatorDropdown_Link:hover .CrownNavigatorDropdown_Icon {
    color: var(--GoldLight);
    background: linear-gradient(
        var(--DropdownHeader),
        var(--BlackSoft)
    );
    border-color: var(--GoldEdge);
    box-shadow:
        inset 0 0 6px var(--Black),
        0 0 7px var(--GoldGlow25);
}

/* Dropdown Link Text */
.CrownNavigatorDropdown_Link > span:not(.CrownNavigatorDropdown_Icon) {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown Link Arrows */
.CrownNavigatorDropdown_Link b {
    color: var(--GoldDark);
    font: 400 14px/1 "Spectral", Georgia, serif;
}

.CrownNavigatorDropdown_Link:hover b {
    color: var(--GoldLight);
}

/* Open Dropdowns */
:is(
    .CrownNavigator_SanctumGroup,
    .CrownNavigator_StudioGroup,
    .CrownNavigator_SupplyGroup
):is(:hover, :focus-within) .CrownNavigatorDropdown {
    pointer-events: auto;
}

:is(
    .CrownNavigator_SanctumGroup,
    .CrownNavigator_StudioGroup,
    .CrownNavigator_SupplyGroup
):is(:hover, :focus-within) .CrownNavigatorDropdown_Panel {
    max-height: 320px;
    visibility: visible;
    transition-delay: 0s;
}
/* ---------------------------------------------------------------------------------------- */
/* Runic Pillars */
/* ---------------------------------------------------------------------------------------- */
.RunicPillarLeft,
.RunicPillarRight {
    position: fixed;
    top: 60px;
    bottom: 60px;
    z-index: 9;
    width: 60px;
    pointer-events: none;
    background-image:
        url("https://www.simulacosis.com/eldrichryptid/Admin%20Uploads/imgs.webp"),
        linear-gradient(
            var(--pillar-direction),
            var(--WineDark),
            var(--Wine)
        );
    background-position: center;
    background-size: auto, 100% 100%;
    background-repeat: repeat-y, no-repeat;
    background-blend-mode: soft-light, normal;
}

/* Left Pillar */

.RunicPillarLeft {
    --pillar-direction: to right;

    left: 0;
    border-right: 1px solid var(--GoldEdge);
    box-shadow:
        inset 0 0 0 2px var(--WineInset),
        5px 0 14px var(--Shadow40);
}

/* Right Pillar */

.RunicPillarRight {
    --pillar-direction: to left;

    right: 0;
    border-left: 1px solid var(--GoldEdge);
    box-shadow:
        inset 0 0 0 2px var(--WineInset),
        -5px 0 14px var(--Shadow40);
}

/* Pillar Content */

.RunicPillarLeft_Content,
.RunicPillarRight_Content {
    position: absolute;
    inset: 10px;
    overflow: auto;
    padding: 4px;
    pointer-events: auto;
    color: var(--MainText);
    background: var(--BlackSoft);
    border: 1px solid var(--GoldEdge);
    box-shadow:
        0 0 0 2px var(--WineInset),
        inset 0 0 8px var(--Black);
}
/* ---------------------------------------------------------------------------------------- */
/* BootyBar */
/* ---------------------------------------------------------------------------------------- */
.BootyBar {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 60px;
    pointer-events: none;
    background-image:
        url("https://www.simulacosis.com/eldrichryptid/Admin%20Uploads/imgs2.webp"),
        linear-gradient(
            to bottom,
            var(--Wine),
            var(--WineDark)
        );
    background-position: center;
    background-size: auto, 100% 100%;
    background-repeat: repeat-x, no-repeat;
    background-blend-mode: soft-light, normal;
    border-top: 1px solid var(--GoldEdge);
    box-shadow:
        inset 0 0 0 2px var(--WineInset),
        0 -5px 14px var(--Shadow45);
}

/* BootyNavbay */

.BootyBar_Bay {
    position: absolute;
    inset: 9px 12px;
    display: grid;
    grid-template-columns: minmax(400px, 1fr) auto minmax(340px, 1fr);
    align-items: center;
    overflow: hidden;
    pointer-events: auto;
    background:
        radial-gradient(
            circle,
            var(--WineHaze17),
            transparent 45%
        ),
        linear-gradient(
            var(--BayTop),
            var(--BayBottom)
        );
    border: 1px solid var(--Gold);
    border-radius: 18px;
    box-shadow:
        0 0 0 2px var(--WineInset),
        inset 0 1px var(--GoldSheen),
        inset 0 0 14px var(--Shadow95),
        0 -3px 10px var(--Shadow40);
}

/* BootyNavs */

.BootyBar_Socials,
.BootyBar_Links {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Socials */

.BootyBar_Socials {
    gap: clamp(10px, 1.2vw, 22px);
    min-width: 0;
    padding: 0 14px;
    overflow: hidden;
}

.BootyBar_SocialLink {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 32px;
    color: var(--GoldMuted);
    font-size: 17px;
    line-height: 1;
    text-decoration: none;
    text-shadow: 0 1px 1px var(--Black);
    transition:
        color 180ms ease,
        filter 180ms ease,
        transform 180ms ease;
}

.BootyBar_SocialLink:hover {
    color: var(--GoldLight);
    filter: drop-shadow(0 0 4px var(--GoldGlow55));
    transform: translateY(-2px);
}

.BootyBar_SocialLink:focus-visible {
    outline: 1px solid var(--GoldLight);
    outline-offset: -2px;
}

/* Site Info */

.BootyBar_Centre {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.BootyBar_Copyright {
    color: var(--FooterTitle);
    font: 500 11px "Cinzel Decorative", Georgia, serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.BootyBar_Tagline {
    margin-top: 2px;
    color: var(--FooterText);
    font: 500 10px "Julius Sans One", Arial, sans-serif;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

/* Booty Links */

.BootyBar_Links {
    justify-content: flex-end;
    gap: clamp(16px, 2vw, 38px);
    padding: 0 15px;
    white-space: nowrap;
}

.BootyBar_UtilityLink {
    position: relative;
    color: var(--FooterLink);
    font: 600 13px "Cormorant SC", Georgia, serif;
    letter-spacing: 0.2em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        color 180ms ease,
        text-shadow 180ms ease;
}

.BootyBar_UtilityLink::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -3px;
    left: 0;
    height: 1px;
    background: var(--WineInset);
    transform: scaleX(0.65);
    transition:
        background-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.BootyBar_UtilityLink:hover {
    color: var(--GoldLight);
    text-shadow: 0 0 6px var(--GoldGlow45);
}

.BootyBar_UtilityLink:hover::after {
    background-color: var(--Gold);
    box-shadow: 0 0 5px var(--GoldGlow45);
    transform: scaleX(1);
}

.BootyBar_UtilityLink:focus-visible {
    outline: 1px solid var(--GoldLight);
    outline-offset: 3px;
}
/* ---------------------------------------------------------------------------------------- */
/* Interior Page */
/* ---------------------------------------------------------------------------------------- */
.InteriorPage {
    position: fixed;
    top: 60px;
    bottom: 60px;
    left: 50%;
    width: min(1200px, calc(100vw - 144px));
    margin: 0;
    padding: 0 10px;
    background-image:
    url("https://www.simulacosis.com/eldrichryptid/Admin%20Uploads/imgs.webp"),
        linear-gradient(
            to right,
            var(--WineDark),
            var(--Wine),
            var(--WineDark)
        );
    background-position: center;
    background-size: auto, 100% 100%;
    background-repeat: repeat-y, no-repeat;
    background-blend-mode: soft-light, normal;
    border: solid var(--GoldEdge);
    border-width: 0 1px;
    box-shadow:
        inset 2px 0 var(--WineInset),
        inset -2px 0 var(--WineInset),
        8px 0 20px var(--Shadow40),
        -8px 0 20px var(--Shadow40);
    transform: translateX(-50%);
}
/* ---------------------------------------------------------------------------------------- */
/* Page Content */
/* ---------------------------------------------------------------------------------------- */
.InteriorPage_Content {
    width: 100%;
    height: 100%;
    overflow: auto;
    color: var(--MainText);
    background: linear-gradient(
        var(--BayTop),
        var(--BayBottom)
    );
    border: solid var(--GoldEdge);
    border-width: 0 1px;
    box-shadow:
        inset 8px 0 16px var(--Shadow95),
        inset -8px 0 16px var(--Shadow95);
}

/* Page Title */

.InteriorPage_Title {
    margin: 0;
    color: var(--GoldTitle);
    font: 700 clamp(20px, 2.2vw, 32px) "Cinzel Decorative", Georgia, serif;
    letter-spacing: 0.14em;
    text-align: center;
    text-shadow:
        0 1px var(--Black),
        0 0 9px var(--GoldGlow25);
}

/* Page Divider */

.InteriorPage_Divider {
    margin: 10px 0 24px;
    color: var(--WineInset);
    font-size: 11px;
    letter-spacing: 0.35em;
    text-align: center;
}
/* ---------------------------------------------------------------------------------------- */
/* Drawers */
/* ---------------------------------------------------------------------------------------- */
.SideDrawers {
    --drawer-width: 330px;
    --drawer-height: 83px;
    --tab-width: 36px;
    --tab-height: 44px;

    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 0;
    pointer-events: none;
}

/* Left Drawers */

.SideDrawers--left {
    top: 30px;
    left: 100%;
    align-items: flex-start;
}

/* Right Drawers */

.SideDrawers--right {
    right: 100%;
    bottom: 30px;
    align-items: flex-end;
}

/* Drawer Container */

.SideDrawer {
    position: relative;
    flex: none;
    width: 0;
    height: var(--drawer-height);
}

/* Drawer Tabs */

.SideDrawer_Tab {
    position: absolute;
    top: calc((var(--drawer-height) - var(--tab-height)) / 2);
    z-index: 2;
    display: grid;
    place-items: center;
    width: var(--tab-width);
    height: var(--tab-height);
    margin: 0;
    padding: 5px;
    appearance: none;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    color: var(--Gold);
    border: 1px solid var(--GoldEdge);
    box-shadow:
        inset 0 0 0 2px var(--WineInset),
        0 2px 8px var(--Shadow40);
    transition: color 160ms ease;
}

.SideDrawers--left .SideDrawer_Tab {
    left: 100%;
    background: linear-gradient(
        90deg,
        var(--WineDark),
        var(--Wine)
    );
    border-left: 0;
    border-radius: 0 7px 7px 0;
}

.SideDrawers--right .SideDrawer_Tab {
    right: 100%;
    background: linear-gradient(
        270deg,
        var(--WineDark),
        var(--Wine)
    );
    border-right: 0;
    border-radius: 7px 0 0 7px;
}

/* Drawer Icons */

.SideDrawer_Tab > i {
    display: inline-block;
    width: 1.25em;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    text-align: center;
    pointer-events: none;
}

/* Drawer Hover and Open */

.SideDrawer_Tab:hover,
.SideDrawer.is-open .SideDrawer_Tab {
    color: var(--GoldLight);
}

.SideDrawer_Tab:focus-visible {
    outline: 2px solid var(--GoldLight);
    outline-offset: 3px;
}

/* Drawer Window */

.SideDrawer_Window {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: auto;
}

/* Drawer Panel */

.SideDrawer_Panel {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: var(--drawer-width);
    height: var(--drawer-height);
    padding: 10px 12px;
    overflow: hidden;
    color: var(--MainText);
    background: linear-gradient(
        135deg,
        var(--DropdownHeader),
        var(--BlackSoft) 70%
    );
    border: 1px solid var(--GoldEdge);
    box-shadow:
        inset 0 0 0 2px var(--WineDark),
        inset 0 0 12px var(--Shadow45);
    font: 12px/1.4 "Spectral", Georgia, serif;
}

.SideDrawers--left .SideDrawer_Panel {
    right: 0;
    border-left: 0;
    border-radius: 0 5px 5px 0;
}

.SideDrawers--right .SideDrawer_Panel {
    left: 0;
    border-right: 0;
    border-radius: 5px 0 0 5px;
}

/* Drawer Title */

.SideDrawer_Title {
    flex-shrink: 0;
    color: var(--GoldTitle);
    font: 600 14px/1.2 "Cormorant SC", Georgia, serif;
    letter-spacing: 0.12em;
}

/* Drawer Content */

.SideDrawer_Content {
    flex: 1;
    min-height: 0;
    overflow: auto;
    overflow-wrap: anywhere;
    scrollbar-width: thin;
    scrollbar-color: var(--GoldDark) var(--BlackSoft);
}

.SideDrawer_Content p {
    margin: 0;
}

.SideDrawer_Content a {
    color: var(--Gold);
}
/* ---------------------------------------------------------------------------------------- */
/* Library CSS */
/* ---------------------------------------------------------------------------------------- */
.StoryLibrary {
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--MainText);
}

.StoryLibrary,
.StoryLibrary *,
.StoryLibrary *::before,
.StoryLibrary *::after {
    box-sizing: border-box;
}

/* Library Heading. */

.StoryLibrary_Title {
    margin: 0;
    color: var(--GoldLight);
    font: 700 clamp(22px, 3vw, 32px)/1.3
        "Cinzel Decorative", Georgia, serif;
    text-align: center;
}

.StoryLibrary_Intro {
    margin: 12px 0 32px;
    color: var(--DropdownMuted);
    font: 400 14px/1.6 "Spectral", Georgia, serif;
    text-align: center;
}

/* Book Row */

.StoryLibrary_Shelf {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* Book Base */

.StoryBook {
    position: relative;
    width: 100%;
    aspect-ratio: 7 / 10;
    padding: 0;
    perspective: 1200px;
    cursor: pointer;
    color: var(--MainText);
    background: var(--WineDark);
    border: 1px solid var(--Gold);
    border-radius: 3px 10px 10px 3px;
    text-align: left;
    box-shadow:
        3px 3px var(--WineInset),
        7px 8px 16px var(--Shadow45);
    transition: box-shadow 180ms ease;
}

.StoryBook:hover {
    box-shadow:
        3px 3px var(--Gold),
        7px 10px 22px var(--Shadow45);
}

.StoryBook:focus-visible {
    outline: 2px solid var(--GoldLight);
    outline-offset: 5px;
}

/* Cover Hover Page Glimpse */

.StoryBook::before {
    content: "";
    position: absolute;
    inset: 5px 3px 5px 7px;
    background: repeating-linear-gradient(
        to right,
        var(--DropdownMuted) 0 1px,
        var(--MainText) 1px 3px
    );
    border: 1px solid var(--Gold);
    border-radius: 2px 8px 8px 2px;
}

/* Cover Hinge */

.StoryBook_Face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: clamp(12px, 1.6vw, 22px);
    overflow: hidden;
    background: var(--WineDark);
    border-left: 4px solid var(--WineInset);
    border-radius: 2px 9px 9px 2px;
    transform-origin: left center;
    backface-visibility: hidden;
    transition: transform 420ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

/* Text Underlay */

.StoryBook_Face::after,
.StoryPreview_Front::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        var(--Shadow90),
        transparent 48%,
        var(--Shadow90)
    );
}

/* Cover Artwork */

.StoryBook_Image,
.StoryPreview_Image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cover Text Layers */

.StoryBook_Subtitle,
.StoryBook_Title,
.StoryBook_Excerpt,
.StoryPreview_CoverSubtitle,
.StoryPreview_CoverTitle,
.StoryPreview_Excerpt,
.StoryPreview_Hint {
    position: relative;
    z-index: 1;
}

/* Shelf Cover Text */

.StoryBook_Subtitle {
    color: var(--GoldLight);
    font: 500 10px/1.5 "Spectral", Georgia, serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.StoryBook_Title {
    margin-top: 8px;
    font: 700 clamp(16px, 1.8vw, 23px)/1.25
        "Cinzel Decorative", Georgia, serif;
    overflow-wrap: anywhere;
}

.StoryBook_Excerpt {
    margin-top: auto;
    padding-top: 16px;
    font: 400 12px/1.55 "Averia Libre", Georgia, serif;
}

/* Cover Hover */

@media (hover: hover) and (pointer: fine) {
    .StoryBook:hover .StoryBook_Face {
        transform: rotateY(-22deg);
    }
}
.StoryBook:focus-visible .StoryBook_Face {
    transform: rotateY(-22deg);
}

/* Book Full-screen */

.StoryPreview {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: var(--MainText);
    background: transparent;
    border: 0;
}

.StoryPreview[open] {
    display: grid;
    place-items: center;
}

.StoryPreview::backdrop {
    background: var(--Shadow90);
}

.StoryPreview_Stage {
    width: min(680px, calc(100vw - 32px));
    height: min(470px, calc(100dvh - 112px));
    perspective: 1800px;
}

.StoryPreview_Book {
    position: relative;
    width: 50%;
    height: 100%;
    margin-left: 25%;
    transform-style: preserve-3d;
    transition: margin-left 720ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.StoryPreview.is-open .StoryPreview_Book {
    margin-left: 50%;
}

/* Open Right Page */
.StoryPreview_Right {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 30px 28px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at top right,
            var(--WineDark),
            transparent 55%
        ),
        var(--BlackSoft);
    border: 1px solid var(--Gold);
    border-radius: 5px 14px 14px 5px;
    box-shadow:
        inset 10px 0 18px var(--Shadow45),
        0 12px 28px var(--Shadow45);
}

/* Enables scrolling after the animation finishes. */

.StoryPreview.is-ready .StoryPreview_Right {
    overflow: auto;
}

/* Hinged Cover. */

.StoryPreview_Cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 720ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.StoryPreview.is-open .StoryPreview_Cover {
    transform: rotateY(-180deg);
}

/* Hover Peek */

@media (hover: hover) and (pointer: fine) {
    .StoryPreview:not(.is-open)
    .StoryPreview_Book:hover
    .StoryPreview_Cover {
        transform: rotateY(-18deg);
    }
}

.StoryPreview:not(.is-open)
.StoryPreview_Cover:has(.StoryPreview_Front:focus-visible) {
    transform: rotateY(-18deg);
}

/* Enlarged Cover Button. */

.StoryPreview_Front {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 28px;
    overflow: hidden;
    cursor: pointer;
    color: var(--MainText);
    background: var(--WineDark);
    border: 1px solid var(--Gold);
    border-left: 5px solid var(--WineInset);
    border-radius: 5px 14px 14px 5px;
    backface-visibility: hidden;
    text-align: left;
    box-shadow: 0 12px 28px var(--Shadow45);
}

.StoryPreview_Front:focus-visible {
    outline: 2px solid var(--GoldLight);
    outline-offset: -6px;
}

/* Enlarged Cover Text */

.StoryPreview_CoverSubtitle {
    color: var(--GoldLight);
    font: 500 12px/1.5 "Spectral", Georgia, serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.StoryPreview_CoverTitle {
    margin-top: 10px;
    font: 700 29px/1.25 "Cinzel Decorative", Georgia, serif;
    overflow-wrap: anywhere;
}

.StoryPreview_Excerpt {
    margin-top: auto;
    padding-top: 20px;
    font: 400 15px/1.6 "Averia Libre", Georgia, serif;
}

.StoryPreview_Hint {
    margin-top: 18px;
    color: var(--GoldLight);
    font: 600 12px "Pangolin", cursive;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Tag Page */

.StoryPreview_Back {
    position: absolute;
    inset: 0;
    padding: 30px 26px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at top left,
            var(--WineDark),
            transparent 58%
        ),
        var(--BlackSoft);
    border: 1px solid var(--Gold);
    border-radius: 14px 5px 5px 14px;
    box-shadow:
        inset -10px 0 18px var(--Shadow45),
        0 12px 28px var(--Shadow45);
    backface-visibility: hidden;
    transform: rotateY(180deg);
}

.StoryPreview.is-ready .StoryPreview_Back {
    overflow: auto;
}

/* Tag Heading */

.StoryPreview_TagHeading {
    margin: 0;
    padding-bottom: 12px;
    color: var(--GoldLight);
    border-bottom: 1px solid var(--WineInset);
    font: 700 18px "Cormorant SC", Georgia, serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Story Tags */

.StoryPreview_Tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.StoryPreview_Tag {
    padding: 6px 9px;
    color: var(--Gold);
    background: var(--WineDark);
    border: 1px solid var(--WineInset);
    border-radius: 2px 8px;
    font: 600 12px "Cormorant SC", Georgia, serif;
}

/* Interior Book Text */

.StoryPreview_Subtitle {
    margin: 0;
    color: var(--DropdownMuted);
    font: 500 11px/1.5 "Spectral", Georgia, serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.StoryPreview_Title {
    margin: 10px 0}
/* ---------------------------------------------------------------------------------------- */
/* Page Banner */
/* ---------------------------------------------------------------------------------------- */
.PageBanner {
    /* Layout */
    --banner-height: 600px;
    --banner-text-top: 195px;
    --banner-text-left: 5px;
    --banner-text-width: 500px;
    --banner-image-position: center;
    --banner-frame-height: 12px;

    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: var(--banner-height);
    padding:
        var(--banner-text-top)
        32px
        64px
        var(--banner-text-left);

    color: var(--MainText);
    background: var(--BlackSoft);
}

/* Banner Image */
.PageBanner_Image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--banner-image-position);
}

/* Bottom Frame */
.PageBanner::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: var(--banner-frame-height);
    pointer-events: none;
    background: linear-gradient(
        var(--WineInset),
        var(--WineDark)
    );
    border-top: 1px solid var(--GoldEdge);
    border-bottom: 1px solid var(--GoldDark);
    box-shadow:
        inset 0 1px var(--GoldSheen),
        0 4px 12px var(--Shadow45);
}

/* Text Container */
.PageBanner_Content {
    width: 100%;
    max-width: var(--banner-text-width);
    overflow-wrap: break-word;
    text-shadow: 0 2px 6px var(--Shadow90);
}

/* Small Text */
.PageBanner_Subtitle {
    margin: 0 0 14px;
    color: var(--GoldTitle);
    font: 600 11px/1.3 "Julius Sans One", Arial, sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Main Title */
.PageBanner_Title {
    margin: 0;
    color: var(--MainText);
    font: italic 700 clamp(42px, 6vw, 70px)/1.1
        "IM Fell English", Georgia, serif;
}

/* Paragraph */
.PageBanner_Description {
    margin: 28px 0 0;
    font: 400 clamp(16px, 1.4vw, 21px)/1.8
        "Spectral", Georgia, serif;
}
/* ---------------------------------------------------------------------------------------- */
/* Scrollbars */
/* ---------------------------------------------------------------------------------------- */
:root {
    --scroll-track: #191214;
    --scroll-thumb: #713442;
    --scroll-hover: #994758;
    --scroll-accent: #d7b17a;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

/* Chrome */
@supports selector(::-webkit-scrollbar) {
    * {
        scrollbar-width: auto;
        scrollbar-color: auto;
    }

    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    ::-webkit-scrollbar-track {
        background: var(--scroll-track);
        border-radius: 8px;
    }

    ::-webkit-scrollbar-thumb {
        background: var(--scroll-thumb);
        border: 2px solid var(--scroll-track);
        border-radius: 8px;
        box-shadow: inset 0 0 0 1px var(--scroll-accent);
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--scroll-hover);
    }

    ::-webkit-scrollbar-corner {
        background: var(--scroll-track);
    }
}
/* ---------------------------------------------------------------------------------------- */
/* Music Player */
/* ---------------------------------------------------------------------------------------- */
.MusicPlayer {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 20px 24px 20px minmax(0, 1fr) 62px;
    align-items: center;
    gap: 4px;
    width: calc(100% - 4px);
    max-width: 326px;
    min-width: 0;
    margin: 2px;
    padding: 6px;
    pointer-events: auto;
    color: var(--MainText);
    background: var(--BlackSoft);
    border: 1px solid var(--GoldEdge);
    box-shadow:
        0 0 0 2px var(--WineInset),
        inset 0 0 8px var(--Black);
    font: 400 12px/1.4 "Spectral", Georgia, serif;
}

/* Playback Buttons */
.MusicPlayer button {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: 100%;
    height: 26px;
    padding: 0;
    cursor: pointer;
    color: var(--Gold);
    background: var(--WineDark);
    border: 1px solid var(--DropdownLine);
    border-radius: 2px;
    font: 700 14px/1 "Spectral", Georgia, serif;
}

.MusicPlayer button:hover {
    color: var(--GoldLight);
    background: var(--Wine);
    border-color: var(--GoldEdge);
}

.MusicPlayer [data-music="play"] {
    color: var(--GoldLight);
    border-color: var(--GoldDark);
    font-size: 11px;
}

/* Track Details */
.MusicPlayer_Details {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.MusicPlayer_Details strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

/* Track Credit */
.MusicPlayer_Meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
    min-width: 0;
    color: var(--DropdownMuted);
    font-size: 10px;
    line-height: 1.3;
}

.MusicPlayer_Meta a {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

.MusicPlayer_Meta span {
    flex-shrink: 0;
    white-space: nowrap;
}

.MusicPlayer_Meta a[href]:hover {
    color: var(--GoldLight);
}

/* Volume Controls */
.MusicPlayer_Volume {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 4px;
    min-width: 0;
}

/* Shared Sliders */
.MusicPlayer_Range {
    appearance: none;
    width: 100%;
    min-width: 0;
    height: 12px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    background: transparent;
}

.MusicPlayer_Range:disabled {
    cursor: default;
    opacity: 0.4;
}

/* Chrome Sliders */
.MusicPlayer_Range::-webkit-slider-runnable-track {
    height: 3px;
    background: var(--WineInset);
}

.MusicPlayer_Range::-webkit-slider-thumb {
    appearance: none;
    box-sizing: border-box;
    width: 6px;
    height: 11px;
    margin-top: -4px;
    background: var(--Gold);
    border: 1px solid var(--GoldLight);
    border-radius: 1px;
}

/* Firefox Sliders */
.MusicPlayer_Range::-moz-range-track {
    height: 3px;
    background: var(--WineInset);
}

.MusicPlayer_Range::-moz-range-thumb {
    box-sizing: border-box;
    width: 6px;
    height: 11px;
    background: var(--Gold);
    border: 1px solid var(--GoldLight);
    border-radius: 1px;
}

/* Keyboard Focus */
.MusicPlayer :focus-visible {
    outline: 1px solid var(--GoldLight);
    outline-offset: 2px;
}

/* Player Status */
.MusicPlayer_Status {
    grid-column: 1 / -1;
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--DropdownMuted);
    font-size: 10px;
    font-family: "Julius Sans One", Arial, sans-serif;
}

.MusicPlayer_Status:empty,
.MusicPlayer audio {
    display: none;
}
/* ---------------------------------------------------------------------------------------- */
/* Secret Bay */
/* ---------------------------------------------------------------------------------------- */
.SecretBay {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    align-items: center;
    gap: 4px;
    width: calc(100% - 4px);
    max-width: 326px;
    min-height: 56px;
    margin: 2px;
    padding: 6px;
    pointer-events: auto;
    background: var(--BlackSoft);
    border: 1px solid var(--GoldEdge);
    box-shadow:
        0 0 0 2px var(--WineInset),
        inset 0 0 8px var(--Black);
}

/* Slot Buttons */
.SecretBay_Slot {
    min-width: 0;
}

.SecretBay button,
.SecretBay a {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: 100%;
    height: 40px;
    padding: 0;
    color: var(--Gold);
    background: var(--WineDark);
    border: 1px solid var(--DropdownLine);
    border-radius: 2px;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
}

.SecretBay button:disabled {
    color: var(--GoldDark);
    background: var(--BlackSoft);
    cursor: default;
    opacity: 0.5;
}

.SecretBay button:not(:disabled):hover,
.SecretBay a:hover {
    color: var(--GoldLight);
    background: var(--Wine);
    border-color: var(--GoldEdge);
}

.SecretBay a {
    color: var(--GoldLight);
    border-color: var(--GoldDark);
}

/* Character Bay */
.CharacterBay {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.CharacterBay .CharacterBay_Link {
    position: relative;
    overflow: hidden;
    font-size: 16px;
}

.CharacterBay_Link i {
    transition: opacity 180ms ease, transform 180ms ease;
}

.CharacterBay_Link span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 3px;
    color: var(--GoldLight);
    background: linear-gradient(180deg, rgb(50 7 20 / 92%), rgb(6 3 4 / 98%));
    font: 700 8px/1.05 "Cormorant SC", serif;
    letter-spacing: .03em;
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(7px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.CharacterBay_Link:hover i,
.CharacterBay_Link:focus-visible i {
    opacity: 0;
    transform: translateY(-7px);
}

.CharacterBay_Link:hover span,
.CharacterBay_Link:focus-visible span {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: none) {
    .CharacterBay_Link i {
        transform: translateY(-6px) scale(.82);
    }

    .CharacterBay_Link span {
        inset: auto 0 2px;
        display: block;
        padding: 0 2px;
        overflow: hidden;
        background: none;
        font-size: 7px;
        text-overflow: ellipsis;
        white-space: nowrap;
        opacity: 1;
        transform: none;
    }
}

/* Popup Overlay */
.SecretGate {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 24px;
    overflow: auto;
    pointer-events: auto;
    color: var(--MainText);
    background: transparent;
    border: 0;
    font: 400 15px/1.6 "Spectral", Georgia, serif;
}

.SecretGate[open] {
    display: grid;
    place-items: center;
}

.SecretGate::backdrop {
    background: var(--Shadow95);
}

/* Popup Panel */
.SecretGate_Panel {
    box-sizing: border-box;
    position: relative;
    width: min(580px, 100%);
    padding: 36px clamp(20px, 5vw, 48px);
    background:
        radial-gradient(circle at top, var(--WineHaze22), transparent 70%),
        var(--BlackSoft);
    border: 1px solid var(--GoldEdge);
    box-shadow:
        0 0 0 2px var(--WineInset),
        inset 0 0 24px var(--Black),
        0 12px 40px var(--Shadow90);
    text-align: center;
}

/* Close Button */
.SecretGate_Close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--GoldMuted);
    background: transparent;
    border: 0;
    cursor: pointer;
    font: 28px/1 "Spectral", Georgia, serif;
}

.SecretGate_Close:hover {
    color: var(--GoldLight);
}

/* Gate Artwork */
.SecretGate_Artwork {
    display: block;
    width: min(180px, 60%);
    height: auto;
    margin: 0 auto 20px;
}

/* Gate Text */
.SecretGate_Inscription {
    margin: 0 0 24px;
    color: var(--DropdownMuted);
    font-size: 15px;
    font-family: "Walter Turncoat", cursive;
}

.SecretGate h2 {
    margin: 0 0 24px;
    color: var(--GoldLight);
    font: 600 clamp(22px, 4vw, 30px)/1.3
        "Cormorant SC", Georgia, serif;
}

/* Guest Notice */
.SecretGate_Guest {
    margin: 0 0 24px;
    padding: 12px;
    color: var(--MainText);
    background: var(--WineDark);
    border: 1px solid var(--WineInset);
    font-size: 13px;
}

/* Password Form */
.SecretGate_Form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    text-align: left;
}

.SecretGate_Form fieldset:disabled {
    opacity: 0.5;
}

.SecretGate_Form label {
    display: block;
    margin-bottom: 8px;
    color: var(--GoldMuted);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Password Input */
.SecretGate_Input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.SecretGate_Input input,
.SecretGate_Input button {
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 14px;
    color: var(--MainText);
    border: 1px solid var(--GoldDark);
    font: inherit;
}

.SecretGate_Input input {
    width: 100%;
    min-width: 0;
    background: var(--Black);
    border-right: 0;
}

.SecretGate_Input button {
    background: linear-gradient(var(--Wine), var(--WineDark));
    cursor: pointer;
}

.SecretGate_Input button:not(:disabled):hover {
    color: var(--GoldLight);
    border-color: var(--GoldEdge);
}

/* Gate Status */
.SecretGate_Status {
    min-height: 1.6em;
    margin: 16px 0 0;
    color: var(--GoldMuted);
    font-size: 13px;
}

/* Keyboard Focus */
.SecretBay :focus-visible,
.SecretGate :focus-visible {
    outline: 1px solid var(--GoldLight);
    outline-offset: 3px;
}
/* ---------------------------------------------------------------------------------------- */
/* Secret Background Matrix */
/* ---------------------------------------------------------------------------------------- */
/* Background Layer */
.SecretGate_Matrix {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    opacity: 0.8;
}

/* Popup Layer */
.SecretGate_Panel {
    z-index: 1;
}

/* Drifting Text */
.SecretGate_Matrix span {
    position: absolute;
    top: var(--MatrixTop);
    left: var(--MatrixLeft);
    color: var(--WineInset);
    font: 400 clamp(10px, 0.8vw, 13px)/1
        "Spectral", Georgia, serif;
    letter-spacing: 0.14em;
    white-space: nowrap;
    text-shadow:
        0 0 6px var(--Wine),
        0 0 18px var(--WineDark);
    opacity: 0;
    animation:
        SecretMatrixDrift
        var(--MatrixDuration)
        linear
        var(--MatrixDelay)
        infinite;
    animation-play-state: paused;
}

/* Active Animation */
.SecretGate[open] .SecretGate_Matrix span {
    animation-play-state: running;
}

/* Text Movement */
@keyframes SecretMatrixDrift {
    0% {
        opacity: 0;
        transform: translateY(-12vh) scale(var(--MatrixScale));
    }
    12% { opacity: 0.08; }
    22% { opacity: 0.72; }
    29% { opacity: 0.16; }
    40% { opacity: 0.55; }
    54% { opacity: 0.08; }
    67% { opacity: 0.48; }
    76% { opacity: 0.12; }
    88% { opacity: 0.62; }
    100% {
        opacity: 0;
        transform: translateY(30vh) scale(var(--MatrixScale));
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .SecretGate_Matrix span {
        animation: none;
        opacity: 0.25;
    }
}






















































/* ---------------------------------------------------------------------------------------- */
/* Home Content */
/* ---------------------------------------------------------------------------------------- */
.HomeContent {
    padding: clamp(20px, 4vw, 48px);
    color: var(--MainText);
    text-align: left;
}

/* Section Heading */
.HomeContent_Heading {
    margin: 0 0 24px;
    color: var(--GoldMuted);
    font: 600 15px/1.5 "Cormorant SC", Georgia, serif;
    letter-spacing: 0.16em;
    text-align: center;
}

/* Quote Frame */
.HomeQuote {
    position: relative;
    margin: 40px 0 0;
    padding: clamp(30px, 5vw, 56px) clamp(24px, 5vw, 60px);
    background:
        radial-gradient(
            ellipse at center,
            var(--WineHaze17),
            transparent 75%
        ),
        var(--BlackSoft);
    border-top: 1px solid var(--GoldDark);
    border-bottom: 1px solid var(--GoldDark);
    box-shadow: inset 0 0 24px var(--Shadow45);
}

/* Quote Text */
.HomeQuote p {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    color: var(--MainText);
    font: 400 clamp(12px, 1.8vw, 16px)/1.9
        "IM Fell English", Georgia, serif;
    text-align: center;
}

/* Quote Marks */
.HomeQuote::before,
.HomeQuote::after {
    position: absolute;
    color: var(--GoldDark);
    font: 40px/1 "Spectral", Georgia, serif;
}

.HomeQuote::before {
    content: "“";
    top: 10px;
    left: 16px;
}

.HomeQuote::after {
    content: "”";
    right: 16px;
    bottom: -12px;
}

/* ---------------------------------------------------------------------------------------- */
/* Homepage Cards */
/* ---------------------------------------------------------------------------------------- */

.HomeArchiveSection {
    padding: 0px;
}

.HomeArchiveTitle {
    margin: 0 0 20px;
    color: var(--GoldTitle);
    font: 700 22px "Cinzel Decorative", Georgia, serif;
    text-align: center;
}

.HomeArchiveGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

/* Card Layout */

.HomeArchiveCard {
    position: relative;
    display: grid;
    grid-template-columns: 55% minmax(0, 1fr);
    min-width: 0;
    min-height: 240px;
    overflow: hidden;
    color: var(--MainText);
    background: linear-gradient(145deg, var(--WineDark), var(--BayBottom));
    border: 1px solid var(--GoldDark);
    border-radius: 8px;
    box-shadow: inset 0 0 12px var(--Shadow45);
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.HomeArchiveCard:hover,
.HomeArchiveCard:focus-within {
    border-color: var(--GoldEdge);
    box-shadow: 0 0 15px var(--GoldGlow25);
}

/* Card Images */

.HomeArchiveImage {
    min-width: 0;
    overflow: hidden;
    background: var(--BlackSoft);
    border-right: 1px solid var(--GoldDark);
}

.HomeArchiveImage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Image Position */

.HomeArchiveImageStudio img {
    object-position: center;
}

.HomeArchiveImageSupply img {
    object-position: center;
}

/* Card Content */

.HomeArchiveCopy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px 16px;
}

.HomeArchiveCopy .CardNumber {
    margin-bottom: 12px;
    color: var(--GoldMuted);
    font-size: 12px;
    font-family: "Amatic SC", sans-serif;
    letter-spacing: 0.12em;
}

.HomeArchiveCopy h3 {
    margin: 0 0 10px;
    color: var(--GoldTitle);
    font: 700 23px "Cinzel Decorative", Georgia, serif;
}

.HomeArchiveCopy p {
    margin: 0 0 18px;
    color: var(--MainText);
    font-size: 13px;
    line-height: 1.5;
}

/* Menu Trigger */

.HomeArchiveMenu {
    margin-top: auto;
}

.HomeArchiveMenu summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
    color: var(--GoldLight);
    background: var(--WineDark);
    border: 1px solid var(--GoldDark);
    border-radius: 4px;
    cursor: pointer;
    list-style: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.HomeArchiveMenu summary::-webkit-details-marker {
    display: none;
}

.HomeArchiveMenu summary::after {
    content: "+";
    color: var(--GoldLight);
    font-size: 16px;
}

.HomeArchiveMenu[open] summary::after {
    content: "−";
}

/* Menu Overlay */

.HomeArchiveMenuList {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    grid-template-rows: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 16px;
    background:
        linear-gradient(145deg, var(--WineHaze22), transparent),
        var(--Dropdown);
    border: 1px solid var(--GoldDark);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        visibility 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .HomeArchiveCard:hover .HomeArchiveMenuList {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}

/* Menu Links */


/* Menu Buttons */

.HomeArchiveMenu summary {
    border: 1px solid var(--GoldDark);
    border-radius: 10px;
    color: var(--DropdownText);
    background: var(--Dropdown);
    transition: background 150ms ease, border-color 150ms ease;
}

.HomeArchiveMenu summary:hover {
    border-color: var(--GoldEdge);
    background: var(--DropdownHover);
}

/* Menu Links */

/* Menu Layout */

.HomeArchiveMenuList {
    gap: 0;
    padding: 0;
    background: var(--Dropdown);
    border-color: var(--GoldEdge);
}

/* Menu Gradient */

.HomeArchiveMenuList .CrownNavigatorDropdown_Link {
    background-size: 100% 100%;
    background-position: -100% 0;
}

.HomeArchiveMenuList .CrownNavigatorDropdown_Link:hover {
    background-position: 0 0;
}
/* ---------------------------------------------------------------------------------------- */

















/* ==============================
   GALLERY
   ============================== */

/* Gallery Palette */
.EldGallery,
.EG_Modal {
    --eg-gold: var(--Gold, #d7b17a);
    --eg-wine: var(--Wine, #4a1422);
    --eg-black: var(--Black, #080606);
    --eg-line: var(--GoldEdge, #8d6c40);

    color: var(--eg-gold);
    font: 14px/1.45 Spectral, Georgia, serif;
}

/* Box Sizing */
.EldGallery *,
.EG_Modal * {
    box-sizing: border-box;
}

/* Form Fonts */
.EldGallery button,
.EldGallery input,
.EldGallery select,
.EG_Modal button {
    font: inherit;
}

/* Button Defaults */
.EldGallery button,
.EG_Modal button {
    cursor: pointer;
    color: inherit;
}

/* ==============================
   GALLERY HEADER
   ============================== */

/* Header Container */
.EG_Header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;

    padding: 14px 18px;
    border: 1px solid var(--eg-line);

    background: linear-gradient(
        120deg,
        var(--eg-wine),
        var(--eg-black)
    );
}

/* Header Labels */
.EG_Header small,
.EG_ViewerHead small {
    font: 10px/1.5 Cinzel Decorative, serif;
    letter-spacing: .12em;
    opacity: .8;
}

/* Heading Styles */
.EG_Header h2,
.EG_ViewerHead h3,
.EG_Details h3 {
    margin: 2px 0;
    font: 600 22px/1.2 Cormorant SC, Georgia, serif;
}

/* Filter Container */
.EG_Filters {
    display: flex;
    gap: 7px;
    min-width: 0;
}

/* Filter Inputs */
.EG_Filters > * {
    min-width: 0;
    width: 190px;
    max-width: 42vw;

    padding: 7px;
    border: 1px solid var(--eg-line);

    background: var(--eg-black);
    color: var(--eg-gold);
}

/* ==============================
   GALLERY LAYOUT
   ============================== */

/* Main Layout */
.EG_Layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 8px;

    margin-top: 8px;
}

/* Viewer Layout */
.EG_Shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 245px;

    min-width: 0;
    height: 800px;

    border: 1px solid var(--eg-line);
    background: var(--eg-black);

    transition: grid-template-columns .2s;
}

/* Expanded Layout */
.EG_Shell.is-expanded {
    grid-template-columns: minmax(0, 1fr) minmax(245px, 44%);
}

/* ==============================
   CATEGORY SIDEBAR
   ============================== */

/* Category Container */
.EG_Categories {
    display: flex;
    flex-direction: column;
    gap: 5px;

    height: 800px;
    overflow: auto;

    padding: 7px;
    border: 1px solid var(--eg-line);

    background: var(--eg-black);
}

/* Category Buttons */
.EG_Categories button {
    display: flex;
    justify-content: space-between;
    gap: 7px;

    width: 100%;
    padding: 9px 7px;

    border: 1px solid transparent;

    background: linear-gradient(
        90deg,
        var(--eg-wine),
        var(--eg-black)
    );

    text-align: left;
}

/* Active Category */
.EG_Categories button:hover,
.EG_Categories button.is-active {
    border-color: var(--eg-gold);
    background: var(--eg-wine);
}

/* Category Counts */
.EG_Categories em {
    font-style: normal;
    opacity: .65;
}

/* ==============================
   ARTWORK VIEWER
   ============================== */

/* Viewer Container */
.EG_Viewer {
    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 0;
}

/* Viewer Header */
.EG_ViewerHead {
    display: flex;
    justify-content: space-between;
    gap: 8px;

    padding: 9px 12px;
    border-bottom: 1px solid var(--eg-line);

    background: linear-gradient(
        90deg,
        var(--eg-wine),
        var(--eg-black)
    );
}

/* Gallery Title */
.EG_ViewerHead h3 {
    font-size: 19px;
}

/* Gallery Description */
.EG_Description {
    margin: 2px 0 0;
    color: var(--GoldMuted, var(--eg-gold));
    font-size: 12px;
}

/* Image Counter */
.EG_Counter {
    flex: none;
    font: 12px Consolas, monospace;
}

/* Image Stage */
.EG_Stage {
    position: relative;

    display: grid;
    place-items: center;

    min-height: 0;
    flex: 1;

    background: radial-gradient(
        ellipse at center,
        var(--eg-wine),
        var(--eg-black) 70%
    );
}

/* Image Button */
.EG_Open {
    display: grid;
    place-items: center;

    width: 100%;
    height: 100%;
    min-height: 0;

    padding: 25px 48px;
    border: 0;

    background: transparent;
}

/* Main Image */
.EG_Image {
    display: block;

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;
    transition: opacity .17s;
}

/* Image Transition */
.EG_Image.is-swapping {
    opacity: 0;
}

/* Navigation Arrows */
.EG_Stage > .EG_Prev,
.EG_Stage > .EG_Next,
.EG_ModalStage > .EG_ModalPrev,
.EG_ModalStage > .EG_ModalNext {
    position: absolute;
    z-index: 2;

    top: 50%;
    width: 35px;
    height: 55px;

    transform: translateY(-50%);

    border: 1px solid var(--eg-line);
    background: var(--eg-black);

    font-size: 28px;
}

/* Previous Arrows */
.EG_Prev,
.EG_ModalPrev {
    left: 6px;
}

/* Next Arrows */
.EG_Next,
.EG_ModalNext {
    right: 6px;
}

/* Empty Gallery */
.EG_Empty {
    position: absolute;

    max-width: 80%;
    padding: 15px;

    text-align: center;
    pointer-events: none;
}

/* ==============================
   ARTWORK DETAILS
   ============================== */

/* Details Container */
.EG_Details {
    min-height: 93px;
    max-height: 155px;
    overflow: auto;

    padding: 7px 12px;
    border-top: 1px solid var(--eg-line);

    background: var(--eg-black);
}

/* Artwork Title */
.EG_Details h3 {
    font-size: 18px;
}

/* Details Text */
.EG_Details p {
    margin: 2px 0;
    font-size: 12px;
}

/* Artwork Metadata */
.EG_ImageMeta {
    opacity: .7;
}

/* ==============================
   THUMBNAIL PANEL
   ============================== */

/* Thumbnail Container */
.EG_Thumbs {
    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 0;

    border-left: 1px solid var(--eg-line);
}

/* Thumbnail Header */
.EG_Thumbs header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: none;

    min-height: 37px;
    padding: 5px 9px;

    border-bottom: 1px solid var(--eg-line);
    background: var(--eg-wine);

    font-size: 11px;
    letter-spacing: .06em;
}

/* Expand Button */
.EG_Toggle {
    padding: 2px 7px;

    border: 1px solid var(--eg-line);
    background: var(--eg-black);
}

/* Expanded Indicator */
.EG_Shell.is-expanded .EG_Toggle {
    transform: rotate(180deg);
}

/* Thumbnail Grid */
.EG_ThumbGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 125px;
    align-content: start;
    gap: 6px;

    min-height: 0;
    overflow: auto;

    padding: 7px;
}

/* Thumbnail Buttons */
.EG_ThumbGrid button {
    position: relative;

    min-width: 0;
    padding: 0;

    border: 1px solid var(--eg-line);
    background: var(--eg-wine);

    overflow: hidden;
}

/* Active Thumbnail */
.EG_ThumbGrid button.is-active,
.EG_ThumbGrid button:hover {
    outline: 2px solid var(--eg-gold);
    outline-offset: -2px;
}

/* Thumbnail Images */
.EG_ThumbGrid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Thumbnail Captions */
.EG_ThumbGrid span {
    position: absolute;
    inset: auto 0 0;

    padding: 3px 4px;
    background: #000b;

    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==============================
   FULLSCREEN MODAL
   ============================== */

/* Modal Container */
.EG_Modal {
    position: fixed;
    inset: 1.5vh auto auto;

    width: min(1500px, 97vw);
    max-width: 97vw;

    height: 97vh;
    max-height: 97vh;

    margin: auto;
    padding: 0;

    border: 1px solid var(--eg-line);
    background: var(--eg-black);

    box-shadow: 0 12px 65px #000c;
}

/* Modal Backdrop */
.EG_Modal::backdrop {
    background: #000d;
}

/* Open Modal */
.EG_Modal[open] {
    display: flex;
    flex-direction: column;
}

/* Modal Header */
.EG_ModalHead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex: none;

    padding: 6px 12px;

    border-bottom: 1px solid var(--eg-line);
    background: var(--eg-wine);
}

/* Modal Controls */
.EG_ModalHead > div {
    display: flex;
    gap: 4px;
}

/* Control Buttons */
.EG_ModalHead button {
    min-width: 33px;
    padding: 4px 8px;

    border: 1px solid var(--eg-line);
    background: var(--eg-black);
}

/* Modal Stage */
.EG_ModalStage {
    position: relative;

    flex: 1;
    min-height: 0;

    overflow: hidden;
}

/* Image Viewport */
.EG_ModalViewport {
    display: grid;
    place-items: center;

    width: 100%;
    height: 100%;

    overflow: auto;
    padding: 30px 55px;
}

/* Fullscreen Image */
.EG_ModalImage {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    transform: scale(var(--eg-zoom, 1));
    transition: transform .15s;
}

/* Modal Caption */
.EG_ModalCaption {
    flex: none;

    max-height: 90px;
    overflow: auto;

    margin: 0;
    padding: 7px 12px;

    border-top: 1px solid var(--eg-line);
    font-size: 12px;
}

/* ==============================
   INTERACTIONS
   ============================== */

/* Button Hover */
.EldGallery button:hover,
.EG_Modal button:hover {
    filter: brightness(1.2);
}

/* ==============================
   RESPONSIVE LAYOUT
   ============================== */

/* Medium Screens */
@media (max-width: 1180px) {

    /* Stacked Layout */
    .EG_Layout {
        grid-template-columns: 1fr;
    }

    /* Hide Categories */
    .EG_Categories {
        display: none;
    }

    /* Show Dropdown */
    .EG_Select {
        display: block;
    }
}

/* Desktop Screens */
@media (min-width: 1181px) {

    /* Hide Dropdown */
    .EG_Select {
        display: none;
    }
}

/* Tablet Screens */
@media (max-width: 800px) {

    /* Header Stack */
    .EG_Header {
        align-items: stretch;
        flex-direction: column;
    }

    /* Flexible Filters */
    .EG_Filters > * {
        flex: 1;
        width: auto;
    }

    /* Stacked Viewer */
    .EG_Shell,
    .EG_Shell.is-expanded {
        height: auto;
        grid-template-columns: 1fr;
    }

    /* Viewer Height */
    .EG_Viewer {
        height: 610px;
    }

    /* Thumbnail Height */
    .EG_Thumbs {
        height: 260px;

        border-left: 0;
        border-top: 1px solid var(--eg-line);
    }

    /* Hide Toggle */
    .EG_Toggle {
        display: none;
    }

    /* Thumbnail Columns */
    .EG_ThumbGrid {
        grid-template-columns: repeat(
            auto-fill,
            minmax(105px, 1fr)
        );

        grid-auto-rows: 110px;
    }

    /* Modal Title */
    .EG_ModalHead strong {
        max-width: 45%;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Mobile Screens */
@media (max-width: 480px) {

    /* Header Padding */
    .EG_Header {
        padding: 10px;
    }

    /* Filter Wrapping */
    .EG_Filters {
        flex-wrap: wrap;
    }

    /* Filter Width */
    .EG_Filters > * {
        min-width: 130px;
        max-width: none;
    }

    /* Viewer Height */
    .EG_Viewer {
        height: 490px;
    }

    /* Image Padding */
    .EG_Open {
        padding: 18px 39px;
    }

    /* Modal Padding */
    .EG_ModalViewport {
        padding: 18px 38px;
    }

    /* Header Padding */
    .EG_ModalHead {
        padding: 5px;
    }

    /* Button Padding */
    .EG_ModalHead button {
        padding: 3px 5px;
    }
}

/* ==============================
   ACCESSIBILITY
   ============================== */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .EG_Shell,
    .EG_Image,
    .EG_ModalImage {
        transition: none;
    }
}






















































































/* ---------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------- */
/* GPT Adaptions for other screen resolutions, because I don't have the energy to fully code mobile support. */
/* ---------------------------------------------------------------------------------------- */
/* Home/NavBays/RuneBars/BootyBar */
/* ---------------------------------------------------------------------------------------- */
/* Smaller Desktop Screens */

@media (max-width: 1200px) {
    .BootyBar_Bay {
        grid-template-columns: minmax(340px, 1fr) auto minmax(280px, 1fr);
    }

    .BootyBar_Tagline {
        display: none;
    }
}

/* Tablet Screens */

@media (max-width: 900px) {
    .CrownNavigatorBay {
        grid-template-columns:
            minmax(150px, 1fr)
            repeat(3, minmax(78px, 1fr))
            40px;
    }

    .CrownNavigatorDecor,
    .CrownNavigatorPageTitle,
    .BootyBar_Centre {
        display: none;
    }

    .CrownNavigator_Sanctum,
    .CrownNavigator_Studio,
    .CrownNavigator_Supply {
        padding: 0 20px 0 6px;
        font-size: 13px;
        letter-spacing: 0.08em;
    }

    .CrownNavigator_Arrow {
        right: 7px;
    }

    .BootyBar_Bay {
        grid-template-columns: minmax(320px, 1fr) auto;
    }

    .BootyBar_Socials {
        gap: 9px;
        padding: 0 10px;
    }

    .BootyBar_Links {
        gap: 14px;
        padding: 0 10px;
    }
}

/* Mobile Screens */

@media (max-width: 600px) {
    .CrownNavigatorBay {
        grid-template-columns: repeat(3, 1fr) 38px;
    }

    .CrownNavigatorTitle {
        display: none;
    }

    .CrownNavigator_Sanctum,
    .CrownNavigator_Studio,
    .CrownNavigator_Supply {
        padding: 0 15px 0 4px;
        font-size: 12px;
        letter-spacing: 0.04em;
    }

    .CrownNavigator_Arrow {
        right: 5px;
    }

    .BootyBar_Bay {
        grid-template-columns: max-content max-content;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .BootyBar_Socials {
        gap: 8px;
        overflow: visible;
    }

    .BootyBar_Links {
        gap: 12px;
        padding-right: 16px;
    }

    .BootyBar_UtilityLink {
        font-size: 11px;
        letter-spacing: 0.1em;
    }
}

/* Other? */

@media (max-height: 470px) {
    .SideDrawers {
        --drawer-height: 70px;

        gap: 4px;
    }

    .SideDrawers--left {
        top: 8px;
    }

    .SideDrawers--right {
        bottom: 8px;
    }
}

@media (max-height: 360px) {
    .SideDrawers {
        --drawer-height: 52px;

        gap: 2px;
    }

    .SideDrawer_Panel {
        gap: 2px;
        padding: 5px 8px;
    }
}

/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {
    .SideDrawer_Tab {
        transition: none;
    }
}
/* Page Banner */
@media (max-width: 900px) {
    .PageBanner {
        --banner-height: 540px;
        --banner-text-top: 120px;
        --banner-text-left: 40px;
        --banner-text-width: 520px;
    }
}

@media (max-width: 600px) {
    .PageBanner {
        --banner-height: 460px;
        --banner-text-top: 80px;
        --banner-text-left: 24px;

        padding-right: 24px;
    }

    .PageBanner::before {
        background: rgb(0 0 0 / 60%);
    }

    .PageBanner_Subtitle {
        font-size: 11px;
        letter-spacing: 0.12em;
    }
}
/* ---------------------------------------------------------------------------------------- */


/* ---------------------------------------------------------------------------------------- */
/* Runic Rails */
/* Futhark rails inherit the active Eldrichryptid palette. */
/* ---------------------------------------------------------------------------------------- */
.RunicPillarLeft_Content,
.RunicPillarRight_Content {
    overflow: hidden;
    padding: 2px;
}

.RunicRail {
    --RuneDefault: var(--GoldMuted);
    --RuneGlow: var(--GoldGlow25);
    --RuneHighlight: var(--GoldLight);
    --RuneHighlightGlow: var(--GoldGlow65);

    display: grid;
    width: 100%;
    height: 100%;
    grid-template-rows: repeat(var(--RuneCount, 20), minmax(0, 1fr));
    place-items: center;
    pointer-events: none;
}

.RunicRuneSlot {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 0;
    place-items: center;
    opacity: .82;
    transform: scale(var(--RuneScale, .95));
    transform-origin: center;
    will-change: transform, opacity;
}

.RunicRuneGlyph {
    position: relative;
    display: grid;
    width: min(34px, 3.8vh);
    height: min(34px, 3.8vh);
    place-items: center;
    overflow: hidden;
    background-color: var(--RuneDefault);
    -webkit-mask-image: var(--RuneImage);
    mask-image: var(--RuneImage);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    filter: drop-shadow(0 0 2px var(--RuneGlow));
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: center;
    transition:
        background-color 900ms ease,
        filter 900ms ease,
        opacity 900ms ease,
        transform 900ms cubic-bezier(.2, .78, .24, 1);
    will-change: background-color, filter, opacity, transform;
}

.RunicRuneTexture {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    filter: grayscale(1) contrast(1.12);
    mix-blend-mode: luminosity;
    opacity: .82;
}

.RunicRuneSlot.RuneBob {
    animation: RunicBob var(--RuneDuration) ease-in-out var(--RuneDelay) infinite;
}

.RunicRuneSlot.RuneTurn {
    animation: RunicTurn var(--RuneDuration) ease-in-out var(--RuneDelay) infinite;
}

.RunicRuneSlot.RuneDrift {
    animation: RunicDrift var(--RuneDuration) ease-in-out var(--RuneDelay) infinite;
}

.RunicRuneSlot.RunePulse {
    animation: RunicPulse var(--RuneDuration) ease-in-out var(--RuneDelay) infinite;
}

.RunicRuneSlot.isRuneGlint .RunicRuneGlyph {
    animation: RunicGlint 2.2s ease-in-out both;
}

.RunicRuneSlot.isRuneTurning .RunicRuneGlyph {
    animation: RunicEventTurn 3.8s cubic-bezier(.34, .08, .32, 1) both;
}

.RunicRuneSlot.isComboGold {
    z-index: 2;
    opacity: 1;
    animation: none !important;
}

.RunicRuneSlot.isComboGold .RunicRuneGlyph {
    background-color: var(--RuneHighlight);
    filter:
        drop-shadow(0 0 4px var(--RuneHighlightGlow))
        drop-shadow(0 0 10px var(--GoldGlow45));
    transform: translateX(var(--RuneGoldShift, 0)) scale(1.14);
}

.RunicRuneSlot.isComboHold .RunicRuneGlyph {
    animation: RunicGoldHold 2.4s ease-in-out infinite !important;
}

.RunicRuneSlot.isUnavailable {
    visibility: hidden;
}

@keyframes RunicBob {
    0%, 100% { transform: translateY(-2px) scale(var(--RuneScale, .95)); }
    50% { transform: translateY(3px) scale(var(--RuneScale, .95)); }
}

@keyframes RunicTurn {
    0%, 100% { transform: rotate(-3deg) scale(var(--RuneScale, .95)); }
    50% { transform: rotate(5deg) scale(var(--RuneScale, .95)); }
}

@keyframes RunicDrift {
    0%, 100% { transform: translateX(-2px) scale(var(--RuneScale, .95)); }
    50% { transform: translateX(2px) scale(var(--RuneScale, .95)); }
}

@keyframes RunicPulse {
    0%, 100% { opacity: .58; transform: scale(calc(var(--RuneScale, .95) * .97)); }
    50% { opacity: .96; transform: scale(calc(var(--RuneScale, .95) * 1.035)); }
}

@keyframes RunicGlint {
    0%, 100% {
        background-color: var(--RuneDefault);
        filter: drop-shadow(0 0 2px var(--RuneGlow));
    }
    50% {
        background-color: var(--RuneHighlight);
        filter:
            drop-shadow(0 0 4px var(--RuneHighlightGlow))
            drop-shadow(0 0 9px var(--GoldGlow45));
    }
}

@keyframes RunicEventTurn {
    0% { transform: rotate(0deg) scale(1); }
    45% { transform: rotate(185deg) scale(1.08); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes RunicGoldHold {
    0%, 100% { transform: translateX(var(--RuneGoldShift, 0)) scale(1.11); }
    50% { transform: translateX(var(--RuneGoldShift, 0)) scale(1.2); }
}

@media (max-height: 720px) {
    .RunicRuneGlyph {
        width: min(29px, 3.35vh);
        height: min(29px, 3.35vh);
    }
}

@media (prefers-reduced-motion: reduce) {
    .RunicRuneSlot,
    .RunicRuneGlyph {
        animation: none !important;
        transition: none !important;
    }
}

.RunicPillarLeft_Content > .RunicRail,
.RunicPillarRight_Content > .RunicRail {
    position: relative;
    z-index: 1;
}
