@font-face {
	font-family: mcfont1;
	src: url("../mc.ttf") format("truetype");
	font-display: swap;
}

:root {
	--stone-950: #171615;
	--stone-900: #242220;
	--stone-800: #31302d;
	--stone-700: #4b4945;
	--stone-300: #d8d1c7;
	--stone-200: #eee9e0;
	--stone-100: #f7f4ee;
	--grass-700: #1f6f2b;
	--grass-600: #2e8b38;
	--grass-500: #3aa346;
	--grass-300: #86c657;
	--dirt-700: #6e4327;
	--dirt-500: #9b6844;
	--redstone: #b71d26;
	--gold: #e4b95d;
	--sky: #5caee0;
	--text: #202020;
	--muted: #68635d;
	--shadow-hard: 0 6px 0 rgba(0, 0, 0, 0.35);
	--shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.18);
	--max-width: 1180px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--text);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
		repeating-linear-gradient(45deg, #ddd6ca 0 16px, #d2c8ba 16px 32px);
	font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
	line-height: 1.65;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--grass-700);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--grass-500);
}

.container {
	width: min(100% - 32px, var(--max-width));
	max-width: var(--max-width);
	margin: 0 auto;
	padding-right: 0;
	padding-left: 0;
}

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	background: rgba(23, 22, 21, 0.96);
	border-bottom: 4px solid #000;
	box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
}

.navbar {
	min-height: 76px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 0;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.brand img {
	width: 52px;
	height: 52px;
	object-fit: contain;
	image-rendering: auto;
}

.brand__name {
	display: grid;
	line-height: 1.05;
}

.brand__name span:first-child {
	font-family: mcfont1, "Microsoft YaHei", sans-serif;
	font-size: 1.22rem;
	color: #fff;
	text-shadow: 2px 2px 0 #000;
}

.brand__name span:last-child {
	font-size: 0.72rem;
	color: var(--stone-300);
	letter-spacing: 0.08em;
}

.nav-menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 15px;
	color: #fff;
	font-size: 0.92rem;
	font-weight: 800;
	border-bottom: 4px solid transparent;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.is-active {
	color: #fff;
	background: #302e2a;
	border-bottom-color: var(--grass-500);
}

.hamburger {
	display: none;
	width: 46px;
	height: 46px;
	padding: 10px;
	background: #2b2a27;
	border: 2px solid #55514a;
}

.bar {
	display: block;
	width: 22px;
	height: 3px;
	margin: 5px auto;
	background: #fff;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.active .bar:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
	opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

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

.hero {
	position: relative;
	min-height: min(760px, calc(100vh - 24px));
	display: flex;
	align-items: center;
	overflow: hidden;
	color: #fff;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.2) 100%),
		var(--hero-image, url("../img/banner.png")) center / cover no-repeat;
	border-bottom: 8px solid #2f1d12;
}

.hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 94px;
	background: url("../img/grass.png") center bottom / auto 48px repeat-x;
	pointer-events: none;
}

.hero .container {
	position: relative;
	z-index: 1;
	padding: 76px 0 132px;
}

.hero__content {
	width: min(640px, 100%);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	color: var(--gold);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.eyebrow::before {
	content: "";
	width: 18px;
	height: 18px;
	background: var(--grass-500);
	box-shadow: 6px 0 0 var(--dirt-500), 12px 0 0 var(--gold);
}

.hero h1,
.page-hero h1 {
	margin: 0;
	font-family: mcfont1, "Microsoft YaHei", sans-serif;
	font-size: clamp(2.4rem, 6vw, 5rem);
	line-height: 1.04;
	text-shadow: 4px 4px 0 #000;
}

.hero__lead {
	max-width: 600px;
	margin: 22px 0 0;
	color: #f2ede5;
	font-size: clamp(1rem, 1.7vw, 1.24rem);
	font-weight: 600;
	text-shadow: 1px 1px 0 #000;
}

.hero__actions,
.button-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 28px;
}

.btn,
button.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 0;
	color: #fff;
	background: var(--stone-800);
	box-shadow: inset 0 3px rgba(255, 255, 255, 0.16), inset 0 -4px rgba(0, 0, 0, 0.24), var(--shadow-hard);
	font-weight: 900;
	line-height: 1.15;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn:hover,
.btn:focus,
button.btn:hover,
button.btn:focus {
	color: #fff;
	transform: translateY(2px);
	box-shadow: inset 0 3px rgba(255, 255, 255, 0.16), inset 0 -3px rgba(0, 0, 0, 0.22), 0 4px 0 rgba(0, 0, 0, 0.35);
	filter: brightness(1.06);
}

.btn-primary {
	background: linear-gradient(#4ec15a, #2b8e35);
}

.btn-secondary {
	background: linear-gradient(#505050, #2e2d2b);
}

.btn-stone {
	background: linear-gradient(#6a6760, #3a3835);
}

.btn-small {
	min-height: 40px;
	padding: 0 16px;
	font-size: 0.9rem;
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
	opacity: 0.5;
	pointer-events: none;
	filter: grayscale(0.45);
}

.server-strip {
	margin-top: 32px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	max-width: 760px;
}

.server-pill {
	min-height: 92px;
	padding: 16px;
	background: rgba(18, 17, 16, 0.82);
	border: 2px solid rgba(255, 255, 255, 0.16);
	box-shadow: inset 0 -4px rgba(0, 0, 0, 0.22);
}

.server-pill b {
	display: block;
	color: var(--gold);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.server-pill span {
	display: block;
	margin-top: 6px;
	color: #fff;
	font-weight: 900;
	overflow-wrap: anywhere;
}

.section {
	padding: clamp(52px, 7vw, 92px) 0;
}

.section-light {
	background: var(--stone-100);
}

.section-dark {
	color: #fff;
	background:
		linear-gradient(rgba(28, 27, 25, 0.94), rgba(28, 27, 25, 0.94)),
		repeating-linear-gradient(135deg, #2c2b28 0 18px, #242320 18px 36px);
}

.section-dirt {
	color: #fff;
	background:
		linear-gradient(rgba(80, 48, 29, 0.88), rgba(80, 48, 29, 0.9)),
		url("../img/Soil.png") center / 96px repeat;
}

.section-head {
	max-width: 760px;
	margin: 0 auto 34px;
	text-align: center;
}

.section-head h2,
.panel h2,
.page-hero h1 {
	margin: 0;
	font-family: mcfont1, "Microsoft YaHei", sans-serif;
	font-size: clamp(1.8rem, 3.8vw, 3.25rem);
	line-height: 1.12;
	text-transform: uppercase;
}

.section-head p {
	margin: 14px 0 0;
	color: var(--muted);
	font-size: 1.05rem;
	font-weight: 600;
}

.section-dark .section-head p,
.section-dirt .section-head p {
	color: #e6ded3;
}

.split {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
	gap: clamp(28px, 5vw, 58px);
	align-items: center;
}

.panel {
	padding: clamp(26px, 4vw, 42px);
	background: #fff;
	border: 4px solid #171615;
	box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.15);
}

.panel p {
	margin: 14px 0 0;
	color: #4d4943;
	font-weight: 600;
}

.feature-list {
	display: grid;
	gap: 14px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.feature-list li {
	position: relative;
	padding-left: 28px;
	color: #34312d;
	font-weight: 800;
}

.feature-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 14px;
	height: 14px;
	background: var(--grass-500);
	box-shadow: inset 0 -4px rgba(0, 0, 0, 0.18);
	transform: translateY(-50%);
}

.character-art {
	justify-self: center;
	width: min(100%, 560px);
	filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.28));
}

.cards-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.info-card,
.action-card,
.download-card,
.rule-card {
	position: relative;
	min-height: 100%;
	padding: 26px;
	background: #fff;
	border: 4px solid #171615;
	box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.13);
}

.info-card h3,
.action-card h3,
.download-card h3,
.rule-card h3 {
	margin: 0 0 12px;
	font-family: mcfont1, "Microsoft YaHei", sans-serif;
	font-size: 1.38rem;
	line-height: 1.2;
}

.info-card p,
.action-card p,
.download-card p,
.rule-card p {
	margin: 0;
	color: #5a554f;
	font-weight: 600;
}

.card-icon {
	width: 36px;
	height: 36px;
	object-fit: contain;
	margin-bottom: 16px;
}

.metric {
	margin-top: 8px;
	font-family: mcfont1, "Microsoft YaHei", sans-serif;
	font-size: clamp(2rem, 4vw, 3.2rem);
	line-height: 1;
	color: var(--grass-600);
}

.metric small {
	font-family: inherit;
	font-size: 0.48em;
	color: #817a70;
}

.status-note {
	margin-top: 12px;
	color: var(--muted);
	font-size: 0.9rem;
}

.leader-list {
	display: grid;
	gap: 10px;
	margin: 15px 0 0;
	padding: 0;
	list-style: none;
}

.leader-list li,
.leader-row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 10px 12px;
	background: #f0ece5;
	border: 2px solid #d1c6b9;
}

.leader-rank {
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: var(--dirt-700);
	font-weight: 900;
	box-shadow: inset 0 -3px rgba(0, 0, 0, 0.22);
}

.leader-name {
	min-width: 0;
	font-weight: 900;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.leader-score {
	color: var(--grass-700);
	font-weight: 900;
}

.empty-state {
	margin-top: 16px;
	padding: 18px;
	color: #5d554d;
	background: #f0ece5;
	border: 2px dashed #b9ab9d;
	font-weight: 700;
}

.screens-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.screenshot-card {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #000;
	border: 4px solid #171615;
	box-shadow: var(--shadow-soft);
}

.screenshot-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.screenshot-card:hover img,
.screenshot-card:focus img {
	transform: scale(1.04);
}

.screenshot-card figcaption {
	position: absolute;
	inset: auto 0 0;
	padding: 14px;
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.86));
	font-weight: 900;
	text-shadow: 1px 1px 0 #000;
}

.action-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.action-card {
	display: grid;
	gap: 16px;
	text-align: center;
}

.action-card img {
	justify-self: center;
	width: 96px;
	height: 96px;
	object-fit: contain;
}

.join-panel {
	position: relative;
	overflow: hidden;
	padding: clamp(28px, 5vw, 48px);
	color: #fff;
	background:
		linear-gradient(90deg, rgba(23, 22, 21, 0.95), rgba(23, 22, 21, 0.78)),
		url("../img/banner0.png") center / cover no-repeat;
	border: 4px solid #000;
	box-shadow: var(--shadow-hard);
}

.join-panel h2 {
	margin: 0;
	font-family: mcfont1, "Microsoft YaHei", sans-serif;
	font-size: clamp(2rem, 5vw, 4rem);
	text-shadow: 3px 3px 0 #000;
}

.join-panel p {
	max-width: 720px;
	margin: 14px 0 0;
	color: #eee4d9;
	font-weight: 700;
}

.community-links {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-top: 26px;
}

.community-link {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	padding: 12px;
	color: #fff;
	background: rgba(0, 0, 0, 0.42);
	border: 2px solid rgba(255, 255, 255, 0.16);
	font-weight: 900;
	overflow: hidden;
}

.community-link:hover,
.community-link:focus {
	color: #fff;
	border-color: var(--grass-300);
	background: rgba(0, 0, 0, 0.6);
}

.community-link img {
	width: 22px;
	height: 22px;
	object-fit: contain;
	flex: 0 0 auto;
}

.agreement {
	margin-top: 24px;
	padding: 16px;
	background: #f3eee7;
	border: 2px solid #d5c9bb;
	color: #3d3935;
	font-weight: 700;
}

.agreement input {
	width: 18px;
	height: 18px;
	margin-right: 8px;
	vertical-align: -3px;
	accent-color: var(--grass-600);
}

.page-hero {
	padding: 140px 0 70px;
	color: #fff;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.36)),
		var(--page-hero-image, url("../img/banner1.png")) center / cover no-repeat;
	border-bottom: 8px solid #2f1d12;
}

.page-hero p {
	max-width: 760px;
	margin: 16px 0 0;
	color: #f3ede4;
	font-size: 1.08rem;
	font-weight: 700;
	text-shadow: 1px 1px 0 #000;
}

.download-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.download-card {
	display: grid;
	align-content: space-between;
	gap: 20px;
}

.download-meta {
	display: grid;
	gap: 8px;
	margin-top: 10px;
	color: #5d574f;
	font-weight: 700;
}

.download-meta span {
	display: inline-flex;
	width: fit-content;
	padding: 4px 8px;
	background: #f0ece5;
	border-left: 4px solid var(--grass-500);
}

.rules-list {
	counter-reset: rules;
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rule-card {
	counter-increment: rules;
	padding-left: 82px;
}

.rule-card::before {
	content: counter(rules);
	position: absolute;
	left: 24px;
	top: 24px;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	color: #fff;
	background: var(--redstone);
	font-family: mcfont1, "Microsoft YaHei", sans-serif;
	box-shadow: inset 0 -5px rgba(0, 0, 0, 0.22);
}

.support-table,
.leaderboard-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 10px;
}

.support-table th,
.support-table td,
.leaderboard-table th,
.leaderboard-table td {
	padding: 14px 16px;
	background: #fff;
	border-top: 2px solid #d5c9bb;
	border-bottom: 2px solid #d5c9bb;
	font-weight: 800;
}

.support-table th:first-child,
.support-table td:first-child,
.leaderboard-table th:first-child,
.leaderboard-table td:first-child {
	border-left: 2px solid #d5c9bb;
}

.support-table th:last-child,
.support-table td:last-child,
.leaderboard-table th:last-child,
.leaderboard-table td:last-child {
	border-right: 2px solid #d5c9bb;
}

.support-table th,
.leaderboard-table th {
	color: #fff;
	background: var(--stone-800);
	border-color: var(--stone-800);
}

.site-footer {
	color: #d8d1c7;
	background: #111;
}

.footer-main {
	padding: 34px 0;
	text-align: center;
}

.footer-main p {
	margin: 8px auto;
	max-width: 820px;
}

.footer-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 20px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.footer-nav a {
	color: #fff;
	font-weight: 800;
}

.footer-records {
	padding: 20px 0;
	background: #2e2e2e;
	text-align: center;
	font-size: 0.9rem;
}

.footer-records a {
	color: #e7e7e7;
}

.police-record {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
	color: #cfcfcf;
}

.police-record img {
	width: 20px;
	height: 20px;
}

.notice {
	padding: 18px;
	color: #3d352d;
	background: #fff7df;
	border: 3px solid #cda84e;
	font-weight: 800;
}

.copy-feedback {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 60;
	padding: 12px 16px;
	color: #fff;
	background: #111;
	border: 2px solid var(--grass-500);
	box-shadow: var(--shadow-hard);
	font-weight: 900;
	transform: translateY(16px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.copy-feedback.is-visible {
	transform: translateY(0);
	opacity: 1;
}

.copy-feedback.ok {
	border-color: var(--grass-500);
}

.admin-page {
	background:
		linear-gradient(180deg, rgba(247, 244, 238, 0.96), rgba(229, 223, 212, 0.96)),
		url("../img/Soil.png") center / 120px repeat;
}

.admin-main {
	min-height: 100vh;
}

.admin-narrow {
	max-width: 520px;
}

.admin-toolbar,
.admin-list-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.admin-toolbar h2,
.admin-list-head h3,
.admin-panel h2,
.admin-panel h3 {
	margin: 0;
	font-family: mcfont1, "Microsoft YaHei", sans-serif;
	line-height: 1.15;
}

.admin-panel {
	padding: 24px;
	background: #fff;
	border: 4px solid #171615;
	box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.13);
}

.admin-grid {
	display: grid;
	grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.5fr);
	gap: 20px;
	align-items: start;
}

.admin-panel-wide {
	min-width: 0;
}

.admin-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 18px 0;
}

.admin-field {
	display: grid;
	gap: 7px;
	margin-top: 14px;
}

.admin-form-grid .admin-field {
	margin-top: 0;
}

.admin-field span,
.admin-check span {
	color: #4c443c;
	font-weight: 900;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	color: #2f2a25;
	background: #f8f3ea;
	border: 2px solid #cfc2b1;
	font: inherit;
	font-weight: 800;
}

.admin-field textarea {
	resize: vertical;
}

.admin-field-full {
	grid-column: 1 / -1;
}

.admin-check {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
}

.admin-check input {
	width: 20px;
	height: 20px;
	accent-color: var(--grass-600);
}

.admin-list-panel {
	margin-top: 20px;
}

.admin-item-list {
	display: grid;
	gap: 10px;
}

.admin-item-row {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr) auto auto;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 58px;
	padding: 12px;
	text-align: left;
	color: #2f2a25;
	background: #f0ece5;
	border: 2px solid #d1c6b9;
	cursor: pointer;
}

.admin-item-row:hover,
.admin-item-row:focus {
	border-color: var(--grass-500);
	background: #fff;
}

.admin-item-row strong,
.admin-item-row b {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.admin-item-row span {
	min-width: 0;
	color: var(--muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.admin-item-row i {
	justify-self: end;
	min-width: 44px;
	padding: 5px 8px;
	color: #fff;
	background: var(--grass-600);
	font-style: normal;
	font-weight: 900;
	text-align: center;
}

.admin-item-row i.is-off {
	background: var(--stone-700);
}

.market-page {
	background:
		linear-gradient(180deg, rgba(247, 244, 238, 0.94), rgba(225, 219, 207, 0.96)),
		url("../img/Soil.png") center / 120px repeat;
}

.market-main {
	min-height: 100vh;
}

.market-locked {
	min-height: calc(100vh - 76px);
	padding: clamp(42px, 7vw, 84px) 0;
	display: grid;
	align-items: center;
}

.market-locked[hidden],
.market-shell[hidden] {
	display: none;
}

.market-lock-panel {
	max-width: 620px;
	padding: clamp(24px, 4vw, 42px);
	background: #fff;
	border: 4px solid #171615;
	box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.14);
}

.market-lock-panel img {
	width: 46px;
	height: 46px;
	object-fit: contain;
	margin-bottom: 12px;
}

.market-lock-panel h1,
.market-head h1 {
	margin: 0;
	font-family: mcfont1, "Microsoft YaHei", sans-serif;
	font-size: clamp(2rem, 5vw, 4rem);
	line-height: 1;
}

.market-lock-panel p {
	margin: 14px 0 0;
	color: #4d4943;
	font-weight: 800;
}

.market-shell {
	padding: clamp(28px, 5vw, 56px) 0 clamp(44px, 7vw, 86px);
}

.market-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}

.market-account {
	min-width: min(100%, 260px);
	padding: 14px 16px;
	color: #fff;
	background: #242220;
	border: 3px solid #000;
	box-shadow: inset 0 3px rgba(255, 255, 255, 0.12), inset 0 -4px rgba(0, 0, 0, 0.22);
}

.market-account span,
.market-stat span,
.market-field span,
.market-item__module,
.market-detail__head span,
.market-meta dt {
	display: block;
	color: #716a61;
	font-size: 0.76rem;
	font-weight: 1000;
	line-height: 1.2;
	text-transform: uppercase;
}

.market-account span {
	color: #d8d1c7;
}

.market-account strong,
.market-account b {
	color: var(--gold);
	font-weight: 1000;
}

.market-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.market-stat {
	display: grid;
	grid-template-columns: 38px 1fr auto;
	align-items: center;
	gap: 12px;
	min-height: 70px;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.86);
	border: 3px solid #171615;
	box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.1);
}

.market-stat img {
	width: 34px;
	height: 34px;
	object-fit: contain;
}

.market-stat strong {
	color: var(--grass-700);
	font-size: 1.55rem;
	font-weight: 1000;
	line-height: 1;
}

.market-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.market-main-tabs {
	justify-content: flex-end;
}

.market-tab {
	min-height: 42px;
	padding: 0 14px;
	color: #fff;
	background: #3a3835;
	border: 0;
	box-shadow: inset 0 3px rgba(255, 255, 255, 0.14), inset 0 -4px rgba(0, 0, 0, 0.22), 0 4px 0 rgba(0, 0, 0, 0.26);
	font: inherit;
	font-weight: 1000;
	cursor: pointer;
}

.market-tab:hover,
.market-tab:focus,
.market-tab.is-active {
	background: linear-gradient(#4ec15a, #2b8e35);
}

.market-tools {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) minmax(160px, 220px);
	gap: 12px;
	margin-bottom: 18px;
}

.market-sell-panel {
	display: grid;
	grid-template-columns: minmax(170px, 0.8fr) minmax(220px, 1.4fr) minmax(110px, 0.5fr) minmax(130px, 0.6fr) auto;
	gap: 12px;
	align-items: end;
	margin-bottom: 18px;
	padding: 14px;
	background: rgba(255, 255, 255, 0.9);
	border: 3px solid #171615;
	box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.1);
}

.market-sell-panel > div {
	align-self: center;
	min-width: 0;
}

.market-sell-panel strong {
	display: block;
	color: #202020;
	font-size: 1.05rem;
	font-weight: 1000;
}

.market-sell-panel > div span,
.market-sell-message {
	display: block;
	margin: 3px 0 0;
	color: #716a61;
	font-size: 0.78rem;
	font-weight: 900;
}

.market-sell-message {
	grid-column: 1 / -1;
	margin: 0;
	padding: 10px 12px;
	background: #fff7df;
	border: 2px dashed #cda84e;
}

.market-field {
	display: grid;
	gap: 6px;
	font-weight: 900;
}

.market-field input,
.market-field select {
	width: 100%;
	min-height: 46px;
	padding: 9px 11px;
	color: var(--text);
	background: #fff;
	border: 3px solid #171615;
	border-radius: 0;
	font: inherit;
	font-weight: 800;
	box-shadow: inset 0 3px rgba(255, 255, 255, 0.72), inset 0 -3px rgba(0, 0, 0, 0.08);
}

.market-field input:focus,
.market-field select:focus {
	border-color: var(--grass-600);
	outline: 0;
	box-shadow: inset 0 3px rgba(255, 255, 255, 0.72), inset 0 -3px rgba(0, 0, 0, 0.08), 0 0 0 4px rgba(58, 163, 70, 0.18);
}

.market-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
	gap: 18px;
	align-items: start;
}

.market-listing {
	min-width: 0;
}

.market-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.market-item {
	position: relative;
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) max-content;
	grid-template-rows: auto auto;
	grid-template-areas: none;
	align-items: start;
	gap: 8px 12px;
	min-height: 108px;
	padding: 14px;
	color: var(--text);
	background: rgba(255, 255, 255, 0.9);
	border: 3px solid #171615;
	border-radius: 0;
	box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.1);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.market-item:hover,
.market-item:focus,
.market-item.is-selected {
	background: #fff;
	border-color: var(--grass-600);
	outline: 0;
	transform: translateY(1px);
}

.market-item__icon {
	grid-area: auto;
	grid-row: 1 / 3;
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	background: #8f8f8f;
	border: 3px solid #171615;
	box-shadow: inset 4px 4px rgba(255, 255, 255, 0.26), inset -5px -5px rgba(0, 0, 0, 0.34);
}

.market-item__icon img {
	width: 32px;
	height: 32px;
	object-fit: contain;
	image-rendering: auto;
}

.market-item__content {
	grid-area: auto;
	grid-row: 1 / 3;
	align-self: center;
	display: grid;
	gap: 4px;
	min-width: 0;
}

.market-item__content strong {
	color: #202020;
	font-size: 1.08rem;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.market-item__meta {
	color: #5a554f;
	font-size: 0.88rem;
	font-weight: 800;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.market-item__price {
	grid-area: auto;
	justify-self: end;
	color: var(--grass-700);
	font-weight: 1000;
	white-space: nowrap;
}

.market-item__stock {
	grid-area: auto;
	grid-column: 3;
	grid-row: 2;
	align-self: end;
	justify-self: end;
	width: fit-content;
	max-width: 100%;
	padding: 4px 8px;
	color: #fff;
	background: var(--dirt-700);
	font-size: 0.78rem;
	font-weight: 1000;
	white-space: nowrap;
	box-shadow: inset 0 -3px rgba(0, 0, 0, 0.18);
}

.market-empty,
.market-status {
	margin-top: 12px;
	padding: 13px 14px;
	color: #5d554d;
	background: #fff7df;
	border: 2px dashed #cda84e;
	font-weight: 900;
}

.market-detail {
	position: sticky;
	top: 94px;
	padding: 18px;
	background: rgba(255, 255, 255, 0.94);
	border: 4px solid #171615;
	box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.12);
}

.market-detail__head {
	display: grid;
	grid-template-columns: 62px 1fr;
	gap: 14px;
	align-items: center;
}

.market-detail__head img {
	width: 62px;
	height: 62px;
	padding: 12px;
	object-fit: contain;
	background: #8f8f8f;
	border: 3px solid #171615;
	box-shadow: inset 4px 4px rgba(255, 255, 255, 0.26), inset -5px -5px rgba(0, 0, 0, 0.34);
}

.market-detail__head h2 {
	margin: 5px 0 0;
	font-size: 1.45rem;
	line-height: 1.14;
}

.market-detail p {
	margin: 15px 0;
	color: #4d4943;
	font-weight: 800;
}

.market-meta {
	display: grid;
	gap: 8px;
	margin: 0;
}

.market-meta div {
	display: grid;
	grid-template-columns: 70px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	padding: 10px;
	background: #f0ece5;
	border: 2px solid #d1c6b9;
}

.market-meta dd {
	margin: 0;
	color: #202020;
	font-weight: 1000;
	overflow-wrap: anywhere;
}

.market-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0 18px;
}

.market-tags span {
	padding: 5px 8px;
	color: #fff;
	background: #4b4945;
	font-size: 0.78rem;
	font-weight: 1000;
	box-shadow: inset 0 -3px rgba(0, 0, 0, 0.2);
}

.market-status {
	min-height: 48px;
	border-style: solid;
}

.market-status:empty {
	display: none;
}

.market-status.ok {
	color: var(--grass-700);
	background: #eff8e9;
	border-color: var(--grass-500);
}

@media (max-width: 980px) {
	.navbar {
		min-height: 70px;
	}

	.hamburger {
		display: block;
	}

	.nav-menu {
		position: fixed;
		top: 74px;
		left: 0;
		right: 0;
		display: grid;
		gap: 0;
		background: #111;
		border-bottom: 4px solid #000;
		box-shadow: var(--shadow-hard);
		transform: translateY(-130%);
		transition: transform 0.2s ease;
	}

	.nav-menu.active {
		transform: translateY(0);
	}

	.nav-link {
		width: 100%;
		justify-content: center;
		min-height: 56px;
		border-top: 1px solid #2f2d2a;
		border-bottom: 0;
	}

	.page-main {
		padding-top: 70px;
	}

	.hero {
		min-height: auto;
	}

	.hero .container {
		padding: 66px 0 118px;
	}

	.server-strip,
	.cards-grid,
	.screens-grid,
	.action-grid,
	.download-grid,
	.community-links,
	.market-layout,
	.market-tools,
	.market-sell-panel {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.split {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.container {
		width: min(100% - 22px, var(--max-width));
	}

	.brand__name span:last-child {
		display: none;
	}

	.hero__actions,
	.button-row {
		align-items: stretch;
		flex-direction: column;
	}

	.btn,
	button.btn {
		width: 100%;
	}

	.server-strip,
	.cards-grid,
	.screens-grid,
	.action-grid,
	.download-grid,
	.community-links,
	.market-stats,
	.market-grid,
	.market-layout,
	.market-tools,
	.market-sell-panel {
		grid-template-columns: 1fr;
	}

	.hero .container {
		padding-top: 48px;
	}

	.panel,
	.info-card,
	.action-card,
	.download-card,
	.rule-card,
	.join-panel {
		padding: 22px;
	}

	.rule-card {
		padding-left: 72px;
	}

	.rule-card::before {
		left: 20px;
	}

	.support-table,
	.leaderboard-table,
	.support-table tbody,
	.leaderboard-table tbody,
	.support-table tr,
	.leaderboard-table tr,
	.support-table th,
	.leaderboard-table th,
	.support-table td,
	.leaderboard-table td {
		display: block;
		width: 100%;
	}

	.support-table thead,
	.leaderboard-table thead {
		display: none;
	}

	.support-table tr,
	.leaderboard-table tr {
		margin-bottom: 12px;
	}

	.support-table td,
	.leaderboard-table td {
		border: 2px solid #d5c9bb;
		border-bottom: 0;
	}

	.support-table td:last-child,
	.leaderboard-table td:last-child {
		border-bottom: 2px solid #d5c9bb;
	}

	.support-table td::before,
	.leaderboard-table td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 4px;
		color: var(--muted);
		font-size: 0.78rem;
		text-transform: uppercase;
	}
}

@media (max-width: 640px) {
	body.menu-open {
		overflow: hidden;
	}

	.site-header {
		border-bottom-width: 3px;
	}

	.navbar {
		min-height: 64px;
	}

	.brand {
		gap: 9px;
		min-width: 0;
	}

	.brand img {
		width: 46px;
		height: 46px;
	}

	.brand__name span:first-child {
		font-size: 1.08rem;
	}

	.hamburger {
		width: 42px;
		height: 42px;
		padding: 8px;
		flex: 0 0 auto;
	}

	.nav-menu {
		top: 67px;
		align-items: stretch;
		justify-content: stretch;
		max-height: calc(100dvh - 67px);
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-18px);
	}

	.nav-menu.active {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.nav-link {
		min-height: 52px;
		font-size: 0.98rem;
	}

	.nav-menu > li {
		width: 100%;
	}

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

	.hero {
		min-height: auto;
		background-position: center top;
	}

	.hero::after {
		height: 46px;
		background-size: auto 28px;
	}

	.hero .container {
		padding: 40px 0 58px;
	}

	.hero__content {
		width: 100%;
	}

	.eyebrow {
		gap: 7px;
		margin-bottom: 10px;
		font-size: 0.82rem;
		line-height: 1.25;
		letter-spacing: 0.04em;
	}

	.eyebrow::before {
		width: 15px;
		height: 15px;
		box-shadow: 5px 0 0 var(--dirt-500), 10px 0 0 var(--gold);
	}

	.hero h1,
	.page-hero h1 {
		font-size: clamp(2.1rem, 11vw, 3rem);
		text-shadow: 3px 3px 0 #000;
	}

	.hero__lead,
	.page-hero p {
		margin-top: 14px;
		font-size: 0.98rem;
		line-height: 1.62;
	}

	.hero__actions,
	.button-row {
		gap: 10px;
		margin-top: 20px;
	}

	.btn,
	button.btn {
		min-height: 46px;
		padding: 0 16px;
		font-size: 0.95rem;
	}

	.server-strip {
		gap: 9px;
		margin-top: 22px;
	}

	.server-pill {
		min-height: 0;
		padding: 13px;
	}

	.server-pill b {
		font-size: 0.72rem;
	}

	.server-pill span {
		font-size: 0.95rem;
		line-height: 1.35;
	}

	.section {
		padding: 38px 0;
	}

	.section-head {
		margin-bottom: 22px;
		text-align: left;
	}

	.section-head h2,
	.panel h2 {
		font-size: clamp(1.6rem, 8vw, 2.25rem);
	}

	.section-head p {
		font-size: 0.95rem;
	}

	.page-hero {
		padding: 86px 0 46px;
		background-position: center;
	}

	.panel,
	.info-card,
	.action-card,
	.download-card,
	.rule-card,
	.join-panel {
		padding: 18px;
		border-width: 3px;
		box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.13);
	}

	.panel p,
	.info-card p,
	.action-card p,
	.download-card p,
	.rule-card p,
	.join-panel p {
		font-size: 0.95rem;
		line-height: 1.68;
	}

	.card-icon {
		width: 30px;
		height: 30px;
		margin-bottom: 12px;
	}

	.info-card h3,
	.action-card h3,
	.download-card h3,
	.rule-card h3 {
		font-size: 1.22rem;
	}

	.metric {
		font-size: clamp(2rem, 12vw, 2.8rem);
	}

	.character-art {
		width: min(100%, 330px);
		max-height: 190px;
		object-fit: contain;
	}

	.screens-grid,
	.action-grid,
	.cards-grid,
	.download-grid {
		gap: 14px;
	}

	.screenshot-card {
		border-width: 3px;
	}

	.action-card {
		text-align: left;
	}

	.action-card img {
		justify-self: start;
		width: 72px;
		height: 72px;
	}

	.community-link {
		min-height: 50px;
		justify-content: center;
		text-align: center;
	}

	.agreement {
		margin-top: 18px;
		padding: 13px;
		font-size: 0.9rem;
		line-height: 1.55;
	}

	.notice {
		padding: 14px;
		font-size: 0.94rem;
		line-height: 1.65;
		border-width: 2px;
	}

	.rule-card {
		padding-left: 62px;
	}

	.rule-card::before {
		left: 18px;
		top: 18px;
		width: 32px;
		height: 32px;
	}

	.support-table,
	.leaderboard-table {
		border-spacing: 0;
	}

	.support-table tr,
	.leaderboard-table tr {
		display: grid;
		gap: 0;
		margin-bottom: 12px;
		background: #fff;
		border: 2px solid #d5c9bb;
	}

	.support-table td,
	.leaderboard-table td {
		border: 0;
		border-bottom: 1px solid #e1d7cc;
	}

	.support-table td:last-child,
	.leaderboard-table td:last-child {
		border-bottom: 0;
	}

	.footer-main {
		padding: 26px 0;
		text-align: left;
	}

	.footer-nav {
		justify-content: flex-start;
	}

	.footer-records {
		padding: 16px 12px;
		font-size: 0.82rem;
	}

	.police-record {
		align-items: flex-start;
		line-height: 1.45;
	}

	.copy-feedback {
		right: 12px;
		bottom: 12px;
		left: 12px;
		text-align: center;
	}

	.market-shell {
		padding-top: 26px;
	}

	.market-head {
		align-items: stretch;
		flex-direction: column;
	}

	.market-account {
		width: 100%;
	}

	.market-main-tabs {
		justify-content: flex-start;
	}

	.market-tab {
		flex: 1 1 calc(50% - 8px);
	}

	.market-item {
		grid-template-columns: 48px minmax(0, 1fr);
	}

	.market-item__icon {
		width: 48px;
		height: 48px;
	}

	.market-item__price {
		grid-column: 2;
		grid-row: auto;
		justify-self: start;
	}

	.market-item__stock {
		grid-column: 1 / 3;
		grid-row: auto;
		justify-self: start;
	}

	.market-detail {
		position: static;
	}

	.market-meta div {
		grid-template-columns: 1fr;
	}

	.admin-toolbar,
	.admin-list-head {
		align-items: stretch;
		flex-direction: column;
	}

	.admin-grid,
	.admin-form-grid {
		grid-template-columns: 1fr;
	}

	.admin-item-row {
		grid-template-columns: 1fr auto;
	}

	.admin-item-row span {
		grid-column: 1 / -1;
	}
}

@media (max-width: 380px) {
	.container {
		width: min(100% - 18px, var(--max-width));
	}

	.brand img {
		width: 42px;
		height: 42px;
	}

	.brand__name span:first-child {
		font-size: 1rem;
	}

	.hero h1,
	.page-hero h1 {
		font-size: clamp(1.9rem, 10vw, 2.5rem);
	}

	.btn,
	button.btn {
		font-size: 0.9rem;
	}

	.panel,
	.info-card,
	.action-card,
	.download-card,
	.rule-card,
	.admin-panel,
	.join-panel {
		padding: 16px;
	}
}
