/* WRV SAFE SMOOTH SCROLL — no animations/slides added */
html { scroll-behavior: smooth; }

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial,sans-serif;
}

body{
    margin:0;
    color:#fff;
    font-family:Arial,sans-serif;
    background:
        radial-gradient(circle at top,#173a73 0%,#0b1224 35%,#060b16 70%,#03050b 100%);
    background-attachment:fixed;
    overflow-x:hidden;
    line-height:1.7;
    scroll-behavior:smooth;
}

header{
    position:relative;
    top:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 8%;
    background:rgba(7,12,28,.88);
    backdrop-filter:blur(16px);
    border-bottom:1px solid rgba(91,192,255,.15);
    box-shadow:0 8px 35px rgba(0,0,0,.35);
    z-index:1000;
    transition:.35s ease;
}

.logo{
    font-size:30px;
    font-weight:700;
    color:#FFD700;
    letter-spacing:.5px;
    text-shadow:0 0 15px rgba(255,215,0,.45);
}

nav{
display:flex;
gap:20px;
}


/* ===== CLEAN WRV BRANDING ===== */

.header-logo {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter:
        drop-shadow(0 0 5px rgba(0,220,255,.42))
        drop-shadow(0 0 12px rgba(0,180,255,.24));
}

.logo {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.footer-logo,
.account-footer-brand img {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter:
        drop-shadow(0 0 5px rgba(0,220,255,.42))
        drop-shadow(0 0 12px rgba(0,180,255,.24));
}

.footer-brand,
.account-footer-brand {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

@media (max-width: 600px) {
    .header-logo,
    .footer-logo,
    .account-footer-brand img {
        width: 220px;
    }
}


nav a{
    color:#fff;
    text-decoration:none;
    font-size:16px;
    transition:.35s ease;
    position:relative;
}

nav a:hover{
    color:#5BC0FF;
}

nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:2px;
    background:#5BC0FF;
    transition:.35s;
}

nav a:hover::after{
    width:100%;
}

.hero{
    position:relative;
    overflow:hidden;
    padding:110px 20px;
    text-align:center;
    background:
    linear-gradient(135deg,
    rgba(16,38,82,.95),
    rgba(7,14,32,.95));
    border-bottom:1px solid rgba(91,192,255,.12);
}

.hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:
    radial-gradient(circle at top,
    rgba(91,192,255,.15),
    transparent 60%);

    pointer-events:none;

}

.hero h1{

    font-size:52px;

    font-weight:800;

    margin-bottom:18px;

    color:#fff;

    text-shadow:0 0 18px rgba(91,192,255,.35);

}

.hero p{

    max-width:760px;

    margin:0 auto 35px;

    font-size:20px;

    color:#d8e8ff;

}

.btn{
    display:inline-block;
    padding:16px 38px;
    border-radius:14px;
    text-decoration:none;
    font-weight:700;
    color:#fff;
    background:linear-gradient(135deg,#ff9800,#ff6a00);
    box-shadow:
        0 0 18px rgba(255,152,0,.35);
    transition:.35s ease;
}

.section{

    padding:90px 8%;

}

.section h2{

    font-size:42px;

    margin-bottom:28px;

    color:#fff;

}

.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:25px;
}

.card{

    background:rgba(255,255,255,.05);

    backdrop-filter:blur(18px);

    border:1px solid rgba(91,192,255,.12);

    border-radius:22px;

    overflow:hidden;

    transition:.45s ease;

    box-shadow:
    0 12px 40px rgba(0,0,0,.35);

}

.card:hover{

    transform:
    translateY(-12px)
    scale(1.02);

    box-shadow:
    0 0 25px rgba(91,192,255,.18),
    0 15px 45px rgba(0,0,0,.45);

}

.card img{

    width:100%;

    display:block;

    transition:.6s ease;

}

.card:hover img{

    transform:scale(1.05);

}

.btn:hover,
.buy:hover{

    filter:brightness(1.08);

}

.card-content{

    padding:24px;

}

.card-content h3{

    margin-bottom:12px;

    color:#ffffff;

    font-size:24px;

}

.price{
font-size:24px;
color:#FFD700;
margin:15px 0;
}

.buy{

    width:100%;

    padding:16px;

    border:none;

    border-radius:14px;

    cursor:pointer;

    font-size:18px;

    font-weight:700;

    color:white;

    background:
    linear-gradient(135deg,#ff9800,#ff6a00);

    transition:.35s ease;

    box-shadow:
    0 0 20px rgba(255,152,0,.30);

}

.buy:hover{

    transform:
    translateY(-3px);

    box-shadow:
    0 0 25px rgba(255,152,0,.45);

}

.footer{

    margin-top:90px;

    padding:70px 8%;

    text-align:center;

    background:
    linear-gradient(180deg,#081120,#04070f);

    border-top:
    1px solid rgba(91,192,255,.12);

}

.footer h2{

    color:#FFD700;

    margin-bottom:15px;

}

.footer-tagline{

    color:#cfdfff;

    margin-bottom:35px;

}

.footer-links{

    display:flex;

    justify-content:center;

    gap:28px;

    flex-wrap:wrap;

    margin-bottom:30px;

}

.footer-links a{

    color:#ffffff;

    text-decoration:none;

    transition:.3s;

}

.footer-links a:hover{

    color:#5BC0FF;

}

.footer-powered{

    color:#9bcfff;

    margin-bottom:12px;

}

.footer-copy{

    color:#888;

}

@media(max-width:768px){

header{
flex-direction:column;
gap:15px;
}

.hero h1{
font-size:34px;
}

.hero p{
font-size:17px;
}

}

/* ==========================
   WRV PREMIUM ANIMATIONS
========================== */

html{

    scroll-behavior:smooth;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.hero{

    animation:fadeUp 1s ease;

}

.section{

    animation:fadeUp .9s ease both;

}

@keyframes floating{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-8px);

    }

    100%{

        transform:translateY(0);

    }

}

.card{

    animation:floating 6s ease-in-out infinite;

}

.section h2{

    text-shadow:

    0 0 18px rgba(91,192,255,.20);

}

/* ==========================
   WRV HOMEPAGE COMPONENTS
========================== */

.spinner{
    display:none;
    width:18px;
    height:18px;
    border:3px solid rgba(255,255,255,.35);
    border-top:3px solid white;
    border-radius:50%;
    animation:spin .8s linear infinite;
    margin-right:10px;
}

.buy.loading{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    pointer-events:none;
    opacity:.95;
}

.buy.loading .spinner{
    display:inline-block;
}

@keyframes spin{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

.header-top{
    display:grid;
    grid-template-columns:70px 1fr;
    align-items:center;
    margin-top:10px;
    padding:0 15px;
}

.profile-container{
    display:flex;
    justify-content:flex-start;
    align-items:center;
}

.profile-pic{
    width:55px;
    height:55px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #ff9800;
    display:block;
}

.welcome-banner{
    width:100%;
    max-width:900px;
    height:auto;
    display:block;
    margin:25px auto;
    border-radius:18px;
    box-shadow:0 0 20px rgba(255,152,0,.35);
}

.social-menu{
    position:fixed;
    top:80px;
    left:15px;
    width:260px;
    background:rgba(15,22,40,.96);
    border:1px solid rgba(91,192,255,.25);
    border-radius:18px;
    padding:14px;
    display:none;
    flex-direction:column;
    gap:10px;
    z-index:1001;
    backdrop-filter:blur(20px);
    box-shadow:0 20px 50px rgba(0,0,0,.45);
}

.social-menu.show{
    display:flex;
}

.social-menu a{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px;
    border-radius:12px;
    color:white;
    text-decoration:none;
    transition:.3s ease;
}

.social-menu a:hover{
    background:rgba(91,192,255,.12);
}

.social-menu img{
    width:32px;
    height:32px;
    border-radius:8px;
    object-fit:cover;
}

#overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    display:none;
    z-index:1000;
}

#overlay.show{
    display:block;
}

@keyframes slideDown{
    from{
        opacity:0;
        transform:translateY(-15px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.intro-section{
    text-align:center;
    max-width:900px;
    margin:auto;
}

.intro-text{
    font-size:26px;
    color:#FFD700;
    margin:20px 0;
}

.intro-description{
    color:#d5e5ff;
    font-size:18px;
    line-height:1.9;
}

.about-text{
    color:#d5e5ff;
    line-height:1.9;
    font-size:18px;
}

/* ==========================
   PAGE TRANSITIONS
========================== */

@keyframes pageFadeIn {

    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* Page-level animation intentionally disabled.
   Individual components may animate independently,
   but the document itself must remain completely
   free to scroll naturally on touch devices. */
body {
    animation: none !important;
    transform: none !important;
}

.page-exit {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.page-loaded{

    opacity:1;

}

/* ==========================
   WRV COMICS — LIBRARY SEARCH
========================== */

.library-search{
    position:relative;
    z-index:2;
    display:flex;
    align-items:stretch;
    width:min(720px, 100%);
    margin:35px auto 0;
    border:1px solid rgba(91,192,255,.22);
    border-radius:16px;
    overflow:hidden;
    background:rgba(255,255,255,.06);
    backdrop-filter:blur(14px);
    box-shadow:0 10px 35px rgba(0,0,0,.25);
}

.library-search input{
    flex:1;
    min-width:0;
    height:58px;
    padding:0 20px;
    border:0;
    outline:none;
    background:transparent;
    color:#ffffff;
    font-size:18px;
    font-family:inherit;
}

.library-search input::placeholder{
    color:#b9cbe3;
    opacity:1;
}

.library-search input:focus{
    background:rgba(255,255,255,.03);
}

.library-search button{
    flex:0 0 62px;
    width:62px;
    height:58px;
    padding:0;
    border:0;
    border-left:1px solid rgba(91,192,255,.16);
    background:rgba(91,192,255,.08);
    color:#ffffff;
    font-size:22px;
    cursor:pointer;
    transition:.25s ease;
}

.library-search button:hover{
    background:rgba(91,192,255,.16);
}

.library-search button:focus-visible{
    outline:2px solid #5BC0FF;
    outline-offset:-2px;
}

@media (max-width:600px){
    .library-search{
        width:100%;
        margin-top:28px;
        border-radius:14px;
    }

    .library-search input{
        height:54px;
        padding:0 16px;
        font-size:16px;
    }

    .library-search button{
        flex-basis:56px;
        width:56px;
        height:54px;
    }
}



/* ============================================================
   WRV LIBRARY — SEARCH + BROWSE DESIGN
   Long pill search field + circular Google-style search button.
   ============================================================ */

#wrvLibrarySearchSection {
    width: min(1100px, 92%);
    margin: 38px auto 34px;
    box-sizing: border-box;
}

.wrv-library-search-heading h2,
.wrv-library-browse-heading h2 {
    margin: 0;
    color: #ffffff;
    text-align: left;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-weight: 700;
}

.wrv-library-search-box {
    position: relative;
    width: 100%;
    margin: 16px 0 42px;
}

/* Long pill-shaped search field */
.wrv-library-search-box input {
    display: block;
    width: 100%;
    height: 58px;
    box-sizing: border-box;

    padding: 0 72px 0 22px;

    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;

    background: #111111;
    color: #ffffff;

    font-size: 16px;
    outline: none;

    -webkit-appearance: none;
    appearance: none;
}

.wrv-library-search-box input::placeholder {
    color: rgba(255,255,255,.62);
}

.wrv-library-search-box input:focus {
    border-color: rgba(91,192,255,.85);

    box-shadow:
        0 0 0 3px rgba(91,192,255,.10),
        0 0 18px rgba(91,192,255,.16);
}

.wrv-library-search-box input::-webkit-search-cancel-button,
.wrv-library-search-box input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* Circular search button */
.wrv-library-search-icon {
    position: absolute;
    right: 7px;
    top: 50%;

    width: 44px;
    height: 44px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;
    color: #111111;

    pointer-events: none;

    box-shadow:
        0 3px 12px rgba(0,0,0,.30);
}

.wrv-library-search-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;

    color: #111111;
}

.wrv-library-filter {
    display: flex;
    align-items: center;
    margin-top: 18px;
}

.wrv-library-filter button {
    border: 0;
    border-radius: 22px;

    padding: 9px 22px;

    background: rgba(91,192,255,.14);
    color: #5bc0ff;

    font-size: 15px;
    font-weight: 600;

    cursor: default;
}

.wrv-library-filter-active {
    box-shadow:
        0 0 12px rgba(91,192,255,.16);
}

.wrv-search-empty {
    width: min(1100px, 92%);
    margin: 24px auto;
    box-sizing: border-box;
}

@media (max-width: 600px) {

    #wrvLibrarySearchSection {
        width: 92%;
        margin-top: 30px;
    }

    .wrv-library-search-box input {
        height: 54px;
        font-size: 15px;
        padding-left: 17px;
        padding-right: 66px;
    }

    .wrv-library-search-icon {
        right: 5px;
        width: 42px;
        height: 42px;
    }

    .wrv-library-search-icon svg {
        width: 20px;
        height: 20px;
    }

    .wrv-library-search-heading h2,
    .wrv-library-browse-heading h2 {
        font-size: 1.3rem;
    }
}

/* ============================================================
   END RESTORED LIBRARY SEARCH + BROWSE DESIGN
   ============================================================ */


/* ==========================
   LIBRARY PAGE
========================== */

#library{

    max-width:1200px;

    margin:40px auto;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

    padding:20px;

}

#welcome{

    text-align:center;

    color:#FFD700;

    margin-bottom:15px;

}

#empty{

    text-align:center;

    color:#d5e5ff;

    padding:60px 20px;

}

.read{

    width:100%;

    padding:16px;

    border:none;

    border-radius:14px;

    background:linear-gradient(135deg,#ff9800,#ff6a00);

    color:white;

    font-size:18px;

    font-weight:700;

    cursor:pointer;

    transition:.35s ease;

    box-shadow:0 0 20px rgba(255,152,0,.25);

}

.read:hover{

    transform:translateY(-3px);

    box-shadow:0 0 28px rgba(255,152,0,.40);

}

/* ==========================
   GOOGLE SIGN-IN BUTTON
========================== */

.google-btn{

    width:100%;

    min-height:56px;

    padding:12px 18px;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:12px;

    background:#fff;

    color:#222;

    border:1px solid #d9d9d9;

    border-radius:10px;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.25s ease;

    box-shadow:0 2px 8px rgba(0,0,0,.15);

}

.google-btn:hover{

    transform:translateY(-2px);

    box-shadow:0 6px 18px rgba(0,0,0,.20);

}

.card .google-icon{

    width:24px;

    height:24px;

    min-width:24px;

    object-fit:contain;

    display:block;

    border-radius:0;

}

.google-btn span{

    display:inline-block;

    white-space:nowrap;

}

/* =========================================================
   WRV COMICS — NEON CINEMATIC DESIGN SYSTEM
   Visual layer only — existing HTML/functionality preserved.
========================================================= */

:root{
    --wrv-bg:#03050d;
    --wrv-panel:rgba(10,15,30,.72);
    --wrv-blue:#5bc0ff;
    --wrv-cyan:#00e5ff;
    --wrv-violet:#9b5cff;
    --wrv-orange:#ff6a00;
    --wrv-gold:#ffd700;
    --wrv-white:#f7fbff;
}

/* ---------- GLOBAL ATMOSPHERE ---------- */

body{
    background:
        radial-gradient(circle at 15% 8%,rgba(0,229,255,.13),transparent 28%),
        radial-gradient(circle at 85% 18%,rgba(155,92,255,.12),transparent 30%),
        radial-gradient(circle at 50% 80%,rgba(255,106,0,.07),transparent 34%),
        linear-gradient(135deg,#02030a 0%,#07101f 45%,#03050d 100%);
    background-attachment:fixed;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    pointer-events:none;
    z-index:-1;
    background:
        radial-gradient(circle at 30% 30%,rgba(0,229,255,.055),transparent 22%),
        radial-gradient(circle at 70% 55%,rgba(155,92,255,.05),transparent 24%);
    filter:blur(35px);
    animation:wrvAmbient 14s ease-in-out infinite alternate;
}

@keyframes wrvAmbient{
    from{transform:translate3d(-2%,0,0) scale(1);}
    to{transform:translate3d(2%,-1%,0) scale(1.08);}
}

/* ---------- PREMIUM HEADER ---------- */

header{
    background:
        linear-gradient(
            180deg,
            rgba(3,7,18,.94),
            rgba(5,10,23,.78)
        );
    border-bottom:1px solid rgba(0,229,255,.22);
    box-shadow:
        0 8px 35px rgba(0,0,0,.45),
        0 1px 0 rgba(91,192,255,.08);
    backdrop-filter:blur(22px) saturate(150%);
}

.logo{
    color:var(--wrv-gold);
    text-shadow:
        0 0 8px rgba(255,215,0,.65),
        0 0 22px rgba(255,152,0,.28);
}

.profile-pic{
    border-color:var(--wrv-cyan);
    box-shadow:
        0 0 8px rgba(0,229,255,.7),
        0 0 22px rgba(0,229,255,.28);
    transition:transform .35s ease,box-shadow .35s ease;
}

.profile-pic:hover{
    transform:scale(1.06);
    box-shadow:
        0 0 12px rgba(0,229,255,.9),
        0 0 32px rgba(0,229,255,.42);
}

nav a:hover{
    color:var(--wrv-cyan);
    text-shadow:0 0 12px rgba(0,229,255,.6);
}

nav a::after{
    background:linear-gradient(
        90deg,
        var(--wrv-cyan),
        var(--wrv-violet)
    );
    box-shadow:0 0 10px rgba(0,229,255,.65);
}

/* ---------- HERO ---------- */

.hero{
    isolation:isolate;
    background:
        radial-gradient(circle at 50% 0%,rgba(0,229,255,.13),transparent 45%),
        radial-gradient(circle at 80% 70%,rgba(155,92,255,.10),transparent 38%),
        linear-gradient(135deg,rgba(4,10,24,.96),rgba(2,5,14,.98));
    border-bottom:1px solid rgba(0,229,255,.18);
}

.hero::before{
    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(0,229,255,.18),
            transparent 45%
        );
    animation:wrvHeroGlow 7s ease-in-out infinite alternate;
}

.hero::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
        linear-gradient(
            115deg,
            transparent 0%,
            rgba(255,255,255,.035) 45%,
            transparent 55%
        );
    transform:translateX(-100%);
    animation:wrvLightSweep 9s ease-in-out infinite;
}

@keyframes wrvHeroGlow{
    from{opacity:.55;transform:scale(.98);}
    to{opacity:1;transform:scale(1.04);}
}

@keyframes wrvLightSweep{
    0%,65%{transform:translateX(-100%);}
    85%,100%{transform:translateX(100%);}
}

.welcome-banner{
    position:relative;
    z-index:1;
    border:1px solid rgba(91,192,255,.28);
    box-shadow:
        0 0 0 1px rgba(0,229,255,.05),
        0 0 25px rgba(0,229,255,.18),
        0 20px 60px rgba(0,0,0,.55);
    transition:
        transform .5s ease,
        box-shadow .5s ease,
        border-color .5s ease;
}

.welcome-banner:hover{
    transform:translateY(-4px) scale(1.008);
    border-color:rgba(0,229,255,.5);
    box-shadow:
        0 0 0 1px rgba(0,229,255,.08),
        0 0 38px rgba(0,229,255,.28),
        0 25px 70px rgba(0,0,0,.62);
}

/* ---------- SECTIONS ---------- */

.section{
    position:relative;
}

.section h2{
    position:relative;
    display:inline-block;
    color:var(--wrv-white);
    text-shadow:
        0 0 10px rgba(91,192,255,.35),
        0 0 28px rgba(91,192,255,.12);
}

.section h2::after{
    content:"";
    display:block;
    width:55%;
    height:3px;
    margin-top:10px;
    border-radius:99px;
    background:linear-gradient(
        90deg,
        var(--wrv-cyan),
        var(--wrv-violet),
        transparent
    );
    box-shadow:0 0 12px rgba(0,229,255,.45);
}

.intro-section{
    position:relative;
}

.intro-text{
    color:var(--wrv-gold);
    text-shadow:
        0 0 8px rgba(255,215,0,.42),
        0 0 22px rgba(255,152,0,.18);
}

.intro-description,
.about-text{
    color:#dcecff;
}

/* ---------- PREMIUM CARDS ---------- */

.card{
    position:relative;
    background:
        linear-gradient(
            145deg,
            rgba(20,29,52,.76),
            rgba(6,10,22,.72)
        );
    border:1px solid rgba(91,192,255,.18);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.045),
        0 15px 45px rgba(0,0,0,.42),
        0 0 0 rgba(0,229,255,0);
    backdrop-filter:blur(20px) saturate(140%);
}

.card::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    border-radius:inherit;
    background:
        linear-gradient(
            120deg,
            rgba(0,229,255,.12),
            transparent 32%,
            transparent 68%,
            rgba(155,92,255,.10)
        );
    opacity:.5;
}

.card:hover{
    transform:translateY(-12px) scale(1.025);
    border-color:rgba(0,229,255,.45);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.07),
        0 18px 55px rgba(0,0,0,.55),
        0 0 30px rgba(0,229,255,.16);
}

.card-content{
    position:relative;
    z-index:1;
}

.card-content h3{
    text-shadow:0 0 12px rgba(91,192,255,.18);
}

.card img{
    position:relative;
    z-index:1;
}

/* ---------- CTA BUTTONS ---------- */

.btn{
    position:relative;
    overflow:hidden;
    border:1px solid rgba(255,215,0,.45);
    background:
        linear-gradient(
            135deg,
            #ffd700 0%,
            #ffb300 45%,
            #ff6a00 100%
        );
    color:#07080d;
    box-shadow:
        0 0 12px rgba(255,183,0,.38),
        0 0 35px rgba(255,106,0,.18),
        inset 0 1px 0 rgba(255,255,255,.45);
}

.btn::before,
.buy::before,
.read::before{
    content:"";
    position:absolute;
    top:0;
    left:-120%;
    width:70%;
    height:100%;
    background:linear-gradient(
        100deg,
        transparent,
        rgba(255,255,255,.38),
        transparent
    );
    transform:skewX(-20deg);
    transition:left .65s ease;
    pointer-events:none;
}

.btn:hover::before,
.buy:hover::before,
.read:hover::before{
    left:150%;
}

.btn:hover{
    transform:translateY(-4px);
    box-shadow:
        0 0 18px rgba(255,215,0,.55),
        0 0 45px rgba(255,106,0,.26),
        inset 0 1px 0 rgba(255,255,255,.55);
}

/* ---------- PURCHASE / READ BUTTONS ---------- */

.buy,
.read{
    position:relative;
    overflow:hidden;
    background:
        linear-gradient(
            135deg,
            #ff9800,
            #ff6a00,
            #e94b00
        );
    border:1px solid rgba(255,174,76,.35);
    box-shadow:
        0 0 16px rgba(255,106,0,.28),
        inset 0 1px 0 rgba(255,255,255,.12);
}

.buy:hover,
.read:hover{
    box-shadow:
        0 0 22px rgba(255,106,0,.45),
        0 0 42px rgba(255,106,0,.15),
        inset 0 1px 0 rgba(255,255,255,.16);
}

/* ---------- PRICE ---------- */

.price{
    color:var(--wrv-gold);
    text-shadow:
        0 0 8px rgba(255,215,0,.45),
        0 0 20px rgba(255,152,0,.16);
}

/* ---------- SOCIAL MENU ---------- */

.social-menu{
    background:
        linear-gradient(
            145deg,
            rgba(10,18,38,.96),
            rgba(5,8,19,.96)
        );
    border-color:rgba(0,229,255,.35);
    box-shadow:
        0 20px 60px rgba(0,0,0,.62),
        0 0 28px rgba(0,229,255,.10);
}

.social-menu a:hover{
    background:
        linear-gradient(
            90deg,
            rgba(0,229,255,.12),
            rgba(155,92,255,.08)
        );
    box-shadow:inset 0 0 18px rgba(0,229,255,.05);
}

.social-menu img{
    box-shadow:0 0 10px rgba(0,229,255,.18);
}

/* ---------- FOOTER ---------- */

.footer{
    position:relative;
    overflow:hidden;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(0,229,255,.08),
            transparent 45%
        ),
        linear-gradient(
            180deg,
            #071120,
            #02040b
        );
    border-top:1px solid rgba(0,229,255,.2);
}

.footer::before{
    content:"";
    position:absolute;
    top:0;
    left:10%;
    right:10%;
    height:1px;
    background:linear-gradient(
        90deg,
        transparent,
        var(--wrv-cyan),
        var(--wrv-violet),
        transparent
    );
    box-shadow:0 0 15px rgba(0,229,255,.55);
}

.footer h2{
    text-shadow:
        0 0 10px rgba(255,215,0,.45),
        0 0 25px rgba(255,152,0,.16);
}

.footer-links a:hover{
    color:var(--wrv-cyan);
    text-shadow:0 0 10px rgba(0,229,255,.55);
}

/* ---------- ACCESSIBILITY ---------- */

@media (prefers-reduced-motion:reduce){

    *,
    *::before,
    *::after{
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        scroll-behavior:auto !important;
        transition-duration:.01ms !important;
    }

}

/* ---------- MOBILE POLISH ---------- */

@media(max-width:768px){

    body{
        background:
            radial-gradient(circle at 50% 0%,rgba(0,229,255,.10),transparent 32%),
            linear-gradient(160deg,#02030a,#07101f 50%,#03050b);
    }

    .section{
        padding:65px 20px;
    }

    .section h2{
        font-size:32px;
    }

    .welcome-banner{
        margin:18px auto;
        border-radius:14px;
    }

    .card{
        border-radius:18px;
    }

    .card:hover{
        transform:translateY(-6px);
    }

    .btn{
        padding:15px 28px;
    }

}


/* =========================================================
   WRV — SMOOTH PAGE TRANSITIONS + HERO BANNER POLISH
========================================================= */

/* Remove the old competing body animation. */
body{
    animation:none !important;
    opacity:1;
    transform:none;
}

/* Smooth initial page state. */
body.page-loaded{
    opacity:1;
    transform:translateY(0);
    transition:
        opacity .35s ease,
        transform .35s cubic-bezier(.22,1,.36,1);
}

/* Navigation exit. */
body.page-exit {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Prevent the browser from showing a strange transition
   while restoring a page from its back/forward cache. */
@media (prefers-reduced-motion:reduce){

    body,
    body.page-loaded,
    body.page-exit{
        opacity:1 !important;
        transform:none !important;
        transition:none !important;
    }

}

/* =========================================================
   BOLD WRV WELCOME BANNER
========================================================= */

.hero{
    padding:32px 12px 42px !important;
}

.welcome-banner{
    width:min(1200px,96vw) !important;
    max-width:1200px !important;
    margin:20px auto 10px !important;

    border-radius:20px !important;

    border:2px solid rgba(0,229,255,.42) !important;

    box-shadow:
        0 0 0 1px rgba(0,229,255,.08),
        0 0 25px rgba(0,229,255,.22),
        0 0 65px rgba(0,229,255,.12),
        0 24px 70px rgba(0,0,0,.58) !important;

    transform:none !important;
}

.welcome-banner:hover{
    transform:translateY(-4px) scale(1.01) !important;

    border-color:rgba(0,229,255,.65) !important;

    box-shadow:
        0 0 0 1px rgba(0,229,255,.12),
        0 0 35px rgba(0,229,255,.34),
        0 0 75px rgba(155,92,255,.12),
        0 28px 80px rgba(0,0,0,.65) !important;
}

/* Mobile banner remains large and prominent. */
@media(max-width:768px){

    .hero{
        padding:20px 8px 30px !important;
    }

    .welcome-banner{
        width:96vw !important;
        max-width:none !important;
        margin:12px auto 8px !important;
        border-radius:15px !important;
    }

}


/* =========================================================
   WRV HOMEPAGE — FINAL FEATURED COMIC SHOWCASE
========================================================= */

#latest{
    position:relative;
    isolation:isolate;
    overflow:hidden;
}

#latest::before{
    content:"";
    position:absolute;
    width:520px;
    height:520px;
    left:50%;
    top:45%;
    transform:translate(-50%,-50%);
    background:
        radial-gradient(
            circle,
            rgba(0,229,255,.09),
            rgba(155,92,255,.045) 35%,
            transparent 70%
        );
    filter:blur(25px);
    pointer-events:none;
    z-index:-1;
}

#latestComic{
    width:100%;
    max-width:1100px;
    margin:35px auto 0;
    padding:0;
    display:block;
}

/* Featured comic card */

#latestComic .card{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);
    min-height:520px;
    overflow:hidden;

    border-radius:26px;

    background:
        linear-gradient(
            135deg,
            rgba(18,29,55,.88),
            rgba(5,9,20,.94)
        );

    border:1px solid rgba(0,229,255,.28);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 25px 70px rgba(0,0,0,.55),
        0 0 35px rgba(0,229,255,.12);

    backdrop-filter:blur(22px) saturate(145%);

    animation:wrvFeaturedFloat 7s ease-in-out infinite;
}

@keyframes wrvFeaturedFloat{
    0%,100%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-5px);
    }
}

/* Animated glass reflection */

#latestComic .card::after{
    content:"";
    position:absolute;
    inset:0;
    width:45%;
    background:
        linear-gradient(
            110deg,
            transparent,
            rgba(255,255,255,.055),
            transparent
        );
    transform:translateX(-180%) skewX(-18deg);
    pointer-events:none;
    z-index:4;
    animation:wrvFeaturedSweep 8s ease-in-out infinite;
}

@keyframes wrvFeaturedSweep{
    0%,60%{
        transform:translateX(-180%) skewX(-18deg);
    }

    82%,100%{
        transform:translateX(320%) skewX(-18deg);
    }
}

/* Featured cover */

#latestComic .card > img{
    width:100%;
    height:auto !important;
    min-height:0;
    aspect-ratio:2 / 3 !important;
    object-fit:contain !important;
    object-position:center;

    border-radius:0;

    border-right:1px solid rgba(0,229,255,.18);

    filter:
        saturate(1.08)
        contrast(1.04);

    box-shadow:
        12px 0 40px rgba(0,0,0,.30);

    transition:
        transform .7s cubic-bezier(.22,1,.36,1),
        filter .5s ease;
}

#latestComic .card:hover > img{
    transform:scale(1.035);
    filter:
        saturate(1.18)
        contrast(1.06);
}


/* Featured information */

#latestComic .card .card-content{
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:center;

    padding:55px 48px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(155,92,255,.12),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            rgba(12,20,40,.62),
            rgba(4,8,18,.82)
        );
}

/* Featured title */

#latestComic .card .card-content h3{
    font-size:38px;
    line-height:1.15;
    margin-bottom:20px;

    color:#fff;

    text-shadow:
        0 0 12px rgba(91,192,255,.28),
        0 0 28px rgba(0,229,255,.10);
}

/* Featured description */

#latestComic .card .card-content p{
    color:#cbdcf2;
    font-size:17px;
    line-height:1.8;
    margin-bottom:18px;
}

/* Featured price */

#latestComic .card .price{
    display:inline-flex;
    align-items:center;

    width:max-content;

    margin:8px 0 24px;
    padding:10px 18px;

    border-radius:999px;

    color:#ffffff !important;
    font-size:26px;
    font-weight:900;

    background:
        linear-gradient(
            135deg,
            rgba(0,229,255,.16),
            rgba(91,92,255,.24) 50%,
            rgba(155,92,255,.20)
        ) !important;

    border:1px solid rgba(91,192,255,.38) !important;

    box-shadow:
        0 0 16px rgba(0,229,255,.14),
        0 0 30px rgba(91,92,255,.08),
        inset 0 1px 0 rgba(255,255,255,.14);
}

/* Featured purchase button */

#latestComic .card .buy{
    min-height:58px;

    font-size:20px;
    font-weight:900;
    color:#ffffff !important;

    border-radius:16px;

    background:
        linear-gradient(
            135deg,
            rgba(0,229,255,.20),
            rgba(91,92,255,.28) 50%,
            rgba(155,92,255,.24)
        ) !important;

    border:1px solid rgba(91,192,255,.42) !important;

    box-shadow:
        0 0 18px rgba(0,229,255,.16),
        0 0 35px rgba(91,92,255,.10),
        inset 0 1px 0 rgba(255,255,255,.16);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        filter .3s ease;
}

#latestComic .card .buy:hover{
    transform:translateY(-4px);

    box-shadow:
        0 0 25px rgba(255,106,0,.48),
        0 0 50px rgba(255,106,0,.15),
        inset 0 1px 0 rgba(255,255,255,.18);
}

/* Featured card neon edge */

#latestComic .card:hover{
    border-color:rgba(0,229,255,.48);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.07),
        0 28px 80px rgba(0,0,0,.62),
        0 0 45px rgba(0,229,255,.18);
}

/* =========================================================
   PREMIUM SECTION RHYTHM
========================================================= */

.section + .section{
    border-top:1px solid rgba(91,192,255,.055);
}

.section + .section::before{
    content:"";
    position:absolute;
    top:-1px;
    left:50%;
    width:min(260px,50%);
    height:1px;
    transform:translateX(-50%);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(0,229,255,.32),
            rgba(155,92,255,.25),
            transparent
        );

    box-shadow:
        0 0 12px rgba(0,229,255,.18);
}

/* =========================================================
   FINAL MICRO-POLISH
========================================================= */

a,
button{
    -webkit-tap-highlight-color:transparent;
}

button:focus-visible,
a:focus-visible{
    outline:2px solid var(--wrv-cyan);
    outline-offset:4px;

    box-shadow:
        0 0 0 4px rgba(0,229,255,.12),
        0 0 20px rgba(0,229,255,.25);
}

img{
    image-rendering:auto;
}

#latestComic img{
    background:
        linear-gradient(
            135deg,
            rgba(91,192,255,.06),
            rgba(155,92,255,.05)
        );
}

/* =========================================================
   MOBILE FEATURED COMIC
========================================================= */

@media(max-width:768px){

    #latestComic{
        margin-top:25px;
    }

    #latestComic .card{
        display:flex;
        flex-direction:column;
        min-height:0;
        border-radius:20px;
    }

    #latestComic .card > img{
        width:100%;
        height:auto !important;
        min-height:0;
        max-height:none;
        aspect-ratio:2 / 3 !important;
        object-fit:contain !important;
        border-right:none;
        border-bottom:1px solid rgba(0,229,255,.18);
    }

    #latestComic .card .card-content{
        padding:30px 24px 28px;
    }

    #latestComic .card .card-content h3{
        font-size:30px;
    }

    #latestComic .card .card-content p{
        font-size:16px;
    }

    #latestComic .card .buy{
        min-height:54px;
    }

}

/* Respect reduced-motion preferences. */



/* =========================================================
   WRV HOMEPAGE — REMOVE EXCESS BOTTOM SPACE
========================================================= */

html,
body{
    min-height:100%;
}

body{
    margin-bottom:0 !important;
    padding-bottom:0 !important;
}

.footer{
    margin-bottom:0 !important;
    margin-top:45px !important;
    padding-bottom:35px !important;
}

.footer-copy{
    margin-bottom:0 !important;
}


/* =========================================================
   WRV HOMEPAGE — FINAL CLEAN PREMIUM SECTION POLISH
========================================================= */

.section{
    max-width:1200px;
    margin-left:auto;
    margin-right:auto;
}

.intro-section{
    max-width:1000px;
}

/* Clean glass panels for informational sections */

.section:not(#latest):not(.intro-section){
    position:relative;
}

.about-text,
.intro-description{
    max-width:900px;
}

/* Premium informational cards */

.section .grid .card{
    background:
        linear-gradient(
            145deg,
            rgba(48,32,24,.72),
            rgba(17,14,18,.78)
        );

    border:1px solid rgba(210,150,100,.16);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.035),
        0 18px 45px rgba(0,0,0,.32);

    backdrop-filter:blur(18px);
}

/* Keep the cards calm and elegant */

.section .grid .card:hover{
    border-color:rgba(0,229,255,.28);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 22px 55px rgba(0,0,0,.42),
        0 0 24px rgba(0,229,255,.10);
}

/* Better typography rhythm */

.section h2{
    margin-bottom:24px;
}

.section h3{
    margin-top:8px;
    margin-bottom:12px;
}

.section p{
    max-width:900px;
}

/* Creator section */

.section h2 + h3{
    color:#f5f7ff;
    font-size:28px;
}

/* CTA section */

.section[style*="text-align:center"]{
    max-width:1000px;
    margin-left:auto;
    margin-right:auto;
}

.section[style*="text-align:center"] p{
    margin-left:auto;
    margin-right:auto;
    color:#d7e3f2;
}

/* Footer — clean, compact ending */

.footer{
    width:100%;
    margin-top:45px !important;
    padding:55px 8% 30px !important;

    background:
        linear-gradient(
            180deg,
            rgba(22,16,19,.96),
            rgba(5,7,13,1)
        );

    border-top:1px solid rgba(0,229,255,.16);
}

.footer h2{
    font-size:30px;
    margin-bottom:10px;
}

.footer-tagline{
    margin-bottom:25px;
}

.footer-links{
    gap:22px;
    margin-bottom:22px;
}

.footer-powered{
    margin-bottom:8px;
}

.footer-copy{
    margin:-10px 0 0 !important;
}

/* Remove unnecessary bottom breathing room */

html,
body{
    margin-bottom:0 !important;
    padding-bottom:0 !important;
}

body{
    overflow-x:hidden;
}

/* Mobile */

@media(max-width:768px){

    .section{
        padding:55px 20px;
    }

    .section h2{
        font-size:30px;
    }

    .section .grid{
        gap:18px;
    }

    .section .grid .card{
        border-radius:18px;
    }

    .footer{
        margin-top:30px !important;
        padding:45px 20px 25px !important;
    }

    .footer-links{
        gap:15px;
    }

}

/* =========================================================
   WRV — STRICT VIEWPORT BOUNDARY
========================================================= */

html{
    width:100%;
    max-width:100%;
    overflow-x:clip;
}

body{
    width:100%;
    max-width:100%;
    overflow-x:clip;
}

header,
.hero,
.section,
.footer{
    width:100%;
    max-width:100%;
}

/* =========================================================
   WRV COMICS — COMIC BRAND LETTERING
========================================================= */

.logo{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    white-space:nowrap;
    line-height:1;
}

.logo-wrv{
    font-family:Impact, Haettenschweiler, "Arial Black", sans-serif;
    font-size:1.05em;
    font-weight:900;
    font-style:italic;
    letter-spacing:-1px;
    color:#ffd83d;
    -webkit-text-stroke:1px #111827;
    text-shadow:
        2px 2px 0 #111827,
        0 0 7px rgba(255,215,61,.45);
    transform:skewX(-5deg);
}

.logo-comics{
    font-family:Impact, Haettenschweiler, "Arial Black", sans-serif;
    font-size:.72em;
    font-weight:900;
    font-style:italic;
    letter-spacing:.5px;
    color:#49c8ff;
    -webkit-text-stroke:1px #111827;
    text-shadow:
        2px 2px 0 #111827,
        0 0 7px rgba(73,200,255,.35);
    transform:skewX(-5deg);
}

.footer .logo-wrv,
.footer .logo-comics{
    text-shadow:
        2px 2px 0 #111827,
        0 0 9px rgba(73,200,255,.30);
}

@media(max-width:768px){

    .logo{
        gap:5px;
    }

    .logo-wrv{
        font-size:1em;
    }

    .logo-comics{
        font-size:.68em;
    }

}

/* Footer comic brand alignment */
.footer-brand{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:7px;
    line-height:1;
}

.footer-brand .logo-wrv{
    font-size:1.05em;
}

.footer-brand .logo-comics{
    font-size:.72em;
}

@media(max-width:768px){
    .footer-brand{
        gap:5px;
    }

    .footer-brand .logo-wrv{
        font-size:1em;
    }

    .footer-brand .logo-comics{
        font-size:.68em;
    }
}

/* =========================================================
   WRV COMICS — CUSTOM HEADER LOGO
========================================================= */

.header-logo{
    display:block;
    width:150px;
    height:55px;
    object-fit:contain;
    object-position:center;
    border-radius:0;
    box-shadow:0 0 14px rgba(0,229,255,.18);
}

.logo{
    display:flex;
    align-items:center;
    justify-content:center;
}

@media(max-width:768px){

    .header-logo{
        width:125px;
        height:50px;
    }

}

/* =========================================================
   WRV COMICS — CUSTOM HEADER LOGO
========================================================= */

.header-logo{
    display:block;
    width:150px;
    height:55px;
    object-fit:contain;
    object-position:center;
    border-radius:0;
    box-shadow:0 0 14px rgba(0,229,255,.18);
}

.logo{
    display:flex;
    align-items:center;
    justify-content:center;
}

@media(max-width:768px){

    .header-logo{
        width:125px;
        height:50px;
    }

}

/* =========================================================
   WRV COMICS — FOOTER BRAND LOGO
========================================================= */

.footer-logo{
    display:block;
    width:270px;
    height:auto;
    margin:0 auto;
    object-fit:contain;
    object-position:center;
    border-radius:0;
    box-shadow:0 0 16px rgba(0,229,255,.16);
}

.footer-brand{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:15px;
}

@media(max-width:768px){
    .footer-logo{
        width:270px;
        height:auto;
    }
}

/* WRV COMICS — HEADER LOGO SIZE REFINEMENT */

.header-logo{
    width:190px;
    height:68px;
    object-fit:contain;
    object-position:center;
}

@media(max-width:768px){
    .header-logo{
        width:165px;
        height:62px;
    }
}

/* WRV COMICS — FINAL HEADER LOGO SCALE */

.header-logo{
    width:215px;
    height:75px;
    object-fit:contain;
    object-position:center;
}

@media(max-width:768px){
    .header-logo{
        width:185px;
        height:68px;
    }
}

/* =========================================================
   WRV COMICS — ACTIVE NAVIGATION
========================================================= */

nav a.active{
    color:#5BC0FF;
    text-shadow:
        0 0 8px rgba(91,192,255,.55),
        0 0 18px rgba(0,229,255,.22);
}

nav a.active::after{
    width:100%;
    background:#5BC0FF;
    box-shadow:
        0 0 7px rgba(91,192,255,.65),
        0 0 14px rgba(0,229,255,.25);
}

/* =========================================================
   WRV COMICS — SHARED SOCIAL MENU ANIMATION
========================================================= */

.social-menu{
    transform:translateX(-120%);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:
        transform .35s cubic-bezier(.22,1,.36,1),
        opacity .25s ease,
        visibility 0s linear .35s;
}

.social-menu.show{
    transform:translateX(0);
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transition:
        transform .35s cubic-bezier(.22,1,.36,1),
        opacity .25s ease,
        visibility 0s linear 0s;
}

#overlay{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:
        opacity .30s ease,
        visibility 0s linear .30s;
}

#overlay.show{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transition:
        opacity .30s ease,
        visibility 0s linear 0s;
}

/* =========================================================
   WRV COMICS — SOCIAL MENU DISPLAY FIX
========================================================= */

.social-menu{
    display:flex;
}

.social-menu.show{
    display:flex;
}

#overlay{
    display:block;
}

#overlay.show{
    display:block;
}

/* =========================================================
   WRV COMICS — MOBILE HOMEPAGE BANNER SIZE REFINEMENT
========================================================= */

@media (max-width:768px){

    .welcome-banner{
        width:100%;
        max-width:100%;
        height:auto;
        min-height:340px;
        object-fit:cover;
        object-position:center;
    }

}

/* =========================================================
   WRV COMICS — FINAL MOBILE BANNER FIX
   Larger without cropping
========================================================= */

@media (max-width:768px){

    .welcome-banner{
        width:100%;
        max-width:100%;
        height:auto;
        min-height:0;
        object-fit:contain;
        object-position:center;
        display:block;
    }

}

/* =========================================================
   WRV COMICS — PREMIUM LIBRARY EXPERIENCE
========================================================= */

body:has(#library){

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(0,229,255,.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 18%,
            rgba(155,92,255,.11),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #02030a 0%,
            #07101f 48%,
            #03050d 100%
        );
}

/* Library hero */

body:has(#library) .hero{

    position:relative;
    padding:70px 20px 55px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(0,229,255,.10),
            transparent 55%
        );

    border-bottom:1px solid rgba(0,229,255,.12);

    overflow:hidden;
}

body:has(#library) .hero::after{

    content:"";

    position:absolute;
    left:50%;
    bottom:0;

    width:min(520px,70%);
    height:1px;

    transform:translateX(-50%);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(0,229,255,.55),
            rgba(155,92,255,.45),
            transparent
        );

    box-shadow:
        0 0 18px rgba(0,229,255,.25);
}

body:has(#library) .hero h1{

    position:relative;
    z-index:1;

    margin:0 0 14px;

    font-size:clamp(32px,5vw,52px);
    font-weight:900;

    letter-spacing:-.8px;

    color:#f7fbff;

    text-shadow:
        0 0 14px rgba(91,192,255,.25),
        0 0 35px rgba(0,229,255,.10);
}

body:has(#library) .hero p{

    position:relative;
    z-index:1;

    max-width:650px;

    margin:0 auto;

    color:#bcd0e8;

    font-size:17px;
    line-height:1.75;
}

/* Welcome panel */

body:has(#library) .section{

    max-width:1100px;
    margin:0 auto;

    padding:42px 24px 10px;
}

body:has(#library) #welcome{

    margin:0;

    font-size:clamp(28px,4vw,42px);
    font-weight:900;

    color:#ffffff;

    text-shadow:
        0 0 12px rgba(91,192,255,.30),
        0 0 30px rgba(0,229,255,.10);
}

body:has(#library) .section > p{

    margin:14px auto 0 !important;

    color:#9fb6d2 !important;

    font-size:15px;

    line-height:1.8;
}

/* Library grid */

body:has(#library) #library{

    max-width:1100px;

    margin:34px auto 70px;

    padding:0 24px;

    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(270px,1fr)
        );

    gap:28px;
}

/* Library cards */

body:has(#library) #library .card{

    position:relative;

    overflow:hidden;

    display:flex;
    flex-direction:column;

    min-width:0;

    border-radius:22px;

    background:
        linear-gradient(
            145deg,
            rgba(18,29,52,.88),
            rgba(5,9,20,.94)
        );

    border:1px solid rgba(91,192,255,.18);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.045),
        0 18px 50px rgba(0,0,0,.48);

    backdrop-filter:blur(18px) saturate(140%);

    animation:none;

    transition:
        transform .4s cubic-bezier(.22,1,.36,1),
        border-color .4s ease,
        box-shadow .4s ease;
}

body:has(#library) #library .card::after{

    content:"";

    position:absolute;
    inset:0;

    pointer-events:none;

    background:
        linear-gradient(
            120deg,
            rgba(0,229,255,.08),
            transparent 35%,
            transparent 65%,
            rgba(155,92,255,.07)
        );

    opacity:.55;
}

/* Cover */

body:has(#library) #library .card > img{

    position:relative;
    z-index:1;

    width:100%;
    aspect-ratio:2 / 3 !important;
    height:auto !important;

    object-fit:contain !important;

    border-bottom:1px solid rgba(0,229,255,.15);

    filter:
        saturate(1.08)
        contrast(1.04);

    transition:
        transform .6s cubic-bezier(.22,1,.36,1),
        filter .4s ease;
}

body:has(#library) #library .card:hover > img{

    transform:scale(1.045);

    filter:
        saturate(1.16)
        contrast(1.06);
}

/* Card content */

body:has(#library) #library .card-content{

    position:relative;
    z-index:2;

    display:flex;
    flex-direction:column;

    flex:1;

    padding:24px 24px 22px;
}

body:has(#library) #library .card-content h2{

    margin:0 0 10px;

    color:#ffffff;

    font-size:24px;
    line-height:1.2;

    text-shadow:
        0 0 10px rgba(91,192,255,.18);
}

body:has(#library) #library .card-content p{

    margin:0 0 22px;

    color:#b8cbe1;

    font-size:15px;
    line-height:1.7;

    flex:1;
}

/* Library buttons */

body:has(#library) #library .buy,
body:has(#library) #library .read{

    width:100%;

    min-height:54px;

    margin-top:auto;

    border-radius:14px;

    font-size:16px;
    font-weight:800;

    color:#ffffff !important;

    background:
        linear-gradient(
            135deg,
            rgba(0,229,255,.20),
            rgba(91,92,255,.28) 50%,
            rgba(155,92,255,.24)
        ) !important;

    border:1px solid rgba(91,192,255,.42) !important;

    box-shadow:
        0 0 18px rgba(0,229,255,.16),
        0 0 35px rgba(91,92,255,.10),
        inset 0 1px 0 rgba(255,255,255,.16);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        filter .3s ease;
}

/* WRV LIBRARY — PREMIUM UNLOCK PRICE */
body:has(#library) #library .buy{
    color:#ffffff !important;
    font-size:22px !important;
    font-weight:900 !important;
    letter-spacing:.2px;

    background:
        linear-gradient(
            135deg,
            rgba(0,229,255,.20),
            rgba(91,92,255,.28) 50%,
            rgba(155,92,255,.24)
        ) !important;

    border:1px solid rgba(91,192,255,.42) !important;

    box-shadow:
        0 0 18px rgba(0,229,255,.16),
        0 0 35px rgba(91,92,255,.10),
        inset 0 1px 0 rgba(255,255,255,.16) !important;
}

body:has(#library) #library .buy:hover,
body:has(#library) #library .read:hover{
    color:#ffffff !important;

    box-shadow:
        0 0 24px rgba(0,229,255,.30),
        0 0 48px rgba(155,92,255,.18),
        inset 0 1px 0 rgba(255,255,255,.22) !important;

    filter:brightness(1.12);
}


body:has(#library) #library .buy:hover,
body:has(#library) #library .read:hover{

    transform:translateY(-3px);
}

/* Card hover */

body:has(#library) #library .card:hover{

    transform:translateY(-8px);

    border-color:rgba(0,229,255,.42);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.07),
        0 25px 65px rgba(0,0,0,.58),
        0 0 28px rgba(0,229,255,.13);
}

/* Empty state */

body:has(#library) #empty{

    max-width:700px;

    margin:30px auto 80px;

    padding:55px 25px;

    border:1px solid rgba(91,192,255,.15);
    border-radius:22px;

    background:rgba(10,16,32,.55);

    box-shadow:
        0 20px 50px rgba(0,0,0,.35);
}

/* Back button */

body:has(#library) > div[style*="text-align:center"]{

    margin:20px 0 70px !important;
}

/* Mobile Library */

@media(max-width:768px){

    body:has(#library) .hero{

        padding:48px 18px 38px;
    }

    body:has(#library) .hero h1{

        font-size:34px;
    }

    body:has(#library) .hero p{

        font-size:15px;
    }

    body:has(#library) .section{

        padding:34px 18px 8px;
    }

    body:has(#library) #library{

        grid-template-columns:repeat(2,minmax(0,1fr));

        padding:0 16px;

        gap:18px;

        margin-top:28px;
    }

    body:has(#library) #library .card > img{

        aspect-ratio:2 / 3 !important;
        height:auto !important;
        object-fit:contain !important;
    }

    body:has(#library) #library .card-content{

        padding:22px 20px 20px;
    }

    body:has(#library) #library .card-content h2{

        font-size:22px;
    }

}

/* WRV LIBRARY — COMPACT DESKTOP-MODE PHONE GRID */
@media(min-width:769px) and (max-width:1100px){
    body:has(#library) #library{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:20px;
        max-width:1100px;
    }

    body:has(#library) #library .card-content{
        padding:18px 16px 16px;
    }

    body:has(#library) #library .card-content h2{
        font-size:18px;
    }

    body:has(#library) #library .buy{
        min-height:48px;
        font-size:17px !important;
    }
}

/* Larger phones: three-column Library */
@media(min-width:481px) and (max-width:768px){
    body:has(#library) #library{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:20px;
    }
}

/* =========================================================
   LIBRARY — ATOMIC PAGE RENDER
   Keep the page hidden until all library data is ready.
========================================================= */

body.library-loading{
    visibility:hidden;
}

body.library-ready{
    visibility:visible;
}

/* =========================================================
   WRV LIBRARY — PAGE ENTRY ANIMATION
   Match the homepage/account entrance motion.
========================================================= */

@keyframes wrvLibrarySlideIn{
    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

body.library-ready header,
body.library-ready .hero,
body.library-ready #welcome,
body.library-ready #library,
body.library-ready #empty,
body.library-ready > div[style*="text-align:center"]{
    animation:wrvLibrarySlideIn .9s ease both;
}


/* =========================================================
   LIBRARY — NO BLANK SCREEN ON ENTRY
   Keep the page visible while data initializes.
========================================================= */

body.library-loading{
    visibility:visible;
}


/* Library enters immediately — data loads without blocking the animation. */

body.library-loading header,
body.library-loading .hero,
body.library-loading #welcome,
body.library-loading #library,
body.library-loading #empty,
body.library-loading > div[style*="text-align:center"]{
    animation:wrvLibrarySlideIn .9s ease both;
}

/* =========================================================
   WRV COMICS — PREMIUM ACCOUNT EXPERIENCE
========================================================= */

body:has(#accountContent) .section{
    min-height:520px;
    display:flex;
    align-items:center;
    justify-content:center;
}

body:has(#accountContent) .section > .card{
    width:100%;
    max-width:760px !important;
    margin:auto !important;
    border-radius:28px;
    border:1px solid rgba(91,192,255,.22);
    background:
        linear-gradient(
            145deg,
            rgba(20,29,52,.86),
            rgba(5,9,20,.82)
        );
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 25px 70px rgba(0,0,0,.48),
        0 0 40px rgba(0,229,255,.07);
}

body:has(#accountContent) .card-content{
    padding:46px;
}

.account-heading{
    margin-bottom:30px;
}

.account-kicker{
    display:block;
    margin-bottom:12px;
    color:var(--wrv-cyan);
    font-size:12px;
    font-weight:800;
    letter-spacing:3px;
    text-transform:uppercase;
}

.account-heading h2{
    margin:0;
    color:#fff;
    font-size:42px;
    line-height:1.12;
    letter-spacing:-1px;
}

.account-accent{
    width:180px;
    height:3px;
    margin-top:20px;
    border-radius:999px;
    background:
        linear-gradient(
            90deg,
            var(--wrv-cyan),
            var(--wrv-violet),
            transparent
        );
    box-shadow:
        0 0 14px rgba(0,229,255,.45);
}

.account-status{
    color:#e8f4ff;
    font-size:19px;
    margin:0 0 18px;
}

.account-description{
    color:#b9cbe0;
    font-size:16px;
    line-height:1.8;
    margin:0 0 34px;
}

.account-actions{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.account-action{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    min-height:62px;
    padding:0 22px 0 25px;
    box-sizing:border-box;
    border:1px solid rgba(91,192,255,.20);
    border-radius:16px;
    background:
        linear-gradient(
            135deg,
            rgba(16,28,50,.92),
            rgba(6,12,26,.92)
        );
    color:#fff;
    text-decoration:none;
    font-size:15px;
    font-weight:800;
    letter-spacing:1.1px;
    cursor:pointer;
    overflow:hidden;
    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease,
        background .3s ease;
}

.account-action::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            100deg,
            transparent 20%,
            rgba(255,255,255,.10),
            transparent 80%
        );
    transform:translateX(-110%);
    transition:transform .6s ease;
}

.account-action:hover::before{
    transform:translateX(110%);
}

.account-action:hover{
    transform:translateY(-3px);
    border-color:rgba(0,229,255,.48);
    box-shadow:
        0 12px 30px rgba(0,0,0,.35),
        0 0 24px rgba(0,229,255,.12);
}

.account-action-primary{
    background:
        linear-gradient(
            135deg,
            #ffd700 0%,
            #ffb300 45%,
            #ff6a00 100%
        );
    color:#07080d;
    border-color:rgba(255,215,0,.55);
    box-shadow:
        0 0 22px rgba(255,174,0,.20);
}

.account-action-primary:hover{
    border-color:rgba(255,215,0,.85);
    box-shadow:
        0 12px 35px rgba(0,0,0,.38),
        0 0 30px rgba(255,174,0,.28);
}

.account-arrow{
    position:relative;
    z-index:1;
    font-size:24px;
    line-height:1;
    transition:transform .3s ease;
}

.account-action:hover .account-arrow{
    transform:translateX(5px);
}

.account-signout{
    margin-top:10px;
    background:
        linear-gradient(
            135deg,
            rgba(255,106,0,.16),
            rgba(12,18,34,.95)
        );
    border-color:rgba(255,106,0,.30);
}

.account-signout:hover{
    border-color:rgba(255,106,0,.58);
    box-shadow:
        0 12px 30px rgba(0,0,0,.35),
        0 0 25px rgba(255,106,0,.12);
}

.account-signout:disabled{
    opacity:.65;
    cursor:wait;
    transform:none;
}

.account-delete{
    margin-top:80px;
    background:
        linear-gradient(
            135deg,
            rgba(180,35,35,.18),
            rgba(12,18,34,.95)
        );
    border-color:rgba(220,70,70,.34);
}

.account-delete:hover{
    border-color:rgba(255,90,90,.70);
    box-shadow:
        0 12px 30px rgba(0,0,0,.35),
        0 0 25px rgba(255,70,70,.14);
}

.account-delete:disabled{
    opacity:.65;
    cursor:wait;
    transform:none;
}

.account-google-btn{
    margin-top:10px;
}

.account-footer{
    margin-top:45px;
    padding-top:55px;
    padding-bottom:55px;
}

.account-footer-brand{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    margin-bottom:30px;
}

.account-footer-brand img{
    width:270px;
    height:auto;
    object-fit:contain;
    display:block;
    margin-bottom:16px;
}

.account-footer-brand p{
    margin:0;
    color:#9db4ce;
    font-size:14px;
    letter-spacing:.6px;
}

.account-footer .footer-copy{
    margin-top:15px;
    color:#78899d;
    font-size:13px;
}


/* ---------- ACCOUNT MOBILE ---------- */

@media(max-width:768px){

    body:has(#accountContent) .section{
        min-height:0;
        padding-top:45px;
        padding-bottom:45px;
    }

    body:has(#accountContent) .card-content{
        padding:30px 22px;
    }

    .account-heading h2{
        font-size:32px;
    }

    .account-status{
        font-size:17px;
    }

    .account-action{
        min-height:58px;
        padding-left:19px;
        padding-right:18px;
        font-size:13px;
    }

    .account-footer-brand img{
        width:min(240px,76vw);
        height:auto;
    }

}

/* =========================================================
   ACCOUNT — AUTH STATE HANDOFF
   Prevent the signed-out UI from flashing while Firebase
   restores an existing session.
========================================================= */

.account-content-loading{
    position:relative;
    min-height:360px;
}

/* =========================================================
   WRV LIBRARY — FINAL ENTRY POSITION
   The library enters once and remains stationary.
========================================================= */

body.library-ready header,
body.library-ready .hero,
body.library-ready #welcome,
body.library-ready #library,
body.library-ready #empty,
body.library-ready > div[style*="text-align:center"]{
    animation:wrvLibrarySlideIn .9s ease both;
}

/* Prevent the library section from receiving a second
   transform/animation from competing page-entry rules. */
body.library-ready .section{
    animation:none;
    transform:none;
}

/* Once the entrance animation has completed, keep every
   library element locked at its natural document position. */
body.library-ready header,
body.library-ready .hero,
body.library-ready #welcome,
body.library-ready #library,
body.library-ready #empty,
body.library-ready > div[style*="text-align:center"]{
    animation-fill-mode:both;
}

/* =========================================================
   WRV COMICS — ANIMATION LINK
========================================================= */

.animation-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:18px 0;
    padding:13px 16px;
    border:1px solid rgba(91,192,255,.28);
    border-radius:12px;
    background:
        linear-gradient(
            135deg,
            rgba(0,229,255,.08),
            rgba(155,92,255,.08)
        );
    color:#dff7ff;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
    letter-spacing:1.2px;
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.animation-link span{
    font-size:20px;
    line-height:1;
    color:#5BC0FF;
    transition:transform .25s ease;
}

.animation-link:hover{
    transform:translateY(-2px);
    border-color:rgba(91,192,255,.65);
    background:
        linear-gradient(
            135deg,
            rgba(0,229,255,.14),
            rgba(155,92,255,.12)
        );
    box-shadow:
        0 8px 25px rgba(0,0,0,.28),
        0 0 18px rgba(0,229,255,.10);
}

.animation-link:hover span{
    transform:translateX(4px);
}


/* =========================================================
   WRV COMICS — FINAL PREMIUM HEADER LOGO
   One authoritative rule for Home / Library / Account.
========================================================= */

header .header-top{
    position:relative;
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:clamp(12px, 3vw, 28px);
}

header .profile-container{
    flex:0 0 auto;
    position:relative;
    z-index:5;
}

header .logo{
    flex:1 1 auto;
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    z-index:4;
}

header .header-logo{
    display:block;

    /* Large, but still safely contained between the controls. */
    width:clamp(250px, 42vw, 560px);
    max-width:100%;
    height:auto;

    object-fit:contain;

    /* Premium controlled glow — not an excessive neon effect. */
    filter:
        drop-shadow(0 0 5px rgba(0, 220, 255, .42))
        drop-shadow(0 0 12px rgba(0, 180, 255, .24));

    transition:
        filter .35s ease,
        transform .35s ease;
}

header .header-logo:hover{
    filter:
        drop-shadow(0 0 6px rgba(0, 220, 255, .55))
        drop-shadow(0 0 16px rgba(0, 180, 255, .30));
}

/* Keep the logo visually dominant without colliding with
   the profile/menu controls on phones. */
@media (max-width:700px){

    header .header-top{
        gap:10px;
    }

    header .header-logo{
        width:clamp(225px, 68vw, 400px);
    }

}

/* Very narrow phones. */
@media (max-width:390px){

    header .header-top{
        gap:7px;
    }

    header .header-logo{
        width:clamp(205px, 65vw, 300px);
    }

}

/* Prevent the logo from becoming oversized on desktop. */
@media (min-width:1000px){

    header .header-logo{
        width:min(560px, 42vw);
    }

}

/* =========================
   WRV COMICS DELETE MODAL
========================= */

.wrv-delete-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.wrv-delete-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.wrv-delete-dialog {
    width: min(100%, 570px);
    max-height: calc(100dvh - 28px);
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            rgba(24, 38, 58, 0.98),
            rgba(8, 17, 32, 0.99)
        );
    border: 1px solid rgba(126, 211, 255, 0.38);
    border-radius: 24px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.65),
        0 0 35px rgba(0, 180, 255, 0.12);
    padding: 18px 22px 20px;
    transform: translateY(90px);
    transition:
        transform 0.38s cubic-bezier(.22, 1, .36, 1);
}

.wrv-delete-modal.active .wrv-delete-dialog {
    transform: translateY(0);
}

.wrv-delete-handle {
    width: 72px;
    height: 6px;
    margin: 0 auto 24px;
    border-radius: 20px;
    background: rgba(220, 230, 240, 0.65);
}

.wrv-delete-logo {
    display: block;
    width: min(78%, 360px);
    max-height: 90px;
    object-fit: contain;
    margin: 0 auto 18px;
}

.wrv-delete-title {
    margin: 0 auto 20px;
    max-width: 470px;
    text-align: center;
    color: #fff;
    font-size: clamp(20px, 5vw, 28px);
    line-height: 1.25;
    font-weight: 700;
}

.wrv-delete-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 4px 15px;
    color: rgba(245, 248, 252, 0.9);
    font-size: 16px;
    line-height: 1.45;
}

.wrv-delete-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 55, 80, 0.65);
    border-radius: 50%;
    color: #ff6475;
    font-size: 21px;
    background: rgba(255, 30, 55, 0.07);
}

.wrv-delete-divider {
    height: 1px;
    margin: 20px 0;
    background: rgba(180, 210, 235, 0.2);
}

.wrv-delete-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.wrv-delete-cancel,
.wrv-delete-confirm {
    min-height: 58px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        opacity 0.18s ease,
        box-shadow 0.18s ease;
}

.wrv-delete-cancel {
    color: #fff;
    background: rgba(10, 22, 40, 0.7);
    border: 1px solid rgba(130, 190, 230, 0.35);
}

.wrv-delete-confirm {
    color: #fff;
    background: linear-gradient(135deg, #ff3030, #e3131f);
    border: 1px solid rgba(255, 120, 120, 0.45);
    box-shadow: 0 8px 25px rgba(230, 20, 30, 0.22);
}

.wrv-delete-cancel:hover,
.wrv-delete-confirm:hover {
    transform: translateY(-2px);
}

.wrv-delete-confirm:disabled,
.wrv-delete-cancel:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* =========================
   WRV ACCOUNT DELETION SPINNER
========================= */

.wrv-delete-spinner {
    width: 24px;
    height: 24px;
    margin: 0 auto 14px;
    border: 3px solid rgba(255, 255, 255, 0.22);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: wrvDeleteSpin 0.8s linear infinite;
}

@keyframes wrvDeleteSpin {
    to {
        transform: rotate(360deg);
    }
}

.wrv-delete-processing {
    text-align: center;
    padding: 8px 0 12px;
}

.wrv-delete-processing-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.wrv-delete-processing-description {
    margin: 0 auto;
    max-width: 440px;
    color: #a9bfd5;
    font-size: 14px;
    line-height: 1.6;
}

.wrv-account-deleted-dialog {
    text-align: center;
}

.wrv-account-deleted-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(80, 220, 150, 0.55);
    border-radius: 50%;
    background: rgba(40, 190, 120, 0.10);
    color: #63e6a3;
    font-size: 30px;
    font-weight: 800;
    box-shadow:
        0 0 25px rgba(60, 220, 150, 0.12);
}

.wrv-account-deleted-description {
    max-width: 470px;
    margin: 0 auto;
    color: #a9bfd5;
    font-size: 14px;
    line-height: 1.65;
}

.wrv-account-deleted-actions {
    grid-template-columns: 1fr;
}

.wrv-account-deleted-actions .wrv-delete-confirm {
    width: 100%;
}

@media (max-width: 520px) {

    .wrv-account-deleted-message {
        font-size: 14px;
    }

    .wrv-account-deleted-description {
        font-size: 13px;
    }

}


@media (max-width: 520px) {

    .wrv-delete-modal {
        padding: 10px;
    }

    .wrv-delete-dialog {
        width: min(100%, 570px);
        max-height: calc(100dvh - 20px);
        padding: 13px 15px 15px;
        border-radius: 22px;
    }

    .wrv-delete-handle {
        width: 58px;
        height: 5px;
        margin-bottom: 15px;
    }

    .wrv-delete-logo {
        width: 72%;
        max-height: 62px;
        margin-bottom: 12px;
    }

    .wrv-delete-title {
        margin-bottom: 13px;
        font-size: 20px;
        line-height: 1.2;
    }

    .wrv-delete-warning {
        margin-bottom: 10px;
        font-size: 13px;
        line-height: 1.35;
        gap: 9px;
    }

    .wrv-delete-divider {
        margin: 13px 0;
    }

    .wrv-delete-actions {
        gap: 10px;
    }

    .wrv-delete-cancel,
    .wrv-delete-confirm {
        min-height: 52px;
        font-size: 14px;
    }

    .wrv-delete-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .wrv-delete-actions {
        gap: 10px;
    }

    .wrv-delete-cancel,
    .wrv-delete-confirm {
        min-height: 54px;
        font-size: 14px;
    }
}

/* =========================
   WRV SIGN-OUT TRANSITION
========================= */

.wrv-signout-transition {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at center,
            rgba(24, 38, 58, 0.98),
            rgba(4, 10, 20, 1) 72%
        );
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}

.wrv-signout-transition.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wrv-signout-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    transform: translateY(12px);
    opacity: 0;
    transition:
        transform 0.45s ease,
        opacity 0.45s ease;
}

.wrv-signout-transition.active
.wrv-signout-content {
    transform: translateY(0);
    opacity: 1;
}

.wrv-signout-spinner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-top-color: rgba(255, 255, 255, 0.95);
    animation:
        wrvSignoutSpin 0.8s linear infinite;
}

.wrv-signout-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.92);
}

@keyframes wrvSignoutSpin {

    to {
        transform: rotate(360deg);
    }

}

@media (prefers-reduced-motion: reduce) {

    .wrv-signout-transition,
    .wrv-signout-content {
        transition: none;
    }

    .wrv-signout-spinner {
        animation: none;
    }

}

/* =========================================================
   WRV COMICS — REMOVE FINAL BOTTOM SPACE
========================================================= */

.footer {
    padding-bottom:0 !important;
}

.footer-copy {
    margin-bottom:0 !important;
    padding-bottom:0 !important;
}

.account-footer {
    padding-bottom:0 !important;
}


/* WRV SMOOTHNESS PERFORMANCE PATCH — 2026-08 */

/*
 * Keep normal document scrolling smooth without forcing
 * JavaScript-based scrolling.
 */
html {
    scroll-behavior: smooth;
}

/*
 * Avoid horizontal overflow that can make mobile scrolling
 * feel unstable.
 */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

/*
 * Page transition state.
 * Kept deliberately subtle so navigation never feels delayed.
 */
body.page-loaded {
    opacity: 1;
}

/*
 * Accessibility and performance:
 * Users who prefer reduced motion should not receive
 * decorative movement or long transitions.
 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/*
 * Mobile devices have less rendering headroom.
 * Keep decorative transforms from creating unnecessary
 * compositing work during ordinary scrolling.
 */
@media (max-width: 768px) {
    body {
        -webkit-overflow-scrolling: touch;
    }
}


/* WRV NATURAL TOUCH SCROLL — ROOT FIX */

/*
 * The document itself must remain a normal scrolling document.
 * Visual effects are allowed on individual components, but
 * the root page must never be transformed or locked.
 */
html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    transform: none !important;
}

/*
 * Never let the navigation transition system turn the entire
 * page into a transformed scrolling surface.
 */
body.page-loaded,
body.page-exit {
    transform: none !important;
}

/*
 * Keep touch gestures available for normal page scrolling.
 * Child components can still use their own interaction rules.
 */
body {
    touch-action: auto;
}


/* =========================================================
   WRV PREMIUM LIBRARY PAGINATION
   ========================================================= */

.library-pagination {
    width: min(100% - 40px, 760px);
    margin: 48px auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.library-page-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(91,192,255,.28);
    border-radius: 16px;
    min-width: 150px;
    min-height: 54px;
    padding: 14px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform .25s cubic-bezier(.22,1,.36,1),
        box-shadow .25s ease,
        border-color .25s ease,
        opacity .25s ease,
        background .25s ease;
}

.library-page-btn-primary {
    color: #06101d;
    border-color: rgba(255,215,0,.55);
    background:
        linear-gradient(
            135deg,
            #ffd700 0%,
            #ffb300 48%,
            #ff6a00 100%
        );
    box-shadow:
        0 8px 25px rgba(255,140,0,.20),
        0 0 18px rgba(255,215,0,.12),
        inset 0 1px 0 rgba(255,255,255,.35);
}

.library-page-btn-secondary {
    color: #eaf7ff;
    border-color: rgba(91,192,255,.30);
    background:
        linear-gradient(
            135deg,
            rgba(20,42,76,.94),
            rgba(7,15,31,.94)
        );
    box-shadow:
        0 8px 25px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.06);
}

.library-page-btn:not(:disabled):hover {
    transform: translateY(-3px);
}

.library-page-btn-primary:not(:disabled):hover {
    border-color: rgba(255,255,255,.65);
    box-shadow:
        0 12px 32px rgba(255,140,0,.28),
        0 0 28px rgba(255,215,0,.16),
        inset 0 1px 0 rgba(255,255,255,.4);
}

.library-page-btn-secondary:not(:disabled):hover {
    border-color: rgba(91,192,255,.58);
    box-shadow:
        0 12px 32px rgba(0,120,255,.18),
        0 0 24px rgba(91,192,255,.10),
        inset 0 1px 0 rgba(255,255,255,.08);
}

.library-page-btn:not(:disabled):active {
    transform: translateY(1px) scale(.98);
}

.library-page-btn:focus-visible {
    outline: 2px solid rgba(91,192,255,.9);
    outline-offset: 4px;
}

.library-page-btn:disabled {
    cursor: not-allowed;
    opacity: .35;
    transform: none;
    box-shadow: none;
}

.pagination-arrow {
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
}

.library-page-indicator {
    min-width: 105px;
    min-height: 42px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(91,192,255,.16);
    background: rgba(7,14,29,.68);
    color: #b9d8f2;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04),
        0 8px 24px rgba(0,0,0,.18);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

@media (max-width: 600px) {
    .library-pagination {
        width: min(100% - 28px, 520px);
        margin-top: 36px;
        gap: 10px;
    }

    .library-page-btn {
        min-width: 132px;
        min-height: 50px;
        padding: 12px 16px;
        font-size: 12px;
    }

    .library-page-indicator {
        order: -1;
        width: 100%;
        min-height: 38px;
    }
}

/* =========================================================
   WRV COMICS — PREMIUM HOMEPAGE BANNER SLIDER
   Full artwork visibility — NEVER crop banner corners.
========================================================= */

.wrv-hero-slider {
    width: 100%;
    max-width: 100%;
    margin: 10px auto 0;
    padding: 0 !important;
    background: transparent !important;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.wrv-hero-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;

    /*
     * Stable cinematic frame.
     * The images themselves use contain, so artwork is never cropped.
     */
    aspect-ratio: 16 / 9;

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(91,192,255,.08),
            transparent 65%
        ),
        #03050d;

    border-radius: 18px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.45),
        0 0 30px rgba(91,192,255,.08);

    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.wrv-hero-track {
    width: 100%;
    height: 100%;
    display: flex;

    transform: translate3d(0, 0, 0);

    will-change: transform;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.wrv-hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    position: relative;

    background: #03050d;
}

.wrv-hero-slide img {
    display: block;

    /*
     * CRITICAL:
     * contain guarantees every corner of the original artwork
     * remains visible.
     */
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;

    max-width: 100%;
    max-height: 100%;

    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ---------- PREMIUM INDICATORS ---------- */

.wrv-hero-dots {
    position: absolute;

    left: 50%;
    bottom: 18px;

    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 9px 13px;

    border-radius: 999px;

    background: rgba(3,8,20,.62);

    border: 1px solid rgba(255,255,255,.13);

    box-shadow:
        0 8px 25px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    z-index: 5;
}

.wrv-hero-dot {
    width: 8px;
    height: 8px;

    padding: 0;
    margin: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255,255,255,.38);

    cursor: pointer;

    transition:
        width .3s cubic-bezier(.22,1,.36,1),
        transform .3s ease,
        background .3s ease,
        box-shadow .3s ease;

    box-shadow: none;
}

.wrv-hero-dot:hover {
    transform: scale(1.25);
    background: rgba(255,255,255,.75);
}

.wrv-hero-dot.active {
    width: 24px;

    border-radius: 999px;

    background: #fff;

    box-shadow:
        0 0 10px rgba(255,255,255,.7),
        0 0 22px rgba(91,192,255,.35);
}

.wrv-hero-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* ---------- MOBILE ---------- */

@media (max-width: 768px) {

    .wrv-hero-slider {
        margin-top: 8px;
    }

    .wrv-hero-viewport {
        border-radius: 14px;
    }

    .wrv-hero-dots {
        bottom: 12px;
        gap: 8px;
        padding: 8px 11px;
    }

    .wrv-hero-dot {
        width: 7px;
        height: 7px;
    }

    .wrv-hero-dot.active {
        width: 21px;
    }
}

/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {

    .wrv-hero-track {
        transition: none !important;
    }

    .wrv-hero-dot {
        transition: none !important;
    }
}


/* =========================================================
   WRV COMICS — SLIDE-IN NAVIGATION VISUAL SYSTEM
========================================================= */

body.wrv-nav-open{
    overflow:hidden;
}

/* The old Home / Library / Account row is intentionally hidden.
   The links themselves remain untouched in the existing pages. */
header nav[data-wrv-legacy-nav]{
    display:none !important;
}

/* Three-column header: profile | centered logo | hamburger */
header .header-top{
    grid-template-columns:55px minmax(0,1fr) 55px !important;
    width:100%;
}

header .header-top .logo{
    grid-column:2;
    justify-self:center;
}

.wrv-nav-toggle{
    position:relative !important;
    z-index:12000 !important;
    grid-column:3;
    justify-self:end;
    width:48px;
    height:48px;
    border:1px solid rgba(0,229,255,.35);
    border-radius:14px;
    background:
        linear-gradient(
            145deg,
            rgba(10,24,48,.96),
            rgba(7,10,24,.94)
        );
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
    cursor:pointer;
    padding:0;
    box-shadow:
        0 0 14px rgba(0,229,255,.12),
        inset 0 1px 0 rgba(255,255,255,.08);
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
    -webkit-tap-highlight-color:transparent;
}

.wrv-nav-toggle:hover{
    transform:translateY(-2px);
    border-color:rgba(0,229,255,.72);
    box-shadow:
        0 0 18px rgba(0,229,255,.28),
        0 0 35px rgba(155,92,255,.10);
}

.wrv-nav-toggle span{
    width:22px;
    height:2px;
    border-radius:99px;
    background:linear-gradient(90deg,#00e5ff,#9b5cff);
    box-shadow:0 0 8px rgba(0,229,255,.55);
}

/* Backdrop */
.wrv-navigation-overlay{
    position:fixed;
    inset:0;
    background:transparent;
    backdrop-filter:brightness(.45) blur(2px);
    -webkit-backdrop-filter:brightness(.45) blur(2px);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    z-index:1090;
    transition:
        opacity .28s ease,
        visibility .28s ease;
}

.wrv-navigation-overlay.is-visible{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

/* Drawer */
.wrv-navigation-drawer{
    position:fixed;
    top:0;
    right:0;
    width:min(390px,88vw);
    height:100dvh;
    padding:
        max(24px,env(safe-area-inset-top))
        24px
        max(24px,env(safe-area-inset-bottom));

    display:flex;
    flex-direction:column;

    overflow:hidden;

    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(0,229,255,.15),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 75%,
            rgba(155,92,255,.18),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #071a2e 0%,
            #080d20 45%,
            #03050d 100%
        );

    border-left:1px solid rgba(0,229,255,.38);

    box-shadow:
        -20px 0 70px rgba(0,0,0,.62),
        -5px 0 30px rgba(0,229,255,.10);

    transform:translateX(105%);
    visibility:hidden;
    z-index:1100;

    transition:
        transform .38s cubic-bezier(.22,1,.36,1),
        visibility .38s ease;
}

.wrv-navigation-drawer.is-open{
    transform:translateX(0);
    visibility:visible;
}

.wrv-drawer-glow{
    position:absolute;
    border-radius:50%;
    pointer-events:none;
    filter:blur(12px);
}

.wrv-drawer-glow-one{
    width:170px;
    height:170px;
    top:70px;
    right:-70px;
    background:rgba(0,229,255,.13);
}

.wrv-drawer-glow-two{
    width:220px;
    height:220px;
    bottom:80px;
    left:-120px;
    background:rgba(155,92,255,.12);
}

.wrv-drawer-header{
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.wrv-drawer-kicker{
    display:block;
    margin-bottom:0;
    color:#5bc0ff;
    font-size:18px;
    line-height:1.2;
    font-weight:900;
    letter-spacing:4px;
    text-shadow:
        0 0 10px rgba(0,229,255,.45),
        0 0 24px rgba(0,229,255,.16);
}

.wrv-drawer-header h2{
    margin:0;
    color:#fff;
    font-size:28px;
    text-shadow:
        0 0 12px rgba(255,255,255,.15),
        0 0 25px rgba(0,229,255,.12);
}

.wrv-drawer-close{
    position:relative;
    width:46px;
    height:46px;
    flex:0 0 46px;
    border:1px solid rgba(255,255,255,.15);
    border-radius:14px;
    background:rgba(255,255,255,.045);
    cursor:pointer;
}

.wrv-drawer-close span{
    position:absolute;
    left:12px;
    top:21px;
    width:21px;
    height:2px;
    border-radius:99px;
    background:#fff;
    box-shadow:0 0 8px rgba(0,229,255,.45);
}

.wrv-drawer-close span:first-child{
    transform:rotate(45deg);
}

.wrv-drawer-close span:last-child{
    transform:rotate(-45deg);
}

.wrv-drawer-divider{
    position:relative;
    z-index:1;
    height:1px;
    margin:22px 0 18px;
    background:linear-gradient(
        90deg,
        rgba(0,229,255,.65),
        rgba(155,92,255,.45),
        transparent
    );
    box-shadow:0 0 12px rgba(0,229,255,.22);
}

.wrv-drawer-links{
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.wrv-drawer-links a{
    position:relative;
    display:grid;
    grid-template-columns:38px minmax(0,1fr) 24px;
    align-items:center;
    gap:12px;

    min-height:62px;
    padding:10px 14px;

    color:#dcecff;
    text-decoration:none;

    border:1px solid transparent;
    border-radius:16px;

    background:rgba(255,255,255,.025);

    transition:
        transform .22s ease,
        color .22s ease,
        border-color .22s ease,
        background .22s ease,
        box-shadow .22s ease;
}

.wrv-drawer-links a::after{
    content:"";
    position:absolute;
    left:58px;
    bottom:7px;
    width:0;
    height:2px;
    border-radius:99px;
    background:linear-gradient(90deg,#00e5ff,#9b5cff);
    box-shadow:0 0 10px rgba(0,229,255,.65);
    transition:width .28s cubic-bezier(.22,1,.36,1);
}

.wrv-drawer-links a:hover{
    transform:translateX(-4px);
    color:#fff;
    border-color:rgba(0,229,255,.20);
    background:
        linear-gradient(
            90deg,
            rgba(0,229,255,.09),
            rgba(155,92,255,.06)
        );
    box-shadow:
        inset 0 0 20px rgba(0,229,255,.035),
        0 0 18px rgba(0,229,255,.07);
}

.wrv-drawer-links a.active{
    color:#fff;
    border-color:rgba(0,229,255,.34);
    background:
        linear-gradient(
            90deg,
            rgba(0,229,255,.13),
            rgba(155,92,255,.10)
        );
    box-shadow:
        inset 0 0 22px rgba(0,229,255,.06),
        0 0 22px rgba(0,229,255,.10);
}

.wrv-drawer-links a.active::after{
    width:calc(100% - 82px);
}

.wrv-nav-icon{
    width:36px;
    height:36px;
    display:grid;
    place-items:center;
    border-radius:11px;
    color:#5bc0ff;
    font-size:18px;
    font-weight:900;
    background:rgba(0,229,255,.07);
    border:1px solid rgba(0,229,255,.16);
    box-shadow:0 0 12px rgba(0,229,255,.07);
}

.wrv-nav-label{
    min-width:0;
    font-size:16px;
    font-weight:700;
    line-height:1.25;
}

.wrv-nav-arrow{
    color:#7898bd;
    font-size:18px;
    transition:
        transform .22s ease,
        color .22s ease;
}

.wrv-drawer-links a:hover .wrv-nav-arrow,
.wrv-drawer-links a.active .wrv-nav-arrow{
    color:#00e5ff;
    transform:translateX(3px);
}

.wrv-drawer-footer{
    position:relative;
    z-index:1;
    margin-top:auto;
    padding-top:22px;
    color:#7e9ab9;
    font-size:12px;
    line-height:1.6;
    text-align:center;
    border-top:1px solid rgba(91,192,255,.08);
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:5px;
}

.wrv-drawer-footer span:last-child{
    font-size:11px;
    color:rgba(255,255,255,.34);
}

/* With the old nav removed, bring the homepage hero upward
   while keeping comfortable breathing room below the logo. */
.hero{
    padding-top:14px !important;
}

.welcome-banner{
    margin-top:12px !important;
}

/* Hero slider gets the same balanced spacing. */
.wrv-hero-slider{
    padding-top:14px !important;
}

.wrv-hero-slider .wrv-hero-viewport{
    margin-top:0 !important;
}

/* Mobile */
@media(max-width:600px){

    header .header-top{
        grid-template-columns:48px minmax(0,1fr) 48px !important;
        padding-left:10px;
        padding-right:10px;
    }

    .wrv-nav-toggle{
        width:44px;
        height:44px;
        border-radius:13px;
    }

    .wrv-navigation-drawer{
        width:min(390px,92vw);
        padding-left:18px;
        padding-right:18px;
    }

    .wrv-drawer-header h2{
        font-size:25px;
    }

    .wrv-drawer-links a{
        min-height:60px;
    }

    .wrv-drawer-links a.active::after{
        left:58px;
        width:calc(100% - 78px);
    }

    .hero,
    .wrv-hero-slider{
        padding-top:10px !important;
    }

    .welcome-banner{
        margin-top:8px !important;
    }
}

@media (prefers-reduced-motion:reduce){

    .wrv-navigation-drawer,
    .wrv-navigation-overlay,
    .wrv-nav-toggle,
    .wrv-drawer-links a,
    .wrv-drawer-links a::after{
        transition:none !important;
    }
}

/* WRV Universe homepage section */
.wrv-universe-section {
    position: relative;
    overflow: hidden;
    padding-top: 70px;
    padding-bottom: 20px;
}

.wrv-universe-copy {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: 0 auto;
}

.wrv-universe-copy h2 {
    margin-bottom: 28px;
}

.wrv-universe-description {
    max-width: 900px;
    margin: 0 auto 30px;
    line-height: 1.8;
    color: #d7e3f2;
    font-size: 1.08rem;
}

.wrv-signin-btn {
    border: 0;
    cursor: pointer;
}

.wrv-signin-btn:disabled {
    opacity: .7;
    cursor: wait;
}

.wrv-universe-character-wrap {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 35px auto -30px;
    display: flex;
    justify-content: center;
}

.wrv-universe-character {
    display: block;
    width: min(100%, 760px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 35px rgba(0,0,0,.45));
}

/* Flutterwave labels/links are intentionally white across the site. */
a[href*="flutterwave.com"],
.footer-powered a {
    color: #ffffff !important;
}

@media (max-width: 700px) {
    .wrv-universe-section {
        padding-top: 55px;
        padding-bottom: 10px;
    }

    .wrv-universe-description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .wrv-universe-character-wrap {
        margin-top: 28px;
        margin-bottom: -15px;
    }

    .wrv-universe-character {
        width: 112%;
        max-width: none;
        margin-left: -6%;
    }
}


/* WRV FINAL HOMEPAGE BUILD — HEADER + CREATOR PROFILE */
header .header-top{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    width:100% !important;
    gap:clamp(14px,3vw,26px) !important;
    padding:0 12px !important;
}
header .header-top .logo{
    flex:0 1 auto !important;
    margin-left:auto !important;
    margin-right:clamp(10px,2vw,22px) !important;
    transform:translateX(-10px);
}
header .header-logo{width:clamp(220px,38vw,520px) !important;}
@media (max-width:700px){
    header .header-top{gap:10px !important;padding:0 8px !important;}
    header .header-top .logo{margin-right:12px !important;transform:translateX(-8px);}
    header .header-logo{width:clamp(205px,61vw,330px) !important;}
}
@media (max-width:390px){
    header .header-top .logo{margin-right:9px !important;transform:translateX(-6px);}
    header .header-logo{width:clamp(190px,59vw,285px) !important;}
}

.creator-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.creator-profile-trigger{
    appearance:none;-webkit-appearance:none;width:46px;height:46px;padding:3px;
    border:2px solid #22d9ff;border-radius:50%;background:#030812;
    box-shadow:0 0 8px rgba(0,229,255,.85),0 0 20px rgba(0,180,255,.42),inset 0 0 10px rgba(0,229,255,.18);
    cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
    transition:transform .25s ease,box-shadow .25s ease;flex:0 0 auto;
}
.creator-profile-trigger:hover,.creator-profile-trigger:focus-visible{transform:scale(1.05);box-shadow:0 0 10px rgba(0,229,255,.95),0 0 28px rgba(0,180,255,.55),inset 0 0 12px rgba(0,229,255,.22);outline:none;}
.creator-profile-trigger img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block;}
/* Final creator alignment: move the profile icon down only; preserve horizontal position. */
.creator-profile-trigger{transform:translateY(5px);}
.creator-profile-trigger:hover,.creator-profile-trigger:focus-visible{transform:translateY(5px) scale(1.05);}
.creator-social-menu{
    width:min(100%,520px);margin:0 0 28px;padding:0 14px;display:flex;flex-direction:column;gap:8px;
    max-height:0;opacity:0;overflow:hidden;transform:translateY(-8px);pointer-events:none;
    border:1px solid transparent;border-radius:18px;background:rgba(5,13,27,.9);box-shadow:0 12px 30px rgba(0,0,0,.25);
    transition:max-height .42s cubic-bezier(.22,1,.36,1),opacity .28s ease,transform .42s cubic-bezier(.22,1,.36,1),padding .35s ease,border-color .35s ease;
}
.creator-social-menu.show{max-height:500px;opacity:1;transform:translateY(0);pointer-events:auto;padding:12px 14px;border-color:rgba(0,229,255,.22);}
.creator-social-menu a{display:flex;align-items:center;gap:12px;min-height:46px;padding:8px 10px;border-radius:12px;color:#fff;text-decoration:none;background:rgba(255,255,255,.035);transition:background .22s ease,transform .22s ease;}
.creator-social-menu a:hover,.creator-social-menu a:focus-visible{background:rgba(0,229,255,.10);transform:translateX(3px);outline:none;}
.creator-social-menu img{width:34px;height:34px;border-radius:9px;object-fit:cover;}
.about-wrv-image-wrap,.wrv-universe-welcome-image-wrap{width:min(100%,1100px);margin:34px auto 10px;overflow:hidden;border-radius:18px;box-shadow:0 20px 55px rgba(0,0,0,.35),0 0 25px rgba(0,180,255,.08);}
.about-wrv-image,.wrv-universe-welcome-image{display:block;width:100%;height:auto;max-width:100%;}
.wrv-universe-welcome-image-wrap{margin-top:46px;margin-bottom:0;}
.wrv-hero-viewport{aspect-ratio:3 / 2 !important;}
.wrv-hero-slide img{object-fit:contain !important;}
a,button,.card,.btn,.wrv-nav-toggle,.wrv-navigation-drawer{-webkit-tap-highlight-color:transparent;}
a[href*="flutterwave.com"],.footer-powered a{color:#fff !important;}
@media (prefers-reduced-motion:reduce){.creator-social-menu,.creator-profile-trigger{transition:none !important;}}


/* WRV NO-FLASH LEGACY NAVIGATION */

/* WRV NO-FLASH LEGACY NAVIGATION
   Hide the old static Home / Library / Account row immediately,
   before JavaScript has a chance to run. The modern hamburger
   navigation is generated separately by site-ui.js. */
header > nav{
    display:none !important;
}


/* ============================================================
   WRV FINAL — ZERO-FLASH / ZERO-AUTO-SCROLL SYSTEM
   Browser owns scroll position and restoration.
   ============================================================ */

/* Never animate browser scroll restoration. */
html,
body {
    scroll-behavior: auto !important;
}

/* Never animate or transform the entire document on load. */
html,
body,
body.page-loaded,
body.page-exit {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/*
 * The old fadeUp page-load animations moved the hero/sections
 * vertically during refresh. Disable only those page-load
 * animations. Component/slider animations remain untouched.
 */
.hero,
.section {
    animation: none !important;
}

/*
 * Do not allow the navigation transition system to create
 * a temporary visual state during DOMContentLoaded/pageshow.
 */
body.page-loaded,
body.page-exit {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/*
 * Prevent browser/UA scroll anchoring from unexpectedly
 * adjusting the viewport while content settles.
 */
body {
    overflow-anchor: none;
}

/* Final balanced creator profile image. */
.creator-profile-trigger {
    width: 46px !important;
    height: 46px !important;
}


/* ============================================================
   WRV FINAL — REFRESH TOP + ZERO LOGO FLASH
   ============================================================ */

/*
 * The browser must NEVER animate a refresh-to-top operation.
 */
html,
body {
    scroll-behavior: auto !important;
}

/*
 * The document itself must never fade, translate or animate.
 * Individual visual components may still animate.
 */
body,
body.page-loaded,
body.page-exit {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/*
 * Restore the smooth visual entrance without moving the
 * scrolling surface itself.
 */
.hero,
.section {
    animation: none !important;
}

/*
 * Header is completely stable during page loading.
 */
header {
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
}

/*
 * Header logo must never inherit an entrance animation.
 */
header .logo,
header .header-logo {
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/*
 * Reserve the logo's physical space immediately so the header
 * cannot jump when the image finishes loading.
 */
header .header-logo {
    display: block !important;
    height: auto !important;
    aspect-ratio: auto;
}

/*
 * Prevent the browser from changing the scroll position because
 * images/content are settling after first paint.
 */
body {
    overflow-anchor: none;
}


/* ============================================================
   WRV FINAL — SMOOTH CONTENT ENTRY WITHOUT PAGE MOVEMENT
   ============================================================ */

/*
 * The scrolling surface itself remains fixed.
 * Only visible content gets the entrance effect.
 */
.wrv-page-entry {
    animation: wrvCleanEntry .55s cubic-bezier(.22,1,.36,1) both;
}

@keyframes wrvCleanEntry {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
 * Header and logo are NEVER part of the entrance animation.
 * They must be visible immediately and remain perfectly stable.
 */
header,
header .header-top,
header .logo,
header .header-logo {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/*
 * No browser smooth-scroll during refresh.
 */
html,
body {
    scroll-behavior: auto !important;
}

/*
 * Do not let content/image loading alter the viewport.
 */
body {
    overflow-anchor: none;
}

/*
 * Reduced-motion accessibility.
 */
@media (prefers-reduced-motion: reduce) {
    .wrv-page-entry {
        animation: none !important;
    }
}


/* ============================================================
   WRV FINAL HEADER — ZERO FLASH / ZERO HORIZONTAL SHIFT
   ============================================================ */

header .header-top{
    display:grid !important;
    grid-template-columns:48px minmax(0,1fr) 48px !important;
    align-items:center !important;
    justify-items:stretch !important;
    width:100% !important;
    gap:0 !important;
    padding:0 8px !important;
    box-sizing:border-box !important;
}

header .header-top .profile-container{
    grid-column:1 !important;
    grid-row:1 !important;
    width:48px !important;
    min-width:48px !important;
    max-width:48px !important;
    margin:0 !important;
    transform:none !important;
}

header .header-top .logo{
    grid-column:2 !important;
    grid-row:1 !important;
    justify-self:center !important;
    align-self:center !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    transform:none !important;
    flex:none !important;
}

header .header-top .wrv-nav-toggle,
header .header-top > .wrv-nav-toggle{
    grid-column:3 !important;
    grid-row:1 !important;
    justify-self:end !important;
    margin:0 !important;
    transform:none !important;
}

header .header-logo{
    display:block !important;
    width:clamp(190px,59vw,285px) !important;
    max-width:100% !important;
    height:auto !important;
    aspect-ratio:707 / 353 !important;
    margin:0 auto !important;
    padding:0 !important;

    transform:none !important;
    animation:none !important;
    transition:none !important;
    opacity:1 !important;
    visibility:visible !important;
}

@media (min-width:701px){

    header .header-top{
        grid-template-columns:55px minmax(0,1fr) 55px !important;
        padding-left:15px !important;
        padding-right:15px !important;
    }

    header .header-top .profile-container{
        width:55px !important;
        min-width:55px !important;
        max-width:55px !important;
    }

    header .header-logo{
        width:clamp(250px,42vw,560px) !important;
    }
}

/* ============================================================
   WRV FINAL CONTENT SLIDE-IN
   Header stays completely still.
   ============================================================ */

.wrv-content-entry{
    animation:wrvContentEntry .70s cubic-bezier(.22,1,.36,1) both !important;
    will-change:transform,opacity;
}

@keyframes wrvContentEntry{
    from{
        opacity:1;
        transform:translateY(32px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media (prefers-reduced-motion:reduce){
    .wrv-content-entry{
        animation:none !important;
    }
}

/* ============================================================
   WRV PAGE HEADER — RESTORE NORMAL LOGO SIZE
   Applies only to the simple pages that do not use the
   profile-container header layout.
   ============================================================ */

body:not(:has(.profile-container)) header .header-logo{
    width:190px !important;
    max-width:100% !important;
    height:68px !important;
    aspect-ratio:auto !important;
    object-fit:contain !important;
    margin:0 auto !important;
}

body:not(:has(.profile-container)) .footer-logo{
    width:270px !important;
    max-width:100% !important;
    height:auto !important;
    object-fit:contain !important;
    margin:0 auto !important;
}

@media(max-width:768px){
    body:not(:has(.profile-container)) header .header-logo{
        width:185px !important;
        height:68px !important;
    }

    body:not(:has(.profile-container)) .footer-logo{
        width:270px !important;
        max-width:90% !important;
    }
}


/* ============================================================
   WRV HERO — ZERO FLASH ON REFRESH
   The first banner is established before the slider animates.
   Does not affect header, logo, or other page transitions.
   ============================================================ */

.wrv-hero-slider .wrv-hero-track{
    transform:translate3d(0,0,0);
    will-change:transform;
}

.wrv-hero-slider .wrv-hero-slide{
    flex:0 0 100%;
}


/* ============================================================
   WRV LIBRARY — CONTENT ENTRANCE
   Only the library hero/content moves. Header stays untouched.
   ============================================================ */

body.library-loading > .hero{
    animation:wrvLibraryHeroEntry .70s cubic-bezier(.22,1,.36,1) both !important;
}

@keyframes wrvLibraryHeroEntry{
    from{
        opacity:1;
        transform:translateY(32px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media (prefers-reduced-motion:reduce){
    body.library-loading > .hero{
        animation:none !important;
    }
}


/* ============================================================
   WRV — ORIGINAL-STYLE PAGE ENTRANCE ONLY
   Reference: WRV-Comics-v3-WORKING.zip

   IMPORTANT:
   - Header/navigation/logo untouched.
   - Current homepage banners untouched.
   - Hero slider JS untouched.
   - Only page-content entrance motion is changed.
   ============================================================ */

@keyframes wrvOriginalPageEntry{
    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/*
 * Apply only to the actual page content.
 * The header is deliberately excluded.
 */
body > main,
body > .hero,
body > .section{
    animation:wrvOriginalPageEntry 1s ease both !important;
}

/*
 * The homepage banner section gets the same page entrance,
 * but its internal carousel is NOT modified.
 */
body > .wrv-hero-slider{
    animation:wrvOriginalPageEntry 1s ease both !important;
}

/*
 * Disable only the newer content-entry animation so two
 * entrance animations cannot fight each other.
 */
.wrv-content-entry{
    animation:none !important;
}

/*
 * Do NOT change the hero track, slides, images, or slider JS.
 */

@media (prefers-reduced-motion:reduce){
    body > main,
    body > .hero,
    body > .section,
    body > .wrv-hero-slider{
        animation:none !important;
    }
}


/* ============================================================
   WRV — FINAL REFERENCE SLIDE MOTION
   Based on WRV-Comics-v3-WORKING.zip.

   HEADER / NAVIGATION / LOGO: untouched.
   CURRENT BANNERS: untouched.
   CAROUSEL BEHAVIOR: untouched.
   ============================================================ */

@keyframes wrvReferenceSlideUp{
    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* Normal page content */
body > .hero,
body > .section{
    animation:wrvReferenceSlideUp 1s ease both !important;
}

/* Library hero — specifically "Your Comic Library" */
body.library-loading > .hero,
body.library-ready > .hero{
    animation:wrvReferenceSlideUp .9s ease both !important;
}

/*
 * Homepage banner:
 * keep it hidden until Banner 1 is ready, then perform
 * the entrance animation once. The banner carousel itself
 * remains untouched.
 */
html:not(.wrv-hero-ready) body > .wrv-hero-slider{
    opacity:0 !important;
    transform:translateY(40px) !important;
    animation:none !important;
}

html.wrv-hero-ready body > .wrv-hero-slider{
    animation:wrvReferenceSlideUp 1s ease both !important;
}

@media (prefers-reduced-motion:reduce){
    body > .hero,
    body > .section,
    body.library-loading > .hero,
    body.library-ready > .hero,
    html.wrv-hero-ready body > .wrv-hero-slider{
        animation:none !important;
    }
}


/* ============================================================
   WRV — CLEAN PAGE CONTENT ENTRANCE
   FINAL AUTHORITY

   Header / navigation / logo: NOT ANIMATED.
   Homepage banner carousel: NOT ANIMATED BY THIS RULE.
   Current banner images: UNTOUCHED.

   Only the page's visible content enters upward.
   ============================================================ */

@keyframes wrvCleanPageSlideUp{
    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* FAQ page */
body > main.wrv-faq-page{
    animation:wrvCleanPageSlideUp 1s ease both !important;
}

/* Normal content pages */
body > .section{
    animation:wrvCleanPageSlideUp 1s ease both !important;
}

/* Library title/content area */
body.library-loading > .hero,
body.library-ready > .hero{
    animation:wrvCleanPageSlideUp 1s ease both !important;
}

/* Contact page */
body > .section .account-heading{
    animation:none !important;
}

/*
 * IMPORTANT:
 * Never animate the header or navigation through these
 * page-entry rules.
 */
body > header{
    animation:none !important;
    transform:none !important;
}

/*
 * Remove competing page-entry animations from elements
 * that should remain governed by the rules above.
 */
.wrv-content-entry{
    animation:none !important;
}

body.library-loading header{
    animation:none !important;
}

@media (prefers-reduced-motion:reduce){
    body > .section,
    body > main.wrv-faq-page,
    body.library-loading > .hero,
    body.library-ready > .hero{
        animation:none !important;
    }
}


/* ============================================================
   WRV — FINAL SAFE PAGE ENTRANCE
   Reference behavior:
   content starts 40px below and smoothly enters its final
   position.

   NEVER animate:
   - header
   - navigation
   - logo
   - banner images
   - hero track/carousel

   Only the page-content container moves.
   ============================================================ */

@keyframes wrvFinalSafeSlideUp{
    from{
        opacity:0;
        transform:translate3d(0,40px,0);
    }

    to{
        opacity:1;
        transform:translate3d(0,0,0);
    }
}

/*
 * First cancel every competing entrance animation on the
 * content targets created by our previous experiments.
 */
body > .hero,
body > .section,
body > main.wrv-faq-page,
body.library-loading > .hero,
body.library-ready > .hero{
    animation:none !important;
}

/*
 * Homepage banner:
 * The BANNER ITSELF remains completely untouched internally.
 * Only its outer page entrance is animated.
 */
html.wrv-hero-ready body > .wrv-hero-slider{
    animation:wrvFinalSafeSlideUp 1s ease both !important;
}

/*
 * Keep the homepage hidden until Banner 1 has loaded.
 * This prevents the image from appearing after the entrance
 * has already started.
 */
html:not(.wrv-hero-ready) body > .wrv-hero-slider{
    opacity:0 !important;
    transform:translate3d(0,40px,0) !important;
    animation:none !important;
}

/*
 * Library:
 * "Your Comic Library" is inside .hero, so the whole hero
 * enters smoothly together.
 */
body.library-loading > .hero,
body.library-ready > .hero{
    animation:wrvFinalSafeSlideUp 1s ease both !important;
}

/*
 * Account, Privacy, Refund, Terms and Contact.
 */
body > .section{
    animation:wrvFinalSafeSlideUp 1s ease both !important;
}

/*
 * FAQ uses <main> rather than .section.
 */
body > main.wrv-faq-page{
    animation:wrvFinalSafeSlideUp 1s ease both !important;
}

/*
 * The transition controller uses this class.
 * Give it exactly the same reference-style movement.
 */
.wrv-content-entry{
    animation:wrvFinalSafeSlideUp 1s ease both !important;
    will-change:transform,opacity;
}

/*
 * HEADER — ABSOLUTELY UNTOUCHED.
 */
body > header,
body > header *{
    animation:none !important;
}

/*
 * The carousel track and slides must never receive the
 * page-entry animation.
 */
.wrv-hero-track,
.wrv-hero-slide,
.wrv-hero-slide img{
    animation:none !important;
}

/*
 * Accessibility.
 */
@media (prefers-reduced-motion:reduce){
    body > .hero,
    body > .section,
    body > main.wrv-faq-page,
    body.library-loading > .hero,
    body.library-ready > .hero,
    body > .wrv-hero-slider,
    .wrv-content-entry{
        animation:none !important;
    }
}


/* ============================================================
   WRV — FAQ PAGE ENTRANCE
   Same upward entrance as the other content pages.
   Header / navigation / logo remain untouched.
   ============================================================ */

body > main.wrv-faq-page{
    animation:wrvFinalSafeSlideUp 1s ease both !important;
}



/* ============================================================
   WRV FINAL — LARGE HEADER LOGO
   Only the logo size changes.
   Header height, spacing, hamburger position and empty
   header areas remain untouched.
   ============================================================ */

header .header-logo{
    width:320px !important;
    max-width:none !important;
    height:auto !important;
    object-fit:contain !important;
    object-position:center !important;
}

@media (max-width:768px){
    header .header-logo{
        width:285px !important;
        max-width:none !important;
        height:auto !important;
    }
}

@media (max-width:420px){
    header .header-logo{
        width:260px !important;
        max-width:none !important;
        height:auto !important;
    }
}

/* Never allow the logo to change the header's intended layout. */
header .logo{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}


/* ============================================================
   WRV FINAL HEADER LOGO — LARGE + BALANCED
   Only logo dimensions are changed.
   Existing header spacing/layout remains untouched.
   ============================================================ */

header .header-logo{
    width:clamp(280px, 38vw, 500px) !important;
    max-width:none !important;
    height:auto !important;
    object-fit:contain !important;
    object-position:center !important;
}

/* Tablet */
@media (min-width:601px) and (max-width:1000px){
    header .header-logo{
        width:clamp(270px, 48vw, 420px) !important;
        max-width:none !important;
    }
}

/* Mobile */
@media (max-width:600px){
    header .header-logo{
        width:clamp(245px, 72vw, 330px) !important;
        max-width:none !important;
    }
}

/* Small phones — large but comfortable */
@media (max-width:390px){
    header .header-logo{
        width:clamp(225px, 70vw, 290px) !important;
        max-width:none !important;
    }
}


/* ============================================================
   WRV FINAL LOGO — REFERENCE-SIZE VISUAL SCALE
   The header layout/spacing remains untouched.
   Only the visible logo is enlarged.
   Existing glow is preserved.
   ============================================================ */

header .header-logo{
    width:260px !important;
    max-width:none !important;
    height:auto !important;
    transform:scale(1.85) !important;
    transform-origin:center center !important;
    object-fit:contain !important;
    object-position:center !important;
}

/* TABLET — large like the approved reference screenshot */
@media (min-width:601px) and (max-width:1000px){
    header .header-logo{
        width:280px !important;
        transform:scale(1.90) !important;
    }
}

/* DESKTOP — large and balanced */
@media (min-width:1001px){
    header .header-logo{
        width:300px !important;
        transform:scale(1.90) !important;
    }
}

/* MOBILE — large but still comfortable */
@media (max-width:600px){
    header .header-logo{
        width:250px !important;
        transform:scale(1.80) !important;
    }
}

/* SMALL PHONES — keep it prominent without crowding */
@media (max-width:390px){
    header .header-logo{
        width:235px !important;
        transform:scale(1.75) !important;
    }
}

/* ============================================================
   WRV FINAL — LOGO POSITION + NAVIGATION TOUCH FIX
   KEEP THE CURRENT LOGO SIZE EXACTLY AS IT IS.
   ONLY MOVE THE LOGO AWAY FROM THE NAVIGATION.
   ============================================================ */

/* The logo is visual only and must never block the menu button. */
header .header-logo{
    pointer-events:none !important;
}

/* Keep the navigation above the enlarged logo's visual area. */
header .wrv-nav-toggle,
header .header-top > .wrv-nav-toggle{
    position:relative !important;
    z-index:10000 !important;
    pointer-events:auto !important;
}

/* MOBILE — same size, shifted left */
@media (max-width:600px){
    header .header-logo{
        transform:translateX(-28px) scale(1.80) !important;
    }
}

/* SMALL PHONES — same size, slightly more controlled shift */
@media (max-width:390px){
    header .header-logo{
        transform:translateX(-24px) scale(1.75) !important;
    }
}

/* TABLET — same approved size, shifted away from navigation */
@media (min-width:601px) and (max-width:1000px){
    header .header-logo{
        transform:translateX(-38px) scale(1.90) !important;
    }
}

/* DESKTOP — same approved size, balanced left shift */
@media (min-width:1001px){
    header .header-logo{
        transform:translateX(-48px) scale(1.90) !important;
    }
}



/* WRV LANGUAGE FINAL — SAME GEOMETRY AS NORMAL NAV */

.wrv-drawer-links > .wrv-language-trigger{
    position:relative;
    display:grid;
    grid-template-columns:38px minmax(0,1fr) 24px;
    align-items:center;
    gap:12px;
    min-height:62px;
    height:auto;
    padding:10px 14px;

    color:#dcecff;
    border:1px solid transparent;
    border-radius:16px;
    background:rgba(255,255,255,.025);

    text-align:left;
    font:inherit;
    box-sizing:border-box;
    cursor:pointer;
    pointer-events:auto;
}

.wrv-drawer-links > .wrv-language-trigger:hover{
    transform:translateX(-4px);
    color:#fff;
    border-color:rgba(0,229,255,.20);
    background:
        linear-gradient(
            90deg,
            rgba(0,229,255,.09),
            rgba(155,92,255,.06)
        );
}

.wrv-drawer-links > .wrv-language-trigger .wrv-nav-icon{
    width:36px;
    height:36px;
    min-width:36px;
    max-width:36px;
    min-height:36px;
    max-height:36px;
    display:grid;
    place-items:center;
    box-sizing:border-box;
    flex:0 0 36px;
}

.wrv-drawer-links > .wrv-language-trigger .wrv-nav-label{
    min-width:0;
}

.wrv-drawer-links > .wrv-language-trigger .wrv-nav-arrow{
    line-height:1;
}

@media(max-width:600px){
    .wrv-drawer-links > .wrv-language-trigger{
        min-height:62px;
    }
}

/* WRV REMOVE LEGACY HOMEPAGE NAV */

/* The shared WRV drawer is the only navigation.
   Prevent the old homepage nav from affecting layout/alignment. */
header > nav[data-wrv-legacy-nav="true"],
header > nav:not(.wrv-drawer-links){
    display:none !important;
}



/* ============================================================
   WRV LANGUAGE PANEL — FINAL VISIBILITY FIX
   ============================================================ */

#wrvLanguagePanel{
    position:fixed !important;
    inset:0 !important;
    z-index:200000 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    padding:24px !important;

    background:rgba(0,0,0,.72) !important;
    backdrop-filter:blur(8px) !important;
    -webkit-backdrop-filter:blur(8px) !important;

    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;

    box-sizing:border-box !important;
}

#wrvLanguagePanel .wrv-language-panel-inner{
    position:relative !important;

    width:min(560px,94vw) !important;
    max-height:82vh !important;
    overflow-y:auto !important;

    padding:24px !important;

    border:1px solid rgba(0,229,255,.25) !important;
    border-radius:22px !important;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(0,229,255,.12),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #071a2e,
            #080d20
        ) !important;

    box-shadow:
        0 20px 70px rgba(0,0,0,.55),
        0 0 35px rgba(0,229,255,.10) !important;

    color:#fff !important;

    box-sizing:border-box !important;
}

#wrvLanguagePanel .wrv-language-title{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;

    margin-bottom:20px !important;

    color:#fff !important;
}

#wrvLanguagePanel .wrv-language-title strong{
    flex:1 !important;
    font-size:20px !important;
}

#wrvLanguagePanel #wrvLanguageClose{
    width:40px !important;
    height:40px !important;

    border:1px solid rgba(255,255,255,.15) !important;
    border-radius:12px !important;

    background:rgba(255,255,255,.06) !important;
    color:#fff !important;

    font-size:26px !important;
    line-height:1 !important;

    cursor:pointer !important;
}

#wrvLanguagePanel #wrvLanguageClose:hover{
    background:rgba(255,255,255,.12) !important;
}

#wrvLanguagePanel .wrv-language-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
}

#wrvLanguagePanel .wrv-language-grid button{
    min-height:48px !important;

    padding:10px 12px !important;

    border:1px solid rgba(255,255,255,.10) !important;
    border-radius:12px !important;

    background:rgba(255,255,255,.045) !important;
    color:#dcecff !important;

    font:inherit !important;
    text-align:left !important;

    cursor:pointer !important;

    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease !important;
}

#wrvLanguagePanel .wrv-language-grid button:hover{
    transform:translateY(-1px) !important;

    border-color:rgba(0,229,255,.30) !important;

    background:
        linear-gradient(
            90deg,
            rgba(0,229,255,.10),
            rgba(155,92,255,.08)
        ) !important;

    color:#fff !important;
}

@media(max-width:600px){
    #wrvLanguagePanel{
        padding:14px !important;
    }

    #wrvLanguagePanel .wrv-language-panel-inner{
        width:100% !important;
        max-height:88vh !important;
        padding:18px !important;
        border-radius:18px !important;
    }

    #wrvLanguagePanel .wrv-language-grid{
        grid-template-columns:1fr !important;
    }
}




/* =========================================================
   WRV COMICS — FINAL SMOOTH DOCUMENT SCROLL
   Normal page scrolling only.
   Existing slides, hero animations and transitions untouched.
========================================================= */

html {
    scroll-behavior: smooth !important;
}

body {
    scroll-behavior: smooth !important;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Keep interactive scrolling natural on touch devices. */
@media (hover: none) and (pointer: coarse) {
    html,
    body {
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   WRV BLACK BACKGROUND — BACKGROUND ONLY
   Layout, images, typography, spacing, animation, and behavior
   intentionally unchanged.
============================================================ */
html,
body{
    background:#000000 !important;
    background-image:none !important;
}

body::before{
    background:none !important;
}

header,
.hero,
.footer,
.wrv-universe-section,
#latest,
.wrv-hero-viewport,
.wrv-hero-slide{
    background:#000000 !important;
    background-image:none !important;
}

.hero::before,
#latest::before{
    background:none !important;
}

.social-menu,
.creator-social-menu{
    background:#000000 !important;
    background-image:none !important;
}

.wrv-navigation-overlay{
    background:#000000 !important;
    background-image:none !important;
}

.wrv-navigation-drawer{
    background:#000000 !important;
    background-image:none !important;
}

.wrv-drawer-glow-one,
.wrv-drawer-glow-two{
    background:none !important;
}

#wrvLanguagePanel,
#wrvLanguagePanel .wrv-language-panel-inner{
    background:#000000 !important;
    background-image:none !important;
}


/* WRV NAVIGATION — INDEPENDENT SCROLL ONLY
   The navigation drawer scrolls independently while the homepage remains fixed. */
body.wrv-nav-open{
    overflow:hidden !important;
    overscroll-behavior:none !important;
}

body.wrv-nav-open .wrv-navigation-drawer{
    overflow-y:auto !important;
    overflow-x:hidden !important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
}


/* WRV ACTIVE FOOTER LINK — CURRENT PAGE */
.footer-links a.wrv-footer-current,
.footer-links a.wrv-footer-current:hover {
    color:#5BC0FF !important;
    text-shadow:
        0 0 7px rgba(91,192,255,.65),
        0 0 16px rgba(91,192,255,.35);
    cursor:default;
    pointer-events:none;
}


/* WRV NAVIGATION — UNIFORM SOCIAL ICON SPACING */
.wrv-nav-socials{
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-evenly !important;
    gap:0 !important;
    margin:0 !important;
}

.wrv-nav-socials > a{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    max-width:38px !important;
    min-height:38px !important;
    max-height:38px !important;
    margin:0 !important;
    padding:0 !important;
    flex:0 0 38px !important;
}

/* WRV NAV ICONS — proper line icons */
.wrv-nav-icon svg{
    width:21px;
    height:21px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
    display:block;
}

/* =========================================================
   WRV NAVIGATION — CLEAN FINAL ICON + SOCIAL LAYOUT
   ========================================================= */

.wrv-nav-icon svg{
    width:21px !important;
    height:21px !important;
    fill:none !important;
    stroke:currentColor !important;
    stroke-width:1.8 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
    display:block !important;
}

.wrv-nav-follow-title{
    width:100%;
    margin-top:58px;
    margin-bottom:18px;
    text-align:center;
    color:#5bc0ff;
    font-size:22px;
    font-weight:800;
    letter-spacing:4px;
    text-shadow:
        0 0 10px rgba(0,229,255,.45),
        0 0 24px rgba(0,229,255,.18);
}

.wrv-nav-socials{
    width:100%;
    display:flex !important;
    align-items:center !important;
    justify-content:space-evenly !important;
    gap:0 !important;
    margin:0 !important;
}

.wrv-nav-socials a{
    width:38px !important;
    height:38px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 0 38px !important;
    text-decoration:none !important;
}

.wrv-nav-socials img{
    display:block !important;
    width:30px !important;
    height:30px !important;
    max-width:30px !important;
    max-height:30px !important;
    object-fit:contain !important;
}

.wrv-nav-version{
    margin-top:28px !important;
    width:100% !important;
    text-align:center !important;
}

/* =========================================================
   PAGE REMAINS VISIBLE BEHIND NAVIGATION
   VERY DIM — NOT BLACKED OUT
   ========================================================= */

.wrv-navigation-overlay{
    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(0,229,255,.035),
            transparent 30%
        ),
        rgba(0,0,0,.30) !important;
    backdrop-filter:brightness(.42) blur(3px) !important;
    -webkit-backdrop-filter:brightness(.42) blur(3px) !important;
}


/* WRV NAV — LOCK PAGE SCROLL WHILE DRAWER IS OPEN */
body.wrv-nav-open{
    overflow:hidden !important;
    overscroll-behavior:none !important;
}

.wrv-navigation-drawer{
    overscroll-behavior:contain !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch !important;
}


/* =========================================================
   WRV NAV — COMPLETE BACKGROUND SCROLL LOCK
   When navigation is open, ONLY the drawer may scroll.
   ========================================================= */

html.wrv-nav-scroll-lock,
body.wrv-nav-scroll-lock{
    overflow:hidden !important;
    overscroll-behavior:none !important;
    touch-action:none !important;
}

body.wrv-nav-scroll-lock{
    position:fixed !important;
    overflow:hidden !important;
    width:100% !important;
}

.wrv-navigation-overlay.is-visible{
    touch-action:none !important;
    overscroll-behavior:none !important;
}

.wrv-navigation-drawer.is-open{
    touch-action:auto !important;
    overscroll-behavior:contain !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch !important;
}


/* =========================================================
   WRV NAVIGATION ICONS — BLUE ONLY
   ========================================================= */

.wrv-nav-icon svg {
    width:21px !important;
    height:21px !important;
    fill:none !important;
    stroke:#5BC0FF !important;
    color:#5BC0FF !important;
    stroke-width:1.8 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
    display:block !important;
}

.wrv-nav-icon svg path,
.wrv-nav-icon svg circle,
.wrv-nav-icon svg rect {
    stroke:#5BC0FF !important;
    fill:none !important;
}

/* =========================================================
   WRV NAV — FORCE THE ACTUAL SVG ICONS
   Remove every old/generated icon and show ONLY the SVG.
   ========================================================= */

/* =========================================================
   WRV NAVIGATION ICONS — FINAL BLUE MONOCHROME ICONS
   ========================================================= */

.wrv-nav-icon{
    color:#5BC0FF !important;
}



/* ============================================================
   WRV COMICS — FINAL NAVIGATION ICON SYSTEM
   ONE SYSTEM ONLY — CLEAN BLUE LINE SVG ICONS
   ============================================================ */

.wrv-drawer-links .wrv-nav-icon{
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    max-width:36px !important;
    min-height:36px !important;
    max-height:36px !important;

    display:grid !important;
    place-items:center !important;

    flex:0 0 36px !important;

    box-sizing:border-box !important;

    color:#5BC0FF !important;
    background:rgba(0,229,255,.07) !important;
    border:1px solid rgba(0,229,255,.16) !important;
    border-radius:11px !important;

    font-size:initial !important;
    line-height:normal !important;

    box-shadow:0 0 12px rgba(0,229,255,.07) !important;
}

/* Absolutely NO generated icon */
.wrv-drawer-links .wrv-nav-icon::before,
.wrv-drawer-links .wrv-nav-icon::after{
    content:none !important;
    display:none !important;
}

/* The actual artwork */
.wrv-drawer-links .wrv-nav-icon svg{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;

    width:21px !important;
    height:21px !important;

    min-width:21px !important;
    min-height:21px !important;

    max-width:21px !important;
    max-height:21px !important;

    fill:none !important;
    stroke:#5BC0FF !important;

    stroke-width:1.8 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;

    overflow:visible !important;
}

/* Every part of every icon */
.wrv-drawer-links .wrv-nav-icon svg path,
.wrv-drawer-links .wrv-nav-icon svg circle,
.wrv-drawer-links .wrv-nav-icon svg rect,
.wrv-drawer-links .wrv-nav-icon svg line,
.wrv-drawer-links .wrv-nav-icon svg polyline,
.wrv-drawer-links .wrv-nav-icon svg polygon{
    fill:none !important;
    stroke:#5BC0FF !important;
    stroke-width:1.8 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
}

/* Slight neon glow — still blue line artwork */
.wrv-drawer-links .wrv-nav-icon svg{
    filter:drop-shadow(0 0 3px rgba(91,192,255,.38)) !important;
}

/* Active icon */
.wrv-drawer-links a.active .wrv-nav-icon{
    color:#5BC0FF !important;
    border-color:rgba(91,192,255,.35) !important;
    background:rgba(0,229,255,.10) !important;
    box-shadow:
        0 0 12px rgba(0,229,255,.10),
        inset 0 0 12px rgba(0,229,255,.04) !important;
}

.wrv-drawer-links a.active .wrv-nav-icon svg{
    stroke:#5BC0FF !important;
}



/* ============================================================
   WRV FINAL SVG ICON OVERRIDE
   THIS IS THE ONLY RULE THAT CONTROLS THE NEW NAV ARTWORK
   ============================================================ */

.wrv-drawer-links .wrv-nav-icon .wrv-final-nav-svg{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;

    width:21px !important;
    height:21px !important;

    min-width:21px !important;
    min-height:21px !important;

    max-width:21px !important;
    max-height:21px !important;

    overflow:visible !important;

    fill:none !important;
    color:#5BC0FF !important;

    stroke:#5BC0FF !important;

    filter:drop-shadow(0 0 3px rgba(91,192,255,.40)) !important;
}

/* IMPORTANT:
   Do not allow the global stylesheet to alter the SVG artwork.
*/
.wrv-drawer-links .wrv-nav-icon .wrv-final-nav-svg path,
.wrv-drawer-links .wrv-nav-icon .wrv-final-nav-svg circle,
.wrv-drawer-links .wrv-nav-icon .wrv-final-nav-svg rect,
.wrv-drawer-links .wrv-nav-icon .wrv-final-nav-svg line,
.wrv-drawer-links .wrv-nav-icon .wrv-final-nav-svg polyline,
.wrv-drawer-links .wrv-nav-icon .wrv-final-nav-svg polygon{
    stroke:#5BC0FF !important;
}

/* Never fill the line artwork */
.wrv-drawer-links .wrv-nav-icon .wrv-final-nav-svg path,
.wrv-drawer-links .wrv-nav-icon .wrv-final-nav-svg rect{
    fill:none !important;
}

/* FAQ dot is intentionally filled */
.wrv-drawer-links .wrv-nav-icon .wrv-final-nav-svg circle:last-child{
    fill:#5BC0FF !important;
    stroke:none !important;
}

/* No pseudo-element artwork whatsoever */
.wrv-drawer-links .wrv-nav-icon::before,
.wrv-drawer-links .wrv-nav-icon::after{
    content:none !important;
    display:none !important;
}


/* =========================================================
   WRV COMICS — FINAL NAV ICON ARTWORK ONLY
   DO NOT MODIFY DRAWER / PAGE BACKGROUND
   ========================================================= */

.wrv-drawer-links .wrv-nav-icon{
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    min-height:36px !important;
    max-width:36px !important;
    max-height:36px !important;

    display:grid !important;
    place-items:center !important;

    position:relative !important;
    color:#5BC0FF !important;
    font-size:0 !important;
}

.wrv-drawer-links .wrv-nav-icon::before,
.wrv-drawer-links .wrv-nav-icon::after{
    content:none !important;
    display:none !important;
}

.wrv-drawer-links .wrv-nav-icon svg.wrv-final-nav-svg{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;

    width:21px !important;
    height:21px !important;
    min-width:21px !important;
    min-height:21px !important;
    max-width:21px !important;
    max-height:21px !important;

    fill:none !important;
    color:#5BC0FF !important;
    stroke:#5BC0FF !important;
    stroke-width:1.8 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;

    overflow:visible !important;
    filter:drop-shadow(0 0 3px rgba(91,192,255,.40)) !important;
}

.wrv-drawer-links .wrv-nav-icon svg.wrv-final-nav-svg path,
.wrv-drawer-links .wrv-nav-icon svg.wrv-final-nav-svg circle,
.wrv-drawer-links .wrv-nav-icon svg.wrv-final-nav-svg rect,
.wrv-drawer-links .wrv-nav-icon svg.wrv-final-nav-svg line,
.wrv-drawer-links .wrv-nav-icon svg.wrv-final-nav-svg polyline,
.wrv-drawer-links .wrv-nav-icon svg.wrv-final-nav-svg polygon{
    stroke:#5BC0FF !important;
    stroke-width:1.8 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
    fill:none !important;
}

.wrv-drawer-links .wrv-nav-icon svg.wrv-final-nav-svg circle:last-child{
    fill:#5BC0FF !important;
    stroke:none !important;
}



/* WRV NAVIGATION — SYNCHRONIZED PANEL CONTENT MOTION
 *
 * The drawer and everything inside it must feel like ONE physical panel.
 * No staggered/popping navigation icons or labels.
 */
.wrv-navigation-drawer .wrv-drawer-header,
.wrv-navigation-drawer .wrv-drawer-links,
.wrv-navigation-drawer .wrv-drawer-footer {
    opacity: 0;
    transform: translateX(18px);
    transition:
        opacity .42s cubic-bezier(.16,1,.3,1),
        transform .42s cubic-bezier(.16,1,.3,1);
}

.wrv-navigation-drawer.is-open .wrv-drawer-header,
.wrv-navigation-drawer.is-open .wrv-drawer-links,
.wrv-navigation-drawer.is-open .wrv-drawer-footer {
    opacity: 1;
    transform: translateX(0);
}

.wrv-navigation-drawer .wrv-drawer-links a {
    transition:
        transform .22s ease,
        color .22s ease,
        border-color .22s ease,
        background .22s ease,
        box-shadow .22s ease;
}

@media (prefers-reduced-motion: reduce) {
    .wrv-navigation-drawer .wrv-drawer-header,
    .wrv-navigation-drawer .wrv-drawer-links,
    .wrv-navigation-drawer .wrv-drawer-footer {
        opacity: 1;
        transform: none;
        transition: none !important;
    }
}


/* WRV LIBRARY — BROWSE HEADING FINAL WEIGHT */
.wrv-library-browse-heading h2 {
    font-weight: 900 !important;
    font-size: clamp(1.55rem, 3.5vw, 1.9rem) !important;
}


/* ============================================================
   WRV FINAL LIBRARY + ACCOUNT POLISH
   ============================================================ */

/* LIBRARY — prominent Browse Comic Collection heading */
.wrv-library-browse-heading h2 {
    font-size: clamp(1.75rem, 4.5vw, 2.15rem) !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

/* LIBRARY — FINAL KEYBOARD-STABLE SEARCH ICON */
.wrv-library-search-box {
    position: relative !important;
}

.wrv-library-search-icon {
    position: absolute !important;
    top: 0 !important;
    right: 8px !important;
    bottom: 0 !important;
    width: 48px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #ffffff !important;
    pointer-events: none !important;
}

.wrv-library-search-icon svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    color: #ffffff !important;
}

@media (max-width: 600px) {
    .wrv-library-search-icon {
        top: 0 !important;
        right: 6px !important;
        bottom: 0 !important;
        width: 46px !important;
        height: auto !important;
        transform: none !important;
    }

    .wrv-library-search-icon svg {
        width: 22px !important;
        height: 22px !important;
    }
}

/* ============================================================
   WRV ACCOUNT — FINAL STABLE REFRESH LAYOUT
   The account card may slide in.
   Header and footer remain physically stationary.
   Reserve the final content height before Firebase resolves.
   ============================================================ */

body:has(#accountContent) .section {
    min-height: 520px !important;
}

body:has(#accountContent) .account-content-loading {
    min-height: 520px !important;
    box-sizing: border-box !important;
}

/* Keep the footer completely outside the Account entrance motion. */
body:has(#accountContent) .account-footer {
    position: relative !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
}

body:has(#accountContent) .account-footer-brand,
body:has(#accountContent) .account-footer-brand img,
body:has(#accountContent) .account-footer-brand p,
body:has(#accountContent) .account-footer .footer-copy {
    transform: none !important;
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
}


/* ============================================================
   WRV NAV — FINAL UNIFIED SMOOTH PANEL MOTION
   Drawer, background and inner navigation move as ONE unit.
   No staggered icon/text entrance.
   ============================================================ */

.wrv-navigation-drawer {
    transition:
        transform .44s cubic-bezier(.16,1,.3,1),
        visibility .44s ease !important;
    will-change: transform;
}

.wrv-navigation-overlay {
    transition:
        opacity .44s cubic-bezier(.16,1,.3,1),
        visibility .44s ease !important;
    will-change: opacity;
}

.wrv-navigation-drawer .wrv-drawer-header,
.wrv-navigation-drawer .wrv-drawer-links,
.wrv-navigation-drawer .wrv-drawer-footer {
    transition:
        opacity .44s cubic-bezier(.16,1,.3,1),
        transform .44s cubic-bezier(.16,1,.3,1) !important;
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    .wrv-navigation-drawer,
    .wrv-navigation-overlay,
    .wrv-navigation-drawer .wrv-drawer-header,
    .wrv-navigation-drawer .wrv-drawer-links,
    .wrv-navigation-drawer .wrv-drawer-footer {
        transition: none !important;
        will-change: auto !important;
    }
}



/* LIBRARY — FINAL HEADING RHYTHM */
.wrv-library-browse-heading {
    margin-bottom: 14px !important;
}

.wrv-library-search-heading {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.wrv-library-search-box {
    margin-top: 14px !important;
}



/* ============================================================
   WRV ACCOUNT — MASTER ENTRANCE + STABLE FOOTER POSITION
   Main Account content uses the normal WRV page entrance.
   Header and footer never animate.
   Reserve enough vertical space so Firebase auth resolution
   cannot push the footer up/down after refresh.
   ============================================================ */

body:has(#accountContent) .section {
    min-height: 0 !important;
}

body:has(#accountContent) .account-content-loading {
    min-height: 0 !important;
    box-sizing: border-box !important;
}

body:has(#accountContent) .account-footer,
body:has(#accountContent) .account-footer-brand,
body:has(#accountContent) .account-footer-brand img,
body:has(#accountContent) .account-footer-brand p,
body:has(#accountContent) .account-footer .footer-copy {
    transform: none !important;
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
}

@media (min-width: 769px) {
    body:has(#accountContent) .section {
        min-height: 520px !important;
    }

    body:has(#accountContent) .account-content-loading {
        min-height: 360px !important;
    }
}



/* ============================================================
   WRV NAV — REFRESH ZERO-FLASH BUTTON
   Do not animate or fade the hamburger itself.
   ============================================================ */

header .wrv-nav-toggle,
header .header-top > .wrv-nav-toggle {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transition:
        background .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        transform .22s ease !important;
    will-change: auto !important;
}


/* ============================================================
   WRV FINAL — LIBRARY SEARCH + NAVIGATION MOTION
   ============================================================ */

/* ------------------------------------------------------------
   LIBRARY SEARCH
   Keep mobile input at 16px to prevent focus/viewport scaling.
   Lock the magnifying glass to the physical search box.
   ------------------------------------------------------------ */

.wrv-library-search-box {
    position: relative !important;
    contain: layout !important;
}

.wrv-library-search-box input {
    font-size: 16px !important;
    line-height: 1.2 !important;
}

.wrv-library-search-icon {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    bottom: auto !important;
    width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
}

.wrv-library-search-icon svg {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    transform: none !important;
}

@media (max-width: 600px) {
    .wrv-library-search-box input {
        font-size: 16px !important;
    }

    .wrv-library-search-icon {
        top: 50% !important;
        right: 5px !important;
        bottom: auto !important;
        width: 44px !important;
        height: 44px !important;
        transform: translateY(-50%) !important;
    }
}

/* ------------------------------------------------------------
   NAVIGATION
   The drawer is ONE physical object.
   Its children do not independently slide/fade.
   ------------------------------------------------------------ */

.wrv-navigation-drawer {
    transition:
        transform .52s cubic-bezier(.16,1,.3,1),
        visibility .52s ease !important;
    will-change: transform;
}

.wrv-navigation-drawer .wrv-drawer-header,
.wrv-navigation-drawer .wrv-drawer-links,
.wrv-navigation-drawer .wrv-drawer-footer {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
}

.wrv-navigation-overlay {
    transition:
        opacity .52s cubic-bezier(.16,1,.3,1),
        visibility .52s ease !important;
    will-change: opacity;
}

@media (prefers-reduced-motion: reduce) {
    .wrv-navigation-drawer,
    .wrv-navigation-overlay {
        transition: none !important;
        will-change: auto !important;
    }
}


/* WRV ACCOUNT FOOTER — COMPLETELY STATIC ON REFRESH */
body:has(#accountContent) .account-footer,
body:has(#accountContent) .account-footer-brand,
body:has(#accountContent) .account-footer-brand img,
body:has(#accountContent) .account-footer-brand p,
body:has(#accountContent) .account-footer .footer-copy,
body:has(#accountContent) .account-footer a {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
}


/* WRV ACCOUNT — FORCE MASTER ENTRANCE MOTION */
body:has(#accountContent) > .section {
    animation: wrvFinalSafeSlideUp 1s ease both !important;
    will-change: transform, opacity;
}


/* WRV NAV — FINAL ONE-PIECE OPEN MOTION */
.wrv-navigation-drawer {
    transition:
        transform .52s cubic-bezier(.22,1,.36,1),
        visibility .52s step-end !important;
}

.wrv-navigation-drawer .wrv-drawer-header,
.wrv-navigation-drawer .wrv-drawer-links,
.wrv-navigation-drawer .wrv-drawer-footer {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

.wrv-navigation-overlay {
    opacity: 0;
    transition:
        opacity .52s cubic-bezier(.22,1,.36,1),
        visibility 0s linear .52s !important;
}

.wrv-navigation-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    transition:
        opacity .52s cubic-bezier(.22,1,.36,1),
        visibility 0s linear 0s !important;
}

/* WRV HOME — COMPACT DESKTOP-MODE PHONE CARD */
@media(min-width:769px) and (max-width:1100px){
    #latestComic{
        max-width:520px;
        margin-left:auto;
        margin-right:auto;
    }

    #latestComic .card{
        display:flex;
        flex-direction:column;
        min-height:0;
    }

    #latestComic .card > img{
        width:100%;
        height:auto !important;
        min-height:0;
        aspect-ratio:2 / 3 !important;
        object-fit:contain !important;
        border-right:none;
        border-bottom:1px solid rgba(0,229,255,.18);
    }

    #latestComic .card .card-content{
        padding:24px 22px 22px;
    }

    #latestComic .card .card-content h3{
        font-size:24px;
        margin-bottom:14px;
    }

    #latestComic .card .price{
        font-size:20px;
        margin:6px 0 18px;
        padding:8px 15px;
    }

    #latestComic .card .buy{
        min-height:50px;
        font-size:18px;
    }
}

/* =========================================================
   WRV COMICS — MOBILE COMPACT CARD INTERNALS
   Keep desktop styling and 2:3 covers unchanged.
========================================================= */
@media (max-width: 768px){

    /* Library: always 2 columns on normal mobile */
    body:has(#library) #library{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:18px;
    }

    /* Library card internals — compact like desktop */
    body:has(#library) #library .card-content{
        padding:14px 12px 12px;
    }

    body:has(#library) #library .card-content h2{
        margin:0 0 10px;
        font-size:16px;
        line-height:1.25;
    }

    body:has(#library) #library .buy,
    body:has(#library) #library .read{
        width:100%;
        min-height:42px;
        padding:10px 8px;
        margin-top:8px;
        border-radius:11px;
        font-size:14px !important;
        line-height:1.2;
    }

    body:has(#library) #library .animation-link{
        margin:10px 0 0;
        padding:9px 10px;
        min-height:36px;
        border-radius:10px;
        font-size:10px;
        line-height:1.2;
        letter-spacing:.8px;
    }

    /* Homepage: same compact internal proportions */
    #latestComic .card .card-content{
        padding:22px 16px 18px;
    }

    #latestComic .card .card-content h3{
        margin-bottom:10px;
        font-size:22px;
        line-height:1.25;
    }

    #latestComic .card .card-content p{
        margin-bottom:10px;
        font-size:14px;
        line-height:1.55;
    }

    #latestComic .card .price{
        margin:6px 0 12px;
        padding:7px 13px;
        font-size:20px;
    }

    #latestComic .card .buy{
        min-height:46px;
        padding:10px 12px;
        border-radius:12px;
        font-size:16px;
        line-height:1.2;
    }
}

/* Keep medium-size mobile/tablet widths at 2 columns too. */
@media (min-width:481px) and (max-width:768px){
    body:has(#library) #library{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

/* =========================
   WRV PREMIUM PROFILE
========================= */

.wrv-profile{
    width:100%;
    max-width:620px;
    margin:0 auto;
    text-align:center;
}

.wrv-profile-photo-wrap{
    position:relative;
    width:128px;
    height:128px;
    margin:4px auto 20px;
}

.wrv-profile-photo{
    display:block;
    width:128px;
    height:128px;
    object-fit:cover;
    border-radius:50%;
    border:3px solid rgba(255,255,255,.92);
    box-shadow:
        0 0 0 5px rgba(91,192,255,.10),
        0 10px 30px rgba(0,0,0,.30);
    background:rgba(255,255,255,.08);
}

.wrv-profile-camera{
    position:absolute;
    right:-2px;
    bottom:2px;
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    border:2px solid rgba(255,255,255,.92);
    border-radius:50%;
    background:#111827;
    color:#ffffff;
    box-shadow:0 5px 16px rgba(0,0,0,.35);
    cursor:pointer;
    transition:
        transform .2s ease,
        filter .2s ease;
}

.wrv-profile-camera:hover{
    transform:scale(1.06);
    filter:brightness(1.12);
}

.wrv-profile-camera:focus-visible{
    outline:2px solid #FFD700;
    outline-offset:3px;
}

.wrv-profile-camera span{
    font-size:17px;
    line-height:1;
}

.wrv-profile-identity{
    margin:0 auto 20px;
}

.wrv-profile-name-row{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
}

.wrv-profile-name{
    margin:0;
    color:#ffffff;
    font-size:28px;
    line-height:1.2;
    font-weight:800;
    overflow-wrap:anywhere;
}

.wrv-profile-handle{
    margin:7px 0 0;
    color:#FFD700;
    font-size:15px;
    line-height:1.4;
    font-weight:700;
}

.wrv-profile-motto{
    margin:8px auto 0;
    max-width:460px;
    color:rgba(255,255,255,.78);
    font-size:14px;
    line-height:1.6;
}

.wrv-profile-badge{
    width:22px;
    height:22px;
    flex:0 0 22px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin:0;
    padding:0;
    border:0;
    border-radius:50%;
    background:transparent;
    color:#ffffff;
}

.wrv-profile-badge-icon{
    width:20px;
    height:20px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#3B9EFF;
    color:#ffffff;
    font-size:13px;
    line-height:1;
    font-weight:900;
    box-shadow:0 0 12px rgba(59,158,255,.28);
}

.wrv-profile-stats{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
    margin:24px 0 30px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:14px;
    background:rgba(255,255,255,.035);
    overflow:hidden;
}

.wrv-profile-stat{
    min-width:0;
    padding:18px 12px;
}

.wrv-profile-stat + .wrv-profile-stat{
    border-left:1px solid rgba(255,255,255,.12);
}

.wrv-profile-stat strong{
    display:block;
    color:#ffffff;
    font-size:22px;
    line-height:1.25;
    font-weight:800;
    overflow-wrap:anywhere;
}

.wrv-profile-stat span{
    display:block;
    margin-top:6px;
    color:rgba(255,255,255,.68);
    font-size:12px;
    line-height:1.4;
    font-weight:600;
}

.wrv-profile-section{
    width:100%;
    margin:0 0 28px;
    text-align:left;
}

.wrv-profile-section-heading{
    margin:0 0 14px;
}

.wrv-profile-section-heading > span{
    display:block;
    color:rgba(255,255,255,.72);
    font-size:12px;
    line-height:1.4;
    letter-spacing:1.4px;
    font-weight:800;
}

.wrv-profile-section-heading .account-accent{
    margin-top:8px;
}

.wrv-profile-info{
    width:100%;
    border:1px solid rgba(255,255,255,.12);
    border-radius:14px;
    background:rgba(255,255,255,.035);
    overflow:hidden;
}

.wrv-profile-info-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:16px 16px;
}

.wrv-profile-info-row + .wrv-profile-info-row{
    border-top:1px solid rgba(255,255,255,.10);
}

.wrv-profile-info-label{
    flex:0 0 auto;
    color:rgba(255,255,255,.62);
    font-size:13px;
    font-weight:700;
}

.wrv-profile-info-value{
    min-width:0;
    color:#ffffff;
    font-size:14px;
    font-weight:600;
    text-align:right;
    overflow-wrap:anywhere;
}

.wrv-profile-name-edit{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    width:min(100%,380px);
}

.wrv-profile-name-input{
    min-width:0;
    width:100%;
    box-sizing:border-box;
    padding:9px 10px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:8px;
    background:rgba(0,0,0,.18);
    color:#ffffff;
    font:inherit;
    font-size:14px;
    font-weight:600;
}

.wrv-profile-name-input:focus{
    outline:2px solid rgba(255,215,0,.7);
    outline-offset:1px;
}

.wrv-profile-save{
    flex:0 0 auto;
    padding:9px 13px;
    border:0;
    border-radius:8px;
    background:#FFD700;
    color:#000000;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
}

.wrv-profile-save:hover{
    filter:brightness(1.08);
}

.wrv-profile-save:disabled{
    opacity:.6;
    cursor:not-allowed;
}

.wrv-profile-actions{
    margin-top:4px;
}

@media (max-width:600px){

    .wrv-profile{
        max-width:100%;
    }

    .wrv-profile-photo-wrap{
        width:116px;
        height:116px;
        margin-bottom:18px;
    }

    .wrv-profile-photo{
        width:116px;
        height:116px;
    }

    .wrv-profile-camera{
        width:36px;
        height:36px;
        right:-1px;
        bottom:1px;
    }

    .wrv-profile-name{
        font-size:25px;
    }

    .wrv-profile-stats{
        margin-top:20px;
        margin-bottom:26px;
    }

    .wrv-profile-info-row{
        align-items:flex-start;
        flex-direction:column;
        gap:9px;
    }

    .wrv-profile-info-value{
        width:100%;
        text-align:left;
    }

    .wrv-profile-name-edit{
        width:100%;
        justify-content:flex-start;
    }

}

/* =========================
   WRV ACCOUNT FOOTER LINKS
========================= */
.account-footer-links{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px 18px;
    margin-top:14px;
}

.account-footer-links a{
    color:rgba(255,255,255,.72);
    font-size:13px;
    font-weight:600;
    text-decoration:none;
    transition:
        color .2s ease,
        opacity .2s ease;
}

.account-footer-links a:hover,
.account-footer-links a:focus-visible{
    color:#ffffff;
    opacity:1;
}

@media (max-width:600px){
    .account-footer-links{
        gap:8px 14px;
    }

    .account-footer-links a{
        font-size:12px;
    }
}

/* WRV PROFILE EDIT CONTROLS */
.wrv-profile-photo-wrap{
    position:relative;
}

.wrv-profile-camera{
    z-index:10;
    right:7px;
    bottom:7px;
}

.wrv-profile-section-heading{
    position:relative;
}

.wrv-profile-edit{
    position:absolute;
    top:0;
    right:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:7px 12px;
    border:1px solid rgba(91,192,255,.32);
    border-radius:10px;
    background:
        linear-gradient(
            135deg,
            rgba(0,229,255,.10),
            rgba(91,92,255,.14)
        );
    color:#ffffff;
    font-size:13px;
    font-weight:800;
    line-height:1;
    cursor:pointer;
    box-shadow:
        0 0 14px rgba(0,229,255,.08),
        inset 0 1px 0 rgba(255,255,255,.10);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}

.wrv-profile-edit:hover,
.wrv-profile-edit:focus-visible{
    color:#ffffff;
    transform:translateY(-1px);
    filter:brightness(1.08);
    box-shadow:
        0 0 18px rgba(0,229,255,.14),
        inset 0 1px 0 rgba(255,255,255,.14);
}

.wrv-profile-edit span:first-child{
    font-size:18px;
    line-height:1;
}

.wrv-profile-name-input:disabled{
    opacity:1;
    cursor:default;
}

.wrv-profile-badge[hidden]{
    display:none !important;
}

@media (max-width:600px){
    .wrv-profile-edit{
        top:0;
        right:0;
        padding:7px 9px;
        font-size:12px;
    }

    .wrv-profile-camera{
        right:5px;
        bottom:5px;
    }
}
