/* ll-win.click - basefiles CSS | prefix: g4d0 */
/* Palette: #48D1CC #DEB887 #FFEFD5 #8B7355 #333333 */

:root {
    --appc34-primary: #48D1CC;
    --appc34-gold: #DEB887;
    --appc34-cream: #FFEFD5;
    --appc34-brown: #8B7355;
    --appc34-dark: #333333;
    --appc34-bg: #1c2226;
    --appc34-bg2: #232a30;
    --appc34-card: #2b3138;
    --appc34-line: rgba(222, 184, 135, 0.22);
    --appc34-text: #FFEFD5;
    --appc34-muted: #b9a98a;
}

/* Use unique class prefix g4d0- as required, mapped to design tokens */
.g4d0-wrap { box-sizing: border-box; }
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, -apple-system, Arial, sans-serif;
    background: var(--appc34-bg);
    color: var(--appc34-text);
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--appc34-gold); text-decoration: none; }
a:hover { color: var(--appc34-primary); }

.g4d0-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.g4d0-row { display: flex; flex-wrap: wrap; }
.g4d0-center { text-align: center; }
.g4d0-hidden-mobile { display: none; }

/* ===== Header ===== */
.g4d0-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(28,34,38,0.98), rgba(28,34,38,0.92));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--appc34-line);
}
.g4d0-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 12px;
}
.g4d0-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--appc34-cream); font-size: 1.18rem; }
.g4d0-logo .g4d0-logo-mark {
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, #48D1CC, #DEB887);
    color: #1c2226; display: grid; place-items: center; font-weight: 900;
    box-shadow: 0 4px 14px rgba(72,209,204,0.35);
}
.g4d0-logo small { color: var(--appc34-gold); font-size: 0.7rem; font-weight: 600; }
.g4d0-header-actions { display: flex; align-items: center; gap: 8px; }
.g4d0-btn {
    border: 0; cursor: pointer; font-weight: 700; border-radius: 999px;
    padding: 9px 16px; font-size: 0.86rem; line-height: 1;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.g4d0-btn:active { transform: scale(0.96); }
.g4d0-btn-login {
    background: transparent; color: var(--appc34-cream);
    border: 1px solid var(--appc34-gold);
}
.g4d0-btn-login:hover { background: rgba(222,184,135,0.12); }
.g4d0-btn-register {
    background: linear-gradient(135deg, #48D1CC, #DEB887);
    color: #1c2226;
    box-shadow: 0 6px 18px rgba(72,209,204,0.35);
}
.g4d0-btn-register:hover { filter: brightness(1.06); }
.g4d0-menu-btn {
    background: transparent; border: 0; color: var(--appc34-cream);
    font-size: 1.4rem; padding: 4px 6px; cursor: pointer; border-radius: 8px;
}
.g4d0-menu-btn:hover { background: rgba(255,239,213,0.08); }

/* ===== Mobile menu ===== */
.g4d0-menu-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.55);
    opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 9998;
}
.g4d0-menu-backdrop.g4d0-show { opacity: 1; pointer-events: auto; }
.g4d0-mobile-menu {
    position: fixed; top: 0; right: -86%; width: 80%; max-width: 320px;
    height: 100%; background: var(--appc34-bg2); z-index: 9999;
    transition: right .3s ease; padding: 22px 18px; overflow-y: auto;
    border-left: 1px solid var(--appc34-line);
}
.g4d0-mobile-menu.g4d0-open { right: 0; }
.g4d0-mobile-menu h4 { color: var(--appc34-gold); margin: 16px 0 8px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; }
.g4d0-mobile-menu a {
    display: block; padding: 11px 12px; border-radius: 10px;
    color: var(--appc34-cream); border-bottom: 1px dashed rgba(222,184,135,0.18);
}
.g4d0-mobile-menu a:hover { background: rgba(72,209,204,0.10); color: var(--appc34-primary); }
.g4d0-menu-close { background: transparent; color: var(--appc34-cream); border: 0; font-size: 1.5rem; float: right; cursor: pointer; }

/* ===== Hero ===== */
.g4d0-hero {
    position: relative; padding: 22px 14px 26px;
    background:
      radial-gradient(120% 80% at 80% 0%, rgba(72,209,204,0.22), transparent 60%),
      radial-gradient(120% 80% at 10% 100%, rgba(222,184,135,0.18), transparent 60%),
      var(--appc34-bg);
    border-bottom: 1px solid var(--appc34-line);
}
.g4d0-hero h1 {
    margin: 6px 0 8px; font-size: 1.7rem; line-height: 1.25; color: var(--appc34-cream);
    text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}
.g4d0-hero h1 .g4d0-hl { color: var(--appc34-primary); }
.g4d0-hero p { margin: 0 0 14px; color: var(--appc34-muted); font-size: 0.94rem; }
.g4d0-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.g4d0-hero-cta .g4d0-btn { padding: 12px 20px; font-size: 0.95rem; }
.g4d0-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.g4d0-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,239,213,0.08); border: 1px solid var(--appc34-line);
    color: var(--appc34-cream); padding: 5px 10px; border-radius: 999px; font-size: 0.74rem;
}
.g4d0-badge i { color: var(--appc34-primary); }

/* ===== Carousel ===== */
.g4d0-carousel {
    position: relative; margin: 16px 0 0; border-radius: 16px; overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35); border: 1px solid var(--appc34-line);
}
.g4d0-slide {
    display: none; position: relative; min-height: 180px;
}
.g4d0-slide img { width: 100%; height: 200px; object-fit: cover; }
.g4d0-slide-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 12px 14px; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
    color: var(--appc34-cream);
}
.g4d0-slide-cap b { color: var(--appc34-gold); display: block; font-size: 1.02rem; }
.g4d0-slide-cap span { font-size: 0.78rem; color: var(--appc34-muted); }
.g4d0-dots { display: flex; gap: 6px; justify-content: center; padding: 8px 0; }
.g4d0-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,239,213,0.25); cursor: pointer; }
.g4d0-dot.g4d0-active { background: var(--appc34-primary); width: 22px; border-radius: 6px; }

/* ===== Section ===== */
.g4d0-section { padding: 26px 0 8px; }
.g4d0-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.g4d0-section-title {
    font-size: 1.22rem; color: var(--appc34-cream); font-weight: 800;
    display: flex; align-items: center; gap: 8px;
}
.g4d0-section-title::before {
    content: ""; width: 5px; height: 22px; border-radius: 4px;
    background: linear-gradient(180deg, #48D1CC, #DEB887);
}
.g4d0-section-sub { color: var(--appc34-muted); font-size: 0.86rem; margin: -6px 0 14px; }
.g4d0-link-more { color: var(--appc34-gold); font-size: 0.84rem; }

/* ===== Category tabs ===== */
.g4d0-tabs {
    display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.g4d0-tabs::-webkit-scrollbar { display: none; }
.g4d0-tab {
    flex: 0 0 auto; background: var(--appc34-card); color: var(--appc34-cream);
    border: 1px solid var(--appc34-line); padding: 8px 14px; border-radius: 999px;
    font-size: 0.82rem; cursor: pointer; white-space: nowrap; font-weight: 600;
}
.g4d0-tab.g4d0-tab-active {
    background: linear-gradient(135deg, #48D1CC, #DEB887);
    color: #1c2226; border-color: transparent;
}

/* ===== Game grid ===== */
.g4d0-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.g4d0-card {
    background: var(--appc34-card); border: 1px solid var(--appc34-line);
    border-radius: 12px; overflow: hidden; position: relative;
    transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.g4d0-card:hover { transform: translateY(-3px); border-color: var(--appc34-primary); box-shadow: 0 10px 22px rgba(0,0,0,0.35); }
.g4d0-card-img { aspect-ratio: 1 / 1; background: #000; }
.g4d0-card-img img { width: 100%; height: 100%; object-fit: cover; }
.g4d0-card-body { padding: 7px 9px 10px; }
.g4d0-card-title {
    font-size: 0.76rem; color: var(--appc34-cream); font-weight: 600;
    line-height: 1.3; min-height: 30px; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.g4d0-card-tag {
    position: absolute; top: 6px; left: 6px; font-size: 0.62rem;
    background: rgba(72,209,204,0.85); color: #1c2226; padding: 2px 7px; border-radius: 6px; font-weight: 700;
}
.g4d0-card-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.0); color: var(--appc34-cream); font-size: 1.6rem;
    opacity: 0; transition: opacity .2s ease, background .2s ease;
}
.g4d0-card:hover .g4d0-card-play { opacity: 1; background: rgba(0,0,0,0.32); }

/* ===== Feature blocks ===== */
.g4d0-feature-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.g4d0-feature {
    display: flex; gap: 12px; background: var(--appc34-card);
    border: 1px solid var(--appc34-line); border-radius: 12px; padding: 14px;
}
.g4d0-feature-icon {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(72,209,204,0.25), rgba(222,184,135,0.25));
    display: grid; place-items: center; color: var(--appc34-primary); font-size: 1.3rem;
}
.g4d0-feature h3 { margin: 0 0 4px; color: var(--appc34-cream); font-size: 0.96rem; }
.g4d0-feature p { margin: 0; color: var(--appc34-muted); font-size: 0.82rem; }

/* ===== Promo banner ===== */
.g4d0-promo {
    background: linear-gradient(135deg, #2b3138, #333333);
    border: 1px solid var(--appc34-line); border-radius: 16px; padding: 18px;
    position: relative; overflow: hidden;
}
.g4d0-promo::after {
    content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(222,184,135,0.35), transparent 70%);
}
.g4d0-promo h3 { margin: 0 0 6px; color: var(--appc34-gold); font-size: 1.1rem; }
.g4d0-promo p { margin: 0 0 12px; color: var(--appc34-cream); font-size: 0.86rem; }

/* ===== SEO content ===== */
.g4d0-seo {
    background: var(--appc34-bg2); border: 1px solid var(--appc34-line);
    border-radius: 14px; padding: 18px; color: var(--appc34-muted); font-size: 0.9rem;
}
.g4d0-seo h2 { color: var(--appc34-cream); font-size: 1.12rem; margin: 0 0 10px; }
.g4d0-seo h3 { color: var(--appc34-gold); font-size: 0.98rem; margin: 14px 0 6px; }
.g4d0-seo p { margin: 0 0 10px; }
.g4d0-seo a { color: var(--appc34-primary); border-bottom: 1px dashed rgba(72,209,204,0.4); }

/* ===== FAQ ===== */
.g4d0-faq-item {
    background: var(--appc34-card); border: 1px solid var(--appc34-line);
    border-radius: 12px; margin-bottom: 10px; overflow: hidden;
}
.g4d0-faq-q {
    width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
    padding: 14px 16px; color: var(--appc34-cream); font-weight: 600; font-size: 0.92rem;
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.g4d0-faq-q .g4d0-faq-icon { color: var(--appc34-primary); transition: transform .2s ease; }
.g4d0-faq-item.g4d0-faq-open .g4d0-faq-icon { transform: rotate(45deg); }
.g4d0-faq-body {
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    padding: 0 16px; color: var(--appc34-muted); font-size: 0.86rem;
}

/* ===== Footer ===== */
.g4d0-footer {
    background: #16191c; border-top: 1px solid var(--appc34-line);
    padding: 24px 0 96px; color: var(--appc34-muted); font-size: 0.84rem;
}
.g4d0-footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g4d0-footer h4 { color: var(--appc34-gold); margin: 0 0 8px; font-size: 0.88rem; }
.g4d0-footer a { display: block; color: var(--appc34-muted); padding: 3px 0; }
.g4d0-footer a:hover { color: var(--appc34-primary); }
.g4d0-footer-bottom { border-top: 1px solid var(--appc34-line); margin-top: 16px; padding-top: 12px; color: #6f6757; font-size: 0.76rem; }

/* ===== Bottom nav ===== */
.g4d0-bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    background: rgba(22,25,28,0.98); backdrop-filter: blur(10px);
    border-top: 1px solid var(--appc34-line);
    display: flex; justify-content: space-around; align-items: stretch;
    height: 64px; padding: 0 4px;
}
.g4d0-bottom-nav a, .g4d0-bottom-nav button {
    flex: 1 1 0; min-width: 60px; min-height: 60px;
    background: transparent; border: 0; color: var(--appc34-muted);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; font-size: 0.66rem; cursor: pointer; padding: 6px 2px; position: relative;
    text-decoration: none;
}
.g4d0-bottom-nav .g4d0-bn-icon { font-size: 22px; line-height: 1; }
.g4d0-bottom-nav a:hover, .g4d0-bottom-nav button:hover { color: var(--appc34-primary); }
.g4d0-bottom-nav .g4d0-active { color: var(--appc34-primary); }
.g4d0-bottom-nav .g4d0-active::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--appc34-primary);
}
.g4d0-bn-promo {
    color: #1c2226 !important;
    background: linear-gradient(135deg, #48D1CC, #DEB887);
    border-radius: 14px; margin: 6px 4px; font-weight: 700;
    box-shadow: 0 6px 14px rgba(72,209,204,0.32);
}
.g4d0-bn-promo .g4d0-bn-icon { color: #1c2226; }

/* Reveal animation */
.g4d0-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.g4d0-reveal.g4d0-in { opacity: 1; transform: none; }

/* ===== Desktop: hide bottom nav, switch layout ===== */
@media (min-width: 769px) {
    .g4d0-bottom-nav { display: none; }
    .g4d0-container { max-width: 960px; }
    .g4d0-header-inner { max-width: 960px; }
    .g4d0-grid { grid-template-columns: repeat(6, 1fr); }
    .g4d0-feature-grid { grid-template-columns: repeat(3, 1fr); }
    .g4d0-footer-cols { grid-template-columns: repeat(4, 1fr); }
    .g4d0-hidden-mobile { display: block; }
}

/* Mobile: keep bottom padding so content isn't covered */
@media (max-width: 768px) {
    main { padding-bottom: 80px; }
}
@media (max-width: 380px) {
    .g4d0-grid { grid-template-columns: repeat(2, 1fr); }
    .g4d0-hero h1 { font-size: 1.45rem; }
}
