/* ============================================================
 * EE88 Link - Core stylesheet (basefiles)
 * Class prefix: .w2021-  |  CSS vars: --w2021-*
 * Palette: #141414 #D2691E #DEE2E6 #F0F8FF #DEB887 #AD1457
 * Mobile-first. Root font 62.5% => 1rem = 10px.
 * ============================================================ */

:root {
    --w2021-bg: #141414;
    --w2021-primary: #D2691E;
    --w2021-text: #DEE2E6;
    --w2021-surface: #F0F8FF;
    --w2021-gold: #DEB887;
    --w2021-accent: #AD1457;
    --w2021-dark-2: #1d1d1d;
    --w2021-dark-3: #252525;
    --w2021-muted: #9aa0a6;
    --w2021-radius: 12px;
    --w2021-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    --w2021-shadow-gold: 0 6px 22px rgba(210, 105, 30, 0.35);
}

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

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

body {
    font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    background: var(--w2021-bg);
    color: var(--w2021-text);
    line-height: 1.5rem;
    font-size: 1.5rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: var(--w2021-gold); text-decoration: none; }
a:hover { color: var(--w2021-primary); }

/* ---------- Layout ---------- */
.w2021-wrapper {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    background: var(--w2021-bg);
    min-height: 100vh;
    position: relative;
}

.w2021-container {
    width: 100%;
    padding: 0 1.2rem;
}

main.w2021-main {
    padding-top: 6.4rem;
    padding-bottom: 8.5rem;
}

/* ---------- Header ---------- */
.w2021-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: 6rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
    border-bottom: 1px solid rgba(210, 105, 30, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
    z-index: 1000;
    box-shadow: var(--w2021-shadow);
}

.w2021-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--w2021-text);
    font-weight: 700;
    font-size: 1.7rem;
}

.w2021-brand img {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(222, 184, 135, 0.5);
}

.w2021-brand-name b { color: var(--w2021-primary); }

.w2021-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.w2021-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    font-size: 1.3rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    min-height: 3.6rem;
}

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

.w2021-btn-primary {
    background: linear-gradient(135deg, var(--w2021-primary) 0%, #b9531a 100%);
    color: #fff;
    box-shadow: var(--w2021-shadow-gold);
}

.w2021-btn-ghost {
    background: transparent;
    color: var(--w2021-text);
    border: 1px solid rgba(222, 184, 135, 0.55);
}

.w2021-menu-btn {
    background: transparent;
    border: 1px solid rgba(222, 184, 135, 0.35);
    color: var(--w2021-text);
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 0.8rem;
    font-size: 1.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Mobile menu ---------- */
.w2021-mobile-menu {
    position: fixed;
    top: 6rem;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: var(--w2021-dark-2);
    border-bottom: 1px solid rgba(210, 105, 30, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 9999;
}

.w2021-mobile-menu.w2021-open { max-height: 60rem; }

.w2021-mobile-menu ul { list-style: none; padding: 0.6rem 1.2rem 1.2rem; }

.w2021-mobile-menu li a {
    display: block;
    padding: 1.1rem 1rem;
    color: var(--w2021-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 1.4rem;
}

.w2021-mobile-menu li a:hover { color: var(--w2021-primary); background: rgba(210, 105, 30, 0.08); }

/* ---------- Slider ---------- */
.w2021-slider {
    position: relative;
    border-radius: var(--w2021-radius);
    overflow: hidden;
    margin-bottom: 1.6rem;
    box-shadow: var(--w2021-shadow);
}

.w2021-slide {
    display: none;
    cursor: pointer;
}

.w2021-slide.w2021-active { display: block; }

.w2021-slide img { width: 100%; height: 18rem; object-fit: cover; }

.w2021-slide-cap {
    position: absolute;
    left: 1.2rem;
    bottom: 1.2rem;
    right: 1.2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 1rem;
    border-radius: 0.8rem;
}

.w2021-slide-cap h3 { font-size: 1.6rem; color: var(--w2021-gold); margin-bottom: 0.3rem; }
.w2021-slide-cap p { font-size: 1.2rem; }

.w2021-dots {
    position: absolute;
    bottom: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.w2021-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    border: none;
}

.w2021-dot.w2021-active { background: var(--w2021-primary); width: 2rem; border-radius: 999px; }

/* ---------- Section titles ---------- */
.w2021-section { margin-bottom: 2.4rem; }

.w2021-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.w2021-section-head h2 {
    font-size: 1.8rem;
    color: var(--w2021-gold);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.w2021-section-head h2 i { color: var(--w2021-primary); }

.w2021-more { font-size: 1.2rem; color: var(--w2021-primary); }

/* ---------- Category chips ---------- */
.w2021-chips {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

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

.w2021-chip {
    flex: 0 0 auto;
    padding: 0.6rem 1.2rem;
    background: var(--w2021-dark-3);
    border: 1px solid rgba(222, 184, 135, 0.3);
    border-radius: 999px;
    font-size: 1.2rem;
    color: var(--w2021-text);
    cursor: pointer;
    white-space: nowrap;
}

.w2021-chip.w2021-chip-active {
    background: linear-gradient(135deg, var(--w2021-primary), #b9531a);
    color: #fff;
    border-color: transparent;
}

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

.w2021-game-card {
    background: var(--w2021-dark-2);
    border-radius: 1rem;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid rgba(255,255,255,0.04);
}

.w2021-game-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--w2021-shadow-gold);
}

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

.w2021-game-card .w2021-game-name {
    padding: 0.5rem 0.4rem;
    font-size: 1.1rem;
    color: var(--w2021-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Cards / panels ---------- */
.w2021-card {
    background: var(--w2021-dark-2);
    border: 1px solid rgba(222, 184, 135, 0.15);
    border-radius: var(--w2021-radius);
    padding: 1.6rem;
    margin-bottom: 1.4rem;
    box-shadow: var(--w2021-shadow);
}

.w2021-card h3 { color: var(--w2021-gold); margin-bottom: 0.8rem; font-size: 1.6rem; }
.w2021-card p { margin-bottom: 0.8rem; color: var(--w2021-text); }
.w2021-card ul { padding-left: 1.6rem; margin: 0.6rem 0; }
.w2021-card li { margin-bottom: 0.5rem; }

.w2021-promo-link {
    color: var(--w2021-primary);
    font-weight: 700;
    border-bottom: 1px dashed var(--w2021-primary);
}

/* ---------- RTP stats ---------- */
.w2021-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.w2021-stat {
    background: linear-gradient(135deg, var(--w2021-dark-3), var(--w2021-dark-2));
    border-radius: 1rem;
    padding: 1.2rem;
    text-align: center;
    border: 1px solid rgba(210, 105, 30, 0.25);
}

.w2021-stat .w2021-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--w2021-primary);
    display: block;
}

.w2021-stat .w2021-stat-label { font-size: 1.1rem; color: var(--w2021-muted); }

/* ---------- Testimonials ---------- */
.w2021-testimonial {
    background: var(--w2021-dark-3);
    border-left: 3px solid var(--w2021-primary);
    border-radius: 0.8rem;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.w2021-testimonial .w2021-quote { font-style: italic; color: var(--w2021-text); }
.w2021-testimonial .w2021-author { margin-top: 0.6rem; color: var(--w2021-gold); font-size: 1.2rem; }

/* ---------- Winners ---------- */
.w2021-winner-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: var(--w2021-dark-3);
    border-radius: 0.8rem;
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.w2021-winner-row b { color: var(--w2021-gold); }

/* ---------- Payment / app ---------- */
.w2021-pay-row, .w2021-app-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.w2021-pay-tag, .w2021-app-tag {
    background: var(--w2021-dark-3);
    border: 1px solid rgba(222, 184, 135, 0.3);
    color: var(--w2021-text);
    padding: 0.5rem 0.9rem;
    border-radius: 0.6rem;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ---------- Hero CTA banner ---------- */
.w2021-cta {
    background: linear-gradient(135deg, var(--w2021-accent), #7a0e3b);
    border-radius: var(--w2021-radius);
    padding: 1.6rem;
    text-align: center;
    color: #fff;
    margin-bottom: 1.6rem;
}

.w2021-cta h3 { color: var(--w2021-gold); font-size: 1.8rem; margin-bottom: 0.6rem; }
.w2021-cta p { margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.w2021-footer {
    background: #0e0e0e;
    padding: 2.2rem 1.2rem 8.5rem;
    border-top: 1px solid rgba(210, 105, 30, 0.25);
    color: var(--w2021-muted);
}

.w2021-footer h4 { color: var(--w2021-gold); font-size: 1.4rem; margin: 1.2rem 0 0.6rem; }

.w2021-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
    margin: 0.6rem 0;
}

.w2021-footer-links a {
    color: var(--w2021-text);
    font-size: 1.2rem;
}

.w2021-footer-brand { font-size: 1.2rem; line-height: 1.7rem; margin-bottom: 1rem; }

.w2021-footer-copy {
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 1.1rem;
    color: var(--w2021-muted);
    text-align: center;
}

.w2021-footer-promos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.8rem 0;
}

.w2021-footer-promos button, .w2021-footer-promos a {
    background: var(--w2021-dark-3);
    color: var(--w2021-gold);
    border: 1px solid rgba(210, 105, 30, 0.3);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* ---------- Mobile bottom nav ---------- */
.w2021-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: 6.2rem;
    background: linear-gradient(180deg, #1c1c1c, #0e0e0e);
    border-top: 1px solid rgba(210, 105, 30, 0.4);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.4);
}

.w2021-navbtn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--w2021-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 6rem;
    min-height: 6rem;
    padding: 0.4rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.15s ease, transform 0.15s ease;
}

.w2021-navbtn .w2021-nav-ico { font-size: 2.4rem; line-height: 1; }
.w2021-navbtn .material-icons { font-size: 2.4rem; }
.w2021-navbtn .ion { font-size: 2.4rem; }

.w2021-navbtn:active { transform: scale(0.92); }
.w2021-navbtn.w2021-navbtn-active { color: var(--w2021-primary); }
.w2021-navbtn.w2021-navbtn-active .w2021-nav-ico { color: var(--w2021-gold); }

/* ---------- Desktop: hide bottom nav ---------- */
@media (min-width: 769px) {
    .w2021-bottom-nav { display: none; }
}

@media (max-width: 768px) {
    main.w2021-main { padding-bottom: 8.5rem; }
}

/* ---------- Utility ---------- */
.w2021-text-gold { color: var(--w2021-gold); }
.w2021-text-primary { color: var(--w2021-primary); }
.w2021-mt-1 { margin-top: 1rem; }
.w2021-mt-2 { margin-top: 2rem; }
.w2021-center { text-align: center; }
.w2021-hidden { display: none; }
