/* ===========================================================
   Fair Play Casino - Shared Stylesheet
   All custom classes use the "w47cb-" prefix.
   Palette: #1E1E1E / #BC8F8F / #4B0082 / #CD853F / #FAF0E6
   =========================================================== */

:root {
    --w47cb-bg: #1E1E1E;
    --w47cb-surface: #2a2330;
    --w47cb-primary: #4B0082;
    --w47cb-accent: #CD853F;
    --w47cb-soft: #BC8F8F;
    --w47cb-text: #FAF0E6;
    --w47cb-muted: #b8a9b8;
    --w47cb-border: rgba(205, 133, 63, 0.28);
    --w47cb-radius: 14px;
    --w47cb-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    --w47cb-header-h: 58px;
    --w47cb-bottomnav-h: 62px;
}

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

html {
    font-size: 62.5%;           /* 1rem = 10px for rem scaling */
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    background: radial-gradient(circle at top, #2a1f33 0%, var(--w47cb-bg) 55%);
    color: var(--w47cb-text);
    line-height: 1.5rem;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 72px;       /* room for fixed bottom nav */
}

a { color: var(--w47cb-accent); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.w47cb-wrapper { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.w47cb-container { padding-top: calc(var(--w47cb-header-h) + 1rem); padding-bottom: 2rem; }
.w47cb-section { margin: 2.4rem 0; }
.w47cb-section-title {
    font-size: 1.7rem; font-weight: 800; color: var(--w47cb-text);
    border-left: 4px solid var(--w47cb-accent); padding-left: 1rem; margin-bottom: 1.2rem;
}
.w47cb-section-title small { display: block; font-size: 1.2rem; color: var(--w47cb-soft); font-weight: 500; }

/* ---------- Header ---------- */
.w47cb-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--w47cb-header-h);
    background: linear-gradient(90deg, #1b1220 0%, #3a1d52 60%, #4B0082 100%);
    border-bottom: 1px solid var(--w47cb-border);
    box-shadow: var(--w47cb-shadow);
}
.w47cb-header-inner {
    max-width: 430px; margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between; padding: 0 1rem;
}
.w47cb-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--w47cb-text); }
.w47cb-brand img { width: 28px; height: 28px; border-radius: 6px; }
.w47cb-brand-name { font-size: 1.45rem; font-weight: 800; letter-spacing: 0.3px; }
.w47cb-brand-name span { color: var(--w47cb-accent); }
.w47cb-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.w47cb-menu-btn {
    background: transparent; border: 0; color: var(--w47cb-text);
    font-size: 1.8rem; cursor: pointer; padding: 0.4rem 0.6rem; border-radius: 8px;
}
.w47cb-menu-btn:hover { background: rgba(255,255,255,0.08); }

/* ---------- Buttons ---------- */
.w47cb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.75rem 1.4rem; border-radius: 999px; font-size: 1.35rem; font-weight: 700;
    cursor: pointer; border: 0; min-height: 38px; transition: transform 0.15s ease, filter 0.15s ease;
    color: #fff; text-align: center;
}
.w47cb-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.w47cb-btn-register { background: linear-gradient(90deg, var(--w47cb-accent), #e3a957); color: #2a1500; }
.w47cb-btn-login { background: transparent; border: 1.5px solid var(--w47cb-accent); color: var(--w47cb-text); }
.w47cb-btn-cta { background: linear-gradient(90deg, var(--w47cb-primary), #7a1bbf); width: 100%; padding: 1rem; font-size: 1.5rem; }
.w47cb-link-text { color: var(--w47cb-accent); font-weight: 700; border-bottom: 1px dashed var(--w47cb-accent); padding-bottom: 1px; }

/* ---------- Mobile slide-down menu ---------- */
.w47cb-mobile-menu {
    position: fixed; top: var(--w47cb-header-h); left: 0; right: 0; z-index: 9999;
    background: #221629; border-bottom: 1px solid var(--w47cb-border);
    max-height: 0; overflow: hidden; transition: max-height 0.28s ease;
    box-shadow: var(--w47cb-shadow);
}
.w47cb-menu-open { max-height: 480px; }
.w47cb-mobile-menu ul { list-style: none; padding: 0.6rem 1rem; }
.w47cb-mobile-menu li a {
    display: block; padding: 0.85rem 0.6rem; color: var(--w47cb-text); font-size: 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.w47cb-mobile-menu li a:hover { color: var(--w47cb-accent); }

/* ---------- Hero carousel ---------- */
.w47cb-hero {
    position: relative; border-radius: var(--w47cb-radius); overflow: hidden;
    box-shadow: var(--w47cb-shadow); margin-top: 1.2rem;
}
.w47cb-slide {
    opacity: 0; transition: opacity 0.6s ease; position: absolute; inset: 0;
}
.w47cb-slide img { width: 100%; height: 180px; object-fit: cover; }
.w47cb-slide-active { opacity: 1; position: relative; }
.w47cb-hero-overlay {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.78));
    padding: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.w47cb-hero-overlay h2 { font-size: 1.6rem; color: #fff; }
.w47cb-dots { display: flex; gap: 0.5rem; justify-content: center; padding: 0.6rem; }
.w47cb-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; }
.w47cb-dot-active { background: var(--w47cb-accent); }

/* ---------- Game grid ---------- */
.w47cb-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.w47cb-game {
    background: var(--w47cb-surface); border: 1px solid var(--w47cb-border);
    border-radius: 12px; padding: 0.6rem; text-align: center; cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.w47cb-game:hover { transform: translateY(-2px); box-shadow: var(--w47cb-shadow); border-color: var(--w47cb-accent); }
.w47cb-game img { width: 100%; height: 78px; object-fit: cover; border-radius: 8px; margin-bottom: 0.4rem; }
.w47cb-game-name { font-size: 1.15rem; color: var(--w47cb-text); font-weight: 600; line-height: 1.3; min-height: 30px; }

/* ---------- Cards ---------- */
.w47cb-card {
    background: var(--w47cb-surface); border: 1px solid var(--w47cb-border);
    border-radius: var(--w47cb-radius); padding: 1.4rem; margin-bottom: 1.2rem;
    box-shadow: var(--w47cb-shadow);
}
.w47cb-card h3 { font-size: 1.5rem; color: var(--w47cb-accent); margin-bottom: 0.6rem; }
.w47cb-card p { font-size: 1.3rem; color: var(--w47cb-muted); margin-bottom: 0.6rem; }
.w47cb-card ul { padding-left: 1.4rem; color: var(--w47cb-muted); font-size: 1.3rem; }
.w47cb-card li { margin-bottom: 0.4rem; }

/* ---------- Feature row ---------- */
.w47cb-feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.w47cb-feature {
    background: rgba(75,0,130,0.18); border: 1px solid var(--w47cb-border);
    border-radius: 12px; padding: 1rem; text-align: center;
}
.w47cb-feature span.material-icons, .w47cb-feature i { font-size: 2.2rem; color: var(--w47cb-accent); }
.w47cb-feature h4 { font-size: 1.25rem; margin: 0.4rem 0; color: var(--w47cb-text); }
.w47cb-feature p { font-size: 1.15rem; color: var(--w47cb-muted); }

/* ---------- Testimonial ---------- */
.w47cb-testimonial {
    background: rgba(188,143,143,0.12); border-left: 3px solid var(--w47cb-soft);
    padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 0.8rem;
}
.w47cb-testimonial p { font-size: 1.3rem; color: var(--w47cb-text); font-style: italic; }
.w47cb-testimonial cite { display: block; margin-top: 0.4rem; font-size: 1.15rem; color: var(--w47cb-accent); }

/* ---------- Payment row ---------- */
.w47cb-payment-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.w47cb-payment {
    flex: 1 1 30%; min-width: 90px; background: rgba(255,255,255,0.05);
    border: 1px solid var(--w47cb-border); border-radius: 10px; padding: 0.8rem; text-align: center;
    font-size: 1.15rem; color: var(--w47cb-text);
}

/* ---------- Winner ticker ---------- */
.w47cb-winner {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(205,133,63,0.10); border: 1px solid var(--w47cb-border);
    border-radius: 10px; padding: 0.7rem 1rem; margin-bottom: 0.5rem; font-size: 1.25rem;
}
.w47cb-winner b { color: var(--w47cb-accent); }

/* ---------- FAQ ---------- */
.w47cb-faq { border-bottom: 1px solid var(--w47cb-border); padding: 0.8rem 0; }
.w47cb-faq summary { font-size: 1.35rem; color: var(--w47cb-text); cursor: pointer; font-weight: 600; }
.w47cb-faq p { font-size: 1.25rem; color: var(--w47cb-muted); margin-top: 0.5rem; }

/* ---------- Help pages ---------- */
.w47cb-page-hero {
    background: linear-gradient(135deg, rgba(75,0,130,0.62), rgba(205,133,63,0.22));
    border: 1px solid var(--w47cb-border); border-radius: var(--w47cb-radius);
    padding: 1.5rem; margin: 1.2rem 0 1.8rem; box-shadow: var(--w47cb-shadow);
}
.w47cb-page-hero h1 { font-size: 2rem; line-height: 1.25; margin-bottom: 0.7rem; }
.w47cb-page-hero p { font-size: 1.3rem; color: var(--w47cb-muted); }
.w47cb-step {
    display: grid; grid-template-columns: 36px 1fr; gap: 0.9rem; align-items: start;
    background: rgba(255,255,255,0.04); border: 1px solid var(--w47cb-border);
    border-radius: 12px; padding: 1rem; margin-bottom: 0.9rem;
}
.w47cb-step-num {
    width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--w47cb-accent), var(--w47cb-soft)); color: #281000; font-weight: 900;
}
.w47cb-step h3 { font-size: 1.38rem; color: var(--w47cb-text); margin-bottom: 0.35rem; }
.w47cb-step p { font-size: 1.24rem; color: var(--w47cb-muted); }
.w47cb-badge-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.8rem 0; }
.w47cb-badge { border: 1px solid var(--w47cb-border); color: var(--w47cb-text); border-radius: 999px; padding: 0.45rem 0.8rem; font-size: 1.15rem; background: rgba(75,0,130,0.22); }

/* ---------- Footer ---------- */
.w47cb-footer {
    background: #160f1c; border-top: 1px solid var(--w47cb-border);
    padding: 2rem 1.2rem 1.4rem; color: var(--w47cb-muted); font-size: 1.2rem;
}
.w47cb-footer-brand { color: var(--w47cb-text); margin-bottom: 0.8rem; font-size: 1.3rem; }
.w47cb-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin: 0.8rem 0; }
.w47cb-footer-links a { color: var(--w47cb-soft); font-size: 1.2rem; }
.w47cb-footer-links a:hover { color: var(--w47cb-accent); }
.w47cb-footer-copy { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 1rem; padding-top: 1rem; font-size: 1.1rem; }

/* ---------- Bottom nav (mobile) ---------- */
.w47cb-bottomnav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    height: var(--w47cb-bottomnav-h);
    background: linear-gradient(90deg, #1b1220, #3a1d52);
    border-top: 1px solid var(--w47cb-border);
    display: flex; justify-content: space-around; align-items: stretch;
    box-shadow: 0 -4px 14px rgba(0,0,0,0.45);
}
.w47cb-bottomnav-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--w47cb-muted); background: transparent; border: 0; cursor: pointer;
    min-width: 60px; min-height: 60px; gap: 2px; text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}
.w47cb-bottomnav-btn i, .w47cb-bottomnav-btn .material-icons, .w47cb-bottomnav-btn ion-icon {
    font-size: 22px;
}
.w47cb-bottomnav-btn span:last-child { font-size: 1.05rem; }
.w47cb-bottomnav-btn:active { transform: scale(0.92); }
.w47cb-bottomnav-active, .w47cb-bottomnav-btn:hover { color: var(--w47cb-accent); }
.w47cb-bottomnav-promo { color: var(--w47cb-accent); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
    .w47cb-bottomnav { display: none; }
    body { padding-bottom: 0; }
    .w47cb-wrapper { max-width: 760px; }
    .w47cb-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Mobile fine-tune (max 430px) ---------- */
@media (max-width: 430px) {
    html { font-size: 58%; }
    .w47cb-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
    .w47cb-game img { height: 70px; }
    .w47cb-hero-overlay h2 { font-size: 1.45rem; }
    .w47cb-section-title { font-size: 1.55rem; }
    .w47cb-btn { padding: 0.65rem 1.1rem; font-size: 1.25rem; }
    .w47cb-feature-row { grid-template-columns: 1fr 1fr; }
}
