/* Fonts */
body, .tooltip, select.menuBtn {
	font-family: "Times New Roman", Times, serif;
	font-size: 16px;
	font-weight: normal;
	line-height: normal;
	letter-spacing: normal;
}

html {
	height: 100%;
}

body {
	height: 100%;
	margin: 0;
}

::selection {
	background-color: transparent;
}

::-moz-selection {
	background-color: transparent;
}

#description textarea::selection {
	background-color: gray;
}

#description textarea::-moz-selection {
	background-color: gray;
}

/* Framework stuff */

div.clear {
	clear: both;
}

div#wrapper {
	margin: auto;
	width: 700px;
	padding: 20px 0 0 220px;
	position: relative;
}

div#saveNotify {
	position: fixed;
	top: 10px;
	right: 20px;
	background: white;
	opacity: 0;
}

div#content {
	position: relative;
	overflow: hidden;
	height: 700px;
}

div#header {
	padding-bottom: 20px;
	height: 20px;
}

.logo {
  position: fixed;
  left: 10px;
  bottom: 0;
  z-index: 10;
}

.logo-icon {
  height: 40px;
}

.logo-icon > path {
  stroke: black;
}

.menu {
	position: fixed;
	right: 10px;
	bottom: 10px;
	color: #666;
	z-index: 10;
}

.menu span {
	cursor: pointer;
	float: right;
	margin-left: 20px;
}

.customSelect {
	height: 20px;
}

span.customSelectOptions {
	margin: 0;
	width: 120px;
}

.customSelectOptions > ul {
	max-height: 20px;
	width: 120px;
	overflow: hidden;
	-webkit-transition: max-height 1s;
	transition: max-height 1s;
	padding: 0;
	margin: 0;
	bottom: 0;
	position: absolute;
	right: 0;
}

.customSelectOptions > ul:hover {
	max-height: 600px;
}

.customSelectOptions > ul > li {
	padding: 0 0 3px 0;
	list-style-type: none;
	height: 20px;
}

.customSelectOptions > ul > li:last-child {
	padding: 0;
}

.customSelectOptions > ul > li:hover {
	text-decoration: underline;
}

.customSelectOptions > ul > li:first-child:hover {
	cursor: default;
	text-decoration: none;
}

.menu span:hover {
	text-decoration: underline;
}

.menu .appStore {
	font-weight: bold;
}

div.headerButton {
	font-size: 17px;
	cursor: pointer;
	float: left;
	border-left: 1px solid black;
	margin-left: 10px;
	padding-left: 10px;
}

div.headerButton:hover {
	text-decoration: underline;
}

div.headerButton:first-child {
	border-left: none;
	margin-left: 0px;
	padding-left: 0px;
}

div.headerButton.selected, div.headerButton.selected:hover {
	cursor: default;
	text-decoration: underline;
}

div#outerSlider {
	position: absolute;
}

div#outerSlider > div {
	position: relative;
	float: left;
	width: 700px;
	height: 700px;
	overflow: hidden;
}

div#locationSlider {
	position: absolute;
}

div.location {
	position: relative;
	float: left;
	width: 700px;
}

div.row_key {
	clear: both;
	float: left;
}

div.row_val {
	float: right;
}

div.total {
	font-weight: bold;
}

/* Notifications */

div#notifications {
	position: absolute;
	top: 20px;
	left: 0px;
	height: 700px;
	width: 200px;
	overflow: hidden;
}

div#notifications div.notification {
	margin-bottom: 10px;
}

div#notifyGradient {
	position: absolute;
	top: 0px;
	left: 0px;
	height: 100%;
	width: 100%;
	background-color: white;
	background: -webkit-linear-gradient(
		rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%
	);
	background: linear-gradient(
		rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%
	);
	filter: alpha(
		Opacity=0, FinishOpacity=100, Style=1, StartX=0, StartY=0, FinishX=0, FinishY=500
	);
}

/* Button */

div.button {
	position: relative;
	text-align: center;
	border: 1px solid black;
	width: 100px;
	margin-bottom: 5px;
	padding: 5px 10px;
	cursor: pointer;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

div.button:hover {
	text-decoration: underline;
}

div.button.disabled, div.button.disabled:hover {
	cursor: default;
	border-color: #b2b2b2;
	color: #b2b2b2;
	text-decoration: none;
}

div.button div.cooldown {
	position: absolute;
	top: 0px;
	left: 0px;
	z-index: -1;
	height: 100%;
	background-color: #DDDDDD;
}

/* Up/Down buttons. They're complicated! */

.upBtn, .dnBtn, .upManyBtn, .dnManyBtn {
	position: absolute;
	width: 14px;
	height: 12px;
	cursor: pointer;
}

.upBtn, .dnBtn {
	right: 0px;
}

.upManyBtn, .dnManyBtn {
	right: -15px;
}

.upBtn.disabled, .dnBtn.disabled, .upManyBtn.disabled, .dnManyBtn.disabled {
	cursor: default;
}

.upBtn {
	top: -3px;
}

.upManyBtn {
	top: -3px;
}

.upBtn:after, .upBtn:before, .upManyBtn:after, .upManyBtn:before {
	position: absolute;
	border: medium solid transparent;
	content: " ";
	height: 0;
	width: 0;
	bottom: 2px;
}

.upBtn:after, .upManyBtn:after {
	border-color: transparent transparent white;
}

.upBtn:before, .upManyBtn:before {
	border-color: transparent transparent black;
}

.upBtn.disabled:before, .upManyBtn.disabled:before {
	border-color: transparent transparent #999;
}


.dnBtn {
	bottom: -3px;
}

.dnManyBtn {
	bottom: -3px;
}

.dnBtn:after, .dnBtn:before, .dnManyBtn:after, .dnManyBtn:before {
	position: absolute;
	border: medium solid transparent;
	content: " ";
	height: 0;
	width: 0;
	top: 2px;
}

/* Overall size of buttons controlled by this style
   border-width and margin-left should be the same. */
.upBtn:before, .dnBtn:before, .upManyBtn:before, .dnManyBtn:before {
	border-width: 6px;
	left: 50%;
	margin-left: -6px;
}

/* Thickness of up/down button lines controlled by this style.
   border-width and margin-left should be the same.
   Thickness = :before.border-width minus :after.border-width */
.upBtn:after, .dnBtn:after {
	border-width: 4px;
	left: 50%;
	margin-left: -4px;
}

/* See comment on .upBtn:after, .dnBtn:after */
.upManyBtn:after, .dnManyBtn:after {
	border-width: 3px;
	left: 50%;
	margin-left: -3px;
}

.dnBtn:after, .dnManyBtn:after {
	border-color: white transparent transparent;
}

.dnBtn:before, .dnManyBtn:before {
	border-color: black transparent transparent;
}

.dnBtn.disabled:before, .dnManyBtn.disabled:before {
	border-color: #999 transparent transparent;
}

div.button div.tooltip {
	width: 100px;
}

/* Tooltip */

div.tooltip {
	display: none;
	padding: 2px 5px;
	border: 1px solid black;
	position: absolute;
	box-shadow: -1px 3px 2px #666;
	background: white;
	z-index: 999;
}

.tooltip.bottom {
	top: 30px;
}

.tooltip.right {
	left: 2px;
}

.tooltip.left {
	right: 0px;
}

.tooltip.top {
	bottom: 20px;
}

*:hover > div.tooltip {
	display: block;
}

*:hover > div.tooltip:hover {
	display: none;
}

.disabled:hover > div.tooltip, .button.free:hover > div.tooltip {
	display: none;
}

#event .button.disabled:hover > div.tooltip {
	display: block;
}

/* Events */

.eventPanel {
	background: none repeat scroll 0 0 white;
	border: 2px solid transparent;
	left: 250px;
	padding: 20px;
	position: absolute;
	top: 90px;
	width: 335px;
	z-index: 20;
}

body.noMask .eventPanel {
	background-color: black;
}

.eventPanel:before {
	background-color:white;
	opacity: 0.6;
	content: " ";
	height: 700px;
	left: -252px;
	position: absolute;
	top: -75px;
	width: 920px;
	z-index: -2;
}

body.noMask .eventPanel:before {
	opacity: 0;
}

.eventPanel:after {
	position: absolute;
	top: -2px;
	left: -2px;
	width: 100%;
	height: 100%;
	content: " ";
	border: 2px solid black;
	box-shadow: 5px 5px 5px #666666;
	z-index: -2;
}

body.noMask .eventPanel:after {
	border-color: white;
}

.eventPanel .button {
	float:left;
	margin-right: 20px;
}

body.noMask .eventPanel .button {
	border-color: white;
	color: white;
}

.eventTitle {
	display: inline-block;
	font-weight: bold;
	position: absolute;
	top: -12px;
}

body.noMask .eventTitle {
	color: white;
}

.eventTitle:after {
	background-color: white;
	bottom: 32%;
	content: " ";
	height: 5px;
	left: 0;
	position: absolute;
	width: 100%;
	z-index: -1;
}

body.noMask .eventTitle:after {
	background-color: black;
}

#description {
	position: relative;
	min-height: 100px;
}

#description textarea {
	width: 100%;
	height: 225px;
}

body.noMask #description {
	color: white;
}

#description > div {
	padding-bottom: 20px;
}

.take-all-button {
	float: none;
}

#buttons > .button {
	margin: 0 5px 5px;
	margin-right: 15px;
}

/* Combat! */
#description div.fighter {
	padding: 0px;
	position: absolute;
	bottom: 15px;
}

#wanderer {
	left: 25%;
}

#enemy {
	right: 25%;
}

.hp {
	position: absolute;
	top: -15px;
	margin-left: -50%;
}

.fighter.shield > .label::before {
	content: '(';
	position: absolute;
	left: -8px;
}

.fighter.shield > .label::after {
	content: ')';
	position: absolute;
	right: -8px;
}

.fighter.energised > .label {
	font-size: 2em;
	font-style: bold;
}

.fighter.meditation > .label {
	font-size: 1.5em;
	opacity: 0.3;
}

@keyframes exploding {
	0% { transform: translate(0, 0); }
	25% { transform: translate(-10px, 0); }
	75% { transform: translate(10px, 0); }
	100% { transform: translate(0, 0); }
}

.fighter.exploding > .label {
	animation: exploding 200ms linear infinite;
}

.fighter.venomous > .label {
	font-size: 1.5em;
	font-style: bold;
}

.fighter.enraged > .label {
	font-size: 1.5em;
	font-style: italic;
}

.fighter.boost > .label {
	font-style: italic;
}

#description .bullet {
	padding: 0px 20px 0px 20px;
	bottom: 25px;
	position: absolute;
	height: 1px;
	line-height: 1px;
}

.damageText {
	position: absolute;
	bottom: 15px;
	left: 50%;
	margin-left: -50%;
}

#lootButtons {
	padding-bottom: 0px;
	margin: 20px 0 5px 0;
	position: relative;
}

#lootButtons:before {
	content: attr(data-legend);
	position: absolute;
	top: -25px;
	left: 0px;
}

#dropMenu {
	background: none repeat scroll 0 0 white;
	border: 1px solid black;
	position: absolute;
	z-index: 100;
	padding-top: 5px;
	text-align: left;
	box-shadow: -1px 3px 2px #666;
	cursor: default;
}

#dropMenu:before {
	content: attr(data-legend);
	border-bottom: 1px solid black;
	display: block;
	margin-bottom: 5px;
	padding: 0px 0px 5px 5px;
}

#dropMenu > div {
	padding: 0px 5px 5px 5px;
	cursor: pointer;
}

#dropMenu > div:hover {
	text-decoration: underline;
}

/* 无限小黑屋 P5：轻量 premium 微交互（克制，不破坏原版 ASCII/方角灵魂，禁用 !important） */
.eventPanel .button {
	transition: transform .18s cubic-bezier(.16, 1, .3, 1), background-color .2s ease, box-shadow .2s ease;
}
.eventPanel .button:hover:not(.disabled) {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
#eventTitle {
	letter-spacing: .03em;
}

/* 无限小黑屋 星际探索（P3）：星系面板轻量样式，克制不破坏原版灵魂，禁用 !important */
#galaxyPanel .galaxyLocked {
	margin: 40px 20px;
	font-style: italic;
	opacity: .7;
}
#galaxyPanel .galaxyTitle {
	font-size: 1.4em;
	margin: 18px 0 12px;
	letter-spacing: .04em;
}
#galaxyPanel .galaxyList {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
#galaxyPanel .galaxySystem {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 14px;
	padding: 10px 12px;
	border: 1px solid rgba(128, 128, 128, .35);
	border-radius: 4px;
}
#galaxyPanel .galaxyName {
	font-weight: bold;
	min-width: 160px;
}
#galaxyPanel .galaxyMeta {
	flex: 1 1 auto;
	opacity: .85;
	font-size: .92em;
}
#galaxyPanel .galaxyTravel {
	margin: 60px 20px;
	font-style: italic;
}
#galaxyPanel .galaxyOk {
	margin: 30px 0 14px;
	font-size: 1.1em;
}
#galaxyPanel .galaxyFail {
	margin: 30px 0 14px;
	font-size: 1.1em;
	opacity: .9;
}
#galaxyPanel .galaxyReward {
	margin: 4px 0;
	padding-left: 12px;
}
#galaxyPanel .galaxyCooldown {
	margin-top: 12px;
	font-style: italic;
	opacity: .7;
}

/* ===== 无限小黑屋 P5：宇宙种子面板（玻璃拟态，明暗自适应） ===== */
#seedPanel {
	position: fixed;
	left: 12px;
	bottom: 52px;
	z-index: 20;
	width: 320px;
	max-width: calc(100vw - 24px);
	padding: 14px 16px 16px;
	border-radius: 16px;
	background: rgba(22, 24, 19, 0.55);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	backdrop-filter: blur(16px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	color: #f0f0e6;
	font-family: "Times New Roman", Times, serif;
	font-size: 14px;
	line-height: 1.5;
}

#seedPanel .seed-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

#seedPanel .seed-title {
	font-size: 15px;
	font-weight: bold;
	letter-spacing: 1px;
}

#seedPanel .seed-help-toggle {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.08);
	color: #f0f0e6;
	cursor: pointer;
	font-size: 13px;
	line-height: 1;
	transition: transform .2s cubic-bezier(.16, 1, .3, 1), background .2s;
}

#seedPanel .seed-help-toggle:hover {
	transform: scale(1.12);
	background: rgba(255, 255, 255, 0.18);
}

#seedPanel .seed-row {
	display: flex;
	gap: 6px;
	align-items: stretch;
}

#seedPanel #seedInput {
	flex: 1 1 auto;
	min-width: 0;
	padding: 7px 9px;
	border-radius: 9px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(0, 0, 0, 0.25);
	color: #f5f5ec;
	font-family: "Courier New", monospace;
	font-size: 13px;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}

#seedPanel #seedInput::placeholder {
	color: rgba(240, 240, 230, 0.45);
}

#seedPanel #seedInput:focus {
	border-color: rgba(140, 200, 160, 0.8);
	box-shadow: 0 0 0 3px rgba(140, 200, 160, 0.18);
}

#seedPanel .seed-btn {
	border: 1px solid transparent;
	border-radius: 9px;
	padding: 7px 11px;
	font-size: 13px;
	cursor: pointer;
	color: #f0f0e6;
	background: rgba(255, 255, 255, 0.1);
	transition: transform .2s cubic-bezier(.16, 1, .3, 1), background .2s, box-shadow .2s;
}

#seedPanel .seed-btn:hover {
	transform: translateY(-1px);
	background: rgba(255, 255, 255, 0.2);
}

#seedPanel .seed-btn:active {
	transform: translateY(0);
}

#seedPanel .seed-primary {
	background: linear-gradient(180deg, rgba(120, 190, 150, 0.95), rgba(90, 160, 120, 0.95));
	color: #0e1710;
	font-weight: bold;
	border-color: rgba(255, 255, 255, 0.25);
}

#seedPanel .seed-primary:hover {
	box-shadow: 0 6px 16px rgba(120, 190, 150, 0.35);
}

#seedPanel .seed-msg {
	margin-top: 9px;
	min-height: 18px;
	font-size: 12.5px;
	color: rgba(240, 240, 230, 0.8);
}

#seedPanel .seed-msg.seed-ok {
	color: #9fe6b0;
}

#seedPanel .seed-msg.seed-err {
	color: #f6a6a6;
}

#seedPanel .seed-reload {
	margin-left: 8px;
	padding: 4px 10px;
	vertical-align: middle;
}

#seedPanel .seed-help {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 12.5px;
	color: rgba(240, 240, 230, 0.85);
	animation: seedFade .25s ease;
}

#seedPanel .seed-help[hidden] {
	display: none;
}

#seedPanel .seed-help p {
	margin: 0 0 6px;
}

#seedPanel .seed-help ul {
	margin: 0;
	padding-left: 18px;
}

#seedPanel .seed-help li {
	margin-bottom: 4px;
}

@keyframes seedFade {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
	#seedPanel {
		left: 8px;
		right: 8px;
		bottom: 8px;
		width: auto;
		max-width: none;
	}
	#seedPanel .seed-row {
		flex-wrap: wrap;
	}
	#seedPanel #seedInput {
		flex: 1 1 100%;
	}
}
