@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

/* ============================================================
   方块树 · Minecraft 风格界面
   像素方块、石质面板、深色洞穴背景
   ============================================================ */

body {
	--background: #141416 !important;
	--color: #ececec !important;
	--points: #ffffff !important;
	--background_tooltip: #100010 !important;
	--mc-green: #6aa84f;
	--mc-green-dark: #355724;
	--mc-stone: #4a4a4e;
	background-color: #141416;
	background-image:
		radial-gradient(circle at 50% -10%, rgba(106, 168, 79, 0.16), transparent 46%),
		linear-gradient(rgba(9, 9, 11, 0.78), rgba(9, 9, 11, 0.93)),
		url("../img/stone_tile.png");
	background-size: auto, auto, 96px 96px;
	background-attachment: fixed;
	image-rendering: pixelated;
}

* {
	font-family: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
}

h1, h2, h3, b, strong {
	font-weight: 600 !important;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

::selection {
	background: #4d7a35;
	color: #fff;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
	width: 14px;
	height: 14px;
}
::-webkit-scrollbar-track {
	background: #101012;
	border: 2px solid #2a2a2e;
}
::-webkit-scrollbar-thumb {
	background: #58585e;
	border: 3px solid #101012;
	box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.2);
}
::-webkit-scrollbar-thumb:hover {
	background: #6aa84f;
}

/* ---------- 通用按钮：石质方块 + 立体边框 ---------- */
button {
	border-radius: 0 !important;
	color: #f4f4f4;
	text-shadow: none;
	border: 3px solid #171719 !important;
	box-shadow:
		inset 2px 2px 0 rgba(255, 255, 255, 0.26),
		inset -2px -2px 0 rgba(0, 0, 0, 0.42),
		4px 4px 0 rgba(0, 0, 0, 0.45) !important;
	background-image: linear-gradient(rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.24));
	transition: transform 0.08s ease, filter 0.12s ease !important;
}

button:hover {
	filter: brightness(1.12);
}
button:active {
	transform: translateY(2px);
	box-shadow:
		inset 2px 2px 0 rgba(0, 0, 0, 0.4),
		inset -2px -2px 0 rgba(255, 255, 255, 0.14) !important;
}

.can:hover {
	transform: translateY(-3px) !important;
	filter: brightness(1.15);
	box-shadow:
		inset 2px 2px 0 rgba(255, 255, 255, 0.3),
		inset -2px -2px 0 rgba(0, 0, 0, 0.4),
		5px 5px 0 rgba(0, 0, 0, 0.5),
		0 0 18px rgba(122, 184, 84, 0.35) !important;
}

.locked {
	background-color: #34343a !important;
	filter: grayscale(0.55) brightness(0.78);
	cursor: not-allowed;
}

.bought {
	background-color: #4d7a35 !important;
}

/* ---------- 顶部状态 ---------- */
#points {
	color: #ffe9a8;
	font-size: 34px;
	font-weight: 500 !important;
	text-shadow: 1px 1px 0 #3a2a00;
}

#mc-title {
	position: absolute;
	top: 8px;
	left: 64px;
	z-index: 10002;
	text-align: left;
	line-height: 1;
	pointer-events: none;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.7);
}

#mc-title b {
	display: block;
	font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
	font-weight: 700 !important;
	font-size: 24px;
	letter-spacing: 1px;
	color: #9adf75;
}

#mc-title span {
	display: block;
	margin-top: 4px;
	font-family: "Noto Sans SC", sans-serif !important;
	font-size: 10px;
	letter-spacing: 3px;
	color: #cfcfcf;
}

#mc-top-fade {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 150px;
	pointer-events: none;
	z-index: 900;
	background: linear-gradient(to bottom, rgba(20, 20, 22, 1) 0%, rgba(20, 20, 22, 0.96) 55%, rgba(20, 20, 22, 0) 100%);
}

#version {
	color: #b9b9b9;
	text-shadow: none;
	font-family: "Noto Sans SC", sans-serif !important;
	font-weight: 400 !important;
	font-size: 14px;
}

#info {
	color: #fff;
	-webkit-text-stroke-width: 0;
	text-shadow: 1px 1px 0 #000;
	font-family: "Noto Sans SC", sans-serif !important;
	font-weight: 500 !important;
}

#optionWheel {
	filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.6));
}

#discord {
	display: none;
}

.overlayThing {
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}

/* ---------- 首页 HUD ---------- */
.head-hud {
	width: min(520px, 92%);
	box-sizing: border-box;
	margin: 14px auto 10px;
	padding: 10px 20px 12px;
	text-align: center;
	background: linear-gradient(180deg, rgba(24, 24, 27, 0.92), rgba(17, 17, 19, 0.72));
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	box-shadow:
		0 10px 24px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.hud-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 14px;
	font-size: 12.5px;
	color: #c9c9c9;
}

.hud-meta > span,
.hud-main > * {
	margin: 0;
}

.hud-main {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 2px 8px;
	line-height: 1.1;
}

.hud-label {
	font-size: 14px;
	color: #cfcfcf;
}

.hud-rate {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 12px;
	font-size: 13px;
	color: #bfe3a8;
	background: rgba(106, 168, 79, 0.12);
	border: 1px solid rgba(106, 168, 79, 0.28);
	border-radius: 999px;
}

.hud-sub {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 4px 8px;
	margin-top: 7px;
	font-size: 13.5px;
	color: #d6d6d6;
}

.hud-sub-res b {
	font-size: 16px;
	color: #fff;
}

.hud-sub-rate {
	color: #9bd67a;
	font-weight: 600;
}

.hud-chip {
	padding: 1px 9px;
	font-size: 12px;
	color: #cfcfcf;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	white-space: nowrap;
}

.hud-line {
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.55;
	color: #d6d6d6;
}

.hud-line b {
	color: #ffe9a8;
}

/* 分屏时 HUD 在左栏居中，侧栏节点下移让出位置 */
.treeOverlay.col .head-hud,
#treeTab.col #fakeHead {
	width: min(520px, calc(100% - 48px));
	margin-left: auto;
	margin-right: auto;
}

.treeOverlay.col .sideLayers {
	position: relative;
	top: auto;
	right: auto;
	float: right;
	margin: 12px 55px 0 0;
}

/* 窄屏时给标题和右侧导轨让位，避免 HUD 与它们重叠 */
@media (max-width: 960px) {
	.head-hud-home {
		margin-top: 66px;
	}
}

@media (max-width: 820px) {
	.head-hud {
		width: calc(100% - 240px);
		max-width: 520px;
		margin-left: 56px;
		margin-right: auto;
	}
}

@media (max-width: 600px) {
	.head-hud-home {
		margin-top: 14px;
	}
}

/* ---------- 侧栏导轨 ---------- */
.sideLayers {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 12px 10px;
	background: linear-gradient(180deg, rgba(20, 20, 22, 0.55), rgba(20, 20, 22, 0.22));
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

.vl {
	border-left: 4px solid #3a3a3e;
}

/* ---------- 科技树方块 ---------- */
.treeNode,
.treeButton {
	position: relative;
	border-radius: 0 !important;
	border: 4px solid rgba(0, 0, 0, 0.6) !important;
	background-size: cover !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	image-rendering: pixelated;
	height: 88px;
	width: 88px;
	font-size: 34px;
	margin: 0 10px 2px 10px;
	box-shadow:
		inset 3px 3px 0 rgba(255, 255, 255, 0.26),
		inset -3px -3px 0 rgba(0, 0, 0, 0.5),
		7px 7px 0 rgba(0, 0, 0, 0.4) !important;
	transition: transform 0.1s ease, filter 0.15s ease !important;
}

.treeNode .nodeLabel,
.treeButton .nodeLabel {
	position: absolute;
	left: 50%;
	bottom: 1px;
	transform: translateX(-50%);
	font-size: 15px;
	line-height: 1.1;
	padding: 1px 5px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	text-shadow: 1px 1px 0 #000, -1px -1px 0 #000;
	white-space: nowrap;
	pointer-events: none;
}

.treeNode.locked,
.treeButton.locked {
	filter: grayscale(1) brightness(0.43);
}

.treeNode.can:hover,
.treeButton.can:hover {
	transform: translateY(-5px) scale(1.03) !important;
	filter: brightness(1.1);
	box-shadow:
		inset 3px 3px 0 rgba(255, 255, 255, 0.3),
		inset -3px -3px 0 rgba(0, 0, 0, 0.5),
		8px 10px 0 rgba(0, 0, 0, 0.45),
		0 0 24px rgba(122, 184, 84, 0.3) !important;
}

.smallNode {
	border-width: 3px !important;
	height: 60px !important;
	width: 60px !important;
}

.mainDisplay h2 {
	font-size: 30px;
	line-height: 1.15;
	font-weight: 500 !important;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5) !important;
}

.treeNode.hidden {
	height: 20px !important;
}

@media (max-width: 600px) {
	#mc-title {
		display: none;
	}
	#points {
		font-size: 26px;
	}
}

.notify {
	animation: mcPulse 1.6s ease-in-out infinite;
}

@keyframes mcPulse {
	0%, 100% {
		box-shadow:
			inset 3px 3px 0 rgba(255, 255, 255, 0.26),
			inset -3px -3px 0 rgba(0, 0, 0, 0.5),
			0 0 10px rgba(122, 184, 84, 0.5) !important;
	}
	50% {
		box-shadow:
			inset 3px 3px 0 rgba(255, 255, 255, 0.26),
			inset -3px -3px 0 rgba(0, 0, 0, 0.5),
			0 0 26px rgba(160, 235, 110, 0.9) !important;
	}
}

/* ---------- 标签页 ---------- */
.tabButton {
	border-radius: 0 !important;
	background-color: #2a2a2e !important;
	background-image: linear-gradient(rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.28));
	border: 3px solid #161618 !important;
	box-shadow:
		inset 2px 2px 0 rgba(255, 255, 255, 0.2),
		inset -2px -2px 0 rgba(0, 0, 0, 0.4),
		3px 3px 0 rgba(0, 0, 0, 0.4) !important;
	margin: 6px !important;
}

.tabButton:hover {
	transform: translateY(-2px) !important;
	background-color: #3d5c2c !important;
	text-shadow: 0 0 8px #9adf75;
}

/* ---------- 升级 / 购买 / 点击圆角全部方块化 ---------- */
.upg,
.buyable,
.clickable,
.achievement,
.milestone,
.milestoneDone,
.challenge,
.tile,
.longUpg,
.smallUpg {
	border-radius: 0 !important;
	border: 3px solid #171719 !important;
	color: #f6f6f6 !important;
	text-shadow: none;
	box-shadow:
		inset 2px 2px 0 rgba(255, 255, 255, 0.24),
		inset -2px -2px 0 rgba(0, 0, 0, 0.4),
		4px 4px 0 rgba(0, 0, 0, 0.38) !important;
	background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.26));
}

.upg {
	position: relative;
	min-height: 132px;
	width: 132px;
	font-size: 12px;
	line-height: 1.25;
}

.upg h3 {
	font-size: 15px;
	color: #ffe9a8;
	text-shadow: none;
}

.upg.bought {
	background-color: #4d7a35 !important;
}

.upg.bought::after {
	content: "✔";
	position: absolute;
	right: 6px;
	top: 4px;
	font-size: 14px;
	color: #d9ffbf;
}

.buyable {
	font-size: 13px;
	line-height: 1.35;
}

.buyable h2,
.clickable h2 {
	color: #ffe9a8;
	font-size: 18px;
}

/* ---------- 里程碑 ---------- */
.milestone,
.milestoneDone {
	background-color: #3a3a3f !important;
	border: 3px solid #171719 !important;
	color: #e8e8e8 !important;
	padding: 6px 10px;
	width: 430px;
	max-width: 92%;
	height: auto;
	min-height: 64px;
}

.milestoneDone {
	background-color: #4d7a35 !important;
}

.milestone h3,
.milestoneDone h3 {
	color: #ffe9a8;
	font-size: 15px;
}

/* ---------- 成就 ---------- */
.achievement {
	background-color: #2b2b30 !important;
	background-size: 44px 44px !important;
	background-position: center 10px !important;
	background-repeat: no-repeat !important;
	padding-top: 36px;
	font-size: 11px;
	visibility: visible !important;
	opacity: 0.34;
	filter: grayscale(1) brightness(0.8);
	height: 104px !important;
}

.achievement.bought {
	background-color: #3c5f2a !important;
	border-color: #6aa84f !important;
	opacity: 1;
	filter: none;
}

.achievement h3 {
	font-size: 11px;
	line-height: 1.1;
	text-shadow: none;
}

/* ---------- 成就墙：摘要卡 + 分组卡片 ---------- */
#layer-a .upgTable,
#layer-a .upgCol {
	width: 100%;
}

#layer-a h1 {
	margin-top: 8px;
}

.ach-summary {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	width: 100%;
	max-width: 1000px;
	margin: 12px auto 6px;
}

.ach-stat {
	flex: 1 1 300px;
	min-width: 240px;
	margin: 0;
	box-sizing: border-box;
	padding: 12px 16px 14px;
	text-align: left;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.045);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ach-stat-label,
.ach-stat-num,
.ach-stat-note {
	text-align: left;
}

.ach-stat.gold {
	border-color: rgba(217, 180, 74, 0.45);
	background: rgba(217, 180, 74, 0.07);
}

.ach-stat-label {
	font-size: 12px;
	letter-spacing: 1px;
	color: #b9b9b9;
}

.ach-stat-num {
	margin-top: 2px;
	font-size: 28px;
	line-height: 1.2;
	color: #f6f6f6;
}

.ach-stat-num span {
	font-size: 14px;
	color: #b9b9b9;
}

.ach-stat.gold .ach-stat-num {
	color: #ffe9a8;
}

.ach-stat-note {
	margin-top: 7px;
	font-size: 12.5px;
	line-height: 1.6;
	color: #c7c7c7;
}

.ach-stat-note b {
	color: #ffe9a8;
}

.ach-bar {
	height: 8px;
	margin-top: 9px;
	overflow: hidden;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.45);
	box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.5);
}

.ach-bar > div {
	height: 100%;
	margin: 0;
	border-radius: 4px;
	background: linear-gradient(90deg, #4d7a35, #9adf75);
}

.ach-intro {
	width: 100%;
	max-width: 1000px;
	box-sizing: border-box;
	margin: 10px auto 0;
	padding: 0 4px;
	text-align: left;
	font-size: 13px;
	line-height: 1.6;
	color: #b9b9b9;
}

.ach-group {
	width: 100%;
	max-width: 1000px;
	box-sizing: border-box;
	margin: 22px auto 0;
	padding: 0 4px;
	text-align: left;
}

.ach-group-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 4px 12px;
}

.ach-group-head > div {
	margin: 0;
	text-align: left;
}

.ach-group-title {
	text-align: left;
	font-size: 18px;
	font-weight: 600;
	color: #ffe9a8;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.ach-group-desc {
	margin-top: 2px;
	text-align: left;
	font-size: 12.5px;
	color: #b9b9b9;
}

.ach-group-count {
	text-align: right;
	font-size: 13px;
	color: #d9d9d9;
	white-space: nowrap;
}

.ach-group-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 10px;
	width: 100%;
	max-width: 1000px;
	box-sizing: border-box;
	margin: 10px auto 0;
	padding: 0 4px;
	transition-duration: 0s !important;
}

.ach-group-row > .upgAlign {
	margin: 0;
	transition-duration: 0s !important;
}

#layer-a .achievement {
	position: relative;
	box-sizing: border-box;
	width: 112px !important;
	height: 132px !important;
	padding-top: 76px;
	background-size: 52px 52px !important;
	background-position: center 14px !important;
	border-radius: 10px !important;
	font-size: 12px;
	opacity: 0.6;
	filter: grayscale(0.8) brightness(1);
	visibility: visible !important;
}

#layer-a .achievement:hover {
	transform: translateY(-3px);
	filter: none;
	opacity: 0.9;
}

#layer-a .achievement.bought {
	opacity: 1;
	filter: none;
	box-shadow:
		inset 2px 2px 0 rgba(255, 255, 255, 0.24),
		inset -2px -2px 0 rgba(0, 0, 0, 0.36),
		0 0 0 1px rgba(154, 223, 117, 0.25),
		0 0 14px rgba(106, 168, 79, 0.22) !important;
}

#layer-a .achievement.bought::after {
	content: "✔";
	position: absolute;
	right: 7px;
	top: 4px;
	font-size: 13px;
	color: #d9ffbf;
}

#layer-a .achievement h3 {
	padding: 0 4px;
	font-size: 12px;
	line-height: 1.2;
	color: #f1f1f1;
}

@media (max-width: 700px) {
	.ach-group-row {
		justify-content: center;
	}
	#layer-a .achievement {
		width: 96px !important;
		height: 120px !important;
		padding-top: 68px;
		background-size: 44px 44px !important;
		background-position: center 11px !important;
	}
	#layer-a .achievement h3 {
		font-size: 11px;
	}
}

/* ---------- 声望按钮 ---------- */
.reset {
	border-radius: 0 !important;
	border: 4px solid #171719 !important;
	font-size: 17px;
	min-height: 105px;
	box-shadow:
		inset 3px 3px 0 rgba(255, 255, 255, 0.26),
		inset -3px -3px 0 rgba(0, 0, 0, 0.42),
		6px 6px 0 rgba(0, 0, 0, 0.42) !important;
}

.reset.locked {
	background-color: #34343a !important;
}

/* ---------- 信息框 / 剧情 ---------- */
.story {
	background-color: #1b1b1f;
	border: 3px solid #3b3b40;
	border-radius: 0;
	box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.story-title {
	border-radius: 0;
	background-color: #355724 !important;
	color: #f4f4f4 !important;
	font-size: 18px;
	text-align: left;
	width: 100%;
	box-sizing: border-box;
	text-shadow: none;
	padding: 5px 8px;
}

.story-text {
	border-radius: 0;
	background-color: #1b1b1f !important;
	color: #dedede !important;
	border: none;
	border-top: 3px solid #3b3b40;
	text-align: left;
	line-height: 1.5;
}

.story-toggle {
	background: #355724;
	color: #fff;
}

/* ---------- Minecraft 工具提示 ---------- */
.tooltip {
	background-color: #100010 !important;
	border: 2px solid #3a1a6b !important;
	border-radius: 0 !important;
	color: #f0f0f0 !important;
	width: 270px !important;
	min-width: 220px;
	max-width: 80vw;
	font-size: 14px !important;
	line-height: 1.45;
	padding: 8px 10px !important;
	text-align: left;
	white-space: normal !important;
	word-break: normal;
	overflow-wrap: anywhere;
	box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
}

.tooltip::after {
	border-color: #3a1a6b transparent transparent transparent !important;
}

/* 侧边层贴右边缘，提示框改为右对齐并向左展开，避免被 .treeOverlay 裁切 */
.sideLayers .tooltip {
	left: auto;
	right: 0;
	transform: none;
}

.sideLayers .tooltip::after {
	left: auto;
	right: 35px;
	margin-left: 0;
}

/* ---------- 弹窗 ---------- */
/* 弹窗放右下角，避开右上角的侧栏导轨；容器不拦截点击，只有弹窗本体可点 */
.popup-container {
	top: auto;
	bottom: 16px;
	right: 16px;
	width: 250px;
	pointer-events: none;
}

.popup {
	pointer-events: auto;
	border-radius: 0 !important;
	border: 3px solid #171719 !important;
	width: 250px;
	min-height: 46px;
	padding: 7px 10px !important;
	margin-top: 10px !important;
	color: #141414 !important;
	text-shadow: none !important;
	box-shadow:
		inset 2px 2px 0 rgba(255, 255, 255, 0.25),
		inset -2px -2px 0 rgba(0, 0, 0, 0.25),
		4px 4px 0 rgba(0, 0, 0, 0.45) !important;
}

.popup h3 {
	font-size: 12px;
	opacity: 0.8;
}

.popup h2 {
	font-size: 17px;
}

/* ---------- 通关界面 ---------- */
.winScreen {
	position: fixed !important;
	inset: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	min-width: 100vw !important;
	margin: 0 !important;
	padding: 76px 24px 40px !important;
	box-sizing: border-box;
	z-index: 50000;
	background-image:
		radial-gradient(circle at 50% 18%, rgba(106, 168, 79, 0.18), transparent 46%),
		linear-gradient(rgba(7, 7, 9, 0.96), rgba(7, 7, 9, 0.98)),
		url("../img/stone_tile.png");
	background-size: auto, auto, 96px 96px;
}

.winScreen h2 {
	font-size: 34px;
	color: #9adf75;
	text-shadow: 1px 1px 0 #000;
}

.winScreen h3 {
	font-size: 19px;
	line-height: 1.7;
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}

.winScreen .longUpg {
	width: 200px;
	height: 68px;
	margin: 12px;
	font-size: 17px;
	background-color: #4d7a35 !important;
	color: #fff !important;
	border: 3px solid #17210f !important;
}

.winScreen .link {
	display: inline-block;
	font-size: 14px !important;
	margin: 4px 10px;
}

.winScreen ~ .popup-container {
	display: none;
}

/* ---------- 选项 / 信息按钮 ---------- */
.opt {
	width: 132px;
	height: 84px;
	font-size: 13px;
	line-height: 1.35;
	padding: 4px;
}

@media (max-width: 600px) {
	.opt {
		width: 96px;
		height: 76px;
		font-size: 11px;
	}
}

.link {
	color: #9adf75;
	-webkit-text-stroke-width: 0;
	text-shadow: none;
}

.link:hover {
	text-shadow: 0 0 8px #9adf75;
}

.eggbox {
	display: none;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(680px, 92vw);
	height: min(460px, 80vh);
	z-index: 999999;
	background: #100010;
	border: 3px solid #3a1a6b;
	box-shadow: 0 0 0 3px #07070a, 10px 10px 0 rgba(0, 0, 0, 0.6);
	color: #e8e8e8;
	text-align: left;
	box-sizing: border-box;
}

.egghead {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 42px;
	padding: 0 10px;
	background: #2a1245;
	border-bottom: 2px solid #3a1a6b;
	box-sizing: border-box;
}

.egghead span {
	font-weight: 600 !important;
	color: #d8b4ff;
	letter-spacing: 1px;
}

.egghead button {
	width: 30px;
	height: 30px;
	padding: 0;
	font-size: 18px;
	line-height: 1;
}

.eggo {
	height: calc(100% - 84px);
	overflow-y: auto;
	padding: 10px;
	background: #07070a;
	font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
	box-sizing: border-box;
}

.eggline {
	white-space: pre-wrap;
	margin: 2px 0;
	text-align: left;
	word-break: break-word;
}

.eggcmd {
	color: #9adf75;
}

.eggok {
	color: #9adf75;
}

.eggerr {
	color: #ff8a8a;
}

.eggrow {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 10px;
	border-top: 2px solid #3a1a6b;
	box-sizing: border-box;
}

.eggrow span {
	color: #9adf75;
	font-weight: 600 !important;
}

#_egg_in {
	flex: 1;
	margin: 0;
	padding: 7px 9px;
	background: #111116;
	border: 2px solid #3a1a6b;
	color: #fff;
	font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
	font-size: 14px;
	text-align: left;
	outline: none;
}

/* ---------- 小屏适配 ---------- */
@media (max-width: 900px) {
	.treeNode {
		height: 78px;
		width: 78px;
		font-size: 30px;
	}
	.upg {
		width: 112px;
		min-height: 120px;
	}
	.buyable {
		width: 180px;
		height: auto;
		min-height: 170px;
	}
}
