.page-head,
.section-head {
	margin-top: 25px;

	& h1 {
		margin: 0;
	}
}

.page-head {
	margin-top: 16px;
}

.entry {
	line-height: normal;
}

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 10px;
}

.subtext {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	color: rgb(183, 183, 183);
}

.subtext-left {
	min-width: 0;
}

.subtext-right {
	flex: none;
	text-align: right;
}

@media (max-width: 558px) {
	.subtext {
		flex-wrap: wrap;
		gap: 0 10px;
	}

	.subtext-right {
		margin-left: auto;
	}
}

.plain-link {
	padding: 0;
	background: none;
	border: 0;
	color: rgb(205, 205, 205);
	font: inherit;
	text-decoration: underline;
	text-shadow: var(--wv-text-shadow);
	cursor: pointer;

	&:hover {
		color: var(--wv-highlight);
	}
}

.page-gap {
	height: 10px;
}

.logo-banner {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 223px;
	margin: 10px 0 25px;
	background: black;
	border: 1px solid;
	border-color: var(--wv-sunken-edges);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 -1px 0 rgba(0, 0, 0, 0.6);

	&::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 1;
		box-shadow: inset 0 0 40px 6px rgba(0, 0, 0, 0.85), inset 0 3px 6px rgba(0, 0, 0, 0.9);
		pointer-events: none;
	}
}

.logo-banner-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.15);
	user-select: none;
}

@keyframes banner-in {
	from {
		opacity: 0;
	}
}

.logo-banner-logo {
	position: relative;
	z-index: 2;
	display: block;
	width: 100%;
	max-width: 512px;
	align-self: flex-start;
	margin-top: 43px;

	& img {
		display: block;
		width: 100%;
		height: auto;
		user-select: none;
	}

	& .logo-img {
		opacity: 0;
		color: transparent;
		filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.85));
	}

	& .logo-img.ready {
		opacity: 1;
		animation: banner-in 1.6s ease-in-out both;
	}
}

.logo-banner-buttons {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 4px;
	transform: translateY(12px);
}

@media (max-width: 558px) {
	.logo-banner {
		height: calc(30vw + 14px);
	}

	.logo-banner-logo {
		align-self: center;
		margin-top: 0;
		transform: translateY(-5px);
	}

	.logo-banner-buttons {
		justify-content: space-between;
		gap: 2px;

		& .button-fancy {
			--bf-margin-inline: 0;
			--bf-padding-inline: 7px;
			--bf-grow: 2px;
		}
	}

	.home-intro p {
		-webkit-hyphens: auto;
		hyphens: auto;
	}

	:is(.gallery-section, .home-section) .site-gallery .gallery {
		--gallery-columns: 3;
	}
}

@media (max-width: 380px) {
	.logo-banner-buttons .button-fancy {
		--bf-padding-inline: 4px;
	}
}

@media (max-width: 420px) {
	.view-all-extra {
		display: none;
	}
}

@media (pointer: coarse) {
	.plain-link,
	.api-link,
	.server-name {
		padding-block: 8px;
	}

	.api-link {
		padding-inline: 4px;
	}

	.entry-list .entry .entry-title {
		padding-block: 5px;
		margin-block: -5px;
	}

	.tag-chip {
		min-height: 30px;
	}

	.entry-list .entry {
		padding-block: 5px;
	}
}

.stretch {
	margin: 0 0 13px;
	text-align: justify;
	text-align-last: justify;
}

.home-intro {
	margin: 0 0 4px;

	& .panel {
		padding: 8px 12px;
	}

	& p {
		margin: 0;
		line-height: 1.5;
		text-align: justify;
		text-align-last: left;
	}
}

.home-badges {
	margin: 15px 0 0;

	& .badge-wall {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
		justify-items: center;
	}
}

.news-box {
	margin-top: 27px;
}

.news-box .ticker {
	border-top: 0;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, 162px);
	justify-content: space-between;
	gap: 22px 12px;
	margin: 10px 0 0;
}

@media (max-width: 372px) {
	.project-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 10px;

		& .card {
			width: 100%;
		}
	}
}

.project-card {
	position: relative;
}

.card-new {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 5;
	display: flex;
	pointer-events: none;
	animation: card-flash 1s infinite;
}

@keyframes card-flash {
	50% {
		opacity: 0.2;
	}
}

.work-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 14px;
	margin: 1px 0 6px;
}

@media (max-width: 558px) {
	.work-filters {
		justify-content: center;
	}
}

.no-results {
	margin-top: 40px;
	text-align: center;
}

.tag-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 8px 0;
}

.tag-chip {
	text-decoration: none;

	&.current {
		color: var(--wv-bright);
		box-shadow: 0 0 0 1px var(--wv-highlight);
	}
}

.entry.supporter {
	& .entry-title {
		color: #dddddd;
	}

	&.gold .entry-title {
		background: linear-gradient(45deg, #ffffff, #ffd700, #ffffff);
		background-size: 200% 100%;
		background-position: 100%;
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
		text-shadow: none;
		filter: drop-shadow(0 0 4px #ffd700) drop-shadow(0 0 8px #ffd900aa);
		animation: gold-shine 2s infinite, gold-bloom 2s infinite ease-in-out;
	}

	&.silver .entry-title {
		color: #c1cdde;
		text-shadow: 0 0 5px #ffffff20, 0 0 10px #ffffffac;
		animation: silver-pulse 2s infinite ease-in-out;
	}

	&.bronze .entry-title {
		color: #cd7f32;
	}

	&:is(.gold, .silver) .entry-title[data-text] {
		position: relative;
		isolation: isolate;
		text-shadow: none;
		filter: none;
		animation: none;

		&::before,
		&::after {
			content: attr(data-text);
			position: absolute;
			inset: 0;
			pointer-events: none;
		}
	}

	&.gold .entry-title[data-text] {
		background: none;

		&::before {
			z-index: -1;
			color: #ffd700;
			filter: drop-shadow(0 0 4px #ffd700) drop-shadow(0 0 8px #ffd900aa);
			animation: gold-bloom 2s infinite ease-in-out;
			will-change: filter;
		}

		&::after {
			background: linear-gradient(45deg, #ffffff, #ffd700, #ffffff);
			background-size: 200% 100%;
			background-position: 100%;
			-webkit-background-clip: text;
			background-clip: text;
			color: transparent;
			animation: gold-shine 2s infinite;
		}
	}

	&.silver .entry-title[data-text] {
		&::before,
		&::after {
			z-index: -1;
			color: transparent;
			will-change: opacity;
		}

		&::before {
			text-shadow: 0 0 5px #ffffff20, 0 0 10px #ffffffac;
			animation: silver-ebb 2s infinite ease-in-out;
		}

		&::after {
			text-shadow: 0 0 10px #ffffff20, 0 0 20px #ffffff50;
			opacity: 0;
			animation: silver-flood 2s infinite ease-in-out;
		}
	}
}

@keyframes silver-ebb {
	50% {
		opacity: 0;
	}
}

@keyframes silver-flood {
	50% {
		opacity: 1;
	}
}

@keyframes gold-shine {
	0% {
		background-position: -100%;
	}

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

@keyframes gold-bloom {
	50% {
		filter: drop-shadow(0 0 7px #ffcc00) drop-shadow(0 0 12px #ffcc00cc);
	}
}

@keyframes silver-pulse {
	50% {
		color: #c7d2e0;
		text-shadow: 0 0 10px #ffffff20, 0 0 20px #ffffff50;
	}
}

.view-all-bar {
	margin: 17px 0 5px;
}

.view-all-bar .dotted-divider > .button-fancy {
	flex-shrink: 1;
	min-width: 0;
	white-space: nowrap;
	text-align: center;
}

.go-back {
	margin: 5px 0 -10px;
}

.gallery-section + .gallery-section {
	margin-top: 10px;
}

.bunny {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 80px 0;

	& p {
		margin: 0 0 1em;
		text-align: center;
	}
}

.entry-split {
	display: flex;
	align-items: flex-start;
	gap: 40px;

	& .entry-body {
		flex: 1 1 56.7%;
		min-width: 0;
	}

	& .entry-side {
		display: flex;
		flex: 1 1 43.3%;
		flex-direction: column;
		gap: 20px;
		min-width: 0;
	}
}

@media (max-width: 930px) {
	.entry-split {
		flex-direction: column;
		gap: 20px;

		& .entry-body,
		& .entry-side {
			width: 100%;
		}
	}
}

.md {
	& > :first-child {
		margin-top: 0;
	}

	& > :last-child {
		margin-bottom: 0;
	}

	& img:not(.gallery img, .lightbox img) {
		display: block;
		max-width: 100%;
		height: auto;
		margin: 0 auto 1em;
	}

	& .code-wrap,
	& .md-images,
	& .md-embeds,
	& .md-buttons,
	& .message,
	& .video-player,
	& .audio-player {
		margin-bottom: 1em;
	}

	& p:has(> img:only-child) {
		text-align: center;
	}
}

.md-embeds {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.md-youtube {
	aspect-ratio: 16 / 9;
	background: black;
	border: 1px solid;
	border-color: var(--wv-sunken-edges);

	& iframe {
		display: block;
		width: 100%;
		height: 100%;
		border: 0;
	}
}

.md-bandcamp {
	display: block;
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	border: 0;
}

.md-problem {
	padding: 4px 8px;
	border: 1px dashed var(--wv-highlight);
	color: var(--wv-highlight);
}


.entry-side .md-youtube,
.entry-side .md-bandcamp {
	border: 1px solid var(--wv-line);
}

.md h2 {
	margin: 25px 0 10px;
	padding-bottom: 5px;
	font-size: var(--wv-h1-size);
}

.entry-header {
	margin-top: 10px;

	& .md > :last-child,
	& img {
		margin-bottom: 0;
	}

	& img {
		width: 100%;
	}
}

.hidden-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.md .md-center,
.md .md-center p {
	text-align: center;

	& > * {
		margin-left: auto;
		margin-right: auto;
	}
}

.shell-nav,
.shell-bar {
	position: relative;
}

.shell-nav::before,
.shell-nav::after,
.shell-bar::before,
.shell-bar::after {
	content: "+";
	position: absolute;
	top: 50%;
	color: var(--wv-dim);
	line-height: 1;
	transform: translateY(-50%);
	pointer-events: none;
	user-select: none;
}

.shell-nav::before,
.shell-bar::before {
	left: 4px;
}

.shell-nav::after,
.shell-bar::after {
	right: 4px;
}

.shell-nav .navbar::before,
.shell-nav .navbar::after {
	content: "-";
	align-self: center;
	margin-inline: 8px;
	color: var(--wv-dim);
	user-select: none;
}

.shell .shell-bar {
	padding-inline: 24px;
}

@media (max-width: 558px) {
	.shell-nav::before,
	.shell-nav::after,
	.shell-nav .navbar::before,
	.shell-nav .navbar::after {
		display: none;
	}

	.shell-nav .navbar {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.shell-nav .navbar .navbar-btn {
		min-width: 0;
		padding: 0 2px;
	}
}

.gallery-item img,
.lightbox-img {
	background: linear-gradient(0deg, rgb(21, 68, 187) 0%, rgb(4, 3, 34) 100%);
}

.wv-base:is(body, .shell) {
	line-height: normal;
}

.shell-main,
.shell-main > :is(section, article) {
	display: flex;
	flex-direction: column;
}

.shell .shell-nav {
	background:
		linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.1) 33%, transparent 100%),
		var(--wv-strip-face);
}

.shell .shell-bar {
	background: linear-gradient(180deg, black 0%, rgb(25, 25, 25) 33%, black 100%);
}

.entry.supporter .entry-icon {
	margin-left: 0;
}

.entry.supporter .entry-icon img {
	width: 12px;
	height: 12px;
	padding-left: 4px;
}


.shell-bar:has(> .site-foot) {
	container-type: inline-size;
}

.site-foot {
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.site-foot-socials {
	display: flex;
	align-items: center;
	margin-left: -8px;
}

.site-foot-spacer {
	flex: 1;
}

@container (max-width: 780px) {
	.site-foot-socials {
		display: none;
	}
}

@container (max-width: 440px) {
	.site-foot {
		justify-content: center;
	}

	.site-foot-rendered,
	.site-foot-spacer {
		display: none;
	}
}

@media (max-width: 558px) {
	.shell .entry-list .entry:not(.supporter) .entry-note {
		display: none;
	}

	.shell .entry-list .entry.supporter {
		flex-wrap: nowrap;
		align-items: center;

		& .entry-left {
			min-width: 0;
		}

		& .entry-title {
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}

		& .entry-note {
			flex: none;
			flex-basis: auto;
			margin-left: auto;
			padding-left: 0;
			color: #ccc;
			text-align: right;
			white-space: nowrap;
		}
	}
}

.home-badges {
	margin-top: 20px;
}

.home-sections {
	counter-reset: home-section;
}

.home-section {
	counter-increment: home-section;
	margin-top: 30px;
}

.shell .home-section-title {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 10px;
	color: var(--wv-h1-color);
	font-size: var(--wv-h1-size);

	& > :last-child:not(:first-child) {
		margin-left: auto;
		font-family: var(--wv-font, monospace, monospace);
		font-size: var(--wv-font-size, 13px);
		text-shadow: var(--wv-text-shadow);
	}
}

.shell .home-section-title {
	flex-wrap: wrap;
}

.shell .home-section-title > .work-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
	margin-left: auto;
	align-self: center;

	& .tag-chip {
		cursor: pointer;
	}

	& .tag-chip:hover {
		transform: translateX(-2px);
	}

	& .tag-chip:active {
		transform: translate(-2px, 1px);
	}

	& .tag-chip.off {
		opacity: 0.4;
		text-decoration: line-through;
	}
}

.message .message-text > p:first-child:has(> strong:only-child) {
	margin-bottom: 2px;
}

.md {
	& mark {
		padding: 0 3px;
		background: #c9a227;
		color: black;
		box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3);
	}

	& .md-spoiler {
		padding: 0 3px;
		background: repeating-linear-gradient(-45deg, #1d1d1d 0 3px, #262626 3px 6px);
		border: 1px solid #333333;
		color: transparent;
		text-shadow: none;
		cursor: help;
		transition: color 0.4s ease-out, background 0.4s ease-out;

		& * {
			color: transparent !important;
		}

		&:hover,
		&:focus {
			background: #111111;
			color: var(--wv-text);
			text-shadow: var(--wv-text-shadow);
			outline: none;

			& * {
				color: inherit !important;
			}
		}
	}

	& ol:not([class]) {
		padding-left: 2.4em;
	}

	& li:has(> input[type="checkbox"]) {
		list-style: none;
		margin-left: -1.2em;

		&::marker {
			content: none;
		}
	}

	& input[type="checkbox"] {
		vertical-align: -2px;
		margin: 0 6px 0 0;
		accent-color: var(--wv-accent);
	}

	& table {
		margin: 0 0 1em;
		border-collapse: collapse;
		background: var(--wv-sunken-face);
		border: 1px solid;
		border-color: var(--wv-sunken-edges);
		box-shadow: var(--wv-sunken-shade);
	}

	& th,
	& td {
		padding: 3px 10px;
		border-right: 1px dotted var(--wv-line);
	}

	& th {
		border-bottom: 1px dotted var(--wv-line);
		color: var(--wv-bright);
		text-align: left;
	}

	& tbody tr:nth-child(odd) {
		background: var(--wv-row-alt);
	}

	& dl {
		margin: 0 0 1em;
	}

	& dt {
		color: var(--wv-bright);
		font-weight: bold;
	}

	& dd {
		margin: 0 0 4px 1.6em;
		padding-left: 10px;
		border-left: 2px dotted var(--wv-line);
	}

	& sup a {
		padding: 0 1px;
		text-decoration: none;
	}

	& .footnotes {
		margin-top: 25px;
		color: var(--wv-dim);
		font-size: 0.92em;

		& hr {
			margin-bottom: 12px;
		}

		& p {
			margin: 0;
		}

		& li {
			margin-bottom: 3px;
		}
	}

	& :is(h2, h3, h4, h5, h6)[id] {
		scroll-margin-top: 12px;
	}
}

.md-details {
	margin: 0 0 1em;

	& > summary {
		display: flex;
		align-items: center;
		gap: 8px;
		padding: 4px 10px;
		background: var(--wv-raised-face);
		border: 1px solid;
		border-color: var(--wv-raised-edges);
		box-shadow: var(--wv-raised-shine);
		color: var(--wv-bright);
		cursor: pointer;
		list-style: none;
		user-select: none;

		&::-webkit-details-marker {
			display: none;
		}

		&::before {
			content: "+";
			width: 1ch;
			color: var(--wv-accent-light);
			font-weight: bold;
		}

		&:hover {
			color: var(--wv-highlight);
		}
	}

	&[open] > summary::before {
		content: "-";
	}

	& > .md-details-body {
		padding: 10px 12px;
		background: var(--wv-sunken-face);
		border: 1px solid;
		border-top: 0;
		border-color: var(--wv-sunken-edges);
		box-shadow: var(--wv-sunken-shade);

		& > :last-child {
			margin-bottom: 0;
		}
	}
}

.shell {
	--wv-shell-face: url("/static/img/grain.png"), linear-gradient(0deg, rgb(0, 0, 0) 0%, rgb(34, 34, 34) 100%);
}


body .shell {
	--shell-shadow: rgba(0, 0, 0, 0.45);

	box-shadow: 0 0 45px 35px rgb(0, 0, 0), 0 0 120px 70px rgba(0, 0, 0, 0.85);
}

.home-intro .panel {
	box-shadow: var(--wv-sunken-shade), 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-badges .badge img {
	box-shadow: 0 3px 5px rgba(0, 0, 0, 0.9);
}

.news-box {
	box-shadow: 0 0 0 1px black, 0 5px 12px rgba(0, 0, 0, 0.8);
}

.project-grid .card,
.gallery-grid .gallery-item {
	box-shadow: 0 0 0 1px black, 0 5px 10px rgba(0, 0, 0, 0.85);
}

.project-grid .card {
	border-color: #6a6a6a #1a1a1a #0a0a0a #4a4a4a;

	& .card-title {
		border: 1px solid;
		border-color: #c84a4a #3a0505 #240303 #a03030;
		background-color: var(--wv-accent);
		background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%, transparent 47%, rgba(0, 0, 0, 0.68) 100%);
		box-shadow: 0 -1px 0 black;
	}

	&:visited,
	&:visited .card-title {
		color: var(--wv-bright);
	}

	&:visited .card-title {
		border-color: #161010 #7a5050 #946a6a #161010;
		background-color: #6a3d3d;
		color: #d6d6d6;
	}

	@media (hover: hover) and (pointer: fine) {
		&:hover {
			box-shadow: 0 0 0 1px black, 0 12px 16px rgba(0, 0, 0, 0.9);
		}
	}
}

:is(.page-head, .section-head) h1,
.shell .home-section-title,
.subtext,
.entry-list {
	text-shadow: var(--wv-text-shadow);
}

.entry-list {
	padding: 2px;
	background: var(--wv-sunken-face);
	border: 1px solid;
	border-color: var(--wv-sunken-edges);
	box-shadow: var(--wv-sunken-shade), 0 1px 0 rgba(255, 255, 255, 0.06);

	& .entry {
		padding: 2px 4px;
	}

	& .entry.striped {
		background: rgba(255, 255, 255, 0.05);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.5);
	}
}

:root:root {
	--wv-groove-dark: rgb(0, 0, 0);
	--wv-groove-light: rgba(255, 255, 255, 0.16);
}

.shell .home-section-title {
	text-shadow: var(--wv-head-shadow);
}

.home-badges .badge {
	& img {
		transition: box-shadow 0.2s ease;
	}

	&:hover img {
		box-shadow: 0 9px 7px rgba(0, 0, 0, 0.85), 0 2px 2px black;
	}
}

.wv-base h2,
.shell .home-section-title {
	border-bottom: 1px solid var(--wv-groove-dark);
	box-shadow: 0 1px 0 var(--wv-groove-light);
}

.shell .page-div {
	height: 0;
	border: 0;
	border-top: 1px solid var(--wv-groove-dark);
	border-bottom: 1px solid var(--wv-groove-light);
}

:root:root {
	--head-fade: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.42) 100%);
}

.wv-base h2,
.shell .home-section-title,
.shell :is(.page-head, .section-head) {
	position: relative;
	z-index: 0;

	&::before {
		content: "";
		position: absolute;
		inset: -5px 0 0;
		z-index: -1;
		background:
			linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 100%) left / 1px 100% no-repeat,
			linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.09) 100%) right / 1px 100% no-repeat,
			var(--head-fade);
		pointer-events: none;
	}
}

.shell :is(.page-head, .section-head) {
	padding-bottom: 5px;
}



.shell :is(.page-head, .section-head) + .page-div {
	margin-top: 0;
}

.wv-base h2,
.shell .home-section-title,
.shell .section-head,
.shell .page-head:not(.page-head-panel) {
	padding-left: 8px;
	padding-right: 8px;
}

.shell .page-head-panel {
	margin-bottom: 22px;
	padding: 0;

	&::before {
		display: none;
	}

	& .panel {
		padding: 10px 12px 11px;
		box-shadow: var(--wv-sunken-shade), 0 1px 0 rgba(255, 255, 255, 0.06);
	}

	& h1 {
		margin: 0;
	}
}

.shell .entry-list .entry {
	padding-right: 2px;
}

.shell .home-section-title {
	margin-bottom: 14px;
	padding-bottom: 7px;
}

.gallery-head .subtext-right {
	display: flex;
	align-items: baseline;

	& .head-sep {
		margin: 0 1ch;
		color: var(--wv-dim);
	}
}

.head-count {
	color: var(--wv-dim);
}

.servers {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 2px;
	background: var(--wv-sunken-face);
	border: 1px solid;
	border-color: var(--wv-sunken-edges);
	box-shadow: var(--wv-sunken-shade), 0 1px 0 rgba(255, 255, 255, 0.06);
}

.server {
	padding: 6px 8px 7px;
	background: rgba(255, 255, 255, 0.03);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.server-top,
.server-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
}

.server-bottom {
	margin-top: 5px;
}

.server-icon {
	display: inline-flex;
	flex: none;
}

.server-name {
	color: var(--wv-bright);
}

.server-kind {
	color: var(--wv-dim);
}

.server-addr {
	padding: 0 5px;
	background: black;
	border: 1px solid;
	border-color: var(--wv-sunken-edges);
	color: #9fe39f;
	user-select: all;
}

.server-stats {
	margin-left: auto;
	color: var(--wv-dim);
	white-space: nowrap;

	& .head-sep {
		margin: 0 0.6ch;
	}
}

.server-beats {
	position: relative;
	display: flex;
	flex: 1 1 240px;
	gap: 2px;
	height: 16px;
	min-width: 0;
}

.beat {
	flex: 1 1 0;
	min-width: 2px;
	max-width: 9px;
	border: 1px solid rgba(0, 0, 0, 0.75);
	border-radius: 2px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
	transition: transform 0.15s ease;

	&.beat-up {
		background: linear-gradient(180deg, #8ee88e 0%, #4fbf4f 48%, #1f7a1f 52%, #3aa33a 100%);
	}

	&.beat-down {
		background: linear-gradient(180deg, #ff9a9a 0%, #e04848 48%, #8a1414 52%, #c23232 100%);
	}

	&.beat-none {
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(0, 0, 0, 0.2) 51%, rgba(255, 255, 255, 0.03) 100%);
		box-shadow: none;
	}

	&:hover {
		filter: brightness(1.3);
		transform: translateY(-2px);
	}
}

.server-note {
	margin-left: auto;
	color: var(--wv-dim);
	text-align: right;

	& .head-sep {
		margin: 0 0.6ch;
	}
}


.mini-servers {
	display: flex;
	flex-direction: column;
	gap: 4px;

	& .message {
		padding: 3px 8px;
	}

	& .message-text {
		flex: 1 1 auto;
	}
}

.mini-line {
	display: flex;
	align-items: center;
	gap: 2px 10px;
	min-width: 0;
	white-space: nowrap;

	& > * {
		flex: none;
	}

	& > .mini-info {
		flex: 0 1 auto;
		overflow: hidden;
		min-width: 0;
		text-overflow: ellipsis;
	}
}

.mini-servers .message-text a.mini-name {
	color: var(--wv-bright);
	text-decoration: none;

	&:hover,
	&:focus-visible {
		color: #7be27b;
		text-decoration: underline;
	}
}

.mini-down .message-text a.mini-name:hover {
	color: #ff8a8a;
}


.server:target {
	box-shadow: inset 0 0 0 1px var(--wv-accent-light), inset 0 1px 0 rgba(255, 255, 255, 0.05);
	scroll-margin-top: 12px;
}

.mini-kind,
.mini-stats {
	color: var(--wv-dim);
}

.mini-addr {
	padding: 0 5px;
	background: rgba(0, 0, 0, 0.6);
	border: 1px solid;
	border-color: var(--wv-sunken-edges);
	color: var(--wv-bright);
	user-select: all;
}

.mini-stats {
	display: flex;
	align-items: center;
	margin-left: auto;
	padding-left: 10px;

	& .head-sep {
		margin: 0 0.6ch;
	}
}

.mini-ms,
.mini-up {
	display: inline-block;
	text-align: right;
}

.mini-ms {
	min-width: 6ch;
}

.mini-up {
	min-width: 9ch;
}

.mini-beats {
	position: relative;
	display: inline-flex;
	gap: 1px;
	height: 11px;
	margin-right: 10px;
}

.mini-beat {
	width: 4px;
	border: 1px solid rgba(0, 0, 0, 0.75);
	border-radius: 1px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
	transition: transform 0.15s ease;

	&.up {
		background: linear-gradient(180deg, #8ee88e 0%, #4fbf4f 48%, #1f7a1f 52%, #3aa33a 100%);
	}

	&.down {
		background: linear-gradient(180deg, #ff9a9a 0%, #e04848 48%, #8a1414 52%, #c23232 100%);
	}

	&.none {
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(0, 0, 0, 0.2) 51%, rgba(255, 255, 255, 0.03) 100%);
		box-shadow: none;
	}

	&.up:hover,
	&.down:hover {
		filter: brightness(1.3);
		transform: translateY(-2px);
	}
}

@media (max-width: 700px) {
	.mini-line {
		flex-wrap: wrap;
		white-space: normal;

		& > .mini-info {
			flex-basis: 100%;
		}
	}

	.mini-stats {
		margin-left: 0;
		padding-left: 0;
	}

	.mini-beats {
		display: none;
	}
}

.status-cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px 10px;
	min-height: 26px;
	margin: 20px 0 0;
}

.status-sep {
	align-self: stretch;
	width: 0;
	margin: 4px 0;
	border-left: 1px solid var(--wv-groove-dark);
	border-right: 1px solid var(--wv-groove-light);
}

.status-tag {
	position: relative;
	display: block;
	line-height: 0;
	border-radius: 13px;
	transition: transform 0.2s ease;
	user-select: none;

	&::after {
		content: "";
		position: absolute;
		inset: 1px;
		border-radius: 12px;
		background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%) no-repeat;
		background-size: 250% 100%;
		background-position: 130% 0;
		opacity: 0;
		pointer-events: none;
	}

	&:hover::after {
		animation: tag-glint 0.7s ease-out;
	}

	& img {
		display: block;
		width: auto;
		height: 26px;
		filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.9));
		transition: filter 0.2s ease;
	}

	&:hover {
		transform: translateY(-5px);

		& img {
			filter: drop-shadow(0 9px 7px rgba(0, 0, 0, 0.85)) drop-shadow(0 2px 2px black);
		}
	}

	&:focus-visible {
		outline: 1px dotted white;
		outline-offset: 2px;
	}
}

.status-section {
	margin-top: 25px;
}

.status-posts {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
}

.status-post {
	min-width: 0;

	& .md > :last-child {
		margin-bottom: 0;
	}
}

.status-post-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2px 12px;
	margin-bottom: 4px;
}

.api-link {
	flex: none;
	margin-left: 4px;
	color: var(--wv-dim);
	text-decoration: none;
	cursor: pointer;

	&:hover,
	&:focus-visible {
		color: var(--wv-bright);
		text-decoration: underline;
	}

	&:active {
		text-decoration: underline;
	}
}


@media (max-width: 600px) {
	.status-sep {
		display: none;
	}
}

@keyframes tag-glint {
	0% {
		background-position: 130% 0;
		opacity: 0;
	}

	25% {
		opacity: 1;
	}

	100% {
		background-position: 55% 0;
		opacity: 0;
	}
}

.server-name:is(a),
.server-name:is(a):visited {
	color: var(--wv-bright);
	text-decoration: none;
}

.server-name:is(a):hover {
	text-decoration: underline;
}
