/* Shared Super Soldier Battle link header.
   Used at the top of the How to Play panel and on local SSB pages
   (about, contact, privacy policy, gameplay videos).
   Button chrome (glow, bevel, Bangers) lives in css/ssb-gamified-buttons.css;
   this file keeps wrapping / grid layout only. */

.ssb-site-header-wrap {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 12px 16px 14px;
	background: #070b12;
	border-bottom: 1px solid #2a5a8a;
}

.ssb-site-header,
#ssbInfo .ssb-info-links {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: flex-start;
	gap: 8px;
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: 1080px;
	box-sizing: border-box;
}

.ssb-site-header-wrap .ssb-site-header {
	margin: 0 auto;
}

#ssbInfo .ssb-info-links {
	max-width: none;
	margin: 0 0 8px;
	clear: both;
}

.ssb-site-header a,
.ssb-site-header button,
#ssbInfo .ssb-info-links a,
#ssbInfo .ssb-info-links button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	flex: 1 1 148px;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	height: auto !important;
	min-height: 42px !important;
	padding: 8px 12px !important;
	margin: 0 !important;
	font-family: 'Rajdhani', 'Orbitron', sans-serif !important;
	font-size: 14px !important;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1.2 !important;
	text-transform: uppercase;
	text-decoration: none !important;
	text-align: center;
	color: #7ec8ff;
	background: linear-gradient(180deg, #1a2a3a 0%, #0d1520 100%);
	border: 1px solid #2a5a8a;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
	cursor: pointer;
	transform: none;
	zoom: normal;
	appearance: none;
	-webkit-appearance: none;
}

.ssb-site-header a:hover,
.ssb-site-header button:hover,
#ssbInfo .ssb-info-links a:hover,
#ssbInfo .ssb-info-links button:hover {
	background: linear-gradient(180deg, #2a4a6a 0%, #1a2a40 100%);
	border-color: #4ac8ff;
	color: #fff;
}

.ssb-site-header a[aria-current="page"] {
	color: #fff;
	border-color: #4ac8ff;
	background: linear-gradient(180deg, #2a4a6a 0%, #1a2a40 100%);
	box-shadow: 0 0 10px rgba(74, 200, 255, 0.28);
}

.ssb-site-header a:focus-visible,
.ssb-site-header button:focus-visible,
#ssbInfo .ssb-info-links a:focus-visible,
#ssbInfo .ssb-info-links button:focus-visible {
	outline: 3px solid #7ec8ff;
	outline-offset: 3px;
}

/* Subpages are full-width, so a 4-column grid keeps the last row even
   (8 links, no install button). The How to Play panel stays flex-wrap
   so 9 buttons (including INSTALL) fill its narrower column. */
@media (min-width: 701px) {
	.ssb-site-header-wrap .ssb-site-header {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		max-width: 960px;
	}
}

@media (max-width: 600px) {
	.ssb-site-header-wrap { padding: 10px 12px 12px; }
	.ssb-site-header a,
	.ssb-site-header button,
	#ssbInfo .ssb-info-links a,
	#ssbInfo .ssb-info-links button {
		flex: 1 1 calc(50% - 8px);
		max-width: calc(50% - 4px) !important;
		min-height: 40px !important;
		padding: 7px 8px !important;
		font-size: 12.5px !important;
		letter-spacing: 0.6px;
	}
}
