﻿/* LunaCatch game UI Ã¢â‚¬â€ fullscreen, kid-friendly */

:root {
	--lq-bg-1: #ff8a65;
	--lq-bg-2: #ffd54f;
	--lq-bg-3: #4fc3f7;
	--lq-ink: #1a237e;
	--lq-card: #fff8e7;
	--lq-btn: #ff4081;
	--lq-btn-text: #ffffff;
	--lq-success: #00c853;
	--lq-shadow: 0 8px 24px rgba(26, 35, 126, 0.22);
	--lq-radius: 22px;
	--lq-font-display: "Fredoka", "Nunito", sans-serif;
	--lq-font-body: "Nunito", "Fredoka", sans-serif;
	--lq-spawn-sprite: 48px;
	--lq-spawn-box: 56px;
	--lq-player-size: 56px;
	--lq-hud-pad: 8px;
	--lq-safe-top: env(safe-area-inset-top, 0px);
	--lq-safe-right: env(safe-area-inset-right, 0px);
	--lq-safe-bottom: env(safe-area-inset-bottom, 0px);
	--lq-safe-left: env(safe-area-inset-left, 0px);
}

body.lunacatch-game-active {
	margin: 0 !important;
	overflow: hidden !important;
	width: 100% !important;
	max-width: 100% !important;
	position: relative !important;
	background: #0d1b2a !important;
	overscroll-behavior: none;
}

html.lunacatch-game-active {
	overflow: hidden !important;
	width: 100% !important;
	max-width: 100% !important;
	height: 100% !important;
}

body.lunacatch-game-active #wpadminbar {
	display: none !important;
}

body.lunacatch-game-active header,
body.lunacatch-game-active footer,
body.lunacatch-game-active .site-header,
body.lunacatch-game-active .site-footer,
body.lunacatch-game-active .site-nav,
body.lunacatch-game-active nav,
body.lunacatch-game-active .main-navigation,
body.lunacatch-game-active .wp-block-template-part,
body.lunacatch-game-active .entry-header,
body.lunacatch-game-active .entry-footer,
body.lunacatch-game-active .entry-title,
body.lunacatch-game-active .page-title,
body.lunacatch-game-active h1.wp-block-post-title,
body.lunacatch-game-active .wp-block-post-title {
	display: none !important;
}

body.lunacatch-game-active .site-content,
body.lunacatch-game-active .content-area,
body.lunacatch-game-active #content,
body.lunacatch-game-active #primary,
body.lunacatch-game-active main,
body.lunacatch-game-active .entry-content {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

#lunacatch-app.lq-app {
	position: fixed !important;
	inset: 0 !important;
	left: 0 !important;
	right: 0 !important;
	top: 0 !important;
	bottom: 0 !important;
	z-index: 99999;
	width: 100% !important;
	max-width: 100% !important;
	height: 100%;
	height: 100dvh;
	height: 100svh;
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--lq-font-body);
	color: var(--lq-ink);
	background:
		radial-gradient(ellipse at 20% 10%, rgba(255, 213, 79, 0.55), transparent 50%),
		radial-gradient(ellipse at 90% 20%, rgba(79, 195, 247, 0.5), transparent 45%),
		linear-gradient(160deg, var(--lq-bg-1), var(--lq-bg-2) 45%, var(--lq-bg-3));
	overflow: hidden !important;
	overflow-x: hidden !important;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

#lunacatch-app.lq-app *,
#lunacatch-app.lq-app *::before,
#lunacatch-app.lq-app *::after {
	box-sizing: border-box;
}

.lq-app .is-hidden {
	display: none !important;
}

.lq-screen {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px max(12px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0)) max(12px, env(safe-area-inset-left, 0px));
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.lq-brand {
	font-family: var(--lq-font-display);
	font-size: clamp(2.4rem, 10vw, 3.4rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
	text-shadow: 0 4px 0 rgba(26, 35, 126, 0.25);
	margin-bottom: 12px;
	text-align: center;
}

.lq-brand--sm {
	font-size: 1.5rem;
	margin-bottom: 8px;
}

.lq-brand--hero {
	font-size: clamp(3rem, 13vw, 4.2rem);
	margin-bottom: 8px;
}

.lq-brand--logo {
	text-shadow: none;
	line-height: 0;
}

.lq-brand--hero.lq-brand--logo .lq-brand-logo,
.lq-brand--hero .lq-brand-logo {
	max-width: min(78vw, 320px);
	max-height: 110px;
}

.lq-brand-logo {
	display: block;
	margin: 0 auto;
	width: auto;
	max-width: min(72vw, 280px);
	max-height: 88px;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 3px 0 rgba(26, 35, 126, 0.2));
}

.lq-brand--sm .lq-brand-logo {
	max-width: min(56vw, 200px);
	max-height: 56px;
}

.lq-block-card .lq-brand-logo {
	max-width: min(70%, 180px);
	max-height: 48px;
}

.lq-title {
	font-family: var(--lq-font-display);
	font-size: 1.6rem;
	margin: 0 0 20px;
	color: #fff;
	text-align: center;
	text-shadow: 0 2px 0 rgba(26, 35, 126, 0.2);
}

.lq-lead {
	max-width: 22rem;
	text-align: center;
	font-size: 1.1rem;
	font-weight: 700;
	color: #1a237e;
	background: rgba(255, 248, 231, 0.9);
	padding: 16px 18px;
	border-radius: var(--lq-radius);
	margin: 0 0 24px;
	box-shadow: var(--lq-shadow);
}

/* —— Boot / GPS gate —— */
.lq-screen--boot {
	justify-content: flex-end;
	padding: max(20px, var(--lq-safe-top)) max(12px, var(--lq-safe-right, 0px)) calc(28px + var(--lq-safe-bottom)) max(12px, var(--lq-safe-left, 0px));
	overflow: hidden;
	overflow-x: hidden;
	background: #1a0a2e;
}

.lq-boot-stage {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.lq-boot-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transform: scale(1.02);
}

.lq-boot-floats {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
}

.lq-boot-float {
	position: absolute;
	width: auto;
	height: auto;
	max-width: 36vw;
	object-fit: contain;
	/* Avoid mix-blend + drop-shadow (heavy on mobile GPUs). */
	opacity: 0.96;
	filter: none;
	animation: lq-boot-float 7s ease-in-out infinite;
	contain: layout paint;
}

.lq-screen--boot:not(.is-hidden) .lq-boot-float {
	animation-play-state: running;
}

.lq-screen.is-hidden .lq-boot-float,
.lq-screen.is-hidden .lq-btn--boot {
	animation: none !important;
}

.lq-boot-float--1 {
	width: min(28vw, 120px);
	max-width: min(28vw, 120px);
	height: auto;
	top: 7%;
	left: 6%;
	animation-duration: 5.6s;
}

.lq-boot-float--2 {
	width: min(24vw, 104px);
	max-width: min(24vw, 104px);
	height: auto;
	top: 12%;
	right: 6%;
	animation-duration: 6.4s;
	animation-delay: 0.5s;
}

.lq-boot-float--3 {
	width: min(22vw, 96px);
	max-width: min(22vw, 96px);
	height: auto;
	top: 30%;
	left: 12%;
	animation-duration: 5.2s;
	animation-delay: 1s;
}

.lq-boot-float--4 {
	width: min(26vw, 112px);
	max-width: min(26vw, 112px);
	height: auto;
	top: 26%;
	right: 14%;
	animation-duration: 6.8s;
	animation-delay: 0.25s;
}

.lq-boot-scrim {
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(180deg, rgba(20, 8, 40, 0.15) 0%, transparent 28%),
		linear-gradient(180deg, transparent 42%, rgba(20, 8, 40, 0.55) 72%, rgba(20, 8, 40, 0.78) 100%);
}

.lq-boot-content {
	position: relative;
	z-index: 5;
	pointer-events: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 26rem;
	padding: 0 4px;
	box-sizing: border-box;
	animation: lq-boot-rise 0.75s ease-out 0.08s both;
}

.lq-boot-kicker {
	margin: 0 0 18px;
	font-family: var(--lq-font-body);
	font-size: clamp(1rem, 3.6vw, 1.15rem);
	font-weight: 800;
	letter-spacing: 0.01em;
	color: rgba(255, 255, 255, 0.96);
	text-align: center;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.lq-lead--boot {
	max-width: 22rem;
	margin: 0 0 12px;
	padding: 14px 16px;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.35;
	color: #1a0a2e;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 18px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.lq-boot-gps-status {
	width: min(100%, 22rem);
	margin: 0 0 14px;
	padding: 12px 14px;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	color: #1a0a2e;
	background: rgba(255, 255, 255, 0.88);
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.lq-boot-gps-status.is-error {
	color: #fff;
	background: rgba(198, 40, 40, 0.92);
}

.lq-boot-gps-status.is-busy {
	color: #1a237e;
	background: rgba(255, 255, 255, 0.95);
}

.lq-btn--boot {
	width: min(100%, 22rem);
	border-radius: 18px;
	min-width: 0;
	animation: lq-boot-cta 2.4s ease-in-out infinite;
}

.lq-boot-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	margin-top: 18px;
}

.lq-boot-link {
	appearance: none;
	border: none;
	background: transparent;
	padding: 8px 4px;
	min-height: 44px;
	font-family: var(--lq-font-body);
	font-size: 0.98rem;
	font-weight: 800;
	color: #fff;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
	cursor: pointer;
}

.lq-boot-link:active {
	opacity: 0.7;
}

.lq-screen--parks {
	justify-content: flex-start;
	background: #1a0a2e;
	overflow-x: hidden;
}

.lq-parks-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	max-width: 26rem;
	padding: 8px 0 0;
	box-sizing: border-box;
	min-width: 0;
}

.lq-screen--parks .lq-title {
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
	text-align: center;
}

@keyframes lq-boot-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes lq-boot-float {
	0%,
	100% {
		transform: translateY(0) rotate(-2deg);
	}
	50% {
		transform: translateY(-14px) rotate(2deg);
	}
}

/* No transform on the CTA — iOS can miss taps on animated transform targets. */
@keyframes lq-boot-cta {
	0%,
	100% {
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	}
	50% {
		box-shadow: 0 14px 28px rgba(255, 64, 129, 0.45);
	}
}

.lq-app--lite .lq-boot-float,
.lq-app--lite .lq-btn--boot {
	animation: none !important;
}

.lq-app--lite .lq-boot-float {
	display: none;
}

.lq-app--lite .lq-loading-spinner {
	animation-duration: 1.1s;
}

.lq-app--lite .lq-spawn-appear,
.lq-app--lite .lq-ca-idle-bob,
.lq-app--lite .lq-ca-slot--foe {
	animation: none !important;
}

.lq-app--lite .lq-spawn-sprite,
.lq-app--lite .lq-player-avatar img,
.lq-app--lite .lq-ca-bubble-inner {
	filter: none !important;
}

@media (max-width: 768px) {
	.lq-boot-float,
	.lq-btn--boot {
		animation: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lq-boot-content,
	.lq-boot-float,
	.lq-btn--boot {
		animation: none !important;
	}

	.lq-ca-aim-ring,
	.lq-overlay--catch[data-phase="intro"] .lq-ca-slot--foe,
	.lq-overlay--catch[data-phase="menu"] .lq-ca-slot--foe,
	.lq-overlay--catch[data-phase="aim"] .lq-ca-slot--foe {
		animation: none !important;
	}
}

.lq-btn {
	appearance: none;
	-webkit-appearance: none;
	border: none;
	cursor: pointer;
	font-family: var(--lq-font-display), system-ui, sans-serif;
	font-weight: 700;
	font-size: 1.15rem;
	border-radius: 999px;
	padding: 14px 28px;
	min-height: 56px;
	min-width: 160px;
	box-shadow: var(--lq-shadow);
	transition: transform 0.12s ease, filter 0.12s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	line-height: 1.2;
	color: inherit;
	background: #eee;
}

/* Beat theme resets that turn buttons into plain text links. */
#lunacatch-app.lq-app button.lq-btn,
#lunacatch-app.lq-app .lq-btn {
	appearance: none !important;
	-webkit-appearance: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: none !important;
	cursor: pointer !important;
	text-decoration: none !important;
	font-family: var(--lq-font-display), system-ui, sans-serif !important;
	font-weight: 700 !important;
	font-size: 1.15rem !important;
	border-radius: 999px !important;
	padding: 14px 28px !important;
	min-height: 56px !important;
	min-width: 160px !important;
	line-height: 1.2 !important;
	box-shadow: var(--lq-shadow) !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	position: relative !important;
	z-index: 2 !important;
}

#lunacatch-app.lq-app button.lq-btn:disabled,
#lunacatch-app.lq-app .lq-btn:disabled {
	opacity: 0.75 !important;
	cursor: wait !important;
}

#lunacatch-app.lq-app button.lq-btn--primary,
#lunacatch-app.lq-app .lq-btn--primary {
	background: var(--lq-btn) !important;
	color: var(--lq-btn-text) !important;
}

#lunacatch-app.lq-app button.lq-btn--ghost,
#lunacatch-app.lq-app .lq-btn--ghost {
	background: rgba(255, 255, 255, 0.92) !important;
	color: var(--lq-ink) !important;
	box-shadow: none !important;
}

#lunacatch-app.lq-app button.lq-btn--xl,
#lunacatch-app.lq-app .lq-btn--xl {
	font-size: 1.35rem !important;
	padding: 18px 36px !important;
	min-height: 64px !important;
}

#lunacatch-app.lq-app button.lq-btn--block,
#lunacatch-app.lq-app .lq-btn--block {
	width: 100% !important;
	min-width: 0 !important;
}

#lunacatch-app.lq-app button.lq-btn--sm,
#lunacatch-app.lq-app .lq-btn--sm {
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 4px 10px !important;
	font-size: 0.72rem !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
}

#lunacatch-app.lq-app button.lq-btn--boot,
#lunacatch-app.lq-app .lq-btn--boot {
	width: min(100%, 22rem) !important;
	min-width: 0 !important;
	border-radius: 18px !important;
}

.lq-park-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	width: 100%;
	max-width: 100%;
	max-height: 70vh;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 2px;
	box-sizing: border-box;
	min-width: 0;
}

.lq-park-card {
	appearance: none;
	border: none;
	background: var(--lq-card);
	border-radius: var(--lq-radius);
	overflow: hidden;
	box-shadow: var(--lq-shadow);
	padding: 0;
	text-align: left;
	cursor: pointer;
	min-height: 88px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	display: grid;
	grid-template-columns: minmax(72px, 30%) minmax(0, 1fr);
	align-items: stretch;
	box-sizing: border-box;
}

.lq-park-card.is-nearby {
	outline: 3px solid #69f0ae;
}

.lq-park-card.is-far {
	opacity: 0.92;
}

.lq-park-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 0;
}

.lq-parks-hint {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.88);
	color: var(--lq-ink);
	font-weight: 700;
	font-size: 0.92rem;
	line-height: 1.35;
	text-align: center;
}

.lq-park-meta {
	display: block;
	padding: 0 14px 12px;
	font-size: 0.82rem;
	font-weight: 700;
	color: #3949ab;
}

.lq-park-card.is-far .lq-park-meta {
	color: #c62828;
}

.lq-park-card.is-nearby .lq-park-meta {
	color: #2e7d32;
}

.lq-park-cover {
	background-size: cover;
	background-position: center;
	background-color: #81d4fa;
	min-height: 88px;
	position: relative;
	overflow: hidden;
}

.lq-park-cover__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 88px;
	object-fit: cover;
	object-position: center;
}

.lq-park-cover--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.4rem;
}

.lq-park-name {
	font-family: var(--lq-font-display);
	font-size: clamp(1rem, 4.2vw, 1.25rem);
	font-weight: 700;
	padding: 12px 14px 4px;
	display: flex;
	align-items: center;
	color: var(--lq-ink);
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.lq-block-card {
	background: var(--lq-card);
	border-radius: var(--lq-radius);
	padding: 28px 22px;
	max-width: 360px;
	text-align: center;
	box-shadow: var(--lq-shadow);
}

.lq-block-message {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 12px 0 24px;
}

.lq-screen--play {
	padding: 0;
	align-items: stretch;
	justify-content: stretch;
}

.lq-hud {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 500;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: calc(var(--lq-hud-pad) + var(--lq-safe-top)) max(8px, var(--lq-safe-right)) var(--lq-hud-pad) max(8px, var(--lq-safe-left));
	pointer-events: none;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	max-height: min(42vh, 280px);
	overflow-x: hidden;
	overflow-y: visible;
	min-width: 0;
}

.lq-hud > * {
	pointer-events: auto;
	min-width: 0;
	max-width: 100%;
}

.lq-hud-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.lq-hud-actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 0 0 auto;
	min-width: 0;
}

.lq-hud-top .lq-player-level {
	flex: 1 1 auto;
	max-width: min(120px, 30vw);
	margin: 0;
	min-width: 0;
}

.lq-hud-wallet {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
}

.lq-icon-btn {
	appearance: none;
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: rgba(255, 248, 231, 0.95);
	box-shadow: var(--lq-shadow);
	font-size: 1.05rem;
	cursor: pointer;
	flex-shrink: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.lq-counts {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 6px;
	flex-wrap: nowrap;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 2px;
}

.lq-counts::-webkit-scrollbar {
	display: none;
}

.lq-count-chip {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	background: rgba(255, 248, 231, 0.95);
	border-radius: 999px;
	padding: 4px 8px;
	box-shadow: var(--lq-shadow);
	border-bottom: 3px solid var(--lq-chip-color, #fff);
	font-family: var(--lq-font-display);
	font-weight: 700;
	font-size: 0.8rem;
	flex-shrink: 0;
}

.lq-count-emoji {
	font-size: 0.95rem;
}

.lq-count-icon {
	width: 20px !important;
	height: 20px !important;
	max-width: 20px !important;
	max-height: 20px !important;
	object-fit: contain;
	display: block;
	background: transparent;
}

.lq-progress {
	position: relative;
	top: auto;
	left: auto;
	right: auto;
	z-index: 1;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background: linear-gradient(180deg, rgba(26, 35, 126, 0.96), rgba(57, 73, 171, 0.94));
	color: #fff;
	border-radius: 16px;
	padding: 10px 12px;
	font-size: 0.78rem;
	font-weight: 700;
	text-align: left;
	box-shadow: var(--lq-shadow);
	line-height: 1.25;
	transform: none;
	cursor: pointer;
}

.lq-progress:focus-visible {
	outline: 2px solid #ffd54f;
	outline-offset: 2px;
}

.lq-progress-label {
	display: block;
	font-size: 0.68rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	opacity: 0.82;
	margin-bottom: 4px;
}

.lq-progress-text {
	display: block;
}

.lq-progress-bar {
	display: block;
	width: 100%;
	height: 8px;
	margin-top: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	overflow: hidden;
}

.lq-progress-bar > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #ffe082, #ffca28);
}

.lq-progress em {
	font-style: normal;
	color: #ffd54f;
}

.lq-map {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: #9ccc65;
	width: 100%;
	height: 100%;
}

/* PokÃƒÂ©mon GOÃ¢â‚¬â€œlike map (vector style + soft vignette) */
.lq-map--cartoon .leaflet-tile-pane,
.lq-map--pogo .leaflet-tile-pane {
	filter: none;
}

.lq-map--cartoon .leaflet-tile,
.lq-map--pogo .leaflet-tile {
	image-rendering: auto;
}

.lq-map--pogo .maplibregl-map,
.lq-map--cartoon .maplibregl-map {
	background: #9ccc65 !important;
}

.lq-map--cartoon::after,
.lq-map--pogo::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 450;
	pointer-events: none;
	background:
		radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(46, 125, 50, 0.14) 100%);
	opacity: 0.7;
}

.lq-map--cartoon .leaflet-control-zoom a {
	width: 36px !important;
	height: 36px !important;
	line-height: 36px !important;
	border-radius: 12px !important;
	border: 3px solid #fff !important;
	background: #ff8a65 !important;
	color: #fff !important;
	font-weight: 800 !important;
	box-shadow: 0 4px 0 rgba(26, 35, 126, 0.25) !important;
	margin-bottom: 8px !important;
}

.lq-map--cartoon .leaflet-control-zoom {
	border: none !important;
	box-shadow: none !important;
	margin-right: max(8px, var(--lq-safe-right)) !important;
	/* Clear ad banner (72px) + gap + safe area */
	margin-bottom: calc(72px + 20px + max(12px, var(--lq-safe-bottom))) !important;
}

.lq-map--cartoon .leaflet-control-attribution {
	background: rgba(255, 248, 231, 0.88) !important;
	border-radius: 10px 0 0 0 !important;
	color: var(--lq-ink) !important;
	padding: 2px 8px !important;
}

.lq-map--cartoon .leaflet-control-attribution a {
	color: #e91e63 !important;
}

.lq-catch-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(72px + env(safe-area-inset-bottom, 0));
	z-index: 520;
	display: flex;
	justify-content: center;
	pointer-events: none;
}

.lq-catch-bar .lq-btn {
	pointer-events: auto;
}

.lq-ad-banner {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: calc(12px + env(safe-area-inset-bottom, 0));
	z-index: 510;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--lq-shadow);
	max-height: 72px;
	background: #fff;
}

.lq-ad-banner__slide {
	animation: lq-ad-fade 0.35s ease;
}

.lq-ad-banner img {
	display: block;
	width: 100%;
	height: 72px;
	object-fit: cover;
}

.lq-ad-banner__info {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	height: 72px;
	padding: 10px 12px;
	border: 0;
	background: linear-gradient(135deg, #1a237e, #3949ab);
	color: #fff;
	text-align: left;
	text-decoration: none;
	font: inherit;
}

.lq-ad-banner--info {
	background: linear-gradient(135deg, #4527a0, #7e57c2);
}

.lq-ad-banner--goal {
	background: linear-gradient(135deg, #0d47a1, #1976d2);
}

.lq-ad-banner__info-img {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	object-fit: cover;
	flex: 0 0 auto;
}

.lq-ad-banner__info-icon {
	flex: 0 0 auto;
	font-size: 1.5rem;
	line-height: 1;
}

.lq-ad-banner__info-text {
	flex: 1 1 auto;
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 1.22;
}

.lq-ad-banner__info-cta {
	flex: 0 0 auto;
	font-size: 0.72rem;
	font-weight: 900;
	white-space: nowrap;
	opacity: 0.9;
}

.lq-coach-card {
	position: absolute;
	left: 12px;
	right: 12px;
	top: calc(86px + env(safe-area-inset-top, 0));
	z-index: 540;
	pointer-events: none;
}

.lq-coach-card__body {
	pointer-events: auto;
	background: rgba(255, 248, 231, 0.97);
	color: var(--lq-ink);
	border-radius: 20px;
	padding: 16px;
	box-shadow: var(--lq-shadow);
}

.lq-coach-card__title {
	margin: 0 0 8px;
	font-family: var(--lq-font-display);
	font-size: 1.1rem;
	font-weight: 800;
}

.lq-coach-card__text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.4;
}

.lq-coach-card__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 14px;
}

.lq-icon-btn--promos {
	gap: 6px;
}

.lq-icon-btn__label {
	display: none;
	font-size: 0.78rem;
	font-weight: 800;
}

.lq-promos-intro {
	margin: -6px 0 14px;
	font-size: 0.9rem;
	font-weight: 700;
	color: rgba(26, 35, 126, 0.82);
}

@media (min-width: 360px) {
	.lq-icon-btn__label {
		display: inline;
	}
}

@media (max-width: 480px) {
	.lq-coach-card {
		top: calc(78px + env(safe-area-inset-top, 0));
	}

	.lq-coach-card__body {
		padding: 14px;
		border-radius: 18px;
	}

	.lq-coach-card__actions .lq-btn {
		flex: 1 1 100%;
	}
}

@keyframes lq-ad-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.lq-toast {
	position: fixed;
	top: 45%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 100001;
	background: rgba(26, 35, 126, 0.92);
	color: #fff;
	font-family: var(--lq-font-display);
	font-size: 1.35rem;
	font-weight: 700;
	padding: 16px 28px;
	border-radius: 18px;
	box-shadow: var(--lq-shadow);
	pointer-events: none;
	animation: lq-pop 0.35s ease;
}

.lq-btn:active {
	transform: scale(0.96);
}

.lq-btn--primary {
	background: var(--lq-btn);
	color: var(--lq-btn-text);
}

.lq-btn--ghost {
	background: rgba(255, 255, 255, 0.85);
	color: var(--lq-ink);
	margin-top: 12px;
	box-shadow: none;
}

.lq-btn--xl {
	font-size: 1.35rem;
	padding: 18px 36px;
	min-height: 64px;
}

.lq-btn--catch {
	background: var(--lq-success);
	color: #fff;
	width: min(90vw, 320px);
	animation: lq-pulse 1.1s ease-in-out infinite;
}

.lq-overlay {
	position: absolute;
	inset: 0;
	z-index: 800;
	background: rgba(13, 27, 42, 0.72);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	pointer-events: auto;
	cursor: pointer;
}

.lq-overlay.is-hidden {
	display: none !important;
	pointer-events: none !important;
}

.lq-overlay .lq-modal {
	cursor: default;
	pointer-events: auto;
	position: relative;
	z-index: 1;
}

.lq-modal {
	background: var(--lq-card);
	border-radius: 28px;
	padding: 24px 20px;
	width: min(100%, 360px);
	max-width: 100%;
	max-height: 90vh;
	overflow-x: hidden;
	overflow-y: auto;
	text-align: center;
	box-shadow: var(--lq-shadow);
	box-sizing: border-box;
}

.lq-modal-title {
	font-family: var(--lq-font-display);
	font-size: 1.6rem;
	margin: 0 0 8px;
}

.lq-modal-sub {
	margin: 0 0 16px;
	font-weight: 700;
	font-size: 1.05rem;
}

.lq-coupon-image img,
.lq-ad-creative img {
	max-width: 100%;
	border-radius: 16px;
	margin-bottom: 12px;
}

.lq-qr {
	display: inline-flex;
	justify-content: center;
	margin: 8px auto 20px;
	padding: 12px;
	background: #fff;
	border-radius: 16px;
}

.lq-wallet-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 18px;
	text-align: left;
}

.lq-wallet-item {
	appearance: none;
	border: none;
	background: #fff;
	border-radius: 16px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	font-family: inherit;
	text-align: left;
}

.lq-wallet-item span {
	opacity: 0.75;
	font-size: 0.9rem;
}

.lq-btn--block {
	width: 100%;
	margin-top: 8px;
	margin-bottom: 4px;
	box-shadow: none;
}

.lq-screen--tutorial {
	justify-content: center;
	padding: max(16px, env(safe-area-inset-top, 0)) 16px max(20px, env(safe-area-inset-bottom, 0));
}

.lq-tutorial-card {
	width: min(100%, 400px);
	background: rgba(255, 248, 231, 0.96);
	border-radius: 28px;
	padding: 28px 22px 20px;
	box-shadow: var(--lq-shadow);
	text-align: center;
	color: var(--lq-ink);
}

.lq-tutorial-icon {
	font-size: 3.4rem;
	line-height: 1;
	margin-bottom: 12px;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.lq-tutorial-title {
	font-family: var(--lq-font-display);
	font-size: 1.7rem;
	margin: 0 0 10px;
	color: var(--lq-ink);
}

.lq-tutorial-body {
	margin: 0 0 18px;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.45;
	opacity: 0.9;
}

[data-role="tutorial-action"] {
	margin: -6px 0 14px;
	font-weight: 800;
}

.lq-tutorial-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 18px;
}

.lq-tutorial-dot {
	appearance: none;
	border: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(26, 35, 126, 0.22);
	padding: 0;
	cursor: pointer;
}

.lq-tutorial-dot.is-active {
	background: var(--lq-ink);
	transform: scale(1.2);
}

.lq-screen--tutorial .lq-btn--ghost {
	margin-top: 4px;
}

.lq-screen--boot .lq-btn--ghost {
	margin-top: 14px;
}

.lq-modal--promos {
	text-align: left;
}

.lq-modal--promos .lq-modal-title,
.lq-modal--promos .lq-promos-park {
	text-align: center;
}

.lq-screen--loading {
	background:
		radial-gradient(ellipse at 20% 10%, rgba(255, 213, 79, 0.22), transparent 50%),
		radial-gradient(ellipse at 90% 20%, rgba(79, 195, 247, 0.2), transparent 45%),
		linear-gradient(160deg, var(--lq-bg-1), var(--lq-bg-2) 45%, var(--lq-bg-3));
}

.lq-loading-card {
	width: min(100%, 360px);
	padding: 32px 24px;
	border-radius: var(--lq-radius);
	background: rgba(255, 255, 255, 0.95);
	box-shadow: var(--lq-shadow);
	text-align: center;
}

.lq-loading-spinner {
	width: 58px;
	height: 58px;
	margin: 12px auto 18px;
	border-radius: 50%;
	border: 5px solid rgba(26, 35, 126, 0.14);
	border-top-color: var(--lq-btn);
	animation: lq-spin 0.9s linear infinite;
}

.lq-loading-title {
	margin: 0 0 10px;
	font-family: var(--lq-font-display);
	font-size: clamp(1.3rem, 5vw, 1.7rem);
	color: var(--lq-ink);
}

.lq-loading-text {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	color: rgba(26, 35, 126, 0.9);
}

@keyframes lq-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.lq-promos-park {
	font-size: 1rem !important;
	color: var(--lq-ink);
	opacity: 0.75;
	margin-bottom: 12px !important;
}

.lq-promos-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 12px;
	max-height: min(50dvh, 360px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.lq-promo-card {
	appearance: none;
	border: 3px solid rgba(26, 35, 126, 0.08);
	background: #fff;
	border-radius: 18px;
	padding: 12px;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	width: 100%;
	box-sizing: border-box;
}

.lq-promo-card.is-unlocked {
	border-color: #69f0ae;
	background: #f1f8e9;
}

.lq-promo-card__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.lq-promo-card__img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 12px;
	flex-shrink: 0;
}

.lq-promo-card__emoji {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.8rem;
	background: #fff8e7;
	border-radius: 12px;
	flex-shrink: 0;
}

.lq-promo-card__text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.lq-promo-card__text strong {
	font-family: var(--lq-font-display);
	font-size: 1.05rem;
	color: var(--lq-ink);
}

.lq-promo-card__attr {
	font-size: 0.85rem;
	opacity: 0.7;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lq-promo-card__badge {
	font-size: 1.2rem;
	flex-shrink: 0;
}

.lq-promo-card__req {
	font-size: 0.9rem;
	font-weight: 700;
	margin-bottom: 6px;
	color: var(--lq-ink);
}

.lq-promo-card__bar {
	height: 8px;
	border-radius: 999px;
	background: rgba(26, 35, 126, 0.12);
	overflow: hidden;
}

.lq-promo-card__bar > span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #ff8a65, #ffd54f);
	border-radius: 999px;
}

.lq-promo-card.is-unlocked .lq-promo-card__bar > span {
	background: linear-gradient(90deg, #69f0ae, #b2ff59);
}

.lq-empty--ink {
	color: var(--lq-ink) !important;
	background: rgba(26, 35, 126, 0.08) !important;
}


.lq-empty {
	text-align: center;
	font-weight: 700;
	color: #fff;
	background: rgba(26, 35, 126, 0.35);
	padding: 16px;
	border-radius: 16px;
}

.lq-player-marker {
	background: transparent !important;
	border: none !important;
}

.lq-player-avatar {
	width: var(--lq-player-size, 56px);
	height: var(--lq-player-size, 56px);
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(41, 121, 255, 0.35);
	background: transparent;
	box-sizing: border-box;
}

.lq-player-avatar img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
	background: transparent;
}

.lq-spawn-marker,
.leaflet-marker-icon.lq-spawn-marker,
.leaflet-div-icon.lq-spawn-marker {
	background: transparent !important;
	border: none !important;
	overflow: visible !important;
}

.lq-spawn-appear .lq-spawn-pin {
	animation: lq-spawn-in 0.45s ease;
}

.lq-spawn-appear .lq-spawn-sprite {
	animation: lq-spawn-sprite-in 0.45s ease;
}

@keyframes lq-spawn-in {
	from {
		opacity: 0;
		transform: rotate(-45deg) scale(0.2);
	}
	to {
		opacity: 1;
		transform: rotate(-45deg) scale(1);
	}
}

@keyframes lq-spawn-sprite-in {
	from {
		opacity: 0;
		transform: scale(0.2);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}


.lq-overlay--catch {
	background: transparent;
	z-index: 900;
	pointer-events: none !important;
	cursor: default;
}

.lq-overlay--catch.is-playing.lq-overlay--battle {
	pointer-events: auto !important;
}

.lq-catch-stage {
	display: flex;
	align-items: stretch;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.lq-ca-battle {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	font-family: var(--lq-font-display);
	color: #1a237e;
}

.lq-ca-battlefield {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: visible;
	padding: 8px 12px 0;
	box-sizing: border-box;
	background:
		linear-gradient(180deg, #81d4fa 0%, #81d4fa 42%, #5d8a66 42%, #5d8a66 48%, #c4a574 48%, #a1885f 100%);
}

.lq-ca-hud {
	position: absolute;
	z-index: 6;
	min-width: min(46vw, 200px);
	background: #fff8e7;
	border: 3px solid #1a237e;
	border-radius: 10px;
	padding: 8px 10px;
	box-shadow: 4px 4px 0 rgba(26, 35, 126, 0.25);
}

.lq-ca-hud--foe {
	top: max(10px, env(safe-area-inset-top, 0));
	left: max(10px, env(safe-area-inset-left, 0));
}

.lq-ca-hud--player {
	bottom: 12%;
	right: max(10px, env(safe-area-inset-right, 0));
}

.lq-ca-hud-name {
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	margin-bottom: 4px;
	text-transform: uppercase;
}

.lq-ca-hud-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	font-weight: 700;
}

.lq-ca-hud-tool,
.lq-ca-hud-chance {
	margin-top: 6px;
	font-size: 0.72rem;
	font-weight: 700;
	color: #3949ab;
	line-height: 1.2;
}

.lq-ca-hud-chance {
	color: #00897b;
}

.lq-ca-hp {
	flex: 1;
	height: 10px;
	border-radius: 999px;
	background: #cfd8dc;
	border: 2px solid #1a237e;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.lq-ca-hp.is-hit {
	animation: lq-ca-hp-hit 0.35s ease;
}

.lq-ca-hp > span {
	display: block;
	height: 100%;
	background: linear-gradient(180deg, #b2ff59, #69f0ae);
	transition: width 0.35s ease;
}

@keyframes lq-ca-hp-hit {
	0%,
	100% {
		box-shadow: none;
	}
	40% {
		box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.55);
	}
}

.lq-ca-slot {
	position: absolute;
	z-index: 2;
	text-align: center;
	box-sizing: border-box;
	overflow: visible;
	transition: transform 0.45s ease, opacity 0.45s ease;
}

.lq-ca-slot--foe {
	top: 12%;
	right: max(20px, 12%);
	left: auto;
	width: min(34vw, 140px);
	max-width: calc(42% - 8px);
}

.lq-ca-slot--player {
	bottom: 16%;
	left: max(12px, 4%);
	width: min(44vw, 182px);
	max-width: calc(55% - 8px);
}

.lq-ca-platform {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 88%;
	height: 28px;
	margin-left: -44%;
	border-radius: 50%;
	background: radial-gradient(ellipse at center, #7cb342 0%, #558b2f 70%, transparent 75%);
	opacity: 0.9;
	z-index: 0;
}

.lq-ca-sprite {
	position: relative;
	z-index: 1;
	padding-bottom: 18px;
	width: 100%;
	box-sizing: border-box;
	overflow: visible;
}

.lq-ca-target-emoji {
	font-size: 3.4rem;
	line-height: 1;
	display: block;
	filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

.lq-ca-slot--foe .lq-ca-prey-img,
.lq-ca-slot--foe img {
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: min(26vh, 130px) !important;
	object-fit: contain !important;
	object-position: center !important;
	display: block;
	margin: 0 auto;
	filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
}

.lq-ca-player-img,
.lq-ca-slot--player img {
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: min(29vh, 143px) !important;
	object-fit: contain !important;
	object-position: center !important;
	display: block;
	margin: 0 auto;
	background: transparent !important;
	filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

.lq-ca-player-fallback {
	font-size: 3.2rem;
	line-height: 1;
	display: block;
}

.lq-overlay--catch[data-phase="intro"] .lq-ca-slot--foe,
.lq-overlay--catch[data-phase="menu"] .lq-ca-slot--foe,
.lq-overlay--catch[data-phase="aim"] .lq-ca-slot--foe {
	animation: lq-ca-idle-bob 1.6s ease-in-out infinite;
}

.lq-overlay--fierce[data-phase="intro"] .lq-ca-battlefield {
	animation: lq-ca-fierce-intro 0.7s ease-out;
}

.lq-overlay--fierce[data-phase="intro"] .lq-ca-slot--foe {
	animation: lq-ca-fierce-bob 0.9s ease-in-out infinite;
}

@keyframes lq-ca-fierce-intro {
	0% {
		transform: scale(1.04);
	}
	100% {
		transform: scale(1);
	}
}

@keyframes lq-ca-fierce-bob {
	0%,
	100% {
		transform: translateY(0) scale(1.05);
	}
	50% {
		transform: translateY(-10px) scale(1.08);
	}
}

.lq-ca-slot--foe.is-hit {
	animation: lq-ca-foe-hit 0.28s ease;
}

@keyframes lq-ca-foe-hit {
	0%,
	100% {
		transform: translateX(0);
	}
	30% {
		transform: translateX(-6px);
	}
	60% {
		transform: translateX(5px);
	}
}

.lq-ca-aim {
	position: absolute;
	left: 50%;
	top: 42%;
	width: 120%;
	height: 120%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	z-index: 3;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.lq-overlay--catch[data-phase="aim"] .lq-ca-aim {
	opacity: 1;
}

.lq-ca-aim-ring {
	position: absolute;
	inset: 8%;
	border: 3px solid rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	box-shadow: 0 0 0 2px rgba(26, 35, 126, 0.35);
	animation: lq-ca-aim-pulse 1.1s ease-in-out infinite;
}

.lq-ca-aim-sweet {
	position: absolute;
	inset: 28%;
	border: 3px solid #ffd54f;
	border-radius: 50%;
	opacity: 0.95;
}

@keyframes lq-ca-aim-pulse {
	0%,
	100% {
		transform: scale(1);
		opacity: 0.85;
	}
	50% {
		transform: scale(1.08);
		opacity: 1;
	}
}

.lq-ca-slot--foe.is-sucked {
	transform: scale(0.05);
	opacity: 0;
}

.lq-ca-slot--foe.is-escape {
	animation: lq-ca-angry 0.9s ease;
}

.lq-ca-bubble {
	position: absolute;
	left: 18%;
	bottom: 28%;
	width: 72px;
	height: 72px;
	z-index: 5;
	transform: translate(0, 0) scale(0.85);
	opacity: 0;
	pointer-events: none;
}

.lq-ca-bubble-inner {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(179, 229, 252, 0.75) 38%, rgba(41, 182, 246, 0.55) 72%, rgba(2, 136, 209, 0.65));
	border: 3px solid rgba(255, 255, 255, 0.9);
	box-shadow:
		0 0 22px rgba(79, 195, 247, 0.85),
		inset 0 0 18px rgba(255, 255, 255, 0.4);
}

.lq-ca-bubble-shine {
	position: absolute;
	top: 12%;
	left: 16%;
	width: 30%;
	height: 18%;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.8);
	z-index: 2;
}

.lq-ca-bubble-prey {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	opacity: 0;
	transform: scale(0.15);
	z-index: 2;
}

.lq-ca-bubble-prey img,
.lq-ca-bubble-prey .lq-ca-prey-img {
	width: 36px;
	height: 36px;
	object-fit: contain;
	filter: none;
}

.lq-ca-flash {
	position: absolute;
	inset: 0;
	z-index: 8;
	pointer-events: none;
	opacity: 0;
	background: radial-gradient(circle at 72% 28%, #fff 0%, rgba(255, 255, 255, 0.55) 28%, transparent 65%);
}

.lq-ca-flash.is-on {
	animation: lq-ca-flash-burst 0.28s ease-out;
}

.lq-ca-flash.is-success-flash {
	background: radial-gradient(circle at 72% 32%, #fff 0%, #ffd54f 25%, transparent 65%);
	animation: lq-ca-flash-burst 0.55s ease-out;
}

.lq-ca-stars {
	position: absolute;
	left: 72%;
	top: 28%;
	width: 0;
	height: 0;
	z-index: 7;
	pointer-events: none;
	opacity: 0;
}

.lq-ca-stars span {
	position: absolute;
	width: 10px;
	height: 10px;
	background: #ffd54f;
	clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.lq-overlay--catch[data-phase="success"] .lq-ca-stars {
	opacity: 1;
}

.lq-overlay--catch[data-phase="success"] .lq-ca-stars span:nth-child(1) {
	animation: lq-ca-star 0.9s ease-out forwards;
	--sx: -70px;
	--sy: -60px;
}
.lq-overlay--catch[data-phase="success"] .lq-ca-stars span:nth-child(2) {
	animation: lq-ca-star 0.9s ease-out 0.05s forwards;
	--sx: 75px;
	--sy: -55px;
}
.lq-overlay--catch[data-phase="success"] .lq-ca-stars span:nth-child(3) {
	animation: lq-ca-star 0.95s ease-out 0.08s forwards;
	--sx: -90px;
	--sy: 10px;
}
.lq-overlay--catch[data-phase="success"] .lq-ca-stars span:nth-child(4) {
	animation: lq-ca-star 0.95s ease-out 0.1s forwards;
	--sx: 95px;
	--sy: 15px;
}
.lq-overlay--catch[data-phase="success"] .lq-ca-stars span:nth-child(5) {
	animation: lq-ca-star 1s ease-out 0.12s forwards;
	--sx: -40px;
	--sy: 70px;
}
.lq-overlay--catch[data-phase="success"] .lq-ca-stars span:nth-child(6) {
	animation: lq-ca-star 1s ease-out 0.15s forwards;
	--sx: 45px;
	--sy: 75px;
}

.lq-ca-dialog {
	position: relative;
	z-index: 10;
	flex-shrink: 0;
	background: #fff8e7;
	border-top: 4px solid #1a237e;
	padding: 14px max(14px, env(safe-area-inset-right, 0)) max(16px, env(safe-area-inset-bottom, 0)) max(14px, env(safe-area-inset-left, 0));
	min-height: 120px;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

.lq-ca-dialog-text {
	margin: 0 0 12px;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.35;
	min-height: 2.6em;
}

.lq-ca-menu {
	display: none;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.lq-ca-menu.is-visible {
	display: grid;
}

.lq-ca-menu.is-visible:has(.lq-ca-menu-btn--bag) .lq-ca-menu-btn--flee {
	grid-column: 1 / -1;
}

.lq-ca-tools {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 4px;
}

.lq-ca-tools.is-hidden {
	display: none;
}

.lq-ca-aim-meter {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin-bottom: 4px;
}

.lq-ca-aim-meter.is-hidden {
	display: none;
}

.lq-ca-aim-track {
	position: relative;
	display: flex;
	height: 28px;
	border-radius: 999px;
	overflow: hidden;
	border: 3px solid #1a237e;
	background: #eceff1;
}

.lq-ca-aim-zone {
	flex: 1;
	height: 100%;
}

.lq-ca-aim-zone--weak {
	background: #ff8a80;
	flex: 0.9;
}

.lq-ca-aim-zone--good {
	background: #ffd54f;
	flex: 1;
}

.lq-ca-aim-zone--perfect {
	background: #69f0ae;
	flex: 1.2;
}

.lq-ca-aim-cursor {
	position: absolute;
	top: -3px;
	bottom: -3px;
	width: 4px;
	margin-left: -2px;
	background: #1a237e;
	border-radius: 2px;
	box-shadow: 0 0 0 2px #fff;
	pointer-events: none;
	z-index: 2;
}

.lq-ca-menu-btn {
	appearance: none;
	border: 3px solid #1a237e;
	border-radius: 12px;
	padding: 12px 10px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 800;
	cursor: pointer;
	min-height: 52px;
	box-shadow: 0 3px 0 #1a237e;
}

.lq-ca-menu-btn--throw {
	background: #69f0ae;
	color: #1a237e;
}

.lq-ca-menu-btn--flee {
	background: #fff;
	color: #1a237e;
}

.lq-ca-menu-btn--bag,
.lq-ca-menu-btn--tool {
	background: #bbdefb;
	color: #1a237e;
}

.lq-ca-menu-btn--back {
	grid-column: 1 / -1;
	background: #fff;
	color: #1a237e;
}

.lq-ca-menu-btn:active {
	transform: translateY(2px);
	box-shadow: 0 1px 0 #1a237e;
}

.lq-overlay--catch[data-phase="throw"] .lq-ca-bubble {
	opacity: 1;
	animation: lq-ca-throw 0.85s cubic-bezier(0.15, 0.85, 0.25, 1) forwards;
}

.lq-overlay--catch[data-phase="throw"] .lq-ca-battlefield[data-throw="arc"] .lq-ca-bubble {
	animation-name: lq-ca-throw-arc;
	animation-duration: 0.95s;
}

.lq-overlay--catch[data-phase="throw"] .lq-ca-battlefield[data-throw="hard"] .lq-ca-bubble {
	animation-name: lq-ca-throw-hard;
	animation-duration: 0.75s;
}

.lq-overlay--catch[data-phase="throw"] .lq-ca-battlefield[data-throw="fast"] .lq-ca-bubble {
	animation-name: lq-ca-throw;
	animation-duration: 0.7s;
}

.lq-overlay--catch[data-phase="impact"] .lq-ca-bubble,
.lq-overlay--catch[data-phase="suck"] .lq-ca-bubble {
	opacity: 1;
	left: auto;
	right: 18%;
	top: 22%;
	bottom: auto;
	transform: scale(1.2);
}

.lq-overlay--catch[data-phase="impact"] .lq-ca-bubble-inner {
	animation: lq-ca-open 0.28s ease-out;
}

.lq-overlay--catch[data-phase="suck"] .lq-ca-bubble-prey {
	opacity: 1;
	transform: scale(1);
	transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lq-overlay--catch[data-phase="sealed"] .lq-ca-bubble,
.lq-overlay--catch[data-phase="pause"] .lq-ca-bubble {
	opacity: 1;
	left: auto;
	right: 22%;
	top: 30%;
	bottom: auto;
	transform: scale(1);
	transition: top 0.35s ease, right 0.35s ease, transform 0.35s ease;
}

.lq-overlay--catch[data-phase="sealed"] .lq-ca-bubble-prey,
.lq-overlay--catch[data-phase="pause"] .lq-ca-bubble-prey,
.lq-overlay--catch[data-phase="shake"] .lq-ca-bubble-prey,
.lq-overlay--catch[data-phase="success"] .lq-ca-bubble-prey {
	opacity: 1;
	transform: scale(1);
}

.lq-overlay--catch[data-phase="shake"] .lq-ca-bubble {
	opacity: 1;
	left: auto;
	right: 22%;
	top: 30%;
	bottom: auto;
	animation: lq-ca-shake 0.5s ease-in-out;
}

.lq-overlay--catch[data-phase="success"] .lq-ca-bubble {
	opacity: 1;
	left: auto;
	right: 22%;
	top: 30%;
	bottom: auto;
	animation: lq-ca-success-settle 0.85s ease forwards;
}

.lq-overlay--catch[data-phase="success"] .lq-ca-bubble-inner {
	background: radial-gradient(circle at 30% 25%, #fff, #b2ff59 42%, #69f0ae 78%);
	box-shadow: 0 0 32px rgba(105, 240, 174, 0.95), inset 0 0 16px rgba(255, 255, 255, 0.65);
}

.lq-overlay--catch[data-phase="fail"] .lq-ca-bubble {
	opacity: 1;
	left: auto;
	right: 22%;
	top: 30%;
	bottom: auto;
	animation: lq-ca-burst 0.55s ease forwards;
}

.lq-overlay--catch[data-phase="fail"] .lq-ca-bubble-prey {
	opacity: 0;
}

@keyframes lq-ca-idle-bob {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}

@keyframes lq-ca-throw {
	0% {
		opacity: 0.9;
		left: 18%;
		bottom: 28%;
		right: auto;
		top: auto;
		transform: scale(0.7) rotate(-30deg);
	}
	40% {
		opacity: 1;
		left: 40%;
		bottom: 48%;
		transform: scale(1) rotate(12deg);
	}
	100% {
		opacity: 1;
		left: auto;
		right: 18%;
		top: 22%;
		bottom: auto;
		transform: scale(1.18) rotate(0deg);
	}
}

@keyframes lq-ca-throw-arc {
	0% {
		opacity: 0.9;
		left: 18%;
		bottom: 28%;
		right: auto;
		top: auto;
		transform: scale(0.65) rotate(-40deg);
	}
	50% {
		opacity: 1;
		left: 45%;
		bottom: 62%;
		transform: scale(1.05) rotate(8deg);
	}
	100% {
		opacity: 1;
		left: auto;
		right: 18%;
		top: 22%;
		bottom: auto;
		transform: scale(1.2) rotate(0deg);
	}
}

@keyframes lq-ca-throw-hard {
	0% {
		opacity: 1;
		left: 18%;
		bottom: 28%;
		right: auto;
		top: auto;
		transform: scale(0.55) rotate(-20deg);
	}
	70% {
		opacity: 1;
		left: 55%;
		bottom: 40%;
		transform: scale(1.25) rotate(18deg);
	}
	100% {
		opacity: 1;
		left: auto;
		right: 18%;
		top: 22%;
		bottom: auto;
		transform: scale(1.3) rotate(0deg);
	}
}

@keyframes lq-ca-open {
	0% {
		transform: scale(1);
	}
	40% {
		transform: scale(1.35);
	}
	100% {
		transform: scale(1.15);
	}
}

@keyframes lq-ca-shake {
	0%,
	100% {
		transform: translate(0, 0) rotate(0deg);
	}
	20% {
		transform: translate(-18px, -6px) rotate(-14deg);
	}
	40% {
		transform: translate(18px, 4px) rotate(14deg);
	}
	60% {
		transform: translate(-12px, -4px) rotate(-8deg);
	}
	80% {
		transform: translate(12px, 2px) rotate(8deg);
	}
}

@keyframes lq-ca-success-settle {
	0% {
		transform: scale(1.35);
	}
	55% {
		transform: scale(0.92);
	}
	100% {
		transform: scale(1.05);
	}
}

@keyframes lq-ca-burst {
	0% {
		transform: scale(1);
		opacity: 1;
	}
	35% {
		transform: scale(1.45);
		opacity: 1;
	}
	100% {
		transform: scale(0.05);
		opacity: 0;
	}
}

@keyframes lq-ca-flash-burst {
	0% {
		opacity: 0.95;
	}
	100% {
		opacity: 0;
	}
}

@keyframes lq-ca-star {
	0% {
		transform: translate(0, 0) scale(0.2) rotate(0deg);
		opacity: 1;
	}
	100% {
		transform: translate(var(--sx), var(--sy)) scale(1.2) rotate(160deg);
		opacity: 0;
	}
}

@keyframes lq-ca-angry {
	0%,
	100% {
		transform: rotate(0);
	}
	20% {
		transform: rotate(-12deg) scale(1.12);
	}
	40% {
		transform: rotate(12deg) scale(1.12);
	}
	60% {
		transform: rotate(-8deg);
	}
	80% {
		transform: rotate(8deg);
	}
}

.lq-player-level {
	flex-shrink: 0;
	min-width: 72px;
	background: rgba(26, 35, 126, 0.9);
	color: #fff;
	border-radius: 14px;
	padding: 6px 10px;
	box-shadow: var(--lq-shadow);
	font-family: var(--lq-font-display);
	font-size: 0.75rem;
	font-weight: 700;
	text-align: center;
}

.lq-player-level strong {
	display: block;
	font-size: 0.95rem;
	color: #ffd54f;
}

.lq-xp-bar {
	margin-top: 4px;
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.25);
	overflow: hidden;
}

.lq-xp-bar > span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #69f0ae, #b2ff59);
	border-radius: 999px;
}

.lq-spawn-lv {
	position: absolute;
	right: -6px;
	top: -8px;
	transform: rotate(45deg);
	background: #1a237e;
	color: #fff;
	font-size: 0.6rem;
	font-weight: 800;
	font-family: var(--lq-font-display);
	padding: 1px 5px;
	border-radius: 6px;
	white-space: nowrap;
	z-index: 2;
	line-height: 1.2;
}

.lq-spawn-pin {
	position: relative;
}

.lq-count-best {
	font-size: 0.65rem;
	opacity: 0.75;
	margin-left: 2px;
}

.lq-spawn-pin {
	width: var(--lq-spawn-box, 48px);
	height: var(--lq-spawn-box, 48px);
	border-radius: 50% 50% 50% 6px;
	transform: rotate(-45deg);
	background: var(--lq-spawn-color, #ef5350);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
	border: 3px solid #fff;
	box-sizing: border-box;
}

.lq-spawn-emoji {
	transform: rotate(45deg);
	font-size: 1.4rem;
	line-height: 1;
}

.lq-spawn-pin--img {
	background: transparent;
	border: none;
	box-shadow: none;
	border-radius: 0;
	transform: none;
	width: var(--lq-spawn-box, 56px);
	height: var(--lq-spawn-box, 56px);
	overflow: visible;
}

.lq-spawn-pin--img img {
	transform: none;
	width: var(--lq-spawn-sprite, 48px) !important;
	height: var(--lq-spawn-sprite, 48px) !important;
	max-width: var(--lq-spawn-sprite, 48px) !important;
	max-height: var(--lq-spawn-sprite, 48px) !important;
	object-fit: contain;
	border-radius: 0;
	background: transparent !important;
	display: block;
}

.lq-spawn-sprite {
	position: relative;
	width: var(--lq-spawn-box, 56px);
	height: var(--lq-spawn-box, 56px);
	margin: 2px auto 0;
	display: block;
	overflow: visible;
	pointer-events: auto;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
	box-sizing: border-box;
}

/* Beat Leaflet's marker-pane img { width:auto; max-width:none !important } */
.leaflet-container .leaflet-marker-pane .lq-spawn-marker img,
.leaflet-container .leaflet-marker-pane .lq-spawn-marker .lq-spawn-sprite-img,
.lq-spawn-sprite-img,
.leaflet-marker-icon.lq-spawn-marker img,
.lq-spawn-marker img {
	width: var(--lq-spawn-sprite, 48px) !important;
	height: var(--lq-spawn-sprite, 48px) !important;
	max-width: var(--lq-spawn-sprite, 48px) !important;
	max-height: var(--lq-spawn-sprite, 48px) !important;
	object-fit: contain !important;
	object-position: center !important;
	background: transparent !important;
	display: block !important;
	border: none !important;
	margin: 0 auto !important;
	padding: 0 !important;
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
}

.lq-spawn-sprite .lq-spawn-lv {
	transform: none;
	right: -2px;
	top: -4px;
	font-size: 0.55rem;
	padding: 1px 4px;
}

.lq-spawn-pin--img .lq-spawn-lv {
	transform: none;
	right: -4px;
	top: -6px;
}

.lq-spawn-marker.is-near .lq-spawn-sprite,
.lq-spawn-marker.is-near .lq-spawn-pin--img {
	/* No infinite bounce — was GPU-heavy with many markers. */
	transform: scale(1.06);
}

.lq-spawn-marker.is-near .lq-spawn-pin:not(.lq-spawn-pin--img) {
	transform: scale(1.06);
}

@keyframes lq-bounce-img {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

@keyframes lq-pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

@keyframes lq-bounce {
	0%,
	100% {
		transform: rotate(-45deg) translateY(0);
	}
	50% {
		transform: rotate(-45deg) translateY(-10px);
	}
}

@keyframes lq-pop {
	from {
		opacity: 0;
		transform: translate(-50%, -40%) scale(0.85);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

.leaflet-control-attribution {
	font-size: 10px !important;
	max-width: 55vw;
}

/* â€”â€”â€” Responsive â€”â€”â€” */

.lq-screen--boot,
.lq-screen--parks,
.lq-screen--blocked {
	padding-top: max(24px, env(safe-area-inset-top, 0));
	padding-left: max(12px, env(safe-area-inset-left, 0));
	padding-right: max(12px, env(safe-area-inset-right, 0));
	padding-bottom: max(24px, env(safe-area-inset-bottom, 0));
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
	box-sizing: border-box;
}

.lq-block-card {
	width: min(100%, 360px);
	box-sizing: border-box;
}

.lq-btn {
	max-width: 100%;
}

.lq-btn--xl {
	width: min(100%, 320px);
}

.lq-overlay {
	padding: max(12px, env(safe-area-inset-top, 0)) max(12px, env(safe-area-inset-right, 0)) max(12px, env(safe-area-inset-bottom, 0)) max(12px, env(safe-area-inset-left, 0));
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.lq-modal {
	width: min(100%, 360px);
	max-height: min(90dvh, 90vh);
	box-sizing: border-box;
}

.lq-modal .lq-btn--xl {
	width: 100%;
}

.lq-qr canvas,
.lq-qr img {
	max-width: min(180px, 55vw) !important;
	height: auto !important;
}

.lq-toast {
	max-width: min(90vw, 320px);
	font-size: clamp(1rem, 4.5vw, 1.35rem);
	padding: 12px 18px;
	text-align: center;
	box-sizing: border-box;
}

.lq-ad-banner {
	left: max(10px, env(safe-area-inset-left, 0));
	right: max(10px, env(safe-area-inset-right, 0));
	bottom: max(10px, env(safe-area-inset-bottom, 0));
}

.lq-overlay--catch {
	padding: 0;
	overflow: hidden;
}

.lq-ca-dialog-text {
	font-size: clamp(1rem, 4vw, 1.2rem);
}


/* Phones (mobile-first) */
@media (max-width: 600px) {
	:root {
		--lq-spawn-sprite: 36px;
		--lq-spawn-box: 44px;
		--lq-player-size: 44px;
		--lq-hud-pad: 6px;
	}

	.lq-hud {
		gap: 5px;
		max-height: min(38vh, 220px);
		overflow-x: hidden;
	}

	.lq-hud-top .lq-player-level {
		max-width: min(100px, 28vw);
	}

	.lq-hud-actions .lq-icon-btn[data-action="open-tutorial"] {
		display: none;
	}

	.lq-hud-wallet__item {
		font-size: 0.68rem;
		padding: 2px 7px;
	}

	.lq-parks-content,
	.lq-park-grid,
	.lq-boot-content {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.lq-park-card {
		grid-template-columns: minmax(64px, 28%) minmax(0, 1fr);
	}

	.lq-player-level {
		min-width: 0;
		padding: 4px 8px;
		font-size: 0.68rem;
		border-radius: 12px;
	}

	.lq-player-level strong {
		font-size: 0.82rem;
	}

	.lq-xp-bar {
		height: 5px;
		margin-top: 3px;
	}

	.lq-icon-btn {
		width: 38px;
		height: 38px;
		font-size: 1.05rem;
		border-radius: 11px;
	}

	.lq-count-chip {
		padding: 3px 7px;
		font-size: 0.75rem;
	}

	.lq-count-icon {
		width: 18px !important;
		height: 18px !important;
		max-width: 18px !important;
		max-height: 18px !important;
	}

	.lq-progress {
		font-size: 0.72rem;
		padding: 5px 8px;
		border-radius: 10px;
	}

	.lq-spawn-pin {
		width: 40px;
		height: 40px;
	}

	.lq-spawn-emoji {
		font-size: 1.15rem;
	}

	.lq-map--cartoon .leaflet-control-zoom a {
		width: 34px !important;
		height: 34px !important;
		line-height: 34px !important;
	}

	.lq-ca-hud {
		min-width: min(52vw, 170px);
		padding: 6px 8px;
	}

	.lq-ca-hud-name {
		font-size: 0.9rem;
	}

	.lq-ca-slot--foe {
		width: min(32vw, 120px);
		right: max(14px, 8%);
	}

	.lq-ca-slot--player {
		width: min(39vw, 143px);
	}

	.lq-ca-slot--foe .lq-ca-prey-img,
	.lq-ca-slot--foe img {
		max-height: min(22vh, 100px) !important;
	}

	.lq-ca-player-img,
	.lq-ca-slot--player img {
		max-height: min(23vh, 114px) !important;
	}

	.lq-ca-dialog {
		min-height: 100px;
		padding: 10px max(10px, var(--lq-safe-right)) max(12px, var(--lq-safe-bottom)) max(10px, var(--lq-safe-left));
	}

	.lq-ca-menu-btn {
		min-height: 46px;
		font-size: 0.95rem;
	}

	.lq-modal {
		width: min(calc(100% - 20px), 420px);
		max-height: min(88dvh, 88vh);
		padding: 16px 14px;
	}
}

@media (max-width: 380px) {
	.lq-brand {
		font-size: clamp(1.9rem, 9vw, 2.6rem);
	}

	.lq-brand--sm {
		font-size: 1.25rem;
	}

	.lq-title {
		font-size: 1.35rem;
		margin-bottom: 14px;
	}

	.lq-lead {
		font-size: 1rem;
		padding: 12px 14px;
	}

	.lq-btn--xl {
		font-size: 1.15rem;
		padding: 14px 22px;
		min-height: 52px;
	}

	.lq-park-card {
		grid-template-columns: minmax(64px, 84px) minmax(0, 1fr);
		min-height: 80px;
	}

	.lq-park-name {
		font-size: 1.05rem;
		padding: 10px 12px;
	}

	.lq-icon-btn {
		width: 34px;
		height: 34px;
		font-size: 1rem;
	}

	.lq-ca-target-emoji {
		font-size: 3rem;
	}

	.lq-ca-bubble {
		width: 60px;
		height: 60px;
	}

	.lq-modal-title {
		font-size: 1.35rem;
	}

	.lq-block-card {
		padding: 20px 16px;
	}

	.lq-block-message {
		font-size: 1rem;
	}
}

@media (max-height: 520px) {
	:root {
		--lq-spawn-sprite: 32px;
		--lq-spawn-box: 40px;
		--lq-player-size: 40px;
		--lq-hud-pad: 4px;
	}

	.lq-screen--boot,
	.lq-screen--parks,
	.lq-screen--blocked {
		justify-content: flex-start;
		padding-top: max(12px, var(--lq-safe-top));
	}

	.lq-screen--boot {
		justify-content: flex-end;
	}

	.lq-brand--hero {
		font-size: clamp(2.2rem, 11vw, 2.8rem);
	}

	.lq-boot-kicker {
		margin-bottom: 10px;
		font-size: 0.95rem;
	}

	.lq-brand {
		font-size: 1.8rem;
		margin-bottom: 6px;
	}

	.lq-lead {
		font-size: 0.95rem;
		padding: 10px 12px;
		margin-bottom: 12px;
	}

	.lq-lead--boot {
		margin-bottom: 12px;
		padding: 10px 12px;
		font-size: 0.92rem;
	}

	.lq-hud {
		max-height: min(46vh, 160px);
		gap: 4px;
	}

	.lq-progress {
		font-size: 0.7rem;
		padding: 4px 8px;
	}

	.lq-ad-banner {
		max-height: 48px;
	}

	.lq-ad-banner img {
		height: 48px;
	}

	.lq-map--cartoon .leaflet-control-zoom {
		margin-bottom: calc(48px + 18px + max(10px, env(safe-area-inset-bottom, 0px))) !important;
	}

	.lq-modal {
		max-height: 85dvh;
		padding: 16px 14px;
		border-radius: 20px;
	}

	.lq-ca-slot--foe {
		top: 8%;
		width: min(30vw, 110px);
		right: max(10px, 6%);
	}

	.lq-ca-slot--player {
		bottom: 12%;
		width: min(36vw, 130px);
	}

	.lq-ca-slot--foe .lq-ca-prey-img,
	.lq-ca-slot--foe img {
		max-height: min(20vh, 90px) !important;
	}

	.lq-ca-player-img,
	.lq-ca-slot--player img {
		max-height: min(23vh, 104px) !important;
	}

	.lq-ca-bubble {
		width: 56px;
		height: 56px;
	}

	.lq-ca-menu-btn {
		min-height: 44px;
		font-size: 0.95rem;
		padding: 8px;
	}

	.lq-ca-dialog {
		min-height: 88px;
	}
}

@media (orientation: landscape) and (max-height: 500px) {
	.lq-park-grid {
		grid-template-columns: 1fr 1fr;
		width: min(100%, 640px);
		max-height: 62dvh;
	}

	.lq-hud {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px;
		max-height: none;
	}

	.lq-hud-top {
		width: auto;
		flex: 0 0 auto;
		gap: 6px;
	}

	.lq-hud-top .lq-player-level {
		margin: 0;
		max-width: 90px;
	}

	.lq-counts {
		flex: 1 1 auto;
		width: auto;
		justify-content: flex-end;
	}

	.lq-progress {
		flex: 1 1 100%;
		width: 100%;
	}

	.lq-ca-hud--player {
		bottom: 8%;
	}
}

@media (min-width: 600px) {
	:root {
		--lq-spawn-sprite: 44px;
		--lq-spawn-box: 52px;
		--lq-player-size: 52px;
		--lq-hud-pad: 10px;
	}

	.lq-hud {
		gap: 8px;
		max-height: min(32vh, 260px);
		padding-left: max(16px, var(--lq-safe-left));
		padding-right: max(16px, var(--lq-safe-right));
	}

	.lq-hud-top .lq-player-level {
		max-width: 160px;
	}

	.lq-icon-btn {
		width: 44px;
		height: 44px;
		font-size: 1.2rem;
		border-radius: 14px;
	}

	.lq-park-grid {
		grid-template-columns: 1fr 1fr;
		width: min(100%, 560px);
		max-height: 65vh;
	}

	.lq-counts {
		justify-content: center;
		flex-wrap: wrap;
		overflow-x: visible;
	}

	.lq-count-chip {
		font-size: 0.9rem;
		padding: 6px 11px;
	}

	.lq-count-icon {
		width: 22px !important;
		height: 22px !important;
		max-width: 22px !important;
		max-height: 22px !important;
	}

	.lq-progress {
		font-size: 0.9rem;
		padding: 8px 12px;
		max-width: 520px;
		margin: 0 auto;
	}

	.lq-map--cartoon .leaflet-control-zoom a {
		width: 42px !important;
		height: 42px !important;
		line-height: 42px !important;
	}

	.lq-modal {
		width: min(100%, 420px);
	}

	.lq-ca-slot--foe {
		width: min(28vw, 150px);
	}

	.lq-ca-slot--foe .lq-ca-prey-img,
	.lq-ca-slot--foe img {
		max-height: min(28vh, 140px) !important;
	}
}

@media (min-width: 900px) {
	:root {
		--lq-spawn-sprite: 48px;
		--lq-spawn-box: 56px;
		--lq-player-size: 56px;
	}

	.lq-park-grid {
		grid-template-columns: 1fr 1fr 1fr;
		width: min(100%, 780px);
	}

	.lq-icon-btn {
		width: 48px;
		height: 48px;
	}

	.lq-hud {
		max-width: 720px;
		left: 50%;
		right: auto;
		transform: translateX(-50%);
		width: 100%;
	}
}

/* Account modal */
.lq-modal--account .lq-field {
	display: block;
	width: 100%;
	margin: 0 0 12px;
	text-align: left;
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--lq-ink);
}

.lq-modal--account .lq-field input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: 4px;
	padding: 12px 14px;
	border: 3px solid #1a237e;
	border-radius: 14px;
	font-family: var(--lq-font-body);
	font-size: 1rem;
	background: #fff;
}

.lq-account-error {
	background: #ffebee;
	color: #c62828;
	border-radius: 12px;
	padding: 8px 12px;
	font-weight: 700;
	font-size: 0.9rem;
	margin: 0 0 12px;
}

.lq-account-name {
	font-family: var(--lq-font-display);
	font-size: 1.25rem;
	font-weight: 800;
	margin: 0 0 16px;
	text-align: center;
}

.lq-account-link {
	display: block;
	margin: 12px auto 0;
	background: none;
	border: none;
	text-align: center;
}

/* ---- HUD wallet + avatar ---- */
.lq-hud-wallet {
	display: flex;
	align-items: center;
	gap: 6px;
}

.lq-hud-wallet__item {
	background: rgba(0,0,0,.45);
	color: #fff;
	font-weight: 800;
	font-size: 0.78rem;
	border-radius: 20px;
	padding: 3px 10px;
}

.lq-hud-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid #fff;
	object-fit: cover;
	display: block;
}

.lq-hud-user-fallback {
	font-size: 1.15rem;
	line-height: 1;
}

.lq-btn--sm {
	min-height: 28px;
	min-width: 0;
	height: auto;
	padding: 4px 10px;
	font-size: 0.72rem;
	line-height: 1.2;
	border-radius: 999px;
	box-shadow: none;
	margin: 0;
}

.lq-btn--ghost.lq-btn--sm {
	margin-top: 0;
	background: rgba(255, 255, 255, 0.95);
}

.lq-btn--secondary {
	background: #fff;
	color: var(--lq-ink);
	border: 2px solid var(--lq-ink);
	box-shadow: none;
}

/* ---- Profile modal ---- */
.lq-modal--profile {
	width: min(100%, 340px);
	max-width: 100%;
	max-height: min(88dvh, 90vh);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
	padding: 16px 12px 14px;
}

.lq-modal--profile .lq-modal-title {
	font-size: 1.35rem;
	margin-bottom: 10px;
}

.lq-profile-wallet {
	display: flex;
	gap: 6px;
	justify-content: center;
	flex-wrap: wrap;
	margin: 0 0 10px;
}

.lq-wallet-chip {
	background: var(--lq-ink);
	color: #fff;
	border-radius: 20px;
	padding: 4px 10px;
	font-weight: 800;
	font-size: 0.75rem;
	white-space: nowrap;
}

.lq-profile-section-title {
	font-family: var(--lq-font-display);
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--lq-ink);
	margin: 12px 0 8px;
	text-align: left;
	width: 100%;
}

.lq-avatar-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
}

.lq-avatar-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 8px 4px 6px;
	border-radius: 14px;
	border: 2px solid transparent;
	background: #f3ecff;
	min-width: 0;
	box-sizing: border-box;
}

.lq-avatar-card.is-equipped {
	border-color: var(--lq-btn);
}

.lq-avatar-card.is-locked {
	opacity: 0.6;
}

.lq-avatar-card.is-locked .lq-avatar-thumb {
	filter: grayscale(0.3);
}

.lq-avatar-thumb {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.lq-avatar-label {
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--lq-ink);
	text-align: center;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lq-avatar-badge {
	font-size: 0.68rem;
	font-weight: 800;
	color: var(--lq-btn);
	line-height: 1.2;
}

.lq-avatar-card .lq-btn--sm {
	width: auto;
	max-width: 100%;
	padding: 3px 8px;
	font-size: 0.65rem;
	min-width: 0;
	min-height: 0;
}

.lq-avatar-card .lq-btn--sm,
.lq-tool-actions .lq-btn--sm {
	touch-action: manipulation;
}

.lq-tools-grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.lq-tool-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 14px;
	background: #f3ecff;
	border: 2px solid transparent;
	box-sizing: border-box;
	width: 100%;
}

.lq-tool-card.is-equipped {
	border-color: var(--lq-btn);
}

.lq-tool-card.is-locked {
	opacity: 0.75;
}

.lq-tool-card__top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.lq-tool-name {
	font-weight: 800;
	font-size: 0.88rem;
	color: var(--lq-ink);
	text-align: left;
}

.lq-tool-bonus {
	font-size: 0.72rem;
	color: #6c757d;
	white-space: nowrap;
}

.lq-tool-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.lq-tool-actions .lq-btn--sm {
	flex: 0 0 auto;
}

.lq-tool-badge {
	font-size: 0.72rem;
	font-weight: 800;
	color: var(--lq-btn);
}

.lq-profile-login-hint {
	font-size: 0.8rem;
	color: #888;
	text-align: center;
	margin: 8px 0;
	line-height: 1.35;
}

.lq-modal--profile > .lq-btn--block,
.lq-modal--profile > .lq-btn--xl {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin-top: 8px;
}

/* ---- Coupon activation screen ---- */
.lq-modal--coupon {
	width: min(100%, 380px);
	max-width: 100%;
	padding: 0 0 14px;
	overflow-x: hidden;
	text-align: left;
	background: #f4f6fb;
}

.lq-coupon-banner {
	background: #b3e5fc;
	padding: 14px 16px;
	border-radius: 28px 28px 0 0;
}

.lq-coupon-banner__title {
	margin: 0;
	font-family: var(--lq-font-display);
	font-size: clamp(1.15rem, 4.5vw, 1.4rem);
	font-weight: 800;
	color: var(--lq-ink);
	line-height: 1.25;
}

.lq-coupon-banner__valid {
	margin: 6px 0 0;
	font-size: 0.82rem;
	font-weight: 700;
	color: #37474f;
	line-height: 1.35;
}

.lq-coupon-card {
	margin: 12px 12px 0;
	padding: 16px 14px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 4px 16px rgba(26, 35, 126, 0.08);
	box-sizing: border-box;
}

.lq-coupon-card__title {
	margin: 0;
	font-family: var(--lq-font-display);
	font-size: 1.35rem;
	font-weight: 800;
	color: #263238;
	text-align: left;
}

.lq-coupon-card__sub {
	margin: 4px 0 0;
	font-size: 0.85rem;
	font-weight: 700;
	color: #78909c;
}

.lq-coupon-card__attraction {
	margin: 4px 0 0;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--lq-ink);
}

.lq-coupon-card__avail {
	margin: 8px 0 0;
	font-size: 0.88rem;
	font-weight: 800;
	color: var(--lq-btn);
}

.lq-coupon-timer {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0;
	padding: 10px 12px;
	background: #eceff1;
	border-radius: 12px;
	font-size: 0.88rem;
	font-weight: 700;
	color: #455a64;
	line-height: 1.35;
}

.lq-coupon-timer.is-expired {
	background: #ffebee;
	color: #c62828;
}

.lq-coupon-timer__icon {
	flex-shrink: 0;
	font-size: 1.1rem;
}

.lq-coupon-qr-wrap {
	text-align: center;
	margin: 8px 0 12px;
}

.lq-coupon-qr-hint {
	margin: 0 0 8px;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--lq-ink);
}

.lq-coupon-qr-wrap .lq-qr {
	margin: 0 auto 8px;
}

.lq-coupon-expired {
	margin: 8px 0 0;
	text-align: center;
	font-weight: 800;
	color: #c62828;
}

.lq-coupon-rules {
	margin: 12px 12px 0;
	padding: 14px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 4px 16px rgba(26, 35, 126, 0.08);
	box-sizing: border-box;
}

.lq-coupon-rules__title {
	margin: 0 0 8px;
	font-family: var(--lq-font-display);
	font-size: 1.05rem;
	font-weight: 800;
	color: #263238;
}

.lq-coupon-rules__list {
	margin: 0;
	padding-left: 1.2rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: #607d8b;
	line-height: 1.45;
}

.lq-coupon-rules__list li {
	margin-bottom: 6px;
}

.lq-modal--coupon .lq-btn--block,
.lq-modal--coupon .lq-btn--xl {
	width: calc(100% - 24px);
	margin-left: 12px;
	margin-right: 12px;
	box-sizing: border-box;
}

.lq-modal--coupon [data-action="close-coupon"] {
	margin-top: 10px;
}

@media (max-width: 360px) {
	.lq-coupon-card,
	.lq-coupon-rules {
		margin-left: 8px;
		margin-right: 8px;
		padding: 12px 10px;
	}

	.lq-modal--coupon .lq-btn--block,
	.lq-modal--coupon .lq-btn--xl {
		width: calc(100% - 16px);
		margin-left: 8px;
		margin-right: 8px;
	}
}
