:root {
	--ink: #f5fbf7;
	--muted: #89a4a5;
	--panel: rgba(11, 29, 39, 0.86);
	--panel-strong: #0d2530;
	--line: rgba(142, 255, 207, 0.16);
	--mint: #78f5bd;
	--mint-strong: #30d998;
	--yellow: #ffe26f;
	--coral: #ff756f;
	--navy: #07131e;
	--font: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	background: var(--navy);
}

body {
	min-width: 320px;
	min-height: 100vh;
	margin: 0;
	overflow-x: hidden;
	color: var(--ink);
	font-family: var(--font);
	background:
		linear-gradient(rgba(120, 245, 189, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(120, 245, 189, 0.025) 1px, transparent 1px),
		radial-gradient(circle at 50% -10%, #173a41 0, #091923 43%, #061019 100%);
	background-size: 34px 34px, 34px 34px, auto;
	-webkit-tap-highlight-color: transparent;
}

button,
a {
	font: inherit;
}

button {
	border: 0;
	cursor: pointer;
}

.ambient {
	position: fixed;
	z-index: 0;
	width: 380px;
	height: 380px;
	border: 1px solid rgba(120, 245, 189, 0.09);
	border-radius: 50%;
	pointer-events: none;
}

.ambient::before,
.ambient::after {
	position: absolute;
	inset: 16%;
	border: inherit;
	border-radius: inherit;
	content: "";
}

.ambient::after {
	inset: 33%;
}

.ambient-one {
	top: -220px;
	left: -180px;
}

.ambient-two {
	right: -220px;
	bottom: -230px;
}

.game-app {
	position: relative;
	z-index: 1;
	width: min(100% - 28px, 760px);
	margin: 0 auto;
	padding: max(18px, env(safe-area-inset-top)) 0 max(20px, env(safe-area-inset-bottom));
}

.app-header,
.scoreboard,
.game-status-line,
.legend,
.app-footer {
	display: flex;
	align-items: center;
}

.app-header {
	justify-content: space-between;
	margin-bottom: 18px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 11px;
	color: inherit;
	text-decoration: none;
}

.brand-mark {
	position: relative;
	display: grid;
	width: 37px;
	height: 37px;
	place-items: center;
	border: 1px solid rgba(120, 245, 189, 0.35);
	border-radius: 12px;
	background: rgba(120, 245, 189, 0.08);
	box-shadow: inset 0 0 18px rgba(120, 245, 189, 0.08);
	transform: rotate(-3deg);
}

.brand-mark i {
	position: absolute;
	width: 17px;
	height: 7px;
	border: 2px solid var(--mint);
	border-top: 0;
	border-radius: 0 0 50% 50%;
}

.brand-mark i:nth-child(1) {
	top: 8px;
	left: 7px;
	transform: rotate(20deg);
}

.brand-mark i:nth-child(2) {
	right: 6px;
	bottom: 8px;
	transform: rotate(200deg);
}

.brand-mark i:nth-child(3) {
	width: 5px;
	height: 5px;
	border: 0;
	border-radius: 50%;
	background: var(--yellow);
}

.brand strong,
.brand small {
	display: block;
}

.brand strong {
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.brand small {
	margin-top: 2px;
	color: #698789;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.18em;
}

.header-actions {
	display: flex;
	gap: 8px;
}

.utility-button,
.boss-button {
	height: 36px;
	padding: 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	color: #a7bcbd;
	background: rgba(5, 16, 24, 0.48);
	font-size: 11px;
	font-weight: 700;
	transition: 160ms ease;
}

.utility-button:hover,
.boss-button:hover {
	color: var(--ink);
	border-color: rgba(120, 245, 189, 0.34);
	background: rgba(120, 245, 189, 0.08);
}

.sound-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 5px;
	border-radius: 50%;
	background: #52676b;
	vertical-align: 1px;
}

.utility-button[aria-pressed="true"] .sound-dot {
	background: var(--mint);
	box-shadow: 0 0 8px var(--mint);
}

.boss-button {
	color: #cfdbd7;
}

.boss-button > span {
	margin-right: 4px;
	color: var(--yellow);
	font-size: 16px;
	vertical-align: -1px;
}

kbd {
	display: inline-grid;
	min-width: 22px;
	height: 19px;
	margin-left: 5px;
	padding: 0 4px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 4px;
	color: #8da1a1;
	font-family: inherit;
	font-size: 9px;
	line-height: 1;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.scoreboard {
	gap: 8px;
	margin-bottom: 10px;
}

.stat-card {
	flex: 1;
	min-width: 0;
	padding: 12px 14px 10px;
	border: 1px solid var(--line);
	border-radius: 13px;
	background: rgba(8, 26, 35, 0.6);
	box-shadow: inset 0 1px rgba(255, 255, 255, 0.02);
}

.stat-card > span,
.stat-card > strong {
	display: block;
}

.stat-card > span {
	margin-bottom: 3px;
	color: #718e91;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.13em;
}

.stat-card > strong {
	color: var(--mint);
	font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
	font-size: 24px;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.08em;
	line-height: 1.1;
}

.stat-card strong b {
	font: inherit;
}

.stat-card strong small {
	margin-left: 2px;
	color: #6d8d8b;
	font-size: 11px;
	letter-spacing: 0;
}

.stat-timer {
	position: relative;
	flex: 1.3;
}

.stat-timer > strong {
	color: var(--yellow);
}

.time-track {
	position: absolute;
	right: 12px;
	bottom: 13px;
	left: 70px;
	height: 3px;
	overflow: hidden;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.07);
}

.time-track i {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--coral), var(--yellow));
	transform-origin: left center;
	transition: transform 100ms linear;
}

.stat-combo > strong {
	color: #b3a3ff;
}

.game-card {
	overflow: hidden;
	border: 1px solid rgba(120, 245, 189, 0.18);
	border-radius: 20px;
	background: var(--panel);
	box-shadow:
		0 26px 80px rgba(0, 0, 0, 0.34),
		inset 0 1px rgba(255, 255, 255, 0.035);
	backdrop-filter: blur(18px);
}

.game-status-line {
	justify-content: space-between;
	height: 37px;
	padding: 0 16px;
	border-bottom: 1px solid var(--line);
	color: #718c8e;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.game-status-line strong {
	color: #b5c8c4;
	font-variant-numeric: tabular-nums;
}

.live-dot {
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-right: 6px;
	border-radius: 50%;
	background: var(--mint);
	box-shadow: 0 0 7px var(--mint);
	vertical-align: 1px;
	animation: blink 1.8s infinite;
}

@keyframes blink {
	50% { opacity: 0.35; }
}

.canvas-frame {
	position: relative;
	width: min(100%, 420px);
	margin: 0 auto;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 72%, rgba(41, 155, 135, 0.13), transparent 38%),
		linear-gradient(180deg, rgba(4, 16, 24, 0.72), rgba(7, 28, 36, 0.93));
	aspect-ratio: 420 / 620;
	touch-action: none;
}

.canvas-frame::before {
	position: absolute;
	z-index: 0;
	inset: 0;
	background:
		linear-gradient(rgba(120, 245, 189, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(120, 245, 189, 0.035) 1px, transparent 1px);
	background-size: 40px 40px;
	content: "";
	mask-image: linear-gradient(to bottom, black, transparent 86%);
}

#gameCanvas {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	outline: none;
}

.scanlines {
	position: absolute;
	z-index: 2;
	inset: 0;
	pointer-events: none;
	background: repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 4px);
	mix-blend-mode: overlay;
}

.game-overlay {
	position: absolute;
	z-index: 5;
	inset: 0;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 22px;
	text-align: center;
	background:
		radial-gradient(circle at 50% 28%, rgba(30, 122, 111, 0.29), transparent 37%),
		linear-gradient(180deg, rgba(5, 20, 29, 0.76), rgba(4, 16, 24, 0.96));
	backdrop-filter: blur(7px);
}

.game-overlay.is-visible {
	display: flex;
	animation: overlay-in 320ms ease both;
}

@keyframes overlay-in {
	from { opacity: 0; transform: scale(1.015); }
}

.overlay-badge {
	position: absolute;
	top: 20px;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 6px 10px;
	border: 1px solid rgba(120, 245, 189, 0.14);
	border-radius: 99px;
	color: #87aaa7;
	background: rgba(8, 29, 38, 0.66);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.overlay-badge span {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--coral);
	box-shadow: 0 0 8px var(--coral);
}

.hero-fish {
	position: relative;
	width: 118px;
	height: 92px;
	margin: 18px 0 4px;
	animation: fish-float 2.7s ease-in-out infinite;
}

@keyframes fish-float {
	50% { transform: translateY(-7px) rotate(-1deg); }
}

.fish-body {
	position: absolute;
	top: 25px;
	left: 28px;
	width: 73px;
	height: 48px;
	border: 2px solid #c9ffe8;
	border-radius: 54% 47% 48% 52%;
	background: linear-gradient(145deg, var(--mint), #31bda3);
	box-shadow: 0 10px 30px rgba(48, 217, 152, 0.25);
	transform: rotate(-4deg);
}

.fish-body::before {
	position: absolute;
	top: 13px;
	right: 11px;
	width: 7px;
	height: 7px;
	border: 3px solid #0e3437;
	border-radius: 50%;
	background: white;
	content: "";
}

.fish-body::after {
	position: absolute;
	right: -5px;
	bottom: 10px;
	width: 12px;
	height: 7px;
	border-bottom: 2px solid #0e3437;
	border-radius: 50%;
	content: "";
	transform: rotate(-9deg);
}

.fish-body i {
	position: absolute;
	top: -14px;
	left: 25px;
	width: 27px;
	height: 22px;
	border-radius: 70% 20% 60% 10%;
	background: var(--yellow);
	transform: skewX(-18deg) rotate(-7deg);
}

.fish-tail {
	position: absolute;
	z-index: 0;
	top: 33px;
	left: 9px;
	width: 33px;
	height: 38px;
	background: var(--yellow);
	clip-path: polygon(0 0, 100% 48%, 0 100%, 18% 50%);
	transform: rotate(5deg);
}

.fish-bubble {
	position: absolute;
	border: 1px solid rgba(171, 255, 228, 0.65);
	border-radius: 50%;
}

.bubble-a {
	top: 8px;
	right: 7px;
	width: 13px;
	height: 13px;
}

.bubble-b {
	top: 1px;
	right: 29px;
	width: 6px;
	height: 6px;
}

.eyebrow {
	margin: 0 0 8px;
	color: var(--mint);
	font-family: "Arial Narrow", sans-serif;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.24em;
}

.game-overlay h1 {
	margin: 0;
	font-size: clamp(30px, 8vw, 40px);
	font-weight: 900;
	letter-spacing: -0.06em;
	line-height: 1.14;
}

.game-overlay h1 em {
	color: var(--yellow);
	font-style: normal;
}

.intro {
	margin: 14px 0 16px;
	color: #91aaa8;
	font-size: 12px;
	line-height: 1.75;
}

.rule-chips {
	display: flex;
	gap: 6px;
	margin-bottom: 18px;
}

.rule-chips span {
	padding: 6px 9px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 7px;
	color: #9bb0ae;
	background: rgba(255, 255, 255, 0.025);
	font-size: 9px;
}

.primary-button {
	display: flex;
	width: min(100%, 250px);
	height: 50px;
	align-items: center;
	justify-content: space-between;
	padding: 0 8px 0 21px;
	border-radius: 13px;
	color: #09251f;
	background: var(--mint);
	font-size: 13px;
	font-weight: 900;
	box-shadow: 0 12px 30px rgba(48, 217, 152, 0.19);
	transition: 160ms ease;
}

.primary-button:hover {
	background: #96ffcf;
	transform: translateY(-2px);
}

.primary-button:active {
	transform: translateY(0) scale(0.985);
}

.primary-button i {
	display: grid;
	width: 35px;
	height: 35px;
	place-items: center;
	border-radius: 10px;
	background: rgba(6, 38, 31, 0.12);
	font-size: 20px;
	font-style: normal;
}

.control-hint {
	margin-top: 10px;
	color: #577275;
	font-size: 9px;
}

.legend {
	justify-content: space-around;
	gap: 6px;
	min-height: 62px;
	padding: 8px 14px;
	border-top: 1px solid var(--line);
}

.legend > div {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 8px;
}

.legend-icon {
	display: grid;
	flex: 0 0 auto;
	width: 29px;
	height: 29px;
	place-items: center;
	border: 1px solid currentColor;
	border-radius: 9px;
	font-family: "Arial Narrow", sans-serif;
	font-size: 10px;
	font-weight: 900;
}

.legend-icon.good {
	color: var(--yellow);
	background: rgba(255, 226, 111, 0.07);
}

.legend-icon.time {
	color: var(--mint);
	background: rgba(120, 245, 189, 0.07);
}

.legend-icon.bad {
	color: var(--coral);
	background: rgba(255, 117, 111, 0.07);
}

.legend p {
	margin: 0;
	line-height: 1.3;
}

.legend strong,
.legend small {
	display: block;
	white-space: nowrap;
}

.legend strong {
	color: #a8bcba;
	font-size: 9px;
}

.legend small {
	margin-top: 2px;
	color: #526c6f;
	font-size: 7px;
}

.app-footer {
	justify-content: space-between;
	padding: 14px 4px 0;
	color: #4c6a6c;
	font-size: 9px;
	letter-spacing: 0.06em;
}

.app-footer kbd {
	color: #708b8b;
}

.result-screen h2 {
	margin: 6px 0 4px;
	color: var(--yellow);
	font-size: 27px;
	letter-spacing: -0.04em;
}

.result-screen > p:not(.eyebrow) {
	margin: 0 0 15px;
	color: #8fa7a5;
	font-size: 11px;
}

.result-orbit {
	position: relative;
	display: grid;
	width: 104px;
	height: 104px;
	margin: 4px 0 8px;
	place-items: center;
	border: 1px solid rgba(120, 245, 189, 0.28);
	border-radius: 50%;
	color: var(--mint);
	background: rgba(120, 245, 189, 0.055);
	box-shadow: 0 0 45px rgba(48, 217, 152, 0.1);
}

.result-orbit::before,
.result-orbit::after {
	position: absolute;
	border: 1px dashed rgba(120, 245, 189, 0.14);
	border-radius: 50%;
	content: "";
}

.result-orbit::before {
	inset: -8px;
	animation: orbit 12s linear infinite;
}

.result-orbit::after {
	inset: 10px;
}

@keyframes orbit {
	to { transform: rotate(360deg); }
}

.result-orbit span {
	font-family: "Arial Narrow", sans-serif;
	font-size: 28px;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
}

.result-metrics {
	display: grid;
	width: min(100%, 280px);
	margin: 0 0 16px;
	grid-template-columns: 1fr 1fr;
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 11px;
	background: rgba(255,255,255,.025);
}

.result-metrics div {
	padding: 10px;
}

.result-metrics div + div {
	border-left: 1px solid rgba(255,255,255,.08);
}

.result-metrics span,
.result-metrics strong {
	display: block;
}

.result-metrics span {
	margin-bottom: 2px;
	color: #668183;
	font-size: 8px;
}

.result-metrics strong {
	color: #d9e7e2;
	font-size: 17px;
}

.result-actions {
	display: grid;
	width: min(100%, 280px);
	grid-template-columns: 1.45fr 1fr;
	gap: 8px;
}

.result-actions .primary-button {
	width: 100%;
	height: 46px;
	padding-left: 16px;
	font-size: 12px;
}

.share-button {
	border: 1px solid rgba(120, 245, 189, 0.24);
	border-radius: 12px;
	color: var(--mint);
	background: rgba(120, 245, 189, 0.06);
	font-size: 10px;
	font-weight: 800;
}

.share-button:hover {
	background: rgba(120, 245, 189, 0.12);
}

.toast {
	position: absolute;
	z-index: 8;
	right: 50%;
	bottom: 18px;
	padding: 8px 13px;
	border: 1px solid rgba(120, 245, 189, 0.24);
	border-radius: 99px;
	color: #d9f9ea;
	background: rgba(8, 25, 33, 0.94);
	font-size: 10px;
	opacity: 0;
	pointer-events: none;
	transform: translate(50%, 10px);
	transition: 200ms ease;
	white-space: nowrap;
}

.toast.show {
	opacity: 1;
	transform: translate(50%, 0);
}

/* Emergency "boss mode" report. */
.boss-screen {
	position: fixed;
	z-index: 50;
	inset: 0;
	display: none;
	overflow: auto;
	color: #182337;
	background: #f3f6f9;
	font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.boss-screen.is-visible {
	display: block;
}

.report-header {
	position: sticky;
	z-index: 4;
	top: 0;
	display: flex;
	height: 64px;
	align-items: center;
	padding: 0 34px;
	border-bottom: 1px solid #e6ebf1;
	background: white;
	box-shadow: 0 2px 8px rgba(26, 45, 73, 0.025);
}

.report-brand {
	display: flex;
	width: 260px;
	align-items: center;
	gap: 10px;
}

.report-brand > span {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 8px;
	color: white;
	background: linear-gradient(135deg, #1768e5, #3f8cff);
	font-size: 17px;
	font-weight: 900;
}

.report-brand strong,
.report-brand small {
	display: block;
}

.report-brand strong {
	font-size: 12px;
	letter-spacing: .08em;
}

.report-brand small {
	margin-top: 2px;
	color: #9aa7b8;
	font-size: 8px;
}

.report-header nav {
	display: flex;
	height: 100%;
	align-items: center;
	gap: 30px;
}

.report-header nav a {
	position: relative;
	height: 100%;
	color: #67748a;
	font-size: 12px;
	line-height: 64px;
}

.report-header nav a.active {
	color: #1768e5;
	font-weight: 700;
}

.report-header nav a.active::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	background: #1768e5;
	content: "";
}

.report-user {
	display: flex;
	margin-left: auto;
	align-items: center;
	gap: 9px;
	color: #526078;
	font-size: 10px;
}

.report-user i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #34ba7d;
}

.report-user b {
	display: grid;
	width: 31px;
	height: 31px;
	place-items: center;
	border-radius: 50%;
	color: #fff;
	background: #425a77;
	font-size: 9px;
}

.report-main {
	width: min(100% - 64px, 1440px);
	margin: 0 auto;
	padding: 32px 0 50px;
}

.report-title-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 24px;
}

.report-title-row p {
	margin: 0 0 6px;
	color: #1768e5;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: .12em;
}

.report-title-row h1 {
	margin: 0 0 8px;
	font-size: 22px;
}

.report-title-row span {
	color: #9aa7b8;
	font-size: 9px;
}

.report-tools {
	display: flex;
	align-items: center;
	gap: 8px;
}

.report-tools button {
	height: 34px;
	padding: 0 14px;
	border: 1px solid #dfe6ee;
	border-radius: 6px;
	color: #657288;
	background: white;
	font-size: 9px;
}

.report-tools .export-button {
	border-color: #1768e5;
	color: white;
	background: #1768e5;
}

.kpi-grid {
	display: grid;
	margin-bottom: 16px;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.kpi-grid article,
.report-panels > article,
.report-table-panel {
	border: 1px solid #e5eaf0;
	border-radius: 9px;
	background: white;
	box-shadow: 0 3px 12px rgba(40, 61, 91, 0.03);
}

.kpi-grid article {
	position: relative;
	overflow: hidden;
	padding: 18px 18px 15px;
}

.kpi-grid article > span {
	display: block;
	margin-bottom: 11px;
	color: #758197;
	font-size: 9px;
}

.kpi-grid article > strong {
	display: inline-block;
	margin-right: 8px;
	font-size: 23px;
	font-variant-numeric: tabular-nums;
}

.kpi-grid article > strong small {
	margin-left: 2px;
	color: #76849a;
	font-size: 10px;
}

.kpi-grid article p {
	display: inline;
	font-size: 9px;
	font-weight: 700;
}

.kpi-grid article p small {
	color: #9ca8b7;
	font-size: 8px;
	font-weight: 400;
}

.up,
.down {
	color: #1dad70;
}

.kpi-grid article > i {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background: #edf1f5;
}

.kpi-grid article > i::after {
	display: block;
	width: var(--percent);
	height: 100%;
	background: #2476e9;
	content: "";
}

.report-panels {
	display: grid;
	margin-bottom: 16px;
	grid-template-columns: 1.65fr 1fr;
	gap: 14px;
}

.report-panels > article {
	min-height: 288px;
	padding: 18px;
}

.panel-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 18px;
}

.panel-heading strong,
.panel-heading span {
	display: block;
}

.panel-heading strong {
	margin-bottom: 4px;
	font-size: 11px;
}

.panel-heading span {
	color: #9aa7b8;
	font-size: 8px;
}

.chart-legend {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #7d899b;
	font-size: 8px;
}

.chart-legend i {
	width: 7px;
	height: 7px;
	border-radius: 2px;
	background: #2476e9;
}

.chart-legend i:nth-of-type(2) {
	margin-left: 8px;
	background: #cddcf1;
}

.chart-area {
	display: grid;
	height: 210px;
	grid-template-columns: 28px 1fr;
}

.y-labels {
	display: flex;
	padding: 2px 4px 19px 0;
	flex-direction: column;
	justify-content: space-between;
	color: #a8b1bf;
	font-size: 7px;
}

.bars {
	display: flex;
	align-items: stretch;
	justify-content: space-around;
	border-bottom: 1px solid #edf0f4;
	background: repeating-linear-gradient(to bottom, #edf0f4 0 1px, transparent 1px 47px);
}

.bars > div {
	position: relative;
	display: flex;
	width: 11%;
	align-items: flex-end;
	justify-content: center;
	gap: 3px;
}

.bars i,
.bars b {
	width: 8px;
	border-radius: 3px 3px 0 0;
	background: linear-gradient(#5d9bf2, #2476e9);
}

.bars b {
	background: #dce7f5;
}

.bars span {
	position: absolute;
	bottom: -17px;
	color: #8f9aab;
	font-size: 7px;
}

.channel-panel .panel-heading button {
	color: #8b97a8;
	background: transparent;
}

.donut-wrap {
	display: flex;
	height: 190px;
	align-items: center;
	justify-content: space-around;
	gap: 20px;
}

.donut {
	display: grid;
	width: 145px;
	height: 145px;
	flex: 0 0 auto;
	place-items: center;
	border-radius: 50%;
	background: conic-gradient(#2476e9 0 42%, #45b9a6 42% 73%, #8ebcf8 73% 91%, #e4eaf2 91%);
}

.donut::before {
	width: 91px;
	height: 91px;
	border-radius: 50%;
	background: white;
	content: "";
}

.donut > span {
	position: absolute;
	text-align: center;
}

.donut strong,
.donut small {
	display: block;
}

.donut strong {
	font-size: 17px;
}

.donut small {
	margin-top: 3px;
	color: #9ba7b6;
	font-size: 7px;
}

.donut-wrap ul {
	flex: 1;
	margin: 0;
	padding: 0;
	list-style: none;
}

.donut-wrap li {
	display: grid;
	padding: 7px 0;
	grid-template-columns: 8px 1fr auto;
	align-items: center;
	gap: 5px;
	border-bottom: 1px solid #f0f2f5;
	color: #788599;
	font-size: 8px;
}

.donut-wrap li i {
	width: 6px;
	height: 6px;
	border-radius: 2px;
	background: #2476e9;
}

.donut-wrap li:nth-child(2) i { background: #45b9a6; }
.donut-wrap li:nth-child(3) i { background: #8ebcf8; }
.donut-wrap li:nth-child(4) i { background: #e4eaf2; }
.donut-wrap li strong { color: #344156; font-size: 8px; }

.report-table-panel {
	padding: 18px;
}

.report-table-panel .panel-heading a {
	color: #1768e5;
	font-size: 8px;
}

.report-table-panel table {
	width: 100%;
	border-collapse: collapse;
	font-size: 8px;
	text-align: left;
}

.report-table-panel th {
	padding: 9px 10px;
	color: #8793a5;
	background: #f6f8fa;
	font-weight: 500;
}

.report-table-panel td {
	padding: 12px 10px;
	border-bottom: 1px solid #edf0f3;
	color: #445269;
}

.report-table-panel tbody tr:last-child td {
	border-bottom: 0;
}

.progress {
	display: inline-block;
	width: 55px;
	height: 4px;
	margin-right: 5px;
	overflow: hidden;
	border-radius: 99px;
	background: #edf1f5;
	vertical-align: 1px;
}

.progress i {
	display: block;
	height: 100%;
	background: #2476e9;
}

.positive { color: #1dad70 !important; }
.negative { color: #e06161 !important; }

.status {
	display: inline-block;
	padding: 3px 7px;
	border-radius: 99px;
	font-size: 7px;
	font-weight: 500;
}

.status.normal {
	color: #179461;
	background: #e9f8f2;
}

.status.risk {
	color: #c47a12;
	background: #fff4df;
}

.return-game {
	position: fixed;
	z-index: 8;
	right: 18px;
	bottom: 18px;
	height: 36px;
	padding: 0 10px 0 14px;
	border: 1px solid #dce3eb;
	border-radius: 7px;
	color: #778396;
	background: rgba(255,255,255,.94);
	box-shadow: 0 6px 18px rgba(30,48,70,.1);
	font-size: 9px;
}

.return-game kbd {
	border-color: #d8dee7;
	color: #647184;
}

@media (max-width: 720px) {
	.game-app {
		width: min(100% - 18px, 520px);
		padding-top: max(12px, env(safe-area-inset-top));
	}

	.app-header {
		margin-bottom: 12px;
	}

	.brand-mark {
		width: 33px;
		height: 33px;
	}

	.brand strong {
		font-size: 14px;
	}

	.utility-button {
		display: none;
	}

	.boss-button {
		padding: 0 9px;
	}

	.scoreboard {
		gap: 5px;
	}

	.stat-card {
		padding: 10px 9px 9px;
	}

	.stat-card > strong {
		font-size: 21px;
	}

	.time-track {
		right: 8px;
		left: 57px;
	}

	.game-card {
		border-radius: 16px;
	}

	.canvas-frame {
		width: min(100%, 400px);
	}

	.legend {
		padding-right: 8px;
		padding-left: 8px;
	}

	.legend > div {
		gap: 5px;
	}

	.legend-icon {
		width: 26px;
		height: 26px;
	}

	.legend small {
		display: none;
	}

	.desktop-tip {
		display: none;
	}

	.app-footer {
		justify-content: center;
	}

	.report-header {
		height: 54px;
		padding: 0 14px;
	}

	.report-brand {
		width: auto;
	}

	.report-header nav,
	.report-user span,
	.report-brand small {
		display: none;
	}

	.report-user {
		margin-left: auto;
	}

	.report-main {
		width: calc(100% - 24px);
		padding-top: 20px;
	}

	.report-title-row {
		gap: 12px;
	}

	.report-title-row h1 {
		font-size: 17px;
	}

	.report-tools button:first-child {
		display: none;
	}

	.kpi-grid {
		grid-template-columns: 1fr 1fr;
	}

	.report-panels {
		grid-template-columns: 1fr;
	}

	.report-table-panel {
		overflow-x: auto;
	}

	.report-table-panel table {
		min-width: 620px;
	}
}

@media (max-height: 760px) and (max-width: 720px) {
	.brand small,
	.game-status-line,
	.legend,
	.app-footer {
		display: none;
	}

	.canvas-frame {
		width: min(100%, calc((100vh - 142px) * .6774));
	}

	.game-card {
		width: fit-content;
		margin: 0 auto;
	}

	.hero-fish {
		margin-top: 34px;
		transform: scale(.82);
	}

	.game-overlay h1 {
		font-size: 28px;
	}

	.intro {
		margin: 10px 0 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
	}

	.hero-fish,
	.live-dot,
	.result-orbit::before {
		animation: none !important;
	}
}

