.home-body {
	p {
		color: #CCC;
		max-width: 700px;
	}

	b {
		color: #FFF;
	}
}

.home-body a:hover {
	color: #ffd54f;
}

.character-sheet-dialog h2 {
	margin: 0;
	overflow-wrap: anywhere;
}
.character-sheet-dialog h3 {
	margin: 0 0 8px;
	font-size: 1rem;
	color: #aaa;
}

.character-sheet-notice {
	margin: 0 0 12px;
}

button.character-sheet-delete {
	margin-inline-end: auto;
	font-size: var(--font-size-small);
	color: #999;
}
button.character-sheet-delete:hover, button.character-sheet-delete:focus-visible {
	color: #ef9a9a;
}

.character-farewell-buttons {
	flex-wrap: wrap;
	align-items: flex-end;
}

.character-farewell-delete-buttons {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	margin-inline-end: auto;
}

.character-sheet-summary {
	margin: 4px 0 12px;
	color: #999;
}

.character-sheet {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 16px;
}

.character-sheet-abilities {
	width: 100%;
	border-collapse: collapse;
}
.character-sheet-abilities th {
	font-weight: normal;
	text-align: left;
	color: #aaa;
}
.character-sheet-abilities tbody th {
	color: #eee;
}
.character-sheet-abilities th,
.character-sheet-abilities td {
	padding: 4px 6px;
	border-bottom: 1px solid #2a2d36;
}

.character-sheet-traits {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 6px 16px;
	margin: 0;
}
.character-sheet-traits dt {
	color: #aaa;
}
.character-sheet-traits dd {
	margin: 0;
}

.character-sheet-items {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-wrap: anywhere;
}
.character-sheet-items li {
	display: flex;
	align-items: center;
	gap: 8px;
}
.character-sheet-items .item-icon {
	display: inline-flex;
	font-size: 1.4em;
}
.character-sheet-items .item-icon .icon {
	vertical-align: 0;
}

.character-sheet-none {
	margin: 0;
	color: #999;
}

.home-page {
	flex: 1;
	overflow-y: auto;
}

.home-logo {
	display: block;
	margin: 16px auto;
}

.home-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 75px;
	margin: 35px;
}

.home-body .universes {
	box-sizing: border-box;
	width: 100%;
	max-width: 720px;
	padding: 0;
	border: none;
	background: none;
}

/* Home's headings shrink with the window, from the h1 size on a wide screen to the h2 size on a phone */
.home-body h2 {
	font-size: clamp(var(--font-size-h2), 1.2rem + 1.5vw, var(--font-size-h1));
	text-align: center;
}

.universe-item h3 {
	margin: 0;
	font-size: var(--font-size-h3);
	color: #59d95e;
}

.home-create {
	display: block;
	margin: 16px auto 0;
}

.home-empty {
	max-width: 720px;
	text-align: center;
}
.home-empty p {
	color: #999;
}

.universe-hint {
	color: #999;
}

.lobby-body {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	gap: 16px;
	min-height: 0;
	padding: 16px;
}

.lobby-side {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 16px;
	min-width: 280px;
	min-height: 0;
}

.chat {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	min-height: 200px;
}

.chat-log {
	flex: 1;
	overflow-y: auto;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	overflow-wrap: anywhere;
}
.chat-log li {
	padding: 2px 0;
}

.chat-time {
	margin-right: 6px;
	font-size: var(--font-size-small);
	color: #888;
}

.chat-name {
	margin-right: 6px;
	font-weight: bold;
	color: #42a5f5;
}
.chat-own .chat-name {
	color: #4caf50;
}

.chat-form {
	display: flex;
	gap: 8px;
}

.chat-form input {
	flex: 1;
	min-width: 0;
}

.members {
	display: flex;
	flex-direction: column;
	max-height: 200px;
}

.member-list {
	flex: 1;
	overflow-y: auto;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	overflow-wrap: anywhere;
}
.member-list li {
	padding: 2px 0;
}

.characters {
	display: flex;
	flex-direction: column;
	max-height: 200px;
}

.create-character {
	align-self: flex-start;
	margin-top: 12px;
}

.character-list {
	flex: 1;
	overflow-y: auto;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	overflow-wrap: anywhere;
}
.character-list li {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 2px 0;
}

.character-choice {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	gap: 0 6px;
	align-items: baseline;
	min-width: 0;
	padding: 4px 8px;
	border-color: transparent;
	background: none;
	color: #eee;
	text-align: left;
}
.character-choice:hover {
	background: #262933;
}
.character-choice[aria-pressed=true] {
	border-color: #4caf50;
	cursor: default;
}
.character-choice[aria-disabled=true] {
	color: #999;
	cursor: default;
}
.character-choice[aria-disabled=true]:hover {
	background: none;
}

.character-leaving {
	margin-inline-start: auto;
	font-size: var(--font-size-small);
	color: #ef9a9a;
}

.character-sheet-button {
	flex-shrink: 0;
	padding: 4px 8px;
	font-size: var(--font-size-small);
}

.character-playing {
	margin-inline-start: auto;
	font-size: var(--font-size-small);
	color: #4caf50;
}

.ghost-note {
	margin: 12px 0 0;
	color: #aaa;
}

.character-description,
.character-none {
	color: #999;
}

.character-none {
	margin: 12px 0 0;
}

.character-group {
	margin-inline-start: auto;
	font-size: var(--font-size-small);
	color: #aaa;
}

.member-own {
	color: #4caf50;
}

.member-away {
	color: #999;
}

.permadeath-warning {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid #c62828;
	border-radius: 4px;
	background: #3a2f12;
	color: #f5d58a;
	font-weight: bold;
}
.permadeath-warning .icon {
	width: 1.4em;
	height: 1.4em;
	vertical-align: 0;
}
.permadeath-warning[hidden] {
	display: none;
}

.invite {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 640px;
	margin: 16px;
}
.invite p {
	margin: 0;
}

.invite-character-list {
	margin: 0;
}

.member-more {
	margin: 8px 0 0;
	font-size: var(--font-size-small);
	color: #999;
}

.map {
	display: flex;
	align-items: flex-start;
	justify-content: center;
}
