/* ===========================================================
 * 3win casino - design-6423.css
 * All custom classes use the "pg64-" prefix.
 * Color palette: #DEB887 | #4682B4 | #2E4057 | #D3D3D3 | #FFB347 | #FFFACD
 * Mobile-first. Root font 62.5% (1rem = 10px).
 * =========================================================== */

:root {
    --pg64-primary: #DEB887;     /* burlywood - brand */
    --pg64-secondary: #4682B4;   /* steel blue */
    --pg64-bg: #2E4057;          /* deep slate */
    --pg64-bg-dark: #1c2a38;
    --pg64-bg-soft: #34495e;
    --pg64-text: #FFFACD;        /* lemon chiffon */
    --pg64-text-dark: #D3D3D3;
    --pg64-accent: #FFB347;      /* orange */
    --pg64-white: #ffffff;
    --pg64-line: rgba(222, 184, 135, 0.22);
    --pg64-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
    --pg64-radius: 14px;
    --pg64-radius-sm: 10px;
    --pg64-header-h: 60px;
    --pg64-bottomnav-h: 62px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 62.5%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", "Be Vietnam Pro", "Roboto", system-ui, sans-serif;
    background: linear-gradient(160deg, var(--pg64-bg-dark) 0%, var(--pg64-bg) 60%, var(--pg64-bg-soft) 100%);
    color: var(--pg64-text-dark);
    line-height: 1.5rem;
    font-size: 1.5rem;
    min-height: 100vh;
    overflow-x: hidden;
}

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

a { color: var(--pg64-accent); text-decoration: none; }

/* ---------------- Container ---------------- */
.pg64-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.pg64-wrapper { width: 100%; }

/* ---------------- Header ---------------- */
.pg64-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--pg64-header-h);
    background: linear-gradient(90deg, var(--pg64-bg-dark), var(--pg64-bg-soft));
    border-bottom: 2px solid var(--pg64-primary);
    box-shadow: 0 2px 12px rgba(0,0,0,.35);
    z-index: 1000;
}

.pg64-header-inner {
    max-width: 430px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.pg64-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--pg64-primary);
    font-weight: 800;
    font-size: 1.7rem;
    line-height: 1;
}

.pg64-logo img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--pg64-primary);
}

.pg64-logo small {
    display: block;
    font-size: 1rem;
    color: var(--pg64-text);
    font-weight: 500;
}

.pg64-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pg64-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.35rem;
    padding: 0.7rem 1.2rem;
    border-radius: 30px;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    min-height: 38px;
    text-decoration: none;
    font-family: inherit;
}

.pg64-btn:active { transform: scale(0.96); }

.pg64-btn-primary {
    background: linear-gradient(135deg, var(--pg64-accent), #ff8c1a);
    color: #2a1500;
    box-shadow: 0 4px 12px rgba(255,179,71,.35);
}

.pg64-btn-secondary {
    background: linear-gradient(135deg, var(--pg64-secondary), #2c5d80);
    color: var(--pg64-white);
    box-shadow: 0 4px 12px rgba(70,130,180,.35);
}

.pg64-btn-ghost {
    background: transparent;
    color: var(--pg64-primary);
    border: 1.5px solid var(--pg64-primary);
}

.pg64-menu-btn {
    background: transparent;
    border: none;
    color: var(--pg64-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    min-width: 40px;
    min-height: 40px;
    border-radius: 8px;
}

/* ---------------- Mobile slide-down menu ---------------- */
.pg64-mobile-menu {
    position: fixed;
    top: var(--pg64-header-h);
    left: 0; right: 0;
    background: var(--pg64-bg-dark);
    border-bottom: 1px solid var(--pg64-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
    z-index: 9999;
}

.pg64-mobile-menu.pg64-menu-open { max-height: 480px; }

.pg64-mobile-menu ul {
    list-style: none;
    max-width: 430px;
    margin: 0 auto;
    padding: 0.8rem 1.2rem 1.2rem;
}

.pg64-mobile-menu li { border-bottom: 1px solid var(--pg64-line); }
.pg64-mobile-menu li:last-child { border-bottom: none; }

.pg64-mobile-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 0.4rem;
    color: var(--pg64-text);
    font-size: 1.4rem;
    font-weight: 600;
}

.pg64-mobile-menu a i { color: var(--pg64-accent); width: 22px; text-align: center; }

/* ---------------- Main ---------------- */
.pg64-main {
    padding-top: calc(var(--pg64-header-h) + 8px);
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .pg64-main { padding-bottom: calc(var(--pg64-bottomnav-h) + 16px); }
}

/* ---------------- Carousel ---------------- */
.pg64-carousel {
    position: relative;
    border-radius: var(--pg64-radius);
    overflow: hidden;
    margin: 1rem 0;
    box-shadow: var(--pg64-shadow);
    aspect-ratio: 16/7;
    background: #000;
}

.pg64-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .55s ease;
}

.pg64-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
}

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

.pg64-slide-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1rem 1.2rem;
    background: linear-gradient(transparent, rgba(0,0,0,.78));
    color: var(--pg64-text);
}

.pg64-slide-caption h3 { font-size: 1.6rem; color: var(--pg64-primary); margin-bottom: 0.2rem; }
.pg64-slide-caption p { font-size: 1.2rem; color: var(--pg64-text-dark); }

.pg64-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.pg64-carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    border: none;
    cursor: pointer;
    padding: 0;
}

.pg64-carousel-dot.pg64-dot-active {
    background: var(--pg64-accent);
    width: 22px;
    border-radius: 6px;
}

/* ---------------- Section ---------------- */
.pg64-section {
    margin: 2rem 0;
    padding: 0 0.2rem;
}

.pg64-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--pg64-line);
}

.pg64-section-head h2 {
    font-size: 1.8rem;
    color: var(--pg64-primary);
    font-weight: 800;
}

.pg64-section-head .pg64-more {
    font-size: 1.2rem;
    color: var(--pg64-accent);
    font-weight: 600;
}

.pg64-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--pg64-accent), var(--pg64-primary));
    color: #2a1500;
    font-size: 1.15rem;
    font-weight: 800;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
}

/* ---------------- Game grid ---------------- */
.pg64-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.pg64-grid-4 { grid-template-columns: repeat(4, 1fr); }

.pg64-card {
    background: linear-gradient(160deg, var(--pg64-bg-soft), var(--pg64-bg-dark));
    border: 1px solid var(--pg64-line);
    border-radius: var(--pg64-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    display: block;
    color: inherit;
}

.pg64-card:hover, .pg64-card:active {
    transform: translateY(-3px);
    box-shadow: var(--pg64-shadow);
    border-color: var(--pg64-accent);
}

.pg64-card-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background: #000;
}

.pg64-card-name {
    padding: 0.5rem 0.4rem;
    font-size: 1.1rem;
    color: var(--pg64-text);
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pg64-card-hot {
    position: relative;
}
.pg64-card-hot::before {
    content: "HOT";
    position: absolute;
    top: 4px; left: 4px;
    background: #ff3b3b;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    z-index: 2;
}

/* ---------------- Filter tabs ---------------- */
.pg64-filter {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.4rem 0 1rem;
    -webkit-overflow-scrolling: touch;
}
.pg64-filter::-webkit-scrollbar { display: none; }

.pg64-filter-tab {
    flex: 0 0 auto;
    background: var(--pg64-bg-soft);
    color: var(--pg64-text-dark);
    border: 1px solid var(--pg64-line);
    border-radius: 20px;
    padding: 0.5rem 1.1rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.pg64-filter-tab.pg64-filter-active {
    background: linear-gradient(135deg, var(--pg64-accent), var(--pg64-primary));
    color: #2a1500;
    border-color: transparent;
}

/* ---------------- Promo CTA ---------------- */
.pg64-cta {
    background: linear-gradient(135deg, #ff8c1a, var(--pg64-accent));
    color: #2a1500;
    border-radius: var(--pg64-radius);
    padding: 1.4rem;
    text-align: center;
    margin: 1.6rem 0;
    box-shadow: var(--pg64-shadow);
}

.pg64-cta h3 { font-size: 1.8rem; margin-bottom: 0.4rem; color: #2a1500; }
.pg64-cta p { font-size: 1.25rem; margin-bottom: 1rem; color: #3a2400; }
.pg64-cta .pg64-btn { font-size: 1.4rem; padding: 0.9rem 2rem; }

/* ---------------- Feature / info blocks ---------------- */
.pg64-info {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--pg64-line);
    border-radius: var(--pg64-radius);
    padding: 1.4rem;
    margin: 1rem 0;
}

.pg64-info h2 { color: var(--pg64-primary); font-size: 1.7rem; margin-bottom: 0.8rem; }
.pg64-info h3 { color: var(--pg64-accent); font-size: 1.35rem; margin: 1rem 0 0.4rem; }
.pg64-info p { color: var(--pg64-text-dark); font-size: 1.3rem; margin-bottom: 0.7rem; }
.pg64-info ul { padding-left: 1.6rem; }
.pg64-info li { color: var(--pg64-text-dark); font-size: 1.3rem; margin-bottom: 0.4rem; }

.pg64-info a { color: var(--pg64-accent); font-weight: 600; text-decoration: underline; }

/* ---------------- Steps ---------------- */
.pg64-steps { counter-reset: step; }
.pg64-step {
    position: relative;
    padding: 0.8rem 0.8rem 0.8rem 3.4rem;
    margin-bottom: 0.8rem;
    background: rgba(255,255,255,.03);
    border-left: 3px solid var(--pg64-primary);
    border-radius: 8px;
}
.pg64-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0.6rem; top: 0.8rem;
    width: 2.2rem; height: 2.2rem;
    background: linear-gradient(135deg, var(--pg64-accent), var(--pg64-primary));
    color: #2a1500;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem;
}
.pg64-step h4 { color: var(--pg64-primary); font-size: 1.25rem; margin-bottom: 0.2rem; }
.pg64-step p { color: var(--pg64-text-dark); font-size: 1.2rem; }

/* ---------------- FAQ ---------------- */
.pg64-faq-item {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--pg64-line);
    border-radius: var(--pg64-radius-sm);
    padding: 1rem 1.2rem;
    margin-bottom: 0.7rem;
}
.pg64-faq-item h4 { color: var(--pg64-accent); font-size: 1.3rem; margin-bottom: 0.4rem; }
.pg64-faq-item p { color: var(--pg64-text-dark); font-size: 1.25rem; }

/* ---------------- Testimonials ---------------- */
.pg64-testi {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--pg64-line);
    border-radius: var(--pg64-radius-sm);
    padding: 1rem;
    margin-bottom: 0.8rem;
}
.pg64-testi-stars { color: #ffd84d; font-size: 1.2rem; margin-bottom: 0.3rem; }
.pg64-testi p { color: var(--pg64-text-dark); font-size: 1.25rem; font-style: italic; }
.pg64-testi cite { display: block; margin-top: 0.5rem; color: var(--pg64-primary); font-size: 1.15rem; font-style: normal; font-weight: 700; }

/* ---------------- Payment / winners ---------------- */
.pg64-pills {
    display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.pg64-pill {
    background: var(--pg64-bg-soft);
    border: 1px solid var(--pg64-line);
    border-radius: 30px;
    padding: 0.5rem 1rem;
    font-size: 1.15rem;
    color: var(--pg64-text);
    display: inline-flex; align-items: center; gap: 0.4rem;
}

.pg64-winner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.7rem 0.9rem;
    background: rgba(255,255,255,.03);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--pg64-accent);
}
.pg64-winner span:first-child { color: var(--pg64-text); font-weight: 700; font-size: 1.2rem; }
.pg64-winner span:last-child { color: var(--pg64-accent); font-weight: 800; font-size: 1.3rem; }

/* ---------------- RTP table ---------------- */
.pg64-rtp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.2rem;
}
.pg64-rtp-table th, .pg64-rtp-table td {
    padding: 0.7rem 0.6rem;
    border-bottom: 1px solid var(--pg64-line);
    text-align: left;
}
.pg64-rtp-table th { color: var(--pg64-primary); font-weight: 800; }
.pg64-rtp-table td { color: var(--pg64-text-dark); }
.pg64-rtp-table td:last-child { color: var(--pg64-accent); font-weight: 700; text-align: right; }

/* ---------------- Reveal animation ---------------- */
.pg64-reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.pg64-reveal.pg64-revealed { opacity: 1; transform: translateY(0); }

/* ---------------- Footer ---------------- */
.pg64-footer {
    background: var(--pg64-bg-dark);
    border-top: 2px solid var(--pg64-primary);
    padding: 2rem 1.2rem 1rem;
    margin-top: 2rem;
}

.pg64-footer-inner { max-width: 430px; margin: 0 auto; }

.pg64-footer-about { color: var(--pg64-text-dark); font-size: 1.25rem; margin-bottom: 1.2rem; line-height: 1.6rem; }
.pg64-footer-about strong { color: var(--pg64-primary); }

.pg64-footer-promos {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-bottom: 1.2rem;
}
.pg64-footer-promos .pg64-btn { font-size: 1.2rem; padding: 0.55rem 1rem; min-height: 34px; }

.pg64-footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1rem;
    margin-bottom: 1rem;
}
.pg64-footer-links a {
    color: var(--pg64-text-dark);
    font-size: 1.2rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.pg64-footer-links a:hover { color: var(--pg64-accent); }

.pg64-copyright {
    text-align: center;
    color: var(--pg64-text-dark);
    font-size: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pg64-line);
}

/* ---------------- Bottom nav ---------------- */
.pg64-bottomnav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--pg64-bottomnav-h);
    background: linear-gradient(180deg, var(--pg64-bg-soft), var(--pg64-bg-dark));
    border-top: 2px solid var(--pg64-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -3px 14px rgba(0,0,0,.35);
}

.pg64-bottomnav-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--pg64-text-dark);
    font-family: inherit;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    padding: 4px 2px;
    transition: color .18s ease, transform .18s ease;
}

.pg64-bottomnav-btn .pg64-bottomnav-icon { font-size: 22px; line-height: 1; }
.pg64-bottomnav-btn .pg64-bottomnav-label { font-size: 1rem; font-weight: 600; }

.pg64-bottomnav-btn:active { transform: scale(0.9); }
.pg64-bottomnav-btn:hover { color: var(--pg64-accent); }
.pg64-bottomnav-btn.pg64-bottomnav-current {
    color: var(--pg64-accent);
}
.pg64-bottomnav-btn.pg64-bottomnav-current .pg64-bottomnav-label { font-weight: 800; }

.pg64-bottomnav-badge {
    position: absolute;
    top: 4px; right: 14px;
    background: #ff3b3b;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0 5px;
    border-radius: 10px;
    line-height: 1.4;
}

/* ---------------- Desktop ---------------- */
@media (min-width: 769px) {
    .pg64-bottomnav { display: none; }
    .pg64-container, .pg64-footer-inner, .pg64-header-inner, .pg64-mobile-menu ul {
        max-width: 720px;
    }
    .pg64-grid { grid-template-columns: repeat(6, 1fr); }
    .pg64-grid-4 { grid-template-columns: repeat(8, 1fr); }
}

/* Utility */
.pg64-text-center { text-align: center; }
.pg64-mt-1 { margin-top: 1rem; }
.pg64-mb-1 { margin-bottom: 1rem; }
.pg64-highlight { color: var(--pg64-accent); font-weight: 700; }
.pg64-divider { height: 1px; background: var(--pg64-line); margin: 1.4rem 0; }
