:root {
	--ink: #172033;
	--muted: #64748b;
	--line: rgba(23, 32, 51, 0.1);
	--green: #d8ff5f;
	--green-dark: #7cbd18;
	--blue: #7ad7ff;
	--violet: #bca7ff;
	--panel: rgba(255, 255, 255, 0.9);
	--shadow: 0 18px 46px rgba(78, 73, 170, 0.18);
}

* {
	box-sizing: border-box;
}

body {
	min-height: 100vh;
	margin: 0;
	background:
		radial-gradient(circle at 18% 10%, rgba(216, 255, 95, 0.38), transparent 28%),
		linear-gradient(135deg, #7ad7ff 0%, #bca7ff 48%, #f7f2ff 100%);
	color: var(--ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

button,
input {
	font: inherit;
}

button {
	cursor: pointer;
}

.app-shell {
	display: grid;
	grid-template-columns: 280px minmax(520px, 720px) minmax(300px, 380px);
	align-items: start;
	justify-content: center;
	min-height: 100vh;
	padding: 22px;
	gap: 22px;
}

.side-nav {
	position: sticky;
	top: 22px;
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: calc(100vh - 44px);
	padding: 18px;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.84);
	box-shadow: var(--shadow);
	backdrop-filter: blur(18px);
}

.brand {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 4px 18px;
	border-bottom: 1px solid var(--line);
}

.brand-mark {
	position: relative;
	flex: 0 0 auto;
	width: 62px;
	height: 62px;
	border-radius: 20px;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.34)),
		linear-gradient(135deg, #ff7b8a 0%, #ffd84d 34%, #34d399 66%, #60a5fa 100%);
	box-shadow:
		inset 0 5px 0 rgba(255, 255, 255, 0.72),
		inset 0 -7px 0 rgba(23, 32, 51, 0.12),
		0 7px 0 rgba(90, 75, 195, 0.24),
		0 13px 22px rgba(78, 73, 170, 0.2);
	overflow: hidden;
	transform: rotate(-4deg);
}

.brand-orbit {
	position: absolute;
	inset: 9px;
	border: 3px solid rgba(255, 255, 255, 0.72);
	border-radius: 16px;
	transform: rotate(22deg);
}

.brand-candy {
	position: absolute;
	width: 17px;
	height: 17px;
	border-radius: 7px;
	box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.55), 0 3px 0 rgba(23, 32, 51, 0.1);
}

.brand-candy-a {
	left: 10px;
	top: 10px;
	background: #ff5f7e;
}

.brand-candy-b {
	right: 11px;
	top: 13px;
	background: #ffd84d;
}

.brand-candy-c {
	left: 14px;
	bottom: 11px;
	background: #34d399;
}

.brand-candy-d {
	right: 10px;
	bottom: 10px;
	background: #60a5fa;
}

.brand-spark {
	position: absolute;
	left: 24px;
	top: 22px;
	width: 16px;
	height: 16px;
	background: #ffffff;
	clip-path: polygon(50% 0, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0 50%, 39% 36%);
	box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

.brand-text {
	display: flex;
	min-width: 0;
	min-height: 62px;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
}

.brand-name {
	max-width: 150px;
	font-size: 18px;
	line-height: 1.18;
	font-weight: 950;
}

.brand-user-row {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.brand-sub {
	position: relative;
	display: block;
	max-width: 165px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.1;
}

.brand-login {
	flex: 0 0 auto;
	min-height: 22px;
	padding: 2px 8px;
	border: 0;
	border-radius: 999px;
	background: rgba(216, 255, 95, 0.72);
	color: var(--ink);
	font-size: 12px;
	font-weight: 950;
	box-shadow: inset 0 0 0 1px rgba(174, 234, 34, 0.72);
}

.brand-login.hidden {
	display: none;
}

.brand-sub,
.mini-label,
.api-card label,
.api-status,
.target-sub,
.login-state,
.section-head div {
	color: var(--muted);
	font-size: 13px;
	font-weight: 800;
}

.nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	height: 54px;
	border: 0;
	border-radius: 16px;
	background: transparent;
	color: #718096;
	font-weight: 950;
	text-align: left;
}

.nav-group-title {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	height: 54px;
	border: 0;
	padding: 0 6px;
	border-radius: 16px;
	background: transparent;
	color: var(--ink);
	font-weight: 950;
	text-align: left;
	cursor: pointer;
}

.nav-group-title:hover {
	background: rgba(255, 255, 255, 0.42);
}

.nav-collapse-icon {
	position: relative;
	width: 26px;
	height: 26px;
	margin-left: auto;
	border-radius: 999px;
	background: linear-gradient(180deg, #ffffff 0%, #f3ffe4 100%);
	box-shadow:
		inset 0 2px 0 rgba(255, 255, 255, 0.92),
		inset 0 -3px 0 rgba(174, 234, 34, 0.14),
		0 3px 0 rgba(174, 234, 34, 0.2),
		0 8px 14px rgba(78, 73, 170, 0.12);
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-collapse-icon::before {
	content: "";
	position: absolute;
	left: 8px;
	top: 8px;
	width: 7px;
	height: 7px;
	border-right: 3px solid #34d399;
	border-bottom: 3px solid #34d399;
	transform: rotate(45deg);
}

.nav-group-title:hover .nav-collapse-icon {
	background: linear-gradient(180deg, #ffffff 0%, #edffd3 100%);
	box-shadow:
		inset 0 3px 0 rgba(255, 255, 255, 0.95),
		inset 0 -4px 0 rgba(174, 234, 34, 0.2),
		0 5px 0 rgba(174, 234, 34, 0.26),
		0 12px 20px rgba(78, 73, 170, 0.14);
}

.nav-group-title.collapsed .nav-collapse-icon {
	transform: rotate(-90deg);
}

.nav-submenu {
	display: grid;
	gap: 12px;
	margin: -4px 0 4px;
	padding-left: 22px;
}

.nav-submenu.collapsed {
	display: none;
}

.nav-subitem {
	height: 46px;
	padding-left: 14px;
	border-radius: 14px;
	font-size: 15px;
}

.nav-category-block {
	display: grid;
	gap: 8px;
}

.nav-category-title {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 34px;
	padding: 0 4px;
	color: #233047;
	font-size: 15px;
	font-weight: 950;
}

.nav-category-dot {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: #60a5fa;
	box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.14);
}

.nav-game-list {
	display: grid;
	gap: 8px;
	padding-left: 18px;
}

.nav-game-item {
	height: 44px;
	padding-left: 12px;
	font-size: 14px;
}

.nav-subdot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: #34d399;
	box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
}

.nav-item.active {
	background: linear-gradient(180deg, #fbfff4 0%, #efffcb 100%);
	color: var(--ink);
	box-shadow: inset 0 0 0 2px rgba(174, 234, 34, 0.42);
}

.nav-icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
}

.grid-icon {
	grid-template-columns: repeat(2, 12px);
	grid-template-rows: repeat(2, 12px);
	gap: 4px;
	transform: rotate(8deg);
}

.grid-icon i {
	width: 12px;
	height: 12px;
	border-radius: 5px;
}

.grid-icon i:nth-child(1) { background: #ff7b8a; }
.grid-icon i:nth-child(2) { background: #60a5fa; }
.grid-icon i:nth-child(3) { background: #34d399; }
.grid-icon i:nth-child(4) { background: #ffd84d; }

.user-icon i {
	position: absolute;
	top: 4px;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #34d399;
}

.user-icon b {
	position: absolute;
	bottom: 4px;
	width: 27px;
	height: 17px;
	border-radius: 14px 14px 7px 7px;
	background: #34d399;
}

.primary-btn,
.secondary-btn {
	border: 0;
	border-radius: 16px;
	font-weight: 950;
}

.primary-btn {
	background: linear-gradient(180deg, #f7ffbf 0%, var(--green) 55%, #aeea22 100%);
	color: var(--ink);
	box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.58), inset 0 -6px 0 rgba(23, 32, 51, 0.12), 0 7px 0 var(--green-dark);
}

.main-stage {
	grid-column: 2 / 4;
	min-width: 0;
	width: 100%;
}

.view {
	display: none;
}

.view.active {
	display: block;
}

.game-layout {
	display: grid;
	grid-template-columns: minmax(520px, 720px) minmax(300px, 380px);
	align-items: start;
	justify-content: stretch;
	gap: 22px;
}

.game-panel,
.control-panel,
.mine-summary-panel,
.recharge-section,
.record-page {
	border-radius: 28px;
	background: var(--panel);
	box-shadow: var(--shadow);
	backdrop-filter: blur(18px);
}

.game-panel {
	padding: 20px;
}

.sky {
	position: relative;
	overflow: hidden;
	padding: 18px;
	border-radius: 24px;
	background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.2));
}

.cloud {
	position: absolute;
	width: 88px;
	height: 30px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
}

.cloud::before,
.cloud::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: inherit;
}

.cloud::before {
	left: 14px;
	top: -13px;
	width: 32px;
	height: 32px;
}

.cloud::after {
	right: 16px;
	top: -18px;
	width: 42px;
	height: 42px;
}

.cloud-a {
	right: 30px;
	top: 20px;
}

.cloud-b {
	left: 28px;
	bottom: 20px;
	transform: scale(0.78);
}

.hud {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 110px 1fr 110px;
	gap: 12px;
	align-items: stretch;
}

.level-card,
.move-card,
.score-pill {
	padding: 14px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 10px 24px rgba(78, 73, 170, 0.12);
}

.level-value,
.move-value {
	font-size: 34px;
	line-height: 1;
	font-weight: 950;
}

.score-value {
	font-size: 36px;
	line-height: 1;
	font-weight: 950;
	color: #ef4444;
}

.target-panel {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 210px 1fr;
	gap: 18px;
	margin-top: 16px;
	padding: 16px;
	border-radius: 22px;
	background: #172033;
	color: white;
}

.target-title {
	font-size: 17px;
	line-height: 1.32;
	font-weight: 950;
}

.progress-info {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 900;
	color: rgba(255, 255, 255, 0.72);
}

.progress-track {
	height: 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	overflow: hidden;
}

.progress-bar {
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #34d399, var(--green));
	transition: width 160ms ease;
}

.board {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: 7px;
	width: min(100%, 600px);
	aspect-ratio: 1;
	margin: 16px auto 0;
	padding: 10px;
	border-radius: 24px;
	background: rgba(23, 32, 51, 0.84);
	box-shadow: inset 0 10px 24px rgba(0, 0, 0, 0.18), 0 18px 34px rgba(23, 32, 51, 0.2);
}

.tile {
	position: relative;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 16px;
	background: #f8fafc;
	box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.7), inset 0 -5px 0 rgba(23, 32, 51, 0.12), 0 4px 0 rgba(0, 0, 0, 0.18);
	transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}

.tile:hover {
	transform: translateY(-2px);
}

.tile.selected {
	transform: translateY(-5px) scale(1.05);
	box-shadow: inset 0 0 0 4px white, 0 0 0 4px var(--green), 0 12px 18px rgba(23, 32, 51, 0.24);
}

.tile.clearing {
	animation: pop 180ms ease;
}

@keyframes pop {
	50% { transform: scale(1.16) rotate(5deg); filter: brightness(1.16); }
}

.tile::after {
	content: "";
	position: absolute;
	left: 16%;
	top: 12%;
	width: 34%;
	height: 18%;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.5);
	transform: rotate(-22deg);
}

.color-0 { background: linear-gradient(145deg, #ff9daa, #ef4444); }
.color-1 { background: linear-gradient(145deg, #93c5fd, #2563eb); }
.color-2 { background: linear-gradient(145deg, #86efac, #16a34a); }
.color-3 { background: linear-gradient(145deg, #fde68a, #f59e0b); }
.color-4 { background: linear-gradient(145deg, #d8b4fe, #9333ea); }
.color-5 { background: linear-gradient(145deg, #67e8f9, #0891b2); }

.gem {
	width: 52%;
	height: 52%;
	background: rgba(255, 255, 255, 0.34);
	box-shadow: inset 0 -5px 0 rgba(23, 32, 51, 0.13);
}

.gem-0 { border-radius: 50%; }
.gem-1 { border-radius: 14px; transform: rotate(45deg); }
.gem-2 { clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); }
.gem-3 { border-radius: 18px 18px 8px 8px; }
.gem-4 { clip-path: polygon(50% 0%, 100% 100%, 0% 100%); }
.gem-5 { border-radius: 999px 999px 12px 12px; }

.control-panel {
	display: grid;
	gap: 16px;
	padding: 18px;
}

.wallet-strip,
.mine-profile-row,
.mine-balance-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px;
}

.wallet-strip {
	border-radius: 22px;
	background: #172033;
	color: white;
}

.coin-balance,
.big-number {
	margin-top: 5px;
	font-size: 46px;
	line-height: 1;
	font-weight: 950;
	color: var(--green);
}

.coin-art {
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: #fff7da;
	box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(0, 0, 0, 0.14);
}

.coin-art.large {
	width: 76px;
	height: 76px;
}

.coin-art span {
	display: block;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: linear-gradient(145deg, #ffe98a 0%, #ffc531 50%, #f59e0b 100%);
	box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.48), inset 0 -6px 0 rgba(161, 98, 7, 0.2), 0 4px 0 #d97706;
}

.booster-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.booster {
	display: grid;
	place-items: center;
	gap: 8px;
	min-height: 118px;
	border: 0;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ink);
	font-weight: 950;
	box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.8), inset 0 -6px 0 rgba(122, 112, 202, 0.1), 0 8px 0 rgba(126, 105, 202, 0.2), 0 16px 24px rgba(78, 73, 170, 0.14);
}

.booster.active {
	outline: 4px solid var(--green);
	transform: translateY(-3px);
}

.booster.disabled {
	opacity: 0.55;
}

.booster-visual {
	position: relative;
	width: 34px;
	height: 34px;
}

.hammer::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 4px;
	width: 8px;
	height: 30px;
	border-radius: 999px;
	background: #8b5a2b;
	transform: rotate(36deg);
}

.hammer::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 4px;
	width: 24px;
	height: 14px;
	border-radius: 5px;
	background: #60a5fa;
	transform: rotate(36deg);
}

.bomb {
	border-radius: 50%;
	background: #172033;
	box-shadow: inset -6px -8px 0 rgba(255,255,255,0.1);
}

.bomb::after {
	content: "";
	position: absolute;
	right: -2px;
	top: -5px;
	width: 14px;
	height: 10px;
	border-radius: 999px;
	background: #f59e0b;
}

.shuffle::before,
.shuffle::after {
	content: "";
	position: absolute;
	left: 4px;
	width: 26px;
	height: 10px;
	border-radius: 999px;
	border: 4px solid #34d399;
	border-left-color: transparent;
}

.shuffle::before {
	top: 5px;
	transform: rotate(12deg);
}

.shuffle::after {
	bottom: 5px;
	transform: rotate(192deg);
}

.action-row,
.recharge-actions,
.modal-actions {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.primary-btn,
.secondary-btn {
	min-height: 50px;
	padding: 0 18px;
}

.secondary-btn {
	background: linear-gradient(180deg, #ffffff 0%, #f7f5ff 58%, #e9e4ff 100%);
	color: var(--muted);
	box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.9), inset 0 -6px 0 rgba(122, 112, 202, 0.12), 0 7px 0 rgba(126, 105, 202, 0.26);
}

.sound-settings {
	display: grid;
	gap: 14px;
	padding: 16px;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: inset 0 0 0 1px var(--line), 0 10px 22px rgba(78, 73, 170, 0.1);
}

.sound-topline,
.volume-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.sound-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	font-weight: 950;
}

.sound-switch {
	position: relative;
	width: 78px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: #172033;
	color: #d8ff5f;
	font-size: 13px;
	font-weight: 950;
	box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.1), 0 5px 0 rgba(23, 32, 51, 0.24);
}

.sound-switch.off {
	background: #eef2ff;
	color: #64748b;
	box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.9), 0 5px 0 rgba(126, 105, 202, 0.24);
}

.sound-icon {
	position: relative;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	color: #34d399;
}

.sound-icon::before {
	content: "";
	position: absolute;
	left: 1px;
	top: 7px;
	width: 9px;
	height: 10px;
	border-radius: 3px 0 0 3px;
	background: currentColor;
}

.sound-icon::after {
	content: "";
	position: absolute;
	left: 9px;
	top: 4px;
	width: 13px;
	height: 16px;
	border: 4px solid currentColor;
	border-left: 0;
	border-radius: 0 999px 999px 0;
}

.sound-settings.off .sound-icon {
	color: #94a3b8;
}

.volume-row label,
.volume-row span {
	flex: 0 0 auto;
	color: var(--muted);
	font-size: 13px;
	font-weight: 900;
}

.volume-row span {
	width: 44px;
	text-align: right;
}

.volume-slider {
	flex: 1;
	min-width: 0;
	accent-color: #aeea22;
}

.sound-settings.off .volume-row {
	opacity: 0.48;
}

.message-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px;
	border-radius: 22px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--line);
}

.status-title {
	font-size: 20px;
	font-weight: 950;
}

.status-text {
	margin-top: 6px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 750;
	line-height: 1.45;
}

.star-badge {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 16px;
	background: #fff4d8;
	color: #f59e0b;
	font-size: 26px;
	font-weight: 950;
}

.mine-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 22px;
	align-items: start;
	width: 100%;
}

.mine-summary-panel {
	display: grid;
	grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
	gap: 18px;
	padding: 22px;
}

.avatar {
	display: grid;
	place-items: center;
	width: 84px;
	height: 84px;
	border-radius: 24px;
	background: linear-gradient(135deg, var(--green), #34d399);
	color: var(--ink);
	font-size: 34px;
	font-weight: 950;
	overflow: hidden;
}

.avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.display-name {
	position: relative;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 22px;
	font-weight: 950;
	line-height: 1.15;
}

.mine-profile-text {
	position: relative;
	min-width: 0;
	flex: 1;
}

.mine-profile-text:hover::after,
.brand-user-row:hover::after {
	position: absolute;
	left: 0;
	bottom: calc(100% + 10px);
	z-index: 30;
	max-width: min(420px, 70vw);
	padding: 8px 12px;
	border-radius: 10px;
	background: rgba(23, 32, 51, 0.94);
	color: #ffffff;
	content: attr(data-full-name);
	font-size: 13px;
	font-weight: 900;
	line-height: 1.35;
	white-space: normal;
	word-break: break-all;
	box-shadow: 0 12px 28px rgba(23, 32, 51, 0.2);
}

.mine-profile-text:hover::before,
.brand-user-row:hover::before {
	position: absolute;
	left: 18px;
	bottom: calc(100% + 4px);
	z-index: 31;
	width: 12px;
	height: 12px;
	background: rgba(23, 32, 51, 0.94);
	content: "";
	transform: rotate(45deg);
}

.mine-profile-actions {
	display: flex;
	flex: 0 0 auto;
	gap: 12px;
	align-items: center;
}

.mine-profile-actions .primary-btn,
.mine-profile-actions .secondary-btn {
	min-width: 106px;
	height: 54px;
	padding: 0 18px;
	font-size: 16px;
	white-space: nowrap;
}

.mine-profile-actions .primary-btn.hidden {
	display: none;
}

.logout-btn {
	background: #ffffff;
	color: #637089;
	box-shadow: inset 0 0 0 2px rgba(99, 112, 137, 0.18), 0 5px 0 rgba(99, 112, 137, 0.16);
}

.logout-btn.hidden {
	display: none;
}

.mine-profile-row {
	min-height: 124px;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.72);
	box-shadow: inset 0 0 0 1px rgba(23, 32, 51, 0.06);
}

.mine-balance-row {
	min-height: 124px;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.72);
	box-shadow: inset 0 0 0 1px rgba(23, 32, 51, 0.06);
}

.mine-entry-grid {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.mine-entry-card {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	column-gap: 14px;
	row-gap: 4px;
	min-height: 112px;
	padding: 20px;
	border: 0;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--ink);
	text-align: left;
	box-shadow: var(--shadow);
}

.mine-entry-card b {
	font-size: 22px;
	font-weight: 950;
}

.mine-entry-card small {
	grid-column: 2;
	color: var(--muted);
	font-size: 13px;
	font-weight: 900;
}

.entry-icon {
	grid-row: span 2;
	width: 48px;
	height: 48px;
	border-radius: 16px;
	box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.55), inset 0 -5px 0 rgba(23, 32, 51, 0.12);
}

.coin-entry {
	background: radial-gradient(circle at 50% 42%, #ffe98a 0 28%, #ffc531 29% 54%, #f59e0b 55% 100%);
}

.game-entry {
	background:
		radial-gradient(circle at 30% 30%, #ff6680 0 13%, transparent 14%),
		radial-gradient(circle at 70% 30%, #60a5fa 0 13%, transparent 14%),
		radial-gradient(circle at 30% 70%, #34d399 0 13%, transparent 14%),
		radial-gradient(circle at 70% 70%, #facc15 0 13%, transparent 14%),
		#ecfeff;
}

.booster-entry {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.65), transparent 45%),
		radial-gradient(circle at 32% 34%, #ffe15a 0 18%, transparent 19%),
		radial-gradient(circle at 66% 60%, #ff6680 0 16%, transparent 17%),
		linear-gradient(135deg, #60a5fa, #34d399);
}

.record-page {
	padding: 24px;
}

.record-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}

.record-head > div {
	min-width: 0;
}

.record-head h2 {
	margin: 0;
	font-size: 28px;
}

.record-head p {
	margin: 4px 0 0;
	color: var(--muted);
	font-weight: 900;
}

.record-back {
	flex: 0 0 auto;
	width: 88px;
	height: 44px;
}

.record-list {
	display: grid;
	gap: 12px;
}

.record-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	padding: 18px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: inset 0 0 0 1px rgba(23, 32, 51, 0.06);
}

.booster-record-list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booster-record-card {
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
}

.booster-record-card .booster-visual {
	width: 54px;
	height: 54px;
}

.record-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 16px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 950;
}

.record-pager .secondary-btn {
	min-width: 86px;
	height: 42px;
}

.record-pager .secondary-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.record-card b,
.record-meta strong {
	display: block;
	color: var(--ink);
	font-size: 18px;
	font-weight: 950;
}

.record-card span,
.record-card time,
.record-meta em {
	display: block;
	color: var(--muted);
	font-size: 13px;
	font-style: normal;
	font-weight: 900;
}

.record-meta {
	text-align: right;
}

.record-foot {
	grid-column: 1 / -1;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-top: 10px;
	border-top: 1px solid rgba(23, 32, 51, 0.08);
}

.record-stats {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.record-stats span {
	padding: 12px;
	border-radius: 16px;
	background: rgba(210, 255, 70, 0.18);
	text-align: center;
}

.record-stats b {
	font-size: 20px;
}

.empty-record {
	padding: 36px 18px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--muted);
	text-align: center;
	font-weight: 950;
}

.empty-record-wide {
	grid-column: 1 / -1;
	min-height: 128px;
	display: grid;
	place-items: center;
}

.recharge-section {
	padding: 22px;
}

.section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.section-head h2 {
	margin: 0;
	font-size: 24px;
}

.package-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.package-card {
	min-height: 112px;
	padding: 16px 14px;
	border: 0;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.94);
	text-align: center;
	box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.85), inset 0 -6px 0 rgba(122, 112, 202, 0.1), 0 8px 0 rgba(126, 105, 202, 0.22), 0 16px 24px rgba(78, 73, 170, 0.14);
	transition: transform 140ms ease, box-shadow 140ms ease;
}

.package-card.selected {
	transform: scale(1.025);
	box-shadow: inset 0 0 0 4px rgba(216, 255, 95, 0.95), inset 0 5px 0 rgba(255,255,255,0.9), 0 9px 0 #aeea22, 0 18px 28px rgba(78,73,170,0.2);
}

.package-coin {
	font-size: 28px;
	font-weight: 950;
}

.package-price {
	margin-top: 6px;
	color: #ef4444;
	font-size: 20px;
	font-weight: 950;
}

.package-gift {
	display: inline-block;
	margin-top: 8px;
	padding: 5px 10px;
	border-radius: 999px;
	background: #fff4d8;
	color: #f59e0b;
	font-size: 12px;
	font-weight: 950;
}

.recharge-actions {
	margin-top: 18px;
}

.modal {
	position: fixed;
	inset: 0;
	z-index: 20;
	display: grid;
	place-items: center;
	padding: 22px;
	background: rgba(23, 32, 51, 0.46);
}

.modal.hidden {
	display: none;
}

.modal-card {
	width: min(520px, 100%);
	padding: 28px;
	border-radius: 26px;
	background: #fff;
	text-align: center;
	box-shadow: 0 24px 70px rgba(23, 32, 51, 0.28);
}

.auth-modal-card {
	width: min(560px, 100%);
	padding: 30px 34px 28px;
	border-radius: 28px;
}

.cashier-modal-card {
	width: min(520px, 100%);
}

.cashier-pay-list {
	display: grid;
	gap: 12px;
	margin-top: 4px;
}

.cashier-loading {
	border-radius: 14px;
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.74);
	color: var(--muted);
	font-weight: 900;
	text-align: center;
}

.cashier-loading.is-error {
	color: #ef4444;
	background: #fff1f1;
}

.cashier-pay-option {
	display: grid;
	grid-template-columns: 42px 1fr 20px;
	gap: 12px;
	align-items: center;
	width: 100%;
	border: 2px solid rgba(23, 32, 51, 0.08);
	border-radius: 18px;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.86);
	color: var(--ink);
	cursor: pointer;
	text-align: left;
	box-shadow: 0 5px 0 rgba(99, 112, 137, 0.12);
	transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.cashier-pay-option.active {
	border-color: var(--green);
	box-shadow: 0 6px 0 rgba(120, 177, 42, 0.32), 0 0 0 4px rgba(216, 255, 70, 0.2);
	transform: translateY(-1px);
}

.cashier-pay-option img {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	object-fit: contain;
	background: #ffffff;
}

.cashier-pay-option span {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.cashier-pay-option strong {
	font-size: 17px;
	font-weight: 1000;
}

.cashier-pay-option em {
	color: var(--muted);
	font-size: 13px;
	font-style: normal;
	font-weight: 900;
}

.cashier-pay-option i {
	width: 18px;
	height: 18px;
	border: 3px solid rgba(99, 112, 137, 0.28);
	border-radius: 50%;
}

.cashier-pay-option.active i {
	border-color: var(--green);
	background: radial-gradient(circle at center, var(--green) 0 42%, transparent 44%);
}

.modal-badge {
	display: grid;
	place-items: center;
	width: 66px;
	height: 66px;
	margin: 0 auto 12px;
	border-radius: 20px;
	background: #fff4d8;
	color: #f59e0b;
	font-size: 32px;
	font-weight: 950;
}

.modal-badge.hidden {
	display: none;
}

.modal-card h2 {
	margin: 0;
	font-size: 26px;
}

.auth-modal-card h2 {
	font-size: 32px;
	line-height: 1.08;
	font-weight: 950;
}

.modal-card p {
	margin: 10px 0 0;
	color: var(--muted);
	font-weight: 750;
	line-height: 1.5;
}

.auth-modal-card p {
	margin-top: 14px;
	font-size: 16px;
	font-weight: 900;
}

.modal-extra {
	margin-top: 16px;
}

.auth-modal-card .modal-extra {
	margin-top: 18px;
}

.login-panel {
	display: grid;
	gap: 12px;
	text-align: left;
}

.login-tabs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0;
	padding: 5px;
	border-radius: 18px;
	background: #f3f3ff;
}

.login-tabs button {
	min-height: 46px;
	border: 0;
	border-radius: 14px;
	background: transparent;
	color: var(--muted);
	font-size: 16px;
	font-weight: 950;
}

.login-tabs button.active {
	background: #ffffff;
	color: var(--ink);
	box-shadow: 0 12px 24px rgba(78, 73, 170, 0.12);
}

.register-method-options {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 2px 4px;
	color: var(--muted);
	font-size: 15px;
	font-weight: 900;
}

.register-method-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.register-method-option input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #9bd81d;
}

.register-method-option.active {
	color: var(--ink);
}

.login-field {
	display: grid;
	gap: 7px;
	color: var(--muted);
	font-size: 15px;
	font-weight: 900;
}

.login-field input {
	width: 100%;
	height: 52px;
	border: 1px solid rgba(23, 32, 51, 0.12);
	border-radius: 16px;
	padding: 0 16px;
	background: #fbfcff;
	color: var(--ink);
	font-size: 15px;
	font-weight: 850;
	outline: none;
}

.login-field input:focus {
	border-color: rgba(174, 234, 34, 0.95);
	box-shadow: 0 0 0 4px rgba(216, 255, 95, 0.2);
}

.login-code-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 132px;
	gap: 10px;
	align-items: end;
}

.captcha-btn {
	height: 52px;
	border: 0;
	border-radius: 16px;
	background: #fff1c9;
	color: #ff9800;
	font-size: 15px;
	font-weight: 950;
}

.login-form-status {
	min-height: 20px;
	color: var(--muted);
	font-size: 15px;
	font-weight: 900;
	text-align: center;
}

.auth-modal-card .modal-actions {
	gap: 12px;
	margin-top: 18px;
}

.auth-modal-card .primary-btn,
.auth-modal-card .secondary-btn {
	min-height: 52px;
	border-radius: 16px;
	font-size: 16px;
}

.qty-control {
	display: grid;
	grid-template-columns: 48px 1fr 48px;
	gap: 10px;
	align-items: center;
}

.qty-control button,
.qty-control input {
	height: 46px;
	border-radius: 14px;
}

.qty-control button {
	border: 0;
	background: #eef2ff;
	font-weight: 950;
}

.qty-control input {
	width: 100%;
	border: 1px solid var(--line);
	text-align: center;
	font-weight: 950;
}

.modal-actions {
	margin-top: 20px;
}

@media (max-width: 1120px) {
	.app-shell {
		grid-template-columns: 1fr;
	}

	.main-stage {
		grid-column: auto;
	}

	.side-nav {
		position: static;
		min-height: auto;
		display: grid;
		grid-template-columns: 1fr 128px 118px 110px;
		align-items: center;
	}

	.nav-submenu {
		margin: 0;
		padding-left: 0;
	}

	.nav-category-title {
		display: none;
	}

	.nav-game-list {
		padding-left: 0;
	}

	.nav-group-title,
	.nav-subitem {
		height: 48px;
	}

	.game-layout,
	.mine-grid {
		grid-template-columns: 1fr;
	}

}

@media (max-width: 720px) {
	.app-shell {
		padding: 12px;
		gap: 12px;
	}

	.side-nav {
		grid-template-columns: 1fr 78px 84px 72px;
		padding: 12px;
	}

	.nav-group-title,
	.nav-item {
		gap: 8px;
		font-size: 14px;
	}

	.nav-subitem {
		padding-left: 10px;
	}

	.brand-sub {
		display: none;
	}

	.game-panel,
	.control-panel,
	.mine-summary-panel,
	.recharge-section,
	.record-page {
		border-radius: 20px;
	}

	.mine-summary-panel {
		grid-template-columns: 1fr;
	}

	.hud,
	.target-panel,
	.package-list,
	.booster-row {
		grid-template-columns: 1fr;
	}

		.mine-entry-grid,
		.booster-record-list,
		.record-stats {
			grid-template-columns: 1fr;
		}

	.record-head,
	.record-foot {
		align-items: stretch;
		flex-direction: column;
	}

	.record-head {
		align-items: flex-start;
	}

	.record-back {
		align-self: flex-end;
	}

	.auth-modal-card {
		padding: 24px 18px 22px;
		border-radius: 24px;
	}

	.auth-modal-card h2 {
		font-size: 28px;
	}

	.auth-modal-card p,
	.login-tabs button,
	.register-method-options,
	.login-field,
	.login-field input,
	.captcha-btn,
	.login-form-status,
	.auth-modal-card .primary-btn,
	.auth-modal-card .secondary-btn {
		font-size: 16px;
	}

	.login-tabs button,
	.login-field input,
	.captcha-btn,
	.auth-modal-card .primary-btn,
	.auth-modal-card .secondary-btn {
		min-height: 48px;
	}

	.login-code-row {
		grid-template-columns: 1fr;
	}

	.board {
		gap: 5px;
		padding: 8px;
		border-radius: 18px;
	}

	.tile {
		border-radius: 12px;
	}
}
