:root{
    --pop-ink:var(--theme-ink);
    --pop-purple:var(--theme-purple);
    --pop-purple-dark:var(--theme-purple-deep);
    --pop-teal:var(--theme-teal);
    --pop-pink:var(--theme-pink);
    --pop-orange:var(--theme-orange);
    --pop-cream:var(--theme-cream);
    --pop-white:var(--theme-role-text-fff);
}

body{background:var(--pop-cream);color:var(--pop-ink);}
.pop-home{overflow:hidden;background:var(--pop-cream);}

.pop-hero{
    position:relative;
    padding:18px 0 34px;
    color:var(--theme-role-text-fff);
    background:var(--theme-hero-background);
}
.pop-hero:after{
    content:"";position:absolute;inset:0;pointer-events:none;opacity:.18;
    background:var(--theme-hero-texture);
    mask-image:linear-gradient(to bottom,var(--theme-role-effect-000),transparent 72%);
}
.pop-burst{position:absolute;border:4px solid var(--theme-role-border-rgba-255-255-255-1-6e5bc0);transform:rotate(18deg);}
.pop-burst-a{width:260px;height:260px;right:-110px;top:30px;border-radius:38% 62% 54% 46%;}
.pop-burst-b{width:180px;height:180px;left:-90px;bottom:-40px;border-radius:50%;}
.pop-hero-shell{position:relative;z-index:2;display:grid;gap:18px;}
.pop-hero-copy{text-align:center;padding:8px 0 0;}
.pop-sticker{display:inline-block;padding:6px 10px;background:var(--pop-teal);color:var(--theme-role-text-111);font-size:9px;font-weight:950;letter-spacing:.5px;transform:rotate(-2deg);box-shadow:4px 4px 0 var(--theme-role-shadow-rgba-0-0-0-22-41d185);}
.pop-hero-copy h1{margin:13px auto 0;max-width:720px;font-family:"Arial Narrow","Segoe UI",Arial,sans-serif;font-size:clamp(42px,13vw,76px);line-height:.9;letter-spacing:-2px;font-style:italic;font-weight:950;text-shadow:4px 4px 0 var(--theme-role-shadow-rgba-0-0-0-18-09884d);}
.pop-hero-copy h1 strong{display:block;color:var(--pop-teal);}
.pop-hero-copy p{max-width:520px;margin:13px auto 0;color:var(--theme-role-text-eee5ff);font-size:14px;font-weight:750;line-height:1.45;}

.pop-feature{position:relative;display:block;max-width:760px;margin:0 auto;border:3px solid var(--theme-role-border-101225);border-radius:18px;background:var(--theme-role-surface-fff);color:var(--theme-role-text-111);text-decoration:none;box-shadow:8px 8px 0 var(--theme-role-shadow-101225);transform:rotate(-.5deg);overflow:visible;}
.pop-feature-label{position:absolute;z-index:8;left:14px;top:-14px;padding:7px 12px;background:var(--theme-role-surface-ffea33);color:var(--theme-role-text-111);font-size:11px;font-weight:950;transform:rotate(-3deg);box-shadow:3px 3px 0 var(--theme-role-shadow-101225);}
.pop-feature-images{position:relative;display:grid;grid-template-columns:1fr 1fr;height:280px;overflow:hidden;border-radius:15px 15px 0 0;background:var(--theme-role-surface-19152b);}
.pop-fighter{position:relative;overflow:hidden;display:flex;align-items:flex-end;min-width:0;}
.pop-fighter:after{content:"";position:absolute;inset:auto 0 0;height:50%;background:linear-gradient(transparent,var(--theme-role-surface-rgba-0-0-0-82-40bf3c));}
.pop-fighter img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.pop-fighter b{position:relative;z-index:2;width:100%;padding:16px 14px;color:var(--theme-role-text-fff);font-family:"Arial Narrow",Arial,sans-serif;font-size:23px;font-style:italic;font-weight:950;text-transform:uppercase;text-shadow:2px 2px 0 var(--theme-role-shadow-000);}
.pop-right b{text-align:right;}
.pop-vs{position:absolute;z-index:5;left:50%;top:50%;display:grid;place-items:center;width:68px;height:68px;transform:translate(-50%,-50%) rotate(-6deg);border:4px solid var(--theme-role-border-111);border-radius:18px;background:var(--pop-teal);color:var(--theme-role-text-111);font-size:22px;font-weight:950;box-shadow:4px 4px 0 var(--theme-role-shadow-rgba-0-0-0-38-fba052);}
.pop-feature-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;background:var(--theme-role-surface-fff);border-radius:0 0 15px 15px;font-size:10px;font-weight:900;}
.pop-feature-footer strong{padding:10px 14px;border-radius:8px;background:var(--pop-pink);color:var(--theme-role-text-fff);font-size:11px;white-space:nowrap;}
.pop-feature-empty{padding:40px;text-align:center;}


.pop-quick-section{
    padding:26px 0 30px;
    background:
        radial-gradient(circle at 8% 20%,var(--theme-role-surface-rgba-91-32-200-12-152fa5),transparent 260px),
        var(--theme-role-surface-0b1023);
    color:var(--theme-role-text-fff);
    border-top:1px solid var(--theme-role-border-rgba-255-255-255-04-12b43a);
}
.pop-section-head{
    display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;
}
.pop-section-head>div{display:flex;align-items:center;gap:8px;}
.pop-section-head h2{
    margin:0;font-family:"Arial Narrow","Segoe UI",Arial,sans-serif;
    font-size:25px;line-height:1;font-style:italic;font-weight:950;letter-spacing:-.6px;
}
.pop-section-head a{
    color:var(--pop-teal);font-size:9px;font-weight:950;letter-spacing:.3px;text-decoration:none;
}
.pop-section-head a:after{content:"  →";}
.pop-quick-grid{
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;
}
.pop-quick-card{
    position:relative;min-width:0;height:112px;
    display:grid;grid-template-columns:1fr 34px 1fr;align-items:stretch;
    overflow:hidden;border:1px solid var(--theme-role-border-48406e);border-radius:10px;
    background:var(--theme-role-surface-161b35);color:var(--theme-role-text-fff);text-decoration:none;
    box-shadow:0 8px 18px var(--theme-role-shadow-rgba-0-0-0-18-09884d);
    transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.pop-quick-card:hover{
    transform:translateY(-2px);border-color:var(--pop-teal);box-shadow:0 11px 24px var(--theme-role-shadow-rgba-0-0-0-28-ca0b96);
}
.pop-quick-side{
    position:relative;min-width:0;height:112px;overflow:hidden;display:flex;align-items:flex-end;
}
.pop-quick-side:after{
    content:"";position:absolute;inset:30% 0 0;background:linear-gradient(transparent,var(--theme-role-surface-rgba-7-9-20-9-83dea8));
}
.pop-quick-side img{
    position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .22s ease;
}
.pop-quick-card:hover .pop-quick-side img{transform:scale(1.035);}
.pop-quick-side b{
    position:relative;z-index:2;width:100%;padding:8px 7px;font-size:10px;
    font-weight:950;line-height:1.02;text-transform:uppercase;text-shadow:1px 1px 2px var(--theme-role-shadow-000);
}
.pop-quick-vs{
    z-index:3;align-self:center;justify-self:center;display:grid;place-items:center;
    width:32px;height:32px;margin:0;border:2px solid var(--theme-role-border-fff);border-radius:50%;
    background:var(--theme-role-surface-fff);color:var(--theme-role-text-111225);font-size:10px;font-weight:950;
    box-shadow:0 0 0 4px var(--theme-role-shadow-rgba-11-16-35-9-861660);
}
.pop-quick-arrow{display:none;}

.pop-lists-section{
    padding:31px 0 36px;
    background:linear-gradient(180deg,var(--theme-role-surface-0b1023) 0%,var(--theme-role-surface-0d1229) 100%);
    color:var(--theme-role-text-fff);border-top:1px solid var(--theme-role-border-rgba-255-255-255-05-44501a);
}
.pop-section-head-dark h2{color:var(--theme-role-text-fff);}
.pop-head-note{
    display:block;color:var(--theme-role-text-9299b4);font-size:9px;font-weight:900;letter-spacing:.25px;
}
.pop-filter{
    margin:-3px 0 15px;color:var(--theme-role-text-858ca8);font-size:9px;font-weight:900;
}
.pop-filter strong{color:var(--pop-teal);}
.pop-list-grid{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;align-items:start;grid-auto-rows:max-content;
}
.pop-list-card{
    align-self:start;min-width:0;height:auto;overflow:hidden;
    border:1px solid var(--theme-role-border-535a79);border-radius:10px;background:var(--theme-role-surface-151a31);
    box-shadow:0 8px 18px var(--theme-role-shadow-rgba-0-0-0-18-09884d);
    transition:transform .18s ease,border-color .18s ease;
}
.pop-list-card:hover{transform:translateY(-2px);border-color:var(--theme-role-border-7b82a4);}
.pop-list-main{
    position:relative;display:grid;grid-template-columns:minmax(0,1.22fr) minmax(112px,.78fr);
    min-height:142px;color:var(--theme-role-text-fff);text-decoration:none;overflow:hidden;
}
.pop-list-main:after{
    content:"";position:absolute;inset:0;pointer-events:none;border-bottom:1px solid var(--theme-role-border-rgba-255-255-255-13-0634c1);
}
.pop-tone-1 .pop-list-main{background:linear-gradient(110deg,var(--theme-role-surface-19bebc) 0 57%,var(--theme-role-surface-16233a) 57%);}
.pop-tone-2 .pop-list-main{background:linear-gradient(110deg,var(--theme-role-surface-ff6f35) 0 57%,var(--theme-role-surface-28203b) 57%);}
.pop-tone-3 .pop-list-main{background:linear-gradient(110deg,var(--theme-role-surface-8259df) 0 57%,var(--theme-role-surface-20183c) 57%);}
.pop-tone-4 .pop-list-main{background:linear-gradient(110deg,var(--theme-role-surface-f13d83) 0 57%,var(--theme-role-surface-2d1730) 57%);}
.pop-list-copy{
    position:relative;z-index:2;min-width:0;display:flex;flex-direction:column;
    justify-content:center;padding:16px 15px 15px;
}
.pop-list-copy small{
    margin-bottom:5px;color:var(--theme-role-text-rgba-255-255-255-78-556568);font-size:7px;
    font-weight:950;letter-spacing:.55px;text-transform:uppercase;
}
.pop-list-copy strong{
    margin:0;color:var(--theme-role-text-fff);font-family:"Arial Narrow","Segoe UI",Arial,sans-serif;
    font-size:23px;line-height:.9;font-style:italic;font-weight:950;
    letter-spacing:-.4px;text-transform:uppercase;text-shadow:1px 2px 0 var(--theme-role-shadow-rgba-0-0-0-12-a6f872);
}
.pop-list-copy em{
    margin-top:9px;color:var(--theme-role-text-rgba-255-255-255-88-d0d52e);font-size:8px;font-style:normal;font-weight:950;
}
.pop-list-art{
    position:relative;overflow:hidden;display:grid;place-items:center;min-width:0;background:var(--theme-role-surface-11172c);
}
.pop-list-art:before{display:none;}
.pop-list-art:after{
    content:"";position:absolute;inset:0;z-index:2;
    background:linear-gradient(90deg,var(--theme-role-surface-rgba-12-17-36-18-76d544),transparent 28%);pointer-events:none;
}
.pop-list-art img{
    position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover;
}
.pop-list-art b{position:relative;z-index:3;color:var(--theme-role-text-fff);font-size:42px;}
.pop-list-actions{
    display:grid;grid-template-columns:1fr 1fr;min-height:38px;background:var(--theme-role-surface-14192f);border-top:0;
}
.pop-list-actions a{
    display:flex;align-items:center;justify-content:flex-start;min-height:38px;
    padding:0 13px;color:var(--theme-role-text-f5f6fb);text-decoration:none;font-size:8px;font-weight:950;letter-spacing:.2px;
}
.pop-list-actions a:after{
    content:"  →";margin-left:6px;color:var(--pop-teal);font-size:13px;line-height:1;
}
.pop-list-actions a+a{border-left:1px solid var(--theme-role-border-414863);}
.pop-list-actions .pop-battle-btn{background:var(--theme-role-surface-181d35);color:var(--theme-role-text-fff);}
.pop-list-actions .pop-battle-btn:after{display:none;}

.pop-create-section{padding:0 0 34px;background:var(--theme-role-surface-0d1229);}
.pop-create-card{
    position:relative;min-height:126px;overflow:hidden;
    display:grid;grid-template-columns:210px minmax(0,1fr) auto 150px;
    align-items:center;gap:22px;padding:18px 28px;
    border:1px solid var(--theme-role-border-4a5272);border-radius:12px;
    background:
        radial-gradient(circle at 12% 50%,var(--theme-role-surface-rgba-32-215-207-18-348af5),transparent 140px),
        radial-gradient(circle at 92% 40%,var(--theme-role-surface-rgba-255-63-146-13-6affa1),transparent 160px),
        var(--theme-role-surface-11172e);
    color:var(--theme-role-text-fff);text-align:left;box-shadow:none;
}
.pop-create-card:before{
    content:"?";position:relative;inset:auto;width:118px;height:82px;
    display:grid;place-items:center;justify-self:center;border-radius:54% 46% 50% 50%;
    background:var(--pop-teal);color:var(--theme-role-text-101225);
    font-family:"Arial Narrow",Arial,sans-serif;font-size:54px;font-style:italic;font-weight:950;
    transform:rotate(-7deg);box-shadow:24px 18px 0 -2px var(--pop-pink);
}
.pop-create-star{
    position:absolute;right:28px;top:14px;color:var(--pop-teal);font-size:24px;transform:rotate(12deg);
}
.pop-create-card>div{min-width:0;}
.pop-create-card small{
    color:var(--pop-pink);font-size:8px;font-weight:950;letter-spacing:.35px;
}
.pop-create-card h2{
    margin:4px 0 0;color:var(--theme-role-text-fff);font-family:"Arial Narrow","Segoe UI",Arial,sans-serif;
    font-size:31px;line-height:.92;font-style:italic;font-weight:950;letter-spacing:-.8px;
}
.pop-create-card p{
    margin:7px 0 0;color:var(--theme-role-text-aeb4c8);font-size:10px;font-weight:700;
}
.pop-create-card a{
    position:relative;display:inline-flex;align-items:center;justify-content:center;
    min-width:150px;margin:0;padding:12px 16px;border:2px solid var(--theme-role-border-0a0e20);border-radius:7px;
    background:var(--pop-teal);color:var(--theme-role-text-111225);text-decoration:none;font-size:9px;font-weight:950;
    box-shadow:3px 3px 0 var(--theme-role-shadow-070a16);
}

@media(max-width:1150px){
    .pop-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
    .pop-list-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
    .pop-create-card{grid-template-columns:150px minmax(0,1fr) auto;}
}

@media(max-width:760px){
    .pop-hero{padding-top:12px;padding-bottom:29px;}
    .pop-hero-shell{padding-left:14px;padding-right:14px;}
    .pop-feature{border-radius:14px;box-shadow:6px 6px 0 var(--theme-role-shadow-101225);}
    .pop-feature-images{height:245px;}
    .pop-fighter b{padding:13px 10px;font-size:18px;}
    .pop-vs{width:55px;height:55px;border-radius:15px;font-size:18px;}
    .pop-feature-footer{align-items:center;}
    .pop-feature-footer>span{max-width:58%;line-height:1.1;}

    .pop-quick-section{padding:22px 0 25px;}
    .pop-quick-section .site-shell,.pop-lists-section .site-shell{
        padding-left:14px;padding-right:14px;
    }
    .pop-section-head{margin-bottom:12px;}
    .pop-section-head h2{font-size:22px;}

    .pop-quick-grid{
        display:flex;gap:10px;margin-right:-14px;padding-right:14px;
        overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;
    }
    .pop-quick-grid::-webkit-scrollbar{display:none;}
    .pop-quick-card{
        flex:0 0 82%;height:102px;grid-template-columns:1fr 32px 1fr;scroll-snap-align:start;
    }
    .pop-quick-side{height:102px;}
    .pop-quick-side b{font-size:10px;}

    .pop-head-note{display:none;}
    .pop-lists-section{padding:26px 0 30px;}
    .pop-list-grid{grid-template-columns:1fr;gap:11px;}
    .pop-list-main{
        grid-template-columns:minmax(0,1.18fr) minmax(112px,.82fr);min-height:124px;
    }
    .pop-list-copy{padding:14px;}
    .pop-list-copy strong{font-size:22px;}
    .pop-list-actions a{min-height:36px;padding:0 12px;}

    .pop-create-section{padding:0 14px 29px;}
    .pop-create-card{
        min-height:0;grid-template-columns:1fr;gap:10px;
        padding:25px 20px 22px;text-align:center;
    }
    .pop-create-card:before{
        width:84px;height:60px;font-size:40px;box-shadow:17px 12px 0 -2px var(--pop-pink);
    }
    .pop-create-card h2{font-size:29px;}
    .pop-create-card p{font-size:10px;}
    .pop-create-card a{
        justify-self:center;min-width:175px;margin-top:4px;
    }
}

@media(max-width:420px){
    .pop-hero-copy h1{font-size:48px;}
    .pop-feature-images{height:220px;}
    .pop-fighter b{font-size:16px;}
    .pop-feature-footer{padding:11px;}
    .pop-feature-footer strong{padding:9px 10px;font-size:9px;}
    .pop-quick-card{flex-basis:88%;}
    .pop-list-main{grid-template-columns:minmax(0,1.25fr) 108px;min-height:118px;}
    .pop-list-copy strong{font-size:20px;}
}

/* =========================================================
   BattleRanker home2 v3 — targeted layout fixes
   ========================================================= */

/* 1. Desktop hero: copy LEFT, featured battle RIGHT. */
@media (min-width:700px){
    .pop-hero{
        padding:34px 0 46px;
    }

    .pop-hero-shell{
        grid-template-columns:minmax(0,.82fr) minmax(470px,1.18fr);
        align-items:center;
        gap:42px;
    }

    .pop-hero-copy{
        text-align:left;
        padding:0;
    }

    .pop-hero-copy h1{
        margin-left:0;
        margin-right:0;
        max-width:560px;
        font-size:clamp(56px,6vw,88px);
    }

    .pop-hero-copy p{
        margin-left:0;
        margin-right:0;
        max-width:520px;
    }

    .pop-feature{
        width:100%;
        max-width:760px;
        margin:0;
        justify-self:end;
    }

    .pop-feature-images{
        height:330px;
    }
}

/* 2. Quick battles: the two images now meet; VS floats on top of the join. */
.pop-quick-card{
    display:grid;
    grid-template-columns:1fr 1fr;
    position:relative;
}

.pop-quick-side{
    min-width:0;
}

.pop-quick-side:first-child{
    grid-column:1;
}

.pop-quick-side:nth-of-type(3){
    grid-column:2;
}

.pop-quick-vs{
    position:absolute;
    z-index:6;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    margin:0;
}

.pop-quick-arrow{
    display:none !important;
}

/* 3. Ranked-list cards: match the supplied reference card.
      Compact body, clean 50/50-ish split, one footer only. */
.pop-list-grid{
    align-items:start;
}

.pop-list-card{
    overflow:hidden;
    border:2px solid var(--theme-role-border-4c5575);
    border-radius:12px;
    background:var(--theme-role-surface-151a31);
    box-shadow:0 7px 16px var(--theme-role-shadow-rgba-0-0-0-22-41d185);
}

.pop-list-main{
    grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
    min-height:150px;
    background:none !important;
    overflow:hidden;
}

.pop-list-main:after{
    display:none;
}

.pop-list-copy{
    padding:18px 17px 15px;
}

.pop-tone-1 .pop-list-copy{background:var(--theme-role-surface-20c5c2);}
.pop-tone-2 .pop-list-copy{background:var(--theme-role-surface-ff6f36);}
.pop-tone-3 .pop-list-copy{background:var(--theme-role-surface-8058df);}
.pop-tone-4 .pop-list-copy{background:var(--theme-role-surface-ee3c82);}

.pop-list-copy small{
    margin-bottom:7px;
    color:var(--theme-role-text-rgba-255-255-255-88-d0d52e);
    font-size:8px;
}

.pop-list-copy strong{
    color:var(--theme-role-text-fff);
    font-size:24px;
    line-height:.91;
    text-shadow:none;
}

.pop-list-copy em{
    margin-top:10px;
    color:var(--theme-role-text-fff);
    font-size:8px;
}

.pop-list-art{
    min-height:150px;
    background:var(--theme-role-surface-11172c);
}

.pop-list-art:after{
    display:none;
}

.pop-list-art img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.pop-list-actions{
    display:block;
    min-height:40px;
    background:var(--theme-role-surface-191d36);
    border-top:1px solid var(--theme-role-border-rgba-255-255-255-12-895780);
}

.pop-list-actions a{
    min-height:40px;
    width:100%;
    justify-content:flex-start;
    padding:0 16px;
    color:var(--theme-role-text-fff);
    font-size:9px;
    font-weight:950;
    text-decoration:none;
}

.pop-list-actions a:after{
    display:none;
}

/* Keep the card proportions neat at tablet sizes. */
@media (max-width:1150px) and (min-width:761px){
    .pop-hero-shell{
        grid-template-columns:minmax(0,.78fr) minmax(430px,1.22fr);
        gap:28px;
    }

    .pop-hero-copy h1{
        font-size:58px;
    }

    .pop-list-main{
        min-height:142px;
    }

    .pop-list-art{
        min-height:142px;
    }
}

/* Mobile keeps the same card language, just stacked one per row. */
@media (max-width:760px){
    .pop-list-main{
        grid-template-columns:minmax(0,1.15fr) minmax(105px,.85fr);
        min-height:126px;
    }

    .pop-list-art{
        min-height:126px;
    }

    .pop-list-copy{
        padding:15px 14px 13px;
    }

    .pop-list-copy strong{
        font-size:21px;
    }

    .pop-quick-card{
        grid-template-columns:1fr 1fr;
    }
}


/* ================================================================
   BattleRanker Homepage V4 — ELECTRIC YELLOW THEME 1
   ---------------------------------------------------------------
   Existing homepage layout is preserved.
   The visible identity now comes from central theme tokens.
   ================================================================ */

.theme-home-electric{
    --home-accent:var(--theme-page-accent);
    --home-left:var(--theme-battle-left);
    --home-right:var(--theme-battle-right);
}

/* Whole homepage returns to the dark BattleRanker frame. */
.theme-home-electric .pop-home{
    background:var(--theme-bg)!important;
}

/* ------------------------------------------------
   HERO — retain the graphic texture, replace purple with electric dark.
   ------------------------------------------------ */
.theme-home-electric .pop-hero{
    background:
        radial-gradient(circle at 14% 18%,var(--theme-role-surface-rgba-231-255-0-10-7c0c34),transparent 270px),
        linear-gradient(135deg,var(--theme-role-surface-111521) 0%,var(--theme-role-surface-090d17) 50%,var(--theme-role-surface-05070d) 100%)!important;
    border-bottom:2px solid var(--home-accent)!important;
}

.theme-home-electric .pop-hero::after{
    background:
        repeating-radial-gradient(circle at 0 0,var(--theme-role-surface-rgba-231-255-0-10-7c0c34) 0 1px,transparent 1px 10px),
        linear-gradient(115deg,transparent 0 72%,var(--theme-role-surface-rgba-231-255-0-055-0e4447) 72.2% 72.7%,transparent 72.9%)!important;
    opacity:.20!important;
}

.theme-home-electric .pop-burst{
    border-color:var(--theme-role-border-rgba-231-255-0-12-acfeb4)!important;
}

.theme-home-electric .pop-sticker{
    background:var(--home-accent)!important;
    color:var(--theme-ink)!important;
    box-shadow:4px 4px 0 var(--theme-shadow-deep)!important;
}

.theme-home-electric .pop-hero-copy h1 strong{
    color:var(--home-accent)!important;
}

.theme-home-electric .pop-hero-copy p{
    color:var(--theme-role-text-c8cddc)!important;
}

/* Featured battle: yellow frame/labels, pink and blue remain battle semantics. */
.theme-home-electric .pop-feature{
    border-color:var(--home-accent)!important;
    background:var(--theme-role-surface-0d1228)!important;
    box-shadow:8px 8px 0 var(--theme-shadow-deep)!important;
}

.theme-home-electric .pop-feature-label{
    background:var(--home-accent)!important;
    color:var(--theme-ink)!important;
    box-shadow:3px 3px 0 var(--theme-shadow-deep)!important;
}

.theme-home-electric .pop-vs{
    border-color:var(--theme-ink)!important;
    background:var(--home-accent)!important;
    color:var(--theme-ink)!important;
    box-shadow:4px 4px 0 var(--theme-role-shadow-rgba-0-0-0-48-c5c38f)!important;
}

.theme-home-electric .pop-feature-footer{
    background:var(--theme-role-surface-11172e)!important;
    color:var(--theme-role-text-fff)!important;
}

.theme-home-electric .pop-feature-footer strong{
    background:var(--home-accent)!important;
    color:var(--theme-ink)!important;
}

/* ------------------------------------------------
   QUICK BATTLES
   ------------------------------------------------ */
.theme-home-electric .pop-quick-section{
    background:var(--theme-bg)!important;
    border-bottom-color:var(--theme-role-border-202841)!important;
}

.theme-home-electric .pop-section-head h2{
    color:var(--theme-role-text-fff)!important;
}

.theme-home-electric .pop-section-head > div > span,
.theme-home-electric .pop-section-head a{
    color:var(--home-accent)!important;
}

.theme-home-electric .pop-quick-card{
    border-color:var(--theme-role-border-444d69)!important;
    background:var(--theme-role-surface-11172e)!important;
}

.theme-home-electric .pop-quick-card:hover{
    border-color:var(--home-accent)!important;
    box-shadow:0 11px 24px var(--theme-role-shadow-rgba-0-0-0-30-6d79cf),0 0 18px var(--theme-role-shadow-rgba-231-255-0-08-1625d1)!important;
}

.theme-home-electric .pop-quick-vs{
    border-color:var(--theme-role-border-080b14)!important;
    background:var(--home-accent)!important;
    color:var(--theme-ink)!important;
    box-shadow:0 0 0 3px var(--theme-role-shadow-rgba-8-12-29-88-ae81a4)!important;
}

/* ------------------------------------------------
   RANKED LISTS — remove rainbow skin; one reusable yellow theme.
   ------------------------------------------------ */
.theme-home-electric .pop-lists-section{
    background:var(--theme-role-surface-0d1229)!important;
}

.theme-home-electric .pop-head-note,
.theme-home-electric .pop-filter strong{
    color:var(--home-accent)!important;
}

.theme-home-electric .pop-list-card{
    border-color:var(--theme-role-border-414a68)!important;
    background:var(--theme-role-surface-11172e)!important;
}

.theme-home-electric .pop-list-card:hover{
    border-color:var(--home-accent)!important;
    box-shadow:0 8px 22px var(--theme-role-shadow-rgba-0-0-0-22-41d185),0 0 17px var(--theme-role-shadow-rgba-231-255-0-06-6e76e4)!important;
}

.theme-home-electric .pop-tone-1 .pop-list-copy,
.theme-home-electric .pop-tone-2 .pop-list-copy,
.theme-home-electric .pop-tone-3 .pop-list-copy,
.theme-home-electric .pop-tone-4 .pop-list-copy{
    background:var(--home-accent)!important;
    color:var(--theme-ink)!important;
}

.theme-home-electric .pop-list-copy small,
.theme-home-electric .pop-list-copy strong,
.theme-home-electric .pop-list-copy em{
    color:var(--theme-ink)!important;
}

.theme-home-electric .pop-list-actions{
    background:var(--theme-role-surface-151b34)!important;
    border-top-color:var(--theme-role-border-343d5d)!important;
}

.theme-home-electric .pop-list-actions a{
    color:var(--theme-role-text-fff)!important;
}

.theme-home-electric .pop-list-actions a::after{
    color:var(--home-accent)!important;
}

/* ------------------------------------------------
   CREATE CTA
   ------------------------------------------------ */
.theme-home-electric .pop-create-section{
    background:var(--theme-role-surface-0d1229)!important;
}

.theme-home-electric .pop-create-card{
    border-color:var(--theme-role-border-4a526d)!important;
    background:
        radial-gradient(circle at 92% 18%,var(--theme-role-surface-rgba-231-255-0-08-1625d1),transparent 27%),
        linear-gradient(135deg,var(--theme-role-surface-151b34),var(--theme-role-surface-0d1228))!important;
}

.theme-home-electric .pop-create-card::before{
    background:var(--home-accent)!important;
    color:var(--theme-ink)!important;
    box-shadow:24px 18px 0 -2px var(--theme-role-shadow-151b34)!important;
}

.theme-home-electric .pop-create-star,
.theme-home-electric .pop-create-card small{
    color:var(--home-accent)!important;
}

.theme-home-electric .pop-create-card a{
    border-color:var(--theme-role-border-090c17)!important;
    background:var(--home-accent)!important;
    color:var(--theme-ink)!important;
    box-shadow:4px 4px 0 var(--theme-shadow-deep)!important;
}

/* Footer */
.theme-home-electric .site-footer{
    border-top-color:var(--theme-role-border-303755)!important;
    background:var(--theme-bg-deep)!important;
}

.theme-home-electric .footer-brand{
    color:var(--theme-role-text-fff)!important;
}

/* Mobile retains the accepted homepage geometry. */
@media(max-width:760px){
    .theme-home-electric .pop-feature{
        box-shadow:6px 6px 0 var(--theme-shadow-deep)!important;
    }

    .theme-home-electric .pop-list-card{
        border-color:var(--theme-role-border-414a68)!important;
    }

    .theme-home-electric .pop-create-card::before{
        box-shadow:17px 12px 0 -2px var(--theme-role-shadow-151b34)!important;
    }
}


/* ================================================================
   Homepage Theme 1 polish — yellow as accent, not slab
   ================================================================ */
.theme-home-electric .pop-tone-1 .pop-list-copy,
.theme-home-electric .pop-tone-2 .pop-list-copy,
.theme-home-electric .pop-tone-3 .pop-list-copy,
.theme-home-electric .pop-tone-4 .pop-list-copy{
    position:relative;
    background:
        linear-gradient(135deg,var(--theme-role-surface-rgba-231-255-0-055-0e4447),transparent 48%),
        var(--theme-role-surface-151b34) !important;
    color:var(--theme-role-text-fff) !important;
}

.theme-home-electric .pop-tone-1 .pop-list-copy::before,
.theme-home-electric .pop-tone-2 .pop-list-copy::before,
.theme-home-electric .pop-tone-3 .pop-list-copy::before,
.theme-home-electric .pop-tone-4 .pop-list-copy::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:5px;
    background:var(--theme-page-accent);
}

.theme-home-electric .pop-list-copy small{
    color:var(--theme-page-accent)!important;
}

.theme-home-electric .pop-list-copy strong{
    color:var(--theme-role-text-fff)!important;
}

.theme-home-electric .pop-list-copy em{
    color:var(--theme-role-text-aeb5c8)!important;
}

.theme-home-electric .pop-list-card{
    border-color:var(--theme-role-border-414a68)!important;
}

.theme-home-electric .pop-list-card:hover{
    border-color:var(--theme-page-accent)!important;
}

/* Keep yellow concentrated in labels, borders and actions. */
.theme-home-electric .pop-list-actions{
    background:var(--theme-role-surface-11172e)!important;
}


/* ================================================================
   BattleRanker Homepage V4.1 — ranked card dual actions
   RANKING + BATTLE are equal first-class routes from every list card.
   ================================================================ */
.pop-list-actions{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    min-height:42px !important;
    background:var(--theme-role-surface-11172e) !important;
    border-top:1px solid var(--theme-role-border-343d5d) !important;
}

.pop-list-actions a{
    min-width:0 !important;
    width:auto !important;
    min-height:42px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:0 10px !important;
    color:var(--theme-role-text-fff) !important;
    text-decoration:none !important;
    font-size:9px !important;
    font-weight:950 !important;
    letter-spacing:.25px !important;
    white-space:nowrap !important;
    transition:background .16s ease,color .16s ease !important;
}

.pop-list-actions a + a{
    border-left:1px solid var(--theme-role-border-343d5d) !important;
}

.pop-list-actions a::after{
    display:none !important;
}

.theme-home-electric .pop-list-actions .pop-ranking-btn:hover,
.theme-home-electric .pop-list-actions .pop-battle-btn:hover{
    background:var(--theme-page-accent) !important;
    color:var(--theme-ink) !important;
}

.theme-home-electric .pop-list-actions .pop-battle-btn{
    color:var(--theme-page-accent) !important;
}

.theme-home-electric .pop-list-actions .pop-battle-btn:hover{
    color:var(--theme-ink) !important;
}

@media(max-width:760px){
    .pop-list-actions,
    .pop-list-actions a{
        min-height:40px !important;
    }

    .pop-list-actions a{
        font-size:9px !important;
    }
}


/* ================================================================
   BattleRanker Homepage — Ranked List Category Strip
   ================================================================ */
.pop-category-strip{
    display:flex;
    align-items:center;
    gap:8px;
    margin:-1px 0 18px;
    padding:2px 0 3px;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
}

.pop-category-strip::-webkit-scrollbar{
    display:none;
}

.pop-category-pill{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:0 14px;
    border:1px solid var(--theme-role-border-414a68);
    border-radius:8px;
    background:var(--theme-role-surface-11172e);
    color:var(--theme-role-text-d6dbea);
    font-family:"Arial Narrow","Segoe UI",Arial,sans-serif;
    font-size:10px;
    line-height:1;
    font-style:italic;
    font-weight:950;
    letter-spacing:.25px;
    text-decoration:none;
    white-space:nowrap;
    transition:transform .16s ease,border-color .16s ease,background .16s ease,color .16s ease;
}

.pop-category-pill:hover{
    transform:translateY(-1px);
    border-color:var(--home-accent);
    color:var(--theme-role-text-fff);
}

.pop-category-pill.is-active{
    border-color:var(--home-accent);
    background:var(--home-accent);
    color:var(--theme-ink);
    box-shadow:3px 3px 0 var(--theme-role-shadow-05070d);
}

@media(max-width:760px){
    .pop-category-strip{
        margin:0 -16px 16px;
        padding:2px 16px 5px;
        scroll-padding-left:16px;
    }

    .pop-category-pill{
        min-height:36px;
        padding:0 15px;
        font-size:11px;
    }
}


/* Category-filter empty state — defensive fallback for stale/deep links. */
.pop-category-empty{
    grid-column:1 / -1;
    min-height:180px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:32px 20px;
    border:1px solid var(--theme-role-border-414a68);
    border-radius:12px;
    background:var(--theme-role-surface-11172e);
    text-align:center;
}

.pop-category-empty strong{
    color:var(--home-accent);
    font-size:18px;
    font-style:italic;
    font-weight:950;
}

.pop-category-empty span{
    color:var(--theme-role-text-d6dbea);
    font-size:12px;
    font-weight:700;
}

.pop-category-empty a{
    margin-top:8px;
    padding:10px 14px;
    border-radius:7px;
    background:var(--home-accent);
    color:var(--theme-ink);
    font-size:10px;
    font-weight:950;
    text-decoration:none;
}


/* ================================================================
   BattleRanker Homepage V4.2 — TEXT-ONLY FEATURED BATTLES
   When a featured contender has no image, centre the title in its
   half instead of leaving it low against the bottom edge.
   Image-backed featured battles are unchanged.
   ================================================================ */

.pop-feature .pop-fighter:not(:has(img)){
    align-items:center;
    justify-content:center;
    background:
        radial-gradient(circle at 50% 42%, var(--theme-role-surface-rgba-255-255-255-045-53fc29), transparent 38%),
        linear-gradient(180deg,var(--theme-role-surface-171429) 0%,var(--theme-role-surface-0d0b17) 100%);
}

.pop-feature .pop-fighter:not(:has(img))::after{
    display:none;
}

.pop-feature .pop-fighter:not(:has(img)) b{
    width:auto;
    max-width:88%;
    padding:18px 16px;
    color:var(--theme-role-text-fff);
    font-family:"Arial Narrow","Segoe UI",Arial,sans-serif;
    font-size:clamp(28px,3.2vw,46px);
    line-height:1.02;
    font-style:normal;
    font-weight:950;
    letter-spacing:-.035em;
    text-transform:none;
    text-align:center;
    text-shadow:0 4px 16px var(--theme-role-shadow-rgba-0-0-0-55-41e5a9);
}

.pop-feature .pop-right:not(:has(img)) b{
    text-align:center;
}

@media(max-width:760px){
    .pop-feature .pop-fighter:not(:has(img)) b{
        max-width:92%;
        padding:16px 12px;
        font-size:clamp(23px,7vw,34px);
        line-height:1.04;
        letter-spacing:-.025em;
    }
}

@media(max-width:420px){
    .pop-feature .pop-fighter:not(:has(img)) b{
        font-size:25px;
    }
}


/* ================================================================
   BattleRanker Homepage V4.3 — CARD CONTENT HIERARCHY POLISH
   Keep the accepted card layout/actions. Make category + item count
   read as deliberate metadata instead of tiny visual noise.
   ================================================================ */

.theme-home-electric .pop-list-copy{
    justify-content:center;
    padding:17px 17px 15px;
}

/* Category becomes a clear compact label instead of tiny loose text. */
.theme-home-electric .pop-list-copy small{
    align-self:flex-start;
    display:inline-flex;
    align-items:center;
    min-height:22px;
    margin:0 0 9px !important;
    padding:0 8px;
    border:1px solid var(--theme-role-border-rgba-231-255-0-42-8febc9);
    border-radius:5px;
    background:var(--theme-role-surface-rgba-231-255-0-08-1625d1);
    color:var(--theme-page-accent) !important;
    font-size:9px !important;
    line-height:1;
    font-weight:950;
    letter-spacing:.5px;
    white-space:nowrap;
}

/* Give the title slightly more breathing room from the metadata. */
.theme-home-electric .pop-list-copy strong{
    font-size:24px;
    line-height:.92;
    letter-spacing:-.45px;
}

/* Item count becomes a proper secondary line rather than microscopic copy. */
.theme-home-electric .pop-list-meta-row{
    gap:0;
    margin-top:11px;
}

.theme-home-electric .pop-list-meta-row em{
    display:inline-flex;
    align-items:center;
    min-height:20px;
    margin:0 !important;
    padding:0;
    color:var(--theme-role-text-aeb7ca) !important;
    font-size:10px !important;
    line-height:1;
    font-style:normal;
    font-weight:900;
    letter-spacing:.3px;
}

/* So the card still feels compact despite the clearer metadata. */
.theme-home-electric .pop-list-main{
    min-height:154px;
}

.theme-home-electric .pop-list-art{
    min-height:154px;
}

@media(max-width:760px){
    .theme-home-electric .pop-list-copy{
        padding:14px 14px 13px;
    }

    .theme-home-electric .pop-list-copy small{
        min-height:21px;
        margin-bottom:8px !important;
        padding:0 7px;
        font-size:9px !important;
    }

    .theme-home-electric .pop-list-copy strong{
        font-size:22px;
        line-height:.93;
    }

    .theme-home-electric .pop-list-meta-row{
        margin-top:9px;
    }

    .theme-home-electric .pop-list-meta-row em{
        font-size:10px !important;
    }

    .theme-home-electric .pop-list-main,
    .theme-home-electric .pop-list-art{
        min-height:132px;
    }
}


/* ================================================================
   BattleRanker Homepage V4.4 — ranked cards as mini Battles
   Two live contender images + restrained VS badge in the existing
   artwork half. Text, card proportions and four action buttons stay.
   ================================================================ */

.theme-home-electric .pop-list-art.pop-list-art-battle{
    position:relative;
    display:grid;
    grid-template-columns:1fr 1fr;
    min-width:0;
    overflow:hidden;
    background:var(--theme-role-surface-0d1228);
}

.theme-home-electric .pop-list-art-battle::after{
    display:none !important;
}

.theme-home-electric .pop-list-art-side{
    position:relative;
    display:grid;
    place-items:center;
    min-width:0;
    height:100%;
    overflow:hidden;
    background:
        radial-gradient(circle at 50% 45%,var(--theme-role-surface-rgba-231-255-0-08-1625d1),transparent 52%),
        var(--theme-role-surface-151b35);
}

.theme-home-electric .pop-list-art-side + .pop-list-art-side{
    border-left:1px solid var(--theme-role-border-rgba-255-255-255-12-895780);
}

.theme-home-electric .pop-list-art-side::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:2;
    pointer-events:none;
    background:
        linear-gradient(180deg,transparent 55%,var(--theme-role-surface-rgba-5-7-14-30-21aa57) 100%),
        linear-gradient(90deg,var(--theme-role-surface-rgba-5-7-14-08-8de2f4),transparent 26%,transparent 74%,var(--theme-role-surface-rgba-5-7-14-08-8de2f4));
}

.theme-home-electric .pop-list-art-side img{
    position:absolute;
    inset:0;
    z-index:1;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .18s ease,filter .18s ease;
}

.theme-home-electric .pop-list-card:hover .pop-list-art-side img{
    transform:scale(1.025);
}

.theme-home-electric .pop-list-art-side b{
    position:relative;
    z-index:1;
    color:var(--theme-role-text-dfff00);
    font-family:"Arial Narrow","Segoe UI",Arial,sans-serif;
    font-size:34px;
    font-style:italic;
    font-weight:950;
}

.theme-home-electric .pop-list-art-vs{
    position:absolute;
    left:50%;
    top:50%;
    z-index:6;
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    border:2px solid var(--theme-role-border-0a0e18);
    border-radius:50%;
    background:var(--theme-role-surface-dfff00);
    color:var(--theme-role-text-0a0e18);
    font-size:10px;
    line-height:1;
    font-style:italic;
    font-weight:1000;
    box-shadow:
        0 0 0 3px var(--theme-role-shadow-rgba-13-18-40-72-4f6c91),
        0 4px 10px var(--theme-role-shadow-rgba-0-0-0-32-78ad00);
    transform:translate(-50%,-50%) rotate(-5deg);
    pointer-events:none;
}

@media(max-width:760px){
    .theme-home-electric .pop-list-art-vs{
        width:30px;
        height:30px;
        font-size:9px;
        box-shadow:
            0 0 0 2px var(--theme-role-shadow-rgba-13-18-40-75-405930),
            0 3px 8px var(--theme-role-shadow-rgba-0-0-0-28-ca0b96);
    }
}

@media(max-width:420px){
    .theme-home-electric .pop-list-art-vs{
        width:28px;
        height:28px;
        font-size:8px;
    }
}


/* V4.4.1 — robust dual-card image rendering.
   Use each half's own background image so legacy .pop-list-art img
   positioning rules cannot interfere with the new mini-Battle layout. */
.theme-home-electric .pop-list-art-battle .pop-list-art-side{
    width:100%;
    min-width:0;
    min-height:100%;
    background-position:center center;
    background-repeat:no-repeat;
    background-size:cover;
}

.theme-home-electric .pop-list-art-battle .pop-list-art-side.has-image{
    background-color:var(--theme-role-surface-11172c);
}

.theme-home-electric .pop-list-art-battle .pop-list-art-side.has-image::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    pointer-events:none;
    background:linear-gradient(180deg,var(--theme-role-surface-rgba-0-0-0-02-bb2c70),var(--theme-role-surface-rgba-0-0-0-12-a6f872));
}

.theme-home-electric .pop-list-art-battle .pop-list-art-side::after{
    z-index:2;
}

.theme-home-electric .pop-list-art-battle .pop-list-art-vs{
    z-index:7;
}


/* ================================================================
   BattleRanker Homepage V4.5 — IMAGE-HEAD CARD EXPERIMENT
   Two contenders form the full card header, with ranking copy below.
   Existing four-action footer remains unchanged.
   ================================================================ */

.theme-home-electric .pop-list-card-image-head{
    display:block;
}

.theme-home-electric .pop-list-card-image-head .pop-list-art-head{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
    height:176px;
    min-height:176px;
    border-bottom:1px solid var(--theme-role-border-35405c);
    background:var(--theme-role-surface-0d1228);
}

.theme-home-electric .pop-list-card-image-head .pop-list-art-side{
    min-height:176px;
}

.theme-home-electric .pop-list-card-image-head .pop-list-art-vs{
    width:38px;
    height:38px;
    font-size:11px;
}

.theme-home-electric .pop-list-card-image-head .pop-list-main-below-art{
    display:block;
    min-height:0 !important;
    background:var(--theme-role-surface-151b34) !important;
}

.theme-home-electric .pop-list-card-image-head .pop-list-main-below-art::after{
    display:none !important;
}

.theme-home-electric .pop-list-card-image-head .pop-list-copy{
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-height:116px;
    padding:15px 17px 14px;
    background:
        linear-gradient(135deg,var(--theme-role-surface-rgba-231-255-0-045-5d766f),transparent 52%),
        var(--theme-role-surface-151b34) !important;
}

.theme-home-electric .pop-list-card-image-head .pop-list-copy::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:4px;
    background:var(--theme-role-surface-dfff00);
}

.theme-home-electric .pop-list-card-image-head .pop-list-copy strong{
    max-width:100%;
    font-size:25px;
    line-height:.92;
}

.theme-home-electric .pop-list-card-image-head .pop-list-meta-row{
    margin-top:10px;
}

/* The card already has its global left accent; remove the duplicate
   full-height stripe for this alternate layout. */
.theme-home-electric .pop-list-card-image-head::before{
    display:none;
}

@media(max-width:760px){
    .theme-home-electric .pop-list-card-image-head .pop-list-art-head{
        height:170px;
        min-height:170px;
    }

    .theme-home-electric .pop-list-card-image-head .pop-list-art-side{
        min-height:170px;
    }

    .theme-home-electric .pop-list-card-image-head .pop-list-copy{
        min-height:104px;
        padding:14px;
    }

    .theme-home-electric .pop-list-card-image-head .pop-list-copy strong{
        font-size:23px;
    }

    .theme-home-electric .pop-list-card-image-head .pop-list-art-vs{
        width:34px;
        height:34px;
        font-size:10px;
    }
}

@media(max-width:420px){
    .theme-home-electric .pop-list-card-image-head .pop-list-art-head{
        height:156px;
        min-height:156px;
    }

    .theme-home-electric .pop-list-card-image-head .pop-list-art-side{
        min-height:156px;
    }
}


/* ================================================================
   BattleRanker Homepage V4.5.1 — slightly more breathing room
   Keep the three-column geometry; only open the vertical rhythm.
   ================================================================ */
.pop-list-grid{
    row-gap:18px !important;
}


/* Homepage play-choice helper line */
.pop-battle-choice-copy{
    width: 100%;
    margin: 0 auto 10px;
    text-align: center;
    font-size: clamp(17px, 1.35vw, 24px);
    line-height: 1.08;
    font-weight: 950;
    font-style: italic;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--br-lime, var(--theme-role-text-eaff00));
}

@media (max-width: 760px){
    .pop-battle-choice-copy{
        margin-bottom: 9px;
        padding: 0 8px;
        font-size: 16px;
        line-height: 1.15;
    }
}


/* Keep the helper copy on its own row above the existing Explore heading */
.pop-battle-choice-copy{
    display:block !important;
    width:100% !important;
    flex:0 0 100% !important;
}

/* ================================================================
   BattleRanker Homepage V4.6 — ranking shelves
   LATEST / HOT / MORE TO BATTLE.
   Desktop = three-card rows. Mobile = horizontal swipe shelves.
   ================================================================ */

.pop-ranking-shelves{
    display:flex;
    flex-direction:column;
    gap:30px;
}

.pop-ranking-shelf{
    min-width:0;
}

.pop-ranking-shelf-head{
    display:flex;
    align-items:center;
    gap:9px;
    margin:0 0 12px;
}

.pop-ranking-shelf-head h3{
    margin:0;
    color:var(--theme-role-text-fff);
    font-family:"Arial Narrow","Segoe UI",Arial,sans-serif;
    font-size:24px;
    line-height:1;
    font-style:italic;
    font-weight:1000;
    letter-spacing:-.35px;
    text-transform:uppercase;
}

.pop-ranking-shelf-head > span{
    color:var(--theme-role-text-e7ff00);
    font-size:18px;
    line-height:1;
    font-weight:1000;
}

.pop-ranking-shelf-row{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:16px !important;
    row-gap:16px !important;
}

@media(min-width:761px) and (max-width:1099px){
    .pop-ranking-shelf-row{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}

@media(max-width:760px){
    .pop-ranking-shelves{
        gap:26px;
    }

    .pop-ranking-shelf-head{
        margin-bottom:10px;
    }

    .pop-ranking-shelf-head h3{
        font-size:22px;
    }

    .pop-ranking-shelf-row{
        display:flex !important;
        gap:11px !important;
        margin-right:-14px;
        padding:0 14px 7px 0;
        overflow-x:auto;
        overflow-y:hidden;
        scroll-snap-type:x mandatory;
        scroll-padding-left:0;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
    }

    .pop-ranking-shelf-row::-webkit-scrollbar{
        display:none;
    }

    .pop-ranking-shelf-row .rank-card-v2{
        flex:0 0 86%;
        width:86%;
        scroll-snap-align:start;
    }
}

@media(max-width:420px){
    .pop-ranking-shelf-row .rank-card-v2{
        flex-basis:89%;
        width:89%;
    }
}



/* ================================================================
   BattleRanker Homepage V4.7 — RANKINGS WALL
   Hero stays untouched. Lower homepage now behaves like a substantial
   browse surface rather than three small promotional shelves.
   ================================================================ */

.home-rankings-wall{
    padding-top:31px !important;
    padding-bottom:40px !important;
}

.home-ranking-browser{
    min-width:0;
}

.home-rankings-mode-bar{
    margin:3px 0 18px !important;
}

.home-rankings-head{
    margin-bottom:16px !important;
}

/* The shared Rankings card design is intentionally reused on home. */
.home-rankings-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:14px !important;
    align-items:stretch !important;
}

/* A touch more generous than the catalogue page: homepage cards need impact. */
.home-rankings-grid .ranking-card-main{
    min-height:226px;
}

.home-rankings-grid .ranking-card-copy>strong{
    font-size:23px;
}

.home-rankings-grid .ranking-card-actions a{
    min-height:46px;
    font-size:8.5px;
}

/* Homepage View Rankings remains the strong hand-off after the 15-card wall. */
.theme-home-electric .pop-view-rankings-section{
    padding-top:30px;
    border-top:1px solid var(--theme-role-border-252d49);
}

/* rankings.css defines its own page shell; these shared components should
   inherit the homepage shell/background instead. */
.theme-home-electric .home-ranking-browser .rankings-mode-bar,
.theme-home-electric .home-ranking-browser .rankings-section-head,
.theme-home-electric .home-ranking-browser .rankings-grid{
    width:100%;
}

@media(max-width:1050px){
    .home-rankings-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}

@media(max-width:720px){
    .home-rankings-wall{
        padding-top:25px !important;
        padding-bottom:28px !important;
    }

    .home-rankings-mode-bar{
        margin:2px 0 14px !important;
    }

    .home-rankings-grid{
        grid-template-columns:1fr !important;
        gap:11px !important;
    }

    .home-rankings-grid .ranking-card-main{
        min-height:190px;
    }

    .home-rankings-grid .ranking-card-copy>strong{
        font-size:19px;
    }
}

/* Homepage section tidy-up — no sort tabs/headline block, just steps + categories + cards */
.home-rankings-wall{
    padding-top:16px !important;
}

.home-rankings-wall .pop-category-strip{
    margin:0 0 18px;
}

.home-rankings-wall .home-ranking-browser{
    min-width:0;
}

@media(max-width:720px){
    .home-rankings-wall{
        padding-top:14px !important;
    }

    .home-rankings-wall .pop-category-strip{
        margin:0 0 14px;
    }
}
