@font-face {
	font-family: 'Noto Sans';
	src: url('../fonts/NotoSans-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: 'Noto Sans';
	src: url('../fonts/NotoSans-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
}

:root {
	--ink: #24324b;
	--muted: #667085;
	--line: #dce7f6;
	--surface: #ffffff;
	--surface-soft: #f7fbff;
	--mint: #8ee3b5;
	--sky: #7bdff2;
	--sun: #ffe66d;
	--coral: #ff8fab;
	--berry: #7a5cff;
	--green: #2eb67d;
	--shadow: 0 14px 34px rgba(42, 62, 94, 0.14);
	--small-shadow: 0 8px 18px rgba(42, 62, 94, 0.11);
}

html {
	min-height: 100%;
}

body {
	background:
		linear-gradient(135deg, rgba(123, 223, 242, 0.23) 0%, rgba(255, 230, 109, 0.18) 38%, rgba(142, 227, 181, 0.18) 70%, rgba(255, 143, 171, 0.14) 100%),
		#f8fbff;
	color: var(--ink);
	font-family: 'Noto Sans', Arial, sans-serif;
	margin: 0;
	min-width: 0;
	overflow-x: auto;
}

body:before {
	background-image:
		linear-gradient(90deg, rgba(36, 50, 75, 0.035) 1px, transparent 1px),
		linear-gradient(0deg, rgba(36, 50, 75, 0.035) 1px, transparent 1px);
	background-size: 34px 34px;
	content: '';
	inset: 0;
	pointer-events: none;
	position: fixed;
	z-index: -1;
}

body.theme-dark {
	background:
		linear-gradient(135deg, rgba(42, 53, 85, 0.94), rgba(38, 70, 83, 0.92)),
		#1f2937;
}

body.theme-dark:before {
	background-image:
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(0deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}

body.theme-dark .app-header,
body.theme-dark .play-card,
body.theme-dark .lobby-panel,
body.theme-dark .content-panel,
body.theme-dark .auth-card,
body.theme-dark .leaderboard-card,
body.theme-dark .profile-card,
body.theme-dark .profile-panel,
body.theme-dark .settings-panel,
body.theme-dark .game-info-panel-container,
body.theme-dark .movesTablePanel,
body.theme-dark .chat-box {
	background: rgba(30, 41, 59, 0.94);
	border-color: rgba(148, 163, 184, 0.28);
}

body.theme-dark p,
body.theme-dark div,
body.theme-dark th,
body.theme-dark td,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6,
body.theme-dark .brand-name {
	color: #eef6ff;
}

body.theme-dark .brand-tagline,
body.theme-dark .panel-kicker,
body.theme-dark .settings-label,
body.theme-dark .socket-status,
body.theme-dark .rating,
body.theme-dark .chat-message span {
	color: #b9c6d8;
}

body.theme-dark .nav-pill,
body.theme-dark .btn-ghost,
body.theme-dark .setting-row,
body.theme-dark .team-card,
body.theme-dark .rating-tile,
body.theme-dark .leaderboard-card .user-list-row,
body.theme-dark .form-control,
body.theme-dark .chat-message,
body.theme-dark .player-strip,
body.theme-dark .game-info-heading {
	background: rgba(15, 23, 42, 0.68);
	border-color: rgba(148, 163, 184, 0.25);
	color: #eef6ff;
}

body,
button,
input,
select,
textarea {
	letter-spacing: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--ink);
	cursor: default;
	user-select: none;
}

p {
	color: var(--muted);
	line-height: 1.65;
}

div,
th,
td {
	color: var(--ink);
}

a {
	color: #2563eb;
	font-weight: 700;
	transition: color 0.18s ease, transform 0.18s ease;
}

a:hover,
a:focus {
	color: #ef476f;
	text-decoration: none;
}

img {
	max-width: 100%;
}

#root {
	min-height: 100vh;
}

.container-fluid {
	width: 100%;
}

.notification-message {
	color: #111827;
}

.wrap-text {
	word-wrap: break-word;
}

.noBottomMargin {
	margin-bottom: 0;
}

.underlined {
	text-decoration: underline;
}

.centerDiv {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.app-header {
	align-items: center;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(220, 231, 246, 0.92);
	border-radius: 8px;
	box-shadow: var(--small-shadow);
	display: flex;
	gap: 22px;
	justify-content: space-between;
	margin: 18px auto 22px;
	max-width: 1500px;
	padding: 10px 16px;
	position: sticky;
	top: 12px;
	z-index: 20;
}

.brand-lockup {
	align-items: center;
	color: var(--ink);
	display: inline-flex;
	gap: 12px;
	min-width: 230px;
}

.brand-lockup:hover,
.brand-lockup:focus {
	color: var(--ink);
	transform: translateY(-1px);
}

.brand-mascot-wrap {
	align-items: center;
	background: #ffffff;
	border: 2px solid #d7e8ff;
	border-radius: 8px;
	display: inline-flex;
	height: 56px;
	justify-content: center;
	width: 56px;
}

.brand-mascot {
	height: 48px;
	width: 48px;
}

.brand-copy {
	display: flex;
	flex-direction: column;
	line-height: 1.02;
}

.brand-name {
	color: #17233f;
	font-size: 30px;
	font-weight: 700;
}

.brand-tagline {
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	margin-top: 4px;
	text-transform: uppercase;
}

.app-nav {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.nav-pill {
	align-items: center;
	background: #f7fbff;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--ink);
	display: inline-flex;
	gap: 7px;
	min-height: 38px;
	padding: 8px 12px;
}

.nav-button {
	font: inherit;
}

.nav-pill:hover,
.nav-pill:focus {
	background: #fff3c7;
	border-color: #ffd166;
	color: #1f2937;
	transform: translateY(-1px);
}

.nav-pill-accent {
	background: #ecfff4;
	border-color: #b8f0ce;
}

.panel-kicker {
	align-items: center;
	color: #4b5f7d;
	display: inline-flex;
	font-size: 12px;
	font-weight: 700;
	gap: 7px;
	letter-spacing: 0;
	text-transform: uppercase;
}

.section-title-row {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 16px;
}

.section-title-row h2,
.play-card h2,
.content-panel h2,
.auth-card h2,
.profile-panel h2 {
	color: #17233f;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.15;
	margin: 5px 0 0;
}

.home-dashboard {
	align-items: flex-start;
	display: flex;
	gap: 20px;
	margin: 0 auto 42px;
	max-width: 1500px;
	padding: 0 18px;
}

.home-sidebar {
	display: flex;
	flex: 0 0 330px;
	flex-direction: column;
	gap: 16px;
}

.home-main {
	flex: 1 1 auto;
	min-width: 780px;
}

.play-card,
.lobby-panel,
.content-panel,
.auth-card,
.leaderboard-card,
.profile-card,
.profile-panel {
	background: rgba(255, 255, 255, 0.93);
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.play-card {
	padding: 18px;
}

.play-card h2 {
	margin-bottom: 18px;
}

.quick-play-grid {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 14px;
}

.quick-play-button,
.demo-login-button {
	width: 100%;
}

.demo-login-button {
	margin-top: 10px;
}

.setting-row {
	background: #f7fbff;
	border: 1px solid #e2edf9;
	border-radius: 8px;
	margin-bottom: 14px;
	padding: 12px 14px 8px;
}

.setting-label {
	align-items: center;
	display: flex;
	justify-content: space-between;
}

.setting-label span,
.field-label {
	color: #4a5974;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.setting-label strong {
	background: #ffffff;
	border: 1px solid #dbeafe;
	border-radius: 8px;
	color: #ef476f;
	font-size: 17px;
	padding: 4px 8px;
}

.setting-label-stack {
	align-items: flex-start;
	flex-direction: column;
	gap: 8px;
}

.setting-label-stack strong {
	font-size: 13px;
	width: 100%;
}

.toggle-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 14px 0;
}

.toggle-card {
	align-items: center;
	background: #fffaf0;
	border: 1px solid #ffe8a3;
	border-radius: 8px;
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 10px;
}

.toggle-card span {
	color: var(--ink);
	font-size: 12px;
	font-weight: 700;
}

.helper-copy {
	margin: 4px 0 12px;
}

.side-button-group {
	display: flex;
	width: 100%;
}

.side-button-group .choice-button {
	flex: 1 1 0;
	justify-content: center;
}

.field-label {
	display: block;
	margin: 12px 0 6px;
}

.playful-input,
.form-control {
	background: #ffffff;
	border: 1px solid #cfe0f4;
	border-radius: 8px;
	box-shadow: none;
	color: var(--ink);
	min-height: 38px;
}

.playful-input:focus,
.form-control:focus {
	border-color: #7bdff2;
	box-shadow: 0 0 0 3px rgba(123, 223, 242, 0.28);
}

.form-action-row {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: space-between;
	margin-top: 16px;
}

.btn-secondary,
.btn-secondary-no-hover {
	align-items: center;
	background: linear-gradient(135deg, #2dd4bf, #38bdf8);
	border: 0;
	border-radius: 8px;
	box-shadow: 0 8px 18px rgba(45, 212, 191, 0.24);
	color: #ffffff;
	display: inline-flex;
	font-weight: 700;
	gap: 7px;
	justify-content: center;
	min-height: 38px;
	padding: 8px 13px;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary.active,
.open .dropdown-toggle.btn-secondary,
.btn-secondary-no-hover:hover,
.btn-secondary-no-hover:focus {
	background: linear-gradient(135deg, #22c55e, #0ea5e9);
	color: #ffffff;
	transform: translateY(-1px);
}

.btn-secondary[disabled],
.btn-secondary.disabled {
	background: #cbd5e1;
	box-shadow: none;
	color: #ffffff;
	opacity: 0.75;
	transform: none;
}

.btn-ghost {
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--ink);
	font-weight: 700;
	min-height: 38px;
	padding: 8px 13px;
}

.btn-ghost:hover,
.btn-ghost:focus {
	background: #fff3c7;
	color: var(--ink);
}

.glyphicon {
	top: 0;
}

.lobby-panel {
	padding: 18px;
}

.lobby-count {
	align-items: center;
	background: #fff3c7;
	border: 1px solid #ffe08a;
	border-radius: 8px;
	display: flex;
	gap: 8px;
	padding: 8px 12px;
}

.lobby-count strong {
	color: #ef476f;
	font-size: 24px;
	line-height: 1;
}

.lobby-count span {
	color: #4a5974;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.lobby-toolbar {
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) auto;
	margin-bottom: 12px;
}

.soft-alert {
	background: #fff3c7;
	border: 1px solid #ffe08a;
	border-radius: 8px;
	color: #9a5d00;
	font-weight: 700;
	margin-bottom: 12px;
	padding: 10px 12px;
}

#lobbyTable {
	position: relative;
}

#lobbyTable table.table-fixedheader {
	border-collapse: separate;
	border-spacing: 0 8px;
	margin: 0;
	width: 100%;
}

#lobbyTable table.table-fixedheader,
#lobbyTable table.table-fixedheader > thead,
#lobbyTable table.table-fixedheader > tbody,
#lobbyTable table.table-fixedheader > thead > tr,
#lobbyTable table.table-fixedheader > tbody > tr,
#lobbyTable table.table-fixedheader > thead > tr > th,
#lobbyTable table.table-fixedheader > tbody > tr > td {
	display: block;
}

#lobbyTable table.table-fixedheader > thead > tr:after,
#lobbyTable table.table-fixedheader > tbody > tr:after {
	clear: both;
	content: ' ';
	display: block;
	visibility: hidden;
}

#lobbyTable table.table-fixedheader > tbody {
	height: min(58vh, 570px);
	overflow-y: auto;
	padding-right: 6px;
}

#lobbyTable table.table-fixedheader > thead {
	overflow-y: scroll;
}

#lobbyTable table.table-fixedheader > thead::-webkit-scrollbar {
	background-color: inherit;
}

#lobbyTable table.table-fixedheader > thead tr th,
#lobbyTable table.table-fixedheader > tbody tr td {
	float: left;
	word-wrap: break-word;
}

#lobbyTable .table {
	background: transparent;
}

#lobbyTable thead th {
	background: #eaf6ff;
	border: 0;
	color: #4a5974;
	font-size: 12px;
	font-weight: 700;
	padding: 12px;
	text-transform: uppercase;
}

#lobbyTable tbody tr {
	cursor: pointer;
}

#lobbyTable tbody tr td {
	background: #ffffff;
	border-bottom: 1px solid #e2edf9;
	border-top: 1px solid #e2edf9;
	min-height: 62px;
	padding: 12px;
	transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

#lobbyTable tbody tr td:first-child {
	border-left: 1px solid #e2edf9;
	border-radius: 8px 0 0 8px;
}

#lobbyTable tbody tr td:last-child {
	border-radius: 0 8px 8px 0;
	border-right: 1px solid #e2edf9;
}

#lobbyTable .table-hover tbody tr:hover td {
	background: #f0fff7;
	box-shadow: 0 10px 20px rgba(34, 197, 94, 0.09);
}

.slot-pill,
.mode-pill,
.time-pill,
.random-pill {
	border-radius: 8px;
	display: inline-flex;
	font-weight: 700;
	padding: 6px 8px;
}

.slot-pill {
	background: #edf7ff;
	color: #2563eb;
}

.mode-rated {
	background: #fff3c7;
	color: #9a5d00;
}

.mode-casual {
	background: #f0fff7;
	color: #087443;
}

.time-pill {
	background: #f5f3ff;
	color: #6d28d9;
}

.random-pill {
	background: #ffeef4;
	color: #be3455;
}

.seat-grid {
	display: grid;
	gap: 6px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seat {
	background: #f8fbff;
	border: 1px solid #e2edf9;
	border-left: 4px solid #7bdff2;
	border-radius: 8px;
	color: #344054;
	font-size: 12px;
	font-weight: 700;
	min-height: 30px;
	padding: 5px 7px;
	position: relative;
}

.seat-open {
	background: #f0fff7;
	border-color: #c8f2d7;
	border-left-color: #34d399;
	color: #087443;
}

.online-dot {
	background: #22c55e;
	border: 2px solid #ffffff;
	border-radius: 50%;
	display: inline-block;
	height: 10px;
	margin-right: 5px;
	width: 10px;
}

.lobby-skeleton-row span,
.leaderboard-skeleton span,
.skeleton-card {
	animation: skeletonPulse 1.2s ease-in-out infinite;
	background: linear-gradient(90deg, #eaf1fb, #f8fbff, #eaf1fb);
	background-size: 200% 100%;
	border-radius: 8px;
	display: block;
}

.lobby-skeleton-row span {
	height: 24px;
	width: 80%;
}

.leaderboard-skeleton {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.leaderboard-skeleton span {
	height: 40px;
}

.skeleton-card {
	min-height: 260px;
}

.skeleton-wide {
	min-height: 430px;
}

@keyframes skeletonPulse {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.empty-lobby {
	align-items: center;
	background: #ffffff;
	border: 1px dashed #bcd4ef;
	border-radius: 8px;
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 12px;
	padding: 24px;
	text-align: center;
}

.empty-lobby .glyphicon {
	color: #38bdf8;
	font-size: 24px;
}

.empty-lobby p {
	margin: 0;
}

.modal-content {
	border: 0;
	border-radius: 8px;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.modal-header {
	background: linear-gradient(135deg, #eafff4, #edf7ff);
	border-bottom: 1px solid var(--line);
}

.modal-title {
	color: var(--ink);
	font-weight: 700;
}

.join-seat-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.join-roster {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 14px;
}

.join-roster-seat {
	background: #f7fbff;
	border: 1px solid #dbeafe;
	border-radius: 8px;
	padding: 8px 10px;
}

.join-roster-seat strong,
.join-roster-seat span {
	display: block;
}

.join-roster-seat strong {
	color: #4a5974;
	font-size: 11px;
	text-transform: uppercase;
}

.join-roster-seat span {
	color: #17233f;
	font-weight: 700;
}

.join-board-card {
	background: #f7fbff;
	border: 1px solid #dbeafe;
	border-radius: 8px;
	padding: 12px;
	text-align: center;
}

.join-board-card img {
	border: 4px solid #ffffff;
	border-radius: 8px;
	box-shadow: var(--small-shadow);
	display: block;
	height: 130px;
	margin: 10px auto;
	width: 130px;
}

.join-seat-button {
	width: 100%;
}

.page-shell {
	margin: 0 auto 44px;
	max-width: 1220px;
	padding: 0 18px;
}

.content-panel {
	padding: 24px;
}

.content-panel h3 {
	color: #17233f;
	font-size: 20px;
	font-weight: 700;
	margin-top: 26px;
}

.content-panel p {
	font-size: 15px;
}

.auth-page {
	align-items: flex-start;
	display: flex;
	justify-content: center;
	padding: 16px 18px 48px;
}

.auth-card {
	max-width: 430px;
	padding: 24px;
	width: 100%;
}

.auth-card .form-horizontal .form-group {
	margin-left: 0;
	margin-right: 0;
}

.auth-card .col-md-12 {
	padding-left: 0;
	padding-right: 0;
}

.auth-card .help-block {
	color: #ef476f;
	font-weight: 700;
}

.empty-state-panel {
	background: rgba(255, 255, 255, 0.94);
	border: 1px dashed #bcd4ef;
	border-radius: 8px;
	box-shadow: var(--small-shadow);
	padding: 40px 24px;
	text-align: center;
}

.empty-state-panel .glyphicon {
	color: #38bdf8;
	font-size: 36px;
}

.empty-small {
	background: #f7fbff;
	border: 1px dashed #bcd4ef;
	border-radius: 8px;
	margin: 0;
	padding: 14px;
	text-align: center;
}

.leaderboard-page {
	max-width: 1180px;
}

.leaderboard-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.leaderboard-card {
	padding: 18px;
}

.leaderboard-card h3 {
	align-items: center;
	color: #17233f;
	display: flex;
	font-size: 21px;
	font-weight: 700;
	gap: 8px;
	margin: 0 0 14px;
}

.leaderboard-card:nth-child(1) h3 .glyphicon {
	color: #ef476f;
}

.leaderboard-card:nth-child(2) h3 .glyphicon {
	color: #0ea5e9;
}

.leaderboard-card:nth-child(3) h3 .glyphicon {
	color: #22c55e;
}

.profile-page {
	display: grid;
	gap: 20px;
	grid-template-columns: 300px minmax(0, 1fr);
	max-width: 1360px;
}

.profile-card {
	align-self: start;
	padding: 20px;
}

.profile-main {
	min-width: 0;
}

.profile-panel {
	padding: 20px;
}

.profile-subtitle {
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	margin: -6px 0 16px;
	text-align: center;
	text-transform: uppercase;
}

.rating-tile {
	background: #f7fbff;
	border: 1px solid #dbeafe;
	border-radius: 8px;
	margin-bottom: 10px;
	padding: 12px;
	text-align: center;
}

.rating-tile h3 {
	color: #4a5974;
	font-size: 13px;
	font-weight: 700;
	margin: 0 0 6px;
	text-transform: uppercase;
}

.rating-number {
	color: #17233f;
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
}

.rating-deviation {
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	margin-top: 5px;
}

.toggle-games-button {
	margin-top: 10px;
	width: 100%;
}

.shaded-box {
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: var(--small-shadow);
}

.center-text {
	color: var(--muted);
	text-align: center;
}

@media (max-width: 1180px) {
	.home-dashboard,
	.game-layout {
		flex-direction: column;
	}

	.home-sidebar,
	.home-main {
		flex: 1 1 auto;
		min-width: 0;
		width: 100%;
	}

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

@media (max-width: 900px) {
	.app-header {
		align-items: flex-start;
		flex-direction: column;
		position: static;
	}

	.app-nav {
		justify-content: flex-start;
		width: 100%;
	}

	.leaderboard-grid,
	.profile-page {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	.home-sidebar,
	.join-seat-grid,
	.toggle-grid {
		grid-template-columns: 1fr;
	}

	.brand-name {
		font-size: 24px;
	}

	.nav-pill {
		flex: 1 1 auto;
		justify-content: center;
	}

	.lobby-toolbar,
	.quick-play-grid,
	.join-roster {
		grid-template-columns: 1fr;
	}

	#lobbyTable table.table-fixedheader > tbody {
		height: auto;
		max-height: none;
	}

	#lobbyTable table.table-fixedheader > thead {
		display: none;
	}

	#lobbyTable table.table-fixedheader > tbody tr td {
		border-left: 1px solid #e2edf9;
		border-radius: 0;
		border-right: 1px solid #e2edf9;
		float: none;
		width: 100% !important;
	}

	#lobbyTable table.table-fixedheader > tbody tr td:first-child {
		border-radius: 8px 8px 0 0;
	}

	#lobbyTable table.table-fixedheader > tbody tr td:last-child {
		border-radius: 0 0 8px 8px;
	}
}

.board-theme-candy .cg-board-wrap {
	background-image: url('../img/board/blue.svg') !important;
}

.board-theme-mint .cg-board-wrap {
	background-image:
		conic-gradient(#d9fff0 25%, #7ee7c6 0 50%, #d9fff0 0 75%, #7ee7c6 0) !important;
	background-size: 25% 25% !important;
}

.board-theme-classic .cg-board-wrap {
	background-image:
		conic-gradient(#f0d9b5 25%, #b58863 0 50%, #f0d9b5 0 75%, #b58863 0) !important;
	background-size: 25% 25% !important;
}

.board-theme-night .cg-board-wrap {
	background-image:
		conic-gradient(#a8b3cf 25%, #42526e 0 50%, #a8b3cf 0 75%, #42526e 0) !important;
	background-size: 25% 25% !important;
}

.board-theme-wood .cg-board-wrap {
	background-image:
		conic-gradient(#ecd3a9 25%, #a8743f 0 50%, #ecd3a9 0 75%, #a8743f 0) !important;
	background-size: 25% 25% !important;
}

.board-theme-green .cg-board-wrap {
	background-image:
		conic-gradient(#eeeed2 25%, #769656 0 50%, #eeeed2 0 75%, #769656 0) !important;
	background-size: 25% 25% !important;
}

.board-theme-purple .cg-board-wrap {
	background-image:
		conic-gradient(#ece6f7 25%, #9b80c9 0 50%, #ece6f7 0 75%, #9b80c9 0) !important;
	background-size: 25% 25% !important;
}

.board-theme-gray .cg-board-wrap {
	background-image:
		conic-gradient(#e3e6ea 25%, #8d97a5 0 50%, #e3e6ea 0 75%, #8d97a5 0) !important;
	background-size: 25% 25% !important;
}

/* coordinates hidden (Settings): chessground still draws them, they are just not shown */
.hide-coordinates .cg-board-wrap coords {
	display: none;
}

.piece-set-bubble .cg-board piece,
.piece-set-bubble .pieceStyle,
.piece-set-bubble .promotionPiece {
	filter: drop-shadow(0 4px 4px rgba(255, 255, 255, 0.9)) drop-shadow(0 3px 8px rgba(56, 189, 248, 0.3));
}

.piece-set-contrast .cg-board piece,
.piece-set-contrast .pieceStyle,
.piece-set-contrast .promotionPiece {
	filter: contrast(1.22) saturate(1.18) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

.notifications-wrapper,
.notification {
	border-radius: 8px !important;
	font-family: 'Noto Sans', Arial, sans-serif !important;
}

/* pair leaderboard */
.leaderboard-pairs {
	margin-top: 18px;
}

.pair-table {
	border-collapse: collapse;
	width: 100%;
}

.pair-table th {
	border-bottom: 2px solid #e8eef7;
	color: #667085;
	font-size: 12px;
	padding: 6px 8px;
	text-transform: uppercase;
}

.pair-table td {
	border-bottom: 1px solid #f0f4fa;
	padding: 6px 8px;
}

.pair-plus {
	color: #8a94a6;
}

.pair-rating {
	font-weight: 700;
}

/* phones: the navigation is one row that scrolls sideways instead of many wrapped rows */
@media (max-width: 680px) {
	.app-header {
		gap: 8px;
		padding: 10px 12px;
	}

	.app-nav {
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: none;
	}

	.app-nav::-webkit-scrollbar {
		display: none;
	}

	.app-nav .nav-pill {
		flex: 0 0 auto;
		font-size: 13px;
		padding: 6px 10px;
		white-space: nowrap;
	}

	.home-dashboard,
	.page-shell {
		padding-left: 8px;
		padding-right: 8px;
	}
}

@media (max-width: 680px) {
	.app-nav > * {
		flex: 0 0 auto;
		white-space: nowrap;
	}
}
