:root {
    --ink: #041611;
    --deep: #052a21;
    --emerald: #087a5a;
    --jade: #13b77f;
    --gold: #e9b844;
    --gold2: #ffe39a;
    --paper: #f4fbf7;
    --muted: #587068;
    --line: #d7e8df;
    --shadow: 0 24px 70px rgba(3, 43, 32, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: auto; }
.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    background: #fff;
    color: var(--deep);
    padding: 8px 12px;
    z-index: 80;
    border-radius: 8px;
}
.skip-link:focus { top: 12px; }
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(3, 32, 24, .94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
body.admin-bar .top { top: 32px; }
.nav {
    position: relative;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 8px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 900; letter-spacing: .3px; }
.brand-mark, .brand img { width: 52px; height: 52px; object-fit: contain; }
.brand small { display: block; color: #9ed8c2; font-size: 10px; letter-spacing: 1.2px; margin-top: 2px; }
.menu { display: flex; gap: 18px; margin-left: auto; color: #d7efe6; font-size: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--gold2); }
.menu-btn {
    display: none;
    margin-left: auto;
    background: transparent;
    color: #fff;
    border: 1px solid #4a7465;
    border-radius: 12px;
    padding: 8px 11px;
    min-height: 44px;
}
.menu-search { display: none; }
.cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 850;
    border: 1px solid transparent;
    transition: .2s ease;
    max-width: 100%;
    text-align: center;
}
.nav > .cta { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cta:hover { transform: translateY(-2px); }
.gold { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #342500; box-shadow: 0 12px 30px rgba(233, 184, 68, .25); }
.ghost { background: #fff; border-color: var(--line); color: var(--deep); }

.hero {
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 20%, rgba(25, 214, 145, .27), transparent 28%),
        radial-gradient(circle at 12% 0, rgba(233, 184, 68, .14), transparent 30%),
        linear-gradient(135deg, #031b14, #07523e 64%, #073227);
    padding: 76px 0 58px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.eyebrow, .page-head .eyebrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .16);
    color: var(--gold2);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .6px;
}
.hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: .96; letter-spacing: -3px; margin: 22px 0; }
.hero h1 span { color: var(--gold2); }
.hero p { font-size: 18px; line-height: 1.7; color: #cce4da; max-width: 650px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .ghost { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); color: #fff; }
.showcase { position: relative; min-height: 420px; display: grid; place-items: center; }
.halo { position: absolute; width: min(360px, 80vw); height: min(360px, 80vw); border-radius: 50%; background: radial-gradient(circle, #1ed39a55, transparent 68%); }
.brand-card {
    position: relative;
    width: min(100%, 420px);
    padding: 28px;
    border-radius: 36px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .055));
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 38px 90px rgba(0, 0, 0, .35);
    text-align: center;
}
.brand-card > img { width: min(220px, 52vw); height: auto; aspect-ratio: 1; object-fit: contain; margin: auto; border-radius: 28px; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.trust-row div { padding: 12px 6px; border-radius: 14px; background: rgba(0, 0, 0, .18); font-size: 11px; color: #d7eee5; }
.trust-row b { display: block; color: var(--gold2); font-size: 15px; margin-bottom: 3px; }

.section { padding: 68px 0; }
.section.white { background: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.kicker { display: block; color: var(--emerald); font-size: 12px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 9px; }
.section h2, .page-head h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -1.5px; margin: 0; overflow-wrap: anywhere; }
.section-copy { max-width: 560px; color: var(--muted); line-height: 1.65; margin: 0; }
.page-head { padding: 54px 0 40px; color: #fff; background: linear-gradient(135deg, #031b14, #087055); }
.page-head .eyebrow { margin-bottom: 16px; }
.breadcrumbs { font-size: 13px; color: #b9d9cc; margin-bottom: 18px; overflow-wrap: anywhere; }
.breadcrumbs a { color: var(--gold2); }
.page-head p { max-width: 720px; color: #c9e5da; line-height: 1.7; }

.featured-grid { display: grid; grid-template-columns: 1.25fr repeat(2, .75fr); gap: 16px; }
.grid, .category-grid, .guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.game-card {
    display: flex;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(3, 43, 32, .06);
    overflow: hidden;
    min-width: 0;
}
.game-card-hit { display: flex; flex-direction: column; gap: 0; width: 100%; padding: 20px; color: inherit; min-width: 0; }
.game-card.primary { background: linear-gradient(145deg, #063a2d, #087b5b); color: #fff; }
.game-top { display: flex; gap: 14px; align-items: center; min-width: 0; }
.game-top > div { min-width: 0; }
img.game-logo, .letter-logo {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    object-fit: contain;
    border-radius: 17px;
    background: #f3faf6;
    border: 1px solid #dcece4;
}
.letter-logo { display: grid; place-items: center; font-weight: 800; color: var(--emerald); background: #e7f6ee; font-size: 26px; }
.primary .letter-logo { background: #fff; }
.game-card h3 { font-size: 19px; margin: 0 0 6px; overflow-wrap: anywhere; }
.game-card p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 15px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.game-card.primary p, .game-card.primary .url-line { color: #cbe9de; }
.meta { font-size: 11px; color: var(--emerald); font-weight: 800; letter-spacing: .4px; text-transform: uppercase; overflow-wrap: anywhere; }
.primary .meta, .primary .card-link { color: var(--gold2); }
.url-line { font-size: 12px; color: var(--muted); margin-top: 8px; overflow-wrap: anywhere; }
.card-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; color: var(--emerald); font-weight: 850; font-size: 13px; }
.category-card, .guide-card {
    display: block;
    min-width: 0;
    padding: 22px;
    border-radius: 23px;
    background: linear-gradient(145deg, #fff, #eef8f2);
    border: 1px solid var(--line);
}
.guide-card { background: #fff; border-radius: 22px; }
.category-card b { display: block; font-size: 20px; margin: 12px 0 8px; }
.category-card span, .guide-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.guide-card h3 { margin: 0 0 8px; font-size: 19px; }
.guide-card .icon { margin-bottom: 16px; }
.category-image { width: 44px; height: 44px; object-fit: cover; border-radius: 13px; }
.icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #dff6eb; color: var(--emerald); font-size: 18px; font-weight: 800; }
.guide-space { margin-top: 22px; }

.list-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.filters { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-bottom: 14px; }
.list-tools .filters { flex: 1 1 280px; min-width: 180px; margin-bottom: 0; }
.search, .menu-search input {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 0 16px;
    background: #fff;
    outline: none;
}
.search:focus { border-color: var(--jade); box-shadow: 0 0 0 3px #13b77f22; }
.chips { display: flex; gap: 8px; flex-wrap: nowrap; margin-left: auto; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 14px; color: var(--deep); min-height: 44px; }
.chip.active { background: var(--deep); color: #fff; border-color: var(--deep); }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
.home-notes { display: grid; gap: 16px; }
.home-notes .sidebar { position: static; order: 0; }
.home-notes h2 { font-size: clamp(22px, 2.5vw, 34px); letter-spacing: -0.6px; }
.article, .sidebar { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; min-width: 0; }
.page-article { max-width: 860px; margin: 0 auto; }
.article h2 { font-size: 27px; margin: 34px 0 12px; }
.article h2:first-child, .sidebar h2:first-child { margin-top: 0; }
.article h3 { font-size: 20px; margin: 25px 0 10px; }
.article p, .article li, .sidebar li { color: #4f675f; line-height: 1.75; }
.article li, .sidebar li { margin: 7px 0; }
.article ul, .article ol, .sidebar ul { padding-left: 18px; }
.notice { padding: 16px 18px; border-left: 4px solid var(--gold); border-radius: 10px; background: #fff8e7; color: #5b4b25; margin: 22px 0; }
.sidebar { position: sticky; top: 94px; }
.app-profile { text-align: center; }
.app-profile .profile-logo, .app-profile .letter-logo.profile-logo {
    width: 112px;
    height: 112px;
    flex-basis: 112px;
    border-radius: 25px;
    margin: 0 auto 14px;
}
.app-profile h2 { font-size: 24px; margin: 0 0 5px; }
.app-profile p { font-size: 12px; color: var(--muted); margin: 0 0 18px; overflow-wrap: anywhere; }
.sidebar .cta { width: 100%; margin-top: 9px; }
.facts { display: grid; gap: 10px; margin-top: 20px; text-align: left; }
.fact { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; background: #f1f8f4; border-radius: 11px; font-size: 12px; color: var(--muted); }
.fact b { color: var(--deep); text-align: right; overflow-wrap: anywhere; }
.faq { display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 17px 18px; }
summary { font-weight: 800; cursor: pointer; }
details p { color: var(--muted); line-height: 1.65; margin: 12px 0 0; }
.cluster-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; }
.cluster-links a { display: block; padding: 14px; border-radius: 14px; background: #eef8f3; border: 1px solid var(--line); color: var(--emerald); font-weight: 800; font-size: 13px; text-align: center; }
.hindi-box { margin: 24px 0; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, #e9f8f0, #fff8e6); border: 1px solid #cbe7d8; }
.hindi-box b { color: var(--emerald); }
.trust-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.trust-list div { padding: 15px; border-radius: 15px; background: #f0f8f4; color: var(--muted); font-size: 14px; line-height: 1.55; }
.compare-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.compare-table th, .compare-table td { text-align: left; padding: 13px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.compare-table th { background: #e7f6ee; color: var(--deep); }
.table-wrap { width: 100%; overflow-x: auto; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: 16px; }
.updated { color: var(--muted); font-size: 12px; margin-top: 12px; }
.related-block { margin-top: 28px; }
.empty-note { color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 16px; padding: 18px; }
.contact-card .cta { margin-top: 8px; }

.navigation.pagination, .pagination { margin-top: 28px; }
.nav-links, .pagination ul { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.page-numbers { min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 0 12px; }
.page-numbers.current { background: var(--deep); color: #fff; border-color: var(--deep); }

.footer { background: #031b14; color: #fff; padding: 52px 0 28px; }
.footer .brand { margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer p, .footer a { color: #a9c9bc; line-height: 1.65; font-size: 13px; }
.footer a { display: block; margin: 8px 0; overflow-wrap: anywhere; }
.footer h3 { font-size: 14px; color: var(--gold2); margin: 0 0 8px; }
.legal { border-top: 1px solid #23483b; margin-top: 28px; padding-top: 22px; color: #91b5a7; font-size: 12px; display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.bottom { display: none; }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
@media (hover: hover) {
    .game-card:hover, .guide-card:hover, .category-card:hover { transform: translateY(-4px); border-color: #8ccbb3; box-shadow: var(--shadow); }
}

@media (max-width: 900px) {
    .cluster-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    .hero-grid, .content-layout { grid-template-columns: 1fr; }
    .showcase { min-height: 360px; }
    .featured-grid { grid-template-columns: 1fr 1fr; }
    .featured-grid .primary { grid-column: 1 / -1; }
    .sidebar { position: relative; top: 0; }
    .category-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
    body.admin-bar .top { top: 32px; }
}
@media (max-width: 1100px) {
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        padding: 18px 20px 20px;
        background: #03251c;
        flex-direction: column;
        align-items: stretch;
        z-index: 40;
    }
    .menu.open { display: flex; }
    .menu a { padding: 8px 0; }
    .menu-btn { display: block; }
    .menu-search { display: flex; gap: 8px; width: 100%; }
    .menu-search input { min-height: 48px; border-radius: 12px; border: 1px solid #345e50; background: #02140f; color: #fff; }
    .menu-search button { min-height: 48px; border: 0; border-radius: 12px; background: var(--gold); color: #342500; font-weight: 800; padding: 0 14px; }
}
@media (max-width: 782px) {
    body.admin-bar .top { top: 46px; }
}
@media (max-width: 720px) {
    body { padding-bottom: 74px; }
    .wrap { width: min(100% - 24px, 1180px); }
    .nav { min-height: 64px; }
    .brand-mark, .brand img { width: 44px; height: 44px; }
    .nav > .cta { display: none; }
    .hero { padding: 16px 0 18px; }
    .hero-grid { gap: 16px; }
    .hero .eyebrow { padding: 5px 10px; font-size: 11px; }
    .hero h1 { font-size: 32px; line-height: 1.05; letter-spacing: -1.2px; margin: 12px 0; }
    .hero p { font-size: 14px; line-height: 1.5; }
    .hero .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
    .hero .actions .cta { min-height: 42px; padding: 0 8px; font-size: 13px; white-space: nowrap; }
    .showcase { min-height: 0; margin-top: 0; }
    .brand-card { padding: 12px 14px; border-radius: 24px; }
    .brand-card > img { width: min(160px, 42vw); border-radius: 22px; }
    .trust-row { gap: 6px; margin-top: 12px; }
    .trust-row div { padding: 8px 4px; font-size: 10px; }
    .trust-row b { font-size: 14px; }
    .section { padding: 36px 0; }
    .section-head { display: block; }
    .section-head .cta { margin-top: 16px; }
    .section-copy { margin-top: 12px; }
    .featured-grid, .grid { grid-template-columns: 1fr; }
    .category-grid, .guide-grid { grid-template-columns: 1fr 1fr; }
    .category-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 14px; }
    .category-card .icon, .category-card .category-image { grid-row: 1 / span 2; }
    .category-card b { margin: 0 0 2px; font-size: 16px; }
    .category-card span { font-size: 12px; line-height: 1.35; }
    .list-tools { gap: 8px; }
    .list-tools .filters { grid-template-columns: 1fr; min-width: 0; }
    .list-tools .filters .cta { display: none; }
    .chips { min-width: 0; overflow-x: auto; }
    .chip { flex: 0 0 auto; }
    .filters { grid-template-columns: 1fr; }
    .filters .cta { min-height: 48px; }
    .game-card { border-radius: 18px; }
    .game-card-hit { padding: 14px; }
    .game-card p, .game-card .url-line { display: none; }
    .game-card h3 { font-size: 16px; margin-bottom: 3px; }
    .game-top { gap: 12px; }
    .card-link { padding-top: 10px; }
    img.game-logo, .letter-logo { width: 52px; height: 52px; flex-basis: 52px; border-radius: 12px; }
    .content-layout { display: flex; flex-direction: column; }
    .sidebar { order: -1; width: 100%; }
    .article, .sidebar { padding: 20px; }
    .footer-grid, .trust-list { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .bottom {
        position: fixed;
        display: grid;
        grid-template-columns: 1fr 1.3fr;
        gap: 8px;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 60;
        padding: 9px 12px;
        background: #031b14;
        border-top: 1px solid #31594a;
    }
    .bottom .cta { min-height: 48px; padding: 0 10px; font-size: 13px; }
    .bottom .ghost { background: transparent; color: #fff; border-color: #4d6f62; }
}
@media (max-width: 430px) {
    .category-grid, .guide-grid, .footer-grid, .trust-list, .gallery-grid, .cluster-links { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
}
