:root {
    --bk-pink: #ff8da8;
    --bk-sky: #60c5f1;
    --bk-mint: #52d6b4;
    --bk-cream: #fffdf9;
    --bk-ink: #5a3548;
}
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    background: 
        radial-gradient(ellipse at 12% 8%, #e0f6ff 0%, transparent 40%),
        radial-gradient(ellipse at 88% 18%, #e2fff5 0%, transparent 38%),
        radial-gradient(ellipse at 50% 55%, #fff0f6 0%, transparent 45%),
        linear-gradient(180deg, #f8fdff 0%, #fff9fb 50%, #f4fff9 100%);
    color: var(--bk-ink);
    overflow-x: hidden;
}
button, a { cursor: pointer; position: relative; z-index: 2; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0faff; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ff91ad, #60c5f1); border-radius: 9999px; }

.tab-panel { animation: fadeSlide 0.25s ease-out forwards; }
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reader Themes */
.reader-light { background-color: #FFFFFF; color: #1F2937; }
.reader-sepia { background-color: #FBF5E6; color: #3E2F1C; }
.reader-dark  { background-color: #18181B; color: #E4E4E7; }

/* Top Nav 3D Jelly Icon Buttons (Pastel Rainbow Accent) */
header.sticky {
    background: rgba(255, 255, 255, .92) !important;
    border-bottom: 2px solid #cbeeff !important;
    box-shadow: 0 6px 24px rgba(100, 190, 230, .12) !important;
}
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #5c3b4c;
    background: linear-gradient(180deg, #ffffff, #f2fbff);
    border: 1px solid #cceeff;
    box-shadow: 0 3px 0 #bce4f7;
    transition: transform 0.15s, background 0.15s;
}
.nav-btn:hover { transform: translateY(-2px); background: #e8f8ff; }
.nav-btn img { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(100,150,180,.18)); }
.nav-btn.active-nav-3d {
    background: linear-gradient(135deg, #ff8da8 0%, #60c5f1 100%);
    color: #ffffff !important;
    border-color: #ffffff;
    box-shadow: 0 4px 0 #5aa9d6, 0 8px 15px rgba(96, 197, 241, 0.28);
}

/* Hero Section (Fresh Pastel Pink + Sky Blue + Mint) */
.bk-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 16px;
    align-items: center;
    overflow: hidden;
    min-height: 340px;
    padding: 28px 35px;
    border: 3px solid #fff;
    outline: 2px solid #c9eeff;
    border-radius: 34px;
    background: 
        radial-gradient(circle at 12% 18%, #dff6ff 0%, transparent 40%),
        radial-gradient(circle at 88% 82%, #dcfff2 0%, transparent 42%),
        linear-gradient(125deg, #ffedf3 0%, #f0fbff 52%, #e6fff5 100%);
    box-shadow: 0 11px 0 #c6e9f8, 0 22px 45px rgba(96, 185, 220, .14);
}
.bk-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    border: 1px solid #a8e4ff; background: #ffffff; color: #2b8ab8;
    border-radius: 50px; padding: 7px 14px; font-size: 10px; font-weight: 800;
    box-shadow: 0 3px 0 #caeeff;
}
.bk-hero h2 {
    font-size: clamp(1.65rem, 3.1vw, 2.65rem);
    color: #5a3548; font-weight: 800; line-height: 1.42; margin: 15px 0 9px;
}
.bk-hero h2 em { font-style: normal; color: #e85d88; text-shadow: 0 2px 0 #fff; }
.bk-jelly-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border-radius: 17px; font-weight: 700; font-size: .84rem;
    border: 2px solid rgba(255, 255, 255, .95); transition: transform .18s;
    text-decoration: none; white-space: nowrap; cursor: pointer;
}
.bk-jelly-btn:hover { transform: translateY(-3px); }
.bk-jelly-primary {
    background: linear-gradient(180deg, #ff9bb4, #f26d92); color: white;
    box-shadow: 0 5px 0 #d45276, 0 10px 17px rgba(223, 95, 132, .22);
}
.bk-jelly-sky {
    background: linear-gradient(180deg, #74d2fc, #3db0e3); color: white;
    box-shadow: 0 5px 0 #298ebc, 0 10px 17px rgba(61, 176, 227, .22);
}
.bk-jelly-mint {
    background: linear-gradient(180deg, #67e4c4, #32bf9b); color: white;
    box-shadow: 0 5px 0 #21997a, 0 10px 17px rgba(50, 191, 155, .22);
}
.bk-jelly-light {
    background: linear-gradient(180deg, #fff, #eefaff); color: #367696;
    box-shadow: 0 5px 0 #c5e6f5, 0 10px 17px rgba(100, 170, 200, .1);
}
.bk-hero-art { position: relative; display: flex; align-items: center; justify-content: center; height: 300px; pointer-events: none; }
.bk-hero-art img { width: min(100%, 340px); height: 100%; object-fit: contain; filter: drop-shadow(0 16px 17px rgba(90, 150, 180, .18)); }

/* 3D Jelly Cards & Banners */
.bk-jelly-card {
    background: #fff; border: 2px solid #fff; outline: 1px solid #d4f0ff;
    border-radius: 26px; box-shadow: 0 6px 0 #d5eef8, 0 14px 25px rgba(100, 170, 200, .08);
    transition: transform .18s;
}
.bk-art-banner {
    position: relative; display: flex; align-items: center; gap: 20px;
    min-height: 165px; padding: 18px 28px; border: 2px solid #fff; border-radius: 30px;
    outline: 1px solid #cceeff; background: linear-gradient(120deg, #ffeff4 0%, #eefaff 50%, #e6fff5 100%);
    box-shadow: 0 7px 0 #cdebf7, 0 13px 22px rgba(100, 180, 210, .12); overflow: hidden;
}
.bk-art-banner > img {
    width: 195px; height: 145px; object-fit: contain; flex-shrink: 0;
    filter: drop-shadow(0 8px 12px rgba(100, 150, 180, .18));
}
.bk-art-banner h2 { font-size: clamp(1.25rem, 2.5vw, 1.8rem); font-weight: 800; color: #5a3548; line-height: 1.4; }
.bk-art-banner p { font-size: .88rem; color: #5f6f7a; line-height: 1.6; margin-top: 4px; }

/* Community Links */
.bk-community {
    background: linear-gradient(135deg, #effaff 0%, #fff2f7 52%, #e8fff5 100%);
    border: 2px solid #fff; outline: 1px solid #c9ebfb; border-radius: 28px; padding: 22px;
    box-shadow: 0 7px 0 #cfeaf7, 0 15px 32px rgba(100, 175, 210, .10);
}
.bk-community-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.bk-community-link {
    display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 13px;
    border-radius: 20px; border: 2px solid rgba(255, 255, 255, .9);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .9), 0 5px 0 rgba(90, 140, 170, .12);
    text-decoration: none; color: #473341; transition: transform .18s;
}
.bk-community-link:hover { transform: translateY(-3px); }
.bk-community-link i {
    width: 39px; height: 39px; border-radius: 14px; background: rgba(255, 255, 255, .85);
    display: flex; justify-content: center; align-items: center; font-size: 1.1rem; flex-shrink: 0;
}
.bk-community-link.fb { background: #d6eeff; }
.bk-community-link.tiktok { background: #ffe0eb; }
.bk-community-link.line { background: #d4f9e2; }
.bk-community-link.openchat { background: #fff2cc; }
.bk-reading-platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.bk-reading-platforms a, .bk-reading-platforms span {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    text-align: center; padding: 10px 6px; border-radius: 14px; font-weight: 700; font-size: .75rem;
}
.bk-reading-platforms a {
    background: #fff; border: 1px solid #bce6fb; color: #2b7da3;
    box-shadow: 0 3px 0 #d0ecf9; text-decoration: none; transition: transform .15s;
}
.bk-reading-platforms a:hover { transform: translateY(-2px); background: #f0faff; }
.bk-reading-platforms span { background: #f4f9fb; color: #95a5af; border: 1px dashed #c8dce6; }

.bk-plaque-img {
    display: block; object-fit: contain; width: min(100%, 340px); height: auto; max-height: 135px;
    filter: drop-shadow(0 6px 10px rgba(100, 160, 190, .2));
}

@media(min-width: 700px) { .bk-community-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media(max-width: 1023px) {
    nav.mob-nav {
        padding: 4px 4px 6px !important;
        background: rgba(255, 255, 255, .97) !important;
        box-shadow: 0 -7px 25px rgba(96, 197, 241, .22) !important;
    }
    body { padding-bottom: 96px !important; }
}
@media(max-width: 700px) {
    .bk-hero { grid-template-columns: 1fr; padding: 22px 20px 16px; border-radius: 27px; }
    .bk-hero-art { height: 210px; }
    .bk-art-banner { flex-direction: column; text-align: center; padding: 18px 16px; gap: 10px; }
    .bk-art-banner > img { width: 185px; height: 135px; }
    .bk-reading-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   SECURITY & ANTI-COPY PROTECTION
========================================================== */
#chapter-reader-modal,
#comic-reader-modal,
#reader-text-body,
#comic-reader-images {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

#comic-reader-images img,
#gallery-grid img {
    pointer-events: none !important;
    -webkit-user-drag: none !important;
}

.bk-security-blur #reader-text-body,
.bk-security-blur #comic-reader-images {
    filter: blur(22px) brightness(0.3) !important;
    transition: filter 0.1s ease !important;
}

.bk-Floating-Watermark {
    position: fixed;
    inset: 0;
    pointer-events: none !important;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    align-content: space-around;
    justify-content: space-around;
    overflow: hidden;
    opacity: 0.08;
    user-select: none;
}
.bk-Floating-Watermark span {
    transform: rotate(-25deg);
    font-size: 15px;
    font-weight: 800;
    color: #e85d5d;
    white-space: nowrap;
    padding: 30px;
}

@media print {
    body { display: none !important; }
}