html,
body {
	background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
	overflow: hidden;
}

html,
body {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

.nodisplay {
	display: none;
	visibility: hidden;
}

::-webkit-input-placeholder {
	color: #cecece;
}

:-moz-placeholder {
	color: #cecece;
	opacity: 1;
}

::-moz-placeholder {
	color: #cecece;
	opacity: 1;
}

:-ms-input-placeholder {
	color: #cecece;
}

input[type=text] {
	-webkit-touch-callout: text;
	-webkit-user-select: text;
	-khtml-user-select: text;
	-moz-user-select: text;
	-ms-user-select: text;
	user-select: text;
}

.menuLink {
	font-size: 20px;
}

a {
	color: #a56dc8;
	text-decoration: none;
}

a:active {
	color: #795094;
}

a:visited {
	color: #a56dc8;
}

a:hover {
	color: #795094;
}

* {
	font-family: 'Hammersmith One';
	font-size: 12px;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

span {
	font-size: inherit;
}

:root {
	--menu-card-width: 360px;
}

#errorNotification {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	max-width: 500px;
	z-index: 99999;
}

#errorNotification .errorClose {
	position: absolute;
	top: 5px;
	left: 5px;
}

#youtuberOf {
	position: absolute;
	bottom: 20px;
	left: 2cqmin;
	color: #fff;
	font-size: 24px;
}

.ytLink {
	color: #6eb3ef;
	font-size: 24px;
	text-decoration: none;
}

.ytLink:hover {
	color: #5c96c9;
}

#featuredYoutube {
	margin-top: 5px;
}

#featuredYoutube a {
	color: #6eb3ef !important;
}

#featuredYoutube a:hover {
	color: #5c96c9 !important;
}

#mainMenu {
	background-color: rgba(0, 0, 0, 0.5);
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 10;
}

#menuContainer {
	width: 100%;
	white-space: nowrap;
	text-align: center;
	position: absolute;
	top: 45%;
	transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-o-transform: translateY(-50%);
}

#partyButton {
	display: none;
}

#joinPartyButton {
	display: none;
}

#pingDisplay {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: white;
}

#shutdownDisplay {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: white;
	font-size: 25px;
	z-index: 100;
	pointer-events: none;
}

#settingsButton {
	position: absolute;
	cursor: pointer;
	display: none;
}

#followText {
	position: absolute;
	bottom: 40px;
	left: 10px;
	color: #fff;
	font-size: 22px;
}

#twitterFollow {
	position: absolute;
	bottom: 10px;
	left: 10px;
}

#youtubeFollow {
	position: absolute;
	bottom: 10px;
	left: 10px;
}

#linksContainer1 {
	border-radius: 4px;
	position: absolute;
	bottom: 0px;
	left: 0px;
	background-color: #fff;
	font-size: 20px;
	padding: 8px;
	-webkit-border-radius: 0 4px 0 0;
	-moz-border-radius: 0 4px 0 0;
	border-radius: 0 4px 0 0;
}

#linksContainer2 {
	border-radius: 4px;
	position: absolute;
	bottom: 0px;
	right: 0px;
	background-color: #fff;
	text-align: right;
	font-size: 20px;
	padding: 8px;
	-webkit-border-radius: 4px 0 0 0;
	-moz-border-radius: 4px 0 0 0;
	border-radius: 4px 0 0 0;
}

.legacyHidden {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
}

#infoPanelToggle,
#youtuberPanelToggle {
	position: fixed;
	bottom: 20px;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
	z-index: 9999;
	opacity: 0.3;
	pointer-events: all;
	transform: scale(1);
}

#infoPanelToggle {
	right: 20px;
}

#youtuberPanelToggle {
	left: 20px;
}

#infoPanelToggle:hover,
#youtuberPanelToggle:hover {
	background: #fff;
	transform: scale(1.1);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
	opacity: 1 !important;
}

#infoPanelToggle svg,
#youtuberPanelToggle svg {
	width: 24px;
	height: 24px;
	color: #a56dc8;
}

#linksExpandedPanel,
#youtuberExpandedPanel {
	position: fixed;
	bottom: 75px;
	width: 320px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	padding: 20px;
	font-family: 'Hammersmith One', sans-serif;
	z-index: 10000;
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#linksExpandedPanel {
	right: 20px;
}

#youtuberExpandedPanel {
	left: 20px;
	max-height: 500px;
	padding-right: 12px;
	overflow-y: auto;
	overflow-x: hidden;
}

#youtuberExpandedPanel::-webkit-scrollbar {
	width: 6px;
}

#youtuberExpandedPanel::-webkit-scrollbar-track {
	background: transparent;
	margin: 8px 0;
}

#youtuberExpandedPanel::-webkit-scrollbar-thumb {
	background: #a56dc8;
	border-radius: 3px;
}

#youtuberExpandedPanel::-webkit-scrollbar-thumb:hover {
	background: #795094;
}

#youtuberExpandedPanel .expandedPanelSection {
	padding-right: 8px;
}

#linksExpandedPanel.hidden {
	opacity: 0;
	transform: translateX(100%);
	pointer-events: none;
}

#youtuberExpandedPanel.hidden {
	opacity: 0;
	transform: translateX(-100%);
	pointer-events: none;
}

#linksExpandedPanel.visible,
#youtuberExpandedPanel.visible {
	opacity: 1;
	transform: translateX(0);
	pointer-events: all;
}

.expandedPanelHeader {
	text-align: center;
	font-size: 20px;
	padding: 14px;
	background: #f5f5f5;
	border-radius: 8px;
	margin-bottom: 16px;
	font-weight: 600;
}

.expandedPanelSection {
	margin-bottom: 14px;
}

.expandedPanelSection:last-child {
	margin-bottom: 0;
}

.expandedPanelSectionTitle {
	font-size: 13px;
	font-weight: 700;
	color: #666;
	letter-spacing: 0.5px;
	margin-bottom: 10px;
}

.expandedPanelLink {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	background: #f8f8f8;
	border-radius: 8px;
	margin-bottom: 6px;
	text-decoration: none;
	color: #a56dc8 !important;
	font-size: 15px;
	transition: all 0.2s ease;
}

.expandedPanelLink:last-child {
	margin-bottom: 0;
}

.expandedPanelLink:hover {
	background: #f0f0f0;
	transform: translateX(4px);
	color: #795094 !important;
}

.expandedPanelIcon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.expandedPanelJoinButton {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px;
	background: linear-gradient(135deg, #6eb3ef 0%, #5c96c9 100%);
	color: #fff;
	border-radius: 8px;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(110, 179, 239, 0.3);
}

.expandedPanelJoinButton:hover {
	background: linear-gradient(135deg, #5c96c9 0%, #4a7ba7 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(110, 179, 239, 0.4);
}

.expandedPanelButtonIcon {
	width: 22px;
	height: 22px;
}

#versionText {
	color: #a56dc8;
	transition: color 0.3s ease;
	cursor: pointer;
}

#versionText:hover {
	color: #855f9c;
}

#loadingText {
	font-size: 45px;
	color: #fff;
	text-align: center;
}

#loadingText a {
	display: block;
}

/* Menu Layout */
#menuCardHolder {
	display: inline-flex;
	gap: 8px;
	justify-content: center;
	align-items: flex-start;
	animation: menuFadeIn 0.5s ease-out;
	white-space: normal;
	padding: 0 20px;
}

@keyframes menuFadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.menuColumn {
	display: inline-flex;
	flex-direction: column;
	gap: 12px;
	vertical-align: top;
	flex-shrink: 0;
}

.leftColumn {
	width: 280px;
	animation: slideInLeft 0.6s ease-out;
	height: 420px;
}

.centerColumn {
	width: var(--menu-card-width);
	animation: slideInCenter 0.6s ease-out;
	height: 440px;
}

.rightColumn {
	width: 280px;
	animation: slideInRight 0.6s ease-out;
	height: 420px;
}

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideInCenter {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Card Styles */
.menuCard {
	box-sizing: border-box;
	max-width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.mainCard {
	padding: 20px !important;
	width: 100%;
	height: auto !important;
	flex: 0 0 auto;
}

.cardSection {
	margin-bottom: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.serverCard {
	padding: 18px !important;
	width: 100%;
}

.statsCard {
	padding: 18px !important;
	width: 100%;
	flex: 1;
}

/* Tabbed Card */
.tabbedCard {
	padding: 0 !important;
	overflow: hidden;
	height: 420px !important;
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
	flex: 1;
}

.tabNavigation {
	display: flex;
	background: linear-gradient(to bottom, #f8f8f8, #f0f0f0);
	border-bottom: 2px solid #e0e0e0;
	padding: 0;
	flex-shrink: 0;
}

.tabButton {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 10px 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	border-bottom: 3px solid transparent;
	background: transparent;
	position: relative;
	min-width: 0;
}

.tabButton:hover {
	background: rgba(126, 229, 89, 0.1);
}

.tabButton.active {
	background: #fff;
	border-bottom-color: #7ee559;
}

.tabButton i {
	font-size: 20px;
	color: #888;
	transition: all 0.2s ease;
}

.tabButton.active i {
	color: #7ee559;
	transform: scale(1.05);
}

.tabButton span {
	font-size: 11px;
	color: #666;
	font-weight: 500;
	transition: color 0.2s ease;
	white-space: nowrap;
}

.tabButton.active span {
	color: #292929;
	font-weight: 600;
}

/* Tab Content */
.tabContentWrapper {
	flex: 1;
	overflow-y: auto;
	background: #fff;
	-webkit-overflow-scrolling: touch;
}

.tabContentWrapper::-webkit-scrollbar {
	width: 8px;
}

.tabContentWrapper::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.tabContentWrapper::-webkit-scrollbar-thumb {
	background: #7ee559;
	border-radius: 4px;
}

.tabContentWrapper::-webkit-scrollbar-thumb:hover {
	background: #6fc94e;
}

.tabContent {
	display: none;
	animation: fadeSlideIn 0.4s ease;
}

.tabContent.active {
	display: block;
}

.tabInner {
	padding: 20px;
	height: 100%;
	box-sizing: border-box;
	overflow-y: auto;
}

#gameTab .tabInner {
	overflow-y: visible;
	overflow-x: hidden;
}

@keyframes fadeSlideIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.contentSection {
	margin-bottom: 20px;
}

.contentSection:last-child {
	margin-bottom: 0;
}

.contentFooter {
	margin-top: 24px;
	text-align: center;
}

.menuCard {
	text-align: left;
	white-space: normal;
	word-wrap: break-word;
	margin: 0;
	display: block;
	padding: 20px;
	background: #ffffff;
	backdrop-filter: blur(10px);
	border: 2px solid #e0e0e0;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	-webkit-border-radius: 12px;
	-moz-border-radius: 12px;
	border-radius: 12px;
	overflow: hidden;
	box-sizing: border-box;
	transition: all 0.3s ease;
}

.menuHeader {
	font-size: 24px;
	color: #292929;
	margin-bottom: 8px;
	font-weight: 600;
}

.menuText {
	font-size: 15px;
	color: #666;
	margin-bottom: 12px;
	line-height: 1.5;
}

#hatSelect,
#accessorySelect {
	width: 100%;
	padding: 8px 12px;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	font-size: 13px;
	background: #fff;
	color: #333;
	cursor: pointer;
	outline: none;
	transition: all 0.2s ease;
}

#hatSelect:hover,
#accessorySelect:hover {
	border-color: #7ee559;
	background: #f9fff7;
}

#hatSelect:focus,
#accessorySelect:focus {
	border-color: #7ee559;
	box-shadow: 0 0 0 3px rgba(126, 229, 89, 0.2);
}

#serverBrowser select {
	width: 100%;
	height: 42px;
	padding: 10px 14px;
	font-size: 15px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	color: #333;
	cursor: pointer;
	transition: all 0.2s ease;
	outline: none;
}

#serverBrowser select:hover {
	border-color: #7ee559;
	background: #f9fff7;
}

#serverBrowser select:focus {
	border-color: #7ee559;
	box-shadow: 0 0 0 3px rgba(126, 229, 89, 0.2);
	background: #fff;
}

#altServer {
	width: 100%;
	text-align: center;
	margin-bottom: 12px;
	display: flex;
	gap: 8px;
	flex-direction: row;
}

#altServer .serverModeButton {
	flex: 1;
	padding: 5px;
	font-size: 14px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	color: #333;
	cursor: pointer;
	transition: all 0.2s ease;
	outline: none;
	font-weight: 500;
	text-align: center;
}

#altServer .serverModeButton:hover {
	border-color: #7ee559;
	background: #f9fff7;
}

#altServer .serverModeButton.active {
	border-color: #7ee559;
	background: #7ee559;
	color: #fff;
}

#skinColorHolder {
	padding: 8px;
	background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
	border-radius: 6px;
	border: 1px solid #e0e0e0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 6px;
	justify-items: center;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.activeSkin {
	border-color: #7ee559 !important;
	border-width: 1.5px !important;
	transform: scale(1.2) rotate(0deg) !important;
	box-shadow: 0 0 8px rgba(126, 229, 89, 0.7), 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.skinColorItem {
	cursor: pointer;
	display: inline-block;
	width: 24px;
	height: 24px;
	border-radius: 8px;
	border: 2px solid #d0d0d0;
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	position: relative;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skinColorItem:hover {
	transform: scale(1.15) rotate(5deg);
	border-color: #7ee559;
	box-shadow: 0 4px 8px rgba(126, 229, 89, 0.4), 0 2px 4px rgba(0, 0, 0, 0.15);
	z-index: 1;
}

.skinColorItem:active {
	transform: scale(1.05);
	transition: all 0.1s ease;
}

#skinColorPicker.show {
	display: block !important;
	animation: slideUpFadeIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#skinColorPicker.hide {
	animation: slideUpFadeOut 0.2s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

@keyframes slideUpFadeIn {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(10px) scale(0.9);
	}

	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0) scale(1);
	}
}

@keyframes slideUpFadeOut {
	from {
		opacity: 1;
		transform: translateX(-50%) translateY(0) scale(1);
	}

	to {
		opacity: 0;
		transform: translateX(-50%) translateY(8px) scale(0.92);
	}
}

.settingRadio {
	font-size: 18px;
	color: #a8a8a8;
	margin-bottom: 10px;
}

#gameName {
	font-size: 150px;
	margin-bottom: -25px;
	text-shadow:
		0 1px 0 #c4c4c4,
		0 2px 0 #c4c4c4,
		0 3px 0 #c4c4c4,
		0 4px 0 #c4c4c4,
		0 5px 0 #c4c4c4,
		0 6px 0 #c4c4c4,
		0 7px 0 #c4c4c4,
		0 8px 0 #c4c4c4,
		0 9px 0 #c4c4c4;
	color: #fff;
}

/* Menu Layout */
#menuCardHolder {
	display: inline-flex;
	gap: 8px;
	justify-content: center;
	align-items: flex-start;
	animation: menuFadeIn 0.5s ease-out;
	white-space: normal;
	padding: 0 20px;
}

@keyframes menuFadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.menuColumn {
	display: inline-flex;
	flex-direction: column;
	gap: 12px;
	vertical-align: top;
	flex-shrink: 0;
}

.leftColumn {
	width: 280px;
	animation: slideInLeft 0.6s ease-out;
	height: 420px;
}

.centerColumn {
	width: var(--menu-card-width);
	animation: slideInCenter 0.6s ease-out;
	height: 440px;
}

.rightColumn {
	width: 280px;
	animation: slideInRight 0.6s ease-out;
	height: 420px;
}

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideInCenter {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Card Styles */
.menuCard {
	box-sizing: border-box;
	max-width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.mainCard {
	padding: 20px !important;
	width: 100%;
	height: auto !important;
	flex: 0 0 auto;
}

.cardSection {
	margin-bottom: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.serverCard {
	padding: 18px !important;
	width: 100%;
}

.infoCard {
	padding: 18px !important;
	width: 100%;
	height: 80px !important;
	flex: 0 0 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.createdByText {
	font-size: 18px;
	color: #666;
	text-align: center;
}

.createdByText a {
	color: #a56dc8;
	font-size: 18px;
	font-weight: 600;
	transition: color 0.2s ease;
}

.createdByText a:hover {
	color: #6fc94e;
}

.statsCard {
	padding: 18px !important;
	width: 100%;
	flex: 1;
}

/* Section Titles */
.sectionTitle {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	color: #292929;
	margin-bottom: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sectionTitle i {
	font-size: 22px;
	color: #7ee559;
}

/* Tabbed Card */
.tabbedCard {
	padding: 0 !important;
	overflow: hidden;
	height: 420px !important;
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
	flex: 1;
}

.tabNavigation {
	display: flex;
	background: rgba(0, 0, 0, 0.25);
	border-bottom: none;
	padding: 0;
	flex-shrink: 0;
	border-radius: 4px 4px 0 0;
}

.tabButton {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 10px 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	border-bottom: none;
	background: transparent;
	position: relative;
	min-width: 0;
	color: rgba(255, 255, 255, 0.7);
}

.tabButton:hover {
	background: rgba(50, 50, 50, 0.25);
}

.tabButton.active {
	background: rgba(70, 70, 70, 0.35);
	color: #fff;
}

.tabButton i {
	font-size: 20px;
	color: rgba(255, 255, 255, 0.7);
	transition: all 0.2s ease;
}

.tabButton.active i {
	color: #fff;
	transform: scale(1.05);
}

.tabButton span {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.7);
	font-weight: 500;
	transition: color 0.2s ease;
	white-space: nowrap;
}

.tabButton.active span {
	color: #fff;
	font-weight: 600;
}

/* Tab Content */
.tabContentWrapper {
	flex: 1;
	overflow-y: auto;
	background: #fff;
	-webkit-overflow-scrolling: touch;
}

.tabContentWrapper::-webkit-scrollbar {
	width: 8px;
}

.tabContentWrapper::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.tabContentWrapper::-webkit-scrollbar-thumb {
	background: #7ee559;
	border-radius: 4px;
}

.tabContentWrapper::-webkit-scrollbar-thumb:hover {
	background: #6fc94e;
}

.tabContent {
	display: none;
	animation: fadeSlideIn 0.4s ease;
}

.tabContent.active {
	display: block;
}

.tabInner {
	padding: 20px;
	height: 100%;
	box-sizing: border-box;
	overflow-y: auto;
}

#gameTab .tabInner {
	overflow-y: hidden;
}

@keyframes fadeSlideIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.contentSection {
	margin-bottom: 20px;
}

.contentSection:last-child {
	margin-bottom: 0;
}

.controlItem {
	display: flex;
	align-items: center;
	font-size: 14px;
	color: #333;
	padding: 8px 10px;
	background: #f5f5f5;
	border-radius: 6px;
	transition: all 0.2s ease;
	border: 1px solid #e0e0e0;
}

.controlItem:hover {
	background: #e8f5e0;
	border-color: rgba(126, 229, 89, 0.4);
	transform: translateX(2px);
}

.controlKey {
	display: inline-block;
	background: linear-gradient(to bottom, #7ee559, #6fc94e);
	border: 1px solid #5fb03d;
	border-radius: 5px;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 600;
	color: #ffffff;
	margin-right: 10px;
	min-width: 50px;
	text-align: center;
	box-shadow: 0 2px 4px rgba(126, 229, 89, 0.3);
}

/* Settings Grid */
.settingsGrid {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.settingItem {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px;
	background: #f5f5f5;
	border-radius: 8px;
	transition: all 0.2s ease;
	border: 1px solid #e0e0e0;
}

.settingItem:hover {
	background: #f0f0f0;
	border-color: #d0d0d0;
	transform: translateX(2px);
}

.settingLabel {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
	color: #333;
}

.settingLabel i {
	font-size: 20px;
	color: #7ee559;
}

.settingCheckbox {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 44px;
	height: 24px;
	background: #e0e0e0;
	border-radius: 12px;
	position: relative;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: 2px solid #d0d0d0;
	outline: none;
}

.settingCheckbox:hover {
	background: #d5d5d5;
	border-color: #c0c0c0;
}

.settingCheckbox::before {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	top: 2px;
	left: 2px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.settingCheckbox:checked {
	background: #7ee559;
	border-color: #6fc94e;
}

.settingCheckbox:checked::before {
	transform: translateX(20px);
}

.settingCheckbox:active::before {
	width: 20px;
}

.settingToggle {
	min-width: 50px;
	padding: 6px 12px;
	background-color: rgba(0, 0, 0, 0.25);
	border: none;
	border-radius: 4px;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.settingToggle:hover {
	background-color: rgba(50, 50, 50, 0.25);
}

.settingToggle:active {
	background-color: rgba(70, 70, 70, 0.25);
}

.settingToggle.disabled {
	background-color: rgba(0, 0, 0, 0.15);
	color: rgba(255, 255, 255, 0.4);
}

.settingToggle.disabled:hover {
	background-color: rgba(0, 0, 0, 0.20);
}

.settingToggle i {
	font-size: 18px;
}

/* Info Box */
.infoBox {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	background: rgb(126 229 89 / 65%);
	color: #ffffff;
	border-radius: 8px;
	font-size: 14px;
	border: 1px solid rgb(126 229 89 / 70%);
}

.infoBox i {
	font-size: 20px;
	color: #60af44;
	flex-shrink: 0;
}

.infoBox span {
	font-size: 14px;
}

/* Account Tab */
.centerContent {
	text-align: center;
	padding: 2px 0;
}

.accountIcon i {
	font-size: 80px;
	color: #7ee559;
}

.buttonGroup {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 20px;
}

#desktopInstructions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#mobileInstructions {
	display: none;
}

#guideCard.touch #desktopInstructions {
	display: none;
}

#guideCard.touch #mobileInstructions {
	display: block;
}

.statsContent {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.statItem {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 12px;
	background: #f5f5f5;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
}

.statLabel {
	font-size: 14px;
	color: #666;
}

.statValue {
	font-size: 16px;
	color: #7ee559;
	font-weight: 600;
}

#guideCard #smallLinks {
	display: none;
}

#rightCardHolder {
	display: inline-block;
	vertical-align: top;
}

#nameInput {
	text-align: center;
	font-size: 18px;
	margin-bottom: 14px;
	padding: 14px 16px;
	border: 2px solid #e0e0e0;
	outline: none;
	box-sizing: border-box;
	color: #333;
	background: #fff;
	width: 100%;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border-radius: 8px;
	transition: all 0.3s ease;
	font-weight: 500;
}

#nameInput:hover {
	border-color: #c0c0c0;
	background: #f9fff7;
}

#nameInput:focus {
	border-color: #7ee559;
	box-shadow: 0 0 0 3px rgba(126, 229, 89, 0.2);
	background: #fff;
}

.menuButton {
	text-align: center;
	font-size: 18px;
	padding: 14px 20px;
	box-sizing: border-box;
	color: #fff;
	background-color: #7ee559;
	width: 100%;
	-webkit-border-radius: 0px;
	-moz-border-radius: 0px;
	border-radius: 0px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-weight: 600;
	border: none;
	box-shadow: 0 4px 0 #5fb03d;
}

.menuButton:hover {
	background-color: #6fc94e;
	transform: translateY(-2px);
	box-shadow: 0 6px 0 #5fb03d;
}

.menuButton:active {
	transform: translateY(2px);
	box-shadow: 0 2px 0 #5fb03d;
}

.primaryButton {
	background: linear-gradient(to bottom, #7ee559, #6fc94e);
}

.secondaryButton {
	background: linear-gradient(to bottom, #6eb3ef, #5c96c9);
	box-shadow: 0 4px 0 #4a7ba7;
}

.secondaryButton:hover {
	background: linear-gradient(to bottom, #5c96c9, #4a7ba7);
	box-shadow: 0 6px 0 #4a7ba7;
}

.secondaryButton:active {
	box-shadow: 0 2px 0 #4a7ba7;
}

#gameUI {
	pointer-events: none;
	z-index: 2;
}

#chatHolder {
	position: absolute;
	bottom: 200px;
	width: 100%;
	text-align: center;
}

#chatBox {
	padding: 6px;
	font-size: 20px;
	color: #fff;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	pointer-events: all;
	border: 0;
}

#chatBox:focus {
	outline: none;
}

#topInfoHolder {
	position: absolute;
	right: 20px;
	top: 20px;
}

#leaderboard {
	color: #fff;
	font-size: 31px;
	text-align: left;
	padding: 10px;
	padding-top: 7px;
	padding-bottom: 5px;
	width: 338px;   /* wider than the old 220 (room for [CLAN:TEAM] tags) */
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
}

.leaderHolder {
	overflow: hidden;
	white-space: nowrap;
}

#killCounter {
	right: 0px;
	margin-top: 10px;
	color: #fff;
	font-size: 28px;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	background-image: url(../img/icons/skull.png);
	background-size: 28px;
	background-repeat: no-repeat;
	background-position: right 6px center;
	padding: 5px;
	padding-right: 40px;
	padding-left: 10px;
}

.leaderScores {
	text-align: right;
	float: right;
	margin-left: 10px;
	display: inline-block;
	font-size: 18px;
	color: #7ee559;
}

.leaderScore {
	text-align: right;
	float: right;
	margin-left: 10px;
	display: inline-block;
	font-size: 22px;
	transition: all 0.2s ease;
}

.leaderboardItem {
	float: left;
	display: inline-block;
	max-width: none;
	white-space: nowrap;
	overflow: visible;
	font-size: 22px;
}

.uiElement,
.resourceDisplay {
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	color: #fff;
	padding: 10px;
	padding-top: 5px;
	padding-bottom: 5px;
	font-size: 28px;
}

.resourceDisplay {
	position: absolute;
	right: 20px;
	height: 35px;
	text-align: right;
	line-height: 39px;
	padding-left: 10px;
	padding-right: 40px;
	background-size: 28px;
	background-repeat: no-repeat;
	background-position: right 6px center;
}

#foodDisplay {
	background-image: url(../img/resources/food_ico.png);
}

#woodDisplay {
	background-image: url(../img/resources/wood_ico.png);
}

#stoneDisplay {
	background-image: url(../img/resources/stone_ico.png);
}

#scoreDisplay {
	right: inherit;
	left: 20px;
	bottom: 160px;
	text-align: left;
	padding-left: 40px;
	padding-right: 10px;
	background-position: left 6px center;
	background-image: url(../img/resources/gold_ico.png);
}

#stoneDisplay {
	bottom: 20px;
}

#woodDisplay {
	bottom: 75px;
}

#foodDisplay {
	bottom: 130px;
}

#actionBar {
	bottom: 17px;
	width: 100%;
	text-align: center;
}

.actionBarItem {
	width: 66px;
	height: 66px;
	margin-left: 5px;
	margin-right: 5px;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	display: inline-block;
	cursor: pointer;
	pointer-events: all;
	background-size: cover;
}

.actionBarItem:hover {
	background-color: rgba(50, 50, 50, 0.25);
}

.actionBarItem.stunned::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to top, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
	border-radius: 4px;
	pointer-events: none;
	animation: stunFade var(--stun-duration, 3000ms) linear forwards;
}

@keyframes stunFade {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

.itemIcon {
	width: 66px;
	height: 66px;
}

#mapDisplay {
	position: absolute;
	bottom: 20px;
	left: 20px;
	display: inline-block;
	width: 130px;
	height: 130px;
	pointer-events: all;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
}

#performanceDisplay {
	position: absolute;
	bottom: 20px;
	left: 160px;
	width: 120px;
	height: 114px;
	background-color: rgba(0, 0, 0, 0.20);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	padding: 8px;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	pointer-events: none;
	color: #fff;
	font-size: 14px;
}

.performanceItem {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 2px 0;
}

.performanceLabel {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.8);
	font-weight: 500;
}

.performanceValue {
	font-size: 14px;
	color: #ffffff;
}

.gameButton {
	position: absolute;
	top: 20px;
	padding: 5px;
	cursor: pointer;
	pointer-events: all;
}

.gameButton:hover {
	background-color: rgba(50, 50, 50, 0.25);
}

#allianceButton {
	right: 388px;   /* +118: the leaderboard is wider */
}

#leaderboardButton {
	display: none;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
}

#leaderboardButton:focus {
	outline: none !important;
}

#storeButton {
	right: 448px;   /* +118: the leaderboard is wider */
}

#keybindButton {
	right: 508px;   /* +118: the leaderboard is wider */
}

#chatButton {
	right: 568px;   /* +118: the leaderboard is wider */
}

#dailyQuestButton {
	right: 628px;   /* +118: the leaderboard is wider */
}

#texturePackButton {
	right: 688px;   /* +118: the leaderboard is wider */
}

#reportButton {
	right: 748px;   /* +118: the leaderboard is wider */
}

#storeMenu {
	display: none;
	width: 100%;
	position: absolute;
	text-align: center;
	top: 50%;
	transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-o-transform: translateY(-50%);
}

#storeHolder {
	pointer-events: all;
	width: 400px;
	display: inline-block;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	color: #fff;
	padding: 10px;
	height: 200px;
	max-height: calc(100vh - 200px);
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
}

.storeTab {
	width: 183px;
	font-size: 26px;
	display: inline-block;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	color: #fff;
	padding: 10px;
	pointer-events: all;
	cursor: pointer;
}

.storeTab:hover {
	background-color: rgba(50, 50, 50, 0.25);
}

.storeItem {
	color: #fff;
	padding: 5px;
	font-size: 24px;
	text-align: left;
	cursor: pointer;
}

.itemPrice {
	margin-top: 5px;
	float: right;
	display: inline-block;
	color: rgba(255, 255, 255, 0.5);
	font-size: 24px;
	padding-right: 5px;
}

.hatPreview {
	margin-top: -5px;
	width: 45px;
	height: 45px;
	display: inline-block;
	vertical-align: middle;
	padding-right: 10px;
}

#allianceMenu {
	display: none;
	width: 100%;
	position: absolute;
	text-align: center;
	top: 50%;
	transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-o-transform: translateY(-50%);
}

#allianceHolder {
	pointer-events: all;
	height: 200px;
	max-height: calc(100vh - 260px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	width: 350px;
	display: inline-block;
	text-align: left;
	padding: 10px;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
}

/* Scrollbar styling for clan menu */
#allianceHolder::-webkit-scrollbar {
	width: 12px;
}

#allianceHolder::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
}

#allianceHolder::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.4);
	border-radius: 6px;
}

#allianceHolder::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.6);
}

.allianceItem {
	font-size: 24px;
	color: #fff;
	padding: 5px;
}

.joinAlBtn {
	float: right;
	font-size: 24px;
	text-align: right;
	cursor: pointer;
	color: #80eefc;
}

.joinAlBtn:hover {
	color: #72d3e0;
}

.notificationText {
	vertical-align: top;
	font-size: 25px;
	color: #fff;
	display: inline-block;
}

.notifButton {
	padding: 5px;
	margin-left: 10px;
	display: inline-block;
	cursor: pointer;
	pointer-events: all;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
}

.notifButton:hover {
	background-color: rgba(50, 50, 50, 0.25);
}

#notificationDisplay {
	vertical-align: top;
	position: absolute;
	right: 270px;
	top: 80px;
	text-align: right;
}

.allianceButtonM {
	pointer-events: all;
	cursor: pointer;
	margin-top: 10px;
	font-size: 24px;
	color: #fff;
	padding: 5px;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	padding: 5px;
	text-align: center;
	display: inline-block;
}

.allianceButtonM:hover {
	background-color: rgba(50, 50, 50, 0.25);
}

#allianceInput {
	pointer-events: all;
	font-size: 24px;
	color: #fff;
	padding: 5px;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	padding: 5px;
	display: inline-block;
	outline: none;
	border-color: none;
	border: 0;
	-webkit-box-shadow: none;
	box-shadow: none;
	width: 200px;
	margin-right: 10px;
}

#itemInfoHolder {
	max-width: 250px;
	display: none;
	position: absolute;
	top: 20px;
	left: 20px;
}

#itemInfoHolder.visible {
	display: block;
}

#itemInfoName {
	font-size: 30px;
}

#itemInfoDesc {
	font-size: 22px;
	color: rgba(255, 255, 255, 0.6);
}

.itemInfoReq {
	font-size: 22px;
}

.itemInfoReqVal {
	font-size: 22px;
	color: rgba(255, 255, 255, 0.6);
}

.itemInfoLmt {
	font-size: 22px;
	position: absolute;
	right: 10px;
	bottom: 6px;
}

#weaponUpgradeSlider {
	-webkit-appearance: none;
	appearance: none;
	height: 6px;
	background: linear-gradient(135deg, #e8e8e8 0%, #d8d8d8 100%);
	border-radius: 3px;
	outline: none;
	cursor: pointer;
	border: 1px solid #d0d0d0;
}

#weaponUpgradeSlider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	background: linear-gradient(to bottom, #7ee559, #6fc94e);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	transition: all 0.2s ease;
	border: 2px solid #5fb03d;
}

#weaponUpgradeSlider::-webkit-slider-thumb:hover {
	background: linear-gradient(to bottom, #6fc94e, #5fb03d);
	transform: scale(1.1);
}

#weaponUpgradeSlider::-moz-range-thumb {
	width: 16px;
	height: 16px;
	background: linear-gradient(to bottom, #7ee559, #6fc94e);
	border-radius: 50%;
	cursor: pointer;
	border: 2px solid #5fb03d;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	transition: all 0.2s ease;
}

#weaponUpgradeSlider::-moz-range-thumb:hover {
	background: linear-gradient(to bottom, #6fc94e, #5fb03d);
	transform: scale(1.1);
}

.leaderboardEntry {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	background: #fff;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
	transition: all 0.2s ease;
}

.leaderboardEntry:hover {
	background: #f9fff7;
	border-color: rgba(126, 229, 89, 0.4);
	transform: translateX(2px);
}

.leaderRank {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background: linear-gradient(to bottom, #7ee559, #6fc94e);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	border-radius: 50%;
	flex-shrink: 0;
}

.leaderName {
	flex: 1;
	font-size: 14px;
	color: #333;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#menuLeaderboard::-webkit-scrollbar {
	width: 6px;
}

#menuLeaderboard::-webkit-scrollbar-track {
	background: #e8e8e8;
	border-radius: 3px;
}

#menuLeaderboard::-webkit-scrollbar-thumb {
	background: #7ee559;
	border-radius: 3px;
}

#menuLeaderboard::-webkit-scrollbar-thumb:hover {
	background: #6fc94e;
}

#spectateButton i {
	color: inherit;
}

#ageBarContainer {
	width: 100%;
	bottom: 93px;
	text-align: center;
}

#ageText {
	width: 100%;
	bottom: 118px;
	text-align: center;
	color: #fff;
	font-size: 24px;
}

#ageBar {
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	padding: 5px;
	width: 314px;
	height: 10px;
	display: inline-block;
}

#ageBarBody {
	background-color: rgba(255, 255, 255, 1);
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	width: 0px;
	height: 100%;
}

#upgradeHolder {
	width: 100%;
	position: absolute;
	text-align: center;
	top: 10px;
}

#upgradeCounter {
	width: 100%;
	position: absolute;
	top: 95px;
	text-align: center;
	font-size: 24px;
	color: #fff;
}

#gameCanvas {
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
	width: 100%;
	height: 100%;
	background-color: #b6db66;
	z-index: 1;
}

#diedText {
	display: none;
	font-size: 150px;
	color: #fff;
	background-color: rgba(0, 0, 0, 0.25);
	width: 100%;
	padding: 0px;
	position: absolute;
	text-align: center;
	top: 50%;
	transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-o-transform: translateY(-50%);
	pointer-events: none;
}

#pre-content-container {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	width: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: 1000;
}

#pre-content-player {
	position: absolute;
	width: 640px;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

#post-ad-join {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);

	width: 100px;
	height: 100px;
	background: red;
}

#force-skip-ad {
	position: absolute;
	top: 8px;
	left: 8px;
}

/* MOBILE */
@media only screen and (max-width: 896px) {
	:root {
		--menu-card-width: 300px;
	}

	#pingDisplay {
		right: 10px;
		left: auto;
		top: 50px;
		text-align: right;
		transform: none;
	}

	#actionBar {
		max-width: calc(100% - 340px);
		margin-left: 170px;
	}

	/* HOME */
	#guideCard {
		position: fixed;
		display: none;
		z-index: 10000;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		background-color: rgba(0, 0, 0, 0.9);
		border-radius: 8px;
		max-width: 600px;
		max-height: 80vh;
		overflow-y: auto;
	}

	#guideCard #smallLinks {
		display: block;
	}

	#guideCard.showing {
		display: flex !important;
		flex-direction: column;
	}

	#loadingText {
		margin-top: 20px;
	}

	#gameName {
		font-size: 80px;
		text-shadow:
			0 1px 0 #c4c4c4,
			0 2px 0 #c4c4c4,
			0 3px 0 #c4c4c4,
			0 4px 0 #c4c4c4,
			0 5px 0 #c4c4c4;
	}

	#menuCardHolder {
		margin-top: 20px;
	}

	#menuCardHolder {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.leftColumn,
	.centerColumn,
	.rightColumn {
		width: var(--menu-card-width);
	}

	.mainCard,
	.serverCard,
	.infoCard,
	.statsCard {
		width: 100%;
	}

	.tabbedCard {
		height: 420px !important;
	}

	.infoCard {
		height: 70px !important;
		flex: 0 0 70px;
	}

	.tabButton {
		padding: 8px 4px;
	}

	.tabButton i {
		font-size: 18px;
	}

	.tabButton span {
		font-size: 10px;
	}

	.tabButton {
		padding: 8px 4px;
		gap: 2px;
	}

	.tabButton i {
		font-size: 18px;
	}

	.tabButton span {
		font-size: 10px;
	}

	.controlKey {
		min-width: 60px;
		font-size: 11px;
	}

	.controlItem {
		font-size: 14px;
	}

	.sectionTitle {
		font-size: 18px;
	}

	.sectionTitle i {
		font-size: 20px;
	}

	.settingLabel {
		font-size: 14px;
	}

	.accountIcon i {
		font-size: 60px;
	}

	#guideCard.showing {
		display: flex !important;
	}

	#partyButton {
		top: 8px;
		left: 33%;
		right: inherit;
		transform: translateX(-50%);
	}

	#joinPartyButton {
		top: 8px;
		left: 66%;
		right: inherit;
		transform: translateX(-50%);
	}

	#settingsButton {
		display: block;
		bottom: 28px;
		left: 50%;
		transform: translateX(-50%);
	}

	#youtuberOf {
		display: none;
		top: 8px;
		left: 8px;
	}

	#featuredYoutube {
		display: inline-block;
		margin-top: 0;
	}

	#linksContainer1,
	#linksContainer2,
	#youtubeFollow,
	#twitterFollow {
		display: none;
	}

	/* GAME */
	#mapDisplay {
		width: 66px;
		height: 66px;
		bottom: unset;
		top: 8px;
		left: 8px;
	}

	#performanceDisplay {
		width: 90px;
		height: 66px;
		bottom: unset;
		top: 8px;
		left: 82px;
		padding: 4px;
		font-size: 10px;
	}

	.performanceLabel {
		font-size: 9px;
	}

	.performanceValue {
		font-size: 10px;
	}

	#itemInfoHolder {
		max-width: 128px;
		top: inherit;
		top: 8px;
		right: 8px;
		left: inherit;
	}

	#itemInfoName {
		font-size: 22px;
	}

	#itemInfoDesc,
	#itemInfoDesc,
	.itemInfoReq,
	.itemInfoLmt,
	.itemInfoReqVal {
		font-size: 12px;
	}

	.uiElement,
	.resourceDisplay {
		font-size: 20px;
	}

	.resourceDisplay,
	#scoreDisplay {
		right: inherit;
		left: 8px;
		height: 25px;
		line-height: 27px;

		padding-left: 36px;
		padding-right: 10px;

		background-size: 24px;
		background-position: left 6px center;
	}

	#foodDisplay {
		top: 82px;
		bottom: inherit;
	}

	#woodDisplay {
		top: 124px;
		bottom: inherit;
	}

	#stoneDisplay {
		top: 166px;
		bottom: inherit;
	}

	#scoreDisplay {
		top: 208px;
		left: 8px;
		bottom: inherit;
	}

	#topInfoHolder {
		top: 8px;
		right: 8px;
	}

	#killCounter {
		left: inherit;
		margin-top: 0;
	}

	#actionBar {
		bottom: 8px;
		min-height: 44px;
		max-width: calc(100% - 88px);
		margin-left: 44px;
	}

	.actionBarItem {
		width: 44px;
		height: 44px;
		margin-left: 5px;
		margin-right: 5px;
	}

	#upgradeCounter {
		font-size: 18px;
		top: 58px;
	}

	#ageText {
		bottom: 70px;
		font-size: 16px;
	}

	#ageBarContainer {
		bottom: 54px;
	}

	#ageBar {
		-webkit-border-radius: 6px;
		-moz-border-radius: 6px;
		border-radius: 6px;
		padding: 3px;
		width: 200px;
		height: 6px;
	}

	#ageBarBody {
		-webkit-border-radius: 3px;
		-moz-border-radius: 3px;
		border-radius: 3px;
	}

	#leaderboard {
		display: none;
		width: 340px;
		position: fixed;
		top: 50%;
		left: 50%;
		margin-left: -180px;
		margin-top: -100px
	}

	#leaderboard.is-showing {
		display: block;
	}

	#leaderboardData,
	.leaderHolder,
	.leaderboardItem,
	.leaderScore {
		font-size: 18px;
	}

	.leaderScore {
		margin-left: 0;
	}

	#notificationDisplay {
		top: inherit;
		right: inherit;
		left: 50%;
		bottom: 96px;
		transform: translateX(-50%);
		text-align: center;
	}

	.notificationText {
		line-height: 35px;
		font-size: 18px;
		display: block;
	}

	.notifButton {
		padding: 3px 3px 0 3px;
		margin-left: 4px;
		margin-right: 4px;
	}

	#allianceButton {
		top: inherit;
		right: 8px;
	}

	#storeButton {
		top: inherit;
		right: 60px;
	}

	#keybindButton {
		display: none;
	}

	#chatButton {
		top: inherit;
		left: 8px;
		display: none;
	}

	#chatButton.hide {
		display: none;
	}

	.gameButton {
		bottom: 8px;
		width: 44px;
		height: 44px;
		padding: 0 !important;
	}

	.gameButton i {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		font-size: 34px !important;
	}

	.allianceItem,
	#allianceInput,
	.allianceButtonM {
		font-size: 18px;
	}

	.storeItem {
		font-size: 18px;
	}

	.hatPreview {
		width: 35px;
		height: 35px;
	}

	.joinAlBtn,
	.itemPrice {
		font-size: 18px;
	}

	#itemInfoHolder {
		top: 51px;
	}

	#leaderboardButton {
		display: block;
		right: 8px;
		bottom: 60px;
		top: initial;
	}
}

@media only screen and (max-width: 480px) {
	#storeButton {
		top: 8px;
		left: 78px;
	}

	#allianceButton {
		top: 8px;
		left: 126px;
	}

	#leaderboardButton {
		top: 8px;
		left: 174px;
	}

	#gameName {
		font-size: 60px;
	}

	.storeTab {
		width: 153px;
		font-size: 24px;
	}

	#storeHolder {
		width: 340px;
	}

	#upgradeHolder {
		width: 80%;
		top: 50%;
		left: 10%;
		margin-top: -40px;
	}

	#upgradeCounter {
		top: 50%;
		margin-top: -70px;
		background-color: rgba(50, 50, 50, 0.5);
	}

	#upgradeHolder .actionBarItem {
		width: 66px;
		height: 66px;
	}
}

#touch-controls-left,
#touch-controls-right,
#touch-controls-fullscreen {
	position: absolute;
	width: 50%;
	height: 100%;
	top: 0;
	bottom: 0;
	display: none;
}

#touch-controls-fullscreen {
	width: 100%;
}

#touch-controls-right {
	left: 50%;
}

#bottomContainer {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
}


/* Keybind Modal Styles */
#keybindModal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: all;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

#keybindModalContent {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	width: 95%;
	max-width: 1200px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	animation: slideUp 0.3s ease;
}

@keyframes slideUp {
	from {
		transform: translateY(30px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

#keybindModalHeader {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	border-bottom: 2px solid #e0e0e0;
	background: linear-gradient(to bottom, #f8f8f8, #f0f0f0);
	border-radius: 12px 12px 0 0;
}

#keybindCloseButton {
	transition: all 0.2s ease;
}

#keybindCloseButton:hover {
	transform: scale(1.1);
}

#keybindCloseButton:hover i {
	color: #333 !important;
}

#keybindModalBody {
	padding: 20px;
	overflow-y: auto;
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

#keybindModalBody::-webkit-scrollbar {
	width: 8px;
}

#keybindModalBody::-webkit-scrollbar-track {
	background: #f1f1f1;
}

#keybindModalBody::-webkit-scrollbar-thumb {
	background: #7ee559;
	border-radius: 4px;
}

#keybindModalBody::-webkit-scrollbar-thumb:hover {
	background: #6fc94e;
}

.keybindGroup {
	margin-bottom: 0;
	background: #f8f8f8;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	padding: 16px;
	transition: all 0.2s ease;
}

.keybindGroup:hover {
	border-color: #7ee559;
	box-shadow: 0 4px 12px rgba(126, 229, 89, 0.15);
}

.keybindGroup:last-child {
	margin-bottom: 0;
}

.keybindTitle {
	font-size: 15px;
	font-weight: 700;
	color: #7ee559;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #7ee559;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.keybindItem {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 10px;
	margin-bottom: 6px;
	background: #ffffff;
	border-radius: 6px;
	transition: all 0.2s ease;
	border: 1px solid #e0e0e0;
}
}

.keybindItem:hover {
	background: #e8f5e0;
	border-color: rgba(126, 229, 89, 0.4);
}

.keybindLabel {
	font-size: 13px;
	color: #333;
	font-weight: 500;
}

.keybindButton {
	min-width: 60px;
	padding: 5px 12px;
	background: linear-gradient(to bottom, #7ee559, #6fc94e);
	border: 1px solid #5fb03d;
	border-radius: 6px;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(126, 229, 89, 0.3);
	text-align: center;
}

.keybindButton:hover {
	background: linear-gradient(to bottom, #6fc94e, #5fb03d);
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(126, 229, 89, 0.4);
}

.keybindButton:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(126, 229, 89, 0.3);
}

.keybindButton.listening {
	background: linear-gradient(to bottom, #6eb3ef, #5c96c9);
	border-color: #4a7ba7;
	animation: pulse 1.5s infinite;
}

.keybindToggle {
	min-width: 70px;
	padding: 8px 16px;
	background-color: rgba(0, 0, 0, 0.25);
	border: none;
	border-radius: 4px;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

.keybindToggle:hover {
	background-color: rgba(50, 50, 50, 0.25);
}

.keybindToggle:active {
	background-color: rgba(70, 70, 70, 0.25);
}

.keybindToggle.disabled {
	background-color: rgba(0, 0, 0, 0.15);
	color: rgba(255, 255, 255, 0.4);
}

.keybindToggle.disabled:hover {
	background-color: rgba(0, 0, 0, 0.20);
}

.keybindToggle i {
	font-size: 18px;
}

@keyframes pulse {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(110, 179, 239, 0.7);
	}
	50% {
		box-shadow: 0 0 0 8px rgba(110, 179, 239, 0);
	}
}

@keyframes fadeInOut {
	0% {
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	90% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

#keybindModalFooter {
	padding: 16px 20px;
	border-top: 2px solid #e0e0e0;
	background: #f8f8f8;
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	border-radius: 0 0 12px 12px;
}

.keybindActionButton {
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
	background: #e0e0e0;
	color: #333;
}

.keybindActionButton:hover {
	background: #d0d0d0;
	transform: translateY(-1px);
}

.keybindPrimaryButton {
	background: linear-gradient(to bottom, #7ee559, #6fc94e);
	color: #fff;
	box-shadow: 0 2px 4px rgba(126, 229, 89, 0.3);
}

.keybindPrimaryButton:hover {
	background: linear-gradient(to bottom, #6fc94e, #5fb03d);
	box-shadow: 0 4px 8px rgba(126, 229, 89, 0.4);
}


/* New Main Menu Layout - Matching Image */
.newMenuBox {
	background: #fff;
	border-radius: 8px;
	padding: 18px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	display: inline-block;
	vertical-align: top;
	margin: 0 8px;
}

.newMenuLeft {
	width: 180px;
}

.newMenuCenter {
	width: 450px;
}

.newMenuRight {
	width: 180px;
}

.newMenuHeader {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: 600;
	color: #292929;
	font-family: 'Hammersmith One', sans-serif;
	text-transform: uppercase;
}

.newMenuHeader i {
	font-size: 20px;
	color: #7ee559;
}

/* Leaderboard */
.newLeaderboardList {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.newLeaderEntry {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px;
	background: #f8f8f8;
	border-radius: 4px;
}

.newLeaderRank {
	background: #7ee559;
	color: #fff;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
	flex-shrink: 0;
}

.newLeaderName {
	flex: 1;
	font-size: 13px;
	color: #333;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.newLeaderScore {
	font-size: 13px;
	font-weight: 600;
	color: #7ee559;
}

/* Center Box */
.newNameInput {
	width: 100%;
	padding: 12px;
	font-size: 16px;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	margin-bottom: 12px;
	box-sizing: border-box;
	font-family: 'Hammersmith One', sans-serif;
}

.newGameContent {
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
}

.newCharSection {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.newCharPreview {
	width: 100px;
	height: 100px;
	background: #f5f5f5;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.newCharPreview canvas {
	border-radius: 6px;
}

.newPlayBtn {
	background: #7ee559;
	color: #fff;
	padding: 10px 32px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: 'Hammersmith One', sans-serif;
	box-shadow: none;
	border: none;
}

.newPlayBtn:hover {
	background: #7ee559;
	transform: none;
	box-shadow: none;
}

.newCustomSection {
	flex: 1;
}

.newCustomBox {
	background: #f8f8f8;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 12px;
	height: 100%;
	box-sizing: border-box;
}

.newCustomTitle {
	font-size: 12px;
	font-weight: 600;
	color: #292929;
	margin-bottom: 10px;
	text-align: center;
}

.newDropdown {
	width: 48%;
	padding: 8px 6px;
	border: 2px solid #e0e0e0;
	border-radius: 4px;
	font-size: 12px;
	background: #fff;
	cursor: pointer;
	font-family: 'Hammersmith One', sans-serif;
	margin-bottom: 8px;
	margin-right: 4%;
}

.newDropdown:nth-child(3) {
	margin-right: 0;
}

.newDropdownFull {
	width: 100%;
	padding: 8px 6px;
	border: 2px solid #e0e0e0;
	border-radius: 4px;
	font-size: 12px;
	background: #fff;
	cursor: pointer;
	font-family: 'Hammersmith One', sans-serif;
}

.newUpgradeSection {
	background: #f8f8f8;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 12px;
}

.newUpgradeLabel {
	font-size: 12px;
	color: #666;
	display: block;
	margin-bottom: 8px;
}

.newUpgradeValue {
	color: #7ee559;
	font-weight: 600;
	font-size: 13px;
}

.newSlider {
	width: 100%;
	cursor: pointer;
	height: 6px;
	border-radius: 3px;
	background: #e0e0e0;
	outline: none;
	-webkit-appearance: none;
}

.newSlider::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #7ee559;
	cursor: pointer;
}

.newSlider::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #7ee559;
	cursor: pointer;
	border: none;
}

/* Right Box */
.newServerDropdown {
	width: 100%;
	padding: 8px;
	border: 2px solid #e0e0e0;
	border-radius: 4px;
	font-size: 11px;
	background: #fff;
	cursor: pointer;
	margin-bottom: 10px;
	font-family: 'Hammersmith One', sans-serif;
}

.newServerInfo {
	font-size: 11px;
	color: #666;
	text-align: center;
	margin-bottom: 16px;
}

.newColorSection {
	margin-bottom: 16px;
}

.newColorTitle {
	font-size: 13px;
	font-weight: 600;
	color: #292929;
	margin-bottom: 10px;
	font-family: 'Hammersmith One', sans-serif;
}

.newColorGrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 16px;
}

.newColorCircle {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 50%;
	cursor: pointer;
	border: 3px solid transparent;
	transition: all 0.2s ease;
}

.newColorCircle:hover {
	transform: scale(1.1);
	border-color: #7ee559;
}

.newColorCircle.selected {
	border-color: #7ee559;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #7ee559;
}

.newHowToBtn {
	background: #7ee559;
	color: #fff;
	padding: 10px;
	border-radius: 6px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: 'Hammersmith One', sans-serif;
}

.newHowToBtn:hover {
	background: #6fc94e;
	transform: translateY(-2px);
}


/* Simple 2-Box Menu Layout */
.simpleMenuBox {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 6px;
	padding: 14px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	display: inline-block;
	vertical-align: top;
	margin: 0 6px;
	font-family: 'Hammersmith One', sans-serif;
	box-sizing: border-box;
}

.simpleMenuLeft {
	width: 220px;
	text-align: center;
}

.simpleMenuRight {
	width: 220px;
}

.simpleNameInput {
	width: 100%;
	padding: 10px;
	font-size: 14px;
	border: 2px solid #c0c0c0;
	border-radius: 4px;
	margin-bottom: 12px;
	box-sizing: border-box;
	font-family: 'Hammersmith One', sans-serif;
	text-align: center;
}

.simplePlayButton {
	width: 100%;
	padding: 12px 8px;
	background: #7ee559;
	color: #fff;
	border-radius: 4px;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	margin-bottom: 12px;
	transition: all 0.2s ease;
	font-family: 'Hammersmith One', sans-serif;
	box-shadow: none;
	box-sizing: border-box;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
	border: none;
}

.simplePlayButton:hover {
	background: #7ee559;
	transform: none;
	box-shadow: none;
}

.simpleCharPreview {
	width: 100%;
	height: 140px;
	background: #f5f5f5;
	border: 2px solid #d0d0d0;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	overflow: hidden;
}

.simpleCharPreview canvas {
	border-radius: 4px;
}

.simpleSection {
	margin-bottom: 14px;
}

.simpleSectionTitle {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
	font-family: 'Hammersmith One', sans-serif;
}

.simpleServerSelect {
	width: 100%;
	padding: 8px;
	border: 2px solid #c0c0c0;
	border-radius: 4px;
	font-size: 12px;
	background: #fff;
	cursor: pointer;
	font-family: 'Hammersmith One', sans-serif;
	margin-bottom: 6px;
	box-sizing: border-box;
}

.simpleServerCount {
	font-size: 11px;
	color: #666;
	text-align: center;
}

.simpleColorGrid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-bottom: 14px;
}

.simpleHowToButton {
	width: 100%;
	padding: 10px 8px;
	background: #f5f5f5;
	border: 2px solid #d0d0d0;
	border-radius: 4px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: 'Hammersmith One', sans-serif;
	color: #555;
	box-sizing: border-box;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.simpleHowToButton:hover {
	background: #e8e8e8;
	border-color: #b0b0b0;
}

/* Leaderboard Box Styles */
.simpleMenuLeaderboard {
	width: 280px;
	max-height: 520px;
	display: flex;
	flex-direction: column;
}

.leaderboardHeader {
	margin-bottom: 12px;
}

.leaderboardDescription {
	text-align: center;
	font-size: 9px;
	color: #999;
	margin-bottom: 10px;
	font-family: 'Hammersmith One', sans-serif;
	font-style: italic;
}

.leaderboardTimePeriods {
	display: flex;
	gap: 4px;
	margin-bottom: 10px;
}

.timePeriodBtn {
	flex: 1;
	padding: 6px 4px;
	background: rgba(0, 0, 0, 0.15);
	border: none;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 600;
	color: rgba(0, 0, 0, 0.5);
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: 'Hammersmith One', sans-serif;
}

.timePeriodBtn:hover {
	background: rgba(0, 0, 0, 0.20);
}

.timePeriodBtn.active {
	background: rgba(0, 0, 0, 0.25);
	color: #333;
}

.leaderboardStatNav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
	background: rgba(0, 0, 0, 0.05);
	border-radius: 4px;
	padding: 4px;
}

.statNavArrow {
	background: rgba(0, 0, 0, 0.15);
	border: none;
	border-radius: 4px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	color: #666;
}

.statNavArrow:hover {
	background: rgba(0, 0, 0, 0.25);
	color: #333;
}

.statNavArrow i {
	font-size: 24px;
}

.currentStatName {
	flex: 1;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	font-family: 'Hammersmith One', sans-serif;
}

.leaderboardSearchBar {
	margin-bottom: 10px;
}

.leaderboardSearchBar input {
	width: 100%;
	padding: 8px 10px;
	border: 2px solid rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	font-size: 12px;
	font-family: 'Hammersmith One', sans-serif;
	box-sizing: border-box;
	transition: all 0.2s ease;
}

.leaderboardSearchBar input:focus {
	outline: none;
	border-color: #7ee559;
	background: rgba(126, 229, 89, 0.05);
}

.leaderboardTabs {
	display: flex;
	gap: 4px;
	margin-bottom: 12px;
}

.leaderboardTab {
	flex: 1;
	padding: 8px 4px;
	background: rgba(0, 0, 0, 0.15);
	border: none;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	color: rgba(0, 0, 0, 0.5);
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: 'Hammersmith One', sans-serif;
}

.leaderboardTab:hover {
	background: rgba(0, 0, 0, 0.20);
}

.leaderboardTab.active {
	background: rgba(0, 0, 0, 0.25);
	color: #333;
}

.leaderboardContent {
	flex: 1;
	overflow-y: auto;
	margin-bottom: 12px;
	min-height: 300px;
	max-height: 360px;
}

.leaderboardContent::-webkit-scrollbar {
	width: 6px;
}

.leaderboardContent::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.05);
	border-radius: 3px;
}

.leaderboardContent::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 3px;
}

.leaderboardContent::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 0.3);
}

.leaderboardTabContent {
	display: none;
}

.leaderboardTabContent.active {
	display: block;
}

/* Main Menu Leaderboard Item Styles (NOT in-game) */
.simpleMenuLeaderboard .leaderboardItem {
	display: flex;
	align-items: center;
	padding: 8px 8px;
	background: rgba(0, 0, 0, 0.05);
	border-radius: 4px;
	margin-bottom: 6px;
	font-size: 13px;
	transition: all 0.2s ease;
}

.simpleMenuLeaderboard .leaderboardItem:hover {
	background: rgba(0, 0, 0, 0.08);
}

.simpleMenuLeaderboard .leaderboardItem.currentUser {
	background: rgba(126, 229, 89, 0.2);
	border: 2px solid #7ee559;
	padding: 6px 6px;
}

.simpleMenuLeaderboard .leaderboardItem.small {
	font-size: 12px;
	padding: 6px 6px;
}

.simpleMenuLeaderboard .leaderboardItem .rank {
	font-weight: 600;
	color: #7ee559;
	margin-right: 8px;
	min-width: 28px;
	font-size: 12px;
}

.simpleMenuLeaderboard .leaderboardItem .playerName {
	flex: 1;
	color: #333;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
}

.simpleMenuLeaderboard .leaderboardItem .score {
	font-weight: 600;
	color: #666;
	margin-left: 8px;
	font-size: 12px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.simpleMenuLeaderboard .leaderboardItem .score .streakIcon {
	color: #ff6b35;
	font-size: 16px;
}

.emptyLeaderboard {
	text-align: center;
	padding: 40px 20px;
	color: #999;
	font-size: 13px;
}

.resourceLeaderboard {
	margin-bottom: 12px;
}

.resourceLeaderboard:last-child {
	margin-bottom: 0;
}

.resourceCategory {
	font-size: 11px;
	font-weight: 600;
	color: #666;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.authButton {
	width: 100%;
	padding: 10px 8px;
	background: rgba(0, 0, 0, 0.25);
	border: none;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: 'Hammersmith One', sans-serif;
}

.authButton:hover {
	background: rgba(0, 0, 0, 0.35);
}

.authButton:active {
	background: rgba(0, 0, 0, 0.45);
}

.authButtonGreen {
	background: #7ee559;
	color: #fff;
	box-shadow: none;
	border: none;
}

.authButtonGreen:hover {
	background: #6fc94e;
	box-shadow: none;
	transform: none;
}

.authButtonGreen:active {
	background: #5fb03d;
}

/* How To Play Panel */
.simpleMenuHowTo {
	width: 240px;
	max-height: 500px;
	display: flex;
	flex-direction: column;
}

.howToContent {
	flex: 1;
	overflow-y: auto;
	padding-right: 4px;
}

.howToContent::-webkit-scrollbar {
	width: 6px;
}

.howToContent::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.05);
	border-radius: 3px;
}

.howToContent::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 3px;
}

.howToContent::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 0.3);
}

.howToSection {
	margin-bottom: 14px;
}

.howToSection:last-child {
	margin-bottom: 0;
}

.howToCategory {
	font-size: 12px;
	font-weight: 600;
	color: #333;
	margin-bottom: 4px;
	font-family: 'Hammersmith One', sans-serif;
}

.howToSection p {
	font-size: 11px;
	color: #666;
	margin: 0;
	line-height: 1.4;
}

/* Auth Modal */
#authModal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	backdrop-filter: blur(4px);
}

#authModalContent {
	background: #fff;
	border-radius: 8px;
	width: 90%;
	max-width: 400px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

#authModalHeader {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 2px solid #f0f0f0;
	font-family: 'Hammersmith One', sans-serif;
}

#authCloseButton {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	transition: all 0.2s ease;
}

#authCloseButton:hover {
	background: rgba(0, 0, 0, 0.05);
}

#authModalBody {
	padding: 24px;
}

.authForm {
	display: none;
}

.authForm.active {
	display: block;
}

.authForm h3 {
	margin: 0 0 20px 0;
	font-size: 20px;
	color: #292929;
	font-family: 'Hammersmith One', sans-serif;
	text-align: center;
}

.authInput {
	width: 100%;
	padding: 12px;
	font-size: 14px;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	margin-bottom: 12px;
	box-sizing: border-box;
	font-family: 'Hammersmith One', sans-serif;
	transition: all 0.2s ease;
}

.authInput:focus {
	outline: none;
	border-color: #7ee559;
	box-shadow: 0 0 0 3px rgba(126, 229, 89, 0.2);
}

.authSubmitButton {
	width: 100%;
	padding: 12px;
	background: #7ee559;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: 'Hammersmith One', sans-serif;
	box-shadow: none;
}

.authSubmitButton:hover {
	background: #6fc94e;
	transform: none;
	box-shadow: none;
}

.authSubmitButton:active {
	background: #5fb03d;
	transform: none;
}

.authSwitch {
	margin-top: 16px;
	text-align: center;
	font-size: 13px;
	color: #666;
}

.authSwitch span {
	color: #7ee559;
	cursor: pointer;
	font-weight: 600;
	text-decoration: underline;
}

.authSwitch span:hover {
	color: #6fc94e;
}

.authMessage {
	margin-top: 12px;
	padding: 10px;
	border-radius: 6px;
	font-size: 13px;
	text-align: center;
	font-family: 'Hammersmith One', sans-serif;
	display: none;
}

.authMessage.success {
	display: block;
	background: rgba(126, 229, 89, 0.2);
	color: #5fb03d;
	border: 1px solid #7ee559;
}

.authMessage.error {
	display: block;
	background: rgba(255, 100, 100, 0.2);
	color: #cc0000;
	border: 1px solid #ff6464;
}

.authHint {
	margin: 12px 0 0 0;
	font-size: 12px;
	color: #888;
	text-align: center;
	font-family: 'Hammersmith One', sans-serif;
}

.authCodeInput {
	text-align: center;
	font-size: 28px;
	letter-spacing: 10px;
	padding: 12px 12px 12px 22px;
}

.authSubmitButton:disabled {
	opacity: 0.6;
	cursor: default;
}

/* Daily Quest Modal */
#dailyQuestModal {
	display: none;
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 100;
	pointer-events: all;
	display: none;
	align-items: center;
	justify-content: center;
}

#dailyQuestModalContent {
	pointer-events: all;
	width: 500px;
	max-width: 90%;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	max-height: 80vh;
	overflow: hidden;
}

#dailyQuestModalHeader {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	background: linear-gradient(to bottom, #f8f8f8, #f0f0f0);
	border-bottom: 2px solid #e0e0e0;
	border-radius: 12px 12px 0 0;
	flex-shrink: 0;
}

#dailyQuestModalHeader span {
	font-size: 22px;
	font-weight: 600;
	color: #292929;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

#dailyQuestCloseButton {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	color: #888;
}

#dailyQuestCloseButton:hover {
	color: #333;
	transform: scale(1.1);
}

#dailyQuestCloseButton i {
	font-size: 28px;
}

#dailyQuestModalBody {
	padding: 16px 20px;
	overflow-y: auto;
	flex: 1;
}

#dailyQuestModalBody::-webkit-scrollbar {
	width: 8px;
}

#dailyQuestModalBody::-webkit-scrollbar-track {
	background: #f1f1f1;
}

#dailyQuestModalBody::-webkit-scrollbar-thumb {
	background: #7ee559;
	border-radius: 4px;
}

#dailyQuestModalBody::-webkit-scrollbar-thumb:hover {
	background: #6fc94e;
}

.questStreakInfo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 16px;
	padding: 12px;
	background: rgba(126, 229, 89, 0.08);
	border-radius: 8px;
	border: 1px solid rgba(126, 229, 89, 0.2);
}

.questStreakItem {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: #555;
}

.questStreakItem i {
	font-size: 20px;
	color: #ff6b35;
	flex-shrink: 0;
}

.questStreakItem strong {
	color: #7ee559;
	font-weight: 700;
}

#dailyQuestList {
	display: flex;
	flex-direction: column;
	gap: 0;
}
}

.questProgressFill {
	height: 100%;
	background: linear-gradient(to right, #80eefc, #72d3e0);
	border-radius: 4px;
	transition: width 0.3s ease;
}

.questProgressText {
	font-size: 14px;
	color: #fff;
	font-weight: 600;
	font-family: 'Hammersmith One', sans-serif;
	min-width: 60px;
	text-align: right;
}

.questCompleteIcon {
	color: #7ee559;
	font-size: 28px;
}

/* Admin Panel */
#adminPanel {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1001;
	backdrop-filter: blur(4px);
}

#adminPanelContent {
	background: #fff;
	border-radius: 8px;
	width: 90%;
	max-width: 1600px;
	max-height: 90vh;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

#adminPanelHeader {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 40px;
	border-bottom: 2px solid #f0f0f0;
	font-family: 'Hammersmith One', sans-serif;
	background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 69, 0, 0.1));
}

#adminCloseButton {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	transition: all 0.2s ease;
	cursor: pointer;
}

#adminCloseButton:hover {
	background: rgba(0, 0, 0, 0.05);
}

#adminPanelBody {
	padding: 40px;
	overflow-y: auto;
	flex: 1;
}

.adminTabs {
	display: flex;
	gap: 16px;
	margin-bottom: 40px;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 20px;
	flex-wrap: wrap;
}

.adminTab {
	padding: 20px 40px;
	background: #f5f5f5;
	border: none;
	border-radius: 6px 6px 0 0;
	font-size: 18px;
	font-weight: 600;
	color: #666;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: 'Hammersmith One', sans-serif;
}

.adminTab:hover {
	background: #e8e8e8;
}

.adminTab.active {
	background: #ff6b35;
	color: #fff;
}

.adminTabContent {
	display: none;
}

.adminTabContent.active {
	display: block;
}

.adminSearchBar {
	margin-bottom: 30px;
}

.adminSearchBar input {
	width: 100%;
	padding: 20px 24px;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	font-size: 18px;
	font-family: 'Hammersmith One', sans-serif;
	box-sizing: border-box;
	transition: all 0.2s ease;
}

.adminSearchBar input:focus {
	outline: none;
	border-color: #ff6b35;
	box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.adminList {
	max-height: 600px;
	overflow-y: auto;
}

.adminList::-webkit-scrollbar {
	width: 8px;
}

.adminList::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.adminList::-webkit-scrollbar-thumb {
	background: #ff6b35;
	border-radius: 4px;
}

.adminList::-webkit-scrollbar-thumb:hover {
	background: #ff4500;
}

.adminPlayerItem {
	padding: 15px;
	background: #f8f8f8;
	border-radius: 8px;
	margin-bottom: 10px;
	border: 2px solid #e0e0e0;
	transition: all 0.2s ease;
}

.adminPlayerItem:hover {
	border-color: #ff6b35;
}

.adminPlayerHeader {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 10px;
}

.adminPlayerName {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	font-family: 'Hammersmith One', sans-serif;
}

.adminPlayerStats {
	font-size: 12px;
	color: #666;
	font-family: 'Hammersmith One', sans-serif;
}

.adminPlayerIP {
	font-size: 12px;
	color: #999;
	font-family: monospace;
}

.adminPlayerActions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.adminActionBtn {
	padding: 6px 12px;
	border: none;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: 'Hammersmith One', sans-serif;
}

.adminActionBtn.kick {
	background: #ffa500;
	color: #fff;
}

.adminActionBtn.kick:hover {
	background: #ff8c00;
}

.adminActionBtn.ban {
	background: #ff4444;
	color: #fff;
}

.adminActionBtn.ban:hover {
	background: #cc0000;
}

.adminActionBtn.mute {
	background: #888;
	color: #fff;
}

.adminActionBtn.mute:hover {
	background: #666;
}

.adminActionBtn.unmute {
	background: #7ee559;
	color: #fff;
}

.adminActionBtn.unmute:hover {
	background: #6fc94e;
}

.adminActionBtn.unban {
	background: #7ee559;
	color: #fff;
}

.adminActionBtn.unban:hover {
	background: #6fc94e;
}

.adminActionBtn.troll-active {
	background: #7ee559;
	color: #fff;
}

.adminActionBtn.troll-active:hover {
	background: #6fc94e;
}

.adminActionBtn.troll-disabled {
	background: #ff4444;
	color: #fff;
}

.adminActionBtn.troll-disabled:hover {
	background: #cc0000;
}

.adminBanItem, .adminMuteItem {
	padding: 15px;
	background: #fff5f5;
	border-radius: 8px;
	margin-bottom: 10px;
	border: 2px solid #ffcccc;
}

.adminMuteItem {
	background: #f5f5f5;
	border-color: #ddd;
}

.adminBanInfo {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.adminBanTarget {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	font-family: 'Hammersmith One', sans-serif;
}

.adminBanExpiry {
	font-size: 12px;
	color: #ff4444;
	font-weight: 600;
}

.adminEmptyState {
	text-align: center;
	padding: 40px;
	color: #999;
	font-size: 14px;
}


/* Admin panel styles */
#adminImpersonateInput:focus {
	outline: none;
	border-color: rgba(255,255,255,0.5);
}

/* Clickable username */
.clickableUsername {
	cursor: pointer;
	text-decoration: underline;
	transition: opacity 0.2s ease;
}

.clickableUsername:hover {
	opacity: 0.8;
}

/* Server Info Display */
.serverInfoDisplay {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
	padding: 12px;
	background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

.serverInfoItem {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
}

.serverInfoLabel {
	color: #666;
	font-weight: 500;
}

.serverInfoValue {
	color: #7ee559;
	font-weight: 700;
	font-family: 'Hammersmith One', sans-serif;
}

/* 1v1 Mode Button */
.oneVOneButton {
	width: 100%;
	padding: 14px;
	background: linear-gradient(135deg, #7ee559 0%, #6fc94e 100%);
	border: none;
	border-radius: 8px;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	font-family: 'Hammersmith One', sans-serif;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(126, 229, 89, 0.3);
}

.oneVOneButton:hover {
	background: linear-gradient(135deg, #6fc94e 0%, #5fb03d 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(126, 229, 89, 0.4);
}

.oneVOneButton:active {
	transform: translateY(0);
}

/* 1v1 Mode Modal */
#oneVOneModeModal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 150;
}

#oneVOneModeContent {
	background: #fff;
	border-radius: 16px;
	width: 90%;
	max-width: 700px;
	max-height: 85vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#oneVOneModeHeader {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px;
	border-bottom: 2px solid #e0e0e0;
	background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
	border-radius: 16px 16px 0 0;
}

#oneVOneModeCloseButton {
	cursor: pointer;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s ease;
}

#oneVOneModeCloseButton:hover {
	background: rgba(0, 0, 0, 0.05);
}

#oneVOneModeBody {
	padding: 24px;
}

/* Mode Type Selector (1v1 vs 2v2) */
.modeTypeSelector {
	display: flex;
	gap: 12px;
	margin-bottom: 24px;
}

.modeTypeButton {
	flex: 1;
	padding: 16px;
	background: #f5f5f5;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.modeTypeButton i {
	font-size: 32px;
	color: #999;
}

.modeTypeButton span {
	font-size: 16px;
	font-weight: 600;
	color: #666;
	font-family: 'Hammersmith One', sans-serif;
}

.modeTypeButton:hover {
	background: #e8f5e0;
	border-color: #7ee559;
}

.modeTypeButton.active {
	background: linear-gradient(135deg, #7ee559 0%, #6fc94e 100%);
	border-color: #5fb03d;
}

.modeTypeButton.active i {
	color: #fff;
}

.modeTypeButton.active span {
	color: #fff;
}

/* Mode Rank Selector (Normal vs Ranked) */
.modeRankSelector {
	display: flex;
	gap: 12px;
	margin-bottom: 24px;
}

.modeRankButton {
	flex: 1;
	padding: 18px;
	background: #f5f5f5;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
}

.modeRankButton i {
	font-size: 36px;
	color: #999;
}

.modeRankButton span {
	font-size: 18px;
	font-weight: 700;
	color: #666;
	font-family: 'Hammersmith One', sans-serif;
}

.modeRankButton p {
	font-size: 12px;
	color: #999;
	margin: 0;
}

.modeRankButton:hover {
	background: #e8f5e0;
	border-color: #7ee559;
}

.modeRankButton.active {
	background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
	border-color: #e6a800;
}

.modeRankButton.active i {
	color: #fff;
}

.modeRankButton.active span {
	color: #fff;
}

.modeRankButton.active p {
	color: rgba(255, 255, 255, 0.9);
}

/* Game Mode Options */
.modeGameSelector {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 24px;
}

.modeGameOption {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	background: #f8f8f8;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	transition: all 0.3s ease;
}

.modeGameOption:hover {
	background: #fff;
	border-color: #7ee559;
	box-shadow: 0 4px 12px rgba(126, 229, 89, 0.2);
}

.modeGameIcon {
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, #7ee559 0%, #6fc94e 100%);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.modeGameIcon i {
	font-size: 28px;
	color: #fff;
}

.modeGameInfo {
	flex: 1;
}

.modeGameTitle {
	font-size: 18px;
	font-weight: 700;
	color: #333;
	font-family: 'Hammersmith One', sans-serif;
	margin-bottom: 4px;
}

.modeGameDesc {
	font-size: 13px;
	color: #666;
	line-height: 1.4;
}

.modeGameQueueBtn {
	padding: 12px 24px;
	background: linear-gradient(135deg, #7ee559 0%, #6fc94e 100%);
	border: none;
	border-radius: 8px;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	font-family: 'Hammersmith One', sans-serif;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(126, 229, 89, 0.3);
}

.modeGameQueueBtn:hover {
	background: linear-gradient(135deg, #6fc94e 0%, #5fb03d 100%);
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(126, 229, 89, 0.4);
}

.modeGameQueueBtn:active {
	transform: scale(0.98);
}

/* Feature Info */
.modeFeatureInfo {
	background: linear-gradient(135deg, #f0f8ff 0%, #e8f5ff 100%);
	padding: 20px;
	border-radius: 10px;
	border: 2px solid #d0e8ff;
}

.featureInfoTitle {
	font-size: 16px;
	font-weight: 700;
	color: #333;
	font-family: 'Hammersmith One', sans-serif;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.featureInfoTitle::before {
	content: none;
	font-size: 20px;
}

.modeFeatureInfo ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.modeFeatureInfo li {
	font-size: 14px;
	color: #555;
	padding: 6px 0;
	padding-left: 24px;
	position: relative;
}

.modeFeatureInfo li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #7ee559;
	font-weight: 700;
	font-size: 16px;
}


/* Account Stats Modal - matches the in-game HUD look (dark see-through boxes, white text, Hammersmith One) */
#accountStatsModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    font-family: 'Hammersmith One', sans-serif;
}

#accountStatsContent {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    width: 90%;
    max-width: 440px;
    max-height: 80vh;
    overflow-y: auto;
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
}

#accountStatsHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px 10px 6px;
}

.statsTitle {
    font-size: 28px;
    color: #fff;
}

.statsTitle .material-icons {
    vertical-align: middle;
    color: #fff;
    margin-right: 4px;
}

.statsCloseIcon {
    font-size: 28px;
    color: #fff;
    opacity: 0.8;
}

#statsCloseButton:hover .statsCloseIcon {
    opacity: 1;
}

#accountStatsBody {
    padding: 0;
}

.statsSection {
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    padding: 8px 10px 4px 10px;
}

.statsSection h3 {
    font-family: 'Hammersmith One', sans-serif;
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 8px 0;
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 6px;
}

#accountStatsModal .statItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 4px;
    margin-bottom: 2px;
    background: none;
    border: none;
    border-radius: 0;
    font-family: 'Hammersmith One', sans-serif;
}

#accountStatsModal .statLabel {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
}

#accountStatsModal .statValue {
    color: #fff;
    font-size: 17px;
    font-weight: 400;
}


/* ========================================
   TERMS OF SERVICE MODAL STYLES
   ======================================== */

.terms-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.7);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
	opacity: 0;
	animation: fadeInModal 0.1s ease-in forwards;
}

@keyframes fadeInModal {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.terms-content {
	background: white;
	padding: 20px;
	width: 90%;
	max-width: 1400px;
	height: 40vh;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow-y: auto;
	box-sizing: border-box;
}

.terms-text {
	font-size: 60px !important;
	line-height: 1.5 !important;
	margin: 20px 0 !important;
	font-family: 'Hammersmith One', Arial, sans-serif !important;
	order: 1;
	overflow: hidden;
	text-align: center;
	background: white !important;
}

.terms-text p {
	margin: 10px 0 !important;
	font-size: 60px !important;
}

.terms-expanded {
	background: white !important;
	padding: 15px;
	max-height: 0;
	overflow: hidden;
	margin: 0;
	transition: max-height 0.4s ease, opacity 0.4s ease;
	text-align: left;
	font-size: 50px !important;
	line-height: 1.5 !important;
	opacity: 0;
	order: 2;
}

.terms-expanded p {
	margin: 8px 0 !important;
	font-size: 50px !important;
}

.terms-expanded.show {
	max-height: 2000px;
	opacity: 1;
	overflow-y: auto;
}

.expand-button {
	background: none;
	border: none;
	font-size: 40px;
	color: #999;
	cursor: pointer;
	transition: transform 0.3s ease, opacity 0.2s;
	opacity: 1;
	padding: 15px;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 10px auto;
	order: 3;
	font-weight: bold;
	flex-shrink: 0;
}

.expand-button:hover {
	opacity: 0.6;
}

.expand-button.expanded {
	transform: rotate(180deg);
}

.expand-button::before {
	content: "▼";
	font-size: 40px;
	font-weight: bold;
	letter-spacing: -3px;
}

.terms-buttons {
	display: flex;
	gap: 15px;
	justify-content: center;
	order: 4;
	flex-shrink: 0;
	margin-top: 10px;
}

.deny-btn, .accept-btn {
	padding: 15px 35px;
	font-size: 28px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	opacity: 1;
	transition: opacity 0.2s;
	font-weight: bold;
	color: white;
}

.deny-btn {
	background: #ff4444;
}

.accept-btn {
	background: #44ff44;
}

.deny-btn:hover {
	opacity: 0.8;
}

.accept-btn:hover {
	opacity: 0.8;
}

#tosLink {
	color: purple;
	font-weight: bold;
	text-decoration: underline;
	cursor: pointer;
}

#tosLink:hover {
	color: darkviolet;
}

/* Selected hotbar slot: clean white outline, no shadow */
.actionBarItem.hotbarSelected {
	outline: 3px solid rgba(255, 255, 255, 0.5);
	outline-offset: -3px;
	box-shadow: none;
}

/* =====================================================================
   FLAT LIME UI (texture pack, settings/keybind, daily challenge)
   Flat colours only: no shadows, no gradients. Thin dark outlines.
   ===================================================================== */
:root {
	--flat-lime: #74e22a;
	--flat-lime-dark: #52b815;
	--flat-ink: #2a2a2a;
	--flat-panel: #f3f3ef;
	--flat-panel-alt: #e6e6e0;
	--flat-white: #ffffff;
	--flat-muted: #6b6b66;
}

#dailyQuestModal, #keybindModal { background: rgba(0, 0, 0, 0.55); animation: none; }

#dailyQuestModalContent, #keybindModalContent, #texturePackPanel {
	background: var(--flat-panel) !important;
	border: 3px solid var(--flat-ink) !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	animation: none;
	overflow: hidden;
}

#dailyQuestModalHeader, #keybindModalHeader, .flatHeader {
	background: var(--flat-lime) !important;
	border-bottom: 3px solid var(--flat-ink) !important;
	border-radius: 0 !important;
}
#dailyQuestModalHeader span, #keybindModalHeader span, #keybindModalHeader h2, .flatHeader h2 {
	color: var(--flat-ink) !important;
	font-family: 'Hammersmith One', sans-serif;
	font-weight: 400 !important;
	text-transform: uppercase;
	letter-spacing: 1px;
}
#dailyQuestCloseButton, #keybindCloseButton, .flatCloseBtn {
	background: var(--flat-white);
	border: 2px solid var(--flat-ink);
	border-radius: 6px;
	width: 36px; height: 36px;
	cursor: pointer;
	transition: none;
	display: flex; align-items: center; justify-content: center;
	color: var(--flat-ink) !important;
	font-size: 20px; line-height: 1; padding: 0;
}
#dailyQuestCloseButton i, #keybindCloseButton i { color: var(--flat-ink) !important; font-size: 24px; }
#dailyQuestCloseButton:hover, #keybindCloseButton:hover, .flatCloseBtn:hover { background: var(--flat-panel-alt); transform: none; }

#dailyQuestModalBody::-webkit-scrollbar-track, #keybindModalBody::-webkit-scrollbar-track { background: var(--flat-panel-alt); }
#dailyQuestModalBody::-webkit-scrollbar-thumb, #keybindModalBody::-webkit-scrollbar-thumb { background: var(--flat-lime); border: 2px solid var(--flat-ink); border-radius: 4px; }

/* Settings groups */
.keybindGroup { background: var(--flat-white); border: 2px solid var(--flat-ink); border-radius: 6px; transition: none; }
.keybindGroup:hover { border-color: var(--flat-ink); box-shadow: none; }
.keybindTitle { color: var(--flat-ink); border-bottom: 3px solid var(--flat-lime); font-family: 'Hammersmith One', sans-serif; font-weight: 400; }
.keybindItem { background: var(--flat-panel); border: 1px solid var(--flat-ink); border-radius: 4px; transition: none; }
.keybindItem:hover { background: var(--flat-panel-alt); border-color: var(--flat-ink); }
.keybindLabel { color: var(--flat-ink); }
.keybindButton { background: var(--flat-lime); border: 2px solid var(--flat-ink); border-radius: 4px; color: var(--flat-ink); box-shadow: none; transition: none; font-weight: 700; }
.keybindButton:hover { background: var(--flat-lime-dark); transform: none; box-shadow: none; }
.keybindButton:active { transform: none; box-shadow: none; }
.keybindButton.listening { background: var(--flat-white); border-color: var(--flat-ink); animation: none; outline: 3px solid var(--flat-lime); }
.keybindToggle { background: var(--flat-lime); border: 2px solid var(--flat-ink); border-radius: 4px; color: var(--flat-ink); font-weight: 700; transition: none; }
.keybindToggle:hover { background: var(--flat-lime-dark); }
.keybindToggle:active { background: var(--flat-lime-dark); }
.keybindToggle.disabled, .keybindToggle.disabled:hover { background: var(--flat-panel-alt); color: var(--flat-muted); }
#keybindModalFooter { background: var(--flat-panel-alt); border-top: 3px solid var(--flat-ink); border-radius: 0; }
.keybindActionButton { background: var(--flat-white); border: 2px solid var(--flat-ink); border-radius: 4px; color: var(--flat-ink); transition: none; }
.keybindActionButton:hover { background: var(--flat-panel-alt); transform: none; }
.keybindPrimaryButton { background: var(--flat-lime); color: var(--flat-ink); box-shadow: none; }
.keybindPrimaryButton:hover { background: var(--flat-lime-dark); box-shadow: none; }
#keybindModal input[type="range"], #keybindModalContent input[type="range"] { accent-color: var(--flat-lime-dark); }

/* Daily challenge */
.questStreakInfo { background: var(--flat-white); border: 2px solid var(--flat-ink); border-radius: 6px; }
.questStreakItem { color: var(--flat-ink); }
.questStreakItem i { color: var(--flat-ink); }
.questStreakItem strong { color: var(--flat-ink); }
.flatQuest { padding: 12px; margin-bottom: 10px; background: var(--flat-white); border: 2px solid var(--flat-ink); border-radius: 6px; }
.flatQuest.completed { background: #dff7c8; }
.flatQuestRow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.flatQuestTitle { font-size: 15px; color: var(--flat-ink); margin-bottom: 2px; }
.flatQuestSub { font-size: 11px; color: var(--flat-muted); }
.flatQuestCheck { width: 26px; height: 26px; margin-left: 12px; background: var(--flat-lime); border: 2px solid var(--flat-ink); border-radius: 4px; color: var(--flat-ink); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: bold; }
.flatBar { height: 14px; background: var(--flat-panel-alt); border: 2px solid var(--flat-ink); border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.flatBarFill { height: 100%; background: var(--flat-lime); }
.flatQuestFoot { display: flex; justify-content: space-between; font-size: 12px; color: var(--flat-ink); }

/* Texture packs */
#texturePackPanel { font-family: 'Hammersmith One', sans-serif; }
.flatHeader { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.flatHeader h2 { margin: 0; font-size: 22px; }
.flatInfoBar { padding: 10px 20px; background: var(--flat-white); border-bottom: 2px solid var(--flat-ink); font-size: 13px; color: var(--flat-ink); }
.flatInfoBar span { background: var(--flat-lime); border: 2px solid var(--flat-ink); border-radius: 4px; padding: 1px 8px; margin-left: 6px; }
.flatPackBody { padding: 16px 20px; overflow-y: auto; flex: 1; }
.flatPackGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.texturePackItem { padding: 12px; background: var(--flat-white); border: 2px solid var(--flat-ink); border-radius: 6px; cursor: pointer; text-align: center; user-select: none; }
.texturePackItem:hover { background: var(--flat-panel-alt); }
.texturePackItem.active { background: #dff7c8; }
.texturePackItem .packName { font-size: 14px; color: var(--flat-ink); margin-bottom: 4px; }
.texturePackItem .packDesc { font-size: 11px; color: var(--flat-muted); margin-bottom: 8px; }
.texturePackItem .packBtn { display: inline-block; padding: 3px 12px; font-size: 12px; background: var(--flat-panel-alt); border: 2px solid var(--flat-ink); border-radius: 4px; color: var(--flat-ink); }
.texturePackItem.active .packBtn { background: var(--flat-lime); }

/* BATTLE ROYALE BR-3: wave timer above the minimap */
#brWaveTimer {
	position: absolute;
	bottom: 214px;   /* above the gold counter (gold sits at bottom 160px) */
	left: 20px;
	display: none;
	padding: 5px 10px;
	font-family: "Hammersmith One", sans-serif;
	font-size: 16px;
	color: #fff;
	background-color: rgba(0, 0, 0, 0.45);
	border-radius: 4px;
	pointer-events: none;
	white-space: nowrap;
	z-index: 10;
}
#brWaveTimer.shrinking { background-color: rgba(160, 20, 70, 0.7); }
@media (max-width: 800px) {
	#brWaveTimer { bottom: unset; top: 252px; left: 8px;   /* below food / wood / stone / gold */ font-size: 12px; padding: 3px 6px; }
}

/* CLOUD SWORD limit gauge */
#cloudLimitHud { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%); width: 260px; display: none; z-index: 20; pointer-events: none; font-family: 'Hammersmith One', sans-serif; text-align: center; color: #fff; text-shadow: 0 2px 4px #000; font-size: 16px; }
#cloudLimitHud .clBar { height: 14px; border: 3px solid #1c1e22; background: rgba(0,0,0,0.55); border-radius: 8px; overflow: hidden; margin-top: 4px; }
#cloudLimitHud .clFill { height: 100%; width: 0%; background: linear-gradient(90deg, #36d6a0, #b8ffe0); transition: width 0.15s; }
#cloudLimitHud.full .clFill { background: linear-gradient(90deg, #ffb13b, #fff2a8); animation: clPulse 0.35s infinite alternate; }
#cloudLimitHud.full { color: #ffe27a; }
@keyframes clPulse { from { filter: brightness(1); } to { filter: brightness(1.6); } }


/* =====================================================================================
   SERVER THEMES (step 49)  -  /texturepack default <halloween|christmas>
   html.theme-halloween / html.theme-christmas is set by the client (tpSetTheme).
   Re-colours the flat UI through its variables + the main menu, play button, hotbar, store.
   ===================================================================================== */
html.theme-halloween {
	--flat-lime: #ff8a1f;
	--flat-lime-dark: #d96a00;
	--flat-ink: #f6e9d0;          /* text + borders on the dark purple panels = light cream (was dark = unreadable) */
	--flat-panel: #241238;
	--flat-panel-alt: #3a2460;
	--flat-white: #2f1b52;        /* card background */
	--flat-muted: #cdb8ee;
}
html.theme-christmas {
	--flat-lime: #d8283b;
	--flat-lime-dark: #a81829;
	--flat-ink: #123524;
	--flat-panel: #f5fbf7;
	--flat-panel-alt: #dcefe3;
	--flat-white: #ffffff;
	--flat-muted: #4f7a63;
}
/* ---- readable text (step 60) ---- */
/* Halloween: panels are dark purple, so all text is cream. Things with an ORANGE background keep dark text. */
html.theme-halloween .keybindButton, html.theme-halloween .keybindToggle, html.theme-halloween .keybindPrimaryButton,
html.theme-halloween .flatQuestCheck, html.theme-halloween .flatInfoBar span, html.theme-halloween .texturePackItem.active .packBtn,
html.theme-halloween #dailyQuestModalHeader span, html.theme-halloween #keybindModalHeader span, html.theme-halloween #keybindModalHeader h2,
html.theme-halloween .flatHeader h2 { color: #1c1030 !important; }
html.theme-halloween #dailyQuestCloseButton, html.theme-halloween #keybindCloseButton, html.theme-halloween .flatCloseBtn { background: #f6e9d0; color: #1c1030 !important; border-color: #1c1030; }
html.theme-halloween #dailyQuestCloseButton i, html.theme-halloween #keybindCloseButton i { color: #1c1030 !important; }
html.theme-halloween .keybindToggle.disabled, html.theme-halloween .keybindToggle.disabled:hover { color: #cdb8ee; }
html.theme-halloween .flatQuest.completed, html.theme-halloween .texturePackItem.active { background: #3f5a2a; }
html.theme-halloween .keybindButton.listening { background: #f6e9d0; color: #1c1030; }
html.theme-halloween .keybindActionButton { color: #f6e9d0; }
html.theme-halloween .keybindPrimaryButton { color: #1c1030; }
html.theme-halloween .questStreakItem, html.theme-halloween .questStreakItem i, html.theme-halloween .questStreakItem strong,
html.theme-halloween .flatQuestTitle, html.theme-halloween .flatQuestFoot, html.theme-halloween .keybindTitle, html.theme-halloween .keybindLabel,
html.theme-halloween .texturePackItem .packName, html.theme-halloween .flatInfoBar { color: #f6e9d0; }
html.theme-halloween .flatQuestSub, html.theme-halloween .texturePackItem .packDesc, html.theme-halloween .emptyLeaderboard { color: #cdb8ee; }
html.theme-halloween .emptyLeaderboard { background: transparent; }
/* Christmas: panels are light, text stays dark green, but RED buttons / headers get white text */
html.theme-christmas .keybindButton, html.theme-christmas .keybindToggle, html.theme-christmas .keybindPrimaryButton,
html.theme-christmas .flatQuestCheck, html.theme-christmas .flatInfoBar span, html.theme-christmas .texturePackItem.active .packBtn,
html.theme-christmas #dailyQuestModalHeader span, html.theme-christmas #keybindModalHeader span, html.theme-christmas #keybindModalHeader h2,
html.theme-christmas .flatHeader h2 { color: #ffffff !important; }
html.theme-christmas .texturePackItem.active, html.theme-christmas .flatQuest.completed { background: #d8f0dc; }
html.theme-christmas .keybindToggle.disabled, html.theme-christmas .keybindToggle.disabled:hover { color: #4f7a63; }
html.theme-halloween .flatPackGrid, html.theme-halloween .flatInfoBar, html.theme-halloween .packName, html.theme-halloween .packDesc { color: #f6e9d0; }
html.theme-christmas #texturePackPanel .flatHeader, html.theme-christmas #dailyQuestModalHeader, html.theme-christmas #keybindModalHeader { color: #fff; }

html.theme-halloween #mainMenu { background: radial-gradient(ellipse at 50% 30%, rgba(60,20,90,0.55), rgba(10,0,20,0.8)); }
html.theme-christmas #mainMenu { background: radial-gradient(ellipse at 50% 30%, rgba(20,80,50,0.45), rgba(5,20,15,0.7)); }
html.theme-halloween .simplePlayButton { background: #ff8a1f; color: #1c1030; border: 3px solid #1c1030; box-shadow: 0 4px 0 #1c1030; }
html.theme-halloween .simplePlayButton:hover { background: #ffa347; }
html.theme-christmas .simplePlayButton { background: #d8283b; color: #fff; border: 3px solid #0e2b1d; box-shadow: 0 4px 0 #0e2b1d; }
html.theme-christmas .simplePlayButton:hover { background: #ef4457; }
html.theme-halloween .menuCard, html.theme-halloween #guideCard { background-color: rgba(34, 16, 58, 0.92) !important; border: 2px solid #ff8a1f; }
html.theme-christmas .menuCard, html.theme-christmas #guideCard { background-color: rgba(14, 60, 38, 0.9) !important; border: 2px solid #f1f5f2; }
html.theme-halloween #gameName, html.theme-halloween #loadingText { color: #ff8a1f !important; text-shadow: 0 3px 0 #1c1030; }
html.theme-christmas #gameName, html.theme-christmas #loadingText { color: #ffffff !important; text-shadow: 0 3px 0 #b01427; }
html.theme-halloween .actionBarItem { background-color: rgba(40, 14, 70, 0.55); outline: 2px solid rgba(255,138,31,0.55); }
html.theme-christmas .actionBarItem { background-color: rgba(10, 70, 40, 0.5); outline: 2px solid rgba(255,255,255,0.6); }
html.theme-halloween #storeHolder { background-color: rgba(34, 16, 58, 0.9); border: 2px solid #ff8a1f; }
html.theme-christmas #storeHolder { background-color: rgba(14, 60, 38, 0.9); border: 2px solid #ffffff; }


/* =====================================================================================
   ADMIN CONSOLE (step 52): dark shell + grouped sidebar, light content cards.
   Same ids/classes as before (adminTab / data-tab / adminTabContent), so all the old JS keeps working.
   ===================================================================================== */
#adminPanel { background: rgba(6, 9, 18, 0.72); backdrop-filter: blur(6px); z-index: 20000; }
#adminPanelContent {
	width: min(1500px, 96vw);
	height: min(900px, 92vh);
	max-height: 92vh;
	background: #0f1320;
	border: 1px solid rgba(120, 190, 255, 0.28);
	border-radius: 14px;
	box-shadow: 0 20px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 60px rgba(60, 140, 255, 0.12);
}
#adminPanelHeader {
	padding: 18px 26px;
	border-bottom: 1px solid rgba(120, 190, 255, 0.18);
	background: linear-gradient(120deg, #141b33 0%, #1a2550 55%, #14324a 100%);
	color: #fff;
}
.adminTitleWrap { display: flex; align-items: center; gap: 14px; }
.adminTitleIcon { font-size: 34px !important; color: #5fd0ff; filter: drop-shadow(0 0 8px rgba(95, 208, 255, 0.55)); }
.adminTitle { font-size: 24px; letter-spacing: 0.5px; color: #fff; font-family: 'Hammersmith One', sans-serif; }
.adminSubtitle { font-size: 12px; color: #8fa6c9; margin-top: 2px; font-family: 'Hammersmith One', sans-serif; }
#adminCloseButton { width: 44px; height: 44px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); }
#adminCloseButton i { font-size: 24px; color: #cfe3ff; }
#adminCloseButton:hover { background: #e5484d; border-color: #e5484d; }
#adminCloseButton:hover i { color: #fff; }

#adminPanelBody {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	grid-auto-rows: min-content;
	align-items: start;
	padding: 0;
	overflow: hidden;
	min-height: 0;
}
.adminTabs {
	grid-column: 1; grid-row: 1 / span 40;
	display: flex; flex-direction: column; flex-wrap: nowrap; gap: 4px;
	margin: 0; padding: 14px 12px 20px;
	border: 0; border-right: 1px solid rgba(120, 190, 255, 0.14);
	background: #0b0f1b;
	height: 100%; box-sizing: border-box; overflow-y: auto;
}
.adminTabGroup { margin: 14px 10px 4px; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: #5f759b; font-family: 'Hammersmith One', sans-serif; }
.adminTabGroup:first-child { margin-top: 2px; }
.adminTab {
	display: flex; align-items: center; gap: 12px;
	width: 100%; padding: 11px 14px; text-align: left;
	background: transparent; color: #a9bbd8; border: 1px solid transparent; border-radius: 9px;
	font-size: 15px; font-weight: 400; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.adminTab i { font-size: 20px; color: #5f8ad6; }
.adminTab:hover { background: rgba(95, 140, 255, 0.12); color: #fff; }
.adminTab.active { background: linear-gradient(90deg, rgba(60, 130, 255, 0.35), rgba(60, 200, 255, 0.14)); color: #fff; border-color: rgba(110, 190, 255, 0.45); box-shadow: inset 3px 0 0 #5fd0ff; }
.adminTab.active i { color: #5fd0ff; }

.adminTabContent {
	grid-column: 2;
	box-sizing: border-box; min-height: 0; max-height: 100%;
	padding: 26px 30px 30px;
	background: #f2f5fb; color: #1d2438;
	overflow-y: auto;
}
.adminTabContent.active { display: block; height: 100%; }
#adminCommandsTab { background: #131828; color: #e8efff; }
#adminCommandsTab h3 { color: #fff; }

.adminSearchBar { margin-bottom: 18px; }
.adminSearchBar input { padding: 14px 18px; border: 2px solid #d5dcec; border-radius: 10px; background: #fff; font-size: 16px; }
.adminSearchBar input:focus { border-color: #3c82ff; box-shadow: 0 0 0 3px rgba(60, 130, 255, 0.22); }
.adminList { max-height: none; }
.adminList::-webkit-scrollbar-thumb, .adminTabContent::-webkit-scrollbar-thumb { background: #3c82ff; border-radius: 4px; }
.adminList::-webkit-scrollbar-thumb:hover { background: #2a68d6; }
.adminTabContent::-webkit-scrollbar { width: 8px; }
.adminTabContent::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.05); }
.adminTabs::-webkit-scrollbar { width: 6px; }
.adminTabs::-webkit-scrollbar-thumb { background: #243256; border-radius: 3px; }

.adminPlayerItem { background: #fff; border: 1px solid #dfe6f4; border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(20, 40, 90, 0.06); }
.adminPlayerItem:hover { border-color: #3c82ff; box-shadow: 0 4px 14px rgba(60, 130, 255, 0.16); }
.adminPlayerName { color: #1d2438; }
.adminActionBtn { padding: 7px 14px; border-radius: 7px; }

@media (max-width: 860px) {
	#adminPanelBody { grid-template-columns: 1fr; }
	.adminTabs { grid-column: 1; grid-row: 1; flex-direction: row; overflow-x: auto; height: auto; border-right: 0; border-bottom: 1px solid rgba(120, 190, 255, 0.14); }
	.adminTabGroup { display: none; }
	.adminTab { width: auto; flex: 0 0 auto; }
	.adminTab span { display: none; }
	.adminTabContent { grid-column: 1; grid-row: 2; padding: 16px; }
}


/* ===== Performance warning: red ! on the Settings button + warning box inside Settings ===== */
#perfWarnBadge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    background: #e03a3a;
    color: #fff;
    font-family: 'Hammersmith One', sans-serif;
    font-size: 16px;
    line-height: 22px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    animation: perfWarnPulse 1.4s ease-in-out infinite;
}

@keyframes perfWarnPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}

#perfWarnBox {
    background: rgba(224, 58, 58, 0.14);
    border: 2px solid #e03a3a;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-family: 'Hammersmith One', sans-serif;
    color: #292929;
}

.perfWarnTitle {
    font-size: 18px;
    color: #c42b2b;
    margin-bottom: 6px;
}

.perfWarnTitle .material-icons {
    vertical-align: middle;
    font-size: 22px;
}

.perfWarnText {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.perfWarnButtons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.perfWarnBtn {
    font-family: 'Hammersmith One', sans-serif;
    font-size: 14px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #d6d6d6;
    color: #292929;
}

.perfWarnBtn:hover { background: #c4c4c4; }

.perfWarnGo { background: #7ee559; color: #fff; }
.perfWarnGo:hover { background: #6cd048; }

.perfWarnFlash {
    animation: perfWarnFlash 2s ease-out 1;
}

@keyframes perfWarnFlash {
    0%, 40% { background: rgba(224, 58, 58, 0.25); }
    100% { background: transparent; }
}

/* ===== Graphics mode buttons (Settings > Display settings) ===== */
.gfxIntro { font-family: 'Hammersmith One', sans-serif; font-size: 13px; color: #555; margin: 2px 0 10px; line-height: 1.35; }
.gfxModeGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gfxMode { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border: 2px solid #c9c9c9; border-radius: 6px; background: #f4f4f4; cursor: pointer; font-family: 'Hammersmith One', sans-serif; color: #292929; }
.gfxMode b { font-size: 15px; font-weight: normal; }
.gfxMode span { font-size: 11px; color: #777; text-align: center; }
.gfxMode:hover { background: #e9f5e1; }
.gfxMode.active { background: #dff2cf; border-color: #7ec850; }
.perfWarnRec { font-weight: bold; color: #292929; }
.perfWarnSwitch { background: #7ec850; color: #fff; }

/* ===== Admin panel: always scrollable (sidebar + every tab) ===== */
#adminPanelContent { display: flex; flex-direction: column; overflow: hidden; }
#adminPanelBody {
	display: flex; flex-direction: row; align-items: stretch;
	flex: 1 1 auto; min-height: 0; overflow: hidden;
}
#adminPanelBody .adminTabs { flex: 0 0 230px; width: 230px; height: auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#adminPanelBody .adminTabContent {
	flex: 1 1 auto; min-width: 0; min-height: 0; height: auto; max-height: none;
	overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
#adminPanelBody .adminTabContent.active { display: block; height: auto; }
@media (max-width: 860px) {
	#adminPanelBody { flex-direction: column; }
	#adminPanelBody .adminTabs { flex: 0 0 auto; width: auto; overflow-x: auto; overflow-y: hidden; }
}

/* IN-GAME LEADERBOARD: title centred, one line per player (long names end in "..."), score on the right */
#leaderboard { text-align: center; }
#leaderboardData { text-align: left; }
#leaderboardData .leaderHolder { display: flex; align-items: center; gap: 10px; }
#leaderboardData .leaderboardItem { float: none; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#leaderboardData .leaderScore { float: none; flex: 0 0 auto; margin-left: 0; }
#leaderboardData > div > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* CONTROLS card: hidden, slides out (pushing the other cards) with the "How to play" button under the skin tones */
.simpleMenuBox.simpleMenuHowTo {
	max-width: 0; padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0;
	opacity: 0; overflow: hidden; white-space: nowrap;
	transition: max-width .35s ease, padding .35s ease, margin .35s ease, opacity .25s ease;
}
.simpleMenuBox.simpleMenuHowTo.open {
	max-width: 240px; padding-left: 14px; padding-right: 14px; margin-left: 6px; margin-right: 6px; opacity: 1;
}
.simpleMenuHowTo .howToContent p { white-space: normal; }
.howToPlayBtn {
	margin-top: 10px; padding: 8px; border-radius: 4px; text-align: center; cursor: pointer; user-select: none;
	background: #7ee559; color: #fff; font-size: 16px; font-family: 'Hammersmith One', sans-serif;
}
.howToPlayBtn:hover { filter: brightness(1.08); }
.howToPlayBtn.open { background: #5fb83a; }

/* MY STATS on the main menu: the white / green menu cards (in game it keeps the see-through team-menu look) */
#accountStatsModal.menuStyle { background: transparent; }
#accountStatsModal.menuStyle #accountStatsContent { background: rgba(255, 255, 255, 0.97); color: #4a4a4a; border-radius: 6px; box-shadow: 0 2px 12px rgba(0,0,0,0.3); padding: 14px; }
#accountStatsModal.menuStyle .statsTitle, #accountStatsModal.menuStyle .statsTitle .material-icons { color: #4a4a4a; }
#accountStatsModal.menuStyle .statsTitle .material-icons { color: #7ee559; }
#accountStatsModal.menuStyle .statsCloseIcon { color: #888; }
#accountStatsModal.menuStyle .statsSection { background: #f0f0f0; }
#accountStatsModal.menuStyle .statsSection h3 { color: #4fa82e; border-bottom-color: #dcdcdc; }
#accountStatsModal.menuStyle .statLabel { color: #8a8a8a; }
#accountStatsModal.menuStyle .statValue { color: #4a4a4a; }

/* ONE BUTTON OPENS, THE SAME BUTTON CLOSES: in game the dark backdrop of Settings / Daily Quests no longer swallows clicks,
   and the window starts below the top button row, so the buttons (shop, clan, settings, quests, texture packs, report) stay clickable */
#keybindModal, #dailyQuestModal { pointer-events: none; }
#keybindModalContent, #dailyQuestModalContent { pointer-events: auto; }
body.oomInGame #keybindModal, body.oomInGame #dailyQuestModal { align-items: flex-start !important; padding-top: 84px; box-sizing: border-box; }
body.oomInGame #keybindModalContent, body.oomInGame #dailyQuestModalContent { max-height: calc(100vh - 100px); }
