﻿.reckoning-page-shell {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow-x: clip;
}

.reckoning-desk-section {
    position: relative;
    width: 100%;
    padding: 50px 0 120px 0;
    background-image: url('/images/webp/walnut-desktop.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: visible;
}

    .reckoning-desk-section::before {
        content: "";
        position: absolute;
        top: -80px;
        left: 0;
        right: 0;
        height: 120px;
        background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(20,12,8,0.45), rgba(20,12,8,0.0));
        pointer-events: none;
    }

.reckoning-casefile-page {
    width: 100%;
    min-height: auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    overflow: visible;
}

.casefile-stage {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    perspective: 2200px;
    overflow: visible;
}

.casefile {
    position: relative;
    display: inline-block;
    width: min(560px, 100%);
    max-width: 100%;
    overflow: visible;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
    margin-left: 50%;
}

    .casefile.assets-ready {
        opacity: 1;
    }

.casefile-rear {
    position: relative;
    display: inline-block;
    width: 100%;
}

.casefile-rear-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    user-select: none;
    pointer-events: none;
}

.casefile-flap-shadow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient( to right, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.10) 10%, rgba(0, 0, 0, 0.04) 22%, rgba(0, 0, 0, 0.00) 38% );
    opacity: 0.85;
    transition: opacity 1.4s cubic-bezier(.22,1,.36,1);
}

.casefile.open .casefile-flap-shadow {
    opacity: 0.08;
}

.casefile-front {
    position: absolute;
    inset: 0;
    transform-origin: left center;
    transform-style: preserve-3d;
    z-index: 30;
    will-change: transform;
    transform: translateY(0);
    transition: transform 0.4s ease;
    cursor: pointer;
}

.casefile.ready .casefile-front {
    transform: translateY(2px);
}

.casefile.open .casefile-front {
    animation: folderOpenRealistic 1.65s cubic-bezier(.22,1,.36,1) forwards;
}

.casefile-front-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.casefile-front-face-front {
    z-index: 2;
}

.casefile-front-face-back {
    transform: rotateY(180deg);
    z-index: 1;
}

.casefile-front-img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.25));
}

.casefile-front-img-back {
    filter: brightness(0.96) saturate(0.9);
}

@keyframes folderOpenRealistic {
    0% {
        transform: perspective(2200px) rotateY(0deg);
    }

    16% {
        transform: perspective(2200px) rotateY(-14deg);
    }

    45% {
        transform: perspective(2200px) rotateY(-72deg);
    }

    72% {
        transform: perspective(2200px) rotateY(-138deg);
    }

    100% {
        transform: perspective(2200px) rotateY(-180deg);
    }
}

.casefile-front-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-sizing: border-box;
    z-index: 2;
}

.casefile-stamp {
    position: absolute;
    top: 8%;
    right: 10%;
    color: rgba(135, 22, 22, 0.78);
    border: 3px solid rgba(135, 22, 22, 0.78);
    padding: 0.35rem 0.8rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    transform: translateX(-30px) rotate(-8deg) scale(2);
    transform-origin: top right;
}

.casefile-cover-text {
    position: absolute;
    top: 18%;
    left: 10%;
    width: 52%;
    color: #2e2518;
    z-index: 3;
}

.casefile-cover-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
}

.casefile-cover-text h1 {
    margin: 0 0 1rem 0;
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    line-height: 1;
    color: inherit;
}

.casefile-cover-text p {
    margin: 0.35rem 0;
    font-size: 1rem;
    line-height: 1.4;
    color: inherit;
}

.casefile-open-hint {
    position: absolute;
    bottom: 8%;
    right: 10%;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(47, 38, 25, 0.8);
    letter-spacing: 0.04em;
    transition: opacity 0.2s ease;
}

.casefile.open .casefile-open-hint {
    opacity: 0;
}

.casefile-inner {
    position: absolute;
    inset: 4% 6% 5% 2%;
    display: flex;
    gap: 0;
    box-sizing: border-box;
    z-index: 2;
    visibility: hidden;
    opacity: 0;
    align-items: stretch;
}

.casefile.revealed .casefile-inner {
    visibility: visible;
    opacity: 1;
}

.casefile-paper-stack {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 100%;
    height: calc(100% + 24px);
    width: calc(100% + 10px);
    z-index: 1;
    margin-left: -10px;
    margin-top: -10px;
    margin-bottom: -10px;
}

.casefile-paper-stack-layer {
    position: absolute;
    inset: 0;
    border-radius: 2px;
    background: #f6f1e5;
    pointer-events: none;
}

.casefile-paper-stack-layer-1 {
    transform: translate(10px, 8px);
    opacity: 0.85;
    z-index: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.casefile-paper-stack-layer-2 {
    transform: translate(5px, 4px);
    opacity: 0.92;
    z-index: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.casefile-content {
    position: relative;
    z-index: 6;
    min-width: 0;
    min-height: 100%;
    height: 100%;
    padding: 1.6rem 2rem 1.5rem 1.8rem;
    overflow: hidden;
    border-radius: 2px;
    background-color: #fbf8ef;
    background-image: repeating-linear-gradient( to bottom, rgba(120, 140, 170, 0.14) 0px, rgba(120, 140, 170, 0.14) 1px, transparent 1px, transparent 34px );
    box-shadow: inset 0 0 0 1px rgba(80, 60, 35, 0.08);
    display: flex;
    flex-direction: column;
}

.casefile-panel {
    display: none;
    max-width: 100%;
    flex: 1 1 auto;
    position: relative;
    height: 100%;
    box-sizing: border-box;
    padding: 1.75rem 1.5rem 1.5rem;
    overflow: hidden;
    font-family: "Courier New", Courier, monospace;
    color: #2e241c;
    line-height: 1.55;
}

    .casefile-panel.active {
        display: block;
    }

    .casefile-panel h2 {
        margin: 0 0 1rem;
        font-size: 1.4rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #1f1813;
    }

        .casefile-panel h2::after {
            content: "";
            display: block;
            margin-top: 0.5rem;
            height: 1px;
            background: rgba(60, 45, 30, 0.35);
        }

    .casefile-panel p,
    .casefile-panel li {
        font-size: clamp(0.95rem, 1.2vw, 1rem);
        line-height: 1.7;
        margin: 0 0 0.45rem;
        font-size: 0.95rem;
        color: #332a1d;
    }

        .casefile-panel p:last-child {
            margin-bottom: 0;
        }

    .casefile-panel strong {
        font-weight: bold;
        color: #201914;
    }

    .casefile-panel ul {
        margin: 1rem 0 0 1.25rem;
        padding: 0;
    }

    .casefile-panel::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        /*background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06));*/
        mix-blend-mode: multiply;
        opacity: 0.45;
    }

    .casefile-panel[data-tab="summary"] p:nth-last-child(2),
    .casefile-panel[data-tab="summary"] p:last-child {
        font-weight: bold;
        letter-spacing: 0.02em;
    }

    .casefile-panel[data-tab="summary"] p:last-child {
        margin-top: 1.25rem;
        font-size: 1.05rem;
        letter-spacing: 0.06em;
    }

.casefile-inner .casefile-content {
    height: 100%;
    overflow: hidden;
}

.casefile-inner .casefile-panel {
    display: none;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(80, 60, 40, 0.45) transparent;
}

    .casefile-inner .casefile-panel.active {
        display: block;
    }

    .casefile-inner .casefile-panel::-webkit-scrollbar {
        width: 8px;
    }

    .casefile-inner .casefile-panel::-webkit-scrollbar-track {
        background: transparent;
    }

    .casefile-inner .casefile-panel::-webkit-scrollbar-thumb {
        background: rgba(80, 60, 40, 0.45);
        border-radius: 4px;
    }

.casefile-tabs {
    width: 100px;
    flex: 0 0 100px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 1.1rem;
    position: relative;
    z-index: 7;
    margin-left: 0;
}

.casefile-tab {
    appearance: none;
    border: 1px solid rgba(70, 55, 35, 0.18);
    color: #2f2619;
    padding: 0.65rem 0.6rem 0.65rem 1rem;
    text-align: right;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    position: relative;
    box-shadow: none;
    transition: none;
    margin-bottom: -1px;
    left: 0;
    background-clip: padding-box;
    overflow: visible;
}

    .casefile-tab::before {
        content: "";
        position: absolute;
        top: -1px;
        bottom: -1px;
        left: -20px;
        width: 30px;
        background: inherit;
        border-top: 1px solid rgba(70, 55, 35, 0.18);
        border-bottom: 1px solid rgba(70, 55, 35, 0.04);
        border-left: 1px solid rgba(70, 55, 35, 0.18);
        opacity: 0;
        pointer-events: none;
        z-index: 2;
        border-top-left-radius: 3px;
        border-bottom-left-radius: 3px;
    }

    .casefile-tab:nth-child(1) {
        background: #f6d96b;
        z-index: 9;
    }

    .casefile-tab:nth-child(2) {
        background: #f4a6c1;
        z-index: 8;
    }

    .casefile-tab:nth-child(3) {
        background: #9ed8f5;
        z-index: 7;
    }

    .casefile-tab:nth-child(4) {
        background: #b9e3a1;
        z-index: 6;
    }

    .casefile-tab:nth-child(5) {
        background: #f7b26a;
        z-index: 5;
    }

    .casefile-tab:nth-child(6) {
        background: #c7b5f0;
        z-index: 4;
    }

    .casefile-tab:nth-child(7) {
        background: #f28b82; /* soft red */
        z-index: 3;
    }

    .casefile-tab:nth-child(8) {
        background: #a0e7e5; /* mint */
        z-index: 2;
    }

    .casefile-tab:nth-child(9) {
        background: #e6c79c; /* manila / paper tone */
        z-index: 1;
    }

    .casefile-tab:hover {
        filter: brightness(0.98);
    }

    .casefile-tab.active {
        z-index: 20;
        filter: none;
    }

        .casefile-tab.active::before {
            opacity: 1;
        }

    .casefile-tab.restricted {
        background: #e6c79c;
        color: #5c4631;
    }

        .casefile-tab.restricted.active {
            background: #e6c79c;
            color: #5c4631;
        }

.restricted-panel .restricted-label {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border: 2px solid #8d1b1b;
    color: #8d1b1b;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.restricted-button {
    display: inline-block;
    margin-top: 1rem;
    background: #2f2619;
    color: #fff8eb;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
}

.reckoning-desk-props {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.reckoning-desk-photos {
    position: absolute;
    top: 110px;
    left: 7%;
    width: 320px;
    height: 420px;
}

.reckoning-desk-photo {
    position: absolute;
    width: 240px;
    background: #f7f3ea;
    padding: 10px 10px 28px 10px;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(60, 45, 30, 0.14);
}

    .reckoning-desk-photo img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 3;
        object-fit: cover;
    }

.reckoning-desk-photo-1 {
    top: 100px;
    left: 152px;
    transform: rotate(-11deg);
    z-index: 1;
}

.reckoning-desk-photo-2 {
    top: 20;
    left: 174px;
    transform: rotate(23deg);
    z-index: 2;
}

.reckoning-desk-photo-3 {
    top: 36px;
    left: 56px;
    transform: rotate(-7deg);
    z-index: 3;
}

.reckoning-desk-postit {
    position: absolute;
    top: 620px;
    left: 250px;
    width: 150px;
    min-height: 150px;
    background: #f6e27a;
    color: #3f341c;
    padding: 18px 16px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
    transform: rotate(-4deg);
    border: 1px solid rgba(80, 65, 20, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

    .reckoning-desk-postit span {
        display: block;
        font-family: 'Permanent Marker', cursive;
        /* swap to 'Shadows Into Light' if you want softer */

        font-size: 1.25rem;
        line-height: 1.3;
        font-weight: normal; /* handwritten fonts don't need bold */

        letter-spacing: 0.5px;
        word-spacing: 2px;
        color: #2e2614;
        transform: rotate(-1deg); /* slight imperfection */

        text-shadow: 0.5px 0.5px 0 rgba(0,0,0,0.15); /* subtle ink bleed */
    }

.casefile-evidence-image {
    display: block;
    max-width: 100%;
    height: auto;
    width: 100%;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 8px 14px rgba(0, 0, 0, 0.18);
    vertical-align: middle;
}

.casefile-audio-trigger {
    display: inline-block;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
}

.casefile-audio-image-wrapper {
    position: relative;
    display: inline-block;
}

    .casefile-audio-image-wrapper::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.0);
        transition: background 0.2s ease;
    }

.casefile-audio-trigger:hover .casefile-audio-image-wrapper::after {
    background: rgba(0,0,0,0.15);
}

.casefile-audio-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

    .casefile-audio-overlay::before,
    .casefile-audio-overlay::after {
        content: "";
        position: absolute;
    }

    .casefile-audio-overlay::before {
        width: 0;
        height: 0;
        margin-left: 3px;
        border-left: 14px solid white;
        border-top: 9px solid transparent;
        border-bottom: 9px solid transparent;
    }

    .casefile-audio-overlay::after {
        display: none;
    }

.casefile-audio-trigger.is-playing .casefile-audio-overlay::before,
.casefile-audio-trigger.is-playing .casefile-audio-overlay::after {
    width: 4px;
    height: 18px;
    background: white;
    border: none;
    margin-left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.casefile-audio-trigger.is-playing .casefile-audio-overlay::before {
    left: calc(50% - 6px);
}

.casefile-audio-trigger.is-playing .casefile-audio-overlay::after {
    display: block;
    left: calc(50% + 2px);
}

@media (max-width: 900px) {
    .reckoning-desk-section {
        padding: 70px 0 80px 0;
    }

    .casefile-inner {
        inset: 9% 8% 10% 8%;
        flex-direction: column;
        gap: 16px;
    }

    .casefile-paper-stack {
        min-height: 0;
        height: auto;
        width: auto;
        margin-left: 0;
        margin-top: 0;
        margin-bottom: 0;
    }

    .casefile-paper-stack-layer-1 {
        transform: translate(6px, 5px);
    }

    .casefile-paper-stack-layer-2 {
        transform: translate(3px, 2px);
    }

    .casefile-content {
        padding: 1rem;
        min-height: auto;
        height: auto;
    }

    .casefile-tabs {
        width: 100%;
        flex: 0 0 auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 0.5rem;
        margin-left: 0;
    }

    .casefile-tab {
        flex: 1 1 calc(50% - 8px);
        border-radius: 8px;
        text-align: center;
        margin-bottom: 0;
        left: 0 !important;
    }

        .casefile-tab.active {
            left: 0 !important;
        }

        .casefile-tab::before {
            display: none;
        }

    .casefile-cover-text {
        width: 75%;
    }

        .casefile-cover-text h1 {
            font-size: clamp(1.6rem, 5vw, 2.3rem);
        }

    .casefile-open-hint {
        right: 8%;
        bottom: 6%;
        font-size: 0.88rem;
    }
}

@media (max-width: 768px) {
    .casefile-panel {
        padding: 1.25rem 1rem 1rem;
    }

        .casefile-panel h2 {
            font-size: 1.15rem;
        }

        .casefile-panel p {
            font-size: 0.92rem;
        }
}

.buybox-casefile-page {
    font-family: "Courier New", Courier, monospace;
    color: #2e241c;
    line-height: 1.55;
}

.buybox-casefile-page-header {
    margin-bottom: 1.5rem;
}

    .buybox-casefile-page-header h2 {
        margin: 0 0 0.75rem;
        font-size: 1.4rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #1f1813;
    }

        .buybox-casefile-page-header h2::after {
            content: "";
            display: block;
            margin-top: 0.5rem;
            height: 1px;
            background: rgba(60, 45, 30, 0.35);
        }

.buybox-casefile-country {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.95rem;
    color: #5a4a3d;
}

.buybox-casefile-flag {
    display: block;
    flex: 0 0 auto;
    width: 20px;
    height: 14px;
}

.buybox-casefile-groups {
    display: block;
}

.buybox-casefile-group {
    margin-bottom: 1.5rem;
}

    .buybox-casefile-group:last-child {
        margin-bottom: 0;
    }

.buybox-casefile-group-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0.04em;
    color: #1f1813;
}

.buybox-casefile-group-message {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    color: #5a4a3d;
}

.buybox-casefile-links {
    border-top: 1px solid rgba(70, 50, 35, 0.2);
}

.buybox-casefile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    text-decoration: none;
    color: #2e241c;
    border-bottom: 1px dashed rgba(70, 50, 35, 0.28);
    transition: background-color 0.15s ease, padding-left 0.15s ease;
}

    .buybox-casefile-link:hover {
        background-color: rgba(90, 74, 61, 0.06);
        padding-left: 0.35rem;
        color: #1f1813;
        text-decoration: none;
    }

    .buybox-casefile-link:last-child {
        border-bottom: 1px dashed rgba(70, 50, 35, 0.28);
    }

.buybox-casefile-link-main {
    min-width: 0;
    flex: 1 1 auto;
}

.buybox-casefile-link-text {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1.35;
}

.buybox-casefile-price {
    flex: 0 0 auto;
    white-space: nowrap;
    font-weight: bold;
    color: #1f1813;
}

@media (max-width: 575.98px) {
    .buybox-casefile-page-header h2 {
        font-size: 1.15rem;
    }

    .buybox-casefile-country,
    .buybox-casefile-group-message,
    .buybox-casefile-link,
    .buybox-casefile-price {
        font-size: 0.92rem;
    }

    .buybox-casefile-link {
        gap: 0.75rem;
    }
}

.reckoning-subject-entry {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(70, 50, 35, 0.35);
}

    .reckoning-subject-entry:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .reckoning-subject-entry h3 {
        margin: 0 0 0.55rem;
        font-size: 1rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #1f1813;
    }

        .reckoning-subject-entry p:last-child {
            margin-bottom: 0;
        }

    .reckoning-subject-entry strong {
        font-weight: bold;
        color: #201914;
    }

.img-polaroid {
    display: block;
    max-width: 100%;
    height: auto;
    /* Polaroid border */
    background: #fff;
    padding: 5px 5px 10px 5px; /* thicker bottom */
    /* Subtle ageing */
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Shadow for realism */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25), 0 2px 5px rgba(0, 0, 0, 0.15);
    /* Slight imperfection */
    transform: rotate(-1.5deg);
    /* Optional: soften edges slightly */
    border-radius: 2px;
}

.chapter-reader {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background: rgba(248, 244, 236, 0.92);
    border: 1px solid rgba(107, 84, 58, 0.18);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    color: #35291f;
    position: relative;
}

    .chapter-reader::before {
        content: "";
        position: absolute;
        inset: 10px;
        border: 1px solid rgba(107, 84, 58, 0.12);
        border-radius: 12px;
        pointer-events: none;
    }

.chapter-reader__header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(107, 84, 58, 0.2);
    text-align: center;
}

.chapter-reader__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8a5a44;
}

.chapter-reader__title {
    margin: 0;
    font-size: clamp(1rem, 1vw, 1.5rem);
    line-height: 1.1;
    font-weight: 200;
    color: #5d2f2f;
}

.chapter-reader__meta {
    margin: 0.85rem 0 0;
    font-size: 0.98rem;
    font-style: italic;
    color: #6a5746;
}

.chapter-reader__content {
    font-size: 1.08rem;
    line-height: 1.9;
}

    .chapter-reader__content p {
        margin: 0 0 1.35rem;
        text-wrap: pretty;
    }

        .chapter-reader__content p + p {
            text-indent: 0;
        }

.chapter-reader__artifact {
    display: inline-block;
    padding: 0.08rem 0.35rem;
    background: rgba(201, 168, 112, 0.16);
    border-radius: 4px;
    font-style: italic;
    color: #5a4330;
}

.chapter-reader__poem {
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    background: rgba(255, 250, 240, 0.9);
    border-left: 4px solid #b7895b;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(107, 84, 58, 0.08);
}

    .chapter-reader__poem p {
        margin-bottom: 1.2rem;
        font-style: italic;
        line-height: 1.8;
        color: #4e3a2b;
    }

        .chapter-reader__poem p:last-child {
            margin-bottom: 0;
        }

.chapter-reader__closing {
    margin-top: 2rem;
    padding-top: 1rem;
    font-weight: 600;
    color: #5d2f2f;
}

@media (max-width: 640px) {
    .chapter-reader {
        padding: 1.4rem 1rem;
        border-radius: 14px;
    }

    .chapter-reader__content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .chapter-reader__poem {
        padding: 1.1rem 1rem;
    }
}

.chapter-reader__audio {
    margin: 1.75rem 0 2.25rem;
}

.chapter-reader__audio-label {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8a5a44;
    font-weight: 600;
}

.chapter-reader__audio-player {
    width: 100%;
    border-radius: 8px;
}

/* Styled version */

.chapter-reader__audio-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.2rem;
    background: rgba(255, 250, 240, 0.9);
    border: 1px solid rgba(107, 84, 58, 0.2);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.chapter-reader__audio-icon {
    font-size: 1.8rem;
    opacity: 0.8;
}

.chapter-reader__audio-content {
    flex: 1;
}

.chapter-reader__audio-title {
    margin: 0;
    font-weight: 700;
    color: #5d2f2f;
}

.chapter-reader__audio-subtitle {
    margin: 0 0 0.6rem;
    font-size: 0.9rem;
    color: #6a5746;
}