@media screen and (max-width: 720px) {

	html,
	body,
	#pun,
	.punbb {
		width: 100% !important;
		height: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		background-size: contain;
		-webkit-text-size-adjust: none;
		overflow-wrap: break-word;
		float: none;
	}

	body {
		position: relative;
		overflow: hidden !important;
		-webkit-overflow-scrolling: touch !important;
		overflow-y: auto !important;
		z-index: 1;
		background-size: cover;
	}

	#pun {
		background: linear-gradient(180deg, rgba(42, 33, 49, 0.15) 0%, rgba(34, 33, 35, 0.15) 50%, rgba(42, 33, 49, 0.15) 100%);
	}

	img {
		max-width: 100% !important;
		height: auto;
	}

	#pun_wrap #pun {
		width: 100% !important;
		border-width: 0 !important;
		overflow: hidden !important;
		margin: 0 !important;
		padding: 0 !important;
		border-radius: 0 !important;
	}

	#pun-main,
	#pun-stats {
		padding: 0px
	}

	#pun .punbb {
		padding: 10px !important;
		box-sizing: border-box
	}

	#pun #pun-redirect.punbb .info .container {
		width: 100% !important;
	}
	
	.header_logo {
		width: 100%;
		left: 50%;
		transform: translateX(-50%);
		height: 40px;
		justify-content: center;
	}
	
	.logo_abyss, .logo_cross {
		width: 30%;
	}
	
	.logo_icon {
		width: 30px
	}
	
	.header_wrapper--item1,
	.header_quote,
	.header_post,
	.Add,
	.nav_bg {
		display: none
	}
	
	.header_banners {
		top: 70px;
		width: calc(100% - 50px);
		height: 110px
	}
	
	.header_wrapper--item2 {
		width: 100%;
	}

	.header--item2_top {
		border: 1px solid rgba(168, 168, 169, 0.75);
		background: url(https://forumstatic.ru/files/001c/37/59/70321.png)
	}
	
	.header--item2_top .circle,
  .header--item2_top .circle2 {
	display: block;
		z-index: 1
}

	#pun-navlinks {
		width: 100% !important;
		justify-content: center
	}

	#pun-navlinks ul {
		gap: 5px;
		flex: 1;
		justify-content: center;
	}

	#pun-navlinks li a {
		display: flex !important;
		justify-content: center;
		align-items: center;
		font-weight: normal !important;
		font-size: 0 !important;
		padding-right: 0px !important;
	}
	
	#pun-ulinks {
		position: relative;
		top: 0;
		margin: 5px 0 0px !important;
		width: 100%;
		height: auto;
		padding: 10px !important;
		align-items: flex-start
	}

	#pun-ulinks ul.container {
		flex-wrap: wrap;
		justify-content: center;
		gap: 5px;
	}
	
	.settings_wrap .slide_button {
		text-align: center
	}

	#pun-ulinks a {
		background: var(--fill);
		padding: 3px 5px !important;
		border-radius: 10px;
	}

	#pun-crumbs1 {
		margin-top: 2px !important;
	}

	.status_userava {
		display: none
	}

	#pun-status {
		position: relative;
		width: auto;
		margin: 0 0 10px !important;
		left: 0;
		top: 0;
		border-radius: 0;
		height: auto;
		padding: 5px 0;
		justify-content: center;
		font-size: 10px !important;
	}

	#pun .category h2,
	#pun-stats h2 {
		padding: 0 !important;
		text-align: left
	}
	
	.category tr {
		flex-direction: column;
		align-items: flex-start;
		gap: 5px;
		border: 1px dashed var(--border) !important;
		border-radius: 10px;
		background: rgba(0,0,0,.02)
	}
	
	.category tr + tr {
		margin-top: 10px !important;
	}

	#pun-index .category .tcl {
		width: 100% !important;
		border-bottom: 1px dashed var(--border) !important;
		padding-bottom: 10px !important;
	}
	
	#pun-index .category .tclcon {
		display: flex;
		flex-direction: column;
		width: 100%
	}

	.f_links {
		margin-top: 10px !important;
		display: flex;
		gap: 5px;
		font: 600 12px var(--font);
		width: 100%;
		white-space: wrap;
		flex-wrap: wrap;
		flex-direction: row
	}

	.f_links a:before, .f_links a:after {
		display: none !important;
	}

	#pun-index .tcr {
		padding-top: 0px !important;
		width: 100%
	}

	.ststitems {
		gap: 5px 10px;
	}
	
	#pun-stats .container {
		padding: 0 0 10px !important;
	}

	.arrow_wrap {
		margin-left: 0 !important;
		right: 5px
	}
	
	.go-down, .go-up {
		background: var(--links);
		border-radius: 5px
	}

	#pun .user-avatar {
		display: none !important;
	}

	.tc2,
	.tc3 {
		display: none !important;
	}

	.tc3.tc4 {
		display: table-cell !important;
	}

	.forum .tclcon .byuser:before,
	.forum .tcr .byuser:before {
		display: none
	}

	.forum .tclcon {
		flex: 1;
	}

	#pun .forum .tcr {
		width: 40%
	}

	.post-author {
		float: none !important;
		width: 100%;
		margin: 0 !important;
		background-size: cover;
	}

	.pa-fld4,
	.pa-fld2,
	.pa-fld1,
	.pa-fld3 {
		display: none !important;
	}

	.pa-avatar {
		width: 100px;
		height: 100px;
	}

	.post-author ul {
		display: grid;
		grid-template-columns: 50px 1fr;
		grid-template-rows: minmax 1fr 1fr;
		gap: 0px 10px;
		grid-template-areas:
			"ava name"
			"ava resp"
	}

	#pun .pa-author {
		align-self: end;
		grid-area: name;
		margin: 0 !important;
		text-align: left !important;
	}


	#pun .field_wrap2 {
		align-self: start;
		grid-area: resp;
		margin: 0 !important;
		text-align: left !important;
		justify-content: flex-start
	}

	.pa-avatar,
	.pa-avatar img {
		width: 50px;
		height: 50px;
		object-fit: cover
	}

	#pun .pa-avatar {
		grid-area: ava;
	}

	#pun .pa-ip {
		top: 5px;
		left: unset;
		bottom: unset;
		right: 10px;
		font-size: 8px
	}

	.post-body {
		margin: 0 !important;
	}

	.post-links ul {
		display: flex;
		flex-wrap: wrap;
		gap: 5px;
	}

	.post-links ul li {
		padding: 0 !important;
		;
		margin: 0 !important;
	}

	.multipage .post {
		padding: 10px;
	}

	.punbb .post {
		scroll-margin: 10px
	}

	#post.container {
		padding: 0 !important;
	}

	#pun-messages #profilenav ul {
		flex-wrap: wrap;
	}

	#pun-messages .fs-box .container tr {
		flex-wrap: wrap;
	}

	#pun-messages .tc2.pmtc22,
	#pun-main .tc2.pmtc24,
	#pun-messages .tc3.pmtc33 {
		display: flex !important;
	}

	#pun-messages .tc2.pmtc22 {
		flex: 1;
		order: 2;
	}

	#pun-messages .tcl.pmtcl1 {
		order: 1;
	}

	#pun-main .tc2.pmtc24 {
		order: 3;
	}

	#pun-messages .tc3.pmtc33 {
		order: 4;
		width: 100% !important;
		font-size: 9px !important;
		padding: 0 0 10px !important;
	}

	#viewprofile-next tr {
		display: flex;
		flex-direction: column;
	}

	#pun #profile-left,
	#pun #profile-right {
		width: 100% !important;
		padding: 10px !important;
	}

	#profile {
		margin: 0 !important;
	}

	#pun #profile .container {
		display: flex;
		flex-direction: column;
		padding: 0 !important;
		box-sizing: border-box;
		width: 100%
	}

	#profile #profilenav {
		width: 100% !important;
		float: none !important;
		margin: 0 !important;
	}

	#profile #profilenav ul {
		display: flex;
		flex-wrap: wrap;
		gap: 5px;
	}

	#profile #profilenav ul li {
		flex: auto;
		text-align: center;
	}

	#BookmCntToggle {
		top: 8px !important;
		left: 8px !important;
	}
	.punbb .post-box {
		padding-right: 0 !important;
	}
	#guestbook_wrapper img {
	display: none;
	}
	.guestbook_footer {
		flex-wrap: wrap;
		height: auto
	}
	.guestbook_footer--item {
		min-width: 50%;
		height: 120px;
	}
	#form-buttons {
		flex-direction: column;
	}
	p.formsubmit {
		flex-wrap: wrap;
		gap: 5px !important;
		display: flex !important;
	}
	#togglePreview {
		margin: 0;
	}
	#pun #post-form {
		padding: 10px !important;
	}
#pun-navlinks li a#New-exit {
	width: 12px;
}

.punbb #pun-navlinks #form-login {
	left: unset;
	right: 0;
}

#List-UserNames {
	border-radius: 10px !important;
	top: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
}
#pun .punbb .main .post_reputation tbody tr td {
	display: block !important;
}

#pun-reputation .inner {
	margin-left: 0 !important;
	width: 96vw !important;
	left: 0 !important;
	margin-left: 10px !important;
	box-sizing: border-box !important;
}
.need_container {
	flex-direction: column;
}
#pun-index .category #forum_f22 .tcl {
	border: none !important;
	padding-bottom: 0 !important;
}

.need_wrapper {
	border: none !important;
	padding: 0 !important;
}
#image-area, #smilies-area, #video-area, #spoiler-area {
	width: auto !important;
}
}