/* Mofungo Games — shared site styles */
:root {
    --bg: #12141a;
    --bg-raised: #1b1e27;
    --text: #e8e9ee;
    --text-dim: #a5a9b8;
    --accent: #f5a623;        /* WWX logo orange */
    --accent-2: #9b6bd8;      /* WWX logo purple */
    --line: #2b2f3b;
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 20px; }

/* ── Header ─────────────────────────────────────────── */
header {
    border-bottom: 1px solid var(--line);
    background: rgba(18, 20, 26, 0.92);
    position: sticky; top: 0; z-index: 10;
    backdrop-filter: blur(8px);
}
.nav {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 0;
}
.nav .brand {
    display: flex; align-items: center; gap: 10px;
    color: var(--text); font-weight: 700; font-size: 1.05rem;
    letter-spacing: 0.02em;
}
.nav .brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav .links { margin-left: auto; display: flex; gap: 22px; font-size: 0.95rem; }
.nav .links a { color: var(--text-dim); }
.nav .links a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ───────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 56px 20px 30px;
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(155, 107, 216, 0.16), transparent),
        radial-gradient(ellipse 55% 45% at 50% 100%, rgba(245, 166, 35, 0.07), transparent);
}
.hero img.logo { width: min(420px, 78vw); height: auto; }
.hero p.tag {
    color: var(--text-dim); font-size: 1.15rem; margin: 18px auto 26px;
    max-width: 560px;
}
.cta-row { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 26px; border-radius: 12px; font-weight: 700; font-size: 1rem;
    white-space: nowrap;
    transition: transform 0.08s ease, filter 0.15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, #ffb547, var(--accent)); color: #241a05; }
.btn-secondary { background: var(--bg-raised); color: var(--text); border: 1px solid var(--line); }
.btn-discord { background: #5865f2; color: #fff; }
.discord-mark { width: 20px; height: 20px; flex: none; }

/* App Store / Google Play badge-style buttons */
.store-badge {
    display: inline-flex; align-items: center; gap: 11px;
    background: #000; color: #fff;
    border: 1px solid #4a4e59; border-radius: 12px;
    padding: 9px 20px 9px 16px;
    transition: transform 0.08s ease, filter 0.15s ease;
}
.store-badge:hover { text-decoration: none; filter: brightness(1.25); transform: translateY(-1px); }
.store-badge svg { width: 28px; height: 28px; }
.store-badge span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.store-badge span small { font-weight: 400; font-size: 0.68rem; letter-spacing: 0.02em; color: #d5d7dd; }

/* ── Screenshots ────────────────────────────────────── */
.shots {
    display: grid;
    /* 140px min → all six fit one row at the 1020px content width; wraps 3×2 / 2×3 below. */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    padding: 44px 0 10px;
}
.shot {
    display: block; padding: 0; margin: 0;
    background: none; border: none; cursor: zoom-in;
}
.shot img {
    display: block;
    width: 100%; height: auto; border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.12s ease;
}
.shot:hover img { transform: scale(1.025); }

/* Lightbox */
.lightbox[hidden] { display: none; }
.lightbox {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(6, 7, 10, 0.9);
    display: flex; align-items: center; justify-content: center;
    cursor: zoom-out;
    backdrop-filter: blur(4px);
}
.lightbox img {
    max-width: min(92vw, 560px); max-height: 94vh;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

/* ── Sections ───────────────────────────────────────── */
section { padding: 40px 0; }
h2.section-title { font-size: 1.5rem; margin: 0 0 8px; }
.section-sub { color: var(--text-dim); margin: 0 0 24px; }

.support-card {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
    justify-content: space-between;
}
.support-card .text { max-width: 520px; }
.support-card .text h2 { margin: 0 0 6px; font-size: 1.35rem; }
.support-card .text p { margin: 0; color: var(--text-dim); }
.support-card .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--line);
    padding: 26px 0 40px;
    color: var(--text-dim); font-size: 0.9rem;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--text); }
footer .spacer { flex: 1; }

/* ── Policy page ────────────────────────────────────── */
.policy { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; }
.policy h1 { font-size: 1.6rem; }
.policy h2 { font-size: 1.2rem; margin-top: 1.6em; }
.policy p, .policy li { font-size: 0.97rem; color: var(--text); }
.policy table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 0.92rem; }
.policy th, .policy td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.policy th { background: var(--bg-raised); }
.policy .table-wrap { overflow-x: auto; }
.policy .updated { color: var(--text-dim); }
