.langSelect {
	height: 36px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--card);
	color: var(--text);
	border: 1px solid var(--border);
	font-size: 14px;
	cursor: pointer;
	outline: none;
	transition: .2s;
}

.langSelect:hover {
	border-color: var(--green);
}

:root {
	--bg: #eee;
	--card: #fff;
	--text: #111;
	--sub: #666;
	--green: #0a0;
	--grad: #0a0;
	--active: #0a0;
	--border: #ccc;
	font-size: 18px;
}

body.dark {
	--bg: #111;
	--card: #222;
	--text: #eee;
	--sub: #aaa;
	--border: #3a3a3a;
	--green: #3d8c40;
	--grad: #3d8c40;
	--active: #3d8c40;
	--lottery-bg: #3a3020;
	--lottery-btn-bg: #2a2518;
	--lottery-btn-text: #d4a017;
}

:root {
	--lottery-bg: linear-gradient(135deg, #ffd700, #ff8c00);
	--lottery-btn-bg: #fff;
	--lottery-btn-text: #ff8c00;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	overflow-x: hidden;
}

body::-webkit-scrollbar {
	width: 10px;
}

body::-webkit-scrollbar-thumb {
	background-color: #ccc;
	border-radius: 5px;
}

body.dark::-webkit-scrollbar-thumb {
	background-color: #333;
}

button {
	border: 0;
	padding: 0 12px;
	border-radius: 20px;
	cursor: pointer;
	background: var(--card);
	color: var(--text);
	transition: .2s;
	box-sizing: border-box;
	height: 42px;
	font-size: 18px;
	user-select: none;
}

button:hover {
	background: var(--grad);
	color: #fff;
}

input,
textarea {
	width: 100%;
	padding: 12px;
	margin: 6px 0;
	border-radius: 20px;
	border: 1px solid var(--border);
	background: var(--card);
	color: var(--text);
	box-sizing: border-box;
	height: 42px;
	font-size: 18px;
	overflow: auto;
}

textarea {
	height: 120px;
	resize: none;
}

input:focus,
textarea:focus {
	outline: none;
	border-color: var(--sub);
}

a {
	color: var(--green);
}

.center {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100vh;
}

.card {
	background: var(--card);
	padding: 30px;
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
	width: 340px;
	display: flex;
	flex-direction: column;
}

.big {
	font-size: 36px;
	font-weight: bold;
	margin-bottom: 20px;
	text-align: center;
}

.hidden {
	display: none !important;
}

#main,
#profilePage,
#userListPage {
	margin-top: 0px;
	padding-bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	overflow-x: hidden;
	overflow-y: hidden;
}

#profileCard {
	display: flex;
	gap: 24px;
	background: #e9e9e9;
	padding: 28px 32px;
	border-radius: 24px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .1);
	width: 80%;
	max-width: 700px;
	margin: 70px auto 16px auto;
	box-sizing: border-box;
	align-items: flex-start;
	position: relative;
}

.card-bg-edit-btn {
	position: absolute;
	bottom: 16px;
	right: 16px;
	padding: 6px 14px;
	border-radius: 999px;
	border: none;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 13px;
	cursor: pointer;
	opacity: 0;
	transition: opacity .25s;
	user-select: none;
	z-index: 3;
}

#profileCard:hover .card-bg-edit-btn {
	opacity: 1;
}

#profileLeft {
	position: relative;
}

#profileLeft .avatar-edit-overlay {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: none;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .5);
	color: #fff;
	font-size: 13px;
	cursor: pointer;
	opacity: 0;
	transition: opacity .25s;
	user-select: none;
	z-index: 2;
	pointer-events: none;
}

#profileLeft:hover .avatar-edit-overlay {
	opacity: 1;
	pointer-events: auto;
}

body.dark #profileCard {
	background: var(--card);
}

#profilePage #profileCard.has-card-bg {
	color: #fff;
	overflow: hidden;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}

#profilePage #profileCard.has-card-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 24px;
	background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .45)), var(--card-bg-img) center/cover no-repeat;
	filter: blur(4px);
	transform: scale(1.08);
	pointer-events: none;
	z-index: 0;
}

#profilePage #profileCard.has-card-bg > #profileLeft,
#profilePage #profileCard.has-card-bg > #profileRight {
	position: relative;
	z-index: 1;
}

#profilePage #profileCard.has-card-bg #profileMeta {
	color: rgba(255, 255, 255, .92);
}

#profilePage #profileCard.has-card-bg #profileStats a {
	color: #fff;
}

#profilePage #profileCard.has-card-bg #profileStats a:hover {
	color: var(--green);
}

#profileLeft {
	flex-shrink: 0;
}

#profileLeft .avatar.big {
	width: 108px;
	height: 108px;
	border-width: 3px;
	cursor: zoom-in;
	display: block;
}

#profileRight {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

#profileNameRow {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

#profileNameRow #pname {
	font-size: 28px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

#profileNameRow #logoutBtn {
	margin-left: auto;
	height: 32px;
	padding: 0 14px;
	font-size: 13px;
	border-radius: 999px;
	background: var(--bg);
	color: var(--sub);
	border: none;
	cursor: pointer;
	transition: .2s;
}

#profileNameRow #logoutBtn:hover {
	background: #e74c3c;
	color: #fff;
}

#profileMeta {
	font-size: 14px;
	color: var(--sub);
	line-height: 1.6;
}

#profileMeta .metaRow {
	display: flex;
	align-items: center;
	gap: 6px;
}

#profileBio {
	width: 80%;
	max-width: 700px;
	background: var(--card);
	border-radius: 20px;
	padding: 18px 22px;
	margin: 0 auto 12px auto;
	box-sizing: border-box;
	font-size: 15px;
	color: var(--text);
	word-wrap: break-word;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
	line-height: 1.6;
}

#profileBio .bioEditBtn {
	display: block;
	margin-top: 10px;
	height: 32px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--card);
	color: var(--sub);
	cursor: pointer;
	font-size: 13px;
	transition: .2s;
}

#profileBio .bioEditBtn:hover {
	background: var(--green);
	color: #fff;
	border-color: var(--green);
}

#profileStats {
	display: flex;
	gap: 20px;
	margin-top: 8px;
	font-size: 14px;
}

#profileStats a {
	cursor: pointer;
	color: var(--text);
	text-decoration: none;
	transition: .2s;
}

#profileStats a:hover {
	color: var(--green);
}

#profileStats b {
	font-weight: 700;
}

#profileActions {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-bottom: 20px;
	width: 80%;
	max-width: 700px;
}

#profileActions .profileBtn {
	flex: 1;
	height: 42px;
	padding: 0 20px;
	border-radius: 999px;
	border: none;
	background: var(--card);
	color: var(--text);
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	transition: .2s;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
	user-select: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

#profileActions .profileBtn .pbIcon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

#profileActions .profileBtn:hover {
	background: var(--green);
	color: #fff;
}

#profileActions .profileBtn.following {
	background: var(--green);
	color: #fff;
}

#profileActions .profileBtn.following:hover {
	background: #e74c3c;
}

#profilePage #levelProgress {
	width: 80%;
	max-width: 700px;
	background: var(--card);
	border-radius: 20px;
	padding: 18px 22px;
	margin: 0 auto 12px auto;
	box-sizing: border-box;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

@media (max-width: 600px) {
	.roleBadge {
		width: 12px;
		height: 12px;
		font-size: 8px;
		margin-left: 3px;
	}

	#profileCard {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 24px 20px;
		margin-top: 60px;
	}

	#profileNameRow {
		justify-content: center;
	}

	#profileNameRow #logoutBtn {
		margin-left: 0;
	}

	#profileActions {
		flex-direction: row;
		flex-wrap: wrap;
		width: 92%;
	}

	#profileActions .profileBtn {
		height: 48px;
		flex: 1 1 100%;
	}

	#profileActions .profileBtn.half {
		flex: 1 1 calc(50% - 5px);
	}

	#profileMeta {
		text-align: center;
	}

	#profileMeta .metaRow {
		justify-content: center;
	}

	#profileLeft .avatar.big {
		width: 88px;
		height: 88px;
	}

	#profileStats {
		justify-content: center;
	}

	.modalBox {
		padding: 20px;
	}
}

#userItems {
	width: 100%;
	max-width: 500px;
}

.rankToggleWrap {
	display: flex;
	gap: 6px;
	margin: 8px 0;
	width: 100%;
	max-width: 500px;
}

.rankToggleBtn {
	flex: 1;
	padding: 6px 12px;
	border-radius: 20px;
	border: 1px solid var(--bg);
	background: var(--card);
	color: var(--sub);
	cursor: pointer;
	font-size: 16px;
	text-align: center;
	transition: .2s;
}

.rankToggleBtn.active {
	background: var(--green);
	color: #fff;
	border-color: var(--green);
}

#posts,
#userPosts {
	width: 100%;
	max-width: 800px;
	overflow-y: auto;
	overflow-x: hidden;
	flex: 1 1 0;
	min-height: 0;
	padding-bottom: 10px;
}

#pname {
	font-size: 40px;
}

.post {
	background: var(--card);
	margin: 14px auto;
	padding: 20px;
	border-radius: 20px;
	box-shadow: 0 8px 15px rgba(0, 0, 0, .1);
	width: 80%;
	max-width: 800px;
	word-wrap: break-word;
	font-size: 18px;
	white-space: pre-wrap;
	display: flex;
	flex-direction: column;
}

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

.time {
	font-size: 14px;
	color: var(--sub);
	margin-left: 6px;
}

.postActions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.voteGroup {
	display: flex;
	align-items: center;
	gap: 12px;
}

.like,
.dislike {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	user-select: none;
	color: #888;
	transition: .2s;
}

.voteIcon {
	width: 18px;
	height: 18px;
	fill: currentColor;
	flex: 0 0 auto;
}

.voteNum {
	font-size: 14px;
	line-height: 1;
	vertical-align: middle;
}

.like.liked {
	color: #f66;
	font-weight: 700;
}

.dislike.disliked {
	color: #0055ff;
	font-weight: 700;
}

.like:hover,
.dislike:hover {
	transform: translateY(-1px);
}

.commentRow {
	display: flex;
	margin-top: 5px;
}

.commentRow input {
	flex: 1;
	margin-right: 5px;
	height: 40px;
	margin: 0;
}

.commentRow button {
	margin-left: 5px;
	height: 40px;
}

.deleteBtn {
	margin-left: 15px;
}

.bottom {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	height: 40px;
	margin: 0;
	z-index: 2000;
}

.bottom button {
	flex: 1;
	text-align: center;
	padding: 0px;
	font-size: 18px;
	border-radius: 0;
	border-top: 3px solid transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--sub);
}

.bottom button.active {
	background: var(--card);
	color: var(--green);
	border-top-color: transparent;
}

.bottom button:hover {
	background: var(--card);
	color: var(--green);
}

.navIcon {
	width: 22px;
	height: 22px;
	display: block;
	margin: 0 4px;
	background-color: currentColor;
	opacity: 0.7;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-position: center;
	mask-position: center;
}

.bottom button.active .navIcon {
	opacity: 1;
}

.navIcon[data-icon="home"] {
	-webkit-mask-image: url(icon/home.svg);
	mask-image: url(icon/home.svg);
}

.navIcon[data-icon="editor"] {
	-webkit-mask-image: url(icon/editor.svg);
	mask-image: url(icon/editor.svg);
}

.navIcon[data-icon="rank"] {
	-webkit-mask-image: url(icon/rank.svg);
	mask-image: url(icon/rank.svg);
}

.navIcon[data-icon="discover"] {
	-webkit-mask-image: url(icon/discover.svg);
	mask-image: url(icon/discover.svg);
}

.navIcon[data-icon="user"] {
	-webkit-mask-image: url(icon/user.svg);
	mask-image: url(icon/user.svg);
}

.modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .4);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 100001;
	opacity: 1;
	transition: opacity .2s ease, visibility 0s;
}

.modal.hidden {
	display: flex !important;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease, visibility 0s .2s;
}

.modalBox {
	background: var(--card);
	padding: 30px;
	border-radius: 20px;
	width: 300px;
	max-width: calc(100vw - 40px);
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	text-align: center;
	opacity: 1;
	transform: scale(1);
	transition: opacity .2s ease, transform .2s ease;
}

.modal.hidden .modalBox {
	opacity: 0;
	transform: scale(.94);
}

.userLink {
	cursor: pointer;
	color: var(--green);
}

.rankSearch {
	width: 90%;
	max-width: 500px;
	padding: 10px 14px;
	border-radius: 20px;
	border: 1px solid rgba(0, 0, 0, .15);
	font-size: 15px;
	box-sizing: border-box;
	background: var(--card);
	color: var(--text);
	outline: none;
	margin: 8px 0;
}

.rankSearch:focus {
	border-color: var(--green);
}

.userItem.highlight {
	background: rgba(0, 170, 0, .12);
	outline: 2px solid var(--green);
	border-radius: 12px;
}

.userItem {
	width: 90%;
	max-width: 800px;
	padding: 20px;
	border-bottom: 1px solid #aaa;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-sizing: border-box;
}

.userItem:last-child {
	border-bottom: none;
}

.tagBar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.tag {
	padding: 4px 12px;
	border-radius: 20px;
	background: var(--bg);
	cursor: pointer;
	font-size: 14px;
	border: 1px solid var(--border);
	transition: .2s;
}

.tag:hover {
	background: var(--green);
	color: #fff;
}

.tag.active {
	background: var(--green);
	color: #fff;
	border-color: var(--green);
}

.postBgRow {
	margin-top: 10px;
	margin-bottom: 10px;
}

.postBgRow button {
	width: 100%;
}

.post.custom-bg {
	position: relative;
	overflow: hidden;
	background: none !important;
	z-index: 0;
}

.post.custom-bg::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--custom-bg);
	background-size: cover;
	background-position: center;
	z-index: -1;
	transition: filter 0.3s ease;
}

body.dark .post.custom-bg {}

body.dark .post.custom-bg::before {
	filter: brightness(0.3) saturate(2);
}

.bgPickerGrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 12px;
}

.bgOption {
	border-radius: 12px;
	height: 50px;
	border: 2px solid transparent;
	cursor: pointer;
}

.bgOption.active {
	border-color: var(--green);
	transform: scale(1.05);
}

.postTags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0;
}
.postTag {
	padding: 4px 12px;
	border-radius: 20px;
	background: var(--green);
	color: #eee;
	cursor: pointer;
	font-size: 14px;
	border: none;
}

.postHeaderTop {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0;
	padding: 0;
}

.postHeaderTop .userInfo {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.postHeaderTop .userLink {
	font-weight: bold;
	color: var(--green);
	cursor: pointer;
	margin-bottom: 5px;
}

.postHeaderTop .time {
	font-size: 14px;
	color: var(--sub);
}

.shareBtnWrapper {
	position: relative;
	flex-shrink: 0;
}

.shareBtn {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: none;
	background: var(--bg2);
	color: var(--text);
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: .45;
	transition: opacity .15s;
}

.shareBtn:hover {
	opacity: 1;
}

.sharePopover {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 4px 0;
	z-index: 200;
	min-width: 70px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
	display: none;
	overflow: hidden;
}

.sharePopover.show {
	display: block;
}

.sharePopover button {
	display: block;
	width: 100%;
	padding: 6px 16px;
	border: none;
	background: transparent;
	color: var(--text);
	font-size: 14px;
	cursor: pointer;
	text-align: center;
	white-space: nowrap;
}

.sharePopover button:hover {
	background: var(--bg2);
}

.postContent {
	margin: 4px 0 8px 0;
}

.comment {
	font-size: 16px;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: flex-start;
	column-gap: 6px;
}

.comment+.comment {
	margin-top: 3px;
}

.commentContent {
	flex: 1 1 auto;
	min-width: 0;
	word-break: break-word;
}

.comment b {
	color: var(--green);
}

.comment>button {
	flex-shrink: 0;
}

.commentActions {
	margin-left: auto;
	flex-shrink: 0;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.commentDel {
	font-size: 16px;
	height: auto;
}

::-webkit-scrollbar {
	width: 10px;
	background: transparent;
	border-radius: 10px;
}

::-webkit-scrollbar-thumb {
	background-color: #aaa;
	border-radius: 10px;
	border: 2px solid transparent;
	background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
	background-color: #888;
}

#backBtn,
#postBackBtn {
	position: absolute;
	left: 20px;
	top: 20px;
	background: var(--card);
	color: var(--text);
	border: none;
	padding: 10px 20px;
	border-radius: 20px;
	cursor: pointer;
	transition: 0.2s;
	z-index: 100;
}

#backBtn:hover,
#postBackBtn:hover {
	background: var(--green);
	color: #fff;
}

#newUsers {
	position: absolute;
	right: 40px;
	top: 40px;
	width: 150px;
	background: var(--card);
	padding: 20px;
	border-radius: 20px;
	margin: 0 auto 20px auto;
	box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.newUserItem {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
	cursor: pointer;
}

.newUserItem:last-child {
	border-bottom: none;
}

.newUserItem:hover {
	color: var(--green);
}

#sidePanels {
	display: contents;
}

#sideBackdrop {
	display: none;
}

#notice {
	position: absolute;
	left: 20px;
	top: 20%;
	width: 150px;
	background: var(--card);
	padding: 20px;
	border-radius: 20px;
	box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
	transition: all 0.4s ease;
	z-index: 100;
}

#notice.collapsed {
	left: -150px;
	padding: 20px 10px 20px 40px;
}

.helpBtn {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: none;
	font-size: 14px;
	cursor: pointer;
}

.helpBtn:hover {
	background: #f0f0f0;
}

#coinMsg {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: #0a0;
	color: #fff;
	padding: 10px 20px;
	border-radius: 20px;
	font-weight: bold;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s;
	z-index: 9999;
}

.userLevel {
	font-size: 11px;
	color: #888;
	margin-left: 1px;
}

body.dark .userLevel {
	color: #aaa;
}

.userLevel.lv10 {
	background: linear-gradient(90deg, #e08720, #f5b342, #e08720);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: lvShimmer 4s ease-in-out infinite;
}

.userLevel.lv11 {
	background: linear-gradient(90deg, #4a30a0, #b088ff, #4a30a0);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: lvShimmer 4s ease-in-out infinite;
}

.userLevel.lv12 {
	background: linear-gradient(90deg, #5a0000, #b03a2e, #d4a017, #b03a2e, #5a0000);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: lvShimmer 4s ease-in-out infinite;
}

@keyframes lvShimmer {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

.roleBadge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	padding: 0;
	margin-left: 4px;
	border-radius: 50%;
	font-size: 9px;
	font-weight: 700;
	border: none;
	vertical-align: middle;
	user-select: none;
}

.roleBadge.owner {
	background-color: #d4a017;
	color: #fff;
}

.roleBadge.owner::before {
	content: "V";
	line-height: 1;
}

.roleBadge.admin {
	background-color: #ff8a80;
	color: #fff;
}

.roleBadge.admin::before {
	content: "A";
	line-height: 1;
}

.roleBadge.official {
	background-color: #00aaff;
	color: #fff;
}

.roleBadge.official::before {
	content: "V";
	line-height: 1;
}

.roleBadge.green_v {
	background-color: #4caf50;
	color: #fff;
}

.roleBadge.green_v::before {
	content: "V";
	line-height: 1;
}

.roleBadge.purple_star {
	background-color: #9c27b0;
	color: #fff;
}

.roleBadge.purple_star::before {
	content: "★";
	line-height: 1;
}

.roleBadge.blue_diamond {
	background-color: #2196f3;
	color: #fff;
}

.roleBadge.blue_diamond::before {
	content: "◆";
	line-height: 1;
}

body.dark .roleBadge.owner {
	background-color: #b8941a;
}

body.dark .roleBadge.admin {
	background-color: #d96a60;
}

body.dark .roleBadge.official {
	background-color: #0088cc;
}

body.dark .roleBadge.green_v {
	background-color: #3d8c40;
}

body.dark .roleBadge.purple_star {
	background-color: #7b1fa2;
}

body.dark .roleBadge.blue_diamond {
	background-color: #1976d2;
}

#shopModal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 99999;
}

#shopModal .shopBox {
	background: var(--card);
	border-radius: 24px;
	width: min(600px, 94vw);
	max-height: 86vh;
	overflow-y: auto;
	padding: 30px;
	box-sizing: border-box;
	box-shadow: 0 16px 60px rgba(0, 0, 0, .25);
}

#shopModal h2 {
	margin: 0 0 20px 0;
	font-size: 26px;
}

.shopSection {
	margin-bottom: 24px;
}

.shopSection h3 {
	margin: 0 0 10px 0;
	font-size: 18px;
	color: var(--sub);
}

.shopItem {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border-radius: 16px;
	background: var(--bg);
	margin-bottom: 8px;
}

.shopItem .preview {
	flex-shrink: 0;
}

.shopItem .info {
	flex: 1;
	min-width: 0;
}

.shopItem .info .name {
	font-weight: 700;
	font-size: 16px;
}

.shopItem .info .desc {
	font-size: 13px;
	color: var(--sub);
}

.shopItem .buyBtn {
	flex-shrink: 0;
	height: 36px;
	padding: 0 16px;
	border-radius: 18px;
	border: none;
	font-size: 14px;
	cursor: pointer;
	transition: .2s;
}

.shopItem .buyBtn.owned {
	background: var(--sub);
	color: #fff;
	cursor: default;
}

.shopItem .buyBtn.equipped {
	background: var(--green);
	color: #fff;
}

.shopItem .buyBtn.buy {
	background: var(--green);
	color: #fff;
}

.shopItem .buyBtn.buy:hover {
	opacity: .8;
}

#shopModal .closeRow {
	text-align: right;
	margin-bottom: 6px;
}

#shopModal .closeRow button {
	height: 36px;
	padding: 0 16px;
	border-radius: 18px;
	font-size: 14px;
}

.shopPreviewBadge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 22px;
	min-width: 22px;
	padding: 0 6px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	user-select: none;
}

.lotteryEntry {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border-radius: 16px;
	background: var(--lottery-bg);
	cursor: pointer;
	transition: .2s;
}

.lotteryEntry:hover {
	opacity: .85;
}

.lotteryEntryIcon {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .3);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
}

.lotteryEntryInfo {
	flex: 1;
}

.lotteryEntryTitle {
	font-weight: 700;
	font-size: 16px;
	color: #fff;
}

.lotteryEntryDesc {
	font-size: 13px;
	color: rgba(255, 255, 255, .8);
}

.lotteryEntryBtn {
	flex-shrink: 0;
	height: 36px;
	padding: 0 20px;
	border-radius: 18px;
	border: none;
	background: var(--lottery-btn-bg);
	color: var(--lottery-btn-text);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
}

#giftPicker {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .45);
}

#giftPicker .giftBox {
	background: var(--card);
	border-radius: 24px;
	width: min(400px, 94vw);
	padding: 24px;
	box-sizing: border-box;
	box-shadow: 0 16px 60px rgba(0, 0, 0, .25);
}

#giftPicker h3 {
	margin: 0 0 12px 0;
	font-size: 20px;
}

#giftPicker .giftSearch {
	width: 100%;
	padding: 10px 14px;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, .15);
	font-size: 15px;
	box-sizing: border-box;
	background: var(--card);
	color: var(--text);
	outline: none;
}

#giftPicker .giftSearch:focus {
	border-color: var(--green);
}

#giftPicker .giftUserList {
	max-height: 280px;
	overflow-y: auto;
	margin: 12px 0;
}

#giftPicker .giftUserItem {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 14px;
	cursor: pointer;
	transition: .15s;
}

#giftPicker .giftUserItem:hover,
#giftPicker .giftUserItem.selected {
	background: var(--bg);
}

#giftPicker .giftUserItem .avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
}

#giftPicker .giftUserItem .name {
	font-weight: 600;
	font-size: 15px;
}

#giftPicker .giftActions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

#giftPicker .giftActions button {
	height: 38px;
	padding: 0 20px;
	border-radius: 19px;
	border: none;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

#giftPicker .giftActions .giftCancel {
	background: var(--sub);
	color: #fff;
}

#giftPicker .giftActions .giftConfirm {
	background: var(--green);
	color: #fff;
}

#giftPicker .giftActions .giftConfirm:disabled {
	opacity: .4;
	cursor: default;
}

#lotteryModal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .45);
}

#lotteryModal .lotteryBox {
	background: var(--card);
	border-radius: 24px;
	width: min(420px, 94vw);
	padding: 30px;
	box-sizing: border-box;
	box-shadow: 0 16px 60px rgba(0, 0, 0, .25);
	text-align: center;
	max-height: 90vh;
	overflow-y: auto;
}

@keyframes captchaPulse {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: .4;
	}
}

#captchaTarget {
	animation: captchaPulse 1.2s ease-in-out infinite;
}

@media (max-width:480px) {
	.rankToggleBtn {
		padding: 4px 8px;
		font-size: 14px;
	}

	#lotteryModal .lotteryBox {
		padding: 16px;
	}
}

#lotteryModal h2 {
	margin: 0 0 6px 0;
	font-size: 24px;
}

.lotteryCloseRow {
	text-align: right;
	margin-bottom: 6px;
}

.lotteryCloseRow button {
	height: 36px;
	padding: 0 16px;
	border-radius: 18px;
	font-size: 14px;
}

.wheelArea {
	position: relative;
	width: 100%;
	max-width: 280px;
	aspect-ratio: 1;
	margin: 10px auto 16px;
}

.wheelWrapper {
	position: relative;
	width: 100%;
	height: 100%;
}

.wheelWrapper .pointer {
	position: absolute;
	top: -6px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-top: 16px solid #e74c3c;
	z-index: 10;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3));
}

#wheelCanvas {
	width: 100%;
	height: 100%;
	display: block;
}

.lotteryCoins {
	font-size: 15px;
	color: var(--sub);
	margin-bottom: 14px;
}

.lotteryCoins b {
	color: var(--green);
}

.lotteryBtns {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-bottom: 14px;
}

.lotteryBtn {
	flex: 1;
	height: 42px;
	border-radius: 21px;
	border: none;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: .2s;
}

.lotteryBtn:active {
	transform: scale(.96);
}

#spinOnce {
	background: var(--green);
	color: #fff;
}

#spinOnce:disabled {
	opacity: .4;
	cursor: default;
}

#spinTen {
	background: #ff8c00;
	color: #fff;
}

#spinTen:disabled {
	opacity: .4;
	cursor: default;
}

.lotteryResult {
	min-height: 30px;
}

.singleResult {
	font-size: 18px;
	font-weight: 700;
	color: var(--green);
	padding: 8px;
}

.tenResult {
	text-align: left;
}

.tenTitle {
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 8px;
	color: var(--text);
}

.tenGrid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 6px;
}

.tenItem {
	padding: 8px 4px;
	border-radius: 10px;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
}

.tenTotal {
	margin-top: 8px;
	font-weight: 700;
	font-size: 16px;
	text-align: center;
	color: var(--green);
}

#announceBar {
	position: absolute;
	right: 2%;
	top: 42%;
	width: 10%;
	background: var(--card);
	padding: 20px;
	border-radius: 20px;
	box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
	text-align: left;
	font-size: 14px;
	max-height: 320px;
	overflow-y: auto;
}

#announceBar .annTitle {
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 10px;
	color: var(--green);
}

.annItem {
	padding: 8px 0;
	font-size: 14px;
	cursor: pointer;
	border-bottom: 1px solid rgba(0, 0, 0, .06);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: .15s;
}

.annItem:last-child {
	border-bottom: none;
}

.annItem:hover {
	color: var(--green);
}

#fortuneBox {
	text-align: center;
	position: absolute;
	right: 2%;
	bottom: 40px;
	width: 10%;
	background: var(--card);
	padding: 20px;
	border-radius: 20px;
	margin: 0 auto 20px auto;
	box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

#fortuneBtn {
	font-size: 14px;
}

#fortuneLevel {
	font-size: 25px;
	font-weight: bold;
}

.fortuneList {
	margin: 6px 0;
	font-size: 15px;
}

.pager {
	width: 100%;
	max-width: 800px;
	margin: 6px auto 14px auto;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	padding-bottom: 25px;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.pager::-webkit-scrollbar {
	display: none;
}

.pager .jumpInput,
.pager .jumpGo {
	flex-shrink: 0;
}

.pager .pageBtn,
.pager .navBtn {
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 12px;
	border: 1px solid transparent;
	background: var(--card);
	color: var(--text);
	font-size: 16px;
	cursor: pointer;
	transition: .2s;
}

.pager .pageBtn:hover,
.pager .navBtn:hover {
	border-color: var(--green);
	color: var(--green);
}

.pager .pageBtn.active {
	background: var(--green);
	color: #fff;
	border-color: var(--green);
	font-weight: bold;
}

.pager .pageBtn:disabled,
.pager .navBtn:disabled {
	opacity: .4;
	cursor: not-allowed;
}

.pager .ellipsis {
	padding: 0 4px;
	color: var(--sub);
	user-select: none;
}

.pager .jumpInput {
	width: 56px;
	height: 40px;
	padding: 0 8px;
	border-radius: 12px;
	border: 1px solid transparent;
	background: var(--card);
	color: var(--text);
	font-size: 16px;
	text-align: center;
	outline: none;
	box-sizing: border-box;
}

.pager .jumpInput:focus {
	border-color: var(--green);
}

.pager .jumpGo {
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 12px;
	border: 1px solid transparent;
	background: var(--card);
	color: var(--text);
	font-size: 16px;
	cursor: pointer;
	transition: .2s;
}

.pager .jumpGo:hover {
	background: var(--green);
	color: #fff;
	border-color: var(--green);
}

.zoomable {
	width: 100%;
	border-radius: 10px;
	cursor: zoom-in;
}

#viewer {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .9);
	justify-content: center;
	align-items: center;
	z-index: 99999;
	cursor: zoom-out;
}

#viewer img {
	max-width: 90%;
	max-height: 90%;
}

.loadingMask {
	position: fixed;
	inset: 0;
	background: var(--bg);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	transition: opacity .35s ease;
}

.loadingMask.fadeOut {
	opacity: 0;
	pointer-events: none;
}

.loadingBox {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.loadingLogo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 28px;
	font-weight: bold;
	color: var(--green);
}

.loadingLogo img {
	width: 56px;
	height: 56px;
}

.loadingText {
	font-size: 16px;
	color: var(--sub);
	letter-spacing: 1px;
}

.dot {
	display: inline-block;
	animation: loadingDot 1.2s infinite;
}

.dot1 {
	animation-delay: 0s;
}

.dot2 {
	animation-delay: .2s;
}

.dot3 {
	animation-delay: .4s;
}

.postFilterBar {
	width: 100%;
	max-width: 800px;
	padding: 0 20px 4px 20px;
	box-sizing: border-box;
	margin: 0 auto 2px auto;
}

.postSearch {
	width: 100%;
	margin: 0 0 10px 0;
	height: 42px;
	border-radius: 20px;
	border: 1px solid var(--border);
	padding: 0 14px;
	background: var(--card);
	color: var(--text);
	box-sizing: border-box;
	transition: 0.2s;
}

.postTagBar {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 4px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.postTagBar::-webkit-scrollbar {
	display: none;
}

.postTagChip {
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--card);
	border: 1px solid var(--border);
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
	font-size: 14px;
	transition: .2s;
}

.postTagChip:hover {
	background: var(--green);
	color: #fff;
	border-color: var(--green);
}

.postTagChip.active {
	background: var(--green);
	color: #fff;
	border-color: var(--green);
}

.aiAskChip {
	margin-left: auto;
	flex-shrink: 0;
	position: sticky;
	right: 0;
	padding: 6px 16px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	background: var(--green);
	box-shadow: 0 2px 8px rgba(0, 170, 0, .35);
	box-shadow: 0 2px 8px color-mix(in srgb, var(--green) 35%, transparent);
	transition: opacity .2s;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	z-index: 5;
}
.aiAskChip img.aiAskIcon {
	width: 20px;
	height: 20px;
	display: block;
	padding: 3px;
	border-radius: 50%;
	background: #fff;
	box-sizing: content-box;
}
.aiAskChip:hover {
	opacity: .85;
}
body.dark .aiAskChip {
	background: var(--green);
}
body.dark .aiModal .aiInputRow button,
body.dark .aiTag,
body.dark .aiCite,
body.dark .aiCitePanel .aiCitePanelKind,
body.dark .aiCitePanel .aiCitePanelLink {
	background: var(--green);
}

.aiModal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .4);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease, visibility 0s .25s;
}
.aiModal.show {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity .2s ease;
}
.aiModal .aiBox {
	background: var(--card);
	border-radius: 24px;
	width: min(760px, 94vw);
	height: 86vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 16px 60px rgba(0, 0, 0, .25);
	text-align: left;
}
@media (min-width: 801px) {
	.aiModal .aiBox {
		height: 85vh;
	}
}
.aiModal .aiHead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--border);
}
.aiModal .aiHead h2 {
	margin: 0;
	font-size: 18px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.aiModal .aiHead h2 img.aiModalIcon {
	width: 22px;
	height: 22px;
	padding: 3px;
	border-radius: 50%;
	background: #fff;
	box-sizing: content-box;
}
.aiModal .aiHead .aiSub {
	font-size: 12px;
	color: var(--sub);
	margin-top: 2px;
}
.aiModal .aiHeadBtns {
	display: flex;
	align-items: center;
	gap: 6px;
}
.aiModal .aiTosBtn,
.aiModal .aiClearBtn,
.aiModal .aiCloseBtn {
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 3px 9px;
	cursor: pointer;
	font-size: 11px;
	line-height: 1.4;
	color: var(--sub);
	transition: .2s;
}
.aiModal .aiTosBtn:hover,
.aiModal .aiClearBtn:hover {
	color: var(--text);
	border-color: var(--green);
}
.aiModal .aiCloseBtn {
	background: var(--bg);
	color: var(--text);
}
.aiModal .aiChat {
	flex: 1;
	overflow-y: auto;
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 200px;
}
.aiMsg {
	display: flex;
	gap: 8px;
	max-width: 100%;
	position: relative;
}
.aiMsg.user {
	flex-direction: row-reverse;
}
.aiMsgMain {
	display: flex;
	flex-direction: column;
	max-width: 82%;
}
.aiMsg.user .aiMsgMain {
	align-items: flex-end;
}
.aiMsg.bot .aiMsgMain {
	align-items: flex-start;
}
.aiAvatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	align-self: flex-start;
	margin-top: 2px;
	border: 1px solid var(--border);
	background: var(--card);
	box-sizing: border-box;
}
.aiAvatarBot {
	border: 1px solid rgba(0, 0, 0, .06);
	background: var(--card);
	padding: 2px;
}
body.dark .aiAvatar,
body.dark .aiAvatarBot {
	border-color: rgba(255, 255, 255, .18);
	background: #222;
}
.aiBubble {
	padding: 10px 14px;
	border-radius: 16px;
	font-size: 14px;
	line-height: 1.6;
	white-space: pre-wrap;
	word-break: break-word;
	max-width: 100%;
}
.aiMsgActions {
	position: absolute;
	top: 100%;
	display: flex;
	gap: 6px;
	margin-top: 2px;
	opacity: 0;
	transition: opacity .15s;
	z-index: 3;
}
.aiMsg.bot .aiMsgActions {
	left: 10px;
}
.aiMsg.user .aiMsgActions {
	right: 10px;
}
.aiMsg:hover .aiMsgActions {
	opacity: 1;
}
.aiActionBtn {
	border: none;
	background: transparent;
	color: var(--sub);
	cursor: pointer;
	font-size: 13px;
	line-height: 1;
	padding: 4px 6px;
	border-radius: 6px;
}
.aiActionBtn:hover {
	background: var(--bg);
	color: var(--text);
}
.aiMsg.user .aiBubble {
	background: rgba(0, 170, 0, .1);
	color: var(--text);
	border-bottom-right-radius: 4px;
}
body.dark .aiMsg.user .aiBubble {
	background: rgba(0, 170, 0, .28);
	color: #fff;
}
.aiMsg.bot .aiBubble {
	background: var(--bg);
	color: var(--text);
	border-bottom-left-radius: 4px;
}
.aiTag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	color: #fff;
	background: var(--green);
	border-radius: 999px;
	padding: 2px 8px;
	margin-bottom: 6px;
}
@media (max-width: 480px) {
	.aiAvatar,
	.aiAvatarBot {
		width: 28px;
		height: 28px;
	}
	.aiMsgMain {
		max-width: 78%;
	}
}
.aiModal .aiInputRow {
	display: flex;
	gap: 8px;
	padding: 12px 16px;
	border-top: 1px solid var(--border);
}
.aiModal .aiInputRow input {
	flex: 1;
	height: 42px;
	border-radius: 20px;
	border: 1px solid var(--border);
	background: var(--bg);
	color: var(--text);
	padding: 0 16px;
	box-sizing: border-box;
	font-size: 14px;
}
.aiModal .aiInputRow button {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: 50%;
	border: none;
	background: var(--green);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.aiModal .aiInputRow button .aiSendIcon {
	width: 20px;
	height: 20px;
	display: block;
	background-color: currentColor;
	-webkit-mask: url(icon/arrow.svg) no-repeat center/contain;
	mask: url(icon/arrow.svg) no-repeat center/contain;
	-webkit-mask-size: contain;
	mask-size: contain;
}
body.dark .aiModal .aiInputRow button .aiSendIcon {
	background-color: #fff;
}
.aiModal .aiInputRow button:disabled {
	opacity: .5;
	cursor: not-allowed;
}
.aiThinking {
	display: inline-flex;
	gap: 4px;
}
.aiThinking i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--sub);
	animation: aiBlink 1s infinite;
}
.aiThinking i:nth-child(2) { animation-delay: .2s; }
.aiThinking i:nth-child(3) { animation-delay: .4s; }
@keyframes aiBlink {
	0%, 80%, 100% { opacity: .3; }
	40% { opacity: 1; }
}
.aiLogItem {
	background: var(--bg);
	border-radius: 12px;
	padding: 10px 12px;
}
.aiHint {
	align-self: center;
	background: rgba(0, 170, 0, .1);
	border: 1px solid rgba(0, 170, 0, .3);
	color: var(--sub);
	border-radius: 999px;
	padding: 4px 14px;
	font-size: 12px;
	margin-top: 2px;
}
body.dark .aiHint {
	background: rgba(0, 170, 0, .15);
	border-color: rgba(0, 170, 0, .4);
}
.aiCite {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 3px;
	margin: 0 2px;
	border-radius: 999px;
	background: var(--green);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	vertical-align: super;
	user-select: none;
	box-shadow: 0 1px 4px rgba(0, 170, 0, .4);
}
.aiCite .aiCiteIcon {
	width: 11px;
	height: 11px;
	display: block;
	background-color: currentColor;
	-webkit-mask: url(icon/arrow.svg) no-repeat center/contain;
	mask: url(icon/arrow.svg) no-repeat center/contain;
	-webkit-mask-size: contain;
	mask-size: contain;
}
body.dark .aiCite .aiCiteIcon {
	background-color: #fff;
}
.aiCite:hover {
	opacity: .85;
}
.aiCitePanel {
	position: fixed;
	z-index: 100001;
	width: min(320px, 88vw);
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: 0 10px 34px rgba(0, 0, 0, .22);
	padding: 12px 14px;
	font-size: 13px;
	text-align: left;
	box-sizing: border-box;
}
.aiCitePanel .aiCitePanelHead {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}
.aiCitePanel .aiCitePanelKind {
	background: var(--green);
	color: #fff;
	border-radius: 999px;
	padding: 2px 8px;
	font-size: 11px;
	flex-shrink: 0;
}
.aiCitePanel .aiCitePanelAuthor {
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.aiCitePanel .aiCitePanelBody {
	color: var(--text);
	line-height: 1.5;
	max-height: 120px;
	overflow-y: auto;
	word-break: break-word;
	white-space: pre-wrap;
	margin-bottom: 10px;
}
.aiCitePanel .aiCitePanelLink {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #fff;
	background: var(--green);
	text-decoration: none;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 700;
}
.aiCitePanel .aiCitePanelLink .aiCiteLinkIcon {
	width: 12px;
	height: 12px;
	display: block;
	background-color: currentColor;
	-webkit-mask: url(icon/arrow.svg) no-repeat center/contain;
	mask: url(icon/arrow.svg) no-repeat center/contain;
	-webkit-mask-size: contain;
	mask-size: contain;
}
body.dark .aiCitePanel .aiCitePanelLink .aiCiteLinkIcon {
	background-color: #fff;
}
body.dark .aiCitePanel .aiCitePanelBody { color: var(--text); }

#postTimeline {
	display: none;
	align-items: center;
	gap: 12px;
	margin: 10px auto 2px auto;
	width: 100%;
	max-width: 700px;
	box-sizing: border-box;
	padding: 2px 4px;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-snap-type: x proximity;
}

#postTimeline::-webkit-scrollbar {
	display: none;
}

#postTimeline.show {
	display: flex;
}

.timelineAll {
	flex-shrink: 0;
	height: 30px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--card);
	color: var(--sub);
	font-size: 13px;
	cursor: pointer;
	transition: .2s;
	scroll-snap-align: start;
}

.timelineAll:hover {
	background: var(--green);
	color: #fff;
	border-color: var(--green);
}

.timelineAll.active {
	background: var(--green);
	color: #fff;
	border-color: var(--green);
}

.timelineLine {
	position: relative;
	flex: 1;
	min-width: 430px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 6px 2px 6px;
}

.timelineLine::before {
	content: "";
	position: absolute;
	left: 6px;
	right: 6px;
	top: 15px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--green), rgba(0, 0, 0, .1));
}

body.dark .timelineLine::before {
	background: linear-gradient(90deg, var(--green), rgba(255, 255, 255, .15));
}

.timelineNode {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	transition: transform .2s;
	scroll-snap-align: center;
}

.timelineNode:hover {
	transform: translateY(-2px);
}

.timelineNode .tl-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--card);
	border: 2px solid var(--green);
	box-shadow: 0 0 0 3px var(--bg);
	transition: .2s;
}

.timelineNode:hover .tl-dot {
	transform: scale(1.3);
}

.timelineNode.empty .tl-dot {
	border-color: rgba(0, 0, 0, .15);
	background: rgba(0, 0, 0, .06);
}

body.dark .timelineNode.empty .tl-dot {
	border-color: rgba(255, 255, 255, .2);
	background: rgba(255, 255, 255, .08);
}

.timelineNode.active .tl-dot {
	background: var(--green);
	border-color: var(--green);
	box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px rgba(0, 170, 0, .25);
}

.timelineNode .tl-label {
	font-size: 10px;
	color: var(--sub);
	white-space: nowrap;
	line-height: 1;
}

.timelineNode.active .tl-label {
	color: var(--green);
	font-weight: 700;
}

.timelineNode.empty .tl-label {
	color: rgba(0, 0, 0, .25);
}

body.dark .timelineNode.empty .tl-label {
	color: rgba(255, 255, 255, .25);
}

#searchBall {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--card);
	border: 1px solid var(--border);
	cursor: pointer;
	flex-shrink: 0;
	transition: .2s;
}

#searchBall img {
	width: 18px;
	height: 18px;
}

#searchBall:hover {
	background: var(--green);
	border-color: var(--green);
}

#searchBall:hover img {
	filter: brightness(0) invert(1);
}

body.dark #searchBall img {
	filter: brightness(0) invert(1);
}

#layoutBtn {
	height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--card);
	color: var(--text);
	border: 1px solid var(--border);
	font-size: 14px;
	white-space: nowrap;
	flex-shrink: 0;
}

#layoutBtn:hover {
	background: var(--green);
	color: #fff;
	border-color: var(--green);
}

#searchOverlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .55);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	display: flex;
	justify-content: center;
	align-items: flex-start;
	z-index: 99999;
	cursor: pointer;
	opacity: 1;
	transition: opacity .2s ease, visibility 0s;
}

#searchOverlay.hidden {
	display: flex !important;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease, visibility 0s .2s;
}

#searchOverlay:not(.hidden) {
	animation: searchFadeIn .25s ease;
}

#searchOverlay:not(.hidden) #searchSheet {
	animation: islandDrop .38s cubic-bezier(.32, .72, .34, 1);
}

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

@keyframes islandDrop {
	from {
		opacity: 0;
		transform: translateY(-28px) scale(.92);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

#searchSheet {
	width: min(720px, 94vw);
	margin-top: 12px;
	min-height: 38vh;
	background: var(--card);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 36px;
	padding: 28px 22px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 16px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
	cursor: default;
}

#searchSheet #postTimeline {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 2px 0;
	align-self: center;
}

#searchSheet #randomPostBtn {
	margin-top: 2px;
	background: var(--bg);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 999px;
	height: 38px;
}

#searchSheet #randomPostBtn:hover {
	background: var(--green);
	color: #fff;
	border-color: var(--green);
}

.searchRowInner {
	display: flex;
	gap: 10px;
	align-items: center;
	width: 100%;
}

.searchRowInner .postSearch {
	flex: 1;
	margin: 0;
	height: 44px;
	border-radius: 999px;
	font-size: 15px;
	background: var(--bg);
}

.searchRowInner #searchBtn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.searchRowInner #searchBtn img {
	width: 20px;
	height: 20px;
	filter: brightness(0) invert(1);
}

.toggleLongPost.inline {
	margin-left: 8px;
	padding: 2px 8px;
	font-size: 14px;
	height: 24px;
	line-height: 20px;
	border-radius: 999px;
	vertical-align: middle;
	float: right;
}

.postContent {
	line-height: 1.7;
	word-break: break-word;
}

.longPostText {
	display: inline;
}

.postWarnGate {
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(255, 85, 0, 0.1);
	border: 1px solid var(--bg);
	line-height: 1.3;
}

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

#logoRow {
	width: 100%;
	max-width: 800px;
	padding: 20px 20px 8px 20px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: nowrap;
}

#logo {
	font-size: 40px;
	font-weight: bold;
	color: var(--green);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	text-align: left;
}

#logo img {
	width: 80px;
	height: 80px;
}

#onlineMini {
	height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--card);
	color: var(--text);
	border: 1px solid var(--border);
	font-size: 14px;
	white-space: nowrap;
}

#onlineMini:hover {
	background: var(--green);
	color: #fff;
}

.onlineUser {
	padding: 8px 10px;
	border-radius: 10px;
	cursor: pointer;
	margin-bottom: 4px;
	transition: .15s;
}

.onlineUser:hover {
	background: var(--bg);
}

.onlineAvatar {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.sensitiveWrap {
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sensitiveRow {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.warnText {
	width: 100%;
	height: 36px;
	font-size: 14px;
	margin: 0;
	display: none;
}

.warnText.show {
	display: block;
}

.voteWhoRow {
	display: flex;
	gap: 10px;
	margin-top: 6px;
	font-size: 12px;
	color: var(--sub);
	flex-wrap: wrap;
}

.voteWhoLink {
	cursor: pointer;
	user-select: none;
}

.voteWhoLink:hover {
	color: var(--green);
}

.avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
	background: var(--bg);
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.avatar.big {
	width: 120px;
	height: 120px;
	border-width: 2px;
}

.comment .avatar {
	width: 20px;
	height: 20px;
	vertical-align: middle;
}

.userLinkWithAvatar {
	display: inline-flex;
	align-items: center;
	gap: 1px;
}

#profileAvatar {
	cursor: zoom-in;
}

.discoverGrid {
	width: 100%;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
	padding: 20px;
}

.discoverCard {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 180px;
	padding: 28px;
	box-sizing: border-box;
	background: var(--card);
	border-radius: 24px;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
	transition: all .2s ease;
}

.discoverCard:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

.discoverIcon {
	font-size: 42px;
	margin-bottom: 14px;
}

.rssIcon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--green);
	color: #fff;
	font-size: 26px;
	font-weight: 700;
}

.discoverCard h3 {
	margin: 0 0 8px 0;
	font-size: 24px;
}

.discoverCard p {
	margin: 0;
	color: var(--sub);
	font-size: 15px;
	line-height: 1.5;
}

.rankAvatar {
	width: 28px;
	height: 28px;
	flex: 0 0 auto;
}

#fortuneToggleBtn {
	display: none;
}

.musicCard {
	margin: 8px 0 10px 0;
	padding: 10px;
	border-radius: 16px;
	background: rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

body.dark .musicCard {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.08);
}

.musicIframe {
	display: block;
	border-radius: 12px;
	overflow: hidden;
}

#notifBtn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--card);
	color: var(--text);
	border: 1px solid var(--border);
	font-size: 14px;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
}

#notifLabel {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.modalBox #notifListWrap {
	overflow-x: hidden;
}

.notifItem,
.chatNotifItem {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.notifItem div,
.chatNotifItem div {
	min-width: 0;
}

#notifBtn:hover {
	background: var(--green);
	color: #fff;
}

#notifBadge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	margin-left: 6px;
	border-radius: 999px;
	background: #ff3b30;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.mentionLink {
	color: var(--green);
	font-weight: 700;
	cursor: pointer;
}

.postLink {
	color: var(--green);
	text-decoration: underline;
	cursor: pointer;
	word-break: break-all;
}

.mentionBox {
	position: fixed;
	z-index: 100000;
	background: var(--card);
	border: 1px solid rgba(0, 0, 0, .12);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
	border-radius: 14px;
	overflow: hidden;
	min-width: 220px;
	max-width: min(320px, calc(100vw - 20px));
}

.mentionBox.hidden {
	display: none;
}

.mentionItem {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	cursor: pointer;
}

.mentionItem:hover,
.mentionItem.active {
	background: var(--bg);
}

.mentionItem .avatar {
	width: 22px;
	height: 22px;
}

#posts.denseLayout {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
	width: min(100%, 1100px);
	max-width: 1100px;
	margin: 0 auto;
	gap: 10px;
	padding: 0 12px 20px;
	box-sizing: border-box;
	align-items: stretch;
}

#posts.denseLayout .post {
	width: 100%;
	margin: 0;
	padding: 14px;
	border-radius: 18px;
	font-size: 15px;
	box-sizing: border-box;
}

#posts.denseLayout .postHeaderTop {
	align-items: flex-start;
}

#posts.denseLayout .postContent {
	margin: 6px 0;
	line-height: 1.6;
}

#posts.denseLayout .postActions {
	margin-top: 8px;
}

#posts.denseLayout .commentList .comment {
	font-size: 13px;
	line-height: 1.3;
}

.settingsCard {
	background: var(--card);
	border-radius: 12px;
	padding: 10px 12px;
}

.settingsLabel {
	font-size: 13px;
	color: var(--sub);
	margin-bottom: 4px;
}

.settingsThemeBtn {
	flex: 1;
	padding: 7px;
	border-radius: 20px;
	border: 1px solid var(--bg);
	background: var(--card);
	color: var(--text);
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: .2s;
}

.settingsThemeBtn.active {
	background: var(--green);
	color: #fff;
	border-color: var(--green);
}

.settingsLinkBtn {
	display: block;
	width: 100%;
	padding: 8px 12px;
	border: none;
	background: var(--card);
	color: var(--green);
	font-size: 14px;
	cursor: pointer;
	text-align: center;
	border-radius: 20px;
	font-weight: 600;
	transition: .2s;
}

.settingsLinkBtn:hover {
	background: var(--green);
	color: #fff;
}

@keyframes postFadeIn {
	from {
		opacity: 0;
		transform: translateY(10px) scale(.98)
	}

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

@keyframes slideInRight {
	from {
		transform: translateX(100%);
		opacity: .6;
	}

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

@keyframes slideInLeft {
	from {
		transform: translateX(-100%);
		opacity: .6;
	}

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

.page-slide-right,
.page-slide-left {
	position: fixed !important;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: 10;
	will-change: transform, opacity;
}

.page-slide-right {
	animation: slideInRight .28s ease-out both;
}

.page-slide-left {
	animation: slideInLeft .28s ease-out both;
}

@keyframes fadeOut {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

.page-fade-out {
	animation: fadeOut .28s ease-out both;
	will-change: opacity;
}

.post.postEnter {
	animation: postFadeIn .32s ease both;
}

#posts.denseLayout .post.postEnter {
	animation: postFadeIn .32s ease both;
}

@keyframes loadingDot {

	0%,
	80%,
	100% {
		opacity: .2;
		transform: translateY(0);
	}

	40% {
		opacity: 1;
		transform: translateY(-2px);
	}
}

@media (max-width: 800px) {
	html,
	body {
		overflow: hidden;
		height: 100%;
	}
	.bottom {
		bottom: 0;
		height: 50px;
		padding-bottom: env(safe-area-inset-bottom, 16px);
		align-items: flex-start;
		background: var(--card);
	}

	.bottom button {
		height: 38px;
		align-self: flex-start;
		padding-bottom: 0;
		align-items: flex-start;
		padding-top: 4px;
	}

	.bottom button.active {
		background: transparent;
		color: var(--green);
	}

	.bottom button:hover,
	.bottom button:active,
	.bottom button:focus,
	.bottom button.active:hover {
		background: transparent;
		color: var(--green);
	}

	.bottom button.active:hover .navIcon {
		opacity: 1;
	}

	#pname {
		font-size: 30px;
	}

	.big {
		font-size: 28px;
	}

	.post,
	.userItem {
		font-size: 14px;
	}

	button,
	input,
	textarea {
		font-size: 14px;
	}

	.comment {
		font-size: 13px;
	}

	.tag,
	.postTag,
	.time {
		font-size: 12px;
	}

	#toggleNoticeBtn,
	#fortuneToggleBtn {
		display: none !important;
	}

	#announceBar {
		display: none !important;
	}

	#mobileSideBtn {
		display: flex;
		position: fixed;
		right: 12px;
		bottom: calc(122px + env(safe-area-inset-bottom, 0px));
		width: 46px;
		height: 46px;
		border-radius: 50%;
		align-items: center;
		justify-content: center;
		background: var(--card);
		box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
		z-index: 4000;
		font-size: 18px;
	}

	#posts {
		padding-bottom: 110px;
	}

	#sideBackdrop {
		position: fixed;
		inset: 0;
		z-index: 2900;
		background: rgba(0, 0, 0, .35);
		backdrop-filter: blur(6px);
		-webkit-backdrop-filter: blur(6px);
		opacity: 0;
		pointer-events: none;
		transition: opacity .28s ease;
	}

	#sideBackdrop.show {
		opacity: 1;
		pointer-events: auto;
	}

	#sidePanels {
		display: block;
		position: fixed;
		top: 76px;
		left: 50%;
		transform: translateX(-50%) translateY(-14px) scale(.94);
		width: min(420px, 90vw);
		max-height: calc(100vh - 160px);
		overflow-y: auto;
		z-index: 3000;
		background: var(--card);
		border: 1px solid var(--border);
		border-radius: 32px;
		padding: 18px 20px 16px;
		box-sizing: border-box;
		color: var(--text);
		box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
		opacity: 0;
		pointer-events: none;
		transition: opacity .26s ease, transform .34s cubic-bezier(.32, .72, .34, 1);
		will-change: transform, opacity;
	}

	#sidePanels.mobile-open {
		opacity: 1;
		pointer-events: auto;
		transform: translateX(-50%) translateY(0) scale(1);
	}

	#sidePanels #notice {
		position: static;
		width: auto;
		max-height: none;
		overflow: visible;
		border-radius: 0;
		padding: 0 0 12px 0;
		transform: none;
		background: transparent;
		box-shadow: none;
		border-bottom: 1px solid var(--border);
		margin-bottom: 12px;
	}

	#sidePanels #noticeTitle {
		margin: 0 0 8px 0;
		font-size: 15px;
	}

	#sidePanels #toggleNoticeBtn {
		display: none !important;
	}

	#sidePanels #fortuneBox {
		position: static;
		right: auto;
		width: auto;
		max-height: none;
		overflow: visible;
		border-radius: 0;
		padding: 0;
		text-align: left;
		transform: none;
		bottom: auto;
		background: transparent;
		box-shadow: none;
	}

	#fortuneBtn {
		width: 100%;
		height: 34px;
		font-size: 13px;
		margin-top: 8px;
		box-sizing: border-box;
	}

	#fortuneResult {
		margin-top: 6px;
	}

	#fortuneLevel {
		font-size: 18px;
	}

	.fortuneList {
		font-size: 12px;
		margin: 3px 0;
	}

	#newUsers {
		display: none;
	}

	#tagBar {
		display: none !important;
	}

	#editorPage .card {
		width: 80% !important;
		max-width: 500px !important;
	}

	.postActions button[data-del] {
		font-size: 14px;
	}

	.commentDel {
		font-size: 12px;
	}

	#backBtn {
		padding: 6px 12px;
		font-size: 14px;
	}

	.pager {
		position: fixed;
		left: 0;
		right: 0;
		bottom: calc(50px + env(safe-area-inset-bottom, 0px));
		z-index: 1500;
		gap: 2px;
		padding: 5px 8px;
		margin: 0 auto;
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		background: var(--card);
		border-top: 1px solid var(--border);
		box-shadow: 0 -4px 12px rgba(0, 0, 0, .06);
		box-sizing: border-box;
	}

	.pager .pageBtn,
	.pager .navBtn {
		min-width: 26px;
		height: 26px;
		padding: 0 6px;
		border-radius: 8px;
		font-size: 11px;
		flex-shrink: 0;
	}

	.pager .ellipsis {
		font-size: 12px;
		padding: 0 2px;
		flex-shrink: 0;
	}

	.pager .jumpInput {
		width: 44px;
		height: 30px;
		font-size: 12px;
		padding: 0 4px;
		border-radius: 10px;
	}

	.pager .jumpGo {
		min-width: 30px;
		height: 30px;
		font-size: 12px;
		padding: 0 8px;
		border-radius: 10px;
	}

	.bgPickerGrid {
		grid-template-columns: repeat(4, 1fr);
		gap: 6px;
	}

	.bgOption {
		height: 40px;
		border-radius: 10px;
	}

	#searchBall {
		width: 32px;
		height: 32px;
	}

	#searchBall img {
		width: 15px;
		height: 15px;
	}

	#searchSheet {
		margin-top: 6px;
		min-height: 26vh;
		border-radius: 26px;
		padding: 22px 16px;
		gap: 12px;
	}

	.searchRowInner .postSearch {
		height: 38px;
		font-size: 14px;
	}

	.searchRowInner #searchBtn {
		width: 38px;
		height: 38px;
	}

	.postSearch {
		font-size: 14px;
	}

	.postTagChip {
		font-size: 12px;
	}

	#logoRow {
		padding: 16px 12px 6px 12px;
		gap: 8px;
		flex-wrap: nowrap;
	}

	#logo {
		font-size: 20px;
		min-width: 0;
		flex-shrink: 1;
	}

	#logo img {
		width: 40px;
		height: 40px;
		flex-shrink: 0;
	}

	#mainLogoText {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		flex-shrink: 1;
	}

	#onlineMini,
	#notifBtn {
		height: 32px;
		font-size: 12px;
		padding: 0 10px;
		min-width: 0;
		flex-shrink: 1;
	}

	#layoutBtn,
	#searchBall {
		flex-shrink: 0;
	}

	#onlineMini {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		max-width: 90px;
	}

	#notifLabel {
		max-width: 64px;
	}

	.onlineAvatar {
		width: 18px;
		height: 18px;
	}

	.warnText {
		height: 34px;
		font-size: 13px;
		padding: 0 10px;
	}

	.sensitiveRow {
		align-items: flex-start;
	}

	.sensitiveRow label {
		font-size: 12px;
	}

	.voteWhoRow {
		font-size: 11px;
	}

	.avatar {
		width: 26px;
		height: 26px;
	}

	.avatar.big {
		width: 92px;
		height: 92px;
	}

	.discoverGrid {
		grid-template-columns: 1fr;
		padding: 12px;
		gap: 12px;
	}

	.discoverCard {
		flex-direction: row;
		align-items: center;
		min-height: 64px;
		padding: 12px 16px;
		border-radius: 14px;
		gap: 12px;
	}

	.discoverCard h3 {
		font-size: 18px;
		margin: 0 6px 0 0;
	}

	.discoverCard p {
		font-size: 13px;
		margin: 0;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		flex: 1;
		min-width: 0;
	}

	.discoverIcon img {
		width: 34px;
		height: 34px;
	}

	.discoverIcon {
		margin-bottom: 0;
		font-size: 34px;
		flex: 0 0 auto;
	}

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

	#layoutBtn {
		display: none;
	}

	.replyInputWrap input {
		height: 32px;
		font-size: 14px;
	}

	.replyInputWrap button {
		height: 32px;
		font-size: 12px;
		padding: 0 10px;
	}

	.replyInputWrap .emojiBtn {
		width: 32px;
		height: 32px;
	}

	.settingsCard {
		padding: 8px 10px;
		border-radius: 10px;
	}

	.settingsLinkBtn {
		padding: 6px 10px;
		font-size: 13px;
	}

	.settingsThemeBtn {
		padding: 5px;
		font-size: 12px;
	}
}

.emojiBtn {
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 50%;
	background: var(--card);
	border: 1px solid var(--border);
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: .2s;
	flex-shrink: 0;
	user-select: none;
}

.emojiBtn:hover {
	background: var(--grad);
	color: #fff;
}

.emojiPickerPopup {
	position: fixed;
	z-index: 99999;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 10px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
	display: none;
	grid-template-columns: repeat(6, 1fr);
	gap: 4px;
	max-width: 280px;
	max-height: 220px;
	overflow-y: auto;
}

.emojiPickerPopup.show {
	display: grid;
}

.emojiPickerPopup img {
	width: 32px;
	height: 32px;
	cursor: pointer;
	border-radius: 6px;
	padding: 4px;
	transition: .12s;
	box-sizing: border-box;
}

.emojiPickerPopup img:hover {
	background: var(--bg);
	transform: scale(1.2);
}

.emojiInPost {
	display: inline;
	vertical-align: middle;
	width: 1.3em;
	height: 1.3em;
	margin: 0 2px;
}

.commentRow .emojiBtn {
	width: 30px;
	height: 30px;
	font-size: 16px;
	margin: 0 4px;
	flex-shrink: 0;
}

.replyBtn {
	font-size: 12px;
	color: var(--sub);
	cursor: pointer;
	user-select: none;
	transition: .2s;
	vertical-align: middle;
	flex-shrink: 0;
	white-space: nowrap;
}

.replyBtn:hover {
	color: var(--green);
}

.replyToTag {
	font-size: 12px;
	color: var(--sub);
	margin-right: 4px;
	cursor: default;
}

.replyToTag b {
	color: var(--green);
	font-weight: 600;
}

.commentChildren {
	width: 100%;
}

.commentChildren:empty {
	display: none;
}

.replyInputWrap {
	display: flex;
	gap: 6px;
	align-items: center;
	width: 100%;
}

.replyInputWrap input {
	flex: 1;
	height: 34px;
	font-size: 14px;
	padding: 0 10px;
	border-radius: 16px;
	border: 1px solid var(--border);
	background: var(--card);
	color: var(--text);
	box-sizing: border-box;
	margin: 0;
	outline: none;
}

.replyInputWrap input:focus {
	border-color: var(--green);
}

.replyInputWrap button {
	flex-shrink: 0;
	height: 34px;
	font-size: 14px;
	padding: 0 12px;
	border-radius: 16px;
}

.replyInputWrap .emojiBtn {
	width: 34px;
	height: 34px;
	padding: 0;
	font-size: 16px;
	margin: 0;
}

@media (min-width: 801px) {
	.comment .replyBtn {
		display: none;
	}

	.comment:hover>.commentActions>.replyBtn {
		display: inline;
	}
}

html.watch {
	font-size: 14px;
}

html.watch .card {
	width: min(340px, 92vw);
	padding: 16px;
	border-radius: 16px;
}

html.watch .big {
	font-size: 22px;
	margin-bottom: 10px;
}

html.watch #main,
html.watch #profilePage,
html.watch #userListPage {
	align-items: stretch;
}

html.watch #posts,
html.watch #userPosts {
	padding-bottom: 10px;
}

html.watch .post,
html.watch .userItem {
	width: 96%;
	max-width: 100%;
	padding: 8px 10px;
	border-radius: 12px;
	margin: 6px auto;
	font-size: 13px;
	box-sizing: border-box;
}

html.watch .postHeaderTop .userLink {
	margin-bottom: 2px;
}

html.watch .postHeaderTop .time {
	font-size: 11px;
}

html.watch .postContent {
	line-height: 1.5;
}

html.watch .comment {
	font-size: 12px;
	gap: 4px;
}

html.watch .comment .avatar {
	width: 16px;
	height: 16px;
}

html.watch .commentRow input,
html.watch .commentRow button {
	height: 34px;
}

html.watch .avatar {
	width: 24px;
	height: 24px;
}

html.watch .avatar.big,
html.watch #profileAvatar {
	width: 72px;
	height: 72px;
}

html.watch img.zoomable {
	max-width: 100% !important;
	height: auto;
}

html.watch .emojiInPost {
	width: 16px;
	height: 16px;
}

html.watch .langSelect {
	height: 28px;
	font-size: 12px;
	padding: 0 6px;
}

html.watch #logoRow {
	padding: 8px 10px 4px 10px;
}

html.watch #logo {
	font-size: 20px;
	gap: 6px;
}

html.watch #logo img {
	width: 34px;
	height: 34px;
}

html.watch #onlineMini,
html.watch #notifBtn {
	height: 28px;
	font-size: 11px;
	padding: 0 8px;
}

html.watch .postTagChip {
	padding: 4px 10px;
	font-size: 11px;
}

html.watch .postFilterBar {
	padding: 0 10px 3px 10px;
}

html.watch .pager {
	padding-bottom: 0;
}

html.watch #editorPage .card {
	width: 94vw !important;
	padding: 14px;
}

html.watch #editorPage textarea {
	height: 110px;
	font-size: 14px;
}

html.watch #editorPage .card button {
	height: 36px;
	font-size: 13px;
}

html.watch #customTag {
	width: 160px !important;
}

html.watch #singlePost {
	padding: 10px;
}

html.watch #postBackBtn,
html.watch #backBtn {
	padding: 6px 12px;
	font-size: 14px;
}

html.watch .modalBox {
	width: min(300px, 90vw);
	padding: 18px;
}

html.watch .shopItem {
	flex-wrap: wrap;
	padding: 10px;
}

html.watch #pname {
	font-size: 22px;
}

html.watch .profileBtnGrid {
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 8px;
	padding: 0 10px;
	margin: 10px auto 30px auto;
}

html.watch .profileBtnGrid .pbtn {
	height: 40px;
	font-size: 13px;
}

html.watch #userDescription {
	width: 94%;
	padding: 12px;
	font-size: 14px;
}

html.watch .discoverGrid {
	padding: 8px;
	gap: 8px;
}

html.watch .discoverCard {
	min-height: 0;
	padding: 12px;
	border-radius: 16px;
	flex-direction: row;
	align-items: center;
	gap: 10px;
}

html.watch .discoverIcon {
	font-size: 22px;
	margin-bottom: 0;
}

html.watch .discoverIcon img {
	width: 32px;
	height: 32px;
}

html.watch .discoverCard h3 {
	font-size: 15px;
	margin: 0 0 2px 0;
}

html.watch .discoverCard p {
	font-size: 12px;
}

html.watch #posts.denseLayout {
	grid-template-columns: 1fr;
	width: 100%;
	padding: 0 6px 16px;
}

html.watch #posts.denseLayout .post {
	padding: 10px;
	font-size: 13px;
}

html.watch .rankAvatar {
	width: 20px;
	height: 20px;
}

html.watch .rankSearch {
	width: 94%;
	padding: 8px 12px;
	font-size: 13px;
}

html.watch .emojiPickerPopup {
	grid-template-columns: repeat(8, 1fr);
	max-width: calc(100vw - 16px);
	max-height: 180px;
}

html.watch .emojiPickerPopup img {
	width: 24px;
	height: 24px;
}

html.watch .musicIframe {
	height: 90px;
}

html.watch #main,
html.watch #profilePage,
html.watch #userListPage,
html.watch #postPage {
	height: auto !important;
	min-height: 100vh;
	overflow-y: visible !important;
}

html.watch #posts,
html.watch #userPosts {
	overflow: visible !important;
	flex: none !important;
	padding-bottom: 64px;
}

html.watch #singlePost {
	overflow: visible !important;
	flex: none !important;
	padding: 10px !important;
}

html.watch #main #logoRow,
html.watch #main #postFilterBar,
html.watch #notice,
html.watch #announceBar,
html.watch #fortuneBox,
html.watch #mobileSideBtn {
	display: none !important;
}

html.watch .pager {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	width: auto;
	max-width: none;
	margin: 0;
	z-index: 1500;
	background: var(--card);
	border-top: 1px solid var(--border);
	box-shadow: none;
	gap: 8px;
	justify-content: center;
	padding: 8px 0;
}

html.watch .pager .navBtn {
	min-width: 40px;
	height: 34px;
	font-size: 16px;
	padding: 0 10px;
}

html.watch .pager .pageBtn,
html.watch .pager .ellipsis,
html.watch .pager .jumpInput,
html.watch .pager .jumpGo {
	display: none !important;
}

html.watch .bottom {
	display: none;
}

html.watch .bottom button {
	font-size: 11px;
	padding-bottom: 2px;
}

html.watch #logoRow {
	padding: 4px 10px;
}

html.watch #editorPage #logoRow,
html.watch #editorPage #insertImgBtn,
html.watch #editorPage #insertMusicBtn,
html.watch #editorPage #editorEmojiBtn,
html.watch #editorPage #customTag,
html.watch #editorPage .sensitiveWrap,
html.watch #editorPage .postBgRow {
	display: none !important;
}

html.watch body {
	overflow-y: auto;
	padding-bottom: 0;
}
