/* Разделы: нижняя панель, магазин, ежедневно, профиль, оформление, нижний лист. Цвета — из app.css. */
:root {
	--nav: 58px;
	--dark: #1a1c30;
	--soft: rgba(24, 28, 54, 0.72);
}
body.busy button {
	pointer-events: none;
}
body.busy .go {
	opacity: 0.6;
}

.nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	height: calc(var(--nav) + var(--bottom));
	padding: 0 6px var(--bottom);
	background: rgba(10, 12, 26, 0.92);
	border-top: 1px solid var(--line);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}
.deep .nav {
	display: none;
}
.nav button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 0;
	color: var(--mute);
	font-size: 11px;
	font-weight: 700;
}
.nav svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.nav button.on {
	color: var(--moon);
}
#grid-screen .grid {
	padding-bottom: calc(32px + var(--nav) + var(--bottom));
}
#grid-screen .sheet {
	padding-bottom: calc(24px + var(--nav) + var(--bottom));
}
.toast {
	white-space: pre-line;
	z-index: 40;
	bottom: calc(20px + var(--nav) + var(--bottom));
}

.content {
	position: relative;
	padding: 0 16px calc(28px + var(--nav) + var(--bottom));
	max-width: 620px;
	margin: 0 auto;
}
.chips.flat {
	margin-top: 0;
}
.money {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 4px 12px;
	font-weight: 700;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}
.note {
	color: var(--mute);
	font-size: 14px;
	margin: 8px 0;
	overflow-wrap: anywhere;
}
.note.center {
	text-align: center;
	padding: 32px 0;
}
.sub.moon {
	color: var(--moon);
}
.link {
	display: block;
	margin: 8px auto 0;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--glow);
}
.wide {
	display: block;
	width: 100%;
	min-height: 46px;
	margin-top: 10px;
	padding: 8px 14px;
	border-radius: 14px;
	font-weight: 800;
	background: var(--veil);
}
.wide.on {
	outline: 2px solid var(--glow);
}
.wide.go,
.card-acts .go,
.dock .go {
	background: var(--moon);
	color: var(--dark);
}

.panel {
	margin-bottom: 12px;
	padding: 16px;
	border-radius: 20px;
	background: var(--soft);
	border: 1px solid var(--line);
}
.panel h2 {
	font:
		700 17px/1.25 Montserrat,
		sans-serif;
	margin-bottom: 6px;
}
h2.group {
	font:
		700 17px/1.25 Montserrat,
		sans-serif;
	margin: 20px 2px 10px;
}
.progress {
	height: 6px;
	border-radius: 3px;
	background: rgba(188, 198, 255, 0.14);
	overflow: hidden;
}
.progress.big {
	height: 10px;
	border-radius: 5px;
	margin-top: 8px;
}
.progress i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--glow), var(--moon));
}

.timers {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 12px;
}
.timer {
	padding: 14px 16px;
	border-radius: 18px;
	background: var(--soft);
	border: 1px solid var(--line);
	display: grid;
	gap: 2px;
}
.timer span,
.timer small {
	color: var(--mute);
	font-size: 13px;
}
.timer b,
.timer b span {
	font:
		700 16px/1.3 Montserrat,
		sans-serif;
	color: var(--text);
	font-variant-numeric: tabular-nums;
}
.timer.ready {
	border-color: rgba(143, 214, 180, 0.45);
}
.timer.ready b {
	color: var(--ok);
}
.calendar {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
	margin-top: 14px;
	text-align: center;
}
.calendar i {
	font-style: normal;
	font-size: 12px;
	color: var(--mute);
}
.day {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	padding: 0;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--mute);
}
.day.done {
	background: var(--moon);
	color: var(--dark);
}
.day.today {
	box-shadow: inset 0 0 0 2px var(--moon);
	color: var(--text);
}
.day.missed {
	background: rgba(229, 138, 155, 0.16);
	color: var(--no);
}
.quest {
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
}
.quest-line {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
	font-size: 14px;
}
.quest-line b {
	flex: none;
	font-variant-numeric: tabular-nums;
}
.quest.ready .quest-line b {
	color: var(--ok);
}
.quest.claimed {
	opacity: 0.55;
}
.quest .link {
	margin: 4px 0 0;
	padding: 4px 0;
}

.rows.flat .row.injured span:first-child {
	color: var(--no);
}
.wide:disabled {
	color: var(--mute);
}
.head.profile {
	padding: 22px 2px 14px;
}
.head.profile h1 {
	overflow-wrap: anywhere;
}
.coins {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}
.coin {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 10px;
	padding: 10px 12px;
	border-radius: 14px;
	background: rgba(8, 10, 20, 0.4);
}
.coin i {
	grid-row: span 2;
	align-self: center;
	font-style: normal;
	font-size: 22px;
}
.coin b {
	font-variant-numeric: tabular-nums;
}
.coin span {
	font-size: 12px;
	color: var(--mute);
}
.item {
	display: grid;
	grid-template-columns: 28px 1fr auto;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid var(--line);
	font-size: 14px;
}
.item:last-child {
	border: 0;
}
.item i {
	font-style: normal;
}
.item b {
	font-variant-numeric: tabular-nums;
}
.rows.flat {
	margin: 0;
	min-height: 0;
}
.rows.flat .row {
	font-size: 14px;
	padding: 9px 0;
}
.ach {
	display: grid;
	grid-template-columns: 32px 1fr;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
}
.ach-icon {
	font-style: normal;
	font-size: 20px;
}
.ach small {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	color: var(--mute);
}

.tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px 10px;
}
.tiles.wide {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tile {
	position: relative;
	padding: 0;
	text-align: left;
	min-width: 0;
	border-radius: 12px;
}
.tile .n,
.tile .m {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tile .n {
	margin-top: 5px;
	font-size: 13px;
	font-weight: 700;
}
.tile .m {
	font-size: 12px;
	color: var(--mute);
}
.tile .mark.heart {
	right: auto;
	left: 6px;
	background: var(--no);
	color: #2a0b12;
}
.tile.dim .art img {
	opacity: 0.45;
	filter: grayscale(0.8);
}
.art.cards {
	border-radius: 10px;
}
.stage .art.cards {
	height: 258px;
}
.tile.on .art {
	box-shadow: 0 0 0 2px var(--glow);
}
.tile .mark {
	position: absolute;
	top: 6px;
	right: 6px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	font-style: normal;
	font-size: 13px;
	font-weight: 800;
	background: var(--ok);
	color: #0b1a14;
}
.art {
	display: block;
	aspect-ratio: 312/456;
	border-radius: 12px;
	overflow: hidden;
}
.art.bgs {
	aspect-ratio: 16/9;
}
.art.empty {
	background: linear-gradient(160deg, rgba(40, 46, 88, 0.75), rgba(20, 24, 48, 0.75));
}
.art img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.art.bgs img {
	object-fit: cover;
}
.banner,
.list-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	padding: 14px 16px;
	margin-bottom: 10px;
	border-radius: 18px;
	text-align: left;
	background: var(--soft);
	border: 1px solid var(--line);
}
.banner {
	background:
		radial-gradient(120% 160% at 92% 0, rgba(243, 236, 214, 0.26), transparent 55%), var(--soft);
}
.banner b,
.list-row b {
	display: block;
}
.banner span,
.list-row span {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	color: var(--mute);
}
.banner i,
.list-row i {
	flex: none;
	font-style: normal;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}
.banner i {
	font-size: 26px;
	color: var(--moon);
}

.modal {
	position: fixed;
	inset: 0;
	z-index: 25;
}
.modal-shade {
	position: absolute;
	inset: 0;
	background: rgba(4, 5, 12, 0.66);
	opacity: 0;
	transition: opacity 0.2s;
}
.modal-box {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-width: 620px;
	max-height: 88%;
	margin: 0 auto;
	overflow-y: auto;
	padding: 20px 18px calc(22px + var(--bottom));
	border-radius: 26px 26px 0 0;
	border-top: 1px solid var(--line);
	background: #14182f;
	transform: translateY(102%);
	transition: transform 0.25s;
}
.modal.on .modal-shade {
	opacity: 1;
}
.modal.on .modal-box {
	transform: none;
}
.modal h3 {
	font:
		700 20px/1.25 Montserrat,
		sans-serif;
	overflow-wrap: anywhere;
}
.modal h4 {
	margin: 20px 0 10px;
	font:
		700 16px/1.25 Montserrat,
		sans-serif;
}
.modal-head p,
.lines p {
	margin-top: 6px;
	font-size: 14px;
	color: var(--mute);
	overflow-wrap: anywhere;
}
.modal .acts button {
	min-height: 46px;
	height: auto;
	padding: 8px 10px;
}
.stage {
	display: grid;
	place-items: center;
	height: 270px;
	margin: 2px 0 12px;
	border-radius: 20px;
	background: radial-gradient(
		circle at 50% 46%,
		rgba(243, 236, 214, 0.3) 0,
		rgba(111, 124, 224, 0.16) 42%,
		transparent 70%
	);
}
.stage .art.frames {
	height: 258px;
}
.stage .worn {
	height: 258px;
	max-width: 100%;
	object-fit: contain;
	filter: drop-shadow(0 10px 18px rgba(4, 5, 14, 0.7));
}
.worn.glow,
.hero.small img.glow {
	filter: drop-shadow(0 0 5px var(--card-glow)) drop-shadow(0 0 14px var(--card-glow));
}
.stage.wide {
	height: auto;
	background: none;
}
.stage.wide .art {
	width: 100%;
}
.stage.won .art {
	animation: won 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes won {
	from {
		opacity: 0;
		transform: scale(0.6) rotate(-8deg);
	}
}
.cost {
	margin-top: 12px;
	padding: 4px 14px;
	border-radius: 14px;
	background: rgba(8, 10, 20, 0.4);
}
.cost-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0 12px;
	padding: 9px 0;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}
.cost-row + .cost-row {
	border-top: 1px solid var(--line);
}
.cost-row small {
	grid-column: 1/-1;
	font-size: 12px;
	color: var(--mute);
}
.cost-row.short b,
.cost-row.short small {
	color: var(--no);
}
.pick {
	display: flex;
	gap: 8px;
	margin: 10px 0;
}
.pick.wrap {
	flex-wrap: wrap;
}
.pick button {
	min-height: 40px;
	padding: 6px 16px;
	border-radius: 12px;
	border: 1px solid var(--line);
	font-size: 14px;
	font-weight: 700;
	text-align: left;
	overflow-wrap: anywhere;
}
.pick button.on {
	background: var(--moon);
	border-color: var(--moon);
	color: var(--dark);
}

.card-acts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}
.card-acts button {
	flex: 1 1 130px;
	min-height: 46px;
	padding: 6px 12px;
	border-radius: 14px;
	font-weight: 800;
	background: var(--veil);
}
.hero.small {
	height: 300px;
	padding: 6px 0;
}
.hero.small .disc {
	width: 264px;
	height: 264px;
}
.hero.small img {
	height: 280px;
	width: 192px;
}
.drawing {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	background: rgba(8, 10, 20, 0.8);
}
.switch {
	position: relative;
	display: flex;
	justify-content: center;
	gap: 4px;
	min-height: 34px;
	margin: 4px 0;
}
.switch button {
	padding: 0 18px;
	height: 34px;
	border-radius: 17px;
	font-size: 13px;
	font-weight: 700;
	color: var(--mute);
}
.switch button.on {
	background: var(--veil);
	color: var(--text);
}
#custom {
	padding-bottom: calc(100px + var(--bottom));
}
.dock {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	display: flex;
	gap: 10px;
	padding: 12px 16px calc(12px + var(--bottom));
	background: rgba(10, 12, 26, 0.94);
	border-top: 1px solid var(--line);
}
.dock button {
	flex: 1 1 auto;
	min-height: 48px;
	padding: 6px 12px;
	border-radius: 14px;
	font-weight: 800;
	background: var(--veil);
}
.dyes {
	display: grid;
	gap: 8px;
}
.dye {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 14px;
	text-align: left;
	background: var(--soft);
	border: 1px solid var(--line);
}
.dye.on {
	border-color: var(--glow);
	box-shadow: 0 0 0 1px var(--glow);
}
.dye b,
.dye span {
	display: block;
}
.dye span {
	font-size: 12px;
	color: var(--mute);
}
.swatch {
	flex: none;
	display: flex;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.swatch b {
	flex: 1;
}
.palette {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 8px 0;
	font-weight: 700;
}
.palette .swatch {
	width: 120px;
	border-radius: 12px;
}
