﻿:root {
	--board-green: #0f8f4f;
	--board-dark: #07251a;
	--panel: rgba(8, 18, 16, 0.88);
	--panel-strong: rgba(5, 11, 10, 0.96);
	--line: rgba(255, 255, 255, 0.14);
	--text: #f3fff8;
	--muted: #9fb6aa;
	--lime: #d7f23f;
	--gold: #ffd66b;
}

* {
	box-sizing: border-box;
}

body {
	min-height: 100vh;
	margin: 0;
	background:
		linear-gradient(rgba(3, 24, 14, 0.52), rgba(3, 24, 14, 0.76)),
		url('/othellocrush/web/public/images/game_board.gif') center / 420px repeat;
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

a {
	text-decoration: none;
	color: inherit;
}
.clear {
	clear: both;
	float: none;
}

/* LOGO */
#site_header {
	align-items: center;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 1180px;
	padding: 22px clamp(16px, 4vw, 36px);
	width: 100%;
}

.product-home {
	color: #fff;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0;
}

/* MENU */
#site_menu {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	text-align: center;
	font-weight: bold;
	font-size: 0.9rem;
}
#site_menu a {
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.84);
	display: inline-flex;
	padding: 8px 13px;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
#site_menu a:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	transform: translateY(-1px);
}
#site_menu a.current {
	background: #fff;
	color: #10231b;
	font-weight: bold;
} 

#page {
	max-width: 960px;
	margin: 0 auto;
}
#page_content {
	margin: 0 auto;
	max-width: 1180px;
	padding: 0 clamp(16px, 4vw, 36px) 42px;
	text-align: center;
}
#page_title {
	padding: 20px 0 8px;
}
#page_title h1 {
	font-size: clamp(2.4rem, 6vw, 5.2rem);
	font-weight: 900;
	line-height: 0.95;
	margin: 0;
	text-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

/* PAGE ONE COLUMN */
.leaderboard-hero {
	margin: 0 auto 18px;
	max-width: 1060px;
}

.eyebrow {
	color: var(--lime);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.14em;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.leaderboard-hero h2 {
	font-size: clamp(1.9rem, 4vw, 3.6rem);
	line-height: 1;
	margin: 0;
}

.leaderboard-copy {
	color: rgba(255, 255, 255, 0.76);
	font-size: 1.06rem;
	margin: 14px auto 22px;
	max-width: 640px;
}

.status-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0 auto;
	max-width: 980px;
}

.status-card {
	background: rgba(3, 14, 11, 0.74);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 14px;
	text-align: left;
}

.status-card span {
	color: var(--muted);
	display: block;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.status-card strong {
	color: #fff;
	display: block;
	font-size: clamp(1.3rem, 2.2vw, 2rem);
	line-height: 1.1;
	margin-top: 5px;
	overflow-wrap: anywhere;
}

.leaderboard-panel {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
	margin: 0 auto;
	max-width: 1060px;
	overflow: hidden;
	text-align: left;
}

.leaderboard-toolbar {
	align-items: center;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02));
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 16px 18px;
}

.leaderboard-toolbar span {
	color: var(--muted);
	display: block;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.leaderboard-toolbar strong {
	color: #fff;
	font-size: 1.1rem;
}

.leaderboard-table {
	display: grid;
	width: 100%;
}

.leaderboard-row {
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: grid;
	gap: 12px;
	grid-template-columns: 86px minmax(160px, 1.6fr) 1fr 1fr 1.1fr 0.8fr;
	padding: 13px 18px;
}

.leaderboard-head {
	background: rgba(255, 255, 255, 0.08);
	border-top: 0;
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.74rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.leaderboard-row.is-podium {
	background: linear-gradient(90deg, rgba(215, 242, 63, 0.12), rgba(255, 255, 255, 0.02));
}

.rank-cell span {
	align-items: center;
	background: #f3fff8;
	border-radius: 999px;
	color: #10231b;
	display: inline-flex;
	font-weight: 900;
	height: 34px;
	justify-content: center;
	min-width: 54px;
	padding: 0 10px;
}

.player-cell strong,
.score-cell {
	color: var(--lime);
	font-size: 1.14rem;
	font-weight: 900;
}

.player-cell span {
	color: var(--muted);
	display: block;
	font-size: 0.82rem;
	margin-top: 2px;
}

.win-rate {
	background: rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
	width: 100%;
}

.win-rate span {
	background: linear-gradient(90deg, var(--lime), var(--gold));
	display: block;
	height: 100%;
}

.leaderboard-row small {
	color: var(--muted);
	display: inline-block;
	margin-top: 4px;
}

.paging_header {
	margin: 20px auto 4px;
	max-width: 1060px;
}

.paging {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.paging a {
	background: #fff;
	border-radius: 999px;
	color: #10231b;
	font-weight: 900;
	padding: 10px 18px;
}


/* FOOTER */
#page_footer {
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.86rem;
	margin: 0 auto;
	text-align: center;
	padding: 18px 16px 28px;
}

#page_footer a {
	color: rgba(255, 255, 255, 0.9);
	font-weight: 700;
}


/* BOOTSTRAP MENU */
#custom-bootstrap-menu.navbar-default .navbar-brand {
    color: rgba(119, 119, 119, 1);
}
#custom-bootstrap-menu.navbar-default {
    font-size: 14px;
    background-color: rgba(248, 248, 248, 1);
    border-width: 1px;
    border-radius: 4px;
}
#custom-bootstrap-menu.navbar-default .navbar-nav>li>a {
    color: rgba(119, 119, 119, 1);
    background-color: rgba(248, 248, 248, 0);
}
#custom-bootstrap-menu.navbar-default .navbar-nav>li>a:hover,
#custom-bootstrap-menu.navbar-default .navbar-nav>li>a:focus {
    color: rgba(51, 51, 51, 1);
    background-color: rgba(248, 248, 248, 0);
}
#custom-bootstrap-menu.navbar-default .navbar-nav>.active>a,
#custom-bootstrap-menu.navbar-default .navbar-nav>.active>a:hover,
#custom-bootstrap-menu.navbar-default .navbar-nav>.active>a:focus {
    color: rgba(85, 85, 85, 1);
    background-color: rgba(231, 231, 231, 1);
}
#custom-bootstrap-menu.navbar-default .navbar-toggle {
    border-color: #ddd;
}
#custom-bootstrap-menu.navbar-default .navbar-toggle:hover,
#custom-bootstrap-menu.navbar-default .navbar-toggle:focus {
    background-color: #ddd;
}
#custom-bootstrap-menu.navbar-default .navbar-toggle .icon-bar {
    background-color: #888;
}
#custom-bootstrap-menu.navbar-default .navbar-toggle:hover .icon-bar,
#custom-bootstrap-menu.navbar-default .navbar-toggle:focus .icon-bar {
    background-color: #888;
}

@media (max-width: 820px) {
	#site_header {
		align-items: flex-start;
		flex-direction: column;
	}

	#site_menu {
		justify-content: flex-start;
	}

	.status-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.leaderboard-row,
	.leaderboard-head {
		grid-template-columns: 70px minmax(130px, 1.4fr) 0.9fr;
	}

	.leaderboard-row > div:nth-child(4),
	.leaderboard-row > div:nth-child(5),
	.leaderboard-row > div:nth-child(6) {
		display: none;
	}
}

@media (max-width: 520px) {
	#page_title h1 {
		font-size: 2.4rem;
	}

	.status-grid {
		grid-template-columns: 1fr;
	}

	.leaderboard-toolbar {
		align-items: flex-start;
		flex-direction: column;
	}

	.leaderboard-row,
	.leaderboard-head {
		grid-template-columns: 58px minmax(0, 1fr) 72px;
		padding: 12px;
	}

	.player-cell strong,
	.score-cell {
		font-size: 1rem;
	}
}
