/* Small, direct rules for the lounge and its static pages. */

/* Keep the public avatar choices visible after the class cleanup. */
.guestScreen #login.loginCard {
	display: flow-root;
}

.guestScreen #login.loginCard .loginForm {
	display: block;
	width: 100%;
}

.guestScreen #login .loginActions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.guestScreen #login .loginActions .textbox {
	margin-bottom: 0;
}

.guestScreen #login .tripcodeSection {
	width: 240px;
	max-width: 100%;
	box-sizing: border-box;
	text-align: left;
}

.guestScreen #login .tripcodeToggle {
	display: inline-block;
	list-style: none;
	color: #8a8a8a;
	font-size: 13px;
	line-height: 18px;
	text-decoration: underline;
	cursor: pointer;
}

.guestScreen #login .tripcodeToggle:hover,
.guestScreen #login .tripcodeToggle:focus {
	color: #ffffff;
}

.guestScreen #login .tripcodeToggle::-webkit-details-marker {
	display: none;
}

.guestScreen #login .tripcodeFields {
	margin-top: 8px;
}

.guestScreen #login .tripcodeFields label {
	margin-bottom: 5px;
	color: #8a8a8a;
	font-size: 12px;
	text-align: left;
}

.guestScreen #login .tripcodeFields .textbox {
	width: 100%;
	font-size: 16px;
	text-align: left;
}

.drrrchatUserName {
	position: relative;
	display: inline-block;
	max-width: 100%;
}

.drrrchatUserNameText {
	word-break: break-word;
}

.drrrchatTripcode {
	margin-left: 0.3em;
	color: #8a8a8a;
	font-size: 0.82em;
	font-weight: normal;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.drrrchatTripcodePopup {
	display: none;
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	z-index: 50;
	padding: 5px 8px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	background: rgba(18, 18, 18, 0.96);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
	color: #ffffff;
	font-size: 12px;
	font-weight: normal;
	line-height: 1.2;
	white-space: nowrap;
	transform: translateX(-50%);
	pointer-events: none;
}

.drrrchatUserName:hover .drrrchatTripcodePopup,
.drrrchatUserName:focus-within .drrrchatTripcodePopup {
	display: block;
}

.roomList .users .user {
	overflow: visible;
}

.guestScreen .loginAvatars {
	position: static;
	float: none;
	clear: both;
	display: grid;
	grid-template-columns: repeat(4, 60px);
	gap: 8px 10px;
	width: 270px;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 auto 16px;
	padding: 0;
	list-style: none;
}

.guestScreen .loginAvatars li {
	display: block;
	float: none;
	width: 60px;
	height: 58px;
	margin: 0;
	padding: 0;
}

.guestScreen .loginChoice,
.guestScreen .loginAvatar {
	display: block;
	width: 58px;
	height: 58px;
	margin: 0;
	padding: 0;
}

.guestScreen .loginAvatar img {
	display: block;
	width: 58px;
	height: 58px;
	max-width: none;
	margin: 0;
	opacity: 1;
}

/* Keep create and password cards centered below the shared page bar. */
body.staticScreen .createCard,
body.staticScreen .passwordCard {
	width: min(520px, calc(100% - 32px));
	max-width: 520px;
	margin: 0 auto;
	box-sizing: border-box;
}

body.staticScreen #readme,
body.staticScreen #about {
	width: 100%;
	max-width: 500px;
	margin-right: auto;
	margin-left: auto;
	box-sizing: border-box;
}

body.staticScreen .passwordForm {
	display: block;
	width: 100%;
}

body.staticScreen .passwordFields {
	display: grid;
	gap: 16px;
	width: 100%;
	margin: 0 auto;
}

body.staticScreen .passwordRow {
	width: 100%;
}

body.staticScreen .passwordRow label {
	display: block;
	margin-bottom: 6px;
	color: #353535;
	font-size: 13px;
	font-weight: bold;
	text-align: left;
}

body.staticScreen .passwordRow .textbox {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	height: auto;
	min-height: 44px;
	line-height: 1.3;
	padding: 10px 12px;
	border: 1px solid #cccccc;
	border-radius: 5px;
}

body.staticScreen .passwordActions {
	padding-top: 4px;
	text-align: center;
}

body.staticScreen .passwordActions .button {
	min-width: 150px;
}

.loungeScreen #body {
	width: auto;
	max-width: none;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

.loungeScreen .page {
	background: transparent !important;
	padding: 0 !important;
	color: #fff !important;
	font-size: 14px !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.sideColumn,
footer,
.sideInfo,
.loungeFooter {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.topBar a,
.buttonGroup > .action {
	color: #fff;
}

.topBar a:hover,
.topBar a:focus,
.buttonGroup > .action:hover,
.buttonGroup > .action:focus {
	color: #fff;
}

.topBar a {
	text-shadow: none;
}

.topBar .widePage {
	position: relative;
}

/* Keep the normal lounge bar in the page flow. The base stylesheet also has
   fixed-bar rules under the renamed topBar selector. */
.topBar {
	position: static;
	top: auto;
	right: auto;
	bottom: auto;
	left: auto;
	z-index: auto;
	margin-bottom: 18px;
}

.topBar .barInside {
	padding-right: 20px;
	padding-left: 20px;
	border-radius: 4px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
}

.topBar .linkList {
	padding-right: 0;
	padding-left: 0;
}

.topBar .linkList > li > a {
	margin-right: 0;
	margin-left: 0;
}

.loungeNav:before,
.loungeNav:after {
	display: table;
	content: "";
}

.loungeNav:after {
	clear: both;
}

.dropMenu a:hover,
.dropMenu a:focus {
	color: #fff;
}

.mainButton,
.goodButton,
.infoButton,
.darkButton {
	color: #fff !important;
}

.mainButton strong,
.goodButton strong,
.infoButton strong {
	color: #fff !important;
}

.loungeAlert {
	margin-bottom: 2em;
}

.online {
	margin-bottom: 14px;
}

.hero {
	min-height: 178px;
}

.aboutBox {
	background-position: center bottom !important;
	background-size: 120% auto !important;
}

.profileRow {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 10px;
}

.profileInfo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
}

.profileName {
	margin-top: 2px;
	word-break: break-word;
}

.loungeHost {
	flex: 0 0 auto;
}

.loginSolo {
	margin-bottom: 10px;
}

.roomList {
	margin-bottom: 0;
	width: 74.468085099% !important;
	box-sizing: border-box;
	background-color: #f5f5f5;
}

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

.roomRow .columnTwo {
	text-align: right;
}

.roomActions {
	text-align: right;
}

.roomActions form {
	display: inline-block;
	margin-bottom: 4px;
}

.adminControls {
	margin-top: 6px;
}

.adminControls form {
	display: block;
	margin-top: 4px;
}

.adminControls .action {
	width: 85px;
}

.languageTitle {
	color: #080808;
}

.adSpace {
	display: block;
	width: 100%;
	min-width: 250px;
	overflow: hidden;
}

.adSpace ins.adsbygoogle[data-ad-status="unfilled"] {
	display: none !important;
}

.sideAd {
	margin: 0 0 20px;
}

.roomAd {
	margin: 10px 0;
	padding: 2px 0;
}

.sideInfo,
.loungeFooter {
	color: #fff;
}

.sideInfo p,
.sideInfo div,
.loungeFooter p {
	color: #fff;
}

.sideInfo a,
.loungeFooter a {
	color: #fff799;
}

.wallBanner {
	display: block;
	padding: 18px 12px;
	border: 2px solid #ffffff;
	border-radius: 0;
	background-color: #000000;
	background-image: url("keep-out.png");
	background-position: center bottom !important;
	background-repeat: no-repeat;
	background-size: 120% auto !important;
	color: #ffffff !important;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
}

.wallBanner:hover,
.wallBanner:focus {
	color: #ffffff !important;
	text-decoration: none;
}

.wallBanner span {
	display: block;
}

.wallTitle {
	margin-bottom: 6px;
	text-align: center;
}

.wallNames {
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
	word-break: break-word;
}

.wallScreen .loungeBody {
	width: 980px;
	max-width: calc(100% - 32px);
}

.wall {
	padding: 10px 0 0;
	color: #ffffff;
	text-align: center;
}

.wall h2 {
	margin-bottom: 12px;
	color: #ffffff;
	font-size: 34px;
	line-height: 1.1;
}

.wallIntro {
	max-width: 620px;
	margin: 0 auto 22px;
	font-size: 16px;
	line-height: 1.5;
}

.wallError {
	margin-bottom: 16px;
	color: #ff8d8d;
}

.wallForm {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-bottom: 28px;
}

.wallInput {
	width: 260px;
	max-width: 100%;
	margin-bottom: 0 !important;
	text-align: center;
}

.wallButton {
	min-width: 120px;
}

.wallGrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px 24px;
	align-items: start;
}

.wallName {
	margin: 0;
	color: #ffffff;
	font-size: 22px;
	line-height: 1.3;
	word-break: break-word;
}

.wallEmpty {
	color: #ffffff;
	font-size: 15px;
}

.loungeFooter {
	padding-bottom: 24px;
	font-size: 13px;
}

@media (max-width: 1020px) {
	.topBar .widePage {
		display: flex;
		align-items: center;
		gap: 12px;
	}

	.topBar .brand {
		margin-right: auto;
	}

	.topBar .menuButton {
		order: 2;
		margin: 0;
	}

	.loungeNav {
		position: absolute;
		top: calc(100% + 10px);
		right: 16px;
		left: 16px;
		z-index: 30;
		padding: 12px;
		background: rgba(12, 12, 12, 0.98);
		border: 1px solid rgba(255, 255, 255, 0.14);
		border-radius: 10px;
		box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
	}

	.loungeNav[hidden] {
		display: none !important;
	}

	.loungeNav .alignRight {
		display: block;
		float: none;
		margin: 0 0 10px;
		position: relative;
	}

	.loungeNav .action {
		display: block;
		width: 100%;
		box-sizing: border-box;
		white-space: normal;
	}

	.loungeNav .dropMenu {
		position: absolute;
		float: none;
		top: calc(100% + 8px);
		right: 0;
		left: 0;
		width: auto;
		margin-top: 8px;
		max-height: 240px;
		overflow-y: auto;
		box-sizing: border-box;
	}

	.loungeNav .dropMenu a,
	.loungeNav .linkList a {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.loungeNav .menuArea {
		display: block !important;
		margin-top: 0;
	}

	.loungeNav .linkList {
		display: grid;
		gap: 6px;
		width: 100%;
		margin: 0;
		list-style: none;
		text-align: center;
	}

	.loungeNav .linkList li {
		float: none;
	}

	.loungeNav .linkList a {
		display: block;
		padding: 8px 10px;
		border: 1px solid rgba(255, 255, 255, 0.12);
		border-radius: 6px;
		background: rgba(255, 255, 255, 0.04);
	}

	.roomList {
		width: 100% !important;
	}

	.roomRow .columnTwo,
	.roomActions {
		text-align: left;
	}
}

@media (max-width: 640px) {
	.topBar .widePage {
		padding-right: 12px;
		padding-left: 12px;
	}

	.loungeNav {
		right: 12px;
		left: 12px;
		padding: 10px;
	}

	.loungeAlert {
		margin-bottom: 14px;
		padding: 12px 14px;
	}

	.loungeAlert h4 {
		margin-bottom: 4px;
		font-size: 15px;
		line-height: 1.3;
	}

	.loungeAlert p {
		font-size: 12px;
		line-height: 1.4;
	}

	.loungeAlert .action {
		margin-top: 6px;
		padding: 7px 10px;
		font-size: 12px;
	}

	.hero {
		min-height: 0;
		padding: 14px 14px 12px;
		margin-bottom: 12px;
	}

	.hero h1 {
		font-size: 22px;
		line-height: 1.05;
		letter-spacing: 0;
		margin-bottom: 6px;
	}

	.hero p {
		font-size: 12px;
		line-height: 1.4;
	}

	.hero .alignRight {
		float: none;
		display: inline-block;
		margin-top: 6px;
	}

	.aboutBox {
		background-position: center bottom !important;
		background-size: cover !important;
	}

	.online {
		font-size: 22px;
	}

	.sideColumn {
		margin-top: 12px;
		padding: 0;
		display: grid;
		place-items: center;
	}

	.sideColumn > div {
		width: 100%;
		display: grid;
		justify-items: center;
	}

	.sideColumn hr {
		display: none;
	}

	.profileRow {
		align-items: center;
		margin-bottom: 4px;
	}

	.profileInfo {
		gap: 4px;
	}

	.profileName {
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-size: 14px;
	}

	.loungeHost .avatarButton img {
		width: 44px;
		height: 44px;
	}

	.sideColumn .soloButtons {
		width: 100%;
		margin-bottom: 0;
	}

	.loginSolo .action {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.sideColumn .bigButton {
		padding-top: 8px;
		padding-bottom: 8px;
		font-size: 15px;
	}

	.sideColumn .alignRight {
		float: none;
		margin: 0 0 8px;
	}

	.languageTitle {
		margin: 22px 0 14px;
		font-size: 22px;
	}

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

	.roomRow .roomName {
		flex: 1 1 0;
		width: auto !important;
		min-width: 0;
		padding-right: 8px;
	}

	.roomRow .users {
		order: 4;
		flex: 0 0 100%;
		width: 100% !important;
		margin-top: 2px;
	}

	.roomRow .columnOne,
	.roomRow .roomActions {
		width: auto !important;
		flex: 0 0 auto;
	}

	.roomRow .columnOne {
		min-width: 44px;
		text-align: center;
	}

	.roomActions {
		margin-left: auto;
		text-align: right;
	}

	.roomActions .enterButton,
	.roomActions .roomFull {
		display: inline-block;
		width: auto;
		min-width: 74px;
	}

	.roomActions form {
		display: block;
	}

	.adminControls {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: 4px;
	}

	.adminControls form {
		display: inline-block;
		margin-top: 0;
	}

	.roomList .user {
		width: 100%;
	}

	.roomAd {
		margin: 14px 0;
	}

	.sideInfo {
		margin-top: 18px;
	}

	.wallScreen .loungeBody {
		max-width: none;
	}

	.wallGrid {
		grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
		gap: 12px 16px;
	}

	.wallName {
		font-size: 22px;
	}
}

@media (max-width: 1020px) {
	.globalBar .barInside {
		padding-right: 0;
		padding-left: 0;
		border-radius: 0;
	}

	.globalBar .widePage {
		width: 100%;
		box-sizing: border-box;
		padding-right: 16px;
		padding-left: 16px;
	}

	.globalBar .loungeNav {
		display: none;
	}

	.globalBar .mobileMenu {
		display: inline-block;
	}
}

.globalBar .brand {
	display: block;
	min-width: 0;
	flex: 0 1 auto;
}

.globalBar .brand img {
	display: block;
	width: 160px;
	height: auto;
	max-width: 100%;
}

.globalBar .languageSelect {
	box-sizing: border-box;
	width: 150px;
	min-width: 0;
	height: 30px;
	margin-bottom: 0;
	padding: 3px 6px;
	font-size: 12px;
	line-height: 1.2;
}

@media (max-width: 768px) {
	.globalBar .buttonGroup.alignRight {
		margin-top: 0;
	}

	.globalBar .brand img {
		width: clamp(110px, 36vw, 160px);
	}

	.globalBar .buttonGroup {
		flex: 0 0 auto;
	}

	.globalBar .languageSelect {
		width: 112px;
		padding-right: 4px;
		padding-left: 4px;
		font-size: 11px;
	}

	.globalBar .mobileMenu {
		flex: 0 0 auto;
		margin-left: 0;
	}
}

@media (max-width: 420px) {
	.globalBar .widePage {
		padding-right: 10px;
		padding-left: 10px;
	}

	.globalBar .brand img {
		width: 104px;
	}

	.globalBar .languageSelect {
		width: 100px;
	}
}

/* Staff moderation workspace. */
body.moderationScreen #body {
	width: 100%;
	max-width: none;
	padding: 0;
	box-sizing: border-box;
}

body.moderationScreen.staticScreen div.page.moderationCard {
	width: 1200px;
	max-width: calc(100% - 32px);
	box-sizing: border-box;
	margin: 0 auto;
	padding: 28px;
	color: #353535;
	text-align: left;
}

body.moderationScreen .moderationCard h2 {
	margin-bottom: 8px;
	color: #353535;
}

.moderationHeading p,
.moderationHint,
.moderationEmpty {
	color: #666;
}

.moderationHeading {
	margin-bottom: 22px;
}

.moderationFlash {
	padding: 10px 12px;
	margin-bottom: 16px;
	color: #245b2a;
	background: #e8f5e9;
	border: 1px solid #b9dfbd;
	border-radius: 4px;
}

.moderationTabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 -28px 22px;
	padding: 0 28px;
	border-bottom: 1px solid #d6d6d6;
}

.moderationTabs a {
	display: inline-block;
	padding: 10px 14px;
	color: #666;
	font-weight: bold;
	border-bottom: 3px solid transparent;
}

.moderationTabs a:hover,
.moderationTabs a:focus,
.moderationTabs a.active {
	color: #942020;
	text-decoration: none;
	border-bottom-color: #942020;
}

.moderationSearch {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin-bottom: 18px;
}

.moderationClearForm {
	display: flex;
	justify-content: flex-end;
	margin: -8px 0 18px;
}

.moderationSearch label,
.moderationField label {
	margin-bottom: 6px;
	color: #353535;
	font-size: 13px;
	font-weight: bold;
}

.moderationSearchControls {
	display: flex;
	width: 100%;
	max-width: 100%;
	gap: 8px;
	align-items: center;
	box-sizing: border-box;
}

.moderationSearchControls .textbox {
	flex: 1 1 340px;
	width: auto;
	max-width: none;
	box-sizing: border-box;
	min-height: 40px;
	padding: 8px 10px;
}

.moderationSearchControls .button {
	flex: 0 0 auto;
}

.moderationTableWrap {
	width: 100%;
	overflow-x: auto;
}

body.moderationScreen .moderationTable {
	width: 100%;
	min-width: 820px;
	margin: 0;
	border-collapse: collapse;
	color: #353535;
	background: #fff;
}

.moderationTable th,
.moderationTable td {
	padding: 9px 10px;
	border: 1px solid #d8d8d8;
	vertical-align: top;
	text-align: left;
}

.moderationTable th {
	color: #fff;
	font-size: 12px;
	background: #4d4d4d;
}

.moderationTable tbody tr:nth-child(even) {
	background: #f7f7f7;
}

.moderationNowrap {
	white-space: nowrap;
}

.moderationMessage {
	min-width: 220px;
	max-width: 420px;
	white-space: pre-wrap;
	word-break: break-word;
}

.moderationTarget {
	font-family: monospace;
	font-weight: bold;
}

.moderationIconPreview {
	display: inline-block;
	width: 28px;
	height: 28px;
	margin-right: 6px;
	vertical-align: middle;
	object-fit: contain;
}

.moderationTable form {
	margin: 0;
}

.moderationForm {
	display: block;
	width: 100%;
	margin-bottom: 18px;
}

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

.moderationFieldWide {
	grid-column: 1 / -1;
}

.moderationField input,
.moderationField select,
.moderationField textarea {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

.moderationField input,
.moderationField select {
	height: 42px;
	padding: 8px 10px;
}

.moderationField textarea {
	min-height: 84px;
	padding: 9px 10px;
	resize: vertical;
}

.moderationActions {
	margin-top: 18px;
}

.moderationHint {
	margin-top: 18px;
	font-size: 12px;
}

.moderationPowerSection {
	padding-top: 22px;
	margin-top: 24px;
	border-top: 1px solid #d6d6d6;
}

.moderationPowerSection h3 {
	margin-bottom: 8px;
	color: #353535;
}

@media (max-width: 680px) {
	body.moderationScreen #body {
		width: 100%;
		padding-bottom: 24px;
	}

	body.moderationScreen.staticScreen div.page.moderationCard {
		width: calc(100% - 16px);
		max-width: none;
		padding: 20px 14px;
	}

	.moderationTabs {
		margin-right: -14px;
		margin-left: -14px;
		padding-right: 14px;
		padding-left: 14px;
	}

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

	.moderationFieldWide {
		grid-column: auto;
	}

	.moderationSearchControls {
		align-items: center;
		flex-direction: row;
		min-width: 0;
	}

	.moderationSearchControls .textbox {
		width: auto;
		min-width: 0;
		max-width: 100%;
		flex: 1 1 auto;
	}

	.moderationSearchControls .button {
		width: auto;
		flex: 0 0 auto;
	}

	.moderationClearForm {
		justify-content: stretch;
	}

	.moderationClearForm .button {
		width: 100%;
	}
}
