@font-face {
	font-family: Montserrat;
	src: url(/f/0f7b311b2f/Montserrat-VF.ttf) format("truetype");
	font-weight: 100 900;
	font-display: swap;
}
@font-face {
	font-family: Nunito;
	src: url(/f/bb55a5ca5c/Nunito-VF.ttf) format("truetype");
	font-weight: 200 1000;
	font-display: swap;
}
:root {
	--ink: #080a14;
	--veil: #181c36;
	--line: rgba(188, 198, 255, 0.13);
	--text: #e8eaf8;
	--mute: #969cbd;
	--moon: #f3ecd6;
	--glow: #a9b4ff;
	--ok: #8fd6b4;
	--no: #e58a9b;
	--top: max(env(safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px));
	--bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
	color-scheme: dark;
}
* {
	box-sizing: border-box;
	margin: 0;
}
[hidden] {
	display: none !important;
}
html,
body {
	height: 100%;
	overflow: hidden;
	background: var(--ink);
	overscroll-behavior: none;
}
body {
	color: var(--text);
	font:
		500 15px/1.4 Nunito,
		system-ui,
		sans-serif;
	-webkit-tap-highlight-color: transparent;
	-webkit-text-size-adjust: 100%;
}
button {
	font: inherit;
	color: inherit;
	border: 0;
	background: none;
	cursor: pointer;
}
button:focus-visible,
.search:focus-within {
	outline: 2px solid var(--glow);
	outline-offset: 2px;
}
svg path,
svg circle {
	vector-effect: non-scaling-stroke;
}

.screen {
	position: fixed;
	inset: 0;
	overflow: hidden;
	background: var(--ink);
}
.scroll {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: none;
	padding-top: var(--top);
}
.scroll::-webkit-scrollbar {
	display: none;
}
.sky {
	position: absolute;
	inset: 0 0 auto 0;
	height: 560px;
	pointer-events: none;
	background:
		radial-gradient(90% 60% at 82% 4%, rgba(120, 134, 232, 0.3), transparent 62%),
		linear-gradient(180deg, #151a3a 0, #0d1024 46%, var(--ink) 100%);
}
.stars {
	position: absolute;
	inset: 0 0 auto 0;
	width: 100%;
	height: 360px;
	pointer-events: none;
	opacity: 0.8;
}

.head {
	position: relative;
	padding: 22px 18px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
h1 {
	font:
		700 28px/1.1 Montserrat,
		sans-serif;
	letter-spacing: -0.02em;
}
.sub {
	color: var(--mute);
	margin-top: 7px;
	font-size: 14px;
}
.phase {
	flex: none;
	width: 76px;
	height: 76px;
	filter: drop-shadow(0 0 18px rgba(243, 236, 214, 0.34));
}
.phase .dark {
	fill: #262b50;
}
.phase .light {
	fill: #f3ecd6;
}
.tools {
	position: sticky;
	top: 0;
	z-index: 2;
	padding: 8px 18px 12px;
}
.tools::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	background: rgba(14, 17, 40, 0.55);
	-webkit-mask-image: linear-gradient(transparent, #000 14%, #000 82%, transparent);
	mask-image: linear-gradient(transparent, #000 14%, #000 82%, transparent);
}
.search {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	border-radius: 14px;
	background: rgba(24, 28, 54, 0.9);
	border: 1px solid var(--line);
	padding: 0 14px;
}
.search svg {
	flex: none;
	fill: none;
	stroke: #969cbd;
	stroke-width: 2;
	stroke-linecap: round;
}
.search input {
	all: unset;
	flex: 1;
	min-width: 0;
	font-size: 16px;
	color: var(--text);
}
.search input::placeholder {
	color: var(--mute);
}
.search input::-webkit-search-cancel-button {
	display: none;
}
.chips {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	margin: 10px -18px 0;
	padding: 0 18px;
	scrollbar-width: none;
}
.chips::-webkit-scrollbar {
	display: none;
}
.chip {
	flex: none;
	height: 36px;
	padding: 0 14px;
	border-radius: 18px;
	border: 1px solid var(--line);
	font-size: 14px;
	font-weight: 700;
	color: #c9cdea;
	background: rgba(24, 28, 54, 0.6);
}
.chip.on {
	background: var(--moon);
	border-color: var(--moon);
	color: #1a1c30;
}

.grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px 10px;
	padding: 4px 16px calc(32px + var(--bottom));
}
.grid.stale {
	opacity: 0.55;
	transition: opacity 0.2s 0.15s;
}
.cell {
	text-align: left;
	min-width: 0;
	border-radius: 10px;
	padding: 0;
}
.pic {
	display: block;
	position: relative;
	aspect-ratio: 312/456;
	border-radius: 10px;
}
.pic.empty {
	background: linear-gradient(160deg, rgba(40, 46, 88, 0.75), rgba(20, 24, 48, 0.75));
	border: 1px solid var(--line);
}
.pic img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.55));
	transition: transform 0.18s;
}
.pic.thumb img {
	object-fit: cover;
	border-radius: 10px;
	opacity: 0.8;
}
.cell:active img {
	transform: translateY(-3px);
}
.cell .n {
	display: block;
	margin-top: 5px;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cell .m {
	display: block;
	font-size: 12px;
	color: var(--mute);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cell.sel .pic img {
	filter: drop-shadow(0 0 12px rgba(169, 180, 255, 0.85));
}
.none {
	grid-column: 1/-1;
	text-align: center;
	color: var(--mute);
	padding: 48px 16px;
}
.none b {
	display: block;
	color: var(--text);
	font:
		600 18px Montserrat,
		sans-serif;
	margin-bottom: 6px;
}
.more {
	grid-column: 1/-1;
	height: 1px;
}

.hero {
	position: relative;
	padding: 14px 0 6px;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 404px;
}
.disc {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 356px;
	height: 356px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: radial-gradient(circle at 38% 32%, #fffaf0 0, #f3ecd6 30%, #d9d3cf 62%, #aaa9c6 100%);
	box-shadow:
		0 0 70px 14px rgba(243, 236, 214, 0.22),
		0 0 160px 40px rgba(111, 124, 224, 0.3);
	opacity: 0.96;
	overflow: hidden;
}
.disc i {
	position: absolute;
	border-radius: 50%;
	background: rgba(120, 118, 158, 0.17);
}
.disc i:nth-child(1) {
	left: 22%;
	top: 58%;
	width: 64px;
	height: 64px;
}
.disc i:nth-child(2) {
	left: 60%;
	top: 18%;
	width: 44px;
	height: 44px;
}
.disc i:nth-child(3) {
	left: 70%;
	top: 62%;
	width: 78px;
	height: 78px;
}
.disc i:nth-child(4) {
	left: 8%;
	top: 30%;
	width: 34px;
	height: 34px;
}
.hero img {
	position: relative;
	height: 370px;
	width: 247px;
	object-fit: contain;
	filter: drop-shadow(0 16px 26px rgba(4, 5, 14, 0.75));
}
.hero img.glow {
	filter: drop-shadow(0 0 6px var(--card-glow)) drop-shadow(0 0 16px var(--card-glow))
		drop-shadow(0 16px 26px rgba(4, 5, 14, 0.6));
}
.hero img.thumb {
	object-fit: cover;
	border-radius: 18px;
	opacity: 0.85;
	height: 360px;
}
.hero img:not([src]) {
	visibility: hidden;
}
.arrow {
	position: absolute;
	top: 50%;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border-radius: 50%;
	background: rgba(8, 10, 20, 0.72);
	border: 1px solid var(--line);
	display: grid;
	place-items: center;
	z-index: 2;
	padding: 0;
}
.arrow svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.arrow.l {
	left: 12px;
}
.arrow.r {
	right: 12px;
}
.bar {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 18px 0;
}
.back {
	padding: 4px 8px 4px 0;
	color: var(--mute);
}
.count {
	color: var(--mute);
	font-variant-numeric: tabular-nums;
}
.count b {
	color: var(--text);
}
.body {
	position: relative;
	padding: 8px 18px calc(30px + var(--bottom));
	max-width: 560px;
	margin: 0 auto;
}
.body h2 {
	font:
		700 23px/1.2 Montserrat,
		sans-serif;
	text-align: center;
	letter-spacing: -0.01em;
	overflow-wrap: anywhere;
}
.body h2.injured {
	text-decoration: line-through;
}
.body .an {
	text-align: center;
	color: var(--mute);
	margin: 4px 0 16px;
	overflow-wrap: anywhere;
}
.tabs {
	display: grid;
	grid-template-columns: 1fr 1.35fr 1fr;
	background: rgba(24, 28, 54, 0.9);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 4px;
}
.tabs button {
	height: 38px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 14px;
	color: var(--mute);
	padding: 0;
}
.tabs button.on {
	background: var(--moon);
	color: #1a1c30;
}
.rows {
	margin-top: 14px;
	min-height: 180px;
}
.row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 2px;
	border-bottom: 1px solid var(--line);
}
.row:last-child {
	border: 0;
}
.row span:first-child {
	color: var(--mute);
}
.row span:last-child {
	font-weight: 700;
	text-align: right;
	font-variant-numeric: tabular-nums;
	min-width: 0;
	overflow-wrap: anywhere;
}
.total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: 4px 2px 10px;
}
.total b {
	font:
		600 40px/1 Montserrat,
		sans-serif;
	color: var(--moon);
	font-variant-numeric: tabular-nums;
}
.g {
	display: inline-block;
	width: 24px;
	height: 24px;
	line-height: 24px;
	border-radius: 8px;
	text-align: center;
	font-style: normal;
	font-weight: 800;
	font-size: 13px;
	margin-right: 10px;
	background: var(--veil);
	color: var(--text);
}
.g.S {
	background: var(--moon);
	color: #1a1c30;
}
.g.A {
	background: var(--glow);
	color: #12152c;
}
.g.B {
	background: #59629f;
}
.hints {
	padding: 12px 2px 0;
	color: var(--mute);
	font-size: 13px;
	border-top: 1px solid var(--line);
}
.hints p + p {
	margin-top: 4px;
}

.shade {
	position: absolute;
	inset: 0;
	background: rgba(4, 5, 12, 0.62);
	z-index: 5;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
}
.sheet {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 6;
	background: #14182f;
	border-radius: 26px 26px 0 0;
	border-top: 1px solid var(--line);
	padding: 20px 18px calc(24px + var(--bottom));
	transform: translateY(102%);
	transition: transform 0.25s;
	max-height: 78%;
	display: flex;
	flex-direction: column;
}
.open .shade {
	opacity: 1;
	pointer-events: auto;
}
.open .sheet {
	transform: none;
}
.sheet h3 {
	font:
		600 20px Montserrat,
		sans-serif;
	margin-bottom: 4px;
}
.sheet p {
	color: var(--mute);
	font-size: 14px;
	margin-bottom: 14px;
}
.opts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	overflow-y: auto;
	align-content: flex-start;
	padding: 2px;
}
.opt {
	min-height: 40px;
	padding: 6px 14px;
	border-radius: 12px;
	border: 1px solid var(--line);
	font-weight: 700;
	font-size: 14px;
	color: #c9cdea;
	text-align: left;
	overflow-wrap: anywhere;
}
.opt.yes {
	border-color: var(--ok);
	color: var(--ok);
}
.opt.no {
	border-color: var(--no);
	color: var(--no);
	text-decoration: line-through;
}
.dir {
	margin-top: 12px;
	height: 44px;
	border-radius: 12px;
	border: 1px solid var(--line);
	font-weight: 700;
	font-size: 14px;
	color: #c9cdea;
	flex: none;
}
.acts {
	display: flex;
	gap: 10px;
	margin-top: 18px;
	flex: none;
}
.acts button {
	flex: 1;
	height: 46px;
	border-radius: 14px;
	font-weight: 800;
	background: var(--veil);
}
.acts .go {
	background: var(--moon);
	color: #1a1c30;
}

.notice {
	position: fixed;
	inset: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 24px;
	text-align: center;
	background:
		radial-gradient(90% 60% at 50% 20%, rgba(120, 134, 232, 0.22), transparent 62%), var(--ink);
}
.notice p {
	max-width: 320px;
	font-size: 17px;
}
.notice button {
	height: 46px;
	padding: 0 28px;
	border-radius: 14px;
	font-weight: 800;
	background: var(--moon);
	color: #1a1c30;
}
.toast {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: calc(20px + var(--bottom));
	z-index: 30;
	margin: 0 auto;
	max-width: 420px;
	padding: 12px 16px;
	border-radius: 14px;
	background: #1d2244;
	border: 1px solid var(--line);
	text-align: center;
	opacity: 0;
	transform: translateY(12px);
	transition:
		opacity 0.2s,
		transform 0.2s;
	pointer-events: none;
}
.toast.on {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
