[hidden] {
	display: none !important;
}

:root {
	--bg: #060a0b;
	--panel: #0d1415;
	--panel2: #121c1d;
	--text: #f3f5f2;
	--muted: #9ba7a3;
	--accent: #db3434;
	--accent2: #8b1e1e;
	--blue: #49a9e8;
	--green: #58d879;
	--line: rgba(255, 255, 255, .1);
	--max: 1200px;
	--radius: 8px;
	--shadow: 0 24px 80px rgba(0, 0, 0, .35)
}

* {
	box-sizing: border-box
}

html {
	scroll-behavior: smooth;
	min-height: 100%;
	background: #071010
}

body {
	margin: 0;
	color: var(--text);
	background: transparent;
	font-family: Inter, Arial, sans-serif;
	line-height: 1.6;
	overflow-x: hidden
}

a {
	color: inherit;
	text-decoration: none
}

button,
input,
select {
	font: inherit
}

.site-header {
	position: fixed !important;
	z-index: 50 !important;
	top: 0;
	left: 0;
	right: 0;
	height: 76px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 max(24px, calc((100vw - var(--max))/2));
	background: rgba(5, 8, 9, .82);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(16px)
}

.brand {
	display: flex;
	gap: 12px;
	align-items: center;
	font-weight: 800;
	letter-spacing: .08em
}

.brand-logo {
	width: 52px;
	height: 52px;
	object-fit: contain
}

.site-header nav {
	display: flex;
	align-items: center;
	gap: 24px
}

.site-header nav a {
	color: #d8ddda;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .09em
}

.site-header nav a:hover {
	color: #fff
}

.nav-login {
	min-height: 40px;
	padding: 0 15px;
	border: 1px solid rgba(255, 255, 255, .22);
	background: rgba(255, 255, 255, .06);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	cursor: pointer
}

.nav-login:hover {
	background: #5865f2;
	border-color: #5865f2
}

.menu-button {
	display: none;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent
}

.menu-button span {
	display: block;
	width: 24px;
	height: 2px;
	margin: 5px auto;
	background: #fff
}

#interactiveBackground {
	position: fixed !important;
	inset: 0 !important;
	z-index: 1 !important;
	width: 100vw !important;
	height: 100vh !important;
	pointer-events: none !important;
	background: radial-gradient(circle at 78% 18%, rgba(190, 42, 42, .24), transparent 34%), radial-gradient(circle at 20% 72%, rgba(45, 145, 220, .18), transparent 34%), linear-gradient(135deg, #061010 0%, #0b1515 52%, #120909 100%) !important
}

.site-header,
main,
footer {
	position: relative;
	z-index: 3
}

.hero {
	position: relative;
	min-height: 100vh;
	display: grid;
	align-items: center;
	overflow: hidden;
	padding: 130px 24px 75px;
	background: rgba(3, 8, 8, .27)
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: .08;
	background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 54px 54px
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, .68), rgba(0, 0, 0, .16) 65%, rgba(0, 0, 0, .38))
}

.hero-grid {
	position: absolute;
	right: -120px;
	top: 14%;
	width: 600px;
	height: 600px;
	border: 1px solid rgba(255, 255, 255, .08);
	transform: rotate(45deg)
}

.hero-grid:before,
.hero-grid:after {
	content: "";
	position: absolute;
	inset: 80px;
	border: 1px solid rgba(255, 255, 255, .07)
}

.hero-grid:after {
	inset: 165px
}

.hero-content {
	position: relative;
	z-index: 2;
	width: min(var(--max), 100%);
	margin: auto
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	margin-bottom: 20px;
	border: 1px solid rgba(255, 255, 255, .12);
	background: rgba(0, 0, 0, .28);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .1em
}

.status-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 8px;
	border-radius: 50%;
	background: #d7a24b;
	box-shadow: 0 0 14px rgba(215, 162, 75, .8)
}

.eyebrow {
	margin: 0 0 14px;
	color: #dc9999;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .22em;
	text-transform: uppercase
}

h1,
h2,
h3,
p {
	margin-top: 0
}

h1 {
	max-width: 900px;
	margin-bottom: 22px;
	font-family: "Black Ops One", Impact, sans-serif;
	font-size: clamp(62px, 10vw, 132px);
	font-weight: 400;
	line-height: .84;
	letter-spacing: -.025em
}

h1 span {
	color: var(--accent)
}

h2 {
	font-size: clamp(38px, 6vw, 74px);
	line-height: 1;
	letter-spacing: -.045em
}

.hero-copy {
	max-width: 700px;
	color: #ccd2ce;
	font-size: clamp(17px, 2vw, 21px)
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px
}

.primary-button,
.secondary-button,
.ghost-button {
	min-height: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 22px;
	border: 1px solid transparent;
	cursor: pointer;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: 11px
}

.primary-button {
	color: #fff;
	background: var(--accent)
}

.primary-button:hover {
	background: #ed4545
}

.secondary-button {
	color: #fff;
	background: rgba(255, 255, 255, .055);
	border-color: rgba(255, 255, 255, .3)
}

.secondary-button:hover {
	background: rgba(255, 255, 255, .11)
}

.ghost-button {
	color: #cbd3cf;
	border-color: transparent
}

.ghost-button:hover {
	color: #fff
}

.wide {
	width: 100%
}

.server-strip {
	width: min(940px, 100%);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-top: 70px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line)
}

.server-strip div {
	padding: 18px 20px;
	border-right: 1px solid var(--line)
}

.server-strip div:first-child {
	padding-left: 0
}

.server-strip div:last-child {
	border-right: 0
}

.server-strip span,
.status-details span,
.account-label {
	display: block;
	color: var(--muted);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .17em;
	text-transform: uppercase
}

.server-strip strong {
	display: block;
	margin-top: 3px;
	font-size: 14px
}

.scroll-cue {
	position: absolute;
	right: 30px;
	bottom: 34px;
	z-index: 2;
	color: #afb7b3;
	font-size: 10px;
	letter-spacing: .25em;
	writing-mode: vertical-rl
}

.section {
	padding: 110px 24px
}

.section>* {
	width: min(var(--max), 100%);
	margin-left: auto;
	margin-right: auto
}

.centered {
	text-align: center
}

.centered>p:last-child {
	max-width: 720px;
	margin-inline: auto;
	color: var(--muted)
}

.intro-section {
	background: rgba(8, 14, 15, .72);
	backdrop-filter: blur(6px);
	border-block: 1px solid rgba(255, 255, 255, .06)
}

.intro-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: end
}

.lead {
	margin-bottom: 0;
	color: #d9dfdc;
	font-size: clamp(19px, 2.6vw, 28px);
	line-height: 1.42
}

.quick-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-top: 55px;
	border: 1px solid var(--line)
}

.quick-stats article {
	padding: 30px;
	border-right: 1px solid var(--line);
	background: rgba(255, 255, 255, .025)
}

.quick-stats article:last-child {
	border-right: 0
}

.quick-stats strong {
	display: block;
	color: #e65353;
	font-size: 36px;
	line-height: 1
}

.quick-stats span {
	color: var(--muted);
	font-size: 12px
}

.dark-section {
	background: rgba(7, 12, 13, .72)
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 55px;
	border-top: 1px solid var(--line);
	border-left: 1px solid var(--line)
}

.feature-card {
	min-height: 285px;
	padding: 34px;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: linear-gradient(145deg, rgba(255, 255, 255, .03), transparent);
	transition: .25s ease
}

.feature-card:hover {
	transform: translateY(-3px);
	background: #121a1b
}

.feature-icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(219, 52, 52, .5);
	color: #ff5c5c;
	font-family: "Black Ops One"
}

.feature-card h3 {
	margin: 52px 0 10px;
	font-size: 21px
}

.feature-card p {
	color: var(--muted)
}

.store-section {
	background: rgba(12, 18, 19, .82);
	border-block: 1px solid rgba(255, 255, 255, .06)
}

.store-notice {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 45px;
	padding: 20px 22px;
	border: 1px solid rgba(88, 101, 242, .35);
	background: rgba(88, 101, 242, .08)
}

.store-notice strong,
.store-notice span {
	display: block
}

.store-notice span {
	color: #aeb8b4;
	font-size: 13px
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-top: 24px
}

.product-card {
	position: relative;
	padding: 34px;
	border: 1px solid var(--line);
	background: linear-gradient(150deg, rgba(20, 31, 32, .96), rgba(10, 16, 17, .94));
	box-shadow: var(--shadow)
}

.product-card.featured-product {
	border-color: rgba(219, 52, 52, .6)
}

.best-value {
	position: absolute;
	top: 0;
	right: 0;
	padding: 7px 10px;
	background: var(--accent);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .12em
}

.product-top {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	color: #c8d0cc;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .15em
}

.product-duration {
	color: #df7474
}

.product-card h3 {
	margin: 25px 0 4px;
	font-size: 28px
}

.price {
	font-size: 58px;
	font-weight: 800;
	line-height: 1
}

.price span {
	font-size: 22px;
	vertical-align: top
}

.product-card>p {
	margin-top: 16px;
	color: var(--muted)
}

.product-card ul {
	padding: 0;
	margin: 22px 0;
	list-style: none
}

.product-card li {
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .07);
	color: #d8ddda;
	font-size: 13px
}

.product-card li:before {
	content: "✓";
	margin-right: 9px;
	color: var(--green)
}

.purchase-choice {
	display: grid;
	gap: 8px;
	margin: 22px 0
}

.purchase-choice label {
	padding: 11px 12px;
	border: 1px solid var(--line);
	font-size: 12px;
	cursor: pointer
}

.purchase-choice label:has(input:checked) {
	border-color: rgba(219, 52, 52, .65);
	background: rgba(219, 52, 52, .08)
}

.purchase-choice input {
	accent-color: var(--accent);
	margin-right: 8px
}

.select-label {
	display: block;
	margin: 20px 0 7px;
	color: var(--muted);
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .12em
}

.store-select,
.amount-input {
	width: 100%;
	min-height: 46px;
	border: 1px solid var(--line);
	background: #0a1011;
	color: #fff;
	padding: 0 13px
}

.amount-input {
	display: flex;
	align-items: center
}

.amount-input input {
	width: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	color: #fff;
	padding: 10px
}

.donation-symbol {
	margin: 14px 0;
	color: var(--accent);
	font-size: 58px;
	line-height: 1
}

.donation-presets {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px
}

.donation-presets button {
	min-height: 40px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, .04);
	color: #fff;
	cursor: pointer
}

.donation-presets button.active,
.donation-presets button:hover {
	border-color: var(--accent);
	background: rgba(219, 52, 52, .12)
}

.store-footnote {
	margin-top: 20px !important;
	color: #7f8a86;
	font-size: 11px;
	text-align: center
}

.status-section {
	background: rgba(4, 8, 9, .67)
}

.status-shell {
	display: grid;
	grid-template-columns: .8fr 1.2fr;
	border: 1px solid var(--line);
	background: rgba(13, 21, 22, .9);
	box-shadow: var(--shadow)
}

.status-summary {
	padding: clamp(30px, 5vw, 58px);
	border-right: 1px solid var(--line)
}

.status-line {
	color: #c5cbc8
}

.status-player-count {
	margin: 32px 0
}

.status-player-count strong {
	display: block;
	font-size: 48px;
	line-height: 1
}

.status-player-count span {
	color: var(--muted);
	font-size: 12px
}

.status-details {
	display: grid;
	grid-template-columns: repeat(2, 1fr)
}

.status-details div {
	padding: 24px;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line)
}

.status-details div:nth-child(2n) {
	border-right: 0
}

.status-details div:nth-last-child(-n+2) {
	border-bottom: 0
}

.status-details strong {
	display: block;
	margin-top: 6px;
	font-size: 15px
}

.small-note {
	margin-top: 14px !important;
	color: #76817d;
	font-size: 11px
}

.rules-section {
	background: rgba(13, 20, 21, .77)
}

.rules-layout {
	display: grid;
	grid-template-columns: .8fr 1.2fr;
	gap: 80px
}

.muted {
	color: var(--muted)
}

.rules-list {
	border-top: 1px solid var(--line)
}

.rules-list article {
	display: grid;
	grid-template-columns: 55px 1fr;
	gap: 20px;
	padding: 25px 0;
	border-bottom: 1px solid var(--line)
}

.rules-list>article>span {
	color: var(--accent);
	font-weight: 800
}

.rules-list h3 {
	margin-bottom: 4px
}

.rules-list p {
	margin-bottom: 0;
	color: var(--muted)
}

.account-section {
	background: rgba(6, 11, 12, .72)
}

.account-card {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	padding: clamp(30px, 6vw, 70px);
	border: 1px solid var(--line);
	background: rgba(14, 22, 23, .85)
}

.account-preview {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 18px;
	align-items: center;
	padding: 26px;
	border: 1px solid var(--line);
	background: rgba(0, 0, 0, .18)
}

.account-preview .primary-button {
	grid-column: 1/-1
}

.avatar-placeholder {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #5865f2;
	font-weight: 800
}

.account-preview strong {
	display: block;
	font-size: 20px
}

.account-preview p {
	margin: 5px 0 0;
	color: var(--muted);
	font-size: 12px
}

.account-connection-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.connection-badge {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 6px 10px;
	border: 1px solid rgba(46, 213, 115, .55);
	background: rgba(46, 213, 115, .08);
	color: #65e495;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

footer {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 30px;
	padding: 30px max(24px, calc((100vw - var(--max))/2));
	border-top: 1px solid var(--line);
	background: rgba(4, 7, 8, .9)
}

footer p {
	margin: 0;
	color: #777f7c;
	font-size: 11px
}

.footer-links {
	display: flex;
	justify-content: center;
	gap: 25px;
	color: #aab3af;
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 800
}

.toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 90;
	padding: 12px 18px;
	transform: translate(-50%, 120px);
	opacity: 0;
	background: #fff;
	color: #101414;
	font-size: 13px;
	font-weight: 800;
	transition: .25s
}

.toast.show {
	transform: translate(-50%, 0);
	opacity: 1
}

.modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	place-items: center;
	padding: 20px
}

.modal.open {
	display: grid
}

.modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .78);
	backdrop-filter: blur(6px)
}

.modal-card {
	position: relative;
	width: min(520px, 100%);
	padding: 36px;
	border: 1px solid var(--line);
	background: #101819;
	box-shadow: var(--shadow)
}

.modal-card h2 {
	font-size: 38px
}

.modal-card p:not(.eyebrow) {
	color: var(--muted)
}

.modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 28px;
	cursor: pointer
}

@media(max-width:920px) {
	.menu-button {
		display: block
	}

	.site-header nav {
		position: absolute;
		top: 76px;
		left: 0;
		right: 0;
		display: none;
		align-items: stretch;
		flex-direction: column;
		gap: 0;
		padding: 12px 24px 20px;
		background: #0b0f10;
		border-bottom: 1px solid var(--line)
	}

	.site-header nav.open {
		display: flex
	}

	.site-header nav a {
		padding: 12px 0
	}

	.nav-login {
		margin-top: 8px
	}

	.feature-grid {
		grid-template-columns: 1fr 1fr
	}

	.product-grid {
		grid-template-columns: 1fr
	}

	.status-shell,
	.rules-layout,
	.account-card,
	.intro-grid {
		grid-template-columns: 1fr
	}

	.status-summary {
		border-right: 0;
		border-bottom: 1px solid var(--line)
	}

	.quick-stats {
		grid-template-columns: repeat(2, 1fr)
	}

	.quick-stats article:nth-child(2) {
		border-right: 0
	}

	.quick-stats article:nth-child(-n+2) {
		border-bottom: 1px solid var(--line)
	}

	footer {
		grid-template-columns: 1fr;
		text-align: center
	}

	.footer-links {
		flex-wrap: wrap
	}
}

@media(max-width:600px) {
	.brand span {
		font-size: 13px
	}

	.hero {
		padding: 120px 18px 65px
	}

	.hero-actions>* {
		width: 100%
	}

	.server-strip {
		grid-template-columns: 1fr 1fr;
		margin-top: 45px
	}

	.server-strip div:nth-child(2) {
		border-right: 0
	}

	.server-strip div:nth-child(-n+2) {
		border-bottom: 1px solid var(--line)
	}

	.section {
		padding: 80px 18px
	}

	.feature-grid {
		grid-template-columns: 1fr
	}

	.quick-stats {
		grid-template-columns: 1fr 1fr
	}

	.product-card {
		padding: 26px 20px
	}

	.store-notice {
		align-items: stretch;
		flex-direction: column
	}

	.donation-presets {
		grid-template-columns: repeat(2, 1fr)
	}

	.status-details {
		grid-template-columns: 1fr
	}

	.status-details div,
	.status-details div:nth-child(2n),
	.status-details div:nth-last-child(-n+2) {
		border-right: 0;
		border-bottom: 1px solid var(--line)
	}

	.status-details div:last-child {
		border-bottom: 0
	}

	.scroll-cue {
		display: none
	}

	.account-preview {
		grid-template-columns: 1fr;
		text-align: center
	}

	.avatar-placeholder {
		margin: auto
	}
}

@media(prefers-reduced-motion:reduce) {
	html {
		scroll-behavior: auto
	}

	#interactiveBackground {
		display: block !important
	}
}

/* ===== DEDICATED STORE PAGE ===== */
.site-header nav a[aria-current="page"] {
	color: #fff
}

.store-page-main {
	padding-top: 76px
}

.store-hero {
	position: relative;
	min-height: 52vh;
	display: grid;
	align-items: end;
	padding: 110px 24px 72px;
	background: linear-gradient(180deg, rgba(3, 8, 8, .25), rgba(8, 13, 14, .82));
	border-bottom: 1px solid var(--line)
}

.store-hero:before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .12));
	pointer-events: none
}

.store-hero-content {
	position: relative;
	z-index: 2;
	width: min(var(--max), 100%);
	margin: auto
}

.store-hero h1 {
	max-width: 800px;
	margin-bottom: 22px;
	font-family: "Black Ops One", Impact, sans-serif;
	font-size: clamp(58px, 9vw, 112px);
	font-weight: 400;
	line-height: .88;
	letter-spacing: -.025em
}

.store-hero h1 span {
	color: var(--accent)
}

.store-hero p:last-child {
	max-width: 690px;
	color: #cbd3cf;
	font-size: clamp(16px, 2vw, 20px)
}

.store-page .store-section {
	border-top: 0
}

@media(max-width:600px) {
	.store-hero {
		min-height: 44vh;
		padding: 95px 18px 55px
	}
}


/* Priority Queue account status */
.store-priority-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 18px auto 24px;
  padding: 20px 22px;
  border: 1px solid rgba(46, 213, 115, 0.5);
  background: rgba(8, 26, 21, 0.78);
}

.store-priority-status > div {
  display: grid;
  gap: 5px;
}

.store-priority-label {
  color: #2ed573;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.store-priority-status strong {
  font-size: 1.15rem;
}

.store-priority-status span:last-child {
  color: var(--muted);
}

.priority-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.priority-state-badge {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
}

.priority-state-badge.active {
  border-color: rgba(46, 213, 115, 0.65);
  color: #2ed573;
  background: rgba(46, 213, 115, 0.08);
}

.priority-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.priority-meta > div {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.14);
}

.priority-meta small {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.priority-meta strong {
  font-size: 0.84rem;
}

@media (max-width: 700px) {
  .store-priority-status {
    align-items: stretch;
    flex-direction: column;
  }

  .store-priority-status .secondary-button {
    text-align: center;
  }
}


/* Gift purchases and checkout polish */
.steam-linked-confirmation {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(46, 213, 115, .45);
  background: rgba(46, 213, 115, .08);
}
.steam-linked-confirmation strong,
.steam-linked-confirmation span { display: block; }
.steam-linked-confirmation span:last-child { color: var(--muted); font-size: 12px; }
.steam-linked-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2ed573;
  color: #071014;
  font-weight: 900;
  flex: 0 0 auto;
}
.gift-purchase { margin: 16px 0 18px; }
.gift-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.gift-toggle input { accent-color: var(--accent); }
.gift-recipient-fields {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(219,52,52,.35);
  background: rgba(0,0,0,.18);
}
.gift-recipient-fields label {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gift-steam-input {
  width: 100%;
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid var(--line);
  outline: 0;
  background: #080d0e;
  color: #fff;
  font: inherit;
}
.gift-steam-input:focus { border-color: rgba(219,52,52,.75); }
.gift-steam-input.valid { border-color: rgba(46,213,115,.7); }
.gift-steam-input.invalid { border-color: rgba(255,71,87,.8); }
.gift-recipient-fields small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; }
.gift-recipient-fields a { color: #fff; }
.gift-validation { display: block; min-height: 16px; margin-top: 6px; color: #ff767f; font-size: 10px; }
.gift-steam-input.valid ~ small + .gift-validation { color: #2ed573; }
.purchase-choice input:disabled + * { opacity: .5; }

.checkout-loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2,7,8,.88);
  backdrop-filter: blur(8px);
}
.checkout-loading[hidden] { display: none; }
.checkout-loading-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(420px, 100%);
  padding: 34px 28px;
  border: 1px solid var(--line);
  background: #0b1112;
  text-align: center;
  box-shadow: var(--shadow);
}
.checkout-loading-card span:last-child { color: var(--muted); font-size: 12px; }
.checkout-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255,255,255,.14);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: checkout-spin .8s linear infinite;
}
@keyframes checkout-spin { to { transform: rotate(360deg); } }
.checkout-busy { overflow: hidden; }
.primary-button:disabled,
.secondary-button:disabled { opacity: .58; cursor: not-allowed; transform: none; }
.checkout-summary-card { width: min(520px, calc(100% - 32px)); }
.checkout-summary-lines { display: grid; gap: 0; margin: 22px 0; border: 1px solid var(--line); }
.checkout-summary-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}
.checkout-summary-lines > div:last-child { border-bottom: 0; }
.checkout-summary-lines span { color: var(--muted); font-size: 12px; }
.checkout-summary-lines strong { text-align: right; font-size: 12px; overflow-wrap: anywhere; }
#checkoutSummaryGiftRow strong { color: #2ed573; }
.secure-paypal-note,
.secure-checkout-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.checkout-summary-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; }
.checkout-payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.payment-provider-button {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  text-align: left;
}
.payment-provider-button span {
  font-size: 14px;
  font-weight: 800;
}
.payment-provider-button small {
  font-size: 10px;
  line-height: 1.35;
  opacity: .78;
  font-weight: 500;
}
.checkout-cancel-link {
  width: 100%;
  margin-top: 12px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}
.checkout-cancel-link:hover { color: var(--text); }

@media (max-width: 600px) {
  .product-grid { gap: 16px; margin-top: 18px; }
  .product-card { padding: 24px 18px; }
  .product-card h3 { margin-top: 21px; font-size: 25px; }
  .price { font-size: 50px; }
  .purchase-choice { margin: 17px 0; }
  .gift-purchase { margin: 13px 0 16px; }
  .gift-recipient-fields { padding: 12px; }
  .checkout-summary-actions { grid-template-columns: 1fr; }
  .checkout-summary-actions .primary-button { order: -1; }
  .checkout-payment-options { grid-template-columns: 1fr; }
  .payment-provider-button { min-height: 64px; }
  .steam-linked-confirmation { align-items: flex-start; }
}


/* Native RGB clan-tag color picker */
.clan-color-picker {
  margin: 20px 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .16);
}

.clan-color-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.clan-color-heading .select-label {
  margin: 0 0 5px;
  color: #dfe6e2;
}

.clan-color-heading small {
  display: block;
  max-width: 360px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.clan-tag-preview {
  --clan-preview-color: #e53131;
  display: grid;
  place-items: center;
  min-width: 72px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--clan-preview-color) 70%, transparent);
  background: color-mix(in srgb, var(--clan-preview-color) 12%, #071014);
  box-shadow: inset 0 0 20px color-mix(in srgb, var(--clan-preview-color) 9%, transparent);
}

.clan-tag-preview span {
  color: var(--clan-preview-color);
  font-family: "Black Ops One", system-ui, sans-serif;
  font-size: 18px;
  letter-spacing: .08em;
  text-shadow: 0 0 12px color-mix(in srgb, var(--clan-preview-color) 55%, transparent);
}

.clan-color-main-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(155px, .7fr);
  gap: 10px;
}

.clan-native-color,
.clan-color-readout {
  min-height: 58px;
  border: 1px solid var(--line);
  background: #0a1011;
}

.clan-native-color {
  display: grid;
  grid-template-columns: 1fr 72px;
  align-items: center;
  gap: 12px;
  padding: 7px 8px 7px 13px;
  color: #dfe6e2;
  font-size: 12px;
  cursor: pointer;
}

.clan-native-color input[type="color"] {
  width: 72px;
  height: 42px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: transparent;
  cursor: pointer;
}

.clan-native-color input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.clan-native-color input[type="color"]::-webkit-color-swatch,
.clan-native-color input[type="color"]::-moz-color-swatch {
  border: 0;
}

.clan-color-readout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}

.clan-color-readout small,
.clan-color-readout strong {
  display: block;
}

.clan-color-readout small {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.clan-color-readout strong {
  margin-top: 3px;
  font-size: 12px;
  letter-spacing: .08em;
}

.clan-color-swatch {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .35);
  background: #e53131;
}

.clan-rgb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.clan-rgb-field {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #0a1011;
}

.clan-rgb-field span {
  display: grid;
  place-items: center;
  align-self: stretch;
  border-right: 1px solid var(--line);
  color: #e57d7d;
  font-size: 11px;
  font-weight: 800;
}

.clan-rgb-field input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
}

.clan-rgb-field:focus-within,
.clan-native-color:focus-within {
  border-color: rgba(229, 49, 49, .7);
  box-shadow: 0 0 0 2px rgba(229, 49, 49, .1);
}

.clan-color-value {
  margin: 10px 0 0 !important;
  color: #aeb9b4 !important;
  font-size: 11px;
  letter-spacing: .04em;
  text-align: right;
}

.checkout-color-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.checkout-color-value i {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .35);
  background: #e53131;
}

@media (max-width: 560px) {
  .clan-color-heading {
    align-items: flex-start;
  }

  .clan-color-main-control {
    grid-template-columns: 1fr;
  }

  .clan-tag-preview {
    min-width: 64px;
  }

  .clan-color-picker {
    padding: 13px;
  }
}


/* ==========================================================================
   Homepage hero logo
   ========================================================================== */

.hero-main-logo-wrap {
  display: flex;
  align-items: center;
  margin: 8px 0 24px;
}

.hero-main-logo {
  display: block;
  width: clamp(280px, 40vw, 560px);
  max-width: 84vw;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.32));
}

/* ==========================================================================
   Dedicated Features / Rules pages
   ========================================================================== */

.content-page-main {
  min-height: 100vh;
  padding-top: 76px;
}

.content-page-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 24px 72px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,.1));
  text-align: center;
}

.content-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(30, 170, 190, 0.08), transparent 34%),
    radial-gradient(circle at 82% 28%, rgba(224, 49, 49, 0.08), transparent 30%);
  pointer-events: none;
}

.content-page-hero > * {
  position: relative;
  z-index: 1;
}

.content-page-hero .eyebrow {
  margin-bottom: 14px;
}

.content-page-hero h1 {
  max-width: 900px;
  margin: 0 auto 18px;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: .96;
}

.content-page-hero p:last-child {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted, #9ba6aa);
  line-height: 1.75;
}

.content-page-section {
  padding-top: 72px;
  padding-bottom: 88px;
}

.content-page-section .feature-grid,
.content-page-section .rules-layout {
  margin-top: 0;
}

@media (max-width: 700px) {
  .hero-main-logo {
    width: min(380px, 82vw);
  }

  .content-page-main {
    padding-top: 64px;
  }

  .content-page-hero {
    padding: 84px 20px 52px;
  }

  .content-page-section {
    padding-top: 48px;
    padding-bottom: 64px;
  }
}


/* ===== Legal footer ===== */
.legal-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 28px max(24px, calc((100vw - var(--max))/2));
  border-top: 1px solid var(--line);
  background: rgba(4, 7, 8, .92);
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.footer-logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-policy-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.footer-policy-links a {
  color: #aab3af;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-policy-links a:hover {
  color: #fff;
}

.legal-footer p {
  margin: 0;
  color: #777f7c;
  font-size: 11px;
  text-align: right;
}

/* ===== Policy pages ===== */
.policy-page-main {
  padding-top: 76px;
}

.policy-hero {
  position: relative;
  padding: 110px 24px 58px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(3,8,8,.26), rgba(8,13,14,.82));
}

.policy-hero-inner,
.policy-shell {
  width: min(960px, 100%);
  margin: 0 auto;
}

.policy-hero h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: .98;
}

.policy-hero p:last-child {
  max-width: 760px;
  color: #b8c1bd;
  font-size: 16px;
  line-height: 1.75;
}

.policy-section {
  padding: 58px 24px 90px;
}

.policy-intro {
  margin-bottom: 28px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: rgba(11, 20, 20, .72);
  color: #c6ceca;
  line-height: 1.75;
}

.policy-accordion {
  display: grid;
  gap: 12px;
}

.policy-accordion details {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(10, 18, 18, .78);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.policy-accordion details:hover {
  border-color: rgba(229, 49, 49, .42);
}

.policy-accordion details[open] {
  border-color: rgba(229, 49, 49, .65);
  background: rgba(15, 23, 23, .94);
}

.policy-accordion summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 18px 54px 18px 20px;
  cursor: pointer;
  list-style: none;
  color: #f3f6f4;
  font-weight: 800;
  letter-spacing: .03em;
  user-select: none;
}

.policy-accordion summary::-webkit-details-marker {
  display: none;
}

.policy-accordion summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  transition: transform .22s ease, background .22s ease;
}

.policy-accordion details[open] summary::after {
  content: "−";
  background: rgba(229,49,49,.12);
}

.policy-accordion .policy-content {
  padding: 0 20px 22px;
  color: #b6c0bb;
  line-height: 1.75;
  animation: policyDrop .22s ease;
}

.policy-accordion .policy-content p:last-child,
.policy-accordion .policy-content ul:last-child {
  margin-bottom: 0;
}

.policy-accordion .policy-content ul {
  padding-left: 22px;
}

.policy-accordion .policy-content li + li {
  margin-top: 7px;
}

.policy-last-updated {
  margin-top: 26px;
  color: #7f8985;
  font-size: 12px;
}

@keyframes policyDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media(max-width:900px) {
  .legal-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .legal-footer p {
    text-align: center;
  }
}

@media(max-width:600px) {
  .policy-hero {
    padding: 96px 18px 44px;
  }
  .policy-section {
    padding: 42px 18px 70px;
  }
  .policy-accordion summary {
    min-height: 58px;
    padding: 16px 48px 16px 16px;
    font-size: 14px;
  }
  .policy-accordion summary::after {
    right: 14px;
  }
  .policy-accordion .policy-content {
    padding: 0 16px 18px;
    font-size: 14px;
  }
}


/* ==========================================================================
   Homepage static cinematic background
   Replaces the interactive canvas on index.html only.
   ========================================================================== */

.homepage-static-background {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(3, 7, 8, 0.12) 0%, rgba(3, 7, 8, 0.24) 55%, rgba(3, 7, 8, 0.5) 100%),
    url("/assets/images/redwave-home-background.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Keep the supplied artwork clean rather than layering the old animated/grid look over it. */
.home-page .hero::before,
.home-page .hero-grid {
  display: none;
}

.home-page .hero {
  background: rgba(2, 6, 7, 0.12);
}

.home-page .hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.34) 46%, rgba(0, 0, 0, 0.17) 70%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.08) 70%, rgba(0, 0, 0, 0.58) 100%);
}

.home-page .status-section {
  background: rgba(4, 8, 9, 0.78);
  backdrop-filter: blur(4px);
}

@media (max-width: 800px) {
  .homepage-static-background {
    background-position: 56% center;
  }

  .home-page .hero-overlay {
    background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.42) 72%, rgba(0,0,0,.28));
  }
}

/* ========================================================================== 
   Homepage hero refinement
   ========================================================================== */

/*
   Keep the homepage controls anchored near the bottom edge of the cinematic
   hero instead of vertically centering them over the artwork.
*/
.home-page .hero-content {
  position: absolute;
  left: 50%;
  bottom: clamp(34px, 4vh, 58px);
  z-index: 4;
  width: min(var(--max), calc(100% - 48px));
  margin: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
}

.home-page .hero .hero-actions {
  width: 100%;
  justify-content: center;
  margin-top: 0;
}

.home-page .hero .server-strip {
  margin: 24px auto 0;
}

/* Server state lives directly to the left of the server name. */
.home-page .server-strip-server {
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-page .server-strip-server .hero-strip-status,
.home-page .server-strip-server .server-strip-server-name {
  min-width: 0;
}

.home-page .hero-strip-status {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.home-page .hero-strip-status .status-dot {
  flex: 0 0 auto;
  margin-right: 8px;
}

.home-page .hero-strip-status strong {
  margin-top: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.home-page .server-strip-server-name {
  text-align: left;
}

@media (max-width: 800px) {
  .home-page .hero-content {
    bottom: 30px;
    width: min(var(--max), calc(100% - 36px));
  }
}

@media (max-width: 600px) {
  .home-page .hero {
    padding: 96px 18px 28px;
  }

  .home-page .hero-content {
    bottom: 22px;
    width: calc(100% - 28px);
  }

  .home-page .hero .server-strip {
    margin-top: 18px;
  }

  .home-page .server-strip-server {
    gap: 10px;
  }

  .home-page .hero-strip-status {
    padding-right: 10px;
  }

  .home-page .hero-strip-status strong {
    font-size: 10px;
  }
}

@media (min-width: 601px) {
  .home-page .hero .server-strip {
    width: min(1050px, 100%);
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}


/* ==========================================================================
   About page - cinematic homepage background
   ========================================================================== */
.about-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #05090b;
  position: relative;
}

.about-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(2, 5, 6, 0.30) 0%, rgba(2, 5, 6, 0.48) 58%, rgba(2, 5, 6, 0.78) 100%),
    url("/assets/images/redwave-home-background.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.about-page .site-header,
.about-main,
.about-page .legal-footer {
  position: relative;
  z-index: 2;
}

.about-main {
  flex: 1;
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 130px 24px 70px;
}

.about-card {
  width: min(760px, 100%);
  text-align: center;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(4, 10, 12, 0.68);
  backdrop-filter: blur(10px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.about-logo {
  display: block;
  width: clamp(180px, 28vw, 310px);
  max-width: 75%;
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.32));
}

.about-copy {
  max-width: 650px;
  margin: 0 auto 30px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
  color: var(--muted);
}

.about-discord-button {
  display: inline-flex;
  justify-content: center;
  min-width: 230px;
}

.about-footer {
  background: rgba(3, 7, 8, 0.82);
  backdrop-filter: blur(8px);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 700px) {
  .about-page::before {
    background-position: 56% center;
  }

  .about-main {
    padding: 105px 16px 42px;
  }

  .about-card {
    padding: 28px 20px 32px;
  }

  .about-discord-button {
    width: 100%;
  }
}

/* ==========================================================================
   Mobile homepage hero spacing refinement
   Pushes the action buttons and server strip farther down the cinematic image
   while keeping them anchored cleanly inside the hero.
   ========================================================================== */

@media (max-width: 600px) {
  .home-page .hero {
    /* Fallback for older mobile browsers */
    min-height: calc(100vh + 135px);
    /* Stable mobile viewport height on modern browsers */
    min-height: calc(100svh + 135px);
    padding: 96px 18px 30px;
  }

  .home-page .hero-content {
    bottom: 26px;
    width: calc(100% - 28px);
  }

  .home-page .hero .hero-actions {
    gap: 10px;
  }

  .home-page .hero .server-strip {
    margin-top: 20px;
  }
}

/* ==========================================================================
   RedWave Servers directory
   ========================================================================== */

.servers-page {
  min-height: 100vh;
  background: #071014;
}

.servers-main {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 150px 0 90px;
}

.servers-intro {
  max-width: 760px;
  margin-bottom: 42px;
}

.servers-intro h1 {
  margin: 8px 0 14px;
  font-family: "Black Ops One", Impact, sans-serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.025em;
}

.servers-intro > p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
}

.server-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: 24px;
}

.server-directory-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(16, 27, 29, .96), rgba(7, 13, 14, .94));
  box-shadow: var(--shadow);
}

.server-directory-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(224, 167, 80, .8);
}

.server-directory-card[data-online="true"]::before {
  background: #55d97b;
}

.server-directory-card[data-online="false"]::before {
  background: #e05050;
}

.server-card-topline,
.server-card-heading,
.server-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.server-card-topline {
  margin-bottom: 30px;
}

.server-card-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #dce5e1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.server-card-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #e0a750;
  box-shadow: 0 0 10px rgba(224, 167, 80, .65);
}

.server-card-dot.is-online {
  background: #55d97b;
  box-shadow: 0 0 10px rgba(85, 217, 123, .75);
}

.server-card-dot.is-offline {
  background: #e05050;
  box-shadow: 0 0 10px rgba(224, 80, 80, .75);
}

.server-card-dot.is-warning {
  background: #e0a750;
  box-shadow: 0 0 10px rgba(224, 167, 80, .65);
}

.server-card-location,
.server-card-kicker {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.server-card-heading {
  align-items: end;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.server-card-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(28px, 4vw, 40px);
}

.server-card-player-count {
  flex: 0 0 auto;
  text-align: right;
}

.server-card-player-count strong,
.server-card-player-count span {
  display: block;
}

.server-card-player-count strong {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.server-card-player-count span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.server-card-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 -28px;
}

.server-card-details > div {
  min-width: 0;
  padding: 22px 28px;
  border-right: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.server-card-details > div:nth-child(3n) {
  border-right: 0;
}

.server-card-details span,
.server-card-details strong {
  display: block;
}

.server-card-details span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.server-card-details strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.server-card-actions {
  justify-content: flex-start;
  margin-top: 26px;
}

.server-card-actions .primary-button,
.server-card-actions .secondary-button {
  min-width: 170px;
  text-align: center;
}

.server-card-updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 720px) {
  .servers-main {
    width: min(100% - 28px, var(--max));
    padding-top: 118px;
  }

  .servers-intro {
    margin-bottom: 28px;
  }

  .server-directory-card {
    padding: 22px;
  }

  .server-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .server-card-player-count {
    text-align: left;
  }

  .server-card-details {
    grid-template-columns: repeat(2, 1fr);
    margin: 0 -22px;
  }

  .server-card-details > div {
    padding: 18px 22px;
  }

  .server-card-details > div:nth-child(3n) {
    border-right: 1px solid rgba(255, 255, 255, .07);
  }

  .server-card-details > div:nth-child(2n) {
    border-right: 0;
  }

  .server-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .server-card-actions .primary-button,
  .server-card-actions .secondary-button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .server-card-topline {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .server-card-details {
    grid-template-columns: 1fr;
  }

  .server-card-details > div,
  .server-card-details > div:nth-child(2n),
  .server-card-details > div:nth-child(3n) {
    border-right: 0;
  }
}

/* ==========================================================================
   Compact RedWave Servers carousel
   ========================================================================== */

.servers-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(2, 8, 11, .62), rgba(2, 7, 9, .90)),
    url("/assets/images/redwave-home-background.webp") center / cover fixed no-repeat;
}

.server-showcase-main {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 125px 24px 70px;
}

.server-showcase {
  width: min(760px, 100%);
  text-align: center;
}

.server-showcase-heading {
  margin: 0 auto 26px;
}

.server-showcase-logo {
  display: block;
  width: 76px;
  height: auto;
  margin: 0 auto 10px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35));
}

.server-showcase-heading h1 {
  margin: 5px 0 8px;
  font-family: "Black Ops One", Impact, sans-serif;
  font-size: clamp(46px, 7vw, 72px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.025em;
}

.server-showcase-heading > p:last-child {
  max-width: 620px;
  margin: 0 auto;
  color: #c5cfcb;
  font-size: 14px;
}

.server-carousel-shell {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 14px;
}

.server-carousel-stage {
  min-width: 0;
}

.server-carousel-arrow {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(10, 20, 23, .78);
  color: #fff;
  cursor: pointer;
  transition:
    background .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

.server-carousel-arrow span {
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-2px);
}

.server-carousel-arrow:hover {
  border-color: rgba(219, 52, 52, .72);
  background: rgba(219, 52, 52, .22);
  transform: translateY(-1px);
}

.server-carousel-arrow[hidden] {
  visibility: hidden;
}

.server-showcase-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(19, 36, 40, .96), rgba(8, 17, 19, .96));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .45),
    inset 0 1px rgba(255, 255, 255, .025);
  text-align: left;
}

.server-showcase-card.slide-from-right {
  animation: serverSlideFromRight .28s ease;
}

.server-showcase-card.slide-from-left {
  animation: serverSlideFromLeft .28s ease;
}

@keyframes serverSlideFromRight {
  from {
    opacity: .35;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes serverSlideFromLeft {
  from {
    opacity: .35;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.server-showcase-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 20px;
}

.server-live-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-live-line strong {
  font-size: 23px;
  line-height: 1.1;
}

.server-live-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #e0a750;
  box-shadow: 0 0 14px rgba(224, 167, 80, .6);
}

.server-live-dot.is-online {
  background: #55d97b;
  box-shadow: 0 0 14px rgba(85, 217, 123, .75);
}

.server-live-dot.is-offline {
  background: #e05050;
  box-shadow: 0 0 14px rgba(224, 80, 80, .72);
}

.server-showcase-location {
  display: block;
  margin: 7px 0 0 22px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.server-showcase-players {
  flex: 0 0 auto;
  text-align: right;
}

.server-showcase-players strong,
.server-showcase-players span {
  display: block;
}

.server-showcase-players strong {
  font-size: 25px;
  line-height: 1;
}

.server-showcase-players span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.server-compact-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.server-compact-meta > div {
  min-width: 0;
  padding: 14px 18px;
  border-right: 1px solid rgba(255, 255, 255, .07);
  text-align: center;
}

.server-compact-meta > div:last-child {
  border-right: 0;
}

.server-compact-meta span,
.server-compact-meta strong {
  display: block;
}

.server-compact-meta span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
}

.server-compact-meta strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.server-mods-area {
  padding: 20px 26px 23px;
}

.server-mods-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.server-mods-heading span,
.server-mods-heading strong {
  color: #b9c4c0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}

.server-mods-heading strong {
  color: #fff;
}

.server-mod-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 25px;
}

.server-mod-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(5, 13, 15, .42);
  color: #e7edeb;
  font-size: 10px;
  line-height: 1.15;
}

.server-mod-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
}

.server-mod-chip-more {
  border-color: rgba(219, 52, 52, .45);
  color: #ffd0d0;
}

.server-mod-chip-more::before,
.server-mod-chip-loading::before {
  display: none;
}

.server-connect-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
  transition:
    filter .18s ease,
    transform .18s ease;
}

.server-connect-button:hover {
  filter: brightness(1.08);
}

.server-connect-icon {
  font-size: 16px;
}

.server-carousel-footer {
  display: grid;
  place-items: center;
  gap: 15px;
  margin-top: 18px;
}

.server-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.server-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
  cursor: pointer;
}

.server-carousel-dot.is-active {
  width: 24px;
  background: var(--accent);
}

.server-online-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid rgba(224, 167, 80, .38);
  background: rgba(4, 12, 14, .82);
}

.server-online-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e0a750;
}

.server-online-pill strong {
  color: #e0a750;
  font-size: 10px;
  letter-spacing: .14em;
}

.server-online-pill.is-online {
  border-color: rgba(85, 217, 123, .42);
}

.server-online-pill.is-online .server-online-pill-dot {
  background: #55d97b;
  box-shadow: 0 0 9px rgba(85, 217, 123, .72);
}

.server-online-pill.is-online strong {
  color: #74ed96;
}

.server-online-pill.is-offline {
  border-color: rgba(224, 80, 80, .42);
}

.server-online-pill.is-offline .server-online-pill-dot {
  background: #e05050;
}

.server-online-pill.is-offline strong {
  color: #ff7777;
}

.server-showcase-updated {
  margin-top: 11px;
  color: rgba(210, 220, 216, .55);
  font-size: 9px;
  text-align: center;
}

.servers-footer {
  position: relative;
  z-index: 2;
  background: rgba(4, 10, 12, .94);
}

@media (max-width: 760px) {
  .servers-page {
    background-attachment: scroll;
  }

  .server-showcase-main {
    padding: 112px 16px 58px;
  }

  .server-showcase-heading {
    margin-bottom: 20px;
  }

  .server-showcase-heading > p:last-child {
    font-size: 12px;
  }

  .server-carousel-shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .server-carousel-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 42px;
    height: 50px;
    transform: translateY(-50%);
    background: rgba(2, 9, 11, .88);
  }

  .server-carousel-arrow:hover {
    transform: translateY(-50%);
  }

  .server-carousel-prev {
    left: -5px;
  }

  .server-carousel-next {
    right: -5px;
  }

  .server-carousel-arrow[hidden] {
    display: none;
  }

  .server-showcase-card-head {
    align-items: flex-start;
    padding: 21px 20px 18px;
  }

  .server-live-line strong {
    font-size: 19px;
  }

  .server-showcase-location {
    margin-left: 21px;
  }

  .server-showcase-players strong {
    font-size: 20px;
  }

  .server-showcase-players span {
    font-size: 8px;
  }

  .server-compact-meta > div {
    padding: 12px 8px;
  }

  .server-mods-area {
    padding: 18px 20px 20px;
  }

  .server-mod-chip {
    font-size: 9px;
  }
}

@media (max-width: 430px) {
  .server-showcase-logo {
    width: 60px;
  }

  .server-showcase-heading h1 {
    font-size: 43px;
  }

  .server-showcase-card-head {
    flex-direction: column;
    gap: 13px;
  }

  .server-showcase-players {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-align: left;
  }

  .server-showcase-players span {
    margin-top: 0;
  }

  .server-compact-meta {
    grid-template-columns: 1fr 1fr;
  }

  .server-compact-meta > div {
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }

  .server-compact-meta > div:nth-child(2) {
    border-right: 0;
  }

  .server-compact-meta > div:nth-child(3) {
    grid-column: 1 / -1;
    border-bottom: 0;
  }
}

/* ==========================================================================
   Homepage Join RedWave button
   ========================================================================== */

.home-page .hero-join-actions {
  justify-content: center;
}

.join-redwave-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 235px;
}

.join-redwave-heli {
  width: 38px;
  height: 22px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: joinHeliBob 1.6s ease-in-out infinite;
}

.join-redwave-heli .heli-body {
  fill: currentColor;
  stroke: currentColor;
}

.join-redwave-heli .heli-body path:nth-child(n+2) {
  fill: none;
}

.join-redwave-heli .heli-rotor {
  transform-box: fill-box;
  transform-origin: center;
  animation: joinHeliRotor .36s linear infinite;
}

.join-redwave-heli .heli-tail-rotor {
  transform-box: fill-box;
  transform-origin: center;
  animation: joinHeliRotor .55s linear infinite reverse;
}

.join-redwave-button:hover .join-redwave-heli {
  animation-duration: .9s;
}

@keyframes joinHeliBob {
  0%, 100% {
    transform: translateY(1px) rotate(-1deg);
  }
  50% {
    transform: translateY(-2px) rotate(1deg);
  }
}

@keyframes joinHeliRotor {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .join-redwave-heli,
  .join-redwave-heli .heli-rotor,
  .join-redwave-heli .heli-tail-rotor {
    animation: none !important;
  }
}

@media (max-width: 600px) {
  .home-page .hero-join-actions {
    width: 100%;
  }

  .join-redwave-button {
    width: min(100%, 390px);
    min-width: 0;
  }
}

