@font-face {
	font-family: 'Gambler';
	src: url('/static/fonts/GamblerFlrBold.woff2?v=910aef1') format('woff2');
	font-weight: bold;
	font-style: normal;
}

@font-face {
	font-family: 'Friz Quadrata';
	src: url('/static/fonts/frizqt__.woff2?v=d0e1e61') format('woff2');
	font-weight: normal;
	font-style: normal;
}

:root {
	--base-background-color: #24221e;
	--text-color-normal: #c0aa87;
	--text-color-link: #ffffff;
	--text-color-header: #ffffff;
	--top-gutter-height: 89px;
	--nav-bar-height: 70px;
	--mobile-user-bar-height: 50px;
	--mobile-login-bar-height: 38px;

	--font-navigation: Gambler;
	--font-general: Friz Quadrata;

	--border-image-source: url('/static/images/interface/ui-diamonddialogbox-border-2x.webp?v=cb5a1b4');
	--border-image-slice: 47;
	--border-image-width: 37px;

	--border-color-icon: #909090;

	/* shared UI colors */
	--bg-primary: #24221e;
	--bg-secondary: rgba(0, 0, 0, 0.3);
	--bg-tertiary: rgba(0, 0, 0, 0.4);
	--bg-highlight: rgba(85, 57, 35, 0.3);
	--bg-hover: rgba(255, 255, 255, 0.05);
	--border-color: rgba(85, 57, 35, 0.5);
	--border-hover: rgba(85, 57, 35, 0.8);
	--text-color: var(--text-color-normal);
	--text-muted: #888;
	--primary-color: #4fc3f7;
	--primary-hover: #81d4fa;
	--link-color: #4fc3f7;
	--error-color: #e74c3c;
	--success-color: #2ecc71;
}

* {
	margin: 0;
	padding: 0;
	font-family: var(--font-general);
	resize: none;
}

[v-cloak] {
	display: none !important;
}

*:focus {
	outline: 0;
}

/* Custom scrollbar styling */
::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: #553923;
	border-radius: 4px;
}

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

/* Firefox scrollbar */
* {
	scrollbar-color: #553923 transparent;
}

a {
	text-decoration: none;
	color: var(--text-color-normal);
	transition: color 0.2s;
}

a:hover {
	color: var(--text-color-link);
}

select {
	appearance: none;
	padding: 0.4rem 2rem 0.4rem 0.6rem;
	background-color: var(--bg-secondary);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c0aa87' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	color: var(--text-color-normal);
	font-size: 0.85rem;
	cursor: pointer;
}

select option {
	background: var(--bg-primary);
	color: var(--text-color-normal);
}

html {
	font-size: 100%;
}

h1 {
	color: var(--text-color-header);
	margin-bottom: 20px;
}

h2 {
	color: var(--text-color-header);
	margin-bottom: 10px;
}

h3 {
	color: var(--text-color-header);
}

.spaced-content {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.text-center {
	text-align: center;
}

hr {
	border: none;
	height: 2px;
	background: linear-gradient(to right, transparent, #553923, transparent);
	margin: 20px 0;
}

body {
	background-color: var(--base-background-color);
	font-family: Helvetica;
	font-size: clamp(0.875rem, 0.875rem + 0.25vw, 1.125rem);
	text-shadow: 0 -1px #000;
	background-image:
		url(/static/images/interface/lightstone.webp?v=28b2b27),
		url(/static/images/interface/darkstone.webp?v=806b429);
	background-repeat: repeat-x, repeat;
	background-position: center var(--top-gutter-height), top left;
	color: var(--text-color-normal);
}

#hero-background {
	--fade-bottom: 70%;
	--fade-horizontal: 80%;
	filter: blur(2px);

	position: absolute;
	top: var(--top-gutter-height);
	left: 50%;
	transform: translateX(-50%);
	-webkit-mask-image:
	linear-gradient(to bottom, black var(--fade-bottom), transparent),
	linear-gradient(to right, transparent, black calc(100% - var(--fade-horizontal)), black var(--fade-horizontal), transparent);
	mask-image:
	linear-gradient(to bottom, black var(--fade-bottom), transparent),
	linear-gradient(to right, transparent, black calc(100% - var(--fade-horizontal)), black var(--fade-horizontal), transparent);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
	background-repeat: no-repeat;
	background-size: contain;
	width: 100%;
	max-width: 1920px;
	aspect-ratio: 1920 / 736;
	z-index: -1;
}

/* Version Bar */
#version-bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 34px;
	z-index: 21;
}

#version-bar-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	height: 100%;
}

#version-bar-toggle {
	display: none;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 6px 14px;
	background: transparent;
	border: none;
	color: var(--text-color-link);
	font-size: 0.8rem;
	font-weight: 500;
	cursor: pointer;
}

.version-bar-chevron {
	margin-left: auto;
	transition: transform 0.2s;
}

#version-bar.expanded .version-bar-chevron {
	transform: rotate(180deg);
}

.version-bar-item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px 4px;
	font-size: 0.8rem;
	color: #888;
	transition: color 0.2s, background 0.2s;
	white-space: nowrap;
	height: 100%;
	box-sizing: border-box;
}

.version-bar-item:hover {
	color: var(--text-color-normal);
}

.version-bar-item.active {
	color: var(--text-color-link);
}

.version-bar-icon {
	width: 20px;
	height: 20px;
	border-radius: 3px;
}

.content-container {
	max-width: 1335px;
	margin: 80px auto 0;
	padding: 30px;
	background: rgb(0 0 0 / 80%);
	position: relative;
	border: 1px solid #ab7b56;
	box-shadow: 0 0 20px black;
	border-radius: 10px;
}

#app {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

#page-container {
	margin-top: calc(var(--top-gutter-height) + 2px);
	width: 100%;
	flex: 1 0 auto;
	min-height: 0;
}

.dialog-border {
	position: relative;
}

.dialog-border::before {
	content: '';
	position: absolute;
	inset: calc(var(--border-image-width) / -2.5);
	border-style: solid;
	border-width: var(--border-image-width);
	border-image-source: var(--border-image-source);
	border-image-slice: var(--border-image-slice) fill;
	border-image-width: var(--border-image-width);
	border-image-repeat: stretch;
	pointer-events: none;
}

#nav-bar {
	font-family: var(--font-navigation);
	font-size: 1.2rem;
	color: var(--text-color-link);
	top: calc(var(--top-gutter-height) / 2);
	position: absolute;
	height: var(--nav-bar-height);
	width: 90%;
	max-width: 1920px;
	left: 50%;
	transform: translateX(-50%);
	background-image:
		url(/static/images/interface/nav-fade-left.webp?v=0f0c677),
		url(/static/images/interface/nav-fade-right.webp?v=4b57273),
		url(/static/images/interface/nav-middle.webp?v=561b867);
	background-repeat: no-repeat, no-repeat, repeat-x;
	background-position: left center, right 0px, center 0px;
	background-size: auto 100%, auto 100%, auto 100%;
	z-index: 21;
}

#nav-bar-shroud {
	position: absolute;
	left: -35px;
	top: -20px;
	pointer-events: none;
}

#nav-bar-logo {
	display: inline-block;
	line-height: 0;
	position: absolute;
	top: 50%;
	left: 15px;
	transform: translateY(-50%);
}

#nav-bar-logo img {
	height: 100px;
	width: auto;
	filter: drop-shadow(0 0 20px black);
}

#nav-bar-user {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 15px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
	gap: 1px;
	padding-right: 93px;
}

#nav-bar-user-name {
	white-space: nowrap;
}

#nav-bar-user-name a {
	color: var(--text-color-link);
}

#nav-bar-buttons {
	display: flex;
	gap: 15px;
}

#nav-bar-acp,
#nav-bar-settings,
#nav-bar-logout {
	font-size: 0.9rem;
	white-space: nowrap;
	color: var(--text-color-normal);
	display: flex;
	align-items: center;
	gap: 5px;
}

#nav-bar-acp::before,
#nav-bar-settings::before,
#nav-bar-logout::before {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

#nav-bar-acp::before {
	background-image: url(/static/images/interface/nav-button-acp.webp?v=52ddfd0);
}

#nav-bar-settings::before {
	background-image: url(/static/images/interface/nav-button-cog.webp?v=374b04d);
}

#nav-bar-logout::before {
	background-image: url(/static/images/interface/nav-button-logout.webp?v=61ceff0);
}

#nav-bar-acp:hover,
#nav-bar-settings:hover,
#nav-bar-logout:hover {
	color: var(--text-color-link);
}

#nav-bar-user-menu {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	margin-left: auto;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--text-color-normal);
}

#nav-bar-user-menu:hover {
	color: var(--text-color-link);
}

#nav-bar-user-avatar {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	display: block;
	width: 75px;
	height: 75px;
	background-image: url(/static/images/interface/default_avatar.webp?v=ed35d9e);
	background-repeat: no-repeat;
	background-position: -10px -1px;
	background-size: 110%;
	border-radius: 50%;
	border: 2px solid black;
	box-shadow: black 0 0 20px;
}

#nav-bar-user-avatar::before {
	content: '';
	position: absolute;
	height: 90px;
	width: 90px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-image: url(/static/images/interface/ui-hud-unitframe-target-portraiton-boss-rare-silver-2x.webp?v=746cd48);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

#nav-bar-wcdb-logo {
	display: inline-block;
	line-height: 0;
	position: absolute;
	top: 50%;
	left: 123px;
	transform: translateY(-50%);
}

#nav-bar-wcdb-logo img {
	height: 50px;
	width: auto;
	filter: drop-shadow(0 0 20px black);
}

[data-icon] {
	background-size: 110%;
	background-position: center;
	background-repeat: no-repeat;
}

[data-icon] {
	border: 1px solid var(--border-color-icon);
}

/* Navigation Stack (search + cat-nav) */
#nav-stack {
	position: absolute;
	left: 50%;
	top: calc(var(--top-gutter-height) / 2 + var(--nav-bar-height));
	transform: translateX(-50%);
	z-index: 22;
}

#nav-search-container {
	position: absolute;
	left: 50%;
	top: calc(var(--nav-bar-height) / -2);
	transform: translate(-50%, -50%);
	z-index: 1;
	width: 600px;
}

#nav-search {
	background: rgba(0, 0, 0, 0.8);
	background-image: url(/static/images/interface/crosshair_inspect_64.webp?v=6b55f6f);
	background-repeat: no-repeat;
	background-position: 10px center;
	background-size: 20px;
	padding: 8px 12px 8px 38px;
	box-sizing: border-box;
	border-radius: 4px;
	border: 1px solid #553923;
}

#nav-search input[type="text"] {
	font-size: 1rem;
	background: transparent;
	border: 0;
	color: white;
	width: 100%;
	padding-bottom: 4px;
}

#nav-search input[type="text"]::placeholder {
	color: var(--text-color-normal);
	opacity: 0.7;
}

#search-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: rgba(20, 18, 15, 0.97);
	border: 1px solid #553923;
	border-top: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	z-index: 100;
	max-height: 400px;
	overflow-y: auto;
}

.search-loading {
	padding: 10px 12px;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.search-result {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	color: var(--text-color-normal);
	font-size: 1rem;
	transition: background 0.1s;
	cursor: pointer;
}

.search-result:hover,
.search-result.active {
	background: rgba(85, 57, 35, 0.4);
	color: var(--text-color-link);
}

.search-result-icon {
	width: 24px;
	height: 24px;
	min-width: 24px;
	border-radius: 3px;
	border: 1px solid var(--border-color-icon);
	background-image: url('/static/images/interface/placeholder.webp?v=25f7cad');
	background-size: 110%;
	background-position: center;
	background-repeat: no-repeat;
}

.search-result-name {
	flex: 0 1 auto;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.search-result-type {
	font-size: 0.8rem;
	color: var(--text-muted);
	white-space: nowrap;
	margin-left: auto;
}

.search-seasonal-tag {
	flex-shrink: 0;
	padding: 0 5px;
	font-size: 0.7rem;
	line-height: 1.5;
	color: #1eff00;
	border: 1px solid #1eff00;
	border-radius: 4px;
}

.search-name-wrap .search-seasonal-tag {
	margin-left: 6px;
	vertical-align: middle;
}

#footer {
	margin-top: 60px;
	height: 160px;
	background: rgba(0, 0, 0, 0.8);
	position: relative;
	border-top: 1px solid #ab7b56;
	color: #fff;
}

#footer-container {
	max-width: 1335px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
}

#footer-left {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}

#footer-logo {
	width: 110px;
}

#footer-logo svg {
	width: 100%;
	height: auto;
	filter: brightness(0) saturate(100%) invert(72%) sepia(15%) saturate(615%) hue-rotate(357deg) brightness(91%) contrast(87%);
}

#footer-copyright {
	font-size: 0.875rem;
	line-height: 1.4;
	text-align: center;
}

#footer-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	height: 100%;
	gap: 15px;
}

#footer-links {
	display: flex;
	gap: 30px;
}

#footer-communities {
	display: flex;
	gap: 25px;
	align-items: center;
}

#footer-communities > a {
	display: block;
	width: 140px;
}

#footer-communities > a img {
	width: 100%;
	height: auto;
	filter: none;
}

#footer-communities > a:hover img {
	filter: brightness(0) saturate(100%) invert(72%) sepia(15%) saturate(615%) hue-rotate(357deg) brightness(91%) contrast(87%);
}

.content-section {
	margin-bottom: 30px;
	padding: 20px;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid #553923;
}

.content-section h2 {
	margin: 0 0 15px 0;
	font-size: 1.2rem;
	color: var(--text-color-normal);
}

.content-section-description {
	color: #888;
	font-size: 0.9rem;
}

/* Category Navigation Bar */
#cat-nav {
	position: relative;
	font-family: var(--font-general);
	font-size: 0.95rem;
}

#cat-nav-explore {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 24px;
	background: rgba(0, 0, 0, 0.7);
	border: none;
	border-bottom: 1px solid #553923;
	color: var(--text-color-normal);
	font-family: var(--font-general);
	font-size: 0.95rem;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 8px 100%);
}

#cat-nav-explore::before {
	content: '';
	width: 20px;
	height: 20px;
	background-image: url(/static/images/interface/crosshair_inspect_64.webp?v=6b55f6f);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

#cat-nav-explore:hover {
	background: rgba(85, 57, 35, 0.5);
	color: var(--text-color-link);
}

#cat-nav-items {
	list-style: none;
	display: inline-flex;
	justify-content: center;
	gap: 2px;
	padding: 0 20px;
	position: relative;
	isolation: isolate;
}

#cat-nav-items::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	border-bottom: 1px solid #553923;
	clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 8px 100%);
	z-index: -1;
	pointer-events: none;
}

#cat-nav-items > li {
	position: relative;
}

#cat-nav-items > li > a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	color: var(--text-color-normal);
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}

#cat-nav-items > li:hover > a,
#cat-nav-items > li.active > a {
	background: rgba(85, 57, 35, 0.5);
	color: var(--text-color-link);
}

.cat-nav-icon {
	display: inline-block;
	width: 18px;
	height: 18px;
	border-radius: 3px;
	object-fit: cover;
	vertical-align: middle;
	flex-shrink: 0;
}

span.cat-nav-icon {
	background: var(--nav-atlas) calc(var(--nav-idx) * -18px) 0 / calc(var(--nav-atlas-count) * 18px) 18px no-repeat;
}

/* Cat-Nav Dropdowns */
.cat-nav-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 180px;
	background: rgba(20, 18, 15, 0.97);
	border: 1px solid #553923;
	border-top: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	z-index: 100;
}

.cat-nav-dropdown ul {
	list-style: none;
}

.cat-nav-dropdown li {
	position: relative;
}

.cat-nav-dropdown a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	color: var(--text-color-normal);
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}

.cat-nav-dropdown a:hover {
	background: rgba(85, 57, 35, 0.4);
	color: var(--text-color-link);
}

#cat-nav-items > li:hover > .cat-nav-dropdown {
	display: block;
}

.cat-nav-dropdown li:hover > .cat-nav-submenu {
	display: block;
}

/* Shared Dropdown Styles */
.nav-dropdown {
	position: absolute;
	top: 100%;
	min-width: 180px;
	background: rgba(20, 18, 15, 0.97);
	border: 1px solid #553923;
	border-top: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.nav-dropdown ul {
	list-style: none;
}

.nav-dropdown li {
	position: relative;
}

.nav-dropdown a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	color: var(--text-color-normal);
	transition: background 0.15s, color 0.15s;
}

.nav-dropdown a:hover {
	background: rgba(85, 57, 35, 0.4);
	color: var(--text-color-link);
}

.cat-nav-arrow {
	margin-left: auto;
	opacity: 0.6;
	font-size: 1.1em;
}

/* Submenus */
.cat-nav-submenu {
	display: none;
	position: absolute;
	top: 0;
	left: calc(100% - 2px);
	min-width: 160px;
	background: rgba(20, 18, 15, 0.97);
	border: 1px solid #553923;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	padding-left: 2px;
}

.cat-nav-submenu ul {
	list-style: none;
}

.cat-nav-submenu li {
	position: relative;
}

.cat-nav-submenu a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	color: var(--text-color-normal);
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}

.cat-nav-submenu a:hover {
	background: rgba(85, 57, 35, 0.4);
	color: var(--text-color-link);
}

.cat-nav-submenu li:hover > .cat-nav-submenu {
	display: block;
}

/* Mobile Menu */
#cat-nav-mobile {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 13, 10, 0.98);
	z-index: 1000;
	display: flex;
	flex-direction: column;
	padding: 15px;
}

#cat-nav-mobile-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0 15px;
	border-bottom: 1px solid #553923;
	margin-bottom: 10px;
	font-family: var(--font-navigation);
	font-size: 1.2rem;
	color: var(--text-color-link);
}

.cat-nav-mobile-back,
.cat-nav-mobile-close {
	background: none;
	border: 1px solid #553923;
	color: var(--text-color-normal);
	padding: 8px 14px;
	font-family: var(--font-general);
	font-size: 0.9rem;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.cat-nav-mobile-back:hover,
.cat-nav-mobile-close:hover {
	background: rgba(85, 57, 35, 0.4);
	color: var(--text-color-link);
}

.cat-nav-mobile-back {
	visibility: visible;
}

#cat-nav-mobile-header > span {
	flex: 1;
	text-align: center;
}

#cat-nav-mobile-items {
	list-style: none;
	overflow-y: auto;
	flex: 1;
}

#cat-nav-mobile-items li {
	border-bottom: 1px solid rgba(85, 57, 35, 0.3);
}

#cat-nav-mobile-items a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 10px;
	color: var(--text-color-normal);
	font-size: 1rem;
	transition: background 0.15s, color 0.15s;
}

#cat-nav-mobile-items a:hover {
	background: rgba(85, 57, 35, 0.3);
	color: var(--text-color-link);
}

#cat-nav-mobile-items .cat-nav-icon {
	width: 24px;
	height: 24px;
}

#cat-nav-mobile-items span.cat-nav-icon {
	background-size: calc(var(--nav-atlas-count) * 24px) 24px;
	background-position: calc(var(--nav-idx) * -24px) 0;
}

#cat-nav-mobile-items .cat-nav-arrow {
	font-size: 1.3em;
}

.cat-nav-mobile-spacer {
	width: 70px;
}

.cat-nav-mobile-parent {
	background: rgba(85, 57, 35, 0.2);
}

.cat-nav-mobile-parent a {
	color: var(--text-color-link) !important;
}

#page-container {
	margin-top: calc(var(--top-gutter-height) + 30px);
}

/* Tablet breakpoint - stack search bar above cat-nav */
@media (max-width: 1550px) {
	#nav-stack {
		top: calc(var(--top-gutter-height) / 2 + var(--nav-bar-height));
		display: flex;
		flex-direction: column;
		width: fit-content;
		z-index: 20;
	}

	#nav-search-container {
		position: relative;
		left: auto;
		top: auto;
		transform: none;
		width: auto;
		padding: 10px 20px;
		background: rgba(0, 0, 0, 0.7);
		border-bottom: 1px solid #553923;
		box-sizing: border-box;
	}

	#nav-search {
		width: 100%;
	}

	#page-container {
		margin-top: calc(var(--top-gutter-height) + 160px);
	}
}

/* Tablet breakpoint - content container and footer padding */
@media (max-width: 1260px) {
	.content-container {
		margin-left: 20px;
		margin-right: 20px;
		margin-top: 0;
	}
}

/* Tablet breakpoint - footer padding */
@media (max-width: 1350px) {
	#footer-container {
		padding: 0 30px;
	}
}

/* Mobile breakpoint - hide desktop dropdown, show mobile button */
@media (max-width: 900px) {
	#version-bar {
		position: relative;
		height: auto;
		background: black;
	}

	#version-bar.expanded {
		z-index: 100;
	}

	#version-bar-toggle {
		display: flex;
	}

	#version-bar-inner {
		display: none;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		height: auto;
		padding: 0 8px 8px;
		background: black;
		box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
	}

	#version-bar.expanded #version-bar-inner {
		display: flex;
	}

	.version-bar-item {
		height: auto;
		padding: 8px 10px;
		border-radius: 4px;
		border-bottom: none;
	}

	.version-bar-item:hover {
		background: rgba(255, 255, 255, 0.05);
	}

	.version-bar-item.active {
		background: rgba(255, 255, 255, 0.08);
		border-bottom: none;
	}

	#cat-nav-items {
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	#cat-nav-items::-webkit-scrollbar {
		display: none;
	}

	.cat-nav-dropdown {
		display: none !important;
	}

	#nav-stack {
		top: calc(var(--top-gutter-height) / 2 + var(--nav-bar-height) + var(--mobile-user-bar-height));
	}

	#page-container {
		margin-top: calc(var(--top-gutter-height) + 160px + var(--mobile-user-bar-height));
	}

	#nav-bar-user {
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		gap: 10px;
		top: 100%;
		bottom: auto;
		left: 0;
		right: 0;
		height: var(--mobile-user-bar-height);
		padding: 0 15px;
		box-sizing: border-box;
		background: rgba(0, 0, 0, 0.7);
		border-bottom: 1px solid #553923;
	}

	#nav-bar-user-name {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	#nav-bar-user-avatar {
		order: -1;
		position: static;
		flex: 0 0 auto;
		width: 38px;
		height: 38px;
		transform: none;
	}

	#nav-bar-user-avatar::before {
		display: none;
	}

	#nav-bar-buttons {
		margin-left: auto;
		gap: 10px;
	}

	/* compact: hide buttons but keep them measurable for the fit check, show hamburger */
	#nav-bar-user.user-bar-compact #nav-bar-buttons {
		position: absolute;
		visibility: hidden;
		pointer-events: none;
	}

	#nav-bar-user.user-bar-compact #nav-bar-user-menu {
		display: flex;
	}

	#nav-bar-user.logged-out {
		justify-content: center;
		height: var(--mobile-login-bar-height);
	}

	#nav-bar-user.logged-out #nav-bar-user-avatar {
		display: none;
	}

	/* keep oversized logo painting above the stacked login bar */
	#nav-bar-logo {
		z-index: 1;
	}

	#nav-bar-logo img {
		height: 80px;
	}

	#nav-bar-login {
		display: inline-flex;
		align-items: center;
		gap: 8px;
	}

	#nav-bar-login::before {
		content: '';
		width: 18px;
		height: 18px;
		background-image: url(/static/images/interface/nav-button-logout.webp?v=61ceff0);
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center;
	}

	/* shorter reserved space when the login bar replaces the user bar */
	#nav-bar:has(#nav-bar-user.logged-out) ~ #nav-stack {
		top: calc(var(--top-gutter-height) / 2 + var(--nav-bar-height) + var(--mobile-login-bar-height));
	}

	#nav-bar:has(#nav-bar-user.logged-out) ~ #page-container {
		margin-top: calc(var(--top-gutter-height) + 160px + var(--mobile-login-bar-height));
	}

	#footer {
		height: auto;
		padding: 30px 0;
	}

	#footer-container {
		flex-direction: column;
		gap: 25px;
		padding: 0 30px;
	}

	#footer-left {
		order: 2;
	}

	#footer-right {
		order: 1;
		align-items: center;
	}

	#footer-communities {
		flex-wrap: wrap;
		justify-content: center;
		gap: 15px 25px;
	}

	#footer-communities > a {
		width: 110px;
	}

	#footer-links {
		justify-content: center;
	}
}

/* Compact mobile breakpoint - single explore button */
@media (max-width: 700px) {
	#nav-stack {
		width: 90%;
	}

	#nav-search-container {
		width: 100%;
	}

	#cat-nav-items {
		display: none;
	}

	#cat-nav-explore {
		display: flex;
		width: 100%;
	}
}

