.content .server-page-link {
	color: #ffd2a8;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.content .server-page-link:hover {
	color: #fff;
}

.game-server-wrap {
	width: min(100%, 1000px);
	max-width: 1000px;
}

.game-server {
	--game-text: #f5f2ee;
	--game-muted: #c4c0bb;
	--game-panel: rgba(38, 38, 38, 0.94);
	container-type: inline-size;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	padding: clamp(12px, 2.5vw, 28px);
	font-family: Arial, Helvetica, sans-serif;
	text-align: left;
	color: var(--game-text);
}

.game-server *,
.game-server *::before,
.game-server *::after {
	box-sizing: border-box;
}

.game-server h1,
.game-server h2,
.game-server h3,
.game-server p,
.game-server figure {
	margin-top: 0;
}

.game-server h1 {
	margin-bottom: 14px;
	font-size: clamp(1.9rem, 3.3vw, 3.1rem);
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.game-server h2 {
	margin-bottom: 18px;
	font-size: clamp(1.35rem, 3vw, 1.9rem);
	line-height: 1.2;
}

.game-server a {
	color: #ffd2a8;
}

.game-server a:hover {
	color: #fff;
}

.game-server__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
	gap: clamp(20px, 4vw, 48px);
	align-items: center;
	padding: clamp(20px, 4vw, 46px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	background:
		radial-gradient(ellipse at 8% 0%, color-mix(in srgb, var(--server-accent) 28%, transparent), transparent 58%),
		var(--game-panel);
	box-shadow: 0 22px 65px rgba(0, 0, 0, 0.32);
}

.game-server--infinityevolved .game-server__hero {
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
	gap: clamp(18px, 3vw, 24px);
	padding: clamp(24px, 4vw, 36px);
}

.game-server--infinityevolved .game-server__hero h1 {
	font-size: clamp(2.3rem, 4.5cqi, 2.7rem);
}

.game-server__identity {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 26px 0 14px;
}

.game-server__icon {
	width: 48px;
	height: 48px;
	object-fit: contain;
	background: rgba(255, 255, 255, 0.04);
}

.game-server__eyebrow {
	margin: 0 0 8px;
	color: var(--server-accent);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.5;
	text-transform: uppercase;
}

.game-server__identity .game-server__eyebrow {
	margin: 0;
}

.game-server__intro {
	max-width: 62ch;
	margin-bottom: 22px;
	color: var(--game-muted);
	font-size: 1rem;
	line-height: 1.7;
}

.game-server__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.game-server__button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border: 1px solid var(--server-accent);
	background: var(--server-accent);
	color: #111 !important;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.game-server__button:hover {
	filter: brightness(1.12);
}

.game-server__button--secondary {
	border-color: rgba(255, 255, 255, 0.24);
	background: rgba(255, 255, 255, 0.06);
	color: var(--game-text) !important;
}

.game-server__button--unavailable {
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.04);
	color: var(--game-muted) !important;
	cursor: not-allowed;
}

.game-server__hero-art {
	display: flex;
	min-width: 0;
	min-height: 0;
	align-items: center;
	justify-content: center;
	margin: 0;
}

.game-server__hero-art img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: 380px;
	object-fit: contain;
}

.game-server--infinityevolved .game-server__hero-art {
	aspect-ratio: 3 / 4;
	overflow: hidden;
}

.game-server--infinityevolved .game-server__hero-art img {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
	object-position: 42% 50%;
	animation: game-server-hero-pan 28s ease-in-out infinite alternate;
}

@keyframes game-server-hero-pan {
	to {
		object-position: 58% 50%;
	}
}

.game-server__live,
.game-server__panel {
	margin-top: 22px;
	padding: clamp(18px, 3vw, 28px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: var(--game-panel);
}

.game-server__section-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.game-server__section-heading h2 {
	margin-bottom: 0;
}

.game-server__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border: 1px solid currentColor;
	color: #d3d5da;
	font-size: 0.82rem;
	font-weight: 700;
}

.game-server__status::before {
	width: 8px;
	height: 8px;
	background: currentColor;
	content: "";
}

.game-server__status--online {
	color: #68dc91;
}

.game-server__status--offline {
	color: #ff8291;
}

.game-server__status--pending {
	color: #d3d5da;
}

.game-server__live-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
	gap: 12px;
	margin-top: 20px;
}

.game-server__live-stat {
	display: flex;
	min-height: 80px;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	padding: 14px;
	background: rgba(255, 255, 255, 0.055);
}

.game-server__label,
.game-server__details dt {
	color: var(--game-muted);
	font-size: 0.76rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.game-server__live-stat strong {
	font-size: 1.25rem;
}

.game-server__player-list {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.game-server__player-list h3 {
	margin: 0;
	font-size: 1rem;
}

.game-server__player-list ul,
.game-server__list {
	display: grid;
	gap: 9px;
	margin: 12px 0 0;
	padding-left: 22px;
	color: var(--game-muted);
	line-height: 1.6;
}

.game-server__player-list li[hidden] {
	display: none;
}

.game-server__player-message,
.game-server__updated,
.game-server__bulletin time {
	margin: 10px 0 0;
	color: var(--game-muted);
	font-size: 0.86rem;
	line-height: 1.5;
}

.game-server__player-list-toggle {
	margin-top: 10px;
	padding: 6px 10px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	background: rgba(255, 255, 255, 0.06);
	color: var(--game-text);
	cursor: pointer;
	font: inherit;
	font-size: 0.84rem;
}

.game-server__player-list-toggle:hover {
	border-color: var(--server-accent);
}

.game-server__player-list-toggle:focus-visible,
.game-server__copy:focus-visible,
.game-server a:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.game-server__bulletin-status {
	margin-bottom: 8px;
	color: var(--server-accent);
	font-weight: 700;
}

.game-server__bulletin p:not(.game-server__eyebrow) {
	line-height: 1.6;
}

.game-server__columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.game-server__details {
	display: grid;
	gap: 16px;
	margin: 0;
}

.game-server__details dt {
	margin-bottom: 5px;
}

.game-server__details dd {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.game-server__copy {
	display: inline-block;
	margin-left: 8px;
	padding: 5px 8px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: transparent;
	color: var(--game-text);
	cursor: pointer;
	font: inherit;
	font-size: 0.75rem;
}

.game-server__placeholder p {
	max-width: 70ch;
	color: var(--game-muted);
	line-height: 1.65;
}

.game-server__rules > p:last-child {
	margin: 18px 0 0;
	color: var(--game-muted);
	font-size: 0.9rem;
	line-height: 1.6;
}

.game-server__gallery-stage {
	position: relative;
}

.game-server__gallery-nav {
	position: absolute;
	z-index: 1;
	top: calc((100% - 2.8em) / 2);
	display: grid;
	width: 42px;
	height: 54px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(12, 12, 12, 0.68);
	color: #fff;
	cursor: pointer;
	font: 300 2rem/1 Arial, Helvetica, sans-serif;
	transition: background-color 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.game-server__gallery-nav--previous {
	left: 10px;
}

.game-server__gallery-nav--next {
	right: 10px;
}

.game-server__gallery-nav:hover:not(:disabled) {
	border-color: var(--server-accent);
	background: color-mix(in srgb, var(--server-accent) 75%, #111);
}

.game-server__gallery-nav:focus-visible {
	border-color: var(--server-accent);
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.game-server__gallery-position {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	clip-path: inset(50%);
}

.game-server__gallery-nav:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.game-server__gallery-track {
	display: flex;
	width: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.game-server__gallery-track::-webkit-scrollbar {
	display: none;
}

.game-server__gallery-slide {
	flex: 0 0 100%;
	min-width: 0;
	margin: 0;
	scroll-snap-align: start;
	display: grid;
	grid-template-rows: auto 3.8em;
}

.game-server__gallery-enlarge {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.28);
	cursor: zoom-in;
}

.game-server__gallery-enlarge:focus-visible,
.game-server__image-dialog-close:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.game-server__gallery-enlarge img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.game-server__gallery-slide figcaption {
	height: 3.8em;
	overflow: hidden;
	padding: 9px 12px 0;
	color: var(--game-muted);
	font-size: 0.82rem;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.game-server__image-dialog {
	position: fixed;
	width: fit-content;
	max-width: 96vw;
	max-height: 96vh;
	overflow: visible;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--game-text);
}

.game-server__image-dialog::backdrop {
	background: rgba(0, 0, 0, 0.84);
}

.game-server__image-dialog img {
	display: block;
	width: auto;
	height: auto;
	max-width: 96vw;
	max-height: 90vh;
	object-fit: contain;
	box-shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
}

.game-server__image-dialog-close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	padding: 0 0 3px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	cursor: pointer;
	font: 300 2rem/1 Arial, Helvetica, sans-serif;
	text-shadow: 0 1px 5px #000;
}

.game-server__image-dialog p {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	margin: 0;
	padding: 28px 14px 12px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
	color: #fff;
	font-size: 0.86rem;
	text-shadow: 0 1px 3px #000;
}

.game-server__return {
	margin: 20px 0 4px;
	text-align: center;
}

@media (max-width: 860px) {
	.game-server-wrap > .menu {
		box-sizing: border-box;
		display: flex;
		flex: 1 0 100%;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		width: auto;
		height: auto;
		padding: 5px;
		font-size: 0;
		text-align: center;
	}

	.game-server-wrap .menu-label {
		display: none;
	}

	.game-server-wrap .menu-links {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 4px;
		width: 100%;
	}

	.game-server-wrap > .menu a,
	.game-server-wrap > .menu .discord-link {
		display: inline-block;
		margin: 0;
		padding: 7px 10px;
		font-size: 14px;
		line-height: 1.2;
		text-align: center;
	}
}

@media (max-width: 700px) {
	.game-server__hero,
	.game-server--infinityevolved .game-server__hero {
		grid-template-columns: 1fr;
	}

	.game-server__hero-art {
		order: 0;
	}

	.game-server__hero-art img {
		max-height: 300px;
	}

	.game-server__columns {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

@container (max-width: 700px) {
	.game-server__hero,
	.game-server--infinityevolved .game-server__hero {
		grid-template-columns: 1fr;
	}

	.game-server__hero-art {
		order: 0;
	}

}

.game-server__hero,
.game-server__live,
.game-server__panel,
.game-server__button,
.game-server__button--secondary,
.game-server__button--unavailable,
.game-server__status,
.game-server__live-stat,
.game-server__player-list-toggle,
.game-server__copy,
.game-server__hero-art,
.game-server__gallery-slide,
.game-server__gallery-enlarge {
	border-radius: 0;
}

@media (prefers-reduced-motion: reduce) {
	.game-server *,
	.game-server *::before,
	.game-server *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}

	.game-server--infinityevolved .game-server__hero-art img {
		animation: none;
		object-position: 50% 50%;
	}
}

.game-server--auction .auction-hero {
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 28px;
	align-items: center;
}

.game-server--auction .auction-hero h1 {
	margin-bottom: 12px;
}

.auction-connection {
	margin: 0;
	color: var(--game-muted);
}

.auction-connection strong {
	color: var(--game-text);
}

.auction-hero-count {
	display: grid;
	min-width: 150px;
	gap: 8px;
	padding: 18px;
	border-left: 2px solid var(--server-accent);
	background: rgba(255, 255, 255, 0.045);
}

.auction-hero-count strong {
	font-size: clamp(1.7rem, 4vw, 2.4rem);
	font-variant-numeric: tabular-nums;
}

.auction-browser-heading {
	margin-bottom: 20px;
}

.auction-read-only {
	color: var(--game-muted);
	font-size: 0.8rem;
}

.auction-filters {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px) auto;
	align-items: end;
	gap: 12px;
	padding: 16px;
	background: rgba(0, 0, 0, 0.18);
}

.auction-filters label {
	display: grid;
	gap: 7px;
}

.auction-filters input,
.auction-filters select {
	width: 100%;
	min-height: 44px;
	padding: 9px 11px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: #202020;
	color: var(--game-text);
	font: inherit;
}

.auction-filters input:focus-visible,
.auction-filters select:focus-visible,
.auction-filter-submit:focus-visible,
.auction-pagination a:focus-visible {
	outline: 3px solid var(--server-accent);
	outline-offset: 2px;
}

.auction-feedback {
	min-height: 1.5em;
	margin: 18px 0 14px;
	color: var(--game-muted);
	line-height: 1.55;
}

.auction-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 245px), 1fr));
	gap: 14px;
}

.auction-card {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	min-width: 0;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.035);
}

.auction-item-placeholder {
	display: grid;
	min-height: 100px;
	place-items: center;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(0, 0, 0, 0.18);
	color: var(--server-accent);
	font-size: 1.6rem;
	font-weight: 700;
}

.auction-card-body {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	padding: 12px;
}

.auction-card-topline {
	display: flex;
	width: 100%;
	justify-content: space-between;
	gap: 8px;
	color: var(--game-muted);
	font-size: 0.7rem;
}

.auction-listing-id {
	font-variant-numeric: tabular-nums;
}

.auction-card h3 {
	margin: 10px 0 5px;
	font-size: 0.98rem;
	line-height: 1.35;
}

.auction-seller,
.auction-time {
	margin: 0 0 8px;
	color: var(--game-muted);
	font-size: 0.8rem;
	line-height: 1.4;
}

.auction-price {
	margin: 0 0 7px;
	color: var(--server-accent);
	font-size: 1.05rem;
	font-weight: 700;
}

.auction-price span {
	font-size: 0.83rem;
}

.auction-card-link {
	margin-top: auto;
	padding-top: 5px;
	font-size: 0.83rem;
	font-weight: 700;
}

.auction-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--game-muted);
	font-size: 0.86rem;
}

.auction-pagination a {
	padding: 7px 10px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: var(--game-text);
	text-decoration: none;
}

.auction-pagination a[aria-disabled="true"] {
	opacity: 0.4;
	pointer-events: none;
}

.auction-item-note,
.auction-detail-note {
	margin: 18px 0 0;
	color: var(--game-muted);
	font-size: 0.86rem;
	line-height: 1.55;
}

.auction-detail-layout {
	display: grid;
	grid-template-columns: minmax(150px, 230px) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	margin: 20px 0;
}

.auction-item-placeholder--large {
	min-height: 210px;
	font-size: 3rem;
}

.auction-detail .game-server__button {
	margin-top: 18px;
}

@media (max-width: 700px) {
	.game-server--auction .auction-hero {
		grid-template-columns: 1fr;
	}

	.auction-hero-count {
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.auction-filters {
		grid-template-columns: 1fr;
	}

	.auction-filter-submit {
		width: 100%;
	}

	.auction-detail-layout {
		grid-template-columns: 1fr;
	}

	.auction-item-placeholder--large {
		min-height: 150px;
	}
}
