:root {
	color-scheme: dark;
	font-family: Inter, ui-rounded, "SF Pro Display", "Segoe UI", sans-serif;
	--glass: rgba(15, 25, 44, 0.5);
	--glass-strong: rgba(10, 18, 34, 0.76);
	--line: rgba(255, 255, 255, 0.2);
	--text: #f7fbff;
	--muted: rgba(235, 244, 255, 0.7);
	--shadow: 0 24px 80px rgba(3, 11, 25, 0.35);
	--world-background: url("../images/modern/fantasy/world-1.jpg");
}

body[data-modern-theme="tech"] {
	--glass: rgba(4, 16, 34, 0.58);
	--glass-strong: rgba(2, 12, 28, 0.84);
	--line: rgba(99, 236, 255, 0.28);
	--text: #f4fdff;
	--muted: rgba(191, 239, 255, 0.72);
	--shadow: 0 24px 90px rgba(0, 229, 255, 0.15), 0 18px 60px rgba(112, 68, 255, 0.16);
}

* {
	box-sizing: border-box;
	-webkit-user-select: none;
	user-select: none;
}

input,
textarea {
	-webkit-user-select: text;
	user-select: text;
}

html {
	width: 100%;
	height: 100%;
	background: #0c1728;
	overflow: hidden;
}

body {
	width: 100%;
	height: 100vh;
	height: 100dvh;
	margin: 0;
	color: var(--text);
	background-color: #0c1728;
	background-image:
		radial-gradient(circle at 15% 20%, rgba(136, 242, 255, 0.22), transparent 36%),
		radial-gradient(circle at 85% 70%, rgba(181, 122, 255, 0.2), transparent 38%),
		linear-gradient(180deg, rgba(4, 12, 25, 0.02), rgba(4, 12, 25, 0.18)),
		var(--world-background);
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	overflow: hidden;
	transition: background-image 500ms ease;
	display: flex;
	flex-direction: column;
}

body::before {
	display: none;
}

body::after {
	display: none;
}

#worldBackground {
	position: fixed;
	inset: 0;
	z-index: 0;
	background-image:
		linear-gradient(180deg, rgba(4, 12, 25, 0.02), rgba(4, 12, 25, 0.18)),
		var(--world-background);
	background-size: cover;
	background-position: center;
	transition: background-image 500ms ease;
	pointer-events: none;
}

#backgroundPattern {
	position: fixed;
	inset: 0;
	z-index: -1;
	background-image: none !important;
	opacity: 0;
	pointer-events: none;
}

button {
	font: inherit;
	color: inherit;
}

button,
[role="button"] {
	cursor: pointer;
}

.worldAtmosphere {
	position: fixed;
	inset: -20%;
	z-index: 1;
	opacity: 0.35;
	filter: blur(40px);
	background: conic-gradient(from 90deg, transparent, rgba(108, 239, 255, 0.18), transparent, rgba(189, 117, 255, 0.18), transparent);
	animation: atmosphereFlow 24s linear infinite;
	pointer-events: none;
}

@keyframes atmosphereFlow {
	to { transform: rotate(360deg) scale(1.08); }
}

.glass,
.worldSection {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.04)),
		var(--glass);
	border: 1px solid var(--line);
	box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.24);
	backdrop-filter: blur(6px) saturate(150%);
	-webkit-backdrop-filter: blur(6px) saturate(150%);
}

.topShell {
	position: sticky;
	top: 14px;
	z-index: 20;
	width: calc(100% - 16px);
	height: 90px;
	min-height: 90px;
	max-height: 90px;
	margin: 8px auto 0;
	padding: 10px 12px;
	border-radius: 28px;
	display: grid;
	grid-template-columns: minmax(220px, 0.6fr) minmax(150px, 0.4fr) minmax(390px, 1fr);
	align-items: center;
	gap: 18px;
	overflow: visible;
}

.brandBlock,
.worldSwitcher,
.railHeading,
.modalHeading,
.sectionHeading {
	display: flex;
	align-items: center;
}

.brandBlock {
	gap: 12px;
	margin-bottom: 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brandIcon {
	width: 48px;
	height: 48px;
	border-radius: 15px;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.brandBlock strong {
	display: block;
	font-size: 1.05rem;
}

.eyebrow {
	display: block;
	margin-bottom: 4px;
	color: var(--muted);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.worldSwitcher {
	gap: 10px;
	justify-content: center;
	min-width: 0;
	height: 64px;
	overflow: hidden;
}

.headerProgress {
	min-width: 150px;
	height: 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
}

.headerLevel {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

.headerLevel span {
	color: var(--muted);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.headerLevel strong {
	font-size: 1.35rem;
}

#topBarWorld {
	min-width: 150px;
	height: 48px;
	text-align: center;
	overflow: hidden;
}

#topBarWorld span,
#topBarWorld strong {
	display: block;
}

#topBarWorld span {
	color: var(--muted);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

#topBarWorld strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.circleButton {
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
	font-size: 1.6rem;
	line-height: 1;
}

.topShell .circleButton[data-action="previous-world"],
.topShell .circleButton[data-action="next-world"] {
	width: 64px;
	height: 64px;
	border: 0;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	font-size: 0;
	filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.28));
}

.topShell .circleButton[data-action="previous-world"]:disabled {
	cursor: not-allowed;
	opacity: 0.42;
	filter: grayscale(0.4) brightness(0.72) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.18));
}

.topShell .circleButton[data-action="previous-world"]:disabled:hover {
	transform: none;
}

.topShell .circleButton[data-action="previous-world"] {
	background-image: url("../images/modern/fantasy/nav-prev.png");
}

.topShell .circleButton[data-action="next-world"] {
	background-image: url("../images/modern/fantasy/nav-next.png");
}

.circleButton:hover,
.primaryNav button:hover,
.railActions button:hover {
	transform: translateY(-1px);
}

.circleButton.small {
	width: 36px;
	height: 36px;
	font-size: 1rem;
}

.circleButton[data-action^="close-"],
.circleButton[data-action="hide-help"],
.resourceRailClose,
.messageDialogClose {
	border: 0;
	background-color: transparent;
	background-image: url("../images/modern/fantasy/close-fantasy.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	box-shadow: none;
	font-size: 0;
	line-height: 0;
	filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}

body[data-modern-theme="tech"] .circleButton[data-action^="close-"],
body[data-modern-theme="tech"] .circleButton[data-action="hide-help"],
body[data-modern-theme="tech"] .resourceRailClose,
body[data-modern-theme="tech"] .messageDialogClose {
	background-image: url("../images/modern/tech/close-tech.png");
}

.primaryNav {
	display: flex;
	justify-content: flex-end;
	gap: 7px;
	height: 64px;
	align-items: center;
	overflow: hidden;
}

.railActions button,
.debugPanel button {
	padding: 9px 13px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	transition: 180ms ease;
}

.navImageButton {
	position: relative;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 0;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.26));
	font-size: 0;
	transition: 180ms ease;
}

.navResources {
	display: none;
	background-image: url("../images/brand-icon.png");
}

.navAutoClicker {
	background-image: url("../images/modern/tech/auto-bot-1.png");
}

.navImageButton::after {
	content: attr(data-tooltip);
	position: absolute;
	left: 50%;
	bottom: -4px;
	z-index: 4;
	padding: 5px 9px;
	border-radius: 999px;
	background: rgba(6, 14, 30, 0.86);
	color: var(--text);
	font-size: 0.75rem;
	font-weight: 800;
	white-space: nowrap;
	opacity: 0;
	transform: translate(-50%, 8px);
	pointer-events: none;
	transition: 160ms ease;
}

.navAutoClicker::before {
	content: attr(data-sleep-label);
	position: absolute;
	inset: 5px;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	border-radius: 24px;
	background:
		linear-gradient(135deg, rgba(3, 8, 18, 0.5), rgba(89, 111, 154, 0.48)),
		radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.42), transparent 34%);
	color: #f7fbff;
	font-size: 0.58rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
	pointer-events: none;
	backdrop-filter: blur(2px) saturate(130%);
	-webkit-backdrop-filter: blur(2px) saturate(130%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 18px rgba(137, 214, 255, 0.35);
}

.navAutoClicker.isSleeping::before {
	display: flex;
}

.navAutoClicker.isSleeping {
	filter: grayscale(0.35) brightness(0.86) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.26));
}

.navImageButton:hover::after,
.navImageButton:focus-visible::after {
	opacity: 1;
	transform: translate(-50%, 0);
}

.navCrates { background-image: url("../images/modern/fantasy/nav-crates.png"); }
.navRelics { background-image: url("../images/modern/fantasy/nav-relics.png"); }
.navPotions { background-image: url("../images/modern/fantasy/nav-potions.png"); }

body[data-modern-theme="tech"] .navCrates { background-image: url("../images/modern/tech/crate-1.png"); }
body[data-modern-theme="tech"] .navRelics { background-image: url("../images/modern/tech/relic-1.png"); }
body[data-modern-theme="tech"] .navPotions { background-image: url("../images/modern/tech/potion-1.png"); }
body[data-modern-theme="tech"] .topShell .circleButton[data-action="previous-world"] { background-image: url("../images/modern/tech/nav-prev.png"); }
body[data-modern-theme="tech"] .topShell .circleButton[data-action="next-world"] { background-image: url("../images/modern/tech/nav-next.png"); }

.autoClickerAvatar {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 45;
	width: 86px;
	height: 86px;
	object-fit: contain;
	pointer-events: none;
	opacity: 0;
	transform: translate(calc(var(--pet-x, 50vw) - 43px), calc(var(--pet-y, 50vh) - 43px)) scale(0.55);
	filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.34));
}

.autoClickerAvatar.isClicking {
	animation: autoClickerTeleport 780ms ease both;
}

.autoClickerBurst {
	position: fixed;
	z-index: 44;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, -50%);
	background:
		radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 16%, rgba(119, 239, 255, 0.9) 17% 32%, transparent 34%),
		conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.92), transparent, rgba(181, 117, 255, 0.88), transparent);
	box-shadow: 0 0 24px rgba(121, 236, 255, 0.8), 0 0 42px rgba(191, 115, 255, 0.45);
}

.autoClickerBurst.isActive {
	animation: autoClickerBurst 620ms ease-out both;
}

@keyframes autoClickerTeleport {
	0% {
		opacity: 0;
		transform: translate(calc(var(--pet-x, 50vw) - 43px), calc(var(--pet-y, 50vh) - 43px)) scale(0.18) rotate(-18deg);
		filter: blur(8px) drop-shadow(0 0 18px rgba(128, 237, 255, 0.8));
	}
	30% {
		opacity: 1;
		transform: translate(calc(var(--pet-x, 50vw) - 43px), calc(var(--pet-y, 50vh) - 43px)) scale(1.08) rotate(7deg);
		filter: blur(0) drop-shadow(0 14px 18px rgba(0, 0, 0, 0.3));
	}
	72% {
		opacity: 1;
		transform: translate(calc(var(--pet-x, 50vw) - 43px), calc(var(--pet-y, 50vh) - 43px)) scale(0.92) rotate(-4deg);
	}
	100% {
		opacity: 0;
		transform: translate(calc(var(--pet-x, 50vw) - 43px), calc(var(--pet-y, 50vh) - 43px)) scale(0.22) rotate(18deg);
		filter: blur(5px) drop-shadow(0 0 18px rgba(255, 255, 255, 0.8));
	}
}

@keyframes autoClickerBurst {
	0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(0deg); }
	30% { opacity: 1; }
	100% { opacity: 0; transform: translate(-50%, -50%) scale(5.6) rotate(120deg); }
}

.navMining {
	order: -1;
	background-image: url("../images/modern/fantasy/nav-mining.png");
}

body[data-modern-theme="tech"] .navMining {
	background-image: url("../images/modern/tech/nav-mining.png");
}

#crateNotification {
	display: none;
	position: absolute;
	right: -5px;
	top: 8px;
	min-width: 24px;
	padding: 4px 7px;
	border-radius: 999px;
	opacity: 0.6;
	background: #6ee7ff;
	color: #071629;
	font-size: 0.78rem;
	font-weight: 900;
	box-shadow: 0 0 16px rgba(110, 231, 255, 0.8);
}

#crateNotification.blinking {
	animation: crateBadgeBlink 1s ease-in-out 3;
}

@keyframes crateBadgeBlink {
	0%, 100% { transform: scale(1); filter: brightness(1); }
	50% { transform: scale(1.28); filter: brightness(1.8); }
}

.gameLayout {
	position: relative;
	z-index: 2;
	width: 100%;
	flex: 1 1 auto;
	min-height: 0;
	margin: 16px 0 0;
	padding: 0 8px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 8px;
	align-items: stretch;
	overflow: hidden;
}

.contentColumn {
	min-width: 0;
	min-height: 0;
	overflow: auto;
	padding-bottom: 16px;
}

#XPBarBack {
	width: 100%;
	height: 5px;
	margin-top: 5px;
	border-radius: 999px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.13);
}

#XPBar {
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #72f5ff, #b58cff, #ff94c8);
	box-shadow: 0 0 18px rgba(114, 245, 255, 0.8);
}

.worldSections {
	display: grid;
	gap: 8px;
}

.worldSection {
	position: relative;
	padding: 8px;
	border-radius: 24px;
	overflow: hidden;
	isolation: isolate;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025)),
		rgba(15, 25, 44, 0.25);
	backdrop-filter: blur(6px) saturate(125%);
	-webkit-backdrop-filter: blur(6px) saturate(125%);
}

.worldSection::before {
	content: "";
	position: absolute;
	inset: -40%;
	z-index: -1;
	opacity: 0.28;
	background: conic-gradient(from 0deg, transparent, var(--section-a), transparent, var(--section-b), transparent);
	animation: sectionFlow 18s linear infinite;
}

.worldSection::after {
	content: "";
	position: absolute;
	inset: 1px;
	z-index: -1;
	border-radius: inherit;
	background: linear-gradient(145deg, rgba(10, 18, 32, 0.16), rgba(20, 30, 52, 0.08));
}

@keyframes sectionFlow {
	to { transform: rotate(360deg); }
}

.worldSection[data-tier="multi"] { --section-a: rgba(255, 92, 123, 0.55); --section-b: rgba(255, 192, 92, 0.3); }
.worldSection[data-tier="prestige"] { --section-a: rgba(176, 92, 255, 0.56); --section-b: rgba(255, 94, 196, 0.3); }
.worldSection[data-tier="power"] { --section-a: rgba(255, 214, 76, 0.55); --section-b: rgba(255, 117, 70, 0.32); }
.worldSection[data-tier="superPrestige"] { --section-a: rgba(75, 218, 255, 0.58); --section-b: rgba(75, 125, 255, 0.3); }
.worldSection[data-tier="ascension"] { --section-a: rgba(255, 255, 255, 0.5); --section-b: rgba(151, 180, 255, 0.3); }
.worldSection[data-tier="infernal"] { --section-a: rgba(255, 93, 45, 0.62); --section-b: rgba(174, 39, 255, 0.34); }

body[data-modern-theme="tech"] .worldSection[data-tier="multi"] { --section-a: rgba(62, 255, 236, 0.58); --section-b: rgba(42, 116, 255, 0.36); }
body[data-modern-theme="tech"] .worldSection[data-tier="prestige"] { --section-a: rgba(130, 104, 255, 0.62); --section-b: rgba(56, 235, 255, 0.34); }
body[data-modern-theme="tech"] .worldSection[data-tier="power"] { --section-a: rgba(255, 66, 231, 0.58); --section-b: rgba(67, 155, 255, 0.34); }
body[data-modern-theme="tech"] .worldSection[data-tier="superPrestige"] { --section-a: rgba(99, 255, 188, 0.58); --section-b: rgba(87, 61, 255, 0.36); }
body[data-modern-theme="tech"] .worldSection[data-tier="ascension"] { --section-a: rgba(255, 255, 255, 0.46); --section-b: rgba(0, 221, 255, 0.36); }
body[data-modern-theme="tech"] .worldSection[data-tier="infernal"] { --section-a: rgba(255, 55, 177, 0.62); --section-b: rgba(46, 239, 255, 0.38); }

.sectionHeading {
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.sectionTitle {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 0;
	padding: 4px 10px 4px 4px;
	border-radius: 20px;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
	transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.sectionTitle:hover,
.sectionTitle:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	transform: translateY(-1px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
	outline: none;
}

.sectionIcon {
	display: none;
	width: 58px;
	height: 58px;
	object-fit: contain;
	filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.28));
}

.sectionHeading h2 {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.sectionHeading > strong {
	padding: 9px 13px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--text) !important;
	font-size: 0.85rem;
}

.buttonGrid {
	--button-grid-gap: 10px;
	--visible-buttons: 1;
	--button-size: 150px;
	display: flex;
	flex-wrap: nowrap;
	gap: var(--button-grid-gap);
	overflow: hidden;
	justify-content: flex-start;
}

.button {
	position: relative;
	--button-text: #f8fbff;
	--button-text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85), 0 0 8px rgba(0, 0, 0, 0.55);
	width: var(--button-size);
	max-width: var(--button-size);
	aspect-ratio: 1;
	min-height: 0;
	/*padding: 15%;*/
	border: 0;
	/*border-radius: 18px;*/
	overflow: hidden;
	text-align: center;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
	filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.25));
	transition: transform 180ms ease, filter 180ms ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	/*gap: 8px;*/
	text-shadow: var(--button-text-shadow);
	flex: 0 0 var(--button-size);
}

.button.button1 {
	--button-text: #fff8fb;
	--button-text-shadow: 0 2px 4px rgba(74, 0, 26, 0.9), 0 0 10px rgba(255, 64, 126, 0.55);
}

.button.button2 {
	--button-text: #fff8ff;
	--button-text-shadow: 0 2px 4px rgba(36, 0, 80, 0.95), 0 0 10px rgba(190, 93, 255, 0.55);
}

.button.button3 {
	--button-text: #201400;
	--button-text-shadow: 0 1px 0 rgba(255, 255, 235, 0.9), 0 0 8px rgba(255, 218, 89, 0.7);
}

.button.button4 {
	--button-text: #041d2c;
	--button-text-shadow: 0 1px 0 rgba(235, 255, 255, 0.92), 0 0 9px rgba(91, 231, 255, 0.72);
}

.button.button5 {
	--button-text: #111827;
	--button-text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 9px rgba(168, 206, 255, 0.75);
}

.button.button6 {
	--button-text: #fff5ed;
	--button-text-shadow: 0 2px 4px rgba(86, 12, 0, 0.95), 0 0 10px rgba(255, 113, 40, 0.6);
}

.button:not(:disabled):hover {
	transform: translateY(-1px) scale(1.015);
	filter: brightness(1.08) drop-shadow(0 18px 20px rgba(0, 0, 0, 0.3));
}

.button:disabled {
	cursor: not-allowed;
	transform: none;
}

.button.clicked {
	animation: buttonClickPulse 120ms ease;
}

@keyframes buttonClickPulse {
	0% { transform: scale(1); }
	45% {
		transform: scale(0.92);
		filter: brightness(1.35) drop-shadow(0 0 24px rgba(255, 255, 255, 0.55));
	}
	100% { transform: scale(1); }
}

/*.button span,*/
.button strong,
.button small {
	position: relative;
	display: block;
}

.gainValue {
	margin: 0;
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	color: var(--button-text);
}

.costLine {
	font-weight: 700;
	font-size: clamp(0.72rem, 1vw, 0.8rem);
	color: var(--button-text);
	white-space: nowrap;
}

.costLine span {
	display: block;
}

.freeButton {
	color: var(--button-text);
}

.resourceRail {
	position: relative;
	min-height: 0;
	max-height: 100%;
	overflow: auto;
	padding: 20px;
	border-radius: 30px;
}

.resourceRailClose {
	display: none;
	margin-left: auto;
}

.railHeading {
	justify-content: space-between;
}

.railHeading h2 {
	margin: 0;
}

.resourceList {
	margin-top: 18px;
	display: grid;
	gap: 8px;
}

.resourceText {
	width: 100%;
	border: 1px solid rgba(255, 255, 255, 0.1);
	display: grid;
	grid-template-columns: 10px 1fr auto;
	gap: 9px;
	align-items: center;
	padding: 10px 12px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.4);
	text-align: left;
	transition: 160ms ease;
}

.resourceText:hover {
	background: rgba(255, 255, 255, 0.13);
	transform: translateY(-1px);
}

.resourceDot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 10px currentColor;
}

.resourceText > span:nth-child(2) {
	color: var(--muted);
}

.activePotionIcons {
	min-height: 0;
	margin-top: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.potionIcon {
	position: static !important;
	width: 44px;
	height: 44px;
	object-fit: contain;
	filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.25));
}

.potionTooltip {
	margin-top: 8px;
	color: var(--muted);
	font-size: 0.78rem;
	opacity: 0;
}

.railActions {
	margin-top: 18px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 7px;
}

.dangerAction {
	color: #ffb1b1;
}

.debugPanel {
	margin-top: 14px;
	color: var(--muted);
	font-size: 0.78rem;
}

.debugPanel div {
	margin-top: 8px;
	display: flex;
	gap: 5px;
}

.modalShell,
.modalBackdrop,
.helpPanel {
	display: none;
}

.modalShell {
	position: fixed;
	inset: 0;
	z-index: 50;
	padding: 24px;
	background: rgba(3, 8, 18, 0.5);
	backdrop-filter: blur(12px);
}

.modalPanel {
	position: relative;
	width: min(1100px, 100%);
	max-height: calc(100vh - 48px);
	margin: auto;
	padding: 24px;
	border-radius: 32px;
	overflow: hidden;
	background-color: var(--glass-strong);
	display: flex;
	flex-direction: column;
}

.modalHeading {
	flex: 0 0 auto;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.modalTitleGroup {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	text-align: left;
}

.modalTitleGroup > div {
	min-width: 0;
}

.modalHeadingIcon {
	width: 48px;
	height: 48px;
	border-radius: 15px;
	object-fit: contain;
	filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.22));
}

.modalTitleGroup strong,
.modalHeading h1,
.centeredModal h1 {
	display: block;
	margin: 0;
	overflow: hidden;
	color: var(--text);
	font-size: 1.05rem;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.modalContent,
.itemModalLayout,
.resourceBreakdownContent {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
}

.itemModalLayout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 18px;
	height: min(560px, calc(100vh - 180px));
	min-height: 360px;
	overflow: hidden;
}

.itemModalLayout.isEmpty {
	grid-template-columns: 1fr;
}

.itemGrid {
	grid-column: 1;
	grid-row: 1;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 12px;
	align-content: start;
	overflow: auto;
	min-height: 0;
}

.itemEmptyState {
	grid-column: 1;
	grid-row: 1;
	display: none;
	min-height: 0;
	padding: 28px;
	border: 1px dashed rgba(255, 255, 255, 0.22);
	border-radius: 24px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.06);
	color: var(--muted);
	text-align: center;
	line-height: 1.55;
}

.itemEmptyState h2 {
	margin: 0 0 8px;
	color: var(--text);
}

.itemEmptyState p {
	max-width: 420px;
	margin: 0;
}

.itemBox {
	position: relative;
	min-height: 150px;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
	transition: 180ms ease;
}

.itemBox:hover {
	transform: translateY(-1px);
	background: rgba(255, 255, 255, 0.16);
}

.item {
	width: 100%;
	height: 110px;
	object-fit: contain;
	filter: drop-shadow(0 14px 15px rgba(0, 0, 0, 0.28));
}

.itemText {
	position: absolute;
	right: 10px;
	bottom: 9px;
	min-width: 30px;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(6, 14, 30, 0.75);
	font-weight: 800;
}

.itemDetail {
	grid-column: 2;
	grid-row: 1;
	height: 100%;
	min-height: 0;
	padding: 18px;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.08);
	text-align: center;
	overflow: auto;
}

#itemScreenIcon {
	width: 190px;
	height: 190px;
	margin: auto;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.28));
}

#itemScreenName {
	white-space: pre-line;
}

#itemScreenInfoText {
	color: var(--muted);
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.centeredModal {
	max-width: 600px;
	margin-top: 10vh;
	text-align: center;
	overflow: hidden;
}

.worldPurchaseModal {
	--world-purchase-background: none;
	background-color: rgba(8, 16, 34, 0.6);
}

.worldPurchaseModal::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: var(--world-purchase-background);
	background-size: cover;
	background-position: center;
	opacity: 0.4;
}

.worldPurchaseModal > * {
	position: relative;
	z-index: 1;
}

.worldPurchaseModal .modalClose {
	position: static;
	z-index: 3;
}

.worldPurchaseAffordability {
	margin: 10px 0 0;
	color: #ffb3bd;
	font-weight: 800;
}

.worldPurchaseModal h1,
.worldPurchaseModal .eyebrow {
	padding-inline: 0;
}

.resourceBreakdownPanel {
	width: min(860px, 100%);
}

.sectionLorePanel {
	width: min(780px, 100%);
}

.autoClickerModal {
	width: min(760px, 100%);
}

.autoClickerContent {
	color: var(--muted);
	line-height: 1.55;
}

.autoClickerUpgradeGrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.autoClickerUpgradeCard {
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.08);
}

.autoClickerUpgradeHeading {
	display: block;
}

.autoClickerUpgradeCard h2 {
	margin: 0 0 8px;
	color: var(--text);
}

.autoClickerUpgradeCard strong {
	display: block;
	color: var(--text);
}

.autoClickerUpgradeCard .primaryAction:disabled {
	opacity: 0.48;
	cursor: not-allowed;
}

.autoClickerHint {
	font-size: 0.9rem;
}

.autoClickerBehaviorPanel {
	margin-top: 14px;
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.07);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.autoClickerBehaviorHeading {
	grid-column: 1 / -1;
	margin-bottom: 0;
}

.autoClickerBehaviorHeading h2 {
	margin: 0 0 4px;
	color: var(--text);
	font-size: 1.05rem;
}

.autoClickerBehaviorHeading p {
	margin: 0;
	font-size: 0.86rem;
}

.autoClickerBehaviorCell {
	min-width: 0;
	padding: 10px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.06);
}

.autoClickerFrequencyControls {
	display: contents;
}

.autoClickerControlGroup {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	align-items: center;
	margin-top: 0;
}

.autoClickerControlGroup label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--text);
	font-size: 0.9rem;
}

.autoClickerControlLabel {
	width: 100%;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.autoClickerSlider {
	display: grid;
	gap: 7px;
	margin-top: 0;
}

.autoClickerSlider > span {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.autoClickerSlider strong {
	color: var(--text);
}

.autoClickerSlider input {
	width: 100%;
}

.autoClickerBehaviorSummary {
	grid-column: 1 / -1;
	margin: 0;
	color: var(--muted);
	font-size: 0.82rem;
	line-height: 1.35;
}

.autoClickerBehaviorPanel input:disabled + span,
.autoClickerBehaviorPanel input:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.resourceBreakdownContent {
	color: var(--muted);
	line-height: 1.55;
}

.sectionLoreContent p {
	margin: 0 0 14px;
}

.sectionLoreContent strong {
	color: var(--text);
}

.resourceBreakdownContent h2 {
	color: var(--text);
	margin: 22px 0 8px;
}

.breakdownTable {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0 16px;
}

.breakdownTable th,
.breakdownTable td {
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	text-align: left;
	vertical-align: top;
}

.breakdownTable th {
	color: var(--text);
	background: rgba(255, 255, 255, 0.08);
}

.breakdownTable code,
.resourceBreakdownContent code {
	padding: 3px 6px;
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--text);
}

.modalClose {
	position: absolute;
	right: 18px;
	top: 18px;
}

.modalHeading .modalClose {
	position: static;
	right: auto;
	top: auto;
}

.primaryAction {
	width: 100%;
	margin-top: 16px;
	padding: 15px 20px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 20px;
	background: linear-gradient(120deg, #63ddff, #8a77ff);
	box-shadow: 0 16px 30px rgba(71, 124, 255, 0.26);
	font-weight: 800;
}

.secondaryAction {
	width: 100%;
	margin-top: 12px;
	padding: 13px 18px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--text);
	font-weight: 800;
}

.primaryAction small {
	display: block;
	margin-top: 3px;
	opacity: 0.75;
}

.miningModal {
	max-width: 760px;
}

.miningModalContent {
	color: var(--muted);
	line-height: 1.5;
}

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

.miningMetrics > div,
.oreCard {
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.07);
}

.miningMetrics span,
.oreCard span {
	display: block;
	color: var(--muted);
	font-size: 0.76rem;
}

.miningMetrics strong,
.oreCard strong {
	display: block;
	margin-top: 5px;
	font-size: 1.2rem;
}

.oreGrid {
	margin-top: 16px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 9px;
}

.oreIcon {
	width: 76px;
	height: 76px;
	margin: 0 auto 8px;
	display: block;
	object-fit: contain;
	filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.28));
}

.modalBackdrop {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: rgba(3, 8, 18, 0.56);
	backdrop-filter: blur(12px);
}

.messageDialogShell {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: none;
	padding: 24px;
	background: rgba(3, 8, 18, 0.62);
	backdrop-filter: blur(14px);
}

.messageDialogPanel {
	position: relative;
	width: min(520px, 100%);
	margin: 8vh auto 0;
	padding: 30px;
	border-radius: 30px;
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 48px);
	overflow: hidden;
	text-align: center;
}

.messageDialogClose {
	flex: 0 0 auto;
}

.messageDialogContent {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
}

.messageDialogImage {
	display: none;
	width: min(240px, 70vw);
	height: 220px;
	margin: 0 auto 16px;
	border-radius: 24px;
	object-fit: contain;
	filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
}

.messageDialogPanel p {
	color: var(--muted);
	line-height: 1.6;
	white-space: pre-line;
}

.messageDialogInput {
	display: none;
	width: 100%;
	margin-top: 14px;
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 16px;
	background: rgba(4, 12, 25, 0.55);
	color: var(--text);
	resize: vertical;
}

.messageDialogActions {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
}

.messageDialogActions button {
	min-width: 120px;
	padding: 12px 18px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.1);
}

.messageDialogActions .primaryAction {
	width: auto;
	margin-top: 0;
}

.helpPanel {
	position: fixed;
	inset: 5vh 50% auto auto;
	transform: translateX(50%);
	z-index: 61;
	width: min(760px, calc(100% - 28px));
	max-height: 90vh;
	padding: 28px;
	border-radius: 32px;
	overflow: hidden;
	background-color: var(--glass-strong);
	display: none;
	flex-direction: column;
}

.helpHeader {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.helpBody {
	flex: 1 1 auto;
	min-height: 0;
	margin: 18px -12px 0 0;
	padding-right: 12px;
	overflow: auto;
}

.helpPanel h1,
.helpHeader strong {
	display: block;
	margin: 0;
	overflow: hidden;
	color: var(--text);
	font-size: 1.05rem;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.helpPanel p {
	color: var(--muted);
	line-height: 1.6;
}

.helpPanel code {
	padding: 3px 6px;
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.1);
}

.helpPanel h2 {
	margin-top: 28px;
}

.helpPanel ul {
	color: var(--muted);
	line-height: 1.6;
}

.helpIcon {
	width: 42px;
	height: 42px;
	vertical-align: middle;
	object-fit: contain;
}

.helpSampleButton {
	width: 70px;
	height: 70px;
	display: block;
	margin-top: 7px;
	object-fit: contain;
	filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.25));
}

.helpTable {
	width: 100%;
	margin: 12px 0 18px;
	border-collapse: collapse;
	color: var(--muted);
	font-size: 0.9rem;
}

.helpTable th,
.helpTable td {
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	text-align: left;
	vertical-align: top;
}

.helpTable th {
	color: var(--text);
	background: rgba(255, 255, 255, 0.1);
}

.helpTable tr:nth-child(even) {
	background: rgba(255, 255, 255, 0.04);
}

.helpChain {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	align-items: center;
}

.helpChain span {
	padding: 8px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
}

.mobileLevelBar {
	display: none;
}

@media (max-width: 1050px) {
	.topShell {
		height: 208px;
		min-height: 208px;
		max-height: 208px;
		grid-template-columns: 1fr auto minmax(140px, 0.6fr);
	}

	.primaryNav {
		grid-column: 1 / -1;
		justify-content: center;
		flex-wrap: wrap;
		height: 64px;
	}

	.navResources {
		display: inline-block;
	}

	.gameLayout {
		grid-template-columns: 1fr;
	}

	.resourceRail {
		position: fixed;
		inset: 12px;
		z-index: 60;
		display: none;
		max-height: none;
		overflow: auto;
	}

	body.resourcesOpen .resourceRail {
		display: flex;
		flex-direction: column;
	}

	body.resourcesOpen .gameLayout {
		z-index: 70;
	}

	body.resourcesOpen::before {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 55;
		display: block;
		background: rgba(3, 8, 18, 0.52);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
	}

	.resourceRailClose {
		display: inline-flex;
	}

	.resourceList {
		grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	}

	.railActions {
		grid-template-columns: repeat(5, 1fr);
	}
}

@media (max-width: 720px) {
	body {
		line-height: 1.25;
	}

	.topShell {
		top: 8px;
		width: calc(100% - 16px);
		height: 208px;
		min-height: 208px;
		max-height: 208px;
		margin-top: 8px;
		border-radius: 23px;
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.headerProgress {
		height: 46px;
	}

	.topShell .brandBlock {
		display: none;
	}

	.primaryNav {
		justify-content: flex-start;
		overflow-x: auto;
		overflow-y: hidden;
		flex-wrap: nowrap;
		padding-bottom: 2px;
		height: 68px;
	}

	.primaryNav button {
		flex: 0 0 auto;
	}

	.gameLayout {
		width: 100%;
		margin-top: 6px;
		padding: 0 4px;
		gap: 4px;
	}

	.contentColumn {
		padding-bottom: 6px;
	}

	.worldSections {
		gap: 4px;
	}

	.resourceRail {
		inset: 8px;
		padding: 10px;
		border-radius: 20px;
	}

	.brandBlock {
		gap: 8px;
		margin-bottom: 10px;
		padding-bottom: 8px;
	}

	.brandIcon,
	.modalHeadingIcon {
		width: 40px;
		height: 40px;
		border-radius: 12px;
	}

	.eyebrow {
		margin-bottom: 2px;
		font-size: 0.62rem;
		letter-spacing: 0.1em;
	}

	.brandBlock strong,
	.modalTitleGroup strong,
	.helpHeader strong {
		font-size: 0.95rem;
		line-height: 1.1;
	}

	.railHeading {
		align-items: center;
	}

	.railHeading h2 {
		font-size: 1.15rem;
		line-height: 1.1;
	}

	.resourceList {
		grid-template-columns: 1fr;
		margin-top: 8px;
		gap: 5px;
	}

	.resourceText {
		grid-template-columns: 8px 1fr auto;
		gap: 6px;
		padding: 7px 9px;
		border-radius: 12px;
		line-height: 1.15;
	}

	.resourceDot {
		width: 6px;
		height: 6px;
	}

	.activePotionIcons {
		margin-top: 8px;
		gap: 5px;
	}

	.potionIcon {
		width: 36px;
		height: 36px;
	}

	.potionTooltip {
		margin-top: 5px;
		font-size: 0.72rem;
	}

	.railActions {
		grid-template-columns: 1fr 1fr;
		gap: 5px;
		margin-top: 10px;
	}

	.railActions button,
	.debugPanel button {
		padding: 7px 9px;
		line-height: 1.1;
	}

	.debugPanel {
		margin-top: 8px;
		font-size: 0.82rem;
	}

	.worldSection {
		padding: 3px;
		border-radius: 18px;
	}

	.buttonGrid {
		--button-grid-gap: 2px;
	}

	.button {
		min-height: 0;
		padding: 14%;
		/*border-radius: 19px;*/
	}

	.sectionHeading {
		gap: 3px;
		margin-bottom: 2px;
	}

	.sectionTitle {
		gap: 6px;
		padding: 2px 6px 2px 2px;
		border-radius: 14px;
	}

	.sectionIcon {
		width: 38px;
		height: 38px;
	}

	.sectionHeading h2 {
		font-size: clamp(1.05rem, 6vw, 1.45rem);
		line-height: 1;
	}

	.sectionHeading > strong {
		padding: 5px 8px;
		font-size: 0.7rem;
		line-height: 1.05;
	}

	.gainValue {
		font-size: clamp(0.86rem, 4vw, 1rem);
		line-height: 1.05;
	}

	.costLine {
		font-size: clamp(0.62rem, 3.2vw, 0.72rem);
		line-height: 1.05;
	}


	.modalShell {
		padding: 8px;
	}

	.messageDialogShell {
		padding: 8px;
	}

	.modalPanel,
	.helpPanel,
	.messageDialogPanel {
		width: 100%;
		height: calc(100vh - 16px);
		min-height: calc(100vh - 16px);
		max-height: calc(100vh - 16px);
		margin: 0;
		padding: 10px;
		border-radius: 18px;
	}

	.centeredModal {
		margin: 0;
	}

	.modalHeading,
	.helpHeader {
		margin-bottom: 8px;
		padding-bottom: 8px;
		gap: 8px;
	}

	.modalHeadingIcon {
		width: 40px;
		height: 40px;
	}

	.itemModalLayout {
		grid-template-columns: 1fr;
		flex: 1 1 auto;
		height: auto;
		min-height: 0;
		grid-auto-rows: max-content;
		overflow: auto;
	}

	.autoClickerUpgradeGrid {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.autoClickerContent,
	.miningModalContent,
	.resourceBreakdownContent,
	.sectionLoreContent,
	.messageDialogContent,
	.helpBody {
		line-height: 1.3;
	}

	.itemDetail {
		grid-column: 1;
		grid-row: 2;
		height: auto;
		min-height: 150px;
		max-height: none;
		padding: 10px;
		border-radius: 16px;
	}

	.itemGrid {
		grid-column: 1;
		grid-row: 1;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 7px;
		overflow: visible;
	}

	.itemBox {
		min-height: 118px;
		padding: 7px;
		border-radius: 16px;
	}

	.item {
		height: 86px;
	}

	.itemText {
		right: 6px;
		bottom: 6px;
		padding: 3px 6px;
		font-size: 0.78rem;
	}

	#itemScreenIcon {
		width: 128px;
		height: 128px;
	}

	#itemScreenName {
		margin: 6px 0;
		font-size: 1.1rem;
		line-height: 1.15;
	}

	#itemScreenInfoText {
		line-height: 1.3;
	}

	.itemEmptyState {
		grid-column: 1;
		grid-row: 1;
		min-height: 190px;
		padding: 16px;
		border-radius: 16px;
	}

	.miningMetrics {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.miningMetrics > div {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		white-space: nowrap;
	}

	.miningMetrics span,
	.miningMetrics strong {
		display: inline;
		margin-top: 0;
		line-height: 1;
	}

	.miningMetrics strong {
		font-size: 0.98rem;
	}

	.miningMetrics > div,
	.oreCard,
	.autoClickerUpgradeCard {
		padding: 9px;
		border-radius: 15px;
	}

	.autoClickerUpgradeCard h2 {
		margin-bottom: 4px;
		font-size: 1rem;
		line-height: 1.1;
	}

	.autoClickerUpgradeHeading {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 8px;
	}

	.autoClickerUpgradeHeading h2 {
		margin: 0;
	}

	.autoClickerUpgradeHeading strong {
		display: inline;
		flex: 0 0 auto;
		font-size: 0.82rem;
	}

	.autoClickerContent p {
		margin: 3px 0;
	}

	.autoClickerDescription,
	.autoClickerCollapsibleText {
		cursor: pointer;
	}

	.autoClickerDescription.isCollapsed,
	.autoClickerCollapsibleText.isCollapsed {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;
		white-space: normal;
		text-overflow: ellipsis;
	}

	.autoClickerHint {
		margin: 8px 0;
		font-size: 0.82rem;
	}

	.autoClickerBehaviorPanel {
		margin-top: 8px;
		padding: 9px;
		border-radius: 15px;
		gap: 6px;
	}

	.autoClickerBehaviorHeading {
		margin-bottom: 6px;
	}

	.autoClickerBehaviorHeading h2 {
		font-size: 1rem;
		line-height: 1.1;
	}

	.autoClickerBehaviorHeading p,
	.autoClickerControlGroup label {
		font-size: 0.78rem;
	}

	.autoClickerControlGroup {
		gap: 5px 8px;
		margin-top: 0;
	}

	.autoClickerControlLabel {
		font-size: 0.62rem;
		letter-spacing: 0.08em;
	}

	.autoClickerSlider {
		gap: 5px;
		margin-top: 0;
		font-size: 0.8rem;
	}

	.autoClickerBehaviorCell {
		padding: 7px;
		border-radius: 12px;
	}

	.autoClickerBehaviorSummary {
		font-size: 0.74rem;
		line-height: 1.25;
	}

	.primaryAction,
	.secondaryAction {
		margin-top: 8px;
		padding: 10px 12px;
		border-radius: 14px;
		line-height: 1.15;
	}

	.oreGrid {
		margin-top: 8px;
		gap: 6px;
		grid-template-columns: 1fr;
	}

	.oreCard {
		display: grid;
		grid-template-columns: 38px minmax(0, 1fr) auto;
		align-items: center;
		gap: 8px;
		white-space: nowrap;
	}

	.oreCard span,
	.oreCard strong {
		display: inline;
		margin-top: 0;
		line-height: 1;
	}

	.oreCard span {
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.oreCard strong {
		font-size: 0.98rem;
	}

	.oreIcon {
		width: 38px;
		height: 38px;
		margin: 0;
	}

	.messageDialogImage {
		width: min(170px, 62vw);
		height: 140px;
		margin-bottom: 8px;
	}

	.messageDialogPanel p {
		line-height: 1.35;
	}

	.messageDialogInput {
		margin-top: 8px;
		padding: 9px;
		border-radius: 12px;
	}

	.messageDialogActions {
		gap: 6px;
		margin-top: 10px;
	}

	.messageDialogActions button {
		min-width: 96px;
		padding: 9px 12px;
		border-radius: 12px;
	}

	.helpBody {
		margin-top: 8px;
		padding-right: 6px;
	}

	.helpPanel p,
	.helpPanel ul {
		line-height: 1.35;
	}

	.helpPanel h2 {
		margin-top: 16px;
		margin-bottom: 6px;
		font-size: 1.08rem;
		line-height: 1.15;
	}

	.helpIcon {
		width: 30px;
		height: 30px;
	}

	.helpSampleButton {
		width: 50px;
		height: 50px;
		margin-top: 4px;
	}

	.helpTable {
		margin: 8px 0 12px;
		font-size: 0.78rem;
	}

	.helpTable th,
	.helpTable td {
		padding: 6px;
	}

	.helpChain {
		gap: 4px;
	}

	.helpChain span {
		padding: 5px 7px;
	}

	.helpPanel {
		inset: 8px;
		transform: none;
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
	}
}
