/* ============================================================
 * Kuya King PH - stylesheet
 * All custom classes and CSS variables use the "vf88-" prefix.
 * Mobile-first canvas (320-430px). Wider screens keep the
 * centered phone canvas. No desktop-wide layout is generated.
 * Palette: #00E5FF (accent / light) on #0E1621 (dark ground).
 * ============================================================ */

:root {
    --vf88-bg: #0E1621;
    --vf88-bg-soft: #131f2c;
    --vf88-bg-card: #18283a;
    --vf88-bg-card-2: #1d3147;
    --vf88-line: #243a52;
    --vf88-text: #e8f3fb;
    --vf88-text-soft: #9fb4c6;
    --vf88-text-dim: #6f869b;
    --vf88-accent: #00E5FF;
    --vf88-accent-2: #19b8d6;
    --vf88-gold: #ffcf4d;
    --vf88-rose: #ff5d8a;
    --vf88-green: #2bd47b;
    --vf88-radius: 12px;
    --vf88-radius-lg: 16px;
    --vf88-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
    --vf88-header-h: 56px;
    --vf88-bottom-h: 62px;
    --vf88-max-w: 430px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--vf88-bg);
    color: var(--vf88-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(1100px 380px at 50% -120px, rgba(0, 229, 255, 0.14), transparent 70%),
        linear-gradient(180deg, #0c1622 0%, #0e1621 35%, #0b1320 100%);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--vf88-accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

button { font-family: inherit; }

/* Phone canvas wrapper for wide screens. */
.vf88-canvas {
    max-width: var(--vf88-max-w);
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background:
        radial-gradient(700px 280px at 50% -80px, rgba(0, 229, 255, 0.10), transparent 70%),
        var(--vf88-bg);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
}

/* --------------------------------------------------------------
 * Top header - tabbed style brand strip.
 * ------------------------------------------------------------ */
.vf88-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--vf88-header-h);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    background: linear-gradient(180deg, rgba(14, 22, 33, 0.98), rgba(14, 22, 33, 0.92));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--vf88-line);
}

.vf88-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.vf88-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid var(--vf88-accent);
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.18);
    background: #0a141f;
    flex-shrink: 0;
}

.vf88-brand-text { min-width: 0; line-height: 1.1; }

.vf88-brand-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--vf88-text);
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vf88-brand-tag {
    font-size: 10px;
    color: var(--vf88-accent);
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.vf88-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vf88-btn {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-decoration: none;
}

.vf88-btn--login {
    background: transparent;
    color: var(--vf88-text);
    border: 1px solid var(--vf88-line);
}

.vf88-btn--register {
    background: linear-gradient(135deg, #00E5FF 0%, #19b8d6 100%);
    color: #06222b;
    box-shadow: 0 4px 14px rgba(0, 229, 255, 0.32);
}

.vf88-btn:hover { transform: translateY(-1px); text-decoration: none; }
.vf88-btn:active { transform: translateY(0); }

.vf88-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--vf88-bg-card);
    border: 1px solid var(--vf88-line);
    color: var(--vf88-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.vf88-menu-btn:hover { background: var(--vf88-bg-card-2); }

.vf88-menu-icon { display: inline-flex; flex-direction: column; gap: 4px; }
.vf88-menu-icon span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--vf88-text);
    border-radius: 2px;
}

/* --------------------------------------------------------------
 * Partition menu sheet (slides in from the right).
 * ------------------------------------------------------------ */
.vf88-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 10, 18, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 80;
}

.vf88-menu-backdrop--show {
    opacity: 1;
    pointer-events: auto;
}

.vf88-menu-sheet {
    position: fixed;
    top: 0;
    right: 0;
    width: 84%;
    max-width: 340px;
    height: 100vh;
    background: var(--vf88-bg-soft);
    border-left: 1px solid var(--vf88-line);
    transform: translateX(105%);
    transition: transform 0.26s ease;
    z-index: 90;
    overflow-y: auto;
    padding: 18px 14px calc(var(--vf88-bottom-h) + 18px);
}

.vf88-menu-sheet--open { transform: translateX(0); }

.vf88-menu-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--vf88-line);
}

.vf88-menu-head img {
    width: 32px; height: 32px; border-radius: 8px; object-fit: cover;
    border: 1px solid var(--vf88-accent);
}

.vf88-menu-title { font-size: 14px; font-weight: 800; color: var(--vf88-text); }
.vf88-menu-sub { font-size: 11px; color: var(--vf88-text-soft); }

.vf88-menu-section { margin: 14px 0; }
.vf88-menu-section h4 {
    margin: 0 0 8px;
    font-size: 11px;
    color: var(--vf88-accent);
    text-transform: uppercase;
    letter-spacing: 1.6px;
}

.vf88-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 12px;
    margin-bottom: 6px;
    border-radius: 10px;
    background: var(--vf88-bg-card);
    color: var(--vf88-text);
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid transparent;
}

.vf88-menu-link:hover {
    background: var(--vf88-bg-card-2);
    border-color: var(--vf88-line);
    text-decoration: none;
}

.vf88-menu-link span.vf88-menu-arrow { color: var(--vf88-text-dim); font-size: 14px; }

.vf88-menu-promo {
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(0, 229, 255, 0.04));
    border: 1px solid rgba(0, 229, 255, 0.28);
}

.vf88-menu-promo p { margin: 0 0 10px; font-size: 12.5px; color: var(--vf88-text); }

/* --------------------------------------------------------------
 * Main content shell.
 * ------------------------------------------------------------ */
.vf88-main {
    padding: 14px 12px 24px;
}

/* --------------------------------------------------------------
 * Hero carousel.
 * ------------------------------------------------------------ */
.vf88-hero {
    position: relative;
    border-radius: var(--vf88-radius-lg);
    overflow: hidden;
    margin: 4px 0 16px;
    box-shadow: var(--vf88-shadow);
    background: #07111c;
}

.vf88-hero-track { position: relative; width: 100%; aspect-ratio: 16 / 9; }

.vf88-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.vf88-hero-slide--active { opacity: 1; }

.vf88-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vf88-hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 14px 16px;
    background: linear-gradient(180deg, transparent, rgba(7, 17, 28, 0.92));
    pointer-events: none;
}

.vf88-hero-overlay h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.vf88-hero-overlay p {
    margin: 0;
    font-size: 12px;
    color: #cfe6f1;
}

.vf88-hero-dots {
    position: absolute;
    bottom: 8px;
    right: 12px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.vf88-hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    border: none;
    padding: 0;
    cursor: pointer;
}

.vf88-hero-dot--active { background: var(--vf88-accent); width: 18px; border-radius: 3px; }

/* --------------------------------------------------------------
 * Quick stats / promo strip.
 * ------------------------------------------------------------ */
.vf88-promo-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0 0 16px;
}

.vf88-promo-card {
    background: var(--vf88-bg-card);
    border: 1px solid var(--vf88-line);
    border-radius: var(--vf88-radius);
    padding: 10px 8px;
    text-align: center;
}

.vf88-promo-card strong {
    display: block;
    color: var(--vf88-accent);
    font-size: 16px;
    font-weight: 800;
}

.vf88-promo-card span {
    display: block;
    font-size: 11px;
    color: var(--vf88-text-soft);
    margin-top: 2px;
}

/* --------------------------------------------------------------
 * Category quick chips.
 * ------------------------------------------------------------ */
.vf88-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin: 0 -12px 14px;
    padding: 2px 12px 6px;
    scrollbar-width: none;
}

.vf88-chips::-webkit-scrollbar { display: none; }

.vf88-chip {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--vf88-bg-card);
    border: 1px solid var(--vf88-line);
    color: var(--vf88-text-soft);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.vf88-chip:hover { color: var(--vf88-text); border-color: var(--vf88-accent-2); text-decoration: none; }

/* --------------------------------------------------------------
 * Section heading.
 * ------------------------------------------------------------ */
.vf88-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--vf88-line);
}

.vf88-section-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--vf88-text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vf88-section-head h2::before {
    content: "";
    width: 4px;
    height: 16px;
    background: var(--vf88-accent);
    border-radius: 2px;
    display: inline-block;
}

.vf88-section-head .vf88-section-link {
    font-size: 12px;
    color: var(--vf88-accent);
    font-weight: 600;
}

/* --------------------------------------------------------------
 * Dense game grid.
 * ------------------------------------------------------------ */
.vf88-game-block { margin: 0 0 22px; }

.vf88-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

@media (min-width: 360px) {
    .vf88-grid { gap: 10px; }
}

@media (min-width: 400px) {
    .vf88-grid { grid-template-columns: repeat(5, 1fr); }
}

.vf88-game {
    cursor: pointer;
    text-align: center;
    display: block;
    color: var(--vf88-text);
    text-decoration: none;
}

.vf88-game:hover { text-decoration: none; }

.vf88-game-thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--vf88-bg-card);
    border: 1px solid var(--vf88-line);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.vf88-game:hover .vf88-game-thumb {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 229, 255, 0.20);
    border-color: var(--vf88-accent);
}

.vf88-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vf88-game-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: linear-gradient(135deg, var(--vf88-rose), #ff8aa6);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.vf88-game-badge--gold { background: linear-gradient(135deg, #ffcf4d, #ff9c3a); color: #3a2606; }

.vf88-game-name {
    margin-top: 5px;
    font-size: 11px;
    color: var(--vf88-text-soft);
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 28px;
}

/* --------------------------------------------------------------
 * Editorial content blocks (How to Play / What is / Compare).
 * ------------------------------------------------------------ */
.vf88-block {
    background: var(--vf88-bg-card);
    border: 1px solid var(--vf88-line);
    border-radius: var(--vf88-radius-lg);
    padding: 16px;
    margin: 0 0 14px;
}

.vf88-block h2 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 800;
    color: var(--vf88-text);
}

.vf88-block h3 {
    margin: 14px 0 6px;
    font-size: 13.5px;
    color: var(--vf88-accent);
    font-weight: 700;
}

.vf88-block p {
    margin: 0 0 10px;
    color: var(--vf88-text-soft);
    font-size: 13.5px;
}

.vf88-block a { color: var(--vf88-accent); font-weight: 600; }

.vf88-steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0;
}

.vf88-steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 12px 30px;
    color: var(--vf88-text-soft);
    font-size: 13.5px;
}

.vf88-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--vf88-accent);
    color: #06222b;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vf88-compare {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.vf88-compare div {
    padding: 10px;
    background: var(--vf88-bg-soft);
    border-radius: 10px;
    border: 1px solid var(--vf88-line);
}

.vf88-compare strong { color: var(--vf88-text); display: block; font-size: 12.5px; margin-bottom: 2px; }
.vf88-compare span { color: var(--vf88-text-soft); font-size: 12px; }

.vf88-key-list { padding-left: 18px; margin: 6px 0; color: var(--vf88-text-soft); font-size: 13.5px; }
.vf88-key-list li { margin-bottom: 4px; }

/* --------------------------------------------------------------
 * Extended footer (brand > directory > promotions > disclaimer).
 * ------------------------------------------------------------ */
.vf88-ext {
    margin: 8px 0 16px;
}

.vf88-ext-brand {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.10), rgba(0, 229, 255, 0.02));
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: var(--vf88-radius-lg);
    padding: 16px;
    margin-bottom: 12px;
}

.vf88-ext-brand h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--vf88-text);
    font-weight: 800;
}

.vf88-ext-brand p {
    margin: 0;
    color: var(--vf88-text-soft);
    font-size: 12.5px;
}

.vf88-ext-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.vf88-ext-tile {
    background: var(--vf88-bg-card);
    border: 1px solid var(--vf88-line);
    border-radius: var(--vf88-radius);
    padding: 10px;
    color: var(--vf88-text);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    display: block;
}

.vf88-ext-tile small {
    display: block;
    color: var(--vf88-text-dim);
    font-size: 10.5px;
    font-weight: 400;
    margin-top: 2px;
}

.vf88-ext-tile:hover {
    border-color: var(--vf88-accent);
    color: var(--vf88-accent);
    text-decoration: none;
}

.vf88-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.vf88-shortcut {
    padding: 10px 6px;
    border-radius: 10px;
    background: var(--vf88-bg-card);
    border: 1px solid var(--vf88-line);
    color: var(--vf88-text);
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: block;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.vf88-shortcut:hover { border-color: var(--vf88-accent); color: var(--vf88-accent); text-decoration: none; }

.vf88-shortcut .vf88-ico {
    font-size: 16px;
    color: var(--vf88-accent);
    line-height: 1;
}

.vf88-disclaimer {
    font-size: 11px;
    color: var(--vf88-text-dim);
    line-height: 1.55;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--vf88-line);
}

/* --------------------------------------------------------------
 * Copyright footer (above fixed bottom nav).
 * ------------------------------------------------------------ */
.vf88-footer {
    text-align: center;
    padding: 14px 12px calc(var(--vf88-bottom-h) + 18px);
    color: var(--vf88-text-dim);
    font-size: 11.5px;
    border-top: 1px solid var(--vf88-line);
    margin-top: 10px;
}

.vf88-footer p { margin: 0 0 4px; }

/* --------------------------------------------------------------
 * Fixed mobile bottom navigation - brand-emphasis band.
 * Filled icons with a contained active state.
 * ------------------------------------------------------------ */
.vf88-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: linear-gradient(180deg, rgba(13, 22, 33, 0.97), rgba(8, 14, 22, 0.98));
    border-top: 1px solid var(--vf88-line);
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.32);
    display: none; /* shown via media query on phone-class widths */
}

.vf88-bottom-inner {
    max-width: var(--vf88-max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    height: var(--vf88-bottom-h);
}

.vf88-bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--vf88-text-dim);
    background: transparent;
    border: none;
    text-decoration: none;
    padding: 6px 2px 4px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    position: relative;
    min-height: 44px;
}

.vf88-bottom-btn:hover { color: var(--vf88-text); text-decoration: none; }

.vf88-bottom-btn .vf88-ico {
    font-size: 18px;
    line-height: 1;
    color: inherit;
}

.vf88-bottom-btn .vf88-label {
    color: inherit;
    letter-spacing: 0.3px;
}

.vf88-bottom-btn--active {
    color: var(--vf88-accent);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.14), rgba(0, 229, 255, 0));
    border-radius: 12px 12px 0 0;
}

.vf88-bottom-btn--active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--vf88-accent);
}

/* --------------------------------------------------------------
 * Desktop fallback: keep phone canvas, hide bottom nav, replace
 * with a safe inline footer hint. Bottom nav is a phone-only
 * affordance on this site.
 * ------------------------------------------------------------ */
@media (min-width: 540px) {
    .vf88-bottom { display: none !important; }
    .vf88-footer { padding-bottom: 22px; }
}

@media (max-width: 539px) {
    .vf88-bottom { display: block; }
    body { padding-bottom: 0; }
}

/* Ensure the main wrapper always leaves breathing room for the
   fixed bottom nav on phone-class widths. */
@media (max-width: 539px) {
    .vf88-canvas { padding-bottom: var(--vf88-bottom-h); }
}

/* Utility */
.vf88-hide { display: none !important; }
.vf88-mt-0 { margin-top: 0 !important; }

/* Long content readability for SEO text blocks. */
.vf88-prose p { font-size: 13.5px; color: var(--vf88-text-soft); margin: 0 0 10px; }
.vf88-prose strong { color: var(--vf88-text); }
