* {
	transition-duration: 0.5s;
	text-align: center;
	font-family: "Inconsolata", monospace;
	font-weight: bold;
	table-align: center;
	margin: auto;
	-webkit-text-size-adjust: none;
	text-size-adjust: none;

}

*:focus {
	outline: none;
	webkit-outline: none;
}

html, body {
	min-height: 100%;
	height: 100%;
}

td {
	padding: 0
}

.upgTable {
	display: flex !important;
	flex-flow: column wrap;
	justify-content: center;
	align-items: center;
	max-width: 100%;
	margin: 0 auto;
}

.upgRow {
	display: flex !important;
	flex-flow: row wrap;
	justify-content: center;
	align-items: center;
	max-width: 100%;
	margin: 0 auto;
}

.upgAlign {
	vertical-align: 0
}

.bigUpgAlign {
	vertical-align: 0
}

.treeThing {
	margin: 0 10px 0 10px;
	vertical-align: middle;
}

.can.upg:hover {
	z-index: 2
}

.can.buyable:hover {
	z-index: 2
}

.back {
	position: absolute;
	top: 0;
	left: 0;
	background-color: transparent;
	border: 1px solid transparent;
	color: var(--color);
	font-size: 40px;
	cursor: pointer;
}

.other-back {
	position: absolute;
	top: 0;
	left: 60px;
	background-color: transparent;
	border: 1px solid transparent;
	color: var(--color);
	font-size: 60px;
	cursor: pointer;
}

.back:hover {
	transform: scale(1.1, 1.1);
	text-shadow: 0 0 7px var(--color);
}

.hidden {
	visibility: hidden;
	height: 50px !important;
}

.canvas {
	top: 0;
	left: 0;
	position: absolute;
	z-index: -999;
}

.left {
	position: absolute;
	left: 0;
}

.remove {
	height: 24px;
	width: 24px;
	cursor: pointer;
}

.remove:hover {
	transform: scale(1.1, 1.1);
}

.col {
	min-width: 49.5%;
	max-width: 49.5%;
	width: 49.5%;
	height: 100%;
	min-height: 100%;
	column-span: 1;
	position: absolute;
	overflow-y: auto;
	overflow-x: auto;
	transition-duration: 0s
}

.instant {
	transition-duration: 0s !important
}

.fast {
	transition:color none
}

.col.right {
	top: 0;
	right: 0;
}

#app {
	column-count: 2;
	column-width: 50%;
	min-height: 100%;
}

.vl2 {
	border-left: 3px solid var(--color);
	height: 100%;
}

ul {
	list-style-type: none;
}

.fullWidth {
	position: absolute;
	height: 100%;
	width: 100%;
	min-width: 100%;
	overflow-y: auto;
	overflow-x: auto;
	transition-duration: 0s
}

.tooltipBox { 
	position: relative;
  }
  
  .tooltipBox:hover .tooltip{
	opacity: 1;
  }

  .forceTooltip .tooltip{
	opacity: 1;
  }
  
.respecCheckbox {
	display: inline-block;
}



.treeOverlay {
	pointer-events:none;
	overflow:hidden;
}

.front {
	z-index: 30000
}

.overlayThing {
	z-index: 10000;
	pointer-events:auto;
}

.sideLayers {
	z-index: 10000;
	pointer-events:auto;
	position: absolute;
	right: 55px;
	top: 65px;
	background-color: transparent;
}

button > * {
	pointer-events:none;
}

.ghost {
	visibility: hidden
}

#treeTab td button {
    margin: 0 10px;
}

.bg {
	z-index: -9000;
	width: 100%;
	height: 100%;
	position: absolute;
	background-color: transparent;
	top: 0
}

.bg2 {
	z-index: -9009;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0
}

.noBackground {
	background: transparent !important;
	background-image: none !important;
	--background: transparent !important;
}

/* 自动化商店：统一卡片网格 */
#layer-shop .upgTable,
#layer-shop .upgCol {
	width: 100%;
}

.shop-wrap {
	width: 100%;
	max-width: 1080px;
	margin: 10px auto 30px;
	text-align: left;
}

.shop-wrap,
.shop-summary,
.shop-card,
.shop-card-head,
.shop-card-name,
.shop-price,
.shop-note {
	text-align: left;
}

.shop-badge,
.shop-master,
.shop-toggle,
.shop-toggle span,
.shop-toggle b,
.shop-buy {
	text-align: center;
}

.shop-topbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin: 0 0 12px;
	padding: 12px 16px;
	border: 1px solid rgba(217, 180, 74, 0.35);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.3);
}

.shop-summary {
	flex: 1 1 300px;
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: #e8e8e8;
}

.shop-warn {
	color: #f0b454;
}

.shop-master {
	flex: 0 0 auto;
	margin: 0 0 0 auto;
	padding: 8px 14px;
	font-family: inherit;
	font-size: 14px;
	color: #f4f4f4;
	cursor: pointer;
	background: rgba(217, 180, 74, 0.18);
	border: 1px solid rgba(217, 180, 74, 0.65) !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	background-image: none !important;
}

.shop-master.off {
	opacity: 0.8;
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.25) !important;
}

.shop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 10px;
	margin: 0;
	align-items: stretch;
}

.shop-card {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0;
	padding: 11px 13px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.045);
}

.shop-card.owned {
	border-color: rgba(217, 180, 74, 0.5);
	background: rgba(217, 180, 74, 0.07);
}

.shop-card.purchasable {
	border-color: rgba(122, 184, 84, 0.45);
	background: rgba(122, 184, 84, 0.07);
}

.shop-card.dim {
	opacity: 0.6;
}

.shop-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0;
}

.shop-card-name {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #f1f1f1;
}

.shop-badge {
	margin: 0;
	padding: 1px 8px;
	font-size: 12px;
	line-height: 1.5;
	white-space: nowrap;
	border: 1px solid transparent;
	border-radius: 999px;
}

.shop-badge.owned {
	color: #f0d78a;
	background: rgba(217, 180, 74, 0.18);
	border-color: rgba(217, 180, 74, 0.4);
}

.shop-badge.ready {
	color: #bfe6a0;
	background: rgba(122, 184, 84, 0.2);
	border-color: rgba(122, 184, 84, 0.45);
}

.shop-badge.muted {
	color: #a9a9a9;
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.14);
}

.shop-toggles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 0;
}

.shop-toggle {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	margin: 0;
	min-height: 46px;
	padding: 5px 4px;
	font-family: inherit;
	color: #f4f4f4;
	cursor: pointer;
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.18) !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	background-image: none !important;
}

.shop-toggle span {
	font-size: 12px;
	opacity: 0.75;
}

.shop-toggle b {
	font-size: 14px;
	font-weight: 600;
}

.shop-toggle.on {
	border-color: rgba(122, 184, 84, 0.65) !important;
	background: rgba(122, 184, 84, 0.16);
}

.shop-toggle.off {
	opacity: 0.8;
}

.shop-toggle.paused {
	border-color: rgba(240, 180, 84, 0.65) !important;
	background: rgba(240, 180, 84, 0.15);
}

.shop-price {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #dcdcdc;
}

.shop-price b {
	color: #f0d78a;
}

.shop-buy {
	margin: 0;
	padding: 7px 10px;
	font-family: inherit;
	font-size: 14px;
	color: #f4f4f4;
	cursor: pointer;
	background: rgba(122, 184, 84, 0.18);
	border: 1px solid rgba(122, 184, 84, 0.55) !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	background-image: none !important;
}

.shop-buy:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	filter: none;
}

.shop-note {
	margin: 0;
	margin-top: auto;
	font-size: 12px;
	line-height: 1.5;
	opacity: 0.62;
}

/* 模组记忆：转生页 */
.rebirth-wide {
	grid-column: 1 / -1;
}

.rebirth-keep {
	margin: 0;
	font-size: 13px;
	line-height: 1.75;
	color: #dcdcdc;
	text-align: left;
}

.rebirth-keep b {
	color: #f0d78a;
}

/* 记忆卡上的封顶折扣提示：原价划线对比 */
.rebirth-discount {
	color: #8fd18f;
	font-size: 12px;
}

.shop-master:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.rebirth-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 0 auto;
}

.rebirth-actions .shop-master {
	margin: 0;
}

/* 科技树末尾提示 */
.tree-hint {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 4px 10px;
	max-width: 620px;
	margin: 18px auto 40px;
	padding: 8px 14px;
	font-size: 13px;
	line-height: 1.6;
	text-align: center;
	color: #dcdcdc;
	border: 1px solid rgba(217, 180, 74, 0.28);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.28);
}

.tree-hint b {
	color: #f0d78a;
	font-weight: 600;
}

.tree-hint .tree-hint-tail {
	opacity: 0.7;
}

/* 剧情手记 */
.story-wrap {
	width: 100%;
	max-width: 900px;
	margin: 10px auto 30px;
	text-align: left;
}

.story-h1 {
	text-align: center;
	margin: 0 0 6px;
}

.story-note {
	text-align: center;
	font-size: 13px;
	line-height: 1.6;
	opacity: 0.65;
	margin: 0 0 14px;
}

.story-progress {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
}

.story-count {
	font-size: 13px;
	opacity: 0.8;
	white-space: nowrap;
}

.story-bar {
	flex: 1 1 auto;
	height: 8px;
	border-radius: 4px;
	border: 1px solid rgba(201, 162, 39, 0.35);
	background: rgba(0, 0, 0, 0.45);
	overflow: hidden;
}

.story-fill {
	height: 100%;
	background: linear-gradient(90deg, #c9a227, #f5d76e);
}

.story-pane {
	padding: 16px 20px 18px;
	border: 1px solid rgba(201, 162, 39, 0.35);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.3);
}

.story-meta {
	font-size: 12px;
	letter-spacing: 0.08em;
	opacity: 0.6;
}

.story-title {
	margin: 4px 0 12px;
	font-size: 22px;
	color: #f5d76e;
}

.story-text p {
	margin: 0 0 10px;
	font-size: 15px;
	line-height: 1.85;
	color: #e8e8e8;
	text-indent: 2em;
}

.story-text p:last-child {
	margin-bottom: 0;
}

.story-nav {
	display: flex;
	gap: 10px;
	margin-top: 14px;
}

.story-btn {
	padding: 6px 14px;
	font-size: 13px;
	color: #e8e8e8;
	background: rgba(201, 162, 39, 0.15);
	border: 1px solid rgba(201, 162, 39, 0.45);
	border-radius: 6px;
	cursor: pointer;
}

.story-btn:hover {
	background: rgba(201, 162, 39, 0.3);
}

.story-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 16px;
}

.story-chip {
	padding: 4px 10px;
	font-size: 12px;
	color: #cfcfcf;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	cursor: pointer;
	text-align: left;
}

.story-chip:hover {
	border-color: rgba(201, 162, 39, 0.5);
}

.story-chip.done {
	color: #9be3a0;
	border-color: rgba(120, 220, 130, 0.35);
}

.story-chip.active {
	color: #1b1b1b;
	background: #f5d76e;
	border-color: #f5d76e;
}

.story-chip.locked {
	cursor: default;
	opacity: 0.4;
}
/* 更新日志：每版一个默认折叠的块，版本号与版本名只出现在标题行 */
.cl-box {
	max-width: 760px;
	margin: 8px auto;
	text-align: left;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.15);
}

.cl-box > summary {
	cursor: pointer;
	padding: 8px 14px;
	font-size: 16px;
	color: #f5c542;
	list-style-position: inside;
}

.cl-box > summary:hover {
	color: #ffe08a;
}

.cl-box > ul {
	margin: 0 14px 12px 26px;
	padding: 0;
	line-height: 1.7;
	font-size: 14px;
}

.cl-box > ul > li {
	margin: 2px 0;
}
