/* Home page overview (index.php) — same cards, tiles and platform colours as the rest of the site */

.hm {
    --card: #1e293b; --card-2: #172033; --line: rgba(255,255,255,0.07);
    --t1: #f1f5f9; --t2: #94a3b8; --t3: #64748b;
    --gold: #f59e0b; --silver: #94a3b8; --bronze: #c97c3a;
}

/* hero buttons */
.hm .header-button { display: none; }
.hm-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hm-cta .gh-login { font-size: 1rem; padding: 0.8rem 1.6rem; }
.hm-ghost {
    display: inline-flex; align-items: center; padding: 0.8rem 1.4rem; border-radius: 999px;
    color: #fff; text-decoration: none; font-weight: 600; letter-spacing: 0.04em; font-size: 1rem;
    background: rgba(15,18,26,0.45); border: 1px solid rgba(255,255,255,0.25);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background 0.2s, border-color 0.2s;
}
.hm-ghost:hover { background: rgba(15,18,26,0.7); border-color: rgba(255,255,255,0.5); color: #fff; }

.hm .main-section > .container { display: flex; flex-direction: column; gap: 1.25rem; }
.hm .main-section a:hover { color: inherit; }

/* site totals */
.hm-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.hm-stat { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 4px; }
.hm-stat + .hm-stat { border-left: 1px solid var(--line); }
.hm-stat b { font-size: 1.7rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hm-stat:first-child b { color: #a5b4fc; }
.hm-stat span, .hm-card-head h2 { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t2); }

/* cards */
.hm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
.hm-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem 1.25rem 1rem; }
.hm-card-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0.25rem 0.9rem; }
.hm-card-head h2 { margin: 0; }
.hm-card-head a { font-size: 0.8rem; font-weight: 600; color: #a5b4fc !important; text-decoration: none; }
.hm-card-head a:hover { color: #c7d2fe !important; }
.hm-empty { color: var(--t3); font-size: 0.9rem; margin: 0.5rem; }

/* avatars and covers */
.hm-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; display: inline-flex; }
.hm-av-letter { align-items: center; justify-content: center; background: #334155; color: #e2e8f0; font-size: 0.85rem; font-weight: 800; }
.hm-av-sm { width: 18px; height: 18px; font-size: 0.6rem; }
.hm-ph { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #334155, #1e293b); color: rgba(255,255,255,0.55); font-weight: 800; }

/* top players */
.hm-top { list-style: none; margin: 0; padding: 0; }
.hm-top li { display: flex; align-items: center; gap: 12px; padding: 0.6rem 0.5rem; border-radius: 10px; }
.hm-top li + li { border-top: 1px solid rgba(255,255,255,0.04); }
.hm-top li:hover { background: rgba(255,255,255,0.03); }
.hm-rk { width: 26px; text-align: center; font-weight: 800; color: var(--t2); font-size: 0.9rem; flex: none; }
.hm-rk-1, .hm-rk-2, .hm-rk-3 { height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #0b1120; }
.hm-rk-1 { background: var(--gold); } .hm-rk-2 { background: var(--silver); } .hm-rk-3 { background: var(--bronze); }
.hm-top-user { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hm-top-user > span { min-width: 0; display: flex; flex-direction: column; }
.hm-top-user b { color: var(--t1); font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-top-user:hover b { color: #a5b4fc; }
.hm-top-user small { color: var(--t3); font-size: 0.72rem; }
.hm-pts { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; color: #a5b4fc; font-variant-numeric: tabular-nums; }
.hm-pts small { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t3); }

/* activity feed */
.hm-feed { list-style: none; margin: 0; padding: 0; }
.hm-feed li { display: flex; align-items: center; gap: 12px; padding: 0.5rem; border-radius: 10px; }
.hm-feed li + li { border-top: 1px solid rgba(255,255,255,0.04); }
.hm-feed-cover { position: relative; flex: none; display: block; }
.hm-feed-img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.hm-feed-plat { position: absolute; right: -5px; bottom: -5px; width: 18px; height: 18px; padding: 3px; box-sizing: border-box; border-radius: 50%; background: #0f172a; border: 1px solid rgba(255,255,255,0.12); }
.hm-feed-txt { flex: 1; min-width: 0; font-size: 0.85rem; color: var(--t2); line-height: 1.4; }
.hm-feed-txt b { color: var(--t1); font-weight: 600; }
.hm-feed-user, .hm-feed-game { font-weight: 700; text-decoration: none; }
.hm-feed-user { color: #a5b4fc !important; }
.hm-feed-game { color: var(--t1) !important; }
.hm-feed-user:hover, .hm-feed-game:hover { text-decoration: underline; }
.hm-feed-time { flex: none; font-size: 0.72rem; color: var(--t3); white-space: nowrap; }

/* most played and recently completed tiles */
.hm-games, .hm-done { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.9rem; }
.hm-game, .hm-done-item {
    position: relative; display: flex; flex-direction: column; gap: 6px; text-decoration: none; padding: 0.5rem; border-radius: 12px;
    transition: background 0.15s, transform 0.15s;
}
.hm-game:hover, .hm-done-item:hover { background: rgba(255,255,255,0.04); transform: translateY(-2px); }
.hm-game-img, .hm-done-img { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; font-size: 2rem; border: 1px solid var(--line); }
.hm-game b, .hm-done-item b { color: var(--t1); font-size: 0.85rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-game small, .hm-done-item small { color: var(--t3); font-size: 0.72rem; display: flex; align-items: center; gap: 5px; }
.hm-done-badge {
    position: absolute; top: 14px; right: 14px; padding: 2px 8px; border-radius: 999px;
    background: #16a34a; color: #fff; font-size: 0.68rem; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* platforms */
.hm-plats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.hm-plat {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 1.1rem 1.25rem;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: border-color 0.2s, transform 0.2s;
}
.hm-plat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pc); }
.hm-plat:hover { border-color: color-mix(in srgb, var(--pc) 60%, transparent); transform: translateY(-2px); }
.hm-plat img { width: 28px; height: 28px; }
.hm-plat b { display: block; color: var(--t1); font-size: 0.95rem; }
.hm-plat small { color: var(--t2); font-size: 0.75rem; }
.hm-plat-steam { --pc: #66c0f4; } .hm-plat-ra { --pc: #e879f9; } .hm-plat-psn { --pc: #3b9ae6; } .hm-plat-xbox { --pc: #5dc04d; }

/* responsive */
@media (max-width: 1100px) {
    .hm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hm-stat:nth-child(4) { border-left: 0; }
    .hm-stat:nth-child(n+4) { border-top: 1px solid var(--line); }
    .hm-games, .hm-done { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hm-plats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
    .hm-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-stat { padding: 0.9rem 1rem; }
    .hm-stat b { font-size: 1.25rem; }
    .hm-stat:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
    .hm-stat:nth-child(even) { border-left: 1px solid var(--line); }
    .hm-stat:nth-child(-n+2) { border-top: 0; }
    .hm-card { padding: 1rem 0.6rem 0.75rem; }
    .hm-games, .hm-done { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
    .hm-plats { grid-template-columns: minmax(0, 1fr); }
    .hm-cta .gh-login, .hm-ghost { font-size: 0.9rem; padding: 0.7rem 1.2rem; }
}
