/* ============================================================
 * hibage.homes - Core Stylesheet
 * Prefix: g194- | Palette: mint / pink / graphite / black
 * Mobile-first canvas 320-430px
 * Comments are in English only
 * ============================================================ */

/* ---------- Design tokens ---------- */
:root {
    --g194-bg: #0C0C0C;
    --g194-bg-soft: #141414;
    --g194-surface: #1b1b1b;
    --g194-surface-2: #232323;
    --g194-graphite: #4A4A4A;
    --g194-silver: #A9A9A9;
    --g194-mint: #BAFFC9;
    --g194-mint-deep: #6fe396;
    --g194-pink: #FFB6C1;
    --g194-pink-deep: #ff8197;
    --g194-text: #f3f3f3;
    --g194-text-dim: #b9b9b9;
    --g194-line: rgba(255, 255, 255, 0.08);
    --g194-line-strong: rgba(255, 255, 255, 0.18);
    --g194-radius-sm: 10px;
    --g194-radius: 14px;
    --g194-radius-lg: 20px;
    --g194-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    --g194-header-h: 60px;
    --g194-bottom-h: 64px;
    --g194-max: 480px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
    background: var(--g194-bg);
    color: var(--g194-text);
    font-family: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Centered phone canvas on wide screens */
.g194-shell {
    max-width: var(--g194-max);
    margin: 0 auto;
    background: var(--g194-bg);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 0 1px var(--g194-line);
}

a { color: var(--g194-mint); text-decoration: none; }
a:hover { color: var(--g194-pink); }
img { max-width: 100%; display: block; }

/* ---------- Header (brand + action layered) ---------- */
.g194-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(180deg, rgba(12,12,12,0.96) 0%, rgba(12,12,12,0.88) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--g194-line);
}

.g194-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    min-height: var(--g194-header-h);
}

.g194-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.g194-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--g194-surface);
    border: 1px solid var(--g194-line-strong);
    box-shadow: 0 2px 8px rgba(186, 255, 201, 0.18);
    flex-shrink: 0;
}
.g194-brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}
.g194-brand-name strong {
    font-size: 17px;
    color: var(--g194-mint);
    letter-spacing: 0.3px;
    font-weight: 700;
}
.g194-brand-name span {
    font-size: 11px;
    color: var(--g194-silver);
}

.g194-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.g194-btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.12s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    line-height: 1;
}
.g194-btn-login {
    background: transparent;
    color: var(--g194-text);
    border: 1px solid var(--g194-line-strong);
}
.g194-btn-register {
    background: linear-gradient(135deg, var(--g194-mint) 0%, var(--g194-mint-deep) 100%);
    color: #0c2a16;
    box-shadow: 0 4px 14px rgba(186, 255, 201, 0.25);
}
.g194-btn-pink {
    background: linear-gradient(135deg, var(--g194-pink) 0%, var(--g194-pink-deep) 100%);
    color: #2a0a12;
    box-shadow: 0 4px 14px rgba(255, 182, 193, 0.22);
}
.g194-btn:hover { transform: translateY(-1px); color: inherit; }
.g194-btn:active { transform: translateY(0); }

.g194-menu-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--g194-line-strong);
    background: var(--g194-surface);
    color: var(--g194-mint);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.g194-menu-btn svg { width: 18px; height: 18px; }

/* Layered dropdown menu */
.g194-menu-panel {
    position: absolute;
    top: calc(var(--g194-header-h) + 8px);
    left: 8px;
    right: 8px;
    background: var(--g194-surface);
    border: 1px solid var(--g194-line-strong);
    border-radius: var(--g194-radius);
    box-shadow: var(--g194-shadow);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 65;
}
.g194-menu-panel.g194-menu-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.g194-menu-group { margin-bottom: 6px; }
.g194-menu-group h4 {
    margin: 8px 6px 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--g194-silver);
    font-weight: 700;
}
.g194-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.g194-menu-link {
    display: block;
    padding: 9px 10px;
    border-radius: 10px;
    background: var(--g194-bg-soft);
    border: 1px solid var(--g194-line);
    color: var(--g194-text);
    font-size: 13px;
    min-height: 40px;
}
.g194-menu-link:hover { background: var(--g194-surface-2); color: var(--g194-mint); }

/* ---------- Main ---------- */
.g194-main {
    padding-bottom: calc(var(--g194-bottom-h) + 24px);
}

/* ---------- Carousel ---------- */
.g194-carousel {
    position: relative;
    margin: 12px;
    border-radius: var(--g194-radius);
    overflow: hidden;
    box-shadow: var(--g194-shadow);
}
.g194-carousel-track {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}
.g194-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}
.g194-carousel-slide.g194-slide-active { opacity: 1; }
.g194-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.g194-carousel-caption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    pointer-events: none;
}
.g194-carousel-caption strong { font-size: 17px; display: block; }
.g194-carousel-caption span { font-size: 12px; color: var(--g194-mint); }
.g194-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}
.g194-carousel-arrow:hover { background: rgba(0,0,0,0.75); }
.g194-carousel-prev { left: 8px; }
.g194-carousel-next { right: 8px; }
.g194-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 3;
}
.g194-carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: 0;
    cursor: pointer;
    padding: 0;
}
.g194-carousel-dot.g194-dot-active {
    background: var(--g194-mint);
    width: 18px;
    border-radius: 999px;
}

/* ---------- Section heading ---------- */
.g194-section {
    margin: 18px 12px 0;
}
.g194-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}
.g194-section-title {
    font-size: 18px;
    color: var(--g194-text);
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-left: 12px;
}
.g194-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--g194-mint) 0%, var(--g194-pink) 100%);
}
.g194-section-link {
    font-size: 12px;
    color: var(--g194-mint);
}

/* ---------- Hero intro ---------- */
.g194-hero {
    margin: 14px 12px 0;
    background: linear-gradient(135deg, rgba(186,255,201,0.10) 0%, rgba(255,182,193,0.10) 100%);
    border: 1px solid var(--g194-line-strong);
    border-radius: var(--g194-radius);
    padding: 14px;
}
.g194-hero h1 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.3;
    color: var(--g194-text);
}
.g194-hero h1 em {
    color: var(--g194-mint);
    font-style: normal;
}
.g194-hero p {
    margin: 0 0 12px;
    color: var(--g194-text-dim);
    font-size: 14px;
}
.g194-hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.g194-hero-actions .g194-btn { flex: 1; min-width: 130px; }

/* ---------- Game grid ---------- */
.g194-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (min-width: 360px) {
    .g194-game-grid { gap: 10px; }
}
@media (min-width: 400px) {
    .g194-game-grid { grid-template-columns: repeat(5, 1fr); }
}
.g194-game-card {
    background: var(--g194-surface);
    border: 1px solid var(--g194-line);
    border-radius: var(--g194-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: block;
    text-align: center;
}
.g194-game-card:hover {
    transform: translateY(-2px);
    border-color: var(--g194-line-strong);
    box-shadow: 0 6px 16px rgba(0,0,0,0.45);
}
.g194-game-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--g194-bg-soft);
    display: block;
}
.g194-game-card-name {
    font-size: 11px;
    color: var(--g194-text);
    padding: 4px 4px 6px;
    line-height: 1.25;
    min-height: 28px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Feature blocks ---------- */
.g194-feature-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 14px 12px 0;
}
.g194-feature {
    background: var(--g194-surface);
    border: 1px solid var(--g194-line);
    border-radius: var(--g194-radius);
    padding: 12px;
    position: relative;
    overflow: hidden;
}
.g194-feature h3 {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--g194-mint);
}
.g194-feature p {
    margin: 0;
    font-size: 12.5px;
    color: var(--g194-text-dim);
}
.g194-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(186,255,201,0.12);
    color: var(--g194-mint);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

/* ---------- Article / prose ---------- */
.g194-article {
    margin: 18px 12px 0;
    background: var(--g194-surface);
    border: 1px solid var(--g194-line);
    border-radius: var(--g194-radius);
    padding: 16px;
}
.g194-article h2 {
    margin: 16px 0 8px;
    font-size: 17px;
    color: var(--g194-text);
}
.g194-article h2:first-child { margin-top: 0; }
.g194-article h3 {
    margin: 12px 0 6px;
    font-size: 14px;
    color: var(--g194-mint);
}
.g194-article p {
    margin: 0 0 10px;
    color: var(--g194-text-dim);
    font-size: 14px;
}
.g194-article ul {
    margin: 0 0 10px;
    padding-left: 18px;
    color: var(--g194-text-dim);
}
.g194-article li { margin-bottom: 4px; }
.g194-article a { color: var(--g194-mint); border-bottom: 1px dashed rgba(186,255,201,0.4); }
.g194-article a:hover { color: var(--g194-pink); }

.g194-callout {
    margin: 14px 12px 0;
    background: linear-gradient(135deg, rgba(255,182,193,0.10), rgba(186,255,201,0.08));
    border: 1px solid var(--g194-line-strong);
    border-radius: var(--g194-radius);
    padding: 16px;
    text-align: center;
}
.g194-callout h2 {
    margin: 0 0 6px;
    color: var(--g194-text);
    font-size: 18px;
}
.g194-callout p {
    margin: 0 0 12px;
    color: var(--g194-text-dim);
    font-size: 13px;
}

/* ---------- Steps ---------- */
.g194-steps {
    margin: 14px 12px 0;
    display: grid;
    gap: 8px;
}
.g194-step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--g194-surface);
    border: 1px solid var(--g194-line);
    border-radius: var(--g194-radius);
    padding: 10px 12px;
}
.g194-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--g194-mint), var(--g194-mint-deep));
    color: #0c2a16;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
}
.g194-step-body h4 { margin: 0 0 4px; font-size: 14px; color: var(--g194-text); }
.g194-step-body p { margin: 0; font-size: 12.5px; color: var(--g194-text-dim); }

/* ---------- Footer (extended) ---------- */
.g194-footer {
    margin-top: 24px;
    border-top: 1px solid var(--g194-line);
    background: var(--g194-bg-soft);
    padding: 18px 12px calc(var(--g194-bottom-h) + 18px);
}
.g194-footer-block { margin-bottom: 18px; }
.g194-footer h3 {
    margin: 0 0 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--g194-silver);
}
.g194-footer p {
    margin: 0 0 8px;
    color: var(--g194-text-dim);
    font-size: 13px;
}
.g194-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.g194-footer-links a {
    color: var(--g194-text);
    font-size: 13px;
    padding: 6px 8px;
    background: var(--g194-surface);
    border: 1px solid var(--g194-line);
    border-radius: 8px;
    display: block;
    min-height: 36px;
    line-height: 24px;
}
.g194-footer-links a:hover { color: var(--g194-mint); background: var(--g194-surface-2); }
.g194-footer-disclaimer {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px dashed var(--g194-line-strong);
    border-radius: 10px;
    font-size: 11.5px;
    color: var(--g194-silver);
    line-height: 1.5;
}
.g194-copyright {
    margin-top: 14px;
    text-align: center;
    color: var(--g194-silver);
    font-size: 12px;
}

/* Promo grid in footer */
.g194-promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.g194-promo-tile {
    background: linear-gradient(135deg, rgba(186,255,201,0.10), rgba(255,182,193,0.10));
    border: 1px solid var(--g194-line-strong);
    border-radius: var(--g194-radius-sm);
    padding: 10px;
    cursor: pointer;
    color: var(--g194-text);
    text-align: center;
}
.g194-promo-tile strong { display: block; color: var(--g194-mint); font-size: 13px; margin-bottom: 2px; }
.g194-promo-tile span { font-size: 11px; color: var(--g194-text-dim); }

/* ---------- Bottom navigation (floating dock) ---------- */
.g194-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    max-width: var(--g194-max);
    margin: 0 auto;
    height: var(--g194-bottom-h);
    background: linear-gradient(180deg, rgba(20,20,20,0.98) 0%, rgba(12,12,12,0.98) 100%);
    border-top: 1px solid var(--g194-line-strong);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -6px 20px rgba(0,0,0,0.55);
}
.g194-bottom-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 100%;
    align-items: center;
}
.g194-bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--g194-silver);
    font-size: 10.5px;
    height: 100%;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 4px 2px;
    font-family: inherit;
    transition: color 0.2s ease, transform 0.12s ease;
    position: relative;
}
.g194-bottom-btn:hover { color: var(--g194-mint); }
.g194-bottom-btn:active { transform: scale(0.94); }
.g194-bottom-btn svg { width: 22px; height: 22px; }
.g194-bottom-btn.g194-bottom-active { color: var(--g194-mint); }
.g194-bottom-btn.g194-bottom-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--g194-mint), var(--g194-pink));
}
.g194-bottom-btn-promo {
    background: linear-gradient(135deg, var(--g194-mint), var(--g194-mint-deep));
    color: #0c2a16;
    border-radius: 14px;
    margin: 6px 4px;
    box-shadow: 0 4px 10px rgba(186,255,201,0.25);
}
.g194-bottom-btn-promo svg { width: 20px; height: 20px; }
.g194-bottom-btn-pink {
    background: linear-gradient(135deg, var(--g194-pink), var(--g194-pink-deep));
    color: #2a0a12;
    border-radius: 14px;
    margin: 6px 4px;
    box-shadow: 0 4px 10px rgba(255,182,193,0.25);
}
.g194-bottom-btn-pink svg { width: 20px; height: 20px; }

/* ---------- Back to top ---------- */
.g194-to-top {
    position: fixed;
    right: 14px;
    bottom: calc(var(--g194-bottom-h) + 14px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--g194-surface-2);
    border: 1px solid var(--g194-line-strong);
    color: var(--g194-mint);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 55;
    box-shadow: var(--g194-shadow);
}
.g194-to-top.g194-to-top-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.g194-to-top svg { width: 18px; height: 18px; }

/* ---------- Press feedback ---------- */
.g194-press-down { transform: scale(0.97) !important; }

/* ---------- Tag chips ---------- */
.g194-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 12px 0;
}
.g194-chip {
    padding: 5px 10px;
    background: var(--g194-surface);
    border: 1px solid var(--g194-line);
    border-radius: 999px;
    font-size: 12px;
    color: var(--g194-text-dim);
}

/* ---------- Notice strip ---------- */
.g194-notice {
    margin: 12px;
    padding: 10px 12px;
    border-radius: var(--g194-radius-sm);
    background: rgba(186,255,201,0.08);
    border-left: 3px solid var(--g194-mint);
    font-size: 12.5px;
    color: var(--g194-text);
}

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