/* ============================================================
   adakomik — Tema Loki
   Palet: Void (hijau-hitam), Loki Green, Asgardian Gold
   ============================================================ */

:root {
    --bg:        #070b09;
    --bg-2:      #0c120e;
    --bg-3:      #121b15;
    --line:      #1f2f26;
    --line-soft: #18241d;

    --green:      #00d26a;
    --green-bright:#3df2a0;
    --green-dim:  rgba(0, 210, 106, .12);
    --gold:       #d4af37;
    --gold-bright:#f5d76e;
    --gold-dim:   rgba(212, 175, 55, .14);

    --text:       #e9f1ec;
    --muted:      #8da597;
    --danger:     #ef5b5b;

    --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Cinzel', 'Georgia', serif;

    --radius: 14px;
    --shadow: 0 12px 40px rgba(0, 0, 0, .45);
    --glow-green: 0 0 24px rgba(0, 210, 106, .25);
    --glow-gold:  0 0 24px rgba(212, 175, 55, .25);

    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-bright); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green); }

.container { width: min(1200px, 92%); margin-inline: auto; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--gold); color: #000; padding: .6rem 1rem; z-index: 99;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(7, 11, 9, .86);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    height: var(--header-h);
    display: flex; align-items: center; gap: 1.4rem;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark {
    display: inline-flex;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, .35));
}
.brand-text {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.45rem;
    letter-spacing: .04em;
    color: var(--text);
}
.brand-text em {
    font-style: normal;
    background: linear-gradient(120deg, var(--green-bright), var(--green));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav { display: flex; align-items: center; gap: .35rem; margin-left: .5rem; }

.main-nav > a, .nav-drop-btn {
    position: relative;
    color: var(--muted);
    padding: .5rem .9rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    background: none; border: none; cursor: pointer;
    font-family: inherit;
}
.main-nav > a:hover, .nav-drop-btn:hover { color: var(--text); }
.main-nav > a.is-active { color: var(--green-bright); }
.main-nav > a.is-active::after {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .1rem;
    height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--green), transparent);
    box-shadow: var(--glow-green);
}
.caret { font-size: .7rem; margin-left: .2rem; }

.nav-drop { position: relative; }
.nav-drop-menu {
    position: absolute; top: calc(100% + 10px); left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 260px; max-height: 70vh; overflow-y: auto;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .5rem;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: all .18s ease;
    box-shadow: var(--shadow);
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-drop-menu a {
    display: flex; justify-content: space-between; align-items: center;
    padding: .55rem .8rem; border-radius: 8px;
    color: var(--text); font-size: .92rem;
}
.nav-drop-menu a:hover { background: var(--green-dim); color: var(--green-bright); }
.badge-count {
    font-size: .72rem; color: var(--gold-bright);
    background: var(--gold-dim); border: 1px solid rgba(212,175,55,.3);
    padding: .05rem .45rem; border-radius: 99px;
}

.header-search { margin-left: auto; display: flex; align-items: center; }
.header-search input {
    width: 230px;
    background: var(--bg-3);
    border: 1px solid var(--line);
    color: var(--text);
    padding: .55rem 1rem;
    border-radius: 99px 0 0 99px;
    font-family: inherit; font-size: .9rem;
    outline: none;
    transition: border-color .2s, width .25s;
}
.header-search input:focus { border-color: var(--green); width: 280px; }
.header-search button {
    background: linear-gradient(120deg, var(--green), #00a35a);
    border: 1px solid var(--green);
    border-radius: 0 99px 99px 0;
    color: #04120a;
    padding: .55rem .9rem;
    cursor: pointer;
    display: inline-flex; align-items: center;
}
.header-search button:hover { filter: brightness(1.1); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--text); margin: 5px 0;
    transition: transform .2s;
}
.mobile-menu {
    display: none;
    flex-direction: column; gap: .2rem;
    padding: 0 4% 1.2rem;
    border-top: 1px solid var(--line);
    background: var(--bg-2);
}
.mobile-menu.open { display: flex; }
.mobile-menu > a { padding: .7rem .2rem; color: var(--text); border-bottom: 1px solid var(--line-soft); }
.mobile-genres { display: flex; flex-wrap: wrap; gap: .4rem; padding: .8rem 0; }
.mobile-genres a {
    font-size: .85rem; color: var(--muted);
    border: 1px solid var(--line); padding: .25rem .7rem; border-radius: 99px;
}
.mobile-search { display: flex; gap: .5rem; margin-top: .4rem; }
.mobile-search input {
    flex: 1; background: var(--bg-3); border: 1px solid var(--line);
    color: var(--text); padding: .6rem .9rem; border-radius: 10px; font-family: inherit;
}
.mobile-search button {
    background: var(--green); color: #04120a; border: 0;
    padding: 0 1.1rem; border-radius: 10px; font-weight: 700; cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0 5rem;
    background:
        radial-gradient(1000px 420px at 15% -10%, rgba(0, 210, 106, .16), transparent 60%),
        radial-gradient(900px 460px at 90% 110%, rgba(212, 175, 55, .12), transparent 60%),
        var(--bg);
    border-bottom: 1px solid var(--line);
}
.hero::before {
    content: ""; position: absolute; inset: -40% -20%;
    background: conic-gradient(from 0deg,
        transparent 0deg, rgba(0,210,106,.05) 30deg, transparent 60deg,
        rgba(212,175,55,.05) 150deg, transparent 180deg,
        rgba(0,210,106,.05) 240deg, transparent 300deg);
    animation: swirl 30s linear infinite;
    pointer-events: none;
}
@keyframes swirl { to { transform: rotate(360deg); } }

.hero-inner { position: relative; text-align: center; }
.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: .8rem; letter-spacing: .45em; text-transform: uppercase;
    color: var(--gold-bright);
    border: 1px solid rgba(212,175,55,.4);
    padding: .4rem 1.2rem; border-radius: 99px;
    background: var(--gold-dim);
    margin-bottom: 1.4rem;
}
.hero h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.12;
    margin: 0 0 1rem;
}
.hero h1 .grad {
    background: linear-gradient(120deg, var(--green-bright), var(--green) 45%, var(--gold-bright));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p.lead {
    max-width: 620px; margin: 0 auto 2rem;
    color: var(--muted); font-size: 1.05rem;
}
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 700; font-size: .95rem;
    padding: .8rem 1.7rem; border-radius: 12px;
    transition: all .2s; cursor: pointer; border: 1px solid transparent;
}
.btn--green {
    background: linear-gradient(120deg, var(--green), #00a35a);
    color: #04120a; box-shadow: var(--glow-green);
}
.btn--green:hover { filter: brightness(1.12); color: #04120a; transform: translateY(-1px); }
.btn--ghost { border-color: var(--gold); color: var(--gold-bright); background: var(--gold-dim); }
.btn--ghost:hover { background: rgba(212,175,55,.25); color: var(--gold-bright); transform: translateY(-1px); }

.hero-stats {
    display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
    margin-top: 3rem;
}
.stat { text-align: center; }
.stat b {
    display: block; font-family: var(--font-display); font-weight: 700;
    font-size: 1.9rem; color: var(--gold-bright);
}
.stat span { font-size: .82rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Section ---------- */

.section { padding: 3.2rem 0; }
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.6rem;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 700; font-size: 1.5rem;
    margin: 0; display: flex; align-items: center; gap: .8rem;
}
.section-title::before {
    content: ""; width: 6px; height: 26px; border-radius: 3px;
    background: linear-gradient(180deg, var(--gold-bright), var(--green));
    box-shadow: var(--glow-gold);
}
.section-link { font-size: .9rem; font-weight: 600; white-space: nowrap; }

/* ---------- Kartu komik ---------- */

.komik-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 1.2rem;
}

.komik-card {
    position: relative;
    display: block;
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .22s, box-shadow .22s, border-color .22s;
}
.komik-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 210, 106, .5);
    box-shadow: var(--glow-green), var(--shadow);
}
.komik-card::after {
    content: ""; position: absolute; inset: 0;
    border-radius: inherit; pointer-events: none;
    border: 1px solid transparent;
}
.komik-card:hover::after {
    border-color: rgba(212, 175, 55, .35);
    box-shadow: inset 0 0 22px rgba(0, 210, 106, .08);
}

.komik-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--bg-2);
}
.komik-cover img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s;
}
.komik-card:hover .komik-cover img { transform: scale(1.06); }

.komik-badges { position: absolute; top: .5rem; left: .5rem; display: flex; flex-direction: column; gap: .3rem; }
.badge {
    font-size: .68rem; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase;
    padding: .18rem .55rem; border-radius: 6px;
    color: #04120a;
}
.badge--premium {
    background: linear-gradient(120deg, var(--gold-bright), var(--gold));
    box-shadow: 0 0 12px rgba(212,175,55,.5);
    color: #241a02;
}

.komik-views {
    position: absolute; right: .5rem; bottom: .5rem;
    font-size: .74rem; font-weight: 700; color: var(--text);
    background: rgba(7, 11, 9, .78);
    border: 1px solid var(--line);
    backdrop-filter: blur(4px);
    padding: .14rem .5rem; border-radius: 99px;
    display: inline-flex; align-items: center; gap: .3rem;
}

.komik-info { padding: .8rem .85rem 1rem; }
.komik-title {
    font-size: .92rem; font-weight: 700; line-height: 1.35;
    margin: 0 0 .35rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
    color: var(--text);
}
.komik-card:hover .komik-title { color: var(--green-bright); }
.komik-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: .78rem; color: var(--muted);
}
.komik-meta .chapters { color: var(--gold-bright); font-weight: 700; }

/* ---------- Pagination ---------- */

.pagination { margin-top: 2.4rem; text-align: center; }
.pagination-info { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.pagination-links { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; }
.page-btn {
    display: inline-flex; align-items: center;
    padding: .5rem .95rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--muted); font-weight: 600; font-size: .9rem;
    background: var(--bg-3);
    transition: all .18s;
}
.page-btn:hover { border-color: var(--green); color: var(--green-bright); }
.page-btn.active {
    background: linear-gradient(120deg, var(--green), #00a35a);
    color: #04120a; border-color: var(--green);
    box-shadow: var(--glow-green);
}
.page-dots { align-self: center; color: var(--muted); padding: 0 .2rem; }

/* ---------- Filter bar ---------- */

.filter-bar {
    display: flex; gap: .6rem; flex-wrap: wrap; align-items: center;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .9rem 1rem;
    margin-bottom: 1.6rem;
}
.filter-bar .filter-label {
    font-size: .8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--gold-bright); margin-right: .3rem;
}
.chip {
    padding: .42rem .95rem; border-radius: 99px;
    border: 1px solid var(--line);
    color: var(--muted); font-size: .86rem; font-weight: 600;
    background: var(--bg-3);
    transition: all .18s;
}
.chip:hover { border-color: var(--green); color: var(--green-bright); }
.chip.active {
    background: linear-gradient(120deg, var(--green), #00a35a);
    color: #04120a; border-color: var(--green);
}
.filter-right { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.filter-right select {
    background: var(--bg-3); color: var(--text);
    border: 1px solid var(--line); border-radius: 9px;
    padding: .45rem .8rem; font-family: inherit; font-size: .88rem;
    cursor: pointer;
}

/* ---------- Detail komik ---------- */

.detail-wrap { padding: 2.4rem 0 3.2rem; }

.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green-bright); }

.detail-hero {
    display: grid; grid-template-columns: 260px 1fr; gap: 2.2rem;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.8rem;
    position: relative; overflow: hidden;
}
.detail-hero::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--green), var(--gold));
    opacity: .7;
}

.detail-cover {
    position: relative;
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.detail-cover img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

.detail-info h1 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.25; margin: 0 0 .8rem;
}
.detail-stats {
    display: flex; gap: 1.6rem; flex-wrap: wrap;
    margin-bottom: 1.1rem; font-size: .88rem; color: var(--muted);
}
.detail-stats b { color: var(--gold-bright); font-weight: 700; }

.detail-genres { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.2rem; }

.detail-desc {
    color: var(--muted);
    background: var(--bg-3);
    border: 1px solid var(--line-soft);
    border-left: 3px solid var(--green);
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.2rem;
    margin-bottom: 1.4rem;
    white-space: pre-line;
    max-height: 200px; overflow-y: auto;
}

.detail-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

.related { margin-top: 3rem; }

/* ---------- Reader ---------- */

.reader-shell {
    position: fixed; inset: 0; z-index: 80;
    background: #030504;
    display: flex; flex-direction: column;
}
.reader-topbar {
    display: flex; align-items: center; gap: 1rem;
    padding: .6rem 1.2rem;
    background: rgba(7, 11, 9, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}
.reader-topbar .rt-title {
    font-size: .92rem; font-weight: 700; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.reader-topbar .rt-title small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; }
.reader-close {
    background: none; border: 1px solid var(--line); color: var(--text);
    width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
    font-size: 1rem; display: inline-flex; align-items: center; justify-content: center;
}
.reader-close:hover { border-color: var(--danger); color: var(--danger); }

.reader-progress-wrap { height: 4px; background: var(--bg-3); }
.reader-progress {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--green), var(--gold));
    transition: width .2s;
    box-shadow: var(--glow-green);
}

.reader-stage {
    flex: 1; overflow-y: auto;
    scroll-snap-type: y proximity;
}
.reader-page {
    max-width: 860px; margin: 0 auto;
    scroll-snap-align: start;
    position: relative;
}
.reader-page img {
    width: 100%; height: auto;
    display: block;
    background: #000;
    border-bottom: 1px solid var(--line-soft);
}
.reader-page .page-num {
    position: absolute; bottom: .8rem; right: .8rem;
    background: rgba(0, 0, 0, .7);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: .8rem; padding: .2rem .7rem; border-radius: 99px;
}

.reader-nav {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .8rem 1.2rem;
    background: rgba(7, 11, 9, .92);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(8px);
}
.reader-nav .rn-counter { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.rn-btn {
    padding: .55rem 1.2rem; border-radius: 10px;
    border: 1px solid var(--line); background: var(--bg-3);
    color: var(--text); font-weight: 700; font-size: .9rem; cursor: pointer;
    display: inline-flex; align-items: center; gap: .4rem;
    transition: all .18s;
}
.rn-btn:hover:not(:disabled) { border-color: var(--green); color: var(--green-bright); }
.rn-btn:disabled { opacity: .4; cursor: not-allowed; }
.rn-btn.primary { background: linear-gradient(120deg, var(--green), #00a35a); color: #04120a; border-color: var(--green); }
.rn-btn.primary:hover:not(:disabled) { color: #04120a; filter: brightness(1.1); }

.reader-loading {
    padding: 6rem 1rem; text-align: center; color: var(--muted);
}
.spinner {
    width: 44px; height: 44px; margin: 0 auto 1rem;
    border: 3px solid var(--line);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.reader-locked {
    max-width: 520px; margin: 10vh auto; text-align: center;
    background: var(--bg-2); border: 1px solid var(--line);
    border-radius: 18px; padding: 3rem 2rem;
}

/* ---------- Halaman kosong ---------- */

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: .8rem; opacity: .7; }

/* ---------- Halaman genre ---------- */

.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.1rem;
}
.genre-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform .22s, box-shadow .22s, border-color .22s;
}
.genre-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, .55);
    box-shadow: var(--glow-gold), var(--shadow);
}
.genre-card-cover { position: relative; aspect-ratio: 16 / 9; }
.genre-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.genre-card:hover .genre-card-cover img { transform: scale(1.06); }
.genre-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(7,11,9,.05) 30%, rgba(7,11,9,.94) 100%);
}
.genre-card-info {
    position: absolute; left: 1rem; right: 1rem; bottom: .9rem;
}
.genre-card-name {
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.1rem; margin: 0 0 .15rem;
    color: var(--text);
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.genre-card-count {
    font-size: .78rem; color: var(--gold-bright);
    font-weight: 700; letter-spacing: .05em;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    margin-top: 2rem;
}
.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2rem; padding: 3rem 0 2rem;
}
.brand--footer .brand-text { font-size: 1.25rem; }
.footer-desc { color: var(--muted); font-size: .88rem; max-width: 34ch; }
.footer-title {
    font-family: var(--font-display); font-size: .95rem;
    color: var(--gold-bright); margin: 0 0 .9rem;
    letter-spacing: .06em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a { color: var(--muted); font-size: .9rem; }
.footer-col a:hover { color: var(--green-bright); }

.footer-bottom {
    border-top: 1px solid var(--line-soft);
    padding: 1.1rem 0;
}
.footer-bottom .container {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: .82rem; color: var(--muted); }
.footer-runes { color: var(--gold); letter-spacing: .6em; }

/* ---------- Responsif ---------- */

@media (max-width: 900px) {
    .main-nav, .header-search { display: none; }
    .nav-toggle { display: block; margin-left: auto; }
    .detail-hero { grid-template-columns: 1fr; }
    .detail-cover { max-width: 240px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .komik-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .9rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 3.5rem 0 3rem; }
    .hero-stats { gap: 1.6rem; }
    .reader-nav { flex-wrap: wrap; justify-content: center; }
}

/* ---------- Age gate 18+ ---------- */

.age-gate {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(3, 5, 4, .96);
    backdrop-filter: blur(8px);
}
.age-gate-content {
    max-width: 460px; width: 100%;
    background: var(--bg-2);
    border: 1px solid rgba(212, 175, 55, .28);
    border-radius: 24px;
    padding: 40px 36px;
    text-align: center;
    box-shadow: var(--shadow), var(--glow-gold);
}
.age-gate-logo {
    width: 92px; height: 92px;
    margin: 0 auto 22px;
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 38px; font-weight: 900;
    color: var(--gold-bright);
    background: linear-gradient(135deg, rgba(212, 175, 55, .15), rgba(0, 210, 106, .12));
    border: 1px solid rgba(212, 175, 55, .4);
}
.age-gate-title {
    font-family: var(--font-display);
    font-size: 1.6rem; font-weight: 700;
    margin: 0 0 12px;
    color: var(--text);
}
.age-gate-desc { color: var(--muted); font-size: .95rem; line-height: 1.65; margin: 0 0 28px; }
.age-gate-actions { display: flex; gap: 12px; justify-content: center; }
.age-gate-btn { flex: 1; height: 52px; font-weight: 800; font-size: 1rem; }
.age-gate-btn-yes {
    background: linear-gradient(120deg, var(--green), #00a35a);
    border: 1px solid var(--green); color: #04120a;
    box-shadow: 0 8px 24px rgba(0, 210, 106, .2);
}
.age-gate-btn-yes:hover { filter: brightness(1.12); transform: translateY(-2px); color: #04120a; }
.age-gate-btn-no { background: rgba(229, 57, 53, .08); border: 1px solid rgba(229, 57, 53, .3); color: #ff6b66; }
.age-gate-btn-no:hover { background: rgba(229, 57, 53, .16); color: #ff6b66; }
body.age-gate-active { overflow: hidden; }

/* ---------- Mode baca gulir (vertical scroll) ---------- */

.mode-btn {
    padding: .5rem .95rem; font-size: .8rem; border-radius: 99px;
    border-color: rgba(212, 175, 55, .4); color: var(--gold-bright);
}
.mode-btn:hover { border-color: var(--gold); color: var(--gold-bright); }

.reader-shell.scroll-mode .reader-nav { display: none; }
.reader-shell.scroll-mode .reader-stage { scroll-snap-type: none; }
.reader-shell.scroll-mode .reader-page { max-width: 900px; margin: 0 auto 20px; }
.reader-shell.scroll-mode .reader-page img {
    border-radius: 14px;
    border: 1px solid var(--line-soft);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .3);
}
.reader-shell.scroll-mode .reader-page .page-num {
    position: static; display: inline-block;
    margin: 10px 0 0;
    background: rgba(0, 0, 0, .55);
}
.reader-shell.scroll-mode .reader-loading { display: none; }

@media (max-width: 560px) {
    .age-gate-content { padding: 32px 22px; }
    .age-gate-logo { width: 76px; height: 76px; font-size: 32px; }
    .age-gate-title { font-size: 1.35rem; }
    .age-gate-actions { flex-direction: column; }
}

/* ---------- Sentuhan & perangkat mobile ---------- */

a, button, input, select, .rn-btn { touch-action: manipulation; }

.reader-topbar, .reader-nav {
    padding-top: calc(.6rem + env(safe-area-inset-top));
    padding-bottom: calc(.6rem + env(safe-area-inset-bottom));
}
.reader-shell { height: 100vh; height: 100dvh; }

@media (max-width: 560px) {
    .genre-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .85rem; }
    .genre-card-name { font-size: .95rem; }

    .reader-topbar { padding: .5rem .75rem; }
    .reader-nav { padding: .6rem .75rem; gap: .55rem; }
    .reader-nav .rn-counter { order: -1; flex-basis: 100%; text-align: center; }
    .rn-btn { flex: 1; justify-content: center; min-height: 44px; }

    .nav-toggle, .main-nav a, .mobile-menu a, .btn, .rn-btn { min-height: 44px; }
    .section-title { font-size: 1.3rem; }
}

@media (max-width: 900px) {
    .genre-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
}
