:root {
    --gold: #f5c518;
    --gold-soft: #ffd966;
    --night: #0e0a2b;
    --night-2: #1b1248;
    --purple: #6a2bd9;
    --purple-soft: #9a6cff;
    --teal: #19c3c3;
    --cream: #fdf6e3;
    --ink: #1a1530;
    --muted: #b8b2d6;
    --card: #221a4d;
    --shadow: 0 18px 45px rgba(8, 4, 30, .45);
    --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", "Poppins", system-ui, -apple-system, sans-serif;
    color: #efeaff;
    background: radial-gradient(1200px 700px at 80% -10%, #2a1a66 0%, transparent 55%),
                radial-gradient(900px 600px at 0% 0%, #2b1b5e 0%, transparent 50%),
                linear-gradient(180deg, var(--night) 0%, #0a0720 100%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
}

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

h1, h2, h3, h4 { font-weight: 800; letter-spacing: .3px; color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn-magic {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.6rem; border-radius: 999px; font-weight: 700;
    background: linear-gradient(135deg, var(--gold) 0%, #ff9d2e 100%);
    color: #2a1500; border: none; cursor: pointer;
    box-shadow: 0 10px 25px rgba(245, 197, 24, .35);
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-magic:hover { transform: translateY(-2px); color: #2a1500; box-shadow: 0 14px 32px rgba(245, 197, 24, .5); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.6rem; border-radius: 999px; font-weight: 700;
    background: transparent; color: #fff; cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, .35);
    transition: border-color .15s ease, background .15s ease;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(245, 197, 24, .08); }

/* ---------- Navbar ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(10, 7, 32, .82);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; position: relative; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 900; font-size: 1.35rem; color: #fff; }
.brand .lamp { font-size: 1.6rem; filter: drop-shadow(0 0 8px var(--gold)); }
.brand span { background: linear-gradient(135deg, var(--gold), var(--gold-soft)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #e8e3ff; font-weight: 600; }
.nav-links a:hover { color: var(--gold); }
.nav-actions { display: flex; gap: .7rem; align-items: center; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }
.nav-search { display: flex; align-items: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; overflow: hidden; }
.nav-search input { background: transparent; border: none; color: #fff; padding: .5rem .9rem; width: 150px; font-size: .9rem; outline: none; }
.nav-search input::placeholder { color: var(--muted); }
.nav-search button { background: transparent; border: none; color: var(--gold-soft); cursor: pointer; padding: .4rem .8rem; font-size: 1rem; }
.nav-search:focus-within { border-color: var(--gold); }

/* Search results */
.search-summary { text-align: center; color: var(--muted); margin-bottom: 2rem; }
.search-summary strong { color: var(--gold-soft); }
.no-results { text-align: center; padding: 3rem 1rem; color: var(--muted); }
mark { background: rgba(245, 197, 24, .3); color: #fff; padding: 0 .15em; border-radius: 3px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 5rem 0 4rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero .eyebrow {
    display: inline-block; padding: .35rem 1rem; border-radius: 999px;
    background: rgba(245, 197, 24, .12); color: var(--gold-soft);
    font-weight: 700; font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin: 0 0 1.2rem; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.6rem; }
.hero-stats .num { font-size: 1.8rem; font-weight: 900; color: var(--gold); }
.hero-stats .lbl { color: var(--muted); font-size: .85rem; }

.hero-art {
    aspect-ratio: 1 / 1; border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, var(--purple-soft) 0%, var(--purple) 35%, transparent 70%);
    display: grid; place-items: center; position: relative;
    animation: float 6s ease-in-out infinite;
}
.hero-art .lamp-big { font-size: clamp(7rem, 18vw, 12rem); filter: drop-shadow(0 12px 30px rgba(245, 197, 24, .6)); }
.hero-art::after {
    content: ""; position: absolute; inset: -8%;
    border: 1.5px dashed rgba(245, 197, 24, .35); border-radius: 50%;
    animation: spin 26s linear infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section-head .kicker { color: var(--teal); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: .82rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .5rem 0 .8rem; }
.section-head p { color: var(--muted); }

/* ---------- Category / Game grid ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: linear-gradient(160deg, var(--card) 0%, #1a1340 100%);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius); padding: 1.6rem;
    box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(245, 197, 24, .4); }
.card .ico {
    width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
    font-size: 1.8rem; margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(154, 108, 255, .25), rgba(25, 195, 195, .25));
}
.card h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card .tag { display: inline-block; margin-top: 1rem; font-size: .8rem; color: var(--gold-soft); font-weight: 700; }

/* ---------- Feature row ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.feature { text-align: center; padding: 1.4rem; }
.feature .ico { font-size: 2.2rem; margin-bottom: .6rem; }
.feature h4 { margin: 0 0 .4rem; font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Rewards banner ---------- */
.banner {
    background: linear-gradient(120deg, var(--purple) 0%, #b8418f 100%);
    border-radius: 24px; padding: 3rem; text-align: center; position: relative; overflow: hidden;
    box-shadow: var(--shadow);
}
.banner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .8rem; }
.banner p { color: rgba(255, 255, 255, .85); max-width: 560px; margin: 0 auto 1.8rem; }

/* ---------- Testimonials ---------- */
.quote { font-style: normal; }
.quote p { font-size: 1rem; color: #efeaff; }
.quote .who { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; }
.quote .avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #ff9d2e); display: grid; place-items: center; font-weight: 800; color: #2a1500; }
.quote .who b { display: block; font-size: .95rem; }
.quote .who small { color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- FAQ ---------- */
.faq details {
    background: var(--card); border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px; padding: 1.1rem 1.4rem; margin-bottom: .9rem;
}
.faq summary { cursor: pointer; font-weight: 700; color: #fff; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--muted); margin: .9rem 0 0; }

/* ---------- Newsletter ---------- */
.newsletter { display: flex; gap: .7rem; max-width: 480px; margin: 1.6rem auto 0; }
.newsletter input {
    flex: 1; padding: .85rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .06); color: #fff; font-size: 1rem;
}
.newsletter input::placeholder { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .07); padding: 3.5rem 0 1.5rem; margin-top: 3rem; background: rgba(7, 4, 24, .6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h5 { color: #fff; margin: 0 0 1rem; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .6rem; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--gold); }
.footer-about p { color: var(--muted); font-size: .92rem; }
.socials { display: flex; gap: .7rem; margin-top: 1rem; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .07); display: grid; place-items: center; font-size: 1.1rem; }
.footer-bottom { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .06); }

/* ---------- Generic page ---------- */
.page-hero { padding: 3.5rem 0 1rem; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero p { color: var(--muted); max-width: 640px; margin: .8rem auto 0; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2rem; }
.prose p, .prose li { color: #d8d2f0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { max-width: 360px; margin: 0 auto; }
    .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .features { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex; position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; gap: 1rem; padding: 1.4rem 20px;
        background: rgba(10, 7, 32, .98); border-bottom: 1px solid rgba(255, 255, 255, .08);
    }
}
@media (max-width: 560px) {
    .grid.cols-3, .grid.cols-4, .features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 1.4rem; }
    .newsletter { flex-direction: column; border-radius: 18px; }
    .newsletter input { border-radius: 14px; }
    .nav-search { display: none; }
}
