:root {
	--mpg-black: #040b09;
	--mpg-panel: #0b1b15;
	--mpg-raised: #13271d;
	--mpg-edge: #395a43;
	--mpg-copy: #f2f6ec;
	--mpg-muted: #bfcec1;
	--mpg-lime: #c5f34b;
	--mpg-lime-hover: #dcff88;
}

html, body {
	background-color: var(--mpg-black);
	background-image: radial-gradient(ellipse at 50% 0%, #143034, var(--mpg-black) 760px);
	background-repeat: no-repeat;
	color: var(--mpg-copy);
}
.mpg.wrap {
	max-width: 1390px;
	margin: 0 auto;
	padding: 0 16px 24px;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-size: 13px;
}
.mpg :where(a, h1, h2, h3, legend, .icon.icon-blue, .icon.icon-lightgray) { color: var(--mpg-copy); }
.mpg a:hover { color: var(--mpg-lime-hover); }
.mpg :is(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--mpg-lime-hover);
	outline-offset: 3px;
}
.mpg p { color: inherit; }
.mpg .headerbar {
	margin: 0;
	border-radius: 0;
	padding: 0 16px;
	background: url("images/mpg/world.webp") right 24px center / auto 90% no-repeat,
		radial-gradient(ellipse at 28% 105%, #104562, #061421 50%, #030b12 82%);
}
.mpg .headerbar > .inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 96px;
}
.mpg #site-description {
	display: flex !important;
	align-items: center;
	width: auto;
	float: none;
	min-width: 0;
}
.mpg #logo { display: block; padding: 0; float: none; flex: 0 0 auto; }
.mpg-planet { display: block; width: clamp(90px, 14vw, 185px); height: auto; mask-image: radial-gradient(ellipse at center, black 42%, #000d 72%, transparent 100%); }
.mpg-brand { white-space: nowrap; color: #fff; font-style: italic; line-height: 1; }
.mpg-brand > span { font: italic 900 clamp(24px, 4.6vw, 61px)/1 Arial, sans-serif; letter-spacing: -.045em; }
.mpg-brand em { color: var(--mpg-lime); }
.mpg-brand small { font-size: .66em; }
.mpg .mpg-brand p { display: block; margin: 6px 0 0; font: 700 clamp(7px, 1vw, 12px)/1.2 Arial, sans-serif; letter-spacing: .17em; text-transform: uppercase; }
.mpg .search-header { margin: 0; box-shadow: none; align-self: end; margin-bottom: 10px; }
.mpg .search-header input.inputbox::placeholder { color: var(--mpg-muted); opacity: 1; }
.mpg .skiplink a { background: var(--mpg-black); }
.mpg .skiplink a:focus { top: 8px; left: 8px; z-index: 20; }
.mpg-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1px 3px;
	padding: 5px 7px;
	background: #07150f;
	border: 1px solid var(--mpg-edge);
	border-radius: 11px;
}
.mpg-nav a, .mpg-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
}
.mpg-nav a[aria-current="page"] {
	background: linear-gradient(160deg, #3a6504, #172d12);
	border-color: #557d28;
	color: #ecffbf;
}
.mpg-nav a:hover, .mpg-actions a:hover { border-color: var(--mpg-lime); }
.mpg-nav-spacer { flex: 1 1 auto; }
.mpg a.mpg-lime, .mpg a.mpg-lime:hover { color: #121900; }
.mpg a.mpg-lime { background: var(--mpg-lime); }
.mpg a.mpg-lime:hover { background: var(--mpg-lime-hover); }
.mpg a.mpg-outline { border-color: #769281; color: #fff; background: #09130e; }
.mpg .navbar { margin-top: 7px; padding-inline: 10px; background: var(--mpg-panel); border: 1px solid var(--mpg-edge); }
.mpg .navlinks { border-color: var(--mpg-edge); }
.mpg .page-body { margin: 9px 0; }

.mpg-hero {
	min-height: clamp(270px, 24vw, 345px);
	display: flex;
	align-items: center;
	padding: 20px clamp(18px, 3.3vw, 53px);
	background:
		linear-gradient(90deg, #06110c 7%, #06110c 28%, #06110c30 56%, transparent 78%),
		url("images/mpg/hero.webp") right center / auto 107% no-repeat,
		#06110c;
	border: 1px solid #253d2c;
	border-radius: 12px;
	box-shadow: inset 0 -26px 50px -18px #040a06;
}
.mpg-hero-copy { max-width: 56%; }
.mpg .mpg-hero h1 {
	margin: 0;
	font: 900 clamp(27px, 3.5vw, 54px)/.93 Arial, sans-serif;
	letter-spacing: -.04em;
	text-transform: uppercase;
	text-shadow: 0 2px 12px #000;
}
.mpg-hero h1 em {
	display: block;
	color: var(--mpg-lime);
	font: italic 900 1.58em/.9 "Trebuchet MS", Arial, sans-serif;
	letter-spacing: -.085em;
	margin: 4px 0 5px -.055em;
}
.mpg .mpg-hero p { margin: 12px 0; font-size: 14px; color: #f1f3ee; text-shadow: 0 2px 5px #000; }
.mpg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mpg-actions a { border-radius: 24px; min-height: 39px; }
.mpg-cards {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 8px;
	margin: 10px 0 12px;
}
.mpg-card {
	display: flex;
	flex-direction: column;
	gap: 5px;
	text-align: center;
	padding-bottom: 10px;
	border: 1px solid #56755b;
	border-radius: 11px;
	background: linear-gradient(150deg, #12291b, #050f0b 72%);
	overflow: hidden;
}
.mpg-card:hover { border-color: var(--mpg-lime); text-decoration: none; }
.mpg-card img { width: 100%; height: auto; aspect-ratio: 2.1; object-fit: cover; }
.mpg-card strong, .mpg-card span { padding-inline: 6px; overflow-wrap: anywhere; }
.mpg-card strong { font-size: 13px; }
.mpg-card i, .mpg-forum-heading i, .mpg-quick i { color: var(--mpg-lime); }
.mpg-card span { font-size: 11px; color: var(--mpg-muted); }

.mpg .mpg-index #phpbbsection {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(250px, 28%);
	grid-template-areas: "forums side";
	align-items: start;
	gap: 13px;
	float: none;
	width: auto;
}
.mpg .mpg-index #phpbbsection > :is(.index-left, .index-right) { float: none; width: auto; min-width: 0; margin: 0; }
.mpg .mpg-index #phpbbsection > .index-left { grid-area: forums; }
.mpg .mpg-index #phpbbsection > .index-right { grid-area: side; }
.mpg-forum-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 5px 15px;
	padding: 11px 13px;
	margin: 0 0 8px;
	border: 1px solid var(--mpg-edge);
	border-radius: 10px;
	background: linear-gradient(115deg, #143320, #091911);
}
.mpg .mpg-forum-heading h2, .mpg .mpg-quick h2 {
	margin: 0;
	color: var(--mpg-copy);
	font-size: 17px;
	font-weight: 800;
}
.mpg-forum-heading ul { display: flex; flex-wrap: wrap; gap: 7px 13px; list-style: none; color: var(--mpg-muted); font-size: 11px; }
.mpg .mpg-forum-heading strong { color: var(--mpg-lime); }

.mpg :is(.forabg, .forumbg) {
	background: linear-gradient(115deg, #102c1d, #0a1611);
	border: 1px solid var(--mpg-edge);
	border-radius: 10px;
	padding: 5px;
}
.mpg :is(.panel, .post, .bg1, .bg2, .bg3, .dropdown .dropdown-contents, .attachbox, .cp-mini, .cp-main .panel, #tabs .activetab > a, #minitabs .activetab > a, #navigation .active-subsection a) {
	background: var(--mpg-panel);
	color: var(--mpg-copy);
	border-color: var(--mpg-edge);
}
.mpg :is(.bg2, .bg3, .row-item, .ucp-main, #navigation a) { color: var(--mpg-copy); }
.mpg :is(li.row, ul.topiclist li, ul.topiclist dd, .postprofile, .signature, hr, fieldset dl, .dropdown li) { border-color: var(--mpg-edge); }
.mpg li.row:hover { background-color: var(--mpg-raised); }
.mpg :is(.postbody, .content, .postprofile, .fields1, .fields2, fieldset, label, .pagination, .breadcrumbs, .stat-block, .time) { color: var(--mpg-muted); }
.mpg :is(.content, .postbody .content, .postbody h3) { color: var(--mpg-copy); }
.mpg :is(blockquote, blockquote blockquote, .codebox, .notice, .pollbar1, .pollbar2, .pollbar3, .attachbox, .rules) {
	color: var(--mpg-copy);
	background: #162d21;
	border-color: #56745e;
}
.mpg .rules strong { color: #ffd2ad; }
.mpg :is(input.inputbox, textarea.inputbox, input[type="search"], select) { color: var(--mpg-copy); background-color: #071510; border-color: #648372; }
.mpg :is(.button, .button1, .button2, .button3, .pagination li a, #tabs a, #minitabs a, #navigation a) {
	color: var(--mpg-copy);
	background: #1a3627;
	border-color: #648372;
	box-shadow: none;
	text-shadow: none;
}
.mpg :is(.button:hover, .button1:hover, .button2:hover, #tabs a:hover, #minitabs a:hover, #navigation a:hover) { background: #2a4c35; color: var(--mpg-lime-hover); }
.mpg .button .icon { color: inherit; }
.mpg .postlink { color: #cffa74; border-color: #789c49; }
.mpg .username-coloured { text-shadow: 0 0 3px #ffffff30; }
.mpg .mpg-category .header dt a { color: var(--mpg-lime); font-size: 14px; font-weight: 800; }
.mpg .mpg-category :is(.topics, .posts, .lastpost) { color: var(--mpg-muted); }
.mpg .mpg-category li.row { background-color: #0a1913; }
.mpg .mpg-category li.row:hover { background-color: var(--mpg-raised); }
.mpg .mpg-category .forumtitle { font-weight: 750; }
.mpg .mpg-index .mpg-category-21 { --category-photo: url("images/mpg/maintenance.webp"); }
.mpg .mpg-index .mpg-category-19 { --category-photo: url("images/mpg/garden.webp"); }
.mpg .mpg-index .mpg-category-22 { --category-photo: url("images/mpg/society.webp"); }
.mpg .mpg-index :is(.mpg-category-21, .mpg-category-19, .mpg-category-22) {
	padding-inline-start: clamp(73px, 12vw, 185px);
	background-image: linear-gradient(90deg, transparent 4%, #0b2117 22%, #0b2117),
		var(--category-photo);
	background-size: auto, auto 100%;
	background-position: left top;
	background-repeat: no-repeat;
}
.mpg .mpg-index #recent-topics-box { width: auto; }
.mpg .mpg-index #recent-topics-box .header { padding: 5px 8px; }
.mpg .mpg-index #recent-topics-box .header dd.list-inner { color: var(--mpg-copy); font-size: 15px; font-weight: 800; }
.mpg .mpg-index #recent-topics-box .header dd.list-inner::before { content: "\f06d"; font-family: FontAwesome; color: var(--mpg-lime); margin-right: 6px; }
.mpg .mpg-index #recent-topics-box li.row {
	--recent-photo: url("images/mpg/flower.webp");
	background-image: var(--recent-photo);
	background-size: 38px 34px;
	background-position: 7px 9px;
	background-repeat: no-repeat;
	padding-inline-start: 44px;
}
.mpg .mpg-index #recent-topics-box li.row:nth-child(3n + 2) { --recent-photo: url("images/mpg/lounge.webp"); }
.mpg .mpg-index #recent-topics-box li.row:nth-child(3n) { --recent-photo: url("images/mpg/seedling.webp"); }
.mpg .mpg-index #recent-topics-box li.row dl { overflow-wrap: anywhere; }
.mpg .mpg-index #recent-topics-box .topictitle { font-size: 13px; }
.mpg .mpg-index #recent-topics-box :is(.forum-links a, .lastpost) { color: var(--mpg-muted); }
.mpg .mpg-index :is(.stat-block, .mpg-quick) {
	margin: 9px 0;
	padding: 10px 13px;
	border: 1px solid var(--mpg-edge);
	border-radius: 10px;
	background: linear-gradient(145deg, #102719, #07150f);
	overflow-wrap: anywhere;
}
.mpg .mpg-index .stat-block h3 { color: var(--mpg-copy); border-color: var(--mpg-edge); }
.mpg .mpg-index .stat-block p { line-height: 1.5; margin-bottom: 0; }
.mpg-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 6px; margin-top: 8px; }
.mpg-quick-grid a {
	display: grid;
	place-items: center;
	gap: 4px;
	text-align: center;
	padding: 8px 4px;
	border: 1px solid var(--mpg-edge);
	border-radius: 7px;
	background: #0a1a13;
}
.mpg-quick-grid i { font-size: 19px; }
.mpg #mchat-input { color: var(--mpg-copy); background: #071510; }
.mpg #mchat-legend { color: var(--mpg-muted); }
.mpg .copyright { color: var(--mpg-muted); }

@media (max-width: 950px) {
	.mpg .mpg-index #phpbbsection { grid-template-columns: minmax(0, 1fr) minmax(220px, 29%); gap: 8px; }
	.mpg .mpg-index :is(.mpg-category-21, .mpg-category-19, .mpg-category-22) { padding-inline-start: 45px; }
	.mpg-hero-copy { max-width: 64%; }
}
@media (max-width: 760px) {
	.mpg.wrap { padding-inline: 8px; }
	.mpg .headerbar > .inner { min-height: 65px; }
	.mpg-planet { width: clamp(65px, 16vw, 118px); }
	.mpg .headerbar { padding-inline: 0; background-position: right -35px center, center; }
	.mpg .search-header { display: none; }
	.mpg-nav a { padding-inline: 8px; min-height: 39px; }
	.mpg-nav-spacer { display: none; }
	.mpg-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mpg .mpg-index #phpbbsection { grid-template-columns: minmax(0, 1fr); grid-template-areas: "forums" "side"; }
	.mpg .mpg-index #phpbbsection > .index-left { min-width: 0; }
	.mpg .mpg-index .mpg-category { background-size: auto, auto 110px; }
}
@media (max-width: 470px) {
	.mpg-hero {
		background-image: linear-gradient(90deg, #06110cf0, #06110c80 64%, #06110c29), url("images/mpg/hero.webp");
		background-position: center, 73% center;
		padding: 16px;
	}
	.mpg-hero-copy { max-width: 100%; }
	.mpg .mpg-hero h1 { font-size: clamp(25px, 8vw, 38px); }
	.mpg .mpg-hero p { max-width: 28ch; }
	.mpg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mpg .mpg-index .mpg-category { padding-inline-start: 5px; background-image: none; }
	.mpg .mpg-index #recent-topics-box li.row { padding-inline-start: 37px; background-size: 32px 29px; }
}

/* Member profile readability */
.section-memberlist .mpg dl.details dt {
    color: #c5f34b;
}

.section-memberlist .mpg dl.details dd {
    color: #fff2a8;
}

/* Topic posts: member info on the left, message on the right */
@media (min-width: 761px) {
    .section-viewtopic .mpg .postprofile {
        float: left;
        border-left: 0;
        border-right: 1px solid #395a43;
    }

    .section-viewtopic .mpg .postbody {
        float: right;
    }
}

/* Message area on desktop and mobile */
.section-viewtopic .mpg .postbody {
    background-color: #173526;
    color: #f2f6ec;
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;
}

/* Topic post author details: readable labels on dark backgrounds */
.section-viewtopic .mpg .postprofile > dd > strong {
    color: #c5f34b;
}
