/* Home page (index-new.php) - matches the site's dark theme: #222 body, #0022ff accent, translucent panels */

.home-brand { display: flex; align-items: center; gap: 0.9rem; margin: 1.75rem 0 1rem; }
.home-brand img { height: 52px; width: auto; }
.home-title { font-size: 1.5rem; font-weight: 500; margin: 0; }
.home-title span { font-size: 0.95rem; font-weight: 400; color: #9FA2A4; margin-left: 0.5rem; }

.home-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 0.9rem; }
.home-chip {
	display: block;
	text-align: left;
	padding: 0.6rem 0.85rem;
	color: #fff;
	background: rgba(250, 250, 250, 0.05);
	border: 0.5px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.home-chip b { display: block; font-weight: 500; font-size: 0.9rem; }
.home-chip small { display: block; color: #9FA2A4; font-size: 0.8rem; }
.home-chip:hover { border-color: #0022ff; }
.home-chip.on { background: rgba(0, 34, 255, 0.2); border-color: #0022ff; }
.home-chip.on small { color: #fff; }

.home-panel { display: none; margin-bottom: 1.5rem; }
.home-panel.on { display: flex; }

.home-box {
	height: 100%;
	padding: 0.9rem 1rem;
	background: rgba(250, 250, 250, 0.05);
	border: 0.5px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
}

.home-section-label {
	display: flex;
	justify-content: space-between;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9FA2A4;
	margin: 0 0 0.5rem;
}
.home-section-label a { text-transform: none; letter-spacing: 0; font-size: 0.8rem; color: #989A9D; text-decoration: none; }
.home-section-label a:hover { color: #fff; }

.home-rank-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.45rem 0; border-top: 0.5px solid rgba(255, 255, 255, 0.08); }
.home-rank-row:first-of-type { border-top: none; }
.home-rank-row img { width: 26px; height: 26px; object-fit: contain; }
.home-rk { width: 1.4rem; font-weight: 500; color: #9FA2A4; }
.home-tm { color: #fff; text-decoration: none; }
.home-rank-row .home-tm { flex: 1; }
.home-tm:hover, .home-tm:focus-visible { color: #989A9D; }
.home-rec { font-size: 0.8rem; color: #9FA2A4; }
.home-up, .home-dn, .home-fl { min-width: 2.2rem; text-align: right; font-size: 0.8rem; }
.home-up { color: #08A67D; }
.home-dn { color: #CC2335; }
.home-fl { color: #999999; }

.home-game { padding: 0.45rem 0; border-top: 0.5px solid rgba(255, 255, 255, 0.08); }
.home-game:first-of-type { border-top: none; }
.home-game small { display: block; color: #9FA2A4; font-size: 0.8rem; }
.home-tag { display: inline-block; margin-left: 0.4rem; padding: 0 6px; border-radius: 4px; font-size: 0.7rem; background: #0022ff; color: #fff; }

.home-group { margin-bottom: 1.5rem; }

.home-stat {
	display: block;
	padding: 0.6rem 0.75rem;
	text-decoration: none;
	color: #fff;
	background: rgba(250, 250, 250, 0.05);
	border-radius: 8px;
	transition: background-color 0.15s ease;
}
.home-stat:hover, .home-stat:focus-visible { color: #fff; background: rgba(250, 250, 250, 0.12); }
.home-stat-label { display: block; font-size: 0.75rem; color: #9FA2A4; }
.home-stat-value { display: block; font-size: 1.1rem; font-weight: 500; }

.home-tile {
	display: block;
	height: 100%;
	padding: 0.7rem 0.85rem;
	text-decoration: none;
	color: #fff;
	background: rgba(250, 250, 250, 0.05);
	border: 0.5px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.home-tile:hover, .home-tile:focus-visible { color: #fff; border-color: #0022ff; transform: translateY(-2px); }
.home-tile i { color: #989A9D; font-size: 1.1rem; }
.home-tile b { display: block; font-weight: 500; margin-top: 0.15rem; }
.home-tile small { color: #9FA2A4; font-size: 0.8rem; }


@media (prefers-reduced-motion: reduce) {
	.home-stat, .home-tile, .home-chip { transition: none; }
	.home-tile:hover, .home-tile:focus-visible { transform: none; }
}
.home-tile:hover i, .home-tile:focus-visible i { color: #fff; }
