.book-section {
    margin-top: 5rem;
}

.mafia-book-shell {
    max-width: 420px;
    margin: 0 auto;
}

/* ——— Preview (yopiq kitob) ——— */
.mafia-book-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.mafia-book-preview-book {
    position: relative;
    width: min(100%, 280px);
    perspective: 1400px;
    transform-style: preserve-3d;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.mafia-book-preview-spine {
    position: absolute;
    left: -10px;
    top: 4%;
    bottom: 4%;
    width: 18px;
    border-radius: 4px 0 0 4px;
    background: linear-gradient(90deg, #1a1208 0%, #3d2e14 45%, #1a1208 100%);
    box-shadow: inset -2px 0 6px rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.mafia-book-preview-cover {
    position: relative;
    aspect-ratio: 3 / 4.15;
    border-radius: 4px 10px 10px 4px;
    overflow: hidden;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
        linear-gradient(155deg, #3d2a14 0%, #1a1208 42%, #0e0a06 100%);
    border: 1px solid rgba(154, 123, 47, 0.4);
    box-shadow:
        0 28px 56px rgba(0, 0, 0, 0.65),
        0 8px 20px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(196, 162, 74, 0.1);
    z-index: 1;
}

.mafia-book-preview-cover-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
}

.mafia-book-preview-logo {
    width: 108px;
    height: 108px;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    border: 2px double rgba(212, 175, 55, 0.7);
    padding: 4px;
    background: #000;
    box-shadow: 0 0 28px rgba(212, 175, 55, 0.18);
}

.mafia-book-preview-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.mafia-book-preview-title {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #f3e5ab, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 0.35rem;
    line-height: 1.2;
}

.mafia-book-preview-sub {
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
}

.mafia-book-preview-badge {
    display: inline-block;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 0.35rem 0.75rem;
    border-radius: 2px;
    background: rgba(212, 175, 55, 0.06);
}

.mafia-book-preview-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0.12) 0%,
        transparent 38%,
        transparent 62%,
        rgba(212, 175, 55, 0.06) 100%
    );
    pointer-events: none;
    z-index: 3;
}

.mafia-book-preview-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    transition: color 0.25s;
}

.mafia-book-preview-cta svg {
    width: 18px;
    height: 18px;
    color: var(--gold-light);
}

.mafia-book-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

@media (hover: hover) {
    .mafia-book-preview:hover .mafia-book-preview-book {
        transform: translateY(-6px) rotateY(-4deg);
    }

    .mafia-book-preview:hover .mafia-book-preview-cta {
        color: var(--gold-light);
    }
}

/* ——— Fullscreen scroll o'qish ——— */
body.mafia-book-fs-active {
    overflow: hidden;
}

.mafia-book-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: linear-gradient(180deg, #0e0a07 0%, #080604 100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.mafia-book-fullscreen.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mafia-book-fullscreen-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-height: 100dvh;
}

.mafia-book-fs-toolbar {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem 0.5rem;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    background: rgba(0, 0, 0, 0.35);
}

.mafia-book-fs-toolbar-end {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.mafia-book-fs-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.mafia-book-fs-close svg {
    width: 18px;
    height: 18px;
}

.mafia-book-fs-title {
    margin: 0;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.mafia-book-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.35) transparent;
}

.mafia-book-scroll::-webkit-scrollbar {
    width: 6px;
}

.mafia-book-scroll::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.35);
    border-radius: 3px;
}

.mafia-book-scroll-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 1rem 0.85rem 2.5rem;
}

@media (hover: hover) {
    .mafia-book-fs-close:hover {
        border-color: rgba(212, 175, 55, 0.45);
        color: var(--gold-light);
        background: rgba(212, 175, 55, 0.08);
    }
}

@media (max-width: 768px) {
    .mafia-book-preview-book {
        width: min(100%, 240px);
    }

    .mafia-book-preview-logo {
        width: 88px;
        height: 88px;
    }

    .mafia-book-fs-toolbar {
        grid-template-columns: 36px 1fr 36px;
        padding: 0.5rem 0.5rem 0.4rem;
    }

    .mafia-book-fs-close,
    .mafia-book-fs-toolbar-end {
        width: 36px;
        height: 36px;
    }

    .mafia-book-fs-title {
        font-size: 0.72rem;
    }

    .mafia-book-scroll-inner {
        padding: 0.75rem 0.55rem 2rem;
    }
}

@media (min-width: 769px) {
    .mafia-book-scroll-inner {
        padding: 1.25rem 1.5rem 3rem;
    }
}