/* ===================================================================
   Mentometry Game Center — Homepage styles
   Kept separate from the general theme styles to avoid conflicts with
   other pages (which still use the theme's magazine/news layout).
   =================================================================== */

.mm-home {
    --mm-bg: #060810;
    --mm-panel: #0d1120;
    --mm-panel-2: #10152a;
    --mm-card: #131a30;
    --mm-card-hover: #182140;
    --mm-border: #232c4a;
    --mm-cyan: #00e5ff;
    --mm-magenta: #ff2ec4;
    --mm-purple: #7b5cff;
    --mm-gold: #ffc94d;
    --mm-green: #33ff9c;
    --mm-red: #ff4d6d;
    --mm-text: #eaf0ff;
    --mm-text-dim: #8a94b8;

    direction: ltr;
    text-align: left;
    background: var(--mm-bg);
    color: var(--mm-text);
    font-family: 'Poppins', -apple-system, "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}
.mm-home * { box-sizing: border-box; }

.mm-home section { padding: 64px 20px; max-width: 1100px; margin: 0 auto; }

/* ---------- Hero ---------- */
.mm-hero {
    position: relative;
    text-align: center;
    padding: 90px 20px 70px;
    max-width: none;
    overflow: hidden;
    border-bottom: 1px solid var(--mm-border);
}
.mm-hero-glow {
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 500px;
    background: radial-gradient(ellipse at center, rgba(0,229,255,0.18) 0%, rgba(123,92,255,0.10) 40%, transparent 70%);
    pointer-events: none;
}
.mm-hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.mm-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--mm-cyan);
    border: 1px solid rgba(0,229,255,0.35);
    background: rgba(0,229,255,0.08);
    border-radius: 20px;
    padding: 6px 14px;
    margin-bottom: 22px;
}
.mm-hero-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 800;
    margin: 0 0 10px;
    background: linear-gradient(90deg, var(--mm-cyan), var(--mm-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}
.mm-hero-tag { font-size: 19px; color: var(--mm-text); font-weight: 600; margin: 0 0 14px; }
.mm-hero-desc { font-size: 15px; color: var(--mm-text-dim); line-height: 1.7; margin: 0 auto 34px; max-width: 560px; }

.mm-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.mm-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    font-size: 15px; font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.mm-btn:hover { transform: translateY(-2px); }
.mm-btn-primary {
    background: linear-gradient(90deg, var(--mm-cyan), #00b3cc);
    color: #04121a;
    box-shadow: 0 8px 24px rgba(0,229,255,0.25);
}
.mm-btn-primary:hover { box-shadow: 0 10px 30px rgba(0,229,255,0.4); color: #04121a; }
.mm-btn-ghost {
    background: transparent;
    border: 1px solid var(--mm-border);
    color: var(--mm-text);
}
.mm-btn-ghost:hover { background: var(--mm-card); color: var(--mm-text); }

.mm-hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.mm-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mm-stat-num { font-size: 28px; font-weight: 800; color: var(--mm-gold); font-variant-numeric: tabular-nums; }
.mm-stat-label { font-size: 12px; color: var(--mm-text-dim); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Section heads ---------- */
.mm-section-head { text-align: center; margin-bottom: 36px; }
.mm-section-head h2 { font-size: 30px; font-weight: 800; margin: 0 0 8px; color: var(--mm-text); }
.mm-section-head p { color: var(--mm-text-dim); font-size: 14.5px; margin: 0; }

/* ---------- Features ---------- */
.mm-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.mm-feature-card {
    background: var(--mm-panel);
    border: 1px solid var(--mm-border);
    border-radius: 14px;
    padding: 26px 22px;
    transition: border-color .15s ease, transform .15s ease;
}
.mm-feature-card:hover { border-color: rgba(0,229,255,0.4); transform: translateY(-3px); }
.mm-feature-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: var(--mm-card);
    border-radius: 10px;
    margin-bottom: 16px;
}
.mm-feature-card h3 { font-size: 17px; margin: 0 0 8px; color: var(--mm-text); }
.mm-feature-card p { font-size: 13.5px; color: var(--mm-text-dim); line-height: 1.6; margin: 0; }

/* ---------- Leaderboard preview ---------- */
.mm-lb-box {
    background: var(--mm-panel);
    border: 1px solid var(--mm-border);
    border-radius: 14px;
    padding: 8px 20px;
    max-width: 560px;
    margin: 0 auto;
}
.mm-lb-loading, .mm-lb-empty { text-align: center; color: var(--mm-text-dim); padding: 24px 0; font-size: 14px; }
.mm-lb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mm-lb-table th, .mm-lb-table td { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--mm-border); }
.mm-lb-table th { color: var(--mm-text-dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.mm-lb-table tr:last-child td { border-bottom: none; }
.mm-lb-table td:first-child { color: var(--mm-gold); font-weight: 700; width: 30px; }
.mm-lb-table td:last-child { color: var(--mm-cyan); font-weight: 700; text-align: right; }

/* جدول بهترین امتیازها در صفحه‌ی پروفایل — دو ستونی (بازی/امتیاز)،
   عمداً از mm-lb-table جدا شده تا قانون «ستون اول باریک» (که برای شماره‌ی
   رتبه در جدول سه‌ستونیه) روی اسم بازی اعمال نشه. */
.mm-profile-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mm-profile-table th, .mm-profile-table td { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--mm-border); }
.mm-profile-table th { color: var(--mm-text-dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.mm-profile-table tr:last-child td { border-bottom: none; }
.mm-profile-table td:first-child { color: var(--mm-gold); font-weight: 700; }
.mm-profile-table td:last-child { color: var(--mm-cyan); font-weight: 700; text-align: right; width: 90px; }

/* ---------- Play section ---------- */
.mm-play { max-width: none; padding-top: 20px; }

@media (max-width: 640px) {
    .mm-home section { padding: 48px 16px; }
    .mm-hero { padding: 64px 16px 50px; }
    .mm-hero-actions { flex-direction: column; align-items: stretch; }
    .mm-btn { justify-content: center; }
    .mm-hero-stats { gap: 26px; }
}
