/*
 * kkfb.homes layout stylesheet
 * Class prefix: pga9-
 * Palette: #9370DB | #800080 | #2E4057 | #00FA9A | #9AFF9A
 * Dark tones are backgrounds; light tones are text/emphasis.
 * Mobile-first canvas 320-430px; center-clamped on wider screens.
 */

:root {
    --pga9-violet: #9370DB;
    --pga9-purple: #800080;
    --pga9-slate: #2E4057;
    --pga9-spring: #00FA9A;
    --pga9-light: #9AFF9A;
    --pga9-bg: #1c2a3a;
    --pga9-bg-2: #24364a;
    --pga9-card: #2a3f56;
    --pga9-card-2: #314863;
    --pga9-text: #eaf6ff;
    --pga9-muted: #a9bdd1;
    --pga9-line: rgba(154, 255, 154, 0.16);
    --pga9-radius: 14px;
    --pga9-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    --pga9-header-h: 58px;
    --pga9-nav-h: 70px;
    --pga9-maxw: 430px;
    --pga9-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(120% 80% at 50% 0%, #2c3e57 0%, var(--pga9-bg) 55%, #16202d 100%);
    color: var(--pga9-text);
    font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--pga9-light); text-decoration: none; }
a:hover { color: var(--pga9-spring); }
img { max-width: 100%; display: block; }

.pga9-no-scroll { overflow: hidden; }

/* ---------- App shell: clamp to mobile canvas on wide screens ---------- */
.pga9-shell {
    max-width: var(--pga9-maxw);
    margin: 0 auto;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(128, 0, 128, 0.10), rgba(0,0,0,0) 30%),
        linear-gradient(0deg, rgba(0, 250, 154, 0.05), rgba(0,0,0,0) 25%);
    position: relative;
    box-shadow: var(--pga9-shadow);
    overflow: hidden;
}

/* ---------- Top functional header ---------- */
.pga9-header {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--pga9-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    background: linear-gradient(90deg, rgba(46,64,87,0.96), rgba(128,0,128,0.85));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--pga9-line);
}

.pga9-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.pga9-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(154,255,154,0.35);
    box-shadow: 0 0 0 2px rgba(0,250,154,0.12);
    flex-shrink: 0;
}
.pga9-brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.pga9-brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #fff;
}
.pga9-brand-tag {
    font-size: 10px;
    color: var(--pga9-light);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.pga9-header-actions { display: flex; align-items: center; gap: 7px; }

.pga9-btn {
    -webkit-tap-highlight-color: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 13px;
    transition: transform 0.15s var(--pga9-ease), box-shadow 0.2s, background 0.2s;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.pga9-btn:focus-visible { outline: 2px solid var(--pga9-spring); outline-offset: 2px; }

.pga9-btn--login {
    background: rgba(255,255,255,0.10);
    color: #fff;
    border: 1px solid rgba(154,255,154,0.40);
}
.pga9-btn--login:hover { background: rgba(255,255,255,0.18); }

.pga9-btn--register {
    background: linear-gradient(135deg, var(--pga9-spring), var(--pga9-light));
    color: #0d2230;
    box-shadow: 0 6px 18px rgba(0,250,154,0.30);
}
.pga9-btn--register:hover { transform: translateY(-1px); }

.pga9-btn--menu {
    background: transparent;
    color: #fff;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(154,255,154,0.32);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pga9-btn--menu:hover { background: rgba(255,255,255,0.10); }
.pga9-menu-btn--active { background: rgba(0,250,154,0.18); }

.pga9-menu-bars { display: flex; flex-direction: column; gap: 4px; }
.pga9-menu-bars span {
    width: 18px; height: 2px; background: var(--pga9-light); border-radius: 2px;
    transition: transform 0.25s var(--pga9-ease), opacity 0.2s;
}
.pga9-menu-btn--active .pga9-menu-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.pga9-menu-btn--active .pga9-menu-bars span:nth-child(2) { opacity: 0; }
.pga9-menu-btn--active .pga9-menu-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Partition menu panel ---------- */
.pga9-menu {
    position: fixed;
    top: var(--pga9-header-h);
    left: 50%;
    transform: translate(-50%, -12px);
    width: 100%;
    max-width: var(--pga9-maxw);
    background: linear-gradient(180deg, rgba(36,54,74,0.98), rgba(28,42,58,0.98));
    border-bottom: 1px solid var(--pga9-line);
    padding: 14px 14px 18px;
    z-index: 55;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s var(--pga9-ease), opacity 0.2s, visibility 0.2s;
    max-height: calc(100vh - var(--pga9-header-h));
    overflow-y: auto;
}
.pga9-menu--open { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

.pga9-menu-title {
    font-size: 11px;
    letter-spacing: 1.4px;
    color: var(--pga9-spring);
    text-transform: uppercase;
    margin: 4px 4px 8px;
}
.pga9-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.pga9-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(154,255,154,0.12);
    border-radius: 12px;
    color: var(--pga9-text);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: background 0.18s, transform 0.15s;
}
.pga9-menu-item:hover {
    background: rgba(147,112,219,0.18);
    transform: translateY(-1px);
    color: #fff;
}
.pga9-menu-item .pga9-menu-ico { font-size: 18px; line-height: 1; }

.pga9-menu-divider { height: 1px; background: var(--pga9-line); margin: 14px 0 10px; }

/* ---------- Main content ---------- */
.pga9-main { padding: 0 0 calc(var(--pga9-nav-h) + 24px); }

.pga9-section { padding: 22px 14px 6px; }
.pga9-section--tight { padding-top: 14px; }

.pga9-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}
.pga9-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    position: relative;
    padding-left: 12px;
}
.pga9-section-title::before {
    content: "";
    position: absolute;
    left: 0; top: 5px; bottom: 5px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--pga9-spring), var(--pga9-violet));
}
.pga9-section-link { font-size: 12px; color: var(--pga9-light); }

/* ---------- Hero carousel ---------- */
.pga9-hero {
    position: relative;
    margin: 14px 0 4px;
    padding: 0 14px;
}
.pga9-hero-viewport {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--pga9-shadow);
    border: 1px solid rgba(154,255,154,0.18);
}
.pga9-hero-track {
    display: flex;
    transition: transform 0.55s var(--pga9-ease);
    will-change: transform;
}
.pga9-hero-slide {
    flex: 0 0 100%;
    position: relative;
}
.pga9-hero-slide img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.pga9-hero-cap {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    background: linear-gradient(0deg, rgba(0,0,0,0.72), rgba(0,0,0,0));
    color: #fff;
    padding: 26px 14px 10px;
    border-radius: 0 0 16px 16px;
}
.pga9-hero-cap h2 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.pga9-hero-cap p { margin: 0; font-size: 12px; color: var(--pga9-light); }

.pga9-hero-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}
.pga9-hero-dot {
    width: 7px; height: 7px;
    border-radius: 999px;
    background: rgba(154,255,154,0.30);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.pga9-hero-dot--active {
    background: var(--pga9-spring);
    transform: scale(1.25);
}

/* ---------- Quick-jump chips ---------- */
.pga9-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 14px 4px;
    scrollbar-width: none;
}
.pga9-chips::-webkit-scrollbar { display: none; }
.pga9-chip {
    flex: 0 0 auto;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(147,112,219,0.16);
    border: 1px solid rgba(147,112,219,0.45);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.pga9-chip:hover { background: rgba(147,112,219,0.30); transform: translateY(-1px); }

/* ---------- Promo CTA strip ---------- */
.pga9-cta {
    margin: 16px 14px 6px;
    padding: 14px 16px;
    border-radius: var(--pga9-radius);
    background: linear-gradient(135deg, rgba(128,0,128,0.45), rgba(0,250,154,0.18));
    border: 1px solid rgba(154,255,154,0.28);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.pga9-cta-text { display: flex; flex-direction: column; min-width: 0; }
.pga9-cta-text strong { color: #fff; font-size: 15px; }
.pga9-cta-text span { color: var(--pga9-light); font-size: 12px; }
.pga9-cta .pga9-btn { white-space: nowrap; }

/* ---------- Game grid (compact 4-col) ---------- */
.pga9-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (min-width: 375px) {
    .pga9-game-grid { grid-template-columns: repeat(5, 1fr); gap: 9px; }
}
.pga9-game {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.pga9-game-img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--pga9-card);
    border: 1px solid rgba(154,255,154,0.18);
    aspect-ratio: 1 / 1;
    transition: transform 0.18s var(--pga9-ease), box-shadow 0.2s;
}
.pga9-game:hover .pga9-game-img-wrap {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0,250,154,0.18);
    border-color: rgba(0,250,154,0.45);
}
.pga9-game-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
}
.pga9-game-tag {
    position: absolute;
    top: 4px; left: 4px;
    background: linear-gradient(135deg, var(--pga9-purple), var(--pga9-violet));
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    letter-spacing: 0.4px;
}
.pga9-game-name {
    margin-top: 5px;
    font-size: 11px;
    color: var(--pga9-text);
    font-weight: 600;
    line-height: 1.25;
    min-height: 26px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Hot / highlight row (horizontal scroll) ---------- */
.pga9-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 14px 8px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.pga9-row::-webkit-scrollbar { display: none; }
.pga9-row .pga9-game { flex: 0 0 110px; scroll-snap-align: start; }
.pga9-row .pga9-game .pga9-game-img-wrap { aspect-ratio: 1 / 1.18; }

/* ---------- Info / feature cards ---------- */
.pga9-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.pga9-card {
    background: var(--pga9-card);
    border: 1px solid rgba(154,255,154,0.14);
    border-radius: var(--pga9-radius);
    padding: 14px 12px;
    color: var(--pga9-text);
    transition: transform 0.18s, border-color 0.2s;
}
.pga9-card:hover { transform: translateY(-2px); border-color: rgba(0,250,154,0.45); }
.pga9-card-ico {
    font-size: 22px;
    color: var(--pga9-spring);
    margin-bottom: 6px;
}
.pga9-card h3 { margin: 0 0 4px; font-size: 14px; color: #fff; }
.pga9-card p { margin: 0; font-size: 12px; color: var(--pga9-muted); line-height: 1.55; }

/* ---------- Article / SEO text ---------- */
.pga9-prose {
    background: var(--pga9-card);
    border: 1px solid rgba(154,255,154,0.14);
    border-radius: var(--pga9-radius);
    padding: 16px 14px;
    color: var(--pga9-text);
}
.pga9-prose h2 {
    font-size: 17px;
    color: #fff;
    margin: 18px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(154,255,154,0.30);
}
.pga9-prose h2:first-child { margin-top: 0; }
.pga9-prose h3 { font-size: 14px; color: var(--pga9-light); margin: 12px 0 4px; }
.pga9-prose p { margin: 0 0 10px; color: var(--pga9-text); font-size: 14px; }
.pga9-prose a { color: var(--pga9-spring); border-bottom: 1px dotted rgba(0,250,154,0.45); }
.pga9-prose ul { margin: 0 0 10px; padding-left: 18px; }
.pga9-prose li { margin-bottom: 4px; font-size: 13.5px; }

/* ---------- Two-column directory (extended footer) ---------- */
.pga9-directory {
    margin: 0 14px;
    background: var(--pga9-bg-2);
    border: 1px solid rgba(154,255,154,0.18);
    border-radius: var(--pga9-radius);
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
}
.pga9-directory h3 {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    font-size: 12px;
    color: var(--pga9-spring);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.pga9-directory-col h4 {
    margin: 0 0 6px;
    font-size: 13px;
    color: #fff;
}
.pga9-directory-col ul { list-style: none; margin: 0; padding: 0; }
.pga9-directory-col li { margin-bottom: 5px; font-size: 12.5px; }
.pga9-directory-col a { color: var(--pga9-light); }
.pga9-directory-col a:hover { color: var(--pga9-spring); }
.pga9-directory-note {
    grid-column: 1 / -1;
    font-size: 11.5px;
    color: var(--pga9-muted);
    border-top: 1px dashed rgba(154,255,154,0.22);
    padding-top: 8px;
    margin-top: 4px;
}

/* ---------- Site footer ---------- */
.pga9-footer {
    padding: 22px 16px 14px;
    margin-top: 18px;
    border-top: 1px solid var(--pga9-line);
    background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.32));
    color: var(--pga9-muted);
    text-align: center;
}
.pga9-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    margin-bottom: 10px;
}
.pga9-footer-links a { font-size: 12px; color: var(--pga9-light); }
.pga9-footer-copy { font-size: 11px; line-height: 1.6; color: var(--pga9-muted); }

/* ---------- Floating bottom nav ---------- */
.pga9-nav {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: calc(var(--pga9-maxw) - 20px);
    height: var(--pga9-nav-h);
    z-index: 70;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 6px;
    background: linear-gradient(180deg, rgba(46,64,87,0.96), rgba(28,42,58,0.98));
    border: 1px solid rgba(154,255,154,0.22);
    border-radius: 22px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.45), 0 0 0 4px rgba(0,250,154,0.04);
    backdrop-filter: blur(10px);
}
.pga9-nav-item {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0;
    color: var(--pga9-muted);
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    cursor: pointer;
    position: relative;
    transition: color 0.2s, transform 0.25s var(--pga9-ease);
    -webkit-tap-highlight-color: transparent;
}
.pga9-nav-item:focus-visible { outline: 2px solid var(--pga9-spring); outline-offset: -3px; border-radius: 12px; }
.pga9-nav-item .pga9-nav-ico {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
}
.pga9-nav-item .pga9-nav-ico svg { width: 22px; height: 22px; }
.pga9-nav-item .pga9-nav-label { line-height: 1; letter-spacing: 0.2px; }
.pga9-nav-item:hover { color: #fff; }
.pga9-nav-item--active { color: var(--pga9-spring); transform: translateY(-6px); }
.pga9-nav-item--promo .pga9-nav-ico {
    background: linear-gradient(135deg, var(--pga9-purple), var(--pga9-violet));
    border-radius: 50%;
    width: 38px; height: 38px;
    box-shadow: 0 6px 14px rgba(128,0,128,0.40);
}
.pga9-nav-item--promo .pga9-nav-ico svg { width: 20px; height: 20px; color: #fff; }
.pga9-nav-item--promo--alt .pga9-nav-ico {
    background: linear-gradient(135deg, var(--pga9-spring), var(--pga9-light));
    color: #0d2230;
    box-shadow: 0 6px 14px rgba(0,250,154,0.40);
}
.pga9-nav-item--promo--alt .pga9-nav-ico svg { color: #0d2230; }
.pga9-nav-item--active.pga9-nav-item--promo,
.pga9-nav-item--active.pga9-nav-item--promo--alt { transform: translateY(-4px); }

.pga9-nav-indicator {
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 3px;
    border-radius: 0 0 6px 6px;
    background: var(--pga9-spring);
    opacity: 0;
    transition: opacity 0.2s;
}
.pga9-nav-item--active .pga9-nav-indicator { opacity: 1; }

/* ---------- Back to top ---------- */
.pga9-to-top {
    position: fixed;
    right: 14px;
    bottom: calc(var(--pga9-nav-h) + 16px);
    z-index: 50;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(154,255,154,0.35);
    background: rgba(46,64,87,0.85);
    color: var(--pga9-light);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    -webkit-tap-highlight-color: transparent;
}
.pga9-to-top--show { opacity: 1; visibility: visible; transform: translateY(0); }
.pga9-to-top:hover { color: var(--pga9-spring); border-color: var(--pga9-spring); }

/* ---------- Skip link ---------- */
.pga9-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--pga9-spring);
    color: #0d2230;
    padding: 8px 14px;
    border-radius: 0 0 8px 0;
    z-index: 100;
}
.pga9-skip:focus { left: 0; }

/* ---------- Visually-hidden helper ---------- */
.pga9-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
