/* Love character book: one card, one size, same slots every page. */

.lc-book {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    outline: none;
    background: transparent;
    box-sizing: border-box;
    gap: 0;
}

.lc-book-frame {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 100%;
    background: #fff;
    border: 1px solid #e0e8ef;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(45, 74, 94, 0.06);
    overflow: hidden;
}

.lc-book-stage {
    position: relative;
    height: 360px;
}

.lc-book-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 18px 28px;
    text-align: center;
    visibility: hidden;
    pointer-events: none;
    box-sizing: border-box;
    overflow: hidden;
}

.lc-book-slide.is-active {
    visibility: visible;
    pointer-events: auto;
}

.lc-book-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
}

.lc-book-head {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    padding: 10px 0;
    box-sizing: content-box;
}

.lc-book-body {
    flex: 0 0 auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.lc-book-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(180px, 72%);
    height: 13px;
    margin: 0 auto;
}

.lc-book-ornament-line {
    flex: 1 1 54px;
    max-width: 72px;
    height: 0;
    border-top: 1px solid #000;
}

.lc-book-ornament-heart {
    flex: 0 0 auto;
    font-size: 13px;
    line-height: 1;
    color: #000;
}

.lc-book-ornament--ghost {
    visibility: hidden;
}

.lc-book-title-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    overflow: visible;
}

.lc-book-title-cluster {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lc-book-title-cluster .lc-book-ornament {
    position: absolute;
    left: 50%;
    width: 180px;
    transform: translateX(-50%);
}

.lc-book-title-cluster .lc-book-ornament:first-child {
    bottom: calc(100% + 2px);
}

.lc-book-title-cluster .lc-book-ornament:last-child {
    top: calc(100% + 2px);
}

.lc-book-title,
.lc-book-chapter {
    margin: 0;
    max-width: 14em;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    color: #2d2d2d;
}

.lc-book-text,
.lc-book-list {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: #2d2d2d;
}

.lc-book-list {
    padding: 0;
    list-style: none;
    width: 100%;
}

.lc-book-list li + li {
    margin-top: 10px;
}

.lc-book-share {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
}

.lc-book-share-btn {
    width: min(200px, 100%) !important;
    max-width: 200px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 8px 10px !important;
    margin: 0 !important;
    border-radius: 6px !important;
    border: 1px solid #9ec3e2 !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #2d4a5e !important;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.lc-book-share-btn--primary {
    background: #9ec3e2 !important;
    background-color: #9ec3e2 !important;
    color: #2d2d2d !important;
    border-color: #8ab5d6 !important;
}

.lc-book-share-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.lc-book-like-label {
    margin: 14px 0 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #8a7a68;
}

.lc-book-like {
    -webkit-appearance: none;
    appearance: none;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 2px 8px !important;
    margin: 0 !important;
    color: #c45c5c !important;
    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer;
}

.lc-book-like.is-liked {
    color: #cc0000 !important;
}

.lc-book-nav {
    flex: 0 0 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    height: 56px;
    margin: 24px -16px 0;
    padding: 8px 16px;
    border-top: 1px solid #e8e2d6;
    background: #fffef7;
    box-sizing: border-box;
}

.lc-book-arrow {
    -webkit-appearance: none;
    appearance: none;
    background: #f5f5f0 !important;
    background-color: #f5f5f0 !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    color: #2d2d2d !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px !important;
    font-size: 0 !important;
}

.lc-book-arrow svg {
    display: block;
    width: 18px;
    height: 18px;
}

.lc-book-arrow[hidden] {
    visibility: hidden;
    pointer-events: none;
}

@media (min-width: 769px) {
    .natal-cert-drawer.lc-book-mode.is-open {
        justify-content: center !important;
        align-items: center !important;
        padding: 20px;
    }
}

.natal-cert-drawer.lc-book-mode .natal-cert-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(40, 36, 32, 0.42);
    pointer-events: auto;
}

.natal-cert-drawer.lc-book-mode .natal-cert-drawer-panel {
    width: 348px !important;
    max-width: 348px !important;
    height: auto !important;
    max-height: min(92vh, 760px) !important;
    background: #fffef7 !important;
    border: 1px solid #ddd5c8 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(40, 36, 32, 0.22);
}

.natal-cert-drawer.lc-book-mode .natal-cert-drawer-title {
    display: none !important;
}

.natal-cert-drawer.lc-book-mode .natal-cert-drawer-header {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: 56px;
    padding: 8px;
    border-bottom: 1px solid #e8e2d6;
    background: #fffef7;
    box-sizing: border-box;
    z-index: 2;
}

.natal-cert-drawer.lc-book-mode .natal-cert-drawer-scroll {
    flex: 0 1 auto;
    height: auto;
    padding: 16px 16px 0;
    overflow: auto;
    background: #fffef7;
    box-sizing: border-box;
}

.natal-cert-drawer.lc-book-mode .natal-cert-drawer-actions {
    display: none !important;
    background: transparent !important;
}

.lf-modal-step--results.lc-book-mode .lc-result-actions {
    display: none;
}

.lf-modal-step--results.lc-book-mode .lc-result-frame {
    width: 348px;
    max-width: 348px;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
    background: #fffef7;
    border: 1px solid #ddd5c8;
    border-radius: 12px;
    box-shadow: none;
    padding: 16px 16px 0;
    box-sizing: border-box;
}

.lf-modal-step--results.lc-book-mode .lc-book-nav {
    margin-left: -16px;
    margin-right: -16px;
}

.lf-modal-step--results.lc-book-mode .lc-result-scroll,
.lf-modal-step--results.lc-book-mode .lc-result-card {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: none;
    border-radius: 0;
}

@media (max-width: 768px) {
    .natal-cert-drawer.lc-book-mode.is-open {
        justify-content: flex-end !important;
        align-items: stretch !important;
        padding: 0;
    }
    .natal-cert-drawer.lc-book-mode .natal-cert-drawer-panel {
        width: 100% !important;
        max-width: 100vw !important;
        border-radius: 12px 12px 0 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-bottom: 0 !important;
        max-height: 92vh !important;
    }
    .natal-cert-drawer.lc-book-mode .lc-book-nav {
        min-height: 56px;
        height: auto;
        padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
    }
    .lf-modal-step--results.lc-book-mode .lc-result-frame {
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        padding: 16px 16px 0;
    }
    .lc-book-title,
    .lc-book-chapter {
        font-size: 24px;
    }
    .lc-book-title-slot {
        height: 64px;
    }
    .lc-book-text,
    .lc-book-list {
        font-size: 17px;
    }
    .lc-book-share-btn {
        font-size: 16px !important;
        padding: 10px 16px !important;
        max-width: 240px;
        width: min(240px, 100%) !important;
    }
    .lc-book-like-label {
        font-size: 15px;
        margin-top: 18px;
    }
    .lc-book-like {
        font-size: 28px !important;
    }
}
