/* =====================================
   GLOBAL STYLES AND TYPOGRAPHY
   ===================================== */

* {
    box-sizing: border-box;
}

html {
    background-color: #101315;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #F1E5CB;
    font-family: 'Lora', Georgia, serif;
    text-align: center;

    /* Shared castle background for every page. */
    background-image:
        linear-gradient(rgba(7, 10, 14, 0.72), rgba(7, 10, 14, 0.78)),
        url("images/main_bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

h1,
h2,
.heroTag {
    font-family: 'Cinzel', Georgia, serif;
}

h1 {
    color: #B9975B;
    font-size: 48px;
    letter-spacing: 3px;
    text-shadow: 0 3px 18px #000000;
}

h2 {
    color: #B9975B;
    font-size: 28px;
    margin-bottom: 35px;
}

p {
    max-width: 600px;
    margin: 25px auto 65px;
    color: #D6CEBC;
    font-size: 18px;
    line-height: 1.8;
}

/* Keep sections genuinely hidden when JavaScript switches pages. */
[hidden] {
    display: none !important;
}

/* =====================================
   SHARED BUTTONS — DARK GREEN & GOLD
   ===================================== */

button {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 15px auto;
    padding: 18px;

    /* Dark forest-green background */
    background: #1B201D;

    /* Warm ivory text and antique gold border */
    color: #F1E5CB;
    border: 1px solid #B9975B;
    border-radius: 6px;

    /* Preserve our original font */
    font-family: 'Lora', Georgia, serif;
    font-size: 17px;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Subtle hover effects for mouse users */
@media (hover: hover) and (pointer: fine) {
    button:hover {
        background: #263329;
        color: #F1E5CB;
        border-color: #D9B36A;

        transform: translateY(-3px);

        box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.4),
            0 0 14px rgba(185, 151, 91, 0.16);
    }
}


button:focus-visible {
    outline: 3px solid #F1E5CB;
    outline-offset: 4px;
}

#introduction,
#cosmereExplorer {
    padding: 90px 20px;
}

/* =====================================
   HOMEPAGE HERO SECTION
   ===================================== */

.heroPage {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.heroOverlay {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.heroContent {
    width: 100%;
    max-width: 1120px;
    padding: 40px 20px;
    text-align: center;
}

.heroTag {
    margin-bottom: 18px;
    color: #D9B36A;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}


/* =====================================
   HOMEPAGE — CINEMATIC TITLE
   ===================================== */

.heroContent h1.cosmereHeroTitle {
    margin: 0 auto 26px;
    color: #F1E5CB;

    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(32px, 5vw, 76px);
    font-weight: 600;
    line-height: 1.2;

    letter-spacing: 2px;
    text-wrap: balance;
    overflow-wrap: anywhere;

    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
}

.cosmereHeroTitleLight {
    color: #F1E5CB;
}

.cosmereHeroTitleGold {
    color: #D9B36A;
}

/* Decorative lines and gold diamond */

.cosmereHeroDivider {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;
    width: 75%;
    max-width: 360px;

    margin: 0 auto 30px;
}

.cosmereHeroDividerLine {
    flex: 1;
    height: 1px;

    background: linear-gradient(90deg,
            transparent,
            #B9975B,
            transparent);
}

.cosmereHeroDividerDiamond {
    color: #D9B36A;
    font-size: 12px;
    line-height: 1;
}

/* Match the original entrance animation */

.cosmereHeroDivider {
    opacity: 0;
    animation: heroFadeUp 0.5s ease-out 0.35s forwards;
}

/* Respect reduced motion preferences */

@media (prefers-reduced-motion: reduce) {
    .cosmereHeroDivider {
        animation: none;
        opacity: 1;
    }
}


.heroSubtitle {
    max-width: 760px;
    margin: 0 auto 40px;
    color: #F2E6CF;
    font-size: 21px;
    line-height: 1.9;
}


/* =====================================
   HOMEPAGE NAVIGATION BUTTONS
   ===================================== */

.heroButtons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.heroButtons button {
    width: auto;
    min-width: 215px;
    max-width: none;
    min-height: 46px;

    margin: 0;
    padding: 13px 22px;

    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.5px;

    white-space: normal;
}


/* =====================================
   HOMEPAGE ENTRANCE ANIMATION
   ===================================== */

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.heroTag,
.heroContent h1,
.heroSubtitle,
.heroButtons {
    opacity: 0;
    animation: heroFadeUp 0.5s ease-out forwards;
}

.heroTag {
    animation-delay: 0.1s;
}

.heroContent h1 {
    animation-delay: 0.25s;
}

.heroSubtitle {
    animation-delay: 0.45s;
}

.heroButtons {
    animation-delay: 0.65s;
}

/* ==========================================
   COSMERE WORLDHOPPER HOMEPAGE FEATURES
   ========================================== */

/* Arrange the three homepage feature cards. */
.cosmereHomeFeatures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 1000px;
    margin: 36px auto 0;
}

.cosmereHomeFeature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    min-width: 0;
    min-height: 168px;

    padding: 20px 22px;

    background: #181D1A;
    border: 1px solid #665438;
    border-radius: 7px;

    text-align: center;
}

/* Gold icons above each feature heading */
.cosmereHomeFeatureIcon {
    display: block;

    width: 25px;
    height: 25px;

    flex-shrink: 0;
    margin-bottom: 10px;

    color: #D9B36A;
}

/* Feature headings. */
.cosmereHomeFeature h2 {
    margin: 0 0 8px;

    color: #D9B36A;

    /* Preserve our original heading font */
    font-family: 'Cinzel', Georgia, serif;
    font-size: 18px;
    font-weight: 700;

    line-height: 1.3;
}

/* Feature descriptions. */
.cosmereHomeFeature p {
    max-width: 280px;
    margin: 0;

    /* Preserve our original body font */
    font-family: 'Lora', Georgia, serif;
    color: #D6CEBC;

    font-size: 14px;
    line-height: 1.55;
}

/* Responsive layout for mobile devices. */
@media (max-width: 768px) {

    .cosmereHomeFeatures {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 420px;
    }

    .cosmereHomeFeature {
        padding: 16px;
    }

    .cosmereHomeFeature h2 {
        font-size: 16px;
    }

    .cosmereHomeFeature p {
        font-size: 13px;
    }

}

/* =====================================
   COSMERE EXPLORER MENU
   ===================================== */

/* Three navigation buttons per desktop row, with a centered final row. */
.cosmereButtons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
}

.cosmereButtons button {
    flex: 0 0 calc((100% - 40px) / 3);
    width: 100%;
    max-width: none;
    min-height: 82px;
    margin: 0;
    padding: 9px 12px;
    font-size: 19px;
    line-height: 1.3;
    font-weight: bold;
}

@media (hover: hover) {
    .cosmereButtons button:hover {
        transform: translateY(-6px);
        background: #28342D;
        color: #F1E5CB;
        border-color: #D9B36A;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5),
            0 0 18px rgba(185, 151, 91, 0.2);
    }
}

/* Match the homepage button dimensions on mobile. */
@media (max-width: 768px) {
    .cosmereButtons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        margin: 30px auto;
    }

    .cosmereButtons button,
    #cosmereMenu>button {
        flex: none;
        width: 100%;
        max-width: 320px;
        min-height: 0;
        padding: 16px;
        font-size: 15px;
    }
}

/* =====================================
   MOBILE AND TABLET LAYOUT
   ===================================== */

@media (max-width: 768px) {

    /* =====================================
    MOBILE BACKGROUND 
    ===================================== */

    body {
        position: relative;
        isolation: isolate;
        background-image: none;
    }

    /* Keep the background fitted to the phone's screen,
    not the full height of the page. */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;

        background-image:
            linear-gradient(rgba(7, 10, 14, 0.72),
                rgba(7, 10, 14, 0.78)),
            url("images/main_bg.jpg");

        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    /* Homepage containers */
    .heroPage,
    .heroOverlay {
        min-height: 100vh;
        min-height: 100svh;
    }

    .heroOverlay {
        padding: 35px 15px;
    }

    .heroContent {
        width: 100%;
        padding: 20px 10px;
    }

    /* Homepage title */
    .heroContent h1 {
        font-size: clamp(24px, 6vw, 42px);
        letter-spacing: 1px;
        overflow-wrap: anywhere;
    }

    /* Homepage tagline */
    .heroTag {
        font-size: 11px;
        letter-spacing: 2px;
    }

    /* Homepage description */
    .heroSubtitle {
        margin-bottom: 30px;
        font-size: 16px;
        line-height: 1.7;
    }

    /* Homepage navigation */
    .heroButtons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .heroButtons button {
        width: 100%;
        max-width: 320px;
        min-width: 0;
        padding: 16px;
        font-size: 15px;
    }

    /* Introduction and Cosmere content pages */
    #introduction,
    #cosmereExplorer {
        width: 100%;
        min-height: 100vh;
        min-height: 100svh;
        padding: 50px 16px 60px;
    }

    /* Section headings */
    #introduction h1,
    #cosmereExplorer h1 {
        max-width: 100%;
        margin: 0 auto 25px;
        font-size: clamp(25px, 6.8vw, 36px);
        letter-spacing: 1px;
        line-height: 1.3;
        overflow-wrap: anywhere;
        text-wrap: balance;
    }

    #cosmereExplorer h1 {
        font-size: clamp(23px, 6vw, 32px);
        letter-spacing: 0.5px;
    }

    /* Introduction paragraphs */
    #introduction>p {
        margin: 0 auto 35px;
        font-size: 16px;
        line-height: 1.7;
    }

}

/* =====================================
   COSMERE READING GUIDE
   ===================================== */

/* Reading order selection buttons */
.cosmereOrderSwitch {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 700px;
    margin: 30px auto;
}

.cosmereOrderSwitch button {
    flex: 1 1 250px;
    max-width: 320px;
    margin: 0;
}

/* Highlight the selected reading order */
.cosmereOrderSwitch button[aria-pressed="true"] {
    background: #B9975B;
    color: #101315;
    font-weight: bold;
}

/* Complete numbered reading list */
.cosmereReadingList {
    list-style: none;
    max-width: 850px;
    margin: 30px auto 45px;
    padding: 0;
}

/* Individual reading list entry */
.cosmereReadingItem {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
    padding: 20px;
    background: #1B201D;
    border: 1px solid #665438;
    border-radius: 12px;
    text-align: left;
}

/* Book position number */
.cosmereReadingNumber {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    color: #D9B36A;
    border: 1px solid #B9975B;
    border-radius: 8px;
    font-weight: bold;
}

/* Book information */
.cosmereReadingDetails {
    flex: 1;
    min-width: 0;
}

.cosmereReadingTitle {
    display: block;
    color: #D9B36A;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 18px;
    font-weight: bold;
    overflow-wrap: anywhere;
}

.cosmereReadingMeta {
    display: block;
    margin-top: 7px;
    color: #D6CEBC;
    font-size: 14px;
}

/* Mobile layout */
@media (max-width: 768px) {

    .cosmereOrderSwitch button {
        flex-basis: 100%;
        max-width: 100%;
    }

    .cosmereReadingItem {
        padding: 15px;
    }

    .cosmereReadingTitle {
        font-size: 16px;
    }

    .cosmereReadingMeta {
        font-size: 12px;
        line-height: 1.6;
    }

}

/* =====================================
   COSMERE READING LIST COVERS
   ===================================== */

/* Container for book-cover images */
.cosmereReadingCover {
    width: 65px;
    height: 95px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #B9975B;
    border-radius: 5px;
    box-shadow: 3px 5px 12px #00000080;
}

/* Display the image inside the container */
.cosmereReadingCover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder for books without cover images yet */
.cosmereReadingCoverPlaceholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: linear-gradient(145deg, #342A1B, #171A18);
    color: #C9A978;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

/* Smaller covers on mobile devices */
@media (max-width: 768px) {

    .cosmereReadingCover {
        width: 50px;
        height: 74px;
    }

    .cosmereReadingNumber {
        width: 35px;
        height: 35px;
    }

    .cosmereReadingItem {
        gap: 10px;
    }

}

/* =====================================
   EXPANDABLE COSMERE BOOK DETAILS
   ===================================== */

/* Button for showing and hiding book information. */
.cosmereDetailsToggle {
    display: inline-block;
    width: auto;
    max-width: none;
    margin: 12px 0 0;
    padding: 9px 14px;
    background: transparent;
    color: #D9B36A;
    border: 1px solid #B9975B;
    font-size: 13px;
}

/* Expanded information panel. */
.cosmereDetailsPanel {
    flex: 0 0 100%;
    padding: 18px;
    background: #151A18;
    border-top: 1px solid #665438;
    border-radius: 8px;
    text-align: left;
}

/* Expanded book title. */
.cosmereDetailsPanel h3 {
    margin: 0 0 12px;
    color: #D9B36A;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 18px;
}

/* Expanded book information. */
.cosmereDetailsPanel p {
    max-width: none;
    margin: 8px 0;
    color: #D6CEBC;
    font-size: 15px;
    line-height: 1.6;
}

/* =====================================
   COSMERE BOOK DESCRIPTIONS
   ===================================== */

.cosmereDetailsPanel h4 {
    margin: 20px 0 8px;
    padding-top: 15px;
    color: #D9B36A;
    border-top: 1px solid #665438;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 15px;
}

.cosmereDetailsPanel .cosmereBookOverview {
    margin: 8px 0;
    color: #D6CEBC;
    font-size: 15px;
    line-height: 1.8;
}

/* =====================================
   COSMERE SPOILER PROTECTION
   ===================================== */

/* Separate protected content from the book information. */
.cosmereSpoilerSection {
    margin-top: 20px;
    padding: 18px;
    background: #1B201D;
    border: 1px solid #665438;
    border-radius: 10px;
}

/* Clearly identify spoiler warnings. */
.cosmereSpoilerSection h4 {
    margin: 0 0 12px;
    padding: 0;
    color: #D9B36A;
    border: none;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 17px;
}

.cosmereSpoilerSection .cosmereSpoilerWarning {
    margin: 0 0 16px;
    color: #F1E5CB;
    font-size: 14px;
    line-height: 1.7;
}

/* Decorative blurred lines; no spoiler text is exposed. */
.cosmereSpoilerMask {
    height: 65px;
    margin: 15px 0;
    border-radius: 8px;

    background:
        linear-gradient(#665438, #665438) 0 5px / 95% 9px no-repeat,
        linear-gradient(#665438, #665438) 0 25px / 80% 9px no-repeat,
        linear-gradient(#665438, #665438) 0 45px / 88% 9px no-repeat;

    filter: blur(4px);
    opacity: 0.65;
}

/* Reveal and hide button. */
.cosmereSpoilerToggle {
    width: 100%;
    max-width: 280px;
    margin: 15px auto 0;
    padding: 12px 16px;
    background: transparent;
    color: #D9B36A;
    border: 1px solid #B9975B;
    font-size: 14px;
}

/* Revealed spoiler description. */
.cosmereSpoilerSection .cosmereSpoilerText {
    margin: 15px 0;
    color: #F1E5CB;
    font-size: 15px;
    line-height: 1.8;
}

/* Keep the warning readable on smaller screens. */
@media (max-width: 768px) {

    .cosmereSpoilerSection {
        padding: 14px;
    }

    .cosmereSpoilerToggle {
        max-width: 100%;
    }

}

/* =====================================
   COSMERE BOOK COMPLETION CHECKBOXES
   ===================================== */

/* Group the checkbox and View Details button. */
.cosmereReadingActions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

/* Checkbox label. */
.cosmereCompletionLabel {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    color: #D6CEBC;
    border: 1px solid #665438;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}

/* The checkbox itself. */
.cosmereCompletionCheckbox {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #B9975B;
    cursor: pointer;
}

/* Highlight completed books. */
.cosmereCompletionLabel.isCompleted {
    color: #D9B36A;
    border-color: #B9975B;
}

/* Align the existing button with the checkbox. */
.cosmereReadingActions .cosmereDetailsToggle {
    margin: 0;
}

/* Keyboard accessibility. */
.cosmereCompletionCheckbox:focus-visible {
    outline: 2px solid #D9B36A;
    outline-offset: 4px;
}

/* =====================================
   COSMERE READING PROGRESS DASHBOARD
   ===================================== */

/* Dashboard container */
.cosmereProgressCard {
    max-width: 850px;
    margin: 30px auto;
    padding: 25px;
    background: #1B201D;
    border: 1px solid #665438;
    border-radius: 14px;
    text-align: left;
}

/* Title and percentage layout */
.cosmereProgressTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

/* Dashboard heading */
.cosmereProgressCard h2 {
    margin: 0;
    color: #D9B36A;
    font-size: 22px;
}

/* Shared percentages for every main progress dashboard. */
.cosmereProgressTop>span {
    color: #D9B36A;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 26px;
    font-weight: bold;
}

/* Progress bar */
.cosmereProgressBar {
    display: block;
    width: 100%;
    height: 14px;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    border-radius: 20px;
    background: #343A32;
}

/* Background track in Chrome, Edge, and Safari */
.cosmereProgressBar::-webkit-progress-bar {
    background: #343A32;
    border-radius: 20px;
}

/* Filled portion in Chrome, Edge, and Safari */
.cosmereProgressBar::-webkit-progress-value {
    background: #B9975B;
    border-radius: 20px;
    transition: width 0.3s ease;
}

/* Filled portion in Firefox */
.cosmereProgressBar::-moz-progress-bar {
    background: #B9975B;
    border-radius: 20px;
}

/* Shared completed-work counts for every main dashboard. */
.cosmereProgressCard>p {
    max-width: none;
    margin: 15px 0 0;
    color: #D6CEBC;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

/* Mobile adjustments */
@media (max-width: 768px) {

    .cosmereProgressCard {
        padding: 18px;
    }

    .cosmereProgressCard h2 {
        font-size: 18px;
    }

    .cosmereProgressTop>span {
        font-size: 22px;
    }

}

/* Compact progress panels for every series subcategory. */
.cosmereSubProgress {
    width: 100%;
    max-width: 750px;
    margin: 20px auto 30px;
    padding: 18px 22px;
    background: rgba(27, 32, 29, 0.88);
    border: 1px solid #665438;
    border-radius: 10px;
    text-align: center;
}

.cosmereSubProgress .cosmereProgressBar {
    height: 10px;
}

.cosmereSubProgress p {
    max-width: none;
    margin: 12px 0 0;
    color: #D6CEBC;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .cosmereSubProgress {
        padding: 15px;
    }

    .cosmereSubProgress p {
        font-size: 13px;
    }
}

/* =====================================
   COSMERE BOOK GALLERIES
   ===================================== */

/* Responsive and centered book gallery. */
.cosmereGalleryGrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 22px;
    max-width: 1000px;
    margin: 30px auto 45px;
}

/* Individual book card. */
.cosmereGalleryCard {
    flex: 0 1 210px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px;
    background: #1B201D;
    border: 1px solid #665438;
    border-radius: 12px;
    text-align: center;
}

/* Book-cover wrapper prevents shrink-to-fit layout shifts. */
.cosmereGalleryCover {
    width: 100%;
    max-width: 210px;
}

/* Book cover. */
.cosmereGalleryCard img {
    display: block;
    width: 100%;
    max-width: 210px;
    aspect-ratio: 2 / 3;
    margin: 0 auto 16px;
    object-fit: cover;
    border: 1px solid #B9975B;
    border-radius: 6px;
}

/* Book title. */
.cosmereGalleryCard h3 {
    margin: 0 0 10px;
    color: #D9B36A;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 16px;
    line-height: 1.5;
}

/* Publication information. */
.cosmereGalleryCard .cosmereGalleryMeta {
    margin: 0 0 12px;
    color: #D6CEBC;
    font-size: 13px;
}

/* Placeholder if a future book has no cover. */
.cosmereGalleryCoverPlaceholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 210px;
    aspect-ratio: 2 / 3;
    margin: 0 auto 16px;
    background: #342A1B;
    border: 1px solid #B9975B;
    border-radius: 6px;
    color: #D6CEBC;
    font-size: 13px;
}

/* =====================================
   REDUCED MOTION
   ===================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .heroTag,
    .heroContent h1,
    .heroSubtitle,
    .heroButtons {
        animation: none;
        opacity: 1;
        transform: none;
    }

    button:hover {
        transform: none;
    }
}

/* =====================================
   COSMERE GALLERY EXPANDABLE DETAILS
   ===================================== */

/* Group the checkbox and details button. */
.cosmereGalleryActions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

/* Keep the details button compact. */
.cosmereGalleryActions .cosmereDetailsToggle {
    margin: 0;
}

/* Shared details area below each book gallery. */
.cosmereGalleryDetailsHost {
    width: 100%;
    max-width: 850px;
    margin: -15px auto 45px;
    text-align: left;
}

/* Expanded panel fills its centered container. */
.cosmereGalleryDetailsHost .cosmereDetailsPanel {
    width: 100%;
    min-width: 0;
}

/* Responsive layout. */
@media (max-width: 768px) {

    .cosmereGalleryDetailsHost {
        margin-top: -10px;
    }

    .cosmereGalleryDetailsHost .cosmereDetailsPanel {
        padding: 15px;
    }

}

/* =====================================
   STORMLIGHT MAIN NOVELS GALLERY
   ===================================== */

/* Fit all five novels in one row on wide desktops. */
#stormlightNovelsGallery,
#secretProjectsGallery {
    max-width: 1160px;
}

/* Use a balanced 3 + 2 layout on smaller desktops. */
@media (min-width: 769px) and (max-width: 1250px) {

    #stormlightNovelsGallery,
    #secretProjectsGallery {
        max-width: 700px;
    }

}

/* =====================================
   FLOATING BACK TO TOP BUTTON
   ===================================== */

#backToTopButton {
    position: fixed;
    right: 25px;
    bottom: max(25px, env(safe-area-inset-bottom));
    z-index: 100;

    width: auto;
    max-width: none;
    margin: 0;
    padding: 12px 18px;

    background: linear-gradient(135deg, #342A1B, #1C1C1A);
    color: #D9B36A;
    border: 1px solid #B9975B;
    border-radius: 10px;

    font-size: 14px;
    font-weight: bold;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* Smaller button positioning on mobile. */
@media (max-width: 768px) {
    #backToTopButton {
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* =====================================
   COSMERE INTERACTIVE HOVER EFFECTS
   ===================================== */

/* Smooth animation for book cards and progress panels. */
.cosmereGalleryCard,
.cosmereReadingItem,
.cosmereProgressCard,
.cosmereSubProgress {
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Smooth golden glow around book covers. */
.cosmereGalleryCard img,
.cosmereReadingCover {
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Apply hover effects only to devices with a mouse. */
@media (hover: hover) and (pointer: fine) {

    /* Book cards and reading-order entries. */
    .cosmereGalleryCard:hover,
    .cosmereReadingItem:hover {
        position: relative;
        z-index: 1;
        transform: translateY(-6px);
        border-color: #D9B36A;
        box-shadow:
            0 12px 28px rgba(0, 0, 0, 0.45),
            0 0 16px rgba(185, 151, 91, 0.18);
    }

    /* Make book covers glow as well. */
    .cosmereGalleryCard:hover img,
    .cosmereReadingItem:hover .cosmereReadingCover {
        border-color: #D9B36A;
        box-shadow:
            0 0 15px rgba(185, 151, 91, 0.4);
    }

    /* Gentler effect for reading-progress panels. */
    .cosmereProgressCard:hover,
    .cosmereSubProgress:hover {
        transform: translateY(-3px);
        border-color: #B9975B;
        box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.3);
    }

}

/* Highlight book cards during keyboard navigation. */
.cosmereGalleryCard:focus-within,
.cosmereReadingItem:focus-within {
    border-color: #D9B36A;
    box-shadow:
        0 0 16px rgba(185, 151, 91, 0.25);
}

/* Respect accessibility settings for reduced motion. */
@media (prefers-reduced-motion: reduce) {

    .cosmereGalleryCard:hover,
    .cosmereReadingItem:hover,
    .cosmereProgressCard:hover,
    .cosmereSubProgress:hover {
        transform: none;
    }
}

/* =====================================
   COSMERE READING ORDER SEARCH BAR
   ===================================== */

/* Center the search bar and its label. */
.cosmereSearchContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    width: 100%;
    max-width: 600px;
    margin: 30px auto 35px;
    padding: 0 15px;
}

/* Search label. */
.cosmereSearchContainer label {
    color: #D9B36A;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 19px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Search input field. */
#cosmereBookSearch {
    width: 100%;
    max-width: 520px;
    min-height: 52px;
    padding: 14px 18px;

    background: #1B201D;
    color: #F1E5CB;

    border: 1px solid #B9975B;
    border-radius: 10px;

    font-family: 'Lora', Georgia, serif;
    font-size: 16px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Placeholder text. */
#cosmereBookSearch::placeholder {
    color: #AFA48E;
    opacity: 1;
}

/* Golden glow when the search field is selected. */
#cosmereBookSearch:focus {
    outline: none;
    border-color: #D9B36A;

    box-shadow:
        0 0 0 3px rgba(185, 151, 91, 0.15),
        0 0 18px rgba(185, 151, 91, 0.25);
}

/* Smaller screens. */
@media (max-width: 768px) {

    .cosmereSearchContainer {
        margin: 25px auto 30px;
        padding: 0 10px;
    }

    .cosmereSearchContainer label {
        font-size: 16px;
    }

    #cosmereBookSearch {
        min-height: 48px;
        padding: 12px 15px;
        font-size: 14px;
    }

}

/* =====================================
   COSMERE SEARCH RESULTS COUNTER
   ===================================== */

.cosmereSearchStatus {
    width: fit-content;
    max-width: 90%;

    margin: 0 auto 25px;
    padding: 10px 20px;

    background: rgba(27, 32, 29, 0.9);
    border: 1px solid #665438;
    border-radius: 8px;

    color: #D9B36A;
    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
}

/* Mobile adjustments */
@media (max-width: 768px) {

    .cosmereSearchStatus {
        max-width: 95%;
        padding: 9px 14px;
        font-size: 12px;
    }

}

/* =====================================
   ACCESSIBILITY AND SEARCH REFINEMENTS
   ===================================== */

.skipLink {
    position: absolute;
    top: -100px;
    left: 15px;
    z-index: 1000;
    padding: 12px 18px;
    background: #1B201D;
    color: #F1E5CB;
    border: 2px solid #D9B36A;
    border-radius: 8px;
}

.skipLink:focus {
    top: 12px;
}

/* The navigation heading receives focus programmatically. */
h1:focus,
#cosmereMenu h1:focus {
    outline: none;
}

#cosmereBookSearch:focus-visible {
    outline: 2px solid #F1E5CB;
    outline-offset: 3px;
}

.cosmereSearchClear {
    width: auto;
    min-height: 36px;
    max-width: none;
    margin: 0;
    padding: 7px 16px;
    background: transparent;
    color: #D9B36A;
    border: 1px solid #665438;
    font-size: 13px;
}

.cosmereSearchStatus[data-empty="true"] {
    border-color: #B9975B;
    color: #F1E5CB;
}

@media (max-width: 768px) {
    .cosmereSearchClear {
        font-size: 12px;
    }

}


/* ==========================================
   GOLDEN HOVER GLOW — BUTTONS AND CARDS
   ========================================== */

/* Smooth transitions for homepage feature cards */
.cosmereHomeFeature {
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

/* Apply hover effects only on devices with a mouse */
@media (hover: hover) and (pointer: fine) {

    /* Golden glow for all buttons */
    button:hover,
    .cosmereButtons button:hover {
        border-color: #E5BE70;

        box-shadow:
            0 0 0 1px rgba(229, 190, 112, 0.35),
            0 0 16px rgba(217, 179, 106, 0.40),
            0 0 32px rgba(217, 179, 106, 0.16),
            0 8px 24px rgba(0, 0, 0, 0.45);
    }

    /* Dark green background on hover */
    button:not([aria-pressed="true"]):hover,
    .cosmereButtons button:hover {
        background: #263329;
    }

    /* Golden glow for feature cards and book cards */
    .cosmereGalleryCard:hover,
    .cosmereReadingItem:hover {
        border-color: #E5BE70;

        box-shadow:
            0 0 0 1px rgba(229, 190, 112, 0.35),
            0 0 18px rgba(217, 179, 106, 0.35),
            0 10px 26px rgba(0, 0, 0, 0.40);

        transform: translateY(-3px);
    }
}

/* Keep keyboard focus clearly visible */
button:focus-visible {
    border-color: #E5BE70;
    box-shadow: 0 0 18px rgba(217, 179, 106, 0.35);
}

/* =====================================
   HOMEPAGE — YOUR COSMERE JOURNEY
   ===================================== */

.homeJourney {
    width: 100%;
    max-width: 520px;

    margin: 36px auto 0;
    padding: 16px 18px;

    background: #181D1A;
    border: 1px solid #665438;
    border-radius: 7px;

    text-align: left;
}

.homeJourneyTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 8px 14px;
    margin-bottom: 10px;
}

.homeJourney h2 {
    margin: 0;

    color: #F1E5CB;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.homeJourneyStats {
    display: flex;
    align-items: center;
    gap: 5px;

    color: #D6CEBC;
    font-family: 'Lora', Georgia, serif;
    font-size: 12px;
    line-height: 1.5;
}

#homeCosmereProgressPercentage {
    color: #D9B36A;
    font-weight: 600;
}

.homeJourney .cosmereProgressBar {
    height: 7px;
}

/* Mobile adjustments */

@media (max-width: 480px) {

    .homeJourney {
        padding: 14px;
        margin-top: 28px;
    }

    .homeJourney h2 {
        font-size: 12px;
    }

    .homeJourneyStats {
        font-size: 11px;
    }

}

/* ==========================================
   HOMEPAGE FEATURE CARDS — STATIC GOLDEN GLOW
   ========================================== */

/* Discover, Read, and Track glow without moving */
@media (hover: hover) and (pointer: fine) {

    .cosmereHomeFeature:hover {
        /* Brighter golden outline */
        border-color: #E5BE70;

        /* Soft golden glow around the edges */
        box-shadow:
            0 0 0 1px rgba(229, 190, 112, 0.35),
            0 0 16px rgba(217, 179, 106, 0.40),
            0 0 32px rgba(217, 179, 106, 0.16);

        /* No lifting or movement */
        transform: none;
    }

}

/* ==========================================
   COSMERE WORLDHOPPER — TOP NAVIGATION
   ========================================== */

.siteHeader {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(14, 18, 17, 0.97);

    border-bottom: 1px solid #51452F;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Navigation content container */

.siteHeaderInner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: 1120px;
    min-height: 58px;

    margin: 0 auto;
    padding: 0 20px;

    gap: 20px;
}

/* Override global button dimensions */

.siteHeader button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    max-width: none;
    min-height: 44px;

    margin: 0;
    padding: 8px 12px;

    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;

    color: #D6CEBC;

    transform: none;
    box-shadow: none;
}

/* Website brand */


.siteHeader .siteBrand {
    gap: 5px;

    /* Equal space around the website name */
    padding: 8px 16px;

    font-family: 'Cinzel', Georgia, serif;
    font-size: 15px;
    font-weight: 600;

    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}


.siteBrandGold {
    color: #D9B36A;
}

.siteBrandLight {
    color: #F1E5CB;
}

/* Right-side navigation */

.siteNav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 12px;
}

/* Navigation text */

.siteHeader .siteNavButton {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Golden hover effect */

@media (hover: hover) and (pointer: fine) {

    .siteHeader button:hover {
        background: #1B201D;

        border-color: #B9975B;

        color: #D9B36A;

        transform: none;

        box-shadow:
            0 0 12px rgba(217, 179, 106, 0.22);
    }

}

/* Keyboard accessibility */

.siteHeader button:focus-visible {
    outline: 2px solid #D9B36A;
    outline-offset: 2px;
}

/* =====================================
   MOBILE TOP NAVIGATION
   ===================================== */

@media (max-width: 700px) {

    .siteHeaderInner {
        flex-direction: column;
        justify-content: center;

        min-height: 0;

        padding: 6px 10px;
        gap: 2px;
    }

    .siteHeader .siteBrand {
        min-height: 34px;
        padding: 6px 12px;

        font-size: 13px;
        letter-spacing: 1px;
    }

    .siteNav {
        width: 100%;
        justify-content: center;

        gap: 3px;
    }

    .siteHeader .siteNavButton {
        min-height: 40px;
        padding: 7px 6px;

        font-size: 11px;
        letter-spacing: 0.3px;
    }

}

/* Keep the homepage height balanced
   now that the navigation takes up space. */

#mainMenu.heroPage,
#mainMenu .heroOverlay {
    min-height: calc(100vh - 58px);
    min-height: calc(100svh - 58px);
}

@media (max-width: 700px) {

    #mainMenu.heroPage,
    #mainMenu .heroOverlay {
        min-height: calc(100vh - 92px);
        min-height: calc(100svh - 92px);
    }

}

/* ==========================================
   HOMEPAGE JOURNEY — STATIC GOLDEN GLOW
   ========================================== */

/* Smooth glow transition without movement */
.homeJourney {
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Golden outline for mouse users */
@media (hover: hover) and (pointer: fine) {

    .homeJourney:hover {

        /* Bright golden border */
        border-color: #E5BE70;

        /* Soft golden glow around the edges */
        box-shadow:
            0 0 0 1px rgba(229, 190, 112, 0.35),
            0 0 16px rgba(217, 179, 106, 0.40),
            0 0 32px rgba(217, 179, 106, 0.16);

    }

}

/* ==========================================
   MOBILE NAVIGATION — GOLDEN TOUCH EFFECT
   ========================================== */

/* Remove the browser's default blue tap highlight
   and prevent accidental text selection. */
.siteHeader button {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

/* Golden pressed effect on touchscreen devices */
@media (hover: none) and (pointer: coarse) {

    .siteHeader button:active {
        background: #1B201D;
        border-color: #E5BE70;
        color: #D9B36A;

        box-shadow:
            0 0 0 1px rgba(229, 190, 112, 0.35),
            0 0 12px rgba(217, 179, 106, 0.35);

        transform: none;
    }

}

/* ==========================================
   COSMERE — TOP BACK NAVIGATION
   ========================================== */

/* Align the back button with the main content */
.cosmereBackRow {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 100%;
    max-width: 1000px;

    margin: 0 auto 30px;
}

/* Compact back button */
.cosmereBackRow button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    max-width: 100%;
    min-height: 42px;

    margin: 0;
    padding: 10px 16px;

    background: #1B201D;
    border: 1px solid #B9975B;
    border-radius: 6px;

    color: #F1E5CB;

    /* Preserve the original website font */
    font-family: 'Lora', Georgia, serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .cosmereBackRow {
        margin-bottom: 24px;
    }

    .cosmereBackRow button {
        padding: 9px 13px;
        font-size: 12px;
    }
}

/* ==========================================
   STEP 7 — CIRCULAR BACK TO TOP BUTTON
   ========================================== */

#backToTopButton {
    position: fixed;

    right: calc(24px + env(safe-area-inset-right, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));

    z-index: 1100;

    /* Perfect circle */
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    max-width: none;

    margin: 0;
    padding: 0;

    border-radius: 50%;

    /* Original Cosmere colors */
    background: #1B201D;
    border: 1px solid #B9975B;
    color: #D9B36A;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.45);

    cursor: pointer;

    transform: none;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;

    -webkit-tap-highlight-color: transparent;
}

/* Center the SVG arrow */
#backToTopButton svg {
    display: block;

    width: 22px;
    height: 22px;

    flex-shrink: 0;
}

/* Preserve the existing hidden behavior */
#backToTopButton[hidden] {
    display: none !important;
}

/* Desktop golden hover */
@media (hover: hover) and (pointer: fine) {

    #backToTopButton:hover {
        background: #263329;
        border-color: #E5BE70;
        color: #E5BE70;

        box-shadow:
            0 0 0 1px rgba(229, 190, 112, 0.35),
            0 0 16px rgba(217, 179, 106, 0.40),
            0 0 32px rgba(217, 179, 106, 0.16);

        transform: none;
    }

}

/* Keyboard accessibility */
#backToTopButton:focus-visible {
    outline: 2px solid #E5BE70;
    outline-offset: 4px;
}

/* Mobile dimensions */
@media (max-width: 768px) {

    #backToTopButton {
        right: calc(14px + env(safe-area-inset-right, 0px));
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));

        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
    }

    #backToTopButton svg {
        width: 20px;
        height: 20px;
    }

}

/* Golden pressed effect on mobile */
@media (hover: none) and (pointer: coarse) {

    #backToTopButton:active {
        background: #263329;
        border-color: #E5BE70;
        color: #E5BE70;

        box-shadow:
            0 0 14px rgba(217, 179, 106, 0.35);

        transform: none;
    }

}

/* ==========================================
   CONTACT THE WORLDHOPPER — HOMEPAGE
   ========================================== */

/* Main contact panel */
.homeContact {
    width: 100%;
    max-width: 620px;

    margin: 32px auto 0;
    padding: 28px 30px;

    background: #181D1A;
    border: 1px solid #665438;
    border-radius: 8px;

    text-align: center;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Decorative contact icon */
.homeContactIcon {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    color: #D9B36A;
}

.homeContactIcon svg {
    display: block;
    width: 28px;
    height: 28px;
}

/* Heading */
.homeContact h2 {
    margin: 0;

    color: #D9B36A;

    font-family: 'Cinzel', Georgia, serif;
    font-size: 20px;
    font-weight: 700;

    line-height: 1.5;
    letter-spacing: 0.6px;
}

/* Thin golden decorative divider */
.homeContactDivider {
    width: 70px;
    height: 1px;

    margin: 16px auto 20px;

    background: #B9975B;
}

/* Description text */
.homeContact .homeContactText {
    max-width: 480px;

    margin: 0 auto 12px;

    color: #D6CEBC;

    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    font-weight: 400;

    line-height: 1.8;
}

/* Contact Me on X link */
.homeContactButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    min-height: 44px;

    margin-top: 12px;
    padding: 12px 24px;

    background: #1B201D;

    border: 1px solid #B9975B;
    border-radius: 6px;

    color: #F1E5CB;

    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;

    -webkit-tap-highlight-color: transparent;
}

/* ==========================================
   DESKTOP GOLDEN HOVER EFFECTS
   ========================================== */

@media (hover: hover) and (pointer: fine) {

    /* Static golden glow for the panel */
    .homeContact:hover {
        border-color: #E5BE70;

        box-shadow:
            0 0 0 1px rgba(229, 190, 112, 0.35),
            0 0 16px rgba(217, 179, 106, 0.40),
            0 0 32px rgba(217, 179, 106, 0.16);

        transform: none;
    }

    /* Interactive golden glow for the X link */
    .homeContactButton:hover {
        background: #263329;
        border-color: #E5BE70;
        color: #D9B36A;

        box-shadow:
            0 0 0 1px rgba(229, 190, 112, 0.25),
            0 0 14px rgba(217, 179, 106, 0.30);

        transform: none;
    }

}

/* Keyboard accessibility */
.homeContactButton:focus-visible {
    outline: 2px solid #E5BE70;
    outline-offset: 4px;
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */

@media (max-width: 768px) {

    .homeContact {
        max-width: 100%;

        margin-top: 24px;
        padding: 24px 18px;
    }

    .homeContact h2 {
        font-size: 17px;
        letter-spacing: 0.3px;
    }

    .homeContact .homeContactText {
        font-size: 13px;
        line-height: 1.7;
    }

    .homeContactButton {
        padding: 11px 20px;
        font-size: 13px;
    }

}

/* Golden touch feedback for mobile */
@media (hover: none) and (pointer: coarse) {

    .homeContactButton:active {
        background: #263329;
        border-color: #E5BE70;
        color: #D9B36A;

        box-shadow:
            0 0 12px rgba(217, 179, 106, 0.30);
    }

}

/* ==========================================
   CREDITS & ACKNOWLEDGMENTS PAGE
   ========================================== */

#creditsPage {
    min-height: 100vh;
    padding: 48px 20px 80px;
}

/* Center the page content */
.creditsContent {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

/* Main page heading */
.creditsContent h1 {
    margin: 0 0 24px;

    color: #D9B36A;
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1px;
}

/* Introduction */
.creditsContent .creditsIntro {
    max-width: 660px;
    margin: 0 auto 36px;

    color: #D6CEBC;
    font-family: 'Lora', Georgia, serif;
    font-size: 16px;
    line-height: 1.8;
}

/* Individual acknowledgment cards */
.creditsSection {
    width: 100%;
    margin: 0 auto 18px;
    padding: 26px 30px;

    background: #181D1A;
    border: 1px solid #665438;
    border-radius: 8px;

    text-align: left;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Card headings */
.creditsSection h2 {
    margin: 0 0 12px;

    color: #D9B36A;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.5;
}

/* Card descriptions */
.creditsSection p {
    max-width: none;
    margin: 0 0 14px;

    color: #D6CEBC;
    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    line-height: 1.8;
}

/* Remove extra space when paragraph is last */
.creditsSection p:last-child {
    margin-bottom: 0;
}

/* Official source links */
.creditsSection a {
    display: inline-block;

    color: #D9B36A;
    font-family: 'Lora', Georgia, serif;
    font-size: 14px;

    text-decoration: underline;
    text-underline-offset: 4px;

    transition: color 0.25s ease;
}

.creditsSection a:hover {
    color: #F1E5CB;
}

.creditsSection a:focus-visible {
    outline: 2px solid #E5BE70;
    outline-offset: 4px;
}

/* Disclaimer at the bottom */
.creditsContent .creditsDisclaimer {
    max-width: 720px;
    margin: 36px auto 0;
    padding: 18px 22px;

    color: #B5AEA1;
    font-family: 'Lora', Georgia, serif;
    font-size: 13px;
    line-height: 1.8;

    border-top: 1px solid #665438;
}

/* ==========================================
   GOLDEN GLOW — NO MOVEMENT
   ========================================== */

@media (hover: hover) and (pointer: fine) {

    .creditsSection:hover {
        border-color: #E5BE70;

        box-shadow:
            0 0 0 1px rgba(229, 190, 112, 0.25),
            0 0 16px rgba(217, 179, 106, 0.30),
            0 0 28px rgba(217, 179, 106, 0.12);

        transform: none;
    }

}

/* ==========================================
   HOMEPAGE CREDITS LINK
   ========================================== */

.homeCreditsRow {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    margin: 18px auto 0;
}

/* Small, understated navigation button */
.homeCreditsRow .homeCreditsLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    width: auto;
    max-width: 100%;
    min-height: 40px;

    margin: 0;
    padding: 9px 15px;

    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;

    color: #D9B36A;

    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transform: none;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;

    -webkit-tap-highlight-color: transparent;
}

.homeCreditsLink span {
    color: #D9B36A;
    font-size: 17px;
}

/* Golden outline when hovered */
@media (hover: hover) and (pointer: fine) {

    .homeCreditsRow .homeCreditsLink:hover {
        background: #1B201D;
        border-color: #E5BE70;

        color: #D9B36A;

        box-shadow:
            0 0 12px rgba(217, 179, 106, 0.30);

        transform: none;
    }

}

/* Keyboard accessibility */
.homeCreditsRow .homeCreditsLink:focus-visible {
    outline: 2px solid #E5BE70;
    outline-offset: 3px;
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */

@media (max-width: 768px) {

    #creditsPage {
        padding: 30px 16px 60px;
    }

    .creditsContent h1 {
        font-size: 28px;
        letter-spacing: 0.5px;
    }

    .creditsContent .creditsIntro {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .creditsSection {
        padding: 20px 18px;
        margin-bottom: 14px;
    }

    .creditsSection h2 {
        font-size: 18px;
    }

    .creditsSection p,
    .creditsSection a {
        font-size: 13px;
    }

    .creditsContent .creditsDisclaimer {
        padding: 16px 10px;
        font-size: 12px;
    }

    .homeCreditsRow .homeCreditsLink {
        font-size: 13px;
        padding: 9px 12px;
    }

}

/* Gold touch feedback on mobile */
@media (hover: none) and (pointer: coarse) {

    .homeCreditsRow .homeCreditsLink:active {
        background: #1B201D;
        border-color: #E5BE70;

        box-shadow:
            0 0 12px rgba(217, 179, 106, 0.30);

        transform: none;
    }

}
