/*
Theme Name: Pye Rift Viral Editorial
Theme URI: https://thepyecompany.store
Author: The Pye Company
Description: Viral multi-chapter story reader matching rift.treeiq.biz layout and rewarded ad gate.
Version: 2.0.0
*/

:root {
    --tenant-bg: #fafafa;
    --tenant-text: #09090b;
    --tenant-muted: #3f3f46;
    --tenant-accent: #3b82f6;
    --tenant-border: #e4e4e7;
}

body {
    background-color: var(--tenant-bg);
    color: var(--tenant-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.font-editorial {
    font-family: Georgia, "Times New Roman", Times, serif;
}

.font-reading {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.v5-title {
    font-size: 26.8px !important;
    line-height: 1.2 !important;
    text-align: left;
}

.v5-prose p {
    font-size: 22px !important;
    line-height: 42px !important;
    margin-bottom: 24px !important;
    color: #18181b;
}

/* Ad container placeholders */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 28px auto;
    min-height: 90px;
    background: #f4f4f5;
    border: 1px dashed #d4d4d8;
    border-radius: 8px;
    color: #71717a;
    font-size: 13px;
    text-align: center;
}

/* Content Gate Styles */
.cg-veil {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 9000;
    pointer-events: auto;
    background: rgba(250, 250, 250, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 90px);
    mask-image: linear-gradient(180deg, transparent 0, #000 90px);
}
.cg-veil.cg-hide { display: none; }

.cg-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9050;
    transform: translateY(120%);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 48px 16px 16px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(22, 19, 16, 0), #161310 38%);
    font-family: Inter, system-ui, sans-serif;
}
.cg-bar.cg-show {
    transform: translateY(0);
    pointer-events: auto;
}

.cg-card {
    max-width: 560px;
    margin: 0 auto;
    background: #161310;
    color: #F8F4EC;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.55);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cg-ico {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #161310;
    background: linear-gradient(135deg, #F0A500, #E8762B);
}

.cg-txt { flex: 1; min-width: 0; }
.cg-title { font-size: 15px; font-weight: 700; margin: 0 0 2px; line-height: 1.3; }
.cg-sub { font-size: 12.5px; color: rgba(248, 244, 236, 0.62); margin: 0; line-height: 1.4; }

.cg-btn {
    flex: none;
    cursor: pointer;
    border: 0;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    color: #161310;
    background: linear-gradient(135deg, #F0A500, #E8762B);
    padding: 13px 20px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.15s;
}
.cg-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px #E8762B;
}
