/* Gaming Heavens — v3 style, static edition.
   Chrome rules are lifted from the v3 archive's main.css; page components are new. */

/*** Reset ***/
html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, li, p, form, section, article {
	margin: 0;
	padding: 0;
}
*, *::before, *::after { box-sizing: border-box; }

/*** The Guts ***/
body {
	background: #c8c8c8;
	color: #333333;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 20px;
}
a {
	border-bottom: 1px dotted #333333;
	color: #222222;
	outline: none;
	padding: 1px 0;
	text-decoration: none;
}
a:hover { border-bottom: 1px solid #333333; }
a:focus-visible { outline: 2px solid #4b4b4b; outline-offset: 2px; }
p { margin: 0 0 8px; line-height: 24px; }
img { max-width: 100%; }

.paddy {
	margin: auto;
	max-width: 960px;
	padding: 0 16px;
}

/*** Header ***/
#header {
	background: #393939 url(../img/header_background.jpg) center / cover no-repeat;
	border-bottom: 1px solid #2f2f2f;
	box-shadow: inset 0 -1px 0 rgba(255,255,255,0.08);
}
	#header .paddy {
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
		gap: 16px;
		height: 100px;
	}
#logo {
	align-self: center;
	background: url(../img/logo_sprite.png) -60px 0 no-repeat;
	border: none;
	display: block;
	flex: none;
	height: 100px;
	padding: 0;
	width: 300px;
}
#logo:hover { background-position: -60px 100px; border: none; }
#logo span {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}

/** Tabs **/
#tabs { margin: 0 0 -1px; }
	#tabs ul { display: flex; list-style: none; }
	#tabs a {
		background: url(../img/tabs_sprite.gif) 0 34px;
		border: none;
		color: #f1f1f1;
		display: inline-block;
		font-size: 15px;
		font-weight: bold;
		height: 34px;
		margin: 0 0 0 -1px;
		padding: 8px 0;
		text-align: center;
		text-shadow: 0 1px 0 #4f4f4f;
		width: 140px;
	}
	#tabs a:hover { color: #d6d6d6; }
	#tabs .active a {
		background-position: 0 0;
		color: #5a5a5a;
		text-shadow: 0 1px 0 #f0f0f0;
	}
	#tabs .active a:hover { color: #414141; }

/*** Container ***/
#container {
	background: url(../img/container_background.gif) repeat-x;
	border-bottom: 1px solid #dfdfdf;
	border-top: 1px solid #ffffff;
	padding: 20px 0 30px;
}

/*** Footer ***/
#footer {
	background: #4b4b4b url(../img/footer_background.gif) top center no-repeat;
	border-bottom: 1px solid #575757;
	border-top: 1px solid #353535;
	padding: 10px 0;
}
	#footer p {
		color: #a5a5a5;
		font-size: 12px;
		line-height: 20px;
		margin: 0;
		text-align: center;
		text-shadow: 0 -1px 0 #4b4b4b;
		text-transform: lowercase;
	}
	#footer a { border-bottom: 1px solid #a5a5a5; color: #a5a5a5; }
	#footer a:hover { color: #cccccc; }
	#footer .powered-by { margin: 6px 0 4px; }
	#footer .yeeted-link {
		align-items: center;
		border: none;
		display: inline-flex;
		gap: 8px;
		opacity: 0.85;
		padding: 2px 0;
		transition: opacity 0.15s;
	}
	#footer .yeeted-link:hover { opacity: 1; }
	#footer .yeeted-link img { display: block; height: 19px; width: auto; }

/*** Components ***/

/** Glossy dark button (v3 .buttons-dual) **/
.button {
	background: url(../img/sprite_button_background.gif) repeat-x;
	border: 1px solid #4e4e4e;
	border-radius: 4px;
	color: #ffffff;
	display: block;
	font-size: 12px;
	font-weight: bold;
	padding: 6px 10px;
	text-align: center;
	text-shadow: 0 1px 0 #4e4e4e;
}
.button:hover { border: 1px solid #4e4e4e; color: #cccccc; }
.button:active {
	background-position: 0 -50px;
	border-color: #979797;
	color: #414141;
	text-shadow: 0 1px 0 #d6d6d6;
}
.button-large { display: inline-block; font-size: 15px; padding: 14px 40px; }

/** Hero panel **/
.hero {
	background: #4b4b4b linear-gradient(#626262, #4b4b4b 60%, #444444);
	border: 1px solid #353535;
	border-radius: 6px;
	box-shadow: 0 1px 0 #ffffff, inset 0 1px 0 rgba(255,255,255,0.15);
	color: #f1f1f1;
	padding: 28px 30px;
}
	.hero .kicker {
		color: #a5a5a5;
		font-size: 11px;
		font-weight: bold;
		letter-spacing: 1px;
		margin: 0 0 4px;
		text-transform: uppercase;
	}
	.hero h1 {
		font-size: 32px;
		line-height: 38px;
		margin: 0 0 10px;
		text-shadow: 0 -1px 0 #1f1f1f;
	}
	.hero h1 span { color: #c8c8c8; font-weight: normal; }
	.hero p { color: #d6d6d6; font-size: 14px; margin: 0; max-width: 600px; text-shadow: 0 -1px 0 #333333; }
	.hero .stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
	.hero .stats div {
		background: rgba(0,0,0,0.25);
		border: 1px solid #353535;
		border-radius: 4px;
		box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
		color: #a5a5a5;
		font-size: 12px;
		padding: 6px 12px;
	}
	.hero .stats b { color: #ffffff; font-size: 16px; margin-right: 4px; }
	.hero .button { display: inline-block; margin-top: 18px; }

/** Section heading with v3 rule **/
.section-head {
	align-items: center;
	border-bottom: 1px solid #b4b4b4;
	box-shadow: 0 1px 0 #ebebeb;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 26px 0 14px;
	padding: 0 0 8px;
}
	.section-head h2 {
		background-position: left center;
		background-repeat: no-repeat;
		color: #333333;
		font-size: 20px;
		line-height: 24px;
		text-shadow: 0 1px 0 #ffffff;
	}
	.section-head .count {
		background: #4b4b4b;
		border-radius: 10px;
		color: #ffffff;
		font-size: 11px;
		font-weight: bold;
		line-height: 18px;
		padding: 0 8px;
		text-shadow: 0 -1px 0 #1f1f1f;
	}
	.section-head p { color: #777777; font-size: 12px; line-height: normal; margin: 0 0 0 auto; }

/** Striped panel (v3 .section) **/
.panel {
	background: #aeaeae url(../img/stripes_dark.png);
	border: 1px solid #b4b4b4;
	margin: 1px;
	outline: 1px solid #9c9c9c;
	padding: 10px;
}

/** Grid **/
.grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/** Staff card **/
.card { display: flex; flex-direction: column; }
	.card .portrait {
		background: #e1e1e1;
		border: 1px solid #b4b4b4;
		box-shadow: 0 0 5px #333333;
		padding: 3px;
		position: relative;
	}
	.card .portrait img { aspect-ratio: 1; display: block; height: auto; object-fit: cover; width: 100%; }
	.card h3 { font-size: 16px; margin: 10px 0 2px; text-shadow: 0 1px 0 #d6d6d6; }
	.card h3 a { border: none; }
	.card .blurb { color: #2f2f2f; flex: 1; font-size: 12px; line-height: 18px; margin: 0 0 10px; }

/** Feature panel (home) **/
.feature h3 { font-size: 16px; margin: 0 0 6px; text-shadow: 0 1px 0 #d6d6d6; }
.feature p { color: #2f2f2f; font-size: 12px; line-height: 18px; }

/** Numbered steps **/
.step { position: relative; padding-left: 52px; }
	.step .step-num {
		background: #4b4b4b linear-gradient(#626262, #444444);
		border: 1px solid #353535;
		border-radius: 50%;
		box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
		color: #ffffff;
		font-size: 15px;
		font-weight: bold;
		height: 30px;
		left: 12px;
		line-height: 28px;
		position: absolute;
		text-align: center;
		text-shadow: 0 -1px 0 #1f1f1f;
		top: 10px;
		width: 30px;
	}
#crew, #reconnect { scroll-margin-top: 16px; }
html { scroll-behavior: smooth; }

/** Reconnection form + who's back **/
.join {
	align-items: start;
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	margin: 26px 0 0;
}
.join-form { padding: 18px 20px 20px; scroll-margin-top: 16px; }
	.join-form h2 { font-size: 22px; margin: 0 0 4px; text-shadow: 0 1px 0 #d6d6d6; }
	.join-intro { color: #2f2f2f; }
.field { margin: 0 0 14px; }
	.field label { display: block; font-weight: bold; margin: 0 0 4px; text-shadow: 0 1px 0 #d6d6d6; }
	.field .req, .field .opt {
		color: #555555; font-size: 11px; font-weight: normal; margin-left: 4px; text-transform: lowercase;
	}
	.field input, .field textarea {
		background: #545454 linear-gradient(#4a4a4a, #5a5a5a);
		border: 1px solid #2f2f2f;
		border-radius: 3px;
		box-shadow: inset 0 1px 2px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.4);
		color: #ffffff;
		display: block;
		font: 14px/20px Arial, Helvetica, sans-serif;
		padding: 7px 9px;
		width: 100%;
	}
	.field textarea { resize: vertical; min-height: 92px; }
	.field input::placeholder, .field textarea::placeholder { color: #a5a5a5; }
	.field input:focus, .field textarea:focus { border-color: #1f1f1f; outline: 2px solid #ffffff; outline-offset: 0; }
	.field [aria-invalid="true"] { border-color: #8a1f11; box-shadow: 0 0 0 2px #e18d21; }
	.field-help { color: #444444; font-size: 11px; line-height: 16px; margin: 4px 0 0; }
	.field-error { color: #8a1f11; font-size: 12px; font-weight: bold; line-height: 16px; margin: 4px 0 0; }
	.field-error:empty { display: none; }
.hp { height: 0; left: -9999px; overflow: hidden; position: absolute; width: 0; }
.join-form button.button { cursor: pointer; font-family: inherit; width: 100%; }
.join-form button.button:disabled { cursor: wait; opacity: 0.7; }
.form-status { font-weight: bold; margin: 10px 0 0; min-height: 24px; text-align: center; }
	.form-status.is-ok { color: #2d5a12; }
	.form-status.is-error { color: #8a1f11; }

.whos-back .section-head { margin-top: 0; }
.back-list { list-style: none; margin: 0; max-height: 560px; overflow-y: auto; }
	.back-item {
		background: #e1e1e1;
		border: 1px solid #b4b4b4;
		border-radius: 3px;
		box-shadow: 0 1px 0 #ffffff;
		margin: 0 0 8px;
		padding: 8px 10px;
	}
	.back-head { align-items: baseline; display: flex; gap: 8px; justify-content: space-between; }
	.back-head strong { font-size: 14px; overflow-wrap: anywhere; }
	.back-head time { color: #848484; flex: none; font-size: 11px; }
	.back-where { color: #333333; font-size: 12px; line-height: 18px; margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-line; }
	.back-empty { color: #777777; font-style: italic; padding: 8px 0; }

/** Call to action **/
.cta {
	border-top: 1px solid #b4b4b4;
	box-shadow: inset 0 1px 0 #ebebeb;
	margin: 30px 0 0;
	padding: 24px 0 0;
	text-align: center;
}
	.cta h2 { font-size: 22px; margin: 0 0 6px; text-shadow: 0 1px 0 #ffffff; }
	.cta p { color: #555555; }
	.cta .button { margin-top: 6px; }
	.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* A page that opens with a section heading (no hero) shouldn't get the top gap. */
#container .paddy > section:first-child > .section-head:first-child { margin-top: 0; }

/*** Small screens ***/
@media (max-width: 860px) {
	.grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
	.join { grid-template-columns: 1fr; }
	#header .paddy { flex-wrap: wrap; gap: 0; height: auto; }
	#logo { align-self: flex-start; max-width: 100%; }
	#tabs { margin: 0 0 -1px -1px; width: 100%; }
	#tabs li { flex: 1; }
	#tabs a { font-size: 13px; width: 100%; }
}
@media (max-width: 480px) {
	.hero { padding: 20px 16px; }
	.hero h1 { font-size: 24px; line-height: 30px; }
	.grid { gap: 10px; }
	.grid-3 { grid-template-columns: 1fr; }
	.panel { padding: 6px; }
	.panel.step { padding: 10px 10px 10px 52px; }
	.section-head p { margin: 0; width: 100%; }
	.button-large { padding: 12px 20px; }
}
